chargebee 3.34.0 → 3.36.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 (198) hide show
  1. package/CHANGELOG.md +237 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +230 -2
  4. package/cjs/resources/webhook/eventType.js +25 -1
  5. package/cjs/schema/addon.schema.js +221 -40
  6. package/cjs/schema/alert.schema.js +17 -2
  7. package/cjs/schema/alert_status.schema.js +6 -1
  8. package/cjs/schema/attached_item.schema.js +101 -26
  9. package/cjs/schema/business_entity.schema.js +43 -6
  10. package/cjs/schema/business_rule.schema.js +2 -2
  11. package/cjs/schema/business_ruleset.schema.js +2 -2
  12. package/cjs/schema/collections_payment_promise.schema.js +43 -0
  13. package/cjs/schema/comment.schema.js +17 -4
  14. package/cjs/schema/coupon.schema.js +218 -37
  15. package/cjs/schema/coupon_code.schema.js +36 -6
  16. package/cjs/schema/coupon_set.schema.js +108 -27
  17. package/cjs/schema/credit_note.schema.js +497 -105
  18. package/cjs/schema/credit_unit.schema.js +12 -2
  19. package/cjs/schema/customer.schema.js +212 -62
  20. package/cjs/schema/differential_price.schema.js +100 -12
  21. package/cjs/schema/dispute.schema.js +125 -33
  22. package/cjs/schema/einvoice.schema.js +27 -6
  23. package/cjs/schema/email_log.schema.js +15 -4
  24. package/cjs/schema/entitlement.schema.js +35 -6
  25. package/cjs/schema/entitlement_override.schema.js +17 -1
  26. package/cjs/schema/estimate.schema.js +585 -40
  27. package/cjs/schema/event.schema.js +1334 -585
  28. package/cjs/schema/export.schema.js +4459 -1412
  29. package/cjs/schema/feature.schema.js +73 -11
  30. package/cjs/schema/gateway_request_log.schema.js +309 -0
  31. package/cjs/schema/gateway_webhook_log.schema.js +257 -0
  32. package/cjs/schema/gift.schema.js +51 -5
  33. package/cjs/schema/grant_block.schema.js +45 -12
  34. package/cjs/schema/hosted_page.schema.js +564 -68
  35. package/cjs/schema/index.js +6 -0
  36. package/cjs/schema/invoice.schema.js +843 -123
  37. package/cjs/schema/item.schema.js +151 -28
  38. package/cjs/schema/item_entitlement.schema.js +23 -2
  39. package/cjs/schema/item_family.schema.js +29 -8
  40. package/cjs/schema/item_price.schema.js +263 -48
  41. package/cjs/schema/ledger_account_balance.schema.js +11 -2
  42. package/cjs/schema/ledger_operation.schema.js +44 -17
  43. package/cjs/schema/metered_feature.schema.js +10 -1
  44. package/cjs/schema/omnichannel_one_time_order.schema.js +42 -4
  45. package/cjs/schema/omnichannel_subscription.schema.js +146 -32
  46. package/cjs/schema/order.schema.js +233 -61
  47. package/cjs/schema/organization_detail.schema.js +36 -0
  48. package/cjs/schema/payment_schedule.schema.js +39 -8
  49. package/cjs/schema/payment_schedule_scheme.schema.js +37 -7
  50. package/cjs/schema/payment_source.schema.js +375 -148
  51. package/cjs/schema/payment_voucher.schema.js +33 -5
  52. package/cjs/schema/plan.schema.js +345 -57
  53. package/cjs/schema/price_ramp.schema.js +153 -0
  54. package/cjs/schema/price_variant.schema.js +88 -18
  55. package/cjs/schema/pricing_page_session.schema.js +36 -2
  56. package/cjs/schema/promotional_credit.schema.js +27 -6
  57. package/cjs/schema/purchase.schema.js +210 -12
  58. package/cjs/schema/quote.schema.js +907 -87
  59. package/cjs/schema/quote_entitlement.schema.js +6 -2
  60. package/cjs/schema/ramp.schema.js +242 -24
  61. package/cjs/schema/retry_segment.schema.js +12 -0
  62. package/cjs/schema/site_migration_detail.schema.js +50 -16
  63. package/cjs/schema/subscription.schema.js +1002 -173
  64. package/cjs/schema/subscription_entitlement.schema.js +9 -1
  65. package/cjs/schema/transaction.schema.js +780 -342
  66. package/cjs/schema/unbilled_charge.schema.js +141 -13
  67. package/cjs/schema/usage.schema.js +59 -11
  68. package/cjs/schema/usage_event.schema.js +13 -1
  69. package/cjs/schema/usage_summary.schema.js +1 -0
  70. package/cjs/schema/virtual_bank_account.schema.js +42 -10
  71. package/cjs/schema/webhook_endpoint.schema.js +50 -2
  72. package/esm/environment.js +1 -1
  73. package/esm/resources/api_endpoints.js +230 -2
  74. package/esm/resources/webhook/eventType.js +25 -1
  75. package/esm/schema/addon.schema.js +221 -40
  76. package/esm/schema/alert.schema.js +17 -2
  77. package/esm/schema/alert_status.schema.js +6 -1
  78. package/esm/schema/attached_item.schema.js +101 -26
  79. package/esm/schema/business_entity.schema.js +42 -5
  80. package/esm/schema/business_rule.schema.js +2 -2
  81. package/esm/schema/business_ruleset.schema.js +2 -2
  82. package/esm/schema/collections_payment_promise.schema.js +40 -0
  83. package/esm/schema/comment.schema.js +17 -4
  84. package/esm/schema/coupon.schema.js +218 -37
  85. package/esm/schema/coupon_code.schema.js +36 -6
  86. package/esm/schema/coupon_set.schema.js +108 -27
  87. package/esm/schema/credit_note.schema.js +497 -105
  88. package/esm/schema/credit_unit.schema.js +12 -2
  89. package/esm/schema/customer.schema.js +212 -62
  90. package/esm/schema/differential_price.schema.js +100 -12
  91. package/esm/schema/dispute.schema.js +125 -33
  92. package/esm/schema/einvoice.schema.js +27 -6
  93. package/esm/schema/email_log.schema.js +15 -4
  94. package/esm/schema/entitlement.schema.js +35 -6
  95. package/esm/schema/entitlement_override.schema.js +17 -1
  96. package/esm/schema/estimate.schema.js +585 -40
  97. package/esm/schema/event.schema.js +1334 -585
  98. package/esm/schema/export.schema.js +4459 -1412
  99. package/esm/schema/feature.schema.js +73 -11
  100. package/esm/schema/gateway_request_log.schema.js +306 -0
  101. package/esm/schema/gateway_webhook_log.schema.js +254 -0
  102. package/esm/schema/gift.schema.js +51 -5
  103. package/esm/schema/grant_block.schema.js +45 -12
  104. package/esm/schema/hosted_page.schema.js +564 -68
  105. package/esm/schema/index.js +6 -0
  106. package/esm/schema/invoice.schema.js +842 -122
  107. package/esm/schema/item.schema.js +151 -28
  108. package/esm/schema/item_entitlement.schema.js +23 -2
  109. package/esm/schema/item_family.schema.js +29 -8
  110. package/esm/schema/item_price.schema.js +263 -48
  111. package/esm/schema/ledger_account_balance.schema.js +10 -1
  112. package/esm/schema/ledger_operation.schema.js +44 -17
  113. package/esm/schema/metered_feature.schema.js +10 -1
  114. package/esm/schema/omnichannel_one_time_order.schema.js +42 -4
  115. package/esm/schema/omnichannel_subscription.schema.js +146 -32
  116. package/esm/schema/order.schema.js +233 -61
  117. package/esm/schema/organization_detail.schema.js +33 -0
  118. package/esm/schema/payment_schedule.schema.js +39 -8
  119. package/esm/schema/payment_schedule_scheme.schema.js +37 -7
  120. package/esm/schema/payment_source.schema.js +375 -148
  121. package/esm/schema/payment_voucher.schema.js +33 -5
  122. package/esm/schema/plan.schema.js +345 -57
  123. package/esm/schema/price_ramp.schema.js +150 -0
  124. package/esm/schema/price_variant.schema.js +88 -18
  125. package/esm/schema/pricing_page_session.schema.js +36 -2
  126. package/esm/schema/promotional_credit.schema.js +27 -6
  127. package/esm/schema/purchase.schema.js +210 -12
  128. package/esm/schema/quote.schema.js +907 -87
  129. package/esm/schema/quote_entitlement.schema.js +6 -2
  130. package/esm/schema/ramp.schema.js +242 -24
  131. package/esm/schema/retry_segment.schema.js +9 -0
  132. package/esm/schema/site_migration_detail.schema.js +50 -16
  133. package/esm/schema/subscription.schema.js +1002 -173
  134. package/esm/schema/subscription_entitlement.schema.js +9 -1
  135. package/esm/schema/transaction.schema.js +780 -342
  136. package/esm/schema/unbilled_charge.schema.js +141 -13
  137. package/esm/schema/usage.schema.js +59 -11
  138. package/esm/schema/usage_event.schema.js +13 -1
  139. package/esm/schema/usage_summary.schema.js +1 -0
  140. package/esm/schema/virtual_bank_account.schema.js +42 -10
  141. package/esm/schema/webhook_endpoint.schema.js +50 -2
  142. package/package.json +1 -1
  143. package/types/core.d.ts +63 -74
  144. package/types/index.d.ts +29 -1
  145. package/types/resources/BillingLineItem.d.ts +10 -0
  146. package/types/resources/BillingMetadata.d.ts +9 -0
  147. package/types/resources/BusinessEntity.d.ts +52 -0
  148. package/types/resources/Citation.d.ts +13 -0
  149. package/types/resources/CollectionsDispute.d.ts +24 -0
  150. package/types/resources/CollectionsPaymentPromise.d.ts +93 -0
  151. package/types/resources/CollectionsReminderSequence.d.ts +35 -0
  152. package/types/resources/Comment.d.ts +2 -1
  153. package/types/resources/Content.d.ts +23 -1
  154. package/types/resources/CreditNote.d.ts +1 -0
  155. package/types/resources/CustomData.d.ts +14 -0
  156. package/types/resources/Discount.d.ts +1 -0
  157. package/types/resources/DraftEstimate.d.ts +13 -0
  158. package/types/resources/DraftRequest.d.ts +45 -0
  159. package/types/resources/EmailAttachment.d.ts +16 -0
  160. package/types/resources/EmailConversation.d.ts +18 -0
  161. package/types/resources/EmailLog.d.ts +1 -0
  162. package/types/resources/EmailMessage.d.ts +40 -0
  163. package/types/resources/Estimate.d.ts +3 -0
  164. package/types/resources/Event.d.ts +25 -1
  165. package/types/resources/Execution.d.ts +12 -0
  166. package/types/resources/GatewayPaymentMethodToken.d.ts +2 -2
  167. package/types/resources/GatewayRequestLog.d.ts +82 -0
  168. package/types/resources/GatewayWebhookLog.d.ts +74 -0
  169. package/types/resources/GrantBlock.d.ts +5 -0
  170. package/types/resources/GroupByAttribute.d.ts +15 -0
  171. package/types/resources/GroupByRecommendation.d.ts +10 -0
  172. package/types/resources/HostedPage.d.ts +18 -0
  173. package/types/resources/Invoice.d.ts +19 -0
  174. package/types/resources/ItemPrice.d.ts +1 -0
  175. package/types/resources/LedgerAccountBalance.d.ts +19 -0
  176. package/types/resources/Meter.d.ts +1 -0
  177. package/types/resources/MeteredFeature.d.ts +1 -0
  178. package/types/resources/OmnichannelOneTimeOrder.d.ts +5 -1
  179. package/types/resources/OmnichannelSubscription.d.ts +6 -1
  180. package/types/resources/OmnichannelSubscriptionItem.d.ts +4 -1
  181. package/types/resources/OrganizationDetail.d.ts +84 -0
  182. package/types/resources/PaymentSchedule.d.ts +1 -1
  183. package/types/resources/PaymentScheduleEstimate.d.ts +1 -1
  184. package/types/resources/PaymentSource.d.ts +19 -0
  185. package/types/resources/PreferenceVariant.d.ts +10 -0
  186. package/types/resources/PriceRamp.d.ts +113 -0
  187. package/types/resources/PrivateNote.d.ts +18 -0
  188. package/types/resources/Purchase.d.ts +6 -0
  189. package/types/resources/Ramp.d.ts +6 -0
  190. package/types/resources/RampInterval.d.ts +12 -0
  191. package/types/resources/RecordedPurchase.d.ts +5 -1
  192. package/types/resources/RetrySegment.d.ts +36 -0
  193. package/types/resources/Subscription.d.ts +3 -0
  194. package/types/resources/Transaction.d.ts +4 -0
  195. package/types/resources/Usage.d.ts +7 -0
  196. package/types/resources/UsageSummary.d.ts +2 -0
  197. package/types/resources/WebhookEvent.d.ts +159 -5
  198. package/types/resources/AppliedBusinessRule.d.ts +0 -15
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // Generated Zod schemas: CollectionsPaymentPromise
3
+ // Actions: listCollectionsPaymentPromises, createCollectionsPaymentPromise, updateCollectionsPaymentPromise
4
+ // Do not edit manually – regenerate via sdk-generator
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.UpdateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema = exports.CreateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema = exports.ListCollectionsPaymentPromisesCollectionsPaymentPromiseBodySchema = void 0;
7
+ const zod_1 = require("zod");
8
+ //CollectionsPaymentPromise.listCollectionsPaymentPromises
9
+ const ListCollectionsPaymentPromisesCollectionsPaymentPromiseCustomerIdSchema = zod_1.z.object({
10
+ is: zod_1.z.string().min(1).optional(),
11
+ });
12
+ const ListCollectionsPaymentPromisesCollectionsPaymentPromiseInvoiceIdSchema = zod_1.z.object({
13
+ is: zod_1.z.string().min(1).optional(),
14
+ });
15
+ const ListCollectionsPaymentPromisesCollectionsPaymentPromiseStatusSchema = zod_1.z.object({
16
+ is: zod_1.z.enum(['active', 'fulfilled', 'broken', 'cancelled']).optional(),
17
+ });
18
+ const ListCollectionsPaymentPromisesCollectionsPaymentPromiseBodySchema = zod_1.z.looseObject({
19
+ limit: zod_1.z.number().int().min(1).max(100).optional(),
20
+ offset: zod_1.z.string().max(1000).optional(),
21
+ customer_id: ListCollectionsPaymentPromisesCollectionsPaymentPromiseCustomerIdSchema.optional(),
22
+ invoice_id: ListCollectionsPaymentPromisesCollectionsPaymentPromiseInvoiceIdSchema.optional(),
23
+ status: ListCollectionsPaymentPromisesCollectionsPaymentPromiseStatusSchema.optional(),
24
+ });
25
+ exports.ListCollectionsPaymentPromisesCollectionsPaymentPromiseBodySchema = ListCollectionsPaymentPromisesCollectionsPaymentPromiseBodySchema;
26
+ //CollectionsPaymentPromise.createCollectionsPaymentPromise
27
+ const CreateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema = zod_1.z.looseObject({
28
+ customer_id: zod_1.z.string().max(100),
29
+ invoice_id: zod_1.z.string().max(100).optional(),
30
+ amount: zod_1.z.number().int(),
31
+ currency_code: zod_1.z.string().max(3).optional(),
32
+ promised_on: zod_1.z.number().int(),
33
+ reason: zod_1.z.string().max(500).optional(),
34
+ promised_by: zod_1.z.string().max(254).optional(),
35
+ });
36
+ exports.CreateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema = CreateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema;
37
+ //CollectionsPaymentPromise.updateCollectionsPaymentPromise
38
+ const UpdateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema = zod_1.z.looseObject({
39
+ promised_on: zod_1.z.number().int().optional(),
40
+ reason: zod_1.z.string().max(500).optional(),
41
+ promised_by: zod_1.z.string().max(254).optional(),
42
+ });
43
+ exports.UpdateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema = UpdateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema;
@@ -23,6 +23,7 @@ const CreateCommentBodySchema = zod_1.z.looseObject({
23
23
  'item',
24
24
  'item_price',
25
25
  'price_variant',
26
+ 'task',
26
27
  ]),
