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

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 +20 -0
  2. package/build/browser/chunk-5AQYUXAY.js +17 -0
  3. package/build/browser/chunk-5AQYUXAY.js.map +1 -0
  4. package/build/browser/chunk-DAYFZSC6.js +42 -0
  5. package/build/browser/chunk-DAYFZSC6.js.map +1 -0
  6. package/build/browser/chunk-Q2H7XAS4.js +88 -0
  7. package/build/browser/chunk-Q2H7XAS4.js.map +1 -0
  8. package/build/browser/chunk-VDO5KGGR.js +127 -0
  9. package/build/browser/chunk-VDO5KGGR.js.map +1 -0
  10. package/build/browser/chunk-YC2BRFXY.js +221 -0
  11. package/build/browser/chunk-YC2BRFXY.js.map +1 -0
  12. package/build/browser/handleGenerate-QM7NMLCK.js +419 -0
  13. package/build/browser/handleGenerate-QM7NMLCK.js.map +1 -0
  14. package/build/browser/index.js +597 -16
  15. package/build/browser/index.js.map +1 -1
  16. package/build/browser/loginFlow-622FU6FR.js +4 -0
  17. package/build/browser/loginFlow-622FU6FR.js.map +1 -0
  18. package/build/browser/siteDeployCommand-TPTNUT5R.js +140 -0
  19. package/build/browser/siteDeployCommand-TPTNUT5R.js.map +1 -0
  20. package/build/browser/versionDeleteCommand-LBZGRIYN.js +35 -0
  21. package/build/browser/versionDeleteCommand-LBZGRIYN.js.map +1 -0
  22. package/build/browser/versionGetCommand-BJ3QWAHL.js +29 -0
  23. package/build/browser/versionGetCommand-BJ3QWAHL.js.map +1 -0
  24. package/build/browser/versionListCommand-P7OMJYES.js +34 -0
  25. package/build/browser/versionListCommand-P7OMJYES.js.map +1 -0
  26. package/build/browser/versionSetCommand-N3PA4HYH.js +29 -0
  27. package/build/browser/versionSetCommand-N3PA4HYH.js.map +1 -0
  28. package/build/browser/versionUnsetCommand-AD426TBT.js +34 -0
  29. package/build/browser/versionUnsetCommand-AD426TBT.js.map +1 -0
  30. package/build/esm/chunk-5AQYUXAY.js +17 -0
  31. package/build/esm/chunk-5AQYUXAY.js.map +1 -0
  32. package/build/esm/chunk-DAYFZSC6.js +42 -0
  33. package/build/esm/chunk-DAYFZSC6.js.map +1 -0
  34. package/build/esm/chunk-Q2H7XAS4.js +88 -0
  35. package/build/esm/chunk-Q2H7XAS4.js.map +1 -0
  36. package/build/esm/chunk-VDO5KGGR.js +127 -0
  37. package/build/esm/chunk-VDO5KGGR.js.map +1 -0
  38. package/build/esm/chunk-YC2BRFXY.js +221 -0
  39. package/build/esm/chunk-YC2BRFXY.js.map +1 -0
  40. package/build/esm/handleGenerate-QM7NMLCK.js +419 -0
  41. package/build/esm/handleGenerate-QM7NMLCK.js.map +1 -0
  42. package/build/esm/index.js +597 -16
  43. package/build/esm/index.js.map +1 -1
  44. package/build/esm/loginFlow-622FU6FR.js +4 -0
  45. package/build/esm/loginFlow-622FU6FR.js.map +1 -0
  46. package/build/esm/siteDeployCommand-TPTNUT5R.js +140 -0
  47. package/build/esm/siteDeployCommand-TPTNUT5R.js.map +1 -0
  48. package/build/esm/versionDeleteCommand-LBZGRIYN.js +35 -0
  49. package/build/esm/versionDeleteCommand-LBZGRIYN.js.map +1 -0
  50. package/build/esm/versionGetCommand-BJ3QWAHL.js +29 -0
  51. package/build/esm/versionGetCommand-BJ3QWAHL.js.map +1 -0
  52. package/build/esm/versionListCommand-P7OMJYES.js +34 -0
  53. package/build/esm/versionListCommand-P7OMJYES.js.map +1 -0
  54. package/build/esm/versionSetCommand-N3PA4HYH.js +29 -0
  55. package/build/esm/versionSetCommand-N3PA4HYH.js.map +1 -0
  56. package/build/esm/versionUnsetCommand-AD426TBT.js +34 -0
  57. package/build/esm/versionUnsetCommand-AD426TBT.js.map +1 -0
  58. package/package.json +7 -7
  59. package/build/browser/cli.d.ts +0 -7
  60. package/build/browser/cli.d.ts.map +0 -1
  61. package/build/browser/cli.js +0 -42
  62. package/build/browser/cli.js.map +0 -1
  63. package/build/browser/commands/auth/index.d.ts +0 -5
  64. package/build/browser/commands/auth/index.d.ts.map +0 -1
  65. package/build/browser/commands/auth/index.js +0 -34
  66. package/build/browser/commands/auth/index.js.map +0 -1
  67. package/build/browser/commands/auth/login/index.d.ts +0 -5
  68. package/build/browser/commands/auth/login/index.d.ts.map +0 -1
  69. package/build/browser/commands/auth/login/index.js +0 -34
  70. package/build/browser/commands/auth/login/index.js.map +0 -1
  71. package/build/browser/commands/site/CommonSiteArgs.d.ts +0 -9
  72. package/build/browser/commands/site/CommonSiteArgs.d.ts.map +0 -1
  73. package/build/browser/commands/site/CommonSiteArgs.js +0 -17
  74. package/build/browser/commands/site/CommonSiteArgs.js.map +0 -1
  75. package/build/browser/commands/site/deploy/SiteDeployArgs.d.ts +0 -10
  76. package/build/browser/commands/site/deploy/SiteDeployArgs.d.ts.map +0 -1
  77. package/build/browser/commands/site/deploy/SiteDeployArgs.js +0 -17
  78. package/build/browser/commands/site/deploy/SiteDeployArgs.js.map +0 -1
  79. package/build/browser/commands/site/deploy/index.d.ts +0 -6
  80. package/build/browser/commands/site/deploy/index.d.ts.map +0 -1
  81. package/build/browser/commands/site/deploy/index.js +0 -108
  82. package/build/browser/commands/site/deploy/index.js.map +0 -1
  83. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.d.ts +0 -5
  84. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.d.ts.map +0 -1
  85. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.js +0 -28
  86. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.js.map +0 -1
  87. package/build/browser/commands/site/deploy/siteDeployCommand.d.mts +0 -10
  88. package/build/browser/commands/site/deploy/siteDeployCommand.d.mts.map +0 -1
  89. package/build/browser/commands/site/deploy/siteDeployCommand.js +0 -98
  90. package/build/browser/commands/site/deploy/siteDeployCommand.js.map +0 -1
  91. package/build/browser/commands/site/deploy/siteDeployCommand.mjs +0 -90
  92. package/build/browser/commands/site/index.d.ts +0 -6
  93. package/build/browser/commands/site/index.d.ts.map +0 -1
  94. package/build/browser/commands/site/index.js +0 -69
  95. package/build/browser/commands/site/index.js.map +0 -1
  96. package/build/browser/commands/site/logSiteCommandConfigFileOverride.d.ts +0 -5
  97. package/build/browser/commands/site/logSiteCommandConfigFileOverride.d.ts.map +0 -1
  98. package/build/browser/commands/site/logSiteCommandConfigFileOverride.js +0 -25
  99. package/build/browser/commands/site/logSiteCommandConfigFileOverride.js.map +0 -1
  100. package/build/browser/commands/site/version/delete/VersionDeleteArgs.d.ts +0 -6
  101. package/build/browser/commands/site/version/delete/VersionDeleteArgs.d.ts.map +0 -1
  102. package/build/browser/commands/site/version/delete/VersionDeleteArgs.js +0 -17
  103. package/build/browser/commands/site/version/delete/VersionDeleteArgs.js.map +0 -1
  104. package/build/browser/commands/site/version/delete/index.d.ts +0 -6
  105. package/build/browser/commands/site/version/delete/index.d.ts.map +0 -1
  106. package/build/browser/commands/site/version/delete/index.js +0 -36
  107. package/build/browser/commands/site/version/delete/index.js.map +0 -1
  108. package/build/browser/commands/site/version/delete/versionDeleteCommand.d.mts +0 -3
  109. package/build/browser/commands/site/version/delete/versionDeleteCommand.d.mts.map +0 -1
  110. package/build/browser/commands/site/version/delete/versionDeleteCommand.js +0 -41
  111. package/build/browser/commands/site/version/delete/versionDeleteCommand.js.map +0 -1
  112. package/build/browser/commands/site/version/delete/versionDeleteCommand.mjs +0 -32
  113. package/build/browser/commands/site/version/get/VersionGetArgs.d.ts +0 -4
  114. package/build/browser/commands/site/version/get/VersionGetArgs.d.ts.map +0 -1
  115. package/build/browser/commands/site/version/get/VersionGetArgs.js +0 -17
  116. package/build/browser/commands/site/version/get/VersionGetArgs.js.map +0 -1
  117. package/build/browser/commands/site/version/get/index.d.ts +0 -6
  118. package/build/browser/commands/site/version/get/index.d.ts.map +0 -1
  119. package/build/browser/commands/site/version/get/index.js +0 -28
  120. package/build/browser/commands/site/version/get/index.js.map +0 -1
  121. package/build/browser/commands/site/version/get/versionGetCommand.d.mts +0 -3
  122. package/build/browser/commands/site/version/get/versionGetCommand.d.mts.map +0 -1
  123. package/build/browser/commands/site/version/get/versionGetCommand.js +0 -36
  124. package/build/browser/commands/site/version/get/versionGetCommand.js.map +0 -1
  125. package/build/browser/commands/site/version/get/versionGetCommand.mjs +0 -32
  126. package/build/browser/commands/site/version/index.d.ts +0 -5
  127. package/build/browser/commands/site/version/index.d.ts.map +0 -1
  128. package/build/browser/commands/site/version/index.js +0 -30
  129. package/build/browser/commands/site/version/index.js.map +0 -1
  130. package/build/browser/commands/site/version/list/VersionListArgs.d.ts +0 -4
  131. package/build/browser/commands/site/version/list/VersionListArgs.d.ts.map +0 -1
  132. package/build/browser/commands/site/version/list/VersionListArgs.js +0 -17
  133. package/build/browser/commands/site/version/list/VersionListArgs.js.map +0 -1
  134. package/build/browser/commands/site/version/list/index.d.ts +0 -6
  135. package/build/browser/commands/site/version/list/index.d.ts.map +0 -1
  136. package/build/browser/commands/site/version/list/index.js +0 -28
  137. package/build/browser/commands/site/version/list/index.js.map +0 -1
  138. package/build/browser/commands/site/version/list/versionListCommand.d.mts +0 -3
  139. package/build/browser/commands/site/version/list/versionListCommand.d.mts.map +0 -1
  140. package/build/browser/commands/site/version/list/versionListCommand.js +0 -41
  141. package/build/browser/commands/site/version/list/versionListCommand.js.map +0 -1
  142. package/build/browser/commands/site/version/list/versionListCommand.mjs +0 -42
  143. package/build/browser/commands/site/version/set/VersionSetArgs.d.ts +0 -5
  144. package/build/browser/commands/site/version/set/VersionSetArgs.d.ts.map +0 -1
  145. package/build/browser/commands/site/version/set/VersionSetArgs.js +0 -17
  146. package/build/browser/commands/site/version/set/VersionSetArgs.js.map +0 -1
  147. package/build/browser/commands/site/version/set/index.d.ts +0 -6
  148. package/build/browser/commands/site/version/set/index.d.ts.map +0 -1
  149. package/build/browser/commands/site/version/set/index.js +0 -32
  150. package/build/browser/commands/site/version/set/index.js.map +0 -1
  151. package/build/browser/commands/site/version/set/versionSetCommand.d.mts +0 -3
  152. package/build/browser/commands/site/version/set/versionSetCommand.d.mts.map +0 -1
  153. package/build/browser/commands/site/version/set/versionSetCommand.js +0 -36
  154. package/build/browser/commands/site/version/set/versionSetCommand.js.map +0 -1
  155. package/build/browser/commands/site/version/set/versionSetCommand.mjs +0 -28
  156. package/build/browser/commands/site/version/unset/VersionUnsetArgs.d.ts +0 -5
  157. package/build/browser/commands/site/version/unset/VersionUnsetArgs.d.ts.map +0 -1
  158. package/build/browser/commands/site/version/unset/VersionUnsetArgs.js +0 -17
  159. package/build/browser/commands/site/version/unset/VersionUnsetArgs.js.map +0 -1
  160. package/build/browser/commands/site/version/unset/index.d.ts +0 -6
  161. package/build/browser/commands/site/version/unset/index.d.ts.map +0 -1
  162. package/build/browser/commands/site/version/unset/index.js +0 -32
  163. package/build/browser/commands/site/version/unset/index.js.map +0 -1
  164. package/build/browser/commands/site/version/unset/versionUnsetCommand.d.mts +0 -3
  165. package/build/browser/commands/site/version/unset/versionUnsetCommand.d.mts.map +0 -1
  166. package/build/browser/commands/site/version/unset/versionUnsetCommand.js +0 -40
  167. package/build/browser/commands/site/version/unset/versionUnsetCommand.js.map +0 -1
  168. package/build/browser/commands/site/version/unset/versionUnsetCommand.mjs +0 -32
  169. package/build/browser/consola/handlePromptCancel.d.ts +0 -2
  170. package/build/browser/consola/handlePromptCancel.d.ts.map +0 -1
  171. package/build/browser/consola/handlePromptCancel.js +0 -25
  172. package/build/browser/consola/handlePromptCancel.js.map +0 -1
  173. package/build/browser/index.d.ts +0 -2
  174. package/build/browser/index.d.ts.map +0 -1
  175. package/build/browser/net/ThirdPartyAppRid.d.ts +0 -2
  176. package/build/browser/net/ThirdPartyAppRid.d.ts.map +0 -1
  177. package/build/browser/net/ThirdPartyAppRid.js +0 -17
  178. package/build/browser/net/ThirdPartyAppRid.js.map +0 -1
  179. package/build/browser/net/UserAgent.d.ts +0 -2
  180. package/build/browser/net/UserAgent.d.ts.map +0 -1
  181. package/build/browser/net/UserAgent.js +0 -17
  182. package/build/browser/net/UserAgent.js.map +0 -1
  183. package/build/browser/net/createFetch.d.mts +0 -2
  184. package/build/browser/net/createFetch.d.mts.map +0 -1
  185. package/build/browser/net/createFetch.js +0 -66
  186. package/build/browser/net/createFetch.js.map +0 -1
  187. package/build/browser/net/createFetch.mjs +0 -71
  188. package/build/browser/net/createInternalClientContext.d.mts +0 -3
  189. package/build/browser/net/createInternalClientContext.d.mts.map +0 -1
  190. package/build/browser/net/createInternalClientContext.js +0 -22
  191. package/build/browser/net/createInternalClientContext.js.map +0 -1
  192. package/build/browser/net/createInternalClientContext.mjs +0 -21
  193. package/build/browser/net/index.d.mts +0 -3
  194. package/build/browser/net/index.d.mts.map +0 -1
  195. package/build/browser/net/index.js +0 -18
  196. package/build/browser/net/index.js.map +0 -1
  197. package/build/browser/net/index.mjs +0 -17
  198. package/build/browser/net/internalClientContext.d.mts +0 -5
  199. package/build/browser/net/internalClientContext.d.mts.map +0 -1
  200. package/build/browser/net/internalClientContext.js +0 -17
  201. package/build/browser/net/internalClientContext.js.map +0 -1
  202. package/build/browser/net/internalClientContext.mjs +0 -16
  203. package/build/browser/net/third-party-applications/DeployWebsiteRequest.d.mts +0 -4
  204. package/build/browser/net/third-party-applications/DeployWebsiteRequest.d.mts.map +0 -1
  205. package/build/browser/net/third-party-applications/DeployWebsiteRequest.js +0 -17
  206. package/build/browser/net/third-party-applications/DeployWebsiteRequest.js.map +0 -1
  207. package/build/browser/net/third-party-applications/DeployWebsiteRequest.mjs +0 -16
  208. package/build/browser/net/third-party-applications/ListVersionsResponse.d.mts +0 -6
  209. package/build/browser/net/third-party-applications/ListVersionsResponse.d.mts.map +0 -1
  210. package/build/browser/net/third-party-applications/ListVersionsResponse.js +0 -17
  211. package/build/browser/net/third-party-applications/ListVersionsResponse.js.map +0 -1
  212. package/build/browser/net/third-party-applications/ListVersionsResponse.mjs +0 -16
  213. package/build/browser/net/third-party-applications/Version.d.mts +0 -4
  214. package/build/browser/net/third-party-applications/Version.d.mts.map +0 -1
  215. package/build/browser/net/third-party-applications/Version.js +0 -17
  216. package/build/browser/net/third-party-applications/Version.js.map +0 -1
  217. package/build/browser/net/third-party-applications/Version.mjs +0 -16
  218. package/build/browser/net/third-party-applications/Website.d.mts +0 -5
  219. package/build/browser/net/third-party-applications/Website.d.mts.map +0 -1
  220. package/build/browser/net/third-party-applications/Website.js +0 -17
  221. package/build/browser/net/third-party-applications/Website.js.map +0 -1
  222. package/build/browser/net/third-party-applications/Website.mjs +0 -16
  223. package/build/browser/net/third-party-applications/deleteVersion.d.mts +0 -4
  224. package/build/browser/net/third-party-applications/deleteVersion.d.mts.map +0 -1
  225. package/build/browser/net/third-party-applications/deleteVersion.js +0 -24
  226. package/build/browser/net/third-party-applications/deleteVersion.js.map +0 -1
  227. package/build/browser/net/third-party-applications/deleteVersion.mjs +0 -23
  228. package/build/browser/net/third-party-applications/deployWebsite.d.mts +0 -6
  229. package/build/browser/net/third-party-applications/deployWebsite.d.mts.map +0 -1
  230. package/build/browser/net/third-party-applications/deployWebsite.js +0 -29
  231. package/build/browser/net/third-party-applications/deployWebsite.js.map +0 -1
  232. package/build/browser/net/third-party-applications/deployWebsite.mjs +0 -28
  233. package/build/browser/net/third-party-applications/getWebsite.d.mts +0 -5
  234. package/build/browser/net/third-party-applications/getWebsite.d.mts.map +0 -1
  235. package/build/browser/net/third-party-applications/getWebsite.js +0 -33
  236. package/build/browser/net/third-party-applications/getWebsite.js.map +0 -1
  237. package/build/browser/net/third-party-applications/getWebsite.mjs +0 -35
  238. package/build/browser/net/third-party-applications/index.d.mts +0 -11
  239. package/build/browser/net/third-party-applications/index.d.mts.map +0 -1
  240. package/build/browser/net/third-party-applications/index.js +0 -22
  241. package/build/browser/net/third-party-applications/index.js.map +0 -1
  242. package/build/browser/net/third-party-applications/index.mjs +0 -21
  243. package/build/browser/net/third-party-applications/listVersions.d.mts +0 -5
  244. package/build/browser/net/third-party-applications/listVersions.d.mts.map +0 -1
  245. package/build/browser/net/third-party-applications/listVersions.js +0 -23
  246. package/build/browser/net/third-party-applications/listVersions.js.map +0 -1
  247. package/build/browser/net/third-party-applications/listVersions.mjs +0 -22
  248. package/build/browser/net/third-party-applications/undeployWebsite.d.mts +0 -4
  249. package/build/browser/net/third-party-applications/undeployWebsite.d.mts.map +0 -1
  250. package/build/browser/net/third-party-applications/undeployWebsite.js +0 -24
  251. package/build/browser/net/third-party-applications/undeployWebsite.js.map +0 -1
  252. package/build/browser/net/third-party-applications/undeployWebsite.mjs +0 -23
  253. package/build/browser/net/third-party-applications/uploadVersion.d.mts +0 -5
  254. package/build/browser/net/third-party-applications/uploadVersion.d.mts.map +0 -1
  255. package/build/browser/net/third-party-applications/uploadVersion.js +0 -30
  256. package/build/browser/net/third-party-applications/uploadVersion.js.map +0 -1
  257. package/build/browser/net/third-party-applications/uploadVersion.mjs +0 -29
  258. package/build/browser/util/autoVersion.d.ts +0 -9
  259. package/build/browser/util/autoVersion.d.ts.map +0 -1
  260. package/build/browser/util/autoVersion.js +0 -62
  261. package/build/browser/util/autoVersion.js.map +0 -1
  262. package/build/browser/util/autoVersion.test.d.ts +0 -2
  263. package/build/browser/util/autoVersion.test.d.ts.map +0 -1
  264. package/build/browser/util/autoVersion.test.js +0 -71
  265. package/build/browser/util/autoVersion.test.js.map +0 -1
  266. package/build/browser/util/config.d.ts +0 -26
  267. package/build/browser/util/config.d.ts.map +0 -1
  268. package/build/browser/util/config.js +0 -102
  269. package/build/browser/util/config.js.map +0 -1
  270. package/build/browser/util/config.test.d.ts +0 -2
  271. package/build/browser/util/config.test.d.ts.map +0 -1
  272. package/build/browser/util/config.test.js +0 -110
  273. package/build/browser/util/config.test.js.map +0 -1
  274. package/build/browser/util/configLoader.d.ts +0 -4
  275. package/build/browser/util/configLoader.d.ts.map +0 -1
  276. package/build/browser/util/configLoader.js +0 -25
  277. package/build/browser/util/configLoader.js.map +0 -1
  278. package/build/browser/util/isValidSemver.test.d.ts +0 -2
  279. package/build/browser/util/isValidSemver.test.d.ts.map +0 -1
  280. package/build/browser/util/isValidSemver.test.js +0 -41
  281. package/build/browser/util/isValidSemver.test.js.map +0 -1
  282. package/build/browser/util/token.d.ts +0 -22
  283. package/build/browser/util/token.d.ts.map +0 -1
  284. package/build/browser/util/token.js +0 -84
  285. package/build/browser/util/token.js.map +0 -1
  286. package/build/browser/util/token.test.d.ts +0 -2
  287. package/build/browser/util/token.test.d.ts.map +0 -1
  288. package/build/browser/util/token.test.js +0 -62
  289. package/build/browser/util/token.test.js.map +0 -1
  290. package/build/browser/yargs/logConfigFileMiddleware.d.ts +0 -2
  291. package/build/browser/yargs/logConfigFileMiddleware.d.ts.map +0 -1
  292. package/build/browser/yargs/logConfigFileMiddleware.js +0 -29
  293. package/build/browser/yargs/logConfigFileMiddleware.js.map +0 -1
  294. package/build/esm/cli.js +0 -42
  295. package/build/esm/cli.js.map +0 -1
  296. package/build/esm/commands/auth/index.js +0 -34
  297. package/build/esm/commands/auth/index.js.map +0 -1
  298. package/build/esm/commands/auth/login/index.js +0 -34
  299. package/build/esm/commands/auth/login/index.js.map +0 -1
  300. package/build/esm/commands/site/CommonSiteArgs.js +0 -17
  301. package/build/esm/commands/site/CommonSiteArgs.js.map +0 -1
  302. package/build/esm/commands/site/deploy/SiteDeployArgs.js +0 -17
  303. package/build/esm/commands/site/deploy/SiteDeployArgs.js.map +0 -1
  304. package/build/esm/commands/site/deploy/index.js +0 -108
  305. package/build/esm/commands/site/deploy/index.js.map +0 -1
  306. package/build/esm/commands/site/deploy/logDeployCommandConfigFileOverride.js +0 -28
  307. package/build/esm/commands/site/deploy/logDeployCommandConfigFileOverride.js.map +0 -1
  308. package/build/esm/commands/site/deploy/siteDeployCommand.js +0 -98
  309. package/build/esm/commands/site/deploy/siteDeployCommand.js.map +0 -1
  310. package/build/esm/commands/site/deploy/siteDeployCommand.mjs +0 -90
  311. package/build/esm/commands/site/index.js +0 -69
  312. package/build/esm/commands/site/index.js.map +0 -1
  313. package/build/esm/commands/site/logSiteCommandConfigFileOverride.js +0 -25
  314. package/build/esm/commands/site/logSiteCommandConfigFileOverride.js.map +0 -1
  315. package/build/esm/commands/site/version/delete/VersionDeleteArgs.js +0 -17
  316. package/build/esm/commands/site/version/delete/VersionDeleteArgs.js.map +0 -1
  317. package/build/esm/commands/site/version/delete/index.js +0 -36
  318. package/build/esm/commands/site/version/delete/index.js.map +0 -1
  319. package/build/esm/commands/site/version/delete/versionDeleteCommand.js +0 -41
  320. package/build/esm/commands/site/version/delete/versionDeleteCommand.js.map +0 -1
  321. package/build/esm/commands/site/version/delete/versionDeleteCommand.mjs +0 -32
  322. package/build/esm/commands/site/version/get/VersionGetArgs.js +0 -17
  323. package/build/esm/commands/site/version/get/VersionGetArgs.js.map +0 -1
  324. package/build/esm/commands/site/version/get/index.js +0 -28
  325. package/build/esm/commands/site/version/get/index.js.map +0 -1
  326. package/build/esm/commands/site/version/get/versionGetCommand.js +0 -36
  327. package/build/esm/commands/site/version/get/versionGetCommand.js.map +0 -1
  328. package/build/esm/commands/site/version/get/versionGetCommand.mjs +0 -32
  329. package/build/esm/commands/site/version/index.js +0 -30
  330. package/build/esm/commands/site/version/index.js.map +0 -1
  331. package/build/esm/commands/site/version/list/VersionListArgs.js +0 -17
  332. package/build/esm/commands/site/version/list/VersionListArgs.js.map +0 -1
  333. package/build/esm/commands/site/version/list/index.js +0 -28
  334. package/build/esm/commands/site/version/list/index.js.map +0 -1
  335. package/build/esm/commands/site/version/list/versionListCommand.js +0 -41
  336. package/build/esm/commands/site/version/list/versionListCommand.js.map +0 -1
  337. package/build/esm/commands/site/version/list/versionListCommand.mjs +0 -42
  338. package/build/esm/commands/site/version/set/VersionSetArgs.js +0 -17
  339. package/build/esm/commands/site/version/set/VersionSetArgs.js.map +0 -1
  340. package/build/esm/commands/site/version/set/index.js +0 -32
  341. package/build/esm/commands/site/version/set/index.js.map +0 -1
  342. package/build/esm/commands/site/version/set/versionSetCommand.js +0 -36
  343. package/build/esm/commands/site/version/set/versionSetCommand.js.map +0 -1
  344. package/build/esm/commands/site/version/set/versionSetCommand.mjs +0 -28
  345. package/build/esm/commands/site/version/unset/VersionUnsetArgs.js +0 -17
  346. package/build/esm/commands/site/version/unset/VersionUnsetArgs.js.map +0 -1
  347. package/build/esm/commands/site/version/unset/index.js +0 -32
  348. package/build/esm/commands/site/version/unset/index.js.map +0 -1
  349. package/build/esm/commands/site/version/unset/versionUnsetCommand.js +0 -40
  350. package/build/esm/commands/site/version/unset/versionUnsetCommand.js.map +0 -1
  351. package/build/esm/commands/site/version/unset/versionUnsetCommand.mjs +0 -32
  352. package/build/esm/consola/handlePromptCancel.js +0 -25
  353. package/build/esm/consola/handlePromptCancel.js.map +0 -1
  354. package/build/esm/net/ThirdPartyAppRid.js +0 -17
  355. package/build/esm/net/ThirdPartyAppRid.js.map +0 -1
  356. package/build/esm/net/UserAgent.js +0 -17
  357. package/build/esm/net/UserAgent.js.map +0 -1
  358. package/build/esm/net/createFetch.js +0 -66
  359. package/build/esm/net/createFetch.js.map +0 -1
  360. package/build/esm/net/createFetch.mjs +0 -71
  361. package/build/esm/net/createInternalClientContext.js +0 -22
  362. package/build/esm/net/createInternalClientContext.js.map +0 -1
  363. package/build/esm/net/createInternalClientContext.mjs +0 -21
  364. package/build/esm/net/index.js +0 -18
  365. package/build/esm/net/index.js.map +0 -1
  366. package/build/esm/net/index.mjs +0 -17
  367. package/build/esm/net/internalClientContext.js +0 -17
  368. package/build/esm/net/internalClientContext.js.map +0 -1
  369. package/build/esm/net/internalClientContext.mjs +0 -16
  370. package/build/esm/net/third-party-applications/DeployWebsiteRequest.js +0 -17
  371. package/build/esm/net/third-party-applications/DeployWebsiteRequest.js.map +0 -1
  372. package/build/esm/net/third-party-applications/DeployWebsiteRequest.mjs +0 -16
  373. package/build/esm/net/third-party-applications/ListVersionsResponse.js +0 -17
  374. package/build/esm/net/third-party-applications/ListVersionsResponse.js.map +0 -1
  375. package/build/esm/net/third-party-applications/ListVersionsResponse.mjs +0 -16
  376. package/build/esm/net/third-party-applications/Version.js +0 -17
  377. package/build/esm/net/third-party-applications/Version.js.map +0 -1
  378. package/build/esm/net/third-party-applications/Version.mjs +0 -16
  379. package/build/esm/net/third-party-applications/Website.js +0 -17
  380. package/build/esm/net/third-party-applications/Website.js.map +0 -1
  381. package/build/esm/net/third-party-applications/Website.mjs +0 -16
  382. package/build/esm/net/third-party-applications/deleteVersion.js +0 -24
  383. package/build/esm/net/third-party-applications/deleteVersion.js.map +0 -1
  384. package/build/esm/net/third-party-applications/deleteVersion.mjs +0 -23
  385. package/build/esm/net/third-party-applications/deployWebsite.js +0 -29
  386. package/build/esm/net/third-party-applications/deployWebsite.js.map +0 -1
  387. package/build/esm/net/third-party-applications/deployWebsite.mjs +0 -28
  388. package/build/esm/net/third-party-applications/getWebsite.js +0 -33
  389. package/build/esm/net/third-party-applications/getWebsite.js.map +0 -1
  390. package/build/esm/net/third-party-applications/getWebsite.mjs +0 -35
  391. package/build/esm/net/third-party-applications/index.js +0 -22
  392. package/build/esm/net/third-party-applications/index.js.map +0 -1
  393. package/build/esm/net/third-party-applications/index.mjs +0 -21
  394. package/build/esm/net/third-party-applications/listVersions.js +0 -23
  395. package/build/esm/net/third-party-applications/listVersions.js.map +0 -1
  396. package/build/esm/net/third-party-applications/listVersions.mjs +0 -22
  397. package/build/esm/net/third-party-applications/undeployWebsite.js +0 -24
  398. package/build/esm/net/third-party-applications/undeployWebsite.js.map +0 -1
  399. package/build/esm/net/third-party-applications/undeployWebsite.mjs +0 -23
  400. package/build/esm/net/third-party-applications/uploadVersion.js +0 -30
  401. package/build/esm/net/third-party-applications/uploadVersion.js.map +0 -1
  402. package/build/esm/net/third-party-applications/uploadVersion.mjs +0 -29
  403. package/build/esm/util/autoVersion.js +0 -62
  404. package/build/esm/util/autoVersion.js.map +0 -1
  405. package/build/esm/util/autoVersion.test.js +0 -71
  406. package/build/esm/util/autoVersion.test.js.map +0 -1
  407. package/build/esm/util/config.js +0 -102
  408. package/build/esm/util/config.js.map +0 -1
  409. package/build/esm/util/config.test.js +0 -110
  410. package/build/esm/util/config.test.js.map +0 -1
  411. package/build/esm/util/configLoader.js +0 -25
  412. package/build/esm/util/configLoader.js.map +0 -1
  413. package/build/esm/util/isValidSemver.test.js +0 -41
  414. package/build/esm/util/isValidSemver.test.js.map +0 -1
  415. package/build/esm/util/token.js +0 -84
  416. package/build/esm/util/token.js.map +0 -1
  417. package/build/esm/util/token.test.js +0 -62
  418. package/build/esm/util/token.test.js.map +0 -1
  419. package/build/esm/yargs/logConfigFileMiddleware.js +0 -29
  420. package/build/esm/yargs/logConfigFileMiddleware.js.map +0 -1
