push neon reactor

This commit is contained in:
2026-07-12 15:11:38 +02:00
parent 172e72dbcd
commit aeab5f7820
9597 changed files with 2407488 additions and 0 deletions
@@ -0,0 +1,28 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { ILogger } from '../telemetry/Logger.types';
export interface IConfig {
logger?: ILogger;
}
export interface IContext {
app: IAppContext;
host: IHostContext;
user: IUserContext;
}
export interface IUserContext {
fullName?: string;
objectId?: string;
tenantId?: string;
userPrincipalName?: string;
}
export interface IAppContext {
appId: string;
appSettings: object;
environmentId: string;
queryParams: Record<string, string>;
}
export interface IHostContext {
sessionId: string;
}
//# sourceMappingURL=App.Types.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"App.Types.d.ts","sourceRoot":"","sources":["../../src/app/App.Types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEzD,MAAM,WAAW,OAAO;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,WAAW,CAAC;IACjB,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,5 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
export {};
//# sourceMappingURL=App.Types.js.map
@@ -0,0 +1 @@
{"version":3,"file":"App.Types.js","sourceRoot":"","sources":["../../src/app/App.Types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,6 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { IConfig } from './App.Types';
export declare function setConfig(config: IConfig): void;
//# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/app/Config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/C"}
@@ -0,0 +1,10 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { initializeLogger } from '../telemetry';
export function setConfig(config) {
if (config.logger) {
initializeLogger(config.logger);
}
}
//# sourceMappingURL=Config.js.map
@@ -0,0 +1 @@
{"version":3,"file":"Config.js","sourceRoot":"","sources":["../../src/app/Config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,UAAU,SAAS,CAAC,MAAe;IACvC,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAClB,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;AACH,CAAC"}
@@ -0,0 +1,6 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { IContext } from './App.Types';
export declare function getContext(): Promise<IContext>;
//# sourceMappingURL=ContextProvider.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ContextProvider.d.ts","sourceRoot":"","sources":["../../src/app/ContextProvider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,wBAAsB,UAAU,IAAI,OAAO,CAAC,QAAQ,CAAC,CAOpD"}
@@ -0,0 +1,13 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { executePluginAsync } from '../internal/plugins';
let context;
export async function getContext() {
if (context) {
return context;
}
context = await executePluginAsync('AppLifecycle', 'getContext');
return context;
}
//# sourceMappingURL=ContextProvider.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ContextProvider.js","sourceRoot":"","sources":["../../src/app/ContextProvider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzD,IAAI,OAA6B,CAAC;AAElC,MAAM,CAAC,KAAK,UAAU,UAAU;IAC9B,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,OAAO,GAAG,MAAM,kBAAkB,CAAW,cAAc,EAAE,YAAY,CAAC,CAAC;IAC3E,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,7 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
export type { IConfig, IContext } from './App.Types';
export { setConfig } from './Config';
export { getContext } from './ContextProvider';
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,6 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
export { setConfig } from './Config';
export { getContext } from './ContextProvider';
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,24 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { IDataOperation, IOperationOptions, IOperationResult } from '../internal/data/core/types';
export type Connection = {
apiId: string;
connectionName: string;
runtimeUrl: string;
isShareableConnection: boolean;
};
export type Connections = Record<string, Connection>;
export type DataClient = {
createRecordAsync: <TInput, TResult>(tableName: string, record: TInput) => Promise<IOperationResult<TResult>>;
updateRecordAsync: <TInput, TResult>(tableName: string, recordId: string, changes: TInput) => Promise<IOperationResult<TResult>>;
uploadFileToRecord: <TInput extends string | Uint8Array | ArrayBuffer | Blob>(tableName: string, recordId: string, columnName: string, fileName: string, data: TInput) => Promise<IOperationResult<void>>;
downloadFileFromRecord: (tableName: string, recordId: string, columnName: string) => Promise<IOperationResult<Uint8Array>>;
downloadImageFromRecord: (tableName: string, recordId: string, columnName: string, fullSize?: boolean) => Promise<IOperationResult<Uint8Array>>;
deleteFileOrImageFromRecord: (tableName: string, recordId: string, columnName: string) => Promise<IOperationResult<void>>;
deleteRecordAsync: (tableName: string, recordId: string) => Promise<IOperationResult<void>>;
retrieveRecordAsync: <TResult>(tableName: string, recordId: string, operation?: IOperationOptions) => Promise<IOperationResult<TResult>>;
retrieveMultipleRecordsAsync: <TResult>(tableName: string, options?: IOperationOptions) => Promise<IOperationResult<TResult[]>>;
executeAsync: <TRequest, TResult>(operation: IDataOperation<TRequest>) => Promise<IOperationResult<TResult>>;
};
//# sourceMappingURL=Data.types.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"Data.types.d.ts","sourceRoot":"","sources":["../../src/data/Data.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAErD,MAAM,MAAM,UAAU,GAAG;IACvB,iBAAiB,EAAE,CAAC,MAAM,EAAE,OAAO,EACjC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,KACX,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;IACxC,iBAAiB,EAAE,CAAC,MAAM,EAAE,OAAO,EACjC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,KACZ,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;IACxC,kBAAkB,EAAE,CAAC,MAAM,SAAS,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,IAAI,EAC1E,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,KACT,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;IACrC,sBAAsB,EAAE,CACtB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,KACf,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC;IAC3C,uBAAuB,EAAE,CACvB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,OAAO,KACf,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC;IAC3C,2BAA2B,EAAE,CAC3B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,KACf,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;IACrC,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5F,mBAAmB,EAAE,CAAC,OAAO,EAC3B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,iBAAiB,KAC1B,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;IACxC,4BAA4B,EAAE,CAAC,OAAO,EACpC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,iBAAiB,KACxB,OAAO,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IAC1C,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,EAC9B,SAAS,EAAE,cAAc,CAAC,QAAQ,CAAC,KAChC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;CACzC,CAAC"}
@@ -0,0 +1,5 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
export {};
//# sourceMappingURL=Data.types.js.map
@@ -0,0 +1 @@
{"version":3,"file":"Data.types.js","sourceRoot":"","sources":["../../src/data/Data.types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,6 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
export { createMockDataExecutor, type MockDataStore, } from '../../internal/data/core/data/executors/index';
export type { IDataOperationExecutor } from '../../internal/data/core/types';
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/data/executors/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,sBAAsB,EACtB,KAAK,aAAa,GACnB,MAAM,+CAA+C,CAAC;AACvD,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,5 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
export { createMockDataExecutor, } from '../../internal/data/core/data/executors/index';
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/executors/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,sBAAsB,GAEvB,MAAM,+CAA+C,CAAC"}
@@ -0,0 +1,8 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
export type { IOperationOptions, IOperationResult } from '../internal/data/core/types';
export type { DataClient } from './Data.types';
export { deserializeMultiSelectPicklistFields, serializeMultiSelectPicklistFields, } from './multiSelectPicklistUtils';
export { getClient } from './powerAppsData';
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/data/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACvF,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACL,oCAAoC,EACpC,kCAAkC,GACnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,6 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
export { deserializeMultiSelectPicklistFields, serializeMultiSelectPicklistFields, } from './multiSelectPicklistUtils';
export { getClient } from './powerAppsData';
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/data/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EACL,oCAAoC,EACpC,kCAAkC,GACnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,6 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
export type { EntityMetadata, GetEntityMetadataOptions, } from '../../../internal/data/core/types/dataverseMetadata';
export { getAssociatedMenuBehaviorName, getAssociatedMenuGroupName, getAttributeRequiredLevelName, getAttributeTypeCodeName, getCascadeTypeName, getEntityClusterModeName, getOwnershipTypeName, getPrivilegeTypeName, getRelationshipTypeName, getSecurityTypesName, } from '../../../internal/data/core/types/dataverseMetadata';
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/data/metadata/dataverse/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EACV,cAAc,EACd,wBAAwB,GACzB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,6BAA6B,EAC7B,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,qDAAqD,CAAC"}
@@ -0,0 +1,5 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
export { getAssociatedMenuBehaviorName, getAssociatedMenuGroupName, getAttributeRequiredLevelName, getAttributeTypeCodeName, getCascadeTypeName, getEntityClusterModeName, getOwnershipTypeName, getPrivilegeTypeName, getRelationshipTypeName, getSecurityTypesName, } from '../../../internal/data/core/types/dataverseMetadata';
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/metadata/dataverse/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,6BAA6B,EAC7B,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,qDAAqD,CAAC"}
@@ -0,0 +1,34 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
/**
* Serializes MultiSelectPicklist fields in a Dataverse record before sending to the API.
*
* The Dataverse Web API expects MultiSelectPicklist values as comma-separated strings
* (e.g. `"100,200,300"`), but the generated TypeScript types represent them as number arrays
* (e.g. `[100, 200, 300]`). This function converts any listed field whose current value is an
* array into that wire format. An empty array is serialized as `null` because Dataverse rejects
* an empty string for this column type — `null` is the correct way to clear the field.
*
* A shallow copy of the record is returned so the caller's object is not mutated.
*
* @param record - The record being sent to `createRecordAsync` or `updateRecordAsync`.
* @param fields - Names of all MultiSelectPicklist columns declared on this entity.
* @returns A new record object with array-valued picklist fields replaced by comma-separated strings,
* or `null` for empty arrays.
*/
export declare function serializeMultiSelectPicklistFields(record: Record<string, unknown>, fields: readonly string[]): Record<string, unknown>;
/**
* Deserializes MultiSelectPicklist fields in a Dataverse record returned from the API.
*
* The Dataverse Web API returns MultiSelectPicklist values as comma-separated strings
* (e.g. `"100,200,300"`), but the generated TypeScript types represent them as number arrays.
* This function mutates the record in place, converting each listed field from its wire format
* back to an array. An empty string (`""`) is treated as an empty array.
*
* @param record - The record returned by `retrieveRecordAsync` or `retrieveMultipleRecordsAsync`.
* Mutated in place.
* @param fields - Names of all MultiSelectPicklist columns declared on this entity.
*/
export declare function deserializeMultiSelectPicklistFields(record: Record<string, unknown>, fields: readonly string[]): void;
//# sourceMappingURL=multiSelectPicklistUtils.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"multiSelectPicklistUtils.d.ts","sourceRoot":"","sources":["../../src/data/multiSelectPicklistUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,MAAM,EAAE,SAAS,MAAM,EAAE,GACxB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAUzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,MAAM,EAAE,SAAS,MAAM,EAAE,GACxB,IAAI,CAON"}
@@ -0,0 +1,51 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
/**
* Serializes MultiSelectPicklist fields in a Dataverse record before sending to the API.
*
* The Dataverse Web API expects MultiSelectPicklist values as comma-separated strings
* (e.g. `"100,200,300"`), but the generated TypeScript types represent them as number arrays
* (e.g. `[100, 200, 300]`). This function converts any listed field whose current value is an
* array into that wire format. An empty array is serialized as `null` because Dataverse rejects
* an empty string for this column type — `null` is the correct way to clear the field.
*
* A shallow copy of the record is returned so the caller's object is not mutated.
*
* @param record - The record being sent to `createRecordAsync` or `updateRecordAsync`.
* @param fields - Names of all MultiSelectPicklist columns declared on this entity.
* @returns A new record object with array-valued picklist fields replaced by comma-separated strings,
* or `null` for empty arrays.
*/
export function serializeMultiSelectPicklistFields(record, fields) {
const result = { ...record };
for (const field of fields) {
if (Array.isArray(result[field])) {
const arr = result[field];
// Dataverse requires null (not an empty string) to clear a MultiSelectPicklist field.
result[field] = arr.length > 0 ? arr.join(',') : null;
}
}
return result;
}
/**
* Deserializes MultiSelectPicklist fields in a Dataverse record returned from the API.
*
* The Dataverse Web API returns MultiSelectPicklist values as comma-separated strings
* (e.g. `"100,200,300"`), but the generated TypeScript types represent them as number arrays.
* This function mutates the record in place, converting each listed field from its wire format
* back to an array. An empty string (`""`) is treated as an empty array.
*
* @param record - The record returned by `retrieveRecordAsync` or `retrieveMultipleRecordsAsync`.
* Mutated in place.
* @param fields - Names of all MultiSelectPicklist columns declared on this entity.
*/
export function deserializeMultiSelectPicklistFields(record, fields) {
for (const field of fields) {
const value = record[field];
if (typeof value === 'string') {
record[field] = value !== '' ? value.split(',').map(Number) : [];
}
}
}
//# sourceMappingURL=multiSelectPicklistUtils.js.map
@@ -0,0 +1 @@
{"version":3,"file":"multiSelectPicklistUtils.js","sourceRoot":"","sources":["../../src/data/multiSelectPicklistUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,kCAAkC,CAChD,MAA+B,EAC/B,MAAyB;IAEzB,MAAM,MAAM,GAA4B,EAAE,GAAG,MAAM,EAAE,CAAC;IACtD,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YACjC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAa,CAAC;YACtC,sFAAsF;YACtF,MAAM,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACxD,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,oCAAoC,CAClD,MAA+B,EAC/B,MAAyB;IAEzB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACnE,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -0,0 +1,9 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { DataSourcesInfo, IDataOperationExecutor } from '../internal/data/core/types';
import type { DataClient } from './Data.types';
export declare function getDataOperationExecutor(): IDataOperationExecutor | undefined;
export declare function setDataOperationExecutor(dataOperationExecutorOverride: IDataOperationExecutor): void;
export declare function getClient(dataSourcesInfo: DataSourcesInfo): DataClient;
//# sourceMappingURL=powerAppsData.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"powerAppsData.d.ts","sourceRoot":"","sources":["../../src/data/powerAppsData.ts"],"names":[],"mappings":"AAAA;;GAEG;AAYH,OAAO,KAAK,EACV,eAAe,EAEf,sBAAsB,EAGvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,wBAAgB,wBAAwB,IAAI,sBAAsB,GAAG,SAAS,CAE7E;AAED,wBAAgB,wBAAwB,CACtC,6BAA6B,EAAE,sBAAsB,GACpD,IAAI,CAEN;AAED,wBAAgB,SAAS,CAAC,eAAe,EAAE,eAAe,GAAG,UAAU,CAoEtE"}
@@ -0,0 +1,55 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { createRecordAsync } from '../internal/data/core/api/createRecord';
import { deleteFileOrImageFromRecord } from '../internal/data/core/api/deleteFileOrImageFromRecord';
import { deleteRecordAsync } from '../internal/data/core/api/deleteRecord';
import { downloadFileFromRecord } from '../internal/data/core/api/downloadFileFromRecord';
import { downloadImageFromRecord } from '../internal/data/core/api/downloadImageFromRecord';
import { executeAsync } from '../internal/data/core/api/execute';
import { retrieveMultipleRecordsAsync } from '../internal/data/core/api/retrieveMultipleRecords';
import { retrieveRecordAsync } from '../internal/data/core/api/retrieveRecord';
import { updateRecordAsync } from '../internal/data/core/api/updateRecord';
import { uploadFileToRecord } from '../internal/data/core/api/uploadRecord';
let _dataOperationExecutor;
export function getDataOperationExecutor() {
return _dataOperationExecutor;
}
export function setDataOperationExecutor(dataOperationExecutorOverride) {
_dataOperationExecutor = dataOperationExecutorOverride;
}
export function getClient(dataSourcesInfo) {
return {
createRecordAsync: (tableName, record) => {
return createRecordAsync(dataSourcesInfo, tableName, record);
},
deleteRecordAsync: (tableName, recordId) => {
return deleteRecordAsync(dataSourcesInfo, tableName, recordId);
},
executeAsync: (operation) => {
return executeAsync(dataSourcesInfo, operation);
},
retrieveMultipleRecordsAsync: (tableName, options) => {
return retrieveMultipleRecordsAsync(dataSourcesInfo, tableName, options);
},
retrieveRecordAsync: (tableName, recordId, options) => {
return retrieveRecordAsync(dataSourcesInfo, tableName, recordId, options);
},
updateRecordAsync: (tableName, recordId, changes) => {
return updateRecordAsync(dataSourcesInfo, tableName, recordId, changes);
},
uploadFileToRecord: (tableName, recordId, columnName, fileName, data) => {
return uploadFileToRecord(dataSourcesInfo, tableName, recordId, columnName, fileName, data);
},
downloadFileFromRecord: (tableName, recordId, columnName) => {
return downloadFileFromRecord(dataSourcesInfo, tableName, recordId, columnName);
},
downloadImageFromRecord: (tableName, recordId, columnName, fullSize) => {
return downloadImageFromRecord(dataSourcesInfo, tableName, recordId, columnName, fullSize);
},
deleteFileOrImageFromRecord: (tableName, recordId, columnName) => {
return deleteFileOrImageFromRecord(dataSourcesInfo, tableName, recordId, columnName);
},
};
}
//# sourceMappingURL=powerAppsData.js.map
@@ -0,0 +1 @@
{"version":3,"file":"powerAppsData.js","sourceRoot":"","sources":["../../src/data/powerAppsData.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AACjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAU5E,IAAI,sBAA0D,CAAC;AAE/D,MAAM,UAAU,wBAAwB;IACtC,OAAO,sBAAsB,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,6BAAqD;IAErD,sBAAsB,GAAG,6BAA6B,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,eAAgC;IACxD,OAAO;QACL,iBAAiB,EAAE,CACjB,SAAiB,EACjB,MAAc,EACsB,EAAE;YACtC,OAAO,iBAAiB,CAAC,eAAe,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;QAC/D,CAAC;QACD,iBAAiB,EAAE,CAAC,SAAiB,EAAE,QAAgB,EAAmC,EAAE;YAC1F,OAAO,iBAAiB,CAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;QACjE,CAAC;QACD,YAAY,EAAE,CACZ,SAAmC,EACC,EAAE;YACtC,OAAO,YAAY,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;QAClD,CAAC;QACD,4BAA4B,EAAE,CAC5B,SAAiB,EACjB,OAA2B,EACW,EAAE;YACxC,OAAO,4BAA4B,CAAC,eAAe,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAC3E,CAAC;QACD,mBAAmB,EAAE,CACnB,SAAiB,EACjB,QAAgB,EAChB,OAA2B,EACS,EAAE;YACtC,OAAO,mBAAmB,CAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC5E,CAAC;QACD,iBAAiB,EAAE,CACjB,SAAiB,EACjB,QAAgB,EAChB,OAAe,EACqB,EAAE;YACtC,OAAO,iBAAiB,CAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC1E,CAAC;QACD,kBAAkB,EAAE,CAClB,SAAiB,EACjB,QAAgB,EAChB,UAAkB,EAClB,QAAgB,EAChB,IAAY,EACqB,EAAE;YACnC,OAAO,kBAAkB,CAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;QAC9F,CAAC;QACD,sBAAsB,EAAE,CACtB,SAAiB,EACjB,QAAgB,EAChB,UAAkB,EACqB,EAAE;YACzC,OAAO,sBAAsB,CAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;QAClF,CAAC;QACD,uBAAuB,EAAE,CACvB,SAAiB,EACjB,QAAgB,EAChB,UAAkB,EAClB,QAAkB,EACqB,EAAE;YACzC,OAAO,uBAAuB,CAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC7F,CAAC;QACD,2BAA2B,EAAE,CAC3B,SAAiB,EACjB,QAAgB,EAChB,UAAkB,EACe,EAAE;YACnC,OAAO,2BAA2B,CAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;QACvF,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import * as app from './app/index';
import * as data from './data/index';
import * as telemetry from './telemetry/index';
export { app, data, telemetry };
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AACnC,OAAO,KAAK,IAAI,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC"}
+8
View File
@@ -0,0 +1,8 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import * as app from './app/index';
import * as data from './data/index';
import * as telemetry from './telemetry/index';
export { app, data, telemetry };
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AACnC,OAAO,KAAK,IAAI,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,6 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
/** @private */
export declare function loadConnections(): Promise<void>;
//# sourceMappingURL=ConnectionUtils.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ConnectionUtils.d.ts","sourceRoot":"","sources":["../../../src/internal/data/ConnectionUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,eAAe;AACf,wBAAsB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAQrD"}
@@ -0,0 +1,21 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { executePluginAsync } from '../plugins';
let connectionsLoaded = false;
/** @private */
export async function loadConnections() {
if (connectionsLoaded) {
return;
}
connectionsLoaded = true;
await loadNonCompositeConnectionsAsync();
await resolveCompositeConnectionsAsync();
}
async function loadNonCompositeConnectionsAsync() {
return executePluginAsync('AppPowerAppsClientPlugin', 'loadNonCompositeConnectionsAsync', []);
}
async function resolveCompositeConnectionsAsync() {
return executePluginAsync('AppPowerAppsClientPlugin', 'resolveCompositeConnectionsAsync', []);
}
//# sourceMappingURL=ConnectionUtils.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ConnectionUtils.js","sourceRoot":"","sources":["../../../src/internal/data/ConnectionUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,IAAI,iBAAiB,GAAG,KAAK,CAAC;AAE9B,eAAe;AACf,MAAM,CAAC,KAAK,UAAU,eAAe;IACnC,IAAI,iBAAiB,EAAE,CAAC;QACtB,OAAO;IACT,CAAC;IAED,iBAAiB,GAAG,IAAI,CAAC;IACzB,MAAM,gCAAgC,EAAE,CAAC;IACzC,MAAM,gCAAgC,EAAE,CAAC;AAC3C,CAAC;AAED,KAAK,UAAU,gCAAgC;IAC7C,OAAO,kBAAkB,CAAC,0BAA0B,EAAE,kCAAkC,EAAE,EAAE,CAAC,CAAC;AAChG,CAAC;AAED,KAAK,UAAU,gCAAgC;IAC7C,OAAO,kBAAkB,CAAC,0BAA0B,EAAE,kCAAkC,EAAE,EAAE,CAAC,CAAC;AAChG,CAAC"}
@@ -0,0 +1,19 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { IOperationResult } from './core/types';
/**
* Executes operations using the plugin.
* @private
*/
export declare class OperationExecutor {
/**
* Executes an operation using the plugin.
* @param operationName The name of the operation.
* @param action The action to perform.
* @param params The parameters for the operation.
* @returns A promise resolving to the operation result.
*/
execute<T = string>(operationName: string, action: string, params: unknown[]): Promise<IOperationResult<T>>;
}
//# sourceMappingURL=OperationExecutor.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"OperationExecutor.d.ts","sourceRoot":"","sources":["../../../src/internal/data/OperationExecutor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIrD;;;GAGG;AACH,qBAAa,iBAAiB;IAC5B;;;;;;OAMG;IACU,OAAO,CAAC,CAAC,GAAG,MAAM,EAC7B,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,OAAO,EAAE,GAChB,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;CAahC"}
@@ -0,0 +1,31 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { executePluginAsync } from '../plugins';
import { loadConnections } from './ConnectionUtils';
let loadConnectionsPromise;
/**
* Executes operations using the plugin.
* @private
*/
export class OperationExecutor {
/**
* Executes an operation using the plugin.
* @param operationName The name of the operation.
* @param action The action to perform.
* @param params The parameters for the operation.
* @returns A promise resolving to the operation result.
*/
async execute(operationName, action, params) {
if (!loadConnectionsPromise) {
loadConnectionsPromise = loadConnections();
}
await loadConnectionsPromise;
const result = await executePluginAsync(operationName, action, params);
return {
success: true,
data: result,
};
}
}
//# sourceMappingURL=OperationExecutor.js.map
@@ -0,0 +1 @@
{"version":3,"file":"OperationExecutor.js","sourceRoot":"","sources":["../../../src/internal/data/OperationExecutor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,IAAI,sBAAiD,CAAC;AAEtD;;;GAGG;AACH,MAAM,OAAO,iBAAiB;IAC5B;;;;;;OAMG;IACI,KAAK,CAAC,OAAO,CAClB,aAAqB,EACrB,MAAc,EACd,MAAiB;QAEjB,IAAI,CAAC,sBAAsB,EAAE,CAAC;YAC5B,sBAAsB,GAAG,eAAe,EAAE,CAAC;QAC7C,CAAC;QAED,MAAM,sBAAsB,CAAC;QAE7B,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAI,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAC1E,OAAO;YACL,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,14 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { DataSourcesInfo, IOperationResult } from '../types';
/**
* Creates a new record in the specified table.
* @param dataSourcesInfo - The data sources information.
* @param tableName - The name of the table to create the record in.
* @param record - The record to create.
* @returns A promise that resolves to the created record.
* @private
*/
export declare function createRecordAsync<TInput, TResult>(dataSourcesInfo: DataSourcesInfo, tableName: string, record: TInput): Promise<IOperationResult<TResult>>;
//# sourceMappingURL=createRecord.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"createRecord.d.ts","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/createRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElE;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,OAAO,EACrD,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAIpC"}
@@ -0,0 +1,16 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
/**
* Creates a new record in the specified table.
* @param dataSourcesInfo - The data sources information.
* @param tableName - The name of the table to create the record in.
* @param record - The record to create.
* @returns A promise that resolves to the created record.
* @private
*/
export async function createRecordAsync(dataSourcesInfo, tableName, record) {
return await (await getPowerSdkInstance(dataSourcesInfo)).Data.createRecordAsync(tableName, record);
}
//# sourceMappingURL=createRecord.js.map
@@ -0,0 +1 @@
{"version":3,"file":"createRecord.js","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/createRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,eAAgC,EAChC,SAAiB,EACjB,MAAc;IAEd,OAAO,MAAM,CACX,MAAM,mBAAmB,CAAC,eAAe,CAAC,CAC3C,CAAC,IAAI,CAAC,iBAAiB,CAAkB,SAAS,EAAE,MAAM,CAAC,CAAC;AAC/D,CAAC"}
@@ -0,0 +1,17 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { DataSourcesInfo, IOperationResult } from '../types';
/**
* Deletes the file or image data stored in a file/image column of an existing record.
* Sends a DELETE request to `/<tableName>(<recordId>)/<columnName>`.
* This API is intended for use with file and image columns in Dataverse.
* @param dataSourcesInfo - The data sources information.
* @param tableName - The logical name of the Dataverse table.
* @param recordId - The identifier of the record.
* @param columnName - The name of the file or image column whose data should be deleted.
* @returns - A promise that resolves to an operation result.
* @private
*/
export declare function deleteFileOrImageFromRecord(dataSourcesInfo: DataSourcesInfo, tableName: string, recordId: string, columnName: string): Promise<IOperationResult<void>>;
//# sourceMappingURL=deleteFileOrImageFromRecord.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deleteFileOrImageFromRecord.d.ts","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/deleteFileOrImageFromRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElE;;;;;;;;;;GAUG;AACH,wBAAsB,2BAA2B,CAC/C,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAIjC"}
@@ -0,0 +1,19 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
/**
* Deletes the file or image data stored in a file/image column of an existing record.
* Sends a DELETE request to `/<tableName>(<recordId>)/<columnName>`.
* This API is intended for use with file and image columns in Dataverse.
* @param dataSourcesInfo - The data sources information.
* @param tableName - The logical name of the Dataverse table.
* @param recordId - The identifier of the record.
* @param columnName - The name of the file or image column whose data should be deleted.
* @returns - A promise that resolves to an operation result.
* @private
*/
export async function deleteFileOrImageFromRecord(dataSourcesInfo, tableName, recordId, columnName) {
return await (await getPowerSdkInstance(dataSourcesInfo)).Data.deleteFileOrImageFromRecord(tableName, recordId, columnName);
}
//# sourceMappingURL=deleteFileOrImageFromRecord.js.map
@@ -0,0 +1 @@
{"version":3,"file":"deleteFileOrImageFromRecord.js","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/deleteFileOrImageFromRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,eAAgC,EAChC,SAAiB,EACjB,QAAgB,EAChB,UAAkB;IAElB,OAAO,MAAM,CACX,MAAM,mBAAmB,CAAC,eAAe,CAAC,CAC3C,CAAC,IAAI,CAAC,2BAA2B,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;AACtE,CAAC"}
@@ -0,0 +1,14 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { DataSourcesInfo, IOperationResult } from '../types';
/**
* Deletes a record from the specified table.
* @param dataSourcesInfo - The data sources information.
* @param tableName - The name of the table to delete the record from.
* @param recordId - The ID of the record to delete.
* @returns A promise that resolves to the result of the delete operation.
* @private
*/
export declare function deleteRecordAsync(dataSourcesInfo: DataSourcesInfo, tableName: string, recordId: string): Promise<IOperationResult<void>>;
//# sourceMappingURL=deleteRecord.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deleteRecord.d.ts","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/deleteRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElE;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAIjC"}
@@ -0,0 +1,16 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
/**
* Deletes a record from the specified table.
* @param dataSourcesInfo - The data sources information.
* @param tableName - The name of the table to delete the record from.
* @param recordId - The ID of the record to delete.
* @returns A promise that resolves to the result of the delete operation.
* @private
*/
export async function deleteRecordAsync(dataSourcesInfo, tableName, recordId) {
return await (await getPowerSdkInstance(dataSourcesInfo)).Data.deleteRecordAsync(tableName, recordId);
}
//# sourceMappingURL=deleteRecord.js.map
@@ -0,0 +1 @@
{"version":3,"file":"deleteRecord.js","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/deleteRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,eAAgC,EAChC,SAAiB,EACjB,QAAgB;IAEhB,OAAO,MAAM,CACX,MAAM,mBAAmB,CAAC,eAAe,CAAC,CAC3C,CAAC,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AAChD,CAAC"}
@@ -0,0 +1,20 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { DataSourcesInfo, IOperationResult } from '../types';
/**
* Downloads binary data from a file column of an existing record (maximum size 128 MB).
* Returns the file contents as binary.
* This API is intended for use with file/image columns in Dataverse, and will not work with other column types.
* For file columns in Dataverse, the recordId is the ID of the Dataverse record, and the tableName is the logical name of the Dataverse table.
* See documentation for more details:
* https://learn.microsoft.com/en-us/power-apps/developer/data-platform/file-column-data?tabs=webapi#download-a-file-in-a-single-request-using-web-api
* @param dataSourcesInfo - The data sources information.
* @param tableName - The name of the table to download the file from.
* @param recordId - The ID of the record to download from.
* @param columnName - The name of the file column to download from.
* @returns - A promise that resolves to an operation result with the file contents as binary.
* @private
*/
export declare function downloadFileFromRecord(dataSourcesInfo: DataSourcesInfo, tableName: string, recordId: string, columnName: string): Promise<IOperationResult<Uint8Array>>;
//# sourceMappingURL=downloadFileFromRecord.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"downloadFileFromRecord.d.ts","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/downloadFileFromRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElE;;;;;;;;;;;;;GAaG;AACH,wBAAsB,sBAAsB,CAC1C,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAIvC"}
@@ -0,0 +1,22 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
/**
* Downloads binary data from a file column of an existing record (maximum size 128 MB).
* Returns the file contents as binary.
* This API is intended for use with file/image columns in Dataverse, and will not work with other column types.
* For file columns in Dataverse, the recordId is the ID of the Dataverse record, and the tableName is the logical name of the Dataverse table.
* See documentation for more details:
* https://learn.microsoft.com/en-us/power-apps/developer/data-platform/file-column-data?tabs=webapi#download-a-file-in-a-single-request-using-web-api
* @param dataSourcesInfo - The data sources information.
* @param tableName - The name of the table to download the file from.
* @param recordId - The ID of the record to download from.
* @param columnName - The name of the file column to download from.
* @returns - A promise that resolves to an operation result with the file contents as binary.
* @private
*/
export async function downloadFileFromRecord(dataSourcesInfo, tableName, recordId, columnName) {
return await (await getPowerSdkInstance(dataSourcesInfo)).Data.downloadFileFromRecord(tableName, recordId, columnName);
}
//# sourceMappingURL=downloadFileFromRecord.js.map
@@ -0,0 +1 @@
{"version":3,"file":"downloadFileFromRecord.js","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/downloadFileFromRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,eAAgC,EAChC,SAAiB,EACjB,QAAgB,EAChB,UAAkB;IAElB,OAAO,MAAM,CACX,MAAM,mBAAmB,CAAC,eAAe,CAAC,CAC3C,CAAC,IAAI,CAAC,sBAAsB,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;AACjE,CAAC"}
@@ -0,0 +1,21 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { DataSourcesInfo, IOperationResult } from '../types';
/**
* Downloads binary data from an image column of an existing record.
* Returns the image contents as binary.
* This API is intended for use with image columns in Dataverse, and will not work with other column types.
* For image columns in Dataverse, the imageRelativeUrl is the relative URL of the image, and the tableName is the logical name of the Dataverse table.
* See documentation for more details:
* https://learn.microsoft.com/en-us/power-apps/developer/data-platform/file-column-data?tabs=webapi#download-a-file-in-a-single-request-using-web-api
* @param dataSourcesInfo - The data sources information.
* @param tableName - The logical name of the Dataverse table.
* @param recordId - The identifier of the record containing the image.
* @param columnName - The name of the image column.
* @param fullSize - When true, requests the full-size image (`?size=full`). Defaults to false (thumbnail/smaller size image).
* @returns - A promise that resolves to an operation result with the image contents as binary.
* @private
*/
export declare function downloadImageFromRecord(dataSourcesInfo: DataSourcesInfo, tableName: string, recordId: string, columnName: string, fullSize?: boolean): Promise<IOperationResult<Uint8Array>>;
//# sourceMappingURL=downloadImageFromRecord.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"downloadImageFromRecord.d.ts","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/downloadImageFromRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElE;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,uBAAuB,CAC3C,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,OAAO,GACjB,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAIvC"}
@@ -0,0 +1,23 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
/**
* Downloads binary data from an image column of an existing record.
* Returns the image contents as binary.
* This API is intended for use with image columns in Dataverse, and will not work with other column types.
* For image columns in Dataverse, the imageRelativeUrl is the relative URL of the image, and the tableName is the logical name of the Dataverse table.
* See documentation for more details:
* https://learn.microsoft.com/en-us/power-apps/developer/data-platform/file-column-data?tabs=webapi#download-a-file-in-a-single-request-using-web-api
* @param dataSourcesInfo - The data sources information.
* @param tableName - The logical name of the Dataverse table.
* @param recordId - The identifier of the record containing the image.
* @param columnName - The name of the image column.
* @param fullSize - When true, requests the full-size image (`?size=full`). Defaults to false (thumbnail/smaller size image).
* @returns - A promise that resolves to an operation result with the image contents as binary.
* @private
*/
export async function downloadImageFromRecord(dataSourcesInfo, tableName, recordId, columnName, fullSize) {
return await (await getPowerSdkInstance(dataSourcesInfo)).Data.downloadImageFromRecord(tableName, recordId, columnName, fullSize);
}
//# sourceMappingURL=downloadImageFromRecord.js.map
@@ -0,0 +1 @@
{"version":3,"file":"downloadImageFromRecord.js","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/downloadImageFromRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,eAAgC,EAChC,SAAiB,EACjB,QAAgB,EAChB,UAAkB,EAClB,QAAkB;IAElB,OAAO,MAAM,CACX,MAAM,mBAAmB,CAAC,eAAe,CAAC,CAC3C,CAAC,IAAI,CAAC,uBAAuB,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;AAC5E,CAAC"}
@@ -0,0 +1,12 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { DataSourcesInfo, IDataOperation, IOperationResult } from '../types';
/**
* Executes a data operation.
* @param operation - The data operation to execute.
* @returns - A promise that resolves to the result of the operation.
* @private
*/
export declare function executeAsync<TRequest, TResult>(dataSourcesInfo: DataSourcesInfo, operation: IDataOperation<TRequest>): Promise<IOperationResult<TResult>>;
//# sourceMappingURL=execute.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/execute.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElF;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,QAAQ,EAAE,OAAO,EAClD,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,cAAc,CAAC,QAAQ,CAAC,GAClC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAIpC"}
@@ -0,0 +1,14 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
/**
* Executes a data operation.
* @param operation - The data operation to execute.
* @returns - A promise that resolves to the result of the operation.
* @private
*/
export async function executeAsync(dataSourcesInfo, operation) {
return await (await getPowerSdkInstance(dataSourcesInfo)).Data.executeAsync(operation);
}
//# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/execute.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,eAAgC,EAChC,SAAmC;IAEnC,OAAO,MAAM,CACX,MAAM,mBAAmB,CAAC,eAAe,CAAC,CAC3C,CAAC,IAAI,CAAC,YAAY,CAAoB,SAAS,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,14 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { DataSourcesInfo, IOperationOptions, IOperationResult } from '../types';
/**
* Retrieves multiple records from the specified table.
* @param dataSourcesInfo - The data sources information.
* @param tableName - The name of the table to create the record in.
* @param options - Optional operation options.
* @returns - A promise that resolves to the created record.
* @private
*/
export declare function retrieveMultipleRecordsAsync<TResult>(dataSourcesInfo: DataSourcesInfo, tableName: string, options?: IOperationOptions): Promise<IOperationResult<TResult[]>>;
//# sourceMappingURL=retrieveMultipleRecords.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"retrieveMultipleRecords.d.ts","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/retrieveMultipleRecords.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAErF;;;;;;;GAOG;AACH,wBAAsB,4BAA4B,CAAC,OAAO,EACxD,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC,CAItC"}
@@ -0,0 +1,16 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
/**
* Retrieves multiple records from the specified table.
* @param dataSourcesInfo - The data sources information.
* @param tableName - The name of the table to create the record in.
* @param options - Optional operation options.
* @returns - A promise that resolves to the created record.
* @private
*/
export async function retrieveMultipleRecordsAsync(dataSourcesInfo, tableName, options) {
return await (await getPowerSdkInstance(dataSourcesInfo)).Data.retrieveMultipleRecordsAsync(tableName, options);
}
//# sourceMappingURL=retrieveMultipleRecords.js.map
@@ -0,0 +1 @@
{"version":3,"file":"retrieveMultipleRecords.js","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/retrieveMultipleRecords.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,eAAgC,EAChC,SAAiB,EACjB,OAA2B;IAE3B,OAAO,MAAM,CACX,MAAM,mBAAmB,CAAC,eAAe,CAAC,CAC3C,CAAC,IAAI,CAAC,4BAA4B,CAAU,SAAS,EAAE,OAAO,CAAC,CAAC;AACnE,CAAC"}
@@ -0,0 +1,14 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { DataSourcesInfo, IOperationOptions, IOperationResult } from '../types';
/**
* Retrieves a record from the specified table.
* @param tableName - The name of the table to retrieve the record from.
* @param recordId - The ID of the record to retrieve.
* @param options - Optional operation options.
* @returns A promise that resolves to the retrieved record.
* @private
*/
export declare function retrieveRecordAsync<TResult>(dataSourcesInfo: DataSourcesInfo, tableName: string, recordId: string, options?: IOperationOptions): Promise<IOperationResult<TResult>>;
//# sourceMappingURL=retrieveRecord.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"retrieveRecord.d.ts","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/retrieveRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAErF;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAC/C,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAIpC"}
@@ -0,0 +1,16 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
/**
* Retrieves a record from the specified table.
* @param tableName - The name of the table to retrieve the record from.
* @param recordId - The ID of the record to retrieve.
* @param options - Optional operation options.
* @returns A promise that resolves to the retrieved record.
* @private
*/
export async function retrieveRecordAsync(dataSourcesInfo, tableName, recordId, options) {
return await (await getPowerSdkInstance(dataSourcesInfo)).Data.retrieveRecordAsync(tableName, recordId, options);
}
//# sourceMappingURL=retrieveRecord.js.map
@@ -0,0 +1 @@
{"version":3,"file":"retrieveRecord.js","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/retrieveRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,eAAgC,EAChC,SAAiB,EACjB,QAAgB,EAChB,OAA2B;IAE3B,OAAO,MAAM,CACX,MAAM,mBAAmB,CAAC,eAAe,CAAC,CAC3C,CAAC,IAAI,CAAC,mBAAmB,CAAU,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACpE,CAAC"}
@@ -0,0 +1,15 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { DataSourcesInfo, IOperationResult } from '../types';
/**
* Updates an existing record in the specified table.
* @param dataSourcesInfo - The data sources information.
* @param tableName - The name of the table to create the record in.
* @param recordId - The ID of the record to update.
* @param changes - The changes to apply to the record.
* @returns - A promise that resolves to the created record.
* @private
*/
export declare function updateRecordAsync<TInput, TResult>(dataSourcesInfo: DataSourcesInfo, tableName: string, recordId: string, changes: TInput): Promise<IOperationResult<TResult>>;
//# sourceMappingURL=updateRecord.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"updateRecord.d.ts","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/updateRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElE;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,OAAO,EACrD,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAIpC"}
@@ -0,0 +1,17 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
/**
* Updates an existing record in the specified table.
* @param dataSourcesInfo - The data sources information.
* @param tableName - The name of the table to create the record in.
* @param recordId - The ID of the record to update.
* @param changes - The changes to apply to the record.
* @returns - A promise that resolves to the created record.
* @private
*/
export async function updateRecordAsync(dataSourcesInfo, tableName, recordId, changes) {
return await (await getPowerSdkInstance(dataSourcesInfo)).Data.updateRecordAsync(tableName, recordId, changes);
}
//# sourceMappingURL=updateRecord.js.map
@@ -0,0 +1 @@
{"version":3,"file":"updateRecord.js","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/updateRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,eAAgC,EAChC,SAAiB,EACjB,QAAgB,EAChB,OAAe;IAEf,OAAO,MAAM,CACX,MAAM,mBAAmB,CAAC,eAAe,CAAC,CAC3C,CAAC,IAAI,CAAC,iBAAiB,CAAkB,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AAC1E,CAAC"}
@@ -0,0 +1,21 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { DataSourcesInfo, IOperationResult } from '../types';
/**
* Uploads to an existing record in the specified table with binary data (maximum size 128 MB).
* Content type header must be application/octet-stream, and the binary data should be provided directly (e.g., as a Uint8Array or other binary type). This API is intended for use with file columns in Dataverse, and will not work with other column types.
* For file columns in Dataverse, the recordId is the ID of the Dataverse record, and the tableName is the logical name of the Dataverse table.
* See documentation for more details:
* https://learn.microsoft.com/en-us/power-apps/developer/data-platform/file-column-data?source=recommendations&tabs=webapi#upload-a-file-in-a-single-request-using-web-api
* @param dataSourcesInfo - The data sources information.
* @param tableName - The name of the table to upload the record in.
* @param recordId - The ID of the record to upload.
* @param columnName - The name of the file column to upload to.
* @param fileName - The name of the file to upload (used for Dataverse file columns).
* @param data - The body of the request which should have the binary contents of the file to upload.
* @returns - A promise that resolves to an operation result indicating success or failure of the upload.
* @private
*/
export declare function uploadFileToRecord<TInput extends string | Uint8Array | ArrayBuffer | Blob>(dataSourcesInfo: DataSourcesInfo, tableName: string, recordId: string, columnName: string, fileName: string, data: TInput): Promise<IOperationResult<void>>;
//# sourceMappingURL=uploadRecord.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"uploadRecord.d.ts","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/uploadRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElE;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,SAAS,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,IAAI,EAC9F,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAIjC"}
@@ -0,0 +1,23 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
/**
* Uploads to an existing record in the specified table with binary data (maximum size 128 MB).
* Content type header must be application/octet-stream, and the binary data should be provided directly (e.g., as a Uint8Array or other binary type). This API is intended for use with file columns in Dataverse, and will not work with other column types.
* For file columns in Dataverse, the recordId is the ID of the Dataverse record, and the tableName is the logical name of the Dataverse table.
* See documentation for more details:
* https://learn.microsoft.com/en-us/power-apps/developer/data-platform/file-column-data?source=recommendations&tabs=webapi#upload-a-file-in-a-single-request-using-web-api
* @param dataSourcesInfo - The data sources information.
* @param tableName - The name of the table to upload the record in.
* @param recordId - The ID of the record to upload.
* @param columnName - The name of the file column to upload to.
* @param fileName - The name of the file to upload (used for Dataverse file columns).
* @param data - The body of the request which should have the binary contents of the file to upload.
* @returns - A promise that resolves to an operation result indicating success or failure of the upload.
* @private
*/
export async function uploadFileToRecord(dataSourcesInfo, tableName, recordId, columnName, fileName, data) {
return await (await getPowerSdkInstance(dataSourcesInfo)).Data.uploadFileToRecord(tableName, recordId, columnName, fileName, data);
}
//# sourceMappingURL=uploadRecord.js.map
@@ -0,0 +1 @@
{"version":3,"file":"uploadRecord.js","sourceRoot":"","sources":["../../../../../src/internal/data/core/api/uploadRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,eAAgC,EAChC,SAAiB,EACjB,QAAgB,EAChB,UAAkB,EAClB,QAAgB,EAChB,IAAY;IAEZ,OAAO,MAAM,CACX,MAAM,mBAAmB,CAAC,eAAe,CAAC,CAC3C,CAAC,IAAI,CAAC,kBAAkB,CAAS,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;AACrF,CAAC"}
@@ -0,0 +1,237 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { DataSourcesInfo, IOperationResult } from '../types';
import type { DataverseMetadataRequest } from '../types/dataverseMetadata';
/**
* Base interface for operation context
* @private
*/
export interface IOperationContext {
isExecuteAsync?: boolean;
clientConfig?: IClientConfig;
operationName?: string;
correlationId?: string;
timestamp?: Date;
responseInfo?: Record<string, IApiResponseInfo>;
batchId?: string;
datasetName?: string;
isDataVerseOperation?: boolean;
fileName?: string;
skipBatch?: boolean;
}
/**
* Interface for api response information
* @private
*/
export interface IApiResponseInfo {
type?: string | null;
format?: string | null;
}
/**
* Base interface for client configuration
* @private
*/
export interface IClientConfig {
baseUrl?: string;
timeout?: number;
retryAttempts?: number;
}
/**
* Interface for HTTP request configuration
* @private
*/
export interface IHttpRequestConfig {
url: string;
method: HttpMethod;
apiId: string;
tableName: string;
headers?: {
[key: string]: string;
};
body?: string | Uint8Array | ArrayBuffer | Blob;
}
/**
* Interface for HTTP request headers
* @private
*/
export interface IHttpHeaders {
Accept: string;
'x-ms-protocol-semantics': string;
ServiceNamespace: string;
Authorization: string;
'x-ms-pa-client-custom-headers-options': string;
'x-ms-enable-selects': string;
'x-ms-pa-client-telemetry-options': string;
'x-ms-pa-client-telemetry-additional-data': string;
BatchInfo?: string;
}
/**
* HTTP methods supported by the client
* @private
*/
export declare enum HttpMethod {
GET = "GET",
POST = "POST",
PUT = "PUT",
DELETE = "DELETE",
PATCH = "PATCH"
}
/**
* Interface for OData response format
* @template T The type of data in the response
* @private
*/
export interface ODataResponse<T> {
'@odata.context'?: string;
'@odata.count'?: number;
value: T;
}
/**
* Interface for metadata operation configuration
* @private
*/
export interface IMetadataOperationConfig {
service: string;
action: string;
params?: unknown[];
}
/**
* Interface for operation execution result
* @private
*/
export type OperationExecutionResponse = [Record<string, object>, ArrayBuffer];
/**
* Type alias for possible response data formats
* @private
*/
export type ResponseData = Record<string, unknown> | ArrayBuffer;
/**
* Type alias for request body in data operations
* @private
*/
export type RequestBody = Record<string, unknown>;
/**
* Interface for connection API details
* @private
*/
export interface IConnectionApi {
path: string;
method?: string;
parameters?: string[];
}
/**
* Interface for connection reference details
* @private
*/
export interface IConnectionReference {
apiId?: string;
connectionName?: string;
datasetName?: string;
datasetNameOverride?: string;
tableNameOverride?: string;
isShareableConnection?: string;
runtimePolicyName?: string;
runtimeUrl?: string;
}
/**
* Interface for table schema information
* @private
*/
export interface ITableSchema {
name: string;
displayName?: string;
fields: Record<string, IFieldSchema>;
}
/**
* Interface for field schema information
* @private
*/
export interface IFieldSchema {
name: string;
type: string;
required?: boolean;
maxLength?: number;
defaultValue?: unknown;
}
/**
* Dataverse custom action/function invocation request
* @private
*/
export type DataverseCustomApiRequest = {
action: 'customapi';
parameters: {
/** Schema name of the action or function to invoke */
operationName: string;
/** Logical name of the data source (used to resolve the environment) */
tableName: string;
/** Input parameters passed as the request body */
body?: unknown;
};
};
/**
* Interface for Dataverse-specific requests
* @private
*/
export type IDataverseRequest = DataverseMetadataRequest | DataverseCustomApiRequest;
/**
* Supported data source types in the PowerDataRuntime
* @private
*/
export declare enum DataSources {
/** Dataverse data source */
Dataverse = "Dataverse",
/** Generic connector data source */
Connector = "Connector"
}
/**
* Interface for metadata operations
* @private
*/
export interface IMetadataOperations {
/**
* Gets available connections
*/
getConnections(context?: IOperationContext): Promise<IOperationResult<IConnectionReference[]>>;
/**
* Gets APIs available for a connection
*/
getConnectionApis(connectionId: string, context?: IOperationContext): Promise<IOperationResult<IConnectionApi[]>>;
}
/**
* Interface for runtime client provider
* @private
*/
export interface IRuntimeClientProvider {
getDataClientAsync(config?: IClientConfig): Promise<IRuntimeDataClient>;
getMetadataClientAsync(config?: IClientConfig): Promise<IRuntimeMetadataClient>;
}
/**
* Interface for runtime data client
* @private
*/
export interface IRuntimeDataClient {
createDataAsync<TRequest, TResponse>(url: string, connectionApi: string, serviceNamespace: string, body: TRequest, context?: IOperationContext): Promise<IOperationResult<TResponse>>;
updateDataAsync<TRequest, TResponse>(url: string, connectionApi: string, serviceNamespace: string, body: TRequest, context?: IOperationContext): Promise<IOperationResult<TResponse>>;
uploadDataAsync<TRequest extends string | Uint8Array | ArrayBuffer | Blob>(url: string, connectionApi: string, serviceNamespace: string, body: TRequest, context?: IOperationContext): Promise<IOperationResult<void>>;
deleteDataAsync(url: string, connectionApi: string, serviceNamespace: string, context?: IOperationContext): Promise<IOperationResult<void>>;
retrieveDataAsync<TResponse>(url: string, connectionApi: string, serviceNamespace: string, method: HttpMethod, headers?: {
[key: string]: string;
}, body?: unknown, context?: IOperationContext): Promise<IOperationResult<TResponse>>;
}
/**
* Interface for runtime metadata client
* @private
*/
export interface IRuntimeMetadataClient {
getAppConnectionConfigsAsync(context?: IOperationContext): Promise<IOperationResult<IConnectionReference>>;
getAppDataSourceConfigsAsync(context?: IOperationContext): Promise<IOperationResult<IConnectionApi>>;
}
/**
* Interface for PowerDataSourcesInfoProvider
* @private
*/
export interface IPowerDataSourcesInfoProvider {
getDataSourcesInfo(): Promise<DataSourcesInfo>;
}
//# sourceMappingURL=types.d.ts.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,27 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
/**
* HTTP methods supported by the client
* @private
*/
export var HttpMethod;
(function (HttpMethod) {
HttpMethod["GET"] = "GET";
HttpMethod["POST"] = "POST";
HttpMethod["PUT"] = "PUT";
HttpMethod["DELETE"] = "DELETE";
HttpMethod["PATCH"] = "PATCH";
})(HttpMethod || (HttpMethod = {}));
/**
* Supported data source types in the PowerDataRuntime
* @private
*/
export var DataSources;
(function (DataSources) {
/** Dataverse data source */
DataSources["Dataverse"] = "Dataverse";
/** Generic connector data source */
DataSources["Connector"] = "Connector";
})(DataSources || (DataSources = {}));
//# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/internal/data/core/common/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAmFH;;;GAGG;AACH,MAAM,CAAN,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,yBAAW,CAAA;IACX,2BAAa,CAAA;IACb,yBAAW,CAAA;IACX,+BAAiB,CAAA;IACjB,6BAAe,CAAA;AACjB,CAAC,EANW,UAAU,KAAV,UAAU,QAMrB;AAyHD;;;GAGG;AACH,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,4BAA4B;IAC5B,sCAAuB,CAAA;IACvB,oCAAoC;IACpC,sCAAuB,CAAA;AACzB,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB"}
@@ -0,0 +1,21 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
export declare function arrayBufferToBase64(buffer: ArrayBuffer): string;
export declare function convertArrayBufferToString(buf: ArrayBuffer): string;
/**
* Strict encode: encodeURIComponent, but also encode ( and )
* @private
*/
export declare function strictEncode(str: string): string;
/**
* Extracts the Dataverse base URL and encoded path from a full Dataverse API URL.
* @param url - The full Dataverse API URL (should contain /api/data/v9.x/)
* @returns An object with baseUrl (up to /api/data/v9.x) and encodedPath (strict encoded path after /api/data/v9.x/)
* @private
*/
export declare function extractDataverseUrlParts(url: string): {
baseUrl: string;
encodedPath: string;
};
//# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/internal/data/core/common/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAE/D;AAQD,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,WAAW,GAAG,MAAM,CAWnE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAO9F"}
@@ -0,0 +1,51 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
/*
* Converts an ArrayBuffer to a Base64 string
* @param buffer - The ArrayBuffer to convert
* @return The Base64 encoded string
* @private
*/
export function arrayBufferToBase64(buffer) {
return window.btoa(convertArrayBufferToString(buffer));
}
/*
* Converts an ArrayBuffer to a string
* @param buf - The ArrayBuffer to convert
* @return The converted string
* @private
*/
export function convertArrayBufferToString(buf) {
// String.fromCharCode range max is 65535
if (buf.byteLength <= 65535) {
return String.fromCharCode(...new Uint8Array(buf));
}
let binary = '';
for (let i = 0, bytes = new Uint8Array(buf); i < bytes.byteLength; i++) {
binary += String.fromCharCode(bytes[i]);
}
return binary;
}
/**
* Strict encode: encodeURIComponent, but also encode ( and )
* @private
*/
export function strictEncode(str) {
return encodeURIComponent(str).replace(/\(/g, '%28').replace(/\)/g, '%29');
}
/**
* Extracts the Dataverse base URL and encoded path from a full Dataverse API URL.
* @param url - The full Dataverse API URL (should contain /api/data/v9.x/)
* @returns An object with baseUrl (up to /api/data/v9.x) and encodedPath (strict encoded path after /api/data/v9.x/)
* @private
*/
export function extractDataverseUrlParts(url) {
const baseUrlMatch = url.match(/^(https?:\/\/[^/]+\/api\/data\/v[\d.]+)/);
const baseUrl = baseUrlMatch ? baseUrlMatch[1] : '';
// Extract and encode the path after /api/data/v9.x/
const pathMatch = url.match(/\/api\/data\/v[\d.]+\/(.+)$/);
const encodedPath = pathMatch ? strictEncode(pathMatch[1]) : '';
return { baseUrl, encodedPath };
}
//# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/internal/data/core/common/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAmB;IACrD,OAAO,MAAM,CAAC,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC,CAAC;AACzD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,0BAA0B,CAAC,GAAgB;IACzD,yCAAyC;IACzC,IAAI,GAAG,CAAC,UAAU,IAAI,KAAK,EAAE,CAAC;QAC5B,OAAO,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC;QACvE,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,GAAW;IACtC,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAC7E,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,wBAAwB,CAAC,GAAW;IAClD,MAAM,YAAY,GAAG,GAAG,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACpD,oDAAoD;IACpD,MAAM,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAC3D,MAAM,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAChE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AAClC,CAAC"}

Some files were not shown because too many files have changed in this diff Show More