chargebee 3.24.0 → 3.25.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +39 -0
  3. package/cjs/RequestWrapper.js +27 -0
  4. package/cjs/chargebee.cjs.js +3 -0
  5. package/cjs/chargebee.cjs.worker.js +2 -0
  6. package/cjs/chargebeeZodValidationError.js +18 -0
  7. package/cjs/createChargebee.js +5 -0
  8. package/cjs/environment.js +1 -1
  9. package/cjs/schema/addon.schema.js +153 -0
  10. package/cjs/schema/address.schema.js +35 -0
  11. package/cjs/schema/alert.schema.js +38 -0
  12. package/cjs/schema/attached_item.schema.js +58 -0
  13. package/cjs/schema/business_entity.schema.js +46 -0
  14. package/cjs/schema/card.schema.js +165 -0
  15. package/cjs/schema/comment.schema.js +69 -0
  16. package/cjs/schema/coupon.schema.js +209 -0
  17. package/cjs/schema/coupon_code.schema.js +14 -0
  18. package/cjs/schema/coupon_set.schema.js +28 -0
  19. package/cjs/schema/credit_note.schema.js +288 -0
  20. package/cjs/schema/currency.schema.js +32 -0
  21. package/cjs/schema/customer.schema.js +986 -0
  22. package/cjs/schema/customer_entitlement.schema.js +14 -0
  23. package/cjs/schema/differential_price.schema.js +68 -0
  24. package/cjs/schema/entitlement.schema.js +27 -0
  25. package/cjs/schema/entitlement_override.schema.js +33 -0
  26. package/cjs/schema/estimate.schema.js +1525 -0
  27. package/cjs/schema/export.schema.js +1545 -0
  28. package/cjs/schema/feature.schema.js +37 -0
  29. package/cjs/schema/gift.schema.js +277 -0
  30. package/cjs/schema/hosted_page.schema.js +1649 -0
  31. package/cjs/schema/in_app_subscription.schema.js +68 -0
  32. package/cjs/schema/index.js +80 -0
  33. package/cjs/schema/invoice.schema.js +1467 -0
  34. package/cjs/schema/item.schema.js +91 -0
  35. package/cjs/schema/item_entitlement.schema.js +45 -0
  36. package/cjs/schema/item_family.schema.js +21 -0
  37. package/cjs/schema/item_price.schema.js +190 -0
  38. package/cjs/schema/non_subscription.schema.js +28 -0
  39. package/cjs/schema/offer_event.schema.js +13 -0
  40. package/cjs/schema/offer_fulfillment.schema.js +20 -0
  41. package/cjs/schema/omnichannel_one_time_order.schema.js +26 -0
  42. package/cjs/schema/omnichannel_subscription.schema.js +89 -0
  43. package/cjs/schema/omnichannel_subscription_item.schema.js +13 -0
  44. package/cjs/schema/order.schema.js +273 -0
  45. package/cjs/schema/payment_intent.schema.js +117 -0
  46. package/cjs/schema/payment_schedule_scheme.schema.js +20 -0
  47. package/cjs/schema/payment_source.schema.js +358 -0
  48. package/cjs/schema/payment_voucher.schema.js +57 -0
  49. package/cjs/schema/personalized_offer.schema.js +28 -0
  50. package/cjs/schema/plan.schema.js +225 -0
  51. package/cjs/schema/portal_session.schema.js +22 -0
  52. package/cjs/schema/price_variant.schema.js +36 -0
  53. package/cjs/schema/pricing_page_session.schema.js +135 -0
  54. package/cjs/schema/promotional_credit.schema.js +78 -0
  55. package/cjs/schema/purchase.schema.js +272 -0
  56. package/cjs/schema/quote.schema.js +1557 -0
  57. package/cjs/schema/ramp.schema.js +209 -0
  58. package/cjs/schema/recorded_purchase.schema.js +32 -0
  59. package/cjs/schema/resource_migration.schema.js +14 -0
  60. package/cjs/schema/site_migration_detail.schema.js +81 -0
  61. package/cjs/schema/subscription.schema.js +2993 -0
  62. package/cjs/schema/subscription_entitlement.schema.js +25 -0
  63. package/cjs/schema/time_machine.schema.js +17 -0
  64. package/cjs/schema/transaction.schema.js +70 -0
  65. package/cjs/schema/unbilled_charge.schema.js +113 -0
  66. package/cjs/schema/usage.schema.js +93 -0
  67. package/cjs/schema/usage_charge.schema.js +17 -0
  68. package/cjs/schema/usage_event.schema.js +28 -0
  69. package/cjs/schema/usage_file.schema.js +13 -0
  70. package/cjs/schema/usage_summary.schema.js +17 -0
  71. package/cjs/schema/virtual_bank_account.schema.js +43 -0
  72. package/cjs/schema/webhook_endpoint.schema.js +504 -0
  73. package/cjs/validationLoader.js +59 -0
  74. package/esm/RequestWrapper.js +27 -0
  75. package/esm/chargebee.esm.js +2 -0
  76. package/esm/chargebee.esm.worker.js +1 -0
  77. package/esm/chargebeeZodValidationError.js +14 -0
  78. package/esm/createChargebee.js +5 -0
  79. package/esm/environment.js +1 -1
  80. package/esm/schema/addon.schema.js +150 -0
  81. package/esm/schema/address.schema.js +32 -0
  82. package/esm/schema/alert.schema.js +35 -0
  83. package/esm/schema/attached_item.schema.js +55 -0
  84. package/esm/schema/business_entity.schema.js +43 -0
  85. package/esm/schema/card.schema.js +162 -0
  86. package/esm/schema/comment.schema.js +66 -0
  87. package/esm/schema/coupon.schema.js +206 -0
  88. package/esm/schema/coupon_code.schema.js +11 -0
  89. package/esm/schema/coupon_set.schema.js +25 -0
  90. package/esm/schema/credit_note.schema.js +285 -0
  91. package/esm/schema/currency.schema.js +29 -0
  92. package/esm/schema/customer.schema.js +983 -0
  93. package/esm/schema/customer_entitlement.schema.js +11 -0
  94. package/esm/schema/differential_price.schema.js +65 -0
  95. package/esm/schema/entitlement.schema.js +24 -0
  96. package/esm/schema/entitlement_override.schema.js +30 -0
  97. package/esm/schema/estimate.schema.js +1522 -0
  98. package/esm/schema/export.schema.js +1542 -0
  99. package/esm/schema/feature.schema.js +34 -0
  100. package/esm/schema/gift.schema.js +274 -0
  101. package/esm/schema/hosted_page.schema.js +1646 -0
  102. package/esm/schema/in_app_subscription.schema.js +65 -0
  103. package/esm/schema/index.js +64 -0
  104. package/esm/schema/invoice.schema.js +1464 -0
  105. package/esm/schema/item.schema.js +88 -0
  106. package/esm/schema/item_entitlement.schema.js +42 -0
  107. package/esm/schema/item_family.schema.js +18 -0
  108. package/esm/schema/item_price.schema.js +187 -0
  109. package/esm/schema/non_subscription.schema.js +25 -0
  110. package/esm/schema/offer_event.schema.js +10 -0
  111. package/esm/schema/offer_fulfillment.schema.js +17 -0
  112. package/esm/schema/omnichannel_one_time_order.schema.js +23 -0
  113. package/esm/schema/omnichannel_subscription.schema.js +86 -0
  114. package/esm/schema/omnichannel_subscription_item.schema.js +10 -0
  115. package/esm/schema/order.schema.js +270 -0
  116. package/esm/schema/payment_intent.schema.js +114 -0
  117. package/esm/schema/payment_schedule_scheme.schema.js +17 -0
  118. package/esm/schema/payment_source.schema.js +355 -0
  119. package/esm/schema/payment_voucher.schema.js +54 -0
  120. package/esm/schema/personalized_offer.schema.js +25 -0
  121. package/esm/schema/plan.schema.js +222 -0
  122. package/esm/schema/portal_session.schema.js +19 -0
  123. package/esm/schema/price_variant.schema.js +33 -0
  124. package/esm/schema/pricing_page_session.schema.js +132 -0
  125. package/esm/schema/promotional_credit.schema.js +75 -0
  126. package/esm/schema/purchase.schema.js +269 -0
  127. package/esm/schema/quote.schema.js +1554 -0
  128. package/esm/schema/ramp.schema.js +206 -0
  129. package/esm/schema/recorded_purchase.schema.js +29 -0
  130. package/esm/schema/resource_migration.schema.js +11 -0
  131. package/esm/schema/site_migration_detail.schema.js +78 -0
  132. package/esm/schema/subscription.schema.js +2990 -0
  133. package/esm/schema/subscription_entitlement.schema.js +22 -0
  134. package/esm/schema/time_machine.schema.js +14 -0
  135. package/esm/schema/transaction.schema.js +67 -0
  136. package/esm/schema/unbilled_charge.schema.js +110 -0
  137. package/esm/schema/usage.schema.js +90 -0
  138. package/esm/schema/usage_charge.schema.js +14 -0
  139. package/esm/schema/usage_event.schema.js +25 -0
  140. package/esm/schema/usage_file.schema.js +10 -0
  141. package/esm/schema/usage_summary.schema.js +14 -0
  142. package/esm/schema/virtual_bank_account.schema.js +40 -0
  143. package/esm/schema/webhook_endpoint.schema.js +501 -0
  144. package/esm/validationLoader.js +56 -0
  145. package/package.json +4 -1
  146. package/types/core.d.ts +2 -0
  147. package/types/index.d.ts +16 -0
