@polar-sh/sdk 0.35.0 → 0.35.1

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 (288) hide show
  1. package/bin/mcp-server.js +673 -475
  2. package/bin/mcp-server.js.map +19 -15
  3. package/dist/commonjs/lib/config.d.ts +2 -2
  4. package/dist/commonjs/lib/config.js +2 -2
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/components/address.d.ts +687 -687
  8. package/dist/commonjs/models/components/address.js +222 -222
  9. package/dist/commonjs/models/components/addressinput.d.ts +683 -683
  10. package/dist/commonjs/models/components/addressinput.js +217 -217
  11. package/dist/commonjs/models/components/checkout.d.ts +31 -5
  12. package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/checkout.js +23 -2
  14. package/dist/commonjs/models/components/checkout.js.map +1 -1
  15. package/dist/commonjs/models/components/checkoutcreate.d.ts +11 -0
  16. package/dist/commonjs/models/components/checkoutcreate.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/checkoutcreate.js +9 -0
  18. package/dist/commonjs/models/components/checkoutcreate.js.map +1 -1
  19. package/dist/commonjs/models/components/checkoutlink.d.ts +14 -3
  20. package/dist/commonjs/models/components/checkoutlink.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/checkoutlink.js +11 -2
  22. package/dist/commonjs/models/components/checkoutlink.js.map +1 -1
  23. package/dist/commonjs/models/components/checkoutlinkcreateproduct.d.ts +11 -0
  24. package/dist/commonjs/models/components/checkoutlinkcreateproduct.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/checkoutlinkcreateproduct.js +9 -0
  26. package/dist/commonjs/models/components/checkoutlinkcreateproduct.js.map +1 -1
  27. package/dist/commonjs/models/components/checkoutlinkcreateproductprice.d.ts +11 -0
  28. package/dist/commonjs/models/components/checkoutlinkcreateproductprice.d.ts.map +1 -1
  29. package/dist/commonjs/models/components/checkoutlinkcreateproductprice.js +9 -0
  30. package/dist/commonjs/models/components/checkoutlinkcreateproductprice.js.map +1 -1
  31. package/dist/commonjs/models/components/checkoutlinkcreateproducts.d.ts +11 -0
  32. package/dist/commonjs/models/components/checkoutlinkcreateproducts.d.ts.map +1 -1
  33. package/dist/commonjs/models/components/checkoutlinkcreateproducts.js +9 -0
  34. package/dist/commonjs/models/components/checkoutlinkcreateproducts.js.map +1 -1
  35. package/dist/commonjs/models/components/checkoutlinkproduct.d.ts +14 -3
  36. package/dist/commonjs/models/components/checkoutlinkproduct.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/checkoutlinkproduct.js +11 -2
  38. package/dist/commonjs/models/components/checkoutlinkproduct.js.map +1 -1
  39. package/dist/commonjs/models/components/checkoutlinkupdate.d.ts +11 -0
  40. package/dist/commonjs/models/components/checkoutlinkupdate.d.ts.map +1 -1
  41. package/dist/commonjs/models/components/checkoutlinkupdate.js +9 -0
  42. package/dist/commonjs/models/components/checkoutlinkupdate.js.map +1 -1
  43. package/dist/commonjs/models/components/checkoutproduct.d.ts +14 -3
  44. package/dist/commonjs/models/components/checkoutproduct.d.ts.map +1 -1
  45. package/dist/commonjs/models/components/checkoutproduct.js +11 -2
  46. package/dist/commonjs/models/components/checkoutproduct.js.map +1 -1
  47. package/dist/commonjs/models/components/checkoutpublic.d.ts +21 -5
  48. package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
  49. package/dist/commonjs/models/components/checkoutpublic.js +15 -2
  50. package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
  51. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +21 -5
  52. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/checkoutpublicconfirmed.js +15 -2
  54. package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
  55. package/dist/commonjs/models/components/checkoutupdate.d.ts +11 -0
  56. package/dist/commonjs/models/components/checkoutupdate.d.ts.map +1 -1
  57. package/dist/commonjs/models/components/checkoutupdate.js +9 -0
  58. package/dist/commonjs/models/components/checkoutupdate.js.map +1 -1
  59. package/dist/commonjs/models/components/customerorderproduct.d.ts +14 -3
  60. package/dist/commonjs/models/components/customerorderproduct.d.ts.map +1 -1
  61. package/dist/commonjs/models/components/customerorderproduct.js +11 -2
  62. package/dist/commonjs/models/components/customerorderproduct.js.map +1 -1
  63. package/dist/commonjs/models/components/customerordersubscription.d.ts +10 -0
  64. package/dist/commonjs/models/components/customerordersubscription.d.ts.map +1 -1
  65. package/dist/commonjs/models/components/customerordersubscription.js +8 -0
  66. package/dist/commonjs/models/components/customerordersubscription.js.map +1 -1
  67. package/dist/commonjs/models/components/customerproduct.d.ts +14 -3
  68. package/dist/commonjs/models/components/customerproduct.d.ts.map +1 -1
  69. package/dist/commonjs/models/components/customerproduct.js +11 -2
  70. package/dist/commonjs/models/components/customerproduct.js.map +1 -1
  71. package/dist/commonjs/models/components/customersubscription.d.ts +10 -0
  72. package/dist/commonjs/models/components/customersubscription.d.ts.map +1 -1
  73. package/dist/commonjs/models/components/customersubscription.js +8 -0
  74. package/dist/commonjs/models/components/customersubscription.js.map +1 -1
  75. package/dist/commonjs/models/components/customersubscriptionproduct.d.ts +14 -3
  76. package/dist/commonjs/models/components/customersubscriptionproduct.d.ts.map +1 -1
  77. package/dist/commonjs/models/components/customersubscriptionproduct.js +11 -2
  78. package/dist/commonjs/models/components/customersubscriptionproduct.js.map +1 -1
  79. package/dist/commonjs/models/components/discountproduct.d.ts +14 -3
  80. package/dist/commonjs/models/components/discountproduct.d.ts.map +1 -1
  81. package/dist/commonjs/models/components/discountproduct.js +11 -2
  82. package/dist/commonjs/models/components/discountproduct.js.map +1 -1
  83. package/dist/commonjs/models/components/orderproduct.d.ts +14 -3
  84. package/dist/commonjs/models/components/orderproduct.d.ts.map +1 -1
  85. package/dist/commonjs/models/components/orderproduct.js +11 -2
  86. package/dist/commonjs/models/components/orderproduct.js.map +1 -1
  87. package/dist/commonjs/models/components/ordersubscription.d.ts +10 -0
  88. package/dist/commonjs/models/components/ordersubscription.d.ts.map +1 -1
  89. package/dist/commonjs/models/components/ordersubscription.js +8 -0
  90. package/dist/commonjs/models/components/ordersubscription.js.map +1 -1
  91. package/dist/commonjs/models/components/product.d.ts +14 -3
  92. package/dist/commonjs/models/components/product.d.ts.map +1 -1
  93. package/dist/commonjs/models/components/product.js +11 -2
  94. package/dist/commonjs/models/components/product.js.map +1 -1
  95. package/dist/commonjs/models/components/productcreate.d.ts +4 -111
  96. package/dist/commonjs/models/components/productcreate.d.ts.map +1 -1
  97. package/dist/commonjs/models/components/productcreate.js +9 -106
  98. package/dist/commonjs/models/components/productcreate.js.map +1 -1
  99. package/dist/commonjs/models/components/productcreateonetime.d.ts +130 -0
  100. package/dist/commonjs/models/components/productcreateonetime.d.ts.map +1 -0
  101. package/dist/commonjs/models/components/productcreateonetime.js +169 -0
  102. package/dist/commonjs/models/components/productcreateonetime.js.map +1 -0
  103. package/dist/commonjs/models/components/productcreaterecurring.d.ts +139 -0
  104. package/dist/commonjs/models/components/productcreaterecurring.d.ts.map +1 -0
  105. package/dist/commonjs/models/components/productcreaterecurring.js +179 -0
  106. package/dist/commonjs/models/components/productcreaterecurring.js.map +1 -0
  107. package/dist/commonjs/models/components/productupdate.d.ts +11 -0
  108. package/dist/commonjs/models/components/productupdate.d.ts.map +1 -1
  109. package/dist/commonjs/models/components/productupdate.js +9 -0
  110. package/dist/commonjs/models/components/productupdate.js.map +1 -1
  111. package/dist/commonjs/models/components/subscription.d.ts +10 -0
  112. package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
  113. package/dist/commonjs/models/components/subscription.js +8 -0
  114. package/dist/commonjs/models/components/subscription.js.map +1 -1
  115. package/dist/commonjs/models/components/subscriptionupdate.d.ts +3 -2
  116. package/dist/commonjs/models/components/subscriptionupdate.d.ts.map +1 -1
  117. package/dist/commonjs/models/components/subscriptionupdate.js +3 -0
  118. package/dist/commonjs/models/components/subscriptionupdate.js.map +1 -1
  119. package/dist/commonjs/models/components/subscriptionupdatetrial.d.ts +32 -0
  120. package/dist/commonjs/models/components/subscriptionupdatetrial.d.ts.map +1 -0
  121. package/dist/commonjs/models/components/subscriptionupdatetrial.js +78 -0
  122. package/dist/commonjs/models/components/subscriptionupdatetrial.js.map +1 -0
  123. package/dist/commonjs/models/components/trialinterval.d.ts +34 -0
  124. package/dist/commonjs/models/components/trialinterval.d.ts.map +1 -0
  125. package/dist/commonjs/models/components/trialinterval.js +62 -0
  126. package/dist/commonjs/models/components/trialinterval.js.map +1 -0
  127. package/dist/esm/lib/config.d.ts +2 -2
  128. package/dist/esm/lib/config.js +2 -2
  129. package/dist/esm/mcp-server/mcp-server.js +1 -1
  130. package/dist/esm/mcp-server/server.js +1 -1
  131. package/dist/esm/models/components/address.d.ts +687 -687
  132. package/dist/esm/models/components/address.js +222 -222
  133. package/dist/esm/models/components/addressinput.d.ts +683 -683
  134. package/dist/esm/models/components/addressinput.js +217 -217
  135. package/dist/esm/models/components/checkout.d.ts +31 -5
  136. package/dist/esm/models/components/checkout.d.ts.map +1 -1
  137. package/dist/esm/models/components/checkout.js +23 -2
  138. package/dist/esm/models/components/checkout.js.map +1 -1
  139. package/dist/esm/models/components/checkoutcreate.d.ts +11 -0
  140. package/dist/esm/models/components/checkoutcreate.d.ts.map +1 -1
  141. package/dist/esm/models/components/checkoutcreate.js +9 -0
  142. package/dist/esm/models/components/checkoutcreate.js.map +1 -1
  143. package/dist/esm/models/components/checkoutlink.d.ts +14 -3
  144. package/dist/esm/models/components/checkoutlink.d.ts.map +1 -1
  145. package/dist/esm/models/components/checkoutlink.js +11 -2
  146. package/dist/esm/models/components/checkoutlink.js.map +1 -1
  147. package/dist/esm/models/components/checkoutlinkcreateproduct.d.ts +11 -0
  148. package/dist/esm/models/components/checkoutlinkcreateproduct.d.ts.map +1 -1
  149. package/dist/esm/models/components/checkoutlinkcreateproduct.js +9 -0
  150. package/dist/esm/models/components/checkoutlinkcreateproduct.js.map +1 -1
  151. package/dist/esm/models/components/checkoutlinkcreateproductprice.d.ts +11 -0
  152. package/dist/esm/models/components/checkoutlinkcreateproductprice.d.ts.map +1 -1
  153. package/dist/esm/models/components/checkoutlinkcreateproductprice.js +9 -0
  154. package/dist/esm/models/components/checkoutlinkcreateproductprice.js.map +1 -1
  155. package/dist/esm/models/components/checkoutlinkcreateproducts.d.ts +11 -0
  156. package/dist/esm/models/components/checkoutlinkcreateproducts.d.ts.map +1 -1
  157. package/dist/esm/models/components/checkoutlinkcreateproducts.js +9 -0
  158. package/dist/esm/models/components/checkoutlinkcreateproducts.js.map +1 -1
  159. package/dist/esm/models/components/checkoutlinkproduct.d.ts +14 -3
  160. package/dist/esm/models/components/checkoutlinkproduct.d.ts.map +1 -1
  161. package/dist/esm/models/components/checkoutlinkproduct.js +11 -2
  162. package/dist/esm/models/components/checkoutlinkproduct.js.map +1 -1
  163. package/dist/esm/models/components/checkoutlinkupdate.d.ts +11 -0
  164. package/dist/esm/models/components/checkoutlinkupdate.d.ts.map +1 -1
  165. package/dist/esm/models/components/checkoutlinkupdate.js +9 -0
  166. package/dist/esm/models/components/checkoutlinkupdate.js.map +1 -1
  167. package/dist/esm/models/components/checkoutproduct.d.ts +14 -3
  168. package/dist/esm/models/components/checkoutproduct.d.ts.map +1 -1
  169. package/dist/esm/models/components/checkoutproduct.js +11 -2
  170. package/dist/esm/models/components/checkoutproduct.js.map +1 -1
  171. package/dist/esm/models/components/checkoutpublic.d.ts +21 -5
  172. package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
  173. package/dist/esm/models/components/checkoutpublic.js +15 -2
  174. package/dist/esm/models/components/checkoutpublic.js.map +1 -1
  175. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +21 -5
  176. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  177. package/dist/esm/models/components/checkoutpublicconfirmed.js +15 -2
  178. package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
  179. package/dist/esm/models/components/checkoutupdate.d.ts +11 -0
  180. package/dist/esm/models/components/checkoutupdate.d.ts.map +1 -1
  181. package/dist/esm/models/components/checkoutupdate.js +9 -0
  182. package/dist/esm/models/components/checkoutupdate.js.map +1 -1
  183. package/dist/esm/models/components/customerorderproduct.d.ts +14 -3
  184. package/dist/esm/models/components/customerorderproduct.d.ts.map +1 -1
  185. package/dist/esm/models/components/customerorderproduct.js +11 -2
  186. package/dist/esm/models/components/customerorderproduct.js.map +1 -1
  187. package/dist/esm/models/components/customerordersubscription.d.ts +10 -0
  188. package/dist/esm/models/components/customerordersubscription.d.ts.map +1 -1
  189. package/dist/esm/models/components/customerordersubscription.js +8 -0
  190. package/dist/esm/models/components/customerordersubscription.js.map +1 -1
  191. package/dist/esm/models/components/customerproduct.d.ts +14 -3
  192. package/dist/esm/models/components/customerproduct.d.ts.map +1 -1
  193. package/dist/esm/models/components/customerproduct.js +11 -2
  194. package/dist/esm/models/components/customerproduct.js.map +1 -1
  195. package/dist/esm/models/components/customersubscription.d.ts +10 -0
  196. package/dist/esm/models/components/customersubscription.d.ts.map +1 -1
  197. package/dist/esm/models/components/customersubscription.js +8 -0
  198. package/dist/esm/models/components/customersubscription.js.map +1 -1
  199. package/dist/esm/models/components/customersubscriptionproduct.d.ts +14 -3
  200. package/dist/esm/models/components/customersubscriptionproduct.d.ts.map +1 -1
  201. package/dist/esm/models/components/customersubscriptionproduct.js +11 -2
  202. package/dist/esm/models/components/customersubscriptionproduct.js.map +1 -1
  203. package/dist/esm/models/components/discountproduct.d.ts +14 -3
  204. package/dist/esm/models/components/discountproduct.d.ts.map +1 -1
  205. package/dist/esm/models/components/discountproduct.js +11 -2
  206. package/dist/esm/models/components/discountproduct.js.map +1 -1
  207. package/dist/esm/models/components/orderproduct.d.ts +14 -3
  208. package/dist/esm/models/components/orderproduct.d.ts.map +1 -1
  209. package/dist/esm/models/components/orderproduct.js +11 -2
  210. package/dist/esm/models/components/orderproduct.js.map +1 -1
  211. package/dist/esm/models/components/ordersubscription.d.ts +10 -0
  212. package/dist/esm/models/components/ordersubscription.d.ts.map +1 -1
  213. package/dist/esm/models/components/ordersubscription.js +8 -0
  214. package/dist/esm/models/components/ordersubscription.js.map +1 -1
  215. package/dist/esm/models/components/product.d.ts +14 -3
  216. package/dist/esm/models/components/product.d.ts.map +1 -1
  217. package/dist/esm/models/components/product.js +11 -2
  218. package/dist/esm/models/components/product.js.map +1 -1
  219. package/dist/esm/models/components/productcreate.d.ts +4 -111
  220. package/dist/esm/models/components/productcreate.d.ts.map +1 -1
  221. package/dist/esm/models/components/productcreate.js +8 -101
  222. package/dist/esm/models/components/productcreate.js.map +1 -1
  223. package/dist/esm/models/components/productcreateonetime.d.ts +130 -0
  224. package/dist/esm/models/components/productcreateonetime.d.ts.map +1 -0
  225. package/dist/esm/models/components/productcreateonetime.js +127 -0
  226. package/dist/esm/models/components/productcreateonetime.js.map +1 -0
  227. package/dist/esm/models/components/productcreaterecurring.d.ts +139 -0
  228. package/dist/esm/models/components/productcreaterecurring.d.ts.map +1 -0
  229. package/dist/esm/models/components/productcreaterecurring.js +137 -0
  230. package/dist/esm/models/components/productcreaterecurring.js.map +1 -0
  231. package/dist/esm/models/components/productupdate.d.ts +11 -0
  232. package/dist/esm/models/components/productupdate.d.ts.map +1 -1
  233. package/dist/esm/models/components/productupdate.js +9 -0
  234. package/dist/esm/models/components/productupdate.js.map +1 -1
  235. package/dist/esm/models/components/subscription.d.ts +10 -0
  236. package/dist/esm/models/components/subscription.d.ts.map +1 -1
  237. package/dist/esm/models/components/subscription.js +8 -0
  238. package/dist/esm/models/components/subscription.js.map +1 -1
  239. package/dist/esm/models/components/subscriptionupdate.d.ts +3 -2
  240. package/dist/esm/models/components/subscriptionupdate.d.ts.map +1 -1
  241. package/dist/esm/models/components/subscriptionupdate.js +3 -0
  242. package/dist/esm/models/components/subscriptionupdate.js.map +1 -1
  243. package/dist/esm/models/components/subscriptionupdatetrial.d.ts +32 -0
  244. package/dist/esm/models/components/subscriptionupdatetrial.d.ts.map +1 -0
  245. package/dist/esm/models/components/subscriptionupdatetrial.js +40 -0
  246. package/dist/esm/models/components/subscriptionupdatetrial.js.map +1 -0
  247. package/dist/esm/models/components/trialinterval.d.ts +34 -0
  248. package/dist/esm/models/components/trialinterval.d.ts.map +1 -0
  249. package/dist/esm/models/components/trialinterval.js +26 -0
  250. package/dist/esm/models/components/trialinterval.js.map +1 -0
  251. package/docs/sdks/products/README.md +2 -2
  252. package/examples/package-lock.json +1 -1
  253. package/jsr.json +1 -1
  254. package/package.json +1 -1
  255. package/src/lib/config.ts +2 -2
  256. package/src/mcp-server/mcp-server.ts +1 -1
  257. package/src/mcp-server/server.ts +1 -1
  258. package/src/models/components/address.ts +222 -222
  259. package/src/models/components/addressinput.ts +217 -217
  260. package/src/models/components/checkout.ts +59 -7
  261. package/src/models/components/checkoutcreate.ts +23 -0
  262. package/src/models/components/checkoutlink.ts +28 -5
  263. package/src/models/components/checkoutlinkcreateproduct.ts +23 -0
  264. package/src/models/components/checkoutlinkcreateproductprice.ts +23 -0
  265. package/src/models/components/checkoutlinkcreateproducts.ts +23 -0
  266. package/src/models/components/checkoutlinkproduct.ts +28 -5
  267. package/src/models/components/checkoutlinkupdate.ts +23 -0
  268. package/src/models/components/checkoutproduct.ts +28 -5
  269. package/src/models/components/checkoutpublic.ts +41 -7
  270. package/src/models/components/checkoutpublicconfirmed.ts +41 -7
  271. package/src/models/components/checkoutupdate.ts +23 -0
  272. package/src/models/components/customerorderproduct.ts +28 -5
  273. package/src/models/components/customerordersubscription.ts +22 -0
  274. package/src/models/components/customerproduct.ts +28 -5
  275. package/src/models/components/customersubscription.ts +22 -0
  276. package/src/models/components/customersubscriptionproduct.ts +28 -5
  277. package/src/models/components/discountproduct.ts +28 -5
  278. package/src/models/components/orderproduct.ts +28 -5
  279. package/src/models/components/ordersubscription.ts +22 -0
  280. package/src/models/components/product.ts +28 -5
  281. package/src/models/components/productcreate.ts +22 -275
  282. package/src/models/components/productcreateonetime.ts +329 -0
  283. package/src/models/components/productcreaterecurring.ts +356 -0
  284. package/src/models/components/productupdate.ts +23 -0
  285. package/src/models/components/subscription.ts +22 -0
  286. package/src/models/components/subscriptionupdate.ts +10 -0
  287. package/src/models/components/subscriptionupdatetrial.ts +78 -0
  288. package/src/models/components/trialinterval.ts +35 -0
