@microsoft/power-apps-cli 0.5.3 → 0.5.7

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 (235) hide show
  1. package/lib/Constants/HelpStrings.d.ts +3 -3
  2. package/lib/Constants/HelpStrings.js +3 -3
  3. package/lib/Constants/HelpStrings.js.map +1 -1
  4. package/lib/HttpClient/CliHttpClient.d.ts.map +1 -1
  5. package/lib/HttpClient/CliHttpClient.js +8 -1
  6. package/lib/HttpClient/CliHttpClient.js.map +1 -1
  7. package/lib/Verbs/AddDataSource.d.ts.map +1 -1
  8. package/lib/Verbs/AddDataSource.js +25 -18
  9. package/lib/Verbs/AddDataSource.js.map +1 -1
  10. package/lib/Verbs/DeleteDataSource.d.ts +1 -1
  11. package/lib/Verbs/DeleteDataSource.d.ts.map +1 -1
  12. package/lib/Verbs/DeleteDataSource.js +5 -4
  13. package/lib/Verbs/DeleteDataSource.js.map +1 -1
  14. package/lib/Verbs/Init.d.ts.map +1 -1
  15. package/lib/Verbs/Init.js +20 -0
  16. package/lib/Verbs/Init.js.map +1 -1
  17. package/lib/Verbs/ListConnectionReferences.js +6 -6
  18. package/lib/Verbs/ListConnectionReferences.js.map +1 -1
  19. package/lib/Verbs/ListEnvironmentVariables.js +6 -6
  20. package/lib/Verbs/ListEnvironmentVariables.js.map +1 -1
  21. package/lib/Verbs/Push.js +7 -10
  22. package/lib/Verbs/Push.js.map +1 -1
  23. package/lib/Verbs/VerbConstants.d.ts +1 -1
  24. package/lib/Verbs/VerbConstants.js +3 -3
  25. package/lib/Verbs/VerbConstants.js.map +1 -1
  26. package/lib/__tests__/E2eTests/addAndDeleteDataverseDS.test.js +4 -3
  27. package/lib/__tests__/E2eTests/addAndDeleteDataverseDS.test.js.map +1 -1
  28. package/lib/__tests__/E2eTests/addTop10Datasources.test.js +3 -2
  29. package/lib/__tests__/E2eTests/addTop10Datasources.test.js.map +1 -1
  30. package/lib/__tests__/E2eTests/cliHelp.test.js +4 -11
  31. package/lib/__tests__/E2eTests/cliHelp.test.js.map +1 -1
  32. package/lib/__tests__/helpers/e2eTestHelpers.d.ts +24 -0
  33. package/lib/__tests__/helpers/e2eTestHelpers.d.ts.map +1 -0
  34. package/lib/__tests__/helpers/e2eTestHelpers.js +28 -0
  35. package/lib/__tests__/helpers/e2eTestHelpers.js.map +1 -0
  36. package/lib-cjs/Constants/HelpStrings.d.ts +3 -3
  37. package/lib-cjs/Constants/HelpStrings.js +3 -3
  38. package/lib-cjs/Constants/HelpStrings.js.map +1 -1
  39. package/lib-cjs/HttpClient/CliHttpClient.d.ts.map +1 -1
  40. package/lib-cjs/HttpClient/CliHttpClient.js +8 -2
  41. package/lib-cjs/HttpClient/CliHttpClient.js.map +1 -1
  42. package/lib-cjs/Verbs/AddDataSource.d.ts.map +1 -1
  43. package/lib-cjs/Verbs/AddDataSource.js +44 -48
  44. package/lib-cjs/Verbs/AddDataSource.js.map +1 -1
  45. package/lib-cjs/Verbs/DeleteDataSource.d.ts +1 -1
  46. package/lib-cjs/Verbs/DeleteDataSource.d.ts.map +1 -1
  47. package/lib-cjs/Verbs/DeleteDataSource.js +15 -19
  48. package/lib-cjs/Verbs/DeleteDataSource.js.map +1 -1
  49. package/lib-cjs/Verbs/Init.d.ts.map +1 -1
  50. package/lib-cjs/Verbs/Init.js +39 -8
  51. package/lib-cjs/Verbs/Init.js.map +1 -1
  52. package/lib-cjs/Verbs/ListConnectionReferences.js +6 -6
  53. package/lib-cjs/Verbs/ListConnectionReferences.js.map +1 -1
  54. package/lib-cjs/Verbs/ListEnvironmentVariables.js +6 -6
  55. package/lib-cjs/Verbs/ListEnvironmentVariables.js.map +1 -1
  56. package/lib-cjs/Verbs/Push.js +11 -16
  57. package/lib-cjs/Verbs/Push.js.map +1 -1
  58. package/lib-cjs/Verbs/VerbConstants.d.ts +1 -1
  59. package/lib-cjs/Verbs/VerbConstants.js +3 -3
  60. package/lib-cjs/Verbs/VerbConstants.js.map +1 -1
  61. package/lib-cjs/__tests__/E2eTests/addAndDeleteDataverseDS.test.js +3 -2
  62. package/lib-cjs/__tests__/E2eTests/addAndDeleteDataverseDS.test.js.map +1 -1
  63. package/lib-cjs/__tests__/E2eTests/addTop10Datasources.test.js +2 -1
  64. package/lib-cjs/__tests__/E2eTests/addTop10Datasources.test.js.map +1 -1
  65. package/lib-cjs/__tests__/E2eTests/cliHelp.test.js +4 -11
  66. package/lib-cjs/__tests__/E2eTests/cliHelp.test.js.map +1 -1
  67. package/lib-cjs/__tests__/helpers/e2eTestHelpers.d.ts +23 -0
  68. package/lib-cjs/__tests__/helpers/e2eTestHelpers.d.ts.map +1 -0
  69. package/lib-cjs/__tests__/helpers/e2eTestHelpers.js +31 -0
  70. package/lib-cjs/__tests__/helpers/e2eTestHelpers.js.map +1 -0
  71. package/node_modules/@microsoft/1ds-properties-js/README.md +193 -0
  72. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.js +4844 -0
  73. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.js.map +1 -0
  74. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.min.js +7 -0
  75. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.min.js.map +1 -0
  76. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.integrity.json +46 -0
  77. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.js +4848 -0
  78. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.js.map +1 -0
  79. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.min.js +7 -0
  80. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.min.js.map +1 -0
  81. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.js +4844 -0
  82. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.js.map +1 -0
  83. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.min.js +7 -0
  84. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.min.js.map +1 -0
  85. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.integrity.json +46 -0
  86. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.js +4848 -0
  87. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.js.map +1 -0
  88. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.min.js +7 -0
  89. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.min.js.map +1 -0
  90. package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.js +4827 -0
  91. package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.js.map +1 -0
  92. package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.min.js +7 -0
  93. package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.min.js.map +1 -0
  94. package/node_modules/@microsoft/1ds-properties-js/dist-es5/DataModels.js +13 -0
  95. package/node_modules/@microsoft/1ds-properties-js/dist-es5/DataModels.js.map +1 -0
  96. package/node_modules/@microsoft/1ds-properties-js/dist-es5/ExtensionKeys.js +95 -0
  97. package/node_modules/@microsoft/1ds-properties-js/dist-es5/ExtensionKeys.js.map +1 -0
  98. package/node_modules/@microsoft/1ds-properties-js/dist-es5/Index.js +16 -0
  99. package/node_modules/@microsoft/1ds-properties-js/dist-es5/Index.js.map +1 -0
  100. package/node_modules/@microsoft/1ds-properties-js/dist-es5/InternalConstants.js +30 -0
  101. package/node_modules/@microsoft/1ds-properties-js/dist-es5/InternalConstants.js.map +1 -0
  102. package/node_modules/@microsoft/1ds-properties-js/dist-es5/PropertiesPlugin.js +200 -0
  103. package/node_modules/@microsoft/1ds-properties-js/dist-es5/PropertiesPlugin.js.map +1 -0
  104. package/node_modules/@microsoft/1ds-properties-js/dist-es5/SessionManager.js +168 -0
  105. package/node_modules/@microsoft/1ds-properties-js/dist-es5/SessionManager.js.map +1 -0
  106. package/node_modules/@microsoft/1ds-properties-js/dist-es5/TelemetryContext.js +286 -0
  107. package/node_modules/@microsoft/1ds-properties-js/dist-es5/TelemetryContext.js.map +1 -0
  108. package/node_modules/@microsoft/1ds-properties-js/dist-es5/Utils.js +106 -0
  109. package/node_modules/@microsoft/1ds-properties-js/dist-es5/Utils.js.map +1 -0
  110. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Application.js +178 -0
  111. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Application.js.map +1 -0
  112. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Cloud.js +17 -0
  113. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Cloud.js.map +1 -0
  114. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Device.js +17 -0
  115. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Device.js.map +1 -0
  116. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/IntWeb.js +58 -0
  117. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/IntWeb.js.map +1 -0
  118. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Loc.js +29 -0
  119. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Loc.js.map +1 -0
  120. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/OperatingSystem.js +176 -0
  121. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/OperatingSystem.js.map +1 -0
  122. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Sdk.js +71 -0
  123. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Sdk.js.map +1 -0
  124. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Session.js +47 -0
  125. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Session.js.map +1 -0
  126. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Trace.js +36 -0
  127. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Trace.js.map +1 -0
  128. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/User.js +102 -0
  129. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/User.js.map +1 -0
  130. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Utc.js +64 -0
  131. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Utc.js.map +1 -0
  132. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Web.js +274 -0
  133. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Web.js.map +1 -0
  134. package/node_modules/@microsoft/1ds-properties-js/package.json +65 -0
  135. package/node_modules/@microsoft/1ds-properties-js/tsconfig.json +27 -0
  136. package/node_modules/@microsoft/1ds-properties-js/types/1ds-properties-js.d.ts +706 -0
  137. package/node_modules/@microsoft/1ds-properties-js/types/1ds-properties-js.namespaced.d.ts +2908 -0
  138. package/node_modules/@microsoft/powerapps-data/package.json +3 -3
  139. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/AddDataSource.js +31 -25
  140. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/AddDataSource.js.map +1 -1
  141. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.d.ts +6 -4
  142. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.d.ts.map +1 -1
  143. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.js +11 -5
  144. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.js.map +1 -1
  145. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DeleteDataSource.js +3 -3
  146. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DeleteDataSource.js.map +1 -1
  147. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/PushApp.js +10 -3
  148. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/PushApp.js.map +1 -1
  149. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/codeGenUtils.d.ts +20 -0
  150. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/codeGenUtils.d.ts.map +1 -1
  151. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/codeGenUtils.js +79 -0
  152. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/codeGenUtils.js.map +1 -1
  153. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/dataSourceInfoProcessor.d.ts +2 -2
  154. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/dataSourceInfoProcessor.d.ts.map +1 -1
  155. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/dataSourceInfoProcessor.js +27 -68
  156. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/dataSourceInfoProcessor.js.map +1 -1
  157. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/modelServiceGenerator.d.ts +0 -59
  158. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/modelServiceGenerator.d.ts.map +1 -1
  159. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/modelServiceGenerator.js +69 -281
  160. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/modelServiceGenerator.js.map +1 -1
  161. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/nameUtility.d.ts +26 -0
  162. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/nameUtility.d.ts.map +1 -1
  163. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/nameUtility.js +153 -0
  164. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/nameUtility.js.map +1 -1
  165. package/node_modules/@microsoft/powerapps-player-actions/lib/Types/ActionTypes.d.ts +16 -11
  166. package/node_modules/@microsoft/powerapps-player-actions/lib/Types/ActionTypes.d.ts.map +1 -1
  167. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/AddDataSource.spec.js +1 -1
  168. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/AddDataSource.spec.js.map +1 -1
  169. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/AzureDevOpsModelServiceGenerator.spec.d.ts +5 -0
  170. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/AzureDevOpsModelServiceGenerator.spec.d.ts.map +1 -0
  171. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/AzureDevOpsModelServiceGenerator.spec.js +93 -0
  172. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/AzureDevOpsModelServiceGenerator.spec.js.map +1 -0
  173. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/DataSourceInfoProcessor.spec.js +897 -2
  174. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/DataSourceInfoProcessor.spec.js.map +1 -1
  175. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/ModelServiceGenerator.spec.js +1 -17
  176. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/ModelServiceGenerator.spec.js.map +1 -1
  177. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/arrayTypeGeneration.spec.d.ts +5 -0
  178. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/arrayTypeGeneration.spec.d.ts.map +1 -0
  179. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/arrayTypeGeneration.spec.js +63 -0
  180. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/arrayTypeGeneration.spec.js.map +1 -0
  181. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/AddDataSource.js +104 -86
  182. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/AddDataSource.js.map +1 -1
  183. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.d.ts +6 -4
  184. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.d.ts.map +1 -1
  185. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.js +26 -4
  186. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.js.map +1 -1
  187. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DeleteDataSource.js +52 -46
  188. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DeleteDataSource.js.map +1 -1
  189. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/PushApp.js +9 -4
  190. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/PushApp.js.map +1 -1
  191. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/codeGenUtils.d.ts +20 -0
  192. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/codeGenUtils.d.ts.map +1 -1
  193. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/codeGenUtils.js +86 -1
  194. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/codeGenUtils.js.map +1 -1
  195. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/dataSourceInfoProcessor.d.ts +2 -2
  196. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/dataSourceInfoProcessor.d.ts.map +1 -1
  197. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/dataSourceInfoProcessor.js +25 -67
  198. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/dataSourceInfoProcessor.js.map +1 -1
  199. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/modelServiceGenerator.d.ts +0 -59
  200. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/modelServiceGenerator.d.ts.map +1 -1
  201. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/modelServiceGenerator.js +65 -279
  202. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/modelServiceGenerator.js.map +1 -1
  203. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/nameUtility.d.ts +26 -0
  204. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/nameUtility.d.ts.map +1 -1
  205. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/nameUtility.js +161 -1
  206. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/nameUtility.js.map +1 -1
  207. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Types/ActionTypes.d.ts +16 -11
  208. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Types/ActionTypes.d.ts.map +1 -1
  209. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/AddDataSource.spec.js +1 -1
  210. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/AddDataSource.spec.js.map +1 -1
  211. package/node_modules/@microsoft/{powerapps-data/lib/components/codeGen/dataSourceInfo.js → powerapps-player-actions/lib-cjs/__tests__/AzureDevOpsModelServiceGenerator.spec.d.ts} +0 -1
  212. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/AzureDevOpsModelServiceGenerator.spec.d.ts.map +1 -0
  213. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/AzureDevOpsModelServiceGenerator.spec.js +206 -0
  214. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/AzureDevOpsModelServiceGenerator.spec.js.map +1 -0
  215. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/DataSourceInfoProcessor.spec.js +1277 -1
  216. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/DataSourceInfoProcessor.spec.js.map +1 -1
  217. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/ModelServiceGenerator.spec.js +0 -32
  218. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/ModelServiceGenerator.spec.js.map +1 -1
  219. package/node_modules/@microsoft/{powerapps-data/lib/__tests__/dataSourceInfoProcessor.test.d.ts → powerapps-player-actions/lib-cjs/__tests__/arrayTypeGeneration.spec.d.ts} +0 -1
  220. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/arrayTypeGeneration.spec.d.ts.map +1 -0
  221. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/arrayTypeGeneration.spec.js +171 -0
  222. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/arrayTypeGeneration.spec.js.map +1 -0
  223. package/node_modules/@microsoft/powerapps-player-actions/package.json +2 -2
  224. package/node_modules/@pa-client/powerapps-player-services/package.json +69 -69
  225. package/package.json +7 -5
  226. package/node_modules/@microsoft/powerapps-data/lib/__tests__/dataSourceInfoProcessor.test.d.ts.map +0 -1
  227. package/node_modules/@microsoft/powerapps-data/lib/__tests__/dataSourceInfoProcessor.test.js +0 -782
  228. package/node_modules/@microsoft/powerapps-data/lib/__tests__/dataSourceInfoProcessor.test.js.map +0 -1
  229. package/node_modules/@microsoft/powerapps-data/lib/components/codeGen/dataSourceInfo.d.ts +0 -28
  230. package/node_modules/@microsoft/powerapps-data/lib/components/codeGen/dataSourceInfo.d.ts.map +0 -1
  231. package/node_modules/@microsoft/powerapps-data/lib/components/codeGen/dataSourceInfo.js.map +0 -1
  232. package/node_modules/@microsoft/powerapps-data/lib/components/codeGen/dataSourceInfoProcessor.d.ts +0 -10
  233. package/node_modules/@microsoft/powerapps-data/lib/components/codeGen/dataSourceInfoProcessor.d.ts.map +0 -1
  234. package/node_modules/@microsoft/powerapps-data/lib/components/codeGen/dataSourceInfoProcessor.js +0 -530
  235. package/node_modules/@microsoft/powerapps-data/lib/components/codeGen/dataSourceInfoProcessor.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataSourceInfoProcessor.test.js","sourceRoot":"","sources":["../../src/__tests__/dataSourceInfoProcessor.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAA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AM;YACN,qBAAqB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;YAE9C,SAAS;YACT,MAAM,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACvD,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;YAEtC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAC;YACvE,MAAM,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YACjC,MAAM,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,8DAA8D,CAAC,CAAC;YAC1F,MAAM,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,4DAA4D,CAAC,CAAC;YACxF,MAAM,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,iCAAiC,CAAC,CAAC;YAC7D,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,4BAA4B;QAChE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,28 +0,0 @@
