@polar-sh/sdk 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/README.md +7 -6
  2. package/docs/sdks/products/README.md +2 -2
  3. package/funcs/advertisementsList.js +2 -2
  4. package/funcs/advertisementsList.js.map +1 -1
  5. package/funcs/articlesList.js +2 -2
  6. package/funcs/articlesList.js.map +1 -1
  7. package/funcs/benefitsGrants.js +2 -2
  8. package/funcs/benefitsGrants.js.map +1 -1
  9. package/funcs/benefitsList.js +2 -2
  10. package/funcs/benefitsList.js.map +1 -1
  11. package/funcs/externalOrganizationsList.js +2 -2
  12. package/funcs/externalOrganizationsList.js.map +1 -1
  13. package/funcs/filesList.js +2 -2
  14. package/funcs/filesList.js.map +1 -1
  15. package/funcs/licenseKeysList.js +2 -2
  16. package/funcs/licenseKeysList.js.map +1 -1
  17. package/funcs/oauth2ClientsList.js +2 -2
  18. package/funcs/oauth2ClientsList.js.map +1 -1
  19. package/funcs/ordersList.js +2 -2
  20. package/funcs/ordersList.js.map +1 -1
  21. package/funcs/organizationsList.js +2 -2
  22. package/funcs/organizationsList.js.map +1 -1
  23. package/funcs/productsList.js +2 -2
  24. package/funcs/productsList.js.map +1 -1
  25. package/funcs/repositoriesList.js +2 -2
  26. package/funcs/repositoriesList.js.map +1 -1
  27. package/funcs/subscriptionsList.js +2 -2
  28. package/funcs/subscriptionsList.js.map +1 -1
  29. package/funcs/usersAdvertisementsList.js +2 -2
  30. package/funcs/usersAdvertisementsList.js.map +1 -1
  31. package/funcs/usersBenefitsList.js +2 -2
  32. package/funcs/usersBenefitsList.js.map +1 -1
  33. package/funcs/usersDownloadablesList.js +2 -2
  34. package/funcs/usersDownloadablesList.js.map +1 -1
  35. package/funcs/usersLicenseKeysList.js +2 -2
  36. package/funcs/usersLicenseKeysList.js.map +1 -1
  37. package/funcs/usersOrdersList.js +2 -2
  38. package/funcs/usersOrdersList.js.map +1 -1
  39. package/funcs/usersSubscriptionsList.js +2 -2
  40. package/funcs/usersSubscriptionsList.js.map +1 -1
  41. package/lib/config.d.ts +16 -5
  42. package/lib/config.d.ts.map +1 -1
  43. package/lib/config.js +18 -12
  44. package/lib/config.js.map +1 -1
  45. package/models/components/bodysubscriptionsimport.d.ts +2 -2
  46. package/models/components/bodysubscriptionsimport.d.ts.map +1 -1
  47. package/models/components/bodysubscriptionsimport.js +2 -0
  48. package/models/components/bodysubscriptionsimport.js.map +1 -1
  49. package/models/components/index.d.ts +9 -3
  50. package/models/components/index.d.ts.map +1 -1
  51. package/models/components/index.js +9 -3
  52. package/models/components/index.js.map +1 -1
  53. package/models/components/ordersubscription.d.ts +7 -0
  54. package/models/components/ordersubscription.d.ts.map +1 -1
  55. package/models/components/ordersubscription.js +9 -0
  56. package/models/components/ordersubscription.js.map +1 -1
  57. package/models/components/organizationfeaturesettings.d.ts +0 -5
  58. package/models/components/organizationfeaturesettings.d.ts.map +1 -1
  59. package/models/components/organizationfeaturesettings.js +0 -4
  60. package/models/components/organizationfeaturesettings.js.map +1 -1
  61. package/models/components/productonetimecreate.d.ts +23 -3
  62. package/models/components/productonetimecreate.d.ts.map +1 -1
  63. package/models/components/productonetimecreate.js +33 -4
  64. package/models/components/productonetimecreate.js.map +1 -1
  65. package/models/components/productpriceinput.d.ts +3 -11
  66. package/models/components/productpriceinput.d.ts.map +1 -1
  67. package/models/components/productpriceinput.js +5 -13
  68. package/models/components/productpriceinput.js.map +1 -1
  69. package/models/components/productpriceonetime.d.ts +4 -71
  70. package/models/components/productpriceonetime.d.ts.map +1 -1
  71. package/models/components/productpriceonetime.js +11 -57
  72. package/models/components/productpriceonetime.js.map +1 -1
  73. package/models/components/productpriceonetimecustom.d.ts +124 -0
  74. package/models/components/productpriceonetimecustom.d.ts.map +1 -0
  75. package/models/components/productpriceonetimecustom.js +130 -0
  76. package/models/components/productpriceonetimecustom.js.map +1 -0
  77. package/models/components/productpriceonetimecustomcreate.d.ts +71 -0
  78. package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -0
  79. package/models/components/productpriceonetimecustomcreate.js +91 -0
  80. package/models/components/productpriceonetimecustomcreate.js.map +1 -0
  81. package/models/components/productpriceonetimefixed.d.ts +114 -0
  82. package/models/components/productpriceonetimefixed.d.ts.map +1 -0
  83. package/models/components/productpriceonetimefixed.js +122 -0
  84. package/models/components/productpriceonetimefixed.js.map +1 -0
  85. package/models/components/productpriceonetimefixedcreate.d.ts +61 -0
  86. package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -0
  87. package/models/components/{productpriceonetimecreate.js → productpriceonetimefixedcreate.js} +25 -25
  88. package/models/components/productpriceonetimefixedcreate.js.map +1 -0
  89. package/models/components/productpriceoutput.d.ts +3 -11
  90. package/models/components/productpriceoutput.d.ts.map +1 -1
  91. package/models/components/productpriceoutput.js +5 -13
  92. package/models/components/productpriceoutput.js.map +1 -1
  93. package/models/components/productpricerecurringcreate.d.ts +7 -7
  94. package/models/components/productpricerecurringcreate.d.ts.map +1 -1
  95. package/models/components/productpricerecurringcreate.js +9 -9
  96. package/models/components/productpricerecurringcreate.js.map +1 -1
  97. package/models/components/productpricerecurringcustom.d.ts +130 -0
  98. package/models/components/productpricerecurringcustom.d.ts.map +1 -0
  99. package/models/components/productpricerecurringcustom.js +135 -0
  100. package/models/components/productpricerecurringcustom.js.map +1 -0
  101. package/models/components/productpricerecurringfixed.d.ts +120 -0
  102. package/models/components/productpricerecurringfixed.d.ts.map +1 -0
  103. package/models/components/productpricerecurringfixed.js +128 -0
  104. package/models/components/productpricerecurringfixed.js.map +1 -0
  105. package/models/components/productpricerecurringinput.d.ts +31 -0
  106. package/models/components/productpricerecurringinput.d.ts.map +1 -0
  107. package/models/components/productpricerecurringinput.js +62 -0
  108. package/models/components/productpricerecurringinput.js.map +1 -0
  109. package/models/components/productpricerecurringoutput.d.ts +31 -0
  110. package/models/components/productpricerecurringoutput.d.ts.map +1 -0
  111. package/models/components/productpricerecurringoutput.js +62 -0
  112. package/models/components/productpricerecurringoutput.js.map +1 -0
  113. package/models/components/productupdate.d.ts +15 -14
  114. package/models/components/productupdate.d.ts.map +1 -1
  115. package/models/components/productupdate.js +20 -16
  116. package/models/components/productupdate.js.map +1 -1
  117. package/models/components/subscriptioninput.d.ts +7 -0
  118. package/models/components/subscriptioninput.d.ts.map +1 -1
  119. package/models/components/subscriptioninput.js +9 -0
  120. package/models/components/subscriptioninput.js.map +1 -1
  121. package/models/components/subscriptionoutput.d.ts +7 -0
  122. package/models/components/subscriptionoutput.d.ts.map +1 -1
  123. package/models/components/subscriptionoutput.js +9 -0
  124. package/models/components/subscriptionoutput.js.map +1 -1
  125. package/models/components/subscriptionrecurringinterval.d.ts +28 -0
  126. package/models/components/{productpricerecurringinterval.d.ts.map → subscriptionrecurringinterval.d.ts.map} +1 -1
  127. package/models/components/{productpricerecurringinterval.js → subscriptionrecurringinterval.js} +12 -12
  128. package/models/components/{productpricerecurringinterval.js.map → subscriptionrecurringinterval.js.map} +1 -1
  129. package/models/components/subscriptionsortproperty.d.ts +6 -6
  130. package/models/components/subscriptionsortproperty.js +2 -2
  131. package/models/components/subscriptionsortproperty.js.map +1 -1
  132. package/models/components/userordersubscription.d.ts +7 -0
  133. package/models/components/userordersubscription.d.ts.map +1 -1
  134. package/models/components/userordersubscription.js +9 -0
  135. package/models/components/userordersubscription.js.map +1 -1
  136. package/models/components/usersubscription.d.ts +10 -0
  137. package/models/components/usersubscription.d.ts.map +1 -1
  138. package/models/components/usersubscription.js +9 -0
  139. package/models/components/usersubscription.js.map +1 -1
  140. package/models/components/usersubscriptionsortproperty.d.ts +6 -6
  141. package/models/components/usersubscriptionsortproperty.js +2 -2
  142. package/models/components/usersubscriptionsortproperty.js.map +1 -1
  143. package/package.json +1 -1
  144. package/src/funcs/advertisementsList.ts +2 -2
  145. package/src/funcs/articlesList.ts +2 -2
  146. package/src/funcs/benefitsGrants.ts +2 -2
  147. package/src/funcs/benefitsList.ts +2 -2
  148. package/src/funcs/externalOrganizationsList.ts +2 -2
  149. package/src/funcs/filesList.ts +2 -2
  150. package/src/funcs/licenseKeysList.ts +2 -2
  151. package/src/funcs/oauth2ClientsList.ts +2 -2
  152. package/src/funcs/ordersList.ts +2 -2
  153. package/src/funcs/organizationsList.ts +2 -2
  154. package/src/funcs/productsList.ts +2 -2
  155. package/src/funcs/repositoriesList.ts +2 -2
  156. package/src/funcs/subscriptionsList.ts +2 -2
  157. package/src/funcs/usersAdvertisementsList.ts +2 -2
  158. package/src/funcs/usersBenefitsList.ts +2 -2
  159. package/src/funcs/usersDownloadablesList.ts +2 -2
  160. package/src/funcs/usersLicenseKeysList.ts +2 -2
  161. package/src/funcs/usersOrdersList.ts +2 -2
  162. package/src/funcs/usersSubscriptionsList.ts +2 -2
  163. package/src/lib/config.ts +18 -12
  164. package/src/models/components/bodysubscriptionsimport.ts +4 -2
  165. package/src/models/components/index.ts +9 -3
  166. package/src/models/components/ordersubscription.ts +19 -0
  167. package/src/models/components/organizationfeaturesettings.ts +0 -9
  168. package/src/models/components/productonetimecreate.ts +69 -9
  169. package/src/models/components/productpriceinput.ts +13 -29
  170. package/src/models/components/productpriceonetime.ts +27 -115
  171. package/src/models/components/productpriceonetimecustom.ts +201 -0
  172. package/src/models/components/productpriceonetimecustomcreate.ts +122 -0
  173. package/src/models/components/productpriceonetimefixed.ts +182 -0
  174. package/src/models/components/productpriceonetimefixedcreate.ts +103 -0
  175. package/src/models/components/productpriceoutput.ts +13 -29
  176. package/src/models/components/productpricerecurringcreate.ts +18 -18
  177. package/src/models/components/productpricerecurringcustom.ts +216 -0
  178. package/src/models/components/productpricerecurringfixed.ts +191 -0
  179. package/src/models/components/productpricerecurringinput.ts +75 -0
  180. package/src/models/components/productpricerecurringoutput.ts +75 -0
  181. package/src/models/components/productupdate.ts +49 -32
  182. package/src/models/components/subscriptioninput.ts +19 -0
  183. package/src/models/components/subscriptionoutput.ts +19 -0
  184. package/src/models/components/subscriptionrecurringinterval.ts +35 -0
  185. package/src/models/components/subscriptionsortproperty.ts +2 -2
  186. package/src/models/components/userordersubscription.ts +19 -0
  187. package/src/models/components/usersubscription.ts +22 -0
  188. package/src/models/components/usersubscriptionsortproperty.ts +2 -2
  189. package/models/components/productpriceonetimecreate.d.ts +0 -61
  190. package/models/components/productpriceonetimecreate.d.ts.map +0 -1
  191. package/models/components/productpriceonetimecreate.js.map +0 -1
  192. package/models/components/productpricerecurring.d.ts +0 -96
  193. package/models/components/productpricerecurring.d.ts.map +0 -1
  194. package/models/components/productpricerecurring.js +0 -105
  195. package/models/components/productpricerecurring.js.map +0 -1
  196. package/models/components/productpricerecurringinterval.d.ts +0 -28
  197. package/src/models/components/productpriceonetimecreate.ts +0 -102
  198. package/src/models/components/productpricerecurring.ts +0 -161
  199. package/src/models/components/productpricerecurringinterval.ts +0 -35
