@osdk/cli 0.24.0-beta.11 → 0.24.0-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (420) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/build/browser/cli.d.ts +7 -0
  3. package/build/browser/cli.d.ts.map +1 -0
  4. package/build/browser/cli.js +42 -0
  5. package/build/browser/cli.js.map +1 -0
  6. package/build/browser/commands/auth/index.d.ts +5 -0
  7. package/build/browser/commands/auth/index.d.ts.map +1 -0
  8. package/build/browser/commands/auth/index.js +34 -0
  9. package/build/browser/commands/auth/index.js.map +1 -0
  10. package/build/browser/commands/auth/login/index.d.ts +5 -0
  11. package/build/browser/commands/auth/login/index.d.ts.map +1 -0
  12. package/build/browser/commands/auth/login/index.js +34 -0
  13. package/build/browser/commands/auth/login/index.js.map +1 -0
  14. package/build/browser/commands/site/CommonSiteArgs.d.ts +9 -0
  15. package/build/browser/commands/site/CommonSiteArgs.d.ts.map +1 -0
  16. package/build/browser/commands/site/CommonSiteArgs.js +17 -0
  17. package/build/browser/commands/site/CommonSiteArgs.js.map +1 -0
  18. package/build/browser/commands/site/deploy/SiteDeployArgs.d.ts +10 -0
  19. package/build/browser/commands/site/deploy/SiteDeployArgs.d.ts.map +1 -0
  20. package/build/browser/commands/site/deploy/SiteDeployArgs.js +17 -0
  21. package/build/browser/commands/site/deploy/SiteDeployArgs.js.map +1 -0
  22. package/build/browser/commands/site/deploy/index.d.ts +6 -0
  23. package/build/browser/commands/site/deploy/index.d.ts.map +1 -0
  24. package/build/browser/commands/site/deploy/index.js +108 -0
  25. package/build/browser/commands/site/deploy/index.js.map +1 -0
  26. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.d.ts +5 -0
  27. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.d.ts.map +1 -0
  28. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.js +28 -0
  29. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.js.map +1 -0
  30. package/build/browser/commands/site/deploy/siteDeployCommand.d.mts +10 -0
  31. package/build/browser/commands/site/deploy/siteDeployCommand.d.mts.map +1 -0
  32. package/build/browser/commands/site/deploy/siteDeployCommand.js +98 -0
  33. package/build/browser/commands/site/deploy/siteDeployCommand.js.map +1 -0
  34. package/build/browser/commands/site/deploy/siteDeployCommand.mjs +90 -0
  35. package/build/browser/commands/site/index.d.ts +6 -0
  36. package/build/browser/commands/site/index.d.ts.map +1 -0
  37. package/build/browser/commands/site/index.js +69 -0
  38. package/build/browser/commands/site/index.js.map +1 -0
  39. package/build/browser/commands/site/logSiteCommandConfigFileOverride.d.ts +5 -0
  40. package/build/browser/commands/site/logSiteCommandConfigFileOverride.d.ts.map +1 -0
  41. package/build/browser/commands/site/logSiteCommandConfigFileOverride.js +25 -0
  42. package/build/browser/commands/site/logSiteCommandConfigFileOverride.js.map +1 -0
  43. package/build/browser/commands/site/version/delete/VersionDeleteArgs.d.ts +6 -0
  44. package/build/browser/commands/site/version/delete/VersionDeleteArgs.d.ts.map +1 -0
  45. package/build/browser/commands/site/version/delete/VersionDeleteArgs.js +17 -0
  46. package/build/browser/commands/site/version/delete/VersionDeleteArgs.js.map +1 -0
  47. package/build/browser/commands/site/version/delete/index.d.ts +6 -0
  48. package/build/browser/commands/site/version/delete/index.d.ts.map +1 -0
  49. package/build/browser/commands/site/version/delete/index.js +36 -0
  50. package/build/browser/commands/site/version/delete/index.js.map +1 -0
  51. package/build/browser/commands/site/version/delete/versionDeleteCommand.d.mts +3 -0
  52. package/build/browser/commands/site/version/delete/versionDeleteCommand.d.mts.map +1 -0
  53. package/build/browser/commands/site/version/delete/versionDeleteCommand.js +41 -0
  54. package/build/browser/commands/site/version/delete/versionDeleteCommand.js.map +1 -0
  55. package/build/browser/commands/site/version/delete/versionDeleteCommand.mjs +32 -0
  56. package/build/browser/commands/site/version/get/VersionGetArgs.d.ts +4 -0
  57. package/build/browser/commands/site/version/get/VersionGetArgs.d.ts.map +1 -0
  58. package/build/browser/commands/site/version/get/VersionGetArgs.js +17 -0
  59. package/build/browser/commands/site/version/get/VersionGetArgs.js.map +1 -0
  60. package/build/browser/commands/site/version/get/index.d.ts +6 -0
  61. package/build/browser/commands/site/version/get/index.d.ts.map +1 -0
  62. package/build/browser/commands/site/version/get/index.js +28 -0
  63. package/build/browser/commands/site/version/get/index.js.map +1 -0
  64. package/build/browser/commands/site/version/get/versionGetCommand.d.mts +3 -0
  65. package/build/browser/commands/site/version/get/versionGetCommand.d.mts.map +1 -0
  66. package/build/browser/commands/site/version/get/versionGetCommand.js +36 -0
  67. package/build/browser/commands/site/version/get/versionGetCommand.js.map +1 -0
  68. package/build/browser/commands/site/version/get/versionGetCommand.mjs +32 -0
  69. package/build/browser/commands/site/version/index.d.ts +5 -0
  70. package/build/browser/commands/site/version/index.d.ts.map +1 -0
  71. package/build/browser/commands/site/version/index.js +30 -0
  72. package/build/browser/commands/site/version/index.js.map +1 -0
  73. package/build/browser/commands/site/version/list/VersionListArgs.d.ts +4 -0
  74. package/build/browser/commands/site/version/list/VersionListArgs.d.ts.map +1 -0
  75. package/build/browser/commands/site/version/list/VersionListArgs.js +17 -0
  76. package/build/browser/commands/site/version/list/VersionListArgs.js.map +1 -0
  77. package/build/browser/commands/site/version/list/index.d.ts +6 -0
  78. package/build/browser/commands/site/version/list/index.d.ts.map +1 -0
  79. package/build/browser/commands/site/version/list/index.js +28 -0
  80. package/build/browser/commands/site/version/list/index.js.map +1 -0
  81. package/build/browser/commands/site/version/list/versionListCommand.d.mts +3 -0
  82. package/build/browser/commands/site/version/list/versionListCommand.d.mts.map +1 -0
  83. package/build/browser/commands/site/version/list/versionListCommand.js +41 -0
  84. package/build/browser/commands/site/version/list/versionListCommand.js.map +1 -0
  85. package/build/browser/commands/site/version/list/versionListCommand.mjs +42 -0
  86. package/build/browser/commands/site/version/set/VersionSetArgs.d.ts +5 -0
  87. package/build/browser/commands/site/version/set/VersionSetArgs.d.ts.map +1 -0
  88. package/build/browser/commands/site/version/set/VersionSetArgs.js +17 -0
  89. package/build/browser/commands/site/version/set/VersionSetArgs.js.map +1 -0
  90. package/build/browser/commands/site/version/set/index.d.ts +6 -0
  91. package/build/browser/commands/site/version/set/index.d.ts.map +1 -0
  92. package/build/browser/commands/site/version/set/index.js +32 -0
  93. package/build/browser/commands/site/version/set/index.js.map +1 -0
  94. package/build/browser/commands/site/version/set/versionSetCommand.d.mts +3 -0
  95. package/build/browser/commands/site/version/set/versionSetCommand.d.mts.map +1 -0
  96. package/build/browser/commands/site/version/set/versionSetCommand.js +36 -0
  97. package/build/browser/commands/site/version/set/versionSetCommand.js.map +1 -0
  98. package/build/browser/commands/site/version/set/versionSetCommand.mjs +28 -0
  99. package/build/browser/commands/site/version/unset/VersionUnsetArgs.d.ts +5 -0
  100. package/build/browser/commands/site/version/unset/VersionUnsetArgs.d.ts.map +1 -0
  101. package/build/browser/commands/site/version/unset/VersionUnsetArgs.js +17 -0
  102. package/build/browser/commands/site/version/unset/VersionUnsetArgs.js.map +1 -0
  103. package/build/browser/commands/site/version/unset/index.d.ts +6 -0
  104. package/build/browser/commands/site/version/unset/index.d.ts.map +1 -0
  105. package/build/browser/commands/site/version/unset/index.js +32 -0
  106. package/build/browser/commands/site/version/unset/index.js.map +1 -0
  107. package/build/browser/commands/site/version/unset/versionUnsetCommand.d.mts +3 -0
  108. package/build/browser/commands/site/version/unset/versionUnsetCommand.d.mts.map +1 -0
  109. package/build/browser/commands/site/version/unset/versionUnsetCommand.js +40 -0
  110. package/build/browser/commands/site/version/unset/versionUnsetCommand.js.map +1 -0
  111. package/build/browser/commands/site/version/unset/versionUnsetCommand.mjs +32 -0
  112. package/build/browser/consola/handlePromptCancel.d.ts +2 -0
  113. package/build/browser/consola/handlePromptCancel.d.ts.map +1 -0
  114. package/build/browser/consola/handlePromptCancel.js +25 -0
  115. package/build/browser/consola/handlePromptCancel.js.map +1 -0
  116. package/build/browser/index.d.ts +2 -0
  117. package/build/browser/index.d.ts.map +1 -0
  118. package/build/browser/index.js +16 -588
  119. package/build/browser/index.js.map +1 -1
  120. package/build/browser/net/ThirdPartyAppRid.d.ts +2 -0
  121. package/build/browser/net/ThirdPartyAppRid.d.ts.map +1 -0
  122. package/build/browser/net/ThirdPartyAppRid.js +17 -0
  123. package/build/browser/net/ThirdPartyAppRid.js.map +1 -0
  124. package/build/browser/net/UserAgent.d.ts +2 -0
  125. package/build/browser/net/UserAgent.d.ts.map +1 -0
  126. package/build/browser/net/UserAgent.js +17 -0
  127. package/build/browser/net/UserAgent.js.map +1 -0
  128. package/build/browser/net/createFetch.d.mts +2 -0
  129. package/build/browser/net/createFetch.d.mts.map +1 -0
  130. package/build/browser/net/createFetch.js +66 -0
  131. package/build/browser/net/createFetch.js.map +1 -0
  132. package/build/browser/net/createFetch.mjs +71 -0
  133. package/build/browser/net/createInternalClientContext.d.mts +3 -0
  134. package/build/browser/net/createInternalClientContext.d.mts.map +1 -0
  135. package/build/browser/net/createInternalClientContext.js +22 -0
  136. package/build/browser/net/createInternalClientContext.js.map +1 -0
  137. package/build/browser/net/createInternalClientContext.mjs +21 -0
  138. package/build/browser/net/index.d.mts +3 -0
  139. package/build/browser/net/index.d.mts.map +1 -0
  140. package/build/browser/net/index.js +18 -0
  141. package/build/browser/net/index.js.map +1 -0
  142. package/build/browser/net/index.mjs +17 -0
  143. package/build/browser/net/internalClientContext.d.mts +5 -0
  144. package/build/browser/net/internalClientContext.d.mts.map +1 -0
  145. package/build/browser/net/internalClientContext.js +17 -0
  146. package/build/browser/net/internalClientContext.js.map +1 -0
  147. package/build/browser/net/internalClientContext.mjs +16 -0
  148. package/build/browser/net/third-party-applications/DeployWebsiteRequest.d.mts +4 -0
  149. package/build/browser/net/third-party-applications/DeployWebsiteRequest.d.mts.map +1 -0
  150. package/build/browser/net/third-party-applications/DeployWebsiteRequest.js +17 -0
  151. package/build/browser/net/third-party-applications/DeployWebsiteRequest.js.map +1 -0
  152. package/build/browser/net/third-party-applications/DeployWebsiteRequest.mjs +16 -0
  153. package/build/browser/net/third-party-applications/ListVersionsResponse.d.mts +6 -0
  154. package/build/browser/net/third-party-applications/ListVersionsResponse.d.mts.map +1 -0
  155. package/build/browser/net/third-party-applications/ListVersionsResponse.js +17 -0
  156. package/build/browser/net/third-party-applications/ListVersionsResponse.js.map +1 -0
  157. package/build/browser/net/third-party-applications/ListVersionsResponse.mjs +16 -0
  158. package/build/browser/net/third-party-applications/Version.d.mts +4 -0
  159. package/build/browser/net/third-party-applications/Version.d.mts.map +1 -0
  160. package/build/browser/net/third-party-applications/Version.js +17 -0
  161. package/build/browser/net/third-party-applications/Version.js.map +1 -0
  162. package/build/browser/net/third-party-applications/Version.mjs +16 -0
  163. package/build/browser/net/third-party-applications/Website.d.mts +5 -0
  164. package/build/browser/net/third-party-applications/Website.d.mts.map +1 -0
  165. package/build/browser/net/third-party-applications/Website.js +17 -0
  166. package/build/browser/net/third-party-applications/Website.js.map +1 -0
  167. package/build/browser/net/third-party-applications/Website.mjs +16 -0
  168. package/build/browser/net/third-party-applications/deleteVersion.d.mts +4 -0
  169. package/build/browser/net/third-party-applications/deleteVersion.d.mts.map +1 -0
  170. package/build/browser/net/third-party-applications/deleteVersion.js +24 -0
  171. package/build/browser/net/third-party-applications/deleteVersion.js.map +1 -0
  172. package/build/browser/net/third-party-applications/deleteVersion.mjs +23 -0
  173. package/build/browser/net/third-party-applications/deployWebsite.d.mts +6 -0
  174. package/build/browser/net/third-party-applications/deployWebsite.d.mts.map +1 -0
  175. package/build/browser/net/third-party-applications/deployWebsite.js +29 -0
  176. package/build/browser/net/third-party-applications/deployWebsite.js.map +1 -0
  177. package/build/browser/net/third-party-applications/deployWebsite.mjs +28 -0
  178. package/build/browser/net/third-party-applications/getWebsite.d.mts +5 -0
  179. package/build/browser/net/third-party-applications/getWebsite.d.mts.map +1 -0
  180. package/build/browser/net/third-party-applications/getWebsite.js +33 -0
  181. package/build/browser/net/third-party-applications/getWebsite.js.map +1 -0
  182. package/build/browser/net/third-party-applications/getWebsite.mjs +35 -0
  183. package/build/browser/net/third-party-applications/index.d.mts +11 -0
  184. package/build/browser/net/third-party-applications/index.d.mts.map +1 -0
  185. package/build/browser/net/third-party-applications/index.js +22 -0
  186. package/build/browser/net/third-party-applications/index.js.map +1 -0
  187. package/build/browser/net/third-party-applications/index.mjs +21 -0
  188. package/build/browser/net/third-party-applications/listVersions.d.mts +5 -0
  189. package/build/browser/net/third-party-applications/listVersions.d.mts.map +1 -0
  190. package/build/browser/net/third-party-applications/listVersions.js +23 -0
  191. package/build/browser/net/third-party-applications/listVersions.js.map +1 -0
  192. package/build/browser/net/third-party-applications/listVersions.mjs +22 -0
  193. package/build/browser/net/third-party-applications/undeployWebsite.d.mts +4 -0
  194. package/build/browser/net/third-party-applications/undeployWebsite.d.mts.map +1 -0
  195. package/build/browser/net/third-party-applications/undeployWebsite.js +24 -0
  196. package/build/browser/net/third-party-applications/undeployWebsite.js.map +1 -0
  197. package/build/browser/net/third-party-applications/undeployWebsite.mjs +23 -0
  198. package/build/browser/net/third-party-applications/uploadVersion.d.mts +5 -0
  199. package/build/browser/net/third-party-applications/uploadVersion.d.mts.map +1 -0
  200. package/build/browser/net/third-party-applications/uploadVersion.js +30 -0
  201. package/build/browser/net/third-party-applications/uploadVersion.js.map +1 -0
  202. package/build/browser/net/third-party-applications/uploadVersion.mjs +29 -0
  203. package/build/browser/util/autoVersion.d.ts +9 -0
  204. package/build/browser/util/autoVersion.d.ts.map +1 -0
  205. package/build/browser/util/autoVersion.js +62 -0
  206. package/build/browser/util/autoVersion.js.map +1 -0
  207. package/build/browser/util/autoVersion.test.d.ts +2 -0
  208. package/build/browser/util/autoVersion.test.d.ts.map +1 -0
  209. package/build/browser/util/autoVersion.test.js +71 -0
  210. package/build/browser/util/autoVersion.test.js.map +1 -0
  211. package/build/browser/util/config.d.ts +26 -0
  212. package/build/browser/util/config.d.ts.map +1 -0
  213. package/build/browser/util/config.js +102 -0
  214. package/build/browser/util/config.js.map +1 -0
  215. package/build/browser/util/config.test.d.ts +2 -0
  216. package/build/browser/util/config.test.d.ts.map +1 -0
  217. package/build/browser/util/config.test.js +110 -0
  218. package/build/browser/util/config.test.js.map +1 -0
  219. package/build/browser/util/configLoader.d.ts +4 -0
  220. package/build/browser/util/configLoader.d.ts.map +1 -0
  221. package/build/browser/util/configLoader.js +25 -0
  222. package/build/browser/util/configLoader.js.map +1 -0
  223. package/build/browser/util/isValidSemver.test.d.ts +2 -0
  224. package/build/browser/util/isValidSemver.test.d.ts.map +1 -0
  225. package/build/browser/util/isValidSemver.test.js +41 -0
  226. package/build/browser/util/isValidSemver.test.js.map +1 -0
  227. package/build/browser/util/token.d.ts +22 -0
  228. package/build/browser/util/token.d.ts.map +1 -0
  229. package/build/browser/util/token.js +84 -0
  230. package/build/browser/util/token.js.map +1 -0
  231. package/build/browser/util/token.test.d.ts +2 -0
  232. package/build/browser/util/token.test.d.ts.map +1 -0
  233. package/build/browser/util/token.test.js +62 -0
  234. package/build/browser/util/token.test.js.map +1 -0
  235. package/build/browser/yargs/logConfigFileMiddleware.d.ts +2 -0
  236. package/build/browser/yargs/logConfigFileMiddleware.d.ts.map +1 -0
  237. package/build/browser/yargs/logConfigFileMiddleware.js +29 -0
  238. package/build/browser/yargs/logConfigFileMiddleware.js.map +1 -0
  239. package/build/esm/cli.js +42 -0
  240. package/build/esm/cli.js.map +1 -0
  241. package/build/esm/commands/auth/index.js +34 -0
  242. package/build/esm/commands/auth/index.js.map +1 -0
  243. package/build/esm/commands/auth/login/index.js +34 -0
  244. package/build/esm/commands/auth/login/index.js.map +1 -0
  245. package/build/esm/commands/site/CommonSiteArgs.js +17 -0
  246. package/build/esm/commands/site/CommonSiteArgs.js.map +1 -0
  247. package/build/esm/commands/site/deploy/SiteDeployArgs.js +17 -0
  248. package/build/esm/commands/site/deploy/SiteDeployArgs.js.map +1 -0
  249. package/build/esm/commands/site/deploy/index.js +108 -0
  250. package/build/esm/commands/site/deploy/index.js.map +1 -0
  251. package/build/esm/commands/site/deploy/logDeployCommandConfigFileOverride.js +28 -0
  252. package/build/esm/commands/site/deploy/logDeployCommandConfigFileOverride.js.map +1 -0
  253. package/build/esm/commands/site/deploy/siteDeployCommand.js +98 -0
  254. package/build/esm/commands/site/deploy/siteDeployCommand.js.map +1 -0
  255. package/build/esm/commands/site/deploy/siteDeployCommand.mjs +90 -0
  256. package/build/esm/commands/site/index.js +69 -0
  257. package/build/esm/commands/site/index.js.map +1 -0
  258. package/build/esm/commands/site/logSiteCommandConfigFileOverride.js +25 -0
  259. package/build/esm/commands/site/logSiteCommandConfigFileOverride.js.map +1 -0
  260. package/build/esm/commands/site/version/delete/VersionDeleteArgs.js +17 -0
  261. package/build/esm/commands/site/version/delete/VersionDeleteArgs.js.map +1 -0
  262. package/build/esm/commands/site/version/delete/index.js +36 -0
  263. package/build/esm/commands/site/version/delete/index.js.map +1 -0
  264. package/build/esm/commands/site/version/delete/versionDeleteCommand.js +41 -0
  265. package/build/esm/commands/site/version/delete/versionDeleteCommand.js.map +1 -0
  266. package/build/esm/commands/site/version/delete/versionDeleteCommand.mjs +32 -0
  267. package/build/esm/commands/site/version/get/VersionGetArgs.js +17 -0
  268. package/build/esm/commands/site/version/get/VersionGetArgs.js.map +1 -0
  269. package/build/esm/commands/site/version/get/index.js +28 -0
  270. package/build/esm/commands/site/version/get/index.js.map +1 -0
  271. package/build/esm/commands/site/version/get/versionGetCommand.js +36 -0
  272. package/build/esm/commands/site/version/get/versionGetCommand.js.map +1 -0
  273. package/build/esm/commands/site/version/get/versionGetCommand.mjs +32 -0
  274. package/build/esm/commands/site/version/index.js +30 -0
  275. package/build/esm/commands/site/version/index.js.map +1 -0
  276. package/build/esm/commands/site/version/list/VersionListArgs.js +17 -0
  277. package/build/esm/commands/site/version/list/VersionListArgs.js.map +1 -0
  278. package/build/esm/commands/site/version/list/index.js +28 -0
  279. package/build/esm/commands/site/version/list/index.js.map +1 -0
  280. package/build/esm/commands/site/version/list/versionListCommand.js +41 -0
  281. package/build/esm/commands/site/version/list/versionListCommand.js.map +1 -0
  282. package/build/esm/commands/site/version/list/versionListCommand.mjs +42 -0
  283. package/build/esm/commands/site/version/set/VersionSetArgs.js +17 -0
  284. package/build/esm/commands/site/version/set/VersionSetArgs.js.map +1 -0
  285. package/build/esm/commands/site/version/set/index.js +32 -0
  286. package/build/esm/commands/site/version/set/index.js.map +1 -0
  287. package/build/esm/commands/site/version/set/versionSetCommand.js +36 -0
  288. package/build/esm/commands/site/version/set/versionSetCommand.js.map +1 -0
  289. package/build/esm/commands/site/version/set/versionSetCommand.mjs +28 -0
  290. package/build/esm/commands/site/version/unset/VersionUnsetArgs.js +17 -0
  291. package/build/esm/commands/site/version/unset/VersionUnsetArgs.js.map +1 -0
  292. package/build/esm/commands/site/version/unset/index.js +32 -0
  293. package/build/esm/commands/site/version/unset/index.js.map +1 -0
  294. package/build/esm/commands/site/version/unset/versionUnsetCommand.js +40 -0
  295. package/build/esm/commands/site/version/unset/versionUnsetCommand.js.map +1 -0
  296. package/build/esm/commands/site/version/unset/versionUnsetCommand.mjs +32 -0
  297. package/build/esm/consola/handlePromptCancel.js +25 -0
  298. package/build/esm/consola/handlePromptCancel.js.map +1 -0
  299. package/build/esm/index.js +16 -588
  300. package/build/esm/index.js.map +1 -1
  301. package/build/esm/net/ThirdPartyAppRid.js +17 -0
  302. package/build/esm/net/ThirdPartyAppRid.js.map +1 -0
  303. package/build/esm/net/UserAgent.js +17 -0
  304. package/build/esm/net/UserAgent.js.map +1 -0
  305. package/build/esm/net/createFetch.js +66 -0
  306. package/build/esm/net/createFetch.js.map +1 -0
  307. package/build/esm/net/createFetch.mjs +71 -0
  308. package/build/esm/net/createInternalClientContext.js +22 -0
  309. package/build/esm/net/createInternalClientContext.js.map +1 -0
  310. package/build/esm/net/createInternalClientContext.mjs +21 -0
  311. package/build/esm/net/index.js +18 -0
  312. package/build/esm/net/index.js.map +1 -0
  313. package/build/esm/net/index.mjs +17 -0
  314. package/build/esm/net/internalClientContext.js +17 -0
  315. package/build/esm/net/internalClientContext.js.map +1 -0
  316. package/build/esm/net/internalClientContext.mjs +16 -0
  317. package/build/esm/net/third-party-applications/DeployWebsiteRequest.js +17 -0
  318. package/build/esm/net/third-party-applications/DeployWebsiteRequest.js.map +1 -0
  319. package/build/esm/net/third-party-applications/DeployWebsiteRequest.mjs +16 -0
  320. package/build/esm/net/third-party-applications/ListVersionsResponse.js +17 -0
  321. package/build/esm/net/third-party-applications/ListVersionsResponse.js.map +1 -0
  322. package/build/esm/net/third-party-applications/ListVersionsResponse.mjs +16 -0
  323. package/build/esm/net/third-party-applications/Version.js +17 -0
  324. package/build/esm/net/third-party-applications/Version.js.map +1 -0
  325. package/build/esm/net/third-party-applications/Version.mjs +16 -0
  326. package/build/esm/net/third-party-applications/Website.js +17 -0
  327. package/build/esm/net/third-party-applications/Website.js.map +1 -0
  328. package/build/esm/net/third-party-applications/Website.mjs +16 -0
  329. package/build/esm/net/third-party-applications/deleteVersion.js +24 -0
  330. package/build/esm/net/third-party-applications/deleteVersion.js.map +1 -0
  331. package/build/esm/net/third-party-applications/deleteVersion.mjs +23 -0
  332. package/build/esm/net/third-party-applications/deployWebsite.js +29 -0
  333. package/build/esm/net/third-party-applications/deployWebsite.js.map +1 -0
  334. package/build/esm/net/third-party-applications/deployWebsite.mjs +28 -0
  335. package/build/esm/net/third-party-applications/getWebsite.js +33 -0
  336. package/build/esm/net/third-party-applications/getWebsite.js.map +1 -0
  337. package/build/esm/net/third-party-applications/getWebsite.mjs +35 -0
  338. package/build/esm/net/third-party-applications/index.js +22 -0
  339. package/build/esm/net/third-party-applications/index.js.map +1 -0
  340. package/build/esm/net/third-party-applications/index.mjs +21 -0
  341. package/build/esm/net/third-party-applications/listVersions.js +23 -0
  342. package/build/esm/net/third-party-applications/listVersions.js.map +1 -0
  343. package/build/esm/net/third-party-applications/listVersions.mjs +22 -0
  344. package/build/esm/net/third-party-applications/undeployWebsite.js +24 -0
  345. package/build/esm/net/third-party-applications/undeployWebsite.js.map +1 -0
  346. package/build/esm/net/third-party-applications/undeployWebsite.mjs +23 -0
  347. package/build/esm/net/third-party-applications/uploadVersion.js +30 -0
  348. package/build/esm/net/third-party-applications/uploadVersion.js.map +1 -0
  349. package/build/esm/net/third-party-applications/uploadVersion.mjs +29 -0
  350. package/build/esm/util/autoVersion.js +62 -0
  351. package/build/esm/util/autoVersion.js.map +1 -0
  352. package/build/esm/util/autoVersion.test.js +71 -0
  353. package/build/esm/util/autoVersion.test.js.map +1 -0
  354. package/build/esm/util/config.js +102 -0
  355. package/build/esm/util/config.js.map +1 -0
  356. package/build/esm/util/config.test.js +110 -0
  357. package/build/esm/util/config.test.js.map +1 -0
  358. package/build/esm/util/configLoader.js +25 -0
  359. package/build/esm/util/configLoader.js.map +1 -0
  360. package/build/esm/util/isValidSemver.test.js +41 -0
  361. package/build/esm/util/isValidSemver.test.js.map +1 -0
  362. package/build/esm/util/token.js +84 -0
  363. package/build/esm/util/token.js.map +1 -0
  364. package/build/esm/util/token.test.js +62 -0
  365. package/build/esm/util/token.test.js.map +1 -0
  366. package/build/esm/yargs/logConfigFileMiddleware.js +29 -0
  367. package/build/esm/yargs/logConfigFileMiddleware.js.map +1 -0
  368. package/package.json +8 -10
  369. package/build/browser/chunk-5AQYUXAY.js +0 -17
  370. package/build/browser/chunk-5AQYUXAY.js.map +0 -1
  371. package/build/browser/chunk-DAYFZSC6.js +0 -42
  372. package/build/browser/chunk-DAYFZSC6.js.map +0 -1
  373. package/build/browser/chunk-SBJIY4HI.js +0 -67
  374. package/build/browser/chunk-SBJIY4HI.js.map +0 -1
  375. package/build/browser/chunk-XJLUGCCS.js +0 -120
  376. package/build/browser/chunk-XJLUGCCS.js.map +0 -1
  377. package/build/browser/chunk-Z4JRY4PG.js +0 -221
  378. package/build/browser/chunk-Z4JRY4PG.js.map +0 -1
  379. package/build/browser/handleGenerate-QAI4FEG7-RF32BMXD.js +0 -642
  380. package/build/browser/handleGenerate-QAI4FEG7-RF32BMXD.js.map +0 -1
  381. package/build/browser/loginFlow-X2LB2TEP.js +0 -4
  382. package/build/browser/loginFlow-X2LB2TEP.js.map +0 -1
  383. package/build/browser/siteDeployCommand-6UZVKCSK.js +0 -140
  384. package/build/browser/siteDeployCommand-6UZVKCSK.js.map +0 -1
  385. package/build/browser/versionDeleteCommand-YXTKR33T.js +0 -35
  386. package/build/browser/versionDeleteCommand-YXTKR33T.js.map +0 -1
  387. package/build/browser/versionGetCommand-GH5OK4LZ.js +0 -29
  388. package/build/browser/versionGetCommand-GH5OK4LZ.js.map +0 -1
  389. package/build/browser/versionListCommand-QM5SDDE3.js +0 -34
  390. package/build/browser/versionListCommand-QM5SDDE3.js.map +0 -1
  391. package/build/browser/versionSetCommand-VJK43BAU.js +0 -29
  392. package/build/browser/versionSetCommand-VJK43BAU.js.map +0 -1
  393. package/build/browser/versionUnsetCommand-LTOSIBQA.js +0 -34
  394. package/build/browser/versionUnsetCommand-LTOSIBQA.js.map +0 -1
  395. package/build/esm/chunk-5AQYUXAY.js +0 -17
  396. package/build/esm/chunk-5AQYUXAY.js.map +0 -1
  397. package/build/esm/chunk-DAYFZSC6.js +0 -42
  398. package/build/esm/chunk-DAYFZSC6.js.map +0 -1
  399. package/build/esm/chunk-SBJIY4HI.js +0 -67
  400. package/build/esm/chunk-SBJIY4HI.js.map +0 -1
  401. package/build/esm/chunk-XJLUGCCS.js +0 -120
  402. package/build/esm/chunk-XJLUGCCS.js.map +0 -1
  403. package/build/esm/chunk-Z4JRY4PG.js +0 -221
  404. package/build/esm/chunk-Z4JRY4PG.js.map +0 -1
  405. package/build/esm/handleGenerate-QAI4FEG7-RF32BMXD.js +0 -642
  406. package/build/esm/handleGenerate-QAI4FEG7-RF32BMXD.js.map +0 -1
  407. package/build/esm/loginFlow-X2LB2TEP.js +0 -4
  408. package/build/esm/loginFlow-X2LB2TEP.js.map +0 -1
  409. package/build/esm/siteDeployCommand-6UZVKCSK.js +0 -140
  410. package/build/esm/siteDeployCommand-6UZVKCSK.js.map +0 -1
  411. package/build/esm/versionDeleteCommand-YXTKR33T.js +0 -35
  412. package/build/esm/versionDeleteCommand-YXTKR33T.js.map +0 -1
  413. package/build/esm/versionGetCommand-GH5OK4LZ.js +0 -29
  414. package/build/esm/versionGetCommand-GH5OK4LZ.js.map +0 -1
  415. package/build/esm/versionListCommand-QM5SDDE3.js +0 -34
  416. package/build/esm/versionListCommand-QM5SDDE3.js.map +0 -1
  417. package/build/esm/versionSetCommand-VJK43BAU.js +0 -29
  418. package/build/esm/versionSetCommand-VJK43BAU.js.map +0 -1
  419. package/build/esm/versionUnsetCommand-LTOSIBQA.js +0 -34
  420. package/build/esm/versionUnsetCommand-LTOSIBQA.js.map +0 -1
