chargebee 3.25.0-beta.1 → 3.25.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 (166) hide show
  1. package/CHANGELOG.md +66 -4
  2. package/README.md +0 -39
  3. package/cjs/RequestWrapper.js +1 -28
  4. package/cjs/chargebee.cjs.js +0 -3
  5. package/cjs/chargebee.cjs.worker.js +0 -2
  6. package/cjs/createChargebee.js +0 -5
  7. package/cjs/environment.js +1 -1
  8. package/cjs/resources/api_endpoints.js +1 -2
  9. package/cjs/resources/webhook/eventType.js +2 -0
  10. package/esm/RequestWrapper.js +1 -28
  11. package/esm/chargebee.esm.js +0 -2
  12. package/esm/chargebee.esm.worker.js +0 -1
  13. package/esm/createChargebee.js +0 -5
  14. package/esm/environment.js +1 -1
  15. package/esm/resources/api_endpoints.js +1 -2
  16. package/esm/resources/webhook/eventType.js +2 -0
  17. package/package.json +1 -4
  18. package/types/core.d.ts +23 -6
  19. package/types/index.d.ts +0 -17
  20. package/types/resources/Content.d.ts +0 -1
  21. package/types/resources/Customer.d.ts +14 -4
  22. package/types/resources/Estimate.d.ts +14 -4
  23. package/types/resources/Event.d.ts +2 -0
  24. package/types/resources/Gift.d.ts +23 -6
  25. package/types/resources/HostedPage.d.ts +1 -0
  26. package/types/resources/Invoice.d.ts +14 -5
  27. package/types/resources/OmnichannelSubscription.d.ts +6 -0
  28. package/types/resources/OmnichannelSubscriptionItem.d.ts +1 -0
  29. package/types/resources/PaymentIntent.d.ts +35 -10
  30. package/types/resources/PaymentSource.d.ts +7 -2
  31. package/types/resources/Purchase.d.ts +7 -2
  32. package/types/resources/Subscription.d.ts +49 -14
  33. package/types/resources/WebhookEvent.d.ts +22 -4
  34. package/cjs/chargebeeZodValidationError.js +0 -18
  35. package/cjs/schema/addon.schema.js +0 -153
  36. package/cjs/schema/address.schema.js +0 -35
  37. package/cjs/schema/alert.schema.js +0 -38
  38. package/cjs/schema/attached_item.schema.js +0 -58
  39. package/cjs/schema/business_entity.schema.js +0 -46
  40. package/cjs/schema/card.schema.js +0 -165
  41. package/cjs/schema/comment.schema.js +0 -69
  42. package/cjs/schema/coupon.schema.js +0 -209
  43. package/cjs/schema/coupon_code.schema.js +0 -14
  44. package/cjs/schema/coupon_set.schema.js +0 -28
  45. package/cjs/schema/credit_note.schema.js +0 -288
  46. package/cjs/schema/currency.schema.js +0 -32
  47. package/cjs/schema/customer.schema.js +0 -986
  48. package/cjs/schema/customer_entitlement.schema.js +0 -14
  49. package/cjs/schema/differential_price.schema.js +0 -68
  50. package/cjs/schema/entitlement.schema.js +0 -27
  51. package/cjs/schema/entitlement_override.schema.js +0 -33
  52. package/cjs/schema/estimate.schema.js +0 -1525
  53. package/cjs/schema/export.schema.js +0 -1545
  54. package/cjs/schema/feature.schema.js +0 -37
  55. package/cjs/schema/gift.schema.js +0 -277
  56. package/cjs/schema/hosted_page.schema.js +0 -1649
  57. package/cjs/schema/in_app_subscription.schema.js +0 -68
  58. package/cjs/schema/index.js +0 -80
  59. package/cjs/schema/invoice.schema.js +0 -1467
  60. package/cjs/schema/item.schema.js +0 -91
  61. package/cjs/schema/item_entitlement.schema.js +0 -45
  62. package/cjs/schema/item_family.schema.js +0 -21
  63. package/cjs/schema/item_price.schema.js +0 -190
  64. package/cjs/schema/non_subscription.schema.js +0 -28
  65. package/cjs/schema/offer_event.schema.js +0 -13
  66. package/cjs/schema/offer_fulfillment.schema.js +0 -20
  67. package/cjs/schema/omnichannel_one_time_order.schema.js +0 -26
  68. package/cjs/schema/omnichannel_subscription.schema.js +0 -89
  69. package/cjs/schema/omnichannel_subscription_item.schema.js +0 -13
  70. package/cjs/schema/order.schema.js +0 -273
  71. package/cjs/schema/payment_intent.schema.js +0 -117
  72. package/cjs/schema/payment_schedule_scheme.schema.js +0 -20
  73. package/cjs/schema/payment_source.schema.js +0 -358
  74. package/cjs/schema/payment_voucher.schema.js +0 -57
  75. package/cjs/schema/personalized_offer.schema.js +0 -28
  76. package/cjs/schema/plan.schema.js +0 -225
  77. package/cjs/schema/portal_session.schema.js +0 -22
  78. package/cjs/schema/price_variant.schema.js +0 -36
  79. package/cjs/schema/pricing_page_session.schema.js +0 -135
  80. package/cjs/schema/promotional_credit.schema.js +0 -78
  81. package/cjs/schema/purchase.schema.js +0 -272
  82. package/cjs/schema/quote.schema.js +0 -1557
  83. package/cjs/schema/ramp.schema.js +0 -209
  84. package/cjs/schema/recorded_purchase.schema.js +0 -32
  85. package/cjs/schema/resource_migration.schema.js +0 -14
  86. package/cjs/schema/site_migration_detail.schema.js +0 -81
  87. package/cjs/schema/subscription.schema.js +0 -2993
  88. package/cjs/schema/subscription_entitlement.schema.js +0 -25
  89. package/cjs/schema/time_machine.schema.js +0 -17
  90. package/cjs/schema/transaction.schema.js +0 -70
  91. package/cjs/schema/unbilled_charge.schema.js +0 -113
  92. package/cjs/schema/usage.schema.js +0 -93
  93. package/cjs/schema/usage_charge.schema.js +0 -17
  94. package/cjs/schema/usage_event.schema.js +0 -28
  95. package/cjs/schema/usage_file.schema.js +0 -13
  96. package/cjs/schema/usage_summary.schema.js +0 -17
  97. package/cjs/schema/virtual_bank_account.schema.js +0 -43
  98. package/cjs/schema/webhook_endpoint.schema.js +0 -504
  99. package/cjs/validationLoader.js +0 -59
  100. package/esm/chargebeeZodValidationError.js +0 -14
  101. package/esm/schema/addon.schema.js +0 -150
  102. package/esm/schema/address.schema.js +0 -32
  103. package/esm/schema/alert.schema.js +0 -35
  104. package/esm/schema/attached_item.schema.js +0 -55
  105. package/esm/schema/business_entity.schema.js +0 -43
  106. package/esm/schema/card.schema.js +0 -162
  107. package/esm/schema/comment.schema.js +0 -66
  108. package/esm/schema/coupon.schema.js +0 -206
  109. package/esm/schema/coupon_code.schema.js +0 -11
  110. package/esm/schema/coupon_set.schema.js +0 -25
  111. package/esm/schema/credit_note.schema.js +0 -285
  112. package/esm/schema/currency.schema.js +0 -29
  113. package/esm/schema/customer.schema.js +0 -983
  114. package/esm/schema/customer_entitlement.schema.js +0 -11
  115. package/esm/schema/differential_price.schema.js +0 -65
  116. package/esm/schema/entitlement.schema.js +0 -24
  117. package/esm/schema/entitlement_override.schema.js +0 -30
  118. package/esm/schema/estimate.schema.js +0 -1522
  119. package/esm/schema/export.schema.js +0 -1542
  120. package/esm/schema/feature.schema.js +0 -34
  121. package/esm/schema/gift.schema.js +0 -274
  122. package/esm/schema/hosted_page.schema.js +0 -1646
  123. package/esm/schema/in_app_subscription.schema.js +0 -65
  124. package/esm/schema/index.js +0 -64
  125. package/esm/schema/invoice.schema.js +0 -1464
  126. package/esm/schema/item.schema.js +0 -88
  127. package/esm/schema/item_entitlement.schema.js +0 -42
  128. package/esm/schema/item_family.schema.js +0 -18
  129. package/esm/schema/item_price.schema.js +0 -187
  130. package/esm/schema/non_subscription.schema.js +0 -25
  131. package/esm/schema/offer_event.schema.js +0 -10
  132. package/esm/schema/offer_fulfillment.schema.js +0 -17
  133. package/esm/schema/omnichannel_one_time_order.schema.js +0 -23
  134. package/esm/schema/omnichannel_subscription.schema.js +0 -86
  135. package/esm/schema/omnichannel_subscription_item.schema.js +0 -10
  136. package/esm/schema/order.schema.js +0 -270
  137. package/esm/schema/payment_intent.schema.js +0 -114
  138. package/esm/schema/payment_schedule_scheme.schema.js +0 -17
  139. package/esm/schema/payment_source.schema.js +0 -355
  140. package/esm/schema/payment_voucher.schema.js +0 -54
  141. package/esm/schema/personalized_offer.schema.js +0 -25
  142. package/esm/schema/plan.schema.js +0 -222
  143. package/esm/schema/portal_session.schema.js +0 -19
  144. package/esm/schema/price_variant.schema.js +0 -33
  145. package/esm/schema/pricing_page_session.schema.js +0 -132
  146. package/esm/schema/promotional_credit.schema.js +0 -75
  147. package/esm/schema/purchase.schema.js +0 -269
  148. package/esm/schema/quote.schema.js +0 -1554
  149. package/esm/schema/ramp.schema.js +0 -206
  150. package/esm/schema/recorded_purchase.schema.js +0 -29
  151. package/esm/schema/resource_migration.schema.js +0 -11
  152. package/esm/schema/site_migration_detail.schema.js +0 -78
  153. package/esm/schema/subscription.schema.js +0 -2990
  154. package/esm/schema/subscription_entitlement.schema.js +0 -22
  155. package/esm/schema/time_machine.schema.js +0 -14
  156. package/esm/schema/transaction.schema.js +0 -67
  157. package/esm/schema/unbilled_charge.schema.js +0 -110
  158. package/esm/schema/usage.schema.js +0 -90
  159. package/esm/schema/usage_charge.schema.js +0 -14
  160. package/esm/schema/usage_event.schema.js +0 -25
  161. package/esm/schema/usage_file.schema.js +0 -10
  162. package/esm/schema/usage_summary.schema.js +0 -14
  163. package/esm/schema/virtual_bank_account.schema.js +0 -40
  164. package/esm/schema/webhook_endpoint.schema.js +0 -501
  165. package/esm/validationLoader.js +0 -56
  166. package/types/resources/QuoteEntitlement.d.ts +0 -16
