@microsoft/power-apps 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/app/App.Types.d.ts +1 -1
  2. package/dist/app/Config.d.ts +1 -1
  3. package/dist/app/Config.js +1 -1
  4. package/dist/app/ContextProvider.d.ts +1 -1
  5. package/dist/app/ContextProvider.js +1 -1
  6. package/dist/app/index.d.ts +3 -3
  7. package/dist/app/index.js +2 -2
  8. package/dist/data/Data.types.d.ts +1 -1
  9. package/dist/data/executors/index.d.ts +2 -2
  10. package/dist/data/executors/index.js +1 -1
  11. package/dist/data/index.d.ts +4 -4
  12. package/dist/data/index.js +2 -2
  13. package/dist/data/metadata/dataverse/index.d.ts +2 -2
  14. package/dist/data/metadata/dataverse/index.js +1 -1
  15. package/dist/data/powerAppsData.d.ts +2 -2
  16. package/dist/data/powerAppsData.js +10 -10
  17. package/dist/index.d.ts +3 -3
  18. package/dist/index.js +3 -3
  19. package/dist/internal/data/ConnectionUtils.js +1 -1
  20. package/dist/internal/data/OperationExecutor.d.ts +1 -1
  21. package/dist/internal/data/OperationExecutor.js +2 -2
  22. package/dist/internal/data/core/api/createRecord.d.ts +1 -1
  23. package/dist/internal/data/core/api/createRecord.js +1 -1
  24. package/dist/internal/data/core/api/deleteFileOrImageFromRecord.d.ts +1 -1
  25. package/dist/internal/data/core/api/deleteFileOrImageFromRecord.js +1 -1
  26. package/dist/internal/data/core/api/deleteRecord.d.ts +1 -1
  27. package/dist/internal/data/core/api/deleteRecord.js +1 -1
  28. package/dist/internal/data/core/api/downloadFileFromRecord.d.ts +1 -1
  29. package/dist/internal/data/core/api/downloadFileFromRecord.js +1 -1
  30. package/dist/internal/data/core/api/downloadImageFromRecord.d.ts +1 -1
  31. package/dist/internal/data/core/api/downloadImageFromRecord.js +1 -1
  32. package/dist/internal/data/core/api/execute.d.ts +1 -1
  33. package/dist/internal/data/core/api/execute.js +1 -1
  34. package/dist/internal/data/core/api/retrieveMultipleRecords.d.ts +1 -1
  35. package/dist/internal/data/core/api/retrieveMultipleRecords.js +1 -1
  36. package/dist/internal/data/core/api/retrieveRecord.d.ts +1 -1
  37. package/dist/internal/data/core/api/retrieveRecord.js +1 -1
  38. package/dist/internal/data/core/api/updateRecord.d.ts +1 -1
  39. package/dist/internal/data/core/api/updateRecord.js +1 -1
  40. package/dist/internal/data/core/api/uploadRecord.d.ts +1 -1
  41. package/dist/internal/data/core/api/uploadRecord.js +1 -1
  42. package/dist/internal/data/core/common/types.d.ts +2 -2
  43. package/dist/internal/data/core/data/defaultOperationOrchestrator.d.ts +4 -4
  44. package/dist/internal/data/core/data/defaultOperationOrchestrator.js +3 -3
  45. package/dist/internal/data/core/data/executors/connectorDataOperationExecutor.d.ts +16 -5
  46. package/dist/internal/data/core/data/executors/connectorDataOperationExecutor.d.ts.map +1 -1
  47. package/dist/internal/data/core/data/executors/connectorDataOperationExecutor.js +56 -22
  48. package/dist/internal/data/core/data/executors/connectorDataOperationExecutor.js.map +1 -1
  49. package/dist/internal/data/core/data/executors/dataverseDataOperationExecutor.d.ts +3 -3
  50. package/dist/internal/data/core/data/executors/dataverseDataOperationExecutor.js +6 -6
  51. package/dist/internal/data/core/data/executors/index.d.ts +1 -1
  52. package/dist/internal/data/core/data/executors/index.js +1 -1
  53. package/dist/internal/data/core/data/executors/mockDataOperationExecutor.d.ts +1 -1
  54. package/dist/internal/data/core/data/executors/shared/stringQueryOptions.d.ts +1 -1
  55. package/dist/internal/data/core/error/error.d.ts +4 -4
  56. package/dist/internal/data/core/error/error.js +4 -4
  57. package/dist/internal/data/core/error/messages.d.ts +1 -1
  58. package/dist/internal/data/core/error/messages.js +1 -1
  59. package/dist/internal/data/core/error/types.d.ts +1 -1
  60. package/dist/internal/data/core/error/types.js +2 -2
  61. package/dist/internal/data/core/error/util.d.ts +3 -3
  62. package/dist/internal/data/core/error/util.js +4 -4
  63. package/dist/internal/data/core/metadata/runtimeDataSourceService.d.ts +2 -2
  64. package/dist/internal/data/core/metadata/runtimeDataSourceService.js +1 -1
  65. package/dist/internal/data/core/metadata/runtimeMetadataOperations.d.ts +2 -2
  66. package/dist/internal/data/core/runtime/getRuntimeContext.d.ts +2 -2
  67. package/dist/internal/data/core/runtime/getRuntimeContext.js +3 -3
  68. package/dist/internal/data/core/runtime/powerDataRuntime.d.ts +2 -2
  69. package/dist/internal/data/core/runtime/powerDataRuntime.js +8 -8
  70. package/dist/internal/data/core/runtime/powerDataRuntimeInstance.d.ts +3 -3
  71. package/dist/internal/data/core/runtime/powerDataRuntimeInstance.js +2 -2
  72. package/dist/internal/data/core/runtime/powerDataSourcesInfoProvider.d.ts +2 -2
  73. package/dist/internal/data/core/runtime/powerDataSourcesInfoProvider.js +1 -1
  74. package/dist/internal/data/core/runtimeClient/runtimeClientProvider.d.ts +2 -2
  75. package/dist/internal/data/core/runtimeClient/runtimeClientProvider.js +4 -4
  76. package/dist/internal/data/core/runtimeClient/runtimeDataClient.d.ts +3 -3
  77. package/dist/internal/data/core/runtimeClient/runtimeDataClient.js +4 -4
  78. package/dist/internal/data/core/runtimeClient/runtimeMetadataClient.d.ts +2 -2
  79. package/dist/internal/data/core/runtimeClient/runtimeMetadataClient.js +1 -1
  80. package/dist/internal/data/core/telemetry/log.d.ts +1 -1
  81. package/dist/internal/data/core/types/index.d.ts +2 -2
  82. package/dist/internal/data/index.d.ts +1 -1
  83. package/dist/internal/data/index.js +1 -1
  84. package/dist/internal/plugins/DefaultPowerAppsBridge.d.ts +1 -1
  85. package/dist/internal/plugins/PluginBridge.js +1 -1
  86. package/dist/internal/plugins/SendMessage/CompatibleMessageReceiver.d.ts +1 -1
  87. package/dist/internal/plugins/SendMessage/CompatibleMessageReceiver.js +2 -2
  88. package/dist/internal/plugins/SendMessage/MessageReceiver.Types.d.ts +2 -2
  89. package/dist/internal/plugins/SendMessage/SendMessage.d.ts +1 -1
  90. package/dist/internal/plugins/SendMessage/SendMessage.js +3 -3
  91. package/dist/internal/plugins/SendMessage/index.d.ts +2 -2
  92. package/dist/internal/plugins/SendMessage/index.js +1 -1
  93. package/dist/internal/plugins/index.d.ts +2 -2
  94. package/dist/internal/plugins/index.js +1 -1
  95. package/dist/telemetry/Logger.types.d.ts +1 -1
  96. package/dist/telemetry/LoggerManager.d.ts +1 -1
  97. package/dist/telemetry/LoggerManager.js +1 -1
  98. package/dist/telemetry/index.d.ts +3 -3
  99. package/dist/telemetry/index.js +1 -1
  100. package/package.json +3 -2
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { ILogger } from '../telemetry/Logger.types';
4
+ import type { ILogger } from '../telemetry/Logger.types.js';
5
5
  export interface IConfig {
6
6
  logger?: ILogger;
7
7
  }
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { IConfig } from './App.Types';
4
+ import type { IConfig } from './App.Types.js';
5
5
  export declare function setConfig(config: IConfig): void;
