@osdk/cli 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/js/chunk-2A2YEODO.mjs +199 -0
- package/build/js/chunk-2A2YEODO.mjs.map +1 -0
- package/build/js/chunk-467BAS7X.cjs +74 -0
- package/build/js/chunk-467BAS7X.cjs.map +1 -0
- package/build/js/chunk-CWMSASIM.mjs +65 -0
- package/build/js/chunk-CWMSASIM.mjs.map +1 -0
- package/build/js/{chunk-TZGNA5WR.cjs → chunk-EVW4VRJL.cjs} +3 -7
- package/build/js/chunk-EVW4VRJL.cjs.map +1 -0
- package/build/js/chunk-QVFWI7JV.cjs +207 -0
- package/build/js/chunk-QVFWI7JV.cjs.map +1 -0
- package/build/js/{chunk-HD6SVFKA.mjs → chunk-SFL6QONJ.mjs} +3 -7
- package/build/js/chunk-SFL6QONJ.mjs.map +1 -0
- package/build/js/{handleGenerate-FSKXULOJ.mjs → handleGenerate-KBPDPEH4-O63ZWRM6.mjs} +21 -101
- package/build/js/handleGenerate-KBPDPEH4-O63ZWRM6.mjs.map +1 -0
- package/build/js/{handleGenerate-KCAGHMHC.cjs → handleGenerate-KBPDPEH4-OC7WKH2B.cjs} +24 -107
- package/build/js/handleGenerate-KBPDPEH4-OC7WKH2B.cjs.map +1 -0
- package/build/js/index.cjs +138 -186
- package/build/js/index.cjs.map +1 -1
- package/build/js/index.mjs +129 -173
- package/build/js/index.mjs.map +1 -1
- package/build/js/loginFlow-QTUKYZEL.cjs +10 -0
- package/build/js/loginFlow-ZFVT2AFZ.mjs +4 -0
- package/build/js/{siteDeployCommand-NF4NIH2Y.cjs → siteDeployCommand-GM26T5YL.cjs} +22 -37
- package/build/js/siteDeployCommand-GM26T5YL.cjs.map +1 -0
- package/build/js/{siteDeployCommand-QMX5EY2K.mjs → siteDeployCommand-LXWAUCZQ.mjs} +13 -28
- package/build/js/siteDeployCommand-LXWAUCZQ.mjs.map +1 -0
- package/build/js/{versionDeleteCommand-7XQQMEP6.cjs → versionDeleteCommand-S4M6DRHC.cjs} +6 -9
- package/build/js/versionDeleteCommand-S4M6DRHC.cjs.map +1 -0
- package/build/js/{versionDeleteCommand-S3PG23IT.mjs → versionDeleteCommand-ZVUTRBQE.mjs} +4 -7
- package/build/js/versionDeleteCommand-ZVUTRBQE.mjs.map +1 -0
- package/build/js/versionGetCommand-C2BMDIVV.cjs +28 -0
- package/build/js/versionGetCommand-C2BMDIVV.cjs.map +1 -0
- package/build/js/versionGetCommand-N7F75WO5.mjs +26 -0
- package/build/js/versionGetCommand-N7F75WO5.mjs.map +1 -0
- package/build/js/versionListCommand-2SNJI2N2.mjs +32 -0
- package/build/js/versionListCommand-2SNJI2N2.mjs.map +1 -0
- package/build/js/versionListCommand-FR7G6D7I.cjs +34 -0
- package/build/js/versionListCommand-FR7G6D7I.cjs.map +1 -0
- package/build/js/versionSetCommand-73LHJBP5.cjs +29 -0
- package/build/js/versionSetCommand-73LHJBP5.cjs.map +1 -0
- package/build/js/{versionSetCommand-KXNXVRXK.mjs → versionSetCommand-GRRGFGPP.mjs} +5 -9
- package/build/js/versionSetCommand-GRRGFGPP.mjs.map +1 -0
- package/build/js/{versionUnsetCommand-BIBSMJRY.cjs → versionUnsetCommand-3MUKQRD5.cjs} +6 -8
- package/build/js/versionUnsetCommand-3MUKQRD5.cjs.map +1 -0
- package/build/js/{versionUnsetCommand-XH4PGAIP.mjs → versionUnsetCommand-PZF5G4WC.mjs} +4 -6
- package/build/js/versionUnsetCommand-PZF5G4WC.mjs.map +1 -0
- package/build/types/cli.d.ts.map +1 -1
- package/build/types/commands/auth/index.d.ts +3 -4
- package/build/types/commands/auth/index.d.ts.map +1 -1
- package/build/types/commands/auth/login/index.d.ts +1 -2
- package/build/types/commands/auth/login/index.d.ts.map +1 -1
- package/build/types/commands/site/CommonSiteArgs.d.ts +1 -1
- package/build/types/commands/site/CommonSiteArgs.d.ts.map +1 -1
- package/build/types/commands/site/deploy/index.d.ts.map +1 -1
- package/build/types/commands/site/deploy/siteDeployCommand.d.mts.map +1 -1
- package/build/types/commands/site/index.d.ts +1 -1
- package/build/types/commands/site/index.d.ts.map +1 -1
- package/build/types/commands/site/version/delete/versionDeleteCommand.d.mts.map +1 -1
- package/build/types/commands/site/version/get/versionGetCommand.d.mts.map +1 -1
- package/build/types/commands/site/version/list/versionListCommand.d.mts.map +1 -1
- package/build/types/commands/site/version/set/versionSetCommand.d.mts.map +1 -1
- package/build/types/commands/site/version/unset/versionUnsetCommand.d.mts.map +1 -1
- package/build/types/net/index.d.mts +1 -5
- package/build/types/net/index.d.mts.map +1 -1
- package/build/types/net/third-party-applications/ListWebsiteVersionsResponse.d.mts +6 -0
- package/build/types/net/third-party-applications/ListWebsiteVersionsResponse.d.mts.map +1 -0
- package/build/types/net/third-party-applications/UpdateWebsiteDeploymentRequest.d.mts +4 -0
- package/build/types/net/third-party-applications/UpdateWebsiteDeploymentRequest.d.mts.map +1 -0
- package/build/types/net/third-party-applications/WebsiteDeployment.d.mts +5 -0
- package/build/types/net/third-party-applications/WebsiteDeployment.d.mts.map +1 -0
- package/build/types/net/third-party-applications/WebsiteVersion.d.mts +4 -0
- package/build/types/net/third-party-applications/WebsiteVersion.d.mts.map +1 -0
- package/build/types/net/third-party-applications/deleteWebsiteDeployment.d.mts +4 -0
- package/build/types/net/third-party-applications/deleteWebsiteDeployment.d.mts.map +1 -0
- package/build/types/net/third-party-applications/deleteWebsiteVersion.d.mts +4 -0
- package/build/types/net/third-party-applications/deleteWebsiteVersion.d.mts.map +1 -0
- package/build/types/net/third-party-applications/getWebsiteDeployment.d.mts +5 -0
- package/build/types/net/third-party-applications/getWebsiteDeployment.d.mts.map +1 -0
- package/build/types/net/third-party-applications/index.d.mts +11 -0
- package/build/types/net/third-party-applications/index.d.mts.map +1 -0
- package/build/types/net/third-party-applications/listWebsiteVersions.d.mts +5 -0
- package/build/types/net/third-party-applications/listWebsiteVersions.d.mts.map +1 -0
- package/build/types/net/third-party-applications/updateWebsiteDeployment.d.mts +6 -0
- package/build/types/net/third-party-applications/updateWebsiteDeployment.d.mts.map +1 -0
- package/build/types/net/third-party-applications/uploadWebsiteVersion.d.mts +5 -0
- package/build/types/net/third-party-applications/uploadWebsiteVersion.d.mts.map +1 -0
- package/build/types/util/autoVersion.d.ts.map +1 -1
- package/changelog/0.16.0/pr-143.v2.yml +5 -0
- package/changelog/0.17.0/pr-166.v2.yml +5 -0
- package/package.json +9 -8
- package/build/js/chunk-CCA2T5YW.cjs +0 -12
- package/build/js/chunk-CCA2T5YW.cjs.map +0 -1
- package/build/js/chunk-CLAEREOL.mjs +0 -13
- package/build/js/chunk-CLAEREOL.mjs.map +0 -1
- package/build/js/chunk-EALLTV7S.mjs +0 -256
- package/build/js/chunk-EALLTV7S.mjs.map +0 -1
- package/build/js/chunk-F6Y3FTY6.cjs +0 -267
- package/build/js/chunk-F6Y3FTY6.cjs.map +0 -1
- package/build/js/chunk-GX2IOTA6.mjs +0 -10
- package/build/js/chunk-GX2IOTA6.mjs.map +0 -1
- package/build/js/chunk-HD6SVFKA.mjs.map +0 -1
- package/build/js/chunk-HZ3XILMW.cjs +0 -15
- package/build/js/chunk-HZ3XILMW.cjs.map +0 -1
- package/build/js/chunk-MU5KWUEI.mjs +0 -10
- package/build/js/chunk-MU5KWUEI.mjs.map +0 -1
- package/build/js/chunk-TZGNA5WR.cjs.map +0 -1
- package/build/js/chunk-UE2TMWJL.cjs +0 -12
- package/build/js/chunk-UE2TMWJL.cjs.map +0 -1
- package/build/js/handleGenerate-FSKXULOJ.mjs.map +0 -1
- package/build/js/handleGenerate-KCAGHMHC.cjs.map +0 -1
- package/build/js/loginFlow-5ZAMXQKE.cjs +0 -10
- package/build/js/loginFlow-BWWZBM36.mjs +0 -4
- package/build/js/siteDeployCommand-NF4NIH2Y.cjs.map +0 -1
- package/build/js/siteDeployCommand-QMX5EY2K.mjs.map +0 -1
- package/build/js/versionDeleteCommand-7XQQMEP6.cjs.map +0 -1
- package/build/js/versionDeleteCommand-S3PG23IT.mjs.map +0 -1
- package/build/js/versionGetCommand-IKDSYKJM.mjs +0 -28
- package/build/js/versionGetCommand-IKDSYKJM.mjs.map +0 -1
- package/build/js/versionGetCommand-PBCSZZ2W.cjs +0 -30
- package/build/js/versionGetCommand-PBCSZZ2W.cjs.map +0 -1
- package/build/js/versionListCommand-KSQJH2CQ.cjs +0 -36
- package/build/js/versionListCommand-KSQJH2CQ.cjs.map +0 -1
- package/build/js/versionListCommand-YP6X66SJ.mjs +0 -34
- package/build/js/versionListCommand-YP6X66SJ.mjs.map +0 -1
- package/build/js/versionSetCommand-2L3BCYZ7.cjs +0 -33
- package/build/js/versionSetCommand-2L3BCYZ7.cjs.map +0 -1
- package/build/js/versionSetCommand-KXNXVRXK.mjs.map +0 -1
- package/build/js/versionUnsetCommand-BIBSMJRY.cjs.map +0 -1
- package/build/js/versionUnsetCommand-XH4PGAIP.mjs.map +0 -1
- package/build/types/CliCommonArgs.d.ts +0 -4
- package/build/types/CliCommonArgs.d.ts.map +0 -1
- package/build/types/ExitProcessError.d.ts +0 -7
- package/build/types/ExitProcessError.d.ts.map +0 -1
- package/build/types/YargsCheckError.d.ts +0 -4
- package/build/types/YargsCheckError.d.ts.map +0 -1
- package/build/types/commands/auth/CommonAuthArgs.d.ts +0 -5
- package/build/types/commands/auth/CommonAuthArgs.d.ts.map +0 -1
- package/build/types/commands/auth/login/LoginArgs.d.ts +0 -5
- package/build/types/commands/auth/login/LoginArgs.d.ts.map +0 -1
- package/build/types/commands/auth/login/loginFlow.d.ts +0 -3
- package/build/types/commands/auth/login/loginFlow.d.ts.map +0 -1
- package/build/types/commands/auth/login/token.d.ts +0 -13
- package/build/types/commands/auth/login/token.d.ts.map +0 -1
- package/build/types/commands/typescript/generate/TypescriptGenerateArgs.d.ts +0 -15
- package/build/types/commands/typescript/generate/TypescriptGenerateArgs.d.ts.map +0 -1
- package/build/types/commands/typescript/generate/generate.d.ts +0 -5
- package/build/types/commands/typescript/generate/generate.d.ts.map +0 -1
- package/build/types/commands/typescript/generate/handleGenerate.d.mts +0 -45
- package/build/types/commands/typescript/generate/handleGenerate.d.mts.map +0 -1
- package/build/types/commands/typescript/generate/handleGenerate.test.d.mts +0 -2
- package/build/types/commands/typescript/generate/handleGenerate.test.d.mts.map +0 -1
- package/build/types/commands/typescript/index.d.ts +0 -5
- package/build/types/commands/typescript/index.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/clearDeployedVersion.d.ts +0 -9
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/clearDeployedVersion.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getContentSecurityPolicyAdditions.d.ts +0 -9
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getContentSecurityPolicyAdditions.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getDeployedVersion.d.ts +0 -9
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getDeployedVersion.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRegisteredSiteDomains.d.ts +0 -10
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRegisteredSiteDomains.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRequestedSiteDomains.d.ts +0 -11
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRequestedSiteDomains.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/previewContentSecurityPolicy.d.ts +0 -10
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/previewContentSecurityPolicy.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/putContentSecurityPolicyAdditions.d.ts +0 -9
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/putContentSecurityPolicyAdditions.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/requestSiteDomainForRepository.d.ts +0 -13
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/requestSiteDomainForRepository.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/unregisterSiteDomain.d.ts +0 -12
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/unregisterSiteDomain.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/updateDeployedVersion.d.ts +0 -9
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/updateDeployedVersion.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service.d.ts +0 -11
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyAdditions.d.ts +0 -6
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyAdditions.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveName.d.ts +0 -2
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveName.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveValue.d.ts +0 -2
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveValue.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyHeaderValue.d.ts +0 -2
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyHeaderValue.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/ControlPanelManagedDomainInfo.d.ts +0 -13
- package/build/types/generated/artifacts-sites/ControlPanelManagedDomainInfo.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/DomainName.d.ts +0 -4
- package/build/types/generated/artifacts-sites/DomainName.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/PreviewContentSecurityPolicyRequest.d.ts +0 -5
- package/build/types/generated/artifacts-sites/PreviewContentSecurityPolicyRequest.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/SiteDomainInfo.d.ts +0 -7
- package/build/types/generated/artifacts-sites/SiteDomainInfo.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/SiteDomainRegistrationRequestRid.d.ts +0 -2
- package/build/types/generated/artifacts-sites/SiteDomainRegistrationRequestRid.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/SiteVersion.d.ts +0 -4
- package/build/types/generated/artifacts-sites/SiteVersion.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/SubmitDomainRegistrationRequest.d.ts +0 -8
- package/build/types/generated/artifacts-sites/SubmitDomainRegistrationRequest.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/UnregisterDomainRequest.d.ts +0 -5
- package/build/types/generated/artifacts-sites/UnregisterDomainRequest.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/UpdateDeployedVersionRequest.d.ts +0 -5
- package/build/types/generated/artifacts-sites/UpdateDeployedVersionRequest.d.ts.map +0 -1
- package/build/types/generated/artifacts-sites/index.d.ts +0 -15
- package/build/types/generated/artifacts-sites/index.d.ts.map +0 -1
- package/build/types/net/RepositoryRid.d.ts +0 -2
- package/build/types/net/RepositoryRid.d.ts.map +0 -1
- package/build/types/net/artifacts/SiteAssetArtifactsService/DeleteSiteVersionRequest.d.mts +0 -6
- package/build/types/net/artifacts/SiteAssetArtifactsService/DeleteSiteVersionRequest.d.mts.map +0 -1
- package/build/types/net/artifacts/SiteAssetArtifactsService/SiteAssetVersions.d.mts +0 -4
- package/build/types/net/artifacts/SiteAssetArtifactsService/SiteAssetVersions.d.mts.map +0 -1
- package/build/types/net/artifacts/SiteAssetArtifactsService/UploadZippedSiteAssetRequest.d.mts +0 -7
- package/build/types/net/artifacts/SiteAssetArtifactsService/UploadZippedSiteAssetRequest.d.mts.map +0 -1
- package/build/types/net/artifacts/SiteAssetArtifactsService/deleteSiteVersion.d.mts +0 -4
- package/build/types/net/artifacts/SiteAssetArtifactsService/deleteSiteVersion.d.mts.map +0 -1
- package/build/types/net/artifacts/SiteAssetArtifactsService/fetchSiteVersions.d.mts +0 -4
- package/build/types/net/artifacts/SiteAssetArtifactsService/fetchSiteVersions.d.mts.map +0 -1
- package/build/types/net/artifacts/SiteAssetArtifactsService/getSiteAssetBaseUrl.d.mts +0 -2
- package/build/types/net/artifacts/SiteAssetArtifactsService/getSiteAssetBaseUrl.d.mts.map +0 -1
- package/build/types/net/artifacts/SiteAssetArtifactsService/index.d.mts +0 -5
- package/build/types/net/artifacts/SiteAssetArtifactsService/index.d.mts.map +0 -1
- package/build/types/net/artifacts/SiteAssetArtifactsService/uploadSiteVersion.d.mts +0 -4
- package/build/types/net/artifacts/SiteAssetArtifactsService/uploadSiteVersion.d.mts.map +0 -1
- package/build/types/net/artifacts/index.d.mts +0 -2
- package/build/types/net/artifacts/index.d.mts.map +0 -1
- package/build/types/net/createConjureContext.d.mts +0 -3
- package/build/types/net/createConjureContext.d.mts.map +0 -1
- package/build/types/net/third-party-application-service/fetchWebsiteRepositoryRid.d.mts +0 -5
- package/build/types/net/third-party-application-service/fetchWebsiteRepositoryRid.d.mts.map +0 -1
- package/build/types/net/third-party-application-service/index.d.mts +0 -2
- package/build/types/net/third-party-application-service/index.d.mts.map +0 -1
- package/build/types/util/isValidSemver.d.ts +0 -2
- package/build/types/util/isValidSemver.d.ts.map +0 -1
- package/build/types/yargs/logLevelMiddleware.d.ts +0 -3
- package/build/types/yargs/logLevelMiddleware.d.ts.map +0 -1
- /package/build/js/{loginFlow-5ZAMXQKE.cjs.map → loginFlow-QTUKYZEL.cjs.map} +0 -0
- /package/build/js/{loginFlow-BWWZBM36.mjs.map → loginFlow-ZFVT2AFZ.mjs.map} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-2A2YEODO.mjs';
|
|
2
|
+
import './chunk-CWMSASIM.mjs';
|
|
3
|
+
import './chunk-E2SEJZTC.mjs';
|
|
4
|
+
import { consola } from 'consola';
|
|
5
|
+
|
|
6
|
+
async function versionGetCommand({
|
|
7
|
+
foundryUrl,
|
|
8
|
+
application,
|
|
9
|
+
token,
|
|
10
|
+
tokenFile
|
|
11
|
+
}) {
|
|
12
|
+
const loadedToken = await loadToken(token, tokenFile);
|
|
13
|
+
const tokenProvider = () => loadedToken;
|
|
14
|
+
const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
|
|
15
|
+
consola.start("Getting live version");
|
|
16
|
+
const deployment = await third_party_applications_exports.getWebsiteDeployment(clientCtx, application);
|
|
17
|
+
if (!deployment) {
|
|
18
|
+
consola.info("No live site version set");
|
|
19
|
+
} else {
|
|
20
|
+
consola.success(`Live site version is ${deployment.version}`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { versionGetCommand as default };
|
|
25
|
+
//# sourceMappingURL=out.js.map
|
|
26
|
+
//# sourceMappingURL=versionGetCommand-N7F75WO5.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/version/get/versionGetCommand.mts"],"names":[],"mappings":";;;;;;;;;AAiBA,SAAS,eAAe;AAExB,eAAO,kBAAyC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,UAAQ,MAAM,sBAAsB;AACpC,QAAM,aAAa,MAAM,iCAAuB,qBAAqB,WAAW,WAAW;AAC3F,MAAI,CAAC,YAAY;AACf,YAAQ,KAAK,0BAA0B;AAAA,EACzC,OAAO;AACL,YAAQ,QAAQ,wBAAwB,WAAW,OAAO,EAAE;AAAA,EAC9D;AACF","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 */\n\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { consola } from \"consola\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionGetCommand({\n foundryUrl,\n application,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Getting live version\");\n const deployment = await thirdPartyApplications.getWebsiteDeployment(clientCtx, application);\n if (!deployment) {\n consola.info(\"No live site version set\");\n } else {\n consola.success(`Live site version is ${deployment.version}`);\n }\n}"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-2A2YEODO.mjs';
|
|
2
|
+
import './chunk-CWMSASIM.mjs';
|
|
3
|
+
import './chunk-E2SEJZTC.mjs';
|
|
4
|
+
import { consola } from 'consola';
|
|
5
|
+
import { colorize } from 'consola/utils';
|
|
6
|
+
|
|
7
|
+
async function versionListCommand({
|
|
8
|
+
foundryUrl,
|
|
9
|
+
application,
|
|
10
|
+
token,
|
|
11
|
+
tokenFile
|
|
12
|
+
}) {
|
|
13
|
+
const loadedToken = await loadToken(token, tokenFile);
|
|
14
|
+
const tokenProvider = () => loadedToken;
|
|
15
|
+
const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
|
|
16
|
+
consola.start("Fetching versions & deployed version");
|
|
17
|
+
const [versions, deployment] = await Promise.all([third_party_applications_exports.listWebsiteVersions(clientCtx, application), third_party_applications_exports.getWebsiteDeployment(clientCtx, application)]);
|
|
18
|
+
if (versions.data.length === 0) {
|
|
19
|
+
consola.info("No site versions found");
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
consola.success("Found versions:");
|
|
23
|
+
const semver = await import('semver');
|
|
24
|
+
const sortedVersions = semver.rsort(versions.data.map((v) => v.version).filter((v) => semver.valid(v)));
|
|
25
|
+
for (const version of sortedVersions) {
|
|
26
|
+
consola.log(` - ${version}${deployment && version === deployment.version ? colorize("green", ` (deployed)`) : ""}`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { versionListCommand as default };
|
|
31
|
+
//# sourceMappingURL=out.js.map
|
|
32
|
+
//# sourceMappingURL=versionListCommand-2SNJI2N2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/version/list/versionListCommand.mts"],"names":[],"mappings":";;;;;;;;;AAiBA,SAAS,eAAe;AACxB,SAAS,gBAAgB;AAEzB,eAAO,mBAA0C;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,UAAQ,MAAM,sCAAsC;AACpD,QAAM,CAAC,UAAU,UAAU,IAAI,MAAM,QAAQ,IAAI,CAAC,iCAAuB,oBAAoB,WAAW,WAAW,GAAG,iCAAuB,qBAAqB,WAAW,WAAW,CAAC,CAAC;AAC1L,MAAI,SAAS,KAAK,WAAW,GAAG;AAC9B,YAAQ,KAAK,wBAAwB;AACrC;AAAA,EACF;AACA,UAAQ,QAAQ,iBAAiB;AACjC,QAAM,SAAS,MAAM,OAAO,QAAQ;AACpC,QAAM,iBAAiB,OAAO,MAAM,SAAS,KAAK,IAAI,OAAK,EAAE,OAAO,EAAE,OAAO,OAAK,OAAO,MAAM,CAAC,CAAC,CAAC;AAClG,aAAW,WAAW,gBAAgB;AACpC,YAAQ,IAAI,SAAS,OAAO,GAAG,cAAc,YAAY,WAAW,UAAU,SAAS,SAAS,aAAa,IAAI,EAAE,EAAE;AAAA,EACvH;AACF","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 */\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({\n foundryUrl,\n application,\n token,\n tokenFile\n}) {\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, deployment] = await Promise.all([thirdPartyApplications.listWebsiteVersions(clientCtx, application), thirdPartyApplications.getWebsiteDeployment(clientCtx, application)]);\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}${deployment && version === deployment.version ? colorize(\"green\", ` (deployed)`) : \"\"}`);\n }\n}"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkQVFWI7JV_cjs = require('./chunk-QVFWI7JV.cjs');
|
|
4
|
+
require('./chunk-467BAS7X.cjs');
|
|
5
|
+
require('./chunk-HQDDGVB7.cjs');
|
|
6
|
+
var consola = require('consola');
|
|
7
|
+
var utils = require('consola/utils');
|
|
8
|
+
|
|
9
|
+
async function versionListCommand({
|
|
10
|
+
foundryUrl,
|
|
11
|
+
application,
|
|
12
|
+
token,
|
|
13
|
+
tokenFile
|
|
14
|
+
}) {
|
|
15
|
+
const loadedToken = await chunkQVFWI7JV_cjs.loadToken(token, tokenFile);
|
|
16
|
+
const tokenProvider = () => loadedToken;
|
|
17
|
+
const clientCtx = chunkQVFWI7JV_cjs.createInternalClientContext(foundryUrl, tokenProvider);
|
|
18
|
+
consola.consola.start("Fetching versions & deployed version");
|
|
19
|
+
const [versions, deployment] = await Promise.all([chunkQVFWI7JV_cjs.third_party_applications_exports.listWebsiteVersions(clientCtx, application), chunkQVFWI7JV_cjs.third_party_applications_exports.getWebsiteDeployment(clientCtx, application)]);
|
|
20
|
+
if (versions.data.length === 0) {
|
|
21
|
+
consola.consola.info("No site versions found");
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
consola.consola.success("Found versions:");
|
|
25
|
+
const semver = await import('semver');
|
|
26
|
+
const sortedVersions = semver.rsort(versions.data.map((v) => v.version).filter((v) => semver.valid(v)));
|
|
27
|
+
for (const version of sortedVersions) {
|
|
28
|
+
consola.consola.log(` - ${version}${deployment && version === deployment.version ? utils.colorize("green", ` (deployed)`) : ""}`);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
module.exports = versionListCommand;
|
|
33
|
+
//# sourceMappingURL=out.js.map
|
|
34
|
+
//# sourceMappingURL=versionListCommand-FR7G6D7I.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/version/list/versionListCommand.mts"],"names":[],"mappings":";;;;;;;;;AAiBA,SAAS,eAAe;AACxB,SAAS,gBAAgB;AAEzB,eAAO,mBAA0C;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,UAAQ,MAAM,sCAAsC;AACpD,QAAM,CAAC,UAAU,UAAU,IAAI,MAAM,QAAQ,IAAI,CAAC,iCAAuB,oBAAoB,WAAW,WAAW,GAAG,iCAAuB,qBAAqB,WAAW,WAAW,CAAC,CAAC;AAC1L,MAAI,SAAS,KAAK,WAAW,GAAG;AAC9B,YAAQ,KAAK,wBAAwB;AACrC;AAAA,EACF;AACA,UAAQ,QAAQ,iBAAiB;AACjC,QAAM,SAAS,MAAM,OAAO,QAAQ;AACpC,QAAM,iBAAiB,OAAO,MAAM,SAAS,KAAK,IAAI,OAAK,EAAE,OAAO,EAAE,OAAO,OAAK,OAAO,MAAM,CAAC,CAAC,CAAC;AAClG,aAAW,WAAW,gBAAgB;AACpC,YAAQ,IAAI,SAAS,OAAO,GAAG,cAAc,YAAY,WAAW,UAAU,SAAS,SAAS,aAAa,IAAI,EAAE,EAAE;AAAA,EACvH;AACF","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 */\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({\n foundryUrl,\n application,\n token,\n tokenFile\n}) {\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, deployment] = await Promise.all([thirdPartyApplications.listWebsiteVersions(clientCtx, application), thirdPartyApplications.getWebsiteDeployment(clientCtx, application)]);\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}${deployment && version === deployment.version ? colorize(\"green\", ` (deployed)`) : \"\"}`);\n }\n}"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkQVFWI7JV_cjs = require('./chunk-QVFWI7JV.cjs');
|
|
4
|
+
require('./chunk-467BAS7X.cjs');
|
|
5
|
+
require('./chunk-HQDDGVB7.cjs');
|
|
6
|
+
var consola = require('consola');
|
|
7
|
+
|
|
8
|
+
async function versionSetCommand({
|
|
9
|
+
version,
|
|
10
|
+
application,
|
|
11
|
+
foundryUrl,
|
|
12
|
+
token,
|
|
13
|
+
tokenFile
|
|
14
|
+
}) {
|
|
15
|
+
consola.consola.start(`Setting live version`);
|
|
16
|
+
const loadedToken = await chunkQVFWI7JV_cjs.loadToken(token, tokenFile);
|
|
17
|
+
const tokenProvider = () => loadedToken;
|
|
18
|
+
const clientCtx = chunkQVFWI7JV_cjs.createInternalClientContext(foundryUrl, tokenProvider);
|
|
19
|
+
if (version) {
|
|
20
|
+
await chunkQVFWI7JV_cjs.third_party_applications_exports.updateWebsiteDeployment(clientCtx, application, {
|
|
21
|
+
version
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
consola.consola.success(`Set live version to ${version}`);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
module.exports = versionSetCommand;
|
|
28
|
+
//# sourceMappingURL=out.js.map
|
|
29
|
+
//# sourceMappingURL=versionSetCommand-73LHJBP5.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/version/set/versionSetCommand.mts"],"names":[],"mappings":";;;;;;;;;AAgBA,SAAS,eAAe;AAGxB,eAAO,kBAAyC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,UAAQ,MAAM,sBAAsB;AACpC,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,MAAI,SAAS;AACX,UAAM,iCAAuB,wBAAwB,WAAW,aAAa;AAAA,MAC3E;AAAA,IACF,CAAC;AAAA,EACH;AACA,UAAQ,QAAQ,uBAAuB,OAAO,EAAE;AAClD","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 */\n\nimport { consola } from \"consola\";\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionSetCommand({\n version,\n application,\n foundryUrl,\n token,\n tokenFile\n}) {\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.updateWebsiteDeployment(clientCtx, application, {\n version\n });\n }\n consola.success(`Set live version to ${version}`);\n}"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { loadToken, createInternalClientContext,
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-2A2YEODO.mjs';
|
|
2
|
+
import './chunk-CWMSASIM.mjs';
|
|
3
3
|
import './chunk-E2SEJZTC.mjs';
|
|
4
4
|
import { consola } from 'consola';
|
|
5
5
|
|
|
@@ -14,13 +14,9 @@ async function versionSetCommand({
|
|
|
14
14
|
const loadedToken = await loadToken(token, tokenFile);
|
|
15
15
|
const tokenProvider = () => loadedToken;
|
|
16
16
|
const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
|
|
17
|
-
const repositoryRid = await third_party_application_service_exports.fetchWebsiteRepositoryRid(clientCtx, application);
|
|
18
|
-
const ctx = createConjureContext(foundryUrl, "/artifacts/api", tokenProvider);
|
|
19
17
|
if (version) {
|
|
20
|
-
await
|
|
21
|
-
|
|
22
|
-
version
|
|
23
|
-
}
|
|
18
|
+
await third_party_applications_exports.updateWebsiteDeployment(clientCtx, application, {
|
|
19
|
+
version
|
|
24
20
|
});
|
|
25
21
|
}
|
|
26
22
|
consola.success(`Set live version to ${version}`);
|
|
@@ -28,4 +24,4 @@ async function versionSetCommand({
|
|
|
28
24
|
|
|
29
25
|
export { versionSetCommand as default };
|
|
30
26
|
//# sourceMappingURL=out.js.map
|
|
31
|
-
//# sourceMappingURL=versionSetCommand-
|
|
27
|
+
//# sourceMappingURL=versionSetCommand-GRRGFGPP.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/version/set/versionSetCommand.mts"],"names":[],"mappings":";;;;;;;;;AAgBA,SAAS,eAAe;AAGxB,eAAO,kBAAyC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,UAAQ,MAAM,sBAAsB;AACpC,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,MAAI,SAAS;AACX,UAAM,iCAAuB,wBAAwB,WAAW,aAAa;AAAA,MAC3E;AAAA,IACF,CAAC;AAAA,EACH;AACA,UAAQ,QAAQ,uBAAuB,OAAO,EAAE;AAClD","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 */\n\nimport { consola } from \"consola\";\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionSetCommand({\n version,\n application,\n foundryUrl,\n token,\n tokenFile\n}) {\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.updateWebsiteDeployment(clientCtx, application, {\n version\n });\n }\n consola.success(`Set live version to ${version}`);\n}"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkDQYIDDJN_cjs = require('./chunk-DQYIDDJN.cjs');
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var chunkQVFWI7JV_cjs = require('./chunk-QVFWI7JV.cjs');
|
|
5
|
+
require('./chunk-467BAS7X.cjs');
|
|
6
6
|
require('./chunk-HQDDGVB7.cjs');
|
|
7
7
|
var consola = require('consola');
|
|
8
8
|
var utils = require('consola/utils');
|
|
@@ -21,16 +21,14 @@ ${utils.colorize("bold", "Your site will no longer be accessible until a new liv
|
|
|
21
21
|
});
|
|
22
22
|
chunkDQYIDDJN_cjs.handlePromptCancel(confirmed);
|
|
23
23
|
}
|
|
24
|
-
const loadedToken = await
|
|
24
|
+
const loadedToken = await chunkQVFWI7JV_cjs.loadToken(token, tokenFile);
|
|
25
25
|
const tokenProvider = () => loadedToken;
|
|
26
|
-
const clientCtx =
|
|
26
|
+
const clientCtx = chunkQVFWI7JV_cjs.createInternalClientContext(foundryUrl, tokenProvider);
|
|
27
27
|
consola.consola.start("Clearing live site version");
|
|
28
|
-
|
|
29
|
-
const ctx = chunkF6Y3FTY6_cjs.createConjureContext(foundryUrl, "/artifacts/api", tokenProvider);
|
|
30
|
-
await chunkF6Y3FTY6_cjs.ArtifactsSitesAdminV2Service_exports.clearDeployedVersion(ctx, repositoryRid);
|
|
28
|
+
await chunkQVFWI7JV_cjs.third_party_applications_exports.deleteWebsiteDeployment(clientCtx, application);
|
|
31
29
|
consola.consola.success("Cleared live site version");
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
module.exports = versionUnsetCommand;
|
|
35
33
|
//# sourceMappingURL=out.js.map
|
|
36
|
-
//# sourceMappingURL=versionUnsetCommand-
|
|
34
|
+
//# sourceMappingURL=versionUnsetCommand-3MUKQRD5.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/version/unset/versionUnsetCommand.mts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,SAAS,eAAe;AAExB,SAAS,gBAAgB;AAGzB,eAAO,oBAA2C;AAAA,EAChD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,MAAI,CAAC,KAAK;AACR,UAAM,YAAY,MAAM,QAAQ,OAAO;AAAA,EAA0D,SAAS,QAAQ,8EAA8E,CAAC,IAAI;AAAA,MACnM,MAAM;AAAA,IACR,CAAC;AACD,uBAAmB,SAAS;AAAA,EAC9B;AACA,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,UAAQ,MAAM,4BAA4B;AAC1C,QAAM,iCAAuB,wBAAwB,WAAW,WAAW;AAC3E,UAAQ,QAAQ,2BAA2B;AAC7C","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 */\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({\n yes,\n application,\n foundryUrl,\n token,\n tokenFile\n}) {\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.\")}`, {\n type: \"confirm\"\n });\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.deleteWebsiteDeployment(clientCtx, application);\n consola.success(\"Cleared live site version\");\n}"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { handlePromptCancel } from './chunk-IV3QY3PZ.mjs';
|
|
2
|
-
import { loadToken, createInternalClientContext,
|
|
3
|
-
import './chunk-
|
|
2
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-2A2YEODO.mjs';
|
|
3
|
+
import './chunk-CWMSASIM.mjs';
|
|
4
4
|
import './chunk-E2SEJZTC.mjs';
|
|
5
5
|
import { consola } from 'consola';
|
|
6
6
|
import { colorize } from 'consola/utils';
|
|
@@ -23,12 +23,10 @@ ${colorize("bold", "Your site will no longer be accessible until a new live site
|
|
|
23
23
|
const tokenProvider = () => loadedToken;
|
|
24
24
|
const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
|
|
25
25
|
consola.start("Clearing live site version");
|
|
26
|
-
|
|
27
|
-
const ctx = createConjureContext(foundryUrl, "/artifacts/api", tokenProvider);
|
|
28
|
-
await ArtifactsSitesAdminV2Service_exports.clearDeployedVersion(ctx, repositoryRid);
|
|
26
|
+
await third_party_applications_exports.deleteWebsiteDeployment(clientCtx, application);
|
|
29
27
|
consola.success("Cleared live site version");
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
export { versionUnsetCommand as default };
|
|
33
31
|
//# sourceMappingURL=out.js.map
|
|
34
|
-
//# sourceMappingURL=versionUnsetCommand-
|
|
32
|
+
//# sourceMappingURL=versionUnsetCommand-PZF5G4WC.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/version/unset/versionUnsetCommand.mts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,SAAS,eAAe;AAExB,SAAS,gBAAgB;AAGzB,eAAO,oBAA2C;AAAA,EAChD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,MAAI,CAAC,KAAK;AACR,UAAM,YAAY,MAAM,QAAQ,OAAO;AAAA,EAA0D,SAAS,QAAQ,8EAA8E,CAAC,IAAI;AAAA,MACnM,MAAM;AAAA,IACR,CAAC;AACD,uBAAmB,SAAS;AAAA,EAC9B;AACA,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,UAAQ,MAAM,4BAA4B;AAC1C,QAAM,iCAAuB,wBAAwB,WAAW,WAAW;AAC3E,UAAQ,QAAQ,2BAA2B;AAC7C","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 */\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({\n yes,\n application,\n foundryUrl,\n token,\n tokenFile\n}) {\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.\")}`, {\n type: \"confirm\"\n });\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.deleteWebsiteDeployment(clientCtx, application);\n consola.success(\"Cleared live site version\");\n}"]}
|
package/build/types/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"AAyBA,wBAAsB,GAAG,CAAC,IAAI,GAAE,MAAM,EAAiB;;;;;eA6BtD"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import type { CliCommonArgs, CommonAuthArgs } from "@osdk/cli.common";
|
|
1
2
|
import type * as yargs from "yargs";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const site: yargs.CommandModule<CliCommonArgs, CommonAuthArgs>;
|
|
5
|
-
export default site;
|
|
3
|
+
declare const auth: yargs.CommandModule<CliCommonArgs, CommonAuthArgs>;
|
|
4
|
+
export default auth;
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/auth/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/auth/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,EAAE,cAAc,CAkB5D,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import type { CommonAuthArgs, LoginArgs } from "@osdk/cli.common";
|
|
1
2
|
import type { CommandModule } from "yargs";
|
|
2
|
-
import type { CommonAuthArgs } from "../CommonAuthArgs.js";
|
|
3
|
-
import type { LoginArgs } from "./LoginArgs.js";
|
|
4
3
|
export declare const command: CommandModule<CommonAuthArgs, LoginArgs>;
|
|
5
4
|
export default command;
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/commands/auth/login/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/commands/auth/login/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,aAAa,CACjC,cAAc,EACd,SAAS,CAiBV,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CliCommonArgs } from "
|
|
1
|
+
import type { CliCommonArgs } from "@osdk/cli.common";
|
|
2
2
|
import type { ThirdPartyAppRid } from "../../net/ThirdPartyAppRid.js";
|
|
3
3
|
export interface CommonSiteArgs extends CliCommonArgs {
|
|
4
4
|
application: ThirdPartyAppRid;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonSiteArgs.d.ts","sourceRoot":"","sources":["../../../../src/commands/site/CommonSiteArgs.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CommonSiteArgs.d.ts","sourceRoot":"","sources":["../../../../src/commands/site/CommonSiteArgs.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,WAAW,EAAE,gBAAgB,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/commands/site/deploy/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/commands/site/deploy/index.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAO3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,QAAA,MAAM,OAAO,EAAE,aAAa,CAC1B,cAAc,EACd,cAAc,CA8Gf,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"siteDeployCommand.d.mts","sourceRoot":"","sources":["../../../../../src/commands/site/deploy/siteDeployCommand.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"siteDeployCommand.d.mts","sourceRoot":"","sources":["../../../../../src/commands/site/deploy/siteDeployCommand.mts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,UAAU,sBACR,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,aAAa,CAAC;IAEvD,eAAe,EAAE,MAAM,GAAG,iBAAiB,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wBAA8B,iBAAiB,CAC7C,EACE,eAAe,EACf,WAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,KAAK,EACL,SAAS,GACV,EAAE,sBAAsB,iBAqE1B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { CliCommonArgs } from "@osdk/cli.common";
|
|
1
2
|
import type { CommandModule } from "yargs";
|
|
2
|
-
import type { CliCommonArgs } from "../../CliCommonArgs.js";
|
|
3
3
|
import type { CommonSiteArgs } from "./CommonSiteArgs.js";
|
|
4
4
|
declare const command: CommandModule<CliCommonArgs, CommonSiteArgs>;
|
|
5
5
|
export default command;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/site/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/site/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAK1D,QAAA,MAAM,OAAO,EAAE,aAAa,CAAC,aAAa,EAAE,cAAc,CAsDzD,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionDeleteCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,wBAA8B,oBAAoB,CAChD,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EACzD,iBAAiB,
|
|
1
|
+
{"version":3,"file":"versionDeleteCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,wBAA8B,oBAAoB,CAChD,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EACzD,iBAAiB,iBAwBpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionGetCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/get/versionGetCommand.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"versionGetCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/get/versionGetCommand.mts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,wBAA8B,iBAAiB,CAC7C,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,cAAc,iBAiB9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionListCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/list/versionListCommand.mts"],"names":[],"mappings":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionSetCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/set/versionSetCommand.mts"],"names":[],"mappings":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionUnsetCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/unset/versionUnsetCommand.mts"],"names":[],"mappings":"
|
|
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,7 +1,3 @@
|
|
|
1
|
-
export { ArtifactsSitesAdminV2Service } from "../generated/artifacts-sites/index.js";
|
|
2
|
-
export type { SiteDomainInfo } from "../generated/artifacts-sites/SiteDomainInfo.js";
|
|
3
|
-
export * as artifacts from "./artifacts/index.mjs";
|
|
4
|
-
export { createConjureContext } from "./createConjureContext.mjs";
|
|
5
1
|
export { createInternalClientContext } from "./createInternalClientContext.mjs";
|
|
6
|
-
export * as
|
|
2
|
+
export * as thirdPartyApplications from "./third-party-applications/index.mjs";
|
|
7
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/net/index.mts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/net/index.mts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,sBAAsB,MAAM,sCAAsC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListWebsiteVersionsResponse.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/ListWebsiteVersionsResponse.mts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateWebsiteDeploymentRequest.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/UpdateWebsiteDeploymentRequest.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebsiteDeployment.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/WebsiteDeployment.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebsiteVersion.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/WebsiteVersion.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
+
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
+
export declare function deleteWebsiteDeployment(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<void>;
|
|
4
|
+
//# sourceMappingURL=deleteWebsiteDeployment.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteWebsiteDeployment.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/deleteWebsiteDeployment.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,IAAI,CAAC,CAWf"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
+
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
+
export declare function deleteWebsiteVersion(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid, version: string): Promise<void>;
|
|
4
|
+
//# sourceMappingURL=deleteWebsiteVersion.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteWebsiteVersion.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/deleteWebsiteVersion.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAWf"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
+
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
+
import type { WebsiteDeployment } from "./WebsiteDeployment.mjs";
|
|
4
|
+
export declare function getWebsiteDeployment(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<WebsiteDeployment | undefined>;
|
|
5
|
+
//# sourceMappingURL=getWebsiteDeployment.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWebsiteDeployment.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/getWebsiteDeployment.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,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAmBxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { deleteWebsiteDeployment } from "./deleteWebsiteDeployment.mjs";
|
|
2
|
+
export { deleteWebsiteVersion } from "./deleteWebsiteVersion.mjs";
|
|
3
|
+
export { getWebsiteDeployment } from "./getWebsiteDeployment.mjs";
|
|
4
|
+
export { listWebsiteVersions } from "./listWebsiteVersions.mjs";
|
|
5
|
+
export type { ListWebsiteVersionsResponse } from "./ListWebsiteVersionsResponse.mjs";
|
|
6
|
+
export { updateWebsiteDeployment } from "./updateWebsiteDeployment.mjs";
|
|
7
|
+
export type { UpdateWebsiteDeploymentRequest } from "./UpdateWebsiteDeploymentRequest.mjs";
|
|
8
|
+
export { uploadWebsiteVersion } from "./uploadWebsiteVersion.mjs";
|
|
9
|
+
export type { WebsiteDeployment } from "./WebsiteDeployment.mjs";
|
|
10
|
+
export type { WebsiteVersion } from "./WebsiteVersion.mjs";
|
|
11
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/index.mts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,YAAY,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,YAAY,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
+
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
+
import type { ListWebsiteVersionsResponse } from "./ListWebsiteVersionsResponse.mjs";
|
|
4
|
+
export declare function listWebsiteVersions(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<ListWebsiteVersionsResponse>;
|
|
5
|
+
//# sourceMappingURL=listWebsiteVersions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listWebsiteVersions.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/listWebsiteVersions.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,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAErF,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,2BAA2B,CAAC,CAOtC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
+
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
+
import type { UpdateWebsiteDeploymentRequest } from "./UpdateWebsiteDeploymentRequest.mjs";
|
|
4
|
+
import type { WebsiteDeployment } from "./WebsiteDeployment.mjs";
|
|
5
|
+
export declare function updateWebsiteDeployment(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid, request: UpdateWebsiteDeploymentRequest): Promise<WebsiteDeployment>;
|
|
6
|
+
//# sourceMappingURL=updateWebsiteDeployment.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateWebsiteDeployment.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/updateWebsiteDeployment.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,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAC3F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,8BAA8B,GACtC,OAAO,CAAC,iBAAiB,CAAC,CAgB5B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
+
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
+
import type { WebsiteVersion } from "./WebsiteVersion.mjs";
|
|
4
|
+
export declare function uploadWebsiteVersion(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid, version: string, zipFile: ReadableStream | Blob | BufferSource): Promise<WebsiteVersion>;
|
|
5
|
+
//# sourceMappingURL=uploadWebsiteVersion.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploadWebsiteVersion.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/uploadWebsiteVersion.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,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,GAAG,IAAI,GAAG,YAAY,GAC5C,OAAO,CAAC,cAAc,CAAC,CAiBzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoVersion.d.ts","sourceRoot":"","sources":["../../../src/util/autoVersion.ts"],"names":[],"mappings":"
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"access": "public",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"semver": "^7.6.0",
|
|
32
32
|
"tslib": "^2.6.2",
|
|
33
33
|
"yargs": "^17.7.2",
|
|
34
|
-
"@osdk/api": "1.
|
|
35
|
-
"@osdk/gateway": "2.
|
|
36
|
-
"@osdk/generator": "1.
|
|
37
|
-
"@osdk/shared.net": "1.
|
|
34
|
+
"@osdk/api": "1.6.0",
|
|
35
|
+
"@osdk/gateway": "2.2.0",
|
|
36
|
+
"@osdk/generator": "1.9.0",
|
|
37
|
+
"@osdk/shared.net": "1.9.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/archiver": "^6.0.0",
|
|
@@ -43,7 +43,9 @@
|
|
|
43
43
|
"@types/semver": "^7.5.7",
|
|
44
44
|
"@types/yargs": "^17.0.29",
|
|
45
45
|
"ts-expect": "^1.3.0",
|
|
46
|
-
"typescript": "^5.4.2"
|
|
46
|
+
"typescript": "^5.4.2",
|
|
47
|
+
"@osdk/cli.cmd.typescript": "0.0.0",
|
|
48
|
+
"@osdk/cli.common": "0.0.0"
|
|
47
49
|
},
|
|
48
50
|
"publishConfig": {
|
|
49
51
|
"access": "public"
|
|
@@ -70,13 +72,12 @@
|
|
|
70
72
|
"type": "module",
|
|
71
73
|
"scripts": {
|
|
72
74
|
"clean": "rm -rf lib dist types build tsconfig.tsbuildinfo",
|
|
73
|
-
"dev:transpile": "tsup --watch",
|
|
74
75
|
"fix-lint": "eslint . --fix && dprint fmt --config $(find-up dprint.json)",
|
|
75
76
|
"lint": "eslint . && dprint check --config $(find-up dprint.json)",
|
|
76
77
|
"test": "vitest run",
|
|
77
78
|
"test:watch": "vitest",
|
|
78
79
|
"transpile": "tsup",
|
|
79
80
|
"transpileWatch": "tsup --watch",
|
|
80
|
-
"typecheck": "tsc-absolute
|
|
81
|
+
"typecheck": "tsc-absolute"
|
|
81
82
|
}
|
|
82
83
|
}
|