@osdk/cli 0.24.0-beta.13 → 0.24.0-beta.15
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/CHANGELOG.md +20 -0
- package/build/browser/chunk-5AQYUXAY.js +17 -0
- package/build/browser/chunk-5AQYUXAY.js.map +1 -0
- package/build/browser/chunk-DAYFZSC6.js +42 -0
- package/build/browser/chunk-DAYFZSC6.js.map +1 -0
- package/build/browser/chunk-Q2H7XAS4.js +88 -0
- package/build/browser/chunk-Q2H7XAS4.js.map +1 -0
- package/build/browser/chunk-VDO5KGGR.js +127 -0
- package/build/browser/chunk-VDO5KGGR.js.map +1 -0
- package/build/browser/chunk-YC2BRFXY.js +221 -0
- package/build/browser/chunk-YC2BRFXY.js.map +1 -0
- package/build/browser/handleGenerate-QM7NMLCK.js +419 -0
- package/build/browser/handleGenerate-QM7NMLCK.js.map +1 -0
- package/build/browser/index.js +597 -16
- package/build/browser/index.js.map +1 -1
- package/build/browser/loginFlow-622FU6FR.js +4 -0
- package/build/browser/loginFlow-622FU6FR.js.map +1 -0
- package/build/browser/siteDeployCommand-TPTNUT5R.js +140 -0
- package/build/browser/siteDeployCommand-TPTNUT5R.js.map +1 -0
- package/build/browser/versionDeleteCommand-LBZGRIYN.js +35 -0
- package/build/browser/versionDeleteCommand-LBZGRIYN.js.map +1 -0
- package/build/browser/versionGetCommand-BJ3QWAHL.js +29 -0
- package/build/browser/versionGetCommand-BJ3QWAHL.js.map +1 -0
- package/build/browser/versionListCommand-P7OMJYES.js +34 -0
- package/build/browser/versionListCommand-P7OMJYES.js.map +1 -0
- package/build/browser/versionSetCommand-N3PA4HYH.js +29 -0
- package/build/browser/versionSetCommand-N3PA4HYH.js.map +1 -0
- package/build/browser/versionUnsetCommand-AD426TBT.js +34 -0
- package/build/browser/versionUnsetCommand-AD426TBT.js.map +1 -0
- package/build/esm/chunk-5AQYUXAY.js +17 -0
- package/build/esm/chunk-5AQYUXAY.js.map +1 -0
- package/build/esm/chunk-DAYFZSC6.js +42 -0
- package/build/esm/chunk-DAYFZSC6.js.map +1 -0
- package/build/esm/chunk-Q2H7XAS4.js +88 -0
- package/build/esm/chunk-Q2H7XAS4.js.map +1 -0
- package/build/esm/chunk-VDO5KGGR.js +127 -0
- package/build/esm/chunk-VDO5KGGR.js.map +1 -0
- package/build/esm/chunk-YC2BRFXY.js +221 -0
- package/build/esm/chunk-YC2BRFXY.js.map +1 -0
- package/build/esm/handleGenerate-QM7NMLCK.js +419 -0
- package/build/esm/handleGenerate-QM7NMLCK.js.map +1 -0
- package/build/esm/index.js +597 -16
- package/build/esm/index.js.map +1 -1
- package/build/esm/loginFlow-622FU6FR.js +4 -0
- package/build/esm/loginFlow-622FU6FR.js.map +1 -0
- package/build/esm/siteDeployCommand-TPTNUT5R.js +140 -0
- package/build/esm/siteDeployCommand-TPTNUT5R.js.map +1 -0
- package/build/esm/versionDeleteCommand-LBZGRIYN.js +35 -0
- package/build/esm/versionDeleteCommand-LBZGRIYN.js.map +1 -0
- package/build/esm/versionGetCommand-BJ3QWAHL.js +29 -0
- package/build/esm/versionGetCommand-BJ3QWAHL.js.map +1 -0
- package/build/esm/versionListCommand-P7OMJYES.js +34 -0
- package/build/esm/versionListCommand-P7OMJYES.js.map +1 -0
- package/build/esm/versionSetCommand-N3PA4HYH.js +29 -0
- package/build/esm/versionSetCommand-N3PA4HYH.js.map +1 -0
- package/build/esm/versionUnsetCommand-AD426TBT.js +34 -0
- package/build/esm/versionUnsetCommand-AD426TBT.js.map +1 -0
- package/package.json +7 -7
- package/build/browser/cli.d.ts +0 -7
- package/build/browser/cli.d.ts.map +0 -1
- package/build/browser/cli.js +0 -42
- package/build/browser/cli.js.map +0 -1
- package/build/browser/commands/auth/index.d.ts +0 -5
- package/build/browser/commands/auth/index.d.ts.map +0 -1
- package/build/browser/commands/auth/index.js +0 -34
- package/build/browser/commands/auth/index.js.map +0 -1
- package/build/browser/commands/auth/login/index.d.ts +0 -5
- package/build/browser/commands/auth/login/index.d.ts.map +0 -1
- package/build/browser/commands/auth/login/index.js +0 -34
- package/build/browser/commands/auth/login/index.js.map +0 -1
- package/build/browser/commands/site/CommonSiteArgs.d.ts +0 -9
- package/build/browser/commands/site/CommonSiteArgs.d.ts.map +0 -1
- package/build/browser/commands/site/CommonSiteArgs.js +0 -17
- package/build/browser/commands/site/CommonSiteArgs.js.map +0 -1
- package/build/browser/commands/site/deploy/SiteDeployArgs.d.ts +0 -10
- package/build/browser/commands/site/deploy/SiteDeployArgs.d.ts.map +0 -1
- package/build/browser/commands/site/deploy/SiteDeployArgs.js +0 -17
- package/build/browser/commands/site/deploy/SiteDeployArgs.js.map +0 -1
- package/build/browser/commands/site/deploy/index.d.ts +0 -6
- package/build/browser/commands/site/deploy/index.d.ts.map +0 -1
- package/build/browser/commands/site/deploy/index.js +0 -108
- package/build/browser/commands/site/deploy/index.js.map +0 -1
- package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.d.ts +0 -5
- package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.d.ts.map +0 -1
- package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.js +0 -28
- package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.js.map +0 -1
- package/build/browser/commands/site/deploy/siteDeployCommand.d.mts +0 -10
- package/build/browser/commands/site/deploy/siteDeployCommand.d.mts.map +0 -1
- package/build/browser/commands/site/deploy/siteDeployCommand.js +0 -98
- package/build/browser/commands/site/deploy/siteDeployCommand.js.map +0 -1
- package/build/browser/commands/site/deploy/siteDeployCommand.mjs +0 -90
- package/build/browser/commands/site/index.d.ts +0 -6
- package/build/browser/commands/site/index.d.ts.map +0 -1
- package/build/browser/commands/site/index.js +0 -69
- package/build/browser/commands/site/index.js.map +0 -1
- package/build/browser/commands/site/logSiteCommandConfigFileOverride.d.ts +0 -5
- package/build/browser/commands/site/logSiteCommandConfigFileOverride.d.ts.map +0 -1
- package/build/browser/commands/site/logSiteCommandConfigFileOverride.js +0 -25
- package/build/browser/commands/site/logSiteCommandConfigFileOverride.js.map +0 -1
- package/build/browser/commands/site/version/delete/VersionDeleteArgs.d.ts +0 -6
- package/build/browser/commands/site/version/delete/VersionDeleteArgs.d.ts.map +0 -1
- package/build/browser/commands/site/version/delete/VersionDeleteArgs.js +0 -17
- package/build/browser/commands/site/version/delete/VersionDeleteArgs.js.map +0 -1
- package/build/browser/commands/site/version/delete/index.d.ts +0 -6
- package/build/browser/commands/site/version/delete/index.d.ts.map +0 -1
- package/build/browser/commands/site/version/delete/index.js +0 -36
- package/build/browser/commands/site/version/delete/index.js.map +0 -1
- package/build/browser/commands/site/version/delete/versionDeleteCommand.d.mts +0 -3
- package/build/browser/commands/site/version/delete/versionDeleteCommand.d.mts.map +0 -1
- package/build/browser/commands/site/version/delete/versionDeleteCommand.js +0 -41
- package/build/browser/commands/site/version/delete/versionDeleteCommand.js.map +0 -1
- package/build/browser/commands/site/version/delete/versionDeleteCommand.mjs +0 -32
- package/build/browser/commands/site/version/get/VersionGetArgs.d.ts +0 -4
- package/build/browser/commands/site/version/get/VersionGetArgs.d.ts.map +0 -1
- package/build/browser/commands/site/version/get/VersionGetArgs.js +0 -17
- package/build/browser/commands/site/version/get/VersionGetArgs.js.map +0 -1
- package/build/browser/commands/site/version/get/index.d.ts +0 -6
- package/build/browser/commands/site/version/get/index.d.ts.map +0 -1
- package/build/browser/commands/site/version/get/index.js +0 -28
- package/build/browser/commands/site/version/get/index.js.map +0 -1
- package/build/browser/commands/site/version/get/versionGetCommand.d.mts +0 -3
- package/build/browser/commands/site/version/get/versionGetCommand.d.mts.map +0 -1
- package/build/browser/commands/site/version/get/versionGetCommand.js +0 -36
- package/build/browser/commands/site/version/get/versionGetCommand.js.map +0 -1
- package/build/browser/commands/site/version/get/versionGetCommand.mjs +0 -32
- package/build/browser/commands/site/version/index.d.ts +0 -5
- package/build/browser/commands/site/version/index.d.ts.map +0 -1
- package/build/browser/commands/site/version/index.js +0 -30
- package/build/browser/commands/site/version/index.js.map +0 -1
- package/build/browser/commands/site/version/list/VersionListArgs.d.ts +0 -4
- package/build/browser/commands/site/version/list/VersionListArgs.d.ts.map +0 -1
- package/build/browser/commands/site/version/list/VersionListArgs.js +0 -17
- package/build/browser/commands/site/version/list/VersionListArgs.js.map +0 -1
- package/build/browser/commands/site/version/list/index.d.ts +0 -6
- package/build/browser/commands/site/version/list/index.d.ts.map +0 -1
- package/build/browser/commands/site/version/list/index.js +0 -28
- package/build/browser/commands/site/version/list/index.js.map +0 -1
- package/build/browser/commands/site/version/list/versionListCommand.d.mts +0 -3
- package/build/browser/commands/site/version/list/versionListCommand.d.mts.map +0 -1
- package/build/browser/commands/site/version/list/versionListCommand.js +0 -41
- package/build/browser/commands/site/version/list/versionListCommand.js.map +0 -1
- package/build/browser/commands/site/version/list/versionListCommand.mjs +0 -42
- package/build/browser/commands/site/version/set/VersionSetArgs.d.ts +0 -5
- package/build/browser/commands/site/version/set/VersionSetArgs.d.ts.map +0 -1
- package/build/browser/commands/site/version/set/VersionSetArgs.js +0 -17
- package/build/browser/commands/site/version/set/VersionSetArgs.js.map +0 -1
- package/build/browser/commands/site/version/set/index.d.ts +0 -6
- package/build/browser/commands/site/version/set/index.d.ts.map +0 -1
- package/build/browser/commands/site/version/set/index.js +0 -32
- package/build/browser/commands/site/version/set/index.js.map +0 -1
- package/build/browser/commands/site/version/set/versionSetCommand.d.mts +0 -3
- package/build/browser/commands/site/version/set/versionSetCommand.d.mts.map +0 -1
- package/build/browser/commands/site/version/set/versionSetCommand.js +0 -36
- package/build/browser/commands/site/version/set/versionSetCommand.js.map +0 -1
- package/build/browser/commands/site/version/set/versionSetCommand.mjs +0 -28
- package/build/browser/commands/site/version/unset/VersionUnsetArgs.d.ts +0 -5
- package/build/browser/commands/site/version/unset/VersionUnsetArgs.d.ts.map +0 -1
- package/build/browser/commands/site/version/unset/VersionUnsetArgs.js +0 -17
- package/build/browser/commands/site/version/unset/VersionUnsetArgs.js.map +0 -1
- package/build/browser/commands/site/version/unset/index.d.ts +0 -6
- package/build/browser/commands/site/version/unset/index.d.ts.map +0 -1
- package/build/browser/commands/site/version/unset/index.js +0 -32
- package/build/browser/commands/site/version/unset/index.js.map +0 -1
- package/build/browser/commands/site/version/unset/versionUnsetCommand.d.mts +0 -3
- package/build/browser/commands/site/version/unset/versionUnsetCommand.d.mts.map +0 -1
- package/build/browser/commands/site/version/unset/versionUnsetCommand.js +0 -40
- package/build/browser/commands/site/version/unset/versionUnsetCommand.js.map +0 -1
- package/build/browser/commands/site/version/unset/versionUnsetCommand.mjs +0 -32
- package/build/browser/consola/handlePromptCancel.d.ts +0 -2
- package/build/browser/consola/handlePromptCancel.d.ts.map +0 -1
- package/build/browser/consola/handlePromptCancel.js +0 -25
- package/build/browser/consola/handlePromptCancel.js.map +0 -1
- package/build/browser/index.d.ts +0 -2
- package/build/browser/index.d.ts.map +0 -1
- package/build/browser/net/ThirdPartyAppRid.d.ts +0 -2
- package/build/browser/net/ThirdPartyAppRid.d.ts.map +0 -1
- package/build/browser/net/ThirdPartyAppRid.js +0 -17
- package/build/browser/net/ThirdPartyAppRid.js.map +0 -1
- package/build/browser/net/UserAgent.d.ts +0 -2
- package/build/browser/net/UserAgent.d.ts.map +0 -1
- package/build/browser/net/UserAgent.js +0 -17
- package/build/browser/net/UserAgent.js.map +0 -1
- package/build/browser/net/createFetch.d.mts +0 -2
- package/build/browser/net/createFetch.d.mts.map +0 -1
- package/build/browser/net/createFetch.js +0 -66
- package/build/browser/net/createFetch.js.map +0 -1
- package/build/browser/net/createFetch.mjs +0 -71
- package/build/browser/net/createInternalClientContext.d.mts +0 -3
- package/build/browser/net/createInternalClientContext.d.mts.map +0 -1
- package/build/browser/net/createInternalClientContext.js +0 -22
- package/build/browser/net/createInternalClientContext.js.map +0 -1
- package/build/browser/net/createInternalClientContext.mjs +0 -21
- package/build/browser/net/index.d.mts +0 -3
- package/build/browser/net/index.d.mts.map +0 -1
- package/build/browser/net/index.js +0 -18
- package/build/browser/net/index.js.map +0 -1
- package/build/browser/net/index.mjs +0 -17
- package/build/browser/net/internalClientContext.d.mts +0 -5
- package/build/browser/net/internalClientContext.d.mts.map +0 -1
- package/build/browser/net/internalClientContext.js +0 -17
- package/build/browser/net/internalClientContext.js.map +0 -1
- package/build/browser/net/internalClientContext.mjs +0 -16
- package/build/browser/net/third-party-applications/DeployWebsiteRequest.d.mts +0 -4
- package/build/browser/net/third-party-applications/DeployWebsiteRequest.d.mts.map +0 -1
- package/build/browser/net/third-party-applications/DeployWebsiteRequest.js +0 -17
- package/build/browser/net/third-party-applications/DeployWebsiteRequest.js.map +0 -1
- package/build/browser/net/third-party-applications/DeployWebsiteRequest.mjs +0 -16
- package/build/browser/net/third-party-applications/ListVersionsResponse.d.mts +0 -6
- package/build/browser/net/third-party-applications/ListVersionsResponse.d.mts.map +0 -1
- package/build/browser/net/third-party-applications/ListVersionsResponse.js +0 -17
- package/build/browser/net/third-party-applications/ListVersionsResponse.js.map +0 -1
- package/build/browser/net/third-party-applications/ListVersionsResponse.mjs +0 -16
- package/build/browser/net/third-party-applications/Version.d.mts +0 -4
- package/build/browser/net/third-party-applications/Version.d.mts.map +0 -1
- package/build/browser/net/third-party-applications/Version.js +0 -17
- package/build/browser/net/third-party-applications/Version.js.map +0 -1
- package/build/browser/net/third-party-applications/Version.mjs +0 -16
- package/build/browser/net/third-party-applications/Website.d.mts +0 -5
- package/build/browser/net/third-party-applications/Website.d.mts.map +0 -1
- package/build/browser/net/third-party-applications/Website.js +0 -17
- package/build/browser/net/third-party-applications/Website.js.map +0 -1
- package/build/browser/net/third-party-applications/Website.mjs +0 -16
- package/build/browser/net/third-party-applications/deleteVersion.d.mts +0 -4
- package/build/browser/net/third-party-applications/deleteVersion.d.mts.map +0 -1
- package/build/browser/net/third-party-applications/deleteVersion.js +0 -24
- package/build/browser/net/third-party-applications/deleteVersion.js.map +0 -1
- package/build/browser/net/third-party-applications/deleteVersion.mjs +0 -23
- package/build/browser/net/third-party-applications/deployWebsite.d.mts +0 -6
- package/build/browser/net/third-party-applications/deployWebsite.d.mts.map +0 -1
- package/build/browser/net/third-party-applications/deployWebsite.js +0 -29
- package/build/browser/net/third-party-applications/deployWebsite.js.map +0 -1
- package/build/browser/net/third-party-applications/deployWebsite.mjs +0 -28
- package/build/browser/net/third-party-applications/getWebsite.d.mts +0 -5
- package/build/browser/net/third-party-applications/getWebsite.d.mts.map +0 -1
- package/build/browser/net/third-party-applications/getWebsite.js +0 -33
- package/build/browser/net/third-party-applications/getWebsite.js.map +0 -1
- package/build/browser/net/third-party-applications/getWebsite.mjs +0 -35
- package/build/browser/net/third-party-applications/index.d.mts +0 -11
- package/build/browser/net/third-party-applications/index.d.mts.map +0 -1
- package/build/browser/net/third-party-applications/index.js +0 -22
- package/build/browser/net/third-party-applications/index.js.map +0 -1
- package/build/browser/net/third-party-applications/index.mjs +0 -21
- package/build/browser/net/third-party-applications/listVersions.d.mts +0 -5
- package/build/browser/net/third-party-applications/listVersions.d.mts.map +0 -1
- package/build/browser/net/third-party-applications/listVersions.js +0 -23
- package/build/browser/net/third-party-applications/listVersions.js.map +0 -1
- package/build/browser/net/third-party-applications/listVersions.mjs +0 -22
- package/build/browser/net/third-party-applications/undeployWebsite.d.mts +0 -4
- package/build/browser/net/third-party-applications/undeployWebsite.d.mts.map +0 -1
- package/build/browser/net/third-party-applications/undeployWebsite.js +0 -24
- package/build/browser/net/third-party-applications/undeployWebsite.js.map +0 -1
- package/build/browser/net/third-party-applications/undeployWebsite.mjs +0 -23
- package/build/browser/net/third-party-applications/uploadVersion.d.mts +0 -5
- package/build/browser/net/third-party-applications/uploadVersion.d.mts.map +0 -1
- package/build/browser/net/third-party-applications/uploadVersion.js +0 -30
- package/build/browser/net/third-party-applications/uploadVersion.js.map +0 -1
- package/build/browser/net/third-party-applications/uploadVersion.mjs +0 -29
- package/build/browser/util/autoVersion.d.ts +0 -9
- package/build/browser/util/autoVersion.d.ts.map +0 -1
- package/build/browser/util/autoVersion.js +0 -62
- package/build/browser/util/autoVersion.js.map +0 -1
- package/build/browser/util/autoVersion.test.d.ts +0 -2
- package/build/browser/util/autoVersion.test.d.ts.map +0 -1
- package/build/browser/util/autoVersion.test.js +0 -71
- package/build/browser/util/autoVersion.test.js.map +0 -1
- package/build/browser/util/config.d.ts +0 -26
- package/build/browser/util/config.d.ts.map +0 -1
- package/build/browser/util/config.js +0 -102
- package/build/browser/util/config.js.map +0 -1
- package/build/browser/util/config.test.d.ts +0 -2
- package/build/browser/util/config.test.d.ts.map +0 -1
- package/build/browser/util/config.test.js +0 -110
- package/build/browser/util/config.test.js.map +0 -1
- package/build/browser/util/configLoader.d.ts +0 -4
- package/build/browser/util/configLoader.d.ts.map +0 -1
- package/build/browser/util/configLoader.js +0 -25
- package/build/browser/util/configLoader.js.map +0 -1
- package/build/browser/util/isValidSemver.test.d.ts +0 -2
- package/build/browser/util/isValidSemver.test.d.ts.map +0 -1
- package/build/browser/util/isValidSemver.test.js +0 -41
- package/build/browser/util/isValidSemver.test.js.map +0 -1
- package/build/browser/util/token.d.ts +0 -22
- package/build/browser/util/token.d.ts.map +0 -1
- package/build/browser/util/token.js +0 -84
- package/build/browser/util/token.js.map +0 -1
- package/build/browser/util/token.test.d.ts +0 -2
- package/build/browser/util/token.test.d.ts.map +0 -1
- package/build/browser/util/token.test.js +0 -62
- package/build/browser/util/token.test.js.map +0 -1
- package/build/browser/yargs/logConfigFileMiddleware.d.ts +0 -2
- package/build/browser/yargs/logConfigFileMiddleware.d.ts.map +0 -1
- package/build/browser/yargs/logConfigFileMiddleware.js +0 -29
- package/build/browser/yargs/logConfigFileMiddleware.js.map +0 -1
- package/build/esm/cli.js +0 -42
- package/build/esm/cli.js.map +0 -1
- package/build/esm/commands/auth/index.js +0 -34
- package/build/esm/commands/auth/index.js.map +0 -1
- package/build/esm/commands/auth/login/index.js +0 -34
- package/build/esm/commands/auth/login/index.js.map +0 -1
- package/build/esm/commands/site/CommonSiteArgs.js +0 -17
- package/build/esm/commands/site/CommonSiteArgs.js.map +0 -1
- package/build/esm/commands/site/deploy/SiteDeployArgs.js +0 -17
- package/build/esm/commands/site/deploy/SiteDeployArgs.js.map +0 -1
- package/build/esm/commands/site/deploy/index.js +0 -108
- package/build/esm/commands/site/deploy/index.js.map +0 -1
- package/build/esm/commands/site/deploy/logDeployCommandConfigFileOverride.js +0 -28
- package/build/esm/commands/site/deploy/logDeployCommandConfigFileOverride.js.map +0 -1
- package/build/esm/commands/site/deploy/siteDeployCommand.js +0 -98
- package/build/esm/commands/site/deploy/siteDeployCommand.js.map +0 -1
- package/build/esm/commands/site/deploy/siteDeployCommand.mjs +0 -90
- package/build/esm/commands/site/index.js +0 -69
- package/build/esm/commands/site/index.js.map +0 -1
- package/build/esm/commands/site/logSiteCommandConfigFileOverride.js +0 -25
- package/build/esm/commands/site/logSiteCommandConfigFileOverride.js.map +0 -1
- package/build/esm/commands/site/version/delete/VersionDeleteArgs.js +0 -17
- package/build/esm/commands/site/version/delete/VersionDeleteArgs.js.map +0 -1
- package/build/esm/commands/site/version/delete/index.js +0 -36
- package/build/esm/commands/site/version/delete/index.js.map +0 -1
- package/build/esm/commands/site/version/delete/versionDeleteCommand.js +0 -41
- package/build/esm/commands/site/version/delete/versionDeleteCommand.js.map +0 -1
- package/build/esm/commands/site/version/delete/versionDeleteCommand.mjs +0 -32
- package/build/esm/commands/site/version/get/VersionGetArgs.js +0 -17
- package/build/esm/commands/site/version/get/VersionGetArgs.js.map +0 -1
- package/build/esm/commands/site/version/get/index.js +0 -28
- package/build/esm/commands/site/version/get/index.js.map +0 -1
- package/build/esm/commands/site/version/get/versionGetCommand.js +0 -36
- package/build/esm/commands/site/version/get/versionGetCommand.js.map +0 -1
- package/build/esm/commands/site/version/get/versionGetCommand.mjs +0 -32
- package/build/esm/commands/site/version/index.js +0 -30
- package/build/esm/commands/site/version/index.js.map +0 -1
- package/build/esm/commands/site/version/list/VersionListArgs.js +0 -17
- package/build/esm/commands/site/version/list/VersionListArgs.js.map +0 -1
- package/build/esm/commands/site/version/list/index.js +0 -28
- package/build/esm/commands/site/version/list/index.js.map +0 -1
- package/build/esm/commands/site/version/list/versionListCommand.js +0 -41
- package/build/esm/commands/site/version/list/versionListCommand.js.map +0 -1
- package/build/esm/commands/site/version/list/versionListCommand.mjs +0 -42
- package/build/esm/commands/site/version/set/VersionSetArgs.js +0 -17
- package/build/esm/commands/site/version/set/VersionSetArgs.js.map +0 -1
- package/build/esm/commands/site/version/set/index.js +0 -32
- package/build/esm/commands/site/version/set/index.js.map +0 -1
- package/build/esm/commands/site/version/set/versionSetCommand.js +0 -36
- package/build/esm/commands/site/version/set/versionSetCommand.js.map +0 -1
- package/build/esm/commands/site/version/set/versionSetCommand.mjs +0 -28
- package/build/esm/commands/site/version/unset/VersionUnsetArgs.js +0 -17
- package/build/esm/commands/site/version/unset/VersionUnsetArgs.js.map +0 -1
- package/build/esm/commands/site/version/unset/index.js +0 -32
- package/build/esm/commands/site/version/unset/index.js.map +0 -1
- package/build/esm/commands/site/version/unset/versionUnsetCommand.js +0 -40
- package/build/esm/commands/site/version/unset/versionUnsetCommand.js.map +0 -1
- package/build/esm/commands/site/version/unset/versionUnsetCommand.mjs +0 -32
- package/build/esm/consola/handlePromptCancel.js +0 -25
- package/build/esm/consola/handlePromptCancel.js.map +0 -1
- package/build/esm/net/ThirdPartyAppRid.js +0 -17
- package/build/esm/net/ThirdPartyAppRid.js.map +0 -1
- package/build/esm/net/UserAgent.js +0 -17
- package/build/esm/net/UserAgent.js.map +0 -1
- package/build/esm/net/createFetch.js +0 -66
- package/build/esm/net/createFetch.js.map +0 -1
- package/build/esm/net/createFetch.mjs +0 -71
- package/build/esm/net/createInternalClientContext.js +0 -22
- package/build/esm/net/createInternalClientContext.js.map +0 -1
- package/build/esm/net/createInternalClientContext.mjs +0 -21
- package/build/esm/net/index.js +0 -18
- package/build/esm/net/index.js.map +0 -1
- package/build/esm/net/index.mjs +0 -17
- package/build/esm/net/internalClientContext.js +0 -17
- package/build/esm/net/internalClientContext.js.map +0 -1
- package/build/esm/net/internalClientContext.mjs +0 -16
- package/build/esm/net/third-party-applications/DeployWebsiteRequest.js +0 -17
- package/build/esm/net/third-party-applications/DeployWebsiteRequest.js.map +0 -1
- package/build/esm/net/third-party-applications/DeployWebsiteRequest.mjs +0 -16
- package/build/esm/net/third-party-applications/ListVersionsResponse.js +0 -17
- package/build/esm/net/third-party-applications/ListVersionsResponse.js.map +0 -1
- package/build/esm/net/third-party-applications/ListVersionsResponse.mjs +0 -16
- package/build/esm/net/third-party-applications/Version.js +0 -17
- package/build/esm/net/third-party-applications/Version.js.map +0 -1
- package/build/esm/net/third-party-applications/Version.mjs +0 -16
- package/build/esm/net/third-party-applications/Website.js +0 -17
- package/build/esm/net/third-party-applications/Website.js.map +0 -1
- package/build/esm/net/third-party-applications/Website.mjs +0 -16
- package/build/esm/net/third-party-applications/deleteVersion.js +0 -24
- package/build/esm/net/third-party-applications/deleteVersion.js.map +0 -1
- package/build/esm/net/third-party-applications/deleteVersion.mjs +0 -23
- package/build/esm/net/third-party-applications/deployWebsite.js +0 -29
- package/build/esm/net/third-party-applications/deployWebsite.js.map +0 -1
- package/build/esm/net/third-party-applications/deployWebsite.mjs +0 -28
- package/build/esm/net/third-party-applications/getWebsite.js +0 -33
- package/build/esm/net/third-party-applications/getWebsite.js.map +0 -1
- package/build/esm/net/third-party-applications/getWebsite.mjs +0 -35
- package/build/esm/net/third-party-applications/index.js +0 -22
- package/build/esm/net/third-party-applications/index.js.map +0 -1
- package/build/esm/net/third-party-applications/index.mjs +0 -21
- package/build/esm/net/third-party-applications/listVersions.js +0 -23
- package/build/esm/net/third-party-applications/listVersions.js.map +0 -1
- package/build/esm/net/third-party-applications/listVersions.mjs +0 -22
- package/build/esm/net/third-party-applications/undeployWebsite.js +0 -24
- package/build/esm/net/third-party-applications/undeployWebsite.js.map +0 -1
- package/build/esm/net/third-party-applications/undeployWebsite.mjs +0 -23
- package/build/esm/net/third-party-applications/uploadVersion.js +0 -30
- package/build/esm/net/third-party-applications/uploadVersion.js.map +0 -1
- package/build/esm/net/third-party-applications/uploadVersion.mjs +0 -29
- package/build/esm/util/autoVersion.js +0 -62
- package/build/esm/util/autoVersion.js.map +0 -1
- package/build/esm/util/autoVersion.test.js +0 -71
- package/build/esm/util/autoVersion.test.js.map +0 -1
- package/build/esm/util/config.js +0 -102
- package/build/esm/util/config.js.map +0 -1
- package/build/esm/util/config.test.js +0 -110
- package/build/esm/util/config.test.js.map +0 -1
- package/build/esm/util/configLoader.js +0 -25
- package/build/esm/util/configLoader.js.map +0 -1
- package/build/esm/util/isValidSemver.test.js +0 -41
- package/build/esm/util/isValidSemver.test.js.map +0 -1
- package/build/esm/util/token.js +0 -84
- package/build/esm/util/token.js.map +0 -1
- package/build/esm/util/token.test.js +0 -62
- package/build/esm/util/token.test.js.map +0 -1
- package/build/esm/yargs/logConfigFileMiddleware.js +0 -29
- package/build/esm/yargs/logConfigFileMiddleware.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versionListCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/list/versionListCommand.mts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,wBAA8B,kBAAkB,CAC9C,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,eAAe,iBAiC/D"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { createInternalClientContext, thirdPartyApplications } from "#net";
|
|
17
|
-
import { consola } from "consola";
|
|
18
|
-
import { colorize } from "consola/utils";
|
|
19
|
-
import { loadToken } from "../../../../util/token.js";
|
|
20
|
-
export default async function versionListCommand({
|
|
21
|
-
foundryUrl,
|
|
22
|
-
application,
|
|
23
|
-
token,
|
|
24
|
-
tokenFile
|
|
25
|
-
}) {
|
|
26
|
-
const loadedToken = await loadToken(token, tokenFile);
|
|
27
|
-
const clientCtx = createInternalClientContext(foundryUrl, () => loadedToken);
|
|
28
|
-
consola.start("Fetching versions & deployed version");
|
|
29
|
-
const [versions, website] = await Promise.all([thirdPartyApplications.listVersions(clientCtx, application), thirdPartyApplications.getWebsite(clientCtx, application)]);
|
|
30
|
-
if (versions.data.length === 0) {
|
|
31
|
-
consola.info("No site versions found");
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
consola.success("Found versions:");
|
|
35
|
-
const semver = await import("semver");
|
|
36
|
-
const sortedVersions = semver.rsort(versions.data.map(v => v.version).filter(v => semver.valid(v)));
|
|
37
|
-
for (const version of sortedVersions) {
|
|
38
|
-
consola.log(` - ${version}${website?.deployedVersion && version === website?.deployedVersion ? colorize("green", ` (deployed)`) : ""}`);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=versionListCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versionListCommand.js","names":["createInternalClientContext","thirdPartyApplications","consola","colorize","loadToken","versionListCommand","foundryUrl","application","token","tokenFile","loadedToken","clientCtx","start","versions","website","Promise","all","listVersions","getWebsite","data","length","info","success","semver","sortedVersions","rsort","map","v","version","filter","valid","log","deployedVersion"],"sources":["versionListCommand.mjs"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionListCommand({ foundryUrl, application, token, tokenFile }) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Fetching versions & deployed version\");\n const [versions, website] = await Promise.all([\n thirdPartyApplications.listVersions(clientCtx, application),\n thirdPartyApplications.getWebsite(clientCtx, application),\n ]);\n if (versions.data.length === 0) {\n consola.info(\"No site versions found\");\n return;\n }\n consola.success(\"Found versions:\");\n const semver = await import(\"semver\");\n const sortedVersions = semver.rsort(versions.data.map(v => v.version).filter(v => semver.valid(v)));\n for (const version of sortedVersions) {\n consola.log(` - ${version}${website?.deployedVersion\n && version === website?.deployedVersion\n ? colorize(\"green\", ` (deployed)`)\n : \"\"}`);\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,2BAA2B,EAAEC,sBAAsB,QAAQ,MAAM;AAC1E,SAASC,OAAO,QAAQ,SAAS;AACjC,SAASC,QAAQ,QAAQ,eAAe;AACxC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,eAAe,eAAeC,kBAAkBA,CAAC;EAAEC,UAAU;EAAEC,WAAW;EAAEC,KAAK;EAAEC;AAAU,CAAC,EAAE;EAC5F,MAAMC,WAAW,GAAG,MAAMN,SAAS,CAACI,KAAK,EAAEC,SAAS,CAAC;EAErD,MAAME,SAAS,GAAGX,2BAA2B,CAACM,UAAU,EADlC,MAAMI,WAC2C,CAAC;EACxER,OAAO,CAACU,KAAK,CAAC,sCAAsC,CAAC;EACrD,MAAM,CAACC,QAAQ,EAAEC,OAAO,CAAC,GAAG,MAAMC,OAAO,CAACC,GAAG,CAAC,CAC1Cf,sBAAsB,CAACgB,YAAY,CAACN,SAAS,EAAEJ,WAAW,CAAC,EAC3DN,sBAAsB,CAACiB,UAAU,CAACP,SAAS,EAAEJ,WAAW,CAAC,CAC5D,CAAC;EACF,IAAIM,QAAQ,CAACM,IAAI,CAACC,MAAM,KAAK,CAAC,EAAE;IAC5BlB,OAAO,CAACmB,IAAI,CAAC,wBAAwB,CAAC;IACtC;EACJ;EACAnB,OAAO,CAACoB,OAAO,CAAC,iBAAiB,CAAC;EAClC,MAAMC,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC;EACrC,MAAMC,cAAc,GAAGD,MAAM,CAACE,KAAK,CAACZ,QAAQ,CAACM,IAAI,CAACO,GAAG,CAACC,CAAC,IAAIA,CAAC,CAACC,OAAO,CAAC,CAACC,MAAM,CAACF,CAAC,IAAIJ,MAAM,CAACO,KAAK,CAACH,CAAC,CAAC,CAAC,CAAC;EACnG,KAAK,MAAMC,OAAO,IAAIJ,cAAc,EAAE;IAClCtB,OAAO,CAAC6B,GAAG,CAAC,SAASH,OAAO,GAAGd,OAAO,EAAEkB,eAAe,IAChDJ,OAAO,KAAKd,OAAO,EAAEkB,eAAe,GACrC7B,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,GAChC,EAAE,EAAE,CAAC;EACf;AACJ","ignoreList":[]}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { createInternalClientContext, thirdPartyApplications } from "#net";
|
|
17
|
-
import { consola } from "consola";
|
|
18
|
-
import { colorize } from "consola/utils";
|
|
19
|
-
import { loadToken } from "../../../../util/token.js";
|
|
20
|
-
export default async function versionListCommand({ foundryUrl, application, token, tokenFile }) {
|
|
21
|
-
const loadedToken = await loadToken(token, tokenFile);
|
|
22
|
-
const tokenProvider = () => loadedToken;
|
|
23
|
-
const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
|
|
24
|
-
consola.start("Fetching versions & deployed version");
|
|
25
|
-
const [versions, website] = await Promise.all([
|
|
26
|
-
thirdPartyApplications.listVersions(clientCtx, application),
|
|
27
|
-
thirdPartyApplications.getWebsite(clientCtx, application),
|
|
28
|
-
]);
|
|
29
|
-
if (versions.data.length === 0) {
|
|
30
|
-
consola.info("No site versions found");
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
consola.success("Found versions:");
|
|
34
|
-
const semver = await import("semver");
|
|
35
|
-
const sortedVersions = semver.rsort(versions.data.map(v => v.version).filter(v => semver.valid(v)));
|
|
36
|
-
for (const version of sortedVersions) {
|
|
37
|
-
consola.log(` - ${version}${website?.deployedVersion
|
|
38
|
-
&& version === website?.deployedVersion
|
|
39
|
-
? colorize("green", ` (deployed)`)
|
|
40
|
-
: ""}`);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VersionSetArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/set/VersionSetArgs.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=VersionSetArgs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VersionSetArgs.js","names":[],"sources":["VersionSetArgs.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CommandModule } from "yargs";
|
|
2
|
-
import type { CommonSiteArgs } from "../../CommonSiteArgs.js";
|
|
3
|
-
import type { VersionSetArgs } from "./VersionSetArgs.js";
|
|
4
|
-
declare const command: CommandModule<CommonSiteArgs, VersionSetArgs>;
|
|
5
|
-
export default command;
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/set/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,QAAA,MAAM,OAAO,EAAE,aAAa,CAC1B,cAAc,EACd,cAAc,CAgBf,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
const command = {
|
|
17
|
-
command: "set <version>",
|
|
18
|
-
describe: "Set live site version",
|
|
19
|
-
builder: argv => {
|
|
20
|
-
return argv.positional("version", {
|
|
21
|
-
type: "string",
|
|
22
|
-
demandOption: true,
|
|
23
|
-
description: "Version to set as live"
|
|
24
|
-
});
|
|
25
|
-
},
|
|
26
|
-
handler: async args => {
|
|
27
|
-
const command = await import("./versionSetCommand.mjs");
|
|
28
|
-
await command.default(args);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
export default command;
|
|
32
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["command","describe","builder","argv","positional","type","demandOption","description","handler","args","default"],"sources":["index.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst command = {\n command: \"set <version>\",\n describe: \"Set live site version\",\n builder: (argv) => {\n return argv\n .positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to set as live\",\n });\n },\n handler: async (args) => {\n const command = await import(\"./versionSetCommand.mjs\");\n await command.default(args);\n },\n};\nexport default command;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,OAAO,GAAG;EACZA,OAAO,EAAE,eAAe;EACxBC,QAAQ,EAAE,uBAAuB;EACjCC,OAAO,EAAGC,IAAI,IAAK;IACf,OAAOA,IAAI,CACNC,UAAU,CAAC,SAAS,EAAE;MACvBC,IAAI,EAAE,QAAQ;MACdC,YAAY,EAAE,IAAI;MAClBC,WAAW,EAAE;IACjB,CAAC,CAAC;EACN,CAAC;EACDC,OAAO,EAAE,MAAOC,IAAI,IAAK;IACrB,MAAMT,OAAO,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC;IACvD,MAAMA,OAAO,CAACU,OAAO,CAACD,IAAI,CAAC;EAC/B;AACJ,CAAC;AACD,eAAeT,OAAO","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versionSetCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/set/versionSetCommand.mts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,wBAA8B,iBAAiB,CAC7C,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,cAAc,iBAgBvE"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { consola } from "consola";
|
|
17
|
-
import { createInternalClientContext, thirdPartyApplications } from "#net";
|
|
18
|
-
import { loadToken } from "../../../../util/token.js";
|
|
19
|
-
export default async function versionSetCommand({
|
|
20
|
-
version,
|
|
21
|
-
application,
|
|
22
|
-
foundryUrl,
|
|
23
|
-
token,
|
|
24
|
-
tokenFile
|
|
25
|
-
}) {
|
|
26
|
-
consola.start(`Setting live version`);
|
|
27
|
-
const loadedToken = await loadToken(token, tokenFile);
|
|
28
|
-
const clientCtx = createInternalClientContext(foundryUrl, () => loadedToken);
|
|
29
|
-
if (version) {
|
|
30
|
-
await thirdPartyApplications.deployWebsite(clientCtx, application, {
|
|
31
|
-
version
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
consola.success(`Set live version to ${version}`);
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=versionSetCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versionSetCommand.js","names":["consola","createInternalClientContext","thirdPartyApplications","loadToken","versionSetCommand","version","application","foundryUrl","token","tokenFile","start","loadedToken","clientCtx","deployWebsite","success"],"sources":["versionSetCommand.mjs"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { consola } from \"consola\";\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionSetCommand({ version, application, foundryUrl, token, tokenFile }) {\n consola.start(`Setting live version`);\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n if (version) {\n await thirdPartyApplications.deployWebsite(clientCtx, application, { version });\n }\n consola.success(`Set live version to ${version}`);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,SAAS;AACjC,SAASC,2BAA2B,EAAEC,sBAAsB,QAAQ,MAAM;AAC1E,SAASC,SAAS,QAAQ,2BAA2B;AACrD,eAAe,eAAeC,iBAAiBA,CAAC;EAAEC,OAAO;EAAEC,WAAW;EAAEC,UAAU;EAAEC,KAAK;EAAEC;AAAU,CAAC,EAAE;EACpGT,OAAO,CAACU,KAAK,CAAC,sBAAsB,CAAC;EACrC,MAAMC,WAAW,GAAG,MAAMR,SAAS,CAACK,KAAK,EAAEC,SAAS,CAAC;EAErD,MAAMG,SAAS,GAAGX,2BAA2B,CAACM,UAAU,EADlC,MAAMI,WAC2C,CAAC;EACxE,IAAIN,OAAO,EAAE;IACT,MAAMH,sBAAsB,CAACW,aAAa,CAACD,SAAS,EAAEN,WAAW,EAAE;MAAED;IAAQ,CAAC,CAAC;EACnF;EACAL,OAAO,CAACc,OAAO,CAAC,uBAAuBT,OAAO,EAAE,CAAC;AACrD","ignoreList":[]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { consola } from "consola";
|
|
17
|
-
import { createInternalClientContext, thirdPartyApplications } from "#net";
|
|
18
|
-
import { loadToken } from "../../../../util/token.js";
|
|
19
|
-
export default async function versionSetCommand({ version, application, foundryUrl, token, tokenFile }) {
|
|
20
|
-
consola.start(`Setting live version`);
|
|
21
|
-
const loadedToken = await loadToken(token, tokenFile);
|
|
22
|
-
const tokenProvider = () => loadedToken;
|
|
23
|
-
const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
|
|
24
|
-
if (version) {
|
|
25
|
-
await thirdPartyApplications.deployWebsite(clientCtx, application, { version });
|
|
26
|
-
}
|
|
27
|
-
consola.success(`Set live version to ${version}`);
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VersionUnsetArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/unset/VersionUnsetArgs.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,GAAG,CAAC,EAAE,OAAO,CAAC;CACf"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=VersionUnsetArgs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VersionUnsetArgs.js","names":[],"sources":["VersionUnsetArgs.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CommandModule } from "yargs";
|
|
2
|
-
import type { CommonSiteArgs } from "../../CommonSiteArgs.js";
|
|
3
|
-
import type { VersionUnsetArgs } from "./VersionUnsetArgs.js";
|
|
4
|
-
declare const command: CommandModule<CommonSiteArgs, VersionUnsetArgs>;
|
|
5
|
-
export default command;
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/unset/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,QAAA,MAAM,OAAO,EAAE,aAAa,CAC1B,cAAc,EACd,gBAAgB,CAgBjB,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
const command = {
|
|
17
|
-
command: "unset",
|
|
18
|
-
describe: "Clear live site version",
|
|
19
|
-
builder: argv => {
|
|
20
|
-
return argv.option("yes", {
|
|
21
|
-
alias: "y",
|
|
22
|
-
type: "boolean",
|
|
23
|
-
description: "Automatically confirm destructive changes"
|
|
24
|
-
}).group(["yes"], "Unset Options");
|
|
25
|
-
},
|
|
26
|
-
handler: async args => {
|
|
27
|
-
const command = await import("./versionUnsetCommand.mjs");
|
|
28
|
-
await command.default(args);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
export default command;
|
|
32
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["command","describe","builder","argv","option","alias","type","description","group","handler","args","default"],"sources":["index.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst command = {\n command: \"unset\",\n describe: \"Clear live site version\",\n builder: (argv) => {\n return argv.option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\",\n })\n .group([\"yes\"], \"Unset Options\");\n },\n handler: async (args) => {\n const command = await import(\"./versionUnsetCommand.mjs\");\n await command.default(args);\n },\n};\nexport default command;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,OAAO,GAAG;EACZA,OAAO,EAAE,OAAO;EAChBC,QAAQ,EAAE,yBAAyB;EACnCC,OAAO,EAAGC,IAAI,IAAK;IACf,OAAOA,IAAI,CAACC,MAAM,CAAC,KAAK,EAAE;MACtBC,KAAK,EAAE,GAAG;MACVC,IAAI,EAAE,SAAS;MACfC,WAAW,EAAE;IACjB,CAAC,CAAC,CACGC,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE,eAAe,CAAC;EACxC,CAAC;EACDC,OAAO,EAAE,MAAOC,IAAI,IAAK;IACrB,MAAMV,OAAO,GAAG,MAAM,MAAM,CAAC,2BAA2B,CAAC;IACzD,MAAMA,OAAO,CAACW,OAAO,CAACD,IAAI,CAAC;EAC/B;AACJ,CAAC;AACD,eAAeV,OAAO","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versionUnsetCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/unset/versionUnsetCommand.mts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,wBAA8B,mBAAmB,CAC/C,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,gBAAgB,iBAqBrE"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { consola } from "consola";
|
|
17
|
-
import { createInternalClientContext, thirdPartyApplications } from "#net";
|
|
18
|
-
import { colorize } from "consola/utils";
|
|
19
|
-
import { handlePromptCancel } from "../../../../consola/handlePromptCancel.js";
|
|
20
|
-
import { loadToken } from "../../../../util/token.js";
|
|
21
|
-
export default async function versionUnsetCommand({
|
|
22
|
-
yes,
|
|
23
|
-
application,
|
|
24
|
-
foundryUrl,
|
|
25
|
-
token,
|
|
26
|
-
tokenFile
|
|
27
|
-
}) {
|
|
28
|
-
if (!yes) {
|
|
29
|
-
const confirmed = await consola.prompt(`Are you sure you want to clear the live site version?\n${colorize("bold", "Your site will no longer be accessible until a new live site version is set.")}`, {
|
|
30
|
-
type: "confirm"
|
|
31
|
-
});
|
|
32
|
-
handlePromptCancel(confirmed);
|
|
33
|
-
}
|
|
34
|
-
const loadedToken = await loadToken(token, tokenFile);
|
|
35
|
-
const clientCtx = createInternalClientContext(foundryUrl, () => loadedToken);
|
|
36
|
-
consola.start("Clearing live site version");
|
|
37
|
-
await thirdPartyApplications.undeployWebsite(clientCtx, application);
|
|
38
|
-
consola.success("Cleared live site version");
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=versionUnsetCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versionUnsetCommand.js","names":["consola","createInternalClientContext","thirdPartyApplications","colorize","handlePromptCancel","loadToken","versionUnsetCommand","yes","application","foundryUrl","token","tokenFile","confirmed","prompt","type","loadedToken","clientCtx","start","undeployWebsite","success"],"sources":["versionUnsetCommand.mjs"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { consola } from \"consola\";\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { colorize } from \"consola/utils\";\nimport { handlePromptCancel } from \"../../../../consola/handlePromptCancel.js\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionUnsetCommand({ yes, application, foundryUrl, token, tokenFile }) {\n if (!yes) {\n const confirmed = await consola.prompt(`Are you sure you want to clear the live site version?\\n${colorize(\"bold\", \"Your site will no longer be accessible until a new live site version is set.\")}`, { type: \"confirm\" });\n handlePromptCancel(confirmed);\n }\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Clearing live site version\");\n await thirdPartyApplications.undeployWebsite(clientCtx, application);\n consola.success(\"Cleared live site version\");\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,SAAS;AACjC,SAASC,2BAA2B,EAAEC,sBAAsB,QAAQ,MAAM;AAC1E,SAASC,QAAQ,QAAQ,eAAe;AACxC,SAASC,kBAAkB,QAAQ,2CAA2C;AAC9E,SAASC,SAAS,QAAQ,2BAA2B;AACrD,eAAe,eAAeC,mBAAmBA,CAAC;EAAEC,GAAG;EAAEC,WAAW;EAAEC,UAAU;EAAEC,KAAK;EAAEC;AAAU,CAAC,EAAE;EAClG,IAAI,CAACJ,GAAG,EAAE;IACN,MAAMK,SAAS,GAAG,MAAMZ,OAAO,CAACa,MAAM,CAAC,0DAA0DV,QAAQ,CAAC,MAAM,EAAE,8EAA8E,CAAC,EAAE,EAAE;MAAEW,IAAI,EAAE;IAAU,CAAC,CAAC;IACzNV,kBAAkB,CAACQ,SAAS,CAAC;EACjC;EACA,MAAMG,WAAW,GAAG,MAAMV,SAAS,CAACK,KAAK,EAAEC,SAAS,CAAC;EAErD,MAAMK,SAAS,GAAGf,2BAA2B,CAACQ,UAAU,EADlC,MAAMM,WAC2C,CAAC;EACxEf,OAAO,CAACiB,KAAK,CAAC,4BAA4B,CAAC;EAC3C,MAAMf,sBAAsB,CAACgB,eAAe,CAACF,SAAS,EAAER,WAAW,CAAC;EACpER,OAAO,CAACmB,OAAO,CAAC,2BAA2B,CAAC;AAChD","ignoreList":[]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { consola } from "consola";
|
|
17
|
-
import { createInternalClientContext, thirdPartyApplications } from "#net";
|
|
18
|
-
import { colorize } from "consola/utils";
|
|
19
|
-
import { handlePromptCancel } from "../../../../consola/handlePromptCancel.js";
|
|
20
|
-
import { loadToken } from "../../../../util/token.js";
|
|
21
|
-
export default async function versionUnsetCommand({ yes, application, foundryUrl, token, tokenFile }) {
|
|
22
|
-
if (!yes) {
|
|
23
|
-
const confirmed = await consola.prompt(`Are you sure you want to clear the live site version?\n${colorize("bold", "Your site will no longer be accessible until a new live site version is set.")}`, { type: "confirm" });
|
|
24
|
-
handlePromptCancel(confirmed);
|
|
25
|
-
}
|
|
26
|
-
const loadedToken = await loadToken(token, tokenFile);
|
|
27
|
-
const tokenProvider = () => loadedToken;
|
|
28
|
-
const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
|
|
29
|
-
consola.start("Clearing live site version");
|
|
30
|
-
await thirdPartyApplications.undeployWebsite(clientCtx, application);
|
|
31
|
-
consola.success("Cleared live site version");
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handlePromptCancel.d.ts","sourceRoot":"","sources":["../../../src/consola/handlePromptCancel.ts"],"names":[],"mappings":"AAkBA,wBAAgB,kBAAkB,CAAC,cAAc,EAAE,GAAG,QASrD"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { consola } from "consola";
|
|
17
|
-
export function handlePromptCancel(promptResponse) {
|
|
18
|
-
// https://github.com/unjs/consola/issues/251
|
|
19
|
-
const isSigInt = typeof promptResponse === "symbol" && promptResponse.toString() === "Symbol(clack:cancel)";
|
|
20
|
-
if (isSigInt || typeof promptResponse === "boolean" && !promptResponse) {
|
|
21
|
-
consola.fail("Operation cancelled");
|
|
22
|
-
process.exit(0);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=handlePromptCancel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handlePromptCancel.js","names":["consola","handlePromptCancel","promptResponse","isSigInt","toString","fail","process","exit"],"sources":["handlePromptCancel.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { consola } from \"consola\";\nexport function handlePromptCancel(promptResponse) {\n const isFalse = typeof promptResponse === \"boolean\" && !promptResponse;\n // https://github.com/unjs/consola/issues/251\n const isSigInt = typeof promptResponse === \"symbol\"\n && promptResponse.toString() === \"Symbol(clack:cancel)\";\n if (isSigInt || isFalse) {\n consola.fail(\"Operation cancelled\");\n process.exit(0);\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,SAAS;AACjC,OAAO,SAASC,kBAAkBA,CAACC,cAAc,EAAE;EAE/C;EACA,MAAMC,QAAQ,GAAG,OAAOD,cAAc,KAAK,QAAQ,IAC5CA,cAAc,CAACE,QAAQ,CAAC,CAAC,KAAK,sBAAsB;EAC3D,IAAID,QAAQ,IAJI,OAAOD,cAAc,KAAK,SAAS,IAAI,CAACA,cAIjC,EAAE;IACrBF,OAAO,CAACK,IAAI,CAAC,qBAAqB,CAAC;IACnCC,OAAO,CAACC,IAAI,CAAC,CAAC,CAAC;EACnB;AACJ","ignoreList":[]}
|
package/build/browser/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThirdPartyAppRid.d.ts","sourceRoot":"","sources":["../../../src/net/ThirdPartyAppRid.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,gBAAgB,GAC1B,gDAAgD,MAAM,EAAE,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=ThirdPartyAppRid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThirdPartyAppRid.js","names":[],"sources":["ThirdPartyAppRid.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserAgent.d.ts","sourceRoot":"","sources":["../../../src/net/UserAgent.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,UAAU,QAA4C,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export const USER_AGENT = `osdk-cli/${"0.24.0-beta.13"}`;
|
|
17
|
-
//# sourceMappingURL=UserAgent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserAgent.js","names":["USER_AGENT"],"sources":["UserAgent.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport const USER_AGENT = `osdk-cli/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,UAAU,GAAG,8BAAyC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createFetch.d.mts","sourceRoot":"","sources":["../../../src/net/createFetch.mts"],"names":[],"mappings":"AAyBA,wBAAgB,WAAW,CACzB,aAAa,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,EAC7C,OAAO,GAAE,OAAO,KAAa,gBAe9B"}
|