@osdk/cli 0.18.0 → 0.19.0-main-20240430161814
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/build/js/{chunk-7KPWDWPW.mjs → chunk-7662SBGP.mjs} +39 -39
- package/build/js/chunk-7662SBGP.mjs.map +1 -0
- package/build/js/{chunk-BV25PWLB.cjs → chunk-SD336GMJ.cjs} +39 -39
- package/build/js/chunk-SD336GMJ.cjs.map +1 -0
- package/build/js/{handleGenerate-O475QVDP-LPHRGOCS.mjs → handleGenerate-HUGJUFF2-FLKB6BT3.mjs} +4 -4
- package/build/js/handleGenerate-HUGJUFF2-FLKB6BT3.mjs.map +1 -0
- package/build/js/{handleGenerate-O475QVDP-36H6I4K6.cjs → handleGenerate-HUGJUFF2-KQARD36X.cjs} +4 -4
- package/build/js/handleGenerate-HUGJUFF2-KQARD36X.cjs.map +1 -0
- package/build/js/index.cjs +8 -8
- package/build/js/index.cjs.map +1 -1
- package/build/js/index.mjs +8 -8
- package/build/js/index.mjs.map +1 -1
- package/build/js/{siteDeployCommand-WFDCTRE4.cjs → siteDeployCommand-GHNKC6RW.cjs} +9 -9
- package/build/js/siteDeployCommand-GHNKC6RW.cjs.map +1 -0
- package/build/js/{siteDeployCommand-BPKA37JG.mjs → siteDeployCommand-U6T4L2WN.mjs} +7 -7
- package/build/js/siteDeployCommand-U6T4L2WN.mjs.map +1 -0
- package/build/js/{versionDeleteCommand-OPW5GZJ7.cjs → versionDeleteCommand-BM3IM2CS.cjs} +5 -5
- package/build/js/versionDeleteCommand-BM3IM2CS.cjs.map +1 -0
- package/build/js/{versionDeleteCommand-Q6PV5OHT.mjs → versionDeleteCommand-CWOKGJ36.mjs} +3 -3
- package/build/js/versionDeleteCommand-CWOKGJ36.mjs.map +1 -0
- package/build/js/versionGetCommand-3JHQDWOZ.cjs +29 -0
- package/build/js/versionGetCommand-3JHQDWOZ.cjs.map +1 -0
- package/build/js/{versionGetCommand-X33VP7PZ.mjs → versionGetCommand-AUF23L76.mjs} +6 -5
- package/build/js/versionGetCommand-AUF23L76.mjs.map +1 -0
- package/build/js/{versionListCommand-MTMK4ZO7.cjs → versionListCommand-5ZDWGLEA.cjs} +6 -6
- package/build/js/versionListCommand-5ZDWGLEA.cjs.map +1 -0
- package/build/js/{versionListCommand-T2K6FMFG.mjs → versionListCommand-JBBL63SC.mjs} +4 -4
- package/build/js/versionListCommand-JBBL63SC.mjs.map +1 -0
- package/build/js/{versionSetCommand-EVMFV4VA.cjs → versionSetCommand-TKEVZJ33.cjs} +5 -5
- package/build/js/versionSetCommand-TKEVZJ33.cjs.map +1 -0
- package/build/js/{versionSetCommand-KM3YB43Q.mjs → versionSetCommand-YDU2OFIV.mjs} +3 -3
- package/build/js/versionSetCommand-YDU2OFIV.mjs.map +1 -0
- package/build/js/{versionUnsetCommand-BEU52IRT.cjs → versionUnsetCommand-BI7LZW2M.cjs} +5 -5
- package/build/js/{versionUnsetCommand-BEU52IRT.cjs.map → versionUnsetCommand-BI7LZW2M.cjs.map} +1 -1
- package/build/js/{versionUnsetCommand-MZD3D2VF.mjs → versionUnsetCommand-L4OY7JLA.mjs} +3 -3
- package/build/js/{versionUnsetCommand-MZD3D2VF.mjs.map → versionUnsetCommand-L4OY7JLA.mjs.map} +1 -1
- package/build/types/commands/site/version/get/versionGetCommand.d.mts.map +1 -1
- package/build/types/net/third-party-applications/DeployWebsiteRequest.d.mts +4 -0
- package/build/types/net/third-party-applications/DeployWebsiteRequest.d.mts.map +1 -0
- package/build/types/net/third-party-applications/ListVersionsResponse.d.mts +6 -0
- package/build/types/net/third-party-applications/ListVersionsResponse.d.mts.map +1 -0
- package/build/types/net/third-party-applications/Version.d.mts +4 -0
- package/build/types/net/third-party-applications/Version.d.mts.map +1 -0
- package/build/types/net/third-party-applications/Website.d.mts +5 -0
- package/build/types/net/third-party-applications/Website.d.mts.map +1 -0
- package/build/types/net/third-party-applications/deleteVersion.d.mts +4 -0
- package/build/types/net/third-party-applications/deleteVersion.d.mts.map +1 -0
- package/build/types/net/third-party-applications/deployWebsite.d.mts +6 -0
- package/build/types/net/third-party-applications/deployWebsite.d.mts.map +1 -0
- package/build/types/net/third-party-applications/getWebsite.d.mts +5 -0
- package/build/types/net/third-party-applications/getWebsite.d.mts.map +1 -0
- package/build/types/net/third-party-applications/index.d.mts +10 -10
- package/build/types/net/third-party-applications/index.d.mts.map +1 -1
- package/build/types/net/third-party-applications/listVersions.d.mts +5 -0
- package/build/types/net/third-party-applications/listVersions.d.mts.map +1 -0
- package/build/types/net/third-party-applications/undeployWebsite.d.mts +4 -0
- package/build/types/net/third-party-applications/undeployWebsite.d.mts.map +1 -0
- package/build/types/net/third-party-applications/uploadVersion.d.mts +5 -0
- package/build/types/net/third-party-applications/uploadVersion.d.mts.map +1 -0
- package/package.json +9 -12
- package/build/js/chunk-7KPWDWPW.mjs.map +0 -1
- package/build/js/chunk-BV25PWLB.cjs.map +0 -1
- package/build/js/handleGenerate-O475QVDP-36H6I4K6.cjs.map +0 -1
- package/build/js/handleGenerate-O475QVDP-LPHRGOCS.mjs.map +0 -1
- package/build/js/siteDeployCommand-BPKA37JG.mjs.map +0 -1
- package/build/js/siteDeployCommand-WFDCTRE4.cjs.map +0 -1
- package/build/js/versionDeleteCommand-OPW5GZJ7.cjs.map +0 -1
- package/build/js/versionDeleteCommand-Q6PV5OHT.mjs.map +0 -1
- package/build/js/versionGetCommand-X33VP7PZ.mjs.map +0 -1
- package/build/js/versionGetCommand-XNI4OY7J.cjs +0 -28
- package/build/js/versionGetCommand-XNI4OY7J.cjs.map +0 -1
- package/build/js/versionListCommand-MTMK4ZO7.cjs.map +0 -1
- package/build/js/versionListCommand-T2K6FMFG.mjs.map +0 -1
- package/build/js/versionSetCommand-EVMFV4VA.cjs.map +0 -1
- package/build/js/versionSetCommand-KM3YB43Q.mjs.map +0 -1
- package/build/types/net/third-party-applications/ListWebsiteVersionsResponse.d.mts +0 -6
- package/build/types/net/third-party-applications/ListWebsiteVersionsResponse.d.mts.map +0 -1
- package/build/types/net/third-party-applications/UpdateWebsiteDeploymentRequest.d.mts +0 -4
- package/build/types/net/third-party-applications/UpdateWebsiteDeploymentRequest.d.mts.map +0 -1
- package/build/types/net/third-party-applications/WebsiteDeployment.d.mts +0 -5
- package/build/types/net/third-party-applications/WebsiteDeployment.d.mts.map +0 -1
- package/build/types/net/third-party-applications/WebsiteVersion.d.mts +0 -4
- package/build/types/net/third-party-applications/WebsiteVersion.d.mts.map +0 -1
- package/build/types/net/third-party-applications/deleteWebsiteDeployment.d.mts +0 -4
- package/build/types/net/third-party-applications/deleteWebsiteDeployment.d.mts.map +0 -1
- package/build/types/net/third-party-applications/deleteWebsiteVersion.d.mts +0 -4
- package/build/types/net/third-party-applications/deleteWebsiteVersion.d.mts.map +0 -1
- package/build/types/net/third-party-applications/getWebsiteDeployment.d.mts +0 -5
- package/build/types/net/third-party-applications/getWebsiteDeployment.d.mts.map +0 -1
- package/build/types/net/third-party-applications/listWebsiteVersions.d.mts +0 -5
- package/build/types/net/third-party-applications/listWebsiteVersions.d.mts.map +0 -1
- package/build/types/net/third-party-applications/updateWebsiteDeployment.d.mts +0 -6
- package/build/types/net/third-party-applications/updateWebsiteDeployment.d.mts.map +0 -1
- package/build/types/net/third-party-applications/uploadWebsiteVersion.d.mts +0 -5
- package/build/types/net/third-party-applications/uploadWebsiteVersion.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.uploadVersion(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 website = await thirdPartyApplications.deployWebsite(clientCtx, application, {\n version: siteVersion\n });\n consola.success(`Deployed ${siteVersion} successfully`);\n const domain = website.subdomains[0];\n if (domain != null) {\n logSiteLink(\"View live site:\", `https://${domain}`);\n }\n } else {\n const website = await thirdPartyApplications.getWebsite(clientCtx, application);\n const domain = website?.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,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkDQYIDDJN_cjs = require('./chunk-DQYIDDJN.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkSD336GMJ_cjs = require('./chunk-SD336GMJ.cjs');
|
|
5
5
|
require('./chunk-467BAS7X.cjs');
|
|
6
6
|
require('./chunk-HQDDGVB7.cjs');
|
|
7
7
|
var consola = require('consola');
|
|
@@ -23,13 +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 chunkSD336GMJ_cjs.loadToken(token, tokenFile);
|
|
27
27
|
const tokenProvider = () => loadedToken;
|
|
28
|
-
const clientCtx =
|
|
29
|
-
await
|
|
28
|
+
const clientCtx = chunkSD336GMJ_cjs.createInternalClientContext(foundryUrl, tokenProvider);
|
|
29
|
+
await chunkSD336GMJ_cjs.third_party_applications_exports.deleteVersion(clientCtx, application, version);
|
|
30
30
|
consola.consola.success(`Deleted version ${version}`);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
module.exports = versionDeleteCommand;
|
|
34
34
|
//# sourceMappingURL=out.js.map
|
|
35
|
-
//# sourceMappingURL=versionDeleteCommand-
|
|
35
|
+
//# sourceMappingURL=versionDeleteCommand-BM3IM2CS.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,cAAc,WAAW,aAAa,OAAO;AAC1E,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.deleteVersion(clientCtx, application, version);\n consola.success(`Deleted version ${version}`);\n}"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { handlePromptCancel } from './chunk-IV3QY3PZ.mjs';
|
|
2
|
-
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-
|
|
2
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-7662SBGP.mjs';
|
|
3
3
|
import './chunk-CWMSASIM.mjs';
|
|
4
4
|
import './chunk-E2SEJZTC.mjs';
|
|
5
5
|
import { consola } from 'consola';
|
|
@@ -24,10 +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 third_party_applications_exports.
|
|
27
|
+
await third_party_applications_exports.deleteVersion(clientCtx, application, version);
|
|
28
28
|
consola.success(`Deleted version ${version}`);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export { versionDeleteCommand as default };
|
|
32
32
|
//# sourceMappingURL=out.js.map
|
|
33
|
-
//# sourceMappingURL=versionDeleteCommand-
|
|
33
|
+
//# sourceMappingURL=versionDeleteCommand-CWOKGJ36.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,cAAc,WAAW,aAAa,OAAO;AAC1E,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.deleteVersion(clientCtx, application, version);\n consola.success(`Deleted version ${version}`);\n}"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkSD336GMJ_cjs = require('./chunk-SD336GMJ.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 chunkSD336GMJ_cjs.loadToken(token, tokenFile);
|
|
15
|
+
const tokenProvider = () => loadedToken;
|
|
16
|
+
const clientCtx = chunkSD336GMJ_cjs.createInternalClientContext(foundryUrl, tokenProvider);
|
|
17
|
+
consola.consola.start("Getting live version");
|
|
18
|
+
const website = await chunkSD336GMJ_cjs.third_party_applications_exports.getWebsite(clientCtx, application);
|
|
19
|
+
const deployedVersion = website?.deployedVersion;
|
|
20
|
+
if (!deployedVersion) {
|
|
21
|
+
consola.consola.info("No live site version set");
|
|
22
|
+
} else {
|
|
23
|
+
consola.consola.success(`Live site version is ${deployedVersion}`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
module.exports = versionGetCommand;
|
|
28
|
+
//# sourceMappingURL=out.js.map
|
|
29
|
+
//# sourceMappingURL=versionGetCommand-3JHQDWOZ.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,UAAU,MAAM,iCAAuB,WAAW,WAAW,WAAW;AAC9E,QAAM,kBAAkB,SAAS;AACjC,MAAI,CAAC,iBAAiB;AACpB,YAAQ,KAAK,0BAA0B;AAAA,EACzC,OAAO;AACL,YAAQ,QAAQ,wBAAwB,eAAe,EAAE;AAAA,EAC3D;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 website = await thirdPartyApplications.getWebsite(clientCtx, application);\n const deployedVersion = website?.deployedVersion;\n if (!deployedVersion) {\n consola.info(\"No live site version set\");\n } else {\n consola.success(`Live site version is ${deployedVersion}`);\n }\n}"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-
|
|
1
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-7662SBGP.mjs';
|
|
2
2
|
import './chunk-CWMSASIM.mjs';
|
|
3
3
|
import './chunk-E2SEJZTC.mjs';
|
|
4
4
|
import { consola } from 'consola';
|
|
@@ -13,14 +13,15 @@ async function versionGetCommand({
|
|
|
13
13
|
const tokenProvider = () => loadedToken;
|
|
14
14
|
const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
|
|
15
15
|
consola.start("Getting live version");
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const website = await third_party_applications_exports.getWebsite(clientCtx, application);
|
|
17
|
+
const deployedVersion = website?.deployedVersion;
|
|
18
|
+
if (!deployedVersion) {
|
|
18
19
|
consola.info("No live site version set");
|
|
19
20
|
} else {
|
|
20
|
-
consola.success(`Live site version is ${
|
|
21
|
+
consola.success(`Live site version is ${deployedVersion}`);
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
export { versionGetCommand as default };
|
|
25
26
|
//# sourceMappingURL=out.js.map
|
|
26
|
-
//# sourceMappingURL=versionGetCommand-
|
|
27
|
+
//# sourceMappingURL=versionGetCommand-AUF23L76.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,UAAU,MAAM,iCAAuB,WAAW,WAAW,WAAW;AAC9E,QAAM,kBAAkB,SAAS;AACjC,MAAI,CAAC,iBAAiB;AACpB,YAAQ,KAAK,0BAA0B;AAAA,EACzC,OAAO;AACL,YAAQ,QAAQ,wBAAwB,eAAe,EAAE;AAAA,EAC3D;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 website = await thirdPartyApplications.getWebsite(clientCtx, application);\n const deployedVersion = website?.deployedVersion;\n if (!deployedVersion) {\n consola.info(\"No live site version set\");\n } else {\n consola.success(`Live site version is ${deployedVersion}`);\n }\n}"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSD336GMJ_cjs = require('./chunk-SD336GMJ.cjs');
|
|
4
4
|
require('./chunk-467BAS7X.cjs');
|
|
5
5
|
require('./chunk-HQDDGVB7.cjs');
|
|
6
6
|
var consola = require('consola');
|
|
@@ -12,11 +12,11 @@ async function versionListCommand({
|
|
|
12
12
|
token,
|
|
13
13
|
tokenFile
|
|
14
14
|
}) {
|
|
15
|
-
const loadedToken = await
|
|
15
|
+
const loadedToken = await chunkSD336GMJ_cjs.loadToken(token, tokenFile);
|
|
16
16
|
const tokenProvider = () => loadedToken;
|
|
17
|
-
const clientCtx =
|
|
17
|
+
const clientCtx = chunkSD336GMJ_cjs.createInternalClientContext(foundryUrl, tokenProvider);
|
|
18
18
|
consola.consola.start("Fetching versions & deployed version");
|
|
19
|
-
const [versions,
|
|
19
|
+
const [versions, website] = await Promise.all([chunkSD336GMJ_cjs.third_party_applications_exports.listVersions(clientCtx, application), chunkSD336GMJ_cjs.third_party_applications_exports.getWebsite(clientCtx, application)]);
|
|
20
20
|
if (versions.data.length === 0) {
|
|
21
21
|
consola.consola.info("No site versions found");
|
|
22
22
|
return;
|
|
@@ -25,10 +25,10 @@ async function versionListCommand({
|
|
|
25
25
|
const semver = await import('semver');
|
|
26
26
|
const sortedVersions = semver.rsort(versions.data.map((v) => v.version).filter((v) => semver.valid(v)));
|
|
27
27
|
for (const version of sortedVersions) {
|
|
28
|
-
consola.consola.log(` - ${version}${
|
|
28
|
+
consola.consola.log(` - ${version}${website?.deployedVersion && version === website?.deployedVersion ? utils.colorize("green", ` (deployed)`) : ""}`);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
module.exports = versionListCommand;
|
|
33
33
|
//# sourceMappingURL=out.js.map
|
|
34
|
-
//# sourceMappingURL=versionListCommand-
|
|
34
|
+
//# sourceMappingURL=versionListCommand-5ZDWGLEA.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,OAAO,IAAI,MAAM,QAAQ,IAAI,CAAC,iCAAuB,aAAa,WAAW,WAAW,GAAG,iCAAuB,WAAW,WAAW,WAAW,CAAC,CAAC;AACtK,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,SAAS,mBAAmB,YAAY,SAAS,kBAAkB,SAAS,SAAS,aAAa,IAAI,EAAE,EAAE;AAAA,EAC3I;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, website] = await Promise.all([thirdPartyApplications.listVersions(clientCtx, application), thirdPartyApplications.getWebsite(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}${website?.deployedVersion && version === website?.deployedVersion ? colorize(\"green\", ` (deployed)`) : \"\"}`);\n }\n}"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-
|
|
1
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-7662SBGP.mjs';
|
|
2
2
|
import './chunk-CWMSASIM.mjs';
|
|
3
3
|
import './chunk-E2SEJZTC.mjs';
|
|
4
4
|
import { consola } from 'consola';
|
|
@@ -14,7 +14,7 @@ async function versionListCommand({
|
|
|
14
14
|
const tokenProvider = () => loadedToken;
|
|
15
15
|
const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
|
|
16
16
|
consola.start("Fetching versions & deployed version");
|
|
17
|
-
const [versions,
|
|
17
|
+
const [versions, website] = await Promise.all([third_party_applications_exports.listVersions(clientCtx, application), third_party_applications_exports.getWebsite(clientCtx, application)]);
|
|
18
18
|
if (versions.data.length === 0) {
|
|
19
19
|
consola.info("No site versions found");
|
|
20
20
|
return;
|
|
@@ -23,10 +23,10 @@ async function versionListCommand({
|
|
|
23
23
|
const semver = await import('semver');
|
|
24
24
|
const sortedVersions = semver.rsort(versions.data.map((v) => v.version).filter((v) => semver.valid(v)));
|
|
25
25
|
for (const version of sortedVersions) {
|
|
26
|
-
consola.log(` - ${version}${
|
|
26
|
+
consola.log(` - ${version}${website?.deployedVersion && version === website?.deployedVersion ? colorize("green", ` (deployed)`) : ""}`);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export { versionListCommand as default };
|
|
31
31
|
//# sourceMappingURL=out.js.map
|
|
32
|
-
//# sourceMappingURL=versionListCommand-
|
|
32
|
+
//# sourceMappingURL=versionListCommand-JBBL63SC.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,OAAO,IAAI,MAAM,QAAQ,IAAI,CAAC,iCAAuB,aAAa,WAAW,WAAW,GAAG,iCAAuB,WAAW,WAAW,WAAW,CAAC,CAAC;AACtK,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,SAAS,mBAAmB,YAAY,SAAS,kBAAkB,SAAS,SAAS,aAAa,IAAI,EAAE,EAAE;AAAA,EAC3I;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, website] = await Promise.all([thirdPartyApplications.listVersions(clientCtx, application), thirdPartyApplications.getWebsite(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}${website?.deployedVersion && version === website?.deployedVersion ? colorize(\"green\", ` (deployed)`) : \"\"}`);\n }\n}"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSD336GMJ_cjs = require('./chunk-SD336GMJ.cjs');
|
|
4
4
|
require('./chunk-467BAS7X.cjs');
|
|
5
5
|
require('./chunk-HQDDGVB7.cjs');
|
|
6
6
|
var consola = require('consola');
|
|
@@ -13,11 +13,11 @@ async function versionSetCommand({
|
|
|
13
13
|
tokenFile
|
|
14
14
|
}) {
|
|
15
15
|
consola.consola.start(`Setting live version`);
|
|
16
|
-
const loadedToken = await
|
|
16
|
+
const loadedToken = await chunkSD336GMJ_cjs.loadToken(token, tokenFile);
|
|
17
17
|
const tokenProvider = () => loadedToken;
|
|
18
|
-
const clientCtx =
|
|
18
|
+
const clientCtx = chunkSD336GMJ_cjs.createInternalClientContext(foundryUrl, tokenProvider);
|
|
19
19
|
if (version) {
|
|
20
|
-
await
|
|
20
|
+
await chunkSD336GMJ_cjs.third_party_applications_exports.deployWebsite(clientCtx, application, {
|
|
21
21
|
version
|
|
22
22
|
});
|
|
23
23
|
}
|
|
@@ -26,4 +26,4 @@ async function versionSetCommand({
|
|
|
26
26
|
|
|
27
27
|
module.exports = versionSetCommand;
|
|
28
28
|
//# sourceMappingURL=out.js.map
|
|
29
|
-
//# sourceMappingURL=versionSetCommand-
|
|
29
|
+
//# sourceMappingURL=versionSetCommand-TKEVZJ33.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,cAAc,WAAW,aAAa;AAAA,MACjE;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.deployWebsite(clientCtx, application, {\n version\n });\n }\n consola.success(`Set live version to ${version}`);\n}"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-
|
|
1
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-7662SBGP.mjs';
|
|
2
2
|
import './chunk-CWMSASIM.mjs';
|
|
3
3
|
import './chunk-E2SEJZTC.mjs';
|
|
4
4
|
import { consola } from 'consola';
|
|
@@ -15,7 +15,7 @@ async function versionSetCommand({
|
|
|
15
15
|
const tokenProvider = () => loadedToken;
|
|
16
16
|
const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
|
|
17
17
|
if (version) {
|
|
18
|
-
await third_party_applications_exports.
|
|
18
|
+
await third_party_applications_exports.deployWebsite(clientCtx, application, {
|
|
19
19
|
version
|
|
20
20
|
});
|
|
21
21
|
}
|
|
@@ -24,4 +24,4 @@ async function versionSetCommand({
|
|
|
24
24
|
|
|
25
25
|
export { versionSetCommand as default };
|
|
26
26
|
//# sourceMappingURL=out.js.map
|
|
27
|
-
//# sourceMappingURL=versionSetCommand-
|
|
27
|
+
//# sourceMappingURL=versionSetCommand-YDU2OFIV.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,cAAc,WAAW,aAAa;AAAA,MACjE;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.deployWebsite(clientCtx, application, {\n version\n });\n }\n consola.success(`Set live version to ${version}`);\n}"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkDQYIDDJN_cjs = require('./chunk-DQYIDDJN.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkSD336GMJ_cjs = require('./chunk-SD336GMJ.cjs');
|
|
5
5
|
require('./chunk-467BAS7X.cjs');
|
|
6
6
|
require('./chunk-HQDDGVB7.cjs');
|
|
7
7
|
var consola = require('consola');
|
|
@@ -21,14 +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 chunkSD336GMJ_cjs.loadToken(token, tokenFile);
|
|
25
25
|
const tokenProvider = () => loadedToken;
|
|
26
|
-
const clientCtx =
|
|
26
|
+
const clientCtx = chunkSD336GMJ_cjs.createInternalClientContext(foundryUrl, tokenProvider);
|
|
27
27
|
consola.consola.start("Clearing live site version");
|
|
28
|
-
await
|
|
28
|
+
await chunkSD336GMJ_cjs.third_party_applications_exports.undeployWebsite(clientCtx, application);
|
|
29
29
|
consola.consola.success("Cleared live site version");
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
module.exports = versionUnsetCommand;
|
|
33
33
|
//# sourceMappingURL=out.js.map
|
|
34
|
-
//# sourceMappingURL=versionUnsetCommand-
|
|
34
|
+
//# sourceMappingURL=versionUnsetCommand-BI7LZW2M.cjs.map
|
package/build/js/{versionUnsetCommand-BEU52IRT.cjs.map → versionUnsetCommand-BI7LZW2M.cjs.map}
RENAMED
|
@@ -1 +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,
|
|
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,gBAAgB,WAAW,WAAW;AACnE,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.undeployWebsite(clientCtx, application);\n consola.success(\"Cleared live site version\");\n}"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { handlePromptCancel } from './chunk-IV3QY3PZ.mjs';
|
|
2
|
-
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-
|
|
2
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-7662SBGP.mjs';
|
|
3
3
|
import './chunk-CWMSASIM.mjs';
|
|
4
4
|
import './chunk-E2SEJZTC.mjs';
|
|
5
5
|
import { consola } from 'consola';
|
|
@@ -23,10 +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
|
-
await third_party_applications_exports.
|
|
26
|
+
await third_party_applications_exports.undeployWebsite(clientCtx, application);
|
|
27
27
|
consola.success("Cleared live site version");
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export { versionUnsetCommand as default };
|
|
31
31
|
//# sourceMappingURL=out.js.map
|
|
32
|
-
//# sourceMappingURL=versionUnsetCommand-
|
|
32
|
+
//# sourceMappingURL=versionUnsetCommand-L4OY7JLA.mjs.map
|
package/build/js/{versionUnsetCommand-MZD3D2VF.mjs.map → versionUnsetCommand-L4OY7JLA.mjs.map}
RENAMED
|
@@ -1 +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,
|
|
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,gBAAgB,WAAW,WAAW;AACnE,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.undeployWebsite(clientCtx, application);\n consola.success(\"Cleared live site version\");\n}"]}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,iBAkB9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeployWebsiteRequest.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/DeployWebsiteRequest.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListVersionsResponse.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/ListVersionsResponse.mts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Version.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/Version.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Website.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/Website.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,OAAO;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
+
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
+
export declare function deleteVersion(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid, version: string): Promise<void>;
|
|
4
|
+
//# sourceMappingURL=deleteVersion.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteVersion.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/deleteVersion.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,wBAAsB,aAAa,CACjC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAWf"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
+
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
+
import type { DeployWebsiteRequest } from "./DeployWebsiteRequest.mjs";
|
|
4
|
+
import type { Website } from "./Website.mjs";
|
|
5
|
+
export declare function deployWebsite(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid, request: DeployWebsiteRequest): Promise<Website>;
|
|
6
|
+
//# sourceMappingURL=deployWebsite.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployWebsite.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/deployWebsite.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,wBAAsB,aAAa,CACjC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,OAAO,CAAC,CAgBlB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
+
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
+
import type { Website } from "./Website.mjs";
|
|
4
|
+
export declare function getWebsite(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<Website | undefined>;
|
|
5
|
+
//# sourceMappingURL=getWebsite.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWebsite.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/getWebsite.mts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,wBAAsB,UAAU,CAC9B,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAmB9B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export
|
|
6
|
-
export {
|
|
7
|
-
export
|
|
8
|
-
export {
|
|
9
|
-
export type {
|
|
10
|
-
export type {
|
|
1
|
+
export { deleteVersion } from "./deleteVersion.mjs";
|
|
2
|
+
export { deployWebsite } from "./deployWebsite.mjs";
|
|
3
|
+
export type { DeployWebsiteRequest } from "./DeployWebsiteRequest.mjs";
|
|
4
|
+
export { getWebsite } from "./getWebsite.mjs";
|
|
5
|
+
export { listVersions } from "./listVersions.mjs";
|
|
6
|
+
export type { ListVersionsResponse } from "./ListVersionsResponse.mjs";
|
|
7
|
+
export { undeployWebsite } from "./undeployWebsite.mjs";
|
|
8
|
+
export { uploadVersion } from "./uploadVersion.mjs";
|
|
9
|
+
export type { Version } from "./Version.mjs";
|
|
10
|
+
export type { Website } from "./Website.mjs";
|
|
11
11
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/index.mts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/index.mts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,YAAY,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
+
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
+
import type { ListVersionsResponse } from "./ListVersionsResponse.mjs";
|
|
4
|
+
export declare function listVersions(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<ListVersionsResponse>;
|
|
5
|
+
//# sourceMappingURL=listVersions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listVersions.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/listVersions.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,wBAAsB,YAAY,CAChC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,oBAAoB,CAAC,CAO/B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
+
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
+
export declare function undeployWebsite(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<void>;
|
|
4
|
+
//# sourceMappingURL=undeployWebsite.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"undeployWebsite.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/undeployWebsite.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,wBAAsB,eAAe,CACnC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,IAAI,CAAC,CAWf"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
2
|
+
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
3
|
+
import type { Version } from "./Version.mjs";
|
|
4
|
+
export declare function uploadVersion(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid, version: string, zipFile: ReadableStream | Blob | BufferSource): Promise<Version>;
|
|
5
|
+
//# sourceMappingURL=uploadVersion.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploadVersion.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/uploadVersion.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,wBAAsB,aAAa,CACjC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,GAAG,IAAI,GAAG,YAAY,GAC5C,OAAO,CAAC,OAAO,CAAC,CAiBlB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0-main-20240430161814",
|
|
4
4
|
"description": "",
|
|
5
5
|
"access": "public",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -11,13 +11,11 @@
|
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
13
|
"types": "./build/types/index.d.ts",
|
|
14
|
-
"import": "./build/js/index.mjs"
|
|
15
|
-
"require": "./build/js/index.cjs"
|
|
14
|
+
"import": "./build/js/index.mjs"
|
|
16
15
|
},
|
|
17
16
|
"./*": {
|
|
18
17
|
"types": "./build/types/public/*.d.ts",
|
|
19
|
-
"import": "./build/js/public/*.mjs"
|
|
20
|
-
"require": "./build/js/public/*.cjs"
|
|
18
|
+
"import": "./build/js/public/*.mjs"
|
|
21
19
|
}
|
|
22
20
|
},
|
|
23
21
|
"dependencies": {
|
|
@@ -27,7 +25,7 @@
|
|
|
27
25
|
"conjure-lite": "^0.3.3",
|
|
28
26
|
"consola": "^3.2.3",
|
|
29
27
|
"find-up": "^7.0.0",
|
|
30
|
-
"open": "^
|
|
28
|
+
"open": "^10.1.0",
|
|
31
29
|
"semver": "^7.6.0",
|
|
32
30
|
"tslib": "^2.6.2",
|
|
33
31
|
"yargs": "^17.7.2",
|
|
@@ -37,15 +35,15 @@
|
|
|
37
35
|
"@osdk/shared.net": "^1.10.0"
|
|
38
36
|
},
|
|
39
37
|
"devDependencies": {
|
|
40
|
-
"@types/archiver": "^6.0.
|
|
38
|
+
"@types/archiver": "^6.0.2",
|
|
41
39
|
"@types/ngeohash": "^0.6.4",
|
|
42
40
|
"@types/node": "^18.0.0",
|
|
43
|
-
"@types/semver": "^7.5.
|
|
41
|
+
"@types/semver": "^7.5.8",
|
|
44
42
|
"@types/yargs": "^17.0.29",
|
|
45
43
|
"ts-expect": "^1.3.0",
|
|
46
|
-
"typescript": "^5.4.
|
|
47
|
-
"@osdk/cli.cmd.typescript": "^0.
|
|
48
|
-
"@osdk/cli.common": "^0.
|
|
44
|
+
"typescript": "^5.4.5",
|
|
45
|
+
"@osdk/cli.cmd.typescript": "^0.2.0-main-20240430161814",
|
|
46
|
+
"@osdk/cli.common": "^0.2.0-main-20240430161814"
|
|
49
47
|
},
|
|
50
48
|
"publishConfig": {
|
|
51
49
|
"access": "public"
|
|
@@ -65,7 +63,6 @@
|
|
|
65
63
|
"templates",
|
|
66
64
|
"*.d.ts"
|
|
67
65
|
],
|
|
68
|
-
"main": "./build/js/index.cjs",
|
|
69
66
|
"module": "./build/js/index.mjs",
|
|
70
67
|
"types": "./build/types/index.d.ts",
|
|
71
68
|
"type": "module",
|