@@ -1,120 +1,13 @@
1
1
  import * as z from "zod";
2
2
  import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { AttachedCustomFieldCreate, AttachedCustomFieldCreate$Outbound } from "./attachedcustomfieldcreate.js";
5
- import { ProductPriceCustomCreate, ProductPriceCustomCreate$Outbound } from "./productpricecustomcreate.js";
6
- import { ProductPriceFixedCreate, ProductPriceFixedCreate$Outbound } from "./productpricefixedcreate.js";
7
- import { ProductPriceFreeCreate, ProductPriceFreeCreate$Outbound } from "./productpricefreecreate.js";
8
- import { ProductPriceMeteredUnitCreate, ProductPriceMeteredUnitCreate$Outbound } from "./productpricemeteredunitcreate.js";
9
- import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
10
- export type ProductCreateMetadata = string | number | number | boolean;
11
- export type ProductCreatePrices = ProductPriceMeteredUnitCreate | ProductPriceFixedCreate | ProductPriceCustomCreate | ProductPriceFreeCreate;
12
- /**
13
- * Schema to create a product.
14
- */
15
- export type ProductCreate = {
16
- /**
17
- * Key-value object allowing you to store additional information.
18
- *
19
- * @remarks
20
- *
21
- * The key must be a string with a maximum length of **40 characters**.
22
- * The value must be either:
23
- *
24
- * * A string with a maximum length of **500 characters**
25
- * * An integer
26
- * * A floating-point number
27
- * * A boolean
28
- *
29
- * You can store up to **50 key-value pairs**.
30
- */
31
- metadata?: {
32
- [k: string]: string | number | number | boolean;
33
- } | undefined;
34
- /**
35
- * The name of the product.
36
- */
37
- name: string;
38
- /**
39
- * The description of the product.
40
- */
41
- description?: string | null | undefined;
42
- /**
43
- * The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only.
44
- */
45
- recurringInterval: SubscriptionRecurringInterval | null;
46
- /**
47
- * List of available prices for this product. It should contain at most one static price (fixed, custom or free), and any number of metered prices. Metered prices are not supported on one-time purchase products.
48
- */
49
- prices: Array<ProductPriceMeteredUnitCreate | ProductPriceFixedCreate | ProductPriceCustomCreate | ProductPriceFreeCreate>;
50
- /**
51
- * List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded.
52
- */
53
- medias?: Array<string> | null | undefined;
54
- /**
55
- * List of custom fields to attach.
56
- */
57
- attachedCustomFields?: Array<AttachedCustomFieldCreate> | undefined;
58
- /**
59
- * The ID of the organization owning the product. **Required unless you use an organization token.**
60
- */
61
- organizationId?: string | null | undefined;
62
- };
63
- /** @internal */
64
- export declare const ProductCreateMetadata$inboundSchema: z.ZodType<ProductCreateMetadata, z.ZodTypeDef, unknown>;
65
- /** @internal */
66
- export type ProductCreateMetadata$Outbound = string | number | number | boolean;
67
- /** @internal */
68
- export declare const ProductCreateMetadata$outboundSchema: z.ZodType<ProductCreateMetadata$Outbound, z.ZodTypeDef, ProductCreateMetadata>;
69
- /**
70
- * @internal
71
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
72
- */
73
- export declare namespace ProductCreateMetadata$ {
74
- /** @deprecated use `ProductCreateMetadata$inboundSchema` instead. */
75
- const inboundSchema: z.ZodType<ProductCreateMetadata, z.ZodTypeDef, unknown>;
76
- /** @deprecated use `ProductCreateMetadata$outboundSchema` instead. */
77
- const outboundSchema: z.ZodType<ProductCreateMetadata$Outbound, z.ZodTypeDef, ProductCreateMetadata>;
78
- /** @deprecated use `ProductCreateMetadata$Outbound` instead. */
79
- type Outbound = ProductCreateMetadata$Outbound;
80
- }
81
- export declare function productCreateMetadataToJSON(productCreateMetadata: ProductCreateMetadata): string;
82
- export declare function productCreateMetadataFromJSON(jsonString: string): SafeParseResult<ProductCreateMetadata, SDKValidationError>;
83
- /** @internal */
84
- export declare const ProductCreatePrices$inboundSchema: z.ZodType<ProductCreatePrices, z.ZodTypeDef, unknown>;
85
- /** @internal */
86
- export type ProductCreatePrices$Outbound = ProductPriceMeteredUnitCreate$Outbound | ProductPriceFixedCreate$Outbound | ProductPriceCustomCreate$Outbound | ProductPriceFreeCreate$Outbound;
87
- /** @internal */
88
- export declare const ProductCreatePrices$outboundSchema: z.ZodType<ProductCreatePrices$Outbound, z.ZodTypeDef, ProductCreatePrices>;
89
- /**
90
- * @internal
91
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
92
- */
93
- export declare namespace ProductCreatePrices$ {
94
- /** @deprecated use `ProductCreatePrices$inboundSchema` instead. */
95
- const inboundSchema: z.ZodType<ProductCreatePrices, z.ZodTypeDef, unknown>;
96
- /** @deprecated use `ProductCreatePrices$outboundSchema` instead. */
97
- const outboundSchema: z.ZodType<ProductCreatePrices$Outbound, z.ZodTypeDef, ProductCreatePrices>;
98
- /** @deprecated use `ProductCreatePrices$Outbound` instead. */
99
- type Outbound = ProductCreatePrices$Outbound;
100
- }
101
- export declare function productCreatePricesToJSON(productCreatePrices: ProductCreatePrices): string;
102
- export declare function productCreatePricesFromJSON(jsonString: string): SafeParseResult<ProductCreatePrices, SDKValidationError>;
4
+ import { ProductCreateOneTime, ProductCreateOneTime$Outbound } from "./productcreateonetime.js";
5
+ import { ProductCreateRecurring, ProductCreateRecurring$Outbound } from "./productcreaterecurring.js";
6
+ export type ProductCreate = ProductCreateRecurring | ProductCreateOneTime;
103
7
  /** @internal */