@@ -4,10 +4,6 @@ export type OrganizationFeatureSettings = {
4
4
  * If this organization has articles enabled
5
5
  */
6
6
  articlesEnabled?: boolean | undefined;
7
- /**
8
- * If this organization has subscriptions enabled
9
- */
10
- subscriptionsEnabled?: boolean | undefined;
11
7
  /**
12
8
  * If this organization has issue funding enabled
13
9
  */
@@ -18,7 +14,6 @@ export declare const OrganizationFeatureSettings$inboundSchema: z.ZodType<Organi
18
14
  /** @internal */
19
15
  export type OrganizationFeatureSettings$Outbound = {
20
16
  articles_enabled: boolean;
21
- subscriptions_enabled: boolean;
22
17
  issue_funding_enabled: boolean;
23
18
  };
24
19
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"organizationfeaturesettings.d.ts","sourceRoot":"","sources":["../../src/models/components/organizationfeaturesettings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAW3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
1
+ {"version":3,"file":"organizationfeaturesettings.d.ts","sourceRoot":"","sources":["../../src/models/components/organizationfeaturesettings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAS3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
@@ -32,24 +32,20 @@ const primitives_js_1 = require("../../lib/primitives.js");
32
32
  /** @internal */
33
33
  exports.OrganizationFeatureSettings$inboundSchema = z.object({
34
34
  articles_enabled: z.boolean().default(false),
35
- subscriptions_enabled: z.boolean().default(false),
36
35
  issue_funding_enabled: z.boolean().default(false),
37
36
  }).transform((v) => {
38
37
  return (0, primitives_js_1.remap)(v, {
39
38
  "articles_enabled": "articlesEnabled",
40
- "subscriptions_enabled": "subscriptionsEnabled",
41
39
  "issue_funding_enabled": "issueFundingEnabled",
42
40
  });
43
41
  });
44
42
  /** @internal */
45
43
  exports.OrganizationFeatureSettings$outboundSchema = z.object({
46
44
  articlesEnabled: z.boolean().default(false),
47
- subscriptionsEnabled: z.boolean().default(false),
48
45
  issueFundingEnabled: z.boolean().default(false),
49
46
  }).transform((v) => {
50
47
  return (0, primitives_js_1.remap)(v, {
51
48
  articlesEnabled: "articles_enabled",
52
- subscriptionsEnabled: "subscriptions_enabled",
53
49
  issueFundingEnabled: "issue_funding_enabled",
54
50
  });
55
51
  });
@@ -1 +1 @@
1
- {"version":3,"file":"organizationfeaturesettings.js","sourceRoot":"","sources":["../../src/models/components/organizationfeaturesettings.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAiB1D,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,gBAA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turesettings.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAa1D,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5C,qBAAqB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CAClD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,iBAAiB;QACrC,uBAAuB,EAAE,qBAAqB;KAC/C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAC3C,mBAAmB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,kBAAkB;QACnC,mBAAmB,EAAE,uBAAuB;KAC7C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
@@ -1,5 +1,7 @@
1
1
  import * as z from "zod";
2
- import { ProductPriceOneTimeCreate, ProductPriceOneTimeCreate$Outbound } from "./productpriceonetimecreate.js";
2
+ import { ProductPriceOneTimeCustomCreate, ProductPriceOneTimeCustomCreate$Outbound } from "./productpriceonetimecustomcreate.js";
3
+ import { ProductPriceOneTimeFixedCreate, ProductPriceOneTimeFixedCreate$Outbound } from "./productpriceonetimefixedcreate.js";
4
+ export type Prices = ProductPriceOneTimeFixedCreate | ProductPriceOneTimeCustomCreate;
3
5
  /**
4
6
  * Schema to create a one-time product.
5
7
  */
@@ -15,7 +17,7 @@ export type ProductOneTimeCreate = {
15
17
  /**
16
18
  * List of available prices for this product.
17
19
  */
18
- prices: Array<ProductPriceOneTimeCreate>;
20
+ prices: Array<ProductPriceOneTimeFixedCreate | ProductPriceOneTimeCustomCreate>;
19
21
  /**
20
22
  * List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded.
21
23
  */
@@ -26,12 +28,30 @@ export type ProductOneTimeCreate = {
26
28
  organizationId?: string | null | undefined;
27
29
  };
28
30
  /** @internal */
31
+ export declare const Prices$inboundSchema: z.ZodType<Prices, z.ZodTypeDef, unknown>;
32
+ /** @internal */
33
+ export type Prices$Outbound = ProductPriceOneTimeFixedCreate$Outbound | ProductPriceOneTimeCustomCreate$Outbound;
34
+ /** @internal */
35
+ export declare const Prices$outboundSchema: z.ZodType<Prices$Outbound, z.ZodTypeDef, Prices>;
36
+ /**
37
+ * @internal
38
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
39
+ */
40
+ export declare namespace Prices$ {
41
+ /** @deprecated use `Prices$inboundSchema` instead. */
42
+ const inboundSchema: z.ZodType<Prices, z.ZodTypeDef, unknown>;
43
+ /** @deprecated use `Prices$outboundSchema` instead. */
44
+ const outboundSchema: z.ZodType<Prices$Outbound, z.ZodTypeDef, Prices>;
45
+ /** @deprecated use `Prices$Outbound` instead. */
46
+ type Outbound = Prices$Outbound;
47
+ }
48
+ /** @internal */
29
49
  export declare const ProductOneTimeCreate$inboundSchema: z.ZodType<ProductOneTimeCreate, z.ZodTypeDef, unknown>;
30
50
  /** @internal */
31
51
  export type ProductOneTimeCreate$Outbound = {
32
52
  name: string;
33
53
  description?: string | null | undefined;
34
- prices: Array<ProductPriceOneTimeCreate$Outbound>;
54
+ prices: Array<ProductPriceOneTimeFixedCreate$Outbound | ProductPriceOneTimeCustomCreate$Outbound>;
35
55
  medias?: Array<string> | null | undefined;
36
56
  organization_id?: string | null | undefined;
37
57
  };
@@ -1 +1 @@
1
- {"version":3,"file":"productonetimecreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productonetimecreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,MAAM,EAAE,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAClD,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAWpB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD"}
1
+ {"version":3,"file":"productonetimecreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productonetimecreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,8BAA8B,EAE9B,uCAAuC,EAExC,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,MAAM,GACd,8BAA8B,GAC9B,+BAA+B,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,MAAM,EAAE,KAAK,CACX,8BAA8B,GAAG,+BAA+B,CACjE,CAAC;IACF;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EA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6BAA6B,CAAC;CACtD"}
@@ -26,15 +26,41 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ProductOneTimeCreate$ = exports.ProductOneTimeCreate$outboundSchema = exports.ProductOneTimeCreate$inboundSchema = void 0;
29
+ exports.ProductOneTimeCreate$ = exports.ProductOneTimeCreate$outboundSchema = exports.ProductOneTimeCreate$inboundSchema = exports.Prices$ = exports.Prices$outboundSchema = exports.Prices$inboundSchema = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const primitives_js_1 = require("../../lib/primitives.js");
32
- const productpriceonetimecreate_js_1 = require("./productpriceonetimecreate.js");
32
+ const productpriceonetimecustomcreate_js_1 = require("./productpriceonetimecustomcreate.js");
33
+ const productpriceonetimefixedcreate_js_1 = require("./productpriceonetimefixedcreate.js");
34
+ /** @internal */
35
+ exports.Prices$inboundSchema = z
36
+ .union([
37
+ productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$inboundSchema,
38
+ productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$inboundSchema,
39
+ ]);
40
+ /** @internal */
41
+ exports.Prices$outboundSchema = z.union([
42
+ productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$outboundSchema,
43
+ productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$outboundSchema,
44
+ ]);
45
+ /**
46
+ * @internal
47
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
+ */
49
+ var Prices$;
50
+ (function (Prices$) {
51
+ /** @deprecated use `Prices$inboundSchema` instead. */
52
+ Prices$.inboundSchema = exports.Prices$inboundSchema;
53
+ /** @deprecated use `Prices$outboundSchema` instead. */
54
+ Prices$.outboundSchema = exports.Prices$outboundSchema;
55
+ })(Prices$ || (exports.Prices$ = Prices$ = {}));
33
56
  /** @internal */
34
57
  exports.ProductOneTimeCreate$inboundSchema = z.object({
35
58
  name: z.string(),
36
59
  description: z.nullable(z.string()).optional(),
37
- prices: z.array(productpriceonetimecreate_js_1.ProductPriceOneTimeCreate$inboundSchema),
60
+ prices: z.array(z.union([
61
+ productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$inboundSchema,
62
+ productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$inboundSchema,
63
+ ])),
38
64
  medias: z.nullable(z.array(z.string())).optional(),
39
65
  organization_id: z.nullable(z.string()).optional(),
40
66
  }).transform((v) => {
@@ -46,7 +72,10 @@ exports.ProductOneTimeCreate$inboundSchema = z.object({
46
72
  exports.ProductOneTimeCreate$outboundSchema = z.object({
47
73
  name: z.string(),
48
74
  description: z.nullable(z.string()).optional(),
49
- prices: z.array(productpriceonetimecreate_js_1.ProductPriceOneTimeCreate$outboundSchema),
75
+ prices: z.array(z.union([
76
+ productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$outboundSchema,
77
+ productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$outboundSchema,
78
+ ])),
50
79
  medias: z.nullable(z.array(z.string())).optional(),
51
80
  organizationId: z.nullable(z.string()).optional(),
52
81
  }).transform((v) => {
@@ -1 +1 @@
1
- {"version":3,"file":"productonetimecreate.js","sourceRoot":"","sources":["../../src/models/components/productonetimecreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,iFAKwC;AA4BxC,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,sEAAuC,CAAC;IACxD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,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AC;AACL,CAAC,CAAC,CAAC;AAcH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,MAAM,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,KAAK,CAAC;QACN,iFAA6C;QAC7C,mFAA8C;KAC/C,CAAC,CACH;IACD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClD,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,0CAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC"}
@@ -1,19 +1,11 @@
1
1
  import * as z from "zod";
2
2
  import { ProductPriceOneTime, ProductPriceOneTime$Outbound } from "./productpriceonetime.js";
3
- import { ProductPriceRecurring, ProductPriceRecurring$Outbound } from "./productpricerecurring.js";
4
- export type ProductPriceInput = (ProductPriceOneTime & {
5
- type: "one_time";
6
- }) | (ProductPriceRecurring & {
7
- type: "recurring";
8
- });
3
+ import { ProductPriceRecurringInput, ProductPriceRecurringInput$Outbound } from "./productpricerecurringinput.js";
4
+ export type ProductPriceInput = ProductPriceRecurringInput | ProductPriceOneTime;
9
5
  /** @internal */
10
6
  export declare const ProductPriceInput$inboundSchema: z.ZodType<ProductPriceInput, z.ZodTypeDef, unknown>;
11
7
  /** @internal */
12
- export type ProductPriceInput$Outbound = (ProductPriceOneTime$Outbound & {
13
- type: "one_time";
14
- }) | (ProductPriceRecurring$Outbound & {
15
- type: "recurring";
16
- });
8
+ export type ProductPriceInput$Outbound = ProductPriceRecurringInput$Outbound | ProductPriceOneTime$Outbound;
17
9
  /** @internal */
18
10
  export declare const ProductPriceInput$outboundSchema: z.ZodType<ProductPriceInput$Outbound, z.ZodTypeDef, ProductPriceInput>;
19
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"productpriceinput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,iBAAiB,GACzB,CAAC,mBAAmB,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,GAC5C,CAAC,qBAAqB,GAAG;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,CAAC,CAAC;AAEpD,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAClC,CAAC,4BAA4B,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,GACrD,CAAC,8BAA8B,GAAG;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,CAAC,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAYjB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD"}
1
+ {"version":3,"file":"productpriceinput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,iBAAiB,GACzB,0BAA0B,GAC1B,mBAAmB,CAAC;AAExB,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAClC,mCAAmC,GACnC,4BAA4B,CAAC;AAEjC,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAIjB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD"}
@@ -29,24 +29,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ProductPriceInput$ = exports.ProductPriceInput$outboundSchema = exports.ProductPriceInput$inboundSchema = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const productpriceonetime_js_1 = require("./productpriceonetime.js");
32
- const productpricerecurring_js_1 = require("./productpricerecurring.js");
32
+ const productpricerecurringinput_js_1 = require("./productpricerecurringinput.js");
33
33
  /** @internal */
34
34
  exports.ProductPriceInput$inboundSchema = z.union([
35
- productpriceonetime_js_1.ProductPriceOneTime$inboundSchema.and(z.object({ type: z.literal("one_time") }).transform((v) => ({
36
- type: v.type,
37
- }))),
38
- productpricerecurring_js_1.ProductPriceRecurring$inboundSchema.and(z.object({ type: z.literal("recurring") }).transform((v) => ({
39
- type: v.type,
40
- }))),
35
+ productpricerecurringinput_js_1.ProductPriceRecurringInput$inboundSchema,
36
+ productpriceonetime_js_1.ProductPriceOneTime$inboundSchema,
41
37
  ]);
42
38
  /** @internal */
43
39
  exports.ProductPriceInput$outboundSchema = z.union([
44
- productpriceonetime_js_1.ProductPriceOneTime$outboundSchema.and(z.object({ type: z.literal("one_time") }).transform((v) => ({
45
- type: v.type,
46
- }))),
47
- productpricerecurring_js_1.ProductPriceRecurring$outboundSchema.and(z.object({ type: z.literal("recurring") }).transform((v) => ({
48
- type: v.type,
49
- }))),
40
+ productpricerecurringinput_js_1.ProductPriceRecurringInput$outboundSchema,
41
+ productpriceonetime_js_1.ProductPriceOneTime$outboundSchema,
50
42
  ]);
51
43
  /**
52
44
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"productpriceinput.js","sourceRoot":"","sources":["../../src/models/components/productpriceinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qEAKkC;AAClC,yEAKoC;AAMpC,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,KAAK,CAAC;IACV,0DAAiC,CAAC,GAAG,CACnC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAA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ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qEAKkC;AAClC,mFAKyC;AAMzC,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,KAAK,CAAC;IACV,wEAAwC;IACxC,0DAAiC;CAClC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,KAAK,CAAC;IACV,yEAAyC;IACzC,2DAAkC;CACnC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC"}
@@ -1,78 +1,11 @@
1
1
  import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- /**
4
- * The type of the price.
5
- */
6
- export declare const ProductPriceOneTimeType: {
7
- readonly OneTime: "one_time";
8
- };
9
- /**
10
- * The type of the price.
11
- */
12
- export type ProductPriceOneTimeType = ClosedEnum<typeof ProductPriceOneTimeType>;
13
- /**
14
- * A one-time price for a product.
15
- */
16
- export type ProductPriceOneTime = {
17
- /**
18
- * Creation timestamp of the object.
19
- */
20
- createdAt: Date;
21
- /**
22
- * Last modification timestamp of the object.
23
- */
24
- modifiedAt: Date | null;
25
- /**
26
- * The ID of the price.
27
- */
28
- id: string;
29
- /**
30
- * The price in cents.
31
- */
32
- priceAmount: number;
33
- /**
34
- * The currency.
35
- */
36
- priceCurrency: string;
37
- /**
38
- * Whether the price is archived and no longer available.
39
- */
40
- isArchived: boolean;
41
- /**
42
- * The type of the price.
43
- */
44
- type?: "one_time" | undefined;
45
- };
46
- /** @internal */
47
- export declare const ProductPriceOneTimeType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeType>;
48
- /** @internal */
49
- export declare const ProductPriceOneTimeType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeType>;
50
- /**
51
- * @internal
52
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
- */
54
- export declare namespace ProductPriceOneTimeType$ {
55
- /** @deprecated use `ProductPriceOneTimeType$inboundSchema` instead. */
56
- const inboundSchema: z.ZodNativeEnum<{
57
- readonly OneTime: "one_time";
58
- }>;
59
- /** @deprecated use `ProductPriceOneTimeType$outboundSchema` instead. */
60
- const outboundSchema: z.ZodNativeEnum<{
61
- readonly OneTime: "one_time";
62
- }>;
63
- }
2
+ import { ProductPriceOneTimeCustom, ProductPriceOneTimeCustom$Outbound } from "./productpriceonetimecustom.js";
3
+ import { ProductPriceOneTimeFixed, ProductPriceOneTimeFixed$Outbound } from "./productpriceonetimefixed.js";
4
+ export type ProductPriceOneTime = ProductPriceOneTimeFixed | ProductPriceOneTimeCustom;
64
5
  /** @internal */
65
6
  export declare const ProductPriceOneTime$inboundSchema: z.ZodType<ProductPriceOneTime, z.ZodTypeDef, unknown>;
66
7
  /** @internal */
67
- export type ProductPriceOneTime$Outbound = {
68
- created_at: string;
69
- modified_at: string | null;
70
- id: string;
71
- price_amount: number;
72
- price_currency: string;
73
- is_archived: boolean;
74
- type: "one_time";
75
- };
8
+ export type ProductPriceOneTime$Outbound = ProductPriceOneTimeFixed$Outbound | ProductPriceOneTimeCustom$Outbound;
76
9
  /** @internal */
77
10
  export declare const ProductPriceOneTime$outboundSchema: z.ZodType<ProductPriceOneTime$Outbound, z.ZodTypeDef, ProductPriceOneTime>;
78
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"productpriceonetime.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceonetime.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,uBAAuB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,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAiBnB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD"}
1
+ {"version":3,"file":"productpriceonetime.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceonetime.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wBAAwB,EAExB,iCAAiC,EAElC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,mBAAmB,GAC3B,wBAAwB,GACxB,yBAAyB,CAAC;AAE9B,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GACpC,iCAAiC,GACjC,kCAAkC,CAAC;AAEvC,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAInB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD"}
@@ -26,66 +26,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ProductPriceOneTime$ = exports.ProductPriceOneTime$outboundSchema = exports.ProductPriceOneTime$inboundSchema = exports.ProductPriceOneTimeType$ = exports.ProductPriceOneTimeType$outboundSchema = exports.ProductPriceOneTimeType$inboundSchema = exports.ProductPriceOneTimeType = void 0;
29
+ exports.ProductPriceOneTime$ = exports.ProductPriceOneTime$outboundSchema = exports.ProductPriceOneTime$inboundSchema = void 0;
30
30
  const z = __importStar(require("zod"));
31
- const primitives_js_1 = require("../../lib/primitives.js");
32
- /**
33
- * The type of the price.
34
- */
35
- exports.ProductPriceOneTimeType = {
36
- OneTime: "one_time",
37
- };
31
+ const productpriceonetimecustom_js_1 = require("./productpriceonetimecustom.js");
32
+ const productpriceonetimefixed_js_1 = require("./productpriceonetimefixed.js");
38
33
  /** @internal */
39
- exports.ProductPriceOneTimeType$inboundSchema = z.nativeEnum(exports.ProductPriceOneTimeType);
34
+ exports.ProductPriceOneTime$inboundSchema = z.union([
35
+ productpriceonetimefixed_js_1.ProductPriceOneTimeFixed$inboundSchema,
36
+ productpriceonetimecustom_js_1.ProductPriceOneTimeCustom$inboundSchema,
37
+ ]);
40
38
  /** @internal */
41
- exports.ProductPriceOneTimeType$outboundSchema = exports.ProductPriceOneTimeType$inboundSchema;
42
- /**
43
- * @internal
44
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
45
- */
46
- var ProductPriceOneTimeType$;
47
- (function (ProductPriceOneTimeType$) {
48
- /** @deprecated use `ProductPriceOneTimeType$inboundSchema` instead. */
49
- ProductPriceOneTimeType$.inboundSchema = exports.ProductPriceOneTimeType$inboundSchema;
50
- /** @deprecated use `ProductPriceOneTimeType$outboundSchema` instead. */
51
- ProductPriceOneTimeType$.outboundSchema = exports.ProductPriceOneTimeType$outboundSchema;
52
- })(ProductPriceOneTimeType$ || (exports.ProductPriceOneTimeType$ = ProductPriceOneTimeType$ = {}));
53
- /** @internal */
54
- exports.ProductPriceOneTime$inboundSchema = z.object({
55
- created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
56
- modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
57
- id: z.string(),
58
- price_amount: z.number().int(),
59
- price_currency: z.string(),
60
- is_archived: z.boolean(),
61
- type: z.literal("one_time").optional(),
62
- }).transform((v) => {
63
- return (0, primitives_js_1.remap)(v, {
64
- "created_at": "createdAt",
65
- "modified_at": "modifiedAt",
66
- "price_amount": "priceAmount",
67
- "price_currency": "priceCurrency",
68
- "is_archived": "isArchived",
69
- });
70
- });
71
- /** @internal */
72
- exports.ProductPriceOneTime$outboundSchema = z.object({
73
- createdAt: z.date().transform(v => v.toISOString()),
74
- modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
75
- id: z.string(),
76
- priceAmount: z.number().int(),
77
- priceCurrency: z.string(),
78
- isArchived: z.boolean(),
79
- type: z.literal("one_time").default("one_time"),
80
- }).transform((v) => {
81
- return (0, primitives_js_1.remap)(v, {
82
- createdAt: "created_at",
83
- modifiedAt: "modified_at",
84
- priceAmount: "price_amount",
85
- priceCurrency: "price_currency",
86
- isArchived: "is_archived",
87
- });
88
- });
39
+ exports.ProductPriceOneTime$outboundSchema = z.union([
40
+ productpriceonetimefixed_js_1.ProductPriceOneTimeFixed$outboundSchema,
41
+ productpriceonetimecustom_js_1.ProductPriceOneTimeCustom$outboundSchema,
42
+ ]);
89
43
  /**
90
44
  * @internal
91
45
  * @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":"productpriceonetime.js","sourceRoot":"","sources":["../../src/models/components/productpriceonetime.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAG1D;;GAEG;AACU,QAAA,uBAAuB,GAAG;IACrC,OAAO,EAAE,UAAU;CACX,CAAC;AA0CX,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[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,iFAKwC;AACxC,+EAKuC;AAMvC,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,KAAK,CAAC;IACV,oEAAsC;IACtC,sEAAuC;CACxC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,KAAK,CAAC;IACV,qEAAuC;IACvC,uEAAwC;CACzC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC"}
@@ -0,0 +1,124 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ export declare const ProductPriceOneTimeCustomAmountType: {
4
+ readonly Custom: "custom";
5
+ };
6
+ export type ProductPriceOneTimeCustomAmountType = ClosedEnum<typeof ProductPriceOneTimeCustomAmountType>;
7
+ /**
8
+ * The type of the price.
9
+ */
10
+ export declare const ProductPriceOneTimeCustomType: {
11
+ readonly OneTime: "one_time";
12
+ };
13
+ /**
14
+ * The type of the price.
15
+ */
16
+ export type ProductPriceOneTimeCustomType = ClosedEnum<typeof ProductPriceOneTimeCustomType>;
17
+ /**
18
+ * A pay-what-you-want price for a one-time product.
19
+ */
20
+ export type ProductPriceOneTimeCustom = {
21
+ /**
22
+ * Creation timestamp of the object.
23
+ */
24
+ createdAt: Date;
25
+ /**
26
+ * Last modification timestamp of the object.
27
+ */
28
+ modifiedAt: Date | null;
29
+ /**
30
+ * The ID of the price.
31
+ */
32
+ id: string;
33
+ amountType?: "custom" | undefined;
34
+ /**
35
+ * The currency.
36
+ */
37
+ priceCurrency: string;
38
+ /**
39
+ * Whether the price is archived and no longer available.
40
+ */
41
+ isArchived: boolean;
42
+ /**
43
+ * The minimum amount the customer can pay.
44
+ */
45
+ minimumAmount: number | null;
46
+ /**
47
+ * The maximum amount the customer can pay.
48
+ */
49
+ maximumAmount: number | null;
50
+ /**
51
+ * The initial amount shown to the customer.
52
+ */
53
+ presetAmount: number | null;
54
+ /**
55
+ * The type of the price.
56
+ */
57
+ type?: "one_time" | undefined;
58
+ };
59
+ /** @internal */
60
+ export declare const ProductPriceOneTimeCustomAmountType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomAmountType>;
61
+ /** @internal */
62
+ export declare const ProductPriceOneTimeCustomAmountType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomAmountType>;
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ export declare namespace ProductPriceOneTimeCustomAmountType$ {
68
+ /** @deprecated use `ProductPriceOneTimeCustomAmountType$inboundSchema` instead. */
69
+ const inboundSchema: z.ZodNativeEnum<{
70
+ readonly Custom: "custom";
71
+ }>;
72
+ /** @deprecated use `ProductPriceOneTimeCustomAmountType$outboundSchema` instead. */
73
+ const outboundSchema: z.ZodNativeEnum<{
74
+ readonly Custom: "custom";
75
+ }>;
76
+ }
77
+ /** @internal */
78
+ export declare const ProductPriceOneTimeCustomType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomType>;
79
+ /** @internal */
80
+ export declare const ProductPriceOneTimeCustomType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomType>;
81
+ /**
82
+ * @internal
83
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
84
+ */
85
+ export declare namespace ProductPriceOneTimeCustomType$ {
86
+ /** @deprecated use `ProductPriceOneTimeCustomType$inboundSchema` instead. */
87
+ const inboundSchema: z.ZodNativeEnum<{
88
+ readonly OneTime: "one_time";
89
+ }>;
90
+ /** @deprecated use `ProductPriceOneTimeCustomType$outboundSchema` instead. */
91
+ const outboundSchema: z.ZodNativeEnum<{
92
+ readonly OneTime: "one_time";
93
+ }>;
94
+ }
95
+ /** @internal */
96
+ export declare const ProductPriceOneTimeCustom$inboundSchema: z.ZodType<ProductPriceOneTimeCustom, z.ZodTypeDef, unknown>;
97
+ /** @internal */
98
+ export type ProductPriceOneTimeCustom$Outbound = {
99
+ created_at: string;
100
+ modified_at: string | null;
101
+ id: string;
102
+ amount_type: "custom";
103
+ price_currency: string;
104
+ is_archived: boolean;
105
+ minimum_amount: number | null;
106
+ maximum_amount: number | null;
107
+ preset_amount: number | null;
108
+ type: "one_time";
109
+ };
110
+ /** @internal */
111
+ export declare const ProductPriceOneTimeCustom$outboundSchema: z.ZodType<ProductPriceOneTimeCustom$Outbound, z.ZodTypeDef, ProductPriceOneTimeCustom>;
112
+ /**
113
+ * @internal
114
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
115
+ */
116
+ export declare namespace ProductPriceOneTimeCustom$ {
117
+ /** @deprecated use `ProductPriceOneTimeCustom$inboundSchema` instead. */
118
+ const inboundSchema: z.ZodType<ProductPriceOneTimeCustom, z.ZodTypeDef, unknown>;
119
+ /** @deprecated use `ProductPriceOneTimeCustom$outboundSchema` instead. */
120
+ const outboundSchema: z.ZodType<ProductPriceOneTimeCustom$Outbound, z.ZodTypeDef, ProductPriceOneTimeCustom>;
121
+ /** @deprecated use `ProductPriceOneTimeCustom$Outbound` instead. */
122
+ type Outbound = ProductPriceOneTimeCustom$Outbound;
123
+ }
124
+ //# sourceMappingURL=productpriceonetimecustom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpriceonetimecustom.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceonetimecustom.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,mCAAmC;;CAEtC,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