@@ -1,32 +0,0 @@
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: "set <version>",
18
- describe: "Set live site version",
19
- builder: argv => {
20
- return argv.positional("version", {
21
- type: "string",
22
- demandOption: true,
23
- description: "Version to set as live"
24
- });
25
- },
26
- handler: async args => {
27
- const command = await import("./versionSetCommand.mjs");
28
- await command.default(args);
29
- }
30
- };
31
- export default command;
32
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["command","describe","builder","argv","positional","type","demandOption","description","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: \"set <version>\",\n describe: \"Set live 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 },\n handler: async (args) => {\n const command = await import(\"./versionSetCommand.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,eAAe;EACxBC,QAAQ,EAAE,uBAAuB;EACjCC,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;EACN,CAAC;EACDC,OAAO,EAAE,MAAOC,IAAI,IAAK;IACrB,MAAMT,OAAO,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC;IACvD,MAAMA,OAAO,CAACU,OAAO,CAACD,IAAI,CAAC;EAC/B;AACJ,CAAC;AACD,eAAeT,OAAO","ignoreList":[]}
@@ -1,36 +0,0 @@
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 { loadToken } from "../../../../util/token.js";
19
- export default async function versionSetCommand({
20
- version,
21
- application,
22
- foundryUrl,
23
- token,
24
- tokenFile
25
- }) {
26
- consola.start(`Setting live version`);
27
- const loadedToken = await loadToken(token, tokenFile);
28
- const clientCtx = createInternalClientContext(foundryUrl, () => loadedToken);
29
- if (version) {
30
- await thirdPartyApplications.deployWebsite(clientCtx, application, {
31
- version
32
- });
33
- }
34
- consola.success(`Set live version to ${version}`);
35
- }
36
- //# sourceMappingURL=versionSetCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"versionSetCommand.js","names":["consola","createInternalClientContext","thirdPartyApplications","loadToken","versionSetCommand","version","application","foundryUrl","token","tokenFile","start","loadedToken","clientCtx","deployWebsite","success"],"sources":["versionSetCommand.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 { consola } from \"consola\";\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionSetCommand({ version, application, foundryUrl, token, tokenFile }) {\n consola.start(`Setting live version`);\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n if (version) {\n await thirdPartyApplications.deployWebsite(clientCtx, application, { version });\n }\n consola.success(`Set live version to ${version}`);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,SAAS;AACjC,SAASC,2BAA2B,EAAEC,sBAAsB,QAAQ,MAAM;AAC1E,SAASC,SAAS,QAAQ,2BAA2B;AACrD,eAAe,eAAeC,iBAAiBA,CAAC;EAAEC,OAAO;EAAEC,WAAW;EAAEC,UAAU;EAAEC,KAAK;EAAEC;AAAU,CAAC,EAAE;EACpGT,OAAO,CAACU,KAAK,CAAC,sBAAsB,CAAC;EACrC,MAAMC,WAAW,GAAG,MAAMR,SAAS,CAACK,KAAK,EAAEC,SAAS,CAAC;EAErD,MAAMG,SAAS,GAAGX,2BAA2B,CAACM,UAAU,EADlC,MAAMI,WAC2C,CAAC;EACxE,IAAIN,OAAO,EAAE;IACT,MAAMH,sBAAsB,CAACW,aAAa,CAACD,SAAS,EAAEN,WAAW,EAAE;MAAED;IAAQ,CAAC,CAAC;EACnF;EACAL,OAAO,CAACc,OAAO,CAAC,uBAAuBT,OAAO,EAAE,CAAC;AACrD","ignoreList":[]}
@@ -1,28 +0,0 @@
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 { loadToken } from "../../../../util/token.js";
19
- export default async function versionSetCommand({ version, application, foundryUrl, token, tokenFile }) {
20
- consola.start(`Setting live version`);
21
- const loadedToken = await loadToken(token, tokenFile);
22
- const tokenProvider = () => loadedToken;
23
- const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
24
- if (version) {
25
- await thirdPartyApplications.deployWebsite(clientCtx, application, { version });
26
- }
27
- consola.success(`Set live version to ${version}`);
28
- }
@@ -1,17 +0,0 @@
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=VersionUnsetArgs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VersionUnsetArgs.js","names":[],"sources":["VersionUnsetArgs.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":[]}
@@ -1,32 +0,0 @@
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: "unset",
18
- describe: "Clear live site version",
19
- builder: argv => {
20
- return argv.option("yes", {
21
- alias: "y",
22
- type: "boolean",
23
- description: "Automatically confirm destructive changes"
24
- }).group(["yes"], "Unset Options");
25
- },
26
- handler: async args => {
27
- const command = await import("./versionUnsetCommand.mjs");
28
- await command.default(args);
29
- }
30
- };
31
- export default command;
32
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["command","describe","builder","argv","option","alias","type","description","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: \"unset\",\n describe: \"Clear live site version\",\n builder: (argv) => {\n return argv.option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\",\n })\n .group([\"yes\"], \"Unset Options\");\n },\n handler: async (args) => {\n const command = await import(\"./versionUnsetCommand.mjs\");\n await command.default(args);\n },\n};\nexport default command;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,OAAO,GAAG;EACZA,OAAO,EAAE,OAAO;EAChBC,QAAQ,EAAE,yBAAyB;EACnCC,OAAO,EAAGC,IAAI,IAAK;IACf,OAAOA,IAAI,CAACC,MAAM,CAAC,KAAK,EAAE;MACtBC,KAAK,EAAE,GAAG;MACVC,IAAI,EAAE,SAAS;MACfC,WAAW,EAAE;IACjB,CAAC,CAAC,CACGC,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE,eAAe,CAAC;EACxC,CAAC;EACDC,OAAO,EAAE,MAAOC,IAAI,IAAK;IACrB,MAAMV,OAAO,GAAG,MAAM,MAAM,CAAC,2BAA2B,CAAC;IACzD,MAAMA,OAAO,CAACW,OAAO,CAACD,IAAI,CAAC;EAC/B;AACJ,CAAC;AACD,eAAeV,OAAO","ignoreList":[]}
@@ -1,40 +0,0 @@
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 { colorize } from "consola/utils";
19
- import { handlePromptCancel } from "../../../../consola/handlePromptCancel.js";
20
- import { loadToken } from "../../../../util/token.js";
21
- export default async function versionUnsetCommand({
22
- yes,
23
- application,
24
- foundryUrl,
25
- token,
26
- tokenFile
27
- }) {
28
- if (!yes) {
29
- const confirmed = await consola.prompt(`Are you sure you want to clear the live site version?\n${colorize("bold", "Your site will no longer be accessible until a new live site version is set.")}`, {
30
- type: "confirm"
31
- });
32
- handlePromptCancel(confirmed);
33
- }
34
- const loadedToken = await loadToken(token, tokenFile);
35
- const clientCtx = createInternalClientContext(foundryUrl, () => loadedToken);
36
- consola.start("Clearing live site version");
37
- await thirdPartyApplications.undeployWebsite(clientCtx, application);
38
- consola.success("Cleared live site version");
39
- }
40
- //# sourceMappingURL=versionUnsetCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"versionUnsetCommand.js","names":["consola","createInternalClientContext","thirdPartyApplications","colorize","handlePromptCancel","loadToken","versionUnsetCommand","yes","application","foundryUrl","token","tokenFile","confirmed","prompt","type","loadedToken","clientCtx","start","undeployWebsite","success"],"sources":["versionUnsetCommand.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 { consola } from \"consola\";\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { colorize } from \"consola/utils\";\nimport { handlePromptCancel } from \"../../../../consola/handlePromptCancel.js\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionUnsetCommand({ yes, application, foundryUrl, token, tokenFile }) {\n if (!yes) {\n const confirmed = await consola.prompt(`Are you sure you want to clear the live site version?\\n${colorize(\"bold\", \"Your site will no longer be accessible until a new live site version is set.\")}`, { type: \"confirm\" });\n handlePromptCancel(confirmed);\n }\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Clearing live site version\");\n await thirdPartyApplications.undeployWebsite(clientCtx, application);\n consola.success(\"Cleared live site version\");\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,SAAS;AACjC,SAASC,2BAA2B,EAAEC,sBAAsB,QAAQ,MAAM;AAC1E,SAASC,QAAQ,QAAQ,eAAe;AACxC,SAASC,kBAAkB,QAAQ,2CAA2C;AAC9E,SAASC,SAAS,QAAQ,2BAA2B;AACrD,eAAe,eAAeC,mBAAmBA,CAAC;EAAEC,GAAG;EAAEC,WAAW;EAAEC,UAAU;EAAEC,KAAK;EAAEC;AAAU,CAAC,EAAE;EAClG,IAAI,CAACJ,GAAG,EAAE;IACN,MAAMK,SAAS,GAAG,MAAMZ,OAAO,CAACa,MAAM,CAAC,0DAA0DV,QAAQ,CAAC,MAAM,EAAE,8EAA8E,CAAC,EAAE,EAAE;MAAEW,IAAI,EAAE;IAAU,CAAC,CAAC;IACzNV,kBAAkB,CAACQ,SAAS,CAAC;EACjC;EACA,MAAMG,WAAW,GAAG,MAAMV,SAAS,CAACK,KAAK,EAAEC,SAAS,CAAC;EAErD,MAAMK,SAAS,GAAGf,2BAA2B,CAACQ,UAAU,EADlC,MAAMM,WAC2C,CAAC;EACxEf,OAAO,CAACiB,KAAK,CAAC,4BAA4B,CAAC;EAC3C,MAAMf,sBAAsB,CAACgB,eAAe,CAACF,SAAS,EAAER,WAAW,CAAC;EACpER,OAAO,CAACmB,OAAO,CAAC,2BAA2B,CAAC;AAChD","ignoreList":[]}
@@ -1,32 +0,0 @@
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 { colorize } from "consola/utils";
19
- import { handlePromptCancel } from "../../../../consola/handlePromptCancel.js";
20
- import { loadToken } from "../../../../util/token.js";
21
- export default async function versionUnsetCommand({ yes, application, foundryUrl, token, tokenFile }) {
22
- if (!yes) {
23
- const confirmed = await consola.prompt(`Are you sure you want to clear the live site version?\n${colorize("bold", "Your site will no longer be accessible until a new live site version is set.")}`, { type: "confirm" });
24
- handlePromptCancel(confirmed);
25
- }
26
- const loadedToken = await loadToken(token, tokenFile);
27
- const tokenProvider = () => loadedToken;
28
- const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
29
- consola.start("Clearing live site version");
30
- await thirdPartyApplications.undeployWebsite(clientCtx, application);
31
- consola.success("Cleared live site version");
32
- }
@@ -1,25 +0,0 @@
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 function handlePromptCancel(promptResponse) {
18
- // https://github.com/unjs/consola/issues/251
19
- const isSigInt = typeof promptResponse === "symbol" && promptResponse.toString() === "Symbol(clack:cancel)";
20
- if (isSigInt || typeof promptResponse === "boolean" && !promptResponse) {
21
- consola.fail("Operation cancelled");
22
- process.exit(0);
23
- }
24
- }
25
- //# sourceMappingURL=handlePromptCancel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handlePromptCancel.js","names":["consola","handlePromptCancel","promptResponse","isSigInt","toString","fail","process","exit"],"sources":["handlePromptCancel.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 function handlePromptCancel(promptResponse) {\n const isFalse = typeof promptResponse === \"boolean\" && !promptResponse;\n // https://github.com/unjs/consola/issues/251\n const isSigInt = typeof promptResponse === \"symbol\"\n && promptResponse.toString() === \"Symbol(clack:cancel)\";\n if (isSigInt || isFalse) {\n consola.fail(\"Operation cancelled\");\n process.exit(0);\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,SAASC,kBAAkBA,CAACC,cAAc,EAAE;EAE/C;EACA,MAAMC,QAAQ,GAAG,OAAOD,cAAc,KAAK,QAAQ,IAC5CA,cAAc,CAACE,QAAQ,CAAC,CAAC,KAAK,sBAAsB;EAC3D,IAAID,QAAQ,IAJI,OAAOD,cAAc,KAAK,SAAS,IAAI,CAACA,cAIjC,EAAE;IACrBF,OAAO,CAACK,IAAI,CAAC,qBAAqB,CAAC;IACnCC,OAAO,CAACC,IAAI,CAAC,CAAC,CAAC;EACnB;AACJ","ignoreList":[]}
@@ -1,17 +0,0 @@
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=ThirdPartyAppRid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThirdPartyAppRid.js","names":[],"sources":["ThirdPartyAppRid.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":[]}
@@ -1,17 +0,0 @@
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 const USER_AGENT = `osdk-cli/${"0.24.0-beta.13"}`;
17
- //# sourceMappingURL=UserAgent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserAgent.js","names":["USER_AGENT"],"sources":["UserAgent.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 const USER_AGENT = `osdk-cli/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,UAAU,GAAG,8BAAyC","ignoreList":[]}
@@ -1,66 +0,0 @@
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 { ExitProcessError } from "@osdk/cli.common";
17
- import { createFetchHeaderMutator, createFetchOrThrow, PalantirApiError } from "@osdk/shared.net";
18
- import { consola } from "consola";
19
- import { USER_AGENT } from "./UserAgent.js";
20
- export function createFetch(tokenProvider, fetchFn = fetch) {
21
- return createFetchHeaderMutator(createRequestLoggingFetch(createErrorExitingFetch(createFetchOrThrow(fetchFn))), async headers => {
22
- const token = await tokenProvider();
23
- headers.set("Authorization", `Bearer ${token}`);
24
- headers.set("Fetch-User-Agent", USER_AGENT);
25
- return headers;
26
- });
27
- }
28
- function createErrorExitingFetch(fetchFn = fetch) {
29
- return function (input, init) {
30
- return fetchFn(input, init).catch(handleFetchError);
31
- };
32
- }
33
- function handleFetchError(e) {
34
- if (!(e instanceof PalantirApiError)) {
35
- throw new ExitProcessError(1, "Unexpected fetch error");
36
- }
37
- let tip;
38
- if (e.statusCode === 401) {
39
- tip = "Check your token is valid and has not expired or been disabled";
40
- } else if (e.statusCode === 403) {
41
- tip = "Check your token has the required scopes for this operation";
42
- }
43
- let message = e.message;
44
- if (e.errorName === "CannotDeleteDeployedVersion") {
45
- message = "The site version to delete is live and cannot be deleted";
46
- tip = "Run the `site version set` command to change the live site version";
47
- } else if (e.errorName === "InvalidVersion") {
48
- message = "The site version is invalid and must be a valid SemVer string";
49
- } else if (e.errorName === "VersionAlreadyExists") {
50
- message = "The site version already exists";
51
- } else if (e.errorName === "VersionNotFound") {
52
- message = "The site version could not be found";
53
- }
54
- throw new ExitProcessError(1, message, tip, e);
55
- }
56
- function createRequestLoggingFetch(fetchFn = fetch) {
57
- return function (input, init) {
58
- const requestLog = typeof input === "string" || input instanceof URL ? `${init?.method ?? "GET"}: ${input.toString().trim()}` : `${input.method ?? "GET"}: ${input.url.toString().trim()}`;
59
- consola.trace(requestLog);
60
- return fetchFn(input, init).then(a => {
61
- consola.trace(`FINISH ${requestLog}`);
62
- return a;
63
- });
64
- };
65
- }
66
- //# sourceMappingURL=createFetch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createFetch.js","names":["ExitProcessError","createFetchHeaderMutator","createFetchOrThrow","PalantirApiError","consola","USER_AGENT","createFetch","tokenProvider","fetchFn","fetch","createRequestLoggingFetch","createErrorExitingFetch","headers","token","set","input","init","catch","handleFetchError","e","tip","statusCode","message","errorName","requestLog","URL","method","toString","trim","url","trace","then","a"],"sources":["createFetch.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 { ExitProcessError } from \"@osdk/cli.common\";\nimport { createFetchHeaderMutator, createFetchOrThrow, PalantirApiError, } from \"@osdk/shared.net\";\nimport { consola } from \"consola\";\nimport { USER_AGENT } from \"./UserAgent.js\";\nexport function createFetch(tokenProvider, fetchFn = fetch) {\n return createFetchHeaderMutator(createRequestLoggingFetch(createErrorExitingFetch(createFetchOrThrow(fetchFn))), async (headers) => {\n const token = await tokenProvider();\n headers.set(\"Authorization\", `Bearer ${token}`);\n headers.set(\"Fetch-User-Agent\", USER_AGENT);\n return headers;\n });\n}\nfunction createErrorExitingFetch(fetchFn = fetch) {\n return function errorExitingFetch(input, init) {\n return fetchFn(input, init).catch(handleFetchError);\n };\n}\nfunction handleFetchError(e) {\n if (!(e instanceof PalantirApiError)) {\n throw new ExitProcessError(1, \"Unexpected fetch error\");\n }\n let tip;\n if (e.statusCode === 401) {\n tip = \"Check your token is valid and has not expired or been disabled\";\n }\n else if (e.statusCode === 403) {\n tip = \"Check your token has the required scopes for this operation\";\n }\n let message = e.message;\n if (e.errorName === \"CannotDeleteDeployedVersion\") {\n message = \"The site version to delete is live and cannot be deleted\";\n tip = \"Run the `site version set` command to change the live site version\";\n }\n else if (e.errorName === \"InvalidVersion\") {\n message = \"The site version is invalid and must be a valid SemVer string\";\n }\n else if (e.errorName === \"VersionAlreadyExists\") {\n message = \"The site version already exists\";\n }\n else if (e.errorName === \"VersionNotFound\") {\n message = \"The site version could not be found\";\n }\n throw new ExitProcessError(1, message, tip, e);\n}\nfunction createRequestLoggingFetch(fetchFn = fetch) {\n return function requestLoggingFetch(input, init) {\n const requestLog = typeof input === \"string\" || input instanceof URL\n ? `${init?.method ?? \"GET\"}: ${input.toString().trim()}`\n : `${input.method ?? \"GET\"}: ${input.url.toString().trim()}`;\n consola.trace(requestLog);\n return fetchFn(input, init).then((a) => {\n consola.trace(`FINISH ${requestLog}`);\n return a;\n });\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,gBAAgB,QAAQ,kBAAkB;AACnD,SAASC,wBAAwB,EAAEC,kBAAkB,EAAEC,gBAAgB,QAAS,kBAAkB;AAClG,SAASC,OAAO,QAAQ,SAAS;AACjC,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,OAAO,SAASC,WAAWA,CAACC,aAAa,EAAEC,OAAO,GAAGC,KAAK,EAAE;EACxD,OAAOR,wBAAwB,CAACS,yBAAyB,CAACC,uBAAuB,CAACT,kBAAkB,CAACM,OAAO,CAAC,CAAC,CAAC,EAAE,MAAOI,OAAO,IAAK;IAChI,MAAMC,KAAK,GAAG,MAAMN,aAAa,CAAC,CAAC;IACnCK,OAAO,CAACE,GAAG,CAAC,eAAe,EAAE,UAAUD,KAAK,EAAE,CAAC;IAC/CD,OAAO,CAACE,GAAG,CAAC,kBAAkB,EAAET,UAAU,CAAC;IAC3C,OAAOO,OAAO;EAClB,CAAC,CAAC;AACN;AACA,SAASD,uBAAuBA,CAACH,OAAO,GAAGC,KAAK,EAAE;EAC9C,OAAO,UAA2BM,KAAK,EAAEC,IAAI,EAAE;IAC3C,OAAOR,OAAO,CAACO,KAAK,EAAEC,IAAI,CAAC,CAACC,KAAK,CAACC,gBAAgB,CAAC;EACvD,CAAC;AACL;AACA,SAASA,gBAAgBA,CAACC,CAAC,EAAE;EACzB,IAAI,EAAEA,CAAC,YAAYhB,gBAAgB,CAAC,EAAE;IAClC,MAAM,IAAIH,gBAAgB,CAAC,CAAC,EAAE,wBAAwB,CAAC;EAC3D;EACA,IAAIoB,GAAG;EACP,IAAID,CAAC,CAACE,UAAU,KAAK,GAAG,EAAE;IACtBD,GAAG,GAAG,gEAAgE;EAC1E,CAAC,MACI,IAAID,CAAC,CAACE,UAAU,KAAK,GAAG,EAAE;IAC3BD,GAAG,GAAG,6DAA6D;EACvE;EACA,IAAIE,OAAO,GAAGH,CAAC,CAACG,OAAO;EACvB,IAAIH,CAAC,CAACI,SAAS,KAAK,6BAA6B,EAAE;IAC/CD,OAAO,GAAG,0DAA0D;IACpEF,GAAG,GAAG,oEAAoE;EAC9E,CAAC,MACI,IAAID,CAAC,CAACI,SAAS,KAAK,gBAAgB,EAAE;IACvCD,OAAO,GAAG,+DAA+D;EAC7E,CAAC,MACI,IAAIH,CAAC,CAACI,SAAS,KAAK,sBAAsB,EAAE;IAC7CD,OAAO,GAAG,iCAAiC;EAC/C,CAAC,MACI,IAAIH,CAAC,CAACI,SAAS,KAAK,iBAAiB,EAAE;IACxCD,OAAO,GAAG,qCAAqC;EACnD;EACA,MAAM,IAAItB,gBAAgB,CAAC,CAAC,EAAEsB,OAAO,EAAEF,GAAG,EAAED,CAAC,CAAC;AAClD;AACA,SAAST,yBAAyBA,CAACF,OAAO,GAAGC,KAAK,EAAE;EAChD,OAAO,UAA6BM,KAAK,EAAEC,IAAI,EAAE;IAC7C,MAAMQ,UAAU,GAAG,OAAOT,KAAK,KAAK,QAAQ,IAAIA,KAAK,YAAYU,GAAG,GAC9D,GAAGT,IAAI,EAAEU,MAAM,IAAI,KAAK,KAAKX,KAAK,CAACY,QAAQ,CAAC,CAAC,CAACC,IAAI,CAAC,CAAC,EAAE,GACtD,GAAGb,KAAK,CAACW,MAAM,IAAI,KAAK,KAAKX,KAAK,CAACc,GAAG,CAACF,QAAQ,CAAC,CAAC,CAACC,IAAI,CAAC,CAAC,EAAE;IAChExB,OAAO,CAAC0B,KAAK,CAACN,UAAU,CAAC;IACzB,OAAOhB,OAAO,CAACO,KAAK,EAAEC,IAAI,CAAC,CAACe,IAAI,CAAEC,CAAC,IAAK;MACpC5B,OAAO,CAAC0B,KAAK,CAAC,UAAUN,UAAU,EAAE,CAAC;MACrC,OAAOQ,CAAC;IACZ,CAAC,CAAC;EACN,CAAC;AACL","ignoreList":[]}
@@ -1,71 +0,0 @@
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 { ExitProcessError } from "@osdk/cli.common";
17
- import { createFetchHeaderMutator, createFetchOrThrow, PalantirApiError, } from "@osdk/shared.net";
18
- import { consola } from "consola";
19
- import { USER_AGENT } from "./UserAgent.js";
20
- export function createFetch(tokenProvider, fetchFn = fetch) {
21
- return createFetchHeaderMutator(createRequestLoggingFetch(createErrorExitingFetch(createFetchOrThrow(fetchFn))), async (headers) => {
22
- const token = await tokenProvider();
23
- headers.set("Authorization", `Bearer ${token}`);
24
- headers.set("Fetch-User-Agent", USER_AGENT);
25
- return headers;
26
- });
27
- }
28
- function createErrorExitingFetch(fetchFn = fetch) {
29
- return function errorExitingFetch(input, init) {
30
- return fetchFn(input, init).catch(handleFetchError);
31
- };
32
- }
33
- function handleFetchError(e) {
34
- if (!(e instanceof PalantirApiError)) {
35
- throw new ExitProcessError(1, "Unexpected fetch error");
36
- }
37
- let tip;
38
- if (e.statusCode === 401) {
39
- tip = "Check your token is valid and has not expired or been disabled";
40
- }
41
- else if (e.statusCode === 403) {
42
- tip = "Check your token has the required scopes for this operation";
43
- }
44
- let message = e.message;
45
- if (e.errorName === "CannotDeleteDeployedVersion") {
46
- message = "The site version to delete is live and cannot be deleted";
47
- tip = "Run the `site version set` command to change the live site version";
48
- }
49
- else if (e.errorName === "InvalidVersion") {
50
- message = "The site version is invalid and must be a valid SemVer string";
51
- }
52
- else if (e.errorName === "VersionAlreadyExists") {
53
- message = "The site version already exists";
54
- }
55
- else if (e.errorName === "VersionNotFound") {
56
- message = "The site version could not be found";
57
- }
58
- throw new ExitProcessError(1, message, tip, e);
59
- }
60
- function createRequestLoggingFetch(fetchFn = fetch) {
61
- return function requestLoggingFetch(input, init) {
62
- const requestLog = typeof input === "string" || input instanceof URL
63
- ? `${init?.method ?? "GET"}: ${input.toString().trim()}`
64
- : `${input.method ?? "GET"}: ${input.url.toString().trim()}`;
65
- consola.trace(requestLog);
66
- return fetchFn(input, init).then((a) => {
67
- consola.trace(`FINISH ${requestLog}`);
68
- return a;
69
- });
70
- };
71
- }
@@ -1,22 +0,0 @@
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 function createInternalClientContext(foundryUrl, tokenProvider) {
17
- return {
18
- tokenProvider,
19
- foundryUrl
20
- };
21
- }
22
- //# sourceMappingURL=createInternalClientContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createInternalClientContext.js","names":["createInternalClientContext","foundryUrl","tokenProvider"],"sources":["createInternalClientContext.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 */\nexport function createInternalClientContext(foundryUrl, tokenProvider) {\n return {\n tokenProvider,\n foundryUrl,\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,2BAA2BA,CAACC,UAAU,EAAEC,aAAa,EAAE;EACnE,OAAO;IACHA,aAAa;IACbD;EACJ,CAAC;AACL","ignoreList":[]}
@@ -1,21 +0,0 @@
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 function createInternalClientContext(foundryUrl, tokenProvider) {
17
- return {
18
- tokenProvider,
19
- foundryUrl,
20
- };
21
- }
@@ -1,18 +0,0 @@
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 { createInternalClientContext } from "./createInternalClientContext.mjs";
17
- export * as thirdPartyApplications from "./third-party-applications/index.mjs";
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["createInternalClientContext","thirdPartyApplications"],"sources":["index.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 */\nexport { createInternalClientContext } from \"./createInternalClientContext.mjs\";\nexport * as thirdPartyApplications from \"./third-party-applications/index.mjs\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,2BAA2B,QAAQ,mCAAmC;AAC/E,OAAO,KAAKC,sBAAsB,MAAM,sCAAsC","ignoreList":[]}
@@ -1,17 +0,0 @@
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 { createInternalClientContext } from "./createInternalClientContext.mjs";
17
- export * as thirdPartyApplications from "./third-party-applications/index.mjs";
@@ -1,17 +0,0 @@
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=internalClientContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internalClientContext.js","names":[],"sources":["internalClientContext.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -1,16 +0,0 @@
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 {};