@osdk/cli 0.0.20 → 0.1.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.
Files changed (125) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/bin/osdk.mjs +1 -1
  3. package/build/{js/chunk-HQDDGVB7.cjs → cjs/chunk-7G2FSZUY.cjs} +1 -1
  4. package/build/{js/chunk-Z3LZT4RA.cjs → cjs/chunk-J5TXVYYM.cjs} +6 -6
  5. package/build/{js/handleGenerate-UTCLNZQO.cjs → cjs/handleGenerate-MNCDSJ6T.cjs} +2 -2
  6. package/build/{js/handleSiteDeploy-7RXIGPRZ.cjs → cjs/handleSiteDeploy-CT4IWYMB.cjs} +7 -7
  7. package/build/{js/handleSiteDeploy-6FPVGWP5.mjs.map → cjs/handleSiteDeploy-CT4IWYMB.cjs.map} +1 -1
  8. package/build/{js → cjs}/index.cjs +7 -7
  9. package/build/{js → cjs}/index.cjs.map +1 -1
  10. package/build/{types/cli.d.ts → cjs/index.d.cts} +3 -1
  11. package/build/{js/loginFlow-BZDDHHT5.cjs → cjs/loginFlow-HJZRKA26.cjs} +2 -2
  12. package/build/cjs/package.json +1 -0
  13. package/build/{js/siteDeleteCommand-3Z6TWSAT.cjs → cjs/siteDeleteCommand-SECMIIXM.cjs} +4 -4
  14. package/build/{js/siteUploadCommand-EEFMEFF7.cjs → cjs/siteUploadCommand-G7O6HVUR.cjs} +4 -4
  15. package/build/{js/siteVersionsCommand-W72FXGBR.cjs → cjs/siteVersionsCommand-3WGBUAVW.cjs} +6 -6
  16. package/build/cjs/siteVersionsCommand-3WGBUAVW.cjs.map +1 -0
  17. package/build/{js/chunk-SFT3GWI4.mjs → esm/chunk-LQH5K3SG.mjs} +2 -2
  18. package/build/{js/chunk-E2SEJZTC.mjs → esm/chunk-ZSTKOCBT.mjs} +1 -1
  19. package/build/{js/handleGenerate-ER4YF43Z.mjs → esm/handleGenerate-TDSDERL2.mjs} +2 -2
  20. package/build/{js/handleSiteDeploy-6FPVGWP5.mjs → esm/handleSiteDeploy-WCFGPYWE.mjs} +3 -3
  21. package/build/{js/handleSiteDeploy-7RXIGPRZ.cjs.map → esm/handleSiteDeploy-WCFGPYWE.mjs.map} +1 -1
  22. package/build/esm/index.d.ts +8 -0
  23. package/build/{js → esm}/index.mjs +7 -7
  24. package/build/{js → esm}/index.mjs.map +1 -1
  25. package/build/{js/loginFlow-KGLTXVZ6.mjs → esm/loginFlow-AGZNMIRQ.mjs} +2 -2
  26. package/build/{js/siteDeleteCommand-NWXMLEZE.mjs → esm/siteDeleteCommand-VE3ELAWW.mjs} +3 -3
  27. package/build/{js/siteUploadCommand-F533LABS.mjs → esm/siteUploadCommand-3PARIRON.mjs} +3 -3
  28. package/build/{js/siteVersionsCommand-BYUHGHG7.mjs → esm/siteVersionsCommand-Y3HZFE6A.mjs} +3 -3
  29. package/build/esm/siteVersionsCommand-Y3HZFE6A.mjs.map +1 -0
  30. package/package.json +28 -19
  31. package/build/js/siteVersionsCommand-BYUHGHG7.mjs.map +0 -1
  32. package/build/js/siteVersionsCommand-W72FXGBR.cjs.map +0 -1
  33. package/build/types/CliCommonArgs.d.ts +0 -3
  34. package/build/types/ExitProcessError.d.ts +0 -4
  35. package/build/types/commands/auth/CommonAuthArgs.d.ts +0 -4
  36. package/build/types/commands/auth/index.d.ts +0 -5
  37. package/build/types/commands/auth/login/LoginArgs.d.ts +0 -4
  38. package/build/types/commands/auth/login/index.d.ts +0 -5
  39. package/build/types/commands/auth/login/loginFlow.d.ts +0 -2
  40. package/build/types/commands/auth/login/token.d.ts +0 -12
  41. package/build/types/commands/site/CommonSiteArgs.d.ts +0 -6
  42. package/build/types/commands/site/delete/DeleteArgs.d.ts +0 -4
  43. package/build/types/commands/site/delete/index.d.ts +0 -5
  44. package/build/types/commands/site/delete/siteDeleteCommand.d.mts +0 -2
  45. package/build/types/commands/site/deploy/SiteDeployArgs.d.ts +0 -5
  46. package/build/types/commands/site/deploy/handleSiteDeploy.d.mts +0 -2
  47. package/build/types/commands/site/deploy/index.d.ts +0 -5
  48. package/build/types/commands/site/index.d.ts +0 -5
  49. package/build/types/commands/site/upload/UploadArgs.d.ts +0 -5
  50. package/build/types/commands/site/upload/index.d.ts +0 -5
  51. package/build/types/commands/site/upload/siteUploadCommand.d.mts +0 -2
  52. package/build/types/commands/site/versions/index.d.ts +0 -4
  53. package/build/types/commands/site/versions/siteVersionsCommand.d.mts +0 -2
  54. package/build/types/commands/typescript/generate/TypescriptGenerateArgs.d.ts +0 -9
  55. package/build/types/commands/typescript/generate/generate.d.ts +0 -4
  56. package/build/types/commands/typescript/generate/handleGenerate.d.mts +0 -2
  57. package/build/types/commands/typescript/index.d.ts +0 -4
  58. package/build/types/generated/artifacts-admin/ArtifactsAdminService/clearDeletedUserRepositories.d.ts +0 -7
  59. package/build/types/generated/artifacts-admin/ArtifactsAdminService/getContainerRegistryDomain.d.ts +0 -6
  60. package/build/types/generated/artifacts-admin/ArtifactsAdminService.d.ts +0 -2
  61. package/build/types/generated/artifacts-admin/ClearDeletedUserRepositoriesRequest.d.ts +0 -3
  62. package/build/types/generated/artifacts-admin/ContainerRegistryDomainResponse.d.ts +0 -3
  63. package/build/types/generated/artifacts-admin/index.d.ts +0 -3
  64. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/clearDeployedVersion.d.ts +0 -8
  65. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getContentSecurityPolicyAdditions.d.ts +0 -8
  66. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getDeployedVersion.d.ts +0 -8
  67. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRegisteredSiteDomains.d.ts +0 -9
  68. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRequestedSiteDomains.d.ts +0 -10
  69. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/previewContentSecurityPolicy.d.ts +0 -9
  70. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/putContentSecurityPolicyAdditions.d.ts +0 -8
  71. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/requestSiteDomainForRepository.d.ts +0 -12
  72. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/unregisterSiteDomain.d.ts +0 -11
  73. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/updateDeployedVersion.d.ts +0 -8
  74. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service.d.ts +0 -10
  75. package/build/types/generated/artifacts-sites/ContentSecurityPolicyAdditions.d.ts +0 -5
  76. package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveName.d.ts +0 -1
  77. package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveValue.d.ts +0 -1
  78. package/build/types/generated/artifacts-sites/ContentSecurityPolicyHeaderValue.d.ts +0 -1
  79. package/build/types/generated/artifacts-sites/ControlPanelManagedDomainInfo.d.ts +0 -12
  80. package/build/types/generated/artifacts-sites/DomainName.d.ts +0 -3
  81. package/build/types/generated/artifacts-sites/PreviewContentSecurityPolicyRequest.d.ts +0 -4
  82. package/build/types/generated/artifacts-sites/SiteDomainInfo.d.ts +0 -6
  83. package/build/types/generated/artifacts-sites/SiteDomainRegistrationRequestRid.d.ts +0 -1
  84. package/build/types/generated/artifacts-sites/SiteVersion.d.ts +0 -3
  85. package/build/types/generated/artifacts-sites/SubmitDomainRegistrationRequest.d.ts +0 -7
  86. package/build/types/generated/artifacts-sites/UnregisterDomainRequest.d.ts +0 -4
  87. package/build/types/generated/artifacts-sites/UpdateDeployedVersionRequest.d.ts +0 -4
  88. package/build/types/generated/artifacts-sites/index.d.ts +0 -14
  89. package/build/types/index.d.ts +0 -1
  90. package/build/types/net/RepositoryRid.d.ts +0 -1
  91. package/build/types/net/ThirdPartyAppRid.d.ts +0 -1
  92. package/build/types/net/artifacts/SiteAssetArtifactsService/SiteAssetVersions.d.mts +0 -3
  93. package/build/types/net/artifacts/SiteAssetArtifactsService/deleteSiteVersion.d.mts +0 -2
  94. package/build/types/net/artifacts/SiteAssetArtifactsService/fetchSiteVersions.d.mts +0 -2
  95. package/build/types/net/artifacts/SiteAssetArtifactsService/getSiteAssetBaseUrl.d.mts +0 -1
  96. package/build/types/net/artifacts/SiteAssetArtifactsService/index.d.mts +0 -4
  97. package/build/types/net/artifacts/SiteAssetArtifactsService/uploadSiteVersion.d.mts +0 -2
  98. package/build/types/net/artifacts/index.d.mts +0 -1
  99. package/build/types/net/createConjureContext.d.mts +0 -2
  100. package/build/types/net/createFetch.d.mts +0 -1
  101. package/build/types/net/index.d.mts +0 -4
  102. package/build/types/net/third-party-application-service/fetchWebsiteRepositoryRid.d.mts +0 -3
  103. package/build/types/net/third-party-application-service/index.d.mts +0 -1
  104. package/build/types/readCliVersionFromPackageJson.d.ts +0 -1
  105. package/build/types/yargs/logVersionMiddleware.d.ts +0 -2
  106. /package/build/{js → cjs}/chunk-2DZBTS5E.cjs +0 -0
  107. /package/build/{js → cjs}/chunk-2DZBTS5E.cjs.map +0 -0
  108. /package/build/{js/chunk-E2SEJZTC.mjs.map → cjs/chunk-7G2FSZUY.cjs.map} +0 -0
  109. /package/build/{js → cjs}/chunk-HYF3CTKZ.cjs +0 -0
  110. /package/build/{js → cjs}/chunk-HYF3CTKZ.cjs.map +0 -0
  111. /package/build/{js/chunk-SFT3GWI4.mjs.map → cjs/chunk-J5TXVYYM.cjs.map} +0 -0
  112. /package/build/{js/handleGenerate-ER4YF43Z.mjs.map → cjs/handleGenerate-MNCDSJ6T.cjs.map} +0 -0
  113. /package/build/{js/loginFlow-BZDDHHT5.cjs.map → cjs/loginFlow-HJZRKA26.cjs.map} +0 -0
  114. /package/build/{js/siteDeleteCommand-3Z6TWSAT.cjs.map → cjs/siteDeleteCommand-SECMIIXM.cjs.map} +0 -0
  115. /package/build/{js/siteUploadCommand-EEFMEFF7.cjs.map → cjs/siteUploadCommand-G7O6HVUR.cjs.map} +0 -0
  116. /package/build/{js → esm}/chunk-GTNZA5UY.mjs +0 -0
  117. /package/build/{js → esm}/chunk-GTNZA5UY.mjs.map +0 -0
  118. /package/build/{js → esm}/chunk-JFDXL5SV.mjs +0 -0
  119. /package/build/{js → esm}/chunk-JFDXL5SV.mjs.map +0 -0
  120. /package/build/{js/chunk-Z3LZT4RA.cjs.map → esm/chunk-LQH5K3SG.mjs.map} +0 -0
  121. /package/build/{js/chunk-HQDDGVB7.cjs.map → esm/chunk-ZSTKOCBT.mjs.map} +0 -0
  122. /package/build/{js/handleGenerate-UTCLNZQO.cjs.map → esm/handleGenerate-TDSDERL2.mjs.map} +0 -0
  123. /package/build/{js/loginFlow-KGLTXVZ6.mjs.map → esm/loginFlow-AGZNMIRQ.mjs.map} +0 -0
  124. /package/build/{js/siteDeleteCommand-NWXMLEZE.mjs.map → esm/siteDeleteCommand-VE3ELAWW.mjs.map} +0 -0
  125. /package/build/{js/siteUploadCommand-F533LABS.mjs.map → esm/siteUploadCommand-3PARIRON.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @osdk/cli
2
2
 
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a0d5e431: Update build to ship packages compliant with @arethetypeswrong/cli
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [a0d5e431]
12
+ - @osdk/shared.net@1.1.0
13
+ - @osdk/generator@1.1.0
14
+ - @osdk/gateway@1.1.0
15
+ - @osdk/api@1.1.0
16
+
3
17
  ## 0.0.20
4
18
 
5
19
  ### Patch Changes
package/bin/osdk.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  // @ts-check
3
3
 
4
- import { cli } from "../build/js/index.mjs";
4
+ import { cli } from "../build/esm/index.mjs";
5
5
  cli();
@@ -8,4 +8,4 @@ var __export = (target, all) => {
8
8
 
9
9
  exports.__export = __export;
10
10
  //# sourceMappingURL=out.js.map
11
- //# sourceMappingURL=chunk-HQDDGVB7.cjs.map
11
+ //# sourceMappingURL=chunk-7G2FSZUY.cjs.map
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkHYF3CTKZ_cjs = require('./chunk-HYF3CTKZ.cjs');
4
- var chunkHQDDGVB7_cjs = require('./chunk-HQDDGVB7.cjs');
4
+ var chunk7G2FSZUY_cjs = require('./chunk-7G2FSZUY.cjs');
5
5
  var conjureLite = require('conjure-lite');
6
6
  var consola = require('consola');
7
7
  var shared_net = require('@osdk/shared.net');
8
8
 
9
9
  // src/generated/artifacts-sites/ArtifactsSitesAdminV2Service.ts
10
10
  var ArtifactsSitesAdminV2Service_exports = {};
11
- chunkHQDDGVB7_cjs.__export(ArtifactsSitesAdminV2Service_exports, {
11
+ chunk7G2FSZUY_cjs.__export(ArtifactsSitesAdminV2Service_exports, {
12
12
  clearDeployedVersion: () => clearDeployedVersion,
13
13
  getContentSecurityPolicyAdditions: () => getContentSecurityPolicyAdditions,
14
14
  getDeployedVersion: () => getDeployedVersion,
@@ -53,13 +53,13 @@ async function updateDeployedVersion(ctx, repositoryRid, version) {
53
53
 
54
54
  // src/net/artifacts/index.mts
55
55
  var artifacts_exports = {};
56
- chunkHQDDGVB7_cjs.__export(artifacts_exports, {
56
+ chunk7G2FSZUY_cjs.__export(artifacts_exports, {
57
57
  SiteAssetArtifactsService: () => SiteAssetArtifactsService_exports
58
58
  });
59
59
 
60
60
  // src/net/artifacts/SiteAssetArtifactsService/index.mts
61
61
  var SiteAssetArtifactsService_exports = {};
62
- chunkHQDDGVB7_cjs.__export(SiteAssetArtifactsService_exports, {
62
+ chunk7G2FSZUY_cjs.__export(SiteAssetArtifactsService_exports, {
63
63
  deleteSiteVersion: () => deleteSiteVersion,
64
64
  fetchSiteVersions: () => fetchSiteVersions,
65
65
  uploadZippedSiteAsset: () => uploadZippedSiteAsset
@@ -168,7 +168,7 @@ function createConjureContext(baseUrl, servicePath) {
168
168
 
169
169
  // src/net/third-party-application-service/index.mts
170
170
  var third_party_application_service_exports = {};
171
- chunkHQDDGVB7_cjs.__export(third_party_application_service_exports, {
171
+ chunk7G2FSZUY_cjs.__export(third_party_application_service_exports, {
172
172
  fetchWebsiteRepositoryRid: () => fetchWebsiteRepositoryRid
173
173
  });
174
174
 
@@ -177,4 +177,4 @@ exports.artifacts_exports = artifacts_exports;
177
177
  exports.createConjureContext = createConjureContext;
178
178
  exports.third_party_application_service_exports = third_party_application_service_exports;
179
179
  //# sourceMappingURL=out.js.map
180
- //# sourceMappingURL=chunk-Z3LZT4RA.cjs.map
180
+ //# sourceMappingURL=chunk-J5TXVYYM.cjs.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk2DZBTS5E_cjs = require('./chunk-2DZBTS5E.cjs');
4
- require('./chunk-HQDDGVB7.cjs');
4
+ require('./chunk-7G2FSZUY.cjs');
5
5
  var requests = require('@osdk/gateway/requests');
6
6
  var generator = require('@osdk/generator');
7
7
  var shared_net = require('@osdk/shared.net');
@@ -108,4 +108,4 @@ async function generateClientSdk(ontology, args) {
108
108
 
109
109
  module.exports = handleGenerate;
110
110
  //# sourceMappingURL=out.js.map
111
- //# sourceMappingURL=handleGenerate-UTCLNZQO.cjs.map
111
+ //# sourceMappingURL=handleGenerate-MNCDSJ6T.cjs.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkZ3LZT4RA_cjs = require('./chunk-Z3LZT4RA.cjs');
3
+ var chunkJ5TXVYYM_cjs = require('./chunk-J5TXVYYM.cjs');
4
4
  require('./chunk-HYF3CTKZ.cjs');
5
- require('./chunk-HQDDGVB7.cjs');
5
+ require('./chunk-7G2FSZUY.cjs');
6
6
  var consola = require('consola');
7
7
 
8
8
  async function handleSiteDeploy({
@@ -11,20 +11,20 @@ async function handleSiteDeploy({
11
11
  baseUrl,
12
12
  clearVersion
13
13
  }) {
14
- const repositoryRid = await chunkZ3LZT4RA_cjs.third_party_application_service_exports.fetchWebsiteRepositoryRid(baseUrl, appRid);
15
- const ctx = chunkZ3LZT4RA_cjs.createConjureContext(baseUrl, "/artifacts/api");
14
+ const repositoryRid = await chunkJ5TXVYYM_cjs.third_party_application_service_exports.fetchWebsiteRepositoryRid(baseUrl, appRid);
15
+ const ctx = chunkJ5TXVYYM_cjs.createConjureContext(baseUrl, "/artifacts/api");
16
16
  if (version) {
17
- await chunkZ3LZT4RA_cjs.ArtifactsSitesAdminV2Service_exports.updateDeployedVersion(ctx, repositoryRid, {
17
+ await chunkJ5TXVYYM_cjs.ArtifactsSitesAdminV2Service_exports.updateDeployedVersion(ctx, repositoryRid, {
18
18
  siteVersion: {
19
19
  version
20
20
  }
21
21
  });
22
22
  } else if (clearVersion) {
23
- await chunkZ3LZT4RA_cjs.ArtifactsSitesAdminV2Service_exports.clearDeployedVersion(ctx, repositoryRid);
23
+ await chunkJ5TXVYYM_cjs.ArtifactsSitesAdminV2Service_exports.clearDeployedVersion(ctx, repositoryRid);
24
24
  }
25
25
  consola.consola.success("Deploy successful");
26
26
  }
27
27
 
28
28
  module.exports = handleSiteDeploy;
29
29
  //# sourceMappingURL=out.js.map
30
- //# sourceMappingURL=handleSiteDeploy-7RXIGPRZ.cjs.map
30
+ //# sourceMappingURL=handleSiteDeploy-CT4IWYMB.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/commands/site/deploy/handleSiteDeploy.mts"],"names":[],"mappings":";;;;;;;;;AAgBA,SAAS,eAAe;AAExB,eAAO,iBAAwC;AAAA,EAC7C,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,QAAM,gBAAgB,MAAM,wCAA6B,0BAA0B,SAAS,MAAM;AAClG,QAAM,MAAM,qBAAqB,SAAS,gBAAgB;AAC1D,MAAI,SAAS;AACX,UAAM,qCAA6B,sBAAsB,KAAK,eAAe;AAAA,MAC3E,aAAa;AAAA,QACX;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH,WAAW,cAAc;AACvB,UAAM,qCAA6B,qBAAqB,KAAK,aAAa;AAAA,EAC5E;AACA,UAAQ,QAAQ,mBAAmB;AACrC","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 { ArtifactsSitesAdminV2Service, createConjureContext, thirdPartyApplicationService } from \"#net\";\nexport default async function handleSiteDeploy({\n siteVersion: version,\n appRid,\n baseUrl,\n clearVersion\n}) {\n const repositoryRid = await thirdPartyApplicationService.fetchWebsiteRepositoryRid(baseUrl, appRid);\n const ctx = createConjureContext(baseUrl, \"/artifacts/api\");\n if (version) {\n await ArtifactsSitesAdminV2Service.updateDeployedVersion(ctx, repositoryRid, {\n siteVersion: {\n version\n }\n });\n } else if (clearVersion) {\n await ArtifactsSitesAdminV2Service.clearDeployedVersion(ctx, repositoryRid);\n }\n consola.success(\"Deploy successful\");\n}"]}
1
+ {"version":3,"sources":["../../src/commands/site/deploy/handleSiteDeploy.mts"],"names":[],"mappings":";;;;;;;;;AAgBA,SAAS,eAAe;AAExB,eAAO,iBAAwC;AAAA,EAC7C,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,QAAM,gBAAgB,MAAM,wCAA6B,0BAA0B,SAAS,MAAM;AAClG,QAAM,MAAM,qBAAqB,SAAS,gBAAgB;AAC1D,MAAI,SAAS;AACX,UAAM,qCAA6B,sBAAsB,KAAK,eAAe;AAAA,MAC3E,aAAa;AAAA,QACX;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH,WAAW,cAAc;AACvB,UAAM,qCAA6B,qBAAqB,KAAK,aAAa;AAAA,EAC5E;AACA,UAAQ,QAAQ,mBAAmB;AACrC","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 { ArtifactsSitesAdminV2Service, createConjureContext, thirdPartyApplicationService } from \"../../../net/index.mjs\";\nexport default async function handleSiteDeploy({\n siteVersion: version,\n appRid,\n baseUrl,\n clearVersion\n}) {\n const repositoryRid = await thirdPartyApplicationService.fetchWebsiteRepositoryRid(baseUrl, appRid);\n const ctx = createConjureContext(baseUrl, \"/artifacts/api\");\n if (version) {\n await ArtifactsSitesAdminV2Service.updateDeployedVersion(ctx, repositoryRid, {\n siteVersion: {\n version\n }\n });\n } else if (clearVersion) {\n await ArtifactsSitesAdminV2Service.clearDeployedVersion(ctx, repositoryRid);\n }\n consola.success(\"Deploy successful\");\n}"]}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkHYF3CTKZ_cjs = require('./chunk-HYF3CTKZ.cjs');
4
- require('./chunk-HQDDGVB7.cjs');
4
+ require('./chunk-7G2FSZUY.cjs');
5
5
  var yargs = require('yargs');
6
6
  var helpers = require('yargs/helpers');
7
7
  var fs = require('fs');
@@ -43,7 +43,7 @@ var command = {
43
43
  });
44
44
  },
45
45
  handler: async (args) => {
46
- const command7 = await import('./loginFlow-BZDDHHT5.cjs');
46
+ const command7 = await import('./loginFlow-HJZRKA26.cjs');
47
47
  await command7.default(args);
48
48
  }
49
49
  };
@@ -79,7 +79,7 @@ var command2 = {
79
79
  });
80
80
  },
81
81
  handler: async (args) => {
82
- const command7 = await import('./siteDeleteCommand-3Z6TWSAT.cjs');
82
+ const command7 = await import('./siteDeleteCommand-SECMIIXM.cjs');
83
83
  await command7.default(args);
84
84
  }
85
85
  };
@@ -108,7 +108,7 @@ var command3 = {
108
108
  }).group(["siteVersion", "clearVersion"], "Version To Deploy (requires one of)");
109
109
  },
110
110
  handler: async (args) => {
111
- const command7 = await import('./handleSiteDeploy-7RXIGPRZ.cjs');
111
+ const command7 = await import('./handleSiteDeploy-CT4IWYMB.cjs');
112
112
  await command7.default(args);
113
113
  }
114
114
  };
@@ -127,7 +127,7 @@ var command4 = {
127
127
  });
128
128
  },
129
129
  handler: async (args) => {
130
- const command7 = await import('./siteUploadCommand-EEFMEFF7.cjs');
130
+ const command7 = await import('./siteUploadCommand-G7O6HVUR.cjs');
131
131
  await command7.default(args);
132
132
  }
133
133
  };
@@ -141,7 +141,7 @@ var command5 = {
141
141
  return argv;
142
142
  },
143
143
  handler: async (args) => {
144
- const command7 = await import('./siteVersionsCommand-W72FXGBR.cjs');
144
+ const command7 = await import('./siteVersionsCommand-3WGBUAVW.cjs');
145
145
  await command7.default(args);
146
146
  }
147
147
  };
@@ -224,7 +224,7 @@ var command6 = {
224
224
  });
225
225
  },
226
226
  handler: async (args) => {
227
- const command7 = await import('./handleGenerate-UTCLNZQO.cjs');
227
+ const command7 = await import('./handleGenerate-MNCDSJ6T.cjs');
228
228
  await command7.default(args);
229
229
  }
230
230
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/cli.ts","../../src/commands/auth/login/index.ts","../../src/commands/auth/index.ts","../../src/commands/site/delete/index.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/upload/index.ts","../../src/commands/site/versions/index.ts","../../src/commands/site/index.ts","../../src/commands/typescript/generate/generate.ts","../../src/commands/typescript/index.ts","../../src/readCliVersionFromPackageJson.ts","../../src/yargs/logVersionMiddleware.ts"],"names":["command","site","argv"],"mappings":";;;;;;AAgBA,OAAO,WAAW;AAClB,SAAS,eAAe;;;ACDj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AM,QAAQ,IAAI,CAAC,EAAE,IAAI,MAAM,EAAE,QAAQ,KAAK,EAAE,OAAO,WAAW;AAAA,IAC7E,OAAO;AAAA,IACP,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,EACT,CAAC,EAAE,cAAc,EAAE,WAAW,sBAAsB,IAAI,EAAE,OAAO,EAAE,QAAQ;AAAA,IACzE,SAAS;AAAA,IACT,SAAS,CAAC,cAAc;AAAA,IACxB,SAAS,OAAM,SAAQ;AACrB,aAAO,KAAK,QAAQ,YAAI,EAAE,QAAQ,kBAAU,EAAE,QAAQ,YAAI,EAAE,cAAc;AAAA,IAC5E;AAAA,IACA,SAAS,WAAS;AAAA,IAAC;AAAA,EACrB,CAAC;AACD,MAAI;AACF,WAAO,KAAK,WAAW;AAAA,EACzB,SAAS,GAAG;AACV,QAAI,aAAa,kBAAkB;AACjC,YAAM,UAAU,MAAM,OAAO,SAAS;AACtC,cAAQ,QAAQ,MAAM,EAAE,OAAO;AAAA,IACjC;AAAA,EACF;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 yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\nimport auth from \"./commands/auth/index.js\";\nimport site from \"./commands/site/index.js\";\nimport typescript from \"./commands/typescript/index.js\";\nimport { ExitProcessError } from \"./ExitProcessError.js\";\nimport { logVersionMiddleware } from \"./yargs/logVersionMiddleware.js\";\nexport async function cli(args = process.argv) {\n const base = yargs(hideBin(args)).env(\"OSDK\").version(false).option(\"verbose\", {\n alias: \"v\",\n type: \"boolean\",\n description: \"Enable verbose logging\",\n count: true\n }).demandCommand().middleware(logVersionMiddleware, true).strict().command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n builder: async argv => {\n return argv.command(site).command(typescript).command(auth).demandCommand();\n },\n handler: _args => {}\n });\n try {\n return base.parseAsync();\n } catch (e) {\n if (e instanceof ExitProcessError) {\n const Consola = await import(\"consola\");\n Consola.consola.error(e.message);\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\nexport const command = {\n command: \"login\",\n describe: \"Authenticate with an application ID\",\n builder: argv => {\n return argv.option(\"applicationId\", {\n type: \"string\",\n demandOption: true\n });\n },\n handler: async args => {\n const command = await import(\"./loginFlow.js\");\n await command.default(args);\n }\n};\nexport default command;","/*\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 login from \"./login/index.js\";\nconst site = {\n command: \"auth\",\n describe: \"Manage your session\",\n builder: argv => {\n return argv.options({\n baseUrl: {\n type: \"string\",\n demandOption: true\n }\n }).command(login).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\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\nexport const command = {\n command: \"delete\",\n describe: \"Delete an uploaded version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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\nexport const command = {\n command: \"deploy\",\n describe: \"Deploy an uploaded version\",\n builder: argv => {\n return argv.options({\n \"siteVersion\": {\n type: \"string\",\n conflicts: \"clearVersion\"\n // group: \"Deploy Version\",\n // implies: { \"clearVersion\": \"false\" },\n },\n\n undeploy: {\n alias: \"clearVersion\",\n description: \"Causes the site to no longer be deployed\",\n type: \"boolean\",\n conflicts: \"siteVersion\"\n // group: \"Deploy Version\",\n // implies: { \"siteVersion\": \"\" },\n }\n }).group([\"siteVersion\", \"clearVersion\"], \"Version To Deploy (requires one of)\");\n\n // .check((args) => {\n // if (\n // (args.siteVersion && args.clearVersion)\n // || (!args.siteVersion && args.clearVersion == undefined)\n // ) {\n // // consola.error(\"Only one of --siteVersion or --clearVersion may be provided\");\n // throw new Error(\n // \"Only one of --siteVersion or --clearVersion may be provided\",\n // );\n // }\n // });\n },\n\n handler: async args => {\n const command = await import(\"./handleSiteDeploy.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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\nexport const command = {\n command: \"upload\",\n describe: \"Upload an application version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteUploadCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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\nexport const command = {\n command: \"versions\",\n describe: \"List application versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./siteVersionsCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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 siteDelete from \"./delete/index.js\";\nimport siteDeploy from \"./deploy/index.js\";\nimport upload from \"./upload/index.js\";\nimport versions from \"./versions/index.js\";\nconst site = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: argv => {\n return argv.options({\n appRid: {\n type: \"string\",\n demandOption: true,\n coerce: a => a\n },\n baseUrl: {\n type: \"string\",\n demandOption: true\n }\n }).group([\"appRid\", \"baseUrl\"], \"Common Arguments\").command(versions).command(upload).command(siteDelete).command(siteDeploy).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\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\nexport const command = {\n command: \"generate\",\n describe: \"Generate typescript from ontology\",\n builder: argv => {\n return argv.options({\n \"outDir\": {\n type: \"string\",\n description: \"Where to place the generated files\",\n demandOption: true\n },\n ontologyPath: {\n description: \"path to the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"stack\", \"clientId\"]\n },\n stack: {\n description: \"the URL to the stack that contains the ontology\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"clientId\"\n },\n clientId: {\n description: \"the application's client id\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"stack\"\n },\n ontologyWritePath: {\n description: \"path to write the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"ontologyPath\"]\n },\n beta: {\n type: \"boolean\",\n description: \"Should generate beta sdk\",\n demandOption: false\n },\n packageType: {\n default: \"commonjs\",\n choices: [\"commonjs\", \"module\"]\n }\n }).group([\"ontologyPath\", \"outDir\"], \"Generate from a local file\").group([\"stack\", \"clientId\", \"outDir\", \"ontologyWritePath\"], \"OR Generate from a stack\").check(argv => {\n if (argv.ontologyPath || argv.stack) {\n return true;\n } else {\n throw new Error(\"Error: Must specify either ontologyPath or stack and clientId\");\n }\n });\n },\n handler: async args => {\n const command = await import(\"./handleGenerate.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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 generate from \"./generate/generate.js\";\nconst site = {\n command: \"typescript\",\n describe: \"Manage code\",\n builder: argv => {\n return argv.command(generate).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\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 * as fs from \"node:fs\";\nimport { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nexport async function readCliVersionFromPackageJson() {\n const {\n findUp\n } = await import(\"find-up\");\n const __dirname = dirname(fileURLToPath(import.meta.url));\n const result = await findUp(\"package.json\", {\n cwd: __dirname\n });\n if (!result) {\n return \"(unknown version. No package.json found)\";\n }\n const packageJson = JSON.parse(await fs.promises.readFile(result, \"utf-8\"));\n if (packageJson.version) {\n return `v${packageJson.version}`;\n } else {\n return \"(unknown version. No version in package.json found)\";\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 { readCliVersionFromPackageJson } from \"../readCliVersionFromPackageJson.js\";\nlet firstTime = true;\nexport async function logVersionMiddleware(args) {\n if (firstTime) {\n const Consola = await import(\"consola\");\n // This will be called before any command is executed\n const consola = Consola.consola;\n consola.info(`Palantir OSDK CLI ${await readCliVersionFromPackageJson()}`);\n consola.level = 3 + args.verbose; // so 1 -v is debug logs and -vv is trace\n if (consola.level > 3) {\n consola.debug(`Verbose logging enabled (${consola.level === 4 ? \"debug\" : \"trace\"})`);\n }\n\n // eslint-disable-next-line no-console\n console.log(); // Not consola. Just want a blank line\n firstTime = false;\n }\n}"]}
1
+ {"version":3,"sources":["../../src/cli.ts","../../src/commands/auth/login/index.ts","../../src/commands/auth/index.ts","../../src/commands/site/delete/index.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/upload/index.ts","../../src/commands/site/versions/index.ts","../../src/commands/site/index.ts","../../src/commands/typescript/generate/generate.ts","../../src/commands/typescript/index.ts","../../src/readCliVersionFromPackageJson.ts","../../src/yargs/logVersionMiddleware.ts"],"names":["command","site","argv"],"mappings":";;;;;;AAgBA,OAAO,WAAW;AAClB,SAAS,eAAe;;;ACDjB,IAAM,UAAU;AA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CAAC,EAAE,IAAI,MAAM,EAAE,QAAQ,KAAK,EAAE,OAAO,WAAW;AAAA,IAC7E,OAAO;AAAA,IACP,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,EACT,CAAC,EAAE,cAAc,EAAE,WAAW,sBAAsB,IAAI,EAAE,OAAO,EAAE,QAAQ;AAAA,IACzE,SAAS;AAAA,IACT,SAAS,CAAC,cAAc;AAAA,IACxB,SAAS,OAAM,SAAQ;AACrB,aAAO,KAAK,QAAQ,YAAI,EAAE,QAAQ,kBAAU,EAAE,QAAQ,YAAI,EAAE,cAAc;AAAA,IAC5E;AAAA,IACA,SAAS,WAAS;AAAA,IAAC;AAAA,EACrB,CAAC;AACD,MAAI;AACF,WAAO,KAAK,WAAW;AAAA,EACzB,SAAS,GAAG;AACV,QAAI,aAAa,kBAAkB;AACjC,YAAM,UAAU,MAAM,OAAO,SAAS;AACtC,cAAQ,QAAQ,MAAM,EAAE,OAAO;AAAA,IACjC;AAAA,EACF;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 yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\nimport auth from \"./commands/auth/index.js\";\nimport site from \"./commands/site/index.js\";\nimport typescript from \"./commands/typescript/index.js\";\nimport { ExitProcessError } from \"./ExitProcessError.js\";\nimport { logVersionMiddleware } from \"./yargs/logVersionMiddleware.js\";\nexport async function cli(args = process.argv) {\n const base = yargs(hideBin(args)).env(\"OSDK\").version(false).option(\"verbose\", {\n alias: \"v\",\n type: \"boolean\",\n description: \"Enable verbose logging\",\n count: true\n }).demandCommand().middleware(logVersionMiddleware, true).strict().command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n builder: async argv => {\n return argv.command(site).command(typescript).command(auth).demandCommand();\n },\n handler: _args => {}\n });\n try {\n return base.parseAsync();\n } catch (e) {\n if (e instanceof ExitProcessError) {\n const Consola = await import(\"consola\");\n Consola.consola.error(e.message);\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\nexport const command = {\n command: \"login\",\n describe: \"Authenticate with an application ID\",\n builder: argv => {\n return argv.option(\"applicationId\", {\n type: \"string\",\n demandOption: true\n });\n },\n handler: async args => {\n const command = await import(\"./loginFlow.js\");\n await command.default(args);\n }\n};\nexport default command;","/*\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 login from \"./login/index.js\";\nconst site = {\n command: \"auth\",\n describe: \"Manage your session\",\n builder: argv => {\n return argv.options({\n baseUrl: {\n type: \"string\",\n demandOption: true\n }\n }).command(login).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\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\nexport const command = {\n command: \"delete\",\n describe: \"Delete an uploaded version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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\nexport const command = {\n command: \"deploy\",\n describe: \"Deploy an uploaded version\",\n builder: argv => {\n return argv.options({\n \"siteVersion\": {\n type: \"string\",\n conflicts: \"clearVersion\"\n // group: \"Deploy Version\",\n // implies: { \"clearVersion\": \"false\" },\n },\n\n undeploy: {\n alias: \"clearVersion\",\n description: \"Causes the site to no longer be deployed\",\n type: \"boolean\",\n conflicts: \"siteVersion\"\n // group: \"Deploy Version\",\n // implies: { \"siteVersion\": \"\" },\n }\n }).group([\"siteVersion\", \"clearVersion\"], \"Version To Deploy (requires one of)\");\n\n // .check((args) => {\n // if (\n // (args.siteVersion && args.clearVersion)\n // || (!args.siteVersion && args.clearVersion == undefined)\n // ) {\n // // consola.error(\"Only one of --siteVersion or --clearVersion may be provided\");\n // throw new Error(\n // \"Only one of --siteVersion or --clearVersion may be provided\",\n // );\n // }\n // });\n },\n\n handler: async args => {\n const command = await import(\"./handleSiteDeploy.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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\nexport const command = {\n command: \"upload\",\n describe: \"Upload an application version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteUploadCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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\nexport const command = {\n command: \"versions\",\n describe: \"List application versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./siteVersionsCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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 siteDelete from \"./delete/index.js\";\nimport siteDeploy from \"./deploy/index.js\";\nimport upload from \"./upload/index.js\";\nimport versions from \"./versions/index.js\";\nconst site = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: argv => {\n return argv.options({\n appRid: {\n type: \"string\",\n demandOption: true,\n coerce: a => a\n },\n baseUrl: {\n type: \"string\",\n demandOption: true\n }\n }).group([\"appRid\", \"baseUrl\"], \"Common Arguments\").command(versions).command(upload).command(siteDelete).command(siteDeploy).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\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\nexport const command = {\n command: \"generate\",\n describe: \"Generate typescript from ontology\",\n builder: argv => {\n return argv.options({\n \"outDir\": {\n type: \"string\",\n description: \"Where to place the generated files\",\n demandOption: true\n },\n ontologyPath: {\n description: \"path to the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"stack\", \"clientId\"]\n },\n stack: {\n description: \"the URL to the stack that contains the ontology\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"clientId\"\n },\n clientId: {\n description: \"the application's client id\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"stack\"\n },\n ontologyWritePath: {\n description: \"path to write the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"ontologyPath\"]\n },\n beta: {\n type: \"boolean\",\n description: \"Should generate beta sdk\",\n demandOption: false\n },\n packageType: {\n default: \"commonjs\",\n choices: [\"commonjs\", \"module\"]\n }\n }).group([\"ontologyPath\", \"outDir\"], \"Generate from a local file\").group([\"stack\", \"clientId\", \"outDir\", \"ontologyWritePath\"], \"OR Generate from a stack\").check(argv => {\n if (argv.ontologyPath || argv.stack) {\n return true;\n } else {\n throw new Error(\"Error: Must specify either ontologyPath or stack and clientId\");\n }\n });\n },\n handler: async args => {\n const command = await import(\"./handleGenerate.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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 generate from \"./generate/generate.js\";\nconst site = {\n command: \"typescript\",\n describe: \"Manage code\",\n builder: argv => {\n return argv.command(generate).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\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 * as fs from \"node:fs\";\nimport { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nexport async function readCliVersionFromPackageJson() {\n const {\n findUp\n } = await import(\"find-up\");\n // it is safe to use find-up for package.json because the entry point to the cli is osdk.mjs\n // so this file will be in build/esm and will not see the package.json in build/cjs/package.json\n const __dirname = dirname(fileURLToPath(import.meta.url));\n const result = await findUp(\"package.json\", {\n cwd: __dirname\n });\n if (!result) {\n return \"(unknown version. No package.json found)\";\n }\n const packageJson = JSON.parse(await fs.promises.readFile(result, \"utf-8\"));\n if (packageJson.version) {\n return `v${packageJson.version}`;\n } else {\n return \"(unknown version. No version in package.json found)\";\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 { readCliVersionFromPackageJson } from \"../readCliVersionFromPackageJson.js\";\nlet firstTime = true;\nexport async function logVersionMiddleware(args) {\n if (firstTime) {\n const Consola = await import(\"consola\");\n // This will be called before any command is executed\n const consola = Consola.consola;\n consola.info(`Palantir OSDK CLI ${await readCliVersionFromPackageJson()}`);\n consola.level = 3 + args.verbose; // so 1 -v is debug logs and -vv is trace\n if (consola.level > 3) {\n consola.debug(`Verbose logging enabled (${consola.level === 4 ? \"debug\" : \"trace\"})`);\n }\n\n // eslint-disable-next-line no-console\n console.log(); // Not consola. Just want a blank line\n firstTime = false;\n }\n}"]}
@@ -1,6 +1,8 @@
1
- export declare function cli(args?: string[]): Promise<{
1
+ declare function cli(args?: string[]): Promise<{
2
2
  [x: string]: unknown;
3
3
  verbose: number;
4
4
  _: (string | number)[];
5
5
  $0: string;
6
6
  } | undefined>;
7
+
8
+ export { cli };
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk2DZBTS5E_cjs = require('./chunk-2DZBTS5E.cjs');
4
- require('./chunk-HQDDGVB7.cjs');
4
+ require('./chunk-7G2FSZUY.cjs');
5
5
 
6
6
 
7
7
 
8
8
  module.exports = chunk2DZBTS5E_cjs.invokeLoginFlow;
9
9
  //# sourceMappingURL=out.js.map
10
- //# sourceMappingURL=loginFlow-BZDDHHT5.cjs.map
10
+ //# sourceMappingURL=loginFlow-HJZRKA26.cjs.map
@@ -0,0 +1 @@
1
+ {"type": "commonjs"}
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var chunkZ3LZT4RA_cjs = require('./chunk-Z3LZT4RA.cjs');
3
+ var chunkJ5TXVYYM_cjs = require('./chunk-J5TXVYYM.cjs');
4
4
  require('./chunk-HYF3CTKZ.cjs');
5
- require('./chunk-HQDDGVB7.cjs');
5
+ require('./chunk-7G2FSZUY.cjs');
6
6
  var consola = require('consola');
7
7
 
8
8
  async function siteDeleteCommand(args) {
9
- await chunkZ3LZT4RA_cjs.artifacts_exports.SiteAssetArtifactsService.deleteSiteVersion(args.baseUrl, args.appRid, args.siteVersion);
9
+ await chunkJ5TXVYYM_cjs.artifacts_exports.SiteAssetArtifactsService.deleteSiteVersion(args.baseUrl, args.appRid, args.siteVersion);
10
10
  consola.consola.success("Delete successful");
11
11
  }
12
12
 
13
13
  module.exports = siteDeleteCommand;
14
14
  //# sourceMappingURL=out.js.map
15
- //# sourceMappingURL=siteDeleteCommand-3Z6TWSAT.cjs.map
15
+ //# sourceMappingURL=siteDeleteCommand-SECMIIXM.cjs.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkZ3LZT4RA_cjs = require('./chunk-Z3LZT4RA.cjs');
3
+ var chunkJ5TXVYYM_cjs = require('./chunk-J5TXVYYM.cjs');
4
4
  var chunkHYF3CTKZ_cjs = require('./chunk-HYF3CTKZ.cjs');
5
- require('./chunk-HQDDGVB7.cjs');
5
+ require('./chunk-7G2FSZUY.cjs');
6
6
  var archiver = require('archiver');
7
7
  var consola = require('consola');
8
8
  var fs = require('fs');
@@ -43,7 +43,7 @@ async function invokeSiteUpload(args) {
43
43
  }
44
44
  consola.consola.start("Zippping site files");
45
45
  const archive = archiver__default.default("zip").directory(args.dir, false);
46
- await Promise.all([chunkZ3LZT4RA_cjs.artifacts_exports.SiteAssetArtifactsService.uploadZippedSiteAsset(
46
+ await Promise.all([chunkJ5TXVYYM_cjs.artifacts_exports.SiteAssetArtifactsService.uploadZippedSiteAsset(
47
47
  args.baseUrl,
48
48
  args.appRid,
49
49
  args.siteVersion,
@@ -55,4 +55,4 @@ async function invokeSiteUpload(args) {
55
55
 
56
56
  module.exports = invokeSiteUpload;
57
57
  //# sourceMappingURL=out.js.map
58
- //# sourceMappingURL=siteUploadCommand-EEFMEFF7.cjs.map
58
+ //# sourceMappingURL=siteUploadCommand-G7O6HVUR.cjs.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkZ3LZT4RA_cjs = require('./chunk-Z3LZT4RA.cjs');
3
+ var chunkJ5TXVYYM_cjs = require('./chunk-J5TXVYYM.cjs');
4
4
  require('./chunk-HYF3CTKZ.cjs');
5
- require('./chunk-HQDDGVB7.cjs');
5
+ require('./chunk-7G2FSZUY.cjs');
6
6
  var consola = require('consola');
7
7
  var utils = require('consola/utils');
8
8
 
@@ -11,9 +11,9 @@ async function siteVersionsCommand({
11
11
  appRid
12
12
  }) {
13
13
  consola.consola.start("Fetching versions & deployed version");
14
- const repositoryRid = await chunkZ3LZT4RA_cjs.third_party_application_service_exports.fetchWebsiteRepositoryRid(baseUrl, appRid);
15
- const ctx = chunkZ3LZT4RA_cjs.createConjureContext(baseUrl, "/artifacts/api");
16
- const [versions, deployedVersion] = await Promise.all([chunkZ3LZT4RA_cjs.artifacts_exports.SiteAssetArtifactsService.fetchSiteVersions(baseUrl, appRid), chunkZ3LZT4RA_cjs.ArtifactsSitesAdminV2Service_exports.getDeployedVersion(ctx, repositoryRid)]);
14
+ const repositoryRid = await chunkJ5TXVYYM_cjs.third_party_application_service_exports.fetchWebsiteRepositoryRid(baseUrl, appRid);
15
+ const ctx = chunkJ5TXVYYM_cjs.createConjureContext(baseUrl, "/artifacts/api");
16
+ const [versions, deployedVersion] = await Promise.all([chunkJ5TXVYYM_cjs.artifacts_exports.SiteAssetArtifactsService.fetchSiteVersions(baseUrl, appRid), chunkJ5TXVYYM_cjs.ArtifactsSitesAdminV2Service_exports.getDeployedVersion(ctx, repositoryRid)]);
17
17
  if (versions.length == 0) {
18
18
  consola.consola.warn("Successfully connected to server, but no versions were found.");
19
19
  return;
@@ -26,4 +26,4 @@ async function siteVersionsCommand({
26
26
 
27
27
  module.exports = siteVersionsCommand;
28
28
  //# sourceMappingURL=out.js.map
29
- //# sourceMappingURL=siteVersionsCommand-W72FXGBR.cjs.map
29
+ //# sourceMappingURL=siteVersionsCommand-3WGBUAVW.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/commands/site/versions/siteVersionsCommand.mts"],"names":[],"mappings":";;;;;;;;;;AAgBA,SAAS,eAAe;AACxB,SAAS,gBAAgB;AAEzB,eAAO,oBAA2C;AAAA,EAChD;AAAA,EACA;AACF,GAAG;AACD,UAAQ,MAAM,sCAAsC;AACpD,QAAM,gBAAgB,MAAM,wCAA6B,0BAA0B,SAAS,MAAM;AAClG,QAAM,MAAM,qBAAqB,SAAS,gBAAgB;AAC1D,QAAM,CAAC,UAAU,eAAe,IAAI,MAAM,QAAQ,IAAI,CAAC,kBAAU,0BAA0B,kBAAkB,SAAS,MAAM,GAAG,qCAA6B,mBAAmB,KAAK,aAAa,CAAC,CAAC;AACnM,MAAI,SAAS,UAAU,GAAG;AACxB,YAAQ,KAAK,+DAA+D;AAC5E;AAAA,EACF;AACA,UAAQ,QAAQ,iBAAiB;AACjC,aAAW,WAAW,UAAU;AAC9B,YAAQ,IAAI,SAAS,OAAO,GAAG,mBAAmB,YAAY,gBAAgB,UAAU,SAAS,SAAS,aAAa,IAAI,EAAE,EAAE;AAAA,EACjI;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 { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\nimport { artifacts, ArtifactsSitesAdminV2Service, createConjureContext, thirdPartyApplicationService } from \"../../../net/index.mjs\";\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,5 +1,5 @@
1
1
  import { ExitProcessError } from './chunk-GTNZA5UY.mjs';
2
- import { __export } from './chunk-E2SEJZTC.mjs';
2
+ import { __export } from './chunk-ZSTKOCBT.mjs';
3
3
  import { conjureFetch } from 'conjure-lite';
4
4
  import { consola, LogLevels } from 'consola';
5
5
  import { createFetchHeaderMutator } from '@osdk/shared.net';
@@ -172,4 +172,4 @@ __export(third_party_application_service_exports, {
172
172
 
173
173
  export { ArtifactsSitesAdminV2Service_exports, artifacts_exports, createConjureContext, third_party_application_service_exports };
174
174
  //# sourceMappingURL=out.js.map
175
- //# sourceMappingURL=chunk-SFT3GWI4.mjs.map
175
+ //# sourceMappingURL=chunk-LQH5K3SG.mjs.map
@@ -6,4 +6,4 @@ var __export = (target, all) => {
6
6
 
7
7
  export { __export };
8
8
  //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=chunk-E2SEJZTC.mjs.map
9
+ //# sourceMappingURL=chunk-ZSTKOCBT.mjs.map
@@ -1,5 +1,5 @@
1
1
  import { invokeLoginFlow } from './chunk-JFDXL5SV.mjs';
2
- import './chunk-E2SEJZTC.mjs';
2
+ import './chunk-ZSTKOCBT.mjs';
3
3
  import { listOntologiesV2, getOntologyFullMetadata } from '@osdk/gateway/requests';
4
4
  import { generateClientSdkVersionTwoPointZero, generateClientSdkVersionOneDotOne } from '@osdk/generator';
5
5
  import { createClientContext, createOpenApiRequest } from '@osdk/shared.net';
@@ -86,4 +86,4 @@ async function generateClientSdk(ontology, args) {
86
86
 
87
87
  export { handleGenerate as default };
88
88
  //# sourceMappingURL=out.js.map
89
- //# sourceMappingURL=handleGenerate-ER4YF43Z.mjs.map
89
+ //# sourceMappingURL=handleGenerate-TDSDERL2.mjs.map
@@ -1,6 +1,6 @@
1
- import { third_party_application_service_exports, createConjureContext, ArtifactsSitesAdminV2Service_exports } from './chunk-SFT3GWI4.mjs';
1
+ import { third_party_application_service_exports, createConjureContext, ArtifactsSitesAdminV2Service_exports } from './chunk-LQH5K3SG.mjs';
2
2
  import './chunk-GTNZA5UY.mjs';
3
- import './chunk-E2SEJZTC.mjs';
3
+ import './chunk-ZSTKOCBT.mjs';
4
4
  import { consola } from 'consola';
5
5
 
6
6
  async function handleSiteDeploy({
@@ -25,4 +25,4 @@ async function handleSiteDeploy({
25
25
 
26
26
  export { handleSiteDeploy as default };
27
27
  //# sourceMappingURL=out.js.map
28
- //# sourceMappingURL=handleSiteDeploy-6FPVGWP5.mjs.map
28
+ //# sourceMappingURL=handleSiteDeploy-WCFGPYWE.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/commands/site/deploy/handleSiteDeploy.mts"],"names":[],"mappings":";;;;;;;;;AAgBA,SAAS,eAAe;AAExB,eAAO,iBAAwC;AAAA,EAC7C,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,QAAM,gBAAgB,MAAM,wCAA6B,0BAA0B,SAAS,MAAM;AAClG,QAAM,MAAM,qBAAqB,SAAS,gBAAgB;AAC1D,MAAI,SAAS;AACX,UAAM,qCAA6B,sBAAsB,KAAK,eAAe;AAAA,MAC3E,aAAa;AAAA,QACX;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH,WAAW,cAAc;AACvB,UAAM,qCAA6B,qBAAqB,KAAK,aAAa;AAAA,EAC5E;AACA,UAAQ,QAAQ,mBAAmB;AACrC","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 { ArtifactsSitesAdminV2Service, createConjureContext, thirdPartyApplicationService } from \"#net\";\nexport default async function handleSiteDeploy({\n siteVersion: version,\n appRid,\n baseUrl,\n clearVersion\n}) {\n const repositoryRid = await thirdPartyApplicationService.fetchWebsiteRepositoryRid(baseUrl, appRid);\n const ctx = createConjureContext(baseUrl, \"/artifacts/api\");\n if (version) {\n await ArtifactsSitesAdminV2Service.updateDeployedVersion(ctx, repositoryRid, {\n siteVersion: {\n version\n }\n });\n } else if (clearVersion) {\n await ArtifactsSitesAdminV2Service.clearDeployedVersion(ctx, repositoryRid);\n }\n consola.success(\"Deploy successful\");\n}"]}
1
+ {"version":3,"sources":["../../src/commands/site/deploy/handleSiteDeploy.mts"],"names":[],"mappings":";;;;;;;;;AAgBA,SAAS,eAAe;AAExB,eAAO,iBAAwC;AAAA,EAC7C,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,QAAM,gBAAgB,MAAM,wCAA6B,0BAA0B,SAAS,MAAM;AAClG,QAAM,MAAM,qBAAqB,SAAS,gBAAgB;AAC1D,MAAI,SAAS;AACX,UAAM,qCAA6B,sBAAsB,KAAK,eAAe;AAAA,MAC3E,aAAa;AAAA,QACX;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH,WAAW,cAAc;AACvB,UAAM,qCAA6B,qBAAqB,KAAK,aAAa;AAAA,EAC5E;AACA,UAAQ,QAAQ,mBAAmB;AACrC","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 { ArtifactsSitesAdminV2Service, createConjureContext, thirdPartyApplicationService } from \"../../../net/index.mjs\";\nexport default async function handleSiteDeploy({\n siteVersion: version,\n appRid,\n baseUrl,\n clearVersion\n}) {\n const repositoryRid = await thirdPartyApplicationService.fetchWebsiteRepositoryRid(baseUrl, appRid);\n const ctx = createConjureContext(baseUrl, \"/artifacts/api\");\n if (version) {\n await ArtifactsSitesAdminV2Service.updateDeployedVersion(ctx, repositoryRid, {\n siteVersion: {\n version\n }\n });\n } else if (clearVersion) {\n await ArtifactsSitesAdminV2Service.clearDeployedVersion(ctx, repositoryRid);\n }\n consola.success(\"Deploy successful\");\n}"]}
@@ -0,0 +1,8 @@
1
+ declare function cli(args?: string[]): Promise<{
2
+ [x: string]: unknown;
3
+ verbose: number;
4
+ _: (string | number)[];
5
+ $0: string;
6
+ } | undefined>;
7
+
8
+ export { cli };
@@ -1,5 +1,5 @@
1
1
  import { ExitProcessError } from './chunk-GTNZA5UY.mjs';
2
- import './chunk-E2SEJZTC.mjs';
2
+ import './chunk-ZSTKOCBT.mjs';
3
3
  import yargs from 'yargs';
4
4
  import { hideBin } from 'yargs/helpers';
5
5
  import * as fs from 'fs';
@@ -17,7 +17,7 @@ var command = {
17
17
  });
18
18
  },
19
19
  handler: async (args) => {
20
- const command7 = await import('./loginFlow-KGLTXVZ6.mjs');
20
+ const command7 = await import('./loginFlow-AGZNMIRQ.mjs');
21
21
  await command7.default(args);
22
22
  }
23
23
  };
@@ -53,7 +53,7 @@ var command2 = {
53
53
  });
54
54
  },
55
55
  handler: async (args) => {
56
- const command7 = await import('./siteDeleteCommand-NWXMLEZE.mjs');
56
+ const command7 = await import('./siteDeleteCommand-VE3ELAWW.mjs');
57
57
  await command7.default(args);
58
58
  }
59
59
  };
@@ -82,7 +82,7 @@ var command3 = {
82
82
  }).group(["siteVersion", "clearVersion"], "Version To Deploy (requires one of)");
83
83
  },
84
84
  handler: async (args) => {
85
- const command7 = await import('./handleSiteDeploy-6FPVGWP5.mjs');
85
+ const command7 = await import('./handleSiteDeploy-WCFGPYWE.mjs');
86
86
  await command7.default(args);
87
87
  }
88
88
  };
@@ -101,7 +101,7 @@ var command4 = {
101
101
  });
102
102
  },
103
103
  handler: async (args) => {
104
- const command7 = await import('./siteUploadCommand-F533LABS.mjs');
104
+ const command7 = await import('./siteUploadCommand-3PARIRON.mjs');
105
105
  await command7.default(args);
106
106
  }
107
107
  };
@@ -115,7 +115,7 @@ var command5 = {
115
115
  return argv;
116
116
  },
117
117
  handler: async (args) => {
118
- const command7 = await import('./siteVersionsCommand-BYUHGHG7.mjs');
118
+ const command7 = await import('./siteVersionsCommand-Y3HZFE6A.mjs');
119
119
  await command7.default(args);
120
120
  }
121
121
  };
@@ -198,7 +198,7 @@ var command6 = {
198
198
  });
199
199
  },
200
200
  handler: async (args) => {
201
- const command7 = await import('./handleGenerate-ER4YF43Z.mjs');
201
+ const command7 = await import('./handleGenerate-TDSDERL2.mjs');
202
202
  await command7.default(args);
203
203
  }
204
204
  };