@@ -0,0 +1,1545 @@
1
+ "use strict";
2
+ // Generated Zod schemas: Export
3
+ // Actions: customers, creditNotes, transactions, orders, itemFamilies, items, attachedItems, priceVariants
4
+ // Do not edit manually – regenerate via sdk-generator
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PriceVariantsExportBodySchema = exports.AttachedItemsExportBodySchema = exports.ItemsExportBodySchema = exports.ItemFamiliesExportBodySchema = exports.OrdersExportBodySchema = exports.TransactionsExportBodySchema = exports.CreditNotesExportBodySchema = exports.CustomersExportBodySchema = void 0;
7
+ const zod_1 = require("zod");
8
+ //Export.customers
9
+ const CustomersExportBusinessEntityIdSchema = zod_1.z.object({
10
+ is: zod_1.z.string().min(1).optional(),
11
+ is_not: zod_1.z.string().min(1).optional(),
12
+ starts_with: zod_1.z.string().min(1).optional(),
13
+ });
14
+ const CustomersExportIdSchema = zod_1.z.object({
15
+ is: zod_1.z.string().min(1).optional(),
16
+ is_not: zod_1.z.string().min(1).optional(),
17
+ starts_with: zod_1.z.string().min(1).optional(),
18
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
19
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
20
+ });
21
+ const CustomersExportFirstNameSchema = zod_1.z.object({
22
+ is: zod_1.z.string().min(1).optional(),
23
+ is_not: zod_1.z.string().min(1).optional(),
24
+ starts_with: zod_1.z.string().min(1).optional(),
25
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
26
+ });
27
+ const CustomersExportLastNameSchema = zod_1.z.object({
28
+ is: zod_1.z.string().min(1).optional(),
29
+ is_not: zod_1.z.string().min(1).optional(),
30
+ starts_with: zod_1.z.string().min(1).optional(),
31
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
32
+ });
33
+ const CustomersExportEmailSchema = zod_1.z.object({
34
+ is: zod_1.z.string().min(1).optional(),
35
+ is_not: zod_1.z.string().min(1).optional(),
36
+ starts_with: zod_1.z.string().min(1).optional(),
37
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
38
+ });
39
+ const CustomersExportCompanySchema = zod_1.z.object({
40
+ is: zod_1.z.string().min(1).optional(),
41
+ is_not: zod_1.z.string().min(1).optional(),
42
+ starts_with: zod_1.z.string().min(1).optional(),
43
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
44
+ });
45
+ const CustomersExportPhoneSchema = zod_1.z.object({
46
+ is: zod_1.z.string().min(1).optional(),
47
+ is_not: zod_1.z.string().min(1).optional(),
48
+ starts_with: zod_1.z.string().min(1).optional(),
49
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
50
+ });
51
+ const CustomersExportAutoCollectionSchema = zod_1.z.object({
52
+ is: zod_1.z.enum(['on', 'off']).optional(),
53
+ is_not: zod_1.z.enum(['on', 'off']).optional(),
54
+ in: zod_1.z.enum(['on', 'off']).optional(),
55
+ not_in: zod_1.z.enum(['on', 'off']).optional(),
56
+ });
57
+ const CustomersExportTaxabilitySchema = zod_1.z.object({
58
+ is: zod_1.z.enum(['taxable', 'exempt']).optional(),
59
+ is_not: zod_1.z.enum(['taxable', 'exempt']).optional(),
60
+ in: zod_1.z.enum(['taxable', 'exempt']).optional(),
61
+ not_in: zod_1.z.enum(['taxable', 'exempt']).optional(),
62
+ });
63
+ const CustomersExportCreatedAtSchema = zod_1.z.object({
64
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
65
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
66
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
67
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
68
+ });
69
+ const CustomersExportUpdatedAtSchema = zod_1.z.object({
70
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
71
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
72
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
73
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
74
+ });
75
+ const CustomersExportOfflinePaymentMethodSchema = zod_1.z.object({
76
+ is: zod_1.z
77
+ .enum([
78
+ 'no_preference',
79
+ 'cash',
80
+ 'check',
81
+ 'bank_transfer',
82
+ 'ach_credit',
83
+ 'sepa_credit',
84
+ 'boleto',
85
+ 'us_automated_bank_transfer',
86
+ 'eu_automated_bank_transfer',
87
+ 'uk_automated_bank_transfer',
88
+ 'jp_automated_bank_transfer',
89
+ 'mx_automated_bank_transfer',
90
+ 'custom',
91
+ ])
92
+ .optional(),
93
+ is_not: zod_1.z
94
+ .enum([
95
+ 'no_preference',
96
+ 'cash',
97
+ 'check',
98
+ 'bank_transfer',
99
+ 'ach_credit',
100
+ 'sepa_credit',
101
+ 'boleto',
102
+ 'us_automated_bank_transfer',
103
+ 'eu_automated_bank_transfer',
104
+ 'uk_automated_bank_transfer',
105
+ 'jp_automated_bank_transfer',
106
+ 'mx_automated_bank_transfer',
107
+ 'custom',
108
+ ])
109
+ .optional(),
110
+ in: zod_1.z
111
+ .enum([
112
+ 'no_preference',
113
+ 'cash',
114
+ 'check',
115
+ 'bank_transfer',
116
+ 'ach_credit',
117
+ 'sepa_credit',
118
+ 'boleto',
119
+ 'us_automated_bank_transfer',
120
+ 'eu_automated_bank_transfer',
121
+ 'uk_automated_bank_transfer',
122
+ 'jp_automated_bank_transfer',
123
+ 'mx_automated_bank_transfer',
124
+ 'custom',
125
+ ])
126
+ .optional(),
127
+ not_in: zod_1.z
128
+ .enum([
129
+ 'no_preference',
130
+ 'cash',
131
+ 'check',
132
+ 'bank_transfer',
133
+ 'ach_credit',
134
+ 'sepa_credit',
135
+ 'boleto',
136
+ 'us_automated_bank_transfer',
137
+ 'eu_automated_bank_transfer',
138
+ 'uk_automated_bank_transfer',
139
+ 'jp_automated_bank_transfer',
140
+ 'mx_automated_bank_transfer',
141
+ 'custom',
142
+ ])
143
+ .optional(),
144
+ });
145
+ const CustomersExportAutoCloseInvoicesSchema = zod_1.z.object({
146
+ is: zod_1.z.enum(['true', 'false']).optional(),
147
+ });
148
+ const CustomersExportChannelSchema = zod_1.z.object({
149
+ is: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
150
+ is_not: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
151
+ in: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
152
+ not_in: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
153
+ });
154
+ const CustomersExportCustomerItemSchema = zod_1.z.object({
155
+ id: CustomersExportIdSchema.optional(),
156
+ first_name: CustomersExportFirstNameSchema.optional(),
157
+ last_name: CustomersExportLastNameSchema.optional(),
158
+ email: CustomersExportEmailSchema.optional(),
159
+ company: CustomersExportCompanySchema.optional(),
160
+ phone: CustomersExportPhoneSchema.optional(),
161
+ auto_collection: CustomersExportAutoCollectionSchema.optional(),
162
+ taxability: CustomersExportTaxabilitySchema.optional(),
163
+ created_at: CustomersExportCreatedAtSchema.optional(),
164
+ updated_at: CustomersExportUpdatedAtSchema.optional(),
165
+ offline_payment_method: CustomersExportOfflinePaymentMethodSchema.optional(),
166
+ auto_close_invoices: CustomersExportAutoCloseInvoicesSchema.optional(),
167
+ channel: CustomersExportChannelSchema.optional(),
168
+ });
169
+ const CustomersExportParentIdSchema = zod_1.z.object({
170
+ is: zod_1.z.string().min(1).optional(),
171
+ is_not: zod_1.z.string().min(1).optional(),
172
+ starts_with: zod_1.z.string().min(1).optional(),
173
+ });
174
+ const CustomersExportPaymentOwnerIdSchema = zod_1.z.object({
175
+ is: zod_1.z.string().min(1).optional(),
176
+ is_not: zod_1.z.string().min(1).optional(),
177
+ starts_with: zod_1.z.string().min(1).optional(),
178
+ });
179
+ const CustomersExportInvoiceOwnerIdSchema = zod_1.z.object({
180
+ is: zod_1.z.string().min(1).optional(),
181
+ is_not: zod_1.z.string().min(1).optional(),
182
+ starts_with: zod_1.z.string().min(1).optional(),
183
+ });
184
+ const CustomersExportRelationshipSchema = zod_1.z.object({
185
+ parent_id: CustomersExportParentIdSchema.optional(),
186
+ payment_owner_id: CustomersExportPaymentOwnerIdSchema.optional(),
187
+ invoice_owner_id: CustomersExportInvoiceOwnerIdSchema.optional(),
188
+ });
189
+ const CustomersExportBodySchema = zod_1.z.looseObject({
190
+ export_type: zod_1.z.enum(['data', 'import_friendly_data']).optional(),
191
+ business_entity_id: CustomersExportBusinessEntityIdSchema.optional(),
192
+ customer: zod_1.z.array(CustomersExportCustomerItemSchema.optional()).optional(),
193
+ relationship: CustomersExportRelationshipSchema.optional(),
194
+ });
195
+ exports.CustomersExportBodySchema = CustomersExportBodySchema;
196
+ //Export.creditNotes
197
+ const CreditNotesExportIdSchema = zod_1.z.object({
198
+ is: zod_1.z.string().min(1).optional(),
199
+ is_not: zod_1.z.string().min(1).optional(),
200
+ starts_with: zod_1.z.string().min(1).optional(),
201
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
202
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
203
+ });
204
+ const CreditNotesExportCustomerIdSchema = zod_1.z.object({
205
+ is: zod_1.z.string().min(1).optional(),
206
+ is_not: zod_1.z.string().min(1).optional(),
207
+ starts_with: zod_1.z.string().min(1).optional(),
208
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
209
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
210
+ });
211
+ const CreditNotesExportSubscriptionIdSchema = zod_1.z.object({
212
+ is: zod_1.z.string().min(1).optional(),
213
+ is_not: zod_1.z.string().min(1).optional(),
214
+ starts_with: zod_1.z.string().min(1).optional(),
215
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
216
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
217
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
218
+ });
219
+ const CreditNotesExportReferenceInvoiceIdSchema = zod_1.z.object({
220
+ is: zod_1.z.string().min(1).optional(),
221
+ is_not: zod_1.z.string().min(1).optional(),
222
+ starts_with: zod_1.z.string().min(1).optional(),
223
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
224
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
225
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
226
+ });
227
+ const CreditNotesExportTypeSchema = zod_1.z.object({
228
+ is: zod_1.z.enum(['adjustment', 'refundable', 'store']).optional(),
229
+ is_not: zod_1.z.enum(['adjustment', 'refundable', 'store']).optional(),
230
+ in: zod_1.z.enum(['adjustment', 'refundable', 'store']).optional(),
231
+ not_in: zod_1.z.enum(['adjustment', 'refundable', 'store']).optional(),
232
+ });
233
+ const CreditNotesExportReasonCodeSchema = zod_1.z.object({
234
+ is: zod_1.z
235
+ .enum([
236
+ 'write_off',
237
+ 'subscription_change',
238
+ 'subscription_cancellation',
239
+ 'subscription_pause',
240
+ 'chargeback',
241
+ 'product_unsatisfactory',
242
+ 'service_unsatisfactory',
243
+ 'order_change',
244
+ 'order_cancellation',
245
+ 'waiver',
246
+ 'other',
247
+ 'fraudulent',
248
+ ])
249
+ .optional(),
250
+ is_not: zod_1.z
251
+ .enum([
252
+ 'write_off',
253
+ 'subscription_change',
254
+ 'subscription_cancellation',
255
+ 'subscription_pause',
256
+ 'chargeback',
257
+ 'product_unsatisfactory',
258
+ 'service_unsatisfactory',
259
+ 'order_change',
260
+ 'order_cancellation',
261
+ 'waiver',
262
+ 'other',
263
+ 'fraudulent',
264
+ ])
265
+ .optional(),
266
+ in: zod_1.z
267
+ .enum([
268
+ 'write_off',
269
+ 'subscription_change',
270
+ 'subscription_cancellation',
271
+ 'subscription_pause',
272
+ 'chargeback',
273
+ 'product_unsatisfactory',
274
+ 'service_unsatisfactory',
275
+ 'order_change',
276
+ 'order_cancellation',
277
+ 'waiver',
278
+ 'other',
279
+ 'fraudulent',
280
+ ])
281
+ .optional(),
282
+ not_in: zod_1.z
283
+ .enum([
284
+ 'write_off',
285
+ 'subscription_change',
286
+ 'subscription_cancellation',
287
+ 'subscription_pause',
288
+ 'chargeback',
289
+ 'product_unsatisfactory',
290
+ 'service_unsatisfactory',
291
+ 'order_change',
292
+ 'order_cancellation',
293
+ 'waiver',
294
+ 'other',
295
+ 'fraudulent',
296
+ ])
297
+ .optional(),
298
+ });
299
+ const CreditNotesExportCreateReasonCodeSchema = zod_1.z.object({
300
+ is: zod_1.z.string().min(1).optional(),
301
+ is_not: zod_1.z.string().min(1).optional(),
302
+ starts_with: zod_1.z.string().min(1).optional(),
303
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
304
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
305
+ });
306
+ const CreditNotesExportStatusSchema = zod_1.z.object({
307
+ is: zod_1.z.enum(['adjusted', 'refunded', 'refund_due', 'voided']).optional(),
308
+ is_not: zod_1.z.enum(['adjusted', 'refunded', 'refund_due', 'voided']).optional(),
309
+ in: zod_1.z.enum(['adjusted', 'refunded', 'refund_due', 'voided']).optional(),
310
+ not_in: zod_1.z.enum(['adjusted', 'refunded', 'refund_due', 'voided']).optional(),
311
+ });
312
+ const CreditNotesExportDateSchema = zod_1.z.object({
313
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
314
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
315
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
316
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
317
+ });
318
+ const CreditNotesExportTotalSchema = zod_1.z.object({
319
+ is: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
320
+ is_not: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
321
+ lt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
322
+ lte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
323
+ gt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
324
+ gte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
325
+ between: zod_1.z.string().regex(RegExp('^[-?d+,-?d+]$')).optional(),
326
+ });
327
+ const CreditNotesExportPriceTypeSchema = zod_1.z.object({
328
+ is: zod_1.z.enum(['tax_exclusive', 'tax_inclusive']).optional(),
329
+ is_not: zod_1.z.enum(['tax_exclusive', 'tax_inclusive']).optional(),
330
+ in: zod_1.z.enum(['tax_exclusive', 'tax_inclusive']).optional(),
331
+ not_in: zod_1.z.enum(['tax_exclusive', 'tax_inclusive']).optional(),
332
+ });
333
+ const CreditNotesExportAmountAllocatedSchema = zod_1.z.object({
334
+ is: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
335
+ is_not: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
336
+ lt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
337
+ lte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
338
+ gt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
339
+ gte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
340
+ between: zod_1.z.string().regex(RegExp('^[-?d+,-?d+]$')).optional(),
341
+ });
342
+ const CreditNotesExportAmountRefundedSchema = zod_1.z.object({
343
+ is: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
344
+ is_not: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
345
+ lt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
346
+ lte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
347
+ gt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
348
+ gte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
349
+ between: zod_1.z.string().regex(RegExp('^[-?d+,-?d+]$')).optional(),
350
+ });
351
+ const CreditNotesExportAmountAvailableSchema = zod_1.z.object({
352
+ is: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
353
+ is_not: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
354
+ lt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
355
+ lte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
356
+ gt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
357
+ gte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
358
+ between: zod_1.z.string().regex(RegExp('^[-?d+,-?d+]$')).optional(),
359
+ });
360
+ const CreditNotesExportVoidedAtSchema = zod_1.z.object({
361
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
362
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
363
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
364
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
365
+ });
366
+ const CreditNotesExportUpdatedAtSchema = zod_1.z.object({
367
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
368
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
369
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
370
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
371
+ });
372
+ const CreditNotesExportChannelSchema = zod_1.z.object({
373
+ is: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
374
+ is_not: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
375
+ in: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
376
+ not_in: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
377
+ });
378
+ const CreditNotesExportCreditNoteItemSchema = zod_1.z.object({
379
+ id: CreditNotesExportIdSchema.optional(),
380
+ customer_id: CreditNotesExportCustomerIdSchema.optional(),
381
+ subscription_id: CreditNotesExportSubscriptionIdSchema.optional(),
382
+ reference_invoice_id: CreditNotesExportReferenceInvoiceIdSchema.optional(),
383
+ type: CreditNotesExportTypeSchema.optional(),
384
+ reason_code: CreditNotesExportReasonCodeSchema.optional(),
385
+ create_reason_code: CreditNotesExportCreateReasonCodeSchema.optional(),
386
+ status: CreditNotesExportStatusSchema.optional(),
387
+ date: CreditNotesExportDateSchema.optional(),
388
+ total: CreditNotesExportTotalSchema.optional(),
389
+ price_type: CreditNotesExportPriceTypeSchema.optional(),
390
+ amount_allocated: CreditNotesExportAmountAllocatedSchema.optional(),
391
+ amount_refunded: CreditNotesExportAmountRefundedSchema.optional(),
392
+ amount_available: CreditNotesExportAmountAvailableSchema.optional(),
393
+ voided_at: CreditNotesExportVoidedAtSchema.optional(),
394
+ updated_at: CreditNotesExportUpdatedAtSchema.optional(),
395
+ channel: CreditNotesExportChannelSchema.optional(),
396
+ });
397
+ const CreditNotesExportBodySchema = zod_1.z.looseObject({
398
+ credit_note: zod_1.z
399
+ .array(CreditNotesExportCreditNoteItemSchema.optional())
400
+ .optional(),
401
+ });
402
+ exports.CreditNotesExportBodySchema = CreditNotesExportBodySchema;
403
+ //Export.transactions
404
+ const TransactionsExportIdSchema = zod_1.z.object({
405
+ is: zod_1.z.string().min(1).optional(),
406
+ is_not: zod_1.z.string().min(1).optional(),
407
+ starts_with: zod_1.z.string().min(1).optional(),
408
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
409
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
410
+ });
411
+ const TransactionsExportCustomerIdSchema = zod_1.z.object({
412
+ is: zod_1.z.string().min(1).optional(),
413
+ is_not: zod_1.z.string().min(1).optional(),
414
+ starts_with: zod_1.z.string().min(1).optional(),
415
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
416
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
417
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
418
+ });
419
+ const TransactionsExportSubscriptionIdSchema = zod_1.z.object({
420
+ is: zod_1.z.string().min(1).optional(),
421
+ is_not: zod_1.z.string().min(1).optional(),
422
+ starts_with: zod_1.z.string().min(1).optional(),
423
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
424
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
425
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
426
+ });
427
+ const TransactionsExportPaymentSourceIdSchema = zod_1.z.object({
428
+ is: zod_1.z.string().min(1).optional(),
429
+ is_not: zod_1.z.string().min(1).optional(),
430
+ starts_with: zod_1.z.string().min(1).optional(),
431
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
432
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
433
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
434
+ });
435
+ const TransactionsExportPaymentMethodSchema = zod_1.z.object({
436
+ is: zod_1.z
437
+ .enum([
438
+ 'card',
439
+ 'cash',
440
+ 'check',
441
+ 'chargeback',
442
+ 'bank_transfer',
443
+ 'amazon_payments',
444
+ 'paypal_express_checkout',
445
+ 'direct_debit',
446
+ 'alipay',
447
+ 'unionpay',
448
+ 'apple_pay',
449
+ 'wechat_pay',
450
+ 'ach_credit',
451
+ 'sepa_credit',
452
+ 'ideal',
453
+ 'google_pay',
454
+ 'sofort',
455
+ 'bancontact',
456
+ 'giropay',
457
+ 'dotpay',
458
+ 'other',
459
+ 'app_store',
460
+ 'upi',
461
+ 'netbanking_emandates',
462
+ 'play_store',
463
+ 'custom',
464
+ 'boleto',
465
+ 'venmo',
466
+ 'pay_to',
467
+ 'faster_payments',
468
+ 'sepa_instant_transfer',
469
+ 'automated_bank_transfer',
470
+ 'klarna_pay_now',
471
+ 'online_banking_poland',
472
+ 'payconiq_by_bancontact',
473
+ 'electronic_payment_standard',
474
+ 'kbc_payment_button',
475
+ 'pay_by_bank',
476
+ 'trustly',
477
+ 'stablecoin',
478
+ 'kakao_pay',
479
+ 'naver_pay',
480
+ 'revolut_pay',
481
+ 'cash_app_pay',
482
+ 'pix',
483
+ 'twint',
484
+ 'go_pay',
485
+ 'grab_pay',
486
+ 'pay_co',
487
+ 'after_pay',
488
+ 'swish',
489
+ 'payme',
490
+ ])
491
+ .optional(),
492
+ is_not: zod_1.z
493
+ .enum([
494
+ 'card',
495
+ 'cash',
496
+ 'check',
497
+ 'chargeback',
498
+ 'bank_transfer',
499
+ 'amazon_payments',
500
+ 'paypal_express_checkout',
501
+ 'direct_debit',
502
+ 'alipay',
503
+ 'unionpay',
504
+ 'apple_pay',
505
+ 'wechat_pay',
506
+ 'ach_credit',
507
+ 'sepa_credit',
508
+ 'ideal',
509
+ 'google_pay',
510
+ 'sofort',
511
+ 'bancontact',
512
+ 'giropay',
513
+ 'dotpay',
514
+ 'other',
515
+ 'app_store',
516
+ 'upi',
517
+ 'netbanking_emandates',
518
+ 'play_store',
519
+ 'custom',
520
+ 'boleto',
521
+ 'venmo',
522
+ 'pay_to',
523
+ 'faster_payments',
524
+ 'sepa_instant_transfer',
525
+ 'automated_bank_transfer',
526
+ 'klarna_pay_now',
527
+ 'online_banking_poland',
528
+ 'payconiq_by_bancontact',
529
+ 'electronic_payment_standard',
530
+ 'kbc_payment_button',
531
+ 'pay_by_bank',
532
+ 'trustly',
533
+ 'stablecoin',
534
+ 'kakao_pay',
535
+ 'naver_pay',
536
+ 'revolut_pay',
537
+ 'cash_app_pay',
538
+ 'pix',
539
+ 'twint',
540
+ 'go_pay',
541
+ 'grab_pay',
542
+ 'pay_co',
543
+ 'after_pay',
544
+ 'swish',
545
+ 'payme',
546
+ ])
547
+ .optional(),
548
+ in: zod_1.z
549
+ .enum([
550
+ 'card',
551
+ 'cash',
552
+ 'check',
553
+ 'chargeback',
554
+ 'bank_transfer',
555
+ 'amazon_payments',
556
+ 'paypal_express_checkout',
557
+ 'direct_debit',
558
+ 'alipay',
559
+ 'unionpay',
560
+ 'apple_pay',
561
+ 'wechat_pay',
562
+ 'ach_credit',
563
+ 'sepa_credit',
564
+ 'ideal',
565
+ 'google_pay',
566
+ 'sofort',
567
+ 'bancontact',
568
+ 'giropay',
569
+ 'dotpay',
570
+ 'other',
571
+ 'app_store',
572
+ 'upi',
573
+ 'netbanking_emandates',
574
+ 'play_store',
575
+ 'custom',
576
+ 'boleto',
577
+ 'venmo',
578
+ 'pay_to',
579
+ 'faster_payments',
580
+ 'sepa_instant_transfer',
581
+ 'automated_bank_transfer',
582
+ 'klarna_pay_now',
583
+ 'online_banking_poland',
584
+ 'payconiq_by_bancontact',
585
+ 'electronic_payment_standard',
586
+ 'kbc_payment_button',
587
+ 'pay_by_bank',
588
+ 'trustly',
589
+ 'stablecoin',
590
+ 'kakao_pay',
591
+ 'naver_pay',
592
+ 'revolut_pay',
593
+ 'cash_app_pay',
594
+ 'pix',
595
+ 'twint',
596
+ 'go_pay',
597
+ 'grab_pay',
598
+ 'pay_co',
599
+ 'after_pay',
600
+ 'swish',
601
+ 'payme',
602
+ ])
603
+ .optional(),
604
+ not_in: zod_1.z
605
+ .enum([
606
+ 'card',
607
+ 'cash',
608
+ 'check',
609
+ 'chargeback',
610
+ 'bank_transfer',
611
+ 'amazon_payments',
612
+ 'paypal_express_checkout',
613
+ 'direct_debit',
614
+ 'alipay',
615
+ 'unionpay',
616
+ 'apple_pay',
617
+ 'wechat_pay',
618
+ 'ach_credit',
619
+ 'sepa_credit',
620
+ 'ideal',
621
+ 'google_pay',
622
+ 'sofort',
623
+ 'bancontact',
624
+ 'giropay',
625
+ 'dotpay',
626
+ 'other',
627
+ 'app_store',
628
+ 'upi',
629
+ 'netbanking_emandates',
630
+ 'play_store',
631
+ 'custom',
632
+ 'boleto',
633
+ 'venmo',
634
+ 'pay_to',
635
+ 'faster_payments',
636
+ 'sepa_instant_transfer',
637
+ 'automated_bank_transfer',
638
+ 'klarna_pay_now',
639
+ 'online_banking_poland',
640
+ 'payconiq_by_bancontact',
641
+ 'electronic_payment_standard',
642
+ 'kbc_payment_button',
643
+ 'pay_by_bank',
644
+ 'trustly',
645
+ 'stablecoin',
646
+ 'kakao_pay',
647
+ 'naver_pay',
648
+ 'revolut_pay',
649
+ 'cash_app_pay',
650
+ 'pix',
651
+ 'twint',
652
+ 'go_pay',
653
+ 'grab_pay',
654
+ 'pay_co',
655
+ 'after_pay',
656
+ 'swish',
657
+ 'payme',
658
+ ])
659
+ .optional(),
660
+ });
661
+ const TransactionsExportGatewaySchema = zod_1.z.object({
662
+ is: zod_1.z
663
+ .enum([
664
+ 'chargebee',
665
+ 'chargebee_payments',
666
+ 'adyen',
667
+ 'stripe',
668
+ 'wepay',
669
+ 'braintree',
670
+ 'authorize_net',
671
+ 'paypal_pro',
672
+ 'pin',
673
+ 'eway',
674
+ 'eway_rapid',
675
+ 'worldpay',
676
+ 'balanced_payments',
677
+ 'beanstream',
678
+ 'bluepay',
679
+ 'elavon',
680
+ 'first_data_global',
681
+ 'hdfc',
682
+ 'migs',
683
+ 'nmi',
684
+ 'ogone',
685
+ 'paymill',
686
+ 'paypal_payflow_pro',
687
+ 'sage_pay',
688
+ 'tco',
689
+ 'wirecard',
690
+ 'amazon_payments',
691
+ 'paypal_express_checkout',
692
+ 'gocardless',
693
+ 'orbital',
694
+ 'moneris_us',
695
+ 'moneris',
696
+ 'bluesnap',
697
+ 'cybersource',
698
+ 'vantiv',
699
+ 'checkout_com',
700
+ 'paypal',
701
+ 'ingenico_direct',
702
+ 'exact',
703
+ 'mollie',
704
+ 'quickbooks',
705
+ 'razorpay',
706
+ 'global_payments',
707
+ 'bank_of_america',
708
+ 'ecentric',
709
+ 'metrics_global',
710
+ 'windcave',
711
+ 'pay_com',
712
+ 'ebanx',
713
+ 'dlocal',
714
+ 'nuvei',
715
+ 'solidgate',
716
+ 'paystack',
717
+ 'jp_morgan',
718
+ 'deutsche_bank',
719
+ 'ezidebit',
720
+ 'twikey',
721
+ 'tempus',
722
+ 'moyasar',
723
+ 'payway',
724
+ 'not_applicable',
725
+ ])
726
+ .optional(),
727
+ is_not: zod_1.z
728
+ .enum([
729
+ 'chargebee',
730
+ 'chargebee_payments',
731
+ 'adyen',
732
+ 'stripe',
733
+ 'wepay',
734
+ 'braintree',
735
+ 'authorize_net',
736
+ 'paypal_pro',
737
+ 'pin',
738
+ 'eway',
739
+ 'eway_rapid',
740
+ 'worldpay',
741
+ 'balanced_payments',
742
+ 'beanstream',
743
+ 'bluepay',
744
+ 'elavon',
745
+ 'first_data_global',
746
+ 'hdfc',
747
+ 'migs',
748
+ 'nmi',
749
+ 'ogone',
750
+ 'paymill',
751
+ 'paypal_payflow_pro',
752
+ 'sage_pay',
753
+ 'tco',
754
+ 'wirecard',
755
+ 'amazon_payments',
756
+ 'paypal_express_checkout',
757
+ 'gocardless',
758
+ 'orbital',
759
+ 'moneris_us',
760
+ 'moneris',
761
+ 'bluesnap',
762
+ 'cybersource',
763
+ 'vantiv',
764
+ 'checkout_com',
765
+ 'paypal',
766
+ 'ingenico_direct',
767
+ 'exact',
768
+ 'mollie',
769
+ 'quickbooks',
770
+ 'razorpay',
771
+ 'global_payments',
772
+ 'bank_of_america',
773
+ 'ecentric',
774
+ 'metrics_global',
775
+ 'windcave',
776
+ 'pay_com',
777
+ 'ebanx',
778
+ 'dlocal',
779
+ 'nuvei',
780
+ 'solidgate',
781
+ 'paystack',
782
+ 'jp_morgan',
783
+ 'deutsche_bank',
784
+ 'ezidebit',
785
+ 'twikey',
786
+ 'tempus',
787
+ 'moyasar',
788
+ 'payway',
789
+ 'not_applicable',
790
+ ])
791
+ .optional(),
792
+ in: zod_1.z
793
+ .enum([
794
+ 'chargebee',
795
+ 'chargebee_payments',
796
+ 'adyen',
797
+ 'stripe',
798
+ 'wepay',
799
+ 'braintree',
800
+ 'authorize_net',
801
+ 'paypal_pro',
802
+ 'pin',
803
+ 'eway',
804
+ 'eway_rapid',
805
+ 'worldpay',
806
+ 'balanced_payments',
807
+ 'beanstream',
808
+ 'bluepay',
809
+ 'elavon',
810
+ 'first_data_global',
811
+ 'hdfc',
812
+ 'migs',
813
+ 'nmi',
814
+ 'ogone',
815
+ 'paymill',
816
+ 'paypal_payflow_pro',
817
+ 'sage_pay',
818
+ 'tco',
819
+ 'wirecard',
820
+ 'amazon_payments',
821
+ 'paypal_express_checkout',
822
+ 'gocardless',
823
+ 'orbital',
824
+ 'moneris_us',
825
+ 'moneris',
826
+ 'bluesnap',
827
+ 'cybersource',
828
+ 'vantiv',
829
+ 'checkout_com',
830
+ 'paypal',
831
+ 'ingenico_direct',
832
+ 'exact',
833
+ 'mollie',
834
+ 'quickbooks',
835
+ 'razorpay',
836
+ 'global_payments',
837
+ 'bank_of_america',
838
+ 'ecentric',
839
+ 'metrics_global',
840
+ 'windcave',
841
+ 'pay_com',
842
+ 'ebanx',
843
+ 'dlocal',
844
+ 'nuvei',
845
+ 'solidgate',
846
+ 'paystack',
847
+ 'jp_morgan',
848
+ 'deutsche_bank',
849
+ 'ezidebit',
850
+ 'twikey',
851
+ 'tempus',
852
+ 'moyasar',
853
+ 'payway',
854
+ 'not_applicable',
855
+ ])
856
+ .optional(),
857
+ not_in: zod_1.z
858
+ .enum([
859
+ 'chargebee',
860
+ 'chargebee_payments',
861
+ 'adyen',
862
+ 'stripe',
863
+ 'wepay',
864
+ 'braintree',
865
+ 'authorize_net',
866
+ 'paypal_pro',
867
+ 'pin',
868
+ 'eway',
869
+ 'eway_rapid',
870
+ 'worldpay',
871
+ 'balanced_payments',
872
+ 'beanstream',
873
+ 'bluepay',
874
+ 'elavon',
875
+ 'first_data_global',
876
+ 'hdfc',
877
+ 'migs',
878
+ 'nmi',
879
+ 'ogone',
880
+ 'paymill',
881
+ 'paypal_payflow_pro',
882
+ 'sage_pay',
883
+ 'tco',
884
+ 'wirecard',
885
+ 'amazon_payments',
886
+ 'paypal_express_checkout',
887
+ 'gocardless',
888
+ 'orbital',
889
+ 'moneris_us',
890
+ 'moneris',
891
+ 'bluesnap',
892
+ 'cybersource',
893
+ 'vantiv',
894
+ 'checkout_com',
895
+ 'paypal',
896
+ 'ingenico_direct',
897
+ 'exact',
898
+ 'mollie',
899
+ 'quickbooks',
900
+ 'razorpay',
901
+ 'global_payments',
902
+ 'bank_of_america',
903
+ 'ecentric',
904
+ 'metrics_global',
905
+ 'windcave',
906
+ 'pay_com',
907
+ 'ebanx',
908
+ 'dlocal',
909
+ 'nuvei',
910
+ 'solidgate',
911
+ 'paystack',
912
+ 'jp_morgan',
913
+ 'deutsche_bank',
914
+ 'ezidebit',
915
+ 'twikey',
916
+ 'tempus',
917
+ 'moyasar',
918
+ 'payway',
919
+ 'not_applicable',
920
+ ])
921
+ .optional(),
922
+ });
923
+ const TransactionsExportGatewayAccountIdSchema = zod_1.z.object({
924
+ is: zod_1.z.string().min(1).optional(),
925
+ is_not: zod_1.z.string().min(1).optional(),
926
+ starts_with: zod_1.z.string().min(1).optional(),
927
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
928
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
929
+ });
930
+ const TransactionsExportIdAtGatewaySchema = zod_1.z.object({
931
+ is: zod_1.z.string().min(1).optional(),
932
+ is_not: zod_1.z.string().min(1).optional(),
933
+ starts_with: zod_1.z.string().min(1).optional(),
934
+ });
935
+ const TransactionsExportReferenceNumberSchema = zod_1.z.object({
936
+ is: zod_1.z.string().min(1).optional(),
937
+ is_not: zod_1.z.string().min(1).optional(),
938
+ starts_with: zod_1.z.string().min(1).optional(),
939
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
940
+ });
941
+ const TransactionsExportTypeSchema = zod_1.z.object({
942
+ is: zod_1.z
943
+ .enum(['authorization', 'payment', 'refund', 'payment_reversal'])
944
+ .optional(),
945
+ is_not: zod_1.z
946
+ .enum(['authorization', 'payment', 'refund', 'payment_reversal'])
947
+ .optional(),
948
+ in: zod_1.z
949
+ .enum(['authorization', 'payment', 'refund', 'payment_reversal'])
950
+ .optional(),
951
+ not_in: zod_1.z
952
+ .enum(['authorization', 'payment', 'refund', 'payment_reversal'])
953
+ .optional(),
954
+ });
955
+ const TransactionsExportDateSchema = zod_1.z.object({
956
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
957
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
958
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
959
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
960
+ });
961
+ const TransactionsExportAmountSchema = zod_1.z.object({
962
+ is: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
963
+ is_not: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
964
+ lt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
965
+ lte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
966
+ gt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
967
+ gte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
968
+ between: zod_1.z.string().regex(RegExp('^[-?d+,-?d+]$')).optional(),
969
+ });
970
+ const TransactionsExportAmountCapturableSchema = zod_1.z.object({
971
+ is: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
972
+ is_not: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
973
+ lt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
974
+ lte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
975
+ gt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
976
+ gte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
977
+ between: zod_1.z.string().regex(RegExp('^[-?d+,-?d+]$')).optional(),
978
+ });
979
+ const TransactionsExportStatusSchema = zod_1.z.object({
980
+ is: zod_1.z
981
+ .enum([
982
+ 'in_progress',
983
+ 'success',
984
+ 'voided',
985
+ 'failure',
986
+ 'timeout',
987
+ 'needs_attention',
988
+ 'late_failure',
989
+ ])
990
+ .optional(),
991
+ is_not: zod_1.z
992
+ .enum([
993
+ 'in_progress',
994
+ 'success',
995
+ 'voided',
996
+ 'failure',
997
+ 'timeout',
998
+ 'needs_attention',
999
+ 'late_failure',
1000
+ ])
1001
+ .optional(),
1002
+ in: zod_1.z
1003
+ .enum([
1004
+ 'in_progress',
1005
+ 'success',
1006
+ 'voided',
1007
+ 'failure',
1008
+ 'timeout',
1009
+ 'needs_attention',
1010
+ 'late_failure',
1011
+ ])
1012
+ .optional(),
1013
+ not_in: zod_1.z
1014
+ .enum([
1015
+ 'in_progress',
1016
+ 'success',
1017
+ 'voided',
1018
+ 'failure',
1019
+ 'timeout',
1020
+ 'needs_attention',
1021
+ 'late_failure',
1022
+ ])
1023
+ .optional(),
1024
+ });
1025
+ const TransactionsExportUpdatedAtSchema = zod_1.z.object({
1026
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1027
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1028
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1029
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
1030
+ });
1031
+ const TransactionsExportTransactionItemSchema = zod_1.z.object({
1032
+ id: TransactionsExportIdSchema.optional(),
1033
+ customer_id: TransactionsExportCustomerIdSchema.optional(),
1034
+ subscription_id: TransactionsExportSubscriptionIdSchema.optional(),
1035
+ payment_source_id: TransactionsExportPaymentSourceIdSchema.optional(),
1036
+ payment_method: TransactionsExportPaymentMethodSchema.optional(),
1037
+ gateway: TransactionsExportGatewaySchema.optional(),
1038
+ gateway_account_id: TransactionsExportGatewayAccountIdSchema.optional(),
1039
+ id_at_gateway: TransactionsExportIdAtGatewaySchema.optional(),
1040
+ reference_number: TransactionsExportReferenceNumberSchema.optional(),
1041
+ type: TransactionsExportTypeSchema.optional(),
1042
+ date: TransactionsExportDateSchema.optional(),
1043
+ amount: TransactionsExportAmountSchema.optional(),
1044
+ amount_capturable: TransactionsExportAmountCapturableSchema.optional(),
1045
+ status: TransactionsExportStatusSchema.optional(),
1046
+ updated_at: TransactionsExportUpdatedAtSchema.optional(),
1047
+ });
1048
+ const TransactionsExportBodySchema = zod_1.z.looseObject({
1049
+ transaction: zod_1.z
1050
+ .array(TransactionsExportTransactionItemSchema.optional())
1051
+ .optional(),
1052
+ });
1053
+ exports.TransactionsExportBodySchema = TransactionsExportBodySchema;
1054
+ //Export.orders
1055
+ const OrdersExportTotalSchema = zod_1.z.object({
1056
+ is: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1057
+ is_not: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1058
+ lt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1059
+ lte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1060
+ gt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1061
+ gte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1062
+ between: zod_1.z.string().regex(RegExp('^[-?d+,-?d+]$')).optional(),
1063
+ });
1064
+ const OrdersExportIdSchema = zod_1.z.object({
1065
+ is: zod_1.z.string().min(1).optional(),
1066
+ is_not: zod_1.z.string().min(1).optional(),
1067
+ starts_with: zod_1.z.string().min(1).optional(),
1068
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1069
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1070
+ });
1071
+ const OrdersExportSubscriptionIdSchema = zod_1.z.object({
1072
+ is: zod_1.z.string().min(1).optional(),
1073
+ is_not: zod_1.z.string().min(1).optional(),
1074
+ starts_with: zod_1.z.string().min(1).optional(),
1075
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
1076
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1077
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1078
+ });
1079
+ const OrdersExportCustomerIdSchema = zod_1.z.object({
1080
+ is: zod_1.z.string().min(1).optional(),
1081
+ is_not: zod_1.z.string().min(1).optional(),
1082
+ starts_with: zod_1.z.string().min(1).optional(),
1083
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1084
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1085
+ });
1086
+ const OrdersExportStatusSchema = zod_1.z.object({
1087
+ is: zod_1.z
1088
+ .enum([
1089
+ 'new',
1090
+ 'processing',
1091
+ 'complete',
1092
+ 'cancelled',
1093
+ 'voided',
1094
+ 'queued',
1095
+ 'awaiting_shipment',
1096
+ 'on_hold',
1097
+ 'delivered',
1098
+ 'shipped',
1099
+ 'partially_delivered',
1100
+ 'returned',
1101
+ ])
1102
+ .optional(),
1103
+ is_not: zod_1.z
1104
+ .enum([
1105
+ 'new',
1106
+ 'processing',
1107
+ 'complete',
1108
+ 'cancelled',
1109
+ 'voided',
1110
+ 'queued',
1111
+ 'awaiting_shipment',
1112
+ 'on_hold',
1113
+ 'delivered',
1114
+ 'shipped',
1115
+ 'partially_delivered',
1116
+ 'returned',
1117
+ ])
1118
+ .optional(),
1119
+ in: zod_1.z
1120
+ .enum([
1121
+ 'new',
1122
+ 'processing',
1123
+ 'complete',
1124
+ 'cancelled',
1125
+ 'voided',
1126
+ 'queued',
1127
+ 'awaiting_shipment',
1128
+ 'on_hold',
1129
+ 'delivered',
1130
+ 'shipped',
1131
+ 'partially_delivered',
1132
+ 'returned',
1133
+ ])
1134
+ .optional(),
1135
+ not_in: zod_1.z
1136
+ .enum([
1137
+ 'new',
1138
+ 'processing',
1139
+ 'complete',
1140
+ 'cancelled',
1141
+ 'voided',
1142
+ 'queued',
1143
+ 'awaiting_shipment',
1144
+ 'on_hold',
1145
+ 'delivered',
1146
+ 'shipped',
1147
+ 'partially_delivered',
1148
+ 'returned',
1149
+ ])
1150
+ .optional(),
1151
+ });
1152
+ const OrdersExportPriceTypeSchema = zod_1.z.object({
1153
+ is: zod_1.z.enum(['tax_exclusive', 'tax_inclusive']).optional(),
1154
+ is_not: zod_1.z.enum(['tax_exclusive', 'tax_inclusive']).optional(),
1155
+ in: zod_1.z.enum(['tax_exclusive', 'tax_inclusive']).optional(),
1156
+ not_in: zod_1.z.enum(['tax_exclusive', 'tax_inclusive']).optional(),
1157
+ });
1158
+ const OrdersExportOrderDateSchema = zod_1.z.object({
1159
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1160
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1161
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1162
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
1163
+ });
1164
+ const OrdersExportShippingDateSchema = zod_1.z.object({
1165
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1166
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1167
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1168
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
1169
+ });
1170
+ const OrdersExportShippedAtSchema = zod_1.z.object({
1171
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1172
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1173
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1174
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
1175
+ });
1176
+ const OrdersExportDeliveredAtSchema = zod_1.z.object({
1177
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1178
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1179
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1180
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
1181
+ });
1182
+ const OrdersExportCancelledAtSchema = zod_1.z.object({
1183
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1184
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1185
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1186
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
1187
+ });
1188
+ const OrdersExportAmountPaidSchema = zod_1.z.object({
1189
+ is: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1190
+ is_not: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1191
+ lt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1192
+ lte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1193
+ gt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1194
+ gte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1195
+ between: zod_1.z.string().regex(RegExp('^[-?d+,-?d+]$')).optional(),
1196
+ });
1197
+ const OrdersExportRefundableCreditsSchema = zod_1.z.object({
1198
+ is: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1199
+ is_not: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1200
+ lt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1201
+ lte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1202
+ gt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1203
+ gte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1204
+ between: zod_1.z.string().regex(RegExp('^[-?d+,-?d+]$')).optional(),
1205
+ });
1206
+ const OrdersExportRefundableCreditsIssuedSchema = zod_1.z.object({
1207
+ is: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1208
+ is_not: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1209
+ lt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1210
+ lte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1211
+ gt: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1212
+ gte: zod_1.z.string().regex(RegExp('^-?d+$')).optional(),
1213
+ between: zod_1.z.string().regex(RegExp('^[-?d+,-?d+]$')).optional(),
1214
+ });
1215
+ const OrdersExportUpdatedAtSchema = zod_1.z.object({
1216
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1217
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1218
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1219
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
1220
+ });
1221
+ const OrdersExportResentStatusSchema = zod_1.z.object({
1222
+ is: zod_1.z.enum(['fully_resent', 'partially_resent']).optional(),
1223
+ is_not: zod_1.z.enum(['fully_resent', 'partially_resent']).optional(),
1224
+ in: zod_1.z.enum(['fully_resent', 'partially_resent']).optional(),
1225
+ not_in: zod_1.z.enum(['fully_resent', 'partially_resent']).optional(),
1226
+ });
1227
+ const OrdersExportIsResentSchema = zod_1.z.object({
1228
+ is: zod_1.z.enum(['true', 'false']).optional(),
1229
+ });
1230
+ const OrdersExportOriginalOrderIdSchema = zod_1.z.object({
1231
+ is: zod_1.z.string().min(1).optional(),
1232
+ is_not: zod_1.z.string().min(1).optional(),
1233
+ starts_with: zod_1.z.string().min(1).optional(),
1234
+ });
1235
+ const OrdersExportOrderItemSchema = zod_1.z.object({
1236
+ id: OrdersExportIdSchema.optional(),
1237
+ subscription_id: OrdersExportSubscriptionIdSchema.optional(),
1238
+ customer_id: OrdersExportCustomerIdSchema.optional(),
1239
+ status: OrdersExportStatusSchema.optional(),
1240
+ price_type: OrdersExportPriceTypeSchema.optional(),
1241
+ order_date: OrdersExportOrderDateSchema.optional(),
1242
+ shipping_date: OrdersExportShippingDateSchema.optional(),
1243
+ shipped_at: OrdersExportShippedAtSchema.optional(),
1244
+ delivered_at: OrdersExportDeliveredAtSchema.optional(),
1245
+ cancelled_at: OrdersExportCancelledAtSchema.optional(),
1246
+ amount_paid: OrdersExportAmountPaidSchema.optional(),
1247
+ refundable_credits: OrdersExportRefundableCreditsSchema.optional(),
1248
+ refundable_credits_issued: OrdersExportRefundableCreditsIssuedSchema.optional(),
1249
+ updated_at: OrdersExportUpdatedAtSchema.optional(),
1250
+ resent_status: OrdersExportResentStatusSchema.optional(),
1251
+ is_resent: OrdersExportIsResentSchema.optional(),
1252
+ original_order_id: OrdersExportOriginalOrderIdSchema.optional(),
1253
+ });
1254
+ const OrdersExportBodySchema = zod_1.z.looseObject({
1255
+ total: OrdersExportTotalSchema.optional(),
1256
+ order: zod_1.z.array(OrdersExportOrderItemSchema.optional()).optional(),
1257
+ });
1258
+ exports.OrdersExportBodySchema = OrdersExportBodySchema;
1259
+ //Export.itemFamilies
1260
+ const ItemFamiliesExportBusinessEntityIdSchema = zod_1.z.object({
1261
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
1262
+ is: zod_1.z.string().min(1).optional(),
1263
+ });
1264
+ const ItemFamiliesExportIncludeSiteLevelResourcesSchema = zod_1.z.object({
1265
+ is: zod_1.z.enum(['true', 'false']).optional(),
1266
+ });
1267
+ const ItemFamiliesExportIdSchema = zod_1.z.object({
1268
+ is: zod_1.z.string().min(1).optional(),
1269
+ is_not: zod_1.z.string().min(1).optional(),
1270
+ starts_with: zod_1.z.string().min(1).optional(),
1271
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1272
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1273
+ });
1274
+ const ItemFamiliesExportNameSchema = zod_1.z.object({
1275
+ is: zod_1.z.string().min(1).optional(),
1276
+ is_not: zod_1.z.string().min(1).optional(),
1277
+ starts_with: zod_1.z.string().min(1).optional(),
1278
+ });
1279
+ const ItemFamiliesExportUpdatedAtSchema = zod_1.z.object({
1280
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1281
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1282
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1283
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
1284
+ });
1285
+ const ItemFamiliesExportItemFamilyItemSchema = zod_1.z.object({
1286
+ id: ItemFamiliesExportIdSchema.optional(),
1287
+ name: ItemFamiliesExportNameSchema.optional(),
1288
+ updated_at: ItemFamiliesExportUpdatedAtSchema.optional(),
1289
+ });
1290
+ const ItemFamiliesExportBodySchema = zod_1.z.looseObject({
1291
+ business_entity_id: ItemFamiliesExportBusinessEntityIdSchema.optional(),
1292
+ include_site_level_resources: ItemFamiliesExportIncludeSiteLevelResourcesSchema.optional(),
1293
+ item_family: zod_1.z
1294
+ .array(ItemFamiliesExportItemFamilyItemSchema.optional())
1295
+ .optional(),
1296
+ });
1297
+ exports.ItemFamiliesExportBodySchema = ItemFamiliesExportBodySchema;
1298
+ //Export.items
1299
+ const ItemsExportBusinessEntityIdSchema = zod_1.z.object({
1300
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
1301
+ is: zod_1.z.string().min(1).optional(),
1302
+ });
1303
+ const ItemsExportIncludeSiteLevelResourcesSchema = zod_1.z.object({
1304
+ is: zod_1.z.enum(['true', 'false']).optional(),
1305
+ });
1306
+ const ItemsExportIdSchema = zod_1.z.object({
1307
+ is: zod_1.z.string().min(1).optional(),
1308
+ is_not: zod_1.z.string().min(1).optional(),
1309
+ starts_with: zod_1.z.string().min(1).optional(),
1310
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1311
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1312
+ });
1313
+ const ItemsExportItemFamilyIdSchema = zod_1.z.object({
1314
+ is: zod_1.z.string().min(1).optional(),
1315
+ is_not: zod_1.z.string().min(1).optional(),
1316
+ starts_with: zod_1.z.string().min(1).optional(),
1317
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1318
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1319
+ });
1320
+ const ItemsExportTypeSchema = zod_1.z.object({
1321
+ is: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
1322
+ is_not: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
1323
+ in: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
1324
+ not_in: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
1325
+ });
1326
+ const ItemsExportNameSchema = zod_1.z.object({
1327
+ is: zod_1.z.string().min(1).optional(),
1328
+ is_not: zod_1.z.string().min(1).optional(),
1329
+ starts_with: zod_1.z.string().min(1).optional(),
1330
+ });
1331
+ const ItemsExportItemApplicabilitySchema = zod_1.z.object({
1332
+ is: zod_1.z.enum(['all', 'restricted']).optional(),
1333
+ is_not: zod_1.z.enum(['all', 'restricted']).optional(),
1334
+ in: zod_1.z.enum(['all', 'restricted']).optional(),
1335
+ not_in: zod_1.z.enum(['all', 'restricted']).optional(),
1336
+ });
1337
+ const ItemsExportStatusSchema = zod_1.z.object({
1338
+ is: zod_1.z.enum(['active', 'archived', 'deleted']).optional(),
1339
+ is_not: zod_1.z.enum(['active', 'archived', 'deleted']).optional(),
1340
+ in: zod_1.z.enum(['active', 'archived', 'deleted']).optional(),
1341
+ not_in: zod_1.z.enum(['active', 'archived', 'deleted']).optional(),
1342
+ });
1343
+ const ItemsExportIsGiftableSchema = zod_1.z.object({
1344
+ is: zod_1.z.enum(['true', 'false']).optional(),
1345
+ });
1346
+ const ItemsExportUpdatedAtSchema = zod_1.z.object({
1347
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1348
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1349
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1350
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
1351
+ });
1352
+ const ItemsExportEnabledForCheckoutSchema = zod_1.z.object({
1353
+ is: zod_1.z.enum(['true', 'false']).optional(),
1354
+ });
1355
+ const ItemsExportEnabledInPortalSchema = zod_1.z.object({
1356
+ is: zod_1.z.enum(['true', 'false']).optional(),
1357
+ });
1358
+ const ItemsExportMeteredSchema = zod_1.z.object({
1359
+ is: zod_1.z.enum(['true', 'false']).optional(),
1360
+ });
1361
+ const ItemsExportUsageCalculationSchema = zod_1.z.object({
1362
+ is: zod_1.z.enum(['sum_of_usages', 'last_usage', 'max_usage']).optional(),
1363
+ is_not: zod_1.z.enum(['sum_of_usages', 'last_usage', 'max_usage']).optional(),
1364
+ in: zod_1.z.enum(['sum_of_usages', 'last_usage', 'max_usage']).optional(),
1365
+ not_in: zod_1.z.enum(['sum_of_usages', 'last_usage', 'max_usage']).optional(),
1366
+ });
1367
+ const ItemsExportChannelSchema = zod_1.z.object({
1368
+ is: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
1369
+ is_not: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
1370
+ in: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
1371
+ not_in: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
1372
+ });
1373
+ const ItemsExportItemItemSchema = zod_1.z.object({
1374
+ id: ItemsExportIdSchema.optional(),
1375
+ item_family_id: ItemsExportItemFamilyIdSchema.optional(),
1376
+ type: ItemsExportTypeSchema.optional(),
1377
+ name: ItemsExportNameSchema.optional(),
1378
+ item_applicability: ItemsExportItemApplicabilitySchema.optional(),
1379
+ status: ItemsExportStatusSchema.optional(),
1380
+ is_giftable: ItemsExportIsGiftableSchema.optional(),
1381
+ updated_at: ItemsExportUpdatedAtSchema.optional(),
1382
+ enabled_for_checkout: ItemsExportEnabledForCheckoutSchema.optional(),
1383
+ enabled_in_portal: ItemsExportEnabledInPortalSchema.optional(),
1384
+ metered: ItemsExportMeteredSchema.optional(),
1385
+ usage_calculation: ItemsExportUsageCalculationSchema.optional(),
1386
+ channel: ItemsExportChannelSchema.optional(),
1387
+ });
1388
+ const ItemsExportBodySchema = zod_1.z.looseObject({
1389
+ business_entity_id: ItemsExportBusinessEntityIdSchema.optional(),
1390
+ include_site_level_resources: ItemsExportIncludeSiteLevelResourcesSchema.optional(),
1391
+ item: zod_1.z.array(ItemsExportItemItemSchema.optional()).optional(),
1392
+ });
1393
+ exports.ItemsExportBodySchema = ItemsExportBodySchema;
1394
+ //Export.attachedItems
1395
+ const AttachedItemsExportItemTypeSchema = zod_1.z.object({
1396
+ is: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
1397
+ is_not: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
1398
+ in: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
1399
+ not_in: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
1400
+ });
1401
+ const AttachedItemsExportIdSchema = zod_1.z.object({
1402
+ is: zod_1.z.string().min(1).optional(),
1403
+ is_not: zod_1.z.string().min(1).optional(),
1404
+ starts_with: zod_1.z.string().min(1).optional(),
1405
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1406
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1407
+ });
1408
+ const AttachedItemsExportItemIdSchema = zod_1.z.object({
1409
+ is: zod_1.z.string().min(1).optional(),
1410
+ is_not: zod_1.z.string().min(1).optional(),
1411
+ starts_with: zod_1.z.string().min(1).optional(),
1412
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1413
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1414
+ });
1415
+ const AttachedItemsExportTypeSchema = zod_1.z.object({
1416
+ is: zod_1.z.enum(['recommended', 'mandatory', 'optional']).optional(),
1417
+ is_not: zod_1.z.enum(['recommended', 'mandatory', 'optional']).optional(),
1418
+ in: zod_1.z.enum(['recommended', 'mandatory', 'optional']).optional(),
1419
+ not_in: zod_1.z.enum(['recommended', 'mandatory', 'optional']).optional(),
1420
+ });
1421
+ const AttachedItemsExportChargeOnEventSchema = zod_1.z.object({
1422
+ is: zod_1.z
1423
+ .enum([
1424
+ 'subscription_creation',
1425
+ 'subscription_trial_start',
1426
+ 'plan_activation',
1427
+ 'subscription_activation',
1428
+ 'contract_termination',
1429
+ 'on_demand',
1430
+ ])
1431
+ .optional(),
1432
+ is_not: zod_1.z
1433
+ .enum([
1434
+ 'subscription_creation',
1435
+ 'subscription_trial_start',
1436
+ 'plan_activation',
1437
+ 'subscription_activation',
1438
+ 'contract_termination',
1439
+ 'on_demand',
1440
+ ])
1441
+ .optional(),
1442
+ in: zod_1.z
1443
+ .enum([
1444
+ 'subscription_creation',
1445
+ 'subscription_trial_start',
1446
+ 'plan_activation',
1447
+ 'subscription_activation',
1448
+ 'contract_termination',
1449
+ 'on_demand',
1450
+ ])
1451
+ .optional(),
1452
+ not_in: zod_1.z
1453
+ .enum([
1454
+ 'subscription_creation',
1455
+ 'subscription_trial_start',
1456
+ 'plan_activation',
1457
+ 'subscription_activation',
1458
+ 'contract_termination',
1459
+ 'on_demand',
1460
+ ])
1461
+ .optional(),
1462
+ });
1463
+ const AttachedItemsExportUpdatedAtSchema = zod_1.z.object({
1464
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1465
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1466
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1467
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
1468
+ });
1469
+ const AttachedItemsExportParentItemIdSchema = zod_1.z.object({
1470
+ is: zod_1.z.string().min(1).optional(),
1471
+ is_not: zod_1.z.string().min(1).optional(),
1472
+ starts_with: zod_1.z.string().min(1).optional(),
1473
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1474
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1475
+ });
1476
+ const AttachedItemsExportAttachedItemItemSchema = zod_1.z.object({
1477
+ id: AttachedItemsExportIdSchema.optional(),
1478
+ item_id: AttachedItemsExportItemIdSchema.optional(),
1479
+ type: AttachedItemsExportTypeSchema.optional(),
1480
+ charge_on_event: AttachedItemsExportChargeOnEventSchema.optional(),
1481
+ updated_at: AttachedItemsExportUpdatedAtSchema.optional(),
1482
+ parent_item_id: AttachedItemsExportParentItemIdSchema.optional(),
1483
+ });
1484
+ const AttachedItemsExportBodySchema = zod_1.z.looseObject({
1485
+ item_type: AttachedItemsExportItemTypeSchema.optional(),
1486
+ attached_item: zod_1.z
1487
+ .array(AttachedItemsExportAttachedItemItemSchema.optional())
1488
+ .optional(),
1489
+ });
1490
+ exports.AttachedItemsExportBodySchema = AttachedItemsExportBodySchema;
1491
+ //Export.priceVariants
1492
+ const PriceVariantsExportBusinessEntityIdSchema = zod_1.z.object({
1493
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
1494
+ is: zod_1.z.string().min(1).optional(),
1495
+ });
1496
+ const PriceVariantsExportIncludeSiteLevelResourcesSchema = zod_1.z.object({
1497
+ is: zod_1.z.enum(['true', 'false']).optional(),
1498
+ });
1499
+ const PriceVariantsExportIdSchema = zod_1.z.object({
1500
+ is: zod_1.z.string().min(1).optional(),
1501
+ is_not: zod_1.z.string().min(1).optional(),
1502
+ starts_with: zod_1.z.string().min(1).optional(),
1503
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1504
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1505
+ });
1506
+ const PriceVariantsExportNameSchema = zod_1.z.object({
1507
+ is: zod_1.z.string().min(1).optional(),
1508
+ is_not: zod_1.z.string().min(1).optional(),
1509
+ starts_with: zod_1.z.string().min(1).optional(),
1510
+ in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1511
+ not_in: zod_1.z.string().regex(RegExp('^[(.*)(,.*)*]$')).optional(),
1512
+ });
1513
+ const PriceVariantsExportStatusSchema = zod_1.z.object({
1514
+ is: zod_1.z.enum(['active', 'archived']).optional(),
1515
+ is_not: zod_1.z.enum(['active', 'archived']).optional(),
1516
+ in: zod_1.z.enum(['active', 'archived']).optional(),
1517
+ not_in: zod_1.z.enum(['active', 'archived']).optional(),
1518
+ });
1519
+ const PriceVariantsExportUpdatedAtSchema = zod_1.z.object({
1520
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1521
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1522
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1523
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
1524
+ });
1525
+ const PriceVariantsExportCreatedAtSchema = zod_1.z.object({
1526
+ after: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1527
+ before: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1528
+ on: zod_1.z.string().regex(RegExp('^d{10}$')).optional(),
1529
+ between: zod_1.z.string().regex(RegExp('^[d{10},d{10}]$')).optional(),
1530
+ });
1531
+ const PriceVariantsExportPriceVariantItemSchema = zod_1.z.object({
1532
+ id: PriceVariantsExportIdSchema.optional(),
1533
+ name: PriceVariantsExportNameSchema.optional(),
1534
+ status: PriceVariantsExportStatusSchema.optional(),
1535
+ updated_at: PriceVariantsExportUpdatedAtSchema.optional(),
1536
+ created_at: PriceVariantsExportCreatedAtSchema.optional(),
1537
+ });
1538
+ const PriceVariantsExportBodySchema = zod_1.z.looseObject({
1539
+ business_entity_id: PriceVariantsExportBusinessEntityIdSchema.optional(),
1540
+ include_site_level_resources: PriceVariantsExportIncludeSiteLevelResourcesSchema.optional(),
1541
+ price_variant: zod_1.z
1542
+ .array(PriceVariantsExportPriceVariantItemSchema.optional())
1543
+ .optional(),
1544
+ });
1545
+ exports.PriceVariantsExportBodySchema = PriceVariantsExportBodySchema;