@osdk/cli 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/js/{chunk-FPMCB6O4.mjs → chunk-EALLTV7S.mjs} +2 -2
- package/build/js/{chunk-RDE7VCQU.cjs → chunk-F6Y3FTY6.cjs} +2 -2
- package/build/js/handleGenerate-FSKXULOJ.mjs +231 -0
- package/build/js/handleGenerate-FSKXULOJ.mjs.map +1 -0
- package/build/js/handleGenerate-KCAGHMHC.cjs +259 -0
- package/build/js/handleGenerate-KCAGHMHC.cjs.map +1 -0
- package/build/js/index.cjs +35 -12
- package/build/js/index.cjs.map +1 -1
- package/build/js/index.mjs +35 -12
- package/build/js/index.mjs.map +1 -1
- package/build/js/{siteDeployCommand-6QQO33AS.cjs → siteDeployCommand-NF4NIH2Y.cjs} +9 -9
- package/build/js/{siteDeployCommand-UJR5OIC3.mjs → siteDeployCommand-QMX5EY2K.mjs} +2 -2
- package/build/js/{versionDeleteCommand-FG7EWBY7.cjs → versionDeleteCommand-7XQQMEP6.cjs} +5 -5
- package/build/js/{versionDeleteCommand-44ROSZ2B.mjs → versionDeleteCommand-S3PG23IT.mjs} +2 -2
- package/build/js/{versionGetCommand-42DSFBKH.mjs → versionGetCommand-IKDSYKJM.mjs} +2 -2
- package/build/js/{versionGetCommand-FK6UXCUE.cjs → versionGetCommand-PBCSZZ2W.cjs} +7 -7
- package/build/js/{versionListCommand-IGPAVA7E.cjs → versionListCommand-KSQJH2CQ.cjs} +7 -7
- package/build/js/{versionListCommand-B73K3QDK.mjs → versionListCommand-YP6X66SJ.mjs} +2 -2
- package/build/js/{versionSetCommand-H4IZ7ZKF.cjs → versionSetCommand-2L3BCYZ7.cjs} +7 -7
- package/build/js/{versionSetCommand-H4ZHJVE3.mjs → versionSetCommand-KXNXVRXK.mjs} +2 -2
- package/build/js/{versionUnsetCommand-UKNRBIPH.cjs → versionUnsetCommand-BIBSMJRY.cjs} +7 -7
- package/build/js/{versionUnsetCommand-EO2T75OG.mjs → versionUnsetCommand-XH4PGAIP.mjs} +2 -2
- package/build/types/CliCommonArgs.d.ts +1 -0
- package/build/types/CliCommonArgs.d.ts.map +1 -0
- package/build/types/ExitProcessError.d.ts +1 -0
- package/build/types/ExitProcessError.d.ts.map +1 -0
- package/build/types/YargsCheckError.d.ts +1 -0
- package/build/types/YargsCheckError.d.ts.map +1 -0
- package/build/types/cli.d.ts +1 -0
- package/build/types/cli.d.ts.map +1 -0
- package/build/types/commands/auth/CommonAuthArgs.d.ts +1 -0
- package/build/types/commands/auth/CommonAuthArgs.d.ts.map +1 -0
- package/build/types/commands/auth/index.d.ts +1 -0
- package/build/types/commands/auth/index.d.ts.map +1 -0
- package/build/types/commands/auth/login/LoginArgs.d.ts +1 -0
- package/build/types/commands/auth/login/LoginArgs.d.ts.map +1 -0
- package/build/types/commands/auth/login/index.d.ts +1 -0
- package/build/types/commands/auth/login/index.d.ts.map +1 -0
- package/build/types/commands/auth/login/loginFlow.d.ts +1 -0
- package/build/types/commands/auth/login/loginFlow.d.ts.map +1 -0
- package/build/types/commands/auth/login/token.d.ts +1 -0
- package/build/types/commands/auth/login/token.d.ts.map +1 -0
- package/build/types/commands/site/CommonSiteArgs.d.ts +1 -0
- package/build/types/commands/site/CommonSiteArgs.d.ts.map +1 -0
- package/build/types/commands/site/deploy/SiteDeployArgs.d.ts +1 -0
- package/build/types/commands/site/deploy/SiteDeployArgs.d.ts.map +1 -0
- package/build/types/commands/site/deploy/index.d.ts +1 -0
- package/build/types/commands/site/deploy/index.d.ts.map +1 -0
- package/build/types/commands/site/deploy/logDeployCommandConfigFileOverride.d.ts +1 -0
- package/build/types/commands/site/deploy/logDeployCommandConfigFileOverride.d.ts.map +1 -0
- package/build/types/commands/site/deploy/siteDeployCommand.d.mts +1 -0
- package/build/types/commands/site/deploy/siteDeployCommand.d.mts.map +1 -0
- package/build/types/commands/site/index.d.ts +1 -0
- package/build/types/commands/site/index.d.ts.map +1 -0
- package/build/types/commands/site/logSiteCommandConfigFileOverride.d.ts +1 -0
- package/build/types/commands/site/logSiteCommandConfigFileOverride.d.ts.map +1 -0
- package/build/types/commands/site/version/delete/VersionDeleteArgs.d.ts +1 -0
- package/build/types/commands/site/version/delete/VersionDeleteArgs.d.ts.map +1 -0
- package/build/types/commands/site/version/delete/index.d.ts +1 -0
- package/build/types/commands/site/version/delete/index.d.ts.map +1 -0
- package/build/types/commands/site/version/delete/versionDeleteCommand.d.mts +1 -0
- package/build/types/commands/site/version/delete/versionDeleteCommand.d.mts.map +1 -0
- package/build/types/commands/site/version/get/VersionGetArgs.d.ts +1 -0
- package/build/types/commands/site/version/get/VersionGetArgs.d.ts.map +1 -0
- package/build/types/commands/site/version/get/index.d.ts +1 -0
- package/build/types/commands/site/version/get/index.d.ts.map +1 -0
- package/build/types/commands/site/version/get/versionGetCommand.d.mts +1 -0
- package/build/types/commands/site/version/get/versionGetCommand.d.mts.map +1 -0
- package/build/types/commands/site/version/index.d.ts +1 -0
- package/build/types/commands/site/version/index.d.ts.map +1 -0
- package/build/types/commands/site/version/list/VersionListArgs.d.ts +1 -0
- package/build/types/commands/site/version/list/VersionListArgs.d.ts.map +1 -0
- package/build/types/commands/site/version/list/index.d.ts +1 -0
- package/build/types/commands/site/version/list/index.d.ts.map +1 -0
- package/build/types/commands/site/version/list/versionListCommand.d.mts +1 -0
- package/build/types/commands/site/version/list/versionListCommand.d.mts.map +1 -0
- package/build/types/commands/site/version/set/VersionSetArgs.d.ts +1 -0
- package/build/types/commands/site/version/set/VersionSetArgs.d.ts.map +1 -0
- package/build/types/commands/site/version/set/index.d.ts +1 -0
- package/build/types/commands/site/version/set/index.d.ts.map +1 -0
- package/build/types/commands/site/version/set/versionSetCommand.d.mts +1 -0
- package/build/types/commands/site/version/set/versionSetCommand.d.mts.map +1 -0
- package/build/types/commands/site/version/unset/VersionUnsetArgs.d.ts +1 -0
- package/build/types/commands/site/version/unset/VersionUnsetArgs.d.ts.map +1 -0
- package/build/types/commands/site/version/unset/index.d.ts +1 -0
- package/build/types/commands/site/version/unset/index.d.ts.map +1 -0
- package/build/types/commands/site/version/unset/versionUnsetCommand.d.mts +1 -0
- package/build/types/commands/site/version/unset/versionUnsetCommand.d.mts.map +1 -0
- package/build/types/commands/typescript/generate/TypescriptGenerateArgs.d.ts +5 -0
- package/build/types/commands/typescript/generate/TypescriptGenerateArgs.d.ts.map +1 -0
- package/build/types/commands/typescript/generate/generate.d.ts +1 -0
- package/build/types/commands/typescript/generate/generate.d.ts.map +1 -0
- package/build/types/commands/typescript/generate/handleGenerate.d.mts +43 -0
- package/build/types/commands/typescript/generate/handleGenerate.d.mts.map +1 -0
- package/build/types/commands/typescript/generate/handleGenerate.test.d.mts +2 -0
- package/build/types/commands/typescript/generate/handleGenerate.test.d.mts.map +1 -0
- package/build/types/commands/typescript/index.d.ts +1 -0
- package/build/types/commands/typescript/index.d.ts.map +1 -0
- package/build/types/consola/handlePromptCancel.d.ts +1 -0
- package/build/types/consola/handlePromptCancel.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/clearDeployedVersion.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/clearDeployedVersion.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getContentSecurityPolicyAdditions.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getContentSecurityPolicyAdditions.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getDeployedVersion.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getDeployedVersion.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRegisteredSiteDomains.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRegisteredSiteDomains.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRequestedSiteDomains.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRequestedSiteDomains.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/previewContentSecurityPolicy.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/previewContentSecurityPolicy.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/putContentSecurityPolicyAdditions.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/putContentSecurityPolicyAdditions.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/requestSiteDomainForRepository.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/requestSiteDomainForRepository.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/unregisterSiteDomain.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/unregisterSiteDomain.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/updateDeployedVersion.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/updateDeployedVersion.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyAdditions.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyAdditions.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveName.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveName.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveValue.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveValue.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyHeaderValue.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ContentSecurityPolicyHeaderValue.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/ControlPanelManagedDomainInfo.d.ts +1 -0
- package/build/types/generated/artifacts-sites/ControlPanelManagedDomainInfo.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/DomainName.d.ts +1 -0
- package/build/types/generated/artifacts-sites/DomainName.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/PreviewContentSecurityPolicyRequest.d.ts +1 -0
- package/build/types/generated/artifacts-sites/PreviewContentSecurityPolicyRequest.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/SiteDomainInfo.d.ts +1 -0
- package/build/types/generated/artifacts-sites/SiteDomainInfo.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/SiteDomainRegistrationRequestRid.d.ts +1 -0
- package/build/types/generated/artifacts-sites/SiteDomainRegistrationRequestRid.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/SiteVersion.d.ts +1 -0
- package/build/types/generated/artifacts-sites/SiteVersion.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/SubmitDomainRegistrationRequest.d.ts +1 -0
- package/build/types/generated/artifacts-sites/SubmitDomainRegistrationRequest.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/UnregisterDomainRequest.d.ts +1 -0
- package/build/types/generated/artifacts-sites/UnregisterDomainRequest.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/UpdateDeployedVersionRequest.d.ts +1 -0
- package/build/types/generated/artifacts-sites/UpdateDeployedVersionRequest.d.ts.map +1 -0
- package/build/types/generated/artifacts-sites/index.d.ts +1 -0
- package/build/types/generated/artifacts-sites/index.d.ts.map +1 -0
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/net/RepositoryRid.d.ts +1 -0
- package/build/types/net/RepositoryRid.d.ts.map +1 -0
- package/build/types/net/ThirdPartyAppRid.d.ts +1 -0
- package/build/types/net/ThirdPartyAppRid.d.ts.map +1 -0
- package/build/types/net/UserAgent.d.ts +1 -0
- package/build/types/net/UserAgent.d.ts.map +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/DeleteSiteVersionRequest.d.mts +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/DeleteSiteVersionRequest.d.mts.map +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/SiteAssetVersions.d.mts +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/SiteAssetVersions.d.mts.map +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/UploadZippedSiteAssetRequest.d.mts +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/UploadZippedSiteAssetRequest.d.mts.map +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/deleteSiteVersion.d.mts +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/deleteSiteVersion.d.mts.map +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/fetchSiteVersions.d.mts +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/fetchSiteVersions.d.mts.map +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/getSiteAssetBaseUrl.d.mts +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/getSiteAssetBaseUrl.d.mts.map +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/index.d.mts +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/index.d.mts.map +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/uploadSiteVersion.d.mts +1 -0
- package/build/types/net/artifacts/SiteAssetArtifactsService/uploadSiteVersion.d.mts.map +1 -0
- package/build/types/net/artifacts/index.d.mts +1 -0
- package/build/types/net/artifacts/index.d.mts.map +1 -0
- package/build/types/net/createConjureContext.d.mts +1 -0
- package/build/types/net/createConjureContext.d.mts.map +1 -0
- package/build/types/net/createFetch.d.mts +1 -0
- package/build/types/net/createFetch.d.mts.map +1 -0
- package/build/types/net/createInternalClientContext.d.mts +1 -0
- package/build/types/net/createInternalClientContext.d.mts.map +1 -0
- package/build/types/net/index.d.mts +1 -0
- package/build/types/net/index.d.mts.map +1 -0
- package/build/types/net/internalClientContext.d.mts +1 -0
- package/build/types/net/internalClientContext.d.mts.map +1 -0
- package/build/types/net/third-party-application-service/fetchWebsiteRepositoryRid.d.mts +1 -0
- package/build/types/net/third-party-application-service/fetchWebsiteRepositoryRid.d.mts.map +1 -0
- package/build/types/net/third-party-application-service/index.d.mts +1 -0
- package/build/types/net/third-party-application-service/index.d.mts.map +1 -0
- package/build/types/util/autoVersion.d.ts +1 -0
- package/build/types/util/autoVersion.d.ts.map +1 -0
- package/build/types/util/autoVersion.test.d.ts +1 -0
- package/build/types/util/autoVersion.test.d.ts.map +1 -0
- package/build/types/util/config.d.ts +1 -0
- package/build/types/util/config.d.ts.map +1 -0
- package/build/types/util/config.test.d.ts +1 -0
- package/build/types/util/config.test.d.ts.map +1 -0
- package/build/types/util/configLoader.d.ts +1 -0
- package/build/types/util/configLoader.d.ts.map +1 -0
- package/build/types/util/isValidSemver.d.ts +1 -0
- package/build/types/util/isValidSemver.d.ts.map +1 -0
- package/build/types/util/isValidSemver.test.d.ts +1 -0
- package/build/types/util/isValidSemver.test.d.ts.map +1 -0
- package/build/types/util/token.d.ts +1 -0
- package/build/types/util/token.d.ts.map +1 -0
- package/build/types/util/token.test.d.ts +1 -0
- package/build/types/util/token.test.d.ts.map +1 -0
- package/build/types/yargs/logConfigFileMiddleware.d.ts +1 -0
- package/build/types/yargs/logConfigFileMiddleware.d.ts.map +1 -0
- package/build/types/yargs/logLevelMiddleware.d.ts +1 -0
- package/build/types/yargs/logLevelMiddleware.d.ts.map +1 -0
- package/changelog/0.14.0/pr-120.v2.yml +5 -0
- package/changelog/0.15.0/pr-131.v2.yml +5 -0
- package/changelog/0.15.0/pr-140.v2.yml +5 -0
- package/changelog/0.15.0/pr-141.v2.yml +5 -0
- package/package.json +8 -6
- package/build/js/handleGenerate-776H5SWT.cjs +0 -123
- package/build/js/handleGenerate-776H5SWT.cjs.map +0 -1
- package/build/js/handleGenerate-JJSWMP2R.mjs +0 -101
- package/build/js/handleGenerate-JJSWMP2R.mjs.map +0 -1
- package/build/types/generated/artifacts-admin/ArtifactsAdminService/clearDeletedUserRepositories.d.ts +0 -7
- package/build/types/generated/artifacts-admin/ArtifactsAdminService/getContainerRegistryDomain.d.ts +0 -6
- package/build/types/generated/artifacts-admin/ArtifactsAdminService.d.ts +0 -2
- package/build/types/generated/artifacts-admin/ClearDeletedUserRepositoriesRequest.d.ts +0 -3
- package/build/types/generated/artifacts-admin/ContainerRegistryDomainResponse.d.ts +0 -3
- package/build/types/generated/artifacts-admin/index.d.ts +0 -3
- /package/build/js/{chunk-FPMCB6O4.mjs.map → chunk-EALLTV7S.mjs.map} +0 -0
- /package/build/js/{chunk-RDE7VCQU.cjs.map → chunk-F6Y3FTY6.cjs.map} +0 -0
- /package/build/js/{siteDeployCommand-6QQO33AS.cjs.map → siteDeployCommand-NF4NIH2Y.cjs.map} +0 -0
- /package/build/js/{siteDeployCommand-UJR5OIC3.mjs.map → siteDeployCommand-QMX5EY2K.mjs.map} +0 -0
- /package/build/js/{versionDeleteCommand-44ROSZ2B.mjs.map → versionDeleteCommand-7XQQMEP6.cjs.map} +0 -0
- /package/build/js/{versionDeleteCommand-FG7EWBY7.cjs.map → versionDeleteCommand-S3PG23IT.mjs.map} +0 -0
- /package/build/js/{versionGetCommand-42DSFBKH.mjs.map → versionGetCommand-IKDSYKJM.mjs.map} +0 -0
- /package/build/js/{versionGetCommand-FK6UXCUE.cjs.map → versionGetCommand-PBCSZZ2W.cjs.map} +0 -0
- /package/build/js/{versionListCommand-B73K3QDK.mjs.map → versionListCommand-KSQJH2CQ.cjs.map} +0 -0
- /package/build/js/{versionListCommand-IGPAVA7E.cjs.map → versionListCommand-YP6X66SJ.mjs.map} +0 -0
- /package/build/js/{versionSetCommand-H4IZ7ZKF.cjs.map → versionSetCommand-2L3BCYZ7.cjs.map} +0 -0
- /package/build/js/{versionSetCommand-H4ZHJVE3.mjs.map → versionSetCommand-KXNXVRXK.mjs.map} +0 -0
- /package/build/js/{versionUnsetCommand-EO2T75OG.mjs.map → versionUnsetCommand-BIBSMJRY.cjs.map} +0 -0
- /package/build/js/{versionUnsetCommand-UKNRBIPH.cjs.map → versionUnsetCommand-XH4PGAIP.mjs.map} +0 -0
package/build/js/index.cjs
CHANGED
|
@@ -75,11 +75,11 @@ var CONFIG_FILE_SCHEMA = {
|
|
|
75
75
|
nullable: true,
|
|
76
76
|
oneOf: [{
|
|
77
77
|
properties: {
|
|
78
|
-
|
|
78
|
+
type: {
|
|
79
79
|
const: "git-describe",
|
|
80
80
|
type: "string"
|
|
81
81
|
},
|
|
82
|
-
|
|
82
|
+
tagPrefix: {
|
|
83
83
|
type: "string",
|
|
84
84
|
nullable: true
|
|
85
85
|
}
|
|
@@ -223,7 +223,7 @@ var command2 = {
|
|
|
223
223
|
}).middleware((args) => logDeployCommandConfigFileOverride(args, siteConfig));
|
|
224
224
|
},
|
|
225
225
|
handler: async (args) => {
|
|
226
|
-
const command11 = await import('./siteDeployCommand-
|
|
226
|
+
const command11 = await import('./siteDeployCommand-NF4NIH2Y.cjs');
|
|
227
227
|
const {
|
|
228
228
|
version,
|
|
229
229
|
autoVersion,
|
|
@@ -266,7 +266,7 @@ var command3 = {
|
|
|
266
266
|
}).group(["yes"], "Delete Options");
|
|
267
267
|
},
|
|
268
268
|
handler: async (args) => {
|
|
269
|
-
const command11 = await import('./versionDeleteCommand-
|
|
269
|
+
const command11 = await import('./versionDeleteCommand-7XQQMEP6.cjs');
|
|
270
270
|
await command11.default(args);
|
|
271
271
|
}
|
|
272
272
|
};
|
|
@@ -280,7 +280,7 @@ var command4 = {
|
|
|
280
280
|
return argv;
|
|
281
281
|
},
|
|
282
282
|
handler: async (args) => {
|
|
283
|
-
const command11 = await import('./versionGetCommand-
|
|
283
|
+
const command11 = await import('./versionGetCommand-PBCSZZ2W.cjs');
|
|
284
284
|
await command11.default(args);
|
|
285
285
|
}
|
|
286
286
|
};
|
|
@@ -294,7 +294,7 @@ var command5 = {
|
|
|
294
294
|
return argv;
|
|
295
295
|
},
|
|
296
296
|
handler: async (args) => {
|
|
297
|
-
const command11 = await import('./versionListCommand-
|
|
297
|
+
const command11 = await import('./versionListCommand-KSQJH2CQ.cjs');
|
|
298
298
|
await command11.default(args);
|
|
299
299
|
}
|
|
300
300
|
};
|
|
@@ -312,7 +312,7 @@ var command6 = {
|
|
|
312
312
|
});
|
|
313
313
|
},
|
|
314
314
|
handler: async (args) => {
|
|
315
|
-
const command11 = await import('./versionSetCommand-
|
|
315
|
+
const command11 = await import('./versionSetCommand-2L3BCYZ7.cjs');
|
|
316
316
|
await command11.default(args);
|
|
317
317
|
}
|
|
318
318
|
};
|
|
@@ -330,7 +330,7 @@ var command7 = {
|
|
|
330
330
|
}).group(["yes"], "Unset Options");
|
|
331
331
|
},
|
|
332
332
|
handler: async (args) => {
|
|
333
|
-
const command11 = await import('./versionUnsetCommand-
|
|
333
|
+
const command11 = await import('./versionUnsetCommand-BIBSMJRY.cjs');
|
|
334
334
|
await command11.default(args);
|
|
335
335
|
}
|
|
336
336
|
};
|
|
@@ -405,7 +405,7 @@ var command10 = {
|
|
|
405
405
|
describe: "Generate TypeScript SDK from ontology",
|
|
406
406
|
builder: (argv) => {
|
|
407
407
|
return argv.options({
|
|
408
|
-
|
|
408
|
+
outDir: {
|
|
409
409
|
type: "string",
|
|
410
410
|
description: "Where to place the generated files",
|
|
411
411
|
demandOption: true
|
|
@@ -432,6 +432,11 @@ var command10 = {
|
|
|
432
432
|
conflicts: "ontologyPath",
|
|
433
433
|
implies: "foundryUrl"
|
|
434
434
|
},
|
|
435
|
+
ontologyRid: {
|
|
436
|
+
description: "Limit requests to this ontology rid only",
|
|
437
|
+
type: "string",
|
|
438
|
+
demandOption: false
|
|
439
|
+
},
|
|
435
440
|
ontologyWritePath: {
|
|
436
441
|
description: "Path to write the ontology wire json",
|
|
437
442
|
type: "string",
|
|
@@ -451,19 +456,37 @@ var command10 = {
|
|
|
451
456
|
type: "string",
|
|
452
457
|
description: "Version of the generated code, or 'dev'",
|
|
453
458
|
demandOption: true
|
|
459
|
+
},
|
|
460
|
+
packageName: {
|
|
461
|
+
type: "string",
|
|
462
|
+
description: "Name of the package to generate"
|
|
463
|
+
},
|
|
464
|
+
asPackage: {
|
|
465
|
+
type: "boolean",
|
|
466
|
+
description: "Generate as a package (makes a package.json and co)"
|
|
467
|
+
},
|
|
468
|
+
clean: {
|
|
469
|
+
type: "boolean",
|
|
470
|
+
description: "Clean the output directory before generating"
|
|
454
471
|
}
|
|
455
|
-
}).group(["ontologyPath", "outDir", "version"], "Generate from a local file").group(["foundryUrl", "clientId", "outDir", "ontologyWritePath", "version"], "OR Generate from Foundry").check((args) => {
|
|
472
|
+
}).group(["ontologyPath", "outDir", "version"], "Generate from a local file").group(["foundryUrl", "clientId", "outDir", "ontologyWritePath", "version"], "OR Generate from Foundry").group(["packageName", "as"], "Package generation options").check((args) => {
|
|
456
473
|
if (!args.ontologyPath && !args.foundryUrl) {
|
|
457
474
|
throw new chunkCCA2T5YW_cjs.YargsCheckError("Must specify either ontologyPath or foundryUrl and clientId");
|
|
458
475
|
}
|
|
459
476
|
if (args.version !== "dev" && !chunkUE2TMWJL_cjs.isValidSemver(args.version)) {
|
|
460
477
|
throw new chunkCCA2T5YW_cjs.YargsCheckError("Version must be 'dev' or a valid semver version");
|
|
461
478
|
}
|
|
479
|
+
if (args.asPackage && !args.packageName) {
|
|
480
|
+
throw new chunkCCA2T5YW_cjs.YargsCheckError("Must specify packageName when generating as a package");
|
|
481
|
+
}
|
|
482
|
+
if (args.asPackage && !args.version) {
|
|
483
|
+
throw new chunkCCA2T5YW_cjs.YargsCheckError("Must specify version when generating as a package");
|
|
484
|
+
}
|
|
462
485
|
return true;
|
|
463
486
|
});
|
|
464
487
|
},
|
|
465
488
|
handler: async (args) => {
|
|
466
|
-
const command11 = await import('./handleGenerate-
|
|
489
|
+
const command11 = await import('./handleGenerate-KCAGHMHC.cjs');
|
|
467
490
|
await command11.default(args);
|
|
468
491
|
}
|
|
469
492
|
};
|
|
@@ -505,7 +528,7 @@ async function logLevelMiddleware(args) {
|
|
|
505
528
|
|
|
506
529
|
// src/cli.ts
|
|
507
530
|
async function cli(args = process.argv) {
|
|
508
|
-
consola.consola.info(`Palantir OSDK CLI ${"0.
|
|
531
|
+
consola.consola.info(`Palantir OSDK CLI ${"0.15.0"}
|
|
509
532
|
`);
|
|
510
533
|
const base = yargs__default.default(helpers.hideBin(args)).wrap(Math.min(150, yargs__default.default().terminalWidth())).env("OSDK").version(false).option("verbose", {
|
|
511
534
|
alias: "v",
|
package/build/js/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cli.ts","../../src/commands/auth/login/index.ts","../../src/commands/auth/index.ts","../../src/util/config.ts","../../src/util/configLoader.ts","../../src/commands/site/deploy/logDeployCommandConfigFileOverride.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/logSiteCommandConfigFileOverride.ts","../../src/commands/site/version/delete/index.ts","../../src/commands/site/version/get/index.ts","../../src/commands/site/version/list/index.ts","../../src/commands/site/version/set/index.ts","../../src/commands/site/version/unset/index.ts","../../src/commands/site/version/index.ts","../../src/commands/site/index.ts","../../src/commands/typescript/generate/generate.ts","../../src/commands/typescript/index.ts","../../src/yargs/logConfigFileMiddleware.ts","../../src/yargs/logLevelMiddleware.ts"],"names":["consola","command","autoVersion","application","foundryUrl","site","firstTime"],"mappings":";;;;;;;;;;;;AAgBA,SAAS,WAAAA,gBAAe;AACxB,SAAS,gBAAgB;AACzB,OAAO,WAAW;AAClB,SAAS,eAAe;;;ACHjB,IAAM,UAAU;AAAA,EACrB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,UAAQ;AACf,WAAO,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IAC5E;AAAA,IACA,SAAS,WAAS;AAAA,IAAC;AAAA,EACrB,CAAC,EAAE,KAAK,OAAO,KAAK,KAAK,SAAS;AAChC,QAAI,eAAe,kBAAkB;AACnC,MAAAA,SAAQ,MAAM,IAAI,OAAO;AACzB,UAAI,IAAI,OAAO,MAAM;AACnB,QAAAA,SAAQ,IAAI,SAAS,QAAQ,kBAAW,IAAI,GAAG,EAAE,CAAC;AAClD,QAAAA,SAAQ,IAAI,EAAE;AAAA,MAChB;AACA,MAAAA,SAAQ,MAAM,IAAI,KAAK;AAAA,IACzB,OAAO;AACL,UAAI,OAAO,eAAe,oBAAoB,OAAO;AACnD,cAAM;AAAA,MACR,OAAO;AACL,aAAK,SAAS;AACd,QAAAA,SAAQ,IAAI,EAAE;AACd,QAAAA,SAAQ,MAAM,GAAG;AAAA,MACnB;AAAA,IACF;AACA,YAAQ,KAAK,CAAC;AAAA,EAChB,CAAC;AAGD,MAAI;AACF,WAAO,MAAM,KAAK,WAAW;AAAA,EAC/B,SAAS,KAAK;AACZ,QAAI,eAAe,kBAAkB;AACnC,MAAAA,SAAQ,MAAM,GAAG;AAAA,IACnB;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 { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\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 { logConfigFileMiddleware } from \"./yargs/logConfigFileMiddleware.js\";\nimport { logLevelMiddleware } from \"./yargs/logLevelMiddleware.js\";\nimport { YargsCheckError } from \"./YargsCheckError.js\";\nexport async function cli(args = process.argv) {\n consola.info(`Palantir OSDK CLI ${process.env.PACKAGE_VERSION}\\n`);\n const base = yargs(hideBin(args)).wrap(Math.min(150, yargs().terminalWidth())).env(\"OSDK\").version(false).option(\"verbose\", {\n alias: \"v\",\n type: \"boolean\",\n description: \"Enable verbose logging\",\n count: true\n }).demandCommand().middleware(logLevelMiddleware, true).middleware(logConfigFileMiddleware).strict().command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n describe: \"Unstable commands\",\n builder: async argv => {\n return argv.command(site).command(typescript).command(auth).demandCommand();\n },\n handler: _args => {}\n }).fail(async (msg, err, argv) => {\n if (err instanceof ExitProcessError) {\n consola.error(err.message);\n if (err.tip != null) {\n consola.log(colorize(\"bold\", `💡 Tip: ${err.tip}`));\n consola.log(\"\");\n }\n consola.debug(err.stack);\n } else {\n if (err && err instanceof YargsCheckError === false) {\n throw err;\n } else {\n argv.showHelp();\n consola.log(\"\");\n consola.error(msg);\n }\n }\n process.exit(1);\n });\n\n // Special handling where failures happen before yargs does its error handling within .fail\n try {\n return await base.parseAsync();\n } catch (err) {\n if (err instanceof ExitProcessError) {\n consola.error(err);\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(\"clientId\", {\n alias: \"applicationId\",\n // for backwards compatibility\n type: \"string\",\n demandOption: true,\n describe: \"OAuth client ID for application\"\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 foundryUrl: {\n type: \"string\",\n demandOption: true,\n alias: \"baseUrl\",\n // for backwards compatibility\n describe: \"URL for the Foundry stack\"\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\nimport { promises as fsPromises } from \"node:fs\";\nimport { extname } from \"node:path\";\nimport { ExitProcessError } from \"../ExitProcessError.js\";\nconst CONFIG_FILE_NAMES = [\"foundry.config.json\"];\nconst CONFIG_FILE_SCHEMA = {\n type: \"object\",\n properties: {\n foundryUrl: {\n type: \"string\"\n },\n site: {\n type: \"object\",\n properties: {\n application: {\n type: \"string\"\n },\n directory: {\n type: \"string\"\n },\n autoVersion: {\n type: \"object\",\n nullable: true,\n oneOf: [{\n properties: {\n \"type\": {\n const: \"git-describe\",\n type: \"string\"\n },\n \"tagPrefix\": {\n type: \"string\",\n nullable: true\n }\n }\n }],\n required: [\"type\"]\n }\n },\n required: [\"application\", \"directory\"]\n }\n },\n required: [\"foundryUrl\", \"site\"],\n additionalProperties: false\n};\n\n/**\n * Asynchronously loads a configuration file. Looks for any of the CONFIG_FILE_NAMES in the current directory going up to the root directory.\n * @returns A promise that resolves to the configuration JSON object, or undefined if not found.\n * @throws Will throw an error if the configuration file is found but cannot be read or parsed.\n */\nexport async function loadFoundryConfig() {\n const ajvModule = await import(\"ajv\");\n const Ajv = ajvModule.default.default; // https://github.com/ajv-validator/ajv/issues/2132\n const ajv = new Ajv({\n allErrors: true\n });\n const validate = ajv.compile(CONFIG_FILE_SCHEMA);\n const {\n findUp\n } = await import(\"find-up\");\n const configFilePath = await findUp(CONFIG_FILE_NAMES);\n if (configFilePath) {\n let foundryConfig;\n try {\n const fileContent = await fsPromises.readFile(configFilePath, \"utf-8\");\n foundryConfig = parseConfigFile(fileContent, configFilePath);\n } catch (error) {\n throw new ExitProcessError(2, `Couldn't read or parse config file ${configFilePath}. Error: ${error}`);\n }\n if (!validate(foundryConfig)) {\n throw new ExitProcessError(2, `The configuration file does not match the expected schema: ${ajv.errorsText(validate.errors)}`);\n }\n return {\n foundryConfig,\n configFilePath\n };\n }\n return undefined;\n}\nfunction parseConfigFile(fileContent, configFilePath) {\n const extension = extname(configFilePath);\n switch (extension) {\n case \".json\":\n return JSON.parse(fileContent);\n default:\n throw new ExitProcessError(2, `Unsupported file extension: ${extension} for config file.`);\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 { loadFoundryConfig } from \"./config.js\";\nlet configPromise = undefined;\nfunction getConfig() {\n if (configPromise == null) {\n configPromise = loadFoundryConfig();\n }\n return configPromise;\n}\nexport default getConfig;","/*\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\";\nexport async function logDeployCommandConfigFileOverride(args, config) {\n if (config?.autoVersion != null && args.autoVersion !== config?.autoVersion.type) {\n consola.debug(`Overriding \"autoVersion\" from config file with ${args.autoVersion}`);\n }\n if (config?.directory != null && args.directory !== config?.directory) {\n consola.debug(`Overriding \"directory\" from config file with ${args.directory}`);\n }\n if (config?.autoVersion?.tagPrefix != null && args.gitTagPrefix != null && args.gitTagPrefix !== config?.autoVersion.tagPrefix) {\n consola.debug(`Overriding \"gitTagPrefix\" from config file with ${args.gitTagPrefix}`);\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 configLoader from \"../../../util/configLoader.js\";\nimport { isValidSemver } from \"../../../util/isValidSemver.js\";\nimport { YargsCheckError } from \"../../../YargsCheckError.js\";\nimport { logDeployCommandConfigFileOverride } from \"./logDeployCommandConfigFileOverride.js\";\nconst command = {\n command: \"deploy\",\n describe: \"Deploy a new site version\",\n builder: async argv => {\n const config = await configLoader();\n const siteConfig = config?.foundryConfig.site;\n const directory = siteConfig?.directory;\n const autoVersion = siteConfig?.autoVersion;\n const gitTagPrefix = autoVersion?.tagPrefix;\n return argv.options({\n directory: {\n type: \"string\",\n description: \"Directory containing site files\",\n ...(directory ? {\n default: directory\n } : {\n demandOption: true\n })\n },\n uploadOnly: {\n type: \"boolean\",\n description: \"Upload new site version only without setting as live\",\n default: false\n },\n version: {\n type: \"string\",\n description: \"New version of site to deploy\",\n ...(autoVersion == null ? {\n conflicts: \"autoVersion\"\n } : {})\n },\n autoVersion: {\n coerce: autoVersion => autoVersion,\n type: \"string\",\n choices: [\"git-describe\"],\n description: \"Enable auto versioning\",\n ...(autoVersion != null ? {\n default: autoVersion.type\n } : {\n conflicts: \"version\"\n })\n },\n gitTagPrefix: {\n type: \"string\",\n description: \"Prefix to match git tags on when 'git-describe' auto versioning is used. If not provided, all tags are matched and the prefix 'v' is stripped if present.\",\n ...(gitTagPrefix ? {\n default: gitTagPrefix\n } : {})\n }\n }).group([\"directory\", \"version\", \"uploadOnly\"], \"Deploy Options\").group([\"autoVersion\", \"gitTagPrefix\"], \"Auto Version Options\").check(args => {\n // This is required because we can't use demandOption with conflicts. conflicts protects us against the case where both are provided.\n // So this case is for when nothing is provided.\n if (autoVersion == null && args.autoVersion == null && args.version == null) {\n throw new YargsCheckError(\"One of --version or --autoVersion must be specified\");\n }\n if (args.version != null && !isValidSemver(args.version)) {\n throw new YargsCheckError(`--version \"${args.version}\" must be a valid SemVer string`);\n }\n const autoVersionType = args.autoVersion ?? autoVersion;\n if (autoVersionType !== \"git-describe\") {\n throw new YargsCheckError(`Only 'git-describe' is supported for autoVersion`);\n }\n const gitTagPrefixValue = args.gitTagPrefix ?? gitTagPrefix;\n // Future proofing for when we support other autoVersion types\n if (gitTagPrefixValue != null && autoVersionType !== \"git-describe\") {\n throw new YargsCheckError(`--gitTagPrefix is only supported when --autoVersion=git-describe`);\n }\n return true;\n }).middleware(args => logDeployCommandConfigFileOverride(args, siteConfig));\n },\n handler: async args => {\n const command = await import(\"./siteDeployCommand.mjs\");\n const {\n version,\n autoVersion,\n gitTagPrefix,\n ...restArgs\n } = args;\n const selectedVersion = args.version != null ? args.version : {\n type: args.autoVersion,\n tagPrefix: args.gitTagPrefix\n };\n await command.default({\n ...restArgs,\n selectedVersion\n });\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 { consola } from \"consola\";\nexport async function logSiteCommandConfigFileOverride(args, config) {\n if (config?.site.application != null && args.application !== config.site.application) {\n consola.debug(`Overriding \"application\" from config file with ${args.application}`);\n }\n if (config?.foundryUrl != null && args.foundryUrl !== config.foundryUrl) {\n consola.debug(`Overriding \"foundryUrl\" from config file with ${args.foundryUrl}`);\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\nconst command = {\n command: \"delete <version>\",\n describe: \"Delete site version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to set as live\"\n }).option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Delete Options\");\n },\n handler: async args => {\n const command = await import(\"./versionDeleteCommand.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\nconst command = {\n command: \"get\",\n describe: \"Get live site version\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionGetCommand.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\nconst command = {\n command: \"list\",\n describe: \"List site versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionListCommand.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\nconst command = {\n command: \"set <version>\",\n describe: \"Set live site version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to set as live\"\n });\n },\n handler: async args => {\n const command = await import(\"./versionSetCommand.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\nconst command = {\n command: \"unset\",\n describe: \"Clear live site version\",\n builder: argv => {\n return argv.option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Unset Options\");\n },\n handler: async args => {\n const command = await import(\"./versionUnsetCommand.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 deleteCmd from \"./delete/index.js\";\nimport get from \"./get/index.js\";\nimport list from \"./list/index.js\";\nimport set from \"./set/index.js\";\nimport unset from \"./unset/index.js\";\nconst command = {\n command: \"version\",\n describe: \"Manage site versions\",\n builder: argv => {\n return argv.command(list).command(get).command(set).command(unset).command(deleteCmd).demandCommand();\n },\n handler: async args => {}\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 configLoader from \"../../util/configLoader.js\";\nimport { YargsCheckError } from \"../../YargsCheckError.js\";\nimport deploy from \"./deploy/index.js\";\nimport { logSiteCommandConfigFileOverride } from \"./logSiteCommandConfigFileOverride.js\";\nimport version from \"./version/index.js\";\nconst command = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: async argv => {\n const config = await configLoader();\n const application = config?.foundryConfig.site.application;\n const foundryUrl = config?.foundryConfig.foundryUrl;\n return argv.options({\n application: {\n type: \"string\",\n coerce: application => application,\n ...(application ? {\n default: application\n } : {\n demandOption: true\n }),\n description: \"Application resource identifier (rid)\"\n },\n foundryUrl: {\n coerce: foundryUrl => foundryUrl.replace(/\\/$/, \"\"),\n type: \"string\",\n ...(foundryUrl ? {\n default: foundryUrl\n } : {\n demandOption: true\n }),\n description: \"URL for the Foundry stack\"\n },\n token: {\n type: \"string\",\n conflicts: \"tokenFile\",\n description: \"Foundry API token\"\n },\n tokenFile: {\n type: \"string\",\n conflicts: \"token\",\n description: \"Path to file containing Foundry API token\"\n }\n }).group([\"application\", \"foundryUrl\", \"token\", \"tokenFile\"], \"Common Options\").command(version).command(deploy).check(args => {\n if (!args.foundryUrl.startsWith(\"https://\")) {\n throw new YargsCheckError(\"foundryUrl must start with https://\");\n }\n return true;\n }).middleware(args => logSiteCommandConfigFileOverride(args, config?.foundryConfig)).demandCommand();\n },\n handler: async args => {}\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 { isValidSemver } from \"../../../util/isValidSemver.js\";\nimport { YargsCheckError } from \"../../../YargsCheckError.js\";\nexport const command = {\n command: \"generate\",\n describe: \"Generate TypeScript SDK 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: [\"foundryUrl\", \"clientId\"]\n },\n foundryUrl: {\n description: \"URL for the foundry stack that contains the ontology\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"clientId\",\n alias: \"stack\" // for backwards compatibility\n },\n clientId: {\n description: \"OAuth client ID for application\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"foundryUrl\"\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 version: {\n type: \"string\",\n description: \"Version of the generated code, or 'dev'\",\n demandOption: true\n }\n }).group([\"ontologyPath\", \"outDir\", \"version\"], \"Generate from a local file\").group([\"foundryUrl\", \"clientId\", \"outDir\", \"ontologyWritePath\", \"version\"], \"OR Generate from Foundry\").check(args => {\n if (!args.ontologyPath && !args.foundryUrl) {\n throw new YargsCheckError(\"Must specify either ontologyPath or foundryUrl and clientId\");\n }\n if (args.version !== \"dev\" && !isValidSemver(args.version)) {\n throw new YargsCheckError(\"Version must be 'dev' or a valid semver version\");\n }\n return true;\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 { consola } from \"consola\";\nimport getConfig from \"../util/configLoader.js\";\nlet firstTime = true;\nexport async function logConfigFileMiddleware() {\n if (firstTime) {\n firstTime = false;\n const config = getConfig();\n const configFilePath = (await config)?.configFilePath;\n if (configFilePath) {\n consola.debug(`Using configuration from file: \"${configFilePath}\"`);\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 { consola } from \"consola\";\nlet firstTime = true;\nexport async function logLevelMiddleware(args) {\n if (firstTime) {\n firstTime = false;\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 }\n}"]}
|
|
1
|
+
{"version":3,"sources":["../../src/cli.ts","../../src/commands/auth/login/index.ts","../../src/commands/auth/index.ts","../../src/util/config.ts","../../src/util/configLoader.ts","../../src/commands/site/deploy/logDeployCommandConfigFileOverride.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/logSiteCommandConfigFileOverride.ts","../../src/commands/site/version/delete/index.ts","../../src/commands/site/version/get/index.ts","../../src/commands/site/version/list/index.ts","../../src/commands/site/version/set/index.ts","../../src/commands/site/version/unset/index.ts","../../src/commands/site/version/index.ts","../../src/commands/site/index.ts","../../src/commands/typescript/generate/generate.ts","../../src/commands/typescript/index.ts","../../src/yargs/logConfigFileMiddleware.ts","../../src/yargs/logLevelMiddleware.ts"],"names":["consola","command","autoVersion","application","foundryUrl","site","firstTime"],"mappings":";;;;;;;;;;;;AAgBA,SAAS,WAAAA,gBAAe;AACxB,SAAS,gBAAgB;AACzB,OAAO,WAAW;AAClB,SAAS,eAAe;;;ACHjB,IAAM,UAAU;AAAA,EACrB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,UAAQ;AACf,WAAO,KAAK,OAAO,YAAY;AAAA,MAC7B,OAAO;AAAA;AAAA,MAEP,MAAM;AAAA,MACN,cAAc;AAAA,MACd,UAAU;AA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AE,QAAQ,KAAK,EAAE,OAAO,WAAW;AAAA,IAC1H,OAAO;AAAA,IACP,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,EACT,CAAC,EAAE,cAAc,EAAE,WAAW,oBAAoB,IAAI,EAAE,WAAW,uBAAuB,EAAE,OAAO,EAAE,QAAQ;AAAA,IAC3G,SAAS;AAAA,IACT,SAAS,CAAC,cAAc;AAAA,IACxB,UAAU;AAAA,IACV,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,EAAE,KAAK,OAAO,KAAK,KAAK,SAAS;AAChC,QAAI,eAAe,kBAAkB;AACnC,MAAAA,SAAQ,MAAM,IAAI,OAAO;AACzB,UAAI,IAAI,OAAO,MAAM;AACnB,QAAAA,SAAQ,IAAI,SAAS,QAAQ,kBAAW,IAAI,GAAG,EAAE,CAAC;AAClD,QAAAA,SAAQ,IAAI,EAAE;AAAA,MAChB;AACA,MAAAA,SAAQ,MAAM,IAAI,KAAK;AAAA,IACzB,OAAO;AACL,UAAI,OAAO,eAAe,oBAAoB,OAAO;AACnD,cAAM;AAAA,MACR,OAAO;AACL,aAAK,SAAS;AACd,QAAAA,SAAQ,IAAI,EAAE;AACd,QAAAA,SAAQ,MAAM,GAAG;AAAA,MACnB;AAAA,IACF;AACA,YAAQ,KAAK,CAAC;AAAA,EAChB,CAAC;AAGD,MAAI;AACF,WAAO,MAAM,KAAK,WAAW;AAAA,EAC/B,SAAS,KAAK;AACZ,QAAI,eAAe,kBAAkB;AACnC,MAAAA,SAAQ,MAAM,GAAG;AAAA,IACnB;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 { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\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 { logConfigFileMiddleware } from \"./yargs/logConfigFileMiddleware.js\";\nimport { logLevelMiddleware } from \"./yargs/logLevelMiddleware.js\";\nimport { YargsCheckError } from \"./YargsCheckError.js\";\nexport async function cli(args = process.argv) {\n consola.info(`Palantir OSDK CLI ${process.env.PACKAGE_VERSION}\\n`);\n const base = yargs(hideBin(args)).wrap(Math.min(150, yargs().terminalWidth())).env(\"OSDK\").version(false).option(\"verbose\", {\n alias: \"v\",\n type: \"boolean\",\n description: \"Enable verbose logging\",\n count: true\n }).demandCommand().middleware(logLevelMiddleware, true).middleware(logConfigFileMiddleware).strict().command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n describe: \"Unstable commands\",\n builder: async argv => {\n return argv.command(site).command(typescript).command(auth).demandCommand();\n },\n handler: _args => {}\n }).fail(async (msg, err, argv) => {\n if (err instanceof ExitProcessError) {\n consola.error(err.message);\n if (err.tip != null) {\n consola.log(colorize(\"bold\", `💡 Tip: ${err.tip}`));\n consola.log(\"\");\n }\n consola.debug(err.stack);\n } else {\n if (err && err instanceof YargsCheckError === false) {\n throw err;\n } else {\n argv.showHelp();\n consola.log(\"\");\n consola.error(msg);\n }\n }\n process.exit(1);\n });\n\n // Special handling where failures happen before yargs does its error handling within .fail\n try {\n return await base.parseAsync();\n } catch (err) {\n if (err instanceof ExitProcessError) {\n consola.error(err);\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(\"clientId\", {\n alias: \"applicationId\",\n // for backwards compatibility\n type: \"string\",\n demandOption: true,\n describe: \"OAuth client ID for application\"\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 foundryUrl: {\n type: \"string\",\n demandOption: true,\n alias: \"baseUrl\",\n // for backwards compatibility\n describe: \"URL for the Foundry stack\"\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\nimport { promises as fsPromises } from \"node:fs\";\nimport { extname } from \"node:path\";\nimport { ExitProcessError } from \"../ExitProcessError.js\";\nconst CONFIG_FILE_NAMES = [\"foundry.config.json\"];\nconst CONFIG_FILE_SCHEMA = {\n type: \"object\",\n properties: {\n foundryUrl: {\n type: \"string\"\n },\n site: {\n type: \"object\",\n properties: {\n application: {\n type: \"string\"\n },\n directory: {\n type: \"string\"\n },\n autoVersion: {\n type: \"object\",\n nullable: true,\n oneOf: [{\n properties: {\n type: {\n const: \"git-describe\",\n type: \"string\"\n },\n tagPrefix: {\n type: \"string\",\n nullable: true\n }\n }\n }],\n required: [\"type\"]\n }\n },\n required: [\"application\", \"directory\"]\n }\n },\n required: [\"foundryUrl\", \"site\"],\n additionalProperties: false\n};\n\n/**\n * Asynchronously loads a configuration file. Looks for any of the CONFIG_FILE_NAMES in the current directory going up to the root directory.\n * @returns A promise that resolves to the configuration JSON object, or undefined if not found.\n * @throws Will throw an error if the configuration file is found but cannot be read or parsed.\n */\nexport async function loadFoundryConfig() {\n const ajvModule = await import(\"ajv\");\n const Ajv = ajvModule.default.default; // https://github.com/ajv-validator/ajv/issues/2132\n const ajv = new Ajv({\n allErrors: true\n });\n const validate = ajv.compile(CONFIG_FILE_SCHEMA);\n const {\n findUp\n } = await import(\"find-up\");\n const configFilePath = await findUp(CONFIG_FILE_NAMES);\n if (configFilePath) {\n let foundryConfig;\n try {\n const fileContent = await fsPromises.readFile(configFilePath, \"utf-8\");\n foundryConfig = parseConfigFile(fileContent, configFilePath);\n } catch (error) {\n throw new ExitProcessError(2, `Couldn't read or parse config file ${configFilePath}. Error: ${error}`);\n }\n if (!validate(foundryConfig)) {\n throw new ExitProcessError(2, `The configuration file does not match the expected schema: ${ajv.errorsText(validate.errors)}`);\n }\n return {\n foundryConfig,\n configFilePath\n };\n }\n return undefined;\n}\nfunction parseConfigFile(fileContent, configFilePath) {\n const extension = extname(configFilePath);\n switch (extension) {\n case \".json\":\n return JSON.parse(fileContent);\n default:\n throw new ExitProcessError(2, `Unsupported file extension: ${extension} for config file.`);\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 { loadFoundryConfig } from \"./config.js\";\nlet configPromise = undefined;\nfunction getConfig() {\n if (configPromise == null) {\n configPromise = loadFoundryConfig();\n }\n return configPromise;\n}\nexport default getConfig;","/*\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\";\nexport async function logDeployCommandConfigFileOverride(args, config) {\n if (config?.autoVersion != null && args.autoVersion !== config?.autoVersion.type) {\n consola.debug(`Overriding \"autoVersion\" from config file with ${args.autoVersion}`);\n }\n if (config?.directory != null && args.directory !== config?.directory) {\n consola.debug(`Overriding \"directory\" from config file with ${args.directory}`);\n }\n if (config?.autoVersion?.tagPrefix != null && args.gitTagPrefix != null && args.gitTagPrefix !== config?.autoVersion.tagPrefix) {\n consola.debug(`Overriding \"gitTagPrefix\" from config file with ${args.gitTagPrefix}`);\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 configLoader from \"../../../util/configLoader.js\";\nimport { isValidSemver } from \"../../../util/isValidSemver.js\";\nimport { YargsCheckError } from \"../../../YargsCheckError.js\";\nimport { logDeployCommandConfigFileOverride } from \"./logDeployCommandConfigFileOverride.js\";\nconst command = {\n command: \"deploy\",\n describe: \"Deploy a new site version\",\n builder: async argv => {\n const config = await configLoader();\n const siteConfig = config?.foundryConfig.site;\n const directory = siteConfig?.directory;\n const autoVersion = siteConfig?.autoVersion;\n const gitTagPrefix = autoVersion?.tagPrefix;\n return argv.options({\n directory: {\n type: \"string\",\n description: \"Directory containing site files\",\n ...(directory ? {\n default: directory\n } : {\n demandOption: true\n })\n },\n uploadOnly: {\n type: \"boolean\",\n description: \"Upload new site version only without setting as live\",\n default: false\n },\n version: {\n type: \"string\",\n description: \"New version of site to deploy\",\n ...(autoVersion == null ? {\n conflicts: \"autoVersion\"\n } : {})\n },\n autoVersion: {\n coerce: autoVersion => autoVersion,\n type: \"string\",\n choices: [\"git-describe\"],\n description: \"Enable auto versioning\",\n ...(autoVersion != null ? {\n default: autoVersion.type\n } : {\n conflicts: \"version\"\n })\n },\n gitTagPrefix: {\n type: \"string\",\n description: \"Prefix to match git tags on when 'git-describe' auto versioning is used. If not provided, all tags are matched and the prefix 'v' is stripped if present.\",\n ...(gitTagPrefix ? {\n default: gitTagPrefix\n } : {})\n }\n }).group([\"directory\", \"version\", \"uploadOnly\"], \"Deploy Options\").group([\"autoVersion\", \"gitTagPrefix\"], \"Auto Version Options\").check(args => {\n // This is required because we can't use demandOption with conflicts. conflicts protects us against the case where both are provided.\n // So this case is for when nothing is provided.\n if (autoVersion == null && args.autoVersion == null && args.version == null) {\n throw new YargsCheckError(\"One of --version or --autoVersion must be specified\");\n }\n if (args.version != null && !isValidSemver(args.version)) {\n throw new YargsCheckError(`--version \"${args.version}\" must be a valid SemVer string`);\n }\n const autoVersionType = args.autoVersion ?? autoVersion;\n if (autoVersionType !== \"git-describe\") {\n throw new YargsCheckError(`Only 'git-describe' is supported for autoVersion`);\n }\n const gitTagPrefixValue = args.gitTagPrefix ?? gitTagPrefix;\n // Future proofing for when we support other autoVersion types\n if (gitTagPrefixValue != null && autoVersionType !== \"git-describe\") {\n throw new YargsCheckError(`--gitTagPrefix is only supported when --autoVersion=git-describe`);\n }\n return true;\n }).middleware(args => logDeployCommandConfigFileOverride(args, siteConfig));\n },\n handler: async args => {\n const command = await import(\"./siteDeployCommand.mjs\");\n const {\n version,\n autoVersion,\n gitTagPrefix,\n ...restArgs\n } = args;\n const selectedVersion = args.version != null ? args.version : {\n type: args.autoVersion,\n tagPrefix: args.gitTagPrefix\n };\n await command.default({\n ...restArgs,\n selectedVersion\n });\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 { consola } from \"consola\";\nexport async function logSiteCommandConfigFileOverride(args, config) {\n if (config?.site.application != null && args.application !== config.site.application) {\n consola.debug(`Overriding \"application\" from config file with ${args.application}`);\n }\n if (config?.foundryUrl != null && args.foundryUrl !== config.foundryUrl) {\n consola.debug(`Overriding \"foundryUrl\" from config file with ${args.foundryUrl}`);\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\nconst command = {\n command: \"delete <version>\",\n describe: \"Delete site version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to set as live\"\n }).option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Delete Options\");\n },\n handler: async args => {\n const command = await import(\"./versionDeleteCommand.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\nconst command = {\n command: \"get\",\n describe: \"Get live site version\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionGetCommand.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\nconst command = {\n command: \"list\",\n describe: \"List site versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionListCommand.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\nconst command = {\n command: \"set <version>\",\n describe: \"Set live site version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to set as live\"\n });\n },\n handler: async args => {\n const command = await import(\"./versionSetCommand.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\nconst command = {\n command: \"unset\",\n describe: \"Clear live site version\",\n builder: argv => {\n return argv.option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Unset Options\");\n },\n handler: async args => {\n const command = await import(\"./versionUnsetCommand.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 deleteCmd from \"./delete/index.js\";\nimport get from \"./get/index.js\";\nimport list from \"./list/index.js\";\nimport set from \"./set/index.js\";\nimport unset from \"./unset/index.js\";\nconst command = {\n command: \"version\",\n describe: \"Manage site versions\",\n builder: argv => {\n return argv.command(list).command(get).command(set).command(unset).command(deleteCmd).demandCommand();\n },\n handler: async args => {}\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 configLoader from \"../../util/configLoader.js\";\nimport { YargsCheckError } from \"../../YargsCheckError.js\";\nimport deploy from \"./deploy/index.js\";\nimport { logSiteCommandConfigFileOverride } from \"./logSiteCommandConfigFileOverride.js\";\nimport version from \"./version/index.js\";\nconst command = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: async argv => {\n const config = await configLoader();\n const application = config?.foundryConfig.site.application;\n const foundryUrl = config?.foundryConfig.foundryUrl;\n return argv.options({\n application: {\n type: \"string\",\n coerce: application => application,\n ...(application ? {\n default: application\n } : {\n demandOption: true\n }),\n description: \"Application resource identifier (rid)\"\n },\n foundryUrl: {\n coerce: foundryUrl => foundryUrl.replace(/\\/$/, \"\"),\n type: \"string\",\n ...(foundryUrl ? {\n default: foundryUrl\n } : {\n demandOption: true\n }),\n description: \"URL for the Foundry stack\"\n },\n token: {\n type: \"string\",\n conflicts: \"tokenFile\",\n description: \"Foundry API token\"\n },\n tokenFile: {\n type: \"string\",\n conflicts: \"token\",\n description: \"Path to file containing Foundry API token\"\n }\n }).group([\"application\", \"foundryUrl\", \"token\", \"tokenFile\"], \"Common Options\").command(version).command(deploy).check(args => {\n if (!args.foundryUrl.startsWith(\"https://\")) {\n throw new YargsCheckError(\"foundryUrl must start with https://\");\n }\n return true;\n }).middleware(args => logSiteCommandConfigFileOverride(args, config?.foundryConfig)).demandCommand();\n },\n handler: async args => {}\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 { isValidSemver } from \"../../../util/isValidSemver.js\";\nimport { YargsCheckError } from \"../../../YargsCheckError.js\";\nexport const command = {\n command: \"generate\",\n describe: \"Generate TypeScript SDK 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: [\"foundryUrl\", \"clientId\"]\n },\n foundryUrl: {\n description: \"URL for the foundry stack that contains the ontology\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"clientId\",\n alias: \"stack\" // for backwards compatibility\n },\n clientId: {\n description: \"OAuth client ID for application\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"foundryUrl\"\n },\n ontologyRid: {\n description: \"Limit requests to this ontology rid only\",\n type: \"string\",\n demandOption: false\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 version: {\n type: \"string\",\n description: \"Version of the generated code, or 'dev'\",\n demandOption: true\n },\n packageName: {\n type: \"string\",\n description: \"Name of the package to generate\"\n },\n asPackage: {\n type: \"boolean\",\n description: \"Generate as a package (makes a package.json and co)\"\n },\n clean: {\n type: \"boolean\",\n description: \"Clean the output directory before generating\"\n }\n }).group([\"ontologyPath\", \"outDir\", \"version\"], \"Generate from a local file\").group([\"foundryUrl\", \"clientId\", \"outDir\", \"ontologyWritePath\", \"version\"], \"OR Generate from Foundry\").group([\"packageName\", \"as\"], \"Package generation options\").check(args => {\n if (!args.ontologyPath && !args.foundryUrl) {\n throw new YargsCheckError(\"Must specify either ontologyPath or foundryUrl and clientId\");\n }\n if (args.version !== \"dev\" && !isValidSemver(args.version)) {\n throw new YargsCheckError(\"Version must be 'dev' or a valid semver version\");\n }\n if (args.asPackage && !args.packageName) {\n throw new YargsCheckError(\"Must specify packageName when generating as a package\");\n }\n if (args.asPackage && !args.version) {\n throw new YargsCheckError(\"Must specify version when generating as a package\");\n }\n return true;\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 { consola } from \"consola\";\nimport getConfig from \"../util/configLoader.js\";\nlet firstTime = true;\nexport async function logConfigFileMiddleware() {\n if (firstTime) {\n firstTime = false;\n const config = getConfig();\n const configFilePath = (await config)?.configFilePath;\n if (configFilePath) {\n consola.debug(`Using configuration from file: \"${configFilePath}\"`);\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 { consola } from \"consola\";\nlet firstTime = true;\nexport async function logLevelMiddleware(args) {\n if (firstTime) {\n firstTime = false;\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 }\n}"]}
|
package/build/js/index.mjs
CHANGED
|
@@ -69,11 +69,11 @@ var CONFIG_FILE_SCHEMA = {
|
|
|
69
69
|
nullable: true,
|
|
70
70
|
oneOf: [{
|
|
71
71
|
properties: {
|
|
72
|
-
|
|
72
|
+
type: {
|
|
73
73
|
const: "git-describe",
|
|
74
74
|
type: "string"
|
|
75
75
|
},
|
|
76
|
-
|
|
76
|
+
tagPrefix: {
|
|
77
77
|
type: "string",
|
|
78
78
|
nullable: true
|
|
79
79
|
}
|
|
@@ -217,7 +217,7 @@ var command2 = {
|
|
|
217
217
|
}).middleware((args) => logDeployCommandConfigFileOverride(args, siteConfig));
|
|
218
218
|
},
|
|
219
219
|
handler: async (args) => {
|
|
220
|
-
const command11 = await import('./siteDeployCommand-
|
|
220
|
+
const command11 = await import('./siteDeployCommand-QMX5EY2K.mjs');
|
|
221
221
|
const {
|
|
222
222
|
version,
|
|
223
223
|
autoVersion,
|
|
@@ -260,7 +260,7 @@ var command3 = {
|
|
|
260
260
|
}).group(["yes"], "Delete Options");
|
|
261
261
|
},
|
|
262
262
|
handler: async (args) => {
|
|
263
|
-
const command11 = await import('./versionDeleteCommand-
|
|
263
|
+
const command11 = await import('./versionDeleteCommand-S3PG23IT.mjs');
|
|
264
264
|
await command11.default(args);
|
|
265
265
|
}
|
|
266
266
|
};
|
|
@@ -274,7 +274,7 @@ var command4 = {
|
|
|
274
274
|
return argv;
|
|
275
275
|
},
|
|
276
276
|
handler: async (args) => {
|
|
277
|
-
const command11 = await import('./versionGetCommand-
|
|
277
|
+
const command11 = await import('./versionGetCommand-IKDSYKJM.mjs');
|
|
278
278
|
await command11.default(args);
|
|
279
279
|
}
|
|
280
280
|
};
|
|
@@ -288,7 +288,7 @@ var command5 = {
|
|
|
288
288
|
return argv;
|
|
289
289
|
},
|
|
290
290
|
handler: async (args) => {
|
|
291
|
-
const command11 = await import('./versionListCommand-
|
|
291
|
+
const command11 = await import('./versionListCommand-YP6X66SJ.mjs');
|
|
292
292
|
await command11.default(args);
|
|
293
293
|
}
|
|
294
294
|
};
|
|
@@ -306,7 +306,7 @@ var command6 = {
|
|
|
306
306
|
});
|
|
307
307
|
},
|
|
308
308
|
handler: async (args) => {
|
|
309
|
-
const command11 = await import('./versionSetCommand-
|
|
309
|
+
const command11 = await import('./versionSetCommand-KXNXVRXK.mjs');
|
|
310
310
|
await command11.default(args);
|
|
311
311
|
}
|
|
312
312
|
};
|
|
@@ -324,7 +324,7 @@ var command7 = {
|
|
|
324
324
|
}).group(["yes"], "Unset Options");
|
|
325
325
|
},
|
|
326
326
|
handler: async (args) => {
|
|
327
|
-
const command11 = await import('./versionUnsetCommand-
|
|
327
|
+
const command11 = await import('./versionUnsetCommand-XH4PGAIP.mjs');
|
|
328
328
|
await command11.default(args);
|
|
329
329
|
}
|
|
330
330
|
};
|
|
@@ -399,7 +399,7 @@ var command10 = {
|
|
|
399
399
|
describe: "Generate TypeScript SDK from ontology",
|
|
400
400
|
builder: (argv) => {
|
|
401
401
|
return argv.options({
|
|
402
|
-
|
|
402
|
+
outDir: {
|
|
403
403
|
type: "string",
|
|
404
404
|
description: "Where to place the generated files",
|
|
405
405
|
demandOption: true
|
|
@@ -426,6 +426,11 @@ var command10 = {
|
|
|
426
426
|
conflicts: "ontologyPath",
|
|
427
427
|
implies: "foundryUrl"
|
|
428
428
|
},
|
|
429
|
+
ontologyRid: {
|
|
430
|
+
description: "Limit requests to this ontology rid only",
|
|
431
|
+
type: "string",
|
|
432
|
+
demandOption: false
|
|
433
|
+
},
|
|
429
434
|
ontologyWritePath: {
|
|
430
435
|
description: "Path to write the ontology wire json",
|
|
431
436
|
type: "string",
|
|
@@ -445,19 +450,37 @@ var command10 = {
|
|
|
445
450
|
type: "string",
|
|
446
451
|
description: "Version of the generated code, or 'dev'",
|
|
447
452
|
demandOption: true
|
|
453
|
+
},
|
|
454
|
+
packageName: {
|
|
455
|
+
type: "string",
|
|
456
|
+
description: "Name of the package to generate"
|
|
457
|
+
},
|
|
458
|
+
asPackage: {
|
|
459
|
+
type: "boolean",
|
|
460
|
+
description: "Generate as a package (makes a package.json and co)"
|
|
461
|
+
},
|
|
462
|
+
clean: {
|
|
463
|
+
type: "boolean",
|
|
464
|
+
description: "Clean the output directory before generating"
|
|
448
465
|
}
|
|
449
|
-
}).group(["ontologyPath", "outDir", "version"], "Generate from a local file").group(["foundryUrl", "clientId", "outDir", "ontologyWritePath", "version"], "OR Generate from Foundry").check((args) => {
|
|
466
|
+
}).group(["ontologyPath", "outDir", "version"], "Generate from a local file").group(["foundryUrl", "clientId", "outDir", "ontologyWritePath", "version"], "OR Generate from Foundry").group(["packageName", "as"], "Package generation options").check((args) => {
|
|
450
467
|
if (!args.ontologyPath && !args.foundryUrl) {
|
|
451
468
|
throw new YargsCheckError("Must specify either ontologyPath or foundryUrl and clientId");
|
|
452
469
|
}
|
|
453
470
|
if (args.version !== "dev" && !isValidSemver(args.version)) {
|
|
454
471
|
throw new YargsCheckError("Version must be 'dev' or a valid semver version");
|
|
455
472
|
}
|
|
473
|
+
if (args.asPackage && !args.packageName) {
|
|
474
|
+
throw new YargsCheckError("Must specify packageName when generating as a package");
|
|
475
|
+
}
|
|
476
|
+
if (args.asPackage && !args.version) {
|
|
477
|
+
throw new YargsCheckError("Must specify version when generating as a package");
|
|
478
|
+
}
|
|
456
479
|
return true;
|
|
457
480
|
});
|
|
458
481
|
},
|
|
459
482
|
handler: async (args) => {
|
|
460
|
-
const command11 = await import('./handleGenerate-
|
|
483
|
+
const command11 = await import('./handleGenerate-FSKXULOJ.mjs');
|
|
461
484
|
await command11.default(args);
|
|
462
485
|
}
|
|
463
486
|
};
|
|
@@ -499,7 +522,7 @@ async function logLevelMiddleware(args) {
|
|
|
499
522
|
|
|
500
523
|
// src/cli.ts
|
|
501
524
|
async function cli(args = process.argv) {
|
|
502
|
-
consola.info(`Palantir OSDK CLI ${"0.
|
|
525
|
+
consola.info(`Palantir OSDK CLI ${"0.15.0"}
|
|
503
526
|
`);
|
|
504
527
|
const base = yargs(hideBin(args)).wrap(Math.min(150, yargs().terminalWidth())).env("OSDK").version(false).option("verbose", {
|
|
505
528
|
alias: "v",
|