@osdk/cli 0.0.16 → 0.0.17
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 +10 -0
- package/build/js/chunk-2DZBTS5E.cjs +129 -0
- package/build/js/chunk-2DZBTS5E.cjs.map +1 -0
- package/build/js/chunk-CIVC2ZV3.mjs +175 -0
- package/build/js/chunk-CIVC2ZV3.mjs.map +1 -0
- package/build/js/chunk-E2SEJZTC.mjs +9 -0
- package/build/js/chunk-GTNZA5UY.mjs +11 -0
- package/build/js/chunk-GTNZA5UY.mjs.map +1 -0
- package/build/js/chunk-HQDDGVB7.cjs +11 -0
- package/build/js/chunk-HYF3CTKZ.cjs +13 -0
- package/build/js/chunk-HYF3CTKZ.cjs.map +1 -0
- package/build/js/chunk-JFDXL5SV.mjs +122 -0
- package/build/js/chunk-JFDXL5SV.mjs.map +1 -0
- package/build/js/chunk-VZM34PGO.cjs +180 -0
- package/build/js/chunk-VZM34PGO.cjs.map +1 -0
- package/build/js/handleGenerate-ER4YF43Z.mjs +89 -0
- package/build/js/handleGenerate-ER4YF43Z.mjs.map +1 -0
- package/build/js/handleGenerate-UTCLNZQO.cjs +111 -0
- package/build/js/handleGenerate-UTCLNZQO.cjs.map +1 -0
- package/build/js/handleSiteDeploy-7E5BNDQO.cjs +30 -0
- package/build/js/handleSiteDeploy-7E5BNDQO.cjs.map +1 -0
- package/build/js/handleSiteDeploy-ZFWLLEFU.mjs +28 -0
- package/build/js/handleSiteDeploy-ZFWLLEFU.mjs.map +1 -0
- package/build/js/index.cjs +290 -23
- package/build/js/index.cjs.map +1 -1
- package/build/js/index.mjs +273 -6
- package/build/js/index.mjs.map +1 -1
- package/build/js/loginFlow-BZDDHHT5.cjs +10 -0
- package/build/js/loginFlow-KGLTXVZ6.mjs +4 -0
- package/build/js/siteDeleteCommand-FIB7KBAY.mjs +13 -0
- package/build/js/siteDeleteCommand-FIB7KBAY.mjs.map +1 -0
- package/build/js/siteDeleteCommand-UGHBNEC4.cjs +15 -0
- package/build/js/siteDeleteCommand-UGHBNEC4.cjs.map +1 -0
- package/build/js/siteUploadCommand-5VEJTNOQ.mjs +33 -0
- package/build/js/siteUploadCommand-5VEJTNOQ.mjs.map +1 -0
- package/build/js/siteUploadCommand-OEM2U44I.cjs +58 -0
- package/build/js/siteUploadCommand-OEM2U44I.cjs.map +1 -0
- package/build/js/siteVersionsCommand-HP4IUW56.cjs +29 -0
- package/build/js/siteVersionsCommand-HP4IUW56.cjs.map +1 -0
- package/build/js/siteVersionsCommand-X666N6ZP.mjs +27 -0
- package/build/js/siteVersionsCommand-X666N6ZP.mjs.map +1 -0
- package/build/types/commands/typescript/generate/TypescriptGenerateArgs.d.ts +1 -0
- package/package.json +4 -4
- package/build/js/chunk-MGT3UGXW.mjs +0 -5
- package/build/js/chunk-MGT3UGXW.mjs.map +0 -1
- package/build/js/chunk-TSZWWATC.mjs +0 -12
- package/build/js/chunk-TSZWWATC.mjs.map +0 -1
- package/build/js/chunk-UOKM237I.cjs +0 -17
- package/build/js/chunk-UOKM237I.cjs.map +0 -1
- package/build/js/chunk-V4QJCMF6.cjs +0 -7
- package/build/js/chunk-V4QJCMF6.cjs.map +0 -1
- package/build/js/chunk-X6QW63OH.cjs +0 -7
- package/build/js/chunk-XIJ2ZQRX.mjs +0 -5
- package/build/js/chunk-YHQGXNMB.mjs +0 -13
- package/build/js/chunk-YHQGXNMB.mjs.map +0 -1
- package/build/js/chunk-Z6SJPM6K.cjs +0 -20
- package/build/js/chunk-Z6SJPM6K.cjs.map +0 -1
- package/build/js/handleGenerate-4RFQDCQF.mjs +0 -13
- package/build/js/handleGenerate-4RFQDCQF.mjs.map +0 -1
- package/build/js/handleGenerate-6FGD7TOT.cjs +0 -35
- package/build/js/handleGenerate-6FGD7TOT.cjs.map +0 -1
- package/build/js/handleSiteDeploy-257ZNTYA.cjs +0 -12
- package/build/js/handleSiteDeploy-257ZNTYA.cjs.map +0 -1
- package/build/js/handleSiteDeploy-QCMJWAYI.mjs +0 -10
- package/build/js/handleSiteDeploy-QCMJWAYI.mjs.map +0 -1
- package/build/js/loginFlow-JIH374QN.mjs +0 -4
- package/build/js/loginFlow-MPM6J3CY.cjs +0 -10
- package/build/js/siteDeleteCommand-NY5W7NE3.cjs +0 -12
- package/build/js/siteDeleteCommand-NY5W7NE3.cjs.map +0 -1
- package/build/js/siteDeleteCommand-ZKHKGVVF.mjs +0 -10
- package/build/js/siteDeleteCommand-ZKHKGVVF.mjs.map +0 -1
- package/build/js/siteUploadCommand-OHSOCUL6.cjs +0 -38
- package/build/js/siteUploadCommand-OHSOCUL6.cjs.map +0 -1
- package/build/js/siteUploadCommand-PZEJVKRE.mjs +0 -13
- package/build/js/siteUploadCommand-PZEJVKRE.mjs.map +0 -1
- package/build/js/siteVersionsCommand-IE5QH56U.cjs +0 -13
- package/build/js/siteVersionsCommand-IE5QH56U.cjs.map +0 -1
- package/build/js/siteVersionsCommand-NVJD5BDH.mjs +0 -11
- package/build/js/siteVersionsCommand-NVJD5BDH.mjs.map +0 -1
- /package/build/js/{chunk-X6QW63OH.cjs.map → chunk-E2SEJZTC.mjs.map} +0 -0
- /package/build/js/{chunk-XIJ2ZQRX.mjs.map → chunk-HQDDGVB7.cjs.map} +0 -0
- /package/build/js/{loginFlow-JIH374QN.mjs.map → loginFlow-BZDDHHT5.cjs.map} +0 -0
- /package/build/js/{loginFlow-MPM6J3CY.cjs.map → loginFlow-KGLTXVZ6.mjs.map} +0 -0
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkUOKM237I_cjs = require('./chunk-UOKM237I.cjs');
|
|
4
|
-
var chunkV4QJCMF6_cjs = require('./chunk-V4QJCMF6.cjs');
|
|
5
|
-
require('./chunk-X6QW63OH.cjs');
|
|
6
|
-
var a = require('archiver');
|
|
7
|
-
var consola = require('consola');
|
|
8
|
-
var s = require('fs');
|
|
9
|
-
var stream = require('stream');
|
|
10
|
-
|
|
11
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
function _interopNamespace(e) {
|
|
14
|
-
if (e && e.__esModule) return e;
|
|
15
|
-
var n = Object.create(null);
|
|
16
|
-
if (e) {
|
|
17
|
-
Object.keys(e).forEach(function (k) {
|
|
18
|
-
if (k !== 'default') {
|
|
19
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
20
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return e[k]; }
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
n.default = e;
|
|
28
|
-
return Object.freeze(n);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
var a__default = /*#__PURE__*/_interopDefault(a);
|
|
32
|
-
var s__namespace = /*#__PURE__*/_interopNamespace(s);
|
|
33
|
-
|
|
34
|
-
async function c(i){if(i.dir==null)throw consola.consola.error("No directory specified"),new chunkV4QJCMF6_cjs.a(1);if(!(await s__namespace.promises.stat(i.dir)).isDirectory())throw consola.consola.error("Specified path is not a directory"),new chunkV4QJCMF6_cjs.a(2);consola.consola.start("Zippping site files");let e=a__default.default("zip").directory(i.dir,!1);await Promise.all([chunkUOKM237I_cjs.b.SiteAssetArtifactsService.uploadZippedSiteAsset(i.baseUrl,i.appRid,i.siteVersion,stream.Readable.toWeb(e)),e.finalize()]),consola.consola.success("Upload complete");}
|
|
35
|
-
|
|
36
|
-
module.exports = c;
|
|
37
|
-
//# sourceMappingURL=out.js.map
|
|
38
|
-
//# sourceMappingURL=siteUploadCommand-OHSOCUL6.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/site/upload/siteUploadCommand.mts"],"names":["archiver","consola","fs","Readable","invokeSiteUpload","args","ExitProcessError","archive","artifacts_exports"],"mappings":"+GAgBA,OAAOA,MAAc,WACrB,OAAS,WAAAC,MAAe,UACxB,UAAYC,MAAQ,KACpB,OAAS,YAAAC,MAAgB,SAGzB,eAAOC,EAAwCC,EAAM,CACnD,GAAIA,EAAK,KAAO,KACd,MAAAJ,EAAQ,MAAM,wBAAwB,EAChC,IAAIK,EAAiB,CAAC,EAG9B,GAAI,EADS,MAAS,WAAS,KAAKD,EAAK,GAAG,GAClC,YAAY,EACpB,MAAAJ,EAAQ,MAAM,mCAAmC,EAC3C,IAAIK,EAAiB,CAAC,EAE9BL,EAAQ,MAAM,qBAAqB,EACnC,IAAMM,EAAUP,EAAS,KAAK,EAAE,UAAUK,EAAK,IAAK,EAAK,EACzD,MAAM,QAAQ,IAAI,CAACG,EAAU,0BAA0B,sBAAsBH,EAAK,QAASA,EAAK,OAAQA,EAAK,YAAaF,EAAS,MAAMI,CAAO,CAChJ,EAAGA,EAAQ,SAAS,CAAC,CAAC,EACtBN,EAAQ,QAAQ,iBAAiB,CACnC","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 archiver from \"archiver\";\nimport { consola } from \"consola\";\nimport * as fs from \"node:fs\";\nimport { Readable } from \"node:stream\";\nimport { ExitProcessError } from \"../../../ExitProcessError.js\";\nimport { artifacts } from \"../../../net/index.mjs\";\nexport default async function invokeSiteUpload(args) {\n if (args.dir == null) {\n consola.error(\"No directory specified\");\n throw new ExitProcessError(1);\n }\n const stat = await fs.promises.stat(args.dir);\n if (!stat.isDirectory()) {\n consola.error(\"Specified path is not a directory\");\n throw new ExitProcessError(2);\n }\n consola.start(\"Zippping site files\");\n const archive = archiver(\"zip\").directory(args.dir, false);\n await Promise.all([artifacts.SiteAssetArtifactsService.uploadZippedSiteAsset(args.baseUrl, args.appRid, args.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}"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { b } from './chunk-TSZWWATC.mjs';
|
|
2
|
-
import { a } from './chunk-MGT3UGXW.mjs';
|
|
3
|
-
import './chunk-XIJ2ZQRX.mjs';
|
|
4
|
-
import a$1 from 'archiver';
|
|
5
|
-
import { consola } from 'consola';
|
|
6
|
-
import * as s from 'fs';
|
|
7
|
-
import { Readable } from 'stream';
|
|
8
|
-
|
|
9
|
-
async function c(i){if(i.dir==null)throw consola.error("No directory specified"),new a(1);if(!(await s.promises.stat(i.dir)).isDirectory())throw consola.error("Specified path is not a directory"),new a(2);consola.start("Zippping site files");let e=a$1("zip").directory(i.dir,!1);await Promise.all([b.SiteAssetArtifactsService.uploadZippedSiteAsset(i.baseUrl,i.appRid,i.siteVersion,Readable.toWeb(e)),e.finalize()]),consola.success("Upload complete");}
|
|
10
|
-
|
|
11
|
-
export { c as default };
|
|
12
|
-
//# sourceMappingURL=out.js.map
|
|
13
|
-
//# sourceMappingURL=siteUploadCommand-PZEJVKRE.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/site/upload/siteUploadCommand.mts"],"names":["archiver","consola","fs","Readable","invokeSiteUpload","args","ExitProcessError","archive","artifacts_exports"],"mappings":"+GAgBA,OAAOA,MAAc,WACrB,OAAS,WAAAC,MAAe,UACxB,UAAYC,MAAQ,KACpB,OAAS,YAAAC,MAAgB,SAGzB,eAAOC,EAAwCC,EAAM,CACnD,GAAIA,EAAK,KAAO,KACd,MAAAJ,EAAQ,MAAM,wBAAwB,EAChC,IAAIK,EAAiB,CAAC,EAG9B,GAAI,EADS,MAAS,WAAS,KAAKD,EAAK,GAAG,GAClC,YAAY,EACpB,MAAAJ,EAAQ,MAAM,mCAAmC,EAC3C,IAAIK,EAAiB,CAAC,EAE9BL,EAAQ,MAAM,qBAAqB,EACnC,IAAMM,EAAUP,EAAS,KAAK,EAAE,UAAUK,EAAK,IAAK,EAAK,EACzD,MAAM,QAAQ,IAAI,CAACG,EAAU,0BAA0B,sBAAsBH,EAAK,QAASA,EAAK,OAAQA,EAAK,YAAaF,EAAS,MAAMI,CAAO,CAChJ,EAAGA,EAAQ,SAAS,CAAC,CAAC,EACtBN,EAAQ,QAAQ,iBAAiB,CACnC","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 archiver from \"archiver\";\nimport { consola } from \"consola\";\nimport * as fs from \"node:fs\";\nimport { Readable } from \"node:stream\";\nimport { ExitProcessError } from \"../../../ExitProcessError.js\";\nimport { artifacts } from \"../../../net/index.mjs\";\nexport default async function invokeSiteUpload(args) {\n if (args.dir == null) {\n consola.error(\"No directory specified\");\n throw new ExitProcessError(1);\n }\n const stat = await fs.promises.stat(args.dir);\n if (!stat.isDirectory()) {\n consola.error(\"Specified path is not a directory\");\n throw new ExitProcessError(2);\n }\n consola.start(\"Zippping site files\");\n const archive = archiver(\"zip\").directory(args.dir, false);\n await Promise.all([artifacts.SiteAssetArtifactsService.uploadZippedSiteAsset(args.baseUrl, args.appRid, args.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}"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkUOKM237I_cjs = require('./chunk-UOKM237I.cjs');
|
|
4
|
-
require('./chunk-V4QJCMF6.cjs');
|
|
5
|
-
require('./chunk-X6QW63OH.cjs');
|
|
6
|
-
var consola = require('consola');
|
|
7
|
-
var utils = require('consola/utils');
|
|
8
|
-
|
|
9
|
-
async function v({baseUrl:o,appRid:t}){consola.consola.start("Fetching versions & deployed version");let d=await chunkUOKM237I_cjs.d.fetchWebsiteRepositoryRid(o,t),l=chunkUOKM237I_cjs.c(o,"/artifacts/api"),[i,r]=await Promise.all([chunkUOKM237I_cjs.b.SiteAssetArtifactsService.fetchSiteVersions(o,t),chunkUOKM237I_cjs.a.getDeployedVersion(l,d)]);if(i.length==0){consola.consola.warn("Successfully connected to server, but no versions were found.");return}consola.consola.success("Found versions:");for(let s of i)consola.consola.log(` - ${s}${r&&s===r.version?utils.colorize("green"," (deployed)"):""}`);}
|
|
10
|
-
|
|
11
|
-
module.exports = v;
|
|
12
|
-
//# sourceMappingURL=out.js.map
|
|
13
|
-
//# sourceMappingURL=siteVersionsCommand-IE5QH56U.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/site/versions/siteVersionsCommand.mts"],"names":["consola","colorize","siteVersionsCommand","baseUrl","appRid","repositoryRid","third_party_application_service_exports","ctx","createConjureContext","versions","deployedVersion","artifacts_exports","ArtifactsSitesAdminV2Service_exports","version"],"mappings":"wHAiBA,OAAS,WAAAA,MAAe,UACxB,OAAS,YAAAC,MAAgB,gBACzB,eAAOC,EAA2C,CAChD,QAAAC,EACA,OAAAC,CACF,EAAG,CACDJ,EAAQ,MAAM,sCAAsC,EACpD,IAAMK,EAAgB,MAAMC,EAA6B,0BAA0BH,EAASC,CAAM,EAC5FG,EAAMC,EAAqBL,EAAS,gBAAgB,EACpD,CAACM,EAAUC,CAAe,EAAI,MAAM,QAAQ,IAAI,CAACC,EAAU,0BAA0B,kBAAkBR,EAASC,CAAM,EAAGQ,EAA6B,mBAAmBL,EAAKF,CAAa,CAAC,CAAC,EACnM,GAAII,EAAS,QAAU,EAAG,CACxBT,EAAQ,KAAK,+DAA+D,EAC5E,MACF,CACAA,EAAQ,QAAQ,iBAAiB,EACjC,QAAWa,KAAWJ,EACpBT,EAAQ,IAAI,SAASa,CAAO,GAAGH,GAAmBG,IAAYH,EAAgB,QAAUT,EAAS,QAAS,aAAa,EAAI,EAAE,EAAE,CAEnI","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 { artifacts, ArtifactsSitesAdminV2Service, createConjureContext, thirdPartyApplicationService } from \"#net\";\nimport { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\nexport default async function siteVersionsCommand({\n baseUrl,\n appRid\n}) {\n consola.start(\"Fetching versions & deployed version\");\n const repositoryRid = await thirdPartyApplicationService.fetchWebsiteRepositoryRid(baseUrl, appRid);\n const ctx = createConjureContext(baseUrl, \"/artifacts/api\");\n const [versions, deployedVersion] = await Promise.all([artifacts.SiteAssetArtifactsService.fetchSiteVersions(baseUrl, appRid), ArtifactsSitesAdminV2Service.getDeployedVersion(ctx, repositoryRid)]);\n if (versions.length == 0) {\n consola.warn(\"Successfully connected to server, but no versions were found.\");\n return;\n }\n consola.success(\"Found versions:\");\n for (const version of versions) {\n consola.log(` - ${version}${deployedVersion && version === deployedVersion.version ? colorize(\"green\", ` (deployed)`) : \"\"}`);\n }\n}"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { d, c, b, a } from './chunk-TSZWWATC.mjs';
|
|
2
|
-
import './chunk-MGT3UGXW.mjs';
|
|
3
|
-
import './chunk-XIJ2ZQRX.mjs';
|
|
4
|
-
import { consola } from 'consola';
|
|
5
|
-
import { colorize } from 'consola/utils';
|
|
6
|
-
|
|
7
|
-
async function v({baseUrl:o,appRid:t}){consola.start("Fetching versions & deployed version");let d$1=await d.fetchWebsiteRepositoryRid(o,t),l=c(o,"/artifacts/api"),[i,r]=await Promise.all([b.SiteAssetArtifactsService.fetchSiteVersions(o,t),a.getDeployedVersion(l,d$1)]);if(i.length==0){consola.warn("Successfully connected to server, but no versions were found.");return}consola.success("Found versions:");for(let s of i)consola.log(` - ${s}${r&&s===r.version?colorize("green"," (deployed)"):""}`);}
|
|
8
|
-
|
|
9
|
-
export { v as default };
|
|
10
|
-
//# sourceMappingURL=out.js.map
|
|
11
|
-
//# sourceMappingURL=siteVersionsCommand-NVJD5BDH.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/site/versions/siteVersionsCommand.mts"],"names":["consola","colorize","siteVersionsCommand","baseUrl","appRid","repositoryRid","third_party_application_service_exports","ctx","createConjureContext","versions","deployedVersion","artifacts_exports","ArtifactsSitesAdminV2Service_exports","version"],"mappings":"wHAiBA,OAAS,WAAAA,MAAe,UACxB,OAAS,YAAAC,MAAgB,gBACzB,eAAOC,EAA2C,CAChD,QAAAC,EACA,OAAAC,CACF,EAAG,CACDJ,EAAQ,MAAM,sCAAsC,EACpD,IAAMK,EAAgB,MAAMC,EAA6B,0BAA0BH,EAASC,CAAM,EAC5FG,EAAMC,EAAqBL,EAAS,gBAAgB,EACpD,CAACM,EAAUC,CAAe,EAAI,MAAM,QAAQ,IAAI,CAACC,EAAU,0BAA0B,kBAAkBR,EAASC,CAAM,EAAGQ,EAA6B,mBAAmBL,EAAKF,CAAa,CAAC,CAAC,EACnM,GAAII,EAAS,QAAU,EAAG,CACxBT,EAAQ,KAAK,+DAA+D,EAC5E,MACF,CACAA,EAAQ,QAAQ,iBAAiB,EACjC,QAAWa,KAAWJ,EACpBT,EAAQ,IAAI,SAASa,CAAO,GAAGH,GAAmBG,IAAYH,EAAgB,QAAUT,EAAS,QAAS,aAAa,EAAI,EAAE,EAAE,CAEnI","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 { artifacts, ArtifactsSitesAdminV2Service, createConjureContext, thirdPartyApplicationService } from \"#net\";\nimport { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\nexport default async function siteVersionsCommand({\n baseUrl,\n appRid\n}) {\n consola.start(\"Fetching versions & deployed version\");\n const repositoryRid = await thirdPartyApplicationService.fetchWebsiteRepositoryRid(baseUrl, appRid);\n const ctx = createConjureContext(baseUrl, \"/artifacts/api\");\n const [versions, deployedVersion] = await Promise.all([artifacts.SiteAssetArtifactsService.fetchSiteVersions(baseUrl, appRid), ArtifactsSitesAdminV2Service.getDeployedVersion(ctx, repositoryRid)]);\n if (versions.length == 0) {\n consola.warn(\"Successfully connected to server, but no versions were found.\");\n return;\n }\n consola.success(\"Found versions:\");\n for (const version of versions) {\n consola.log(` - ${version}${deployedVersion && version === deployedVersion.version ? colorize(\"green\", ` (deployed)`) : \"\"}`);\n }\n}"]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|