@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
@@ -0,0 +1,120 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
4
+ export declare const AmountType: {
5
+ readonly Fixed: "fixed";
6
+ };
7
+ export type AmountType = ClosedEnum<typeof AmountType>;
8
+ /**
9
+ * The type of the price.
10
+ */
11
+ export declare const ProductPriceRecurringFixedType: {
12
+ readonly Recurring: "recurring";
13
+ };
14
+ /**
15
+ * The type of the price.
16
+ */
17
+ export type ProductPriceRecurringFixedType = ClosedEnum<typeof ProductPriceRecurringFixedType>;
18
+ /**
19
+ * A recurring price for a product, i.e. a subscription.
20
+ */
21
+ export type ProductPriceRecurringFixed = {
22
+ /**
23
+ * Creation timestamp of the object.
24
+ */
25
+ createdAt: Date;
26
+ /**
27
+ * Last modification timestamp of the object.
28
+ */
29
+ modifiedAt: Date | null;
30
+ /**
31
+ * The ID of the price.
32
+ */
33
+ id: string;
34
+ amountType?: "fixed" | undefined;
35
+ /**
36
+ * The currency.
37
+ */
38
+ priceCurrency: string;
39
+ /**
40
+ * Whether the price is archived and no longer available.
41
+ */
42
+ isArchived: boolean;
43
+ /**
44
+ * The price in cents.
45
+ */
46
+ priceAmount: number;
47
+ /**
48
+ * The type of the price.
49
+ */
50
+ type?: "recurring" | undefined;
51
+ /**
52
+ * The recurring interval of the price.
53
+ */
54
+ recurringInterval: SubscriptionRecurringInterval;
55
+ };
56
+ /** @internal */
57
+ export declare const AmountType$inboundSchema: z.ZodNativeEnum<typeof AmountType>;
58
+ /** @internal */
59
+ export declare const AmountType$outboundSchema: z.ZodNativeEnum<typeof AmountType>;
60
+ /**
61
+ * @internal
62
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
+ */
64
+ export declare namespace AmountType$ {
65
+ /** @deprecated use `AmountType$inboundSchema` instead. */
66
+ const inboundSchema: z.ZodNativeEnum<{
67
+ readonly Fixed: "fixed";
68
+ }>;
69
+ /** @deprecated use `AmountType$outboundSchema` instead. */
70
+ const outboundSchema: z.ZodNativeEnum<{
71
+ readonly Fixed: "fixed";
72
+ }>;
73
+ }
74
+ /** @internal */
75
+ export declare const ProductPriceRecurringFixedType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringFixedType>;
76
+ /** @internal */
77
+ export declare const ProductPriceRecurringFixedType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringFixedType>;
78
+ /**
79
+ * @internal
80
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
81
+ */
82
+ export declare namespace ProductPriceRecurringFixedType$ {
83
+ /** @deprecated use `ProductPriceRecurringFixedType$inboundSchema` instead. */
84
+ const inboundSchema: z.ZodNativeEnum<{
85
+ readonly Recurring: "recurring";
86
+ }>;
87
+ /** @deprecated use `ProductPriceRecurringFixedType$outboundSchema` instead. */
88
+ const outboundSchema: z.ZodNativeEnum<{
89
+ readonly Recurring: "recurring";
90
+ }>;
91
+ }
92
+ /** @internal */
93
+ export declare const ProductPriceRecurringFixed$inboundSchema: z.ZodType<ProductPriceRecurringFixed, z.ZodTypeDef, unknown>;
94
+ /** @internal */
95
+ export type ProductPriceRecurringFixed$Outbound = {
96
+ created_at: string;
97
+ modified_at: string | null;
98
+ id: string;
99
+ amount_type: "fixed";
100
+ price_currency: string;
101
+ is_archived: boolean;
102
+ price_amount: number;
103
+ type: "recurring";
104
+ recurring_interval: string;
105
+ };
106
+ /** @internal */
107
+ export declare const ProductPriceRecurringFixed$outboundSchema: z.ZodType<ProductPriceRecurringFixed$Outbound, z.ZodTypeDef, ProductPriceRecurringFixed>;
108
+ /**
109
+ * @internal
110
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
111
+ */
112
+ export declare namespace ProductPriceRecurringFixed$ {
113
+ /** @deprecated use `ProductPriceRecurringFixed$inboundSchema` instead. */
114
+ const inboundSchema: z.ZodType<ProductPriceRecurringFixed, z.ZodTypeDef, unknown>;
115
+ /** @deprecated use `ProductPriceRecurringFixed$outboundSchema` instead. */
116
+ const outboundSchema: z.ZodType<ProductPriceRecurringFixed$Outbound, z.ZodTypeDef, ProductPriceRecurringFixed>;
117
+ /** @deprecated use `ProductPriceRecurringFixed$Outbound` instead. */
118
+ type Outbound = ProductPriceRecurringFixed$Outbound;
119
+ }
120
+ //# sourceMappingURL=productpricerecurringfixed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpricerecurringfixed.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringfixed.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,6BAA6B,EAG9B,MAAM,oCAAoC,CAAC;AAE5C,eAAO,MAAM,UAAU;;CAEb,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,8BAA8B;;CAEjC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,CA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B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAuBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,WAAW,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAqB1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D"}
@@ -0,0 +1,128 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ProductPriceRecurringFixed$ = exports.ProductPriceRecurringFixed$outboundSchema = exports.ProductPriceRecurringFixed$inboundSchema = exports.ProductPriceRecurringFixedType$ = exports.ProductPriceRecurringFixedType$outboundSchema = exports.ProductPriceRecurringFixedType$inboundSchema = exports.AmountType$ = exports.AmountType$outboundSchema = exports.AmountType$inboundSchema = exports.ProductPriceRecurringFixedType = exports.AmountType = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const primitives_js_1 = require("../../lib/primitives.js");
32
+ const subscriptionrecurringinterval_js_1 = require("./subscriptionrecurringinterval.js");
33
+ exports.AmountType = {
34
+ Fixed: "fixed",
35
+ };
36
+ /**
37
+ * The type of the price.
38
+ */
39
+ exports.ProductPriceRecurringFixedType = {
40
+ Recurring: "recurring",
41
+ };
42
+ /** @internal */
43
+ exports.AmountType$inboundSchema = z
44
+ .nativeEnum(exports.AmountType);
45
+ /** @internal */
46
+ exports.AmountType$outboundSchema = exports.AmountType$inboundSchema;
47
+ /**
48
+ * @internal
49
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
+ */
51
+ var AmountType$;
52
+ (function (AmountType$) {
53
+ /** @deprecated use `AmountType$inboundSchema` instead. */
54
+ AmountType$.inboundSchema = exports.AmountType$inboundSchema;
55
+ /** @deprecated use `AmountType$outboundSchema` instead. */
56
+ AmountType$.outboundSchema = exports.AmountType$outboundSchema;
57
+ })(AmountType$ || (exports.AmountType$ = AmountType$ = {}));
58
+ /** @internal */
59
+ exports.ProductPriceRecurringFixedType$inboundSchema = z.nativeEnum(exports.ProductPriceRecurringFixedType);
60
+ /** @internal */
61
+ exports.ProductPriceRecurringFixedType$outboundSchema = exports.ProductPriceRecurringFixedType$inboundSchema;
62
+ /**
63
+ * @internal
64
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
+ */
66
+ var ProductPriceRecurringFixedType$;
67
+ (function (ProductPriceRecurringFixedType$) {
68
+ /** @deprecated use `ProductPriceRecurringFixedType$inboundSchema` instead. */
69
+ ProductPriceRecurringFixedType$.inboundSchema = exports.ProductPriceRecurringFixedType$inboundSchema;
70
+ /** @deprecated use `ProductPriceRecurringFixedType$outboundSchema` instead. */
71
+ ProductPriceRecurringFixedType$.outboundSchema = exports.ProductPriceRecurringFixedType$outboundSchema;
72
+ })(ProductPriceRecurringFixedType$ || (exports.ProductPriceRecurringFixedType$ = ProductPriceRecurringFixedType$ = {}));
73
+ /** @internal */
74
+ exports.ProductPriceRecurringFixed$inboundSchema = z.object({
75
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
76
+ modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
77
+ id: z.string(),
78
+ amount_type: z.literal("fixed").optional(),
79
+ price_currency: z.string(),
80
+ is_archived: z.boolean(),
81
+ price_amount: z.number().int(),
82
+ type: z.literal("recurring").optional(),
83
+ recurring_interval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema,
84
+ }).transform((v) => {
85
+ return (0, primitives_js_1.remap)(v, {
86
+ "created_at": "createdAt",
87
+ "modified_at": "modifiedAt",
88
+ "amount_type": "amountType",
89
+ "price_currency": "priceCurrency",
90
+ "is_archived": "isArchived",
91
+ "price_amount": "priceAmount",
92
+ "recurring_interval": "recurringInterval",
93
+ });
94
+ });
95
+ /** @internal */
96
+ exports.ProductPriceRecurringFixed$outboundSchema = z.object({
97
+ createdAt: z.date().transform(v => v.toISOString()),
98
+ modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
99
+ id: z.string(),
100
+ amountType: z.literal("fixed").default("fixed"),
101
+ priceCurrency: z.string(),
102
+ isArchived: z.boolean(),
103
+ priceAmount: z.number().int(),
104
+ type: z.literal("recurring").default("recurring"),
105
+ recurringInterval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema,
106
+ }).transform((v) => {
107
+ return (0, primitives_js_1.remap)(v, {
108
+ createdAt: "created_at",
109
+ modifiedAt: "modified_at",
110
+ amountType: "amount_type",
111
+ priceCurrency: "price_currency",
112
+ isArchived: "is_archived",
113
+ priceAmount: "price_amount",
114
+ recurringInterval: "recurring_interval",
115
+ });
116
+ });
117
+ /**
118
+ * @internal
119
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
120
+ */
121
+ var ProductPriceRecurringFixed$;
122
+ (function (ProductPriceRecurringFixed$) {
123
+ /** @deprecated use `ProductPriceRecurringFixed$inboundSchema` instead. */
124
+ ProductPriceRecurringFixed$.inboundSchema = exports.ProductPriceRecurringFixed$inboundSchema;
125
+ /** @deprecated use `ProductPriceRecurringFixed$outboundSchema` instead. */
126
+ ProductPriceRecurringFixed$.outboundSchema = exports.ProductPriceRecurringFixed$outboundSchema;
127
+ })(ProductPriceRecurringFixed$ || (exports.ProductPriceRecurringFixed$ = ProductPriceRecurringFixed$ = {}));
128
+ //# sourceMappingURL=productpricerecurringfixed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpricerecurringfixed.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringfixed.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAE1D,yFAI4C;AAE/B,QAAA,UAAU,GAAG;IACxB,KAAK,EAAE,OAAO;CACN,CAAC;AAGX;;GAEG;AACU,QAAA,8BAA8B,GAAG;IAC5C,SAAS,EAAE,WAAW;CACd,CAAC;AA+CX,gBAAgB;AACH,QAAA,wBAAwB,GAAuC,CAAC;KAC1E,UAAU,CAAC,kBAA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;CAChE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,aAAa;QACzB,aAAa,EAAE,gBAAgB;QAC/B,UAAU,EAAE,aAAa;QACzB,WAAW,EAAE,cAAc;QAC3B,iBAAiB,EAAE,oBAAoB;KACxC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C"}
@@ -0,0 +1,31 @@
1
+ import * as z from "zod";
2
+ import { ProductPriceRecurringCustom, ProductPriceRecurringCustom$Outbound } from "./productpricerecurringcustom.js";
3
+ import { ProductPriceRecurringFixed, ProductPriceRecurringFixed$Outbound } from "./productpricerecurringfixed.js";
4
+ export type ProductPriceRecurringInput = (ProductPriceRecurringFixed & {
5
+ amountType: "fixed";
6
+ }) | (ProductPriceRecurringCustom & {
7
+ amountType: "custom";
8
+ });
9
+ /** @internal */
10
+ export declare const ProductPriceRecurringInput$inboundSchema: z.ZodType<ProductPriceRecurringInput, z.ZodTypeDef, unknown>;
11
+ /** @internal */
12
+ export type ProductPriceRecurringInput$Outbound = (ProductPriceRecurringFixed$Outbound & {
13
+ amount_type: "fixed";
14
+ }) | (ProductPriceRecurringCustom$Outbound & {
15
+ amount_type: "custom";
16
+ });
17
+ /** @internal */
18
+ export declare const ProductPriceRecurringInput$outboundSchema: z.ZodType<ProductPriceRecurringInput$Outbound, z.ZodTypeDef, ProductPriceRecurringInput>;
19
+ /**
20
+ * @internal
21
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
22
+ */
23
+ export declare namespace ProductPriceRecurringInput$ {
24
+ /** @deprecated use `ProductPriceRecurringInput$inboundSchema` instead. */
25
+ const inboundSchema: z.ZodType<ProductPriceRecurringInput, z.ZodTypeDef, unknown>;
26
+ /** @deprecated use `ProductPriceRecurringInput$outboundSchema` instead. */
27
+ const outboundSchema: z.ZodType<ProductPriceRecurringInput$Outbound, z.ZodTypeDef, ProductPriceRecurringInput>;
28
+ /** @deprecated use `ProductPriceRecurringInput$Outbound` instead. */
29
+ type Outbound = ProductPriceRecurringInput$Outbound;
30
+ }
31
+ //# sourceMappingURL=productpricerecurringinput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpricerecurringinput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,0BAA0B,GAClC,CAAC,0BAA0B,GAAG;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,CAAC,GACtD,CAAC,2BAA2B,GAAG;IAAE,UAAU,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAC3C,CAAC,mCAAmC,GAAG;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,CAAC,GAChE,CAAC,oCAAoC,GAAG;IAAE,WAAW,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAEvE,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAY1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D"}
@@ -0,0 +1,62 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ProductPriceRecurringInput$ = exports.ProductPriceRecurringInput$outboundSchema = exports.ProductPriceRecurringInput$inboundSchema = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const productpricerecurringcustom_js_1 = require("./productpricerecurringcustom.js");
32
+ const productpricerecurringfixed_js_1 = require("./productpricerecurringfixed.js");
33
+ /** @internal */
34
+ exports.ProductPriceRecurringInput$inboundSchema = z.union([
35
+ productpricerecurringfixed_js_1.ProductPriceRecurringFixed$inboundSchema.and(z.object({ amount_type: z.literal("fixed") }).transform((v) => ({
36
+ amountType: v.amount_type,
37
+ }))),
38
+ productpricerecurringcustom_js_1.ProductPriceRecurringCustom$inboundSchema.and(z.object({ amount_type: z.literal("custom") }).transform((v) => ({
39
+ amountType: v.amount_type,
40
+ }))),
41
+ ]);
42
+ /** @internal */
43
+ exports.ProductPriceRecurringInput$outboundSchema = z.union([
44
+ productpricerecurringfixed_js_1.ProductPriceRecurringFixed$outboundSchema.and(z.object({ amountType: z.literal("fixed") }).transform((v) => ({
45
+ amount_type: v.amountType,
46
+ }))),
47
+ productpricerecurringcustom_js_1.ProductPriceRecurringCustom$outboundSchema.and(z.object({ amountType: z.literal("custom") }).transform((v) => ({
48
+ amount_type: v.amountType,
49
+ }))),
50
+ ]);
51
+ /**
52
+ * @internal
53
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
+ */
55
+ var ProductPriceRecurringInput$;
56
+ (function (ProductPriceRecurringInput$) {
57
+ /** @deprecated use `ProductPriceRecurringInput$inboundSchema` instead. */
58
+ ProductPriceRecurringInput$.inboundSchema = exports.ProductPriceRecurringInput$inboundSchema;
59
+ /** @deprecated use `ProductPriceRecurringInput$outboundSchema` instead. */
60
+ ProductPriceRecurringInput$.outboundSchema = exports.ProductPriceRecurringInput$outboundSchema;
61
+ })(ProductPriceRecurringInput$ || (exports.ProductPriceRecurringInput$ = ProductPriceRecurringInput$ = {}));
62
+ //# sourceMappingURL=productpricerecurringinput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpricerecurringinput.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qFAK0C;AAC1C,mFAKyC;AAMzC,gBAAgB;AACH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E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C"}
@@ -0,0 +1,31 @@
1
+ import * as z from "zod";
2
+ import { ProductPriceRecurringCustom, ProductPriceRecurringCustom$Outbound } from "./productpricerecurringcustom.js";
3
+ import { ProductPriceRecurringFixed, ProductPriceRecurringFixed$Outbound } from "./productpricerecurringfixed.js";
4
+ export type ProductPriceRecurringOutput = (ProductPriceRecurringFixed & {
5
+ amountType: "fixed";
6
+ }) | (ProductPriceRecurringCustom & {
7
+ amountType: "custom";
8
+ });
9
+ /** @internal */
10
+ export declare const ProductPriceRecurringOutput$inboundSchema: z.ZodType<ProductPriceRecurringOutput, z.ZodTypeDef, unknown>;
11
+ /** @internal */
12
+ export type ProductPriceRecurringOutput$Outbound = (ProductPriceRecurringFixed$Outbound & {
13
+ amount_type: "fixed";
14
+ }) | (ProductPriceRecurringCustom$Outbound & {
15
+ amount_type: "custom";
16
+ });
17
+ /** @internal */
18
+ export declare const ProductPriceRecurringOutput$outboundSchema: z.ZodType<ProductPriceRecurringOutput$Outbound, z.ZodTypeDef, ProductPriceRecurringOutput>;
19
+ /**
20
+ * @internal
21
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
22
+ */
23
+ export declare namespace ProductPriceRecurringOutput$ {
24
+ /** @deprecated use `ProductPriceRecurringOutput$inboundSchema` instead. */
25
+ const inboundSchema: z.ZodType<ProductPriceRecurringOutput, z.ZodTypeDef, unknown>;
26
+ /** @deprecated use `ProductPriceRecurringOutput$outboundSchema` instead. */
27
+ const outboundSchema: z.ZodType<ProductPriceRecurringOutput$Outbound, z.ZodTypeDef, ProductPriceRecurringOutput>;
28
+ /** @deprecated use `ProductPriceRecurringOutput$Outbound` instead. */
29
+ type Outbound = ProductPriceRecurringOutput$Outbound;
30
+ }
31
+ //# sourceMappingURL=productpricerecurringoutput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpricerecurringoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,2BAA2B,GACnC,CAAC,0BAA0B,GAAG;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,CAAC,GACtD,CAAC,2BAA2B,GAAG;IAAE,UAAU,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAC5C,CAAC,mCAAmC,GAAG;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,CAAC,GAChE,CAAC,oCAAoC,GAAG;IAAE,WAAW,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAEvE,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAY3B,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"}
@@ -0,0 +1,62 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ProductPriceRecurringOutput$ = exports.ProductPriceRecurringOutput$outboundSchema = exports.ProductPriceRecurringOutput$inboundSchema = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const productpricerecurringcustom_js_1 = require("./productpricerecurringcustom.js");
32
+ const productpricerecurringfixed_js_1 = require("./productpricerecurringfixed.js");
33
+ /** @internal */
34
+ exports.ProductPriceRecurringOutput$inboundSchema = z.union([
35
+ productpricerecurringfixed_js_1.ProductPriceRecurringFixed$inboundSchema.and(z.object({ amount_type: z.literal("fixed") }).transform((v) => ({
36
+ amountType: v.amount_type,
37
+ }))),
38
+ productpricerecurringcustom_js_1.ProductPriceRecurringCustom$inboundSchema.and(z.object({ amount_type: z.literal("custom") }).transform((v) => ({
39
+ amountType: v.amount_type,
40
+ }))),
41
+ ]);
42
+ /** @internal */
43
+ exports.ProductPriceRecurringOutput$outboundSchema = z.union([
44
+ productpricerecurringfixed_js_1.ProductPriceRecurringFixed$outboundSchema.and(z.object({ amountType: z.literal("fixed") }).transform((v) => ({
45
+ amount_type: v.amountType,
46
+ }))),
47
+ productpricerecurringcustom_js_1.ProductPriceRecurringCustom$outboundSchema.and(z.object({ amountType: z.literal("custom") }).transform((v) => ({
48
+ amount_type: v.amountType,
49
+ }))),
50
+ ]);
51
+ /**
52
+ * @internal
53
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
+ */
55
+ var ProductPriceRecurringOutput$;
56
+ (function (ProductPriceRecurringOutput$) {
57
+ /** @deprecated use `ProductPriceRecurringOutput$inboundSchema` instead. */
58
+ ProductPriceRecurringOutput$.inboundSchema = exports.ProductPriceRecurringOutput$inboundSchema;
59
+ /** @deprecated use `ProductPriceRecurringOutput$outboundSchema` instead. */
60
+ ProductPriceRecurringOutput$.outboundSchema = exports.ProductPriceRecurringOutput$outboundSchema;
61
+ })(ProductPriceRecurringOutput$ || (exports.ProductPriceRecurringOutput$ = ProductPriceRecurringOutput$ = {}));
62
+ //# sourceMappingURL=productpricerecurringoutput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpricerecurringoutput.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qFAK0C;AAC1C,mFAKyC;AAMzC,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,KAAK,CAAC;IACV,wEAAwC,CAAC,GAAG,CAC1C,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9D,UAAU,EAAE,CAAC,CAAC,WAAW;KAC1B,CAAC,CAAC,CACJ;IACD,0EAAyC,CAAC,GAAG,CAC3C,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/D,UAAU,EAAE,CAAC,CAAC,WAAW;KAC1B,CAAC,CAAC,CACJ;CACF,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC;IACV,yEAAyC,CAAC,GAAG,CAC3C,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC7D,WAAW,EAAE,CAAC,CAAC,UAAU;KAC1B,CAAC,CAAC,CACJ;IACD,2EAA0C,CAAC,GAAG,CAC5C,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9D,WAAW,EAAE,CAAC,CAAC,UAAU;KAC1B,CAAC,CAAC,CACJ;CACF,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,8 +1,9 @@
1
1
  import * as z from "zod";