@@ -1,206 +0,0 @@
1
- // Generated Zod schemas: Ramp
2
- // Actions: createForSubscription, update
3
- // Do not edit manually – regenerate via sdk-generator
4
- import { z } from 'zod';
5
- //Ramp.createForSubscription
6
- const CreateForSubscriptionRampContractTermSchema = z.object({
7
- action_at_term_end: z
8
- .enum(['renew', 'evergreen', 'cancel', 'renew_once'])
9
- .optional(),
10
- cancellation_cutoff_period: z.number().int().optional(),
11
- renewal_billing_cycles: z.number().int().optional(),
12
- });
13
- const CreateForSubscriptionRampItemsToAddSchema = z.object({
14
- item_price_id: z.array(z.string().max(100).optional()),
15
- quantity: z.array(z.number().int().min(1).optional()).optional(),
16
- quantity_in_decimal: z.array(z.string().max(33).optional()).optional(),
17
- unit_price: z.array(z.number().int().min(0).optional()).optional(),
18
- unit_price_in_decimal: z.array(z.string().max(39).optional()).optional(),
19
- billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
20
- service_period_days: z
21
- .array(z.number().int().min(1).max(730).optional())
22
- .optional(),
23
- charge_on_event: z
24
- .array(z
25
- .enum([
26
- 'subscription_trial_start',
27
- 'plan_activation',
28
- 'subscription_activation',
29
- 'contract_termination',
30
- ])
31
- .optional())
32
- .optional(),
33
- charge_once: z.array(z.boolean().optional()).optional(),
34
- charge_on_option: z
35
- .array(z.enum(['immediately', 'on_event']).optional())
36
- .optional(),
37
- });
38
- const CreateForSubscriptionRampItemsToUpdateSchema = z.object({
39
- item_price_id: z.array(z.string().max(100).optional()),
40
- quantity: z.array(z.number().int().min(1).optional()).optional(),
41
- quantity_in_decimal: z.array(z.string().max(33).optional()).optional(),
42
- unit_price: z.array(z.number().int().min(0).optional()).optional(),
43
- unit_price_in_decimal: z.array(z.string().max(39).optional()).optional(),
44
- billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
45
- service_period_days: z
46
- .array(z.number().int().min(1).max(730).optional())
47
- .optional(),
48
- charge_on_event: z
49
- .array(z
50
- .enum([
51
- 'subscription_trial_start',
52
- 'plan_activation',
53
- 'subscription_activation',
54
- 'contract_termination',
55
- ])
56
- .optional())
57
- .optional(),
58
- charge_once: z.array(z.boolean().optional()).optional(),
59
- charge_on_option: z
60
- .array(z.enum(['immediately', 'on_event']).optional())
61
- .optional(),
62
- });
63
- const CreateForSubscriptionRampItemTiersSchema = z.object({
64
- item_price_id: z.array(z.string().max(100).optional()).optional(),
65
- starting_unit: z.array(z.number().int().min(1).optional()).optional(),
66
- ending_unit: z.array(z.number().int().optional()).optional(),
67
- price: z.array(z.number().int().min(0).optional()).optional(),
68
- starting_unit_in_decimal: z.array(z.string().max(33).optional()).optional(),
69
- ending_unit_in_decimal: z.array(z.string().max(33).optional()).optional(),
70
- price_in_decimal: z.array(z.string().max(39).optional()).optional(),
71
- pricing_type: z
72
- .array(z.enum(['per_unit', 'flat_fee', 'package']).optional())
73
- .optional(),
74
- package_size: z.array(z.number().int().min(1).optional()).optional(),
75
- });
76
- const CreateForSubscriptionRampCouponsToAddSchema = z.object({
77
- coupon_id: z.array(z.string().max(100).optional()).optional(),
78
- apply_till: z.array(z.number().int().optional()).optional(),
79
- });
80
- const CreateForSubscriptionRampDiscountsToAddSchema = z.object({
81
- apply_on: z.array(z.enum(['invoice_amount', 'specific_item_price']).optional()),
82
- duration_type: z.array(z.enum(['one_time', 'forever', 'limited_period']).optional()),
83
- percentage: z.array(z.number().min(0.01).max(100).optional()).optional(),
84
- amount: z.array(z.number().int().min(0).optional()).optional(),
85
- period: z.array(z.number().int().min(1).optional()).optional(),
86
- period_unit: z
87
- .array(z.enum(['day', 'week', 'month', 'year']).optional())
88
- .optional(),
89
- included_in_mrr: z.array(z.boolean().optional()).optional(),
90
- item_price_id: z.array(z.string().max(100).optional()).optional(),
91
- });
92
- const CreateForSubscriptionRampBodySchema = z.looseObject({
93
- effective_from: z.number().int(),
94
- description: z.string().max(250).optional(),
95
- coupons_to_remove: z.array(z.string().max(100).optional()).optional(),
96
- discounts_to_remove: z.array(z.string().max(100).optional()).optional(),
97
- items_to_remove: z.array(z.string().max(100).optional()).optional(),
98
- contract_term: CreateForSubscriptionRampContractTermSchema.optional(),
99
- items_to_add: CreateForSubscriptionRampItemsToAddSchema.optional(),
100
- items_to_update: CreateForSubscriptionRampItemsToUpdateSchema.optional(),
101
- item_tiers: CreateForSubscriptionRampItemTiersSchema.optional(),
102
- coupons_to_add: CreateForSubscriptionRampCouponsToAddSchema.optional(),
103
- discounts_to_add: CreateForSubscriptionRampDiscountsToAddSchema.optional(),
104
- });
105
- export { CreateForSubscriptionRampBodySchema };
106
- //Ramp.update
107
- const UpdateRampContractTermSchema = z.object({
108
- action_at_term_end: z
109
- .enum(['renew', 'evergreen', 'cancel', 'renew_once'])
110
- .optional(),
111
- cancellation_cutoff_period: z.number().int().optional(),
112
- renewal_billing_cycles: z.number().int().optional(),
113
- });
114
- const UpdateRampItemsToAddSchema = z.object({
115
- item_price_id: z.array(z.string().max(100).optional()),
116
- quantity: z.array(z.number().int().min(1).optional()).optional(),
117
- quantity_in_decimal: z.array(z.string().max(33).optional()).optional(),
118
- unit_price: z.array(z.number().int().min(0).optional()).optional(),
119
- unit_price_in_decimal: z.array(z.string().max(39).optional()).optional(),
120
- billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
121
- service_period_days: z
122
- .array(z.number().int().min(1).max(730).optional())
123
- .optional(),
124
- charge_on_event: z
125
- .array(z
126
- .enum([
127
- 'subscription_trial_start',
128
- 'plan_activation',
129
- 'subscription_activation',
130
- 'contract_termination',
131
- ])
132
- .optional())
133
- .optional(),
134
- charge_once: z.array(z.boolean().optional()).optional(),
135
- charge_on_option: z
136
- .array(z.enum(['immediately', 'on_event']).optional())
137
- .optional(),
138
- });
139
- const UpdateRampItemsToUpdateSchema = z.object({
140
- item_price_id: z.array(z.string().max(100).optional()),
141
- quantity: z.array(z.number().int().min(1).optional()).optional(),
142
- quantity_in_decimal: z.array(z.string().max(33).optional()).optional(),
143
- unit_price: z.array(z.number().int().min(0).optional()).optional(),
144
- unit_price_in_decimal: z.array(z.string().max(39).optional()).optional(),
145
- billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
146
- service_period_days: z
147
- .array(z.number().int().min(1).max(730).optional())
148
- .optional(),
149
- charge_on_event: z
150
- .array(z
151
- .enum([
152
- 'subscription_trial_start',
153
- 'plan_activation',
154
- 'subscription_activation',
155
- 'contract_termination',
156
- ])
157
- .optional())
158
- .optional(),
159
- charge_once: z.array(z.boolean().optional()).optional(),
160
- charge_on_option: z
161
- .array(z.enum(['immediately', 'on_event']).optional())
162
- .optional(),
163
- });
164
- const UpdateRampItemTiersSchema = z.object({
165
- item_price_id: z.array(z.string().max(100).optional()).optional(),
166
- starting_unit: z.array(z.number().int().min(1).optional()).optional(),
167
- ending_unit: z.array(z.number().int().optional()).optional(),
168
- price: z.array(z.number().int().min(0).optional()).optional(),
169
- starting_unit_in_decimal: z.array(z.string().max(33).optional()).optional(),
170
- ending_unit_in_decimal: z.array(z.string().max(33).optional()).optional(),
171
- price_in_decimal: z.array(z.string().max(39).optional()).optional(),
172
- pricing_type: z
173
- .array(z.enum(['per_unit', 'flat_fee', 'package']).optional())
174
- .optional(),
175
- package_size: z.array(z.number().int().min(1).optional()).optional(),
176
- });
177
- const UpdateRampCouponsToAddSchema = z.object({
178
- coupon_id: z.array(z.string().max(100).optional()).optional(),
179
- apply_till: z.array(z.number().int().optional()).optional(),
180
- });
181
- const UpdateRampDiscountsToAddSchema = z.object({
182
- apply_on: z.array(z.enum(['invoice_amount', 'specific_item_price']).optional()),
183
- duration_type: z.array(z.enum(['one_time', 'forever', 'limited_period']).optional()),
184
- percentage: z.array(z.number().min(0.01).max(100).optional()).optional(),
185
- amount: z.array(z.number().int().min(0).optional()).optional(),
186
- period: z.array(z.number().int().min(1).optional()).optional(),
187
- period_unit: z
188
- .array(z.enum(['day', 'week', 'month', 'year']).optional())
189
- .optional(),
190
- included_in_mrr: z.array(z.boolean().optional()).optional(),
191
- item_price_id: z.array(z.string().max(100).optional()).optional(),
192
- });
193
- const UpdateRampBodySchema = z.looseObject({
194
- effective_from: z.number().int(),
195
- description: z.string().max(250).optional(),
196
- coupons_to_remove: z.array(z.string().max(100).optional()).optional(),
197
- discounts_to_remove: z.array(z.string().max(100).optional()).optional(),
198
- items_to_remove: z.array(z.string().max(100).optional()).optional(),
199
- contract_term: UpdateRampContractTermSchema.optional(),
200
- items_to_add: UpdateRampItemsToAddSchema.optional(),
201
- items_to_update: UpdateRampItemsToUpdateSchema.optional(),
202
- item_tiers: UpdateRampItemTiersSchema.optional(),
203
- coupons_to_add: UpdateRampCouponsToAddSchema.optional(),
204
- discounts_to_add: UpdateRampDiscountsToAddSchema.optional(),
205
- });
206
- export { UpdateRampBodySchema };
@@ -1,29 +0,0 @@
1
- // Generated Zod schemas: RecordedPurchase
2
- // Actions: create
3
- // Do not edit manually – regenerate via sdk-generator
4
- import { z } from 'zod';
5
- //RecordedPurchase.create
6
- const CreateRecordedPurchaseCustomerSchema = z.object({
7
- id: z.string().max(50),
8
- });
9
- const CreateRecordedPurchaseAppleAppStoreSchema = z.object({
10
- transaction_id: z.string().max(100).optional(),
11
- receipt: z.string().max(65000).optional(),
12
- product_id: z.string().max(255).optional(),
13
- });
14
- const CreateRecordedPurchaseGooglePlayStoreSchema = z.object({
15
- purchase_token: z.string().max(500).optional(),
16
- product_id: z.string().max(255).optional(),
17
- order_id: z.string().max(100).optional(),
18
- });
19
- const CreateRecordedPurchaseOmnichannelSubscriptionSchema = z.object({
20
- id: z.string().max(50).optional(),
21
- });
22
- const CreateRecordedPurchaseBodySchema = z.looseObject({
23
- app_id: z.string().max(100),
24
- customer: CreateRecordedPurchaseCustomerSchema.optional(),
25
- apple_app_store: CreateRecordedPurchaseAppleAppStoreSchema.optional(),
26
- google_play_store: CreateRecordedPurchaseGooglePlayStoreSchema.optional(),
27
- omnichannel_subscription: CreateRecordedPurchaseOmnichannelSubscriptionSchema.optional(),
28
- });
29
- export { CreateRecordedPurchaseBodySchema };
@@ -1,11 +0,0 @@
1
- // Generated Zod schemas: ResourceMigration
2
- // Actions: retrieveLatest
3
- // Do not edit manually – regenerate via sdk-generator
4
- import { z } from 'zod';
5
- //ResourceMigration.retrieveLatest
6
- const RetrieveLatestResourceMigrationBodySchema = z.looseObject({
7
- from_site: z.string().max(50).min(4),
8
- entity_type: z.enum(['customer']),
9
- entity_id: z.string().max(100),
10
- });
11
- export { RetrieveLatestResourceMigrationBodySchema };
@@ -1,78 +0,0 @@
1
- // Generated Zod schemas: SiteMigrationDetail
2
- // Actions: list
3
- // Do not edit manually – regenerate via sdk-generator
4
- import { z } from 'zod';
5
- //SiteMigrationDetail.list
6
- const ListSiteMigrationDetailEntityIdAtOtherSiteSchema = z.object({
7
- is: z.string().min(1).optional(),
8
- is_not: z.string().min(1).optional(),
9
- starts_with: z.string().min(1).optional(),
10
- });
11
- const ListSiteMigrationDetailOtherSiteNameSchema = z.object({
12
- is: z.string().min(1).optional(),
13
- is_not: z.string().min(1).optional(),
14
- starts_with: z.string().min(1).optional(),
15
- });
16
- const ListSiteMigrationDetailEntityIdSchema = z.object({
17
- is: z.string().min(1).optional(),
18
- is_not: z.string().min(1).optional(),
19
- starts_with: z.string().min(1).optional(),
20
- });
21
- const ListSiteMigrationDetailEntityTypeSchema = z.object({
22
- is: z
23
- .enum([
24
- 'customer',
25
- 'subscription',
26
- 'invoice',
27
- 'credit_note',
28
- 'transaction',
29
- 'order',
30
- ])
31
- .optional(),
32
- is_not: z
33
- .enum([
34
- 'customer',
35
- 'subscription',
36
- 'invoice',
37
- 'credit_note',
38
- 'transaction',
39
- 'order',
40
- ])
41
- .optional(),
42
- in: z
43
- .enum([
44
- 'customer',
45
- 'subscription',
46
- 'invoice',
47
- 'credit_note',
48
- 'transaction',
49
- 'order',
50
- ])
51
- .optional(),
52
- not_in: z
53
- .enum([
54
- 'customer',
55
- 'subscription',
56
- 'invoice',
57
- 'credit_note',
58
- 'transaction',
59
- 'order',
60
- ])
61
- .optional(),
62
- });
63
- const ListSiteMigrationDetailStatusSchema = z.object({
64
- is: z.enum(['moved_in', 'moved_out', 'moving_out']).optional(),
65
- is_not: z.enum(['moved_in', 'moved_out', 'moving_out']).optional(),
66
- in: z.enum(['moved_in', 'moved_out', 'moving_out']).optional(),
67
- not_in: z.enum(['moved_in', 'moved_out', 'moving_out']).optional(),
68
- });
69
- const ListSiteMigrationDetailBodySchema = z.looseObject({
70
- limit: z.number().int().min(1).max(100).optional(),
71
- offset: z.string().max(1000).optional(),
72
- entity_id_at_other_site: ListSiteMigrationDetailEntityIdAtOtherSiteSchema.optional(),
73
- other_site_name: ListSiteMigrationDetailOtherSiteNameSchema.optional(),
74
- entity_id: ListSiteMigrationDetailEntityIdSchema.optional(),
75
- entity_type: ListSiteMigrationDetailEntityTypeSchema.optional(),
76
- status: ListSiteMigrationDetailStatusSchema.optional(),
77
- });
78
- export { ListSiteMigrationDetailBodySchema };