@osdk/cli 0.14.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-4ZJAXFFT.mjs → chunk-EALLTV7S.mjs} +2 -2
- package/build/js/{chunk-MS72SCKG.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-XWGLYIMU.cjs → siteDeployCommand-NF4NIH2Y.cjs} +9 -9
- package/build/js/{siteDeployCommand-OKFLCN7L.mjs → siteDeployCommand-QMX5EY2K.mjs} +2 -2
- package/build/js/{versionDeleteCommand-MGKK73ZV.cjs → versionDeleteCommand-7XQQMEP6.cjs} +5 -5
- package/build/js/{versionDeleteCommand-NJFRYKFM.mjs → versionDeleteCommand-S3PG23IT.mjs} +2 -2
- package/build/js/{versionGetCommand-JEYADJ77.mjs → versionGetCommand-IKDSYKJM.mjs} +2 -2
- package/build/js/{versionGetCommand-IHMNJSVC.cjs → versionGetCommand-PBCSZZ2W.cjs} +7 -7
- package/build/js/{versionListCommand-5C57X7XC.cjs → versionListCommand-KSQJH2CQ.cjs} +7 -7
- package/build/js/{versionListCommand-PKRL3YOJ.mjs → versionListCommand-YP6X66SJ.mjs} +2 -2
- package/build/js/{versionSetCommand-N2RZ26BU.cjs → versionSetCommand-2L3BCYZ7.cjs} +7 -7
- package/build/js/{versionSetCommand-GNNIGVJO.mjs → versionSetCommand-KXNXVRXK.mjs} +2 -2
- package/build/js/{versionUnsetCommand-ADQMB7SL.cjs → versionUnsetCommand-BIBSMJRY.cjs} +7 -7
- package/build/js/{versionUnsetCommand-QE6SPGJQ.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.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 +7 -5
- package/build/js/handleGenerate-SKQROGSR.cjs +0 -123
- package/build/js/handleGenerate-SKQROGSR.cjs.map +0 -1
- package/build/js/handleGenerate-YUTYPPAT.mjs +0 -101
- package/build/js/handleGenerate-YUTYPPAT.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-4ZJAXFFT.mjs.map → chunk-EALLTV7S.mjs.map} +0 -0
- /package/build/js/{chunk-MS72SCKG.cjs.map → chunk-F6Y3FTY6.cjs.map} +0 -0
- /package/build/js/{siteDeployCommand-OKFLCN7L.mjs.map → siteDeployCommand-NF4NIH2Y.cjs.map} +0 -0
- /package/build/js/{siteDeployCommand-XWGLYIMU.cjs.map → siteDeployCommand-QMX5EY2K.mjs.map} +0 -0
- /package/build/js/{versionDeleteCommand-MGKK73ZV.cjs.map → versionDeleteCommand-7XQQMEP6.cjs.map} +0 -0
- /package/build/js/{versionDeleteCommand-NJFRYKFM.mjs.map → versionDeleteCommand-S3PG23IT.mjs.map} +0 -0
- /package/build/js/{versionGetCommand-IHMNJSVC.cjs.map → versionGetCommand-IKDSYKJM.mjs.map} +0 -0
- /package/build/js/{versionGetCommand-JEYADJ77.mjs.map → versionGetCommand-PBCSZZ2W.cjs.map} +0 -0
- /package/build/js/{versionListCommand-5C57X7XC.cjs.map → versionListCommand-KSQJH2CQ.cjs.map} +0 -0
- /package/build/js/{versionListCommand-PKRL3YOJ.mjs.map → versionListCommand-YP6X66SJ.mjs.map} +0 -0
- /package/build/js/{versionSetCommand-GNNIGVJO.mjs.map → versionSetCommand-2L3BCYZ7.cjs.map} +0 -0
- /package/build/js/{versionSetCommand-N2RZ26BU.cjs.map → versionSetCommand-KXNXVRXK.mjs.map} +0 -0
- /package/build/js/{versionUnsetCommand-ADQMB7SL.cjs.map → versionUnsetCommand-BIBSMJRY.cjs.map} +0 -0
- /package/build/js/{versionUnsetCommand-QE6SPGJQ.mjs.map → versionUnsetCommand-XH4PGAIP.mjs.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubmitDomainRegistrationRequest.d.ts","sourceRoot":"","sources":["../../../../src/generated/artifacts-sites/SubmitDomainRegistrationRequest.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,MAAM,WAAW,+BAA+B;IAC9C,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnregisterDomainRequest.d.ts","sourceRoot":"","sources":["../../../../src/generated/artifacts-sites/UnregisterDomainRequest.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateDeployedVersionRequest.d.ts","sourceRoot":"","sources":["../../../../src/generated/artifacts-sites/UpdateDeployedVersionRequest.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,WAAW,CAAC;CAC1B"}
|
|
@@ -12,3 +12,4 @@ export type { SiteVersion } from "./SiteVersion.js";
|
|
|
12
12
|
export type { SubmitDomainRegistrationRequest } from "./SubmitDomainRegistrationRequest.js";
|
|
13
13
|
export type { UnregisterDomainRequest } from "./UnregisterDomainRequest.js";
|
|
14
14
|
export type { UpdateDeployedVersionRequest } from "./UpdateDeployedVersionRequest.js";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/artifacts-sites/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,4BAA4B,MAAM,mCAAmC,CAAC;AAElF,YAAY,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAC1F,YAAY,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAClG,YAAY,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AACpG,YAAY,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAC9F,YAAY,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACxF,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,YAAY,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AACpG,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAC9F,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAC5F,YAAY,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,YAAY,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepositoryRid.d.ts","sourceRoot":"","sources":["../../../src/net/RepositoryRid.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,aAAa,GAAG,gCAAgC,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThirdPartyAppRid.d.ts","sourceRoot":"","sources":["../../../src/net/ThirdPartyAppRid.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,gBAAgB,GAC1B,gDAAgD,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserAgent.d.ts","sourceRoot":"","sources":["../../../src/net/UserAgent.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,UAAU,QAA4C,CAAC"}
|
package/build/types/net/artifacts/SiteAssetArtifactsService/DeleteSiteVersionRequest.d.mts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteSiteVersionRequest.d.mts","sourceRoot":"","sources":["../../../../../src/net/artifacts/SiteAssetArtifactsService/DeleteSiteVersionRequest.mts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SiteAssetVersions.d.mts","sourceRoot":"","sources":["../../../../../src/net/artifacts/SiteAssetArtifactsService/SiteAssetVersions.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB"}
|
package/build/types/net/artifacts/SiteAssetArtifactsService/UploadZippedSiteAssetRequest.d.mts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UploadZippedSiteAssetRequest.d.mts","sourceRoot":"","sources":["../../../../../src/net/artifacts/SiteAssetArtifactsService/UploadZippedSiteAssetRequest.mts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,gBAAgB,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,cAAc,GAAG,IAAI,GAAG,YAAY,CAAC;CAC/C"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { InternalClientContext } from "../../internalClientContext.mjs";
|
|
2
2
|
import type { DeleteSiteVersionRequest } from "./DeleteSiteVersionRequest.mjs";
|
|
3
3
|
export declare function deleteSiteVersion(ctx: InternalClientContext, request: DeleteSiteVersionRequest): Promise<boolean>;
|
|
4
|
+
//# sourceMappingURL=deleteSiteVersion.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteSiteVersion.d.mts","sourceRoot":"","sources":["../../../../../src/net/artifacts/SiteAssetArtifactsService/deleteSiteVersion.mts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAG/E,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,qBAAqB,EAC1B,OAAO,EAAE,wBAAwB,oBA6BlC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { InternalClientContext } from "../../internalClientContext.mjs";
|
|
2
2
|
import type { ThirdPartyAppRid } from "../../ThirdPartyAppRid.js";
|
|
3
3
|
export declare function fetchSiteVersions(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<string[]>;
|
|
4
|
+
//# sourceMappingURL=fetchSiteVersions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchSiteVersions.d.mts","sourceRoot":"","sources":["../../../../../src/net/artifacts/SiteAssetArtifactsService/fetchSiteVersions.mts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAIlE,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,qBAoBnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSiteAssetBaseUrl.d.mts","sourceRoot":"","sources":["../../../../../src/net/artifacts/SiteAssetArtifactsService/getSiteAssetBaseUrl.mts"],"names":[],"mappings":"AAgBA,wBAAgB,mBAAmB,CACjC,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,UAGtB"}
|
|
@@ -2,3 +2,4 @@ export { deleteSiteVersion } from "./deleteSiteVersion.mjs";
|
|
|
2
2
|
export { fetchSiteVersions } from "./fetchSiteVersions.mjs";
|
|
3
3
|
export type { SiteAssetVersions } from "./SiteAssetVersions.mjs";
|
|
4
4
|
export { uploadZippedSiteAsset } from "./uploadSiteVersion.mjs";
|
|
5
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../../src/net/artifacts/SiteAssetArtifactsService/index.mts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { InternalClientContext } from "../../internalClientContext.mjs";
|
|
2
2
|
import type { UploadZippedSiteAssetRequest } from "./UploadZippedSiteAssetRequest.mjs";
|
|
3
3
|
export declare function uploadZippedSiteAsset(ctx: InternalClientContext, request: UploadZippedSiteAssetRequest): Promise<boolean>;
|
|
4
|
+
//# sourceMappingURL=uploadSiteVersion.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploadSiteVersion.d.mts","sourceRoot":"","sources":["../../../../../src/net/artifacts/SiteAssetArtifactsService/uploadSiteVersion.mts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAEvF,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,qBAAqB,EAC1B,OAAO,EAAE,4BAA4B,oBAkCtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/net/artifacts/index.mts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,yBAAyB,MAAM,uCAAuC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createConjureContext.d.mts","sourceRoot":"","sources":["../../../src/net/createConjureContext.mts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnD,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,gBAAgB,EAC7B,aAAa,EAAE,MAAM,MAAM,GAC1B,cAAc,CAMhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFetch.d.mts","sourceRoot":"","sources":["../../../src/net/createFetch.mts"],"names":[],"mappings":"AAyBA,wBAAgB,WAAW,CACzB,aAAa,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,EAC7C,OAAO,GAAE,OAAO,KAAa,gBAe9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createInternalClientContext.d.mts","sourceRoot":"","sources":["../../../src/net/createInternalClientContext.mts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEzE,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,MAAM,GAC1B,qBAAqB,CAKvB"}
|
|
@@ -4,3 +4,4 @@ export * as artifacts from "./artifacts/index.mjs";
|
|
|
4
4
|
export { createConjureContext } from "./createConjureContext.mjs";
|
|
5
5
|
export { createInternalClientContext } from "./createInternalClientContext.mjs";
|
|
6
6
|
export * as thirdPartyApplicationService from "./third-party-application-service/index.mjs";
|
|
7
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/net/index.mts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AACrF,YAAY,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,4BAA4B,MAAM,6CAA6C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internalClientContext.d.mts","sourceRoot":"","sources":["../../../src/net/internalClientContext.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -2,3 +2,4 @@ import type { InternalClientContext } from "../internalClientContext.mjs";
|
|
|
2
2
|
import type { RepositoryRid } from "../RepositoryRid.js";
|
|
3
3
|
import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
|
|
4
4
|
export declare function fetchWebsiteRepositoryRid(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<RepositoryRid>;
|
|
5
|
+
//# sourceMappingURL=fetchWebsiteRepositoryRid.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchWebsiteRepositoryRid.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-application-service/fetchWebsiteRepositoryRid.mts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,wBAAsB,yBAAyB,CAC7C,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,aAAa,CAAC,CAexB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-application-service/index.mts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autoVersion.d.ts","sourceRoot":"","sources":["../../../src/util/autoVersion.ts"],"names":[],"mappings":"AAqBA;;;;;;GAMG;AACH,wBAAsB,WAAW,CAAC,SAAS,GAAE,MAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAezE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autoVersion.test.d.ts","sourceRoot":"","sources":["../../../src/util/autoVersion.test.ts"],"names":[],"mappings":""}
|
|
@@ -23,3 +23,4 @@ export interface LoadedFoundryConfig {
|
|
|
23
23
|
* @throws Will throw an error if the configuration file is found but cannot be read or parsed.
|
|
24
24
|
*/
|
|
25
25
|
export declare function loadFoundryConfig(): Promise<LoadedFoundryConfig | undefined>;
|
|
26
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/util/config.ts"],"names":[],"mappings":"AAqBA,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,cAAc,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,MAAM,iBAAiB,GAAG,4BAA4B,CAAC;AAC7D,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAC9D,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,aAAa,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;CACxB;AAoCD;;;;GAIG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAChD,mBAAmB,GAAG,SAAS,CAChC,CAkCA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.test.d.ts","sourceRoot":"","sources":["../../../src/util/config.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configLoader.d.ts","sourceRoot":"","sources":["../../../src/util/configLoader.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAMvD,iBAAS,SAAS,IAAI,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAK7D;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isValidSemver.d.ts","sourceRoot":"","sources":["../../../src/util/isValidSemver.ts"],"names":[],"mappings":"AAkBA,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAE3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isValidSemver.test.d.ts","sourceRoot":"","sources":["../../../src/util/isValidSemver.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../src/util/token.ts"],"names":[],"mappings":"AAuBA;;;;;;GAMG;AACH,wBAAsB,SAAS,CAC7B,KAAK,CAAC,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,CAAC,CAqCjB;AAED,UAAU,WAAW;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AACD;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAe1E;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAI5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.test.d.ts","sourceRoot":"","sources":["../../../src/util/token.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logConfigFileMiddleware.d.ts","sourceRoot":"","sources":["../../../src/yargs/logConfigFileMiddleware.ts"],"names":[],"mappings":"AAoBA,wBAAsB,uBAAuB,kBAW5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logLevelMiddleware.d.ts","sourceRoot":"","sources":["../../../src/yargs/logLevelMiddleware.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,aAAa,iBAa3D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"access": "public",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
+
"@arethetypeswrong/cli": "^0.15.2",
|
|
24
25
|
"ajv": "^8.12.0",
|
|
25
26
|
"archiver": "^6.0.1",
|
|
26
27
|
"conjure-lite": "^0.3.3",
|
|
@@ -28,11 +29,12 @@
|
|
|
28
29
|
"find-up": "^7.0.0",
|
|
29
30
|
"open": "^9.1.0",
|
|
30
31
|
"semver": "^7.6.0",
|
|
32
|
+
"tslib": "^2.6.2",
|
|
31
33
|
"yargs": "^17.7.2",
|
|
32
|
-
"@osdk/api": "1.
|
|
33
|
-
"@osdk/gateway": "2.
|
|
34
|
-
"@osdk/generator": "1.
|
|
35
|
-
"@osdk/shared.net": "1.
|
|
34
|
+
"@osdk/api": "1.5.0",
|
|
35
|
+
"@osdk/gateway": "2.1.0",
|
|
36
|
+
"@osdk/generator": "1.8.0",
|
|
37
|
+
"@osdk/shared.net": "1.8.0"
|
|
36
38
|
},
|
|
37
39
|
"devDependencies": {
|
|
38
40
|
"@types/archiver": "^6.0.0",
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkCCA2T5YW_cjs = require('./chunk-CCA2T5YW.cjs');
|
|
4
|
-
var chunkTZGNA5WR_cjs = require('./chunk-TZGNA5WR.cjs');
|
|
5
|
-
var chunkHZ3XILMW_cjs = require('./chunk-HZ3XILMW.cjs');
|
|
6
|
-
require('./chunk-HQDDGVB7.cjs');
|
|
7
|
-
var requests = require('@osdk/gateway/requests');
|
|
8
|
-
var generator = require('@osdk/generator');
|
|
9
|
-
var shared_net = require('@osdk/shared.net');
|
|
10
|
-
var consola = require('consola');
|
|
11
|
-
var fs = require('fs');
|
|
12
|
-
|
|
13
|
-
function _interopNamespace(e) {
|
|
14
|
-
if (e && e.__esModule) return e;
|
|
15
|
-
var n = Object.create(null);
|
|
16
|
-
if (e) {
|
|
17
|
-
Object.keys(e).forEach(function (k) {
|
|
18
|
-
if (k !== 'default') {
|
|
19
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
20
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return e[k]; }
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
n.default = e;
|
|
28
|
-
return Object.freeze(n);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
|
|
32
|
-
|
|
33
|
-
var USER_AGENT = `osdk-cli/${"0.14.0"}`;
|
|
34
|
-
async function handleGenerate(args) {
|
|
35
|
-
let success = false;
|
|
36
|
-
if (args.ontologyPath) {
|
|
37
|
-
success = await generateFromLocalFile(args);
|
|
38
|
-
} else if (args.foundryUrl && args.clientId) {
|
|
39
|
-
success = await generateFromStack(args);
|
|
40
|
-
} else {
|
|
41
|
-
throw new chunkCCA2T5YW_cjs.YargsCheckError("Must have specified ontologyPath or stack and clientId");
|
|
42
|
-
}
|
|
43
|
-
if (success) {
|
|
44
|
-
consola.consola.info("OSDK Generated!");
|
|
45
|
-
} else {
|
|
46
|
-
throw new chunkHZ3XILMW_cjs.ExitProcessError(1, "Failed to generate the TypeScript SDK");
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
async function generateFromLocalFile(args) {
|
|
50
|
-
if (!fs__namespace.existsSync(args.ontologyPath)) {
|
|
51
|
-
consola.consola.error(`Ontology file does not exist: ${args.ontologyPath}`);
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
const ontology = JSON.parse(await fs__namespace.promises.readFile(args.ontologyPath, "utf-8"));
|
|
55
|
-
return await generateClientSdk(ontology, args);
|
|
56
|
-
}
|
|
57
|
-
async function generateFromStack(args) {
|
|
58
|
-
const {
|
|
59
|
-
foundryUrl,
|
|
60
|
-
clientId,
|
|
61
|
-
ontologyWritePath
|
|
62
|
-
} = args;
|
|
63
|
-
const token = await chunkTZGNA5WR_cjs.invokeLoginFlow({
|
|
64
|
-
clientId,
|
|
65
|
-
foundryUrl,
|
|
66
|
-
verbose: 0
|
|
67
|
-
});
|
|
68
|
-
const {
|
|
69
|
-
fetch
|
|
70
|
-
} = shared_net.createClientContext({
|
|
71
|
-
metadata: {
|
|
72
|
-
userAgent: USER_AGENT
|
|
73
|
-
}
|
|
74
|
-
}, args.foundryUrl, () => token.access_token, USER_AGENT);
|
|
75
|
-
try {
|
|
76
|
-
const ontologies = await requests.listOntologiesV2(shared_net.createOpenApiRequest(foundryUrl, fetch));
|
|
77
|
-
if (ontologies.data.length !== 1) {
|
|
78
|
-
consola.consola.error(`Could not look up ontology with these credentials. Found ${ontologies.data.length} ontologies.`);
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
const ontology = await requests.getOntologyFullMetadata(shared_net.createOpenApiRequest(foundryUrl, fetch), ontologies.data[0].apiName);
|
|
82
|
-
if (ontologyWritePath) {
|
|
83
|
-
fs__namespace.writeFileSync(ontologyWritePath, JSON.stringify(ontology, null, 2));
|
|
84
|
-
}
|
|
85
|
-
return await generateClientSdk(ontology, args);
|
|
86
|
-
} catch (e) {
|
|
87
|
-
consola.consola.error("Failed to generate the ontology", e);
|
|
88
|
-
return false;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
async function generateClientSdk(ontology, args) {
|
|
92
|
-
const minimalFs = {
|
|
93
|
-
writeFile: (path, contents) => {
|
|
94
|
-
return fs__namespace.promises.writeFile(path, contents, "utf-8");
|
|
95
|
-
},
|
|
96
|
-
mkdir: async (path, options) => {
|
|
97
|
-
await fs__namespace.promises.mkdir(path, options);
|
|
98
|
-
},
|
|
99
|
-
readdir: async (path) => fs__namespace.promises.readdir(path)
|
|
100
|
-
};
|
|
101
|
-
try {
|
|
102
|
-
if (args.beta) {
|
|
103
|
-
await generator.generateClientSdkVersionTwoPointZero(ontology, getUserAgent(args.version), minimalFs, args.outDir, args.packageType);
|
|
104
|
-
} else {
|
|
105
|
-
await generator.generateClientSdkVersionOneDotOne(ontology, getUserAgent(args.version), minimalFs, args.outDir, args.packageType);
|
|
106
|
-
}
|
|
107
|
-
} catch (e) {
|
|
108
|
-
consola.consola.error("OSDK generation failed", e.message, e.stack);
|
|
109
|
-
return false;
|
|
110
|
-
}
|
|
111
|
-
return true;
|
|
112
|
-
}
|
|
113
|
-
function getUserAgent(version) {
|
|
114
|
-
if (version === "dev") {
|
|
115
|
-
return "typescript-sdk/dev osdk-cli/dev";
|
|
116
|
-
} else {
|
|
117
|
-
return `typescript-sdk/${version} ${USER_AGENT}`;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
module.exports = handleGenerate;
|
|
122
|
-
//# sourceMappingURL=out.js.map
|
|
123
|
-
//# sourceMappingURL=handleGenerate-SKQROGSR.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/typescript/generate/handleGenerate.mts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { getOntologyFullMetadata, listOntologiesV2 } from \"@osdk/gateway/requests\";\nimport { generateClientSdkVersionOneDotOne, generateClientSdkVersionTwoPointZero } from \"@osdk/generator\";\nimport { createClientContext, createOpenApiRequest } from \"@osdk/shared.net\";\nimport { consola } from \"consola\";\nimport * as fs from \"node:fs\";\nimport { ExitProcessError } from \"../../../ExitProcessError.js\";\nimport { YargsCheckError } from \"../../../YargsCheckError.js\";\nimport invokeLoginFlow from \"../../auth/login/loginFlow.js\";\nconst USER_AGENT = `osdk-cli/${process.env.PACKAGE_VERSION}`;\nexport default async function handleGenerate(args) {\n let success = false;\n if (args.ontologyPath) {\n success = await generateFromLocalFile(args);\n } else if (args.foundryUrl && args.clientId) {\n success = await generateFromStack(args);\n } else {\n throw new YargsCheckError(\"Must have specified ontologyPath or stack and clientId\");\n }\n if (success) {\n consola.info(\"OSDK Generated!\");\n } else {\n throw new ExitProcessError(1, \"Failed to generate the TypeScript SDK\");\n }\n}\nasync function generateFromLocalFile(args) {\n if (!fs.existsSync(args.ontologyPath)) {\n consola.error(`Ontology file does not exist: ${args.ontologyPath}`);\n return false;\n }\n const ontology = JSON.parse(await fs.promises.readFile(args.ontologyPath, \"utf-8\"));\n return await generateClientSdk(ontology, args);\n}\nasync function generateFromStack(args) {\n const {\n foundryUrl,\n clientId,\n ontologyWritePath\n } = args;\n const token = await invokeLoginFlow({\n clientId,\n foundryUrl,\n verbose: 0\n });\n const {\n fetch\n } = createClientContext({\n metadata: {\n userAgent: USER_AGENT\n }\n }, args.foundryUrl, () => token.access_token, USER_AGENT);\n try {\n const ontologies = await listOntologiesV2(createOpenApiRequest(foundryUrl, fetch));\n if (ontologies.data.length !== 1) {\n consola.error(`Could not look up ontology with these credentials. Found ${ontologies.data.length} ontologies.`);\n return false;\n }\n const ontology = await getOntologyFullMetadata(createOpenApiRequest(foundryUrl, fetch), ontologies.data[0].apiName);\n if (ontologyWritePath) {\n fs.writeFileSync(ontologyWritePath, JSON.stringify(ontology, null, 2));\n }\n return await generateClientSdk(ontology, args);\n } catch (e) {\n consola.error(\"Failed to generate the ontology\", e);\n return false;\n }\n}\nasync function generateClientSdk(ontology, args) {\n const minimalFs = {\n writeFile: (path, contents) => {\n return fs.promises.writeFile(path, contents, \"utf-8\");\n },\n mkdir: async (path, options) => {\n await fs.promises.mkdir(path, options);\n },\n readdir: async path => fs.promises.readdir(path)\n };\n try {\n if (args.beta) {\n await generateClientSdkVersionTwoPointZero(ontology, getUserAgent(args.version), minimalFs, args.outDir, args.packageType);\n } else {\n await generateClientSdkVersionOneDotOne(ontology, getUserAgent(args.version), minimalFs, args.outDir, args.packageType);\n }\n } catch (e) {\n consola.error(\"OSDK generation failed\", e.message, e.stack);\n return false;\n }\n return true;\n}\n\n// If the user passed us `dev` as our version, we use that for both our generated package version AND the cli version.\n// This makes it so that releases don't force us to have to regenerate the code when the version strings change.\nfunction getUserAgent(version) {\n if (version === \"dev\") {\n return \"typescript-sdk/dev osdk-cli/dev\";\n } else {\n return `typescript-sdk/${version} ${USER_AGENT}`;\n }\n}"]}
|