@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,4 @@
1
+ export interface Version {
2
+ version: string;
3
+ }
4
+ //# sourceMappingURL=Version.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Version.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/Version.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -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=Version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Version.js","names":[],"sources":["Version.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":[]}
@@ -0,0 +1,16 @@
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 {};
@@ -0,0 +1,5 @@
1
+ export interface Website {
2
+ deployedVersion?: string;
3
+ subdomains: string[];
4
+ }
5
+ //# sourceMappingURL=Website.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Website.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/Website.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,OAAO;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB"}
@@ -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=Website.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Website.js","names":[],"sources":["Website.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":[]}
@@ -0,0 +1,16 @@
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 {};
@@ -0,0 +1,4 @@
1
+ import type { InternalClientContext } from "../internalClientContext.mjs";
2
+ import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
3
+ export declare function deleteVersion(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid, version: string): Promise<void>;
4
+ //# sourceMappingURL=deleteVersion.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteVersion.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/deleteVersion.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,wBAAsB,aAAa,CACjC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAWf"}
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Copyright 2024 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 { createFetch } from "../createFetch.mjs";
17
+ export async function deleteVersion(ctx, thirdPartyAppRid, version) {
18
+ const fetch = createFetch(ctx.tokenProvider);
19
+ const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions/${version}?preview=true`;
20
+ await fetch(url, {
21
+ method: "DELETE"
22
+ });
23
+ }
24
+ //# sourceMappingURL=deleteVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteVersion.js","names":["createFetch","deleteVersion","ctx","thirdPartyAppRid","version","fetch","tokenProvider","url","foundryUrl","method"],"sources":["deleteVersion.mjs"],"sourcesContent":["/*\n * Copyright 2024 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 { createFetch } from \"../createFetch.mjs\";\nexport async function deleteVersion(ctx, thirdPartyAppRid, version) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions/${version}?preview=true`;\n await fetch(url, {\n method: \"DELETE\",\n });\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,WAAW,QAAQ,oBAAoB;AAChD,OAAO,eAAeC,aAAaA,CAACC,GAAG,EAAEC,gBAAgB,EAAEC,OAAO,EAAE;EAChE,MAAMC,KAAK,GAAGL,WAAW,CAACE,GAAG,CAACI,aAAa,CAAC;EAC5C,MAAMC,GAAG,GAAG,GAAGL,GAAG,CAACM,UAAU,kCAAkCL,gBAAgB,qBAAqBC,OAAO,eAAe;EAC1H,MAAMC,KAAK,CAACE,GAAG,EAAE;IACbE,MAAM,EAAE;EACZ,CAAC,CAAC;AACN","ignoreList":[]}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright 2024 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 { createFetch } from "../createFetch.mjs";
17
+ export async function deleteVersion(ctx, thirdPartyAppRid, version) {
18
+ const fetch = createFetch(ctx.tokenProvider);
19
+ const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions/${version}?preview=true`;
20
+ await fetch(url, {
21
+ method: "DELETE",
22
+ });
23
+ }
@@ -0,0 +1,6 @@
1
+ import type { InternalClientContext } from "../internalClientContext.mjs";
2
+ import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
3
+ import type { DeployWebsiteRequest } from "./DeployWebsiteRequest.mjs";
4
+ import type { Website } from "./Website.mjs";
5
+ export declare function deployWebsite(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid, request: DeployWebsiteRequest): Promise<Website>;
6
+ //# sourceMappingURL=deployWebsite.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployWebsite.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/deployWebsite.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,wBAAsB,aAAa,CACjC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,OAAO,CAAC,CAgBlB"}
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Copyright 2024 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 { createFetch } from "../createFetch.mjs";
17
+ export async function deployWebsite(ctx, thirdPartyAppRid, request) {
18
+ const fetch = createFetch(ctx.tokenProvider);
19
+ const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/deploy?preview=true`;
20
+ const result = await fetch(url, {
21
+ method: "POST",
22
+ body: JSON.stringify(request),
23
+ headers: {
24
+ "Content-Type": "application/json"
25
+ }
26
+ });
27
+ return result.json();
28
+ }
29
+ //# sourceMappingURL=deployWebsite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployWebsite.js","names":["createFetch","deployWebsite","ctx","thirdPartyAppRid","request","fetch","tokenProvider","url","foundryUrl","result","method","body","JSON","stringify","headers","json"],"sources":["deployWebsite.mjs"],"sourcesContent":["/*\n * Copyright 2024 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 { createFetch } from \"../createFetch.mjs\";\nexport async function deployWebsite(ctx, thirdPartyAppRid, request) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/deploy?preview=true`;\n const result = await fetch(url, {\n method: \"POST\",\n body: JSON.stringify(request),\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n return result.json();\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,WAAW,QAAQ,oBAAoB;AAChD,OAAO,eAAeC,aAAaA,CAACC,GAAG,EAAEC,gBAAgB,EAAEC,OAAO,EAAE;EAChE,MAAMC,KAAK,GAAGL,WAAW,CAACE,GAAG,CAACI,aAAa,CAAC;EAC5C,MAAMC,GAAG,GAAG,GAAGL,GAAG,CAACM,UAAU,kCAAkCL,gBAAgB,8BAA8B;EAC7G,MAAMM,MAAM,GAAG,MAAMJ,KAAK,CAACE,GAAG,EAAE;IAC5BG,MAAM,EAAE,MAAM;IACdC,IAAI,EAAEC,IAAI,CAACC,SAAS,CAACT,OAAO,CAAC;IAC7BU,OAAO,EAAE;MACL,cAAc,EAAE;IACpB;EACJ,CAAC,CAAC;EACF,OAAOL,MAAM,CAACM,IAAI,CAAC,CAAC;AACxB","ignoreList":[]}
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Copyright 2024 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 { createFetch } from "../createFetch.mjs";
17
+ export async function deployWebsite(ctx, thirdPartyAppRid, request) {
18
+ const fetch = createFetch(ctx.tokenProvider);
19
+ const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/deploy?preview=true`;
20
+ const result = await fetch(url, {
21
+ method: "POST",
22
+ body: JSON.stringify(request),
23
+ headers: {
24
+ "Content-Type": "application/json",
25
+ },
26
+ });
27
+ return result.json();
28
+ }
@@ -0,0 +1,5 @@
1
+ import type { InternalClientContext } from "../internalClientContext.mjs";
2
+ import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
3
+ import type { Website } from "./Website.mjs";
4
+ export declare function getWebsite(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<Website | undefined>;
5
+ //# sourceMappingURL=getWebsite.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getWebsite.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/getWebsite.mts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,wBAAsB,UAAU,CAC9B,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAmB9B"}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright 2024 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 { PalantirApiError } from "@osdk/shared.net";
18
+ import { createFetch } from "../createFetch.mjs";
19
+ export async function getWebsite(ctx, thirdPartyAppRid) {
20
+ const fetch = createFetch(ctx.tokenProvider);
21
+ const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website?preview=true`;
22
+ try {
23
+ const result = await fetch(url);
24
+ return result.json();
25
+ } catch (e) {
26
+ // Revisit this error handling in the API
27
+ if (e instanceof ExitProcessError && e.originalError != null && e.originalError instanceof PalantirApiError && e.originalError.errorName === "WebsiteNotFound") {
28
+ return undefined;
29
+ }
30
+ throw e;
31
+ }
32
+ }
33
+ //# sourceMappingURL=getWebsite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getWebsite.js","names":["ExitProcessError","PalantirApiError","createFetch","getWebsite","ctx","thirdPartyAppRid","fetch","tokenProvider","url","foundryUrl","result","json","e","originalError","errorName","undefined"],"sources":["getWebsite.mjs"],"sourcesContent":["/*\n * Copyright 2024 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 { PalantirApiError } from \"@osdk/shared.net\";\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function getWebsite(ctx, thirdPartyAppRid) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website?preview=true`;\n try {\n const result = await fetch(url);\n return result.json();\n }\n catch (e) {\n // Revisit this error handling in the API\n if (e instanceof ExitProcessError && e.originalError != null\n && e.originalError instanceof PalantirApiError\n && e.originalError.errorName === \"WebsiteNotFound\") {\n return undefined;\n }\n throw e;\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,gBAAgB,QAAQ,kBAAkB;AACnD,SAASC,WAAW,QAAQ,oBAAoB;AAChD,OAAO,eAAeC,UAAUA,CAACC,GAAG,EAAEC,gBAAgB,EAAE;EACpD,MAAMC,KAAK,GAAGJ,WAAW,CAACE,GAAG,CAACG,aAAa,CAAC;EAC5C,MAAMC,GAAG,GAAG,GAAGJ,GAAG,CAACK,UAAU,kCAAkCJ,gBAAgB,uBAAuB;EACtG,IAAI;IACA,MAAMK,MAAM,GAAG,MAAMJ,KAAK,CAACE,GAAG,CAAC;IAC/B,OAAOE,MAAM,CAACC,IAAI,CAAC,CAAC;EACxB,CAAC,CACD,OAAOC,CAAC,EAAE;IACN;IACA,IAAIA,CAAC,YAAYZ,gBAAgB,IAAIY,CAAC,CAACC,aAAa,IAAI,IAAI,IACrDD,CAAC,CAACC,aAAa,YAAYZ,gBAAgB,IAC3CW,CAAC,CAACC,aAAa,CAACC,SAAS,KAAK,iBAAiB,EAAE;MACpD,OAAOC,SAAS;IACpB;IACA,MAAMH,CAAC;EACX;AACJ","ignoreList":[]}
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Copyright 2024 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 { PalantirApiError } from "@osdk/shared.net";
18
+ import { createFetch } from "../createFetch.mjs";
19
+ export async function getWebsite(ctx, thirdPartyAppRid) {
20
+ const fetch = createFetch(ctx.tokenProvider);
21
+ const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website?preview=true`;
22
+ try {
23
+ const result = await fetch(url);
24
+ return result.json();
25
+ }
26
+ catch (e) {
27
+ // Revisit this error handling in the API
28
+ if (e instanceof ExitProcessError && e.originalError != null
29
+ && e.originalError instanceof PalantirApiError
30
+ && e.originalError.errorName === "WebsiteNotFound") {
31
+ return undefined;
32
+ }
33
+ throw e;
34
+ }
35
+ }
@@ -0,0 +1,11 @@
1
+ export { deleteVersion } from "./deleteVersion.mjs";
2
+ export { deployWebsite } from "./deployWebsite.mjs";
3
+ export type { DeployWebsiteRequest } from "./DeployWebsiteRequest.mjs";
4
+ export { getWebsite } from "./getWebsite.mjs";
5
+ export { listVersions } from "./listVersions.mjs";
6
+ export type { ListVersionsResponse } from "./ListVersionsResponse.mjs";
7
+ export { undeployWebsite } from "./undeployWebsite.mjs";
8
+ export { uploadVersion } from "./uploadVersion.mjs";
9
+ export type { Version } from "./Version.mjs";
10
+ export type { Website } from "./Website.mjs";
11
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/index.mts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,YAAY,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright 2024 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 { deleteVersion } from "./deleteVersion.mjs";
17
+ export { deployWebsite } from "./deployWebsite.mjs";
18
+ export { getWebsite } from "./getWebsite.mjs";
19
+ export { listVersions } from "./listVersions.mjs";
20
+ export { undeployWebsite } from "./undeployWebsite.mjs";
21
+ export { uploadVersion } from "./uploadVersion.mjs";
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["deleteVersion","deployWebsite","getWebsite","listVersions","undeployWebsite","uploadVersion"],"sources":["index.mjs"],"sourcesContent":["/*\n * Copyright 2024 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 { deleteVersion } from \"./deleteVersion.mjs\";\nexport { deployWebsite } from \"./deployWebsite.mjs\";\nexport { getWebsite } from \"./getWebsite.mjs\";\nexport { listVersions } from \"./listVersions.mjs\";\nexport { undeployWebsite } from \"./undeployWebsite.mjs\";\nexport { uploadVersion } from \"./uploadVersion.mjs\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,aAAa,QAAQ,qBAAqB;AACnD,SAASC,aAAa,QAAQ,qBAAqB;AACnD,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,YAAY,QAAQ,oBAAoB;AACjD,SAASC,eAAe,QAAQ,uBAAuB;AACvD,SAASC,aAAa,QAAQ,qBAAqB","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Copyright 2024 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 { deleteVersion } from "./deleteVersion.mjs";
17
+ export { deployWebsite } from "./deployWebsite.mjs";
18
+ export { getWebsite } from "./getWebsite.mjs";
19
+ export { listVersions } from "./listVersions.mjs";
20
+ export { undeployWebsite } from "./undeployWebsite.mjs";
21
+ export { uploadVersion } from "./uploadVersion.mjs";
@@ -0,0 +1,5 @@
1
+ import type { InternalClientContext } from "../internalClientContext.mjs";
2
+ import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
3
+ import type { ListVersionsResponse } from "./ListVersionsResponse.mjs";
4
+ export declare function listVersions(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<ListVersionsResponse>;
5
+ //# sourceMappingURL=listVersions.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listVersions.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/listVersions.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,wBAAsB,YAAY,CAChC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,oBAAoB,CAAC,CAO/B"}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright 2024 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 { createFetch } from "../createFetch.mjs";
17
+ export async function listVersions(ctx, thirdPartyAppRid) {
18
+ const fetch = createFetch(ctx.tokenProvider);
19
+ const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions?preview=true`;
20
+ const result = await fetch(url);
21
+ return result.json();
22
+ }
23
+ //# sourceMappingURL=listVersions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listVersions.js","names":["createFetch","listVersions","ctx","thirdPartyAppRid","fetch","tokenProvider","url","foundryUrl","result","json"],"sources":["listVersions.mjs"],"sourcesContent":["/*\n * Copyright 2024 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 { createFetch } from \"../createFetch.mjs\";\nexport async function listVersions(ctx, thirdPartyAppRid) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions?preview=true`;\n const result = await fetch(url);\n return result.json();\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,WAAW,QAAQ,oBAAoB;AAChD,OAAO,eAAeC,YAAYA,CAACC,GAAG,EAAEC,gBAAgB,EAAE;EACtD,MAAMC,KAAK,GAAGJ,WAAW,CAACE,GAAG,CAACG,aAAa,CAAC;EAC5C,MAAMC,GAAG,GAAG,GAAGJ,GAAG,CAACK,UAAU,kCAAkCJ,gBAAgB,gCAAgC;EAC/G,MAAMK,MAAM,GAAG,MAAMJ,KAAK,CAACE,GAAG,CAAC;EAC/B,OAAOE,MAAM,CAACC,IAAI,CAAC,CAAC;AACxB","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright 2024 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 { createFetch } from "../createFetch.mjs";
17
+ export async function listVersions(ctx, thirdPartyAppRid) {
18
+ const fetch = createFetch(ctx.tokenProvider);
19
+ const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions?preview=true`;
20
+ const result = await fetch(url);
21
+ return result.json();
22
+ }
@@ -0,0 +1,4 @@
1
+ import type { InternalClientContext } from "../internalClientContext.mjs";
2
+ import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
3
+ export declare function undeployWebsite(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<void>;
4
+ //# sourceMappingURL=undeployWebsite.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"undeployWebsite.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/undeployWebsite.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,wBAAsB,eAAe,CACnC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,IAAI,CAAC,CAWf"}
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Copyright 2024 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 { createFetch } from "../createFetch.mjs";
17
+ export async function undeployWebsite(ctx, thirdPartyAppRid) {
18
+ const fetch = createFetch(ctx.tokenProvider);
19
+ const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/undeploy?preview=true`;
20
+ await fetch(url, {
21
+ method: "POST"
22
+ });
23
+ }
24
+ //# sourceMappingURL=undeployWebsite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"undeployWebsite.js","names":["createFetch","undeployWebsite","ctx","thirdPartyAppRid","fetch","tokenProvider","url","foundryUrl","method"],"sources":["undeployWebsite.mjs"],"sourcesContent":["/*\n * Copyright 2024 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 { createFetch } from \"../createFetch.mjs\";\nexport async function undeployWebsite(ctx, thirdPartyAppRid) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/undeploy?preview=true`;\n await fetch(url, {\n method: \"POST\",\n });\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,WAAW,QAAQ,oBAAoB;AAChD,OAAO,eAAeC,eAAeA,CAACC,GAAG,EAAEC,gBAAgB,EAAE;EACzD,MAAMC,KAAK,GAAGJ,WAAW,CAACE,GAAG,CAACG,aAAa,CAAC;EAC5C,MAAMC,GAAG,GAAG,GAAGJ,GAAG,CAACK,UAAU,kCAAkCJ,gBAAgB,gCAAgC;EAC/G,MAAMC,KAAK,CAACE,GAAG,EAAE;IACbE,MAAM,EAAE;EACZ,CAAC,CAAC;AACN","ignoreList":[]}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright 2024 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 { createFetch } from "../createFetch.mjs";
17
+ export async function undeployWebsite(ctx, thirdPartyAppRid) {
18
+ const fetch = createFetch(ctx.tokenProvider);
19
+ const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/undeploy?preview=true`;
20
+ await fetch(url, {
21
+ method: "POST",
22
+ });
23
+ }
@@ -0,0 +1,5 @@
1
+ import type { InternalClientContext } from "../internalClientContext.mjs";
2
+ import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
3
+ import type { Version } from "./Version.mjs";
4
+ export declare function uploadVersion(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid, version: string, zipFile: ReadableStream | Blob | BufferSource): Promise<Version>;
5
+ //# sourceMappingURL=uploadVersion.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploadVersion.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/uploadVersion.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,wBAAsB,aAAa,CACjC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,GAAG,IAAI,GAAG,YAAY,GAC5C,OAAO,CAAC,OAAO,CAAC,CAiBlB"}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright 2024 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 { createFetch } from "../createFetch.mjs";
17
+ export async function uploadVersion(ctx, thirdPartyAppRid, version, zipFile) {
18
+ const fetch = createFetch(ctx.tokenProvider);
19
+ const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions/upload?version=${version}&preview=true`;
20
+ const result = await fetch(url, {
21
+ method: "POST",
22
+ body: zipFile,
23
+ headers: {
24
+ "Content-Type": "application/octet-stream"
25
+ },
26
+ duplex: "half" // Node hates me
27
+ });
28
+ return result.json();
29
+ }
30
+ //# sourceMappingURL=uploadVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploadVersion.js","names":["createFetch","uploadVersion","ctx","thirdPartyAppRid","version","zipFile","fetch","tokenProvider","url","foundryUrl","result","method","body","headers","duplex","json"],"sources":["uploadVersion.mjs"],"sourcesContent":["/*\n * Copyright 2024 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 { createFetch } from \"../createFetch.mjs\";\nexport async function uploadVersion(ctx, thirdPartyAppRid, version, zipFile) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions/upload?version=${version}&preview=true`;\n const result = await fetch(url, {\n method: \"POST\",\n body: zipFile,\n headers: {\n \"Content-Type\": \"application/octet-stream\",\n },\n duplex: \"half\", // Node hates me\n });\n return result.json();\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,WAAW,QAAQ,oBAAoB;AAChD,OAAO,eAAeC,aAAaA,CAACC,GAAG,EAAEC,gBAAgB,EAAEC,OAAO,EAAEC,OAAO,EAAE;EACzE,MAAMC,KAAK,GAAGN,WAAW,CAACE,GAAG,CAACK,aAAa,CAAC;EAC5C,MAAMC,GAAG,GAAG,GAAGN,GAAG,CAACO,UAAU,kCAAkCN,gBAAgB,oCAAoCC,OAAO,eAAe;EACzI,MAAMM,MAAM,GAAG,MAAMJ,KAAK,CAACE,GAAG,EAAE;IAC5BG,MAAM,EAAE,MAAM;IACdC,IAAI,EAAEP,OAAO;IACbQ,OAAO,EAAE;MACL,cAAc,EAAE;IACpB,CAAC;IACDC,MAAM,EAAE,MAAM,CAAE;EACpB,CAAC,CAAC;EACF,OAAOJ,MAAM,CAACK,IAAI,CAAC,CAAC;AACxB","ignoreList":[]}
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Copyright 2024 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 { createFetch } from "../createFetch.mjs";
17
+ export async function uploadVersion(ctx, thirdPartyAppRid, version, zipFile) {
18
+ const fetch = createFetch(ctx.tokenProvider);
19
+ const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions/upload?version=${version}&preview=true`;
20
+ const result = await fetch(url, {
21
+ method: "POST",
22
+ body: zipFile,
23
+ headers: {
24
+ "Content-Type": "application/octet-stream",
25
+ },
26
+ duplex: "half", // Node hates me
27
+ });
28
+ return result.json();
29
+ }