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
@@ -7,6 +7,14 @@ exports.CopyAddonBodySchema = exports.ListAddonBodySchema = exports.UpdateAddonB
7
7
  const zod_1 = require("zod");
8
8
  //Addon.create
9
9
  const CreateAddonMetaDataSchema = zod_1.z.looseObject({});
10
+ const CreateAddonTiersItemSchema = zod_1.z.object({
11
+ starting_unit: zod_1.z.number().int().min(1).optional(),
12
+ ending_unit: zod_1.z.number().int().optional(),
13
+ price: zod_1.z.number().int().min(0).optional(),
14
+ starting_unit_in_decimal: zod_1.z.string().max(33).optional(),
15
+ ending_unit_in_decimal: zod_1.z.string().max(33).optional(),
16
+ price_in_decimal: zod_1.z.string().max(39).optional(),
17
+ });
10
18
  const CreateAddonTiersSchema = zod_1.z.object({
11
19
  starting_unit: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
12
20
  ending_unit: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
@@ -15,6 +23,11 @@ const CreateAddonTiersSchema = zod_1.z.object({
15
23
  ending_unit_in_decimal: zod_1.z.array(zod_1.z.string().max(33).optional()).optional(),
16
24
  price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
17
25
  });
26
+ const CreateAddonTaxProvidersFieldsItemSchema = zod_1.z.object({
27
+ provider_name: zod_1.z.string().max(50),
28
+ field_id: zod_1.z.string().max(50),
29
+ field_value: zod_1.z.string().max(50),
30
+ });
18
31
  const CreateAddonTaxProvidersFieldsSchema = zod_1.z.object({
19
32
  provider_name: zod_1.z.array(zod_1.z.string().max(50).optional()),
20
33
  field_id: zod_1.z.array(zod_1.z.string().max(50).optional()),
@@ -71,12 +84,30 @@ const CreateAddonBodySchema = zod_1.z.looseObject({
71
84
  .enum(['site_default', 'partial_term', 'full_term'])
72
85
  .optional(),
73
86
  status: zod_1.z.enum(['active', 'archived']).optional(),
74
- tiers: CreateAddonTiersSchema.optional(),
75
- tax_providers_fields: CreateAddonTaxProvidersFieldsSchema.optional(),
87
+ tiers: zod_1.z
88
+ .union([
89
+ zod_1.z.array(CreateAddonTiersItemSchema.optional()),
90
+ CreateAddonTiersSchema,
91
+ ])
92
+ .optional(),
93
+ tax_providers_fields: zod_1.z
94
+ .union([
95
+ zod_1.z.array(CreateAddonTaxProvidersFieldsItemSchema.optional()),
96
+ CreateAddonTaxProvidersFieldsSchema,
97
+ ])
98
+ .optional(),
76
99
  });
77
100
  exports.CreateAddonBodySchema = CreateAddonBodySchema;
78
101
  //Addon.update
79
102
  const UpdateAddonMetaDataSchema = zod_1.z.looseObject({});
103
+ const UpdateAddonTiersItemSchema = zod_1.z.object({
104
+ starting_unit: zod_1.z.number().int().min(1).optional(),
105
+ ending_unit: zod_1.z.number().int().optional(),
106
+ price: zod_1.z.number().int().min(0).optional(),
107
+ starting_unit_in_decimal: zod_1.z.string().max(33).optional(),
108
+ ending_unit_in_decimal: zod_1.z.string().max(33).optional(),
109
+ price_in_decimal: zod_1.z.string().max(39).optional(),
110
+ });
80
111
  const UpdateAddonTiersSchema = zod_1.z.object({
81
112
  starting_unit: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
82
113
  ending_unit: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
@@ -85,6 +116,11 @@ const UpdateAddonTiersSchema = zod_1.z.object({
85
116
  ending_unit_in_decimal: zod_1.z.array(zod_1.z.string().max(33).optional()).optional(),
86
117
  price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
87
118
  });
119
+ const UpdateAddonTaxProvidersFieldsItemSchema = zod_1.z.object({
120
+ provider_name: zod_1.z.string().max(50),
121
+ field_id: zod_1.z.string().max(50),
122
+ field_value: zod_1.z.string().max(50),
123
+ });
88
124
  const UpdateAddonTaxProvidersFieldsSchema = zod_1.z.object({
89
125
  provider_name: zod_1.z.array(zod_1.z.string().max(50).optional()),
90
126
  field_id: zod_1.z.array(zod_1.z.string().max(50).optional()),
@@ -139,8 +175,18 @@ const UpdateAddonBodySchema = zod_1.z.looseObject({
139
175
  proration_type: zod_1.z
140
176
  .enum(['site_default', 'partial_term', 'full_term'])
141
177
  .optional(),
142
- tiers: UpdateAddonTiersSchema.optional(),
143
- tax_providers_fields: UpdateAddonTaxProvidersFieldsSchema.optional(),
178
+ tiers: zod_1.z
179
+ .union([
180
+ zod_1.z.array(UpdateAddonTiersItemSchema.optional()),
181
+ UpdateAddonTiersSchema,
182
+ ])
183
+ .optional(),
184
+ tax_providers_fields: zod_1.z
185
+ .union([
186
+ zod_1.z.array(UpdateAddonTaxProvidersFieldsItemSchema.optional()),
187
+ UpdateAddonTaxProvidersFieldsSchema,
188
+ ])
189
+ .optional(),
144
190
  });
145
191
  exports.UpdateAddonBodySchema = UpdateAddonBodySchema;
146
192
  //Addon.list
@@ -148,15 +194,35 @@ const ListAddonIdSchema = zod_1.z.object({
148
194
  is: zod_1.z.string().min(1).optional(),
149
195
  is_not: zod_1.z.string().min(1).optional(),
150
196
  starts_with: zod_1.z.string().min(1).optional(),
151
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
152
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
197
+ in: zod_1.z
198
+ .union([
199
+ zod_1.z.array(zod_1.z.string().optional()),
200
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
201
+ ])
202
+ .optional(),
203
+ not_in: zod_1.z
204
+ .union([
205
+ zod_1.z.array(zod_1.z.string().optional()),
206
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
207
+ ])
208
+ .optional(),
153
209
  });
154
210
  const ListAddonNameSchema = zod_1.z.object({
155
211
  is: zod_1.z.string().min(1).optional(),
156
212
  is_not: zod_1.z.string().min(1).optional(),
157
213
  starts_with: zod_1.z.string().min(1).optional(),
158
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
159
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
214
+ in: zod_1.z
215
+ .union([
216
+ zod_1.z.array(zod_1.z.string().optional()),
217
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
218
+ ])
219
+ .optional(),
220
+ not_in: zod_1.z
221
+ .union([
222
+ zod_1.z.array(zod_1.z.string().optional()),
223
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
224
+ ])
225
+ .optional(),
160
226
  });
161
227
  const ListAddonPricingModelSchema = zod_1.z.object({
162
228
  is: zod_1.z
@@ -166,10 +232,20 @@ const ListAddonPricingModelSchema = zod_1.z.object({
166
232
  .enum(['flat_fee', 'per_unit', 'tiered', 'volume', 'stairstep'])
167
233
  .optional(),
168
234
  in: zod_1.z
169
- .enum(['flat_fee', 'per_unit', 'tiered', 'volume', 'stairstep'])
235
+ .union([
236
+ zod_1.z.array(zod_1.z
237
+ .enum(['flat_fee', 'per_unit', 'tiered', 'volume', 'stairstep'])
238
+ .optional()),
239
+ zod_1.z.enum(['flat_fee', 'per_unit', 'tiered', 'volume', 'stairstep']),
240
+ ])
170
241
  .optional(),
171
242
  not_in: zod_1.z
172
- .enum(['flat_fee', 'per_unit', 'tiered', 'volume', 'stairstep'])
243
+ .union([
244
+ zod_1.z.array(zod_1.z
245
+ .enum(['flat_fee', 'per_unit', 'tiered', 'volume', 'stairstep'])
246
+ .optional()),
247
+ zod_1.z.enum(['flat_fee', 'per_unit', 'tiered', 'volume', 'stairstep']),
248
+ ])
173
249
  .optional(),
174
250
  });
175
251
  const ListAddonTypeSchema = zod_1.z.object({
@@ -180,66 +256,171 @@ const ListAddonTypeSchema = zod_1.z.object({
180
256
  .enum(['on_off', 'quantity', 'tiered', 'volume', 'stairstep'])
181
257
  .optional(),
182
258
  in: zod_1.z
183
- .enum(['on_off', 'quantity', 'tiered', 'volume', 'stairstep'])
259
+ .union([
260
+ zod_1.z.array(zod_1.z
261
+ .enum(['on_off', 'quantity', 'tiered', 'volume', 'stairstep'])
262
+ .optional()),
263
+ zod_1.z.enum(['on_off', 'quantity', 'tiered', 'volume', 'stairstep']),
264
+ ])
184
265
  .optional(),
185
266
  not_in: zod_1.z
186
- .enum(['on_off', 'quantity', 'tiered', 'volume', 'stairstep'])
267
+ .union([
268
+ zod_1.z.array(zod_1.z
269
+ .enum(['on_off', 'quantity', 'tiered', 'volume', 'stairstep'])
270
+ .optional()),
271
+ zod_1.z.enum(['on_off', 'quantity', 'tiered', 'volume', 'stairstep']),
272
+ ])
187
273
  .optional(),
188
274
  });
189
275
  const ListAddonChargeTypeSchema = zod_1.z.object({
190
276
  is: zod_1.z.enum(['recurring', 'non_recurring']).optional(),
191
277
  is_not: zod_1.z.enum(['recurring', 'non_recurring']).optional(),
192
- in: zod_1.z.enum(['recurring', 'non_recurring']).optional(),
193
- not_in: zod_1.z.enum(['recurring', 'non_recurring']).optional(),
278
+ in: zod_1.z
279
+ .union([
280
+ zod_1.z.array(zod_1.z.enum(['recurring', 'non_recurring']).optional()),
281
+ zod_1.z.enum(['recurring', 'non_recurring']),
282
+ ])
283
+ .optional(),
284
+ not_in: zod_1.z
285
+ .union([
286
+ zod_1.z.array(zod_1.z.enum(['recurring', 'non_recurring']).optional()),
287
+ zod_1.z.enum(['recurring', 'non_recurring']),
288
+ ])
289
+ .optional(),
194
290
  });
195
291
  const ListAddonPriceSchema = zod_1.z.object({
196
- is: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
197
- is_not: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
198
- lt: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
199
- lte: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
200
- gt: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
201
- gte: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
202
- between: zod_1.z.string().regex(RegExp('^\\[-?\\d+,-?\\d+\\]$')).optional(),
292
+ is: zod_1.z
293
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
294
+ .optional(),
295
+ is_not: zod_1.z
296
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
297
+ .optional(),
298
+ lt: zod_1.z
299
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
300
+ .optional(),
301
+ lte: zod_1.z
302
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
303
+ .optional(),
304
+ gt: zod_1.z
305
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
306
+ .optional(),
307
+ gte: zod_1.z
308
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
309
+ .optional(),
310
+ between: zod_1.z
311
+ .union([
312
+ zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
313
+ zod_1.z.string().regex(RegExp('^\\[-?\\d+,-?\\d+\\]$')),
314
+ ])
315
+ .optional(),
203
316
  });
204
317
  const ListAddonPeriodSchema = zod_1.z.object({
205
- is: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
206
- is_not: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
207
- lt: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
208
- lte: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
209
- gt: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
210
- gte: zod_1.z.string().regex(RegExp('^-?\\d+$')).optional(),
211
- between: zod_1.z.string().regex(RegExp('^\\[-?\\d+,-?\\d+\\]$')).optional(),
318
+ is: zod_1.z
319
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
320
+ .optional(),
321
+ is_not: zod_1.z
322
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
323
+ .optional(),
324
+ lt: zod_1.z
325
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
326
+ .optional(),
327
+ lte: zod_1.z
328
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
329
+ .optional(),
330
+ gt: zod_1.z
331
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
332
+ .optional(),
333
+ gte: zod_1.z
334
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^-?\\d+$'))])
335
+ .optional(),
336
+ between: zod_1.z
337
+ .union([
338
+ zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
339
+ zod_1.z.string().regex(RegExp('^\\[-?\\d+,-?\\d+\\]$')),
340
+ ])
341
+ .optional(),
212
342
  });
213
343
  const ListAddonPeriodUnitSchema = zod_1.z.object({
214
344
  is: zod_1.z.enum(['day', 'week', 'month', 'year', 'not_applicable']).optional(),
215
345
  is_not: zod_1.z.enum(['day', 'week', 'month', 'year', 'not_applicable']).optional(),
216
- in: zod_1.z.enum(['day', 'week', 'month', 'year', 'not_applicable']).optional(),
217
- not_in: zod_1.z.enum(['day', 'week', 'month', 'year', 'not_applicable']).optional(),
346
+ in: zod_1.z
347
+ .union([
348
+ zod_1.z.array(zod_1.z.enum(['day', 'week', 'month', 'year', 'not_applicable']).optional()),
349
+ zod_1.z.enum(['day', 'week', 'month', 'year', 'not_applicable']),
350
+ ])
351
+ .optional(),
352
+ not_in: zod_1.z
353
+ .union([
354
+ zod_1.z.array(zod_1.z.enum(['day', 'week', 'month', 'year', 'not_applicable']).optional()),
355
+ zod_1.z.enum(['day', 'week', 'month', 'year', 'not_applicable']),
356
+ ])
357
+ .optional(),
218
358
  });
219
359
  const ListAddonStatusSchema = zod_1.z.object({
220
360
  is: zod_1.z.enum(['active', 'archived', 'deleted']).optional(),
221
361
  is_not: zod_1.z.enum(['active', 'archived', 'deleted']).optional(),
222
- in: zod_1.z.enum(['active', 'archived', 'deleted']).optional(),
223
- not_in: zod_1.z.enum(['active', 'archived', 'deleted']).optional(),
362
+ in: zod_1.z
363
+ .union([
364
+ zod_1.z.array(zod_1.z.enum(['active', 'archived', 'deleted']).optional()),
365
+ zod_1.z.enum(['active', 'archived', 'deleted']),
366
+ ])
367
+ .optional(),
368
+ not_in: zod_1.z
369
+ .union([
370
+ zod_1.z.array(zod_1.z.enum(['active', 'archived', 'deleted']).optional()),
371
+ zod_1.z.enum(['active', 'archived', 'deleted']),
372
+ ])
373
+ .optional(),
224
374
  });
225
375
  const ListAddonUpdatedAtSchema = zod_1.z.object({
226
- after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
227
- before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
228
- on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
229
- between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
376
+ after: zod_1.z
377
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
378
+ .optional(),
379
+ before: zod_1.z
380
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
381
+ .optional(),
382
+ on: zod_1.z
383
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
384
+ .optional(),
385
+ between: zod_1.z
386
+ .union([
387
+ zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
388
+ zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
389
+ ])
390
+ .optional(),
230
391
  });
231
392
  const ListAddonCurrencyCodeSchema = zod_1.z.object({
232
393
  is: zod_1.z.string().min(1).optional(),
233
394
  is_not: zod_1.z.string().min(1).optional(),
234
395
  starts_with: zod_1.z.string().min(1).optional(),
235
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
236
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
396
+ in: zod_1.z
397
+ .union([
398
+ zod_1.z.array(zod_1.z.string().optional()),
399
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
400
+ ])
401
+ .optional(),
402
+ not_in: zod_1.z
403
+ .union([
404
+ zod_1.z.array(zod_1.z.string().optional()),
405
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
406
+ ])
407
+ .optional(),
237
408
  });
238
409
  const ListAddonChannelSchema = zod_1.z.object({
239
410
  is: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
240
411
  is_not: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
241
- in: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
242
- not_in: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
412
+ in: zod_1.z
413
+ .union([
414
+ zod_1.z.array(zod_1.z.enum(['web', 'app_store', 'play_store']).optional()),
415
+ zod_1.z.enum(['web', 'app_store', 'play_store']),
416
+ ])
417
+ .optional(),
418
+ not_in: zod_1.z
419
+ .union([
420
+ zod_1.z.array(zod_1.z.enum(['web', 'app_store', 'play_store']).optional()),
421
+ zod_1.z.enum(['web', 'app_store', 'play_store']),
422
+ ])
423
+ .optional(),
243
424
  });
244
425
  const ListAddonBodySchema = zod_1.z.looseObject({
245
426
  limit: zod_1.z.number().int().min(1).max(100).optional(),
@@ -10,6 +10,11 @@ const CreateAlertThresholdSchema = zod_1.z.object({
10
10
  mode: zod_1.z.enum(['absolute', 'percentage']).optional(),
11
11
  value: zod_1.z.number(),
12
12
  });
13
+ const CreateAlertFilterConditionsItemSchema = zod_1.z.object({
14
+ field: zod_1.z.enum(['plan_price_id']).optional(),
15
+ operator: zod_1.z.enum(['equals', 'not_equals']).optional(),
16
+ value: zod_1.z.string().max(50).optional(),
17
+ });
13
18
  const CreateAlertFilterConditionsSchema = zod_1.z.object({
14
19
  field: zod_1.z.array(zod_1.z.enum(['plan_price_id']).optional()).optional(),
15
20
  operator: zod_1.z.array(zod_1.z.enum(['equals', 'not_equals']).optional()).optional(),
@@ -25,12 +30,22 @@ const CreateAlertBodySchema = zod_1.z.looseObject({
25
30
  subscription_id: zod_1.z.string().max(50).optional(),
26
31
  meta: zod_1.z.string().max(65000).optional(),
27
32
  threshold: CreateAlertThresholdSchema.optional(),
28
- filter_conditions: CreateAlertFilterConditionsSchema.optional(),
33
+ filter_conditions: zod_1.z
34
+ .union([
35
+ zod_1.z.array(CreateAlertFilterConditionsItemSchema.optional()),
36
+ CreateAlertFilterConditionsSchema,
37
+ ])
38
+ .optional(),
29
39
  });
30
40
  exports.CreateAlertBodySchema = CreateAlertBodySchema;
31
41
  //Alert.list
32
42
  const ListAlertIdSchema = zod_1.z.object({
33
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
43
+ 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(),
34
49
  });
35
50
  const ListAlertTypeSchema = zod_1.z.object({
36
51
  is: zod_1.z
@@ -10,7 +10,12 @@ const AlertStatusesforsubscriptionAlertStatusAlarmStatusSchema = zod_1.z.object(
10
10
  is: zod_1.z.enum(['within_limit', 'in_alarm']).optional(),
11
11
  });
12
12
  const AlertStatusesforsubscriptionAlertStatusAlertIdSchema = zod_1.z.object({
13
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
13
+ in: zod_1.z
14
+ .union([
15
+ zod_1.z.array(zod_1.z.string().optional()),
16
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
17
+ ])
18
+ .optional(),
14
19
  });
15
20
  const AlertStatusesforsubscriptionAlertStatusBodySchema = zod_1.z.looseObject({
16
21
  limit: zod_1.z.number().int().min(1).max(100).optional(),
@@ -61,27 +61,67 @@ const ListAttachedItemIdSchema = zod_1.z.object({
61
61
  is: zod_1.z.string().min(1).optional(),
62
62
  is_not: zod_1.z.string().min(1).optional(),
63
63
  starts_with: zod_1.z.string().min(1).optional(),
64
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
65
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
64
+ in: zod_1.z
65
+ .union([
66
+ zod_1.z.array(zod_1.z.string().optional()),
67
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
68
+ ])
69
+ .optional(),
70
+ not_in: zod_1.z
71
+ .union([
72
+ zod_1.z.array(zod_1.z.string().optional()),
73
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
74
+ ])
75
+ .optional(),
66
76
  });
67
77
  const ListAttachedItemItemIdSchema = zod_1.z.object({
68
78
  is: zod_1.z.string().min(1).optional(),
69
79
  is_not: zod_1.z.string().min(1).optional(),
70
80
  starts_with: zod_1.z.string().min(1).optional(),
71
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
72
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
81
+ in: zod_1.z
82
+ .union([
83
+ zod_1.z.array(zod_1.z.string().optional()),
84
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
85
+ ])
86
+ .optional(),
87
+ not_in: zod_1.z
88
+ .union([
89
+ zod_1.z.array(zod_1.z.string().optional()),
90
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
91
+ ])
92
+ .optional(),
73
93
  });
74
94
  const ListAttachedItemTypeSchema = zod_1.z.object({
75
95
  is: zod_1.z.enum(['recommended', 'mandatory', 'optional']).optional(),
76
96
  is_not: zod_1.z.enum(['recommended', 'mandatory', 'optional']).optional(),
77
- in: zod_1.z.enum(['recommended', 'mandatory', 'optional']).optional(),
78
- not_in: zod_1.z.enum(['recommended', 'mandatory', 'optional']).optional(),
97
+ in: zod_1.z
98
+ .union([
99
+ zod_1.z.array(zod_1.z.enum(['recommended', 'mandatory', 'optional']).optional()),
100
+ zod_1.z.enum(['recommended', 'mandatory', 'optional']),
101
+ ])
102
+ .optional(),
103
+ not_in: zod_1.z
104
+ .union([
105
+ zod_1.z.array(zod_1.z.enum(['recommended', 'mandatory', 'optional']).optional()),
106
+ zod_1.z.enum(['recommended', 'mandatory', 'optional']),
107
+ ])
108
+ .optional(),
79
109
  });
80
110
  const ListAttachedItemItemTypeSchema = zod_1.z.object({
81
111
  is: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
82
112
  is_not: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
83
- in: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
84
- not_in: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
113
+ in: zod_1.z
114
+ .union([
115
+ zod_1.z.array(zod_1.z.enum(['plan', 'addon', 'charge']).optional()),
116
+ zod_1.z.enum(['plan', 'addon', 'charge']),
117
+ ])
118
+ .optional(),
119
+ not_in: zod_1.z
120
+ .union([
121
+ zod_1.z.array(zod_1.z.enum(['plan', 'addon', 'charge']).optional()),
122
+ zod_1.z.enum(['plan', 'addon', 'charge']),
123
+ ])
124
+ .optional(),
85
125
  });
86
126
  const ListAttachedItemChargeOnEventSchema = zod_1.z.object({
87
127
  is: zod_1.z
@@ -105,31 +145,66 @@ const ListAttachedItemChargeOnEventSchema = zod_1.z.object({
105
145
  ])
106
146
  .optional(),
107
147
  in: zod_1.z
108
- .enum([
109
- 'subscription_creation',
110
- 'subscription_trial_start',
111
- 'plan_activation',
112
- 'subscription_activation',
113
- 'contract_termination',
114
- 'on_demand',
148
+ .union([
149
+ zod_1.z.array(zod_1.z
150
+ .enum([
151
+ 'subscription_creation',
152
+ 'subscription_trial_start',
153
+ 'plan_activation',
154
+ 'subscription_activation',
155
+ 'contract_termination',
156
+ 'on_demand',
157
+ ])
158
+ .optional()),
159
+ zod_1.z.enum([
160
+ 'subscription_creation',
161
+ 'subscription_trial_start',
162
+ 'plan_activation',
163
+ 'subscription_activation',
164
+ 'contract_termination',
165
+ 'on_demand',
166
+ ]),
115
167
  ])
116
168
  .optional(),
117
169
  not_in: zod_1.z
118
- .enum([
119
- 'subscription_creation',
120
- 'subscription_trial_start',
121
- 'plan_activation',
122
- 'subscription_activation',
123
- 'contract_termination',
124
- 'on_demand',
170
+ .union([
171
+ zod_1.z.array(zod_1.z
172
+ .enum([
173
+ 'subscription_creation',
174
+ 'subscription_trial_start',
175
+ 'plan_activation',
176
+ 'subscription_activation',
177
+ 'contract_termination',
178
+ 'on_demand',
179
+ ])
180
+ .optional()),
181
+ zod_1.z.enum([
182
+ 'subscription_creation',
183
+ 'subscription_trial_start',
184
+ 'plan_activation',
185
+ 'subscription_activation',
186
+ 'contract_termination',
187
+ 'on_demand',
188
+ ]),
125
189
  ])
126
190
  .optional(),
127
191
  });
128
192
  const ListAttachedItemUpdatedAtSchema = zod_1.z.object({
129
- after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
130
- before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
131
- on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
132
- between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
193
+ after: zod_1.z
194
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
195
+ .optional(),
196
+ before: zod_1.z
197
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
198
+ .optional(),
199
+ on: zod_1.z
200
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
201
+ .optional(),
202
+ between: zod_1.z
203
+ .union([
204
+ zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
205
+ zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
206
+ ])
207
+ .optional(),
133
208
  });
134
209
  const ListAttachedItemBodySchema = zod_1.z.looseObject({
135
210
  limit: zod_1.z.number().int().min(1).max(100).optional(),
@@ -1,10 +1,36 @@
1
1
  "use strict";
2
2
  // Generated Zod schemas: BusinessEntity
3
- // Actions: createTransfers, getTransfers
3
+ // Actions: create, list, update, createTransfers, getTransfers
4
4
  // Do not edit manually – regenerate via sdk-generator
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.GetTransfersBusinessEntityBodySchema = exports.CreateTransfersBusinessEntityBodySchema = void 0;
6
+ exports.GetTransfersBusinessEntityBodySchema = exports.CreateTransfersBusinessEntityBodySchema = exports.UpdateBusinessEntityBodySchema = exports.ListBusinessEntityBodySchema = exports.CreateBusinessEntityBodySchema = void 0;
7
7
  const zod_1 = require("zod");
8
+ //BusinessEntity.create
9
+ const CreateBusinessEntityBodySchema = zod_1.z.looseObject({
10
+ name: zod_1.z.string().max(100),
11
+ status: zod_1.z.enum(['active', 'inactive']),
12
+ });
13
+ exports.CreateBusinessEntityBodySchema = CreateBusinessEntityBodySchema;
14
+ //BusinessEntity.list
15
+ const ListBusinessEntityNameSchema = zod_1.z.object({
16
+ is: zod_1.z.string().min(1).optional(),
17
+ is_not: zod_1.z.string().min(1).optional(),
18
+ starts_with: zod_1.z.string().min(1).optional(),
19
+ is_present: zod_1.z.union([zod_1.z.boolean(), zod_1.z.enum(['true', 'false'])]).optional(),
20
+ });
21
+ const ListBusinessEntityBodySchema = zod_1.z.looseObject({
22
+ limit: zod_1.z.number().int().min(1).max(100).optional(),
23
+ offset: zod_1.z.string().max(1000).optional(),
24
+ include_deleted: zod_1.z.boolean().default(false).optional(),
25
+ name: ListBusinessEntityNameSchema.optional(),
26
+ });
27
+ exports.ListBusinessEntityBodySchema = ListBusinessEntityBodySchema;
28
+ //BusinessEntity.update
29
+ const UpdateBusinessEntityBodySchema = zod_1.z.looseObject({
30
+ name: zod_1.z.string().max(100).optional(),
31
+ status: zod_1.z.enum(['active', 'inactive']).optional(),
32
+ });
33
+ exports.UpdateBusinessEntityBodySchema = UpdateBusinessEntityBodySchema;
8
34
  //BusinessEntity.createTransfers
9
35
  const CreateTransfersBusinessEntityBodySchema = zod_1.z.looseObject({
10
36
  active_resource_ids: zod_1.z.array(zod_1.z.string().max(50).optional()),
@@ -25,10 +51,21 @@ const GetTransfersBusinessEntityActiveResourceIdSchema = zod_1.z.object({
25
51
  is: zod_1.z.string().min(1).optional(),
26
52
  });
27
53
  const GetTransfersBusinessEntityCreatedAtSchema = zod_1.z.object({
28
- after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
29
- before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
30
- on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
31
- between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
54
+ after: zod_1.z
55
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
56
+ .optional(),
57
+ before: zod_1.z
58
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
59
+ .optional(),
60
+ on: zod_1.z
61
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
62
+ .optional(),
63
+ between: zod_1.z
64
+ .union([
65
+ zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
66
+ zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
67
+ ])
68
+ .optional(),
32
69
  });
33
70
  const GetTransfersBusinessEntitySortBySchema = zod_1.z.looseObject({
34
71
  asc: zod_1.z.enum(['created_at']).optional(),
@@ -28,10 +28,10 @@ const UpdateDraftBusinessRuleBodySchema = zod_1.z.looseObject({
28
28
  exports.UpdateDraftBusinessRuleBodySchema = UpdateDraftBusinessRuleBodySchema;
29
29
  //BusinessRule.list
30
30
  const ListBusinessRuleDraftSchema = zod_1.z.object({
31
- is: zod_1.z.enum(['true', 'false']).optional(),
31
+ is: zod_1.z.union([zod_1.z.boolean(), zod_1.z.enum(['true', 'false'])]).optional(),
32
32
  });
33
33
  const ListBusinessRuleActiveSchema = zod_1.z.object({
34
- is: zod_1.z.enum(['true', 'false']).optional(),
34
+ is: zod_1.z.union([zod_1.z.boolean(), zod_1.z.enum(['true', 'false'])]).optional(),
35
35
  });
36
36
  const ListBusinessRuleBodySchema = zod_1.z.looseObject({
37
37
  limit: zod_1.z.number().int().min(1).max(100).optional(),
@@ -48,7 +48,7 @@ const RemoveRulesBusinessRulesetBodySchema = zod_1.z.looseObject({
48
48
  exports.RemoveRulesBusinessRulesetBodySchema = RemoveRulesBusinessRulesetBodySchema;
49
49
  //BusinessRuleset.listRules
50
50
  const ListRulesBusinessRulesetActiveSchema = zod_1.z.object({
51
- is: zod_1.z.enum(['true', 'false']).optional(),
51
+ is: zod_1.z.union([zod_1.z.boolean(), zod_1.z.enum(['true', 'false'])]).optional(),
52
52
  });
53
53
  const ListRulesBusinessRulesetBodySchema = zod_1.z.looseObject({
54
54
  limit: zod_1.z.number().int().min(1).max(100).optional(),
@@ -58,7 +58,7 @@ const ListRulesBusinessRulesetBodySchema = zod_1.z.looseObject({
58
58
  exports.ListRulesBusinessRulesetBodySchema = ListRulesBusinessRulesetBodySchema;
59
59
  //BusinessRuleset.list
60
60
  const ListBusinessRulesetActiveSchema = zod_1.z.object({
61
- is: zod_1.z.enum(['true', 'false']).optional(),
61
+ is: zod_1.z.union([zod_1.z.boolean(), zod_1.z.enum(['true', 'false'])]).optional(),
62
62
  });
63
63
  const ListBusinessRulesetBodySchema = zod_1.z.looseObject({
64
64
  limit: zod_1.z.number().int().min(1).max(100).optional(),