2
2
  import { ExistingProductPrice, ExistingProductPrice$Outbound } from "./existingproductprice.js";
3
- import { ProductPriceOneTimeCreate, ProductPriceOneTimeCreate$Outbound } from "./productpriceonetimecreate.js";
3
+ import { ProductPriceOneTimeCustomCreate, ProductPriceOneTimeCustomCreate$Outbound } from "./productpriceonetimecustomcreate.js";
4
+ import { ProductPriceOneTimeFixedCreate, ProductPriceOneTimeFixedCreate$Outbound } from "./productpriceonetimefixedcreate.js";
4
5
  import { ProductPriceRecurringCreate, ProductPriceRecurringCreate$Outbound } from "./productpricerecurringcreate.js";
5
- export type Prices = ExistingProductPrice | ProductPriceOneTimeCreate | ProductPriceRecurringCreate;
6
+ export type ProductUpdatePrices = ExistingProductPrice | ProductPriceOneTimeFixedCreate | ProductPriceRecurringCreate | ProductPriceOneTimeCustomCreate;
6
7
  /**
7
8
  * Schema to update a product.
8
9
  */
@@ -23,29 +24,29 @@ export type ProductUpdate = {
23
24
  /**
24
25
  * List of available prices for this product. If you want to keep existing prices, include them in the list as an `ExistingProductPrice` object.
25
26
  */
26
- prices?: Array<ExistingProductPrice | ProductPriceOneTimeCreate | ProductPriceRecurringCreate> | null | undefined;
27
+ prices?: Array<ExistingProductPrice | ProductPriceOneTimeFixedCreate | ProductPriceRecurringCreate | ProductPriceOneTimeCustomCreate> | null | undefined;
27
28
  /**
28
29
  * List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded.
29
30
  */
30
31
  medias?: Array<string> | null | undefined;
31
32
  };
