@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,29 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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 { createFetch } from "../createFetch.mjs";
|
|
17
|
-
export async function deployWebsite(ctx, thirdPartyAppRid, request) {
|
|
18
|
-
const fetch = createFetch(ctx.tokenProvider);
|
|
19
|
-
const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/deploy?preview=true`;
|
|
20
|
-
const result = await fetch(url, {
|
|
21
|
-
method: "POST",
|
|
22
|
-
body: JSON.stringify(request),
|
|
23
|
-
headers: {
|
|
24
|
-
"Content-Type": "application/json"
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
return result.json();
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=deployWebsite.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployWebsite.js","names":["createFetch","deployWebsite","ctx","thirdPartyAppRid","request","fetch","tokenProvider","url","foundryUrl","result","method","body","JSON","stringify","headers","json"],"sources":["deployWebsite.mjs"],"sourcesContent":["/*\n * Copyright 2024 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 { createFetch } from \"../createFetch.mjs\";\nexport async function deployWebsite(ctx, thirdPartyAppRid, request) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/deploy?preview=true`;\n const result = await fetch(url, {\n method: \"POST\",\n body: JSON.stringify(request),\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n return result.json();\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,WAAW,QAAQ,oBAAoB;AAChD,OAAO,eAAeC,aAAaA,CAACC,GAAG,EAAEC,gBAAgB,EAAEC,OAAO,EAAE;EAChE,MAAMC,KAAK,GAAGL,WAAW,CAACE,GAAG,CAACI,aAAa,CAAC;EAC5C,MAAMC,GAAG,GAAG,GAAGL,GAAG,CAACM,UAAU,kCAAkCL,gBAAgB,8BAA8B;EAC7G,MAAMM,MAAM,GAAG,MAAMJ,KAAK,CAACE,GAAG,EAAE;IAC5BG,MAAM,EAAE,MAAM;IACdC,IAAI,EAAEC,IAAI,CAACC,SAAS,CAACT,OAAO,CAAC;IAC7BU,OAAO,EAAE;MACL,cAAc,EAAE;IACpB;EACJ,CAAC,CAAC;EACF,OAAOL,MAAM,CAACM,IAAI,CAAC,CAAC;AACxB","ignoreList":[]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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 { createFetch } from "../createFetch.mjs";
|
|
17
|
-
export async function deployWebsite(ctx, thirdPartyAppRid, request) {
|
|
18
|
-
const fetch = createFetch(ctx.tokenProvider);
|
|
19
|
-
const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/deploy?preview=true`;
|
|
20
|
-
const result = await fetch(url, {
|
|
21
|
-
method: "POST",
|
|
22
|
-
body: JSON.stringify(request),
|
|
23
|
-
headers: {
|
|
24
|
-
"Content-Type": "application/json",
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
return result.json();
|
|
28
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
-
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
-
import type { Website } from "./Website.mjs";
|
|
4
|
-
export declare function getWebsite(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<Website | undefined>;
|
|
5
|
-
//# sourceMappingURL=getWebsite.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getWebsite.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/getWebsite.mts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,wBAAsB,UAAU,CAC9B,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAmB9B"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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 { ExitProcessError } from "@osdk/cli.common";
|
|
17
|
-
import { PalantirApiError } from "@osdk/shared.net";
|
|
18
|
-
import { createFetch } from "../createFetch.mjs";
|
|
19
|
-
export async function getWebsite(ctx, thirdPartyAppRid) {
|
|
20
|
-
const fetch = createFetch(ctx.tokenProvider);
|
|
21
|
-
const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website?preview=true`;
|
|
22
|
-
try {
|
|
23
|
-
const result = await fetch(url);
|
|
24
|
-
return result.json();
|
|
25
|
-
} catch (e) {
|
|
26
|
-
// Revisit this error handling in the API
|
|
27
|
-
if (e instanceof ExitProcessError && e.originalError != null && e.originalError instanceof PalantirApiError && e.originalError.errorName === "WebsiteNotFound") {
|
|
28
|
-
return undefined;
|
|
29
|
-
}
|
|
30
|
-
throw e;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=getWebsite.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getWebsite.js","names":["ExitProcessError","PalantirApiError","createFetch","getWebsite","ctx","thirdPartyAppRid","fetch","tokenProvider","url","foundryUrl","result","json","e","originalError","errorName","undefined"],"sources":["getWebsite.mjs"],"sourcesContent":["/*\n * Copyright 2024 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 { ExitProcessError } from \"@osdk/cli.common\";\nimport { PalantirApiError } from \"@osdk/shared.net\";\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function getWebsite(ctx, thirdPartyAppRid) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website?preview=true`;\n try {\n const result = await fetch(url);\n return result.json();\n }\n catch (e) {\n // Revisit this error handling in the API\n if (e instanceof ExitProcessError && e.originalError != null\n && e.originalError instanceof PalantirApiError\n && e.originalError.errorName === \"WebsiteNotFound\") {\n return undefined;\n }\n throw e;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,gBAAgB,QAAQ,kBAAkB;AACnD,SAASC,gBAAgB,QAAQ,kBAAkB;AACnD,SAASC,WAAW,QAAQ,oBAAoB;AAChD,OAAO,eAAeC,UAAUA,CAACC,GAAG,EAAEC,gBAAgB,EAAE;EACpD,MAAMC,KAAK,GAAGJ,WAAW,CAACE,GAAG,CAACG,aAAa,CAAC;EAC5C,MAAMC,GAAG,GAAG,GAAGJ,GAAG,CAACK,UAAU,kCAAkCJ,gBAAgB,uBAAuB;EACtG,IAAI;IACA,MAAMK,MAAM,GAAG,MAAMJ,KAAK,CAACE,GAAG,CAAC;IAC/B,OAAOE,MAAM,CAACC,IAAI,CAAC,CAAC;EACxB,CAAC,CACD,OAAOC,CAAC,EAAE;IACN;IACA,IAAIA,CAAC,YAAYZ,gBAAgB,IAAIY,CAAC,CAACC,aAAa,IAAI,IAAI,IACrDD,CAAC,CAACC,aAAa,YAAYZ,gBAAgB,IAC3CW,CAAC,CAACC,aAAa,CAACC,SAAS,KAAK,iBAAiB,EAAE;MACpD,OAAOC,SAAS;IACpB;IACA,MAAMH,CAAC;EACX;AACJ","ignoreList":[]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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 { ExitProcessError } from "@osdk/cli.common";
|
|
17
|
-
import { PalantirApiError } from "@osdk/shared.net";
|
|
18
|
-
import { createFetch } from "../createFetch.mjs";
|
|
19
|
-
export async function getWebsite(ctx, thirdPartyAppRid) {
|
|
20
|
-
const fetch = createFetch(ctx.tokenProvider);
|
|
21
|
-
const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website?preview=true`;
|
|
22
|
-
try {
|
|
23
|
-
const result = await fetch(url);
|
|
24
|
-
return result.json();
|
|
25
|
-
}
|
|
26
|
-
catch (e) {
|
|
27
|
-
// Revisit this error handling in the API
|
|
28
|
-
if (e instanceof ExitProcessError && e.originalError != null
|
|
29
|
-
&& e.originalError instanceof PalantirApiError
|
|
30
|
-
&& e.originalError.errorName === "WebsiteNotFound") {
|
|
31
|
-
return undefined;
|
|
32
|
-
}
|
|
33
|
-
throw e;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { deleteVersion } from "./deleteVersion.mjs";
|
|
2
|
-
export { deployWebsite } from "./deployWebsite.mjs";
|
|
3
|
-
export type { DeployWebsiteRequest } from "./DeployWebsiteRequest.mjs";
|
|
4
|
-
export { getWebsite } from "./getWebsite.mjs";
|
|
5
|
-
export { listVersions } from "./listVersions.mjs";
|
|
6
|
-
export type { ListVersionsResponse } from "./ListVersionsResponse.mjs";
|
|
7
|
-
export { undeployWebsite } from "./undeployWebsite.mjs";
|
|
8
|
-
export { uploadVersion } from "./uploadVersion.mjs";
|
|
9
|
-
export type { Version } from "./Version.mjs";
|
|
10
|
-
export type { Website } from "./Website.mjs";
|
|
11
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/index.mts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,YAAY,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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 { deleteVersion } from "./deleteVersion.mjs";
|
|
17
|
-
export { deployWebsite } from "./deployWebsite.mjs";
|
|
18
|
-
export { getWebsite } from "./getWebsite.mjs";
|
|
19
|
-
export { listVersions } from "./listVersions.mjs";
|
|
20
|
-
export { undeployWebsite } from "./undeployWebsite.mjs";
|
|
21
|
-
export { uploadVersion } from "./uploadVersion.mjs";
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["deleteVersion","deployWebsite","getWebsite","listVersions","undeployWebsite","uploadVersion"],"sources":["index.mjs"],"sourcesContent":["/*\n * Copyright 2024 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 { deleteVersion } from \"./deleteVersion.mjs\";\nexport { deployWebsite } from \"./deployWebsite.mjs\";\nexport { getWebsite } from \"./getWebsite.mjs\";\nexport { listVersions } from \"./listVersions.mjs\";\nexport { undeployWebsite } from \"./undeployWebsite.mjs\";\nexport { uploadVersion } from \"./uploadVersion.mjs\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,aAAa,QAAQ,qBAAqB;AACnD,SAASC,aAAa,QAAQ,qBAAqB;AACnD,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,YAAY,QAAQ,oBAAoB;AACjD,SAASC,eAAe,QAAQ,uBAAuB;AACvD,SAASC,aAAa,QAAQ,qBAAqB","ignoreList":[]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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 { deleteVersion } from "./deleteVersion.mjs";
|
|
17
|
-
export { deployWebsite } from "./deployWebsite.mjs";
|
|
18
|
-
export { getWebsite } from "./getWebsite.mjs";
|
|
19
|
-
export { listVersions } from "./listVersions.mjs";
|
|
20
|
-
export { undeployWebsite } from "./undeployWebsite.mjs";
|
|
21
|
-
export { uploadVersion } from "./uploadVersion.mjs";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
-
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
-
import type { ListVersionsResponse } from "./ListVersionsResponse.mjs";
|
|
4
|
-
export declare function listVersions(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<ListVersionsResponse>;
|
|
5
|
-
//# sourceMappingURL=listVersions.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listVersions.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/listVersions.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,wBAAsB,YAAY,CAChC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,oBAAoB,CAAC,CAO/B"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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 { createFetch } from "../createFetch.mjs";
|
|
17
|
-
export async function listVersions(ctx, thirdPartyAppRid) {
|
|
18
|
-
const fetch = createFetch(ctx.tokenProvider);
|
|
19
|
-
const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions?preview=true`;
|
|
20
|
-
const result = await fetch(url);
|
|
21
|
-
return result.json();
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=listVersions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listVersions.js","names":["createFetch","listVersions","ctx","thirdPartyAppRid","fetch","tokenProvider","url","foundryUrl","result","json"],"sources":["listVersions.mjs"],"sourcesContent":["/*\n * Copyright 2024 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 { createFetch } from \"../createFetch.mjs\";\nexport async function listVersions(ctx, thirdPartyAppRid) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions?preview=true`;\n const result = await fetch(url);\n return result.json();\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,WAAW,QAAQ,oBAAoB;AAChD,OAAO,eAAeC,YAAYA,CAACC,GAAG,EAAEC,gBAAgB,EAAE;EACtD,MAAMC,KAAK,GAAGJ,WAAW,CAACE,GAAG,CAACG,aAAa,CAAC;EAC5C,MAAMC,GAAG,GAAG,GAAGJ,GAAG,CAACK,UAAU,kCAAkCJ,gBAAgB,gCAAgC;EAC/G,MAAMK,MAAM,GAAG,MAAMJ,KAAK,CAACE,GAAG,CAAC;EAC/B,OAAOE,MAAM,CAACC,IAAI,CAAC,CAAC;AACxB","ignoreList":[]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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 { createFetch } from "../createFetch.mjs";
|
|
17
|
-
export async function listVersions(ctx, thirdPartyAppRid) {
|
|
18
|
-
const fetch = createFetch(ctx.tokenProvider);
|
|
19
|
-
const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions?preview=true`;
|
|
20
|
-
const result = await fetch(url);
|
|
21
|
-
return result.json();
|
|
22
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
-
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
-
export declare function undeployWebsite(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<void>;
|
|
4
|
-
//# sourceMappingURL=undeployWebsite.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"undeployWebsite.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/undeployWebsite.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,wBAAsB,eAAe,CACnC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,IAAI,CAAC,CAWf"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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 { createFetch } from "../createFetch.mjs";
|
|
17
|
-
export async function undeployWebsite(ctx, thirdPartyAppRid) {
|
|
18
|
-
const fetch = createFetch(ctx.tokenProvider);
|
|
19
|
-
const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/undeploy?preview=true`;
|
|
20
|
-
await fetch(url, {
|
|
21
|
-
method: "POST"
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=undeployWebsite.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"undeployWebsite.js","names":["createFetch","undeployWebsite","ctx","thirdPartyAppRid","fetch","tokenProvider","url","foundryUrl","method"],"sources":["undeployWebsite.mjs"],"sourcesContent":["/*\n * Copyright 2024 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 { createFetch } from \"../createFetch.mjs\";\nexport async function undeployWebsite(ctx, thirdPartyAppRid) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/undeploy?preview=true`;\n await fetch(url, {\n method: \"POST\",\n });\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,WAAW,QAAQ,oBAAoB;AAChD,OAAO,eAAeC,eAAeA,CAACC,GAAG,EAAEC,gBAAgB,EAAE;EACzD,MAAMC,KAAK,GAAGJ,WAAW,CAACE,GAAG,CAACG,aAAa,CAAC;EAC5C,MAAMC,GAAG,GAAG,GAAGJ,GAAG,CAACK,UAAU,kCAAkCJ,gBAAgB,gCAAgC;EAC/G,MAAMC,KAAK,CAACE,GAAG,EAAE;IACbE,MAAM,EAAE;EACZ,CAAC,CAAC;AACN","ignoreList":[]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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 { createFetch } from "../createFetch.mjs";
|
|
17
|
-
export async function undeployWebsite(ctx, thirdPartyAppRid) {
|
|
18
|
-
const fetch = createFetch(ctx.tokenProvider);
|
|
19
|
-
const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/undeploy?preview=true`;
|
|
20
|
-
await fetch(url, {
|
|
21
|
-
method: "POST",
|
|
22
|
-
});
|
|
23
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
-
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
-
import type { Version } from "./Version.mjs";
|
|
4
|
-
export declare function uploadVersion(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid, version: string, zipFile: ReadableStream | Blob | BufferSource): Promise<Version>;
|
|
5
|
-
//# sourceMappingURL=uploadVersion.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uploadVersion.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/uploadVersion.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,wBAAsB,aAAa,CACjC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,GAAG,IAAI,GAAG,YAAY,GAC5C,OAAO,CAAC,OAAO,CAAC,CAiBlB"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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 { createFetch } from "../createFetch.mjs";
|
|
17
|
-
export async function uploadVersion(ctx, thirdPartyAppRid, version, zipFile) {
|
|
18
|
-
const fetch = createFetch(ctx.tokenProvider);
|
|
19
|
-
const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions/upload?version=${version}&preview=true`;
|
|
20
|
-
const result = await fetch(url, {
|
|
21
|
-
method: "POST",
|
|
22
|
-
body: zipFile,
|
|
23
|
-
headers: {
|
|
24
|
-
"Content-Type": "application/octet-stream"
|
|
25
|
-
},
|
|
26
|
-
duplex: "half" // Node hates me
|
|
27
|
-
});
|
|
28
|
-
return result.json();
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=uploadVersion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uploadVersion.js","names":["createFetch","uploadVersion","ctx","thirdPartyAppRid","version","zipFile","fetch","tokenProvider","url","foundryUrl","result","method","body","headers","duplex","json"],"sources":["uploadVersion.mjs"],"sourcesContent":["/*\n * Copyright 2024 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 { createFetch } from \"../createFetch.mjs\";\nexport async function uploadVersion(ctx, thirdPartyAppRid, version, zipFile) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions/upload?version=${version}&preview=true`;\n const result = await fetch(url, {\n method: \"POST\",\n body: zipFile,\n headers: {\n \"Content-Type\": \"application/octet-stream\",\n },\n duplex: \"half\", // Node hates me\n });\n return result.json();\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,WAAW,QAAQ,oBAAoB;AAChD,OAAO,eAAeC,aAAaA,CAACC,GAAG,EAAEC,gBAAgB,EAAEC,OAAO,EAAEC,OAAO,EAAE;EACzE,MAAMC,KAAK,GAAGN,WAAW,CAACE,GAAG,CAACK,aAAa,CAAC;EAC5C,MAAMC,GAAG,GAAG,GAAGN,GAAG,CAACO,UAAU,kCAAkCN,gBAAgB,oCAAoCC,OAAO,eAAe;EACzI,MAAMM,MAAM,GAAG,MAAMJ,KAAK,CAACE,GAAG,EAAE;IAC5BG,MAAM,EAAE,MAAM;IACdC,IAAI,EAAEP,OAAO;IACbQ,OAAO,EAAE;MACL,cAAc,EAAE;IACpB,CAAC;IACDC,MAAM,EAAE,MAAM,CAAE;EACpB,CAAC,CAAC;EACF,OAAOJ,MAAM,CAACK,IAAI,CAAC,CAAC;AACxB","ignoreList":[]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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 { createFetch } from "../createFetch.mjs";
|
|
17
|
-
export async function uploadVersion(ctx, thirdPartyAppRid, version, zipFile) {
|
|
18
|
-
const fetch = createFetch(ctx.tokenProvider);
|
|
19
|
-
const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions/upload?version=${version}&preview=true`;
|
|
20
|
-
const result = await fetch(url, {
|
|
21
|
-
method: "POST",
|
|
22
|
-
body: zipFile,
|
|
23
|
-
headers: {
|
|
24
|
-
"Content-Type": "application/octet-stream",
|
|
25
|
-
},
|
|
26
|
-
duplex: "half", // Node hates me
|
|
27
|
-
});
|
|
28
|
-
return result.json();
|
|
29
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gets the version string using git describe. If the @param tagPrefix is empty, git describe will return the
|
|
3
|
-
* latest tag (without any filtering) and if the tag starts with "v", it will be removed.
|
|
4
|
-
* @param tagPrefix The prefix to use for matching against tags. Defaults to an empty string.
|
|
5
|
-
* @returns A promise that resolves to the version string.
|
|
6
|
-
* @throws An error if the version string is not SemVer compliant or if the version cannot be determined.
|
|
7
|
-
*/
|
|
8
|
-
export declare function autoVersion(tagPrefix?: string): Promise<string>;
|
|
9
|
-
//# sourceMappingURL=autoVersion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autoVersion.d.ts","sourceRoot":"","sources":["../../../src/util/autoVersion.ts"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,wBAAsB,WAAW,CAAC,SAAS,GAAE,MAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAezE"}
|
|
@@ -1,62 +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 { ExitProcessError, isValidSemver } from "@osdk/cli.common";
|
|
17
|
-
import { exec } from "node:child_process";
|
|
18
|
-
import { promisify } from "node:util";
|
|
19
|
-
/**
|
|
20
|
-
* Gets the version string using git describe. If the @param tagPrefix is empty, git describe will return the
|
|
21
|
-
* latest tag (without any filtering) and if the tag starts with "v", it will be removed.
|
|
22
|
-
* @param tagPrefix The prefix to use for matching against tags. Defaults to an empty string.
|
|
23
|
-
* @returns A promise that resolves to the version string.
|
|
24
|
-
* @throws An error if the version string is not SemVer compliant or if the version cannot be determined.
|
|
25
|
-
*/
|
|
26
|
-
export async function autoVersion(tagPrefix = "") {
|
|
27
|
-
const [matchPrefix, prefixRegex] = tagPrefix !== "" ? [tagPrefix, new RegExp(`^${tagPrefix}`)] : [undefined, new RegExp(`^v?`)];
|
|
28
|
-
const gitVersion = await gitDescribe(matchPrefix);
|
|
29
|
-
const version = gitVersion.trim().replace(prefixRegex, "");
|
|
30
|
-
if (!isValidSemver(version)) {
|
|
31
|
-
throw new ExitProcessError(2, `The version string ${version} is not SemVer compliant.`);
|
|
32
|
-
}
|
|
33
|
-
return version;
|
|
34
|
-
}
|
|
35
|
-
async function gitDescribe(matchPrefix) {
|
|
36
|
-
let gitVersion;
|
|
37
|
-
try {
|
|
38
|
-
const execAsync = promisify(exec);
|
|
39
|
-
const {
|
|
40
|
-
stdout
|
|
41
|
-
} = await execAsync(`git describe --tags --first-parent --dirty${matchPrefix != null ? ` --match="${matchPrefix}*"` : ""}`, {
|
|
42
|
-
encoding: "utf8"
|
|
43
|
-
});
|
|
44
|
-
gitVersion = stdout;
|
|
45
|
-
} catch (error) {
|
|
46
|
-
if (error instanceof Error) {
|
|
47
|
-
const errorMessage = error.message.toLowerCase();
|
|
48
|
-
if (errorMessage.includes("not recognized") || errorMessage.includes("command not found") || errorMessage.includes("no such file or directory")) {
|
|
49
|
-
throw new ExitProcessError(2, "Unable to determine auto version using git-describe as git is not installed or found in the PATH.", `You can set up git and try again or supply a --version option to set the version manually`);
|
|
50
|
-
}
|
|
51
|
-
if (errorMessage.includes("fatal: not a git repository")) {
|
|
52
|
-
throw new ExitProcessError(2, `Unable to determine auto version using git-describe as the current directory is not a git repository.`, `You can run the command in a git repository and try again or supply a --version option to set the version manually`);
|
|
53
|
-
}
|
|
54
|
-
if (errorMessage.includes("fatal: no names found, cannot describe anything.")) {
|
|
55
|
-
throw new ExitProcessError(2, `Unable to determine auto version using git-describe as no matching tags were found.`, `You can create a tag matching the configured tag prefix and try again or supply a --version option to set the version manually`);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
throw new ExitProcessError(2, `Unable to determine auto version using git-describe: ${error}.`, `You can supply a --version option to set the version manually`);
|
|
59
|
-
}
|
|
60
|
-
return gitVersion;
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=autoVersion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autoVersion.js","names":["ExitProcessError","isValidSemver","exec","promisify","autoVersion","tagPrefix","matchPrefix","prefixRegex","RegExp","undefined","gitVersion","gitDescribe","version","trim","replace","execAsync","stdout","encoding","error","Error","errorMessage","message","toLowerCase","includes"],"sources":["autoVersion.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 { ExitProcessError, isValidSemver } from \"@osdk/cli.common\";\nimport { exec } from \"node:child_process\";\nimport { promisify } from \"node:util\";\n/**\n * Gets the version string using git describe. If the @param tagPrefix is empty, git describe will return the\n * latest tag (without any filtering) and if the tag starts with \"v\", it will be removed.\n * @param tagPrefix The prefix to use for matching against tags. Defaults to an empty string.\n * @returns A promise that resolves to the version string.\n * @throws An error if the version string is not SemVer compliant or if the version cannot be determined.\n */\nexport async function autoVersion(tagPrefix = \"\") {\n const [matchPrefix, prefixRegex] = tagPrefix !== \"\"\n ? [tagPrefix, new RegExp(`^${tagPrefix}`)]\n : [undefined, new RegExp(`^v?`)];\n const gitVersion = await gitDescribe(matchPrefix);\n const version = gitVersion.trim().replace(prefixRegex, \"\");\n if (!isValidSemver(version)) {\n throw new ExitProcessError(2, `The version string ${version} is not SemVer compliant.`);\n }\n return version;\n}\nasync function gitDescribe(matchPrefix) {\n let gitVersion;\n try {\n const execAsync = promisify(exec);\n const { stdout } = await execAsync(`git describe --tags --first-parent --dirty${matchPrefix != null ? ` --match=\"${matchPrefix}*\"` : \"\"}`, { encoding: \"utf8\" });\n gitVersion = stdout;\n }\n catch (error) {\n if (error instanceof Error) {\n const errorMessage = error.message.toLowerCase();\n if (errorMessage.includes(\"not recognized\")\n || errorMessage.includes(\"command not found\")\n || errorMessage.includes(\"no such file or directory\")) {\n throw new ExitProcessError(2, \"Unable to determine auto version using git-describe as git is not installed or found in the PATH.\", `You can set up git and try again or supply a --version option to set the version manually`);\n }\n if (errorMessage.includes(\"fatal: not a git repository\")) {\n throw new ExitProcessError(2, `Unable to determine auto version using git-describe as the current directory is not a git repository.`, `You can run the command in a git repository and try again or supply a --version option to set the version manually`);\n }\n if (errorMessage.includes(\"fatal: no names found, cannot describe anything.\")) {\n throw new ExitProcessError(2, `Unable to determine auto version using git-describe as no matching tags were found.`, `You can create a tag matching the configured tag prefix and try again or supply a --version option to set the version manually`);\n }\n }\n throw new ExitProcessError(2, `Unable to determine auto version using git-describe: ${error}.`, `You can supply a --version option to set the version manually`);\n }\n return gitVersion;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,gBAAgB,EAAEC,aAAa,QAAQ,kBAAkB;AAClE,SAASC,IAAI,QAAQ,oBAAoB;AACzC,SAASC,SAAS,QAAQ,WAAW;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,eAAeC,WAAWA,CAACC,SAAS,GAAG,EAAE,EAAE;EAC9C,MAAM,CAACC,WAAW,EAAEC,WAAW,CAAC,GAAGF,SAAS,KAAK,EAAE,GAC7C,CAACA,SAAS,EAAE,IAAIG,MAAM,CAAC,IAAIH,SAAS,EAAE,CAAC,CAAC,GACxC,CAACI,SAAS,EAAE,IAAID,MAAM,CAAC,KAAK,CAAC,CAAC;EACpC,MAAME,UAAU,GAAG,MAAMC,WAAW,CAACL,WAAW,CAAC;EACjD,MAAMM,OAAO,GAAGF,UAAU,CAACG,IAAI,CAAC,CAAC,CAACC,OAAO,CAACP,WAAW,EAAE,EAAE,CAAC;EAC1D,IAAI,CAACN,aAAa,CAACW,OAAO,CAAC,EAAE;IACzB,MAAM,IAAIZ,gBAAgB,CAAC,CAAC,EAAE,sBAAsBY,OAAO,2BAA2B,CAAC;EAC3F;EACA,OAAOA,OAAO;AAClB;AACA,eAAeD,WAAWA,CAACL,WAAW,EAAE;EACpC,IAAII,UAAU;EACd,IAAI;IACA,MAAMK,SAAS,GAAGZ,SAAS,CAACD,IAAI,CAAC;IACjC,MAAM;MAAEc;IAAO,CAAC,GAAG,MAAMD,SAAS,CAAC,6CAA6CT,WAAW,IAAI,IAAI,GAAG,aAAaA,WAAW,IAAI,GAAG,EAAE,EAAE,EAAE;MAAEW,QAAQ,EAAE;IAAO,CAAC,CAAC;IAChKP,UAAU,GAAGM,MAAM;EACvB,CAAC,CACD,OAAOE,KAAK,EAAE;IACV,IAAIA,KAAK,YAAYC,KAAK,EAAE;MACxB,MAAMC,YAAY,GAAGF,KAAK,CAACG,OAAO,CAACC,WAAW,CAAC,CAAC;MAChD,IAAIF,YAAY,CAACG,QAAQ,CAAC,gBAAgB,CAAC,IACpCH,YAAY,CAACG,QAAQ,CAAC,mBAAmB,CAAC,IAC1CH,YAAY,CAACG,QAAQ,CAAC,2BAA2B,CAAC,EAAE;QACvD,MAAM,IAAIvB,gBAAgB,CAAC,CAAC,EAAE,mGAAmG,EAAE,2FAA2F,CAAC;MACnO;MACA,IAAIoB,YAAY,CAACG,QAAQ,CAAC,6BAA6B,CAAC,EAAE;QACtD,MAAM,IAAIvB,gBAAgB,CAAC,CAAC,EAAE,uGAAuG,EAAE,oHAAoH,CAAC;MAChQ;MACA,IAAIoB,YAAY,CAACG,QAAQ,CAAC,kDAAkD,CAAC,EAAE;QAC3E,MAAM,IAAIvB,gBAAgB,CAAC,CAAC,EAAE,qFAAqF,EAAE,gIAAgI,CAAC;MAC1P;IACJ;IACA,MAAM,IAAIA,gBAAgB,CAAC,CAAC,EAAE,wDAAwDkB,KAAK,GAAG,EAAE,+DAA+D,CAAC;EACpK;EACA,OAAOR,UAAU;AACrB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autoVersion.test.d.ts","sourceRoot":"","sources":["../../../src/util/autoVersion.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,71 +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 { exec } from "node:child_process";
|
|
17
|
-
import { promisify } from "node:util";
|
|
18
|
-
import { describe, expect, it, vi } from "vitest";
|
|
19
|
-
import { autoVersion } from "./autoVersion.js";
|
|
20
|
-
vi.mock("node:child_process");
|
|
21
|
-
const execAsync = promisify(exec);
|
|
22
|
-
describe("autoVersion", () => {
|
|
23
|
-
const execMock = vi.mocked(execAsync);
|
|
24
|
-
const execReturnValue = out => ({
|
|
25
|
-
stdout: out,
|
|
26
|
-
stderr: ""
|
|
27
|
-
});
|
|
28
|
-
it("should return a valid SemVer version from git describe", async () => {
|
|
29
|
-
execMock.mockResolvedValue(execReturnValue("1.2.3"));
|
|
30
|
-
const version = await autoVersion();
|
|
31
|
-
expect(version).toBe("1.2.3");
|
|
32
|
-
});
|
|
33
|
-
it("should replace default prefix v from git describe output", async () => {
|
|
34
|
-
execMock.mockResolvedValue(execReturnValue("v1.2.3"));
|
|
35
|
-
const version = await autoVersion();
|
|
36
|
-
expect(version).toBe("1.2.3");
|
|
37
|
-
});
|
|
38
|
-
it("should replace the prefix from the found git tag", async () => {
|
|
39
|
-
execMock.mockResolvedValue(execReturnValue("@package@1.2.3"));
|
|
40
|
-
const version = await autoVersion("@package@");
|
|
41
|
-
expect(version).toBe("1.2.3");
|
|
42
|
-
});
|
|
43
|
-
it("should only replace the prefix if found at the start of the tag only", async () => {
|
|
44
|
-
execMock.mockResolvedValue(execReturnValue("1.2.3-package"));
|
|
45
|
-
const version = await autoVersion("-package");
|
|
46
|
-
expect(version).toBe("1.2.3-package");
|
|
47
|
-
});
|
|
48
|
-
it("should throw an error if git describe returns a non-SemVer string", async () => {
|
|
49
|
-
execMock.mockResolvedValue(execReturnValue("not-semver"));
|
|
50
|
-
await expect(autoVersion()).rejects.toThrowError();
|
|
51
|
-
});
|
|
52
|
-
it("should throw an error if git isn't found", async () => {
|
|
53
|
-
execMock.mockImplementation(() => {
|
|
54
|
-
throw new Error("Command not found");
|
|
55
|
-
});
|
|
56
|
-
await expect(autoVersion()).rejects.toThrowError("git is not installed");
|
|
57
|
-
});
|
|
58
|
-
it("should throw an error if the current directory is not a git repository", async () => {
|
|
59
|
-
execMock.mockImplementation(() => {
|
|
60
|
-
throw new Error("fatal: not a git repository");
|
|
61
|
-
});
|
|
62
|
-
await expect(autoVersion()).rejects.toThrowError("the current directory is not a git repository");
|
|
63
|
-
});
|
|
64
|
-
it("should throw an error if no git tags are found", async () => {
|
|
65
|
-
execMock.mockImplementation(() => {
|
|
66
|
-
throw new Error("fatal: no names found, cannot describe anything.");
|
|
67
|
-
});
|
|
68
|
-
await expect(autoVersion()).rejects.toThrowError("no matching tags were found.");
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
//# sourceMappingURL=autoVersion.test.js.map
|