@osdk/cli 0.16.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-AX5HH3ZN.cjs → chunk-467BAS7X.cjs} +3 -2
- package/build/js/chunk-467BAS7X.cjs.map +1 -0
- package/build/js/{chunk-MTJA6DOB.mjs → chunk-CWMSASIM.mjs} +3 -2
- package/build/js/chunk-CWMSASIM.mjs.map +1 -0
- package/build/js/chunk-QVFWI7JV.cjs +207 -0
- package/build/js/chunk-QVFWI7JV.cjs.map +1 -0
- package/build/js/{handleGenerate-XC5RBDDW-T333WMC4.mjs → handleGenerate-KBPDPEH4-O63ZWRM6.mjs} +20 -99
- package/build/js/handleGenerate-KBPDPEH4-O63ZWRM6.mjs.map +1 -0
- package/build/js/{handleGenerate-XC5RBDDW-DL73JJG6.cjs → handleGenerate-KBPDPEH4-OC7WKH2B.cjs} +21 -100
- package/build/js/handleGenerate-KBPDPEH4-OC7WKH2B.cjs.map +1 -0
- package/build/js/index.cjs +25 -25
- package/build/js/index.cjs.map +1 -1
- package/build/js/index.mjs +9 -9
- package/build/js/index.mjs.map +1 -1
- package/build/js/{siteDeployCommand-FTCDKKU4.cjs → siteDeployCommand-GM26T5YL.cjs} +22 -36
- package/build/js/siteDeployCommand-GM26T5YL.cjs.map +1 -0
- package/build/js/{siteDeployCommand-WHR7PIJE.mjs → siteDeployCommand-LXWAUCZQ.mjs} +13 -27
- package/build/js/siteDeployCommand-LXWAUCZQ.mjs.map +1 -0
- package/build/js/{versionDeleteCommand-KQCJ7CHQ.cjs → versionDeleteCommand-S4M6DRHC.cjs} +6 -9
- package/build/js/versionDeleteCommand-S4M6DRHC.cjs.map +1 -0
- package/build/js/{versionDeleteCommand-YFVUCYVQ.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-BD3O7OAX.mjs → versionSetCommand-GRRGFGPP.mjs} +5 -9
- package/build/js/versionSetCommand-GRRGFGPP.mjs.map +1 -0
- package/build/js/{versionUnsetCommand-BZ2SAFEM.cjs → versionUnsetCommand-3MUKQRD5.cjs} +6 -8
- package/build/js/versionUnsetCommand-3MUKQRD5.cjs.map +1 -0
- package/build/js/{versionUnsetCommand-W7ACW5O3.mjs → versionUnsetCommand-PZF5G4WC.mjs} +4 -6
- package/build/js/versionUnsetCommand-PZF5G4WC.mjs.map +1 -0
- package/build/types/commands/site/deploy/siteDeployCommand.d.mts.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/changelog/0.17.0/pr-166.v2.yml +5 -0
- package/package.json +1 -1
- package/build/js/chunk-2KJDB4YP.cjs +0 -267
- package/build/js/chunk-2KJDB4YP.cjs.map +0 -1
- package/build/js/chunk-AX5HH3ZN.cjs.map +0 -1
- package/build/js/chunk-JTZ7GUB4.mjs +0 -256
- package/build/js/chunk-JTZ7GUB4.mjs.map +0 -1
- package/build/js/chunk-MTJA6DOB.mjs.map +0 -1
- package/build/js/handleGenerate-XC5RBDDW-DL73JJG6.cjs.map +0 -1
- package/build/js/handleGenerate-XC5RBDDW-T333WMC4.mjs.map +0 -1
- package/build/js/siteDeployCommand-FTCDKKU4.cjs.map +0 -1
- package/build/js/siteDeployCommand-WHR7PIJE.mjs.map +0 -1
- package/build/js/versionDeleteCommand-KQCJ7CHQ.cjs.map +0 -1
- package/build/js/versionDeleteCommand-YFVUCYVQ.mjs.map +0 -1
- package/build/js/versionGetCommand-45C2JZC4.cjs +0 -30
- package/build/js/versionGetCommand-45C2JZC4.cjs.map +0 -1
- package/build/js/versionGetCommand-AKPCEBQZ.mjs +0 -28
- package/build/js/versionGetCommand-AKPCEBQZ.mjs.map +0 -1
- package/build/js/versionListCommand-4TM6YYNJ.cjs +0 -36
- package/build/js/versionListCommand-4TM6YYNJ.cjs.map +0 -1
- package/build/js/versionListCommand-6OVL7FF2.mjs +0 -34
- package/build/js/versionListCommand-6OVL7FF2.mjs.map +0 -1
- package/build/js/versionSetCommand-BD3O7OAX.mjs.map +0 -1
- package/build/js/versionSetCommand-FIWT6CFW.cjs +0 -33
- package/build/js/versionSetCommand-FIWT6CFW.cjs.map +0 -1
- package/build/js/versionUnsetCommand-BZ2SAFEM.cjs.map +0 -1
- package/build/js/versionUnsetCommand-W7ACW5O3.mjs.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/deploy/siteDeployCommand.mts","../../src/util/autoVersion.ts"],"names":[],"mappings":"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","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 { ExitProcessError } from \"@osdk/cli.common\";\nimport archiver from \"archiver\";\nimport { colorize } from \"consola/utils\";\nimport * as fs from \"node:fs\";\nimport path from \"node:path\";\nimport { Readable } from \"node:stream\";\nimport { autoVersion as findAutoVersion } from \"../../../util/autoVersion.js\";\nimport { loadToken } from \"../../../util/token.js\";\nexport default async function siteDeployCommand({\n selectedVersion,\n application,\n foundryUrl,\n uploadOnly,\n directory,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n let siteVersion;\n if (typeof selectedVersion === \"string\") {\n siteVersion = selectedVersion;\n } else {\n siteVersion = await findAutoVersion(selectedVersion.tagPrefix);\n consola.info(`Auto version inferred next version to be: ${siteVersion}`);\n }\n consola.debug(`Using directory for site files: \"${path.resolve(directory)}`);\n const stat = await fs.promises.stat(directory);\n if (!stat.isDirectory()) {\n throw new ExitProcessError(2, \"Specified path exists but is not a directory\");\n }\n consola.start(\"Zipping site files\");\n const archive = archiver(\"zip\").directory(directory, false);\n logArchiveStats(archive);\n consola.start(\"Uploading site files\");\n await Promise.all([thirdPartyApplications.uploadWebsiteVersion(clientCtx, application, siteVersion, Readable.toWeb(archive) // This cast is because the dom fetch doesnt align type wise with streams\n ), archive.finalize()]);\n consola.success(\"Upload complete\");\n if (!uploadOnly) {\n const deployment = await thirdPartyApplications.updateWebsiteDeployment(clientCtx, application, {\n version: siteVersion\n });\n consola.success(`Deployed ${siteVersion} successfully`);\n const domain = deployment.subdomains[0];\n if (domain != null) {\n logSiteLink(\"View live site:\", `https://${domain}`);\n }\n } else {\n const deployment = await thirdPartyApplications.getWebsiteDeployment(clientCtx, application);\n const domain = deployment?.subdomains[0];\n consola.debug(\"Upload only mode enabled, skipping deployment\");\n if (domain != null) {\n logSiteLink(\"Preview link:\", `https://${domain}/.system/preview?previewVersion=${siteVersion}`);\n }\n }\n}\nfunction logArchiveStats(archive) {\n let archiveStats = {\n fileCount: 0,\n bytes: 0\n };\n archive.on(\"progress\", progress => {\n archiveStats = {\n fileCount: progress.entries.total,\n bytes: progress.fs.totalBytes\n };\n });\n archive.on(\"finish\", () => {\n consola.debug(`Zipped ${archiveStats.fileCount} files and ${archiveStats.bytes} bytes`);\n });\n}\nfunction logSiteLink(title, link) {\n consola.box({\n message: `${title}\\n\\n${colorize(\"green\", link)}`,\n style: {\n padding: 2,\n borderColor: \"green\",\n borderStyle: \"rounded\"\n }\n });\n}","/*\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 { ExitProcessError, isValidSemver } from \"@osdk/cli.common\";\nimport { exec } from \"node:child_process\";\nimport { promisify } from \"node:util\";\n\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 !== \"\" ? [tagPrefix, new RegExp(`^${tagPrefix}`)] : [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 {\n stdout\n } = await execAsync(`git describe --tags --first-parent --dirty${matchPrefix != null ? ` --match=\"${matchPrefix}*\"` : \"\"}`, {\n encoding: \"utf8\"\n });\n gitVersion = stdout;\n } catch (error) {\n if (error instanceof Error) {\n const errorMessage = error.message.toLowerCase();\n if (errorMessage.includes(\"not recognized\") || errorMessage.includes(\"command not found\") || 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}"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { loadToken, createInternalClientContext,
|
|
2
|
-
import { ExitProcessError, isValidSemver } from './chunk-
|
|
1
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-2A2YEODO.mjs';
|
|
2
|
+
import { ExitProcessError, isValidSemver } from './chunk-CWMSASIM.mjs';
|
|
3
3
|
import './chunk-E2SEJZTC.mjs';
|
|
4
4
|
import { consola } from 'consola';
|
|
5
5
|
import archiver from 'archiver';
|
|
@@ -60,7 +60,6 @@ async function siteDeployCommand({
|
|
|
60
60
|
const loadedToken = await loadToken(token, tokenFile);
|
|
61
61
|
const tokenProvider = () => loadedToken;
|
|
62
62
|
const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
|
|
63
|
-
const ctx = createConjureContext(foundryUrl, "/artifacts/api", tokenProvider);
|
|
64
63
|
let siteVersion;
|
|
65
64
|
if (typeof selectedVersion === "string") {
|
|
66
65
|
siteVersion = selectedVersion;
|
|
@@ -77,27 +76,26 @@ async function siteDeployCommand({
|
|
|
77
76
|
const archive = archiver("zip").directory(directory, false);
|
|
78
77
|
logArchiveStats(archive);
|
|
79
78
|
consola.start("Uploading site files");
|
|
80
|
-
await Promise.all([
|
|
79
|
+
await Promise.all([third_party_applications_exports.uploadWebsiteVersion(
|
|
80
|
+
clientCtx,
|
|
81
81
|
application,
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
siteVersion,
|
|
83
|
+
Readable.toWeb(archive)
|
|
84
84
|
// This cast is because the dom fetch doesnt align type wise with streams
|
|
85
|
-
|
|
85
|
+
), archive.finalize()]);
|
|
86
86
|
consola.success("Upload complete");
|
|
87
|
-
const repositoryRid = await third_party_application_service_exports.fetchWebsiteRepositoryRid(clientCtx, application);
|
|
88
|
-
const registeredSiteDomains = await ArtifactsSitesAdminV2Service_exports.getRegisteredSiteDomains(ctx, repositoryRid);
|
|
89
|
-
const domain = getFirstSiteDomain(registeredSiteDomains);
|
|
90
87
|
if (!uploadOnly) {
|
|
91
|
-
await
|
|
92
|
-
|
|
93
|
-
version: siteVersion
|
|
94
|
-
}
|
|
88
|
+
const deployment = await third_party_applications_exports.updateWebsiteDeployment(clientCtx, application, {
|
|
89
|
+
version: siteVersion
|
|
95
90
|
});
|
|
96
91
|
consola.success(`Deployed ${siteVersion} successfully`);
|
|
92
|
+
const domain = deployment.subdomains[0];
|
|
97
93
|
if (domain != null) {
|
|
98
94
|
logSiteLink("View live site:", `https://${domain}`);
|
|
99
95
|
}
|
|
100
96
|
} else {
|
|
97
|
+
const deployment = await third_party_applications_exports.getWebsiteDeployment(clientCtx, application);
|
|
98
|
+
const domain = deployment?.subdomains[0];
|
|
101
99
|
consola.debug("Upload only mode enabled, skipping deployment");
|
|
102
100
|
if (domain != null) {
|
|
103
101
|
logSiteLink("Preview link:", `https://${domain}/.system/preview?previewVersion=${siteVersion}`);
|
|
@@ -131,19 +129,7 @@ ${colorize("green", link)}`,
|
|
|
131
129
|
}
|
|
132
130
|
});
|
|
133
131
|
}
|
|
134
|
-
function getFirstSiteDomain(domains) {
|
|
135
|
-
if (domains.length === 0) {
|
|
136
|
-
consola.warn("No registered domains for site found");
|
|
137
|
-
return void 0;
|
|
138
|
-
}
|
|
139
|
-
switch (domains[0].type) {
|
|
140
|
-
case "controlPanelManaged":
|
|
141
|
-
return domains[0].controlPanelManaged.siteDomain.domain;
|
|
142
|
-
default:
|
|
143
|
-
domains[0].type;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
132
|
|
|
147
133
|
export { siteDeployCommand as default };
|
|
148
134
|
//# sourceMappingURL=out.js.map
|
|
149
|
-
//# sourceMappingURL=siteDeployCommand-
|
|
135
|
+
//# sourceMappingURL=siteDeployCommand-LXWAUCZQ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/deploy/siteDeployCommand.mts","../../src/util/autoVersion.ts"],"names":[],"mappings":"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","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 { ExitProcessError } from \"@osdk/cli.common\";\nimport archiver from \"archiver\";\nimport { colorize } from \"consola/utils\";\nimport * as fs from \"node:fs\";\nimport path from \"node:path\";\nimport { Readable } from \"node:stream\";\nimport { autoVersion as findAutoVersion } from \"../../../util/autoVersion.js\";\nimport { loadToken } from \"../../../util/token.js\";\nexport default async function siteDeployCommand({\n selectedVersion,\n application,\n foundryUrl,\n uploadOnly,\n directory,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n let siteVersion;\n if (typeof selectedVersion === \"string\") {\n siteVersion = selectedVersion;\n } else {\n siteVersion = await findAutoVersion(selectedVersion.tagPrefix);\n consola.info(`Auto version inferred next version to be: ${siteVersion}`);\n }\n consola.debug(`Using directory for site files: \"${path.resolve(directory)}`);\n const stat = await fs.promises.stat(directory);\n if (!stat.isDirectory()) {\n throw new ExitProcessError(2, \"Specified path exists but is not a directory\");\n }\n consola.start(\"Zipping site files\");\n const archive = archiver(\"zip\").directory(directory, false);\n logArchiveStats(archive);\n consola.start(\"Uploading site files\");\n await Promise.all([thirdPartyApplications.uploadWebsiteVersion(clientCtx, application, siteVersion, Readable.toWeb(archive) // This cast is because the dom fetch doesnt align type wise with streams\n ), archive.finalize()]);\n consola.success(\"Upload complete\");\n if (!uploadOnly) {\n const deployment = await thirdPartyApplications.updateWebsiteDeployment(clientCtx, application, {\n version: siteVersion\n });\n consola.success(`Deployed ${siteVersion} successfully`);\n const domain = deployment.subdomains[0];\n if (domain != null) {\n logSiteLink(\"View live site:\", `https://${domain}`);\n }\n } else {\n const deployment = await thirdPartyApplications.getWebsiteDeployment(clientCtx, application);\n const domain = deployment?.subdomains[0];\n consola.debug(\"Upload only mode enabled, skipping deployment\");\n if (domain != null) {\n logSiteLink(\"Preview link:\", `https://${domain}/.system/preview?previewVersion=${siteVersion}`);\n }\n }\n}\nfunction logArchiveStats(archive) {\n let archiveStats = {\n fileCount: 0,\n bytes: 0\n };\n archive.on(\"progress\", progress => {\n archiveStats = {\n fileCount: progress.entries.total,\n bytes: progress.fs.totalBytes\n };\n });\n archive.on(\"finish\", () => {\n consola.debug(`Zipped ${archiveStats.fileCount} files and ${archiveStats.bytes} bytes`);\n });\n}\nfunction logSiteLink(title, link) {\n consola.box({\n message: `${title}\\n\\n${colorize(\"green\", link)}`,\n style: {\n padding: 2,\n borderColor: \"green\",\n borderStyle: \"rounded\"\n }\n });\n}","/*\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 { ExitProcessError, isValidSemver } from \"@osdk/cli.common\";\nimport { exec } from \"node:child_process\";\nimport { promisify } from \"node:util\";\n\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 !== \"\" ? [tagPrefix, new RegExp(`^${tagPrefix}`)] : [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 {\n stdout\n } = await execAsync(`git describe --tags --first-parent --dirty${matchPrefix != null ? ` --match=\"${matchPrefix}*\"` : \"\"}`, {\n encoding: \"utf8\"\n });\n gitVersion = stdout;\n } catch (error) {\n if (error instanceof Error) {\n const errorMessage = error.message.toLowerCase();\n if (errorMessage.includes(\"not recognized\") || errorMessage.includes(\"command not found\") || 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}"]}
|
|
@@ -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');
|
|
@@ -23,16 +23,13 @@ ${utils.colorize("bold", "This action cannot be undone.")}`, {
|
|
|
23
23
|
chunkDQYIDDJN_cjs.handlePromptCancel(confirmed);
|
|
24
24
|
}
|
|
25
25
|
consola.consola.start(`Deleting version ${version}`);
|
|
26
|
-
const loadedToken = await
|
|
26
|
+
const loadedToken = await chunkQVFWI7JV_cjs.loadToken(token, tokenFile);
|
|
27
27
|
const tokenProvider = () => loadedToken;
|
|
28
|
-
const clientCtx =
|
|
29
|
-
await
|
|
30
|
-
application,
|
|
31
|
-
version
|
|
32
|
-
});
|
|
28
|
+
const clientCtx = chunkQVFWI7JV_cjs.createInternalClientContext(foundryUrl, tokenProvider);
|
|
29
|
+
await chunkQVFWI7JV_cjs.third_party_applications_exports.deleteWebsiteVersion(clientCtx, application, version);
|
|
33
30
|
consola.consola.success(`Deleted version ${version}`);
|
|
34
31
|
}
|
|
35
32
|
|
|
36
33
|
module.exports = versionDeleteCommand;
|
|
37
34
|
//# sourceMappingURL=out.js.map
|
|
38
|
-
//# sourceMappingURL=versionDeleteCommand-
|
|
35
|
+
//# sourceMappingURL=versionDeleteCommand-S4M6DRHC.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":";;;;;;;;;;;;AAiBA,SAAS,eAAe;AACxB,SAAS,gBAAgB;AAGzB,eAAO,qBAA4C;AAAA,EACjD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,MAAI,CAAC,KAAK;AACR,UAAM,YAAY,MAAM,QAAQ,OAAO,+CAA+C,OAAO;AAAA,EAAM,SAAS,QAAQ,+BAA+B,CAAC,IAAI;AAAA,MACtJ,MAAM;AAAA,IACR,CAAC;AACD,uBAAmB,SAAS;AAAA,EAC9B;AACA,UAAQ,MAAM,oBAAoB,OAAO,EAAE;AAC3C,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,QAAM,iCAAuB,qBAAqB,WAAW,aAAa,OAAO;AACjF,UAAQ,QAAQ,mBAAmB,OAAO,EAAE;AAC9C","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 { handlePromptCancel } from \"../../../../consola/handlePromptCancel.js\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionDeleteCommand({\n version,\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 delete the version ${version}?\\n${colorize(\"bold\", \"This action cannot be undone.\")}`, {\n type: \"confirm\"\n });\n handlePromptCancel(confirmed);\n }\n consola.start(`Deleting version ${version}`);\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n await thirdPartyApplications.deleteWebsiteVersion(clientCtx, application, version);\n consola.success(`Deleted version ${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';
|
|
@@ -24,13 +24,10 @@ ${colorize("bold", "This action cannot be undone.")}`, {
|
|
|
24
24
|
const loadedToken = await loadToken(token, tokenFile);
|
|
25
25
|
const tokenProvider = () => loadedToken;
|
|
26
26
|
const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
|
|
27
|
-
await
|
|
28
|
-
application,
|
|
29
|
-
version
|
|
30
|
-
});
|
|
27
|
+
await third_party_applications_exports.deleteWebsiteVersion(clientCtx, application, version);
|
|
31
28
|
consola.success(`Deleted version ${version}`);
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
export { versionDeleteCommand as default };
|
|
35
32
|
//# sourceMappingURL=out.js.map
|
|
36
|
-
//# sourceMappingURL=versionDeleteCommand-
|
|
33
|
+
//# sourceMappingURL=versionDeleteCommand-ZVUTRBQE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":";;;;;;;;;;;;AAiBA,SAAS,eAAe;AACxB,SAAS,gBAAgB;AAGzB,eAAO,qBAA4C;AAAA,EACjD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,MAAI,CAAC,KAAK;AACR,UAAM,YAAY,MAAM,QAAQ,OAAO,+CAA+C,OAAO;AAAA,EAAM,SAAS,QAAQ,+BAA+B,CAAC,IAAI;AAAA,MACtJ,MAAM;AAAA,IACR,CAAC;AACD,uBAAmB,SAAS;AAAA,EAC9B;AACA,UAAQ,MAAM,oBAAoB,OAAO,EAAE;AAC3C,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,QAAM,iCAAuB,qBAAqB,WAAW,aAAa,OAAO;AACjF,UAAQ,QAAQ,mBAAmB,OAAO,EAAE;AAC9C","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 { handlePromptCancel } from \"../../../../consola/handlePromptCancel.js\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionDeleteCommand({\n version,\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 delete the version ${version}?\\n${colorize(\"bold\", \"This action cannot be undone.\")}`, {\n type: \"confirm\"\n });\n handlePromptCancel(confirmed);\n }\n consola.start(`Deleting version ${version}`);\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n await thirdPartyApplications.deleteWebsiteVersion(clientCtx, application, version);\n consola.success(`Deleted version ${version}`);\n}"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 versionGetCommand({
|
|
9
|
+
foundryUrl,
|
|
10
|
+
application,
|
|
11
|
+
token,
|
|
12
|
+
tokenFile
|
|
13
|
+
}) {
|
|
14
|
+
const loadedToken = await chunkQVFWI7JV_cjs.loadToken(token, tokenFile);
|
|
15
|
+
const tokenProvider = () => loadedToken;
|
|
16
|
+
const clientCtx = chunkQVFWI7JV_cjs.createInternalClientContext(foundryUrl, tokenProvider);
|
|
17
|
+
consola.consola.start("Getting live version");
|
|
18
|
+
const deployment = await chunkQVFWI7JV_cjs.third_party_applications_exports.getWebsiteDeployment(clientCtx, application);
|
|
19
|
+
if (!deployment) {
|
|
20
|
+
consola.consola.info("No live site version set");
|
|
21
|
+
} else {
|
|
22
|
+
consola.consola.success(`Live site version is ${deployment.version}`);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
module.exports = versionGetCommand;
|
|
27
|
+
//# sourceMappingURL=out.js.map
|
|
28
|
+
//# sourceMappingURL=versionGetCommand-C2BMDIVV.cjs.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,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 = chunk2KJDB4YP_cjs.createConjureContext(foundryUrl, "/artifacts/api", tokenProvider);
|
|
30
|
-
await chunk2KJDB4YP_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}"]}
|
|
@@ -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 +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"}
|