@microsoft/power-apps 0.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 (291) hide show
  1. package/LICENSE +153 -0
  2. package/README.md +63 -0
  3. package/lib/__tests__/connectorDataOperationExecutor.spec.d.ts +5 -0
  4. package/lib/__tests__/connectorDataOperationExecutor.spec.d.ts.map +1 -0
  5. package/lib/__tests__/connectorDataOperationExecutor.spec.js +509 -0
  6. package/lib/__tests__/connectorDataOperationExecutor.spec.js.map +1 -0
  7. package/lib/__tests__/dataverseDataOperationExecutor.spec.d.ts +5 -0
  8. package/lib/__tests__/dataverseDataOperationExecutor.spec.d.ts.map +1 -0
  9. package/lib/__tests__/dataverseDataOperationExecutor.spec.js +349 -0
  10. package/lib/__tests__/dataverseDataOperationExecutor.spec.js.map +1 -0
  11. package/lib/__tests__/helpers/testHelpers.d.ts +27 -0
  12. package/lib/__tests__/helpers/testHelpers.d.ts.map +1 -0
  13. package/lib/__tests__/helpers/testHelpers.js +67 -0
  14. package/lib/__tests__/helpers/testHelpers.js.map +1 -0
  15. package/lib/__tests__/index.spec.d.ts +5 -0
  16. package/lib/__tests__/index.spec.d.ts.map +1 -0
  17. package/lib/__tests__/index.spec.js +10 -0
  18. package/lib/__tests__/index.spec.js.map +1 -0
  19. package/lib/__tests__/mockDataOperationExecutor.spec.d.ts +5 -0
  20. package/lib/__tests__/mockDataOperationExecutor.spec.d.ts.map +1 -0
  21. package/lib/__tests__/mockDataOperationExecutor.spec.js +51 -0
  22. package/lib/__tests__/mockDataOperationExecutor.spec.js.map +1 -0
  23. package/lib/__tests__/mocks/mockDataverseRetrieveMultipleResponse.d.ts +17 -0
  24. package/lib/__tests__/mocks/mockDataverseRetrieveMultipleResponse.d.ts.map +1 -0
  25. package/lib/__tests__/mocks/mockDataverseRetrieveMultipleResponse.js +35 -0
  26. package/lib/__tests__/mocks/mockDataverseRetrieveMultipleResponse.js.map +1 -0
  27. package/lib/__tests__/mocks/mockLog.d.ts +31 -0
  28. package/lib/__tests__/mocks/mockLog.d.ts.map +1 -0
  29. package/lib/__tests__/mocks/mockLog.js +53 -0
  30. package/lib/__tests__/mocks/mockLog.js.map +1 -0
  31. package/lib/__tests__/mocks/mockTeamsConnectorResponse.d.ts +76 -0
  32. package/lib/__tests__/mocks/mockTeamsConnectorResponse.d.ts.map +1 -0
  33. package/lib/__tests__/mocks/mockTeamsConnectorResponse.js +81 -0
  34. package/lib/__tests__/mocks/mockTeamsConnectorResponse.js.map +1 -0
  35. package/lib/__tests__/mocks/silenceConsole.d.ts +37 -0
  36. package/lib/__tests__/mocks/silenceConsole.d.ts.map +1 -0
  37. package/lib/__tests__/mocks/silenceConsole.js +58 -0
  38. package/lib/__tests__/mocks/silenceConsole.js.map +1 -0
  39. package/lib/__tests__/powerDataRuntimeInstance.test.d.ts +5 -0
  40. package/lib/__tests__/powerDataRuntimeInstance.test.d.ts.map +1 -0
  41. package/lib/__tests__/powerDataRuntimeInstance.test.js +179 -0
  42. package/lib/__tests__/powerDataRuntimeInstance.test.js.map +1 -0
  43. package/lib/__tests__/powerDataSourcesInfoProvider.test.d.ts +5 -0
  44. package/lib/__tests__/powerDataSourcesInfoProvider.test.d.ts.map +1 -0
  45. package/lib/__tests__/powerDataSourcesInfoProvider.test.js +153 -0
  46. package/lib/__tests__/powerDataSourcesInfoProvider.test.js.map +1 -0
  47. package/lib/__tests__/runtimeClientProvider.test.d.ts +5 -0
  48. package/lib/__tests__/runtimeClientProvider.test.d.ts.map +1 -0
  49. package/lib/__tests__/runtimeClientProvider.test.js +248 -0
  50. package/lib/__tests__/runtimeClientProvider.test.js.map +1 -0
  51. package/lib/__tests__/runtimeDataClient.spec.d.ts +2 -0
  52. package/lib/__tests__/runtimeDataClient.spec.d.ts.map +1 -0
  53. package/lib/__tests__/runtimeDataClient.spec.js +351 -0
  54. package/lib/__tests__/runtimeDataClient.spec.js.map +1 -0
  55. package/lib/__tests__/runtimeDataClient.test.d.ts +2 -0
  56. package/lib/__tests__/runtimeDataClient.test.d.ts.map +1 -0
  57. package/lib/__tests__/runtimeDataClient.test.js +351 -0
  58. package/lib/__tests__/runtimeDataClient.test.js.map +1 -0
  59. package/lib/__tests__/runtimeDataOperation.test.d.ts +5 -0
  60. package/lib/__tests__/runtimeDataOperation.test.d.ts.map +1 -0
  61. package/lib/__tests__/runtimeDataOperation.test.js +234 -0
  62. package/lib/__tests__/runtimeDataOperation.test.js.map +1 -0
  63. package/lib/__tests__/runtimeMetadataClient.test.d.ts +5 -0
  64. package/lib/__tests__/runtimeMetadataClient.test.d.ts.map +1 -0
  65. package/lib/__tests__/runtimeMetadataClient.test.js +271 -0
  66. package/lib/__tests__/runtimeMetadataClient.test.js.map +1 -0
  67. package/lib/__tests__/runtimeMetadataOperations.test.d.ts +5 -0
  68. package/lib/__tests__/runtimeMetadataOperations.test.d.ts.map +1 -0
  69. package/lib/__tests__/runtimeMetadataOperations.test.js +286 -0
  70. package/lib/__tests__/runtimeMetadataOperations.test.js.map +1 -0
  71. package/lib/__tests__/serviceSchemaModelSnapshot.test.d.ts +2 -0
  72. package/lib/__tests__/serviceSchemaModelSnapshot.test.d.ts.map +1 -0
  73. package/lib/__tests__/serviceSchemaModelSnapshot.test.js +98 -0
  74. package/lib/__tests__/serviceSchemaModelSnapshot.test.js.map +1 -0
  75. package/lib/__tests__/types.spec.d.ts +5 -0
  76. package/lib/__tests__/types.spec.d.ts.map +1 -0
  77. package/lib/__tests__/types.spec.js +104 -0
  78. package/lib/__tests__/types.spec.js.map +1 -0
  79. package/lib/__tests__/utils.test.d.ts +5 -0
  80. package/lib/__tests__/utils.test.d.ts.map +1 -0
  81. package/lib/__tests__/utils.test.js +33 -0
  82. package/lib/__tests__/utils.test.js.map +1 -0
  83. package/lib/app/Lifecycle.d.ts +14 -0
  84. package/lib/app/Lifecycle.d.ts.map +1 -0
  85. package/lib/app/Lifecycle.js +37 -0
  86. package/lib/app/Lifecycle.js.map +1 -0
  87. package/lib/app/index.d.ts +5 -0
  88. package/lib/app/index.d.ts.map +1 -0
  89. package/lib/app/index.js +5 -0
  90. package/lib/app/index.js.map +1 -0
  91. package/lib/data/Data.types.d.ts +20 -0
  92. package/lib/data/Data.types.d.ts.map +1 -0
  93. package/lib/data/Data.types.js +5 -0
  94. package/lib/data/Data.types.js.map +1 -0
  95. package/lib/data/executors/index.d.ts +6 -0
  96. package/lib/data/executors/index.d.ts.map +1 -0
  97. package/lib/data/executors/index.js +5 -0
  98. package/lib/data/executors/index.js.map +1 -0
  99. package/lib/data/index.d.ts +7 -0
  100. package/lib/data/index.d.ts.map +1 -0
  101. package/lib/data/index.js +5 -0
  102. package/lib/data/index.js.map +1 -0
  103. package/lib/data/powerAppsData.d.ts +10 -0
  104. package/lib/data/powerAppsData.d.ts.map +1 -0
  105. package/lib/data/powerAppsData.js +43 -0
  106. package/lib/data/powerAppsData.js.map +1 -0
  107. package/lib/index.d.ts +8 -0
  108. package/lib/index.d.ts.map +1 -0
  109. package/lib/index.js +8 -0
  110. package/lib/index.js.map +1 -0
  111. package/lib/internal/communication/CompatibleMessageReceiver.d.ts +12 -0
  112. package/lib/internal/communication/CompatibleMessageReceiver.d.ts.map +1 -0
  113. package/lib/internal/communication/CompatibleMessageReceiver.js +92 -0
  114. package/lib/internal/communication/CompatibleMessageReceiver.js.map +1 -0
  115. package/lib/internal/communication/IncompatibleMessageReceiver.d.ts +10 -0
  116. package/lib/internal/communication/IncompatibleMessageReceiver.d.ts.map +1 -0
  117. package/lib/internal/communication/IncompatibleMessageReceiver.js +13 -0
  118. package/lib/internal/communication/IncompatibleMessageReceiver.js.map +1 -0
  119. package/lib/internal/communication/MessageReceiver.Types.d.ts +18 -0
  120. package/lib/internal/communication/MessageReceiver.Types.d.ts.map +1 -0
  121. package/lib/internal/communication/MessageReceiver.Types.js +5 -0
  122. package/lib/internal/communication/MessageReceiver.Types.js.map +1 -0
  123. package/lib/internal/communication/SendMessage.d.ts +11 -0
  124. package/lib/internal/communication/SendMessage.d.ts.map +1 -0
  125. package/lib/internal/communication/SendMessage.js +32 -0
  126. package/lib/internal/communication/SendMessage.js.map +1 -0
  127. package/lib/internal/communication/SendMessageOperation.d.ts +15 -0
  128. package/lib/internal/communication/SendMessageOperation.d.ts.map +1 -0
  129. package/lib/internal/communication/SendMessageOperation.js +18 -0
  130. package/lib/internal/communication/SendMessageOperation.js.map +1 -0
  131. package/lib/internal/data/ConnectionUtils.d.ts +5 -0
  132. package/lib/internal/data/ConnectionUtils.d.ts.map +1 -0
  133. package/lib/internal/data/ConnectionUtils.js +20 -0
  134. package/lib/internal/data/ConnectionUtils.js.map +1 -0
  135. package/lib/internal/data/OperationExecutor.d.ts +18 -0
  136. package/lib/internal/data/OperationExecutor.d.ts.map +1 -0
  137. package/lib/internal/data/OperationExecutor.js +35 -0
  138. package/lib/internal/data/OperationExecutor.js.map +1 -0
  139. package/lib/internal/data/core/api/createRecord.d.ts +13 -0
  140. package/lib/internal/data/core/api/createRecord.d.ts.map +1 -0
  141. package/lib/internal/data/core/api/createRecord.js +15 -0
  142. package/lib/internal/data/core/api/createRecord.js.map +1 -0
  143. package/lib/internal/data/core/api/deleteRecord.d.ts +13 -0
  144. package/lib/internal/data/core/api/deleteRecord.d.ts.map +1 -0
  145. package/lib/internal/data/core/api/deleteRecord.js +15 -0
  146. package/lib/internal/data/core/api/deleteRecord.js.map +1 -0
  147. package/lib/internal/data/core/api/execute.d.ts +11 -0
  148. package/lib/internal/data/core/api/execute.d.ts.map +1 -0
  149. package/lib/internal/data/core/api/execute.js +13 -0
  150. package/lib/internal/data/core/api/execute.js.map +1 -0
  151. package/lib/internal/data/core/api/retrieveMultipleRecords.d.ts +13 -0
  152. package/lib/internal/data/core/api/retrieveMultipleRecords.d.ts.map +1 -0
  153. package/lib/internal/data/core/api/retrieveMultipleRecords.js +15 -0
  154. package/lib/internal/data/core/api/retrieveMultipleRecords.js.map +1 -0
  155. package/lib/internal/data/core/api/retrieveRecord.d.ts +13 -0
  156. package/lib/internal/data/core/api/retrieveRecord.d.ts.map +1 -0
  157. package/lib/internal/data/core/api/retrieveRecord.js +15 -0
  158. package/lib/internal/data/core/api/retrieveRecord.js.map +1 -0
  159. package/lib/internal/data/core/api/updateRecord.d.ts +14 -0
  160. package/lib/internal/data/core/api/updateRecord.d.ts.map +1 -0
  161. package/lib/internal/data/core/api/updateRecord.js +16 -0
  162. package/lib/internal/data/core/api/updateRecord.js.map +1 -0
  163. package/lib/internal/data/core/common/types.d.ts +230 -0
  164. package/lib/internal/data/core/common/types.d.ts.map +1 -0
  165. package/lib/internal/data/core/common/types.js +25 -0
  166. package/lib/internal/data/core/common/types.js.map +1 -0
  167. package/lib/internal/data/core/common/utils.d.ts +19 -0
  168. package/lib/internal/data/core/common/utils.d.ts.map +1 -0
  169. package/lib/internal/data/core/common/utils.js +47 -0
  170. package/lib/internal/data/core/common/utils.js.map +1 -0
  171. package/lib/internal/data/core/data/defaultOperationOrchestrator.d.ts +93 -0
  172. package/lib/internal/data/core/data/defaultOperationOrchestrator.d.ts.map +1 -0
  173. package/lib/internal/data/core/data/defaultOperationOrchestrator.js +249 -0
  174. package/lib/internal/data/core/data/defaultOperationOrchestrator.js.map +1 -0
  175. package/lib/internal/data/core/data/executors/connectorDataOperationExecutor.d.ts +160 -0
  176. package/lib/internal/data/core/data/executors/connectorDataOperationExecutor.d.ts.map +1 -0
  177. package/lib/internal/data/core/data/executors/connectorDataOperationExecutor.js +500 -0
  178. package/lib/internal/data/core/data/executors/connectorDataOperationExecutor.js.map +1 -0
  179. package/lib/internal/data/core/data/executors/dataverseDataOperationExecutor.d.ts +164 -0
  180. package/lib/internal/data/core/data/executors/dataverseDataOperationExecutor.d.ts.map +1 -0
  181. package/lib/internal/data/core/data/executors/dataverseDataOperationExecutor.js +508 -0
  182. package/lib/internal/data/core/data/executors/dataverseDataOperationExecutor.js.map +1 -0
  183. package/lib/internal/data/core/data/executors/index.d.ts +5 -0
  184. package/lib/internal/data/core/data/executors/index.d.ts.map +1 -0
  185. package/lib/internal/data/core/data/executors/index.js +5 -0
  186. package/lib/internal/data/core/data/executors/index.js.map +1 -0
  187. package/lib/internal/data/core/data/executors/mockDataOperationExecutor.d.ts +21 -0
  188. package/lib/internal/data/core/data/executors/mockDataOperationExecutor.d.ts.map +1 -0
  189. package/lib/internal/data/core/data/executors/mockDataOperationExecutor.js +75 -0
  190. package/lib/internal/data/core/data/executors/mockDataOperationExecutor.js.map +1 -0
  191. package/lib/internal/data/core/error/codes.d.ts +31 -0
  192. package/lib/internal/data/core/error/codes.d.ts.map +1 -0
  193. package/lib/internal/data/core/error/codes.js +39 -0
  194. package/lib/internal/data/core/error/codes.js.map +1 -0
  195. package/lib/internal/data/core/error/constants.d.ts +30 -0
  196. package/lib/internal/data/core/error/constants.d.ts.map +1 -0
  197. package/lib/internal/data/core/error/constants.js +33 -0
  198. package/lib/internal/data/core/error/constants.js.map +1 -0
  199. package/lib/internal/data/core/error/error.d.ts +8 -0
  200. package/lib/internal/data/core/error/error.d.ts.map +1 -0
  201. package/lib/internal/data/core/error/error.js +8 -0
  202. package/lib/internal/data/core/error/error.js.map +1 -0
  203. package/lib/internal/data/core/error/messages.d.ts +24 -0
  204. package/lib/internal/data/core/error/messages.d.ts.map +1 -0
  205. package/lib/internal/data/core/error/messages.js +55 -0
  206. package/lib/internal/data/core/error/messages.js.map +1 -0
  207. package/lib/internal/data/core/error/types.d.ts +30 -0
  208. package/lib/internal/data/core/error/types.d.ts.map +1 -0
  209. package/lib/internal/data/core/error/types.js +28 -0
  210. package/lib/internal/data/core/error/types.js.map +1 -0
  211. package/lib/internal/data/core/error/util.d.ts +24 -0
  212. package/lib/internal/data/core/error/util.d.ts.map +1 -0
  213. package/lib/internal/data/core/error/util.js +71 -0
  214. package/lib/internal/data/core/error/util.js.map +1 -0
  215. package/lib/internal/data/core/metadata/runtimeDataSourceService.d.ts +65 -0
  216. package/lib/internal/data/core/metadata/runtimeDataSourceService.d.ts.map +1 -0
  217. package/lib/internal/data/core/metadata/runtimeDataSourceService.js +101 -0
  218. package/lib/internal/data/core/metadata/runtimeDataSourceService.js.map +1 -0
  219. package/lib/internal/data/core/metadata/runtimeMetadataOperations.d.ts +17 -0
  220. package/lib/internal/data/core/metadata/runtimeMetadataOperations.d.ts.map +1 -0
  221. package/lib/internal/data/core/metadata/runtimeMetadataOperations.js +34 -0
  222. package/lib/internal/data/core/metadata/runtimeMetadataOperations.js.map +1 -0
  223. package/lib/internal/data/core/runtime/getRuntimeContext.d.ts +11 -0
  224. package/lib/internal/data/core/runtime/getRuntimeContext.d.ts.map +1 -0
  225. package/lib/internal/data/core/runtime/getRuntimeContext.js +16 -0
  226. package/lib/internal/data/core/runtime/getRuntimeContext.js.map +1 -0
  227. package/lib/internal/data/core/runtime/initializeRuntime.d.ts +13 -0
  228. package/lib/internal/data/core/runtime/initializeRuntime.d.ts.map +1 -0
  229. package/lib/internal/data/core/runtime/initializeRuntime.js +38 -0
  230. package/lib/internal/data/core/runtime/initializeRuntime.js.map +1 -0
  231. package/lib/internal/data/core/runtime/powerDataRuntime.d.ts +68 -0
  232. package/lib/internal/data/core/runtime/powerDataRuntime.d.ts.map +1 -0
  233. package/lib/internal/data/core/runtime/powerDataRuntime.js +116 -0
  234. package/lib/internal/data/core/runtime/powerDataRuntime.js.map +1 -0
  235. package/lib/internal/data/core/runtime/powerDataRuntimeInstance.d.ts +20 -0
  236. package/lib/internal/data/core/runtime/powerDataRuntimeInstance.d.ts.map +1 -0
  237. package/lib/internal/data/core/runtime/powerDataRuntimeInstance.js +36 -0
  238. package/lib/internal/data/core/runtime/powerDataRuntimeInstance.js.map +1 -0
  239. package/lib/internal/data/core/runtime/powerDataSourcesInfoProvider.d.ts +34 -0
  240. package/lib/internal/data/core/runtime/powerDataSourcesInfoProvider.d.ts.map +1 -0
  241. package/lib/internal/data/core/runtime/powerDataSourcesInfoProvider.js +45 -0
  242. package/lib/internal/data/core/runtime/powerDataSourcesInfoProvider.js.map +1 -0
  243. package/lib/internal/data/core/runtimeClient/runtimeClientProvider.d.ts +43 -0
  244. package/lib/internal/data/core/runtimeClient/runtimeClientProvider.d.ts.map +1 -0
  245. package/lib/internal/data/core/runtimeClient/runtimeClientProvider.js +87 -0
  246. package/lib/internal/data/core/runtimeClient/runtimeClientProvider.js.map +1 -0
  247. package/lib/internal/data/core/runtimeClient/runtimeDataClient.d.ts +112 -0
  248. package/lib/internal/data/core/runtimeClient/runtimeDataClient.d.ts.map +1 -0
  249. package/lib/internal/data/core/runtimeClient/runtimeDataClient.js +457 -0
  250. package/lib/internal/data/core/runtimeClient/runtimeDataClient.js.map +1 -0
  251. package/lib/internal/data/core/runtimeClient/runtimeMetadataClient.d.ts +40 -0
  252. package/lib/internal/data/core/runtimeClient/runtimeMetadataClient.d.ts.map +1 -0
  253. package/lib/internal/data/core/runtimeClient/runtimeMetadataClient.js +94 -0
  254. package/lib/internal/data/core/runtimeClient/runtimeMetadataClient.js.map +1 -0
  255. package/lib/internal/data/core/telemetry/log.d.ts +20 -0
  256. package/lib/internal/data/core/telemetry/log.d.ts.map +1 -0
  257. package/lib/internal/data/core/telemetry/log.js +85 -0
  258. package/lib/internal/data/core/telemetry/log.js.map +1 -0
  259. package/lib/internal/data/core/types/index.d.ts +164 -0
  260. package/lib/internal/data/core/types/index.d.ts.map +1 -0
  261. package/lib/internal/data/core/types/index.js +7 -0
  262. package/lib/internal/data/core/types/index.js.map +1 -0
  263. package/lib/internal/plugin/PluginCommon.d.ts +16 -0
  264. package/lib/internal/plugin/PluginCommon.d.ts.map +1 -0
  265. package/lib/internal/plugin/PluginCommon.js +116 -0
  266. package/lib/internal/plugin/PluginCommon.js.map +1 -0
  267. package/lib/internal/plugin/PluginMobile.d.ts +13 -0
  268. package/lib/internal/plugin/PluginMobile.d.ts.map +1 -0
  269. package/lib/internal/plugin/PluginMobile.js +109 -0
  270. package/lib/internal/plugin/PluginMobile.js.map +1 -0
  271. package/lib/telemetry/Logger.types.d.ts +8 -0
  272. package/lib/telemetry/Logger.types.d.ts.map +1 -0
  273. package/lib/telemetry/Logger.types.js +5 -0
  274. package/lib/telemetry/Logger.types.js.map +1 -0
  275. package/lib/telemetry/LoggerManager.d.ts +6 -0
  276. package/lib/telemetry/LoggerManager.d.ts.map +1 -0
  277. package/lib/telemetry/LoggerManager.js +28 -0
  278. package/lib/telemetry/LoggerManager.js.map +1 -0
  279. package/lib/telemetry/Metrics.types.d.ts +53 -0
  280. package/lib/telemetry/Metrics.types.d.ts.map +1 -0
  281. package/lib/telemetry/Metrics.types.js +5 -0
  282. package/lib/telemetry/Metrics.types.js.map +1 -0
  283. package/lib/telemetry/Performance.d.ts +5 -0
  284. package/lib/telemetry/Performance.d.ts.map +1 -0
  285. package/lib/telemetry/Performance.js +47 -0
  286. package/lib/telemetry/Performance.js.map +1 -0
  287. package/lib/telemetry/index.d.ts +5 -0
  288. package/lib/telemetry/index.d.ts.map +1 -0
  289. package/lib/telemetry/index.js +5 -0
  290. package/lib/telemetry/index.js.map +1 -0
  291. package/package.json +44 -0
