@microsoft/managed-apps-cli 0.20.0 → 0.22.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.
- package/README.md +1 -1
- package/THIRD-PARTY-NOTICES.txt +9549 -0
- package/dist/AddConnector-5DUBFLEK.js +41 -0
- package/dist/AuthStatus-6DMK7O6W.js +11 -0
- package/dist/AuthSwitch-NUQIIRCG.js +13 -0
- package/dist/Bin.js +8 -3
- package/dist/BuildMaafApp-A4IUU6LI.js +11 -0
- package/dist/Cli-LYSWG64H.js +54 -0
- package/dist/CloneMaafApp-B672N7T5.js +11 -0
- package/dist/CreateMaafApp-RWL7FXSP.js +20 -0
- package/dist/DeleteMaafApp-GT4CEFAE.js +11 -0
- package/dist/DeployMaafApp-E4TQU6RO.js +14 -0
- package/dist/Dev-ICCA5DEJ.js +14 -0
- package/dist/EnvironmentVariableAuthenticationProvider-LYCQ5D47.js +11 -0
- package/dist/GetMaafBuildStatus-UGAHVANE.js +11 -0
- package/dist/GetSettings-ZI2IBKV5.js +11 -0
- package/dist/InfoMaafApp-FL5PICDD.js +13 -0
- package/dist/Init-XCSK3WQM.js +11 -0
- package/dist/ListConnectorActions-B2YD24RX.js +11 -0
- package/dist/ListConnectors-MYUEVJPT.js +11 -0
- package/dist/ListMaafApps-3W6W6UYP.js +11 -0
- package/dist/Login-7RW6OEST.js +11 -0
- package/dist/Logout-IXK2TMRL.js +11 -0
- package/dist/MockFetch-THQJ4KFB.js +13 -0
- package/dist/NoOpAuthenticationProvider-DX3XNXF5.js +11 -0
- package/dist/NodeMsalAuthenticationProvider-VVQ6CCZ5.js +17 -0
- package/dist/Pack-IWU3PFQL.js +8 -0
- package/dist/PlayMaafApp-5H3DCJ2C.js +12 -0
- package/dist/RefreshDataSource-XQT7LVMO.js +11 -0
- package/dist/RefreshGitAuth-IQBAFR37.js +11 -0
- package/dist/RemoveDataSource-PGPLMJUX.js +14 -0
- package/dist/ServicePrincipalAuthenticationProvider-IZZRJFZQ.js +11 -0
- package/dist/SetSetting-SEWDA4TF.js +11 -0
- package/dist/ShareLinkCreate-T5FN47J2.js +11 -0
- package/dist/ShareLinkList-6JCVEYNC.js +11 -0
- package/dist/ShareLinkRevoke-OH5DZDHR.js +11 -0
- package/dist/ShareList-QCEL7QNJ.js +11 -0
- package/dist/ShareMaafApp-6MKZ33HW.js +11 -0
- package/dist/TelemetrySettings-RXPPIEVO.js +11 -0
- package/dist/UnshareMaafApp-OSE2TOBJ.js +11 -0
- package/dist/acorn-CYBWGE5M.js +23 -0
- package/dist/angular-Q62TJP23.js +11 -0
- package/dist/babel-AOXBHIIS.js +22 -0
- package/dist/chunk-23T63QIT.js +15 -0
- package/dist/chunk-3JIZGVCA.js +11 -0
- package/dist/chunk-3YRE4IQ3.js +132 -0
- package/dist/chunk-47LJLFDF.js +11 -0
- package/dist/chunk-4LIR3ZYP.js +42325 -0
- package/dist/chunk-4VBFOKV6.js +11 -0
- package/dist/chunk-6LKH5WE7.js +104 -0
- package/dist/chunk-6RSE3J4X.js +8 -0
- package/dist/chunk-7BRIEYGR.js +20 -0
- package/dist/chunk-7GGFN2IW.js +11 -0
- package/dist/chunk-AQLFVAFU.js +38 -0
- package/dist/chunk-EQCYKUEU.js +12 -0
- package/dist/chunk-EX6IKPAO.js +11 -0
- package/dist/chunk-HBLO3WDD.js +13 -0
- package/dist/chunk-IQGMFWXB.js +12 -0
- package/dist/chunk-KYL2Y5G4.js +11 -0
- package/dist/chunk-LQ65CHNN.js +13 -0
- package/dist/chunk-OL6CTXQR.js +11 -0
- package/dist/chunk-PPW4XUZO.js +77 -0
- package/dist/chunk-PVAIJSAI.js +11 -0
- package/dist/chunk-RBG2H562.js +11 -0
- package/dist/chunk-SNWTSI75.js +50 -0
- package/dist/chunk-TYRVM4PP.js +8 -0
- package/dist/chunk-UNJJUCSA.js +11 -0
- package/dist/chunk-USRRI5H4.js +11 -0
- package/dist/chunk-UT667QSU.js +8 -0
- package/dist/chunk-VMSJG53Y.js +11 -0
- package/dist/chunk-Y5AMO72S.js +10 -0
- package/dist/chunk-YMXXWGRV.js +11 -0
- package/dist/estree-HPTPQIMZ.js +51 -0
- package/dist/flow-B6JUMONE.js +27 -0
- package/dist/glimmer-36KZ3DJ5.js +44 -0
- package/dist/graphql-E6CIFZFV.js +35 -0
- package/dist/html-BUTTPQE6.js +32 -0
- package/dist/markdown-K2C5OZHT.js +69 -0
- package/dist/meriyah-27UE2OSX.js +12 -0
- package/dist/postcss-QUHZLBB7.js +68 -0
- package/dist/typescript-G2G6TDZF.js +28 -0
- package/dist/yaml-W5P5CGFK.js +166 -0
- package/package.json +21 -16
- package/dist/ArgumentProvider.d.ts +0 -144
- package/dist/ArgumentProvider.d.ts.map +0 -1
- package/dist/ArgumentProvider.js +0 -493
- package/dist/ArgumentProvider.js.map +0 -1
- package/dist/Authentication/ActiveAccountStore.d.ts +0 -24
- package/dist/Authentication/ActiveAccountStore.d.ts.map +0 -1
- package/dist/Authentication/ActiveAccountStore.js +0 -54
- package/dist/Authentication/ActiveAccountStore.js.map +0 -1
- package/dist/Authentication/EnvironmentVariableAuthenticationProvider.d.ts +0 -26
- package/dist/Authentication/EnvironmentVariableAuthenticationProvider.d.ts.map +0 -1
- package/dist/Authentication/EnvironmentVariableAuthenticationProvider.js +0 -31
- package/dist/Authentication/EnvironmentVariableAuthenticationProvider.js.map +0 -1
- package/dist/Authentication/NoOpAuthenticationProvider.d.ts +0 -25
- package/dist/Authentication/NoOpAuthenticationProvider.d.ts.map +0 -1
- package/dist/Authentication/NoOpAuthenticationProvider.js +0 -31
- package/dist/Authentication/NoOpAuthenticationProvider.js.map +0 -1
- package/dist/Authentication/NodeMsalAuthenticationProvider.d.ts +0 -103
- package/dist/Authentication/NodeMsalAuthenticationProvider.d.ts.map +0 -1
- package/dist/Authentication/NodeMsalAuthenticationProvider.js +0 -391
- package/dist/Authentication/NodeMsalAuthenticationProvider.js.map +0 -1
- package/dist/Authentication/ServicePrincipalAuthenticationProvider.d.ts +0 -23
- package/dist/Authentication/ServicePrincipalAuthenticationProvider.d.ts.map +0 -1
- package/dist/Authentication/ServicePrincipalAuthenticationProvider.js +0 -60
- package/dist/Authentication/ServicePrincipalAuthenticationProvider.js.map +0 -1
- package/dist/Bin.d.ts +0 -6
- package/dist/Bin.d.ts.map +0 -1
- package/dist/Bin.js.map +0 -1
- package/dist/Cli.d.ts +0 -2
- package/dist/Cli.d.ts.map +0 -1
- package/dist/Cli.js +0 -207
- package/dist/Cli.js.map +0 -1
- package/dist/CliSettings.d.ts +0 -17
- package/dist/CliSettings.d.ts.map +0 -1
- package/dist/CliSettings.js +0 -103
- package/dist/CliSettings.js.map +0 -1
- package/dist/CliUtils.d.ts +0 -108
- package/dist/CliUtils.d.ts.map +0 -1
- package/dist/CliUtils.js +0 -217
- package/dist/CliUtils.js.map +0 -1
- package/dist/Constants/CliConstants.d.ts +0 -6
- package/dist/Constants/CliConstants.d.ts.map +0 -1
- package/dist/Constants/CliConstants.js +0 -6
- package/dist/Constants/CliConstants.js.map +0 -1
- package/dist/Constants/CommandRegistry.d.ts +0 -22
- package/dist/Constants/CommandRegistry.d.ts.map +0 -1
- package/dist/Constants/CommandRegistry.js +0 -245
- package/dist/Constants/CommandRegistry.js.map +0 -1
- package/dist/Constants/HelpStrings.d.ts +0 -432
- package/dist/Constants/HelpStrings.d.ts.map +0 -1
- package/dist/Constants/HelpStrings.js +0 -623
- package/dist/Constants/HelpStrings.js.map +0 -1
- package/dist/Constants.d.ts +0 -18
- package/dist/Constants.d.ts.map +0 -1
- package/dist/Constants.js +0 -41
- package/dist/Constants.js.map +0 -1
- package/dist/Errors/CliError.d.ts +0 -5
- package/dist/Errors/CliError.d.ts.map +0 -1
- package/dist/Errors/CliError.js +0 -7
- package/dist/Errors/CliError.js.map +0 -1
- package/dist/Errors/GitHubErrorMap.d.ts +0 -68
- package/dist/Errors/GitHubErrorMap.d.ts.map +0 -1
- package/dist/Errors/GitHubErrorMap.js +0 -238
- package/dist/Errors/GitHubErrorMap.js.map +0 -1
- package/dist/FS/CliFs.d.ts +0 -41
- package/dist/FS/CliFs.d.ts.map +0 -1
- package/dist/FS/CliFs.js +0 -136
- package/dist/FS/CliFs.js.map +0 -1
- package/dist/HttpClient/CliHttpClient.d.ts +0 -43
- package/dist/HttpClient/CliHttpClient.d.ts.map +0 -1
- package/dist/HttpClient/CliHttpClient.js +0 -320
- package/dist/HttpClient/CliHttpClient.js.map +0 -1
- package/dist/HttpClient/HttpForward.d.ts +0 -9
- package/dist/HttpClient/HttpForward.d.ts.map +0 -1
- package/dist/HttpClient/HttpForward.js +0 -56
- package/dist/HttpClient/HttpForward.js.map +0 -1
- package/dist/Logger/BufferedTelemetryWriter.d.ts +0 -20
- package/dist/Logger/BufferedTelemetryWriter.d.ts.map +0 -1
- package/dist/Logger/BufferedTelemetryWriter.js +0 -163
- package/dist/Logger/BufferedTelemetryWriter.js.map +0 -1
- package/dist/Logger/CliLogger.d.ts +0 -59
- package/dist/Logger/CliLogger.d.ts.map +0 -1
- package/dist/Logger/CliLogger.js +0 -364
- package/dist/Logger/CliLogger.js.map +0 -1
- package/dist/Logger/ConsoleWriter.d.ts +0 -23
- package/dist/Logger/ConsoleWriter.d.ts.map +0 -1
- package/dist/Logger/ConsoleWriter.js +0 -66
- package/dist/Logger/ConsoleWriter.js.map +0 -1
- package/dist/Logger/Constants.d.ts +0 -6
- package/dist/Logger/Constants.d.ts.map +0 -1
- package/dist/Logger/Constants.js +0 -15
- package/dist/Logger/Constants.js.map +0 -1
- package/dist/Logger/LoggerSettings.d.ts +0 -18
- package/dist/Logger/LoggerSettings.d.ts.map +0 -1
- package/dist/Logger/LoggerSettings.js +0 -78
- package/dist/Logger/LoggerSettings.js.map +0 -1
- package/dist/Logger/OneDSWriter.d.ts +0 -26
- package/dist/Logger/OneDSWriter.d.ts.map +0 -1
- package/dist/Logger/OneDSWriter.js +0 -211
- package/dist/Logger/OneDSWriter.js.map +0 -1
- package/dist/Logger/Scrubber/ScrubCustomDimensions.d.ts +0 -5
- package/dist/Logger/Scrubber/ScrubCustomDimensions.d.ts.map +0 -1
- package/dist/Logger/Scrubber/ScrubCustomDimensions.js +0 -46
- package/dist/Logger/Scrubber/ScrubCustomDimensions.js.map +0 -1
- package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.d.ts +0 -27
- package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.d.ts.map +0 -1
- package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.js +0 -168
- package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.js.map +0 -1
- package/dist/Logger/Scrubber/ScrubUtils.d.ts +0 -8
- package/dist/Logger/Scrubber/ScrubUtils.d.ts.map +0 -1
- package/dist/Logger/Scrubber/ScrubUtils.js +0 -34
- package/dist/Logger/Scrubber/ScrubUtils.js.map +0 -1
- package/dist/Middletier/FunctionsBundler.d.ts +0 -17
- package/dist/Middletier/FunctionsBundler.d.ts.map +0 -1
- package/dist/Middletier/FunctionsBundler.js +0 -169
- package/dist/Middletier/FunctionsBundler.js.map +0 -1
- package/dist/Middletier/PackFunctions.d.ts +0 -53
- package/dist/Middletier/PackFunctions.d.ts.map +0 -1
- package/dist/Middletier/PackFunctions.js +0 -123
- package/dist/Middletier/PackFunctions.js.map +0 -1
- package/dist/Testing/MockFetch.d.ts +0 -23
- package/dist/Testing/MockFetch.d.ts.map +0 -1
- package/dist/Testing/MockFetch.js +0 -177
- package/dist/Testing/MockFetch.js.map +0 -1
- package/dist/Testing/MockRoutes.d.ts +0 -34
- package/dist/Testing/MockRoutes.d.ts.map +0 -1
- package/dist/Testing/MockRoutes.js +0 -226
- package/dist/Testing/MockRoutes.js.map +0 -1
- package/dist/Testing/fixtures/connectors/commondataserviceforapps.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/commondataserviceforapps.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/commondataserviceforapps.js +0 -25
- package/dist/Testing/fixtures/connectors/commondataserviceforapps.js.map +0 -1
- package/dist/Testing/fixtures/connectors/dataverseContactEntity.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/dataverseContactEntity.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/dataverseContactEntity.js +0 -55
- package/dist/Testing/fixtures/connectors/dataverseContactEntity.js.map +0 -1
- package/dist/Testing/fixtures/connectors/excelonlinebusiness.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/excelonlinebusiness.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/excelonlinebusiness.js +0 -1970
- package/dist/Testing/fixtures/connectors/excelonlinebusiness.js.map +0 -1
- package/dist/Testing/fixtures/connectors/kusto.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/kusto.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/kusto.js +0 -1333
- package/dist/Testing/fixtures/connectors/kusto.js.map +0 -1
- package/dist/Testing/fixtures/connectors/msnweather.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/msnweather.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/msnweather.js +0 -917
- package/dist/Testing/fixtures/connectors/msnweather.js.map +0 -1
- package/dist/Testing/fixtures/connectors/office365groups.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/office365groups.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/office365groups.js +0 -2144
- package/dist/Testing/fixtures/connectors/office365groups.js.map +0 -1
- package/dist/Testing/fixtures/connectors/office365users.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/office365users.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/office365users.js +0 -1969
- package/dist/Testing/fixtures/connectors/office365users.js.map +0 -1
- package/dist/Testing/fixtures/connectors/onedriveforbusiness.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/onedriveforbusiness.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/onedriveforbusiness.js +0 -4873
- package/dist/Testing/fixtures/connectors/onedriveforbusiness.js.map +0 -1
- package/dist/Testing/fixtures/connectors/powerappsforappmakers.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/powerappsforappmakers.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/powerappsforappmakers.js +0 -4682
- package/dist/Testing/fixtures/connectors/powerappsforappmakers.js.map +0 -1
- package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.js +0 -1078
- package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.js.map +0 -1
- package/dist/Testing/fixtures/connectors/sharepointonline.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/sharepointonline.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/sharepointonline.js +0 -28
- package/dist/Testing/fixtures/connectors/sharepointonline.js.map +0 -1
- package/dist/Testing/fixtures/connectors/teams.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/teams.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/teams.js +0 -9987
- package/dist/Testing/fixtures/connectors/teams.js.map +0 -1
- package/dist/Testing/fixtures/connectors/translatorv2.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/translatorv2.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/translatorv2.js +0 -307
- package/dist/Testing/fixtures/connectors/translatorv2.js.map +0 -1
- package/dist/Testing/fixtures/index.d.ts +0 -23
- package/dist/Testing/fixtures/index.d.ts.map +0 -1
- package/dist/Testing/fixtures/index.js +0 -96
- package/dist/Testing/fixtures/index.js.map +0 -1
- package/dist/Types/Argument.types.d.ts +0 -28
- package/dist/Types/Argument.types.d.ts.map +0 -1
- package/dist/Types/Argument.types.js +0 -5
- package/dist/Types/Argument.types.js.map +0 -1
- package/dist/Types/Cli.types.d.ts +0 -82
- package/dist/Types/Cli.types.d.ts.map +0 -1
- package/dist/Types/Cli.types.js +0 -5
- package/dist/Types/Cli.types.js.map +0 -1
- package/dist/Types/Command.types.d.ts +0 -69
- package/dist/Types/Command.types.d.ts.map +0 -1
- package/dist/Types/Command.types.js +0 -20
- package/dist/Types/Command.types.js.map +0 -1
- package/dist/Types/Datasource.types.d.ts +0 -30
- package/dist/Types/Datasource.types.d.ts.map +0 -1
- package/dist/Types/Datasource.types.js +0 -5
- package/dist/Types/Datasource.types.js.map +0 -1
- package/dist/Types/LoggerTypes.types.d.ts +0 -18
- package/dist/Types/LoggerTypes.types.d.ts.map +0 -1
- package/dist/Types/LoggerTypes.types.js +0 -5
- package/dist/Types/LoggerTypes.types.js.map +0 -1
- package/dist/Utils/BuildPolling.d.ts +0 -43
- package/dist/Utils/BuildPolling.d.ts.map +0 -1
- package/dist/Utils/BuildPolling.js +0 -139
- package/dist/Utils/BuildPolling.js.map +0 -1
- package/dist/Utils/BuildVerbDescriptionTable.d.ts +0 -29
- package/dist/Utils/BuildVerbDescriptionTable.d.ts.map +0 -1
- package/dist/Utils/BuildVerbDescriptionTable.js +0 -147
- package/dist/Utils/BuildVerbDescriptionTable.js.map +0 -1
- package/dist/Utils/CoerceCliVersion.d.ts +0 -27
- package/dist/Utils/CoerceCliVersion.d.ts.map +0 -1
- package/dist/Utils/CoerceCliVersion.js +0 -67
- package/dist/Utils/CoerceCliVersion.js.map +0 -1
- package/dist/Utils/ConnectorIds.d.ts +0 -12
- package/dist/Utils/ConnectorIds.d.ts.map +0 -1
- package/dist/Utils/ConnectorIds.js +0 -20
- package/dist/Utils/ConnectorIds.js.map +0 -1
- package/dist/Utils/ConsoleOutput.d.ts +0 -86
- package/dist/Utils/ConsoleOutput.d.ts.map +0 -1
- package/dist/Utils/ConsoleOutput.js +0 -162
- package/dist/Utils/ConsoleOutput.js.map +0 -1
- package/dist/Utils/DcfRecovery.d.ts +0 -84
- package/dist/Utils/DcfRecovery.d.ts.map +0 -1
- package/dist/Utils/DcfRecovery.js +0 -246
- package/dist/Utils/DcfRecovery.js.map +0 -1
- package/dist/Utils/DetectPackageManager.d.ts +0 -9
- package/dist/Utils/DetectPackageManager.d.ts.map +0 -1
- package/dist/Utils/DetectPackageManager.js +0 -24
- package/dist/Utils/DetectPackageManager.js.map +0 -1
- package/dist/Utils/DownloadTemplate.d.ts +0 -45
- package/dist/Utils/DownloadTemplate.d.ts.map +0 -1
- package/dist/Utils/DownloadTemplate.js +0 -161
- package/dist/Utils/DownloadTemplate.js.map +0 -1
- package/dist/Utils/EnhanceNetworkError.d.ts +0 -14
- package/dist/Utils/EnhanceNetworkError.d.ts.map +0 -1
- package/dist/Utils/EnhanceNetworkError.js +0 -61
- package/dist/Utils/EnhanceNetworkError.js.map +0 -1
- package/dist/Utils/EnvVars.d.ts +0 -17
- package/dist/Utils/EnvVars.d.ts.map +0 -1
- package/dist/Utils/EnvVars.js +0 -38
- package/dist/Utils/EnvVars.js.map +0 -1
- package/dist/Utils/EnvironmentRoutingUtils.d.ts +0 -81
- package/dist/Utils/EnvironmentRoutingUtils.d.ts.map +0 -1
- package/dist/Utils/EnvironmentRoutingUtils.js +0 -204
- package/dist/Utils/EnvironmentRoutingUtils.js.map +0 -1
- package/dist/Utils/FindAvailablePort.d.ts +0 -39
- package/dist/Utils/FindAvailablePort.d.ts.map +0 -1
- package/dist/Utils/FindAvailablePort.js +0 -105
- package/dist/Utils/FindAvailablePort.js.map +0 -1
- package/dist/Utils/GitCredentialConfig.d.ts +0 -12
- package/dist/Utils/GitCredentialConfig.d.ts.map +0 -1
- package/dist/Utils/GitCredentialConfig.js +0 -32
- package/dist/Utils/GitCredentialConfig.js.map +0 -1
- package/dist/Utils/GitErrorClassifier.d.ts +0 -40
- package/dist/Utils/GitErrorClassifier.d.ts.map +0 -1
- package/dist/Utils/GitErrorClassifier.js +0 -120
- package/dist/Utils/GitErrorClassifier.js.map +0 -1
- package/dist/Utils/GitHubDcfFlow.d.ts +0 -59
- package/dist/Utils/GitHubDcfFlow.d.ts.map +0 -1
- package/dist/Utils/GitHubDcfFlow.js +0 -165
- package/dist/Utils/GitHubDcfFlow.js.map +0 -1
- package/dist/Utils/GitRunner.d.ts +0 -107
- package/dist/Utils/GitRunner.d.ts.map +0 -1
- package/dist/Utils/GitRunner.js +0 -89
- package/dist/Utils/GitRunner.js.map +0 -1
- package/dist/Utils/GitUtils.d.ts +0 -59
- package/dist/Utils/GitUtils.d.ts.map +0 -1
- package/dist/Utils/GitUtils.js +0 -198
- package/dist/Utils/GitUtils.js.map +0 -1
- package/dist/Utils/GitVersionChecker.d.ts +0 -38
- package/dist/Utils/GitVersionChecker.d.ts.map +0 -1
- package/dist/Utils/GitVersionChecker.js +0 -64
- package/dist/Utils/GitVersionChecker.js.map +0 -1
- package/dist/Utils/HelpBanner.d.ts +0 -11
- package/dist/Utils/HelpBanner.d.ts.map +0 -1
- package/dist/Utils/HelpBanner.js +0 -15
- package/dist/Utils/HelpBanner.js.map +0 -1
- package/dist/Utils/MaafAppConfig.d.ts +0 -24
- package/dist/Utils/MaafAppConfig.d.ts.map +0 -1
- package/dist/Utils/MaafAppConfig.js +0 -38
- package/dist/Utils/MaafAppConfig.js.map +0 -1
- package/dist/Utils/NodeVersionChecker.d.ts +0 -10
- package/dist/Utils/NodeVersionChecker.d.ts.map +0 -1
- package/dist/Utils/NodeVersionChecker.js +0 -21
- package/dist/Utils/NodeVersionChecker.js.map +0 -1
- package/dist/Utils/Paging.d.ts +0 -29
- package/dist/Utils/Paging.d.ts.map +0 -1
- package/dist/Utils/Paging.js +0 -102
- package/dist/Utils/Paging.js.map +0 -1
- package/dist/Utils/PinCli.d.ts +0 -33
- package/dist/Utils/PinCli.d.ts.map +0 -1
- package/dist/Utils/PinCli.js +0 -77
- package/dist/Utils/PinCli.js.map +0 -1
- package/dist/Utils/ReadPackageJson.d.ts +0 -9
- package/dist/Utils/ReadPackageJson.d.ts.map +0 -1
- package/dist/Utils/ReadPackageJson.js +0 -13
- package/dist/Utils/ReadPackageJson.js.map +0 -1
- package/dist/Utils/RepoDetails.d.ts +0 -29
- package/dist/Utils/RepoDetails.d.ts.map +0 -1
- package/dist/Utils/RepoDetails.js +0 -37
- package/dist/Utils/RepoDetails.js.map +0 -1
- package/dist/Utils/RepoOption.d.ts +0 -42
- package/dist/Utils/RepoOption.d.ts.map +0 -1
- package/dist/Utils/RepoOption.js +0 -63
- package/dist/Utils/RepoOption.js.map +0 -1
- package/dist/Utils/RepoUrl.d.ts +0 -18
- package/dist/Utils/RepoUrl.d.ts.map +0 -1
- package/dist/Utils/RepoUrl.js +0 -6
- package/dist/Utils/RepoUrl.js.map +0 -1
- package/dist/Utils/ResolveCommand.d.ts +0 -62
- package/dist/Utils/ResolveCommand.d.ts.map +0 -1
- package/dist/Utils/ResolveCommand.js +0 -141
- package/dist/Utils/ResolveCommand.js.map +0 -1
- package/dist/Utils/RunCommand.d.ts +0 -33
- package/dist/Utils/RunCommand.d.ts.map +0 -1
- package/dist/Utils/RunCommand.js +0 -83
- package/dist/Utils/RunCommand.js.map +0 -1
- package/dist/Utils/ShareAccessRouting.d.ts +0 -78
- package/dist/Utils/ShareAccessRouting.d.ts.map +0 -1
- package/dist/Utils/ShareAccessRouting.js +0 -93
- package/dist/Utils/ShareAccessRouting.js.map +0 -1
- package/dist/Utils/Spinner.d.ts +0 -23
- package/dist/Utils/Spinner.d.ts.map +0 -1
- package/dist/Utils/Spinner.js +0 -94
- package/dist/Utils/Spinner.js.map +0 -1
- package/dist/Utils/zipBuildArtifact.d.ts +0 -35
- package/dist/Utils/zipBuildArtifact.d.ts.map +0 -1
- package/dist/Utils/zipBuildArtifact.js +0 -100
- package/dist/Utils/zipBuildArtifact.js.map +0 -1
- package/dist/Verbs/AddAction.d.ts +0 -6
- package/dist/Verbs/AddAction.d.ts.map +0 -1
- package/dist/Verbs/AddAction.js +0 -59
- package/dist/Verbs/AddAction.js.map +0 -1
- package/dist/Verbs/AddConnector.d.ts +0 -26
- package/dist/Verbs/AddConnector.d.ts.map +0 -1
- package/dist/Verbs/AddConnector.js +0 -223
- package/dist/Verbs/AddConnector.js.map +0 -1
- package/dist/Verbs/AddConnectorFlows.d.ts +0 -97
- package/dist/Verbs/AddConnectorFlows.d.ts.map +0 -1
- package/dist/Verbs/AddConnectorFlows.js +0 -298
- package/dist/Verbs/AddConnectorFlows.js.map +0 -1
- package/dist/Verbs/AddDataSource.d.ts +0 -18
- package/dist/Verbs/AddDataSource.d.ts.map +0 -1
- package/dist/Verbs/AddDataSource.js +0 -163
- package/dist/Verbs/AddDataSource.js.map +0 -1
- package/dist/Verbs/AddFlow.d.ts +0 -12
- package/dist/Verbs/AddFlow.d.ts.map +0 -1
- package/dist/Verbs/AddFlow.js +0 -63
- package/dist/Verbs/AddFlow.js.map +0 -1
- package/dist/Verbs/AddTable.d.ts +0 -6
- package/dist/Verbs/AddTable.d.ts.map +0 -1
- package/dist/Verbs/AddTable.js +0 -79
- package/dist/Verbs/AddTable.js.map +0 -1
- package/dist/Verbs/AuthStatus.d.ts +0 -6
- package/dist/Verbs/AuthStatus.d.ts.map +0 -1
- package/dist/Verbs/AuthStatus.js +0 -49
- package/dist/Verbs/AuthStatus.js.map +0 -1
- package/dist/Verbs/AuthSwitch.d.ts +0 -6
- package/dist/Verbs/AuthSwitch.d.ts.map +0 -1
- package/dist/Verbs/AuthSwitch.js +0 -67
- package/dist/Verbs/AuthSwitch.js.map +0 -1
- package/dist/Verbs/BuildMaafApp.d.ts +0 -6
- package/dist/Verbs/BuildMaafApp.d.ts.map +0 -1
- package/dist/Verbs/BuildMaafApp.js +0 -171
- package/dist/Verbs/BuildMaafApp.js.map +0 -1
- package/dist/Verbs/ConnectorHelpers.d.ts +0 -164
- package/dist/Verbs/ConnectorHelpers.d.ts.map +0 -1
- package/dist/Verbs/ConnectorHelpers.js +0 -563
- package/dist/Verbs/ConnectorHelpers.js.map +0 -1
- package/dist/Verbs/CreateMaafApp.d.ts +0 -100
- package/dist/Verbs/CreateMaafApp.d.ts.map +0 -1
- package/dist/Verbs/CreateMaafApp.js +0 -1022
- package/dist/Verbs/CreateMaafApp.js.map +0 -1
- package/dist/Verbs/DeleteMaafApp.d.ts +0 -27
- package/dist/Verbs/DeleteMaafApp.d.ts.map +0 -1
- package/dist/Verbs/DeleteMaafApp.js +0 -114
- package/dist/Verbs/DeleteMaafApp.js.map +0 -1
- package/dist/Verbs/DeployMaafApp.d.ts +0 -6
- package/dist/Verbs/DeployMaafApp.d.ts.map +0 -1
- package/dist/Verbs/DeployMaafApp.js +0 -495
- package/dist/Verbs/DeployMaafApp.js.map +0 -1
- package/dist/Verbs/Dev.d.ts +0 -6
- package/dist/Verbs/Dev.d.ts.map +0 -1
- package/dist/Verbs/Dev.js +0 -276
- package/dist/Verbs/Dev.js.map +0 -1
- package/dist/Verbs/FindDataverseApi.d.ts +0 -12
- package/dist/Verbs/FindDataverseApi.d.ts.map +0 -1
- package/dist/Verbs/FindDataverseApi.js +0 -87
- package/dist/Verbs/FindDataverseApi.js.map +0 -1
- package/dist/Verbs/GetMaafApp.d.ts +0 -6
- package/dist/Verbs/GetMaafApp.d.ts.map +0 -1
- package/dist/Verbs/GetMaafApp.js +0 -80
- package/dist/Verbs/GetMaafApp.js.map +0 -1
- package/dist/Verbs/GetMaafBuildStatus.d.ts +0 -6
- package/dist/Verbs/GetMaafBuildStatus.d.ts.map +0 -1
- package/dist/Verbs/GetMaafBuildStatus.js +0 -132
- package/dist/Verbs/GetMaafBuildStatus.js.map +0 -1
- package/dist/Verbs/GetSettings.d.ts +0 -12
- package/dist/Verbs/GetSettings.d.ts.map +0 -1
- package/dist/Verbs/GetSettings.js +0 -39
- package/dist/Verbs/GetSettings.js.map +0 -1
- package/dist/Verbs/Init.d.ts +0 -6
- package/dist/Verbs/Init.d.ts.map +0 -1
- package/dist/Verbs/Init.js +0 -453
- package/dist/Verbs/Init.js.map +0 -1
- package/dist/Verbs/ListConnectionReferences.d.ts +0 -6
- package/dist/Verbs/ListConnectionReferences.d.ts.map +0 -1
- package/dist/Verbs/ListConnectionReferences.js +0 -56
- package/dist/Verbs/ListConnectionReferences.js.map +0 -1
- package/dist/Verbs/ListConnectorActions.d.ts +0 -6
- package/dist/Verbs/ListConnectorActions.d.ts.map +0 -1
- package/dist/Verbs/ListConnectorActions.js +0 -94
- package/dist/Verbs/ListConnectorActions.js.map +0 -1
- package/dist/Verbs/ListConnectors.d.ts +0 -6
- package/dist/Verbs/ListConnectors.d.ts.map +0 -1
- package/dist/Verbs/ListConnectors.js +0 -97
- package/dist/Verbs/ListConnectors.js.map +0 -1
- package/dist/Verbs/ListDatasets.d.ts +0 -6
- package/dist/Verbs/ListDatasets.d.ts.map +0 -1
- package/dist/Verbs/ListDatasets.js +0 -73
- package/dist/Verbs/ListDatasets.js.map +0 -1
- package/dist/Verbs/ListEnvironmentVariables.d.ts +0 -14
- package/dist/Verbs/ListEnvironmentVariables.d.ts.map +0 -1
- package/dist/Verbs/ListEnvironmentVariables.js +0 -52
- package/dist/Verbs/ListEnvironmentVariables.js.map +0 -1
- package/dist/Verbs/ListFlows.d.ts +0 -13
- package/dist/Verbs/ListFlows.d.ts.map +0 -1
- package/dist/Verbs/ListFlows.js +0 -73
- package/dist/Verbs/ListFlows.js.map +0 -1
- package/dist/Verbs/ListMaafApps.d.ts +0 -84
- package/dist/Verbs/ListMaafApps.d.ts.map +0 -1
- package/dist/Verbs/ListMaafApps.js +0 -221
- package/dist/Verbs/ListMaafApps.js.map +0 -1
- package/dist/Verbs/ListSqlStoredProcedures.d.ts +0 -6
- package/dist/Verbs/ListSqlStoredProcedures.d.ts.map +0 -1
- package/dist/Verbs/ListSqlStoredProcedures.js +0 -75
- package/dist/Verbs/ListSqlStoredProcedures.js.map +0 -1
- package/dist/Verbs/ListTables.d.ts +0 -6
- package/dist/Verbs/ListTables.d.ts.map +0 -1
- package/dist/Verbs/ListTables.js +0 -85
- package/dist/Verbs/ListTables.js.map +0 -1
- package/dist/Verbs/Login.d.ts +0 -6
- package/dist/Verbs/Login.d.ts.map +0 -1
- package/dist/Verbs/Login.js +0 -39
- package/dist/Verbs/Login.js.map +0 -1
- package/dist/Verbs/Logout.d.ts +0 -6
- package/dist/Verbs/Logout.d.ts.map +0 -1
- package/dist/Verbs/Logout.js +0 -34
- package/dist/Verbs/Logout.js.map +0 -1
- package/dist/Verbs/MaafAppPermissions.d.ts +0 -40
- package/dist/Verbs/MaafAppPermissions.d.ts.map +0 -1
- package/dist/Verbs/MaafAppPermissions.js +0 -651
- package/dist/Verbs/MaafAppPermissions.js.map +0 -1
- package/dist/Verbs/Pack.d.ts +0 -71
- package/dist/Verbs/Pack.d.ts.map +0 -1
- package/dist/Verbs/Pack.js +0 -370
- package/dist/Verbs/Pack.js.map +0 -1
- package/dist/Verbs/PlayMaafApp.d.ts +0 -22
- package/dist/Verbs/PlayMaafApp.d.ts.map +0 -1
- package/dist/Verbs/PlayMaafApp.js +0 -147
- package/dist/Verbs/PlayMaafApp.js.map +0 -1
- package/dist/Verbs/RefreshDataSource.d.ts +0 -21
- package/dist/Verbs/RefreshDataSource.d.ts.map +0 -1
- package/dist/Verbs/RefreshDataSource.js +0 -89
- package/dist/Verbs/RefreshDataSource.js.map +0 -1
- package/dist/Verbs/RefreshGitAuth.d.ts +0 -6
- package/dist/Verbs/RefreshGitAuth.d.ts.map +0 -1
- package/dist/Verbs/RefreshGitAuth.js +0 -155
- package/dist/Verbs/RefreshGitAuth.js.map +0 -1
- package/dist/Verbs/RemoveDataSource.d.ts +0 -6
- package/dist/Verbs/RemoveDataSource.d.ts.map +0 -1
- package/dist/Verbs/RemoveDataSource.js +0 -173
- package/dist/Verbs/RemoveDataSource.js.map +0 -1
- package/dist/Verbs/RemoveFlow.d.ts +0 -12
- package/dist/Verbs/RemoveFlow.d.ts.map +0 -1
- package/dist/Verbs/RemoveFlow.js +0 -95
- package/dist/Verbs/RemoveFlow.js.map +0 -1
- package/dist/Verbs/SetSetting.d.ts +0 -12
- package/dist/Verbs/SetSetting.d.ts.map +0 -1
- package/dist/Verbs/SetSetting.js +0 -133
- package/dist/Verbs/SetSetting.js.map +0 -1
- package/dist/Verbs/ShareLinkCreate.d.ts +0 -23
- package/dist/Verbs/ShareLinkCreate.d.ts.map +0 -1
- package/dist/Verbs/ShareLinkCreate.js +0 -73
- package/dist/Verbs/ShareLinkCreate.js.map +0 -1
- package/dist/Verbs/ShareLinkList.d.ts +0 -16
- package/dist/Verbs/ShareLinkList.d.ts.map +0 -1
- package/dist/Verbs/ShareLinkList.js +0 -84
- package/dist/Verbs/ShareLinkList.js.map +0 -1
- package/dist/Verbs/ShareLinkRevoke.d.ts +0 -22
- package/dist/Verbs/ShareLinkRevoke.d.ts.map +0 -1
- package/dist/Verbs/ShareLinkRevoke.js +0 -137
- package/dist/Verbs/ShareLinkRevoke.js.map +0 -1
- package/dist/Verbs/ShareList.d.ts +0 -10
- package/dist/Verbs/ShareList.d.ts.map +0 -1
- package/dist/Verbs/ShareList.js +0 -254
- package/dist/Verbs/ShareList.js.map +0 -1
- package/dist/Verbs/ShareMaafApp.d.ts +0 -12
- package/dist/Verbs/ShareMaafApp.d.ts.map +0 -1
- package/dist/Verbs/ShareMaafApp.js +0 -14
- package/dist/Verbs/ShareMaafApp.js.map +0 -1
- package/dist/Verbs/ShowMaafApp.d.ts +0 -100
- package/dist/Verbs/ShowMaafApp.d.ts.map +0 -1
- package/dist/Verbs/ShowMaafApp.js +0 -224
- package/dist/Verbs/ShowMaafApp.js.map +0 -1
- package/dist/Verbs/TelemetrySettings.d.ts +0 -8
- package/dist/Verbs/TelemetrySettings.d.ts.map +0 -1
- package/dist/Verbs/TelemetrySettings.js +0 -104
- package/dist/Verbs/TelemetrySettings.js.map +0 -1
- package/dist/Verbs/UnshareMaafApp.d.ts +0 -12
- package/dist/Verbs/UnshareMaafApp.d.ts.map +0 -1
- package/dist/Verbs/UnshareMaafApp.js +0 -14
- package/dist/Verbs/UnshareMaafApp.js.map +0 -1
- package/dist/Verbs/VerbConstants.d.ts +0 -629
- package/dist/Verbs/VerbConstants.d.ts.map +0 -1
- package/dist/Verbs/VerbConstants.js +0 -559
- package/dist/Verbs/VerbConstants.js.map +0 -1
- package/dist/Verbs/index.d.ts +0 -47
- package/dist/Verbs/index.d.ts.map +0 -1
- package/dist/Verbs/index.js +0 -47
- package/dist/Verbs/index.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HelpStrings.js","sourceRoot":"","sources":["../../src/Constants/HelpStrings.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE;QACN,kBAAkB,EAAE,iCAAiC;QACrD,KAAK,EACH,mHAAmH;KACtH;IACD,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE;gBACR,GAAG,eAAe,aAAa;gBAC/B,GAAG,eAAe,wCAAwC;gBAC1D,GAAG,eAAe,2BAA2B;aAC9C;YACD,OAAO,EAAE;gBACP,OAAO,EACL,oNAAoN;gBACtN,UAAU,EACR,gMAAgM;aACnM;SACF;QACD,MAAM,EAAE;YACN,WAAW,EACT,oFAAoF;gBACpF,0FAA0F;YAC5F,QAAQ,EAAE,CAAC,GAAG,eAAe,cAAc,CAAC;SAC7C;QACD,MAAM,EAAE;YACN,WAAW,EACT,kFAAkF;YACpF,QAAQ,EAAE,CAAC,GAAG,eAAe,cAAc,EAAE,GAAG,eAAe,qBAAqB,CAAC;SACtF;QACD,MAAM,EAAE;YACN,WAAW,EACT,6LAA6L;YAC/L,QAAQ,EAAE;gBACR,GAAG,eAAe,cAAc;gBAChC,GAAG,eAAe,yCAAyC;aAC5D;YACD,OAAO,EAAE;gBACP,OAAO,EAAE,oEAAoE;aAC9E;SACF;KACF;IACD,GAAG,EAAE;QACH,MAAM,EAAE;YACN,WAAW,EAAE,2PAA2P,eAAe,aAAa;YACpS,OAAO,EAAE;gBACP,aAAa,EAAE,2DAA2D;gBAC1E,WAAW,EAAE,mCAAmC;gBAChD,WAA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,+CAA+C;gBAC5D,OAAO,EAAE;oBACP,UAAU,EAAE,wBAAwB;oBACpC,OAAO,EAAE,eAAe;iBACzB;gBACD,QAAQ,EAAE;oBACR,GAAG,eAAe,8DAA8D;oBAChF,GAAG,eAAe,qEAAqE;iBACxF;aACF;YACD,aAAa,EAAE;gBACb,WAAW,EAAE,gCAAgC;gBAC7C,OAAO,EAAE;oBACP,SAAS,EAAE,uBAAuB;oBAClC,UAAU,EAAE,wBAAwB;oBACpC,OAAO,EAAE,eAAe;iBACzB;gBACD,QAAQ,EAAE;oBACR,GAAG,eAAe,iFAAiF;oBACnG,GAAG,eAAe,wFAAwF;iBAC3G;aACF;YACD,aAAa,EAAE;gBACb,WAAW,EAAE,2CAA2C;gBACxD,OAAO,EAAE;oBACP,kBAAkB,EAChB,qGAAqG;oBACvG,MAAM,EACJ,6GAA6G;iBAChH;aACF;SACF;KACF;IACD,GAAG,EAAE;QACH,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,WAAW,EACT,+FAA+F;oBAC/F,+FAA+F;oBAC/F,iEAAiE;gBACnE,OAAO,EAAE;oBACP,IAAI,EAAE,6NAA6N;oBACnO,WAAW,EACT,qFAAqF;iBACxF;gBACD,QAAQ,EAAE;oBACR,GAAG,eAAe,iEAAiE;oBACnF,GAAG,eAAe,4EAA4E;oBAC9F,GAAG,eAAe,wEAAwE;iBAC3F;aACF;SACF;KACF;CACF,CAAC"}
|
package/dist/Constants.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
export declare const WORKING_DIRECTORY: string;
|
|
5
|
-
export declare const CLI_CONFIG_DIRECTORY: string;
|
|
6
|
-
export declare const AUTH_CACHE_DIRECTORY: string;
|
|
7
|
-
export declare const TELEMETRY_DIRECTORY: string;
|
|
8
|
-
export declare const AUTH_CACHE_SERVICE_NAME = "microsoft-managed-apps-cli";
|
|
9
|
-
export declare const AUTH_CACHE_ACCOUNT_NAME = "msal-token-cache";
|
|
10
|
-
export declare const MS_CLIENT_REQUESTID = "x-ms-client-request-id";
|
|
11
|
-
export declare const MS_TARGET_URL = "x-ms-target-url";
|
|
12
|
-
export declare const MS_AUTH_RESOURCE = "x-ms-auth-resource";
|
|
13
|
-
export declare const MS_BODY_TOKEN_RESOURCE = "x-ms-body-token-resource";
|
|
14
|
-
export declare const USER_SETTINGS_FILE = "userSettings.json";
|
|
15
|
-
export declare const USER_AGENT: string;
|
|
16
|
-
export declare const CLI_CLIENT_ID: string;
|
|
17
|
-
export declare const ENVIRONMENT_ROUTING_CLIENT_ID = "managedappscli";
|
|
18
|
-
//# sourceMappingURL=Constants.d.ts.map
|
package/dist/Constants.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../src/Constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,eAAO,MAAM,iBAAiB,QAAqD,CAAC;AACpF,eAAO,MAAM,oBAAoB,QACiC,CAAC;AACnE,eAAO,MAAM,oBAAoB,QAAmD,CAAC;AACrF,eAAO,MAAM,mBAAmB,QAA+C,CAAC;AAKhF,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAC1D,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAKrD,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AACjE,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AAItD,eAAO,MAAM,UAAU,QAA4C,CAAC;AAQpE,eAAO,MAAM,aAAa,QAEgB,CAAC;AAI3C,eAAO,MAAM,6BAA6B,mBAAmB,CAAC"}
|
package/dist/Constants.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import * as os from 'os';
|
|
5
|
-
import * as path from 'path';
|
|
6
|
-
import packageJson from '../package.json' with { type: 'json' };
|
|
7
|
-
import { getCliEnvVar, getCliEnvVarBool } from './Utils/EnvVars.js';
|
|
8
|
-
export const WORKING_DIRECTORY = getCliEnvVar('WORKING_DIRECTORY') ?? process.cwd();
|
|
9
|
-
export const CLI_CONFIG_DIRECTORY = getCliEnvVar('CONFIG_DIR') ?? path.join(os.homedir(), '.ms-cli');
|
|
10
|
-
export const AUTH_CACHE_DIRECTORY = path.join(CLI_CONFIG_DIRECTORY, 'cache', 'auth');
|
|
11
|
-
export const TELEMETRY_DIRECTORY = path.join(CLI_CONFIG_DIRECTORY, 'telemetry');
|
|
12
|
-
// Stable storage identifiers for macOS Keychain and Linux Secret Service. Unlike Windows,
|
|
13
|
-
// those platforms key the real token cache by these values rather than AUTH_CACHE_DIRECTORY.
|
|
14
|
-
// Changing either value signs users out, so treat them as a persisted storage contract.
|
|
15
|
-
export const AUTH_CACHE_SERVICE_NAME = 'microsoft-managed-apps-cli';
|
|
16
|
-
export const AUTH_CACHE_ACCOUNT_NAME = 'msal-token-cache';
|
|
17
|
-
export const MS_CLIENT_REQUESTID = 'x-ms-client-request-id';
|
|
18
|
-
export const MS_TARGET_URL = 'x-ms-target-url';
|
|
19
|
-
export const MS_AUTH_RESOURCE = 'x-ms-auth-resource';
|
|
20
|
-
// Names the resource whose on-behalf-of token the HTTP forward service should mint and swap into
|
|
21
|
-
// the request body, replacing the forward token the CLI placed there. Stamped only in forward
|
|
22
|
-
// mode for body-auth flows (e.g. firstPartyLogin) — see
|
|
23
|
-
// docs/specs/managed-apps-cli/auth/forward.md.
|
|
24
|
-
export const MS_BODY_TOKEN_RESOURCE = 'x-ms-body-token-resource';
|
|
25
|
-
export const USER_SETTINGS_FILE = 'userSettings.json';
|
|
26
|
-
// User-Agent stamped on every outbound Power Platform API request so the service
|
|
27
|
-
// can attribute traffic to the CLI and its version. Format: `managed-apps-cli/<version>`.
|
|
28
|
-
export const USER_AGENT = `managed-apps-cli/${packageJson.version}`;
|
|
29
|
-
// MSAL client ID for `@microsoft/managed-apps-cli` (this package). Used by NodeMsalAuthenticationProvider
|
|
30
|
-
// (token acquisition), GitCredentialConfig (GCM OAuth), and CreateMaafApp (routing API). The
|
|
31
|
-
// legacy `@microsoft/power-apps-cli` package hardcodes the same value in its own
|
|
32
|
-
// NodeMsalAuthenticationProvider rather than importing this constant — keep them in sync if the
|
|
33
|
-
// app registration ever changes.
|
|
34
|
-
// When MS_CLI_USE_MMA_APP_ID=true, uses the new first-party app registration.
|
|
35
|
-
export const CLI_CLIENT_ID = getCliEnvVarBool('USE_MMA_APP_ID')
|
|
36
|
-
? 'c4ee713f-aede-4371-91fc-921aa3a5ded9'
|
|
37
|
-
: '9cee029c-6210-4654-90bb-17e6e9d36617';
|
|
38
|
-
// Caller identifier recognized by the environment-routing service. This is distinct from the
|
|
39
|
-
// MSAL app registration because the routing API uses it only to classify the calling client.
|
|
40
|
-
export const ENVIRONMENT_ROUTING_CLIENT_ID = 'managedappscli';
|
|
41
|
-
//# sourceMappingURL=Constants.js.map
|
package/dist/Constants.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../src/Constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,WAAW,MAAM,iBAAiB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEjE,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAAC,mBAAmB,CAAC,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;AACpF,MAAM,CAA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+0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
export { AppError, AppErrorCode, AuthenticationError, ConfigurationError, NetworkError, NotFoundError, UsageError, } from '@microsoft/managed-apps-common/errors';
|
|
5
|
-
//# sourceMappingURL=CliError.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CliError.d.ts","sourceRoot":"","sources":["../../src/Errors/CliError.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,UAAU,GACX,MAAM,uCAAuC,CAAC"}
|
package/dist/Errors/CliError.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
// Error classes and codes are defined in @microsoft/managed-apps-common so they can be
|
|
5
|
-
// shared with the actions layer without creating a circular dependency.
|
|
6
|
-
export { AppError, AppErrorCode, AuthenticationError, ConfigurationError, NetworkError, NotFoundError, UsageError, } from '@microsoft/managed-apps-common/errors';
|
|
7
|
-
//# sourceMappingURL=CliError.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CliError.js","sourceRoot":"","sources":["../../src/Errors/CliError.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,uFAAuF;AACvF,wEAAwE;AACxE,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,UAAU,GACX,MAAM,uCAAuC,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import { AppError } from './CliError.js';
|
|
5
|
-
/**
|
|
6
|
-
* Server error codes that signal a recoverable GitHub mapping problem the
|
|
7
|
-
* CLI can resolve in-process via the Device Code Flow (DCF) auto-recovery
|
|
8
|
-
* path. {@link matchGitHubAuthError} uses this tuple to gate dispatch into
|
|
9
|
-
* the verb's catch-and-retry flow.
|
|
10
|
-
*/
|
|
11
|
-
declare const RECOVERABLE_MAPPING_CODES: readonly ["GitHubMappingMissing", "GitHubMappingExpired", "GitHubMappingStale"];
|
|
12
|
-
type RecoverableMappingCode = (typeof RECOVERABLE_MAPPING_CODES)[number];
|
|
13
|
-
/** Server error envelope (subset of GrsServerError) accepted by the mapper. */
|
|
14
|
-
export interface ServerErrorPayload {
|
|
15
|
-
code?: string;
|
|
16
|
-
message: string;
|
|
17
|
-
status: number;
|
|
18
|
-
details?: Record<string, unknown>;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Map a structured server error payload to a CLI-facing {@link AppError}.
|
|
22
|
-
* The AppError subclass selects the CLI exit code; the message is the
|
|
23
|
-
* server-supplied `payload.message` passed through verbatim (server is the
|
|
24
|
-
* source of truth for user-facing wording on these codes).
|
|
25
|
-
*
|
|
26
|
-
* Returns `null` for codes the CLI doesn't recognize so callers can fall back
|
|
27
|
-
* to generic error handling.
|
|
28
|
-
*/
|
|
29
|
-
export declare function mapGitHubServerErrorToCliError(payload: ServerErrorPayload): AppError | null;
|
|
30
|
-
/**
|
|
31
|
-
* Inspect an arbitrary thrown value and, if it carries a recognized GRS
|
|
32
|
-
* envelope, return the mapped {@link AppError}. Returns `null` otherwise.
|
|
33
|
-
*
|
|
34
|
-
* Accepts:
|
|
35
|
-
* - {@link GrsServerError} — direct field access.
|
|
36
|
-
* - {@link HttpClientError} — parse `body` as JSON for `error.code|message`.
|
|
37
|
-
* - Plain {@link Error} whose `.message` embeds `{"error":{...}}` (legacy
|
|
38
|
-
* pre-`allowErrorResponse` path).
|
|
39
|
-
*
|
|
40
|
-
* Intended for the top-level CLI catch so all verbs get envelope handling for
|
|
41
|
-
* free without each having to special-case GrsServerError.
|
|
42
|
-
*/
|
|
43
|
-
export declare function formatServerError(error: unknown): AppError | null;
|
|
44
|
-
/**
|
|
45
|
-
* Inspect an unknown error and decide whether the CLI should run the DCF
|
|
46
|
-
* recovery flow (i.e. the verb's catch-and-retry path). Returns the parsed
|
|
47
|
-
* payload + matched code, or `null` if the error is unrelated.
|
|
48
|
-
*
|
|
49
|
-
* Matches:
|
|
50
|
-
* - `GrsServerError` with `code` in {@link RECOVERABLE_MAPPING_CODES}
|
|
51
|
-
* (status accepted as-is from the typed envelope).
|
|
52
|
-
* - Any other shape recognized by {@link extractServerErrorPayload}
|
|
53
|
-
* (`HttpClientError`, or a plain `Error` whose message embeds the JSON
|
|
54
|
-
* envelope) with a recoverable code AND HTTP status 401.
|
|
55
|
-
*
|
|
56
|
-
* Intentionally narrower than {@link extractServerErrorPayload}: that helper
|
|
57
|
-
* recovers any recognized envelope for generic error formatting, whereas this
|
|
58
|
-
* function exists solely to dispatch DCF auto-recovery and therefore gates on
|
|
59
|
-
* (a) the specific recoverable codes and (b) for legacy / untyped shapes,
|
|
60
|
-
* HTTP 401 only. A 401 with a non-recoverable code, or a recoverable code at
|
|
61
|
-
* a different status, must not trigger the recovery flow.
|
|
62
|
-
*/
|
|
63
|
-
export declare function matchGitHubAuthError(error: unknown): {
|
|
64
|
-
code: RecoverableMappingCode;
|
|
65
|
-
payload: ServerErrorPayload;
|
|
66
|
-
} | null;
|
|
67
|
-
export {};
|
|
68
|
-
//# sourceMappingURL=GitHubErrorMap.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GitHubErrorMap.d.ts","sourceRoot":"","sources":["../../src/Errors/GitHubErrorMap.ts"],"names":[],"mappings":"AAAA;;GAEG;AAqCH,OAAO,EACL,QAAQ,EAKT,MAAM,YAAY,CAAC;AAEpB;;;;;GAKG;AACH,QAAA,MAAM,yBAAyB,iFAIrB,CAAC;AAEX,KAAK,sBAAsB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAQzE,+EAA+E;AAC/E,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,kBAAkB,GAAG,QAAQ,GAAG,IAAI,CA+C3F;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,IAAI,CAajE;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG;IACpD,IAAI,EAAE,sBAAsB,CAAC;IAC7B,OAAO,EAAE,kBAAkB,CAAC;CAC7B,GAAG,IAAI,CAgBP"}
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Maps structured GRS server error codes onto CLI-facing {@link AppError}
|
|
6
|
-
* subclasses. The server is the source of truth for human-readable text:
|
|
7
|
-
* we pass `payload.message` through verbatim for the 13 codes in
|
|
8
|
-
* {@link mapGitHubServerErrorToCliError}'s switch and the 5 codes recognized
|
|
9
|
-
* by {@link matchGitHubAuthError} (3 of which overlap with the switch). The
|
|
10
|
-
* AppError subclass we choose only determines the CLI exit code — wording
|
|
11
|
-
* is owned by GRS so it can be updated server-side without a CLI release.
|
|
12
|
-
*
|
|
13
|
-
* One intentional exception to the passthrough contract: if a recognized
|
|
14
|
-
* code arrives with an empty / whitespace-only / missing `message`,
|
|
15
|
-
* {@link mapGitHubServerErrorToCliError} returns `null` rather than
|
|
16
|
-
* constructing an AppError with an empty body. Callers (e.g. the top-level
|
|
17
|
-
* CLI catch) use `?? rawErr` so the original error bubbles up untouched —
|
|
18
|
-
* preferable to swallowing it behind a blank typed error.
|
|
19
|
-
*
|
|
20
|
-
* Three entry points:
|
|
21
|
-
* - {@link mapGitHubServerErrorToCliError} — given a parsed payload, return
|
|
22
|
-
* the mapped AppError (or null for unrecognized codes / empty messages).
|
|
23
|
-
* - {@link formatServerError} — given an arbitrary thrown value, detect a
|
|
24
|
-
* recognized GRS envelope inside (GrsServerError, HttpClientError body, or
|
|
25
|
-
* a plain Error whose message embeds the JSON envelope) and return the
|
|
26
|
-
* mapped AppError. Wired into the global Cli.boot catch. Values that are
|
|
27
|
-
* already an {@link AppError} (e.g. errors thrown directly by a verb) are
|
|
28
|
-
* passed through untouched — we return `null` so the caller's `?? rawErr`
|
|
29
|
-
* keeps the original typed error rather than risking the greedy
|
|
30
|
-
* `\{[\s\S]*\}` regex matching braces inside an existing message.
|
|
31
|
-
* - {@link matchGitHubAuthError} — used by the DCF auto-recovery path to
|
|
32
|
-
* detect the recoverable mapping-error codes
|
|
33
|
-
* ({@link RECOVERABLE_MAPPING_CODES}).
|
|
34
|
-
*/
|
|
35
|
-
import { GrsServerError } from '@microsoft/managed-apps-actions';
|
|
36
|
-
import { HttpClientError } from '@microsoft/managed-apps-common/services';
|
|
37
|
-
import { AppError, AuthenticationError, ConfigurationError, NetworkError, UsageError, } from './CliError.js';
|
|
38
|
-
/**
|
|
39
|
-
* Server error codes that signal a recoverable GitHub mapping problem the
|
|
40
|
-
* CLI can resolve in-process via the Device Code Flow (DCF) auto-recovery
|
|
41
|
-
* path. {@link matchGitHubAuthError} uses this tuple to gate dispatch into
|
|
42
|
-
* the verb's catch-and-retry flow.
|
|
43
|
-
*/
|
|
44
|
-
const RECOVERABLE_MAPPING_CODES = [
|
|
45
|
-
'GitHubMappingMissing',
|
|
46
|
-
'GitHubMappingExpired',
|
|
47
|
-
'GitHubMappingStale',
|
|
48
|
-
];
|
|
49
|
-
function isRecoverableMappingCode(code) {
|
|
50
|
-
return (typeof code === 'string' && RECOVERABLE_MAPPING_CODES.includes(code));
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Map a structured server error payload to a CLI-facing {@link AppError}.
|
|
54
|
-
* The AppError subclass selects the CLI exit code; the message is the
|
|
55
|
-
* server-supplied `payload.message` passed through verbatim (server is the
|
|
56
|
-
* source of truth for user-facing wording on these codes).
|
|
57
|
-
*
|
|
58
|
-
* Returns `null` for codes the CLI doesn't recognize so callers can fall back
|
|
59
|
-
* to generic error handling.
|
|
60
|
-
*/
|
|
61
|
-
export function mapGitHubServerErrorToCliError(payload) {
|
|
62
|
-
const code = payload.code;
|
|
63
|
-
if (!code)
|
|
64
|
-
return null;
|
|
65
|
-
// The server message is the source of truth. If it's missing or
|
|
66
|
-
// whitespace-only, return null so the caller's `?? rawErr` keeps the
|
|
67
|
-
// original (informative) error rather than replacing it with an AppError
|
|
68
|
-
// that has an empty message.
|
|
69
|
-
const message = payload.message;
|
|
70
|
-
if (!message || !message.trim())
|
|
71
|
-
return null;
|
|
72
|
-
switch (code) {
|
|
73
|
-
// --- Authentication (exit 3) ----------------------------------------
|
|
74
|
-
case 'GitHubMappingMissing':
|
|
75
|
-
case 'GitHubMappingExpired':
|
|
76
|
-
case 'GitHubMappingStale':
|
|
77
|
-
case 'GitHubUserLacksAccess':
|
|
78
|
-
case 'GitHubUserLacksRequiredLevel':
|
|
79
|
-
case 'GitHubAuthSessionExpired':
|
|
80
|
-
case 'GitHubAuthSessionNotFound':
|
|
81
|
-
case 'GitHubAuthDenied':
|
|
82
|
-
case 'GitHubAuthCancelled':
|
|
83
|
-
return new AuthenticationError(message);
|
|
84
|
-
// --- Configuration (exit 4) -----------------------------------------
|
|
85
|
-
case 'GitHubAppNotInstalled':
|
|
86
|
-
case 'GitHubInstallationSuspended':
|
|
87
|
-
return new ConfigurationError(message);
|
|
88
|
-
// --- Network (exit 5) -----------------------------------------------
|
|
89
|
-
case 'GitHubRateLimited':
|
|
90
|
-
case 'GitHubEvaluationError':
|
|
91
|
-
case 'GitHubUpstreamError':
|
|
92
|
-
return new NetworkError(message);
|
|
93
|
-
// --- Usage (exit 2) -------------------------------------------------
|
|
94
|
-
case 'GitHubRepoArchived':
|
|
95
|
-
case 'GitHubRepoNotEnterprise':
|
|
96
|
-
case 'GitHubRepoNotFound':
|
|
97
|
-
return new UsageError(message);
|
|
98
|
-
case 'OperationNotFound':
|
|
99
|
-
return new AppError(message);
|
|
100
|
-
default:
|
|
101
|
-
return null;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Inspect an arbitrary thrown value and, if it carries a recognized GRS
|
|
106
|
-
* envelope, return the mapped {@link AppError}. Returns `null` otherwise.
|
|
107
|
-
*
|
|
108
|
-
* Accepts:
|
|
109
|
-
* - {@link GrsServerError} — direct field access.
|
|
110
|
-
* - {@link HttpClientError} — parse `body` as JSON for `error.code|message`.
|
|
111
|
-
* - Plain {@link Error} whose `.message` embeds `{"error":{...}}` (legacy
|
|
112
|
-
* pre-`allowErrorResponse` path).
|
|
113
|
-
*
|
|
114
|
-
* Intended for the top-level CLI catch so all verbs get envelope handling for
|
|
115
|
-
* free without each having to special-case GrsServerError.
|
|
116
|
-
*/
|
|
117
|
-
export function formatServerError(error) {
|
|
118
|
-
// If the thrown value is already a CLI-typed AppError (e.g. a verb threw
|
|
119
|
-
// UsageError directly, or this function was previously invoked and the
|
|
120
|
-
// mapped error was re-thrown), don't try to re-parse it. The plain-Error
|
|
121
|
-
// branch's greedy `\{[\s\S]*\}` regex would otherwise risk matching
|
|
122
|
-
// unintended braces inside an existing message. Returning null here lets
|
|
123
|
-
// the top-level catch's `?? rawErr` fall through to the original AppError
|
|
124
|
-
// unchanged.
|
|
125
|
-
if (error instanceof AppError)
|
|
126
|
-
return null;
|
|
127
|
-
const payload = extractServerErrorPayload(error);
|
|
128
|
-
if (!payload)
|
|
129
|
-
return null;
|
|
130
|
-
return mapGitHubServerErrorToCliError(payload);
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Inspect an unknown error and decide whether the CLI should run the DCF
|
|
134
|
-
* recovery flow (i.e. the verb's catch-and-retry path). Returns the parsed
|
|
135
|
-
* payload + matched code, or `null` if the error is unrelated.
|
|
136
|
-
*
|
|
137
|
-
* Matches:
|
|
138
|
-
* - `GrsServerError` with `code` in {@link RECOVERABLE_MAPPING_CODES}
|
|
139
|
-
* (status accepted as-is from the typed envelope).
|
|
140
|
-
* - Any other shape recognized by {@link extractServerErrorPayload}
|
|
141
|
-
* (`HttpClientError`, or a plain `Error` whose message embeds the JSON
|
|
142
|
-
* envelope) with a recoverable code AND HTTP status 401.
|
|
143
|
-
*
|
|
144
|
-
* Intentionally narrower than {@link extractServerErrorPayload}: that helper
|
|
145
|
-
* recovers any recognized envelope for generic error formatting, whereas this
|
|
146
|
-
* function exists solely to dispatch DCF auto-recovery and therefore gates on
|
|
147
|
-
* (a) the specific recoverable codes and (b) for legacy / untyped shapes,
|
|
148
|
-
* HTTP 401 only. A 401 with a non-recoverable code, or a recoverable code at
|
|
149
|
-
* a different status, must not trigger the recovery flow.
|
|
150
|
-
*/
|
|
151
|
-
export function matchGitHubAuthError(error) {
|
|
152
|
-
const payload = extractServerErrorPayload(error);
|
|
153
|
-
if (!payload)
|
|
154
|
-
return null;
|
|
155
|
-
const code = payload.code;
|
|
156
|
-
if (!isRecoverableMappingCode(code))
|
|
157
|
-
return null;
|
|
158
|
-
// Status gating: GrsServerError carries an authoritative status from a
|
|
159
|
-
// typed envelope, so we trust whatever it reports. Every other wire shape
|
|
160
|
-
// (HttpClientError body, plain Error with embedded JSON) is the legacy
|
|
161
|
-
// fallback path and must additionally be HTTP 401 — a recoverable code at
|
|
162
|
-
// any other status indicates a different failure mode (e.g. a 500 echoing
|
|
163
|
-
// a mapping code in its body) that DCF recovery cannot fix.
|
|
164
|
-
if (!(error instanceof GrsServerError) && payload.status !== 401)
|
|
165
|
-
return null;
|
|
166
|
-
return { code, payload };
|
|
167
|
-
}
|
|
168
|
-
// === Helpers ==================================================================
|
|
169
|
-
/**
|
|
170
|
-
* Extract a {@link ServerErrorPayload} from any of the supported wire-error
|
|
171
|
-
* shapes. Returns `null` if no envelope can be recovered.
|
|
172
|
-
*/
|
|
173
|
-
function extractServerErrorPayload(error) {
|
|
174
|
-
if (error instanceof GrsServerError) {
|
|
175
|
-
return {
|
|
176
|
-
code: error.code,
|
|
177
|
-
message: error.message,
|
|
178
|
-
status: error.status,
|
|
179
|
-
details: error.details,
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
if (error instanceof HttpClientError) {
|
|
183
|
-
const parsed = parseEnvelope(error.body);
|
|
184
|
-
if (!parsed)
|
|
185
|
-
return null;
|
|
186
|
-
// Intentionally do NOT fall back to `error.message`: on HttpClientError
|
|
187
|
-
// that's the verbose HTTP blob ("HTTP error status: 403 for POST ...:
|
|
188
|
-
// {...}") which we must never surface to the user. An empty string here
|
|
189
|
-
// makes the mapper's empty-message guard fire, so the caller's `?? rawErr`
|
|
190
|
-
// path preserves the original error instead.
|
|
191
|
-
return {
|
|
192
|
-
code: parsed.code,
|
|
193
|
-
message: parsed.message ?? '',
|
|
194
|
-
status: error.status,
|
|
195
|
-
details: parsed.details,
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
if (error instanceof Error) {
|
|
199
|
-
const jsonMatch = error.message.match(/\{[\s\S]*\}/);
|
|
200
|
-
if (!jsonMatch)
|
|
201
|
-
return null;
|
|
202
|
-
const parsed = parseEnvelope(jsonMatch[0]);
|
|
203
|
-
if (!parsed?.code)
|
|
204
|
-
return null;
|
|
205
|
-
const statusMatch = error.message.match(/status:\s*(\d+)/i);
|
|
206
|
-
// See HttpClientError branch above: `error.message` here is the same
|
|
207
|
-
// verbose blob (the envelope JSON was extracted *from* it), so falling
|
|
208
|
-
// back to it would defeat the mapper's empty-message guard.
|
|
209
|
-
return {
|
|
210
|
-
code: parsed.code,
|
|
211
|
-
message: parsed.message ?? '',
|
|
212
|
-
status: statusMatch ? Number(statusMatch[1]) : 0,
|
|
213
|
-
details: parsed.details,
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
return null;
|
|
217
|
-
}
|
|
218
|
-
function parseEnvelope(body) {
|
|
219
|
-
if (!body)
|
|
220
|
-
return null;
|
|
221
|
-
try {
|
|
222
|
-
const data = JSON.parse(body);
|
|
223
|
-
const error = data?.error;
|
|
224
|
-
if (!error || typeof error !== 'object')
|
|
225
|
-
return null;
|
|
226
|
-
return {
|
|
227
|
-
code: typeof error.code === 'string' ? error.code : undefined,
|
|
228
|
-
message: typeof error.message === 'string' ? error.message : undefined,
|
|
229
|
-
details: error.details && typeof error.details === 'object'
|
|
230
|
-
? error.details
|
|
231
|
-
: undefined,
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
catch {
|
|
235
|
-
return null;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
//# sourceMappingURL=GitHubErrorMap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GitHubErrorMap.js","sourceRoot":"","sources":["../../src/Errors/GitHubErrorMap.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAE1E,OAAO,EACL,QAAQ,EACR,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,UAAU,GACX,MAAM,YAAY,CAAC;AAEpB;;;;;GAKG;AACH,MAAM,yBAAyB,GAAG;IAChC,sBAAsB;IACtB,sBAAsB;IACtB,oBAAoB;CACZ,CAAC;AAIX,SAAS,wBAAwB,CAAC,IAAa;IAC7C,OAAO,CACL,OAAO,IAAI,KAAK,QAAQ,IAAK,yBAA+C,CAAC,QAAQ,CAAC,IAAI,CAAC,CAC5F,C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,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAsC,CAAC;QACnE,MAAM,KAAK,GAAG,IAAI,EAAE,KAAK,CAAC;QAC1B,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC;QACrD,OAAO;YACL,IAAI,EAAE,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;YAC7D,OAAO,EAAE,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;YACtE,OAAO,EACL,KAAK,CAAC,OAAO,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ;gBAChD,CAAC,CAAE,KAAK,CAAC,OAAmC;gBAC5C,CAAC,CAAC,SAAS;SAChB,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
package/dist/FS/CliFs.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import type { Vfs, VfsConfig, VfsFileStats, WriteFileOptions } from '@microsoft/managed-apps-common/vfs';
|
|
5
|
-
export declare class CliFS implements Vfs {
|
|
6
|
-
private readonly cwd;
|
|
7
|
-
constructor(config: VfsConfig);
|
|
8
|
-
rmdir(dirPath: string): Promise<void>;
|
|
9
|
-
/**
|
|
10
|
-
* Normalize and resolve a path within the VFS context
|
|
11
|
-
*/
|
|
12
|
-
private normalizePath;
|
|
13
|
-
/**
|
|
14
|
-
* Validate path for read access
|
|
15
|
-
*/
|
|
16
|
-
private validateReadPath;
|
|
17
|
-
/**
|
|
18
|
-
* Validate path for write access
|
|
19
|
-
*/
|
|
20
|
-
private validateWritePath;
|
|
21
|
-
getCwd(): string;
|
|
22
|
-
getAbsolutePath(relativePath: string): string;
|
|
23
|
-
readFile(inputPath: string, encoding?: BufferEncoding): Promise<string>;
|
|
24
|
-
writeFile(inputPath: string, content: string, options?: WriteFileOptions): Promise<void>;
|
|
25
|
-
appendFile(inputPath: string, content: string): Promise<void>;
|
|
26
|
-
readdir(inputPath: string): Promise<string[]>;
|
|
27
|
-
mkdir(inputPath: string, options?: {
|
|
28
|
-
recursive?: boolean;
|
|
29
|
-
}): Promise<void>;
|
|
30
|
-
exists(inputPath: string): Promise<boolean>;
|
|
31
|
-
stat(inputPath: string): Promise<VfsFileStats>;
|
|
32
|
-
isFile(inputPath: string): Promise<boolean>;
|
|
33
|
-
isDirectory(inputPath: string): Promise<boolean>;
|
|
34
|
-
resolve(...paths: string[]): string;
|
|
35
|
-
join(...paths: string[]): string;
|
|
36
|
-
relative(from: string, to: string): string;
|
|
37
|
-
basename(inputPath: string): string;
|
|
38
|
-
dirname(inputPath: string): string;
|
|
39
|
-
unlink(inputPath: string): Promise<void>;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=CliFs.d.ts.map
|
package/dist/FS/CliFs.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CliFs.d.ts","sourceRoot":"","sources":["../../src/FS/CliFs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EACV,GAAG,EACH,SAAS,EACT,YAAY,EACZ,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAI5C,qBAAa,KAAM,YAAW,GAAG;IAC/B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;gBAEjB,MAAM,EAAE,SAAS;IAQhB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKlD;;OAEG;IACH,OAAO,CAAC,aAAa;IAOrB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAMxB;;OAEG;IACH,OAAO,CAAC,iBAAiB;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/CliFs.js
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
export class CliFS {
|
|
4
|
-
cwd;
|
|
5
|
-
constructor(config) {
|
|
6
|
-
// Normalize and validate cwd
|
|
7
|
-
this.cwd = path.resolve(config.cwd);
|
|
8
|
-
if (!fs.existsSync(this.cwd)) {
|
|
9
|
-
throw new Error(`Current working directory does not exist: ${this.cwd}`);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
async rmdir(dirPath) {
|
|
13
|
-
const normalizedPath = this.validateWritePath(dirPath);
|
|
14
|
-
await fs.promises.rm(normalizedPath, { recursive: true });
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Normalize and resolve a path within the VFS context
|
|
18
|
-
*/
|
|
19
|
-
normalizePath(inputPath) {
|
|
20
|
-
if (path.isAbsolute(inputPath)) {
|
|
21
|
-
return path.resolve(inputPath);
|
|
22
|
-
}
|
|
23
|
-
return path.resolve(this.cwd, inputPath);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Validate path for read access
|
|
27
|
-
*/
|
|
28
|
-
validateReadPath(inputPath) {
|
|
29
|
-
const normalizedPath = this.normalizePath(inputPath);
|
|
30
|
-
return normalizedPath;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Validate path for write access
|
|
34
|
-
*/
|
|
35
|
-
validateWritePath(inputPath) {
|
|
36
|
-
const normalizedPath = this.normalizePath(inputPath);
|
|
37
|
-
return normalizedPath;
|
|
38
|
-
}
|
|
39
|
-
// VFS Interface Implementation
|
|
40
|
-
getCwd() {
|
|
41
|
-
return this.cwd;
|
|
42
|
-
}
|
|
43
|
-
getAbsolutePath(relativePath) {
|
|
44
|
-
return this.normalizePath(relativePath);
|
|
45
|
-
}
|
|
46
|
-
async readFile(inputPath, encoding = 'utf-8') {
|
|
47
|
-
const normalizedPath = this.validateReadPath(inputPath);
|
|
48
|
-
try {
|
|
49
|
-
return await fs.promises.readFile(normalizedPath, encoding);
|
|
50
|
-
}
|
|
51
|
-
catch (error) {
|
|
52
|
-
if (error instanceof Error) {
|
|
53
|
-
if (error.code === 'ENOENT') {
|
|
54
|
-
throw new Error(`File not found: ${normalizedPath}`);
|
|
55
|
-
}
|
|
56
|
-
throw new Error(`Failed to read file: ${error.message}`);
|
|
57
|
-
}
|
|
58
|
-
throw new Error('Unknown error occurred while reading file');
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
async writeFile(inputPath, content, options = {}) {
|
|
62
|
-
const normalizedPath = this.validateWritePath(inputPath);
|
|
63
|
-
const { createDirectories = true, encoding = 'utf-8' } = options;
|
|
64
|
-
// Create parent directories if needed
|
|
65
|
-
if (createDirectories) {
|
|
66
|
-
const parentDir = path.dirname(normalizedPath);
|
|
67
|
-
if (!fs.existsSync(parentDir)) {
|
|
68
|
-
await fs.promises.mkdir(parentDir, { recursive: true });
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
await fs.promises.writeFile(normalizedPath, content, { encoding });
|
|
72
|
-
}
|
|
73
|
-
async appendFile(inputPath, content) {
|
|
74
|
-
const normalizedPath = this.validateWritePath(inputPath);
|
|
75
|
-
await fs.promises.appendFile(normalizedPath, content, 'utf-8');
|
|
76
|
-
}
|
|
77
|
-
async readdir(inputPath) {
|
|
78
|
-
const normalizedPath = this.validateReadPath(inputPath);
|
|
79
|
-
return await fs.promises.readdir(normalizedPath);
|
|
80
|
-
}
|
|
81
|
-
async mkdir(inputPath, options = {}) {
|
|
82
|
-
const normalizedPath = this.validateWritePath(inputPath);
|
|
83
|
-
await fs.promises.mkdir(normalizedPath, options);
|
|
84
|
-
}
|
|
85
|
-
async exists(inputPath) {
|
|
86
|
-
const normalizedPath = this.normalizePath(inputPath);
|
|
87
|
-
// Don't check permissions for existence checks - just normalize the path
|
|
88
|
-
try {
|
|
89
|
-
await fs.promises.stat(normalizedPath);
|
|
90
|
-
return true;
|
|
91
|
-
}
|
|
92
|
-
catch {
|
|
93
|
-
return false;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
async stat(inputPath) {
|
|
97
|
-
const normalizedPath = this.validateReadPath(inputPath);
|
|
98
|
-
const stats = await fs.promises.stat(normalizedPath);
|
|
99
|
-
return {
|
|
100
|
-
isFile: () => stats.isFile(),
|
|
101
|
-
isDirectory: () => stats.isDirectory(),
|
|
102
|
-
size: stats.size,
|
|
103
|
-
mtime: stats.mtime,
|
|
104
|
-
ctime: stats.ctime,
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
async isFile(inputPath) {
|
|
108
|
-
const stats = await this.stat(inputPath);
|
|
109
|
-
return stats.isFile();
|
|
110
|
-
}
|
|
111
|
-
async isDirectory(inputPath) {
|
|
112
|
-
const stats = await this.stat(inputPath);
|
|
113
|
-
return stats.isDirectory();
|
|
114
|
-
}
|
|
115
|
-
// Path operation methods (delegate to Node.js path module)
|
|
116
|
-
resolve(...paths) {
|
|
117
|
-
return path.resolve(...paths);
|
|
118
|
-
}
|
|
119
|
-
join(...paths) {
|
|
120
|
-
return path.join(...paths);
|
|
121
|
-
}
|
|
122
|
-
relative(from, to) {
|
|
123
|
-
return path.relative(from, to);
|
|
124
|
-
}
|
|
125
|
-
basename(inputPath) {
|
|
126
|
-
return path.basename(inputPath);
|
|
127
|
-
}
|
|
128
|
-
dirname(inputPath) {
|
|
129
|
-
return path.dirname(inputPath);
|
|
130
|
-
}
|
|
131
|
-
unlink(inputPath) {
|
|
132
|
-
const normalizedPath = this.validateWritePath(inputPath);
|
|
133
|
-
return fs.promises.unlink(normalizedPath);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
//# sourceMappingURL=CliFs.js.map
|
package/dist/FS/CliFs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CliFs.js","sourceRoot":"","sources":["../../src/FS/CliFs.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,IAAI,CAAC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