6
6
  //# sourceMappingURL=Config.d.ts.map
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { initializeLogger } from '../telemetry';
4
+ import { initializeLogger } from '../telemetry/index.js';
5
5
  export function setConfig(config) {
6
6
  if (config.logger) {
7
7
  initializeLogger(config.logger);
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { IContext } from './App.Types';
4
+ import type { IContext } from './App.Types.js';
5
5
  export declare function getContext(): Promise<IContext>;
6
6
  //# sourceMappingURL=ContextProvider.d.ts.map
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { executePluginAsync } from '../internal/plugins';
4
+ import { executePluginAsync } from '../internal/plugins/index.js';
5
5
  let context;
6
6
  export async function getContext() {
7
7
  if (context) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- export type { IConfig, IContext } from './App.Types';
5
- export { setConfig } from './Config';
6
- export { getContext } from './ContextProvider';
4
+ export type { IConfig, IContext } from './App.Types.js';
5
+ export { setConfig } from './Config.js';
6
+ export { getContext } from './ContextProvider.js';
7
7
  //# sourceMappingURL=index.d.ts.map
package/dist/app/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- export { setConfig } from './Config';
5
- export { getContext } from './ContextProvider';
4
+ export { setConfig } from './Config.js';
5
+ export { getContext } from './ContextProvider.js';
6
6
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { IDataOperation, IOperationOptions, IOperationResult } from '../internal/data/core/types';
4
+ import type { IDataOperation, IOperationOptions, IOperationResult } from '../internal/data/core/types/index.js';
5
5
  export type Connection = {
6
6
  apiId: string;
7
7
  connectionName: string;
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- export { createMockDataExecutor, type MockDataStore, } from '../../internal/data/core/data/executors/index';
5
- export type { IDataOperationExecutor } from '../../internal/data/core/types';
4
+ export { createMockDataExecutor, type MockDataStore, } from '../../internal/data/core/data/executors/index.js';
5
+ export type { IDataOperationExecutor } from '../../internal/data/core/types/index.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- export { createMockDataExecutor, } from '../../internal/data/core/data/executors/index';
4
+ export { createMockDataExecutor, } from '../../internal/data/core/data/executors/index.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- export type { IOperationOptions, IOperationResult } from '../internal/data/core/types';
5
- export type { DataClient } from './Data.types';
6
- export { deserializeMultiSelectPicklistFields, serializeMultiSelectPicklistFields, } from './multiSelectPicklistUtils';
7
- export { getClient } from './powerAppsData';
4
+ export type { IOperationOptions, IOperationResult } from '../internal/data/core/types/index.js';
5
+ export type { DataClient } from './Data.types.js';
6
+ export { deserializeMultiSelectPicklistFields, serializeMultiSelectPicklistFields, } from './multiSelectPicklistUtils.js';
7
+ export { getClient } from './powerAppsData.js';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- export { deserializeMultiSelectPicklistFields, serializeMultiSelectPicklistFields, } from './multiSelectPicklistUtils';
5
- export { getClient } from './powerAppsData';
4
+ export { deserializeMultiSelectPicklistFields, serializeMultiSelectPicklistFields, } from './multiSelectPicklistUtils.js';
5
+ export { getClient } from './powerAppsData.js';
6
6
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- export type { EntityMetadata, GetEntityMetadataOptions, } from '../../../internal/data/core/types/dataverseMetadata';
5
- export { getAssociatedMenuBehaviorName, getAssociatedMenuGroupName, getAttributeRequiredLevelName, getAttributeTypeCodeName, getCascadeTypeName, getEntityClusterModeName, getOwnershipTypeName, getPrivilegeTypeName, getRelationshipTypeName, getSecurityTypesName, } from '../../../internal/data/core/types/dataverseMetadata';
4
+ export type { EntityMetadata, GetEntityMetadataOptions, } from '../../../internal/data/core/types/dataverseMetadata.js';
5
+ export { getAssociatedMenuBehaviorName, getAssociatedMenuGroupName, getAttributeRequiredLevelName, getAttributeTypeCodeName, getCascadeTypeName, getEntityClusterModeName, getOwnershipTypeName, getPrivilegeTypeName, getRelationshipTypeName, getSecurityTypesName, } from '../../../internal/data/core/types/dataverseMetadata.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- export { getAssociatedMenuBehaviorName, getAssociatedMenuGroupName, getAttributeRequiredLevelName, getAttributeTypeCodeName, getCascadeTypeName, getEntityClusterModeName, getOwnershipTypeName, getPrivilegeTypeName, getRelationshipTypeName, getSecurityTypesName, } from '../../../internal/data/core/types/dataverseMetadata';
4
+ export { getAssociatedMenuBehaviorName, getAssociatedMenuGroupName, getAttributeRequiredLevelName, getAttributeTypeCodeName, getCascadeTypeName, getEntityClusterModeName, getOwnershipTypeName, getPrivilegeTypeName, getRelationshipTypeName, getSecurityTypesName, } from '../../../internal/data/core/types/dataverseMetadata.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { DataSourcesInfo, IDataOperationExecutor } from '../internal/data/core/types';
5
- import type { DataClient } from './Data.types';
4
+ import type { DataSourcesInfo, IDataOperationExecutor } from '../internal/data/core/types/index.js';
5
+ import type { DataClient } from './Data.types.js';
6
6
  export declare function getDataOperationExecutor(): IDataOperationExecutor | undefined;
7
7
  export declare function setDataOperationExecutor(dataOperationExecutorOverride: IDataOperationExecutor): void;
8
8
  export declare function getClient(dataSourcesInfo: DataSourcesInfo): DataClient;
@@ -1,16 +1,16 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { createRecordAsync } from '../internal/data/core/api/createRecord';
5
- import { deleteFileOrImageFromRecord } from '../internal/data/core/api/deleteFileOrImageFromRecord';
6
- import { deleteRecordAsync } from '../internal/data/core/api/deleteRecord';
7
- import { downloadFileFromRecord } from '../internal/data/core/api/downloadFileFromRecord';
8
- import { downloadImageFromRecord } from '../internal/data/core/api/downloadImageFromRecord';
9
- import { executeAsync } from '../internal/data/core/api/execute';
10
- import { retrieveMultipleRecordsAsync } from '../internal/data/core/api/retrieveMultipleRecords';
11
- import { retrieveRecordAsync } from '../internal/data/core/api/retrieveRecord';
12
- import { updateRecordAsync } from '../internal/data/core/api/updateRecord';
13
- import { uploadFileToRecord } from '../internal/data/core/api/uploadRecord';
4
+ import { createRecordAsync } from '../internal/data/core/api/createRecord.js';
5
+ import { deleteFileOrImageFromRecord } from '../internal/data/core/api/deleteFileOrImageFromRecord.js';
6
+ import { deleteRecordAsync } from '../internal/data/core/api/deleteRecord.js';
7
+ import { downloadFileFromRecord } from '../internal/data/core/api/downloadFileFromRecord.js';
8
+ import { downloadImageFromRecord } from '../internal/data/core/api/downloadImageFromRecord.js';
9
+ import { executeAsync } from '../internal/data/core/api/execute.js';
10
+ import { retrieveMultipleRecordsAsync } from '../internal/data/core/api/retrieveMultipleRecords.js';
11
+ import { retrieveRecordAsync } from '../internal/data/core/api/retrieveRecord.js';
12
+ import { updateRecordAsync } from '../internal/data/core/api/updateRecord.js';
13
+ import { uploadFileToRecord } from '../internal/data/core/api/uploadRecord.js';
14
14
  let _dataOperationExecutor;
15
15
  export function getDataOperationExecutor() {
16
16
  return _dataOperationExecutor;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import * as app from './app/index';
5
- import * as data from './data/index';
6
- import * as telemetry from './telemetry/index';
4
+ import * as app from './app/index.js';
5
+ import * as data from './data/index.js';
6
+ import * as telemetry from './telemetry/index.js';
7
7
  export { app, data, telemetry };
8
8
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import * as app from './app/index';
5
- import * as data from './data/index';
6
- import * as telemetry from './telemetry/index';
4
+ import * as app from './app/index.js';
5
+ import * as data from './data/index.js';
6
+ import * as telemetry from './telemetry/index.js';
7
7
  export { app, data, telemetry };
8
8
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { executePluginAsync } from '../plugins';
4
+ import { executePluginAsync } from '../plugins/index.js';
5
5
  let connectionsLoaded = false;
6
6
  /** @private */
7
7
  export async function loadConnections() {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { IOperationResult } from './core/types';
4
+ import type { IOperationResult } from './core/types/index.js';
5
5
  /**
6
6
  * Executes operations using the plugin.
7
7
  * @private
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { executePluginAsync } from '../plugins';
5
- import { loadConnections } from './ConnectionUtils';
4
+ import { executePluginAsync } from '../plugins/index.js';
5
+ import { loadConnections } from './ConnectionUtils.js';
6
6
  let loadConnectionsPromise;
7
7
  /**
8
8
  * Executes operations using the plugin.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { DataSourcesInfo, IOperationResult } from '../types';
4
+ import type { DataSourcesInfo, IOperationResult } from '../types/index.js';
5
5
  /**
6
6
  * Creates a new record in the specified table.
7
7
  * @param dataSourcesInfo - The data sources information.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
4
+ import { getPowerSdkInstance } from '../runtime/getRuntimeContext.js';
5
5
  /**
6
6
  * Creates a new record in the specified table.
7
7
  * @param dataSourcesInfo - The data sources information.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { DataSourcesInfo, IOperationResult } from '../types';
4
+ import type { DataSourcesInfo, IOperationResult } from '../types/index.js';
5
5
  /**
6
6
  * Deletes the file or image data stored in a file/image column of an existing record.
7
7
  * Sends a DELETE request to `/<tableName>(<recordId>)/<columnName>`.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
4
+ import { getPowerSdkInstance } from '../runtime/getRuntimeContext.js';
5
5
  /**
6
6
  * Deletes the file or image data stored in a file/image column of an existing record.
7
7
  * Sends a DELETE request to `/<tableName>(<recordId>)/<columnName>`.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { DataSourcesInfo, IOperationResult } from '../types';
4
+ import type { DataSourcesInfo, IOperationResult } from '../types/index.js';
5
5
  /**
6
6
  * Deletes a record from the specified table.
7
7
  * @param dataSourcesInfo - The data sources information.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
4
+ import { getPowerSdkInstance } from '../runtime/getRuntimeContext.js';
5
5
  /**
6
6
  * Deletes a record from the specified table.
7
7
  * @param dataSourcesInfo - The data sources information.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { DataSourcesInfo, IOperationResult } from '../types';
4
+ import type { DataSourcesInfo, IOperationResult } from '../types/index.js';
5
5
  /**
6
6
  * Downloads binary data from a file column of an existing record (maximum size 128 MB).
7
7
  * Returns the file contents as binary.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
4
+ import { getPowerSdkInstance } from '../runtime/getRuntimeContext.js';
5
5
  /**
6
6
  * Downloads binary data from a file column of an existing record (maximum size 128 MB).
7
7
  * Returns the file contents as binary.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { DataSourcesInfo, IOperationResult } from '../types';
4
+ import type { DataSourcesInfo, IOperationResult } from '../types/index.js';
5
5
  /**
6
6
  * Downloads binary data from an image column of an existing record.
7
7
  * Returns the image contents as binary.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
4
+ import { getPowerSdkInstance } from '../runtime/getRuntimeContext.js';
5
5
  /**
6
6
  * Downloads binary data from an image column of an existing record.
7
7
  * Returns the image contents as binary.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { DataSourcesInfo, IDataOperation, IOperationResult } from '../types';
4
+ import type { DataSourcesInfo, IDataOperation, IOperationResult } from '../types/index.js';
5
5
  /**
6
6
  * Executes a data operation.
7
7
  * @param operation - The data operation to execute.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
4
+ import { getPowerSdkInstance } from '../runtime/getRuntimeContext.js';
5
5
  /**
6
6
  * Executes a data operation.
7
7
  * @param operation - The data operation to execute.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { DataSourcesInfo, IOperationOptions, IOperationResult } from '../types';
4
+ import type { DataSourcesInfo, IOperationOptions, IOperationResult } from '../types/index.js';
5
5
  /**
6
6
  * Retrieves multiple records from the specified table.
7
7
  * @param dataSourcesInfo - The data sources information.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
4
+ import { getPowerSdkInstance } from '../runtime/getRuntimeContext.js';
5
5
  /**
6
6
  * Retrieves multiple records from the specified table.
7
7
  * @param dataSourcesInfo - The data sources information.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { DataSourcesInfo, IOperationOptions, IOperationResult } from '../types';
4
+ import type { DataSourcesInfo, IOperationOptions, IOperationResult } from '../types/index.js';
5
5
  /**
6
6
  * Retrieves a record from the specified table.
7
7
  * @param tableName - The name of the table to retrieve the record from.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
4
+ import { getPowerSdkInstance } from '../runtime/getRuntimeContext.js';
5
5
  /**
6
6
  * Retrieves a record from the specified table.
7
7
  * @param tableName - The name of the table to retrieve the record from.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { DataSourcesInfo, IOperationResult } from '../types';
4
+ import type { DataSourcesInfo, IOperationResult } from '../types/index.js';
5
5
  /**
6
6
  * Updates an existing record in the specified table.
7
7
  * @param dataSourcesInfo - The data sources information.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
4
+ import { getPowerSdkInstance } from '../runtime/getRuntimeContext.js';
5
5
  /**
6
6
  * Updates an existing record in the specified table.
7
7
  * @param dataSourcesInfo - The data sources information.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { DataSourcesInfo, IOperationResult } from '../types';
4
+ import type { DataSourcesInfo, IOperationResult } from '../types/index.js';
5
5
  /**
6
6
  * Uploads to an existing record in the specified table with binary data (maximum size 128 MB).
7
7
  * 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.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { getPowerSdkInstance } from '../runtime/getRuntimeContext';
4
+ import { getPowerSdkInstance } from '../runtime/getRuntimeContext.js';
5
5
  /**
6
6
  * Uploads to an existing record in the specified table with binary data (maximum size 128 MB).
7
7
  * 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.
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { DataSourcesInfo, IOperationResult } from '../types';
5
- import type { DataverseMetadataRequest } from '../types/dataverseMetadata';
4
+ import type { DataSourcesInfo, IOperationResult } from '../types/index.js';
5
+ import type { DataverseMetadataRequest } from '../types/dataverseMetadata.js';
6
6
  /**
7
7
  * Base interface for operation context
8
8
  * @private
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { RuntimeDataSourceService } from '../metadata/runtimeDataSourceService';
5
- import type { IDataOperation, IDataOperationOrchestrator, IOperationOptions, IOperationResult } from '../types';
6
- import type { ConnectorDataOperationExecutor } from './executors/connectorDataOperationExecutor';
7
- import type { DataverseDataOperationExecutor } from './executors/dataverseDataOperationExecutor';
4
+ import type { RuntimeDataSourceService } from '../metadata/runtimeDataSourceService.js';
5
+ import type { IDataOperation, IDataOperationOrchestrator, IOperationOptions, IOperationResult } from '../types/index.js';
6
+ import type { ConnectorDataOperationExecutor } from './executors/connectorDataOperationExecutor.js';
7
+ import type { DataverseDataOperationExecutor } from './executors/dataverseDataOperationExecutor.js';
8
8
  /**
9
9
  * RuntimeDataOperations provides a unified interface for performing data operations
10
10
  * across different data sources.
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import { getDataOperationExecutor } from '../../../../data/powerAppsData';
5
- import { DataSources } from '../common/types';
6
- import { createErrorResponse, DataOperationErrorMessages } from '../error/error';
4
+ import { getDataOperationExecutor } from '../../../../data/powerAppsData.js';
5
+ import { DataSources } from '../common/types.js';
6
+ import { createErrorResponse, DataOperationErrorMessages } from '../error/error.js';
7
7
  /**
8
8
  * RuntimeDataOperations provides a unified interface for performing data operations
9
9
  * across different data sources.
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
- import type { IConnectionReference, IRuntimeClientProvider } from '../../common/types';
5
- import type { RuntimeDataSourceService } from '../../metadata/runtimeDataSourceService';
6
- import type { IDataOperation, IDataOperationExecutor, IOperationOptions, IOperationResult } from '../../types';
4
+ import type { IConnectionReference, IRuntimeClientProvider } from '../../common/types.js';
5
+ import type { RuntimeDataSourceService } from '../../metadata/runtimeDataSourceService.js';
6
+ import type { IDataOperation, IDataOperationExecutor, IOperationOptions, IOperationResult } from '../../types/index.js';
7
7
  /**
8
8
  * Type for connection references mapping
9
9
  * @private
@@ -75,8 +75,12 @@ export declare class ConnectorDataOperationExecutor implements IDataOperationExe
75
75
  */
76
76
  executeAsync<TRequest, TResponse>(operation: IDataOperation<TRequest>): Promise<IOperationResult<TResponse>>;
77
77
  /**
78
- * Determines the appropriate HTTP method for a request
79
- * @param requestUrl - The URL for the request
78
+ * Determines the appropriate HTTP method for a request.
79
+ *
80
+ * The declared method is authoritative and must never be inferred from the runtime URL, which
81
+ * identifies the connector rather than the operation. Codegen declares POST for stored
82
+ * procedures, so they need no special case here.
83
+ *
80
84
  * @param dataSourceInfo - The data source information
81
85
  * @param operation - The operation name
82
86
  * @returns The HTTP method to use
@@ -143,6 +147,13 @@ export declare class ConnectorDataOperationExecutor implements IDataOperationExe
143
147
  * Gets both the data client and connection reference
144
148
  */
145
149
  private _getClientsAndConnection;
150
+ /**
151
+ * Joins a runtimeUrl with a following path segment using a single `/` separator,
152
+ * tolerating either a trailing `/` on the URL or a leading `/` on the segment.
153
+ * The RP returns some runtimeUrls with a trailing slash; without normalization
154
+ * we emit `…/connections//<id>/…`.
155
+ */
156
+ private _joinRuntimeUrl;
146
157
  /**
147
158
  * Builds the URL for shared SQL operations
148
159
  */
@@ -1 +1 @@
1
- {"version":3,"file":"connectorDataOperationExecutor.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/data/core/data/executors/connectorDataOperationExecutor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAU5B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,KAAK,EACV,cAAc,EACd,sBAAsB,EAEtB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAOrB;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAExE;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAkBD;;;;GAIG;AACH,qBAAa,8BAA+B,YAAW,sBAAsB;IAK3E,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAyB;IACzD,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA2B;IAC/D,OAAO,CAAC,mBAAmB,CAAmC;IAC9D,OAAO,CAAC,qBAAqB,CAAmC;gBAO9D,cAAc,EAAE,sBAAsB,EACtC,kBAAkB,EA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C,SAAS,EACxC,SAAS,EAAE,MAAM,EACjB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAuBvC;;OAEG;IACU,4BAA4B,CAAC,SAAS,EACjD,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAC;IA0BzC;;OAEG;IACU,YAAY,CAAC,QAAQ,EAAE,SAAS,EAC3C,SAAS,EAAE,cAAc,CAAC,QAAQ,CAAC,GAClC,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAwDvC;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAoBtB;;OAEG;YACW,mBAAmB;IAoBjC;;OAEG;YACW,wBAAwB;IAyCtC;;;;;;;;OAQG;YACW,qBAAqB;IAkBnC;;;;;;;;OAQG;YACW,0BAA0B;IAkDxC;;;;;;;OAOG;YACW,cAAc;IA2B5B;;OAEG;YACW,kBAAkB;IAsBhC;;OAEG;YACW,6BAA6B;IAW3C;;OAEG;YACW,2BAA2B;IAWzC;;OAEG;YACW,kBAAkB;IAQhC;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAQ/B;;OAEG;YACW,wBAAwB;IAUtC;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAKnC;;;;;;;;;;;;;OAaG;YACW,0BAA0B;IAwFxC;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAQhC;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;IAuC1B;;OAEG;YACW,mBAAmB;IA0BjC;;OAEG;YACW,cAAc;IAK5B;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAYlC;;OAEG;IACH,OAAO,CAAC,aAAa;CAetB"}
1
+ {"version":3,"file":"connectorDataOperationExecutor.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/data/core/data/executors/connectorDataOperationExecutor.ts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