104
8
  export declare const ProductCreate$inboundSchema: z.ZodType<ProductCreate, z.ZodTypeDef, unknown>;
105
9
  /** @internal */
106
- export type ProductCreate$Outbound = {
107
- metadata?: {
108
- [k: string]: string | number | number | boolean;
109
- } | undefined;
110
- name: string;
111
- description?: string | null | undefined;
112
- recurring_interval: string | null;
113
- prices: Array<ProductPriceMeteredUnitCreate$Outbound | ProductPriceFixedCreate$Outbound | ProductPriceCustomCreate$Outbound | ProductPriceFreeCreate$Outbound>;
114
- medias?: Array<string> | null | undefined;
115
- attached_custom_fields?: Array<AttachedCustomFieldCreate$Outbound> | undefined;
116
- organization_id?: string | null | undefined;
117
- };
10
+ export type ProductCreate$Outbound = ProductCreateRecurring$Outbound | ProductCreateOneTime$Outbound;
118
11
  /** @internal */
119
12
  export declare const ProductCreate$outboundSchema: z.ZodType<ProductCreate$Outbound, z.ZodTypeDef, ProductCreate>;
120
13
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"productcreate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/productcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wBAAwB,EAExB,iCAAiC,EAElC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,uBAAuB,EAEvB,gCAAgC,EAEjC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,6BAA6B,EAE7B,sCAAsC,EAEvC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,6BAA6B,EAG9B,MAAM,oCAAoC,CAAC;AAE5C,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEvE,MAAM,MAAM,mBAAmB,GAC3B,6BAA6B,GAC7B,uBAAuB,GACvB,wBAAwB,GACxB,sBAAsB,CAAC;AAE3B;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC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AI,GAAG,SAAS,CAAC;IACxC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,MAAM,EAAE,KAAK,CACT,sCAAsC,GACtC,gCAAgC,GAChC,iCAAiC,GACjC,+BAA+B,CAClC,CAAC;IACF,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,sBAAsB,CAAC,EACnB,KAAK,CAAC,kCAAkC,CAAC,GACzC,SAAS,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CA0Bb,CAAC;AAEH;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
1
+ {"version":3,"file":"productcreate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/productcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,aAAa,GAAG,sBAAsB,GAAG,oBAAoB,CAAC;AAE1E,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAC9B,+BAA+B,GAC/B,6BAA6B,CAAC;AAElC,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAIb,CAAC;AAEH;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
@@ -36,120 +36,23 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ProductCreate$ = exports.ProductCreate$outboundSchema = exports.ProductCreate$inboundSchema = exports.ProductCreatePrices$ = exports.ProductCreatePrices$outboundSchema = exports.ProductCreatePrices$inboundSchema = exports.ProductCreateMetadata$ = exports.ProductCreateMetadata$outboundSchema = exports.ProductCreateMetadata$inboundSchema = void 0;
40
- exports.productCreateMetadataToJSON = productCreateMetadataToJSON;
41
- exports.productCreateMetadataFromJSON = productCreateMetadataFromJSON;
42
- exports.productCreatePricesToJSON = productCreatePricesToJSON;
43
- exports.productCreatePricesFromJSON = productCreatePricesFromJSON;
39
+ exports.ProductCreate$ = exports.ProductCreate$outboundSchema = exports.ProductCreate$inboundSchema = void 0;
44
40
  exports.productCreateToJSON = productCreateToJSON;
45
41
  exports.productCreateFromJSON = productCreateFromJSON;
46
42
  const z = __importStar(require("zod"));
47
- const primitives_js_1 = require("../../lib/primitives.js");
48
43
  const schemas_js_1 = require("../../lib/schemas.js");
49
- const attachedcustomfieldcreate_js_1 = require("./attachedcustomfieldcreate.js");
50
- const productpricecustomcreate_js_1 = require("./productpricecustomcreate.js");
51
- const productpricefixedcreate_js_1 = require("./productpricefixedcreate.js");
52
- const productpricefreecreate_js_1 = require("./productpricefreecreate.js");
53
- const productpricemeteredunitcreate_js_1 = require("./productpricemeteredunitcreate.js");
54
- const subscriptionrecurringinterval_js_1 = require("./subscriptionrecurringinterval.js");
44
+ const productcreateonetime_js_1 = require("./productcreateonetime.js");
45
+ const productcreaterecurring_js_1 = require("./productcreaterecurring.js");
55
46
  /** @internal */
56
- exports.ProductCreateMetadata$inboundSchema = z.union([z.string(), z.number().int(), z.number(), z.boolean()]);
57
- /** @internal */
58
- exports.ProductCreateMetadata$outboundSchema = z.union([z.string(), z.number().int(), z.number(), z.boolean()]);
59
- /**
60
- * @internal
61
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
- */
63
- var ProductCreateMetadata$;
64
- (function (ProductCreateMetadata$) {
65
- /** @deprecated use `ProductCreateMetadata$inboundSchema` instead. */
66
- ProductCreateMetadata$.inboundSchema = exports.ProductCreateMetadata$inboundSchema;
67
- /** @deprecated use `ProductCreateMetadata$outboundSchema` instead. */
68
- ProductCreateMetadata$.outboundSchema = exports.ProductCreateMetadata$outboundSchema;
69
- })(ProductCreateMetadata$ || (exports.ProductCreateMetadata$ = ProductCreateMetadata$ = {}));
70
- function productCreateMetadataToJSON(productCreateMetadata) {
71
- return JSON.stringify(exports.ProductCreateMetadata$outboundSchema.parse(productCreateMetadata));
72
- }
73
- function productCreateMetadataFromJSON(jsonString) {
74
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ProductCreateMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProductCreateMetadata' from JSON`);
75
- }
76
- /** @internal */
77
- exports.ProductCreatePrices$inboundSchema = z.union([
78
- productpricemeteredunitcreate_js_1.ProductPriceMeteredUnitCreate$inboundSchema,
79
- productpricefixedcreate_js_1.ProductPriceFixedCreate$inboundSchema,
80
- productpricecustomcreate_js_1.ProductPriceCustomCreate$inboundSchema,
81
- productpricefreecreate_js_1.ProductPriceFreeCreate$inboundSchema,
47
+ exports.ProductCreate$inboundSchema = z.union([
48
+ productcreaterecurring_js_1.ProductCreateRecurring$inboundSchema,
49
+ productcreateonetime_js_1.ProductCreateOneTime$inboundSchema,
82
50
  ]);
83
51
  /** @internal */
84
- exports.ProductCreatePrices$outboundSchema = z.union([
85
- productpricemeteredunitcreate_js_1.ProductPriceMeteredUnitCreate$outboundSchema,
86
- productpricefixedcreate_js_1.ProductPriceFixedCreate$outboundSchema,
87
- productpricecustomcreate_js_1.ProductPriceCustomCreate$outboundSchema,
88
- productpricefreecreate_js_1.ProductPriceFreeCreate$outboundSchema,
52
+ exports.ProductCreate$outboundSchema = z.union([
53
+ productcreaterecurring_js_1.ProductCreateRecurring$outboundSchema,
54
+ productcreateonetime_js_1.ProductCreateOneTime$outboundSchema,
89
55
  ]);
90
- /**
91
- * @internal
92
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
93
- */
94
- var ProductCreatePrices$;
95
- (function (ProductCreatePrices$) {
96
- /** @deprecated use `ProductCreatePrices$inboundSchema` instead. */
97
- ProductCreatePrices$.inboundSchema = exports.ProductCreatePrices$inboundSchema;
98
- /** @deprecated use `ProductCreatePrices$outboundSchema` instead. */
99
- ProductCreatePrices$.outboundSchema = exports.ProductCreatePrices$outboundSchema;
100
- })(ProductCreatePrices$ || (exports.ProductCreatePrices$ = ProductCreatePrices$ = {}));
101
- function productCreatePricesToJSON(productCreatePrices) {
102
- return JSON.stringify(exports.ProductCreatePrices$outboundSchema.parse(productCreatePrices));
103
- }
104
- function productCreatePricesFromJSON(jsonString) {
105
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ProductCreatePrices$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProductCreatePrices' from JSON`);
106
- }
107
- /** @internal */
108
- exports.ProductCreate$inboundSchema = z.object({
109
- metadata: z.record(z.union([z.string(), z.number().int(), z.number(), z.boolean()])).optional(),
110
- name: z.string(),
111
- description: z.nullable(z.string()).optional(),
112
- recurring_interval: z.nullable(subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema),
113
- prices: z.array(z.union([
114
- productpricemeteredunitcreate_js_1.ProductPriceMeteredUnitCreate$inboundSchema,
115
- productpricefixedcreate_js_1.ProductPriceFixedCreate$inboundSchema,
116
- productpricecustomcreate_js_1.ProductPriceCustomCreate$inboundSchema,
117
- productpricefreecreate_js_1.ProductPriceFreeCreate$inboundSchema,
118
- ])),
119
- medias: z.nullable(z.array(z.string())).optional(),
120
- attached_custom_fields: z.array(attachedcustomfieldcreate_js_1.AttachedCustomFieldCreate$inboundSchema)
121
- .optional(),
122
- organization_id: z.nullable(z.string()).optional(),
123
- }).transform((v) => {
124
- return (0, primitives_js_1.remap)(v, {
125
- "recurring_interval": "recurringInterval",
126
- "attached_custom_fields": "attachedCustomFields",
127
- "organization_id": "organizationId",
128
- });
129
- });
130
- /** @internal */
131
- exports.ProductCreate$outboundSchema = z.object({
132
- metadata: z.record(z.union([z.string(), z.number().int(), z.number(), z.boolean()])).optional(),
133
- name: z.string(),
134
- description: z.nullable(z.string()).optional(),
135
- recurringInterval: z.nullable(subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema),
136
- prices: z.array(z.union([
137
- productpricemeteredunitcreate_js_1.ProductPriceMeteredUnitCreate$outboundSchema,
138
- productpricefixedcreate_js_1.ProductPriceFixedCreate$outboundSchema,
139
- productpricecustomcreate_js_1.ProductPriceCustomCreate$outboundSchema,
140
- productpricefreecreate_js_1.ProductPriceFreeCreate$outboundSchema,
141
- ])),
142
- medias: z.nullable(z.array(z.string())).optional(),
143
- attachedCustomFields: z.array(attachedcustomfieldcreate_js_1.AttachedCustomFieldCreate$outboundSchema)
144
- .optional(),
145
- organizationId: z.nullable(z.string()).optional(),
146
- }).transform((v) => {
147
- return (0, primitives_js_1.remap)(v, {
148
- recurringInterval: "recurring_interval",
149
- attachedCustomFields: "attached_custom_fields",
150
- organizationId: "organization_id",
151
- });
152
- });
153
56
  /**
154
57
  * @internal
155
58
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
@@ -1 +1 @@
1
- {"version":3,"file":"productcreate.js","sourceRoot":"","sources":["../../../../src/models/components/productcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwIH,kEAMC;AAED,sEAQC;AA8CD,8DAMC;AAED,kEAQC;AAkGD,kDAEC;AAED,sDAQC;AAlUD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,iFAKwC;AACxC,+EAKuC;AACvC,6EAKsC;AACtC,2EAKqC;AACrC,yFAK4C;AAC5C,yFAI4C;AAiE5C,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AAKrE,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AAErE;;;GAGG;AACH,IAAiB,sBAAsB,CA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GG;AACH,IAAiB,cAAc,CAO9B;AAPD,WAAiB,cAAc;IAC7B,6DAA6D;IAChD,4BAAa,GAAG,mCAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,oCAA4B,CAAC;AAG7D,CAAC,EAPgB,cAAc,8BAAd,cAAc,QAO9B;AAED,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"productcreate.js","sourceRoot":"","sources":["../../../../src/models/components/productcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DH,kDAEC;AAED,sDAQC;AArED,uCAAyB;AACzB,qDAAiD;AAGjD,uEAKmC;AACnC,2EAKqC;AAIrC,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,KAAK,CAAC;IACV,gEAAoC;IACpC,4DAAkC;CACnC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,KAAK,CAAC;IACV,iEAAqC;IACrC,6DAAmC;CACpC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,cAAc,CAO9B;AAPD,WAAiB,cAAc;IAC7B,6DAA6D;IAChD,4BAAa,GAAG,mCAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,oCAA4B,CAAC;AAG7D,CAAC,EAPgB,cAAc,8BAAd,cAAc,QAO9B;AAED,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,130 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { AttachedCustomFieldCreate, AttachedCustomFieldCreate$Outbound } from "./attachedcustomfieldcreate.js";
5
+ import { ProductPriceCustomCreate, ProductPriceCustomCreate$Outbound } from "./productpricecustomcreate.js";
6
+ import { ProductPriceFixedCreate, ProductPriceFixedCreate$Outbound } from "./productpricefixedcreate.js";
7
+ import { ProductPriceFreeCreate, ProductPriceFreeCreate$Outbound } from "./productpricefreecreate.js";
8
+ import { ProductPriceMeteredUnitCreate, ProductPriceMeteredUnitCreate$Outbound } from "./productpricemeteredunitcreate.js";
9
+ export type ProductCreateOneTimeMetadata = string | number | number | boolean;
10
+ export type ProductCreateOneTimePrices = ProductPriceMeteredUnitCreate | ProductPriceFixedCreate | ProductPriceCustomCreate | ProductPriceFreeCreate;
11
+ export type ProductCreateOneTime = {
12
+ /**
13
+ * Key-value object allowing you to store additional information.
14
+ *
15
+ * @remarks
16
+ *
17
+ * The key must be a string with a maximum length of **40 characters**.
18
+ * The value must be either:
19
+ *
20
+ * * A string with a maximum length of **500 characters**
21
+ * * An integer
22
+ * * A floating-point number
23
+ * * A boolean
24
+ *
25
+ * You can store up to **50 key-value pairs**.
26
+ */
27
+ metadata?: {
28
+ [k: string]: string | number | number | boolean;
29
+ } | undefined;
30
+ /**
31
+ * The name of the product.
32
+ */
33
+ name: string;
34
+ /**
35
+ * The description of the product.
36
+ */
37
+ description?: string | null | undefined;
38
+ /**
39
+ * List of available prices for this product. It should contain at most one static price (fixed, custom or free), and any number of metered prices. Metered prices are not supported on one-time purchase products.
40
+ */
41
+ prices: Array<ProductPriceMeteredUnitCreate | ProductPriceFixedCreate | ProductPriceCustomCreate | ProductPriceFreeCreate>;
42
+ /**
43
+ * List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded.
44
+ */
45
+ medias?: Array<string> | null | undefined;
46
+ /**
47
+ * List of custom fields to attach.
48
+ */
49
+ attachedCustomFields?: Array<AttachedCustomFieldCreate> | undefined;
50
+ /**
51
+ * The ID of the organization owning the product. **Required unless you use an organization token.**
52
+ */
53
+ organizationId?: string | null | undefined;
54
+ /**
55
+ * States that the product is a one-time purchase.
56
+ */
57
+ recurringInterval?: any | null | undefined;
58
+ };
59
+ /** @internal */
60
+ export declare const ProductCreateOneTimeMetadata$inboundSchema: z.ZodType<ProductCreateOneTimeMetadata, z.ZodTypeDef, unknown>;
61
+ /** @internal */
62
+ export type ProductCreateOneTimeMetadata$Outbound = string | number | number | boolean;
63
+ /** @internal */
64
+ export declare const ProductCreateOneTimeMetadata$outboundSchema: z.ZodType<ProductCreateOneTimeMetadata$Outbound, z.ZodTypeDef, ProductCreateOneTimeMetadata>;
65
+ /**
66
+ * @internal
67
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
68
+ */
69
+ export declare namespace ProductCreateOneTimeMetadata$ {
70
+ /** @deprecated use `ProductCreateOneTimeMetadata$inboundSchema` instead. */
71
+ const inboundSchema: z.ZodType<ProductCreateOneTimeMetadata, z.ZodTypeDef, unknown>;
72
+ /** @deprecated use `ProductCreateOneTimeMetadata$outboundSchema` instead. */
73
+ const outboundSchema: z.ZodType<ProductCreateOneTimeMetadata$Outbound, z.ZodTypeDef, ProductCreateOneTimeMetadata>;
74
+ /** @deprecated use `ProductCreateOneTimeMetadata$Outbound` instead. */
75
+ type Outbound = ProductCreateOneTimeMetadata$Outbound;
76
+ }
77
+ export declare function productCreateOneTimeMetadataToJSON(productCreateOneTimeMetadata: ProductCreateOneTimeMetadata): string;
78
+ export declare function productCreateOneTimeMetadataFromJSON(jsonString: string): SafeParseResult<ProductCreateOneTimeMetadata, SDKValidationError>;
79
+ /** @internal */
80
+ export declare const ProductCreateOneTimePrices$inboundSchema: z.ZodType<ProductCreateOneTimePrices, z.ZodTypeDef, unknown>;
81
+ /** @internal */
82
+ export type ProductCreateOneTimePrices$Outbound = ProductPriceMeteredUnitCreate$Outbound | ProductPriceFixedCreate$Outbound | ProductPriceCustomCreate$Outbound | ProductPriceFreeCreate$Outbound;
83
+ /** @internal */
84
+ export declare const ProductCreateOneTimePrices$outboundSchema: z.ZodType<ProductCreateOneTimePrices$Outbound, z.ZodTypeDef, ProductCreateOneTimePrices>;
85
+ /**
86
+ * @internal
87
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
88
+ */
89
+ export declare namespace ProductCreateOneTimePrices$ {
90
+ /** @deprecated use `ProductCreateOneTimePrices$inboundSchema` instead. */
91
+ const inboundSchema: z.ZodType<ProductCreateOneTimePrices, z.ZodTypeDef, unknown>;
92
+ /** @deprecated use `ProductCreateOneTimePrices$outboundSchema` instead. */
93
+ const outboundSchema: z.ZodType<ProductCreateOneTimePrices$Outbound, z.ZodTypeDef, ProductCreateOneTimePrices>;
94
+ /** @deprecated use `ProductCreateOneTimePrices$Outbound` instead. */
95
+ type Outbound = ProductCreateOneTimePrices$Outbound;
96
+ }
97
+ export declare function productCreateOneTimePricesToJSON(productCreateOneTimePrices: ProductCreateOneTimePrices): string;
98
+ export declare function productCreateOneTimePricesFromJSON(jsonString: string): SafeParseResult<ProductCreateOneTimePrices, SDKValidationError>;
99
+ /** @internal */
100
+ export declare const ProductCreateOneTime$inboundSchema: z.ZodType<ProductCreateOneTime, z.ZodTypeDef, unknown>;
101
+ /** @internal */
102
+ export type ProductCreateOneTime$Outbound = {
103
+ metadata?: {
104
+ [k: string]: string | number | number | boolean;
105
+ } | undefined;
106
+ name: string;
107
+ description?: string | null | undefined;
108
+ prices: Array<ProductPriceMeteredUnitCreate$Outbound | ProductPriceFixedCreate$Outbound | ProductPriceCustomCreate$Outbound | ProductPriceFreeCreate$Outbound>;
109
+ medias?: Array<string> | null | undefined;
110
+ attached_custom_fields?: Array<AttachedCustomFieldCreate$Outbound> | undefined;
111
+ organization_id?: string | null | undefined;
112
+ recurring_interval?: any | null | undefined;
113
+ };
114
+ /** @internal */
115
+ export declare const ProductCreateOneTime$outboundSchema: z.ZodType<ProductCreateOneTime$Outbound, z.ZodTypeDef, ProductCreateOneTime>;
116
+ /**
117
+ * @internal
118
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
119
+ */
120
+ export declare namespace ProductCreateOneTime$ {
121
+ /** @deprecated use `ProductCreateOneTime$inboundSchema` instead. */
122
+ const inboundSchema: z.ZodType<ProductCreateOneTime, z.ZodTypeDef, unknown>;
123
+ /** @deprecated use `ProductCreateOneTime$outboundSchema` instead. */
124
+ const outboundSchema: z.ZodType<ProductCreateOneTime$Outbound, z.ZodTypeDef, ProductCreateOneTime>;
125
+ /** @deprecated use `ProductCreateOneTime$Outbound` instead. */
126
+ type Outbound = ProductCreateOneTime$Outbound;
127
+ }
128
+ export declare function productCreateOneTimeToJSON(productCreateOneTime: ProductCreateOneTime): string;
129
+ export declare function productCreateOneTimeFromJSON(jsonString: string): SafeParseResult<ProductCreateOneTime, SDKValidationError>;
130
+ //# sourceMappingURL=productcreateonetime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productcreateonetime.d.ts","sourceRoot":"","sources":["../../../../src/models/components/productcreateonetime.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,O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AAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD;AAED,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
@@ -0,0 +1,169 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ProductCreateOneTime$ = exports.ProductCreateOneTime$outboundSchema = exports.ProductCreateOneTime$inboundSchema = exports.ProductCreateOneTimePrices$ = exports.ProductCreateOneTimePrices$outboundSchema = exports.ProductCreateOneTimePrices$inboundSchema = exports.ProductCreateOneTimeMetadata$ = exports.ProductCreateOneTimeMetadata$outboundSchema = exports.ProductCreateOneTimeMetadata$inboundSchema = void 0;
40
+ exports.productCreateOneTimeMetadataToJSON = productCreateOneTimeMetadataToJSON;
41
+ exports.productCreateOneTimeMetadataFromJSON = productCreateOneTimeMetadataFromJSON;
42
+ exports.productCreateOneTimePricesToJSON = productCreateOneTimePricesToJSON;
43
+ exports.productCreateOneTimePricesFromJSON = productCreateOneTimePricesFromJSON;
44
+ exports.productCreateOneTimeToJSON = productCreateOneTimeToJSON;
45
+ exports.productCreateOneTimeFromJSON = productCreateOneTimeFromJSON;
46
+ const z = __importStar(require("zod"));
47
+ const primitives_js_1 = require("../../lib/primitives.js");
48
+ const schemas_js_1 = require("../../lib/schemas.js");
49
+ const attachedcustomfieldcreate_js_1 = require("./attachedcustomfieldcreate.js");
50
+ const productpricecustomcreate_js_1 = require("./productpricecustomcreate.js");
51
+ const productpricefixedcreate_js_1 = require("./productpricefixedcreate.js");
52
+ const productpricefreecreate_js_1 = require("./productpricefreecreate.js");
53
+ const productpricemeteredunitcreate_js_1 = require("./productpricemeteredunitcreate.js");
54
+ /** @internal */
55
+ exports.ProductCreateOneTimeMetadata$inboundSchema = z.union([z.string(), z.number().int(), z.number(), z.boolean()]);
56
+ /** @internal */
57
+ exports.ProductCreateOneTimeMetadata$outboundSchema = z.union([z.string(), z.number().int(), z.number(), z.boolean()]);
58
+ /**
59
+ * @internal
60
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
+ */
62
+ var ProductCreateOneTimeMetadata$;
63
+ (function (ProductCreateOneTimeMetadata$) {
64
+ /** @deprecated use `ProductCreateOneTimeMetadata$inboundSchema` instead. */
65
+ ProductCreateOneTimeMetadata$.inboundSchema = exports.ProductCreateOneTimeMetadata$inboundSchema;
66
+ /** @deprecated use `ProductCreateOneTimeMetadata$outboundSchema` instead. */
67
+ ProductCreateOneTimeMetadata$.outboundSchema = exports.ProductCreateOneTimeMetadata$outboundSchema;
68
+ })(ProductCreateOneTimeMetadata$ || (exports.ProductCreateOneTimeMetadata$ = ProductCreateOneTimeMetadata$ = {}));
69
+ function productCreateOneTimeMetadataToJSON(productCreateOneTimeMetadata) {
70
+ return JSON.stringify(exports.ProductCreateOneTimeMetadata$outboundSchema.parse(productCreateOneTimeMetadata));
71
+ }
72
+ function productCreateOneTimeMetadataFromJSON(jsonString) {
73
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ProductCreateOneTimeMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProductCreateOneTimeMetadata' from JSON`);
74
+ }
75
+ /** @internal */
76
+ exports.ProductCreateOneTimePrices$inboundSchema = z.union([
77
+ productpricemeteredunitcreate_js_1.ProductPriceMeteredUnitCreate$inboundSchema,
78
+ productpricefixedcreate_js_1.ProductPriceFixedCreate$inboundSchema,
79
+ productpricecustomcreate_js_1.ProductPriceCustomCreate$inboundSchema,
80
+ productpricefreecreate_js_1.ProductPriceFreeCreate$inboundSchema,
81
+ ]);
82
+ /** @internal */
83
+ exports.ProductCreateOneTimePrices$outboundSchema = z.union([
84
+ productpricemeteredunitcreate_js_1.ProductPriceMeteredUnitCreate$outboundSchema,
85
+ productpricefixedcreate_js_1.ProductPriceFixedCreate$outboundSchema,
86
+ productpricecustomcreate_js_1.ProductPriceCustomCreate$outboundSchema,
87
+ productpricefreecreate_js_1.ProductPriceFreeCreate$outboundSchema,
88
+ ]);
89
+ /**
90
+ * @internal
91
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
92
+ */
93
+ var ProductCreateOneTimePrices$;
94
+ (function (ProductCreateOneTimePrices$) {
95
+ /** @deprecated use `ProductCreateOneTimePrices$inboundSchema` instead. */
96
+ ProductCreateOneTimePrices$.inboundSchema = exports.ProductCreateOneTimePrices$inboundSchema;
97
+ /** @deprecated use `ProductCreateOneTimePrices$outboundSchema` instead. */
98
+ ProductCreateOneTimePrices$.outboundSchema = exports.ProductCreateOneTimePrices$outboundSchema;
99
+ })(ProductCreateOneTimePrices$ || (exports.ProductCreateOneTimePrices$ = ProductCreateOneTimePrices$ = {}));
100
+ function productCreateOneTimePricesToJSON(productCreateOneTimePrices) {
101
+ return JSON.stringify(exports.ProductCreateOneTimePrices$outboundSchema.parse(productCreateOneTimePrices));
102
+ }
103
+ function productCreateOneTimePricesFromJSON(jsonString) {
104
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ProductCreateOneTimePrices$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProductCreateOneTimePrices' from JSON`);
105
+ }
106
+ /** @internal */
107
+ exports.ProductCreateOneTime$inboundSchema = z.object({
108
+ metadata: z.record(z.union([z.string(), z.number().int(), z.number(), z.boolean()])).optional(),
109
+ name: z.string(),
110
+ description: z.nullable(z.string()).optional(),
111
+ prices: z.array(z.union([
112
+ productpricemeteredunitcreate_js_1.ProductPriceMeteredUnitCreate$inboundSchema,
113
+ productpricefixedcreate_js_1.ProductPriceFixedCreate$inboundSchema,
114
+ productpricecustomcreate_js_1.ProductPriceCustomCreate$inboundSchema,
115
+ productpricefreecreate_js_1.ProductPriceFreeCreate$inboundSchema,
116
+ ])),
117
+ medias: z.nullable(z.array(z.string())).optional(),
118
+ attached_custom_fields: z.array(attachedcustomfieldcreate_js_1.AttachedCustomFieldCreate$inboundSchema)
119
+ .optional(),
120
+ organization_id: z.nullable(z.string()).optional(),
121
+ recurring_interval: z.nullable(z.any()).optional(),
122
+ }).transform((v) => {
123
+ return (0, primitives_js_1.remap)(v, {
124
+ "attached_custom_fields": "attachedCustomFields",
125
+ "organization_id": "organizationId",
126
+ "recurring_interval": "recurringInterval",
127
+ });
128
+ });
129
+ /** @internal */
130
+ exports.ProductCreateOneTime$outboundSchema = z.object({
131
+ metadata: z.record(z.union([z.string(), z.number().int(), z.number(), z.boolean()])).optional(),
132
+ name: z.string(),
133
+ description: z.nullable(z.string()).optional(),
134
+ prices: z.array(z.union([
135
+ productpricemeteredunitcreate_js_1.ProductPriceMeteredUnitCreate$outboundSchema,
136
+ productpricefixedcreate_js_1.ProductPriceFixedCreate$outboundSchema,
137
+ productpricecustomcreate_js_1.ProductPriceCustomCreate$outboundSchema,
138
+ productpricefreecreate_js_1.ProductPriceFreeCreate$outboundSchema,
139
+ ])),
140
+ medias: z.nullable(z.array(z.string())).optional(),
141
+ attachedCustomFields: z.array(attachedcustomfieldcreate_js_1.AttachedCustomFieldCreate$outboundSchema)
142
+ .optional(),
143
+ organizationId: z.nullable(z.string()).optional(),
144
+ recurringInterval: z.nullable(z.any()).optional(),
145
+ }).transform((v) => {
146
+ return (0, primitives_js_1.remap)(v, {
147
+ attachedCustomFields: "attached_custom_fields",
148
+ organizationId: "organization_id",
149
+ recurringInterval: "recurring_interval",
150
+ });
151
+ });
152
+ /**
153
+ * @internal
154
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
155
+ */
156
+ var ProductCreateOneTime$;
157
+ (function (ProductCreateOneTime$) {
158
+ /** @deprecated use `ProductCreateOneTime$inboundSchema` instead. */
159
+ ProductCreateOneTime$.inboundSchema = exports.ProductCreateOneTime$inboundSchema;
160
+ /** @deprecated use `ProductCreateOneTime$outboundSchema` instead. */
161
+ ProductCreateOneTime$.outboundSchema = exports.ProductCreateOneTime$outboundSchema;
162
+ })(ProductCreateOneTime$ || (exports.ProductCreateOneTime$ = ProductCreateOneTime$ = {}));
163
+ function productCreateOneTimeToJSON(productCreateOneTime) {
164
+ return JSON.stringify(exports.ProductCreateOneTime$outboundSchema.parse(productCreateOneTime));
165
+ }
166
+ function productCreateOneTimeFromJSON(jsonString) {
167
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ProductCreateOneTime$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProductCreateOneTime' from JSON`);
168
+ }
169
+ //# sourceMappingURL=productcreateonetime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productcreateonetime.js","sourceRoot":"","sources":["../../../../src/models/components/productcreateonetime.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoIH,gFAQC;AAED,oFAQC;AA8CD,4EAMC;AAED,gFAQC;AAkGD,gEAMC;AAED,oEAQC;AApUD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,iFAKwC;AACxC,+EAKuC;AACvC,6EAKsC;AACtC,2EAKqC;AACrC,yFAK4C;AA8D5C,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AASrE,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AAErE;;;GAGG;AACH,IAAiB,6BAA6B,CAO7C;AAPD,WAAiB,6BAA6B;IAC5C,4EAA4E;IAC/D,2CAAa,GAAG,kDAA0C,CAAC;IACxE,6EAA6E;IAChE,4CAAc,GAAG,mDAA2C,CAAC;AAG5E,CAAC,EAPgB,6BAA6B,6CAA7B,6BAA6B,QAO7C;AAED,SAAgB,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,mDAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAA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