@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
@@ -1,67 +0,0 @@
1
- /*!
2
- * Copyright (C) Microsoft Corporation. All rights reserved.
3
- */
4
- import semver from 'semver';
5
- import packageJson from '../../package.json' with { type: 'json' };
6
- const NPM_REGISTRY_URL = 'https://registry.npmjs.org';
7
- const REGISTRY_TIMEOUT_MS = 5000;
8
- /**
9
- * Resolves the spec to pin the CLI at in a scaffolded app's `package.json`, or
10
- * `undefined` when the CLI should not be pinned at all (the caller treats a falsy
11
- * result as "skip the pin and warn").
12
- *
13
- * - Published release (e.g. `0.11.0`) → that exact version (no network).
14
- * - Prerelease / dev build (e.g. `0.11.1-dev.20260619.11`, published only to the
15
- * private feed) → a caret range of the version currently behind the `latest`
16
- * dist-tag on the public npm registry (e.g. `^0.11.0`), so the app resolves a
17
- * real published CLI instead of `ETARGET`-ing the dev version. `undefined` if
18
- * the registry can't be reached.
19
- * - Unparseable version → `undefined`.
20
- *
21
- * The registry lookup goes through the CLI HTTP client (not a bare `fetch`) so it
22
- * uses the CLI's sanctioned egress — the HTTP_FORWARD_MODE forwarder in sandboxed
23
- * partner environments, where there is no direct network access — and is captured
24
- * by the standard `HttpClient.Request` telemetry.
25
- *
26
- * `version` defaults to this package's own version; it is a parameter only so the
27
- * branching can be unit-tested without rebuilding the manifest.
28
- */
29
- export async function coerceCliVersion(httpClient, version = packageJson.version) {
30
- // Unparseable → we can't reason about it; don't pin.
31
- if (!semver.valid(version)) {
32
- return undefined;
33
- }
34
- // Published release → pin the exact version the app was created with.
35
- if (semver.prerelease(version) === null) {
36
- return version;
37
- }
38
- // Prerelease/dev build: not on the public registry, so the exact version would
39
- // ETARGET a public `npm install`. Pin a caret of the latest published version
40
- // instead — bounded (floats within the major, caps the next).
41
- const latest = await fetchLatestPublishedVersion(httpClient);
42
- return latest ? `^${latest}` : undefined;
43
- }
44
- /**
45
- * Best-effort lookup of the version behind the `latest` dist-tag on the public npm
46
- * registry, via the CLI HTTP client. Returns `undefined` on any failure (offline,
47
- * timeout/abort, non-OK status, malformed body) so the caller degrades to skipping
48
- * the pin.
49
- */
50
- async function fetchLatestPublishedVersion(httpClient) {
51
- try {
52
- const { data } = await httpClient.get(`${NPM_REGISTRY_URL}/${packageJson.name}/latest`, {
53
- // Anonymous (no authResource) — never send a token to the public registry.
54
- // UA so corporate proxies / WAFs don't reject the request; 5s best-effort
55
- // timeout via AbortSignal so `ms app create` can't hang on a slow registry.
56
- headers: { 'user-agent': `${packageJson.name}/${packageJson.version}` },
57
- signal: AbortSignal.timeout(REGISTRY_TIMEOUT_MS),
58
- });
59
- return typeof data?.version === 'string' && semver.valid(data.version)
60
- ? data.version
61
- : undefined;
62
- }
63
- catch {
64
- return undefined;
65
- }
66
- }
67
- //# sourceMappingURL=CoerceCliVersion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CoerceCliVersion.js","sourceRoot":"","sources":["../../src/Utils/CoerceCliVersion.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,WAAW,MAAM,oBAAoB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAEnE,MAAM,gBAAgB,GAAG,4BAA4B,CAAC;AACtD,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,UAAuB,EACvB,UAAkB,WAAW,CAAC,OAAO;IAErC,qDAAqD;IACrD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,sEAAsE;IACtE,IAAI,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;QACxC,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,+EAA+E;IAC/E,8EAA8E;IAC9E,8DAA8D;IAC9D,MAAM,MAAM,GAAG,MAAM,2BAA2B,CAAC,UAAU,CAAC,CAAC;IAC7D,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3C,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,2BAA2B,CAAC,UAAuB;IAChE,IAAI,CAAC;QACH,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,UAAU,CAAC,GAAG,CACnC,GAAG,gBAAgB,IAAI,WAAW,CAAC,IAAI,SAAS,EAChD;YACE,2EAA2E;YAC3E,0EAA0E;YAC1E,4EAA4E;YAC5E,OAAO,EAAE,EAAE,YAAY,EAAE,GAAG,WAAW,CAAC,IAAI,IAAI,WAAW,CAAC,OAAO,EAAE,EAAE;YACvE,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,mBAAmB,CAAC;SACjD,CACF,CAAC;QACF,OAAO,OAAO,IAAI,EAAE,OAAO,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;YACpE,CAAC,CAAC,IAAI,CAAC,OAAO;YACd,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
@@ -1,12 +0,0 @@
1
- /*!
2
- * Copyright (C) Microsoft Corporation. All rights reserved.
3
- */
4
- /**
5
- * Returns `true` when `apiId` refers to the Common Data Service for Apps
6
- * connector, accepting both the canonical `shared_commondataserviceforapps`
7
- * form and the bare alias `commondataserviceforapps`. Path-qualified IDs
8
- * ending with either form (e.g. `/providers/…/shared_commondataserviceforapps`)
9
- * are also recognised.
10
- */
11
- export declare function isCdsConnectorId(apiId: string): boolean;
12
- //# sourceMappingURL=ConnectorIds.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConnectorIds.d.ts","sourceRoot":"","sources":["../../src/Utils/ConnectorIds.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAGvD"}
@@ -1,20 +0,0 @@
1
- /*!
2
- * Copyright (C) Microsoft Corporation. All rights reserved.
3
- */
4
- /**
5
- * All accepted forms of the Common Data Service for Apps connector ID.
6
- * The CLI accepts both the canonical `shared_` form and the bare alias.
7
- */
8
- const CDS_CONNECTOR_IDS = ['shared_commondataserviceforapps', 'commondataserviceforapps'];
9
- /**
10
- * Returns `true` when `apiId` refers to the Common Data Service for Apps
11
- * connector, accepting both the canonical `shared_commondataserviceforapps`
12
- * form and the bare alias `commondataserviceforapps`. Path-qualified IDs
13
- * ending with either form (e.g. `/providers/…/shared_commondataserviceforapps`)
14
- * are also recognised.
15
- */
16
- export function isCdsConnectorId(apiId) {
17
- const normalized = apiId.toLowerCase();
18
- return CDS_CONNECTOR_IDS.some((id) => normalized === id || normalized.endsWith(`/${id}`));
19
- }
20
- //# sourceMappingURL=ConnectorIds.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConnectorIds.js","sourceRoot":"","sources":["../../src/Utils/ConnectorIds.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,MAAM,iBAAiB,GAAG,CAAC,iCAAiC,EAAE,0BAA0B,CAAU,CAAC;AAEnG;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC5C,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;IACvC,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,UAAU,KAAK,EAAE,IAAI,UAAU,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;AAC5F,CAAC"}
@@ -1,86 +0,0 @@
1
- /*!
2
- * Copyright (C) Microsoft Corporation. All rights reserved.
3
- */
4
- export interface ColumnDef {
5
- header: string;
6
- maxWidth?: number;
7
- }
8
- /**
9
- * Renders a titled table with optional metadata, column headers, and data rows.
10
- * Separator lines are suppressed in non-TTY mode (piped output, LLM agents).
11
- */
12
- export declare function printTable(options: {
13
- title: string;
14
- metadata?: string[];
15
- columns: ColumnDef[];
16
- rows: string[][];
17
- emptyMessage?: string;
18
- totalLabel?: string;
19
- width?: number;
20
- }): void;
21
- /**
22
- * Renders a titled key-value list where each item is displayed as a set of labeled fields.
23
- * Multiple items are separated by a divider line. Separator lines are suppressed in non-TTY mode.
24
- */
25
- export declare function printKeyValueList<T>(options: {
26
- title: string;
27
- items: T[];
28
- fields: {
29
- label: string;
30
- value: (item: T) => string;
31
- }[];
32
- emptyMessage?: string;
33
- width?: number;
34
- }): void;
35
- export declare function printSuccess(message: string): void;
36
- type EnvelopeReservedKeys = {
37
- success?: never;
38
- exitCode?: never;
39
- errorMessage?: never;
40
- };
41
- type NotArray<T> = T extends readonly unknown[] ? never : T;
42
- /**
43
- * Emits a success JSON envelope `{ success: true, ...data }` to **stdout**.
44
- *
45
- * Writes to stdout (not stderr) — automation pipes stdout through `jq` or
46
- * similar parsers, so this deliberately diverges from `printError`. Keep the
47
- * stream choice when modifying.
48
- *
49
- * Arrays are rejected at compile time via `NotArray<T>`: spreading an array
50
- * would surface its numeric indices as envelope keys
51
- * (`{ success: true, "0": "a", "1": "b" }`). Use `printJsonSuccessList` for
52
- * verbs whose payload is naturally an array.
53
- */
54
- export declare function printJsonSuccess<T extends object>(data?: NotArray<T> & EnvelopeReservedKeys): void;
55
- /**
56
- * Emit a single NDJSON record (one JSON document per line, no pretty-printing).
57
- * Used for streaming progress/event output in JSON mode — distinct from
58
- * `printJsonSuccess`/`printJsonError`, which emit a single final envelope.
59
- */
60
- export declare function printJsonLine(record: object): void;
61
- /**
62
- * Emits a success JSON envelope wrapping a list payload to **stdout**:
63
- * `{ success: true, items: [...] }`.
64
- *
65
- * Use this for any verb whose natural payload is a list (`app list`,
66
- * `connector list`, etc.). Keeping the array under a stable `items` key means
67
- * automation can rely on `.items` for every list verb.
68
- */
69
- export declare function printJsonSuccessList<T>(items: T[]): void;
70
- /**
71
- * Emits a failure JSON envelope `{ success: false, exitCode, errorMessage }`
72
- * to **stdout**.
73
- *
74
- * Writes to stdout (not stderr) so automation parsing the JSON pipe still sees
75
- * the envelope. This deliberately diverges from `printError`; do not "fix" it
76
- * for consistency.
77
- *
78
- * `exitCode` is the process exit code (AppError.exitCode, or 1 for unknown
79
- * errors). Named to reflect that — it is NOT a stable categorical error code.
80
- */
81
- export declare function printJsonError(errorMessage: string, exitCode?: number): void;
82
- export declare function printInfo(message: string): void;
83
- export declare function printWarning(message: string): void;
84
- export declare function printError(message: string): void;
85
- export {};
86
- //# sourceMappingURL=ConsoleOutput.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConsoleOutput.d.ts","sourceRoot":"","sources":["../../src/Utils/ConsoleOutput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAWH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CA8DP;AAED;;;GAG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gB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAGhD"}
@@ -1,162 +0,0 @@
1
- /*!
2
- * Copyright (C) Microsoft Corporation. All rights reserved.
3
- */
4
- import { styleText } from 'node:util';
5
- // Suppress decorative separator lines when output is piped or redirected (non-interactive).
6
- // This applies to both shell pipelines and LLM agents that invoke CLI commands programmatically —
7
- // in both cases stdout is not a TTY, and box-drawing characters would pollute the parseable output.
8
- function isTTY() {
9
- return process.stdout.isTTY ?? false;
10
- }
11
- /**
12
- * Renders a titled table with optional metadata, column headers, and data rows.
13
- * Separator lines are suppressed in non-TTY mode (piped output, LLM agents).
14
- */
15
- export function printTable(options) {
16
- const { title, metadata, columns, rows, emptyMessage, totalLabel, width = 80 } = options;
17
- const line = isTTY() ? styleText('dim', '-'.repeat(width)) : null;
18
- console.log('');
19
- console.log(styleText(['cyan', 'bold'], ` ${title}`));
20
- if (metadata) {
21
- if (line)
22
- console.log(line);
23
- for (const meta of metadata) {
24
- console.log(styleText('white', ` ${meta}`));
25
- }
26
- }
27
- if (rows.length === 0) {
28
- if (emptyMessage) {
29
- if (line)
30
- console.log(line);
31
- console.log(` ${emptyMessage}`);
32
- }
33
- return;
34
- }
35
- // Column width = max(header.length, longest effective cell length)
36
- // Effective cell length respects maxWidth (truncated value is always maxWidth chars)
37
- const colWidths = columns.map((col, i) => {
38
- const maxCellLen = rows.reduce((max, row) => {
39
- const cell = row[i] ?? '';
40
- const len = col.maxWidth !== undefined && cell.length > col.maxWidth ? col.maxWidth : cell.length;
41
- return Math.max(max, len);
42
- }, 0);
43
- return Math.max(col.header.length, maxCellLen);
44
- });
45
- if (line)
46
- console.log(line);
47
- const headerParts = columns.map((col, i) => i === columns.length - 1 ? col.header : col.header.padEnd(colWidths[i]));
48
- console.log(styleText('cyan', ` ${headerParts.join(' ')}`));
49
- if (line)
50
- console.log(line);
51
- for (const row of rows) {
52
- const rowParts = columns.map((col, i) => {
53
- let cell = row[i] ?? '';
54
- if (col.maxWidth !== undefined && cell.length > col.maxWidth) {
55
- if (col.maxWidth <= 3) {
56
- cell = cell.slice(0, col.maxWidth);
57
- }
58
- else {
59
- cell = cell.slice(0, col.maxWidth - 3) + '...';
60
- }
61
- }
62
- return i === columns.length - 1 ? cell : cell.padEnd(colWidths[i]);
63
- });
64
- console.log(` ${rowParts.join(' ')}`);
65
- }
66
- if (line)
67
- console.log(line);
68
- if (totalLabel !== undefined) {
69
- console.log(styleText('dim', ` Total: ${rows.length} ${totalLabel}`));
70
- }
71
- }
72
- /**
73
- * Renders a titled key-value list where each item is displayed as a set of labeled fields.
74
- * Multiple items are separated by a divider line. Separator lines are suppressed in non-TTY mode.
75
- */
76
- export function printKeyValueList(options) {
77
- const { title, items, fields, emptyMessage, width = 80 } = options;
78
- const line = isTTY() ? styleText('dim', '-'.repeat(width)) : null;
79
- console.log('');
80
- console.log(styleText(['cyan', 'bold'], ` ${title}`));
81
- if (line)
82
- console.log(line);
83
- if (items.length === 0) {
84
- if (emptyMessage) {
85
- console.log(` ${emptyMessage}`);
86
- }
87
- return;
88
- }
89
- for (let i = 0; i < items.length; i++) {
90
- for (const field of fields) {
91
- console.log(` ${styleText('white', field.label)}: ${field.value(items[i])}`);
92
- }
93
- // Separator between items only — no trailing separator after the last item (intentional).
94
- if (i < items.length - 1 && line) {
95
- console.log(line);
96
- }
97
- }
98
- }
99
- export function printSuccess(message) {
100
- console.log(styleText('green', message));
101
- }
102
- /**
103
- * Emits a success JSON envelope `{ success: true, ...data }` to **stdout**.
104
- *
105
- * Writes to stdout (not stderr) — automation pipes stdout through `jq` or
106
- * similar parsers, so this deliberately diverges from `printError`. Keep the
107
- * stream choice when modifying.
108
- *
109
- * Arrays are rejected at compile time via `NotArray<T>`: spreading an array
110
- * would surface its numeric indices as envelope keys
111
- * (`{ success: true, "0": "a", "1": "b" }`). Use `printJsonSuccessList` for
112
- * verbs whose payload is naturally an array.
113
- */
114
- export function printJsonSuccess(data) {
115
- console.log(JSON.stringify({ success: true, ...data }, null, 2));
116
- }
117
- /**
118
- * Emit a single NDJSON record (one JSON document per line, no pretty-printing).
119
- * Used for streaming progress/event output in JSON mode — distinct from
120
- * `printJsonSuccess`/`printJsonError`, which emit a single final envelope.
121
- */
122
- export function printJsonLine(record) {
123
- console.log(JSON.stringify(record));
124
- }
125
- /**
126
- * Emits a success JSON envelope wrapping a list payload to **stdout**:
127
- * `{ success: true, items: [...] }`.
128
- *
129
- * Use this for any verb whose natural payload is a list (`app list`,
130
- * `connector list`, etc.). Keeping the array under a stable `items` key means
131
- * automation can rely on `.items` for every list verb.
132
- */
133
- export function printJsonSuccessList(items) {
134
- console.log(JSON.stringify({ success: true, items }, null, 2));
135
- }
136
- /**
137
- * Emits a failure JSON envelope `{ success: false, exitCode, errorMessage }`
138
- * to **stdout**.
139
- *
140
- * Writes to stdout (not stderr) so automation parsing the JSON pipe still sees
141
- * the envelope. This deliberately diverges from `printError`; do not "fix" it
142
- * for consistency.
143
- *
144
- * `exitCode` is the process exit code (AppError.exitCode, or 1 for unknown
145
- * errors). Named to reflect that — it is NOT a stable categorical error code.
146
- */
147
- export function printJsonError(errorMessage, exitCode) {
148
- console.log(JSON.stringify({ success: false, exitCode, errorMessage }, null, 2));
149
- }
150
- export function printInfo(message) {
151
- console.log(message);
152
- }
153
- export function printWarning(message) {
154
- // console.warn writes to stderr, so evaluate hasColors() against stderr rather than the
155
- // styleText default (process.stdout). Keeps warnings colored when only stdout is piped.
156
- console.warn(styleText('yellow', message, { stream: process.stderr }));
157
- }
158
- export function printError(message) {
159
- // console.error writes to stderr; see printWarning above.
160
- console.error(styleText('red', message, { stream: process.stderr }));
161
- }
162
- //# sourceMappingURL=ConsoleOutput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConsoleOutput.js","sourceRoot":"","sources":["../../src/Utils/ConsoleOutput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,4FAA4F;AAC5F,kGA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@microsoft/managed-apps-common/config';
5
- /** Verbs that currently invoke the DCF catch-and-retry recovery flow. */
6
- export type DcfRecoveryVerb = 'app create' | 'app init' | 'app build' | 'app deploy';
7
- export interface DcfRecoveryOptions {
8
- remoteUrl: string;
9
- tenantId: string;
10
- jsonMode: boolean;
11
- openBrowser: boolean;
12
- /** The CLI verb invoking the recovery — drives the telemetry event prefix and error context. */
13
- verb: DcfRecoveryVerb;
14
- }
15
- /**
16
- * Inline DCF recovery branch for the github catch-and-retry. SIGINT handling
17
- * is scoped to this helper so Ctrl+C during the device-code polling loop
18
- * doesn't leak a listener back to the verb's outer body. Structured server
19
- * errors thrown by `authenticateForRepoAsync` are normalized through
20
- * {@link formatServerError} before being rethrown so the verb's outer catch
21
- * (and the single-retry contract) sees CLI-typed errors.
22
- *
23
- * Telemetry event prefix is derived from the verb (e.g. `'app create'` →
24
- * `'Maaf.Create.GitHubDcfRecovery'`) — keeps the call site a one-liner that
25
- * can't drift out of sync with the verb field.
26
- */
27
- export declare function runDcfRecoveryAsync(options: DcfRecoveryOptions): Promise<void>;
28
- export interface WithGitHubDcfRecoveryOptions {
29
- /**
30
- * The repo binding mode from `ms.config.json`. Non-`'github'` short-circuits:
31
- * the attempt error is rethrown untouched and no DCF recovery is attempted.
32
- * Accepts `undefined` so the legacy/native-only verb paths (where no
33
- * `ms.config.json` is loaded yet) can flow through with the same call shape.
34
- */
35
- repoType: RepoType | undefined;
36
- /**
37
- * The external repository URL the attempt was authenticating against.
38
- * Required for `github` recovery — `undefined` triggers a verb-agnostic
39
- * legacy guard that throws an actionable {@link AuthenticationError} before
40
- * we'd otherwise crash inside DCF (which needs a URL to parse host/owner/repo).
41
- */
42
- externalRepoUrl: string | undefined;
43
- tenantId: string;
44
- jsonMode: boolean;
45
- openBrowser: boolean;
46
- verb: DcfRecoveryVerb;
47
- }
48
- /**
49
- * Higher-order wrapper that bolts the GitHub catch-and-retry DCF recovery
50
- * branch onto a single async attempt. Encapsulates the
51
- *
52
- * try { attempt } catch { match → DCF → retry attempt → map-on-failure }
53
- *
54
- * pattern that `ms app create`, `ms app init`, `ms app build`, and `ms app deploy`
55
- * all need, so the verbs stay focused on their own happy-path flow.
56
- *
57
- * Contract:
58
- * - The attempt runs at most twice; DCF runs at most once. No looping.
59
- * - The attempt callback receives `{ isRetry: false }` on the first call
60
- * and `{ isRetry: true }` on the post-DCF retry so callers can
61
- * conditionally alter their request (e.g. drop `forceReauth` on retry
62
- * so the just-refreshed mapping isn't bypassed again).
63
- * - `repoType !== 'github'` is a no-op around the attempt — the original
64
- * error escapes untouched so native/none verbs behave identically to the
65
- * un-wrapped call.
66
- * - First-attempt errors that {@link matchGitHubAuthError} doesn't recognize
67
- * are normalized via {@link formatServerError} (which handles
68
- * `GrsServerError`, `HttpClientError`, and structured `Error` envelopes)
69
- * before being rethrown; everything else escapes as-is.
70
- * - A matching first-attempt error with no `externalRepoUrl` throws a
71
- * verb-agnostic {@link AuthenticationError} before DCF is invoked — DCF
72
- * itself requires a URL to derive host/owner/repo.
73
- * - Second-attempt (post-DCF) errors follow the same map-and-rethrow
74
- * contract; a still-matching error after DCF surfaces through the
75
- * friendly mapper rather than looping the device flow.
76
- *
77
- * `runDcfRecovery` is an optional dependency seam — defaults to the real
78
- * {@link runDcfRecoveryAsync}; tests inject a stub so they don't have to
79
- * spin up the device-code polling loop.
80
- */
81
- export declare function withGitHubDcfRecoveryAsync<T>(attempt: (context: {
82
- isRetry: boolean;
83
- }) => Promise<T>, options: WithGitHubDcfRecoveryOptions, runDcfRecovery?: typeof runDcfRecoveryAsync): Promise<T>;
84
- //# sourceMappingURL=DcfRecovery.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DcfRecovery.d.ts","sourceRoot":"","sources":["../../src/Utils/DcfRecovery.ts"],"names":[],"mappings":"AAAA;;GAEG;AAcH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAatE,yEAAyE;AACzE,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,YAAY,CAAC;AAErF,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,gGAAgG;IAChG,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6EpF;AAqDD,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC/B;;;;;OAKG;IACH,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAsB,0BAA0B,CAAC,CAAC,EAChD,OAAO,EAAE,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,KAAK,OAAO,CAAC,CAAC,CAAC,EACtD,OAAO,EAAE,4BAA4B,EACrC,cAAc,GAAE,OAAO,mBAAyC,GAC/D,OAAO,CAAC,CAAC,CAAC,CA6DZ"}