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.
- package/CHANGELOG.md +237 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +230 -2
- package/cjs/resources/webhook/eventType.js +25 -1
- package/cjs/schema/addon.schema.js +221 -40
- package/cjs/schema/alert.schema.js +17 -2
- package/cjs/schema/alert_status.schema.js +6 -1
- package/cjs/schema/attached_item.schema.js +101 -26
- package/cjs/schema/business_entity.schema.js +43 -6
- package/cjs/schema/business_rule.schema.js +2 -2
- package/cjs/schema/business_ruleset.schema.js +2 -2
- package/cjs/schema/collections_payment_promise.schema.js +43 -0
- package/cjs/schema/comment.schema.js +17 -4
- package/cjs/schema/coupon.schema.js +218 -37
- package/cjs/schema/coupon_code.schema.js +36 -6
- package/cjs/schema/coupon_set.schema.js +108 -27
- package/cjs/schema/credit_note.schema.js +497 -105
- package/cjs/schema/credit_unit.schema.js +12 -2
- package/cjs/schema/customer.schema.js +212 -62
- package/cjs/schema/differential_price.schema.js +100 -12
- package/cjs/schema/dispute.schema.js +125 -33
- package/cjs/schema/einvoice.schema.js +27 -6
- package/cjs/schema/email_log.schema.js +15 -4
- package/cjs/schema/entitlement.schema.js +35 -6
- package/cjs/schema/entitlement_override.schema.js +17 -1
- package/cjs/schema/estimate.schema.js +585 -40
- package/cjs/schema/event.schema.js +1334 -585
- package/cjs/schema/export.schema.js +4459 -1412
- package/cjs/schema/feature.schema.js +73 -11
- package/cjs/schema/gateway_request_log.schema.js +309 -0
- package/cjs/schema/gateway_webhook_log.schema.js +257 -0
- package/cjs/schema/gift.schema.js +51 -5
- package/cjs/schema/grant_block.schema.js +45 -12
- package/cjs/schema/hosted_page.schema.js +564 -68
- package/cjs/schema/index.js +6 -0
- package/cjs/schema/invoice.schema.js +843 -123
- package/cjs/schema/item.schema.js +151 -28
- package/cjs/schema/item_entitlement.schema.js +23 -2
- package/cjs/schema/item_family.schema.js +29 -8
- package/cjs/schema/item_price.schema.js +263 -48
- package/cjs/schema/ledger_account_balance.schema.js +11 -2
- package/cjs/schema/ledger_operation.schema.js +44 -17
- package/cjs/schema/metered_feature.schema.js +10 -1
- package/cjs/schema/omnichannel_one_time_order.schema.js +42 -4
- package/cjs/schema/omnichannel_subscription.schema.js +146 -32
- package/cjs/schema/order.schema.js +233 -61
- package/cjs/schema/organization_detail.schema.js +36 -0
- package/cjs/schema/payment_schedule.schema.js +39 -8
- package/cjs/schema/payment_schedule_scheme.schema.js +37 -7
- package/cjs/schema/payment_source.schema.js +375 -148
- package/cjs/schema/payment_voucher.schema.js +33 -5
- package/cjs/schema/plan.schema.js +345 -57
- package/cjs/schema/price_ramp.schema.js +153 -0
- package/cjs/schema/price_variant.schema.js +88 -18
- package/cjs/schema/pricing_page_session.schema.js +36 -2
- package/cjs/schema/promotional_credit.schema.js +27 -6
- package/cjs/schema/purchase.schema.js +210 -12
- package/cjs/schema/quote.schema.js +907 -87
- package/cjs/schema/quote_entitlement.schema.js +6 -2
- package/cjs/schema/ramp.schema.js +242 -24
- package/cjs/schema/retry_segment.schema.js +12 -0
- package/cjs/schema/site_migration_detail.schema.js +50 -16
- package/cjs/schema/subscription.schema.js +1002 -173
- package/cjs/schema/subscription_entitlement.schema.js +9 -1
- package/cjs/schema/transaction.schema.js +780 -342
- package/cjs/schema/unbilled_charge.schema.js +141 -13
- package/cjs/schema/usage.schema.js +59 -11
- package/cjs/schema/usage_event.schema.js +13 -1
- package/cjs/schema/usage_summary.schema.js +1 -0
- package/cjs/schema/virtual_bank_account.schema.js +42 -10
- package/cjs/schema/webhook_endpoint.schema.js +50 -2
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +230 -2
- package/esm/resources/webhook/eventType.js +25 -1
- package/esm/schema/addon.schema.js +221 -40
- package/esm/schema/alert.schema.js +17 -2
- package/esm/schema/alert_status.schema.js +6 -1
- package/esm/schema/attached_item.schema.js +101 -26
- package/esm/schema/business_entity.schema.js +42 -5
- package/esm/schema/business_rule.schema.js +2 -2
- package/esm/schema/business_ruleset.schema.js +2 -2
- package/esm/schema/collections_payment_promise.schema.js +40 -0
- package/esm/schema/comment.schema.js +17 -4
- package/esm/schema/coupon.schema.js +218 -37
- package/esm/schema/coupon_code.schema.js +36 -6
- package/esm/schema/coupon_set.schema.js +108 -27
- package/esm/schema/credit_note.schema.js +497 -105
- package/esm/schema/credit_unit.schema.js +12 -2
- package/esm/schema/customer.schema.js +212 -62
- package/esm/schema/differential_price.schema.js +100 -12
- package/esm/schema/dispute.schema.js +125 -33
- package/esm/schema/einvoice.schema.js +27 -6
- package/esm/schema/email_log.schema.js +15 -4
- package/esm/schema/entitlement.schema.js +35 -6
- package/esm/schema/entitlement_override.schema.js +17 -1
- package/esm/schema/estimate.schema.js +585 -40
- package/esm/schema/event.schema.js +1334 -585
- package/esm/schema/export.schema.js +4459 -1412
- package/esm/schema/feature.schema.js +73 -11
- package/esm/schema/gateway_request_log.schema.js +306 -0
- package/esm/schema/gateway_webhook_log.schema.js +254 -0
- package/esm/schema/gift.schema.js +51 -5
- package/esm/schema/grant_block.schema.js +45 -12
- package/esm/schema/hosted_page.schema.js +564 -68
- package/esm/schema/index.js +6 -0
- package/esm/schema/invoice.schema.js +842 -122
- package/esm/schema/item.schema.js +151 -28
- package/esm/schema/item_entitlement.schema.js +23 -2
- package/esm/schema/item_family.schema.js +29 -8
- package/esm/schema/item_price.schema.js +263 -48
- package/esm/schema/ledger_account_balance.schema.js +10 -1
- package/esm/schema/ledger_operation.schema.js +44 -17
- package/esm/schema/metered_feature.schema.js +10 -1
- package/esm/schema/omnichannel_one_time_order.schema.js +42 -4
- package/esm/schema/omnichannel_subscription.schema.js +146 -32
- package/esm/schema/order.schema.js +233 -61
- package/esm/schema/organization_detail.schema.js +33 -0
- package/esm/schema/payment_schedule.schema.js +39 -8
- package/esm/schema/payment_schedule_scheme.schema.js +37 -7
- package/esm/schema/payment_source.schema.js +375 -148
- package/esm/schema/payment_voucher.schema.js +33 -5
- package/esm/schema/plan.schema.js +345 -57
- package/esm/schema/price_ramp.schema.js +150 -0
- package/esm/schema/price_variant.schema.js +88 -18
- package/esm/schema/pricing_page_session.schema.js +36 -2
- package/esm/schema/promotional_credit.schema.js +27 -6
- package/esm/schema/purchase.schema.js +210 -12
- package/esm/schema/quote.schema.js +907 -87
- package/esm/schema/quote_entitlement.schema.js +6 -2
- package/esm/schema/ramp.schema.js +242 -24
- package/esm/schema/retry_segment.schema.js +9 -0
- package/esm/schema/site_migration_detail.schema.js +50 -16
- package/esm/schema/subscription.schema.js +1002 -173
- package/esm/schema/subscription_entitlement.schema.js +9 -1
- package/esm/schema/transaction.schema.js +780 -342
- package/esm/schema/unbilled_charge.schema.js +141 -13
- package/esm/schema/usage.schema.js +59 -11
- package/esm/schema/usage_event.schema.js +13 -1
- package/esm/schema/usage_summary.schema.js +1 -0
- package/esm/schema/virtual_bank_account.schema.js +42 -10
- package/esm/schema/webhook_endpoint.schema.js +50 -2
- package/package.json +1 -1
- package/types/core.d.ts +63 -74
- package/types/index.d.ts +29 -1
- package/types/resources/BillingLineItem.d.ts +10 -0
- package/types/resources/BillingMetadata.d.ts +9 -0
- package/types/resources/BusinessEntity.d.ts +52 -0
- package/types/resources/Citation.d.ts +13 -0
- package/types/resources/CollectionsDispute.d.ts +24 -0
- package/types/resources/CollectionsPaymentPromise.d.ts +93 -0
- package/types/resources/CollectionsReminderSequence.d.ts +35 -0
- package/types/resources/Comment.d.ts +2 -1
- package/types/resources/Content.d.ts +23 -1
- package/types/resources/CreditNote.d.ts +1 -0
- package/types/resources/CustomData.d.ts +14 -0
- package/types/resources/Discount.d.ts +1 -0
- package/types/resources/DraftEstimate.d.ts +13 -0
- package/types/resources/DraftRequest.d.ts +45 -0
- package/types/resources/EmailAttachment.d.ts +16 -0
- package/types/resources/EmailConversation.d.ts +18 -0
- package/types/resources/EmailLog.d.ts +1 -0
- package/types/resources/EmailMessage.d.ts +40 -0
- package/types/resources/Estimate.d.ts +3 -0
- package/types/resources/Event.d.ts +25 -1
- package/types/resources/Execution.d.ts +12 -0
- package/types/resources/GatewayPaymentMethodToken.d.ts +2 -2
- package/types/resources/GatewayRequestLog.d.ts +82 -0
- package/types/resources/GatewayWebhookLog.d.ts +74 -0
- package/types/resources/GrantBlock.d.ts +5 -0
- package/types/resources/GroupByAttribute.d.ts +15 -0
- package/types/resources/GroupByRecommendation.d.ts +10 -0
- package/types/resources/HostedPage.d.ts +18 -0
- package/types/resources/Invoice.d.ts +19 -0
- package/types/resources/ItemPrice.d.ts +1 -0
- package/types/resources/LedgerAccountBalance.d.ts +19 -0
- package/types/resources/Meter.d.ts +1 -0
- package/types/resources/MeteredFeature.d.ts +1 -0
- package/types/resources/OmnichannelOneTimeOrder.d.ts +5 -1
- package/types/resources/OmnichannelSubscription.d.ts +6 -1
- package/types/resources/OmnichannelSubscriptionItem.d.ts +4 -1
- package/types/resources/OrganizationDetail.d.ts +84 -0
- package/types/resources/PaymentSchedule.d.ts +1 -1
- package/types/resources/PaymentScheduleEstimate.d.ts +1 -1
- package/types/resources/PaymentSource.d.ts +19 -0
- package/types/resources/PreferenceVariant.d.ts +10 -0
- package/types/resources/PriceRamp.d.ts +113 -0
- package/types/resources/PrivateNote.d.ts +18 -0
- package/types/resources/Purchase.d.ts +6 -0
- package/types/resources/Ramp.d.ts +6 -0
- package/types/resources/RampInterval.d.ts +12 -0
- package/types/resources/RecordedPurchase.d.ts +5 -1
- package/types/resources/RetrySegment.d.ts +36 -0
- package/types/resources/Subscription.d.ts +3 -0
- package/types/resources/Transaction.d.ts +4 -0
- package/types/resources/Usage.d.ts +7 -0
- package/types/resources/UsageSummary.d.ts +2 -0
- package/types/resources/WebhookEvent.d.ts +159 -5
- package/types/resources/AppliedBusinessRule.d.ts +0 -15
|
@@ -7,43 +7,133 @@ exports.MoveOmnichannelSubscriptionBodySchema = exports.OmnichannelTransactionsf
|
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
8
|
//OmnichannelSubscription.list
|
|
9
9
|
const ListOmnichannelSubscriptionSourceSchema = zod_1.z.object({
|
|
10
|
-
is: zod_1.z
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
is: zod_1.z
|
|
11
|
+
.enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
|
|
12
|
+
.optional(),
|
|
13
|
+
is_not: zod_1.z
|
|
14
|
+
.enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
|
|
15
|
+
.optional(),
|
|
16
|
+
in: zod_1.z
|
|
17
|
+
.union([
|
|
18
|
+
zod_1.z.array(zod_1.z
|
|
19
|
+
.enum([
|
|
20
|
+
'apple_app_store',
|
|
21
|
+
'google_play_store',
|
|
22
|
+
'roku',
|
|
23
|
+
'amazon_app_store',
|
|
24
|
+
])
|
|
25
|
+
.optional()),
|
|
26
|
+
zod_1.z.enum([
|
|
27
|
+
'apple_app_store',
|
|
28
|
+
'google_play_store',
|
|
29
|
+
'roku',
|
|
30
|
+
'amazon_app_store',
|
|
31
|
+
]),
|
|
32
|
+
])
|
|
33
|
+
.optional(),
|
|
34
|
+
not_in: zod_1.z
|
|
35
|
+
.union([
|
|
36
|
+
zod_1.z.array(zod_1.z
|
|
37
|
+
.enum([
|
|
38
|
+
'apple_app_store',
|
|
39
|
+
'google_play_store',
|
|
40
|
+
'roku',
|
|
41
|
+
'amazon_app_store',
|
|
42
|
+
])
|
|
43
|
+
.optional()),
|
|
44
|
+
zod_1.z.enum([
|
|
45
|
+
'apple_app_store',
|
|
46
|
+
'google_play_store',
|
|
47
|
+
'roku',
|
|
48
|
+
'amazon_app_store',
|
|
49
|
+
]),
|
|
50
|
+
])
|
|
51
|
+
.optional(),
|
|
14
52
|
});
|
|
15
53
|
const ListOmnichannelSubscriptionCustomerIdSchema = zod_1.z.object({
|
|
16
54
|
is: zod_1.z.string().min(1).optional(),
|
|
17
55
|
is_not: zod_1.z.string().min(1).optional(),
|
|
18
56
|
starts_with: zod_1.z.string().min(1).optional(),
|
|
19
|
-
in: zod_1.z
|
|
20
|
-
|
|
57
|
+
in: zod_1.z
|
|
58
|
+
.union([
|
|
59
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
60
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
61
|
+
])
|
|
62
|
+
.optional(),
|
|
63
|
+
not_in: zod_1.z
|
|
64
|
+
.union([
|
|
65
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
66
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
67
|
+
])
|
|
68
|
+
.optional(),
|
|
21
69
|
});
|
|
22
70
|
const ListOmnichannelSubscriptionIdSchema = zod_1.z.object({
|
|
23
71
|
is: zod_1.z.string().min(1).optional(),
|
|
24
72
|
is_not: zod_1.z.string().min(1).optional(),
|
|
25
73
|
starts_with: zod_1.z.string().min(1).optional(),
|
|
26
|
-
in: zod_1.z
|
|
27
|
-
|
|
74
|
+
in: zod_1.z
|
|
75
|
+
.union([
|
|
76
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
77
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
78
|
+
])
|
|
79
|
+
.optional(),
|
|
80
|
+
not_in: zod_1.z
|
|
81
|
+
.union([
|
|
82
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
83
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
84
|
+
])
|
|
85
|
+
.optional(),
|
|
28
86
|
});
|
|
29
87
|
const ListOmnichannelSubscriptionIdAtSourceSchema = zod_1.z.object({
|
|
30
88
|
is: zod_1.z.string().min(1).optional(),
|
|
31
89
|
is_not: zod_1.z.string().min(1).optional(),
|
|
32
90
|
starts_with: zod_1.z.string().min(1).optional(),
|
|
33
|
-
in: zod_1.z
|
|
34
|
-
|
|
91
|
+
in: zod_1.z
|
|
92
|
+
.union([
|
|
93
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
94
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
95
|
+
])
|
|
96
|
+
.optional(),
|
|
97
|
+
not_in: zod_1.z
|
|
98
|
+
.union([
|
|
99
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
100
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
101
|
+
])
|
|
102
|
+
.optional(),
|
|
35
103
|
});
|
|
36
104
|
const ListOmnichannelSubscriptionUpdatedAtSchema = zod_1.z.object({
|
|
37
|
-
after: zod_1.z
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
between: zod_1.z
|
|
105
|
+
after: zod_1.z
|
|
106
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
107
|
+
.optional(),
|
|
108
|
+
between: zod_1.z
|
|
109
|
+
.union([
|
|
110
|
+
zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
|
|
111
|
+
zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
112
|
+
])
|
|
113
|
+
.optional(),
|
|
114
|
+
on: zod_1.z
|
|
115
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
116
|
+
.optional(),
|
|
117
|
+
before: zod_1.z
|
|
118
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
119
|
+
.optional(),
|
|
41
120
|
});
|
|
42
121
|
const ListOmnichannelSubscriptionPurchasedAtSchema = zod_1.z.object({
|
|
43
|
-
after: zod_1.z
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
between: zod_1.z
|
|
122
|
+
after: zod_1.z
|
|
123
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
124
|
+
.optional(),
|
|
125
|
+
between: zod_1.z
|
|
126
|
+
.union([
|
|
127
|
+
zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
|
|
128
|
+
zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
129
|
+
])
|
|
130
|
+
.optional(),
|
|
131
|
+
on: zod_1.z
|
|
132
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
133
|
+
.optional(),
|
|
134
|
+
before: zod_1.z
|
|
135
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
136
|
+
.optional(),
|
|
47
137
|
});
|
|
48
138
|
const ListOmnichannelSubscriptionSortBySchema = zod_1.z.looseObject({
|
|
49
139
|
asc: zod_1.z.enum(['created_at', 'updated_at']).optional(),
|
|
@@ -71,23 +161,47 @@ const ListOmnichannelSubscriptionStatusSchema = zod_1.z.object({
|
|
|
71
161
|
])
|
|
72
162
|
.optional(),
|
|
73
163
|
in: zod_1.z
|
|
74
|
-
.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
164
|
+
.union([
|
|
165
|
+
zod_1.z.array(zod_1.z
|
|
166
|
+
.enum([
|
|
167
|
+
'active',
|
|
168
|
+
'expired',
|
|
169
|
+
'cancelled',
|
|
170
|
+
'in_dunning',
|
|
171
|
+
'in_grace_period',
|
|
172
|
+
'paused',
|
|
173
|
+
])
|
|
174
|
+
.optional()),
|
|
175
|
+
zod_1.z.enum([
|
|
176
|
+
'active',
|
|
177
|
+
'expired',
|
|
178
|
+
'cancelled',
|
|
179
|
+
'in_dunning',
|
|
180
|
+
'in_grace_period',
|
|
181
|
+
'paused',
|
|
182
|
+
]),
|
|
81
183
|
])
|
|
82
184
|
.optional(),
|
|
83
185
|
not_in: zod_1.z
|
|
84
|
-
.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
186
|
+
.union([
|
|
187
|
+
zod_1.z.array(zod_1.z
|
|
188
|
+
.enum([
|
|
189
|
+
'active',
|
|
190
|
+
'expired',
|
|
191
|
+
'cancelled',
|
|
192
|
+
'in_dunning',
|
|
193
|
+
'in_grace_period',
|
|
194
|
+
'paused',
|
|
195
|
+
])
|
|
196
|
+
.optional()),
|
|
197
|
+
zod_1.z.enum([
|
|
198
|
+
'active',
|
|
199
|
+
'expired',
|
|
200
|
+
'cancelled',
|
|
201
|
+
'in_dunning',
|
|
202
|
+
'in_grace_period',
|
|
203
|
+
'paused',
|
|
204
|
+
]),
|
|
91
205
|
])
|
|
92
206
|
.optional(),
|
|
93
207
|
});
|
|
@@ -39,6 +39,22 @@ const UpdateOrderShippingAddressSchema = zod_1.z.object({
|
|
|
39
39
|
.enum(['not_validated', 'valid', 'partially_valid', 'invalid'])
|
|
40
40
|
.optional(),
|
|
41
41
|
});
|
|
42
|
+
const UpdateOrderOrderLineItemsItemSchema = zod_1.z.object({
|
|
43
|
+
id: zod_1.z.string().max(40).optional(),
|
|
44
|
+
status: zod_1.z
|
|
45
|
+
.enum([
|
|
46
|
+
'queued',
|
|
47
|
+
'awaiting_shipment',
|
|
48
|
+
'on_hold',
|
|
49
|
+
'delivered',
|
|
50
|
+
'shipped',
|
|
51
|
+
'partially_delivered',
|
|
52
|
+
'returned',
|
|
53
|
+
'cancelled',
|
|
54
|
+
])
|
|
55
|
+
.optional(),
|
|
56
|
+
sku: zod_1.z.string().max(250).optional(),
|
|
57
|
+
});
|
|
42
58
|
const UpdateOrderOrderLineItemsSchema = zod_1.z.object({
|
|
43
59
|
id: zod_1.z.array(zod_1.z.string().max(40).optional()).optional(),
|
|
44
60
|
status: zod_1.z
|
|
@@ -105,7 +121,12 @@ const UpdateOrderBodySchema = zod_1.z.looseObject({
|
|
|
105
121
|
])
|
|
106
122
|
.optional(),
|
|
107
123
|
shipping_address: UpdateOrderShippingAddressSchema.optional(),
|
|
108
|
-
order_line_items:
|
|
124
|
+
order_line_items: zod_1.z
|
|
125
|
+
.union([
|
|
126
|
+
zod_1.z.array(UpdateOrderOrderLineItemsItemSchema.optional()),
|
|
127
|
+
UpdateOrderOrderLineItemsSchema,
|
|
128
|
+
])
|
|
129
|
+
.optional(),
|
|
109
130
|
});
|
|
110
131
|
exports.UpdateOrderBodySchema = UpdateOrderBodySchema;
|
|
111
132
|
//Order.importOrder
|
|
@@ -259,15 +280,35 @@ const ListOrderIdSchema = zod_1.z.object({
|
|
|
259
280
|
is: zod_1.z.string().min(1).optional(),
|
|
260
281
|
is_not: zod_1.z.string().min(1).optional(),
|
|
261
282
|
starts_with: zod_1.z.string().min(1).optional(),
|
|
262
|
-
in: zod_1.z
|
|
263
|
-
|
|
283
|
+
in: zod_1.z
|
|
284
|
+
.union([
|
|
285
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
286
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
287
|
+
])
|
|
288
|
+
.optional(),
|
|
289
|
+
not_in: zod_1.z
|
|
290
|
+
.union([
|
|
291
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
292
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
293
|
+
])
|
|
294
|
+
.optional(),
|
|
264
295
|
});
|
|
265
296
|
const ListOrderInvoiceIdSchema = zod_1.z.object({
|
|
266
297
|
is: zod_1.z.string().min(1).optional(),
|
|
267
298
|
is_not: zod_1.z.string().min(1).optional(),
|
|
268
299
|
starts_with: zod_1.z.string().min(1).optional(),
|
|
269
|
-
in: zod_1.z
|
|
270
|
-
|
|
300
|
+
in: zod_1.z
|
|
301
|
+
.union([
|
|
302
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
303
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
304
|
+
])
|
|
305
|
+
.optional(),
|
|
306
|
+
not_in: zod_1.z
|
|
307
|
+
.union([
|
|
308
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
309
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
310
|
+
])
|
|
311
|
+
.optional(),
|
|
271
312
|
});
|
|
272
313
|
const ListOrderSubscriptionIdSchema = zod_1.z.object({
|
|
273
314
|
is: zod_1.z.string().min(1).optional(),
|
|
@@ -308,88 +349,210 @@ const ListOrderStatusSchema = zod_1.z.object({
|
|
|
308
349
|
])
|
|
309
350
|
.optional(),
|
|
310
351
|
in: zod_1.z
|
|
311
|
-
.
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
352
|
+
.union([
|
|
353
|
+
zod_1.z.array(zod_1.z
|
|
354
|
+
.enum([
|
|
355
|
+
'new',
|
|
356
|
+
'processing',
|
|
357
|
+
'complete',
|
|
358
|
+
'cancelled',
|
|
359
|
+
'voided',
|
|
360
|
+
'queued',
|
|
361
|
+
'awaiting_shipment',
|
|
362
|
+
'on_hold',
|
|
363
|
+
'delivered',
|
|
364
|
+
'shipped',
|
|
365
|
+
'partially_delivered',
|
|
366
|
+
'returned',
|
|
367
|
+
])
|
|
368
|
+
.optional()),
|
|
369
|
+
zod_1.z.enum([
|
|
370
|
+
'new',
|
|
371
|
+
'processing',
|
|
372
|
+
'complete',
|
|
373
|
+
'cancelled',
|
|
374
|
+
'voided',
|
|
375
|
+
'queued',
|
|
376
|
+
'awaiting_shipment',
|
|
377
|
+
'on_hold',
|
|
378
|
+
'delivered',
|
|
379
|
+
'shipped',
|
|
380
|
+
'partially_delivered',
|
|
381
|
+
'returned',
|
|
382
|
+
]),
|
|
324
383
|
])
|
|
325
384
|
.optional(),
|
|
326
385
|
not_in: zod_1.z
|
|
327
|
-
.
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
386
|
+
.union([
|
|
387
|
+
zod_1.z.array(zod_1.z
|
|
388
|
+
.enum([
|
|
389
|
+
'new',
|
|
390
|
+
'processing',
|
|
391
|
+
'complete',
|
|
392
|
+
'cancelled',
|
|
393
|
+
'voided',
|
|
394
|
+
'queued',
|
|
395
|
+
'awaiting_shipment',
|
|
396
|
+
'on_hold',
|
|
397
|
+
'delivered',
|
|
398
|
+
'shipped',
|
|
399
|
+
'partially_delivered',
|
|
400
|
+
'returned',
|
|
401
|
+
])
|
|
402
|
+
.optional()),
|
|
403
|
+
zod_1.z.enum([
|
|
404
|
+
'new',
|
|
405
|
+
'processing',
|
|
406
|
+
'complete',
|
|
407
|
+
'cancelled',
|
|
408
|
+
'voided',
|
|
409
|
+
'queued',
|
|
410
|
+
'awaiting_shipment',
|
|
411
|
+
'on_hold',
|
|
412
|
+
'delivered',
|
|
413
|
+
'shipped',
|
|
414
|
+
'partially_delivered',
|
|
415
|
+
'returned',
|
|
416
|
+
]),
|
|
340
417
|
])
|
|
341
418
|
.optional(),
|
|
342
419
|
});
|
|
343
420
|
const ListOrderShippingDateSchema = zod_1.z.object({
|
|
344
|
-
after: zod_1.z
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
421
|
+
after: zod_1.z
|
|
422
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
423
|
+
.optional(),
|
|
424
|
+
before: zod_1.z
|
|
425
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
426
|
+
.optional(),
|
|
427
|
+
on: zod_1.z
|
|
428
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
429
|
+
.optional(),
|
|
430
|
+
between: zod_1.z
|
|
431
|
+
.union([
|
|
432
|
+
zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
|
|
433
|
+
zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
434
|
+
])
|
|
435
|
+
.optional(),
|
|
348
436
|
});
|
|
349
437
|
const ListOrderShippedAtSchema = zod_1.z.object({
|
|
350
|
-
after: zod_1.z
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
438
|
+
after: zod_1.z
|
|
439
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
440
|
+
.optional(),
|
|
441
|
+
before: zod_1.z
|
|
442
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
443
|
+
.optional(),
|
|
444
|
+
on: zod_1.z
|
|
445
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
446
|
+
.optional(),
|
|
447
|
+
between: zod_1.z
|
|
448
|
+
.union([
|
|
449
|
+
zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
|
|
450
|
+
zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
451
|
+
])
|
|
452
|
+
.optional(),
|
|
354
453
|
});
|
|
355
454
|
const ListOrderOrderTypeSchema = zod_1.z.object({
|
|
356
455
|
is: zod_1.z.enum(['manual', 'system_generated']).optional(),
|
|
357
456
|
is_not: zod_1.z.enum(['manual', 'system_generated']).optional(),
|
|
358
|
-
in: zod_1.z
|
|
359
|
-
|
|
457
|
+
in: zod_1.z
|
|
458
|
+
.union([
|
|
459
|
+
zod_1.z.array(zod_1.z.enum(['manual', 'system_generated']).optional()),
|
|
460
|
+
zod_1.z.enum(['manual', 'system_generated']),
|
|
461
|
+
])
|
|
462
|
+
.optional(),
|
|
463
|
+
not_in: zod_1.z
|
|
464
|
+
.union([
|
|
465
|
+
zod_1.z.array(zod_1.z.enum(['manual', 'system_generated']).optional()),
|
|
466
|
+
zod_1.z.enum(['manual', 'system_generated']),
|
|
467
|
+
])
|
|
468
|
+
.optional(),
|
|
360
469
|
});
|
|
361
470
|
const ListOrderOrderDateSchema = zod_1.z.object({
|
|
362
|
-
after: zod_1.z
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
471
|
+
after: zod_1.z
|
|
472
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
473
|
+
.optional(),
|
|
474
|
+
before: zod_1.z
|
|
475
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
476
|
+
.optional(),
|
|
477
|
+
on: zod_1.z
|
|
478
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
479
|
+
.optional(),
|
|
480
|
+
between: zod_1.z
|
|
481
|
+
.union([
|
|
482
|
+
zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
|
|
483
|
+
zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
484
|
+
])
|
|
485
|
+
.optional(),
|
|
366
486
|
});
|
|
367
487
|
const ListOrderPaidOnSchema = zod_1.z.object({
|
|
368
|
-
after: zod_1.z
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
488
|
+
after: zod_1.z
|
|
489
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
490
|
+
.optional(),
|
|
491
|
+
before: zod_1.z
|
|
492
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
493
|
+
.optional(),
|
|
494
|
+
on: zod_1.z
|
|
495
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
496
|
+
.optional(),
|
|
497
|
+
between: zod_1.z
|
|
498
|
+
.union([
|
|
499
|
+
zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
|
|
500
|
+
zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
501
|
+
])
|
|
502
|
+
.optional(),
|
|
372
503
|
});
|
|
373
504
|
const ListOrderUpdatedAtSchema = zod_1.z.object({
|
|
374
|
-
after: zod_1.z
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
505
|
+
after: zod_1.z
|
|
506
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
507
|
+
.optional(),
|
|
508
|
+
before: zod_1.z
|
|
509
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
510
|
+
.optional(),
|
|
511
|
+
on: zod_1.z
|
|
512
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
513
|
+
.optional(),
|
|
514
|
+
between: zod_1.z
|
|
515
|
+
.union([
|
|
516
|
+
zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
|
|
517
|
+
zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
518
|
+
])
|
|
519
|
+
.optional(),
|
|
378
520
|
});
|
|
379
521
|
const ListOrderCreatedAtSchema = zod_1.z.object({
|
|
380
|
-
after: zod_1.z
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
522
|
+
after: zod_1.z
|
|
523
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
524
|
+
.optional(),
|
|
525
|
+
before: zod_1.z
|
|
526
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
527
|
+
.optional(),
|
|
528
|
+
on: zod_1.z
|
|
529
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
530
|
+
.optional(),
|
|
531
|
+
between: zod_1.z
|
|
532
|
+
.union([
|
|
533
|
+
zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
|
|
534
|
+
zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
535
|
+
])
|
|
536
|
+
.optional(),
|
|
384
537
|
});
|
|
385
538
|
const ListOrderResentStatusSchema = zod_1.z.object({
|
|
386
539
|
is: zod_1.z.enum(['fully_resent', 'partially_resent']).optional(),
|
|
387
540
|
is_not: zod_1.z.enum(['fully_resent', 'partially_resent']).optional(),
|
|
388
|
-
in: zod_1.z
|
|
389
|
-
|
|
541
|
+
in: zod_1.z
|
|
542
|
+
.union([
|
|
543
|
+
zod_1.z.array(zod_1.z.enum(['fully_resent', 'partially_resent']).optional()),
|
|
544
|
+
zod_1.z.enum(['fully_resent', 'partially_resent']),
|
|
545
|
+
])
|
|
546
|
+
.optional(),
|
|
547
|
+
not_in: zod_1.z
|
|
548
|
+
.union([
|
|
549
|
+
zod_1.z.array(zod_1.z.enum(['fully_resent', 'partially_resent']).optional()),
|
|
550
|
+
zod_1.z.enum(['fully_resent', 'partially_resent']),
|
|
551
|
+
])
|
|
552
|
+
.optional(),
|
|
390
553
|
});
|
|
391
554
|
const ListOrderIsResentSchema = zod_1.z.object({
|
|
392
|
-
is: zod_1.z.enum(['true', 'false']).optional(),
|
|
555
|
+
is: zod_1.z.union([zod_1.z.boolean(), zod_1.z.enum(['true', 'false'])]).optional(),
|
|
393
556
|
});
|
|
394
557
|
const ListOrderOriginalOrderIdSchema = zod_1.z.object({
|
|
395
558
|
is: zod_1.z.string().min(1).optional(),
|
|
@@ -429,6 +592,10 @@ const OrdersForInvoiceOrderBodySchema = zod_1.z.looseObject({
|
|
|
429
592
|
});
|
|
430
593
|
exports.OrdersForInvoiceOrderBodySchema = OrdersForInvoiceOrderBodySchema;
|
|
431
594
|
//Order.resend
|
|
595
|
+
const ResendOrderOrderLineItemsItemSchema = zod_1.z.object({
|
|
596
|
+
id: zod_1.z.string().max(40).optional(),
|
|
597
|
+
fulfillment_quantity: zod_1.z.number().int().min(0).optional(),
|
|
598
|
+
});
|
|
432
599
|
const ResendOrderOrderLineItemsSchema = zod_1.z.object({
|
|
433
600
|
id: zod_1.z.array(zod_1.z.string().max(40).optional()).optional(),
|
|
434
601
|
fulfillment_quantity: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
@@ -436,6 +603,11 @@ const ResendOrderOrderLineItemsSchema = zod_1.z.object({
|
|
|
436
603
|
const ResendOrderBodySchema = zod_1.z.looseObject({
|
|
437
604
|
shipping_date: zod_1.z.number().int().optional(),
|
|
438
605
|
resend_reason: zod_1.z.string().max(100).optional(),
|
|
439
|
-
order_line_items:
|
|
606
|
+
order_line_items: zod_1.z
|
|
607
|
+
.union([
|
|
608
|
+
zod_1.z.array(ResendOrderOrderLineItemsItemSchema.optional()),
|
|
609
|
+
ResendOrderOrderLineItemsSchema,
|
|
610
|
+
])
|
|
611
|
+
.optional(),
|
|
440
612
|
});
|
|
441
613
|
exports.ResendOrderBodySchema = ResendOrderBodySchema;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Generated Zod schemas: OrganizationDetail
|
|
3
|
+
// Actions: create, list
|
|
4
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ListOrganizationDetailBodySchema = exports.CreateOrganizationDetailBodySchema = void 0;
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
//OrganizationDetail.create
|
|
9
|
+
const CreateOrganizationDetailBodySchema = zod_1.z.looseObject({
|
|
10
|
+
organization_name: zod_1.z.string().max(100),
|
|
11
|
+
email: zod_1.z.string().email().max(70).optional(),
|
|
12
|
+
address_line1: zod_1.z.string().max(180),
|
|
13
|
+
address_line2: zod_1.z.string().max(150).optional(),
|
|
14
|
+
address_line3: zod_1.z.string().max(150).optional(),
|
|
15
|
+
city: zod_1.z.string().max(50),
|
|
16
|
+
state_code: zod_1.z.string().max(50).optional(),
|
|
17
|
+
state: zod_1.z.string().max(50),
|
|
18
|
+
zip: zod_1.z.string().max(20),
|
|
19
|
+
country_code: zod_1.z.string().max(50).optional(),
|
|
20
|
+
phone: zod_1.z.string().max(20),
|
|
21
|
+
fax: zod_1.z.string().max(20).optional(),
|
|
22
|
+
website: zod_1.z.string().max(200).optional(),
|
|
23
|
+
is_vat_number_present: zod_1.z.boolean().optional(),
|
|
24
|
+
vat_number: zod_1.z.string().max(20).optional(),
|
|
25
|
+
});
|
|
26
|
+
exports.CreateOrganizationDetailBodySchema = CreateOrganizationDetailBodySchema;
|
|
27
|
+
//OrganizationDetail.list
|
|
28
|
+
const ListOrganizationDetailBusinessEntityIdSchema = zod_1.z.object({
|
|
29
|
+
is: zod_1.z.string().min(1).optional(),
|
|
30
|
+
});
|
|
31
|
+
const ListOrganizationDetailBodySchema = zod_1.z.looseObject({
|
|
32
|
+
limit: zod_1.z.number().int().min(1).max(100).optional(),
|
|
33
|
+
offset: zod_1.z.string().max(1000).optional(),
|
|
34
|
+
business_entity_id: ListOrganizationDetailBusinessEntityIdSchema.optional(),
|
|
35
|
+
});
|
|
36
|
+
exports.ListOrganizationDetailBodySchema = ListOrganizationDetailBodySchema;
|
|
@@ -10,21 +10,52 @@ const ListPaymentScheduleInvoiceIdSchema = zod_1.z.object({
|
|
|
10
10
|
is: zod_1.z.string().min(1).optional(),
|
|
11
11
|
is_not: zod_1.z.string().min(1).optional(),
|
|
12
12
|
starts_with: zod_1.z.string().min(1).optional(),
|
|
13
|
-
in: zod_1.z
|
|
14
|
-
|
|
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(),
|
|
19
|
+
not_in: zod_1.z
|
|
20
|
+
.union([
|
|
21
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
22
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
23
|
+
])
|
|
24
|
+
.optional(),
|
|
15
25
|
});
|
|
16
26
|
const ListPaymentScheduleIdSchema = zod_1.z.object({
|
|
17
27
|
is: zod_1.z.string().min(1).optional(),
|
|
18
28
|
is_not: zod_1.z.string().min(1).optional(),
|
|
19
29
|
starts_with: zod_1.z.string().min(1).optional(),
|
|
20
|
-
in: zod_1.z
|
|
21
|
-
|
|
30
|
+
in: zod_1.z
|
|
31
|
+
.union([
|
|
32
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
33
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
34
|
+
])
|
|
35
|
+
.optional(),
|
|
36
|
+
not_in: zod_1.z
|
|
37
|
+
.union([
|
|
38
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
39
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
40
|
+
])
|
|
41
|
+
.optional(),
|
|
22
42
|
});
|
|
23
43
|
const ListPaymentScheduleUpdatedAtSchema = zod_1.z.object({
|
|
24
|
-
after: zod_1.z
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
44
|
+
after: zod_1.z
|
|
45
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
46
|
+
.optional(),
|
|
47
|
+
before: zod_1.z
|
|
48
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
49
|
+
.optional(),
|
|
50
|
+
on: zod_1.z
|
|
51
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
52
|
+
.optional(),
|
|
53
|
+
between: zod_1.z
|
|
54
|
+
.union([
|
|
55
|
+
zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
|
|
56
|
+
zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
57
|
+
])
|
|
58
|
+
.optional(),
|
|
28
59
|
});
|
|
29
60
|
const ListPaymentScheduleBodySchema = zod_1.z.looseObject({
|
|
30
61
|
limit: zod_1.z.number().int().min(1).max(100).optional(),
|