1
- /*!
2
- * Copyright (C) Microsoft Corporation. All rights reserved.
3
- */
4
- export interface ApiResponseInfo {
5
- type?: string;
6
- format?: string;
7
- }
8
- export interface ApiParameter {
9
- name: string;
10
- in: string;
11
- required: boolean;
12
- type: string;
13
- }
14
- export interface ApiDefinition {
15
- path: string;
16
- method: string;
17
- parameters?: ApiParameter[];
18
- responseInfo?: Record<string, ApiResponseInfo>;
19
- }
20
- export interface DataSourceInfo {
21
- tableId: string;
22
- version?: string;
23
- primaryKey?: string;
24
- dataSourceType?: string;
25
- apis: Record<string, ApiDefinition>;
26
- }
27
- export type DataSourcesInfo = Record<string, DataSourceInfo>;
28
- //# sourceMappingURL=dataSourceInfo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataSourceInfo.d.ts","sourceRoot":"","sources":["../../../src/components/codeGen/dataSourceInfo.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAMD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd;AAMD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAChD;AAMD,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CACrC;AAKD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataSourceInfo.js","sourceRoot":"","sources":["../../../src/components/codeGen/dataSourceInfo.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,10 +0,0 @@
1
- /*!
2
- * Copyright (C) Microsoft Corporation. All rights reserved.
3
- */
4
- import { ILogger } from '@pa-client/powerapps-player-services';
5
- /**
6
- * Processes all JSON files in the specified folder and generates a TypeScript file with data source information.
7
- * @param folderPath The path to the folder containing JSON files.
8
- */
9
- export declare function processDataSourceInfo(folderPath: string, logger: ILogger): void;
10
- //# sourceMappingURL=dataSourceInfoProcessor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataSourceInfoProcessor.d.ts","sourceRoot":"","sources":["../../../src/components/codeGen/dataSourceInfoProcessor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAO/D;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAoD/E"}
@@ -1,530 +0,0 @@
1
- /*!
2
- * Copyright (C) Microsoft Corporation. All rights reserved.
3
- */
4
- import * as fs from 'fs';
5
- import * as path from 'path';
6
- import { sanitizeSqlName } from '../../utility/nameUtility';
7
- /**
8
- * Processes all JSON files in the specified folder and generates a TypeScript file with data source information.
9
- * @param folderPath The path to the folder containing JSON files.
10
- */
11
- export function processDataSourceInfo(folderPath, logger) {
12
- try {
13
- const jsonFiles = getAllJsonFiles(folderPath);
14
- const resultJson = {};
15
- for (const filePath of jsonFiles) {
16
- try {
17
- const jsonContent = fs.readFileSync(filePath, 'utf-8');
18
- const jsonDocument = JSON.parse(jsonContent);
19
- const dataSourceInfo = processJson(jsonDocument);
20
- const propertyKey = determinePropertyKey(filePath, jsonDocument);
21
- mergeDataSourceInfo(resultJson, propertyKey, dataSourceInfo);
22
- }
23
- catch (err) {
24
- const error = err;
25
- logger.trackErrorEvent('ProcessDataSourceInfo', { filePath, message: error.message });
26
- throw new Error(`Error processing file '${filePath}': ${error.message}`);
27
- }
28
- }
29
- const outputJson = JSON.stringify(resultJson, null, 2); // pretty print
30
- const finalOutput = `/*!
31
- * Copyright (C) Microsoft Corporation. All rights reserved.
32
- * This file is auto-generated. Do not modify it manually.
33
- * Changes to this file may be overwritten.
34
- */
35
-
36
- export const dataSourcesInfo = ${outputJson};
37
- `;
38
- const outputDir = path.join(folderPath, '..', 'appschemas');
39
- const outputFilePath = path.join(outputDir, 'dataSourcesInfo.ts');
40
- // Create the appschemas directory if it doesn't exist
41
- if (!fs.existsSync(outputDir)) {
42
- fs.mkdirSync(outputDir, { recursive: true });
43
- }
44
- fs.writeFileSync(outputFilePath, finalOutput);
45
- logger.trackActivityEvent('ProcessDataSourceInfo', {
46
- outputFilePath,
47
- message: 'Data source info generated successfully.',
48
- });
49
- }
50
- catch (err) {
51
- const error = err;
52
- logger.trackErrorEvent('ProcessDataSourceInfo', { message: error.message, stack: error.stack });
53
- throw new Error(`An unexpected error occurred: ${error.message}`);
54
- }
55
- }
56
- /**
57
- * Recursively retrieves all JSON files in the specified folder and its subfolders.
58
- * @param folderPath The path to the folder to search for JSON files.
59
- * @returns An array of file paths for all JSON files found.
60
- */
61
- function getAllJsonFiles(folderPath) {
62
- const files = [];
63
- function recurse(dir) {
64
- for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
65
- const fullPath = path.join(dir, entry.name);
66
- if (entry.isDirectory()) {
67
- recurse(fullPath);
68
- }
69
- else if (entry.isFile() && entry.name.endsWith('.json')) {
70
- files.push(fullPath);
71
- }
72
- }
73
- }
74
- recurse(folderPath);
75
- return files;
76
- }
77
- /**
78
- * Merges new data source information into the result JSON object.
79
- * If the property key already exists, it merges the APIs, avoiding duplicates.
80
- * @param resultJson The result JSON object to merge into.
81
- * @param propertyKey The key under which to store the data source information.
82
- * @param newDataSourceInfo The new data source information to merge.
83
- */
84
- function mergeDataSourceInfo(resultJson, propertyKey, newDataSourceInfo) {
85
- if (Object.prototype.hasOwnProperty.call(resultJson, propertyKey)) {
86
- const existingDataSource = resultJson[propertyKey];
87
- if (existingDataSource && existingDataSource.apis) {
88
- for (const apiKey in newDataSourceInfo.apis) {
89
- if (!Object.prototype.hasOwnProperty.call(existingDataSource.apis, apiKey)) {
90
- existingDataSource.apis[apiKey] = newDataSourceInfo.apis[apiKey];
91
- }
92
- }
93
- }
94
- else {
95
- throw new Error(`The existing data source for key '${propertyKey}' is not of type DataSourceInfo.`);
96
- }
97
- }
98
- else {
99
- resultJson[propertyKey] = newDataSourceInfo;
100
- }
101
- }
102
- /**
103
- * Determines the property key for a given JSON document based on its structure and content.
104
- * @param filePath The file path of the JSON document.
105
- * @param JsonDocument The JSON document to analyze.
106
- * @returns The determined property key as a string.
107
- */
108
- function determinePropertyKey(filePath, jsonDocument) {
109
- const root = jsonDocument;
110
- // Handle Dataverse entities first
111
- if (typeof root.schema === 'object' && root.schema !== null) {
112
- const schema = root.schema;
113
- if (typeof schema.items === 'object' && schema.items !== null) {
114
- const items = schema.items;
115
- if (items['x-ms-dataverse-entity'] === true) {
116
- // For Dataverse entities, use the entity set name if available
117
- const entitySet = items['x-ms-dataverse-entityset'];
118
- if (typeof entitySet === 'string' && entitySet) {
119
- return entitySet.toLowerCase();
120
- }
121
- // Fallback to the entity name
122
- if (typeof root.name === 'string' && root.name) {
123
- return root.name.toLowerCase();
124
- }
125
- }
126
- }
127
- }
128
- const nameValue = typeof root.name === 'string' ? root.name : '';
129
- // Rule 1: For SQL stored procedure, use the parent folder name, lowercase
130
- if (typeof root.schema === 'object' &&
131
- root.schema !== null &&
132
- typeof root.schema.procedureresultschema !== 'undefined') {
133
- // Handle both Unix and Windows path separators
134
- const separator = filePath.includes('\\') ? '\\' : '/';
135
- const directoryName = filePath.substring(0, filePath.lastIndexOf(separator));
136
- if (directoryName) {
137
- const parentFolder = directoryName.substring(directoryName.lastIndexOf(separator) + 1);
138
- return parentFolder.toLowerCase();
139
- }
140
- else {
141
- throw new Error(`The directory name for the file path '${filePath}' could not be determined.`);
142
- }
143
- }
144
- // Rule 2: For SQL tables, use the "name" node value without [<schema>]. and [], lowercase
145
- if (nameValue.match(/^\[[^\]]+\]\./)) {
146
- return sanitizeSqlName(nameValue).toLowerCase();
147
- }
148
- // Rule 3: For non-tabular, use the rest part of the "name" without "shared_" and lowercase
149
- if (nameValue.toLowerCase().startsWith('shared_')) {
150
- return nameValue.substring('shared_'.length).toLowerCase();
151
- }
152
- // Rule 4: For tabular, use the "title" property and lowercase
153
- if (typeof root.title === 'string') {
154
- return root.title.toLowerCase();
155
- }
156
- // Default to the "name" property in lowercase if no rule matches
157
- if (nameValue) {
158
- return nameValue.toLowerCase();
159
- }
160
- // Fallback: Use the file name in lowercase if "name" property is missing
161
- // Handle both Unix and Windows path separators
162
- const separator = filePath.includes('\\') ? '\\' : '/';
163
- const fileName = filePath.substring(filePath.lastIndexOf(separator) + 1);
164
- // Extract base name without extension (e.g., "GetAllRecords.Schema.json" -> "GetAllRecords")
165
- const baseName = fileName.split('.')[0];
166
- return baseName.toLowerCase();
167
- }
168
- /**
169
- * Processes the JSON document and extracts relevant data source information.
170
- * @param json The JSON document to process.
171
- * @param existingDataSourceInfo Optional existing data source information to merge with.
172
- * @returns The processed data source information.
173
- */
174
- function processJson(json, existingDataSourceInfo) {
175
- const root = json;
176
- if (typeof root.type === 'string' && root.type === 'Microsoft.PowerApps/apis') {
177
- const dataSourceInfo = {
178
- tableId: '',
179
- version: '',
180
- primaryKey: '',
181
- dataSourceType: 'Connector',
182
- apis: {},
183
- };
184
- const properties = typeof root.properties === 'object' && root.properties !== null
185
- ? root.properties
186
- : null;
187
- const swagger = properties && typeof properties.swagger === 'object' && properties.swagger !== null
188
- ? properties.swagger
189
- : null;
190
- const paths = swagger && typeof swagger.paths === 'object' && swagger.paths !== null
191
- ? swagger.paths
192
- : null;
193
- if (paths) {
194
- for (const pathKey in paths) {
195
- if (!paths.hasOwnProperty(pathKey)) {
196
- continue;
197
- }
198
- const pathValue = paths[pathKey];
199
- if (typeof pathValue === 'object' && pathValue !== null) {
200
- const methods = pathValue;
201
- for (const method in methods) {
202
- if (!methods.hasOwnProperty(method)) {
203
- continue;
204
- }
205
- const methodValue = methods[method];
206
- if (typeof methodValue === 'object' && methodValue !== null) {
207
- const operation = methodValue;
208
- const operationId = operation.operationId;
209
- if (typeof operationId === 'string') {
210
- const apiDefinition = {
211
- path: pathKey,
212
- method: method.toUpperCase(),
213
- };
214
- if (operation.parameters && Array.isArray(operation.parameters)) {
215
- apiDefinition.parameters = processParameters(operation.parameters, swagger);
216
- }
217
- if (operation.responses) {
218
- apiDefinition.responseInfo = processResponse(operation.responses, swagger);
219
- }
220
- else {
221
- apiDefinition.responseInfo = {
222
- default: { type: 'void', format: undefined },
223
- };
224
- }
225
- dataSourceInfo.apis[operationId] = apiDefinition;
226
- }
227
- }
228
- }
229
- }
230
- }
231
- }
232
- return dataSourceInfo;
233
- }
234
- else if (typeof root.schema === 'object' && root.schema !== null) {
235
- const schema = root.schema;
236
- // Check if this is a Dataverse entity schema
237
- if (typeof schema.items === 'object' && schema.items !== null) {
238
- const items = schema.items;
239
- if (items['x-ms-dataverse-entity'] === true) {
240
- // This is a Dataverse entity schema
241
- const primaryKey = typeof items['x-ms-dataverse-primary-id'] === 'string' ? items['x-ms-dataverse-primary-id'] : '';
242
- return {
243
- tableId: '',
244
- version: '',
245
- primaryKey,
246
- dataSourceType: 'Dataverse',
247
- apis: {},
248
- };
249
- }
250
- }
251
- if (typeof schema.procedureresultschema !== 'undefined') {
252
- const dataSourceInfo = existingDataSourceInfo !== null && existingDataSourceInfo !== void 0 ? existingDataSourceInfo : {
253
- tableId: '',
254
- version: 'v2',
255
- primaryKey: '',
256
- dataSourceType: 'Connector',
257
- apis: {},
258
- };
259
- const procedureName = typeof root.name === 'string' ? root.name : '';
260
- const cleanedProcedureName = '/' + procedureName.replace(/\[|\]/g, '');
261
- const cleanedProcedureNameWithoutSchema = cleanedProcedureName.replace(/^\/.+\./, '');
262
- let parameters = [];
263
- if (typeof schema.inputparameters === 'object' && schema.inputparameters !== null) {
264
- const inputParams = schema.inputparameters;
265
- if (typeof inputParams.properties === 'object' && inputParams.properties !== null) {
266
- parameters = processProcedureParameters(inputParams.properties);
267
- }
268
- }
269
- const apiDefinition = {
270
- path: cleanedProcedureName,
271
- method: 'POST',
272
- parameters,
273
- };
274
- if (!dataSourceInfo.apis[cleanedProcedureNameWithoutSchema]) {
275
- dataSourceInfo.apis[cleanedProcedureNameWithoutSchema] = apiDefinition;
276
- }
277
- else {
278
- throw new Error(`Duplicate stored procedure detected: ${cleanedProcedureName}`);
279
- }
280
- return dataSourceInfo;
281
- }
282
- else if (typeof root.name === 'string' && root.name.match(/^\[[^\]]+\]\./)) {
283
- return {
284
- tableId: sanitizeSqlName(root.name),
285
- version: 'v2',
286
- primaryKey: getPrimaryKeyFromSchema(schema),
287
- dataSourceType: 'Connector',
288
- apis: {},
289
- };
290
- }
291
- else {
292
- return {
293
- tableId: typeof root.name === 'string' ? root.name : '',
294
- version: '',
295
- primaryKey: getPrimaryKeyFromSchema(schema),
296
- dataSourceType: 'Connector',
297
- apis: {},
298
- };
299
- }
300
- }
301
- throw new Error('The JSON does not represent a valid data source.');
302
- }
303
- /**
304
- * Processes the responses node and extracts response information.
305
- * @param responsesNode The responses node from the Swagger document.
306
- * @param root The root of the Swagger document for reference.
307
- * @returns A record of response information keyed by status code.
308
- */
309
- function processResponse(responsesNode, root) {
310
- const result = {};
311
- // Type guard: ensure responsesNode is an object
312
- if (typeof responsesNode !== 'object' || responsesNode === null || Array.isArray(responsesNode)) {
313
- return result;
314
- }
315
- const responses = responsesNode;
316
- for (const statusCode in responses) {
317
- if (!responses.hasOwnProperty(statusCode)) {
318
- continue;
319
- }
320
- const resp = responses[statusCode];
321
- // Type guard: ensure resp is an object
322
- if (typeof resp === 'object' && resp !== null && !Array.isArray(resp)) {
323
- const respObj = resp;
324
- if (respObj.schema && typeof respObj.schema === 'object' && respObj.schema !== null) {
325
- const schemaNode = respObj.schema;
326
- const type = typeof schemaNode.type === 'string' ? schemaNode.type : null;
327
- const format = typeof schemaNode.format === 'string' ? schemaNode.format : null;
328
- // If type is array, always return "array" as type
329
- if (type === 'array') {
330
- result[statusCode] = { type: 'array', format: format || undefined };
331
- continue;
332
- }
333
- // $ref (single object)
334
- // eslint-disable-next-line dot-notation
335
- if (schemaNode['$ref']) {
336
- // eslint-disable-next-line dot-notation
337
- const refValue = schemaNode['$ref'];
338
- if (typeof refValue === 'string' && refValue.startsWith('#/definitions/')) {
339
- const defName = refValue.substring('#/definitions/'.length);
340
- let refType = 'object';
341
- // Type guard for root to access definitions
342
- if (typeof root === 'object' && root !== null && !Array.isArray(root)) {
343
- const rootObj = root;
344
- if (typeof rootObj.definitions === 'object' && rootObj.definitions !== null) {
345
- const definitions = rootObj.definitions;
346
- const defNode = definitions[defName];
347
- if (typeof defNode === 'object' && defNode !== null) {
348
- const defNodeObj = defNode;
349
- refType = typeof defNodeObj.type === 'string' ? defNodeObj.type : 'object';
350
- }
351
- }
352
- }
353
- result[statusCode] = { type: refType, format: format || undefined };
354
- continue;
355
- }
356
- }
357
- // Primitive or object
358
- result[statusCode] = { type: type || 'object', format: format || undefined };
359
- }
360
- else {
361
- // No schema, but description exists
362
- result[statusCode] = { type: 'void', format: undefined };
363
- }
364
- }
365
- else {
366
- // resp is not an object, treat as void
367
- result[statusCode] = { type: 'void', format: undefined };
368
- }
369
- }
370
- // If no responses at all, return a default void
371
- if (Object.keys(result).length === 0) {
372
- result.default = { type: 'void', format: undefined };
373
- }
374
- return result;
375
- }
376
- /**
377
- * Processes stored procedure parameters from the properties node.
378
- * @param propertiesNode The properties node containing stored procedure parameters.
379
- * @returns An array of ApiParameter objects representing the parameters.
380
- */
381
- function processProcedureParameters(propertiesNode) {
382
- const parameters = [];
383
- // Type guard: ensure propertiesNode is an object
384
- if (typeof propertiesNode !== 'object' || propertiesNode === null || Array.isArray(propertiesNode)) {
385
- return parameters;
386
- }
387
- const properties = propertiesNode;
388
- for (const propertyName in properties) {
389
- if (!properties.hasOwnProperty(propertyName)) {
390
- continue;
391
- }
392
- const propertyValue = properties[propertyName];
393
- // Type guard: ensure propertyValue is an object
394
- if (typeof propertyValue === 'object' && propertyValue !== null && !Array.isArray(propertyValue)) {
395
- const propertyObj = propertyValue;
396
- const parameter = {
397
- name: propertyName,
398
- in: 'body',
399
- required: propertyObj.required === true,
400
- type: typeof propertyObj.type === 'string' ? propertyObj.type : 'object',
401
- };
402
- parameters.push(parameter);
403
- }
404
- }
405
- return parameters;
406
- }
407
- /**
408
- * Retrieves the primary key from the schema node.
409
- * @param schemaNode The schema node to extract the primary key from.
410
- * @returns The primary key as a string, or an empty string if not found.
411
- */
412
- function getPrimaryKeyFromSchema(schemaNode) {
413
- // Type guard: ensure schemaNode is an object
414
- if (typeof schemaNode !== 'object' || schemaNode === null || Array.isArray(schemaNode)) {
415
- return '';
416
- }
417
- const schema = schemaNode;
418
- // Type guard: ensure items exists and is an object
419
- if (typeof schema.items !== 'object' || schema.items === null || Array.isArray(schema.items)) {
420
- return '';
421
- }
422
- const itemsNode = schema.items;
423
- // Type guard: ensure properties exists and is an object
424
- if (typeof itemsNode.properties !== 'object' ||
425
- itemsNode.properties === null ||
426
- Array.isArray(itemsNode.properties)) {
427
- return '';
428
- }
429
- const propertiesNode = itemsNode.properties;
430
- for (const propertyName in propertiesNode) {
431
- if (!propertiesNode.hasOwnProperty(propertyName)) {
432
- continue;
433
- }
434
- const propertyValue = propertiesNode[propertyName];
435
- // Type guard: ensure propertyValue is an object
436
- if (typeof propertyValue === 'object' && propertyValue !== null && !Array.isArray(propertyValue)) {
437
- const propertyObj = propertyValue;
438
- if (propertyObj['x-ms-keyType'] === 'primary') {
439
- return propertyName;
440
- }
441
- }
442
- }
443
- return '';
444
- }
445
- /**
446
- * Processes the parameters node and extracts parameter information.
447
- * @param parametersNode The parameters node from the Swagger document.
448
- * @param root The root of the Swagger document for reference.
449
- * @returns An array of ApiParameter objects representing the parameters.
450
- */
451
- function processParameters(parametersNode, root) {
452
- const parameters = [];
453
- // Type guard: ensure parametersNode is an array
454
- if (!Array.isArray(parametersNode)) {
455
- return parameters;
456
- }
457
- for (const parameter of parametersNode) {
458
- // Type guard: ensure parameter is an object
459
- if (typeof parameter === 'object' && parameter !== null && !Array.isArray(parameter)) {
460
- const paramObj = parameter;
461
- // eslint-disable-next-line dot-notation
462
- if (paramObj['$ref']) {
463
- // eslint-disable-next-line dot-notation
464
- const refPath = paramObj['$ref'];
465
- if (typeof refPath === 'string') {
466
- const resolvedParameter = resolveRef(refPath, root);
467
- if (resolvedParameter) {
468
- parameters.push(parseParameter(resolvedParameter));
469
- }
470
- }
471
- }
472
- else {
473
- parameters.push(parseParameter(paramObj));
474
- }
475
- }
476
- }
477
- // Stable sort: required=true first, then required=false
478
- return parameters.sort((a, b) => Number(b.required) - Number(a.required));
479
- }
480
- /**
481
- * Resolves a $ref reference in the Swagger document.
482
- * @param refPath The $ref path to resolve.
483
- * @param root The root of the Swagger document for reference.
484
- * @returns The resolved object or null if not found.
485
- */
486
- function resolveRef(refPath, root) {
487
- // Type guard: ensure root is an object
488
- if (typeof root !== 'object' || root === null || Array.isArray(root)) {
489
- return null;
490
- }
491
- // Resolve $ref (e.g., "#/swagger/parameters/ParameterName")
492
- if (refPath.startsWith('#/')) {
493
- const parts = refPath.substring(2).split('/');
494
- let currentElement = root;
495
- for (const part of parts) {
496
- // Type guard: ensure currentElement is an object
497
- if (typeof currentElement === 'object' && currentElement !== null && !Array.isArray(currentElement)) {
498
- const currentObj = currentElement;
499
- if (part in currentObj) {
500
- currentElement = currentObj[part];
501
- }
502
- else {
503
- return null; // Reference not found
504
- }
505
- }
506
- else {
507
- return null; // Current element is not an object
508
- }
509
- }
510
- // Type guard: ensure final result is an object
511
- if (typeof currentElement === 'object' && currentElement !== null && !Array.isArray(currentElement)) {
512
- return currentElement;
513
- }
514
- }
515
- return null;
516
- }
517
- /**
518
- * Parses a parameter object and extracts relevant information.
519
- * @param parameter The parameter object to parse.
520
- * @returns An ApiParameter object representing the parsed parameter.
521
- */
522
- function parseParameter(parameter) {
523
- return {
524
- name: typeof parameter.name === 'string' ? parameter.name : '',
525
- in: typeof parameter.in === 'string' ? parameter.in : '',
526
- required: parameter.required === true,
527
- type: typeof parameter.type === 'string' ? parameter.type : 'object',
528
- };
529
- }
530
- //# sourceMappingURL=dataSourceInfoProcessor.js.map