27
28
  entity_id: zod_1.z.string().max(100),
28
29
  notes: zod_1.z.string().max(1000),
@@ -31,10 +32,21 @@ const CreateCommentBodySchema = zod_1.z.looseObject({
31
32
  exports.CreateCommentBodySchema = CreateCommentBodySchema;
32
33
  //Comment.list
33
34
  const ListCommentCreatedAtSchema = zod_1.z.object({
34
- after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
35
- before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
36
- on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
37
- between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
35
+ after: zod_1.z
36
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
37
+ .optional(),
38
+ before: zod_1.z
39
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
40
+ .optional(),
41
+ on: zod_1.z
42
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
43
+ .optional(),
44
+ between: zod_1.z
45
+ .union([
46
+ zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
47
+ zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
48
+ ])
49
+ .optional(),
38
50
  });
39
51
  const ListCommentSortBySchema = zod_1.z.looseObject({
40
52
  asc: zod_1.z.enum(['created_at']).optional(),
@@ -60,6 +72,7 @@ const ListCommentBodySchema = zod_1.z.looseObject({
60
72
  'item',
61
73
  'item_price',
62
74
  'price_variant',
75
+ 'task',
63
76
  ])
64
77
  .optional(),
65
78
  entity_id: zod_1.z.string().max(100).optional(),
@@ -42,11 +42,22 @@ const CreateCouponBodySchema = zod_1.z.looseObject({
42
42
  exports.CreateCouponBodySchema = CreateCouponBodySchema;
43
43
  //Coupon.createForItems
44
44
  const CreateForItemsCouponMetaDataSchema = zod_1.z.looseObject({});
45
+ const CreateForItemsCouponItemConstraintsItemSchema = zod_1.z.object({
46
+ constraint: zod_1.z.enum(['none', 'all', 'specific', 'criteria']),
47
+ item_type: zod_1.z.enum(['plan', 'addon', 'charge']),
48
+ item_price_ids: zod_1.z.array(zod_1.z.string().optional()).optional(),
49
+ });
45
50
  const CreateForItemsCouponItemConstraintsSchema = zod_1.z.object({
46
51
  constraint: zod_1.z.array(zod_1.z.enum(['none', 'all', 'specific', 'criteria']).optional()),
47
52
  item_type: zod_1.z.array(zod_1.z.enum(['plan', 'addon', 'charge']).optional()),
48
53
  item_price_ids: zod_1.z.array(zod_1.z.array(zod_1.z.string().optional()).optional()).optional(),
49
54
  });
55
+ const CreateForItemsCouponItemConstraintCriteriaItemSchema = zod_1.z.object({
56
+ item_type: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
57
+ item_family_ids: zod_1.z.array(zod_1.z.string().optional()).optional(),
58
+ currencies: zod_1.z.array(zod_1.z.string().optional()).optional(),
59
+ item_price_periods: zod_1.z.array(zod_1.z.string().optional()).optional(),
60
+ });
50
61
  const CreateForItemsCouponItemConstraintCriteriaSchema = zod_1.z.object({
51
62
  item_type: zod_1.z.array(zod_1.z.enum(['plan', 'addon', 'charge']).optional()).optional(),
52
63
  item_family_ids: zod_1.z
@@ -57,6 +68,16 @@ const CreateForItemsCouponItemConstraintCriteriaSchema = zod_1.z.object({
57
68
  .array(zod_1.z.array(zod_1.z.string().optional()).optional())
58
69
  .optional(),
59
70
  });
71
+ const CreateForItemsCouponCouponConstraintsItemSchema = zod_1.z.object({
72
+ entity_type: zod_1.z.enum(['customer']),
73
+ type: zod_1.z.enum([
74
+ 'max_redemptions',
75
+ 'unique_by',
76
+ 'existing_customer',
77
+ 'new_customer',
78
+ ]),
79
+ value: zod_1.z.string().max(65000).optional(),
80
+ });
60
81
  const CreateForItemsCouponCouponConstraintsSchema = zod_1.z.object({
61
82
  entity_type: zod_1.z.array(zod_1.z.enum(['customer']).optional()),
62
83
  type: zod_1.z.array(zod_1.z
@@ -97,18 +118,44 @@ const CreateForItemsCouponBodySchema = zod_1.z.looseObject({
97
118
  period: zod_1.z.number().int().min(1).optional(),
98
119
  period_unit: zod_1.z.enum(['day', 'week', 'month', 'year']).optional(),
99
120
  status: zod_1.z.enum(['active', 'archived']).optional(),
100
- item_constraints: CreateForItemsCouponItemConstraintsSchema.optional(),
101
- item_constraint_criteria: CreateForItemsCouponItemConstraintCriteriaSchema.optional(),
102
- coupon_constraints: CreateForItemsCouponCouponConstraintsSchema.optional(),
121
+ item_constraints: zod_1.z
122
+ .union([
123
+ zod_1.z.array(CreateForItemsCouponItemConstraintsItemSchema.optional()),
124
+ CreateForItemsCouponItemConstraintsSchema,
125
+ ])
126
+ .optional(),
127
+ item_constraint_criteria: zod_1.z
128
+ .union([
129
+ zod_1.z.array(CreateForItemsCouponItemConstraintCriteriaItemSchema.optional()),
130
+ CreateForItemsCouponItemConstraintCriteriaSchema,
131
+ ])
132
+ .optional(),
133
+ coupon_constraints: zod_1.z
134
+ .union([
135
+ zod_1.z.array(CreateForItemsCouponCouponConstraintsItemSchema.optional()),
136
+ CreateForItemsCouponCouponConstraintsSchema,
137
+ ])
138
+ .optional(),
103
139
  });
104
140
  exports.CreateForItemsCouponBodySchema = CreateForItemsCouponBodySchema;
105
141
  //Coupon.updateForItems
106
142
  const UpdateForItemsCouponMetaDataSchema = zod_1.z.looseObject({});
143
+ const UpdateForItemsCouponItemConstraintsItemSchema = zod_1.z.object({
144
+ constraint: zod_1.z.enum(['none', 'all', 'specific', 'criteria']),
145
+ item_type: zod_1.z.enum(['plan', 'addon', 'charge']),
146
+ item_price_ids: zod_1.z.array(zod_1.z.string().optional()).optional(),
147
+ });
107
148
  const UpdateForItemsCouponItemConstraintsSchema = zod_1.z.object({
108
149
  constraint: zod_1.z.array(zod_1.z.enum(['none', 'all', 'specific', 'criteria']).optional()),
109
150
  item_type: zod_1.z.array(zod_1.z.enum(['plan', 'addon', 'charge']).optional()),
110
151
  item_price_ids: zod_1.z.array(zod_1.z.array(zod_1.z.string().optional()).optional()).optional(),
111
152
  });
153
+ const UpdateForItemsCouponItemConstraintCriteriaItemSchema = zod_1.z.object({
154
+ item_type: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
155
+ item_family_ids: zod_1.z.array(zod_1.z.string().optional()).optional(),
156
+ currencies: zod_1.z.array(zod_1.z.string().optional()).optional(),
157
+ item_price_periods: zod_1.z.array(zod_1.z.string().optional()).optional(),
158
+ });
112
159
  const UpdateForItemsCouponItemConstraintCriteriaSchema = zod_1.z.object({
113
160
  item_type: zod_1.z.array(zod_1.z.enum(['plan', 'addon', 'charge']).optional()).optional(),
114
161
  item_family_ids: zod_1.z
@@ -119,6 +166,16 @@ const UpdateForItemsCouponItemConstraintCriteriaSchema = zod_1.z.object({
119
166
  .array(zod_1.z.array(zod_1.z.string().optional()).optional())
120
167
  .optional(),
121
168
  });
169
+ const UpdateForItemsCouponCouponConstraintsItemSchema = zod_1.z.object({
170
+ entity_type: zod_1.z.enum(['customer']),
171
+ type: zod_1.z.enum([
172
+ 'max_redemptions',
173
+ 'unique_by',
174
+ 'existing_customer',
175
+ 'new_customer',
176
+ ]),
177
+ value: zod_1.z.string().max(65000).optional(),
178
+ });
122
179
  const UpdateForItemsCouponCouponConstraintsSchema = zod_1.z.object({
123
180
  entity_type: zod_1.z.array(zod_1.z.enum(['customer']).optional()),
124
181
  type: zod_1.z.array(zod_1.z
@@ -159,9 +216,24 @@ const UpdateForItemsCouponBodySchema = zod_1.z.looseObject({
159
216
  included_in_mrr: zod_1.z.boolean().optional(),
160
217
  period: zod_1.z.number().int().min(1).optional(),
161
218
  period_unit: zod_1.z.enum(['day', 'week', 'month', 'year']).optional(),
162
- item_constraints: UpdateForItemsCouponItemConstraintsSchema.optional(),
163
- item_constraint_criteria: UpdateForItemsCouponItemConstraintCriteriaSchema.optional(),
164
- coupon_constraints: UpdateForItemsCouponCouponConstraintsSchema.optional(),
219
+ item_constraints: zod_1.z
220
+ .union([
221
+ zod_1.z.array(UpdateForItemsCouponItemConstraintsItemSchema.optional()),
222
+ UpdateForItemsCouponItemConstraintsSchema,
223
+ ])
224
+ .optional(),
225
+ item_constraint_criteria: zod_1.z
226
+ .union([
227
+ zod_1.z.array(UpdateForItemsCouponItemConstraintCriteriaItemSchema.optional()),
228
+ UpdateForItemsCouponItemConstraintCriteriaSchema,
229
+ ])
230
+ .optional(),
231
+ coupon_constraints: zod_1.z
232
+ .union([
233
+ zod_1.z.array(UpdateForItemsCouponCouponConstraintsItemSchema.optional()),
234
+ UpdateForItemsCouponCouponConstraintsSchema,
235
+ ])
236
+ .optional(),
165
237
  });
166
238
  exports.UpdateForItemsCouponBodySchema = UpdateForItemsCouponBodySchema;
167
239
  //Coupon.list
@@ -169,36 +241,88 @@ const ListCouponIdSchema = zod_1.z.object({
169
241
  is: zod_1.z.string().min(1).optional(),
170
242
  is_not: zod_1.z.string().min(1).optional(),
171
243
  starts_with: zod_1.z.string().min(1).optional(),
172
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
173
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
244
+ in: zod_1.z
245
+ .union([
246
+ zod_1.z.array(zod_1.z.string().optional()),
247
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
248
+ ])
249
+ .optional(),
250
+ not_in: zod_1.z
251
+ .union([
252
+ zod_1.z.array(zod_1.z.string().optional()),
253
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
254
+ ])
255
+ .optional(),
174
256
  });
175
257
  const ListCouponNameSchema = zod_1.z.object({
176
258
  is: zod_1.z.string().min(1).optional(),
177
259
  is_not: zod_1.z.string().min(1).optional(),
178
260
  starts_with: zod_1.z.string().min(1).optional(),
179
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
180
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
261
+ in: zod_1.z
262
+ .union([
263
+ zod_1.z.array(zod_1.z.string().optional()),
264
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
265
+ ])
266
+ .optional(),
267
+ not_in: zod_1.z
268
+ .union([
269
+ zod_1.z.array(zod_1.z.string().optional()),
270
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
271
+ ])
272
+ .optional(),
181
273
  });
182
274
  const ListCouponDiscountTypeSchema = zod_1.z.object({
183
275
  is: zod_1.z.enum(['fixed_amount', 'percentage', 'offer_quantity']).optional(),
184
276
  is_not: zod_1.z.enum(['fixed_amount', 'percentage', 'offer_quantity']).optional(),
185
- in: zod_1.z.enum(['fixed_amount', 'percentage', 'offer_quantity']).optional(),
186
- not_in: zod_1.z.enum(['fixed_amount', 'percentage', 'offer_quantity']).optional(),
277
+ in: zod_1.z
278
+ .union([
279
+ zod_1.z.array(zod_1.z.enum(['fixed_amount', 'percentage', 'offer_quantity']).optional()),
280
+ zod_1.z.enum(['fixed_amount', 'percentage', 'offer_quantity']),
281
+ ])
282
+ .optional(),
283
+ not_in: zod_1.z
284
+ .union([
285
+ zod_1.z.array(zod_1.z.enum(['fixed_amount', 'percentage', 'offer_quantity']).optional()),
286
+ zod_1.z.enum(['fixed_amount', 'percentage', 'offer_quantity']),
287
+ ])
288
+ .optional(),
187
289
  });
188
290
  const ListCouponDurationTypeSchema = zod_1.z.object({
189
291
  is: zod_1.z.enum(['one_time', 'forever', 'limited_period']).optional(),
190
292
  is_not: zod_1.z.enum(['one_time', 'forever', 'limited_period']).optional(),
191
- in: zod_1.z.enum(['one_time', 'forever', 'limited_period']).optional(),
192
- not_in: zod_1.z.enum(['one_time', 'forever', 'limited_period']).optional(),
293
+ in: zod_1.z
294
+ .union([
295
+ zod_1.z.array(zod_1.z.enum(['one_time', 'forever', 'limited_period']).optional()),
296
+ zod_1.z.enum(['one_time', 'forever', 'limited_period']),
297
+ ])
298
+ .optional(),
299
+ not_in: zod_1.z
300
+ .union([
301
+ zod_1.z.array(zod_1.z.enum(['one_time', 'forever', 'limited_period']).optional()),
302
+ zod_1.z.enum(['one_time', 'forever', 'limited_period']),
303
+ ])
304
+ .optional(),
193
305
  });
194
306
  const ListCouponStatusSchema = zod_1.z.object({
195
307
  is: zod_1.z.enum(['active', 'expired', 'archived', 'deleted', 'future']).optional(),
196
308
  is_not: zod_1.z
197
309
  .enum(['active', 'expired', 'archived', 'deleted', 'future'])
198
310
  .optional(),
199
- in: zod_1.z.enum(['active', 'expired', 'archived', 'deleted', 'future']).optional(),
311
+ in: zod_1.z
312
+ .union([
313
+ zod_1.z.array(zod_1.z
314
+ .enum(['active', 'expired', 'archived', 'deleted', 'future'])
315
+ .optional()),
316
+ zod_1.z.enum(['active', 'expired', 'archived', 'deleted', 'future']),
317
+ ])
318
+ .optional(),
200
319
  not_in: zod_1.z
201
- .enum(['active', 'expired', 'archived', 'deleted', 'future'])
320
+ .union([
321
+ zod_1.z.array(zod_1.z
322
+ .enum(['active', 'expired', 'archived', 'deleted', 'future'])
323
+ .optional()),
324
+ zod_1.z.enum(['active', 'expired', 'archived', 'deleted', 'future']),
325
+ ])
202
326
  .optional(),
203
327
  });
204
328
  const ListCouponApplyOnSchema = zod_1.z.object({
@@ -219,33 +343,75 @@ const ListCouponApplyOnSchema = zod_1.z.object({
219
343
  ])
220
344
  .optional(),
221
345
  in: zod_1.z
222
- .enum([
223
- 'invoice_amount',
224
- 'specified_items_total',
225
- 'each_specified_item',
226
- 'each_unit_of_specified_items',
346
+ .union([
347
+ zod_1.z.array(zod_1.z
348
+ .enum([
349
+ 'invoice_amount',
350
+ 'specified_items_total',
351
+ 'each_specified_item',
352
+ 'each_unit_of_specified_items',
353
+ ])
354
+ .optional()),
355
+ zod_1.z.enum([
356
+ 'invoice_amount',
357
+ 'specified_items_total',
358
+ 'each_specified_item',
359
+ 'each_unit_of_specified_items',
360
+ ]),
227
361
  ])
228
362
  .optional(),
229
363
  not_in: zod_1.z
230
- .enum([
231
- 'invoice_amount',
232
- 'specified_items_total',
233
- 'each_specified_item',
234
- 'each_unit_of_specified_items',
364
+ .union([
365
+ zod_1.z.array(zod_1.z
366
+ .enum([
367
+ 'invoice_amount',
368
+ 'specified_items_total',
369
+ 'each_specified_item',
370
+ 'each_unit_of_specified_items',
371
+ ])
372
+ .optional()),
373
+ zod_1.z.enum([
374
+ 'invoice_amount',
375
+ 'specified_items_total',
376
+ 'each_specified_item',
377
+ 'each_unit_of_specified_items',
378
+ ]),
235
379
  ])
236
380
  .optional(),
237
381
  });
238
382
  const ListCouponCreatedAtSchema = zod_1.z.object({
239
- after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
240
- before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
241
- on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
242
- between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
383
+ after: zod_1.z
384
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
385
+ .optional(),
386
+ before: zod_1.z
387
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
388
+ .optional(),
389
+ on: zod_1.z
390
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
391
+ .optional(),
392
+ between: zod_1.z
393
+ .union([
394
+ zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
395
+ zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
396
+ ])
397
+ .optional(),
243
398
  });
244
399
  const ListCouponUpdatedAtSchema = zod_1.z.object({
245
- after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
246
- before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
247
- on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
248
- between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
400
+ after: zod_1.z
401
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
402
+ .optional(),
403
+ before: zod_1.z
404
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
405
+ .optional(),
406
+ on: zod_1.z
407
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
408
+ .optional(),
409
+ between: zod_1.z
410
+ .union([
411
+ zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
412
+ zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
413
+ ])
414
+ .optional(),
249
415
  });
250
416
  const ListCouponSortBySchema = zod_1.z.looseObject({
251
417
  asc: zod_1.z.enum(['created_at']).optional(),
@@ -255,12 +421,27 @@ const ListCouponCurrencyCodeSchema = zod_1.z.object({
255
421
  is: zod_1.z.string().min(1).optional(),
256
422
  is_not: zod_1.z.string().min(1).optional(),
257
423
  starts_with: zod_1.z.string().min(1).optional(),
258
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
259
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
424
+ in: zod_1.z
425
+ .union([
426
+ zod_1.z.array(zod_1.z.string().optional()),
427
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
428
+ ])
429
+ .optional(),
430
+ not_in: zod_1.z
431
+ .union([
432
+ zod_1.z.array(zod_1.z.string().optional()),
433
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
434
+ ])
435
+ .optional(),
260
436
  });
261
437
  const ListCouponApplicableItemPriceIdsSchema = zod_1.z.object({
438
+ in: zod_1.z
439
+ .union([
440
+ zod_1.z.array(zod_1.z.string().optional()),
441
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
442
+ ])
443
+ .optional(),
262
444
  is: zod_1.z.string().min(1).optional(),
263
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
264
445
  });
265
446
  const ListCouponBodySchema = zod_1.z.looseObject({
266
447
  limit: zod_1.z.number().int().min(1).max(100).optional(),
@@ -17,15 +17,35 @@ const ListCouponCodeCodeSchema = zod_1.z.object({
17
17
  is: zod_1.z.string().min(1).optional(),
18
18
  is_not: zod_1.z.string().min(1).optional(),
19
19
  starts_with: zod_1.z.string().min(1).optional(),
20
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
21
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
20
+ in: zod_1.z
21
+ .union([
22
+ zod_1.z.array(zod_1.z.string().optional()),
23
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
24
+ ])
25
+ .optional(),
26
+ not_in: zod_1.z
27
+ .union([
28
+ zod_1.z.array(zod_1.z.string().optional()),
29
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
30
+ ])
31
+ .optional(),
22
32
  });
23
33
  const ListCouponCodeCouponIdSchema = zod_1.z.object({
24
34
  is: zod_1.z.string().min(1).optional(),
25
35
  is_not: zod_1.z.string().min(1).optional(),
26
36
  starts_with: zod_1.z.string().min(1).optional(),
27
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
28
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
37
+ in: zod_1.z
38
+ .union([
39
+ zod_1.z.array(zod_1.z.string().optional()),
40
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
41
+ ])
42
+ .optional(),
43
+ not_in: zod_1.z
44
+ .union([
45
+ zod_1.z.array(zod_1.z.string().optional()),
46
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
47
+ ])
48
+ .optional(),
29
49
  });
30
50
  const ListCouponCodeCouponSetNameSchema = zod_1.z.object({
31
51
  is: zod_1.z.string().min(1).optional(),
@@ -35,8 +55,18 @@ const ListCouponCodeCouponSetNameSchema = zod_1.z.object({
35
55
  const ListCouponCodeStatusSchema = zod_1.z.object({
36
56
  is: zod_1.z.enum(['not_redeemed', 'redeemed', 'archived']).optional(),
37
57
  is_not: zod_1.z.enum(['not_redeemed', 'redeemed', 'archived']).optional(),
38
- in: zod_1.z.enum(['not_redeemed', 'redeemed', 'archived']).optional(),
39
- not_in: zod_1.z.enum(['not_redeemed', 'redeemed', 'archived']).optional(),
58
+ in: zod_1.z
59
+ .union([
60
+ zod_1.z.array(zod_1.z.enum(['not_redeemed', 'redeemed', 'archived']).optional()),
61
+ zod_1.z.enum(['not_redeemed', 'redeemed', 'archived']),
62
+ ])
63
+ .optional(),
64
+ not_in: zod_1.z
65
+ .union([
66
+ zod_1.z.array(zod_1.z.enum(['not_redeemed', 'redeemed', 'archived']).optional()),
67
+ zod_1.z.enum(['not_redeemed', 'redeemed', 'archived']),
68
+ ])
69
+ .optional(),
40
70
  });
41
71
  const ListCouponCodeBodySchema = zod_1.z.looseObject({
42
72
  limit: zod_1.z.number().int().min(1).max(100).optional(),
@@ -24,49 +24,130 @@ const ListCouponSetIdSchema = zod_1.z.object({
24
24
  is: zod_1.z.string().min(1).optional(),
25
25
  is_not: zod_1.z.string().min(1).optional(),
26
26
  starts_with: zod_1.z.string().min(1).optional(),
27
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
28
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
27
+ in: zod_1.z
28
+ .union([
29
+ zod_1.z.array(zod_1.z.string().optional()),
30
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
31
+ ])
32
+ .optional(),
33
+ not_in: zod_1.z
34
+ .union([
35
+ zod_1.z.array(zod_1.z.string().optional()),
36
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
37
+ ])
38
+ .optional(),
29
39
  });
30
40
  const ListCouponSetNameSchema = zod_1.z.object({
31
41
  is: zod_1.z.string().min(1).optional(),
32
42
  is_not: zod_1.z.string().min(1).optional(),
33
43
  starts_with: zod_1.z.string().min(1).optional(),
34
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
35
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
44
+ in: zod_1.z
45
+ .union([
46
+ zod_1.z.array(zod_1.z.string().optional()),
47
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
48
+ ])
49
+ .optional(),
50
+ not_in: zod_1.z
51
+ .union([
52
+ zod_1.z.array(zod_1.z.string().optional()),
53
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
54
+ ])
55
+ .optional(),
36
56
  });
37
57
  const ListCouponSetCouponIdSchema = zod_1.z.object({
38
58
  is: zod_1.z.string().min(1).optional(),
39
59
  is_not: zod_1.z.string().min(1).optional(),
40
60
  starts_with: zod_1.z.string().min(1).optional(),
41
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
42
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
61
+ in: zod_1.z
62
+ .union([
63
+ zod_1.z.array(zod_1.z.string().optional()),
64
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
65
+ ])
66
+ .optional(),
67
+ not_in: zod_1.z
68
+ .union([
69
+ zod_1.z.array(zod_1.z.string().optional()),
70
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
71
+ ])
72
+ .optional(),
43
73
  });
44
74
  const ListCouponSetTotalCountSchema = zod_1.z.object({
45
- is: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
46
- is_not: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
47
- lt: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
48
- lte: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
49
- gt: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
50
- gte: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
51
- between: zod_1.z.string().regex(RegExp('^\\[-?\\d+,-?\\d+\\]$')).optional(),
75
+ is: zod_1.z
76
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
77
+ .optional(),
78
+ is_not: zod_1.z
79
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
80
+ .optional(),
81
+ lt: zod_1.z
82
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
83
+ .optional(),
84
+ lte: zod_1.z
85
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
86
+ .optional(),
87
+ gt: zod_1.z
88
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
89
+ .optional(),
90
+ gte: zod_1.z
91
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
92
+ .optional(),
93
+ between: zod_1.z
94
+ .union([
95
+ zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
96
+ zod_1.z.string().regex(RegExp('^\\[-?\\d+,-?\\d+\\]$')),
97
+ ])
98
+ .optional(),
52
99
  });
53
100
  const ListCouponSetRedeemedCountSchema = zod_1.z.object({
54
- is: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
55
- is_not: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
56
- lt: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
57
- lte: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
58
- gt: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
59
- gte: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
60
- between: zod_1.z.string().regex(RegExp('^\\[-?\\d+,-?\\d+\\]$')).optional(),
101
+ is: zod_1.z
102
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
103
+ .optional(),
104
+ is_not: zod_1.z
105
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
106
+ .optional(),
107
+ lt: zod_1.z
108
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
109
+ .optional(),
110
+ lte: zod_1.z
111
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
112
+ .optional(),
113
+ gt: zod_1.z
114
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
115
+ .optional(),
116
+ gte: zod_1.z
117
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
118
+ .optional(),
119
+ between: zod_1.z
120
+ .union([
121
+ zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
122
+ zod_1.z.string().regex(RegExp('^\\[-?\\d+,-?\\d+\\]$')),
123
+ ])
124
+ .optional(),
61
125
  });
62
126
  const ListCouponSetArchivedCountSchema = zod_1.z.object({
63
- is: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
64
- is_not: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
65
- lt: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
66
- lte: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
67
- gt: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
68
- gte: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
69
- between: zod_1.z.string().regex(RegExp('^\\[-?\\d+,-?\\d+\\]$')).optional(),
127
+ is: zod_1.z
128
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
129
+ .optional(),
130
+ is_not: zod_1.z
131
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
132
+ .optional(),
133
+ lt: zod_1.z
134
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
135
+ .optional(),
136
+ lte: zod_1.z
137
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
138
+ .optional(),
139
+ gt: zod_1.z
140
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
141
+ .optional(),
142
+ gte: zod_1.z
143
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
144
+ .optional(),
145
+ between: zod_1.z
146
+ .union([
147
+ zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
148
+ zod_1.z.string().regex(RegExp('^\\[-?\\d+,-?\\d+\\]$')),
149
+ ])
150
+ .optional(),
70
151
  });
71
152
  const ListCouponSetBodySchema = zod_1.z.looseObject({
72
153
  limit: zod_1.z.number().int().min(1).max(100).optional(),