@microsoft/managed-apps-cli 0.20.0 → 0.21.0

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 (605) hide show
  1. package/THIRD-PARTY-NOTICES.txt +9549 -0
  2. package/dist/AddConnector-4AMM746J.js +41 -0
  3. package/dist/AuthStatus-ZZIP3LBD.js +11 -0
  4. package/dist/AuthSwitch-HK7JU2FR.js +13 -0
  5. package/dist/Bin.js +8 -3
  6. package/dist/BuildMaafApp-MOTZOLJZ.js +11 -0
  7. package/dist/Cli-6CCXMCPX.js +54 -0
  8. package/dist/CreateMaafApp-TUO72CW7.js +20 -0
  9. package/dist/DeleteMaafApp-MZVGIAX3.js +11 -0
  10. package/dist/DeployMaafApp-KXATM3E3.js +14 -0
  11. package/dist/Dev-SHIA5S7X.js +14 -0
  12. package/dist/EnvironmentVariableAuthenticationProvider-5YTMRAE4.js +11 -0
  13. package/dist/GetMaafApp-ELB5KMHW.js +11 -0
  14. package/dist/GetMaafBuildStatus-3W7LI5TJ.js +11 -0
  15. package/dist/GetSettings-NM6H2U5F.js +11 -0
  16. package/dist/Init-CH5DUQWA.js +11 -0
  17. package/dist/ListConnectorActions-7SIFGPYR.js +11 -0
  18. package/dist/ListConnectors-TRKIWRVQ.js +11 -0
  19. package/dist/ListMaafApps-RT3PGZSJ.js +11 -0
  20. package/dist/Login-HG5S7LBC.js +11 -0
  21. package/dist/Logout-BUPHLOAH.js +11 -0
  22. package/dist/MockFetch-4CYTSNJ7.js +13 -0
  23. package/dist/NoOpAuthenticationProvider-DX3XNXF5.js +11 -0
  24. package/dist/NodeMsalAuthenticationProvider-HTH3V3G2.js +17 -0
  25. package/dist/Pack-AHKC2MYF.js +8 -0
  26. package/dist/PlayMaafApp-LWKJU2IN.js +12 -0
  27. package/dist/RefreshDataSource-ZFZJXJ5L.js +11 -0
  28. package/dist/RefreshGitAuth-5A3SX2HC.js +11 -0
  29. package/dist/RemoveDataSource-57JJLK5I.js +14 -0
  30. package/dist/ServicePrincipalAuthenticationProvider-SVKDZG6X.js +11 -0
  31. package/dist/SetSetting-RB3F7IXG.js +11 -0
  32. package/dist/ShareLinkCreate-7BCDPWY6.js +11 -0
  33. package/dist/ShareLinkList-4BI3WMNN.js +11 -0
  34. package/dist/ShareLinkRevoke-EEJVCRCY.js +11 -0
  35. package/dist/ShareList-LJDAEGI3.js +11 -0
  36. package/dist/ShareMaafApp-QFRXLYUD.js +11 -0
  37. package/dist/ShowMaafApp-3KK6NUG2.js +11 -0
  38. package/dist/TelemetrySettings-A474HALH.js +11 -0
  39. package/dist/UnshareMaafApp-423RNXCN.js +11 -0
  40. package/dist/acorn-CYBWGE5M.js +23 -0
  41. package/dist/angular-Q62TJP23.js +11 -0
  42. package/dist/babel-AOXBHIIS.js +22 -0
  43. package/dist/chunk-3BRAT6NP.js +11 -0
  44. package/dist/chunk-3YRE4IQ3.js +132 -0
  45. package/dist/chunk-5AUOEXAR.js +50 -0
  46. package/dist/chunk-6FFQN2SO.js +13 -0
  47. package/dist/chunk-6MXOK2LG.js +11 -0
  48. package/dist/chunk-7NXJAIJX.js +11 -0
  49. package/dist/chunk-DREO7EYO.js +20 -0
  50. package/dist/chunk-EV3TTTOT.js +8 -0
  51. package/dist/chunk-G33Q5FWT.js +42325 -0
  52. package/dist/chunk-HBLO3WDD.js +13 -0
  53. package/dist/chunk-MFPX2RFH.js +11 -0
  54. package/dist/chunk-NP2KJOYC.js +12 -0
  55. package/dist/chunk-OL6CTXQR.js +11 -0
  56. package/dist/chunk-PVAIJSAI.js +11 -0
  57. package/dist/chunk-QAFCXGBD.js +11 -0
  58. package/dist/chunk-QSB5P4RM.js +38 -0
  59. package/dist/chunk-RBG2H562.js +11 -0
  60. package/dist/chunk-S5HEU7XK.js +11 -0
  61. package/dist/chunk-TYRVM4PP.js +8 -0
  62. package/dist/chunk-U36HMOQW.js +77 -0
  63. package/dist/chunk-UBTSW22U.js +11 -0
  64. package/dist/chunk-USRRI5H4.js +11 -0
  65. package/dist/chunk-UT667QSU.js +8 -0
  66. package/dist/chunk-VFSTQAZ2.js +12 -0
  67. package/dist/chunk-VNEZZ3RI.js +11 -0
  68. package/dist/chunk-W7EWOZPO.js +104 -0
  69. package/dist/chunk-Y5AMO72S.js +10 -0
  70. package/dist/chunk-YIKNM523.js +15 -0
  71. package/dist/chunk-YMXXWGRV.js +11 -0
  72. package/dist/estree-HPTPQIMZ.js +51 -0
  73. package/dist/flow-B6JUMONE.js +27 -0
  74. package/dist/glimmer-36KZ3DJ5.js +44 -0
  75. package/dist/graphql-E6CIFZFV.js +35 -0
  76. package/dist/html-BUTTPQE6.js +32 -0
  77. package/dist/markdown-K2C5OZHT.js +69 -0
  78. package/dist/meriyah-27UE2OSX.js +12 -0
  79. package/dist/postcss-QUHZLBB7.js +68 -0
  80. package/dist/typescript-G2G6TDZF.js +28 -0
  81. package/dist/yaml-W5P5CGFK.js +166 -0
  82. package/package.json +21 -16
  83. package/dist/ArgumentProvider.d.ts +0 -144
  84. package/dist/ArgumentProvider.d.ts.map +0 -1
  85. package/dist/ArgumentProvider.js +0 -493
  86. package/dist/ArgumentProvider.js.map +0 -1
  87. package/dist/Authentication/ActiveAccountStore.d.ts +0 -24
  88. package/dist/Authentication/ActiveAccountStore.d.ts.map +0 -1
  89. package/dist/Authentication/ActiveAccountStore.js +0 -54
  90. package/dist/Authentication/ActiveAccountStore.js.map +0 -1
  91. package/dist/Authentication/EnvironmentVariableAuthenticationProvider.d.ts +0 -26
  92. package/dist/Authentication/EnvironmentVariableAuthenticationProvider.d.ts.map +0 -1
  93. package/dist/Authentication/EnvironmentVariableAuthenticationProvider.js +0 -31
  94. package/dist/Authentication/EnvironmentVariableAuthenticationProvider.js.map +0 -1
  95. package/dist/Authentication/NoOpAuthenticationProvider.d.ts +0 -25
  96. package/dist/Authentication/NoOpAuthenticationProvider.d.ts.map +0 -1
  97. package/dist/Authentication/NoOpAuthenticationProvider.js +0 -31
  98. package/dist/Authentication/NoOpAuthenticationProvider.js.map +0 -1
  99. package/dist/Authentication/NodeMsalAuthenticationProvider.d.ts +0 -103
  100. package/dist/Authentication/NodeMsalAuthenticationProvider.d.ts.map +0 -1
  101. package/dist/Authentication/NodeMsalAuthenticationProvider.js +0 -391
  102. package/dist/Authentication/NodeMsalAuthenticationProvider.js.map +0 -1
  103. package/dist/Authentication/ServicePrincipalAuthenticationProvider.d.ts +0 -23
  104. package/dist/Authentication/ServicePrincipalAuthenticationProvider.d.ts.map +0 -1
  105. package/dist/Authentication/ServicePrincipalAuthenticationProvider.js +0 -60
  106. package/dist/Authentication/ServicePrincipalAuthenticationProvider.js.map +0 -1
  107. package/dist/Bin.d.ts +0 -6
  108. package/dist/Bin.d.ts.map +0 -1
  109. package/dist/Bin.js.map +0 -1
  110. package/dist/Cli.d.ts +0 -2
  111. package/dist/Cli.d.ts.map +0 -1
  112. package/dist/Cli.js +0 -207
  113. package/dist/Cli.js.map +0 -1
  114. package/dist/CliSettings.d.ts +0 -17
  115. package/dist/CliSettings.d.ts.map +0 -1
  116. package/dist/CliSettings.js +0 -103
  117. package/dist/CliSettings.js.map +0 -1
  118. package/dist/CliUtils.d.ts +0 -108
  119. package/dist/CliUtils.d.ts.map +0 -1
  120. package/dist/CliUtils.js +0 -217
  121. package/dist/CliUtils.js.map +0 -1
  122. package/dist/Constants/CliConstants.d.ts +0 -6
  123. package/dist/Constants/CliConstants.d.ts.map +0 -1
  124. package/dist/Constants/CliConstants.js +0 -6
  125. package/dist/Constants/CliConstants.js.map +0 -1
  126. package/dist/Constants/CommandRegistry.d.ts +0 -22
  127. package/dist/Constants/CommandRegistry.d.ts.map +0 -1
  128. package/dist/Constants/CommandRegistry.js +0 -245
  129. package/dist/Constants/CommandRegistry.js.map +0 -1
  130. package/dist/Constants/HelpStrings.d.ts +0 -432
  131. package/dist/Constants/HelpStrings.d.ts.map +0 -1
  132. package/dist/Constants/HelpStrings.js +0 -623
  133. package/dist/Constants/HelpStrings.js.map +0 -1
  134. package/dist/Constants.d.ts +0 -18
  135. package/dist/Constants.d.ts.map +0 -1
  136. package/dist/Constants.js +0 -41
  137. package/dist/Constants.js.map +0 -1
  138. package/dist/Errors/CliError.d.ts +0 -5
  139. package/dist/Errors/CliError.d.ts.map +0 -1
  140. package/dist/Errors/CliError.js +0 -7
  141. package/dist/Errors/CliError.js.map +0 -1
  142. package/dist/Errors/GitHubErrorMap.d.ts +0 -68
  143. package/dist/Errors/GitHubErrorMap.d.ts.map +0 -1
  144. package/dist/Errors/GitHubErrorMap.js +0 -238
  145. package/dist/Errors/GitHubErrorMap.js.map +0 -1
  146. package/dist/FS/CliFs.d.ts +0 -41
  147. package/dist/FS/CliFs.d.ts.map +0 -1
  148. package/dist/FS/CliFs.js +0 -136
  149. package/dist/FS/CliFs.js.map +0 -1
  150. package/dist/HttpClient/CliHttpClient.d.ts +0 -43
  151. package/dist/HttpClient/CliHttpClient.d.ts.map +0 -1
  152. package/dist/HttpClient/CliHttpClient.js +0 -320
  153. package/dist/HttpClient/CliHttpClient.js.map +0 -1
  154. package/dist/HttpClient/HttpForward.d.ts +0 -9
  155. package/dist/HttpClient/HttpForward.d.ts.map +0 -1
  156. package/dist/HttpClient/HttpForward.js +0 -56
  157. package/dist/HttpClient/HttpForward.js.map +0 -1
  158. package/dist/Logger/BufferedTelemetryWriter.d.ts +0 -20
  159. package/dist/Logger/BufferedTelemetryWriter.d.ts.map +0 -1
  160. package/dist/Logger/BufferedTelemetryWriter.js +0 -163
  161. package/dist/Logger/BufferedTelemetryWriter.js.map +0 -1
  162. package/dist/Logger/CliLogger.d.ts +0 -59
  163. package/dist/Logger/CliLogger.d.ts.map +0 -1
  164. package/dist/Logger/CliLogger.js +0 -364
  165. package/dist/Logger/CliLogger.js.map +0 -1
  166. package/dist/Logger/ConsoleWriter.d.ts +0 -23
  167. package/dist/Logger/ConsoleWriter.d.ts.map +0 -1
  168. package/dist/Logger/ConsoleWriter.js +0 -66
  169. package/dist/Logger/ConsoleWriter.js.map +0 -1
  170. package/dist/Logger/Constants.d.ts +0 -6
  171. package/dist/Logger/Constants.d.ts.map +0 -1
  172. package/dist/Logger/Constants.js +0 -15
  173. package/dist/Logger/Constants.js.map +0 -1
  174. package/dist/Logger/LoggerSettings.d.ts +0 -18
  175. package/dist/Logger/LoggerSettings.d.ts.map +0 -1
  176. package/dist/Logger/LoggerSettings.js +0 -78
  177. package/dist/Logger/LoggerSettings.js.map +0 -1
  178. package/dist/Logger/OneDSWriter.d.ts +0 -26
  179. package/dist/Logger/OneDSWriter.d.ts.map +0 -1
  180. package/dist/Logger/OneDSWriter.js +0 -211
  181. package/dist/Logger/OneDSWriter.js.map +0 -1
  182. package/dist/Logger/Scrubber/ScrubCustomDimensions.d.ts +0 -5
  183. package/dist/Logger/Scrubber/ScrubCustomDimensions.d.ts.map +0 -1
  184. package/dist/Logger/Scrubber/ScrubCustomDimensions.js +0 -46
  185. package/dist/Logger/Scrubber/ScrubCustomDimensions.js.map +0 -1
  186. package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.d.ts +0 -27
  187. package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.d.ts.map +0 -1
  188. package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.js +0 -168
  189. package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.js.map +0 -1
  190. package/dist/Logger/Scrubber/ScrubUtils.d.ts +0 -8
  191. package/dist/Logger/Scrubber/ScrubUtils.d.ts.map +0 -1
  192. package/dist/Logger/Scrubber/ScrubUtils.js +0 -34
  193. package/dist/Logger/Scrubber/ScrubUtils.js.map +0 -1
  194. package/dist/Middletier/FunctionsBundler.d.ts +0 -17
  195. package/dist/Middletier/FunctionsBundler.d.ts.map +0 -1
  196. package/dist/Middletier/FunctionsBundler.js +0 -169
  197. package/dist/Middletier/FunctionsBundler.js.map +0 -1
  198. package/dist/Middletier/PackFunctions.d.ts +0 -53
  199. package/dist/Middletier/PackFunctions.d.ts.map +0 -1
  200. package/dist/Middletier/PackFunctions.js +0 -123
  201. package/dist/Middletier/PackFunctions.js.map +0 -1
  202. package/dist/Testing/MockFetch.d.ts +0 -23
  203. package/dist/Testing/MockFetch.d.ts.map +0 -1
  204. package/dist/Testing/MockFetch.js +0 -177
  205. package/dist/Testing/MockFetch.js.map +0 -1
  206. package/dist/Testing/MockRoutes.d.ts +0 -34
  207. package/dist/Testing/MockRoutes.d.ts.map +0 -1
  208. package/dist/Testing/MockRoutes.js +0 -226
  209. package/dist/Testing/MockRoutes.js.map +0 -1
  210. package/dist/Testing/fixtures/connectors/commondataserviceforapps.d.ts +0 -6
  211. package/dist/Testing/fixtures/connectors/commondataserviceforapps.d.ts.map +0 -1
  212. package/dist/Testing/fixtures/connectors/commondataserviceforapps.js +0 -25
  213. package/dist/Testing/fixtures/connectors/commondataserviceforapps.js.map +0 -1
  214. package/dist/Testing/fixtures/connectors/dataverseContactEntity.d.ts +0 -6
  215. package/dist/Testing/fixtures/connectors/dataverseContactEntity.d.ts.map +0 -1
  216. package/dist/Testing/fixtures/connectors/dataverseContactEntity.js +0 -55
  217. package/dist/Testing/fixtures/connectors/dataverseContactEntity.js.map +0 -1
  218. package/dist/Testing/fixtures/connectors/excelonlinebusiness.d.ts +0 -6
  219. package/dist/Testing/fixtures/connectors/excelonlinebusiness.d.ts.map +0 -1
  220. package/dist/Testing/fixtures/connectors/excelonlinebusiness.js +0 -1970
  221. package/dist/Testing/fixtures/connectors/excelonlinebusiness.js.map +0 -1
  222. package/dist/Testing/fixtures/connectors/kusto.d.ts +0 -6
  223. package/dist/Testing/fixtures/connectors/kusto.d.ts.map +0 -1
  224. package/dist/Testing/fixtures/connectors/kusto.js +0 -1333
  225. package/dist/Testing/fixtures/connectors/kusto.js.map +0 -1
  226. package/dist/Testing/fixtures/connectors/msnweather.d.ts +0 -6
  227. package/dist/Testing/fixtures/connectors/msnweather.d.ts.map +0 -1
  228. package/dist/Testing/fixtures/connectors/msnweather.js +0 -917
  229. package/dist/Testing/fixtures/connectors/msnweather.js.map +0 -1
  230. package/dist/Testing/fixtures/connectors/office365groups.d.ts +0 -6
  231. package/dist/Testing/fixtures/connectors/office365groups.d.ts.map +0 -1
  232. package/dist/Testing/fixtures/connectors/office365groups.js +0 -2144
  233. package/dist/Testing/fixtures/connectors/office365groups.js.map +0 -1
  234. package/dist/Testing/fixtures/connectors/office365users.d.ts +0 -6
  235. package/dist/Testing/fixtures/connectors/office365users.d.ts.map +0 -1
  236. package/dist/Testing/fixtures/connectors/office365users.js +0 -1969
  237. package/dist/Testing/fixtures/connectors/office365users.js.map +0 -1
  238. package/dist/Testing/fixtures/connectors/onedriveforbusiness.d.ts +0 -6
  239. package/dist/Testing/fixtures/connectors/onedriveforbusiness.d.ts.map +0 -1
  240. package/dist/Testing/fixtures/connectors/onedriveforbusiness.js +0 -4873
  241. package/dist/Testing/fixtures/connectors/onedriveforbusiness.js.map +0 -1
  242. package/dist/Testing/fixtures/connectors/powerappsforappmakers.d.ts +0 -6
  243. package/dist/Testing/fixtures/connectors/powerappsforappmakers.d.ts.map +0 -1
  244. package/dist/Testing/fixtures/connectors/powerappsforappmakers.js +0 -4682
  245. package/dist/Testing/fixtures/connectors/powerappsforappmakers.js.map +0 -1
  246. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.d.ts +0 -6
  247. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.d.ts.map +0 -1
  248. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.js +0 -1078
  249. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.js.map +0 -1
  250. package/dist/Testing/fixtures/connectors/sharepointonline.d.ts +0 -6
  251. package/dist/Testing/fixtures/connectors/sharepointonline.d.ts.map +0 -1
  252. package/dist/Testing/fixtures/connectors/sharepointonline.js +0 -28
  253. package/dist/Testing/fixtures/connectors/sharepointonline.js.map +0 -1
  254. package/dist/Testing/fixtures/connectors/teams.d.ts +0 -6
  255. package/dist/Testing/fixtures/connectors/teams.d.ts.map +0 -1
  256. package/dist/Testing/fixtures/connectors/teams.js +0 -9987
  257. package/dist/Testing/fixtures/connectors/teams.js.map +0 -1
  258. package/dist/Testing/fixtures/connectors/translatorv2.d.ts +0 -6
  259. package/dist/Testing/fixtures/connectors/translatorv2.d.ts.map +0 -1
  260. package/dist/Testing/fixtures/connectors/translatorv2.js +0 -307
  261. package/dist/Testing/fixtures/connectors/translatorv2.js.map +0 -1
  262. package/dist/Testing/fixtures/index.d.ts +0 -23
  263. package/dist/Testing/fixtures/index.d.ts.map +0 -1
  264. package/dist/Testing/fixtures/index.js +0 -96
  265. package/dist/Testing/fixtures/index.js.map +0 -1
  266. package/dist/Types/Argument.types.d.ts +0 -28
  267. package/dist/Types/Argument.types.d.ts.map +0 -1
  268. package/dist/Types/Argument.types.js +0 -5
  269. package/dist/Types/Argument.types.js.map +0 -1
  270. package/dist/Types/Cli.types.d.ts +0 -82
  271. package/dist/Types/Cli.types.d.ts.map +0 -1
  272. package/dist/Types/Cli.types.js +0 -5
  273. package/dist/Types/Cli.types.js.map +0 -1
  274. package/dist/Types/Command.types.d.ts +0 -69
  275. package/dist/Types/Command.types.d.ts.map +0 -1
  276. package/dist/Types/Command.types.js +0 -20
  277. package/dist/Types/Command.types.js.map +0 -1
  278. package/dist/Types/Datasource.types.d.ts +0 -30
  279. package/dist/Types/Datasource.types.d.ts.map +0 -1
  280. package/dist/Types/Datasource.types.js +0 -5
  281. package/dist/Types/Datasource.types.js.map +0 -1
  282. package/dist/Types/LoggerTypes.types.d.ts +0 -18
  283. package/dist/Types/LoggerTypes.types.d.ts.map +0 -1
  284. package/dist/Types/LoggerTypes.types.js +0 -5
  285. package/dist/Types/LoggerTypes.types.js.map +0 -1
  286. package/dist/Utils/BuildPolling.d.ts +0 -43
  287. package/dist/Utils/BuildPolling.d.ts.map +0 -1
  288. package/dist/Utils/BuildPolling.js +0 -139
  289. package/dist/Utils/BuildPolling.js.map +0 -1
  290. package/dist/Utils/BuildVerbDescriptionTable.d.ts +0 -29
  291. package/dist/Utils/BuildVerbDescriptionTable.d.ts.map +0 -1
  292. package/dist/Utils/BuildVerbDescriptionTable.js +0 -147
  293. package/dist/Utils/BuildVerbDescriptionTable.js.map +0 -1
  294. package/dist/Utils/CoerceCliVersion.d.ts +0 -27
  295. package/dist/Utils/CoerceCliVersion.d.ts.map +0 -1
  296. package/dist/Utils/CoerceCliVersion.js +0 -67
  297. package/dist/Utils/CoerceCliVersion.js.map +0 -1
  298. package/dist/Utils/ConnectorIds.d.ts +0 -12
  299. package/dist/Utils/ConnectorIds.d.ts.map +0 -1
  300. package/dist/Utils/ConnectorIds.js +0 -20
  301. package/dist/Utils/ConnectorIds.js.map +0 -1
  302. package/dist/Utils/ConsoleOutput.d.ts +0 -86
  303. package/dist/Utils/ConsoleOutput.d.ts.map +0 -1
  304. package/dist/Utils/ConsoleOutput.js +0 -162
  305. package/dist/Utils/ConsoleOutput.js.map +0 -1
  306. package/dist/Utils/DcfRecovery.d.ts +0 -84
  307. package/dist/Utils/DcfRecovery.d.ts.map +0 -1
  308. package/dist/Utils/DcfRecovery.js +0 -246
  309. package/dist/Utils/DcfRecovery.js.map +0 -1
  310. package/dist/Utils/DetectPackageManager.d.ts +0 -9
  311. package/dist/Utils/DetectPackageManager.d.ts.map +0 -1
  312. package/dist/Utils/DetectPackageManager.js +0 -24
  313. package/dist/Utils/DetectPackageManager.js.map +0 -1
  314. package/dist/Utils/DownloadTemplate.d.ts +0 -45
  315. package/dist/Utils/DownloadTemplate.d.ts.map +0 -1
  316. package/dist/Utils/DownloadTemplate.js +0 -161
  317. package/dist/Utils/DownloadTemplate.js.map +0 -1
  318. package/dist/Utils/EnhanceNetworkError.d.ts +0 -14
  319. package/dist/Utils/EnhanceNetworkError.d.ts.map +0 -1
  320. package/dist/Utils/EnhanceNetworkError.js +0 -61
  321. package/dist/Utils/EnhanceNetworkError.js.map +0 -1
  322. package/dist/Utils/EnvVars.d.ts +0 -17
  323. package/dist/Utils/EnvVars.d.ts.map +0 -1
  324. package/dist/Utils/EnvVars.js +0 -38
  325. package/dist/Utils/EnvVars.js.map +0 -1
  326. package/dist/Utils/EnvironmentRoutingUtils.d.ts +0 -81
  327. package/dist/Utils/EnvironmentRoutingUtils.d.ts.map +0 -1
  328. package/dist/Utils/EnvironmentRoutingUtils.js +0 -204
  329. package/dist/Utils/EnvironmentRoutingUtils.js.map +0 -1
  330. package/dist/Utils/FindAvailablePort.d.ts +0 -39
  331. package/dist/Utils/FindAvailablePort.d.ts.map +0 -1
  332. package/dist/Utils/FindAvailablePort.js +0 -105
  333. package/dist/Utils/FindAvailablePort.js.map +0 -1
  334. package/dist/Utils/GitCredentialConfig.d.ts +0 -12
  335. package/dist/Utils/GitCredentialConfig.d.ts.map +0 -1
  336. package/dist/Utils/GitCredentialConfig.js +0 -32
  337. package/dist/Utils/GitCredentialConfig.js.map +0 -1
  338. package/dist/Utils/GitErrorClassifier.d.ts +0 -40
  339. package/dist/Utils/GitErrorClassifier.d.ts.map +0 -1
  340. package/dist/Utils/GitErrorClassifier.js +0 -120
  341. package/dist/Utils/GitErrorClassifier.js.map +0 -1
  342. package/dist/Utils/GitHubDcfFlow.d.ts +0 -59
  343. package/dist/Utils/GitHubDcfFlow.d.ts.map +0 -1
  344. package/dist/Utils/GitHubDcfFlow.js +0 -165
  345. package/dist/Utils/GitHubDcfFlow.js.map +0 -1
  346. package/dist/Utils/GitRunner.d.ts +0 -107
  347. package/dist/Utils/GitRunner.d.ts.map +0 -1
  348. package/dist/Utils/GitRunner.js +0 -89
  349. package/dist/Utils/GitRunner.js.map +0 -1
  350. package/dist/Utils/GitUtils.d.ts +0 -59
  351. package/dist/Utils/GitUtils.d.ts.map +0 -1
  352. package/dist/Utils/GitUtils.js +0 -198
  353. package/dist/Utils/GitUtils.js.map +0 -1
  354. package/dist/Utils/GitVersionChecker.d.ts +0 -38
  355. package/dist/Utils/GitVersionChecker.d.ts.map +0 -1
  356. package/dist/Utils/GitVersionChecker.js +0 -64
  357. package/dist/Utils/GitVersionChecker.js.map +0 -1
  358. package/dist/Utils/HelpBanner.d.ts +0 -11
  359. package/dist/Utils/HelpBanner.d.ts.map +0 -1
  360. package/dist/Utils/HelpBanner.js +0 -15
  361. package/dist/Utils/HelpBanner.js.map +0 -1
  362. package/dist/Utils/MaafAppConfig.d.ts +0 -24
  363. package/dist/Utils/MaafAppConfig.d.ts.map +0 -1
  364. package/dist/Utils/MaafAppConfig.js +0 -38
  365. package/dist/Utils/MaafAppConfig.js.map +0 -1
  366. package/dist/Utils/NodeVersionChecker.d.ts +0 -10
  367. package/dist/Utils/NodeVersionChecker.d.ts.map +0 -1
  368. package/dist/Utils/NodeVersionChecker.js +0 -21
  369. package/dist/Utils/NodeVersionChecker.js.map +0 -1
  370. package/dist/Utils/Paging.d.ts +0 -29
  371. package/dist/Utils/Paging.d.ts.map +0 -1
  372. package/dist/Utils/Paging.js +0 -102
  373. package/dist/Utils/Paging.js.map +0 -1
  374. package/dist/Utils/PinCli.d.ts +0 -33
  375. package/dist/Utils/PinCli.d.ts.map +0 -1
  376. package/dist/Utils/PinCli.js +0 -77
  377. package/dist/Utils/PinCli.js.map +0 -1
  378. package/dist/Utils/ReadPackageJson.d.ts +0 -9
  379. package/dist/Utils/ReadPackageJson.d.ts.map +0 -1
  380. package/dist/Utils/ReadPackageJson.js +0 -13
  381. package/dist/Utils/ReadPackageJson.js.map +0 -1
  382. package/dist/Utils/RepoDetails.d.ts +0 -29
  383. package/dist/Utils/RepoDetails.d.ts.map +0 -1
  384. package/dist/Utils/RepoDetails.js +0 -37
  385. package/dist/Utils/RepoDetails.js.map +0 -1
  386. package/dist/Utils/RepoOption.d.ts +0 -42
  387. package/dist/Utils/RepoOption.d.ts.map +0 -1
  388. package/dist/Utils/RepoOption.js +0 -63
  389. package/dist/Utils/RepoOption.js.map +0 -1
  390. package/dist/Utils/RepoUrl.d.ts +0 -18
  391. package/dist/Utils/RepoUrl.d.ts.map +0 -1
  392. package/dist/Utils/RepoUrl.js +0 -6
  393. package/dist/Utils/RepoUrl.js.map +0 -1
  394. package/dist/Utils/ResolveCommand.d.ts +0 -62
  395. package/dist/Utils/ResolveCommand.d.ts.map +0 -1
  396. package/dist/Utils/ResolveCommand.js +0 -141
  397. package/dist/Utils/ResolveCommand.js.map +0 -1
  398. package/dist/Utils/RunCommand.d.ts +0 -33
  399. package/dist/Utils/RunCommand.d.ts.map +0 -1
  400. package/dist/Utils/RunCommand.js +0 -83
  401. package/dist/Utils/RunCommand.js.map +0 -1
  402. package/dist/Utils/ShareAccessRouting.d.ts +0 -78
  403. package/dist/Utils/ShareAccessRouting.d.ts.map +0 -1
  404. package/dist/Utils/ShareAccessRouting.js +0 -93
  405. package/dist/Utils/ShareAccessRouting.js.map +0 -1
  406. package/dist/Utils/Spinner.d.ts +0 -23
  407. package/dist/Utils/Spinner.d.ts.map +0 -1
  408. package/dist/Utils/Spinner.js +0 -94
  409. package/dist/Utils/Spinner.js.map +0 -1
  410. package/dist/Utils/zipBuildArtifact.d.ts +0 -35
  411. package/dist/Utils/zipBuildArtifact.d.ts.map +0 -1
  412. package/dist/Utils/zipBuildArtifact.js +0 -100
  413. package/dist/Utils/zipBuildArtifact.js.map +0 -1
  414. package/dist/Verbs/AddAction.d.ts +0 -6
  415. package/dist/Verbs/AddAction.d.ts.map +0 -1
  416. package/dist/Verbs/AddAction.js +0 -59
  417. package/dist/Verbs/AddAction.js.map +0 -1
  418. package/dist/Verbs/AddConnector.d.ts +0 -26
  419. package/dist/Verbs/AddConnector.d.ts.map +0 -1
  420. package/dist/Verbs/AddConnector.js +0 -223
  421. package/dist/Verbs/AddConnector.js.map +0 -1
  422. package/dist/Verbs/AddConnectorFlows.d.ts +0 -97
  423. package/dist/Verbs/AddConnectorFlows.d.ts.map +0 -1
  424. package/dist/Verbs/AddConnectorFlows.js +0 -298
  425. package/dist/Verbs/AddConnectorFlows.js.map +0 -1
  426. package/dist/Verbs/AddDataSource.d.ts +0 -18
  427. package/dist/Verbs/AddDataSource.d.ts.map +0 -1
  428. package/dist/Verbs/AddDataSource.js +0 -163
  429. package/dist/Verbs/AddDataSource.js.map +0 -1
  430. package/dist/Verbs/AddFlow.d.ts +0 -12
  431. package/dist/Verbs/AddFlow.d.ts.map +0 -1
  432. package/dist/Verbs/AddFlow.js +0 -63
  433. package/dist/Verbs/AddFlow.js.map +0 -1
  434. package/dist/Verbs/AddTable.d.ts +0 -6
  435. package/dist/Verbs/AddTable.d.ts.map +0 -1
  436. package/dist/Verbs/AddTable.js +0 -79
  437. package/dist/Verbs/AddTable.js.map +0 -1
  438. package/dist/Verbs/AuthStatus.d.ts +0 -6
  439. package/dist/Verbs/AuthStatus.d.ts.map +0 -1
  440. package/dist/Verbs/AuthStatus.js +0 -49
  441. package/dist/Verbs/AuthStatus.js.map +0 -1
  442. package/dist/Verbs/AuthSwitch.d.ts +0 -6
  443. package/dist/Verbs/AuthSwitch.d.ts.map +0 -1
  444. package/dist/Verbs/AuthSwitch.js +0 -67
  445. package/dist/Verbs/AuthSwitch.js.map +0 -1
  446. package/dist/Verbs/BuildMaafApp.d.ts +0 -6
  447. package/dist/Verbs/BuildMaafApp.d.ts.map +0 -1
  448. package/dist/Verbs/BuildMaafApp.js +0 -171
  449. package/dist/Verbs/BuildMaafApp.js.map +0 -1
  450. package/dist/Verbs/ConnectorHelpers.d.ts +0 -164
  451. package/dist/Verbs/ConnectorHelpers.d.ts.map +0 -1
  452. package/dist/Verbs/ConnectorHelpers.js +0 -563
  453. package/dist/Verbs/ConnectorHelpers.js.map +0 -1
  454. package/dist/Verbs/CreateMaafApp.d.ts +0 -100
  455. package/dist/Verbs/CreateMaafApp.d.ts.map +0 -1
  456. package/dist/Verbs/CreateMaafApp.js +0 -1022
  457. package/dist/Verbs/CreateMaafApp.js.map +0 -1
  458. package/dist/Verbs/DeleteMaafApp.d.ts +0 -27
  459. package/dist/Verbs/DeleteMaafApp.d.ts.map +0 -1
  460. package/dist/Verbs/DeleteMaafApp.js +0 -114
  461. package/dist/Verbs/DeleteMaafApp.js.map +0 -1
  462. package/dist/Verbs/DeployMaafApp.d.ts +0 -6
  463. package/dist/Verbs/DeployMaafApp.d.ts.map +0 -1
  464. package/dist/Verbs/DeployMaafApp.js +0 -495
  465. package/dist/Verbs/DeployMaafApp.js.map +0 -1
  466. package/dist/Verbs/Dev.d.ts +0 -6
  467. package/dist/Verbs/Dev.d.ts.map +0 -1
  468. package/dist/Verbs/Dev.js +0 -276
  469. package/dist/Verbs/Dev.js.map +0 -1
  470. package/dist/Verbs/FindDataverseApi.d.ts +0 -12
  471. package/dist/Verbs/FindDataverseApi.d.ts.map +0 -1
  472. package/dist/Verbs/FindDataverseApi.js +0 -87
  473. package/dist/Verbs/FindDataverseApi.js.map +0 -1
  474. package/dist/Verbs/GetMaafApp.d.ts +0 -6
  475. package/dist/Verbs/GetMaafApp.d.ts.map +0 -1
  476. package/dist/Verbs/GetMaafApp.js +0 -80
  477. package/dist/Verbs/GetMaafApp.js.map +0 -1
  478. package/dist/Verbs/GetMaafBuildStatus.d.ts +0 -6
  479. package/dist/Verbs/GetMaafBuildStatus.d.ts.map +0 -1
  480. package/dist/Verbs/GetMaafBuildStatus.js +0 -132
  481. package/dist/Verbs/GetMaafBuildStatus.js.map +0 -1
  482. package/dist/Verbs/GetSettings.d.ts +0 -12
  483. package/dist/Verbs/GetSettings.d.ts.map +0 -1
  484. package/dist/Verbs/GetSettings.js +0 -39
  485. package/dist/Verbs/GetSettings.js.map +0 -1
  486. package/dist/Verbs/Init.d.ts +0 -6
  487. package/dist/Verbs/Init.d.ts.map +0 -1
  488. package/dist/Verbs/Init.js +0 -453
  489. package/dist/Verbs/Init.js.map +0 -1
  490. package/dist/Verbs/ListConnectionReferences.d.ts +0 -6
  491. package/dist/Verbs/ListConnectionReferences.d.ts.map +0 -1
  492. package/dist/Verbs/ListConnectionReferences.js +0 -56
  493. package/dist/Verbs/ListConnectionReferences.js.map +0 -1
  494. package/dist/Verbs/ListConnectorActions.d.ts +0 -6
  495. package/dist/Verbs/ListConnectorActions.d.ts.map +0 -1
  496. package/dist/Verbs/ListConnectorActions.js +0 -94
  497. package/dist/Verbs/ListConnectorActions.js.map +0 -1
  498. package/dist/Verbs/ListConnectors.d.ts +0 -6
  499. package/dist/Verbs/ListConnectors.d.ts.map +0 -1
  500. package/dist/Verbs/ListConnectors.js +0 -97
  501. package/dist/Verbs/ListConnectors.js.map +0 -1
  502. package/dist/Verbs/ListDatasets.d.ts +0 -6
  503. package/dist/Verbs/ListDatasets.d.ts.map +0 -1
  504. package/dist/Verbs/ListDatasets.js +0 -73
  505. package/dist/Verbs/ListDatasets.js.map +0 -1
  506. package/dist/Verbs/ListEnvironmentVariables.d.ts +0 -14
  507. package/dist/Verbs/ListEnvironmentVariables.d.ts.map +0 -1
  508. package/dist/Verbs/ListEnvironmentVariables.js +0 -52
  509. package/dist/Verbs/ListEnvironmentVariables.js.map +0 -1
  510. package/dist/Verbs/ListFlows.d.ts +0 -13
  511. package/dist/Verbs/ListFlows.d.ts.map +0 -1
  512. package/dist/Verbs/ListFlows.js +0 -73
  513. package/dist/Verbs/ListFlows.js.map +0 -1
  514. package/dist/Verbs/ListMaafApps.d.ts +0 -84
  515. package/dist/Verbs/ListMaafApps.d.ts.map +0 -1
  516. package/dist/Verbs/ListMaafApps.js +0 -221
  517. package/dist/Verbs/ListMaafApps.js.map +0 -1
  518. package/dist/Verbs/ListSqlStoredProcedures.d.ts +0 -6
  519. package/dist/Verbs/ListSqlStoredProcedures.d.ts.map +0 -1
  520. package/dist/Verbs/ListSqlStoredProcedures.js +0 -75
  521. package/dist/Verbs/ListSqlStoredProcedures.js.map +0 -1
  522. package/dist/Verbs/ListTables.d.ts +0 -6
  523. package/dist/Verbs/ListTables.d.ts.map +0 -1
  524. package/dist/Verbs/ListTables.js +0 -85
  525. package/dist/Verbs/ListTables.js.map +0 -1
  526. package/dist/Verbs/Login.d.ts +0 -6
  527. package/dist/Verbs/Login.d.ts.map +0 -1
  528. package/dist/Verbs/Login.js +0 -39
  529. package/dist/Verbs/Login.js.map +0 -1
  530. package/dist/Verbs/Logout.d.ts +0 -6
  531. package/dist/Verbs/Logout.d.ts.map +0 -1
  532. package/dist/Verbs/Logout.js +0 -34
  533. package/dist/Verbs/Logout.js.map +0 -1
  534. package/dist/Verbs/MaafAppPermissions.d.ts +0 -40
  535. package/dist/Verbs/MaafAppPermissions.d.ts.map +0 -1
  536. package/dist/Verbs/MaafAppPermissions.js +0 -651
  537. package/dist/Verbs/MaafAppPermissions.js.map +0 -1
  538. package/dist/Verbs/Pack.d.ts +0 -71
  539. package/dist/Verbs/Pack.d.ts.map +0 -1
  540. package/dist/Verbs/Pack.js +0 -370
  541. package/dist/Verbs/Pack.js.map +0 -1
  542. package/dist/Verbs/PlayMaafApp.d.ts +0 -22
  543. package/dist/Verbs/PlayMaafApp.d.ts.map +0 -1
  544. package/dist/Verbs/PlayMaafApp.js +0 -147
  545. package/dist/Verbs/PlayMaafApp.js.map +0 -1
  546. package/dist/Verbs/RefreshDataSource.d.ts +0 -21
  547. package/dist/Verbs/RefreshDataSource.d.ts.map +0 -1
  548. package/dist/Verbs/RefreshDataSource.js +0 -89
  549. package/dist/Verbs/RefreshDataSource.js.map +0 -1
  550. package/dist/Verbs/RefreshGitAuth.d.ts +0 -6
  551. package/dist/Verbs/RefreshGitAuth.d.ts.map +0 -1
  552. package/dist/Verbs/RefreshGitAuth.js +0 -155
  553. package/dist/Verbs/RefreshGitAuth.js.map +0 -1
  554. package/dist/Verbs/RemoveDataSource.d.ts +0 -6
  555. package/dist/Verbs/RemoveDataSource.d.ts.map +0 -1
  556. package/dist/Verbs/RemoveDataSource.js +0 -173
  557. package/dist/Verbs/RemoveDataSource.js.map +0 -1
  558. package/dist/Verbs/RemoveFlow.d.ts +0 -12
  559. package/dist/Verbs/RemoveFlow.d.ts.map +0 -1
  560. package/dist/Verbs/RemoveFlow.js +0 -95
  561. package/dist/Verbs/RemoveFlow.js.map +0 -1
  562. package/dist/Verbs/SetSetting.d.ts +0 -12
  563. package/dist/Verbs/SetSetting.d.ts.map +0 -1
  564. package/dist/Verbs/SetSetting.js +0 -133
  565. package/dist/Verbs/SetSetting.js.map +0 -1
  566. package/dist/Verbs/ShareLinkCreate.d.ts +0 -23
  567. package/dist/Verbs/ShareLinkCreate.d.ts.map +0 -1
  568. package/dist/Verbs/ShareLinkCreate.js +0 -73
  569. package/dist/Verbs/ShareLinkCreate.js.map +0 -1
  570. package/dist/Verbs/ShareLinkList.d.ts +0 -16
  571. package/dist/Verbs/ShareLinkList.d.ts.map +0 -1
  572. package/dist/Verbs/ShareLinkList.js +0 -84
  573. package/dist/Verbs/ShareLinkList.js.map +0 -1
  574. package/dist/Verbs/ShareLinkRevoke.d.ts +0 -22
  575. package/dist/Verbs/ShareLinkRevoke.d.ts.map +0 -1
  576. package/dist/Verbs/ShareLinkRevoke.js +0 -137
  577. package/dist/Verbs/ShareLinkRevoke.js.map +0 -1
  578. package/dist/Verbs/ShareList.d.ts +0 -10
  579. package/dist/Verbs/ShareList.d.ts.map +0 -1
  580. package/dist/Verbs/ShareList.js +0 -254
  581. package/dist/Verbs/ShareList.js.map +0 -1
  582. package/dist/Verbs/ShareMaafApp.d.ts +0 -12
  583. package/dist/Verbs/ShareMaafApp.d.ts.map +0 -1
  584. package/dist/Verbs/ShareMaafApp.js +0 -14
  585. package/dist/Verbs/ShareMaafApp.js.map +0 -1
  586. package/dist/Verbs/ShowMaafApp.d.ts +0 -100
  587. package/dist/Verbs/ShowMaafApp.d.ts.map +0 -1
  588. package/dist/Verbs/ShowMaafApp.js +0 -224
  589. package/dist/Verbs/ShowMaafApp.js.map +0 -1
  590. package/dist/Verbs/TelemetrySettings.d.ts +0 -8
  591. package/dist/Verbs/TelemetrySettings.d.ts.map +0 -1
  592. package/dist/Verbs/TelemetrySettings.js +0 -104
  593. package/dist/Verbs/TelemetrySettings.js.map +0 -1
  594. package/dist/Verbs/UnshareMaafApp.d.ts +0 -12
  595. package/dist/Verbs/UnshareMaafApp.d.ts.map +0 -1
  596. package/dist/Verbs/UnshareMaafApp.js +0 -14
  597. package/dist/Verbs/UnshareMaafApp.js.map +0 -1
  598. package/dist/Verbs/VerbConstants.d.ts +0 -629
  599. package/dist/Verbs/VerbConstants.d.ts.map +0 -1
  600. package/dist/Verbs/VerbConstants.js +0 -559
  601. package/dist/Verbs/VerbConstants.js.map +0 -1
  602. package/dist/Verbs/index.d.ts +0 -47
  603. package/dist/Verbs/index.d.ts.map +0 -1
  604. package/dist/Verbs/index.js +0 -47
  605. package/dist/Verbs/index.js.map +0 -1