package/LICENSE ADDED
@@ -0,0 +1,153 @@
1
+ MICROSOFT SOFTWARE LICENSE TERMS
2
+ MICROSOFT POWER PLATFORM – @MICROSOFT/POWER-APPS
3
+
4
+ August 2025
5
+ These license terms are an agreement between you and Microsoft Corporation (or one of its affiliates). They
6
+ apply to the software named above and any Microsoft services or software updates (except to the extent such
7
+ services or updates are accompanied by new or additional terms, in which case those different terms apply
8
+ prospectively and do not alter your or Microsoft’s rights relating to pre-updated software or services). IF YOU
9
+ COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW. BY USING THE SOFTWARE, YOU
10
+ ACCEPT THESE TERMS.
11
+ 1. INSTALLATION AND USE RIGHTS.
12
+ a) General. You may install and use any number of copies of the software to develop and test your
13
+ applications.
14
+ b) Third Party Components. The software may include third party components with separate legal
15
+ notices or governed by other agreements, as may be described in the ThirdPartyNotices file(s)
16
+ accompanying the software.
17
+ c) Work or School Accounts. You can sign into the software with a work or school email address. If
18
+ you do, you agree that the owner of the domain associated with your email address may control and
19
+ administer your account, and access and process your data, including the contents of your
20
+ communications and files. You further agree that your use of the software may be subject to: i) your
21
+ organization’s guidelines and policies regarding the use of the software; and ii) the agreements
22
+ Microsoft has with you or your organization, and in such case these terms may not apply. If you
23
+ already have a Microsoft account and you use a separate work or school email address to access the
24
+ software, you may be prompted to update the email address associated with your Microsoft account to
25
+ continue accessing the software.
26
+ 2. SCOPE OF LICENSE. The software is licensed, not sold. Microsoft reserves all other rights. Unless
27
+ applicable law gives you more rights despite this limitation, you will not (and have no right to):
28
+ a) work around any technical limitations in the software that only allow you to use it in certain ways;
29
+ b) reverse engineer, decompile or disassemble the software, or otherwise attempt to derive the source
30
+ code for the software, except and to the extent required by third party licensing terms governing use
31
+ of certain open source components that may be included in the software;
32
+ c) remove, minimize, block, or modify any notices of Microsoft or its suppliers in the software;
33
+ d) use the software in any way that is against the law or to create or propagate malware; or
34
+ e) share, publish, distribute, or lease the software (except for any distributable code, subject to the
35
+ terms above), provide the software as a stand-alone offering for others to use, or transfer the
36
+ software or this agreement to any third party.
37
+ 3. DATA.
38
+ a) Data Collection. The software may collect information about you and your use of the software, and
39
+ send that to Microsoft. Microsoft may use this information to provide services and improve our
40
+ products and services. You may opt-out of many of these scenarios, but not all, as described in the
41
+ product documentation. There are also some features in the software that may enable you to collect
42
+ data from users of your applications. If you use these features to enable data collection in your
43
+ applications, you must comply with applicable law, including providing appropriate notices to users of
44
+ your applications. You can learn more about data collection and use in the help documentation and
45
+ the privacy statement at https://go.microsoft.com/fwlink/?linkid=521839. Your use of the software
46
+ operates as your consent to these practices.
47
+ b) Processing of Personal Data. To the extent Microsoft is a processor or subprocessor of personal
48
+ data in connection with the software, Microsoft makes the commitments in the European Union
49
+ General Data Protection Regulation Terms of the Microsoft Products and Services Data Protection
50
+ Addendum to all customers effective May 25, 2018, at
51
+ https://go.microsoft.com/fwlink/?linkid=2135030.
52
+ 4. COMPLIANCE WITH TRADE LAWS. Microsoft products, software, technology, and services (“Items”)
53
+ may be subject to U.S. and other countries’ export jurisdictions. Each party will comply with all laws and
54
+ regulations applicable to the import or export of the Items, including, without limitation, trade laws of the
55
+ U.S., EU, and UK, such as the U.S. Export Administration Regulations, sanctions regulations administered
56
+ by the U.S. Office of Foreign Assets Control, the EU Dual Use Regulation 2021/821, and/or other end-user,
57
+ end use, and destination restrictions (“Trade Laws”) as well as the global legal compliance standards
58
+ detailed in the Microsoft Standards of Business Conduct. Customer will not, and will ensure its Affiliates
59
+ will not, take any action that causes Microsoft to violate applicable Trade Laws. Microsoft may suspend or
60
+ terminate this agreement immediately without notice to the extent that Microsoft reasonably believes that
61
+ performance would cause it to violate Trade Laws or put it at risk of becoming subject to sanctions and
62
+ penalties under such laws. Customer remains responsible for its and for its Affiliates’ compliance with this
63
+ section and, to the extent applicable, the Regional Trade Compliance Addendum incorporated herein by
64
+ reference.
65
+ 5. SUPPORT SERVICES. Microsoft is not obligated under this agreement to provide any support services for
66
+ the software. Any support provided is “as is”, “with all faults”, and without warranty of any kind.
67
+ 6. ENTIRE AGREEMENT. This agreement, and any other terms Microsoft may provide for supplements,
68
+ updates, or third-party applications, is the entire agreement for the software.
69
+ 7. APPLICABLE LAW AND PLACE TO RESOLVE DISPUTES. If you acquired the software in the United
70
+ States or Canada, the laws of the state or province where you live (or, if a business, where your principal
71
+ place of business is located) govern the interpretation of this agreement, claims for its breach, and all
72
+ other claims (including consumer protection, unfair competition, and tort claims), regardless of conflict of
73
+ laws principles. If you acquired the software in any other country, its laws apply. If U.S. federal jurisdiction
74
+ exists, you and Microsoft consent to exclusive jurisdiction and venue in the federal court in King County,
75
+ Washington for all disputes heard in court. If not, you and Microsoft consent to exclusive jurisdiction and
76
+ venue in the Superior Court of King County, Washington for all disputes heard in court.
77
+ 8. CONSUMER RIGHTS; REGIONAL VARIATIONS. This agreement describes certain legal rights. You
78
+ may have other rights, including consumer rights, under the laws of your state or country. Separate and
79
+ apart from your relationship with Microsoft, you may also have rights with respect to the party from which
80
+ you acquired the software. This agreement does not change those other rights if the laws of your state or
81
+ country do not permit it to do so. For example, if you acquired the software in one of the below regions, or
82
+ mandatory country law applies, then the following provisions apply to you:
83
+ a) Australia. You have statutory guarantees under the Australian Consumer Law and nothing in this
84
+ agreement is intended to affect those rights.
85
+ b) Canada. If you acquired this software in Canada, you may stop receiving updates by turning off the
86
+ automatic update feature, disconnecting your device from the Internet (if and when you re-connect to
87
+ the Internet, however, the software will resume checking for and installing updates), or uninstalling
88
+ the software. The product documentation, if any, may also specify how to turn off updates for your
89
+ specific device or software.
90
+ c) Germany and Austria.
91
+ i. Warranty. The properly licensed software will perform substantially as described in any Microsoft
92
+ materials that accompany the software. However, Microsoft gives no contractual guarantee in
93
+ relation to the licensed software.
94
+ ii. Limitation of Liability. In case of intentional conduct, gross negligence, claims based on the
95
+ Product Liability Act, as well as, in case of death or personal or physical injury, Microsoft is liable
96
+ according to the statutory law.
97
+ Subject to the foregoing clause ii., Microsoft will only be liable for slight negligence if Microsoft is in
98
+ breach of such material contractual obligations, the fulfillment of which facilitate the due performance
99
+ of this agreement, the breach of which would endanger the purpose of this agreement and the
100
+ compliance with which a party may constantly trust in (so-called "cardinal obligations"). In other cases
101
+ of slight negligence, Microsoft will not be liable for slight negligence.
102
+ 9. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS IS.” YOU BEAR THE RISK OF
103
+ USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES, OR CONDITIONS.
104
+ TO THE EXTENT PERMITTED UNDER APPLICABLE LAWS, MICROSOFT EXCLUDES ALL IMPLIED
105
+ WARRANTIES, INCLUDING MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
106
+ NON-INFRINGEMENT.
107
+ 10. LIMITATION ON AND EXCLUSION OF DAMAGES. IF YOU HAVE ANY BASIS FOR RECOVERING
108
+ DAMAGES DESPITE THE PRECEDING DISCLAIMER OF WARRANTY, YOU CAN RECOVER FROM
109
+ MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT
110
+ RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL,
111
+ INDIRECT, OR INCIDENTAL DAMAGES.
112
+ This limitation applies to (a) anything related to the software, services, content (including
113
+ code) on third party Internet sites, or third party applications; and (b) claims for breach of
114
+ contract, warranty, guarantee, or condition; strict liability, negligence, or other tort; or any
115
+ other claim; in each case to the extent permitted by applicable law.
116
+ It also applies even if Microsoft knew or should have known about the possibility of the
117
+ damages. The above limitation or exclusion may not apply to you because your state,
118
+ province, or country may not allow the exclusion or limitation of incidental, consequential, or
119
+ other damages.
120
+
121
+ Please note: As this software is distributed in Canada, some of the clauses in this agreement are
122
+ provided below in French.
123
+ Remarque: Ce logiciel étant distribué au Canada, certaines des clauses dans ce contrat sont
124
+ fournies ci-dessous en français.
125
+ EXONÉRATION DE GARANTIE. Le logiciel visé par une licence est offert « tel quel ». Toute
126
+ utilisation de ce logiciel est à votre seule risque et péril. Microsoft n’accorde aucune autre
127
+ garantie expresse. Vous pouvez bénéficier de droits additionnels en vertu du droit local sur la
128
+ protection des consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le
129
+ droit locale, les garanties implicites de qualité marchande, d’adéquation à un usage particulier et
130
+ d’absence de contrefaçon sont exclues.
131
+ LIMITATION DES DOMMAGES-INTÉRÊTS ET EXCLUSION DE RESPONSABILITÉ POUR LES
132
+ DOMMAGES. Vous pouvez obtenir de Microsoft et de ses fournisseurs une indemnisation en cas de
133
+ dommages directs uniquement à hauteur de 5,00 $ US. Vous ne pouvez prétendre à aucune
134
+ indemnisation pour les autres dommages, y compris les dommages spéciaux, indirects ou
135
+ accessoires et pertes de bénéfices.
136
+ Cette limitation concerne:
137
+ • tout ce qui est relié au logiciel, aux services ou au contenu (y compris le code) figurant sur
138
+ des sites Internet tiers ou dans des programmes tiers; et
139
+ • les réclamations au titre de violation de contrat ou de garantie, ou au titre de responsabilité
140
+ stricte, de négligence ou d’une autre faute dans la limite autorisée par la loi en vigueur.
141
+ Elle s’applique également, même si Microsoft connaissait ou devrait connaître l’éventualité d’un
142
+ tel dommage. Si votre pays n’autorise pas l’exclusion ou la limitation de responsabilité pour les
143
+ dommages indirects, accessoires ou de quelque nature que ce soit, il se peut que la limitation ou
144
+ l’exclusion ci-dessus ne s’appliquera pas à votre égard.
145
+ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir
146
+ d’autres droits prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que
147
+ vous confèrent les lois de votre pays si celles-ci ne le permettent pas.
148
+
149
+
150
+ DWT 28909173v1 0085000-001126
151
+
152
+
153
+ DWT 28909173v1 0085000-001126
package/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # Power Apps client library
2
+
3
+ This project contains the APIs needed to:
4
+
5
+ - Initialize apps that can be hosted in the Power Platform.
6
+ - Enable developers to interact with data sources including multiple connectors and Dataverse.
7
+
8
+ ## Getting Started
9
+
10
+ Go to the [instructions](https://github.com/microsoft/PowerAppsCodeApps) to get samples, tutorials and more information about code apps.
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ npm install @microsoft/power-apps
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ Install the package using npm.
21
+
22
+ ### Initialization
23
+
24
+ ```ts
25
+ import { initialize } from '@microsoft/power-apps/app';
26
+ ```
27
+
28
+ Make sure the initialize API is the first thing your app calls. Failing to do so will result in the app failing to load. If data calls are made before initialize is completed this will cause the data retrieval to be unsuccessful.
29
+
30
+ ### Data
31
+
32
+ Data operations are performed via a client. A client can be fetched via the `getClient` method.
33
+
34
+ ```ts
35
+ import { getClient } from '@microsoft/power-apps/data';
36
+ ```
37
+
38
+ When used in tandem with pac cli, data operations can be performed like so:
39
+
40
+ ```ts
41
+ const client = getClient({
42
+ users: {
43
+ tableId: "<id>",
44
+ apis: {},
45
+ },
46
+ });
47
+
48
+ /* retrieve single record */
49
+ client.retrieveRecordAsync<User>("users", /* id */, /* query options */);
50
+
51
+ /* retrive multiple records */
52
+ client.retrieveMultipleRecordsAsync<User>("users", /* query options */);
53
+
54
+ /* create new record */
55
+ client.createRecordAsync<User, User>("users", /* data */);
56
+
57
+ /* update existing record */
58
+ client.updateRecordAsync<User, User>("users", /* id */, /* data */);
59
+
60
+ /* delete existing record */
61
+ client.deleteRecordAsync("users", /* id */);
62
+
63
+ ```
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * Copyright (C) Microsoft Corporation. All rights reserved.
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=connectorDataOperationExecutor.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connectorDataOperationExecutor.spec.d.ts","sourceRoot":"","sources":["../../src/__tests__/connectorDataOperationExecutor.spec.ts"],"names":[],"mappings":"AAAA;;GAEG"}