32
33
  /** @internal */
33
- export declare const Prices$inboundSchema: z.ZodType<Prices, z.ZodTypeDef, unknown>;
34
+ export declare const ProductUpdatePrices$inboundSchema: z.ZodType<ProductUpdatePrices, z.ZodTypeDef, unknown>;
34
35
  /** @internal */
35
- export type Prices$Outbound = ExistingProductPrice$Outbound | ProductPriceOneTimeCreate$Outbound | ProductPriceRecurringCreate$Outbound;
36
+ export type ProductUpdatePrices$Outbound = ExistingProductPrice$Outbound | ProductPriceOneTimeFixedCreate$Outbound | ProductPriceRecurringCreate$Outbound | ProductPriceOneTimeCustomCreate$Outbound;
36
37
  /** @internal */
37
- export declare const Prices$outboundSchema: z.ZodType<Prices$Outbound, z.ZodTypeDef, Prices>;
38
+ export declare const ProductUpdatePrices$outboundSchema: z.ZodType<ProductUpdatePrices$Outbound, z.ZodTypeDef, ProductUpdatePrices>;
38
39
  /**
39
40
  * @internal
40
41
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
41
42
  */
42
- export declare namespace Prices$ {
43
- /** @deprecated use `Prices$inboundSchema` instead. */
44
- const inboundSchema: z.ZodType<Prices, z.ZodTypeDef, unknown>;
45
- /** @deprecated use `Prices$outboundSchema` instead. */
46
- const outboundSchema: z.ZodType<Prices$Outbound, z.ZodTypeDef, Prices>;
47
- /** @deprecated use `Prices$Outbound` instead. */
48
- type Outbound = Prices$Outbound;
43
+ export declare namespace ProductUpdatePrices$ {
44
+ /** @deprecated use `ProductUpdatePrices$inboundSchema` instead. */
45
+ const inboundSchema: z.ZodType<ProductUpdatePrices, z.ZodTypeDef, unknown>;
46
+ /** @deprecated use `ProductUpdatePrices$outboundSchema` instead. */
47
+ const outboundSchema: z.ZodType<ProductUpdatePrices$Outbound, z.ZodTypeDef, ProductUpdatePrices>;
48
+ /** @deprecated use `ProductUpdatePrices$Outbound` instead. */
49
+ type Outbound = ProductUpdatePrices$Outbound;
49
50
  }
50
51
  /** @internal */
51
52
  export declare const ProductUpdate$inboundSchema: z.ZodType<ProductUpdate, z.ZodTypeDef, unknown>;
@@ -55,7 +56,7 @@ export type ProductUpdate$Outbound = {
55
56
  description?: string | null | undefined;
56
57
  is_highlighted?: boolean | null | undefined;
57
58
  is_archived?: boolean | null | undefined;
58
- prices?: Array<ExistingProductPrice$Outbound | ProductPriceOneTimeCreate$Outbound | ProductPriceRecurringCreate$Outbound> | null | undefined;
59
+ prices?: Array<ExistingProductPrice$Outbound | ProductPriceOneTimeFixedCreate$Outbound | ProductPriceRecurringCreate$Outbound | ProductPriceOneTimeCustomCreate$Outbound> | null | undefined;
59
60
  medias?: Array<string> | null | undefined;
60
61
  };
61
62
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"productupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/productupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,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AAwB,CAAC;IACpD,iDAAiD;IACjD,KAAY,QAAQ,GAAG,eAAe,CAAC;CACxC;AAED,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAqBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,MAAM,CAAC,EACH,KAAK,CACH,6BAA6B,GAC7B,kCAAkC,GAClC,oCAAoC,CACvC,GACC,IAAI,GACJ,SAAS,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAqBb,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"}
1
+ {"version":3,"file":"productupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/productupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,+BAA+B,EAE/B,w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AC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAsBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,MAAM,CAAC,EACH,KAAK,CACH,6BAA6B,GAC7B,uCAAuC,GACvC,oCAAoC,GACpC,wCAAwC,CAC3C,GACC,IAAI,GACJ,SAAS,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAsBb,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"}
@@ -26,36 +26,38 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ProductUpdate$ = exports.ProductUpdate$outboundSchema = exports.ProductUpdate$inboundSchema = exports.Prices$ = exports.Prices$outboundSchema = exports.Prices$inboundSchema = void 0;
29
+ exports.ProductUpdate$ = exports.ProductUpdate$outboundSchema = exports.ProductUpdate$inboundSchema = exports.ProductUpdatePrices$ = exports.ProductUpdatePrices$outboundSchema = exports.ProductUpdatePrices$inboundSchema = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const primitives_js_1 = require("../../lib/primitives.js");
32
32
  const existingproductprice_js_1 = require("./existingproductprice.js");