@@ -0,0 +1,41 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __pathDirname } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __pathDirname(__filename);
7
+ import{a as ve,b as B,c as Ce,d as J,e as ye,g as we}from"./chunk-5AUOEXAR.js";import{A as z,B as se,C as ce,D as le,M as j,N as me,O as ue,T as fe,U as ge,e as ee,f as ne,i as te,q as U,u as oe,ua as $,v as ae,va as x,w as ie,x as re,y as G,z as Y}from"./chunk-G33Q5FWT.js";import{a as de,b as u,f as pe}from"./chunk-RBG2H562.js";import"./chunk-S5HEU7XK.js";import"./chunk-EV3TTTOT.js";import{c as he}from"./chunk-7NXJAIJX.js";import{b as P,c as b}from"./chunk-6MXOK2LG.js";import{a as V,c as T,h,i as I}from"./chunk-PVAIJSAI.js";import{a as w}from"./chunk-VNEZZ3RI.js";import"./chunk-U36HMOQW.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";var De=["shared_commondataserviceforapps","commondataserviceforapps"];function H(e){let t=e.toLowerCase();return De.some(n=>t===n||t.endsWith(`/${n}`))}import*as Ie from"http";import xe from"open";var be={defaultBehavior:"Allow",allowedConnectors:[]};async function Se(e,t){if(e.toLowerCase().startsWith("shared_"))return e;let n=await ie(void 0,t??void 0),o=e.toLowerCase(),r=n.filter(a=>a.properties.displayName.toLowerCase()===o),i=r.length===0,c=i?n.filter(a=>a.properties.displayName.toLowerCase().includes(o)):r;if(c.length===0)return e;if(c.length===1)return i&&h(`Resolved '${e}' \u2192 '${c[0].properties.displayName}' (${c[0].name})`),c[0].name;let f=c.map(a=>` ${a.name} (${a.properties.displayName})`).join(`
8
+ `);throw new u(`Multiple connectors match '${e}'. Specify the connector ID directly:
9
+ ${f}`)}var Ae="__create__",ke=600*1e3,K="1";async function Ne(e,t){let n=$(),o=await e.getTenantIdAsync();o||(n.trackErrorEvent("DlpSkippedNoTenantId",{apiId:t}),I(`Could not resolve tenant ID; skipping connector policy check. Sign in with '${"ms"} auth login' for full enforcement.`));let[r,i]=await Promise.all([oe(t,n),o?se(n,o).catch(()=>(I("Could not verify connector policy; proceeding without enforcement."),be)):Promise.resolve(be)]);if(!r)throw new pe(`Connector '${t}' not found. Run '${"ms"} connector list' to see available connector IDs.`);let c=(r.name??t).toLowerCase(),f=new Map(i.allowedConnectors.map(p=>[p.connectorId.toLowerCase(),p])),a=new Set((i.blockedConnectors??[]).map(p=>p.connectorId.toLowerCase()));if(i.defaultBehavior==="Block"?!f.has(c):a.has(c))throw new u(`Connector '${r.properties.displayName??t}' is blocked by your organization's connector policy.`);return{connector:r,tenantId:o,policy:i}}async function Q(e){let{argumentProvider:t,apiId:n,connector:o,useSso:r}=e,i=x(),c=$(),f=U(),a=await ae(n,c);if(!i.interactive)return Le({argumentProvider:t,apiId:n,connector:o,connections:a??[],useSso:r});if(r){if(!Y(o))throw new u(`--use-sso was set but '${o.properties.displayName??n}' does not support single sign-on (SSO) authentication.
10
+ To fix: Re-run without --use-sso to create a connection interactively.`);let l=(a??[]).filter(s=>z(s,o));if(l.length>0){let[s]=l;return h(`Using existing SSO connection '${s.properties.displayName}' (${s.name}).`),l.length>1&&I(`Multiple SSO connections found for '${o.properties.displayName??n}'. Re-run with --connection-id <id> or -c <id> to use a specific one.`),{connectionId:s.name,autoSelected:!0}}let m=await W(t,n);return T(`Created a new connection '${m.properties.displayName}' (${m.name}).`),{connectionId:m.name,autoSelected:!1}}let d=[...a.map(l=>({value:l.name,label:l.properties.displayName,hint:l.name})),{value:Ae,label:"(Create a new connection)"}],p=await Ce({message:"Select a connection:",options:d});if(p===Ae){if(G(o))try{return{connectionId:(await W(t,n)).name,autoSelected:!1}}catch(y){I(`Silent connection creation failed: ${y instanceof Error?y.message:String(y)}`),h(`Falling back to browser-based connection creation...
11
+ `)}else h(`This connector requires manual interaction. Opening browser for connection creation...
12
+ `);let l=n.startsWith("shared_")?n:`shared_${n}`,m=t.getEnvironmentId();if(!m)throw new u("Missing required information. Make sure you are running this command in a Managed Apps directory.");let s=await Fe({connectorName:l,region:f.region,environmentId:m});if(s.status==="created"&&s.connectionName)return T("Connection created successfully!"),s.displayName&&h(` Display Name: ${s.displayName}`),h(` Connection ID: ${s.connectionName}`),{connectionId:s.connectionName,autoSelected:!1};throw s.status==="error"?new de(s.errorMessage??"Connection creation failed in the browser."):new u("Connection creation was cancelled.")}return{connectionId:p,autoSelected:!1}}async function Le(e){let{argumentProvider:t,apiId:n,connector:o,connections:r,useSso:i}=e,c=o.properties.displayName??n;if(i){if(!Y(o))throw new u(`--use-sso was set but '${c}' does not support single sign-on (SSO) authentication.
13
+ To fix: Re-run without both --use-sso and --non-interactive to create a connection interactively.`);let a=r.filter(d=>z(d,o));if(a.length>0){let[d]=a;return h(`Using existing SSO connection '${d.properties.displayName}' (${d.name}).`),a.length>1&&I(`Multiple SSO connections found for '${c}'. Re-run with --connection-id <id> or -c <id> to use a specific one.`),{connectionId:d.name,autoSelected:!0}}try{let d=await W(t,n);return T(`Created a new connection '${d.properties.displayName}' (${d.name}).`),{connectionId:d.name,autoSelected:!1}}catch(d){let p=d instanceof Error?d.message:String(d);throw new u(`No SSO connection exists for '${c}' and automatic connection creation failed.
14
+ Reason: ${p}
15
+ To fix: Create one interactively (re-run without --non-interactive),
16
+ then re-run with --connection-id <id> or -c <id>.`)}}if(r.length===1){let[a]=r;return h(`Using existing connection '${a.properties.displayName}' (${a.name}).`),{connectionId:a.name,autoSelected:!0}}if(r.length===0&&G(o))try{let a=await W(t,n);return T(`Created a new connection '${a.properties.displayName}' (${a.name}).`),{connectionId:a.name,autoSelected:!1}}catch(a){let d=a instanceof Error?a.message:String(a);throw new u(`No connection exists for '${c}' and automatic connection creation failed.
17
+ Reason: ${d}
18
+ To fix: Create one interactively (re-run without --non-interactive),
19
+ then re-run with --connection-id <id> or -c <id>.`)}throw r.length>1?(V({title:`Available connections for ${c}`,columns:[{header:"Display Name",maxWidth:40},{header:"Connection ID"}],rows:r.map(a=>[a.properties.displayName,a.name]),totalLabel:"connection(s) found"}),new u(`Multiple connections exist for '${c}', so one cannot be selected automatically.
20
+ To fix: Re-run with --connection-id <id> or -c <id> to choose one,
21
+ or re-run without --non-interactive to select one interactively.`)):new u(`'${c}' requires a connection that cannot be created automatically in non-interactive mode.
22
+ To fix: Create one interactively (re-run without --non-interactive),
23
+ then re-run with --connection-id <id> or -c <id>.
24
+ Tip: Run '${"ms"} connector list' to browse available connectors.`)}async function W(e,t){let n=$(),o=U();return ue({authProvider:e.getAuthenticationProvider(),region:o.region,environmentName:o.environmentName,actionsParams:{connectorId:t},logger:n})}function Oe(e,t){return`Note: connection '${e}' was auto-selected for connector '${t}' because no --connection-id was provided. For tabular connectors, the connection needs to have access to the target resource, so this failure may not clearly indicate the root cause:
25
+ - If the connection is broken or expired, re-authenticate it and re-run.
26
+ - If the connection is valid but targets the wrong resource, re-run with an explicit --connection-id <id> for the intended resource.`}async function q(e,t){try{return await e()}catch(n){throw t.autoSelected&&n instanceof Error&&!(n instanceof u)&&(n.message=`${n.message}
27
+
28
+ ${Oe(t.connectionId,t.connectorLabel)}`),n}}async function X(e){if(!he("ENABLE_CONNECTOR_USER_CONSENT"))return;let{apiId:t,connectionId:n}=e,o=$(),r=o.trackScenario("ConnectorUserConsent",{apiId:t,connectionId:n});try{await re(t,n,o),r.complete()}catch(i){if(i instanceof ne&&i.status===403){r.failure(i),I(`Could not request user consent on connection '${n}' (HTTP 403). The data source was added, but later calls against this connection may fail until your tenant admin grants the calling application the 'Connectivity.Connections.UserConsent' delegated permission.`);return}r.failure(i);let c=i instanceof Error?i.message:String(i);I(`Could not request user consent on connection '${n}': ${c}. The data source was added, but later calls against this connection may fail.`)}}async function Fe(e){let{connectorName:t,region:n,environmentId:o}=e,r=crypto.randomUUID();return new Promise((i,c)=>{let f=Ie.createServer((l,m)=>{let s=new URL(l.url??"/","http://localhost");if(s.pathname==="/callback"&&l.method==="GET"){if(s.searchParams.get("nonce")!==r){m.writeHead(403,{"Content-Type":"text/html; charset=utf-8"}),m.end("<html><body><h2>Connection request verification failed. Please run the CLI command again.</h2></body></html>"),p(),i({status:"cancelled"});return}let E=s.searchParams.get("v");E!==K&&I(`Warning: callback protocol version mismatch (expected ${K}, got ${E??"none"}). Update the CLI to the latest version.`);let D=s.searchParams.get("status"),A=s.searchParams.get("message")??void 0;m.writeHead(200,{"Content-Type":"text/html; charset=utf-8"});let g;if(D==="created")g="<html><body><h2>Connection created! You can close this tab.</h2></body></html>";else if(D==="error"){let v=A?A.replace(/[&<>"']/g,R=>`&#${R.charCodeAt(0)};`):"";g=v?`<html><body><h2>Connection creation failed. You can close this tab.</h2><p>${v}</p></body></html>`:"<html><body><h2>Connection creation failed. You can close this tab.</h2></body></html>"}else g="<html><body><h2>Connection creation cancelled. You can close this tab.</h2></body></html>";m.end(g),p(),i(D==="created"?{status:"created",connectionId:s.searchParams.get("connectionId")??void 0,connectionName:s.searchParams.get("connectionName")??void 0,displayName:s.searchParams.get("displayName")??void 0}:D==="error"?{status:"error",errorMessage:A}:{status:"cancelled"});return}m.writeHead(404),m.end("Not found")});f.listen(0,"localhost",async()=>{let l=f.address(),s=`http://localhost:${typeof l=="object"&&l?l.port:0}/callback`,y=te(n,{connector:t,callbackUrl:s,nonce:r,protocolVersion:K,environmentId:o});h(`Opening browser at ${y}`);try{await xe(y,{wait:!1})}catch{h(`Could not open browser automatically. Please navigate to:
29
+ ${y}`)}h(`Waiting for connection creation... (press Ctrl+C to cancel)
30
+ `)}),f.on("error",l=>{p(),c(l)});let a=setTimeout(()=>{h(`
31
+ Connection creation timed out after 10 minutes.`),p(),i({status:"cancelled"})},ke),d=()=>{h(`
32
+ Cancelling...`),p(),i({status:"cancelled"})};function p(){clearTimeout(a),process.off("SIGINT",d),f.close()}process.on("SIGINT",d)})}function Te(e){e.length!==0&&I(`The following connector operations are blocked by your organization's policy and were not generated.
33
+ Ask your admin to allow them on 'Microsoft Dataverse' to restore the missing service methods:
34
+ `+e.map(({operationId:t,methodName:n})=>` \u2022 ${t} (generates ${n}())`).join(`
35
+ `))}async function Pe(e){let{argumentProvider:t,connector:n,apiId:o,connectionIdFlag:r,datasetFlag:i,tableFlag:c,skipCodegen:f,useV1Codegen:a,useSso:d}=e,p=x(),{fileConfig:l,cliFs:m}=p,s=U(),y=t.getAuthenticationProvider(),E=$(),D={appConfigPath:l.appConfigPath,schemaPath:l.schemaPath,codeGenPath:l.codeGenPath},A={vfs:m,authProvider:y,httpClient:t.getHttpClient(),region:s.region,environmentName:s.environmentName,localFilePaths:D,logger:E},g=n.properties.displayName??o,v=r,R=!1;if(!v){let L=await Q({argumentProvider:t,apiId:o,connector:n,useSso:d});v=L.connectionId,R=L.autoSelected}let M={autoSelected:R,connectionId:v,connectorLabel:g};await X({apiId:o,connectionId:v});let S=i;if(!S){let L={...A,actionsParams:{apiId:o,connectionId:v}},{value:_}=await q(()=>fe(L),M);if(!p.interactive)throw V({title:`Available datasets for ${g}`,columns:[{header:"Display Name",maxWidth:40},{header:"Dataset Name"}],rows:_.map(C=>[C.DisplayName||C.Name,C.Name]),emptyMessage:"No datasets found for this connection.",totalLabel:"dataset(s) found"}),new u("Re-run with --dataset <name> or -d <name>.");S=await J({message:"Select a dataset:",options:_.map(C=>({value:C.Name,label:C.DisplayName||C.Name,hint:C.Name})),manualPromptMessage:"Enter dataset name:"})}let F=c;if(!F){let L={...A,actionsParams:{apiId:o,connectionId:v,dataset:S}},{value:_}=await q(()=>ge(L),M);if(!p.interactive)throw V({title:`Available tables in dataset '${S}'`,columns:[{header:"Display Name",maxWidth:40},{header:"Table Name"}],rows:_.map(C=>[C.DisplayName||C.Name,C.Name]),emptyMessage:"No tables found in this dataset.",totalLabel:"table(s) found"}),new u("Re-run with --table <name> or -t <name>.");F=await J({message:"Select a table:",options:_.map(C=>({value:C.Name,label:C.DisplayName||C.Name,hint:C.Name})),manualPromptMessage:"Enter table name:"})}let k={...A,actionsParams:{apiId:o,connectionId:v,dataset:S,tableName:F,skipCodegen:f,useV1Codegen:a}},N=await q(()=>me(k),M);T(`Data source '${N}' added successfully (table '${F}' from connector '${g}').`),h(`Hint: Run '${"ms"} app dev' to test locally, or '${"ms"} app deploy' to deploy.`)}async function Z(e){let{argumentProvider:t,connector:n,apiId:o,connectionIdFlag:r,skipCodegen:i,useV1Codegen:c,useSso:f,policy:a,dataverseEnvironmentId:d,dataverseTable:p,forceTableBinding:l}=e,m=x(),{fileConfig:s,cliFs:y}=m,E=U(),D=t.getAuthenticationProvider(),A=$(),g=(n.properties.connectionParameterSets?.values?.length??0)>1,v=r;g&&!v&&(v=(await Q({argumentProvider:t,apiId:o,connector:n,useSso:f})).connectionId),g&&v&&await X({apiId:o,connectionId:v});let R=a?le(a,n.name??o):void 0,M=H(o),S=await Re({isCommonDataServiceForApps:M,forceTableBinding:!!l,dataverseEnvironmentId:d,dataverseTable:p}),F=N=>({vfs:y,authProvider:D,httpClient:t.getHttpClient(),region:E.region,environmentName:E.environmentName,actionsParams:{apiId:o,connectionId:v,skipCodegen:i,useV1Codegen:c,actionPolicy:R,...N},localFilePaths:{appConfigPath:s.appConfigPath,schemaPath:s.schemaPath,codeGenPath:s.codeGenPath},logger:A}),k;try{k=await j(F(S))}catch(N){throw N instanceof ce||N instanceof ee?new u(N.message):N}if(k.filteredCount>0&&h(`Skipped ${k.filteredCount} of ${k.totalCount} actions due to your organization's connector policy.`),Te(k.skippedDataverseMethods),T(`Data source '${k.dataSourceName}' added successfully (connector '${n.properties.displayName??o}').`),S?.dataverseTable&&T(`Dataverse table '${S.dataverseTable}' bound successfully.`),M&&m.interactive&&!S&&await B({message:"Connect this to a specific Dataverse table?",initialValue:!0})){let L=await j(F(await $e({})));T("Dataverse table binding added successfully."),Te(L.skippedDataverseMethods)}h(`Hint: Run '${"ms"} app dev' to test locally, or '${"ms"} app deploy' to deploy.`)}async function Re(e){if(!e.isCommonDataServiceForApps)return;let t=x(),n=!!e.dataverseTable;if(!t.interactive)return n?{dataverseEnvironmentId:e.dataverseEnvironmentId,dataverseTable:e.dataverseTable}:void 0;if(!(!n&&!e.forceTableBinding))return $e({dataverseEnvironmentId:e.dataverseEnvironmentId,dataverseTable:e.dataverseTable})}async function $e(e){let t=e.dataverseTable??await ve({message:"Dataverse table logical name:"});return{dataverseEnvironmentId:e.dataverseEnvironmentId,dataverseTable:t}}function Ee(e){return e.properties.capabilities?.some(t=>t.toLowerCase()==="tabular")??!1}async function fn(e){Ue(e),await e.runVerb(),we();let t=await e.getOption("connector"),n=await e.getOption("connectionId",!0),o=await e.getOption("dataset",!0),r=await e.getOption("table",!0),i=await e.getOption("as",!0),c=await e.getOption("dataverseEnvironmentId",!0),f=!!await e.getOption("skipCodegen",!0),a=!!await e.getOption("useV1Codegen",!0),d=!!await e.getOption("useSso",!0),p;if(i!==void 0&&i!==""){let g=i.toLowerCase();if(g!=="table"&&g!=="action")throw new u(`Invalid value for --as: '${i}'. Expected 'table' or 'action'.`);p=g}let l=await Se(t,$()),{connector:m,policy:s}=await Ne(e,l),y=m.properties.displayName??l,E=Ee(m);if(H(l)){if(o)throw new u("--dataset is not used with the Common Data Service for Apps connector. Use --table to specify a Dataverse logical name.");let g=p==="table";if(!x().interactive&&(g||c)&&!r)throw new u("Adding a Dataverse table requires --table <logical-name> for the Common Data Service for Apps connector. --dataverse-environment-id is optional and defaults to the app environment.");await Z({argumentProvider:e,connector:m,apiId:l,connectionIdFlag:n,skipCodegen:f,useV1Codegen:a,useSso:d,policy:s,dataverseEnvironmentId:c,dataverseTable:r,forceTableBinding:g});return}if(c)throw new u("--dataverse-environment-id can only be used with the Common Data Service for Apps connector (--connector shared_commondataserviceforapps or --connector commondataserviceforapps).");let A=await Me({isTabular:E,asFlag:p,connectorLabel:y});if(A==="action"&&(o||r))throw new u("--dataset and --table cannot be used with --as action. Re-run with --as table, or omit those flags.");A==="table"?await Pe({argumentProvider:e,connector:m,apiId:l,connectionIdFlag:n,datasetFlag:o,tableFlag:r,skipCodegen:f,useV1Codegen:a,useSso:d}):await Z({argumentProvider:e,connector:m,apiId:l,connectionIdFlag:n,skipCodegen:f,useV1Codegen:a,useSso:d,policy:s})}async function Me(e){let{isTabular:t,asFlag:n,connectorLabel:o}=e,r=x();if(!t){if(n==="table")throw new u(`Connector '${o}' does not support tabular data sources. Re-run without --as table, or with --as action.`);return"action"}if(n)return n;if(!r.interactive)throw new u(`Connector '${o}' supports both tables and actions. Specify --as table or --as action.`);return await B({message:`Connector '${o}' supports tables. Add a table? (No \u2192 add actions instead)`,initialValue:!0})?"table":"action"}function Ue(e){e.getResolvedCommand()?.path.at(-1)==="connector"?(e.setDescription(`${w.app.add.connector.deprecation}
36
+
37
+ ${w.app.add.connector.description}`),e.addExamples(w.app.add.connector.deprecatedExamples)):(e.setDescription(w.app.add.connector.description),e.addExamples(w.app.add.connector.examples)),e.addOptions([ye({flags:{key:P.Connector.name},env:P.Connector.envVar,message:P.Connector.promptMessage,description:w.app.add.connector.options.connector}),{flags:{key:P.ConnectionId.name,alias:P.ConnectionId.alias},env:P.ConnectionId.envVar,description:w.app.add.connector.options.connectionId,optionalInNonInteractive:!0},{flags:{key:P.Dataset.name,alias:P.Dataset.alias},env:P.Dataset.envVar,description:w.app.add.connector.options.dataset,optionalInNonInteractive:!0},{flags:{key:b.Table.name,alias:b.Table.alias},env:b.Table.envVar,description:w.app.add.connector.options.table,optionalInNonInteractive:!0},{flags:{key:b.As.name},env:b.As.envVar,description:w.app.add.connector.options.as,optionalInNonInteractive:!0},{flags:{key:b.DataverseEnvironmentId.name},env:b.DataverseEnvironmentId.envVar,description:w.app.add.connector.options.dataverseEnvironmentId,optionalInNonInteractive:!0}]),e.addSwitch({flags:{key:b.SkipCodegen.name},env:b.SkipCodegen.env,description:w.app.add.connector.options.skipCodegen}),e.addSwitch({flags:{key:b.UseSso.name},env:b.UseSso.env,description:w.app.add.connector.options.useSso}),e.addSwitch({flags:{key:b.UseV1Codegen.name},env:b.UseV1Codegen.env,description:"Use V1 (legacy) code generation instead of V2.",hidden:!0})}export{fn as addConnectorAsync};
38
+ /*!
39
+ * Copyright (C) Microsoft Corporation. All rights reserved.
40
+ */
41
+ //# sourceMappingURL=AddConnector-4AMM746J.js.map
@@ -0,0 +1,11 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __pathDirname } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __pathDirname(__filename);
7
+ import{a as i,d as u,h as a,i as s}from"./chunk-PVAIJSAI.js";import{a as o}from"./chunk-VNEZZ3RI.js";import"./chunk-U36HMOQW.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";async function l(n){n.setDescription(o.auth.status.description),n.addExamples(o.auth.status.examples),await n.runVerb();let t=await n.getAccountManager().listCachedAccountsAsync();if(n.isJsonMode()){let e=t.find(c=>c.isActive);u({signedIn:t.length>0,activeAccount:e?{username:e.username,homeAccountId:e.homeAccountId}:null,accounts:t.map(c=>({username:c.username,homeAccountId:c.homeAccountId,isActive:c.isActive}))});return}if(t.length===0){s(`Not signed in. Run \`${"ms"} auth login\` to authenticate.`);return}if(t.length===1){a(`Signed in as ${t[0].username} (account ID: ${t[0].homeAccountId})`);return}let m=t.some(e=>e.isActive);i({title:"Cached accounts",columns:[{header:"Active"},{header:"Username"},{header:"Account ID"}],rows:t.map(e=>[e.isActive?"*":"",e.username,e.homeAccountId])}),m||s(`No active account selected. Run \`${"ms"} auth switch\` to choose one.`)}export{l as authStatusAsync};
8
+ /*!
9
+ * Copyright (C) Microsoft Corporation. All rights reserved.
10
+ */
11
+ //# sourceMappingURL=AuthStatus-ZZIP3LBD.js.map
@@ -0,0 +1,13 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __pathDirname } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __pathDirname(__filename);
7
+ import{c as f}from"./chunk-5AUOEXAR.js";import{va as h}from"./chunk-G33Q5FWT.js";import{b as l}from"./chunk-RBG2H562.js";import"./chunk-S5HEU7XK.js";import"./chunk-EV3TTTOT.js";import"./chunk-7NXJAIJX.js";import{a as u}from"./chunk-6MXOK2LG.js";import{c as p,d as r,i as A}from"./chunk-PVAIJSAI.js";import{a as i}from"./chunk-VNEZZ3RI.js";import"./chunk-U36HMOQW.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";async function b(t){t.setDescription(i.auth.switch.description),t.addExamples(i.auth.switch.examples),t.addOption({flags:{key:u.Account.name},description:i.auth.switch.options.account,optionalInNonInteractive:!0}),await t.runVerb();let n=t.getAccountManager(),s=await t.getOption(u.Account.name,!0),o=t.isJsonMode(),e=await n.listCachedAccountsAsync();if(e.length===0){if(o){r({activeAccount:null});return}A(`No cached accounts. Run \`${"ms"} auth login\` first.`);return}let a=s;if(!a){if(e.length===1){let c=await n.setActiveAccountAsync(e[0].homeAccountId);d(c.username,c.homeAccountId,o);return}if(o||!h().interactive)throw new l(`Multiple accounts are cached. Pass --account <email> to choose one.
8
+ `+e.map(c=>` - ${c.username}`).join(`
9
+ `));a=await f({message:"Choose the active account:",options:e.map(c=>({value:c.homeAccountId,label:c.username,hint:c.isActive?"currently active":void 0}))})}let m=await n.setActiveAccountAsync(a);d(m.username,m.homeAccountId,o)}function d(t,n,s){s?r({activeAccount:{username:t,homeAccountId:n}}):p(`Active account is ${t}.`)}export{b as authSwitchAsync};
10
+ /*!
11
+ * Copyright (C) Microsoft Corporation. All rights reserved.
12
+ */
13
+ //# sourceMappingURL=AuthSwitch-HK7JU2FR.js.map
package/dist/Bin.js CHANGED
@@ -1,7 +1,12 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire as __createRequire } from 'node:module';
3
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
4
+ import { dirname as __pathDirname } from 'node:path';
5
+ const require = __createRequire(import.meta.url);
6
+ const __filename = __fileURLToPath(import.meta.url);
7
+ const __dirname = __pathDirname(__filename);
8
+ import{i as a}from"./chunk-QSB5P4RM.js";import"./chunk-EV3TTTOT.js";import"./chunk-7NXJAIJX.js";import"./chunk-VNEZZ3RI.js";import"./chunk-U36HMOQW.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";if(!a(process.argv)){let{boot:o}=await import("./Cli-6CCXMCPX.js");await o()}
2
9
  /*!
3
10
  * Copyright (C) Microsoft Corporation. All rights reserved.
4
11
  */
5
- import { boot } from './Cli.js';
6
- boot();
7
- //# sourceMappingURL=Bin.js.map
12
+ //# sourceMappingURL=Bin.js.map
@@ -0,0 +1,11 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __pathDirname } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __pathDirname(__filename);
7
+ import{b as $}from"./chunk-QAFCXGBD.js";import"./chunk-OL6CTXQR.js";import{a as I}from"./chunk-3BRAT6NP.js";import"./chunk-UBTSW22U.js";import"./chunk-MFPX2RFH.js";import{b as R}from"./chunk-DREO7EYO.js";import{h as B}from"./chunk-5AUOEXAR.js";import{X as S,ua as M,va as N}from"./chunk-G33Q5FWT.js";import{b as c}from"./chunk-RBG2H562.js";import"./chunk-S5HEU7XK.js";import"./chunk-EV3TTTOT.js";import"./chunk-7NXJAIJX.js";import{m as e}from"./chunk-6MXOK2LG.js";import{c as p,d as r,e as A,h as b}from"./chunk-PVAIJSAI.js";import{a as i}from"./chunk-VNEZZ3RI.js";import{a as h}from"./chunk-U36HMOQW.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";async function Q(t){if(D(t),await t.runVerb(),!t.getEnvironmentId())throw new c(`\`ms app build-app\` is deprecated and the \`--environment-id\` flag has been removed. The replacement flow is \`ms app create\` (scaffolds the app and writes ${h}) followed by \`ms app deploy\`. To run this deprecated command, invoke it from a directory with a ${h} (created by \`ms app create\`).`);let a=await t.getTenantIdAsync();if(!a)throw new c("Unable to determine tenant ID. Ensure you are logged in.");let l=await B(t),v=await t.getOption(e.NoWait.camelName)===!1,o=await t.getOption("commit",!0),m,y=!1;if(!o){let n=R();if(!n)throw new c("Could not determine the latest commit ID. Use --commit or -c to specify it.");o=n.commitSha,m=n.detached?void 0:n.branch,y=!0}let d=t.isJsonMode();y&&!d&&b(m?`Using branch '${m}' at commit ${o}.`:`Detached HEAD at commit ${o}.`);let w=N().appConfig,u=w?.repoType,C=w?.externalRepoUrl,F=await t.getOption(e.OpenBrowser.camelName,!0)??!1,k=await t.getOption(e.ForceReauth.camelName,!0)??!1;d&&u==="github"&&A({phase:"build-validation"});let g=await I(({isRetry:n})=>S({logger:M(),actionsParams:{appName:l,commitSha:o,...k&&!n&&u==="github"&&{forceReauth:!0}}}),{repoType:u,externalRepoUrl:C,tenantId:a,jsonMode:d,openBrowser:F,verb:"app build"});if(g===null){O(t.isJsonMode(),o);return}if(v){J(t.isJsonMode(),l,o);return}let f=await $({appName:l,commitSha:o,initialWaitMs:g.retryAfterMs??1e3,isJsonMode:t.isJsonMode()});t.isJsonMode()?r(f):(p(`Build status: ${f.status}`),f.status==="Succeeded"&&b(`Run \`ms app dev\` to run your app locally, or \`ms app deploy --commit ${o}\` to make this app live.`))}function D(t){t.setDescription(i.app.build.description),t.addExamples(i.app.build.examples),t.addOptions([{flags:{key:e.AppName.name},env:e.AppName.envVar,description:i.app.build.options.appName,optionalInNonInteractive:!0},{flags:{key:e.CommitSha.name,alias:e.CommitSha.alias},env:e.CommitSha.envVar,description:i.app.build.options.commitSha,optionalInNonInteractive:!0}]),t.addSwitch({flags:{key:e.NoWait.name},description:i.app.build.options.noWait}),t.addSwitch({flags:{key:e.OpenBrowser.name},description:i.app.build.options.openBrowser}),t.addSwitch({flags:{key:e.ForceReauth.name},description:i.app.build.options.forceReauth})}function J(t,s,a){if(t){r({commitSha:a,buildStatusCommand:`ms app build-status --app ${s} --commit ${a}`});return}p(`Build started for commit ${a}. Run \`ms app build-status --app ${s} --commit ${a}\` to check status.`)}function O(t,s){if(t){r({cached:!0,commitSha:s});return}p("Build already up to date for this commit.")}export{Q as buildMaafAppAsync};
8
+ /*!
9
+ * Copyright (C) Microsoft Corporation. All rights reserved.
10
+ */
11
+ //# sourceMappingURL=BuildMaafApp-MOTZOLJZ.js.map