@@ -0,0 +1,90 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { consola } from "consola";
17
+ import { createInternalClientContext, thirdPartyApplications } from "#net";
18
+ import { ExitProcessError } from "@osdk/cli.common";
19
+ import archiver from "archiver";
20
+ import { colorize } from "consola/utils";
21
+ import * as fs from "node:fs";
22
+ import path from "node:path";
23
+ import { Readable } from "node:stream";
24
+ import { autoVersion as findAutoVersion } from "../../../util/autoVersion.js";
25
+ import { loadToken } from "../../../util/token.js";
26
+ export default async function siteDeployCommand({ selectedVersion, application, foundryUrl, uploadOnly, directory, token, tokenFile, }) {
27
+ const loadedToken = await loadToken(token, tokenFile);
28
+ const tokenProvider = () => loadedToken;
29
+ const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
30
+ let siteVersion;
31
+ if (typeof selectedVersion === "string") {
32
+ siteVersion = selectedVersion;
33
+ }
34
+ else {
35
+ siteVersion = await findAutoVersion(selectedVersion.tagPrefix);
36
+ consola.info(`Auto version inferred next version to be: ${siteVersion}`);
37
+ }
38
+ consola.debug(`Using directory for site files: "${path.resolve(directory)}`);
39
+ const stat = await fs.promises.stat(directory);
40
+ if (!stat.isDirectory()) {
41
+ throw new ExitProcessError(2, "Specified path exists but is not a directory");
42
+ }
43
+ consola.start("Zipping site files");
44
+ const archive = archiver("zip").directory(directory, false);
45
+ logArchiveStats(archive);
46
+ consola.start("Uploading site files");
47
+ await Promise.all([
48
+ thirdPartyApplications.uploadVersion(clientCtx, application, siteVersion, Readable.toWeb(archive)),
49
+ archive.finalize(),
50
+ ]);
51
+ consola.success("Upload complete");
52
+ if (!uploadOnly) {
53
+ const website = await thirdPartyApplications.deployWebsite(clientCtx, application, { version: siteVersion });
54
+ consola.success(`Deployed ${siteVersion} successfully`);
55
+ const domain = website.subdomains[0];
56
+ if (domain != null) {
57
+ logSiteLink("View live site:", `https://${domain}`);
58
+ }
59
+ }
60
+ else {
61
+ const website = await thirdPartyApplications.getWebsite(clientCtx, application);
62
+ const domain = website?.subdomains[0];
63
+ consola.debug("Upload only mode enabled, skipping deployment");
64
+ if (domain != null) {
65
+ logSiteLink("Preview link:", `https://${domain}/.system/preview?previewVersion=${siteVersion}`);
66
+ }
67
+ }
68
+ }
69
+ function logArchiveStats(archive) {
70
+ let archiveStats = { fileCount: 0, bytes: 0 };
71
+ archive.on("progress", (progress) => {
72
+ archiveStats = {
73
+ fileCount: progress.entries.total,
74
+ bytes: progress.fs.totalBytes,
75
+ };
76
+ });
77
+ archive.on("finish", () => {
78
+ consola.debug(`Zipped ${archiveStats.fileCount} files and ${archiveStats.bytes} bytes`);
79
+ });
80
+ }
81
+ function logSiteLink(title, link) {
82
+ consola.box({
83
+ message: `${title}\n\n${colorize("green", link)}`,
84
+ style: {
85
+ padding: 2,
86
+ borderColor: "green",
87
+ borderStyle: "rounded",
88
+ },
89
+ });
90
+ }
@@ -0,0 +1,6 @@
1
+ import type { CliCommonArgs } from "@osdk/cli.common";
2
+ import type { CommandModule } from "yargs";
3
+ import type { CommonSiteArgs } from "./CommonSiteArgs.js";
4
+ declare const command: CommandModule<CliCommonArgs, CommonSiteArgs>;
5
+ export default command;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/site/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAK1D,QAAA,MAAM,OAAO,EAAE,aAAa,CAAC,aAAa,EAAE,cAAc,CAsDzD,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { YargsCheckError } from "@osdk/cli.common";
17
+ import configLoader from "../../util/configLoader.js";
18
+ import deploy from "./deploy/index.js";
19
+ import { logSiteCommandConfigFileOverride } from "./logSiteCommandConfigFileOverride.js";
20
+ import version from "./version/index.js";
21
+ const command = {
22
+ command: "site",
23
+ describe: "Manage your site",
24
+ builder: async argv => {
25
+ const config = await configLoader();
26
+ const application = config?.foundryConfig.site.application;
27
+ const foundryUrl = config?.foundryConfig.foundryUrl;
28
+ return argv.options({
29
+ application: {
30
+ type: "string",
31
+ coerce: application => application,
32
+ ...(application ? {
33
+ default: application
34
+ } : {
35
+ demandOption: true
36
+ }),
37
+ description: "Application resource identifier (rid)"
38
+ },
39
+ foundryUrl: {
40
+ coerce: foundryUrl => foundryUrl.replace(/\/$/, ""),
41
+ type: "string",
42
+ ...(foundryUrl ? {
43
+ default: foundryUrl
44
+ } : {
45
+ demandOption: true
46
+ }),
47
+ description: "URL for the Foundry stack"
48
+ },
49
+ token: {
50
+ type: "string",
51
+ conflicts: "tokenFile",
52
+ description: "Foundry API token"
53
+ },
54
+ tokenFile: {
55
+ type: "string",
56
+ conflicts: "token",
57
+ description: "Path to file containing Foundry API token"
58
+ }
59
+ }).group(["application", "foundryUrl", "token", "tokenFile"], "Common Options").command(version).command(deploy).check(args => {
60
+ if (!args.foundryUrl.startsWith("https://")) {
61
+ throw new YargsCheckError("foundryUrl must start with https://");
62
+ }
63
+ return true;
64
+ }).middleware(args => logSiteCommandConfigFileOverride(args, config?.foundryConfig)).demandCommand();
65
+ },
66
+ handler: async () => {}
67
+ };
68
+ export default command;
69
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["YargsCheckError","configLoader","deploy","logSiteCommandConfigFileOverride","version","command","describe","builder","argv","config","application","foundryConfig","site","foundryUrl","options","type","coerce","default","demandOption","description","replace","token","conflicts","tokenFile","group","check","args","startsWith","middleware","demandCommand","handler"],"sources":["index.js"],"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 */\nimport { YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../util/configLoader.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\n .options({\n application: {\n type: \"string\",\n coerce: (application) => application,\n ...application\n ? { default: application }\n : { demandOption: true },\n description: \"Application resource identifier (rid)\",\n },\n foundryUrl: {\n coerce: (foundryUrl) => foundryUrl.replace(/\\/$/, \"\"),\n type: \"string\",\n ...foundryUrl\n ? { default: foundryUrl }\n : { demandOption: true },\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 })\n .group([\"application\", \"foundryUrl\", \"token\", \"tokenFile\"], \"Common Options\")\n .command(version)\n .command(deploy)\n .check((args) => {\n if (!args.foundryUrl.startsWith(\"https://\")) {\n throw new YargsCheckError(\"foundryUrl must start with https://\");\n }\n return true;\n })\n .middleware((args) => logSiteCommandConfigFileOverride(args, config?.foundryConfig))\n .demandCommand();\n },\n handler: async (args) => { },\n};\nexport default command;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,eAAe,QAAQ,kBAAkB;AAClD,OAAOC,YAAY,MAAM,4BAA4B;AACrD,OAAOC,MAAM,MAAM,mBAAmB;AACtC,SAASC,gCAAgC,QAAQ,uCAAuC;AACxF,OAAOC,OAAO,MAAM,oBAAoB;AACxC,MAAMC,OAAO,GAAG;EACZA,OAAO,EAAE,MAAM;EACfC,QAAQ,EAAE,kBAAkB;EAC5BC,OAAO,EAAE,MAAOC,IAAI,IAAK;IACrB,MAAMC,MAAM,GAAG,MAAMR,YAAY,CAAC,CAAC;IACnC,MAAMS,WAAW,GAAGD,MAAM,EAAEE,aAAa,CAACC,IAAI,CAACF,WAAW;IAC1D,MAAMG,UAAU,GAAGJ,MAAM,EAAEE,aAAa,CAACE,UAAU;IACnD,OAAOL,IAAI,CACNM,OAAO,CAAC;MACTJ,WAAW,EAAE;QACTK,IAAI,EAAE,QAAQ;QACdC,MAAM,EAAGN,WAAW,IAAKA,WAAW;QACpC,IAAGA,WAAW,GACR;UAAEO,OAAO,EAAEP;QAAY,CAAC,GACxB;UAAEQ,YAAY,EAAE;QAAK,CAAC;QAC5BC,WAAW,EAAE;MACjB,CAAC;MACDN,UAAU,EAAE;QACRG,MAAM,EAAGH,UAAU,IAAKA,UAAU,CAACO,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;QACrDL,IAAI,EAAE,QAAQ;QACd,IAAGF,UAAU,GACP;UAAEI,OAAO,EAAEJ;QAAW,CAAC,GACvB;UAAEK,YAAY,EAAE;QAAK,CAAC;QAC5BC,WAAW,EAAE;MACjB,CAAC;MACDE,KAAK,EAAE;QACHN,IAAI,EAAE,QAAQ;QACdO,SAAS,EAAE,WAAW;QACtBH,WAAW,EAAE;MACjB,CAAC;MACDI,SAAS,EAAE;QACPR,IAAI,EAAE,QAAQ;QACdO,SAAS,EAAE,OAAO;QAClBH,WAAW,EAAE;MACjB;IACJ,CAAC,CAAC,CACGK,KAAK,CAAC,CAAC,aAAa,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,gBAAgB,CAAC,CAC5EnB,OAAO,CAACD,OAAO,CAAC,CAChBC,OAAO,CAACH,MAAM,CAAC,CACfuB,KAAK,CAAEC,IAAI,IAAK;MACjB,IAAI,CAACA,IAAI,CAACb,UAAU,CAACc,UAAU,CAAC,UAAU,CAAC,EAAE;QACzC,MAAM,IAAI3B,eAAe,CAAC,qCAAqC,CAAC;MACpE;MACA,OAAO,IAAI;IACf,CAAC,CAAC,CACG4B,UAAU,CAAEF,IAAI,IAAKvB,gCAAgC,CAACuB,IAAI,EAAEjB,MAAM,EAAEE,aAAa,CAAC,CAAC,CACnFkB,aAAa,CAAC,CAAC;EACxB,CAAC;EACDC,OAAO,EAAE,MAAAA,CAAA,KAAgB,CAAE;AAC/B,CAAC;AACD,eAAezB,OAAO","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ import type { Arguments } from "yargs";
2
+ import type { FoundryConfig } from "../../util/config.js";
3
+ import type { CommonSiteArgs } from "./CommonSiteArgs.js";
4
+ export declare function logSiteCommandConfigFileOverride(args: Arguments<CommonSiteArgs>, config: FoundryConfig | undefined): Promise<void>;
5
+ //# sourceMappingURL=logSiteCommandConfigFileOverride.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logSiteCommandConfigFileOverride.d.ts","sourceRoot":"","sources":["../../../../src/commands/site/logSiteCommandConfigFileOverride.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,wBAAsB,gCAAgC,CACpD,IAAI,EAAE,SAAS,CAAC,cAAc,CAAC,EAC/B,MAAM,EAAE,aAAa,GAAG,SAAS,iBAgBlC"}
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { consola } from "consola";
17
+ export async function logSiteCommandConfigFileOverride(args, config) {
18
+ if (config?.site.application != null && args.application !== config.site.application) {
19
+ consola.debug(`Overriding "application" from config file with ${args.application}`);
20
+ }
21
+ if (config?.foundryUrl != null && args.foundryUrl !== config.foundryUrl) {
22
+ consola.debug(`Overriding "foundryUrl" from config file with ${args.foundryUrl}`);
23
+ }
24
+ }
25
+ //# sourceMappingURL=logSiteCommandConfigFileOverride.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logSiteCommandConfigFileOverride.js","names":["consola","logSiteCommandConfigFileOverride","args","config","site","application","debug","foundryUrl"],"sources":["logSiteCommandConfigFileOverride.js"],"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 */\nimport { consola } from \"consola\";\nexport async function logSiteCommandConfigFileOverride(args, config) {\n if (config?.site.application != null\n && 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"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,SAAS;AACjC,OAAO,eAAeC,gCAAgCA,CAACC,IAAI,EAAEC,MAAM,EAAE;EACjE,IAAIA,MAAM,EAAEC,IAAI,CAACC,WAAW,IAAI,IAAI,IAC7BH,IAAI,CAACG,WAAW,KAAKF,MAAM,CAACC,IAAI,CAACC,WAAW,EAAE;IACjDL,OAAO,CAACM,KAAK,CAAC,kDAAkDJ,IAAI,CAACG,WAAW,EAAE,CAAC;EACvF;EACA,IAAIF,MAAM,EAAEI,UAAU,IAAI,IAAI,IAAIL,IAAI,CAACK,UAAU,KAAKJ,MAAM,CAACI,UAAU,EAAE;IACrEP,OAAO,CAACM,KAAK,CAAC,iDAAiDJ,IAAI,CAACK,UAAU,EAAE,CAAC;EACrF;AACJ","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ import type { CommonSiteArgs } from "../../CommonSiteArgs.js";
2
+ export interface VersionDeleteArgs extends CommonSiteArgs {
3
+ version: string;
4
+ yes?: boolean;
5
+ }
6
+ //# sourceMappingURL=VersionDeleteArgs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VersionDeleteArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/delete/VersionDeleteArgs.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=VersionDeleteArgs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VersionDeleteArgs.js","names":[],"sources":["VersionDeleteArgs.js"],"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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ import type { CommandModule } from "yargs";
2
+ import type { CommonSiteArgs } from "../../CommonSiteArgs.js";
3
+ import type { VersionDeleteArgs } from "./VersionDeleteArgs.js";
4
+ declare const command: CommandModule<CommonSiteArgs, VersionDeleteArgs>;
5
+ export default command;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/delete/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,QAAA,MAAM,OAAO,EAAE,aAAa,CAC1B,cAAc,EACd,iBAAiB,CAsBlB,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ const command = {
17
+ command: "delete <version>",
18
+ describe: "Delete site version",
19
+ builder: argv => {
20
+ return argv.positional("version", {
21
+ type: "string",
22
+ demandOption: true,
23
+ description: "Version to set as live"
24
+ }).option("yes", {
25
+ alias: "y",
26
+ type: "boolean",
27
+ description: "Automatically confirm destructive changes"
28
+ }).group(["yes"], "Delete Options");
29
+ },
30
+ handler: async args => {
31
+ const command = await import("./versionDeleteCommand.mjs");
32
+ await command.default(args);
33
+ }
34
+ };
35
+ export default command;
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["command","describe","builder","argv","positional","type","demandOption","description","option","alias","group","handler","args","default"],"sources":["index.js"],"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 */\nconst command = {\n command: \"delete <version>\",\n describe: \"Delete site version\",\n builder: (argv) => {\n return argv\n .positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to set as live\",\n })\n .option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\",\n })\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"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,OAAO,GAAG;EACZA,OAAO,EAAE,kBAAkB;EAC3BC,QAAQ,EAAE,qBAAqB;EAC/BC,OAAO,EAAGC,IAAI,IAAK;IACf,OAAOA,IAAI,CACNC,UAAU,CAAC,SAAS,EAAE;MACvBC,IAAI,EAAE,QAAQ;MACdC,YAAY,EAAE,IAAI;MAClBC,WAAW,EAAE;IACjB,CAAC,CAAC,CACGC,MAAM,CAAC,KAAK,EAAE;MACfC,KAAK,EAAE,GAAG;MACVJ,IAAI,EAAE,SAAS;MACfE,WAAW,EAAE;IACjB,CAAC,CAAC,CACGG,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE,gBAAgB,CAAC;EACzC,CAAC;EACDC,OAAO,EAAE,MAAOC,IAAI,IAAK;IACrB,MAAMZ,OAAO,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC;IAC1D,MAAMA,OAAO,CAACa,OAAO,CAACD,IAAI,CAAC;EAC/B;AACJ,CAAC;AACD,eAAeZ,OAAO","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import type { VersionDeleteArgs } from "./VersionDeleteArgs.js";
2
+ export default function versionDeleteCommand({ version, yes, application, foundryUrl, token, tokenFile }: VersionDeleteArgs): Promise<void>;
3
+ //# sourceMappingURL=versionDeleteCommand.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versionDeleteCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,wBAA8B,oBAAoB,CAChD,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EACzD,iBAAiB,iBAwBpB"}
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { createInternalClientContext, thirdPartyApplications } from "#net";
17
+ import { consola } from "consola";
18
+ import { colorize } from "consola/utils";
19
+ import { handlePromptCancel } from "../../../../consola/handlePromptCancel.js";
20
+ import { loadToken } from "../../../../util/token.js";
21
+ export default async function versionDeleteCommand({
22
+ version,
23
+ yes,
24
+ application,
25
+ foundryUrl,
26
+ token,
27
+ tokenFile
28
+ }) {
29
+ if (!yes) {
30
+ const confirmed = await consola.prompt(`Are you sure you want to delete the version ${version}?\n${colorize("bold", "This action cannot be undone.")}`, {
31
+ type: "confirm"
32
+ });
33
+ handlePromptCancel(confirmed);
34
+ }
35
+ consola.start(`Deleting version ${version}`);
36
+ const loadedToken = await loadToken(token, tokenFile);
37
+ const clientCtx = createInternalClientContext(foundryUrl, () => loadedToken);
38
+ await thirdPartyApplications.deleteVersion(clientCtx, application, version);
39
+ consola.success(`Deleted version ${version}`);
40
+ }
41
+ //# sourceMappingURL=versionDeleteCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versionDeleteCommand.js","names":["createInternalClientContext","thirdPartyApplications","consola","colorize","handlePromptCancel","loadToken","versionDeleteCommand","version","yes","application","foundryUrl","token","tokenFile","confirmed","prompt","type","start","loadedToken","clientCtx","deleteVersion","success"],"sources":["versionDeleteCommand.mjs"],"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 */\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\nimport { handlePromptCancel } from \"../../../../consola/handlePromptCancel.js\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionDeleteCommand({ version, yes, application, foundryUrl, token, tokenFile }) {\n if (!yes) {\n const confirmed = await consola.prompt(`Are you sure you want to delete the version ${version}?\\n${colorize(\"bold\", \"This action cannot be undone.\")}`, { type: \"confirm\" });\n handlePromptCancel(confirmed);\n }\n consola.start(`Deleting version ${version}`);\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n await thirdPartyApplications.deleteVersion(clientCtx, application, version);\n consola.success(`Deleted version ${version}`);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,2BAA2B,EAAEC,sBAAsB,QAAQ,MAAM;AAC1E,SAASC,OAAO,QAAQ,SAAS;AACjC,SAASC,QAAQ,QAAQ,eAAe;AACxC,SAASC,kBAAkB,QAAQ,2CAA2C;AAC9E,SAASC,SAAS,QAAQ,2BAA2B;AACrD,eAAe,eAAeC,oBAAoBA,CAAC;EAAEC,OAAO;EAAEC,GAAG;EAAEC,WAAW;EAAEC,UAAU;EAAEC,KAAK;EAAEC;AAAU,CAAC,EAAE;EAC5G,IAAI,CAACJ,GAAG,EAAE;IACN,MAAMK,SAAS,GAAG,MAAMX,OAAO,CAACY,MAAM,CAAC,+CAA+CP,OAAO,MAAMJ,QAAQ,CAAC,MAAM,EAAE,+BAA+B,CAAC,EAAE,EAAE;MAAEY,IAAI,EAAE;IAAU,CAAC,CAAC;IAC5KX,kBAAkB,CAACS,SAAS,CAAC;EACjC;EACAX,OAAO,CAACc,KAAK,CAAC,oBAAoBT,OAAO,EAAE,CAAC;EAC5C,MAAMU,WAAW,GAAG,MAAMZ,SAAS,CAACM,KAAK,EAAEC,SAAS,CAAC;EAErD,MAAMM,SAAS,GAAGlB,2BAA2B,CAACU,UAAU,EADlC,MAAMO,WAC2C,CAAC;EACxE,MAAMhB,sBAAsB,CAACkB,aAAa,CAACD,SAAS,EAAET,WAAW,EAAEF,OAAO,CAAC;EAC3EL,OAAO,CAACkB,OAAO,CAAC,mBAAmBb,OAAO,EAAE,CAAC;AACjD","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { createInternalClientContext, thirdPartyApplications } from "#net";
17
+ import { consola } from "consola";
18
+ import { colorize } from "consola/utils";
19
+ import { handlePromptCancel } from "../../../../consola/handlePromptCancel.js";
20
+ import { loadToken } from "../../../../util/token.js";
21
+ export default async function versionDeleteCommand({ version, yes, application, foundryUrl, token, tokenFile }) {
22
+ if (!yes) {
23
+ const confirmed = await consola.prompt(`Are you sure you want to delete the version ${version}?\n${colorize("bold", "This action cannot be undone.")}`, { type: "confirm" });
24
+ handlePromptCancel(confirmed);
25
+ }
26
+ consola.start(`Deleting version ${version}`);
27
+ const loadedToken = await loadToken(token, tokenFile);
28
+ const tokenProvider = () => loadedToken;
29
+ const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
30
+ await thirdPartyApplications.deleteVersion(clientCtx, application, version);
31
+ consola.success(`Deleted version ${version}`);
32
+ }
@@ -0,0 +1,4 @@
1
+ import type { CommonSiteArgs } from "../../CommonSiteArgs.js";
2
+ export interface VersionGetArgs extends CommonSiteArgs {
3
+ }
4
+ //# sourceMappingURL=VersionGetArgs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VersionGetArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/get/VersionGetArgs.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,cAAe,SAAQ,cAAc;CAAG"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=VersionGetArgs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VersionGetArgs.js","names":[],"sources":["VersionGetArgs.js"],"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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ import type { CommandModule } from "yargs";
2
+ import type { CommonSiteArgs } from "../../CommonSiteArgs.js";
3
+ import type { VersionGetArgs } from "./VersionGetArgs.js";
4
+ declare const command: CommandModule<CommonSiteArgs, VersionGetArgs>;
5
+ export default command;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/get/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,QAAA,MAAM,OAAO,EAAE,aAAa,CAC1B,cAAc,EACd,cAAc,CAWf,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ const command = {
17
+ command: "get",
18
+ describe: "Get live site version",
19
+ builder: argv => {
20
+ return argv;
21
+ },
22
+ handler: async args => {
23
+ const command = await import("./versionGetCommand.mjs");
24
+ await command.default(args);
25
+ }
26
+ };
27
+ export default command;
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["command","describe","builder","argv","handler","args","default"],"sources":["index.js"],"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 */\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"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,OAAO,GAAG;EACZA,OAAO,EAAE,KAAK;EACdC,QAAQ,EAAE,uBAAuB;EACjCC,OAAO,EAAGC,IAAI,IAAK;IACf,OAAOA,IAAI;EACf,CAAC;EACDC,OAAO,EAAE,MAAOC,IAAI,IAAK;IACrB,MAAML,OAAO,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC;IACvD,MAAMA,OAAO,CAACM,OAAO,CAACD,IAAI,CAAC;EAC/B;AACJ,CAAC;AACD,eAAeL,OAAO","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import type { VersionGetArgs } from "./VersionGetArgs.js";
2
+ export default function versionGetCommand({ foundryUrl, application, token, tokenFile }: VersionGetArgs): Promise<void>;
3
+ //# sourceMappingURL=versionGetCommand.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versionGetCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/get/versionGetCommand.mts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,wBAA8B,iBAAiB,CAC7C,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,cAAc,iBAkB9D"}
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { createInternalClientContext, thirdPartyApplications } from "#net";
17
+ import { consola } from "consola";
18
+ import { loadToken } from "../../../../util/token.js";
19
+ export default async function versionGetCommand({
20
+ foundryUrl,
21
+ application,
22
+ token,
23
+ tokenFile
24
+ }) {
25
+ const loadedToken = await loadToken(token, tokenFile);
26
+ const clientCtx = createInternalClientContext(foundryUrl, () => loadedToken);
27
+ consola.start("Getting live version");
28
+ const website = await thirdPartyApplications.getWebsite(clientCtx, application);
29
+ const deployedVersion = website?.deployedVersion;
30
+ if (!deployedVersion) {
31
+ consola.info("No live site version set");
32
+ } else {
33
+ consola.success(`Live site version is ${deployedVersion}`);
34
+ }
35
+ }
36
+ //# sourceMappingURL=versionGetCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versionGetCommand.js","names":["createInternalClientContext","thirdPartyApplications","consola","loadToken","versionGetCommand","foundryUrl","application","token","tokenFile","loadedToken","clientCtx","start","website","getWebsite","deployedVersion","info","success"],"sources":["versionGetCommand.mjs"],"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 */\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { consola } from \"consola\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionGetCommand({ foundryUrl, application, token, tokenFile }) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Getting live version\");\n const website = await thirdPartyApplications.getWebsite(clientCtx, application);\n const deployedVersion = website?.deployedVersion;\n if (!deployedVersion) {\n consola.info(\"No live site version set\");\n }\n else {\n consola.success(`Live site version is ${deployedVersion}`);\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,2BAA2B,EAAEC,sBAAsB,QAAQ,MAAM;AAC1E,SAASC,OAAO,QAAQ,SAAS;AACjC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,eAAe,eAAeC,iBAAiBA,CAAC;EAAEC,UAAU;EAAEC,WAAW;EAAEC,KAAK;EAAEC;AAAU,CAAC,EAAE;EAC3F,MAAMC,WAAW,GAAG,MAAMN,SAAS,CAACI,KAAK,EAAEC,SAAS,CAAC;EAErD,MAAME,SAAS,GAAGV,2BAA2B,CAACK,UAAU,EADlC,MAAMI,WAC2C,CAAC;EACxEP,OAAO,CAACS,KAAK,CAAC,sBAAsB,CAAC;EACrC,MAAMC,OAAO,GAAG,MAAMX,sBAAsB,CAACY,UAAU,CAACH,SAAS,EAAEJ,WAAW,CAAC;EAC/E,MAAMQ,eAAe,GAAGF,OAAO,EAAEE,eAAe;EAChD,IAAI,CAACA,eAAe,EAAE;IAClBZ,OAAO,CAACa,IAAI,CAAC,0BAA0B,CAAC;EAC5C,CAAC,MACI;IACDb,OAAO,CAACc,OAAO,CAAC,wBAAwBF,eAAe,EAAE,CAAC;EAC9D;AACJ","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { createInternalClientContext, thirdPartyApplications } from "#net";
17
+ import { consola } from "consola";
18
+ import { loadToken } from "../../../../util/token.js";
19
+ export default async function versionGetCommand({ foundryUrl, application, token, tokenFile }) {
20
+ const loadedToken = await loadToken(token, tokenFile);
21
+ const tokenProvider = () => loadedToken;
22
+ const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
23
+ consola.start("Getting live version");
24
+ const website = await thirdPartyApplications.getWebsite(clientCtx, application);
25
+ const deployedVersion = website?.deployedVersion;
26
+ if (!deployedVersion) {
27
+ consola.info("No live site version set");
28
+ }
29
+ else {
30
+ consola.success(`Live site version is ${deployedVersion}`);
31
+ }
32
+ }
@@ -0,0 +1,5 @@
1
+ import type { CommandModule } from "yargs";
2
+ import type { CommonSiteArgs } from "../CommonSiteArgs.js";
3
+ declare const command: CommandModule<CommonSiteArgs, CommonSiteArgs>;
4
+ export default command;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/commands/site/version/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAO3D,QAAA,MAAM,OAAO,EAAE,aAAa,CAC1B,cAAc,EACd,cAAc,CAcf,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import deleteCmd from "./delete/index.js";
17
+ import get from "./get/index.js";
18
+ import list from "./list/index.js";
19
+ import set from "./set/index.js";
20
+ import unset from "./unset/index.js";
21
+ const command = {
22
+ command: "version",
23
+ describe: "Manage site versions",
24
+ builder: argv => {
25
+ return argv.command(list).command(get).command(set).command(unset).command(deleteCmd).demandCommand();
26
+ },
27
+ handler: async () => {}
28
+ };
29
+ export default command;
30
+ //# sourceMappingURL=index.js.map