33
- const productpriceonetimecreate_js_1 = require("./productpriceonetimecreate.js");
33
+ const productpriceonetimecustomcreate_js_1 = require("./productpriceonetimecustomcreate.js");
34
+ const productpriceonetimefixedcreate_js_1 = require("./productpriceonetimefixedcreate.js");
34
35
  const productpricerecurringcreate_js_1 = require("./productpricerecurringcreate.js");
35
36
  /** @internal */
36
- exports.Prices$inboundSchema = z
37
- .union([
37
+ exports.ProductUpdatePrices$inboundSchema = z.union([
38
38
  existingproductprice_js_1.ExistingProductPrice$inboundSchema,
39
- productpriceonetimecreate_js_1.ProductPriceOneTimeCreate$inboundSchema,
39
+ productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$inboundSchema,
40
40
  productpricerecurringcreate_js_1.ProductPriceRecurringCreate$inboundSchema,
41
+ productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$inboundSchema,
41
42
  ]);
42
43
  /** @internal */
43
- exports.Prices$outboundSchema = z.union([
44
+ exports.ProductUpdatePrices$outboundSchema = z.union([
44
45
  existingproductprice_js_1.ExistingProductPrice$outboundSchema,
45
- productpriceonetimecreate_js_1.ProductPriceOneTimeCreate$outboundSchema,
46
+ productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$outboundSchema,
46
47
  productpricerecurringcreate_js_1.ProductPriceRecurringCreate$outboundSchema,
48
+ productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$outboundSchema,
47
49
  ]);
48
50
  /**
49
51
  * @internal
50
52
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
53
  */
52
- var Prices$;
53
- (function (Prices$) {
54
- /** @deprecated use `Prices$inboundSchema` instead. */
55
- Prices$.inboundSchema = exports.Prices$inboundSchema;
56
- /** @deprecated use `Prices$outboundSchema` instead. */
57
- Prices$.outboundSchema = exports.Prices$outboundSchema;
58
- })(Prices$ || (exports.Prices$ = Prices$ = {}));
54
+ var ProductUpdatePrices$;
55
+ (function (ProductUpdatePrices$) {
56
+ /** @deprecated use `ProductUpdatePrices$inboundSchema` instead. */
57
+ ProductUpdatePrices$.inboundSchema = exports.ProductUpdatePrices$inboundSchema;
58
+ /** @deprecated use `ProductUpdatePrices$outboundSchema` instead. */
59
+ ProductUpdatePrices$.outboundSchema = exports.ProductUpdatePrices$outboundSchema;
60
+ })(ProductUpdatePrices$ || (exports.ProductUpdatePrices$ = ProductUpdatePrices$ = {}));
59
61
  /** @internal */
60
62
  exports.ProductUpdate$inboundSchema = z.object({
61
63
  name: z.nullable(z.string()).optional(),
@@ -64,8 +66,9 @@ exports.ProductUpdate$inboundSchema = z.object({
64
66
  is_archived: z.nullable(z.boolean()).optional(),
65
67
  prices: z.nullable(z.array(z.union([
66
68
  existingproductprice_js_1.ExistingProductPrice$inboundSchema,
67
- productpriceonetimecreate_js_1.ProductPriceOneTimeCreate$inboundSchema,
69
+ productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$inboundSchema,
68
70
  productpricerecurringcreate_js_1.ProductPriceRecurringCreate$inboundSchema,
71
+ productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$inboundSchema,
69
72
  ]))).optional(),
70
73
  medias: z.nullable(z.array(z.string())).optional(),
71
74
  }).transform((v) => {
@@ -82,8 +85,9 @@ exports.ProductUpdate$outboundSchema = z.object({
82
85
  isArchived: z.nullable(z.boolean()).optional(),
83
86
  prices: z.nullable(z.array(z.union([
84
87
  existingproductprice_js_1.ExistingProductPrice$outboundSchema,
85
- productpriceonetimecreate_js_1.ProductPriceOneTimeCreate$outboundSchema,
88
+ productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$outboundSchema,
86
89
  productpricerecurringcreate_js_1.ProductPriceRecurringCreate$outboundSchema,
90
+ productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$outboundSchema,
87
91
  ]))).optional(),
88
92
  medias: z.nullable(z.array(z.string())).optional(),
89
93
  }).transform((v) => {