@channel.io/app-sdk-core 0.23.1 → 0.24.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.
@@ -1,6 +1,41 @@
1
1
  import { z } from "zod";
2
- import type { CommerceActionResult as ProtoCommerceActionResult, CommerceAppCapabilities as ProtoCommerceAppCapabilities, CommerceCancelOrderInput as ProtoCommerceCancelOrderInput, CommerceChangeShippingAddressInput as ProtoCommerceChangeShippingAddressInput, CommerceExchangeOrderInput as ProtoCommerceExchangeOrderInput, CommerceGetAppConfigsOutput as ProtoCommerceGetAppConfigsOutput, CommerceGetExchangeableItemsInput as ProtoCommerceGetExchangeableItemsInput, CommerceGetExchangeableItemsOutput as ProtoCommerceGetExchangeableItemsOutput, CommerceGetOrdersInput as ProtoCommerceGetOrdersInput, CommerceGetOrdersOutput as ProtoCommerceGetOrdersOutput, CommerceIdentifier as ProtoCommerceIdentifier, CommerceOrder as ProtoCommerceOrder, CommerceOrderItem as ProtoCommerceOrderItem, CommerceAcceptReturnOrderInput as ProtoCommerceAcceptReturnOrderInput, CommerceReturnOrderInput as ProtoCommerceReturnOrderInput } from "../gen/channel/app/sdk/v1/extension.js";
2
+ import type { CommerceActionResult as ProtoCommerceActionResult, CommerceAppCapabilities as ProtoCommerceAppCapabilities, CommerceCancelOrderInput as ProtoCommerceCancelOrderInput, CommerceChangeShippingAddressInput as ProtoCommerceChangeShippingAddressInput, CommerceExchangeOrderInput as ProtoCommerceExchangeOrderInput, CommerceGetAppConfigsOutput as ProtoCommerceGetAppConfigsOutput, CommerceGetExchangeableItemsInput as ProtoCommerceGetExchangeableItemsInput, CommerceGetExchangeableItemsOutput as ProtoCommerceGetExchangeableItemsOutput, CommerceExchangeableItem as ProtoCommerceExchangeableItem, CommerceExchangeableVariant as ProtoCommerceExchangeableVariant, CommerceOrderBundleItem as ProtoCommerceOrderBundleItem, CommerceVariantOption as ProtoCommerceVariantOption, CommerceGetOrdersInput as ProtoCommerceGetOrdersInput, CommerceGetOrdersOutput as ProtoCommerceGetOrdersOutput, CommerceIdentifier as ProtoCommerceIdentifier, CommerceOrder as ProtoCommerceOrder, CommerceOrderItem as ProtoCommerceOrderItem, CommerceAcceptReturnOrderInput as ProtoCommerceAcceptReturnOrderInput, CommerceReturnOrderInput as ProtoCommerceReturnOrderInput } from "../gen/channel/app/sdk/v1/extension.js";
3
3
  type ProtoBacked<T, Proto> = T & Proto;
4
+ export declare const CommerceOrderBundleItemSchema: z.ZodObject<{
5
+ productId: z.ZodOptional<z.ZodString>;
6
+ variantId: z.ZodOptional<z.ZodString>;
7
+ name: z.ZodOptional<z.ZodString>;
8
+ sku: z.ZodOptional<z.ZodString>;
9
+ option: z.ZodOptional<z.ZodString>;
10
+ quantity: z.ZodOptional<z.ZodNumber>;
11
+ amount: z.ZodOptional<z.ZodNumber>;
12
+ optionAmount: z.ZodOptional<z.ZodNumber>;
13
+ supplierId: z.ZodOptional<z.ZodString>;
14
+ productCode: z.ZodOptional<z.ZodString>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ name?: string | undefined;
17
+ amount?: number | undefined;
18
+ quantity?: number | undefined;
19
+ option?: string | undefined;
20
+ productId?: string | undefined;
21
+ variantId?: string | undefined;
22
+ sku?: string | undefined;
23
+ optionAmount?: number | undefined;
24
+ supplierId?: string | undefined;
25
+ productCode?: string | undefined;
26
+ }, {
27
+ name?: string | undefined;
28
+ amount?: number | undefined;
29
+ quantity?: number | undefined;
30
+ option?: string | undefined;
31
+ productId?: string | undefined;
32
+ variantId?: string | undefined;
33
+ sku?: string | undefined;
34
+ optionAmount?: number | undefined;
35
+ supplierId?: string | undefined;
36
+ productCode?: string | undefined;
37
+ }>;
38
+ export type CommerceOrderBundleItem = ProtoBacked<z.infer<typeof CommerceOrderBundleItemSchema>, ProtoCommerceOrderBundleItem>;
4
39
  export declare const CommerceOrderItemSchema: z.ZodObject<{
5
40
  id: z.ZodString;
6
41
  name: z.ZodString;
@@ -15,21 +50,115 @@ export declare const CommerceOrderItemSchema: z.ZodObject<{
15
50
  deliveredAt: z.ZodOptional<z.ZodNumber>;
16
51
  estimatedShipDate: z.ZodOptional<z.ZodNumber>;
17
52
  claimability: z.ZodObject<{
18
- cancelable: z.ZodBoolean;
19
- returnable: z.ZodBoolean;
20
- exchangeable: z.ZodBoolean;
21
- shippingAddressChangeable: z.ZodBoolean;
53
+ cancelable: z.ZodOptional<z.ZodBoolean>;
54
+ returnable: z.ZodOptional<z.ZodBoolean>;
55
+ exchangeable: z.ZodOptional<z.ZodBoolean>;
56
+ shippingAddressChangeable: z.ZodOptional<z.ZodBoolean>;
57
+ nonCancelableReason: z.ZodOptional<z.ZodString>;
58
+ nonReturnableReason: z.ZodOptional<z.ZodString>;
59
+ nonExchangeableReason: z.ZodOptional<z.ZodString>;
60
+ nonShippingAddressChangeableReason: z.ZodOptional<z.ZodString>;
22
61
  }, "strip", z.ZodTypeAny, {
23
- cancelable: boolean;
24
- returnable: boolean;
25
- exchangeable: boolean;
26
- shippingAddressChangeable: boolean;
62
+ cancelable?: boolean | undefined;
63
+ returnable?: boolean | undefined;
64
+ exchangeable?: boolean | undefined;
65
+ shippingAddressChangeable?: boolean | undefined;
66
+ nonCancelableReason?: string | undefined;
67
+ nonReturnableReason?: string | undefined;
68
+ nonExchangeableReason?: string | undefined;
69
+ nonShippingAddressChangeableReason?: string | undefined;
27
70
  }, {
28
- cancelable: boolean;
29
- returnable: boolean;
30
- exchangeable: boolean;
31
- shippingAddressChangeable: boolean;
71
+ cancelable?: boolean | undefined;
72
+ returnable?: boolean | undefined;
73
+ exchangeable?: boolean | undefined;
74
+ shippingAddressChangeable?: boolean | undefined;
75
+ nonCancelableReason?: string | undefined;
76
+ nonReturnableReason?: string | undefined;
77
+ nonExchangeableReason?: string | undefined;
78
+ nonShippingAddressChangeableReason?: string | undefined;
32
79
  }>;
80
+ sku: z.ZodOptional<z.ZodString>;
81
+ unfulfilledQuantity: z.ZodOptional<z.ZodNumber>;
82
+ requiresShipping: z.ZodOptional<z.ZodBoolean>;
83
+ sellingPlanName: z.ZodOptional<z.ZodString>;
84
+ sellingPlanId: z.ZodOptional<z.ZodString>;
85
+ customAttributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
86
+ key: z.ZodString;
87
+ value: z.ZodOptional<z.ZodString>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ key: string;
90
+ value?: string | undefined;
91
+ }, {
92
+ key: string;
93
+ value?: string | undefined;
94
+ }>, "many">>;
95
+ taxLines: z.ZodOptional<z.ZodArray<z.ZodObject<{
96
+ rate: z.ZodOptional<z.ZodNumber>;
97
+ ratePercentage: z.ZodOptional<z.ZodNumber>;
98
+ title: z.ZodOptional<z.ZodString>;
99
+ amount: z.ZodOptional<z.ZodNumber>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ title?: string | undefined;
102
+ amount?: number | undefined;
103
+ rate?: number | undefined;
104
+ ratePercentage?: number | undefined;
105
+ }, {
106
+ title?: string | undefined;
107
+ amount?: number | undefined;
108
+ rate?: number | undefined;
109
+ ratePercentage?: number | undefined;
110
+ }>, "many">>;
111
+ statusCode: z.ZodOptional<z.ZodString>;
112
+ statusText: z.ZodOptional<z.ZodString>;
113
+ claimStatusCode: z.ZodOptional<z.ZodString>;
114
+ supplierId: z.ZodOptional<z.ZodString>;
115
+ supplierName: z.ZodOptional<z.ZodString>;
116
+ optionAmount: z.ZodOptional<z.ZodNumber>;
117
+ bundle: z.ZodOptional<z.ZodBoolean>;
118
+ bundleId: z.ZodOptional<z.ZodString>;
119
+ bundleName: z.ZodOptional<z.ZodString>;
120
+ bundleType: z.ZodOptional<z.ZodString>;
121
+ bundleItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
122
+ productId: z.ZodOptional<z.ZodString>;
123
+ variantId: z.ZodOptional<z.ZodString>;
124
+ name: z.ZodOptional<z.ZodString>;
125
+ sku: z.ZodOptional<z.ZodString>;
126
+ option: z.ZodOptional<z.ZodString>;
127
+ quantity: z.ZodOptional<z.ZodNumber>;
128
+ amount: z.ZodOptional<z.ZodNumber>;
129
+ optionAmount: z.ZodOptional<z.ZodNumber>;
130
+ supplierId: z.ZodOptional<z.ZodString>;
131
+ productCode: z.ZodOptional<z.ZodString>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ name?: string | undefined;
134
+ amount?: number | undefined;
135
+ quantity?: number | undefined;
136
+ option?: string | undefined;
137
+ productId?: string | undefined;
138
+ variantId?: string | undefined;
139
+ sku?: string | undefined;
140
+ optionAmount?: number | undefined;
141
+ supplierId?: string | undefined;
142
+ productCode?: string | undefined;
143
+ }, {
144
+ name?: string | undefined;
145
+ amount?: number | undefined;
146
+ quantity?: number | undefined;
147
+ option?: string | undefined;
148
+ productId?: string | undefined;
149
+ variantId?: string | undefined;
150
+ sku?: string | undefined;
151
+ optionAmount?: number | undefined;
152
+ supplierId?: string | undefined;
153
+ productCode?: string | undefined;
154
+ }>, "many">>;
155
+ itemNo: z.ZodOptional<z.ZodString>;
156
+ optionType: z.ZodOptional<z.ZodString>;
157
+ trackingNumber: z.ZodOptional<z.ZodString>;
158
+ trackingCompany: z.ZodOptional<z.ZodString>;
159
+ trackingCompanyName: z.ZodOptional<z.ZodString>;
160
+ shippingCode: z.ZodOptional<z.ZodString>;
161
+ productCode: z.ZodOptional<z.ZodString>;
33
162
  }, "strip", z.ZodTypeAny, {
34
163
  name: string;
35
164
  id: string;
@@ -37,10 +166,14 @@ export declare const CommerceOrderItemSchema: z.ZodObject<{
37
166
  amount: number;
38
167
  quantity: number;
39
168
  claimability: {
40
- cancelable: boolean;
41
- returnable: boolean;
42
- exchangeable: boolean;
43
- shippingAddressChangeable: boolean;
169
+ cancelable?: boolean | undefined;
170
+ returnable?: boolean | undefined;
171
+ exchangeable?: boolean | undefined;
172
+ shippingAddressChangeable?: boolean | undefined;
173
+ nonCancelableReason?: string | undefined;
174
+ nonReturnableReason?: string | undefined;
175
+ nonExchangeableReason?: string | undefined;
176
+ nonShippingAddressChangeableReason?: string | undefined;
44
177
  };
45
178
  imageUrl?: string | undefined;
46
179
  option?: string | undefined;
@@ -49,6 +182,50 @@ export declare const CommerceOrderItemSchema: z.ZodObject<{
49
182
  shippedAt?: number | undefined;
50
183
  deliveredAt?: number | undefined;
51
184
  estimatedShipDate?: number | undefined;
185
+ trackingNumber?: string | undefined;
186
+ trackingCompany?: string | undefined;
187
+ trackingCompanyName?: string | undefined;
188
+ taxLines?: {
189
+ title?: string | undefined;
190
+ amount?: number | undefined;
191
+ rate?: number | undefined;
192
+ ratePercentage?: number | undefined;
193
+ }[] | undefined;
194
+ sku?: string | undefined;
195
+ optionAmount?: number | undefined;
196
+ supplierId?: string | undefined;
197
+ productCode?: string | undefined;
198
+ unfulfilledQuantity?: number | undefined;
199
+ requiresShipping?: boolean | undefined;
200
+ sellingPlanName?: string | undefined;
201
+ sellingPlanId?: string | undefined;
202
+ customAttributes?: {
203
+ key: string;
204
+ value?: string | undefined;
205
+ }[] | undefined;
206
+ statusCode?: string | undefined;
207
+ statusText?: string | undefined;
208
+ claimStatusCode?: string | undefined;
209
+ supplierName?: string | undefined;
210
+ bundle?: boolean | undefined;
211
+ bundleId?: string | undefined;
212
+ bundleName?: string | undefined;
213
+ bundleType?: string | undefined;
214
+ bundleItems?: {
215
+ name?: string | undefined;
216
+ amount?: number | undefined;
217
+ quantity?: number | undefined;
218
+ option?: string | undefined;
219
+ productId?: string | undefined;
220
+ variantId?: string | undefined;
221
+ sku?: string | undefined;
222
+ optionAmount?: number | undefined;
223
+ supplierId?: string | undefined;
224
+ productCode?: string | undefined;
225
+ }[] | undefined;
226
+ itemNo?: string | undefined;
227
+ optionType?: string | undefined;
228
+ shippingCode?: string | undefined;
52
229
  }, {
53
230
  name: string;
54
231
  id: string;
@@ -56,10 +233,14 @@ export declare const CommerceOrderItemSchema: z.ZodObject<{
56
233
  amount: number;
57
234
  quantity: number;
58
235
  claimability: {
59
- cancelable: boolean;
60
- returnable: boolean;
61
- exchangeable: boolean;
62
- shippingAddressChangeable: boolean;
236
+ cancelable?: boolean | undefined;
237
+ returnable?: boolean | undefined;
238
+ exchangeable?: boolean | undefined;
239
+ shippingAddressChangeable?: boolean | undefined;
240
+ nonCancelableReason?: string | undefined;
241
+ nonReturnableReason?: string | undefined;
242
+ nonExchangeableReason?: string | undefined;
243
+ nonShippingAddressChangeableReason?: string | undefined;
63
244
  };
64
245
  imageUrl?: string | undefined;
65
246
  option?: string | undefined;
@@ -68,6 +249,50 @@ export declare const CommerceOrderItemSchema: z.ZodObject<{
68
249
  shippedAt?: number | undefined;
69
250
  deliveredAt?: number | undefined;
70
251
  estimatedShipDate?: number | undefined;
252
+ trackingNumber?: string | undefined;
253
+ trackingCompany?: string | undefined;
254
+ trackingCompanyName?: string | undefined;
255
+ taxLines?: {
256
+ title?: string | undefined;
257
+ amount?: number | undefined;
258
+ rate?: number | undefined;
259
+ ratePercentage?: number | undefined;
260
+ }[] | undefined;
261
+ sku?: string | undefined;
262
+ optionAmount?: number | undefined;
263
+ supplierId?: string | undefined;
264
+ productCode?: string | undefined;
265
+ unfulfilledQuantity?: number | undefined;
266
+ requiresShipping?: boolean | undefined;
267
+ sellingPlanName?: string | undefined;
268
+ sellingPlanId?: string | undefined;
269
+ customAttributes?: {
270
+ key: string;
271
+ value?: string | undefined;
272
+ }[] | undefined;
273
+ statusCode?: string | undefined;
274
+ statusText?: string | undefined;
275
+ claimStatusCode?: string | undefined;
276
+ supplierName?: string | undefined;
277
+ bundle?: boolean | undefined;
278
+ bundleId?: string | undefined;
279
+ bundleName?: string | undefined;
280
+ bundleType?: string | undefined;
281
+ bundleItems?: {
282
+ name?: string | undefined;
283
+ amount?: number | undefined;
284
+ quantity?: number | undefined;
285
+ option?: string | undefined;
286
+ productId?: string | undefined;
287
+ variantId?: string | undefined;
288
+ sku?: string | undefined;
289
+ optionAmount?: number | undefined;
290
+ supplierId?: string | undefined;
291
+ productCode?: string | undefined;
292
+ }[] | undefined;
293
+ itemNo?: string | undefined;
294
+ optionType?: string | undefined;
295
+ shippingCode?: string | undefined;
71
296
  }>;
72
297
  export type CommerceOrderItem = ProtoBacked<z.infer<typeof CommerceOrderItemSchema>, ProtoCommerceOrderItem>;
73
298
  export declare const CommerceOrderSchema: z.ZodObject<{
@@ -104,21 +329,115 @@ export declare const CommerceOrderSchema: z.ZodObject<{
104
329
  deliveredAt: z.ZodOptional<z.ZodNumber>;
105
330
  estimatedShipDate: z.ZodOptional<z.ZodNumber>;
106
331
  claimability: z.ZodObject<{
107
- cancelable: z.ZodBoolean;
108
- returnable: z.ZodBoolean;
109
- exchangeable: z.ZodBoolean;
110
- shippingAddressChangeable: z.ZodBoolean;
332
+ cancelable: z.ZodOptional<z.ZodBoolean>;
333
+ returnable: z.ZodOptional<z.ZodBoolean>;
334
+ exchangeable: z.ZodOptional<z.ZodBoolean>;
335
+ shippingAddressChangeable: z.ZodOptional<z.ZodBoolean>;
336
+ nonCancelableReason: z.ZodOptional<z.ZodString>;
337
+ nonReturnableReason: z.ZodOptional<z.ZodString>;
338
+ nonExchangeableReason: z.ZodOptional<z.ZodString>;
339
+ nonShippingAddressChangeableReason: z.ZodOptional<z.ZodString>;
111
340
  }, "strip", z.ZodTypeAny, {
112
- cancelable: boolean;
113
- returnable: boolean;
114
- exchangeable: boolean;
115
- shippingAddressChangeable: boolean;
341
+ cancelable?: boolean | undefined;
342
+ returnable?: boolean | undefined;
343
+ exchangeable?: boolean | undefined;
344
+ shippingAddressChangeable?: boolean | undefined;
345
+ nonCancelableReason?: string | undefined;
346
+ nonReturnableReason?: string | undefined;
347
+ nonExchangeableReason?: string | undefined;
348
+ nonShippingAddressChangeableReason?: string | undefined;
116
349
  }, {
117
- cancelable: boolean;
118
- returnable: boolean;
119
- exchangeable: boolean;
120
- shippingAddressChangeable: boolean;
350
+ cancelable?: boolean | undefined;
351
+ returnable?: boolean | undefined;
352
+ exchangeable?: boolean | undefined;
353
+ shippingAddressChangeable?: boolean | undefined;
354
+ nonCancelableReason?: string | undefined;
355
+ nonReturnableReason?: string | undefined;
356
+ nonExchangeableReason?: string | undefined;
357
+ nonShippingAddressChangeableReason?: string | undefined;
121
358
  }>;
359
+ sku: z.ZodOptional<z.ZodString>;
360
+ unfulfilledQuantity: z.ZodOptional<z.ZodNumber>;
361
+ requiresShipping: z.ZodOptional<z.ZodBoolean>;
362
+ sellingPlanName: z.ZodOptional<z.ZodString>;
363
+ sellingPlanId: z.ZodOptional<z.ZodString>;
364
+ customAttributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
365
+ key: z.ZodString;
366
+ value: z.ZodOptional<z.ZodString>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ key: string;
369
+ value?: string | undefined;
370
+ }, {
371
+ key: string;
372
+ value?: string | undefined;
373
+ }>, "many">>;
374
+ taxLines: z.ZodOptional<z.ZodArray<z.ZodObject<{
375
+ rate: z.ZodOptional<z.ZodNumber>;
376
+ ratePercentage: z.ZodOptional<z.ZodNumber>;
377
+ title: z.ZodOptional<z.ZodString>;
378
+ amount: z.ZodOptional<z.ZodNumber>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ title?: string | undefined;
381
+ amount?: number | undefined;
382
+ rate?: number | undefined;
383
+ ratePercentage?: number | undefined;
384
+ }, {
385
+ title?: string | undefined;
386
+ amount?: number | undefined;
387
+ rate?: number | undefined;
388
+ ratePercentage?: number | undefined;
389
+ }>, "many">>;
390
+ statusCode: z.ZodOptional<z.ZodString>;
391
+ statusText: z.ZodOptional<z.ZodString>;
392
+ claimStatusCode: z.ZodOptional<z.ZodString>;
393
+ supplierId: z.ZodOptional<z.ZodString>;
394
+ supplierName: z.ZodOptional<z.ZodString>;
395
+ optionAmount: z.ZodOptional<z.ZodNumber>;
396
+ bundle: z.ZodOptional<z.ZodBoolean>;
397
+ bundleId: z.ZodOptional<z.ZodString>;
398
+ bundleName: z.ZodOptional<z.ZodString>;
399
+ bundleType: z.ZodOptional<z.ZodString>;
400
+ bundleItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
401
+ productId: z.ZodOptional<z.ZodString>;
402
+ variantId: z.ZodOptional<z.ZodString>;
403
+ name: z.ZodOptional<z.ZodString>;
404
+ sku: z.ZodOptional<z.ZodString>;
405
+ option: z.ZodOptional<z.ZodString>;
406
+ quantity: z.ZodOptional<z.ZodNumber>;
407
+ amount: z.ZodOptional<z.ZodNumber>;
408
+ optionAmount: z.ZodOptional<z.ZodNumber>;
409
+ supplierId: z.ZodOptional<z.ZodString>;
410
+ productCode: z.ZodOptional<z.ZodString>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ name?: string | undefined;
413
+ amount?: number | undefined;
414
+ quantity?: number | undefined;
415
+ option?: string | undefined;
416
+ productId?: string | undefined;
417
+ variantId?: string | undefined;
418
+ sku?: string | undefined;
419
+ optionAmount?: number | undefined;
420
+ supplierId?: string | undefined;
421
+ productCode?: string | undefined;
422
+ }, {
423
+ name?: string | undefined;
424
+ amount?: number | undefined;
425
+ quantity?: number | undefined;
426
+ option?: string | undefined;
427
+ productId?: string | undefined;
428
+ variantId?: string | undefined;
429
+ sku?: string | undefined;
430
+ optionAmount?: number | undefined;
431
+ supplierId?: string | undefined;
432
+ productCode?: string | undefined;
433
+ }>, "many">>;
434
+ itemNo: z.ZodOptional<z.ZodString>;
435
+ optionType: z.ZodOptional<z.ZodString>;
436
+ trackingNumber: z.ZodOptional<z.ZodString>;
437
+ trackingCompany: z.ZodOptional<z.ZodString>;
438
+ trackingCompanyName: z.ZodOptional<z.ZodString>;
439
+ shippingCode: z.ZodOptional<z.ZodString>;
440
+ productCode: z.ZodOptional<z.ZodString>;
122
441
  }, "strip", z.ZodTypeAny, {
123
442
  name: string;
124
443
  id: string;
@@ -126,10 +445,14 @@ export declare const CommerceOrderSchema: z.ZodObject<{
126
445
  amount: number;
127
446
  quantity: number;
128
447
  claimability: {
129
- cancelable: boolean;
130
- returnable: boolean;
131
- exchangeable: boolean;
132
- shippingAddressChangeable: boolean;
448
+ cancelable?: boolean | undefined;
449
+ returnable?: boolean | undefined;
450
+ exchangeable?: boolean | undefined;
451
+ shippingAddressChangeable?: boolean | undefined;
452
+ nonCancelableReason?: string | undefined;
453
+ nonReturnableReason?: string | undefined;
454
+ nonExchangeableReason?: string | undefined;
455
+ nonShippingAddressChangeableReason?: string | undefined;
133
456
  };
134
457
  imageUrl?: string | undefined;
135
458
  option?: string | undefined;
@@ -138,6 +461,50 @@ export declare const CommerceOrderSchema: z.ZodObject<{
138
461
  shippedAt?: number | undefined;
139
462
  deliveredAt?: number | undefined;
140
463
  estimatedShipDate?: number | undefined;
464
+ trackingNumber?: string | undefined;
465
+ trackingCompany?: string | undefined;
466
+ trackingCompanyName?: string | undefined;
467
+ taxLines?: {
468
+ title?: string | undefined;
469
+ amount?: number | undefined;
470
+ rate?: number | undefined;
471
+ ratePercentage?: number | undefined;
472
+ }[] | undefined;
473
+ sku?: string | undefined;
474
+ optionAmount?: number | undefined;
475
+ supplierId?: string | undefined;
476
+ productCode?: string | undefined;
477
+ unfulfilledQuantity?: number | undefined;
478
+ requiresShipping?: boolean | undefined;
479
+ sellingPlanName?: string | undefined;
480
+ sellingPlanId?: string | undefined;
481
+ customAttributes?: {
482
+ key: string;
483
+ value?: string | undefined;
484
+ }[] | undefined;
485
+ statusCode?: string | undefined;
486
+ statusText?: string | undefined;
487
+ claimStatusCode?: string | undefined;
488
+ supplierName?: string | undefined;
489
+ bundle?: boolean | undefined;
490
+ bundleId?: string | undefined;
491
+ bundleName?: string | undefined;
492
+ bundleType?: string | undefined;
493
+ bundleItems?: {
494
+ name?: string | undefined;
495
+ amount?: number | undefined;
496
+ quantity?: number | undefined;
497
+ option?: string | undefined;
498
+ productId?: string | undefined;
499
+ variantId?: string | undefined;
500
+ sku?: string | undefined;
501
+ optionAmount?: number | undefined;
502
+ supplierId?: string | undefined;
503
+ productCode?: string | undefined;
504
+ }[] | undefined;
505
+ itemNo?: string | undefined;
506
+ optionType?: string | undefined;
507
+ shippingCode?: string | undefined;
141
508
  }, {
142
509
  name: string;
143
510
  id: string;
@@ -145,10 +512,14 @@ export declare const CommerceOrderSchema: z.ZodObject<{
145
512
  amount: number;
146
513
  quantity: number;
147
514
  claimability: {
148
- cancelable: boolean;
149
- returnable: boolean;
150
- exchangeable: boolean;
151
- shippingAddressChangeable: boolean;
515
+ cancelable?: boolean | undefined;
516
+ returnable?: boolean | undefined;
517
+ exchangeable?: boolean | undefined;
518
+ shippingAddressChangeable?: boolean | undefined;
519
+ nonCancelableReason?: string | undefined;
520
+ nonReturnableReason?: string | undefined;
521
+ nonExchangeableReason?: string | undefined;
522
+ nonShippingAddressChangeableReason?: string | undefined;
152
523
  };
153
524
  imageUrl?: string | undefined;
154
525
  option?: string | undefined;
@@ -157,6 +528,50 @@ export declare const CommerceOrderSchema: z.ZodObject<{
157
528
  shippedAt?: number | undefined;
158
529
  deliveredAt?: number | undefined;
159
530
  estimatedShipDate?: number | undefined;
531
+ trackingNumber?: string | undefined;
532
+ trackingCompany?: string | undefined;
533
+ trackingCompanyName?: string | undefined;
534
+ taxLines?: {
535
+ title?: string | undefined;
536
+ amount?: number | undefined;
537
+ rate?: number | undefined;
538
+ ratePercentage?: number | undefined;
539
+ }[] | undefined;
540
+ sku?: string | undefined;
541
+ optionAmount?: number | undefined;
542
+ supplierId?: string | undefined;
543
+ productCode?: string | undefined;
544
+ unfulfilledQuantity?: number | undefined;
545
+ requiresShipping?: boolean | undefined;
546
+ sellingPlanName?: string | undefined;
547
+ sellingPlanId?: string | undefined;
548
+ customAttributes?: {
549
+ key: string;
550
+ value?: string | undefined;
551
+ }[] | undefined;
552
+ statusCode?: string | undefined;
553
+ statusText?: string | undefined;
554
+ claimStatusCode?: string | undefined;
555
+ supplierName?: string | undefined;
556
+ bundle?: boolean | undefined;
557
+ bundleId?: string | undefined;
558
+ bundleName?: string | undefined;
559
+ bundleType?: string | undefined;
560
+ bundleItems?: {
561
+ name?: string | undefined;
562
+ amount?: number | undefined;
563
+ quantity?: number | undefined;
564
+ option?: string | undefined;
565
+ productId?: string | undefined;
566
+ variantId?: string | undefined;
567
+ sku?: string | undefined;
568
+ optionAmount?: number | undefined;
569
+ supplierId?: string | undefined;
570
+ productCode?: string | undefined;
571
+ }[] | undefined;
572
+ itemNo?: string | undefined;
573
+ optionType?: string | undefined;
574
+ shippingCode?: string | undefined;
160
575
  }>, "many">;
161
576
  payment: z.ZodObject<{
162
577
  state: z.ZodString;
@@ -165,8 +580,13 @@ export declare const CommerceOrderSchema: z.ZodObject<{
165
580
  itemsAmount: z.ZodNumber;
166
581
  shippingAmount: z.ZodNumber;
167
582
  discountAmount: z.ZodNumber;
168
- methods: z.ZodArray<z.ZodString, "many">;
583
+ methods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
169
584
  requireRefundBankAccount: z.ZodBoolean;
585
+ taxAmount: z.ZodOptional<z.ZodNumber>;
586
+ pointAmount: z.ZodOptional<z.ZodNumber>;
587
+ creditAmount: z.ZodOptional<z.ZodNumber>;
588
+ couponDiscountAmount: z.ZodOptional<z.ZodNumber>;
589
+ dueAmount: z.ZodOptional<z.ZodNumber>;
170
590
  }, "strip", z.ZodTypeAny, {
171
591
  state: string;
172
592
  currency: string;
@@ -174,8 +594,13 @@ export declare const CommerceOrderSchema: z.ZodObject<{
174
594
  itemsAmount: number;
175
595
  shippingAmount: number;
176
596
  discountAmount: number;
177
- methods: string[];
178
597
  requireRefundBankAccount: boolean;
598
+ methods?: string[] | undefined;
599
+ taxAmount?: number | undefined;
600
+ pointAmount?: number | undefined;
601
+ creditAmount?: number | undefined;
602
+ couponDiscountAmount?: number | undefined;
603
+ dueAmount?: number | undefined;
179
604
  }, {
180
605
  state: string;
181
606
  currency: string;
@@ -183,10 +608,15 @@ export declare const CommerceOrderSchema: z.ZodObject<{
183
608
  itemsAmount: number;
184
609
  shippingAmount: number;
185
610
  discountAmount: number;
186
- methods: string[];
187
611
  requireRefundBankAccount: boolean;
612
+ methods?: string[] | undefined;
613
+ taxAmount?: number | undefined;
614
+ pointAmount?: number | undefined;
615
+ creditAmount?: number | undefined;
616
+ couponDiscountAmount?: number | undefined;
617
+ dueAmount?: number | undefined;
188
618
  }>;
189
- fulfillments: z.ZodArray<z.ZodObject<{
619
+ fulfillments: z.ZodOptional<z.ZodArray<z.ZodObject<{
190
620
  id: z.ZodString;
191
621
  state: z.ZodString;
192
622
  itemIds: z.ZodArray<z.ZodString, "many">;
@@ -194,23 +624,44 @@ export declare const CommerceOrderSchema: z.ZodObject<{
194
624
  trackingCompany: z.ZodOptional<z.ZodString>;
195
625
  trackingUrl: z.ZodOptional<z.ZodString>;
196
626
  estimatedDeliveryDate: z.ZodOptional<z.ZodNumber>;
627
+ trackingCompanyName: z.ZodOptional<z.ZodString>;
628
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
629
+ itemId: z.ZodString;
630
+ state: z.ZodOptional<z.ZodString>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ itemId: string;
633
+ state?: string | undefined;
634
+ }, {
635
+ itemId: string;
636
+ state?: string | undefined;
637
+ }>, "many">>;
197
638
  }, "strip", z.ZodTypeAny, {
198
639
  id: string;
199
640
  state: string;
200
641
  itemIds: string[];
642
+ items?: {
643
+ itemId: string;
644
+ state?: string | undefined;
645
+ }[] | undefined;
201
646
  trackingNumber?: string | undefined;
202
647
  trackingCompany?: string | undefined;
203
648
  trackingUrl?: string | undefined;
204
649
  estimatedDeliveryDate?: number | undefined;
650
+ trackingCompanyName?: string | undefined;
205
651
  }, {
206
652
  id: string;
207
653
  state: string;
208
654
  itemIds: string[];
655
+ items?: {
656
+ itemId: string;
657
+ state?: string | undefined;
658
+ }[] | undefined;
209
659
  trackingNumber?: string | undefined;
210
660
  trackingCompany?: string | undefined;
211
661
  trackingUrl?: string | undefined;
212
662
  estimatedDeliveryDate?: number | undefined;
213
- }>, "many">;
663
+ trackingCompanyName?: string | undefined;
664
+ }>, "many">>;
214
665
  shippingAddress: z.ZodOptional<z.ZodObject<{
215
666
  firstName: z.ZodOptional<z.ZodString>;
216
667
  lastName: z.ZodOptional<z.ZodString>;
@@ -224,8 +675,10 @@ export declare const CommerceOrderSchema: z.ZodObject<{
224
675
  country: z.ZodOptional<z.ZodString>;
225
676
  city: z.ZodOptional<z.ZodString>;
226
677
  province: z.ZodOptional<z.ZodString>;
678
+ countryCode: z.ZodOptional<z.ZodString>;
227
679
  }, "strip", z.ZodTypeAny, {
228
680
  email?: string | undefined;
681
+ countryCode?: string | undefined;
229
682
  address1?: string | undefined;
230
683
  address2?: string | undefined;
231
684
  firstName?: string | undefined;
@@ -239,6 +692,7 @@ export declare const CommerceOrderSchema: z.ZodObject<{
239
692
  province?: string | undefined;
240
693
  }, {
241
694
  email?: string | undefined;
695
+ countryCode?: string | undefined;
242
696
  address1?: string | undefined;
243
697
  address2?: string | undefined;
244
698
  firstName?: string | undefined;
@@ -251,7 +705,7 @@ export declare const CommerceOrderSchema: z.ZodObject<{
251
705
  city?: string | undefined;
252
706
  province?: string | undefined;
253
707
  }>>;
254
- claims: z.ZodArray<z.ZodObject<{
708
+ claims: z.ZodOptional<z.ZodArray<z.ZodObject<{
255
709
  id: z.ZodString;
256
710
  extClaimId: z.ZodOptional<z.ZodString>;
257
711
  type: z.ZodString;
@@ -272,7 +726,164 @@ export declare const CommerceOrderSchema: z.ZodObject<{
272
726
  itemIds: string[];
273
727
  createdAt: number;
274
728
  extClaimId?: string | undefined;
275
- }>, "many">;
729
+ }>, "many">>;
730
+ adminUrl: z.ZodOptional<z.ZodString>;
731
+ note: z.ZodOptional<z.ZodString>;
732
+ displayFinancialStatus: z.ZodOptional<z.ZodString>;
733
+ displayFulfillmentStatus: z.ZodOptional<z.ZodString>;
734
+ test: z.ZodOptional<z.ZodBoolean>;
735
+ firstOrder: z.ZodOptional<z.ZodBoolean>;
736
+ closed: z.ZodOptional<z.ZodBoolean>;
737
+ confirmed: z.ZodOptional<z.ZodBoolean>;
738
+ taxesIncluded: z.ZodOptional<z.ZodBoolean>;
739
+ totalWeight: z.ZodOptional<z.ZodNumber>;
740
+ appName: z.ZodOptional<z.ZodString>;
741
+ billingAddress: z.ZodOptional<z.ZodObject<{
742
+ firstName: z.ZodOptional<z.ZodString>;
743
+ lastName: z.ZodOptional<z.ZodString>;
744
+ phoneNumber: z.ZodOptional<z.ZodString>;
745
+ email: z.ZodOptional<z.ZodString>;
746
+ cellPhoneNumber: z.ZodOptional<z.ZodString>;
747
+ zipcode: z.ZodOptional<z.ZodString>;
748
+ address1: z.ZodOptional<z.ZodString>;
749
+ address2: z.ZodOptional<z.ZodString>;
750
+ shippingMessage: z.ZodOptional<z.ZodString>;
751
+ country: z.ZodOptional<z.ZodString>;
752
+ city: z.ZodOptional<z.ZodString>;
753
+ province: z.ZodOptional<z.ZodString>;
754
+ countryCode: z.ZodOptional<z.ZodString>;
755
+ }, "strip", z.ZodTypeAny, {
756
+ email?: string | undefined;
757
+ countryCode?: string | undefined;
758
+ address1?: string | undefined;
759
+ address2?: string | undefined;
760
+ firstName?: string | undefined;
761
+ lastName?: string | undefined;
762
+ phoneNumber?: string | undefined;
763
+ cellPhoneNumber?: string | undefined;
764
+ zipcode?: string | undefined;
765
+ shippingMessage?: string | undefined;
766
+ country?: string | undefined;
767
+ city?: string | undefined;
768
+ province?: string | undefined;
769
+ }, {
770
+ email?: string | undefined;
771
+ countryCode?: string | undefined;
772
+ address1?: string | undefined;
773
+ address2?: string | undefined;
774
+ firstName?: string | undefined;
775
+ lastName?: string | undefined;
776
+ phoneNumber?: string | undefined;
777
+ cellPhoneNumber?: string | undefined;
778
+ zipcode?: string | undefined;
779
+ shippingMessage?: string | undefined;
780
+ country?: string | undefined;
781
+ city?: string | undefined;
782
+ province?: string | undefined;
783
+ }>>;
784
+ customAttributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
785
+ key: z.ZodString;
786
+ value: z.ZodOptional<z.ZodString>;
787
+ }, "strip", z.ZodTypeAny, {
788
+ key: string;
789
+ value?: string | undefined;
790
+ }, {
791
+ key: string;
792
+ value?: string | undefined;
793
+ }>, "many">>;
794
+ shippingLines: z.ZodOptional<z.ZodArray<z.ZodObject<{
795
+ id: z.ZodOptional<z.ZodString>;
796
+ title: z.ZodOptional<z.ZodString>;
797
+ code: z.ZodOptional<z.ZodString>;
798
+ carrierIdentifier: z.ZodOptional<z.ZodString>;
799
+ taxLines: z.ZodOptional<z.ZodArray<z.ZodObject<{
800
+ rate: z.ZodOptional<z.ZodNumber>;
801
+ ratePercentage: z.ZodOptional<z.ZodNumber>;
802
+ title: z.ZodOptional<z.ZodString>;
803
+ amount: z.ZodOptional<z.ZodNumber>;
804
+ }, "strip", z.ZodTypeAny, {
805
+ title?: string | undefined;
806
+ amount?: number | undefined;
807
+ rate?: number | undefined;
808
+ ratePercentage?: number | undefined;
809
+ }, {
810
+ title?: string | undefined;
811
+ amount?: number | undefined;
812
+ rate?: number | undefined;
813
+ ratePercentage?: number | undefined;
814
+ }>, "many">>;
815
+ }, "strip", z.ZodTypeAny, {
816
+ code?: string | undefined;
817
+ id?: string | undefined;
818
+ title?: string | undefined;
819
+ carrierIdentifier?: string | undefined;
820
+ taxLines?: {
821
+ title?: string | undefined;
822
+ amount?: number | undefined;
823
+ rate?: number | undefined;
824
+ ratePercentage?: number | undefined;
825
+ }[] | undefined;
826
+ }, {
827
+ code?: string | undefined;
828
+ id?: string | undefined;
829
+ title?: string | undefined;
830
+ carrierIdentifier?: string | undefined;
831
+ taxLines?: {
832
+ title?: string | undefined;
833
+ amount?: number | undefined;
834
+ rate?: number | undefined;
835
+ ratePercentage?: number | undefined;
836
+ }[] | undefined;
837
+ }>, "many">>;
838
+ transactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
839
+ id: z.ZodOptional<z.ZodString>;
840
+ parentId: z.ZodOptional<z.ZodString>;
841
+ kind: z.ZodOptional<z.ZodString>;
842
+ status: z.ZodOptional<z.ZodString>;
843
+ gateway: z.ZodOptional<z.ZodString>;
844
+ manualPaymentGateway: z.ZodOptional<z.ZodBoolean>;
845
+ amount: z.ZodOptional<z.ZodNumber>;
846
+ currency: z.ZodOptional<z.ZodString>;
847
+ createdAt: z.ZodOptional<z.ZodNumber>;
848
+ }, "strip", z.ZodTypeAny, {
849
+ status?: string | undefined;
850
+ id?: string | undefined;
851
+ kind?: string | undefined;
852
+ createdAt?: number | undefined;
853
+ amount?: number | undefined;
854
+ currency?: string | undefined;
855
+ parentId?: string | undefined;
856
+ gateway?: string | undefined;
857
+ manualPaymentGateway?: boolean | undefined;
858
+ }, {
859
+ status?: string | undefined;
860
+ id?: string | undefined;
861
+ kind?: string | undefined;
862
+ createdAt?: number | undefined;
863
+ amount?: number | undefined;
864
+ currency?: string | undefined;
865
+ parentId?: string | undefined;
866
+ gateway?: string | undefined;
867
+ manualPaymentGateway?: boolean | undefined;
868
+ }>, "many">>;
869
+ metafields: z.ZodOptional<z.ZodArray<z.ZodObject<{
870
+ namespace: z.ZodOptional<z.ZodString>;
871
+ key: z.ZodString;
872
+ value: z.ZodOptional<z.ZodString>;
873
+ type: z.ZodOptional<z.ZodString>;
874
+ }, "strip", z.ZodTypeAny, {
875
+ key: string;
876
+ type?: string | undefined;
877
+ value?: string | undefined;
878
+ namespace?: string | undefined;
879
+ }, {
880
+ key: string;
881
+ type?: string | undefined;
882
+ value?: string | undefined;
883
+ namespace?: string | undefined;
884
+ }>, "many">>;
885
+ marketId: z.ZodOptional<z.ZodString>;
886
+ marketOrderNo: z.ZodOptional<z.ZodString>;
276
887
  }, "strip", z.ZodTypeAny, {
277
888
  id: string;
278
889
  title: string;
@@ -283,10 +894,14 @@ export declare const CommerceOrderSchema: z.ZodObject<{
283
894
  amount: number;
284
895
  quantity: number;
285
896
  claimability: {
286
- cancelable: boolean;
287
- returnable: boolean;
288
- exchangeable: boolean;
289
- shippingAddressChangeable: boolean;
897
+ cancelable?: boolean | undefined;
898
+ returnable?: boolean | undefined;
899
+ exchangeable?: boolean | undefined;
900
+ shippingAddressChangeable?: boolean | undefined;
901
+ nonCancelableReason?: string | undefined;
902
+ nonReturnableReason?: string | undefined;
903
+ nonExchangeableReason?: string | undefined;
904
+ nonShippingAddressChangeableReason?: string | undefined;
290
905
  };
291
906
  imageUrl?: string | undefined;
292
907
  option?: string | undefined;
@@ -295,6 +910,50 @@ export declare const CommerceOrderSchema: z.ZodObject<{
295
910
  shippedAt?: number | undefined;
296
911
  deliveredAt?: number | undefined;
297
912
  estimatedShipDate?: number | undefined;
913
+ trackingNumber?: string | undefined;
914
+ trackingCompany?: string | undefined;
915
+ trackingCompanyName?: string | undefined;
916
+ taxLines?: {
917
+ title?: string | undefined;
918
+ amount?: number | undefined;
919
+ rate?: number | undefined;
920
+ ratePercentage?: number | undefined;
921
+ }[] | undefined;
922
+ sku?: string | undefined;
923
+ optionAmount?: number | undefined;
924
+ supplierId?: string | undefined;
925
+ productCode?: string | undefined;
926
+ unfulfilledQuantity?: number | undefined;
927
+ requiresShipping?: boolean | undefined;
928
+ sellingPlanName?: string | undefined;
929
+ sellingPlanId?: string | undefined;
930
+ customAttributes?: {
931
+ key: string;
932
+ value?: string | undefined;
933
+ }[] | undefined;
934
+ statusCode?: string | undefined;
935
+ statusText?: string | undefined;
936
+ claimStatusCode?: string | undefined;
937
+ supplierName?: string | undefined;
938
+ bundle?: boolean | undefined;
939
+ bundleId?: string | undefined;
940
+ bundleName?: string | undefined;
941
+ bundleType?: string | undefined;
942
+ bundleItems?: {
943
+ name?: string | undefined;
944
+ amount?: number | undefined;
945
+ quantity?: number | undefined;
946
+ option?: string | undefined;
947
+ productId?: string | undefined;
948
+ variantId?: string | undefined;
949
+ sku?: string | undefined;
950
+ optionAmount?: number | undefined;
951
+ supplierId?: string | undefined;
952
+ productCode?: string | undefined;
953
+ }[] | undefined;
954
+ itemNo?: string | undefined;
955
+ optionType?: string | undefined;
956
+ shippingCode?: string | undefined;
298
957
  }[];
299
958
  payment: {
300
959
  state: string;
@@ -303,29 +962,33 @@ export declare const CommerceOrderSchema: z.ZodObject<{
303
962
  itemsAmount: number;
304
963
  shippingAmount: number;
305
964
  discountAmount: number;
306
- methods: string[];
307
965
  requireRefundBankAccount: boolean;
966
+ methods?: string[] | undefined;
967
+ taxAmount?: number | undefined;
968
+ pointAmount?: number | undefined;
969
+ creditAmount?: number | undefined;
970
+ couponDiscountAmount?: number | undefined;
971
+ dueAmount?: number | undefined;
308
972
  };
309
- fulfillments: {
973
+ orderedAt: number;
974
+ confirmed?: boolean | undefined;
975
+ fulfillments?: {
310
976
  id: string;
311
977
  state: string;
312
978
  itemIds: string[];
979
+ items?: {
980
+ itemId: string;
981
+ state?: string | undefined;
982
+ }[] | undefined;
313
983
  trackingNumber?: string | undefined;
314
984
  trackingCompany?: string | undefined;
315
985
  trackingUrl?: string | undefined;
316
986
  estimatedDeliveryDate?: number | undefined;
317
- }[];
318
- claims: {
319
- type: string;
320
- id: string;
321
- state: string;
322
- itemIds: string[];
323
- createdAt: number;
324
- extClaimId?: string | undefined;
325
- }[];
326
- orderedAt: number;
987
+ trackingCompanyName?: string | undefined;
988
+ }[] | undefined;
327
989
  shippingAddress?: {
328
990
  email?: string | undefined;
991
+ countryCode?: string | undefined;
329
992
  address1?: string | undefined;
330
993
  address2?: string | undefined;
331
994
  firstName?: string | undefined;
@@ -338,12 +1001,80 @@ export declare const CommerceOrderSchema: z.ZodObject<{
338
1001
  city?: string | undefined;
339
1002
  province?: string | undefined;
340
1003
  } | undefined;
1004
+ claims?: {
1005
+ type: string;
1006
+ id: string;
1007
+ state: string;
1008
+ itemIds: string[];
1009
+ createdAt: number;
1010
+ extClaimId?: string | undefined;
1011
+ }[] | undefined;
341
1012
  buyer?: {
342
1013
  name?: string | undefined;
343
1014
  email?: string | undefined;
344
1015
  phone?: string | undefined;
345
1016
  memberId?: string | undefined;
346
1017
  } | undefined;
1018
+ customAttributes?: {
1019
+ key: string;
1020
+ value?: string | undefined;
1021
+ }[] | undefined;
1022
+ adminUrl?: string | undefined;
1023
+ note?: string | undefined;
1024
+ displayFinancialStatus?: string | undefined;
1025
+ displayFulfillmentStatus?: string | undefined;
1026
+ test?: boolean | undefined;
1027
+ firstOrder?: boolean | undefined;
1028
+ closed?: boolean | undefined;
1029
+ taxesIncluded?: boolean | undefined;
1030
+ totalWeight?: number | undefined;
1031
+ appName?: string | undefined;
1032
+ billingAddress?: {
1033
+ email?: string | undefined;
1034
+ countryCode?: string | undefined;
1035
+ address1?: string | undefined;
1036
+ address2?: string | undefined;
1037
+ firstName?: string | undefined;
1038
+ lastName?: string | undefined;
1039
+ phoneNumber?: string | undefined;
1040
+ cellPhoneNumber?: string | undefined;
1041
+ zipcode?: string | undefined;
1042
+ shippingMessage?: string | undefined;
1043
+ country?: string | undefined;
1044
+ city?: string | undefined;
1045
+ province?: string | undefined;
1046
+ } | undefined;
1047
+ shippingLines?: {
1048
+ code?: string | undefined;
1049
+ id?: string | undefined;
1050
+ title?: string | undefined;
1051
+ carrierIdentifier?: string | undefined;
1052
+ taxLines?: {
1053
+ title?: string | undefined;
1054
+ amount?: number | undefined;
1055
+ rate?: number | undefined;
1056
+ ratePercentage?: number | undefined;
1057
+ }[] | undefined;
1058
+ }[] | undefined;
1059
+ transactions?: {
1060
+ status?: string | undefined;
1061
+ id?: string | undefined;
1062
+ kind?: string | undefined;
1063
+ createdAt?: number | undefined;
1064
+ amount?: number | undefined;
1065
+ currency?: string | undefined;
1066
+ parentId?: string | undefined;
1067
+ gateway?: string | undefined;
1068
+ manualPaymentGateway?: boolean | undefined;
1069
+ }[] | undefined;
1070
+ metafields?: {
1071
+ key: string;
1072
+ type?: string | undefined;
1073
+ value?: string | undefined;
1074
+ namespace?: string | undefined;
1075
+ }[] | undefined;
1076
+ marketId?: string | undefined;
1077
+ marketOrderNo?: string | undefined;
347
1078
  }, {
348
1079
  id: string;
349
1080
  title: string;
@@ -354,10 +1085,14 @@ export declare const CommerceOrderSchema: z.ZodObject<{
354
1085
  amount: number;
355
1086
  quantity: number;
356
1087
  claimability: {
357
- cancelable: boolean;
358
- returnable: boolean;
359
- exchangeable: boolean;
360
- shippingAddressChangeable: boolean;
1088
+ cancelable?: boolean | undefined;
1089
+ returnable?: boolean | undefined;
1090
+ exchangeable?: boolean | undefined;
1091
+ shippingAddressChangeable?: boolean | undefined;
1092
+ nonCancelableReason?: string | undefined;
1093
+ nonReturnableReason?: string | undefined;
1094
+ nonExchangeableReason?: string | undefined;
1095
+ nonShippingAddressChangeableReason?: string | undefined;
361
1096
  };
362
1097
  imageUrl?: string | undefined;
363
1098
  option?: string | undefined;
@@ -366,6 +1101,50 @@ export declare const CommerceOrderSchema: z.ZodObject<{
366
1101
  shippedAt?: number | undefined;
367
1102
  deliveredAt?: number | undefined;
368
1103
  estimatedShipDate?: number | undefined;
1104
+ trackingNumber?: string | undefined;
1105
+ trackingCompany?: string | undefined;
1106
+ trackingCompanyName?: string | undefined;
1107
+ taxLines?: {
1108
+ title?: string | undefined;
1109
+ amount?: number | undefined;
1110
+ rate?: number | undefined;
1111
+ ratePercentage?: number | undefined;
1112
+ }[] | undefined;
1113
+ sku?: string | undefined;
1114
+ optionAmount?: number | undefined;
1115
+ supplierId?: string | undefined;
1116
+ productCode?: string | undefined;
1117
+ unfulfilledQuantity?: number | undefined;
1118
+ requiresShipping?: boolean | undefined;
1119
+ sellingPlanName?: string | undefined;
1120
+ sellingPlanId?: string | undefined;
1121
+ customAttributes?: {
1122
+ key: string;
1123
+ value?: string | undefined;
1124
+ }[] | undefined;
1125
+ statusCode?: string | undefined;
1126
+ statusText?: string | undefined;
1127
+ claimStatusCode?: string | undefined;
1128
+ supplierName?: string | undefined;
1129
+ bundle?: boolean | undefined;
1130
+ bundleId?: string | undefined;
1131
+ bundleName?: string | undefined;
1132
+ bundleType?: string | undefined;
1133
+ bundleItems?: {
1134
+ name?: string | undefined;
1135
+ amount?: number | undefined;
1136
+ quantity?: number | undefined;
1137
+ option?: string | undefined;
1138
+ productId?: string | undefined;
1139
+ variantId?: string | undefined;
1140
+ sku?: string | undefined;
1141
+ optionAmount?: number | undefined;
1142
+ supplierId?: string | undefined;
1143
+ productCode?: string | undefined;
1144
+ }[] | undefined;
1145
+ itemNo?: string | undefined;
1146
+ optionType?: string | undefined;
1147
+ shippingCode?: string | undefined;
369
1148
  }[];
370
1149
  payment: {
371
1150
  state: string;
@@ -374,29 +1153,33 @@ export declare const CommerceOrderSchema: z.ZodObject<{
374
1153
  itemsAmount: number;
375
1154
  shippingAmount: number;
376
1155
  discountAmount: number;
377
- methods: string[];
378
1156
  requireRefundBankAccount: boolean;
1157
+ methods?: string[] | undefined;
1158
+ taxAmount?: number | undefined;
1159
+ pointAmount?: number | undefined;
1160
+ creditAmount?: number | undefined;
1161
+ couponDiscountAmount?: number | undefined;
1162
+ dueAmount?: number | undefined;
379
1163
  };
380
- fulfillments: {
1164
+ orderedAt: number;
1165
+ confirmed?: boolean | undefined;
1166
+ fulfillments?: {
381
1167
  id: string;
382
1168
  state: string;
383
1169
  itemIds: string[];
1170
+ items?: {
1171
+ itemId: string;
1172
+ state?: string | undefined;
1173
+ }[] | undefined;
384
1174
  trackingNumber?: string | undefined;
385
1175
  trackingCompany?: string | undefined;
386
1176
  trackingUrl?: string | undefined;
387
1177
  estimatedDeliveryDate?: number | undefined;
388
- }[];
389
- claims: {
390
- type: string;
391
- id: string;
392
- state: string;
393
- itemIds: string[];
394
- createdAt: number;
395
- extClaimId?: string | undefined;
396
- }[];
397
- orderedAt: number;
1178
+ trackingCompanyName?: string | undefined;
1179
+ }[] | undefined;
398
1180
  shippingAddress?: {
399
1181
  email?: string | undefined;
1182
+ countryCode?: string | undefined;
400
1183
  address1?: string | undefined;
401
1184
  address2?: string | undefined;
402
1185
  firstName?: string | undefined;
@@ -409,12 +1192,80 @@ export declare const CommerceOrderSchema: z.ZodObject<{
409
1192
  city?: string | undefined;
410
1193
  province?: string | undefined;
411
1194
  } | undefined;
1195
+ claims?: {
1196
+ type: string;
1197
+ id: string;
1198
+ state: string;
1199
+ itemIds: string[];
1200
+ createdAt: number;
1201
+ extClaimId?: string | undefined;
1202
+ }[] | undefined;
412
1203
  buyer?: {
413
1204
  name?: string | undefined;
414
1205
  email?: string | undefined;
415
1206
  phone?: string | undefined;
416
1207
  memberId?: string | undefined;
417
1208
  } | undefined;
1209
+ customAttributes?: {
1210
+ key: string;
1211
+ value?: string | undefined;
1212
+ }[] | undefined;
1213
+ adminUrl?: string | undefined;
1214
+ note?: string | undefined;
1215
+ displayFinancialStatus?: string | undefined;
1216
+ displayFulfillmentStatus?: string | undefined;
1217
+ test?: boolean | undefined;
1218
+ firstOrder?: boolean | undefined;
1219
+ closed?: boolean | undefined;
1220
+ taxesIncluded?: boolean | undefined;
1221
+ totalWeight?: number | undefined;
1222
+ appName?: string | undefined;
1223
+ billingAddress?: {
1224
+ email?: string | undefined;
1225
+ countryCode?: string | undefined;
1226
+ address1?: string | undefined;
1227
+ address2?: string | undefined;
1228
+ firstName?: string | undefined;
1229
+ lastName?: string | undefined;
1230
+ phoneNumber?: string | undefined;
1231
+ cellPhoneNumber?: string | undefined;
1232
+ zipcode?: string | undefined;
1233
+ shippingMessage?: string | undefined;
1234
+ country?: string | undefined;
1235
+ city?: string | undefined;
1236
+ province?: string | undefined;
1237
+ } | undefined;
1238
+ shippingLines?: {
1239
+ code?: string | undefined;
1240
+ id?: string | undefined;
1241
+ title?: string | undefined;
1242
+ carrierIdentifier?: string | undefined;
1243
+ taxLines?: {
1244
+ title?: string | undefined;
1245
+ amount?: number | undefined;
1246
+ rate?: number | undefined;
1247
+ ratePercentage?: number | undefined;
1248
+ }[] | undefined;
1249
+ }[] | undefined;
1250
+ transactions?: {
1251
+ status?: string | undefined;
1252
+ id?: string | undefined;
1253
+ kind?: string | undefined;
1254
+ createdAt?: number | undefined;
1255
+ amount?: number | undefined;
1256
+ currency?: string | undefined;
1257
+ parentId?: string | undefined;
1258
+ gateway?: string | undefined;
1259
+ manualPaymentGateway?: boolean | undefined;
1260
+ }[] | undefined;
1261
+ metafields?: {
1262
+ key: string;
1263
+ type?: string | undefined;
1264
+ value?: string | undefined;
1265
+ namespace?: string | undefined;
1266
+ }[] | undefined;
1267
+ marketId?: string | undefined;
1268
+ marketOrderNo?: string | undefined;
418
1269
  }>;
419
1270
  export type CommerceOrder = ProtoBacked<z.infer<typeof CommerceOrderSchema>, ProtoCommerceOrder>;
420
1271
  export declare const CommerceIdentifierSchema: z.ZodObject<{
@@ -495,21 +1346,115 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
495
1346
  deliveredAt: z.ZodOptional<z.ZodNumber>;
496
1347
  estimatedShipDate: z.ZodOptional<z.ZodNumber>;
497
1348
  claimability: z.ZodObject<{
498
- cancelable: z.ZodBoolean;
499
- returnable: z.ZodBoolean;
500
- exchangeable: z.ZodBoolean;
501
- shippingAddressChangeable: z.ZodBoolean;
1349
+ cancelable: z.ZodOptional<z.ZodBoolean>;
1350
+ returnable: z.ZodOptional<z.ZodBoolean>;
1351
+ exchangeable: z.ZodOptional<z.ZodBoolean>;
1352
+ shippingAddressChangeable: z.ZodOptional<z.ZodBoolean>;
1353
+ nonCancelableReason: z.ZodOptional<z.ZodString>;
1354
+ nonReturnableReason: z.ZodOptional<z.ZodString>;
1355
+ nonExchangeableReason: z.ZodOptional<z.ZodString>;
1356
+ nonShippingAddressChangeableReason: z.ZodOptional<z.ZodString>;
502
1357
  }, "strip", z.ZodTypeAny, {
503
- cancelable: boolean;
504
- returnable: boolean;
505
- exchangeable: boolean;
506
- shippingAddressChangeable: boolean;
1358
+ cancelable?: boolean | undefined;
1359
+ returnable?: boolean | undefined;
1360
+ exchangeable?: boolean | undefined;
1361
+ shippingAddressChangeable?: boolean | undefined;
1362
+ nonCancelableReason?: string | undefined;
1363
+ nonReturnableReason?: string | undefined;
1364
+ nonExchangeableReason?: string | undefined;
1365
+ nonShippingAddressChangeableReason?: string | undefined;
507
1366
  }, {
508
- cancelable: boolean;
509
- returnable: boolean;
510
- exchangeable: boolean;
511
- shippingAddressChangeable: boolean;
1367
+ cancelable?: boolean | undefined;
1368
+ returnable?: boolean | undefined;
1369
+ exchangeable?: boolean | undefined;
1370
+ shippingAddressChangeable?: boolean | undefined;
1371
+ nonCancelableReason?: string | undefined;
1372
+ nonReturnableReason?: string | undefined;
1373
+ nonExchangeableReason?: string | undefined;
1374
+ nonShippingAddressChangeableReason?: string | undefined;
512
1375
  }>;
1376
+ sku: z.ZodOptional<z.ZodString>;
1377
+ unfulfilledQuantity: z.ZodOptional<z.ZodNumber>;
1378
+ requiresShipping: z.ZodOptional<z.ZodBoolean>;
1379
+ sellingPlanName: z.ZodOptional<z.ZodString>;
1380
+ sellingPlanId: z.ZodOptional<z.ZodString>;
1381
+ customAttributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1382
+ key: z.ZodString;
1383
+ value: z.ZodOptional<z.ZodString>;
1384
+ }, "strip", z.ZodTypeAny, {
1385
+ key: string;
1386
+ value?: string | undefined;
1387
+ }, {
1388
+ key: string;
1389
+ value?: string | undefined;
1390
+ }>, "many">>;
1391
+ taxLines: z.ZodOptional<z.ZodArray<z.ZodObject<{
1392
+ rate: z.ZodOptional<z.ZodNumber>;
1393
+ ratePercentage: z.ZodOptional<z.ZodNumber>;
1394
+ title: z.ZodOptional<z.ZodString>;
1395
+ amount: z.ZodOptional<z.ZodNumber>;
1396
+ }, "strip", z.ZodTypeAny, {
1397
+ title?: string | undefined;
1398
+ amount?: number | undefined;
1399
+ rate?: number | undefined;
1400
+ ratePercentage?: number | undefined;
1401
+ }, {
1402
+ title?: string | undefined;
1403
+ amount?: number | undefined;
1404
+ rate?: number | undefined;
1405
+ ratePercentage?: number | undefined;
1406
+ }>, "many">>;
1407
+ statusCode: z.ZodOptional<z.ZodString>;
1408
+ statusText: z.ZodOptional<z.ZodString>;
1409
+ claimStatusCode: z.ZodOptional<z.ZodString>;
1410
+ supplierId: z.ZodOptional<z.ZodString>;
1411
+ supplierName: z.ZodOptional<z.ZodString>;
1412
+ optionAmount: z.ZodOptional<z.ZodNumber>;
1413
+ bundle: z.ZodOptional<z.ZodBoolean>;
1414
+ bundleId: z.ZodOptional<z.ZodString>;
1415
+ bundleName: z.ZodOptional<z.ZodString>;
1416
+ bundleType: z.ZodOptional<z.ZodString>;
1417
+ bundleItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1418
+ productId: z.ZodOptional<z.ZodString>;
1419
+ variantId: z.ZodOptional<z.ZodString>;
1420
+ name: z.ZodOptional<z.ZodString>;
1421
+ sku: z.ZodOptional<z.ZodString>;
1422
+ option: z.ZodOptional<z.ZodString>;
1423
+ quantity: z.ZodOptional<z.ZodNumber>;
1424
+ amount: z.ZodOptional<z.ZodNumber>;
1425
+ optionAmount: z.ZodOptional<z.ZodNumber>;
1426
+ supplierId: z.ZodOptional<z.ZodString>;
1427
+ productCode: z.ZodOptional<z.ZodString>;
1428
+ }, "strip", z.ZodTypeAny, {
1429
+ name?: string | undefined;
1430
+ amount?: number | undefined;
1431
+ quantity?: number | undefined;
1432
+ option?: string | undefined;
1433
+ productId?: string | undefined;
1434
+ variantId?: string | undefined;
1435
+ sku?: string | undefined;
1436
+ optionAmount?: number | undefined;
1437
+ supplierId?: string | undefined;
1438
+ productCode?: string | undefined;
1439
+ }, {
1440
+ name?: string | undefined;
1441
+ amount?: number | undefined;
1442
+ quantity?: number | undefined;
1443
+ option?: string | undefined;
1444
+ productId?: string | undefined;
1445
+ variantId?: string | undefined;
1446
+ sku?: string | undefined;
1447
+ optionAmount?: number | undefined;
1448
+ supplierId?: string | undefined;
1449
+ productCode?: string | undefined;
1450
+ }>, "many">>;
1451
+ itemNo: z.ZodOptional<z.ZodString>;
1452
+ optionType: z.ZodOptional<z.ZodString>;
1453
+ trackingNumber: z.ZodOptional<z.ZodString>;
1454
+ trackingCompany: z.ZodOptional<z.ZodString>;
1455
+ trackingCompanyName: z.ZodOptional<z.ZodString>;
1456
+ shippingCode: z.ZodOptional<z.ZodString>;
1457
+ productCode: z.ZodOptional<z.ZodString>;
513
1458
  }, "strip", z.ZodTypeAny, {
514
1459
  name: string;
515
1460
  id: string;
@@ -517,10 +1462,14 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
517
1462
  amount: number;
518
1463
  quantity: number;
519
1464
  claimability: {
520
- cancelable: boolean;
521
- returnable: boolean;
522
- exchangeable: boolean;
523
- shippingAddressChangeable: boolean;
1465
+ cancelable?: boolean | undefined;
1466
+ returnable?: boolean | undefined;
1467
+ exchangeable?: boolean | undefined;
1468
+ shippingAddressChangeable?: boolean | undefined;
1469
+ nonCancelableReason?: string | undefined;
1470
+ nonReturnableReason?: string | undefined;
1471
+ nonExchangeableReason?: string | undefined;
1472
+ nonShippingAddressChangeableReason?: string | undefined;
524
1473
  };
525
1474
  imageUrl?: string | undefined;
526
1475
  option?: string | undefined;
@@ -529,6 +1478,50 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
529
1478
  shippedAt?: number | undefined;
530
1479
  deliveredAt?: number | undefined;
531
1480
  estimatedShipDate?: number | undefined;
1481
+ trackingNumber?: string | undefined;
1482
+ trackingCompany?: string | undefined;
1483
+ trackingCompanyName?: string | undefined;
1484
+ taxLines?: {
1485
+ title?: string | undefined;
1486
+ amount?: number | undefined;
1487
+ rate?: number | undefined;
1488
+ ratePercentage?: number | undefined;
1489
+ }[] | undefined;
1490
+ sku?: string | undefined;
1491
+ optionAmount?: number | undefined;
1492
+ supplierId?: string | undefined;
1493
+ productCode?: string | undefined;
1494
+ unfulfilledQuantity?: number | undefined;
1495
+ requiresShipping?: boolean | undefined;
1496
+ sellingPlanName?: string | undefined;
1497
+ sellingPlanId?: string | undefined;
1498
+ customAttributes?: {
1499
+ key: string;
1500
+ value?: string | undefined;
1501
+ }[] | undefined;
1502
+ statusCode?: string | undefined;
1503
+ statusText?: string | undefined;
1504
+ claimStatusCode?: string | undefined;
1505
+ supplierName?: string | undefined;
1506
+ bundle?: boolean | undefined;
1507
+ bundleId?: string | undefined;
1508
+ bundleName?: string | undefined;
1509
+ bundleType?: string | undefined;
1510
+ bundleItems?: {
1511
+ name?: string | undefined;
1512
+ amount?: number | undefined;
1513
+ quantity?: number | undefined;
1514
+ option?: string | undefined;
1515
+ productId?: string | undefined;
1516
+ variantId?: string | undefined;
1517
+ sku?: string | undefined;
1518
+ optionAmount?: number | undefined;
1519
+ supplierId?: string | undefined;
1520
+ productCode?: string | undefined;
1521
+ }[] | undefined;
1522
+ itemNo?: string | undefined;
1523
+ optionType?: string | undefined;
1524
+ shippingCode?: string | undefined;
532
1525
  }, {
533
1526
  name: string;
534
1527
  id: string;
@@ -536,10 +1529,14 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
536
1529
  amount: number;
537
1530
  quantity: number;
538
1531
  claimability: {
539
- cancelable: boolean;
540
- returnable: boolean;
541
- exchangeable: boolean;
542
- shippingAddressChangeable: boolean;
1532
+ cancelable?: boolean | undefined;
1533
+ returnable?: boolean | undefined;
1534
+ exchangeable?: boolean | undefined;
1535
+ shippingAddressChangeable?: boolean | undefined;
1536
+ nonCancelableReason?: string | undefined;
1537
+ nonReturnableReason?: string | undefined;
1538
+ nonExchangeableReason?: string | undefined;
1539
+ nonShippingAddressChangeableReason?: string | undefined;
543
1540
  };
544
1541
  imageUrl?: string | undefined;
545
1542
  option?: string | undefined;
@@ -548,6 +1545,50 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
548
1545
  shippedAt?: number | undefined;
549
1546
  deliveredAt?: number | undefined;
550
1547
  estimatedShipDate?: number | undefined;
1548
+ trackingNumber?: string | undefined;
1549
+ trackingCompany?: string | undefined;
1550
+ trackingCompanyName?: string | undefined;
1551
+ taxLines?: {
1552
+ title?: string | undefined;
1553
+ amount?: number | undefined;
1554
+ rate?: number | undefined;
1555
+ ratePercentage?: number | undefined;
1556
+ }[] | undefined;
1557
+ sku?: string | undefined;
1558
+ optionAmount?: number | undefined;
1559
+ supplierId?: string | undefined;
1560
+ productCode?: string | undefined;
1561
+ unfulfilledQuantity?: number | undefined;
1562
+ requiresShipping?: boolean | undefined;
1563
+ sellingPlanName?: string | undefined;
1564
+ sellingPlanId?: string | undefined;
1565
+ customAttributes?: {
1566
+ key: string;
1567
+ value?: string | undefined;
1568
+ }[] | undefined;
1569
+ statusCode?: string | undefined;
1570
+ statusText?: string | undefined;
1571
+ claimStatusCode?: string | undefined;
1572
+ supplierName?: string | undefined;
1573
+ bundle?: boolean | undefined;
1574
+ bundleId?: string | undefined;
1575
+ bundleName?: string | undefined;
1576
+ bundleType?: string | undefined;
1577
+ bundleItems?: {
1578
+ name?: string | undefined;
1579
+ amount?: number | undefined;
1580
+ quantity?: number | undefined;
1581
+ option?: string | undefined;
1582
+ productId?: string | undefined;
1583
+ variantId?: string | undefined;
1584
+ sku?: string | undefined;
1585
+ optionAmount?: number | undefined;
1586
+ supplierId?: string | undefined;
1587
+ productCode?: string | undefined;
1588
+ }[] | undefined;
1589
+ itemNo?: string | undefined;
1590
+ optionType?: string | undefined;
1591
+ shippingCode?: string | undefined;
551
1592
  }>, "many">;
552
1593
  payment: z.ZodObject<{
553
1594
  state: z.ZodString;
@@ -556,8 +1597,13 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
556
1597
  itemsAmount: z.ZodNumber;
557
1598
  shippingAmount: z.ZodNumber;
558
1599
  discountAmount: z.ZodNumber;
559
- methods: z.ZodArray<z.ZodString, "many">;
1600
+ methods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
560
1601
  requireRefundBankAccount: z.ZodBoolean;
1602
+ taxAmount: z.ZodOptional<z.ZodNumber>;
1603
+ pointAmount: z.ZodOptional<z.ZodNumber>;
1604
+ creditAmount: z.ZodOptional<z.ZodNumber>;
1605
+ couponDiscountAmount: z.ZodOptional<z.ZodNumber>;
1606
+ dueAmount: z.ZodOptional<z.ZodNumber>;
561
1607
  }, "strip", z.ZodTypeAny, {
562
1608
  state: string;
563
1609
  currency: string;
@@ -565,8 +1611,13 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
565
1611
  itemsAmount: number;
566
1612
  shippingAmount: number;
567
1613
  discountAmount: number;
568
- methods: string[];
569
1614
  requireRefundBankAccount: boolean;
1615
+ methods?: string[] | undefined;
1616
+ taxAmount?: number | undefined;
1617
+ pointAmount?: number | undefined;
1618
+ creditAmount?: number | undefined;
1619
+ couponDiscountAmount?: number | undefined;
1620
+ dueAmount?: number | undefined;
570
1621
  }, {
571
1622
  state: string;
572
1623
  currency: string;
@@ -574,10 +1625,15 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
574
1625
  itemsAmount: number;
575
1626
  shippingAmount: number;
576
1627
  discountAmount: number;
577
- methods: string[];
578
1628
  requireRefundBankAccount: boolean;
1629
+ methods?: string[] | undefined;
1630
+ taxAmount?: number | undefined;
1631
+ pointAmount?: number | undefined;
1632
+ creditAmount?: number | undefined;
1633
+ couponDiscountAmount?: number | undefined;
1634
+ dueAmount?: number | undefined;
579
1635
  }>;
580
- fulfillments: z.ZodArray<z.ZodObject<{
1636
+ fulfillments: z.ZodOptional<z.ZodArray<z.ZodObject<{
581
1637
  id: z.ZodString;
582
1638
  state: z.ZodString;
583
1639
  itemIds: z.ZodArray<z.ZodString, "many">;
@@ -585,23 +1641,44 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
585
1641
  trackingCompany: z.ZodOptional<z.ZodString>;
586
1642
  trackingUrl: z.ZodOptional<z.ZodString>;
587
1643
  estimatedDeliveryDate: z.ZodOptional<z.ZodNumber>;
1644
+ trackingCompanyName: z.ZodOptional<z.ZodString>;
1645
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1646
+ itemId: z.ZodString;
1647
+ state: z.ZodOptional<z.ZodString>;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ itemId: string;
1650
+ state?: string | undefined;
1651
+ }, {
1652
+ itemId: string;
1653
+ state?: string | undefined;
1654
+ }>, "many">>;
588
1655
  }, "strip", z.ZodTypeAny, {
589
1656
  id: string;
590
1657
  state: string;
591
1658
  itemIds: string[];
1659
+ items?: {
1660
+ itemId: string;
1661
+ state?: string | undefined;
1662
+ }[] | undefined;
592
1663
  trackingNumber?: string | undefined;
593
1664
  trackingCompany?: string | undefined;
594
1665
  trackingUrl?: string | undefined;
595
1666
  estimatedDeliveryDate?: number | undefined;
1667
+ trackingCompanyName?: string | undefined;
596
1668
  }, {
597
1669
  id: string;
598
1670
  state: string;
599
1671
  itemIds: string[];
1672
+ items?: {
1673
+ itemId: string;
1674
+ state?: string | undefined;
1675
+ }[] | undefined;
600
1676
  trackingNumber?: string | undefined;
601
1677
  trackingCompany?: string | undefined;
602
1678
  trackingUrl?: string | undefined;
603
1679
  estimatedDeliveryDate?: number | undefined;
604
- }>, "many">;
1680
+ trackingCompanyName?: string | undefined;
1681
+ }>, "many">>;
605
1682
  shippingAddress: z.ZodOptional<z.ZodObject<{
606
1683
  firstName: z.ZodOptional<z.ZodString>;
607
1684
  lastName: z.ZodOptional<z.ZodString>;
@@ -615,8 +1692,10 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
615
1692
  country: z.ZodOptional<z.ZodString>;
616
1693
  city: z.ZodOptional<z.ZodString>;
617
1694
  province: z.ZodOptional<z.ZodString>;
1695
+ countryCode: z.ZodOptional<z.ZodString>;
618
1696
  }, "strip", z.ZodTypeAny, {
619
1697
  email?: string | undefined;
1698
+ countryCode?: string | undefined;
620
1699
  address1?: string | undefined;
621
1700
  address2?: string | undefined;
622
1701
  firstName?: string | undefined;
@@ -630,6 +1709,7 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
630
1709
  province?: string | undefined;
631
1710
  }, {
632
1711
  email?: string | undefined;
1712
+ countryCode?: string | undefined;
633
1713
  address1?: string | undefined;
634
1714
  address2?: string | undefined;
635
1715
  firstName?: string | undefined;
@@ -642,7 +1722,7 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
642
1722
  city?: string | undefined;
643
1723
  province?: string | undefined;
644
1724
  }>>;
645
- claims: z.ZodArray<z.ZodObject<{
1725
+ claims: z.ZodOptional<z.ZodArray<z.ZodObject<{
646
1726
  id: z.ZodString;
647
1727
  extClaimId: z.ZodOptional<z.ZodString>;
648
1728
  type: z.ZodString;
@@ -663,7 +1743,164 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
663
1743
  itemIds: string[];
664
1744
  createdAt: number;
665
1745
  extClaimId?: string | undefined;
666
- }>, "many">;
1746
+ }>, "many">>;
1747
+ adminUrl: z.ZodOptional<z.ZodString>;
1748
+ note: z.ZodOptional<z.ZodString>;
1749
+ displayFinancialStatus: z.ZodOptional<z.ZodString>;
1750
+ displayFulfillmentStatus: z.ZodOptional<z.ZodString>;
1751
+ test: z.ZodOptional<z.ZodBoolean>;
1752
+ firstOrder: z.ZodOptional<z.ZodBoolean>;
1753
+ closed: z.ZodOptional<z.ZodBoolean>;
1754
+ confirmed: z.ZodOptional<z.ZodBoolean>;
1755
+ taxesIncluded: z.ZodOptional<z.ZodBoolean>;
1756
+ totalWeight: z.ZodOptional<z.ZodNumber>;
1757
+ appName: z.ZodOptional<z.ZodString>;
1758
+ billingAddress: z.ZodOptional<z.ZodObject<{
1759
+ firstName: z.ZodOptional<z.ZodString>;
1760
+ lastName: z.ZodOptional<z.ZodString>;
1761
+ phoneNumber: z.ZodOptional<z.ZodString>;
1762
+ email: z.ZodOptional<z.ZodString>;
1763
+ cellPhoneNumber: z.ZodOptional<z.ZodString>;
1764
+ zipcode: z.ZodOptional<z.ZodString>;
1765
+ address1: z.ZodOptional<z.ZodString>;
1766
+ address2: z.ZodOptional<z.ZodString>;
1767
+ shippingMessage: z.ZodOptional<z.ZodString>;
1768
+ country: z.ZodOptional<z.ZodString>;
1769
+ city: z.ZodOptional<z.ZodString>;
1770
+ province: z.ZodOptional<z.ZodString>;
1771
+ countryCode: z.ZodOptional<z.ZodString>;
1772
+ }, "strip", z.ZodTypeAny, {
1773
+ email?: string | undefined;
1774
+ countryCode?: string | undefined;
1775
+ address1?: string | undefined;
1776
+ address2?: string | undefined;
1777
+ firstName?: string | undefined;
1778
+ lastName?: string | undefined;
1779
+ phoneNumber?: string | undefined;
1780
+ cellPhoneNumber?: string | undefined;
1781
+ zipcode?: string | undefined;
1782
+ shippingMessage?: string | undefined;
1783
+ country?: string | undefined;
1784
+ city?: string | undefined;
1785
+ province?: string | undefined;
1786
+ }, {
1787
+ email?: string | undefined;
1788
+ countryCode?: string | undefined;
1789
+ address1?: string | undefined;
1790
+ address2?: string | undefined;
1791
+ firstName?: string | undefined;
1792
+ lastName?: string | undefined;
1793
+ phoneNumber?: string | undefined;
1794
+ cellPhoneNumber?: string | undefined;
1795
+ zipcode?: string | undefined;
1796
+ shippingMessage?: string | undefined;
1797
+ country?: string | undefined;
1798
+ city?: string | undefined;
1799
+ province?: string | undefined;
1800
+ }>>;
1801
+ customAttributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1802
+ key: z.ZodString;
1803
+ value: z.ZodOptional<z.ZodString>;
1804
+ }, "strip", z.ZodTypeAny, {
1805
+ key: string;
1806
+ value?: string | undefined;
1807
+ }, {
1808
+ key: string;
1809
+ value?: string | undefined;
1810
+ }>, "many">>;
1811
+ shippingLines: z.ZodOptional<z.ZodArray<z.ZodObject<{
1812
+ id: z.ZodOptional<z.ZodString>;
1813
+ title: z.ZodOptional<z.ZodString>;
1814
+ code: z.ZodOptional<z.ZodString>;
1815
+ carrierIdentifier: z.ZodOptional<z.ZodString>;
1816
+ taxLines: z.ZodOptional<z.ZodArray<z.ZodObject<{
1817
+ rate: z.ZodOptional<z.ZodNumber>;
1818
+ ratePercentage: z.ZodOptional<z.ZodNumber>;
1819
+ title: z.ZodOptional<z.ZodString>;
1820
+ amount: z.ZodOptional<z.ZodNumber>;
1821
+ }, "strip", z.ZodTypeAny, {
1822
+ title?: string | undefined;
1823
+ amount?: number | undefined;
1824
+ rate?: number | undefined;
1825
+ ratePercentage?: number | undefined;
1826
+ }, {
1827
+ title?: string | undefined;
1828
+ amount?: number | undefined;
1829
+ rate?: number | undefined;
1830
+ ratePercentage?: number | undefined;
1831
+ }>, "many">>;
1832
+ }, "strip", z.ZodTypeAny, {
1833
+ code?: string | undefined;
1834
+ id?: string | undefined;
1835
+ title?: string | undefined;
1836
+ carrierIdentifier?: string | undefined;
1837
+ taxLines?: {
1838
+ title?: string | undefined;
1839
+ amount?: number | undefined;
1840
+ rate?: number | undefined;
1841
+ ratePercentage?: number | undefined;
1842
+ }[] | undefined;
1843
+ }, {
1844
+ code?: string | undefined;
1845
+ id?: string | undefined;
1846
+ title?: string | undefined;
1847
+ carrierIdentifier?: string | undefined;
1848
+ taxLines?: {
1849
+ title?: string | undefined;
1850
+ amount?: number | undefined;
1851
+ rate?: number | undefined;
1852
+ ratePercentage?: number | undefined;
1853
+ }[] | undefined;
1854
+ }>, "many">>;
1855
+ transactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1856
+ id: z.ZodOptional<z.ZodString>;
1857
+ parentId: z.ZodOptional<z.ZodString>;
1858
+ kind: z.ZodOptional<z.ZodString>;
1859
+ status: z.ZodOptional<z.ZodString>;
1860
+ gateway: z.ZodOptional<z.ZodString>;
1861
+ manualPaymentGateway: z.ZodOptional<z.ZodBoolean>;
1862
+ amount: z.ZodOptional<z.ZodNumber>;
1863
+ currency: z.ZodOptional<z.ZodString>;
1864
+ createdAt: z.ZodOptional<z.ZodNumber>;
1865
+ }, "strip", z.ZodTypeAny, {
1866
+ status?: string | undefined;
1867
+ id?: string | undefined;
1868
+ kind?: string | undefined;
1869
+ createdAt?: number | undefined;
1870
+ amount?: number | undefined;
1871
+ currency?: string | undefined;
1872
+ parentId?: string | undefined;
1873
+ gateway?: string | undefined;
1874
+ manualPaymentGateway?: boolean | undefined;
1875
+ }, {
1876
+ status?: string | undefined;
1877
+ id?: string | undefined;
1878
+ kind?: string | undefined;
1879
+ createdAt?: number | undefined;
1880
+ amount?: number | undefined;
1881
+ currency?: string | undefined;
1882
+ parentId?: string | undefined;
1883
+ gateway?: string | undefined;
1884
+ manualPaymentGateway?: boolean | undefined;
1885
+ }>, "many">>;
1886
+ metafields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1887
+ namespace: z.ZodOptional<z.ZodString>;
1888
+ key: z.ZodString;
1889
+ value: z.ZodOptional<z.ZodString>;
1890
+ type: z.ZodOptional<z.ZodString>;
1891
+ }, "strip", z.ZodTypeAny, {
1892
+ key: string;
1893
+ type?: string | undefined;
1894
+ value?: string | undefined;
1895
+ namespace?: string | undefined;
1896
+ }, {
1897
+ key: string;
1898
+ type?: string | undefined;
1899
+ value?: string | undefined;
1900
+ namespace?: string | undefined;
1901
+ }>, "many">>;
1902
+ marketId: z.ZodOptional<z.ZodString>;
1903
+ marketOrderNo: z.ZodOptional<z.ZodString>;
667
1904
  }, "strip", z.ZodTypeAny, {
668
1905
  id: string;
669
1906
  title: string;
@@ -674,10 +1911,14 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
674
1911
  amount: number;
675
1912
  quantity: number;
676
1913
  claimability: {
677
- cancelable: boolean;
678
- returnable: boolean;
679
- exchangeable: boolean;
680
- shippingAddressChangeable: boolean;
1914
+ cancelable?: boolean | undefined;
1915
+ returnable?: boolean | undefined;
1916
+ exchangeable?: boolean | undefined;
1917
+ shippingAddressChangeable?: boolean | undefined;
1918
+ nonCancelableReason?: string | undefined;
1919
+ nonReturnableReason?: string | undefined;
1920
+ nonExchangeableReason?: string | undefined;
1921
+ nonShippingAddressChangeableReason?: string | undefined;
681
1922
  };
682
1923
  imageUrl?: string | undefined;
683
1924
  option?: string | undefined;
@@ -686,6 +1927,50 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
686
1927
  shippedAt?: number | undefined;
687
1928
  deliveredAt?: number | undefined;
688
1929
  estimatedShipDate?: number | undefined;
1930
+ trackingNumber?: string | undefined;
1931
+ trackingCompany?: string | undefined;
1932
+ trackingCompanyName?: string | undefined;
1933
+ taxLines?: {
1934
+ title?: string | undefined;
1935
+ amount?: number | undefined;
1936
+ rate?: number | undefined;
1937
+ ratePercentage?: number | undefined;
1938
+ }[] | undefined;
1939
+ sku?: string | undefined;
1940
+ optionAmount?: number | undefined;
1941
+ supplierId?: string | undefined;
1942
+ productCode?: string | undefined;
1943
+ unfulfilledQuantity?: number | undefined;
1944
+ requiresShipping?: boolean | undefined;
1945
+ sellingPlanName?: string | undefined;
1946
+ sellingPlanId?: string | undefined;
1947
+ customAttributes?: {
1948
+ key: string;
1949
+ value?: string | undefined;
1950
+ }[] | undefined;
1951
+ statusCode?: string | undefined;
1952
+ statusText?: string | undefined;
1953
+ claimStatusCode?: string | undefined;
1954
+ supplierName?: string | undefined;
1955
+ bundle?: boolean | undefined;
1956
+ bundleId?: string | undefined;
1957
+ bundleName?: string | undefined;
1958
+ bundleType?: string | undefined;
1959
+ bundleItems?: {
1960
+ name?: string | undefined;
1961
+ amount?: number | undefined;
1962
+ quantity?: number | undefined;
1963
+ option?: string | undefined;
1964
+ productId?: string | undefined;
1965
+ variantId?: string | undefined;
1966
+ sku?: string | undefined;
1967
+ optionAmount?: number | undefined;
1968
+ supplierId?: string | undefined;
1969
+ productCode?: string | undefined;
1970
+ }[] | undefined;
1971
+ itemNo?: string | undefined;
1972
+ optionType?: string | undefined;
1973
+ shippingCode?: string | undefined;
689
1974
  }[];
690
1975
  payment: {
691
1976
  state: string;
@@ -694,29 +1979,33 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
694
1979
  itemsAmount: number;
695
1980
  shippingAmount: number;
696
1981
  discountAmount: number;
697
- methods: string[];
698
1982
  requireRefundBankAccount: boolean;
1983
+ methods?: string[] | undefined;
1984
+ taxAmount?: number | undefined;
1985
+ pointAmount?: number | undefined;
1986
+ creditAmount?: number | undefined;
1987
+ couponDiscountAmount?: number | undefined;
1988
+ dueAmount?: number | undefined;
699
1989
  };
700
- fulfillments: {
701
- id: string;
702
- state: string;
703
- itemIds: string[];
704
- trackingNumber?: string | undefined;
705
- trackingCompany?: string | undefined;
706
- trackingUrl?: string | undefined;
707
- estimatedDeliveryDate?: number | undefined;
708
- }[];
709
- claims: {
710
- type: string;
1990
+ orderedAt: number;
1991
+ confirmed?: boolean | undefined;
1992
+ fulfillments?: {
711
1993
  id: string;
712
1994
  state: string;
713
- itemIds: string[];
714
- createdAt: number;
715
- extClaimId?: string | undefined;
716
- }[];
717
- orderedAt: number;
1995
+ itemIds: string[];
1996
+ items?: {
1997
+ itemId: string;
1998
+ state?: string | undefined;
1999
+ }[] | undefined;
2000
+ trackingNumber?: string | undefined;
2001
+ trackingCompany?: string | undefined;
2002
+ trackingUrl?: string | undefined;
2003
+ estimatedDeliveryDate?: number | undefined;
2004
+ trackingCompanyName?: string | undefined;
2005
+ }[] | undefined;
718
2006
  shippingAddress?: {
719
2007
  email?: string | undefined;
2008
+ countryCode?: string | undefined;
720
2009
  address1?: string | undefined;
721
2010
  address2?: string | undefined;
722
2011
  firstName?: string | undefined;
@@ -729,12 +2018,80 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
729
2018
  city?: string | undefined;
730
2019
  province?: string | undefined;
731
2020
  } | undefined;
2021
+ claims?: {
2022
+ type: string;
2023
+ id: string;
2024
+ state: string;
2025
+ itemIds: string[];
2026
+ createdAt: number;
2027
+ extClaimId?: string | undefined;
2028
+ }[] | undefined;
732
2029
  buyer?: {
733
2030
  name?: string | undefined;
734
2031
  email?: string | undefined;
735
2032
  phone?: string | undefined;
736
2033
  memberId?: string | undefined;
737
2034
  } | undefined;
2035
+ customAttributes?: {
2036
+ key: string;
2037
+ value?: string | undefined;
2038
+ }[] | undefined;
2039
+ adminUrl?: string | undefined;
2040
+ note?: string | undefined;
2041
+ displayFinancialStatus?: string | undefined;
2042
+ displayFulfillmentStatus?: string | undefined;
2043
+ test?: boolean | undefined;
2044
+ firstOrder?: boolean | undefined;
2045
+ closed?: boolean | undefined;
2046
+ taxesIncluded?: boolean | undefined;
2047
+ totalWeight?: number | undefined;
2048
+ appName?: string | undefined;
2049
+ billingAddress?: {
2050
+ email?: string | undefined;
2051
+ countryCode?: string | undefined;
2052
+ address1?: string | undefined;
2053
+ address2?: string | undefined;
2054
+ firstName?: string | undefined;
2055
+ lastName?: string | undefined;
2056
+ phoneNumber?: string | undefined;
2057
+ cellPhoneNumber?: string | undefined;
2058
+ zipcode?: string | undefined;
2059
+ shippingMessage?: string | undefined;
2060
+ country?: string | undefined;
2061
+ city?: string | undefined;
2062
+ province?: string | undefined;
2063
+ } | undefined;
2064
+ shippingLines?: {
2065
+ code?: string | undefined;
2066
+ id?: string | undefined;
2067
+ title?: string | undefined;
2068
+ carrierIdentifier?: string | undefined;
2069
+ taxLines?: {
2070
+ title?: string | undefined;
2071
+ amount?: number | undefined;
2072
+ rate?: number | undefined;
2073
+ ratePercentage?: number | undefined;
2074
+ }[] | undefined;
2075
+ }[] | undefined;
2076
+ transactions?: {
2077
+ status?: string | undefined;
2078
+ id?: string | undefined;
2079
+ kind?: string | undefined;
2080
+ createdAt?: number | undefined;
2081
+ amount?: number | undefined;
2082
+ currency?: string | undefined;
2083
+ parentId?: string | undefined;
2084
+ gateway?: string | undefined;
2085
+ manualPaymentGateway?: boolean | undefined;
2086
+ }[] | undefined;
2087
+ metafields?: {
2088
+ key: string;
2089
+ type?: string | undefined;
2090
+ value?: string | undefined;
2091
+ namespace?: string | undefined;
2092
+ }[] | undefined;
2093
+ marketId?: string | undefined;
2094
+ marketOrderNo?: string | undefined;
738
2095
  }, {
739
2096
  id: string;
740
2097
  title: string;
@@ -745,10 +2102,14 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
745
2102
  amount: number;
746
2103
  quantity: number;
747
2104
  claimability: {
748
- cancelable: boolean;
749
- returnable: boolean;
750
- exchangeable: boolean;
751
- shippingAddressChangeable: boolean;
2105
+ cancelable?: boolean | undefined;
2106
+ returnable?: boolean | undefined;
2107
+ exchangeable?: boolean | undefined;
2108
+ shippingAddressChangeable?: boolean | undefined;
2109
+ nonCancelableReason?: string | undefined;
2110
+ nonReturnableReason?: string | undefined;
2111
+ nonExchangeableReason?: string | undefined;
2112
+ nonShippingAddressChangeableReason?: string | undefined;
752
2113
  };
753
2114
  imageUrl?: string | undefined;
754
2115
  option?: string | undefined;
@@ -757,6 +2118,50 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
757
2118
  shippedAt?: number | undefined;
758
2119
  deliveredAt?: number | undefined;
759
2120
  estimatedShipDate?: number | undefined;
2121
+ trackingNumber?: string | undefined;
2122
+ trackingCompany?: string | undefined;
2123
+ trackingCompanyName?: string | undefined;
2124
+ taxLines?: {
2125
+ title?: string | undefined;
2126
+ amount?: number | undefined;
2127
+ rate?: number | undefined;
2128
+ ratePercentage?: number | undefined;
2129
+ }[] | undefined;
2130
+ sku?: string | undefined;
2131
+ optionAmount?: number | undefined;
2132
+ supplierId?: string | undefined;
2133
+ productCode?: string | undefined;
2134
+ unfulfilledQuantity?: number | undefined;
2135
+ requiresShipping?: boolean | undefined;
2136
+ sellingPlanName?: string | undefined;
2137
+ sellingPlanId?: string | undefined;
2138
+ customAttributes?: {
2139
+ key: string;
2140
+ value?: string | undefined;
2141
+ }[] | undefined;
2142
+ statusCode?: string | undefined;
2143
+ statusText?: string | undefined;
2144
+ claimStatusCode?: string | undefined;
2145
+ supplierName?: string | undefined;
2146
+ bundle?: boolean | undefined;
2147
+ bundleId?: string | undefined;
2148
+ bundleName?: string | undefined;
2149
+ bundleType?: string | undefined;
2150
+ bundleItems?: {
2151
+ name?: string | undefined;
2152
+ amount?: number | undefined;
2153
+ quantity?: number | undefined;
2154
+ option?: string | undefined;
2155
+ productId?: string | undefined;
2156
+ variantId?: string | undefined;
2157
+ sku?: string | undefined;
2158
+ optionAmount?: number | undefined;
2159
+ supplierId?: string | undefined;
2160
+ productCode?: string | undefined;
2161
+ }[] | undefined;
2162
+ itemNo?: string | undefined;
2163
+ optionType?: string | undefined;
2164
+ shippingCode?: string | undefined;
760
2165
  }[];
761
2166
  payment: {
762
2167
  state: string;
@@ -765,29 +2170,33 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
765
2170
  itemsAmount: number;
766
2171
  shippingAmount: number;
767
2172
  discountAmount: number;
768
- methods: string[];
769
2173
  requireRefundBankAccount: boolean;
2174
+ methods?: string[] | undefined;
2175
+ taxAmount?: number | undefined;
2176
+ pointAmount?: number | undefined;
2177
+ creditAmount?: number | undefined;
2178
+ couponDiscountAmount?: number | undefined;
2179
+ dueAmount?: number | undefined;
770
2180
  };
771
- fulfillments: {
2181
+ orderedAt: number;
2182
+ confirmed?: boolean | undefined;
2183
+ fulfillments?: {
772
2184
  id: string;
773
2185
  state: string;
774
2186
  itemIds: string[];
2187
+ items?: {
2188
+ itemId: string;
2189
+ state?: string | undefined;
2190
+ }[] | undefined;
775
2191
  trackingNumber?: string | undefined;
776
2192
  trackingCompany?: string | undefined;
777
2193
  trackingUrl?: string | undefined;
778
2194
  estimatedDeliveryDate?: number | undefined;
779
- }[];
780
- claims: {
781
- type: string;
782
- id: string;
783
- state: string;
784
- itemIds: string[];
785
- createdAt: number;
786
- extClaimId?: string | undefined;
787
- }[];
788
- orderedAt: number;
2195
+ trackingCompanyName?: string | undefined;
2196
+ }[] | undefined;
789
2197
  shippingAddress?: {
790
2198
  email?: string | undefined;
2199
+ countryCode?: string | undefined;
791
2200
  address1?: string | undefined;
792
2201
  address2?: string | undefined;
793
2202
  firstName?: string | undefined;
@@ -800,12 +2209,80 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
800
2209
  city?: string | undefined;
801
2210
  province?: string | undefined;
802
2211
  } | undefined;
2212
+ claims?: {
2213
+ type: string;
2214
+ id: string;
2215
+ state: string;
2216
+ itemIds: string[];
2217
+ createdAt: number;
2218
+ extClaimId?: string | undefined;
2219
+ }[] | undefined;
803
2220
  buyer?: {
804
2221
  name?: string | undefined;
805
2222
  email?: string | undefined;
806
2223
  phone?: string | undefined;
807
2224
  memberId?: string | undefined;
808
2225
  } | undefined;
2226
+ customAttributes?: {
2227
+ key: string;
2228
+ value?: string | undefined;
2229
+ }[] | undefined;
2230
+ adminUrl?: string | undefined;
2231
+ note?: string | undefined;
2232
+ displayFinancialStatus?: string | undefined;
2233
+ displayFulfillmentStatus?: string | undefined;
2234
+ test?: boolean | undefined;
2235
+ firstOrder?: boolean | undefined;
2236
+ closed?: boolean | undefined;
2237
+ taxesIncluded?: boolean | undefined;
2238
+ totalWeight?: number | undefined;
2239
+ appName?: string | undefined;
2240
+ billingAddress?: {
2241
+ email?: string | undefined;
2242
+ countryCode?: string | undefined;
2243
+ address1?: string | undefined;
2244
+ address2?: string | undefined;
2245
+ firstName?: string | undefined;
2246
+ lastName?: string | undefined;
2247
+ phoneNumber?: string | undefined;
2248
+ cellPhoneNumber?: string | undefined;
2249
+ zipcode?: string | undefined;
2250
+ shippingMessage?: string | undefined;
2251
+ country?: string | undefined;
2252
+ city?: string | undefined;
2253
+ province?: string | undefined;
2254
+ } | undefined;
2255
+ shippingLines?: {
2256
+ code?: string | undefined;
2257
+ id?: string | undefined;
2258
+ title?: string | undefined;
2259
+ carrierIdentifier?: string | undefined;
2260
+ taxLines?: {
2261
+ title?: string | undefined;
2262
+ amount?: number | undefined;
2263
+ rate?: number | undefined;
2264
+ ratePercentage?: number | undefined;
2265
+ }[] | undefined;
2266
+ }[] | undefined;
2267
+ transactions?: {
2268
+ status?: string | undefined;
2269
+ id?: string | undefined;
2270
+ kind?: string | undefined;
2271
+ createdAt?: number | undefined;
2272
+ amount?: number | undefined;
2273
+ currency?: string | undefined;
2274
+ parentId?: string | undefined;
2275
+ gateway?: string | undefined;
2276
+ manualPaymentGateway?: boolean | undefined;
2277
+ }[] | undefined;
2278
+ metafields?: {
2279
+ key: string;
2280
+ type?: string | undefined;
2281
+ value?: string | undefined;
2282
+ namespace?: string | undefined;
2283
+ }[] | undefined;
2284
+ marketId?: string | undefined;
2285
+ marketOrderNo?: string | undefined;
809
2286
  }>, "many">>;
810
2287
  next: z.ZodOptional<z.ZodString>;
811
2288
  }, "strip", z.ZodTypeAny, {
@@ -820,10 +2297,14 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
820
2297
  amount: number;
821
2298
  quantity: number;
822
2299
  claimability: {
823
- cancelable: boolean;
824
- returnable: boolean;
825
- exchangeable: boolean;
826
- shippingAddressChangeable: boolean;
2300
+ cancelable?: boolean | undefined;
2301
+ returnable?: boolean | undefined;
2302
+ exchangeable?: boolean | undefined;
2303
+ shippingAddressChangeable?: boolean | undefined;
2304
+ nonCancelableReason?: string | undefined;
2305
+ nonReturnableReason?: string | undefined;
2306
+ nonExchangeableReason?: string | undefined;
2307
+ nonShippingAddressChangeableReason?: string | undefined;
827
2308
  };
828
2309
  imageUrl?: string | undefined;
829
2310
  option?: string | undefined;
@@ -832,6 +2313,50 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
832
2313
  shippedAt?: number | undefined;
833
2314
  deliveredAt?: number | undefined;
834
2315
  estimatedShipDate?: number | undefined;
2316
+ trackingNumber?: string | undefined;
2317
+ trackingCompany?: string | undefined;
2318
+ trackingCompanyName?: string | undefined;
2319
+ taxLines?: {
2320
+ title?: string | undefined;
2321
+ amount?: number | undefined;
2322
+ rate?: number | undefined;
2323
+ ratePercentage?: number | undefined;
2324
+ }[] | undefined;
2325
+ sku?: string | undefined;
2326
+ optionAmount?: number | undefined;
2327
+ supplierId?: string | undefined;
2328
+ productCode?: string | undefined;
2329
+ unfulfilledQuantity?: number | undefined;
2330
+ requiresShipping?: boolean | undefined;
2331
+ sellingPlanName?: string | undefined;
2332
+ sellingPlanId?: string | undefined;
2333
+ customAttributes?: {
2334
+ key: string;
2335
+ value?: string | undefined;
2336
+ }[] | undefined;
2337
+ statusCode?: string | undefined;
2338
+ statusText?: string | undefined;
2339
+ claimStatusCode?: string | undefined;
2340
+ supplierName?: string | undefined;
2341
+ bundle?: boolean | undefined;
2342
+ bundleId?: string | undefined;
2343
+ bundleName?: string | undefined;
2344
+ bundleType?: string | undefined;
2345
+ bundleItems?: {
2346
+ name?: string | undefined;
2347
+ amount?: number | undefined;
2348
+ quantity?: number | undefined;
2349
+ option?: string | undefined;
2350
+ productId?: string | undefined;
2351
+ variantId?: string | undefined;
2352
+ sku?: string | undefined;
2353
+ optionAmount?: number | undefined;
2354
+ supplierId?: string | undefined;
2355
+ productCode?: string | undefined;
2356
+ }[] | undefined;
2357
+ itemNo?: string | undefined;
2358
+ optionType?: string | undefined;
2359
+ shippingCode?: string | undefined;
835
2360
  }[];
836
2361
  payment: {
837
2362
  state: string;
@@ -840,29 +2365,33 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
840
2365
  itemsAmount: number;
841
2366
  shippingAmount: number;
842
2367
  discountAmount: number;
843
- methods: string[];
844
2368
  requireRefundBankAccount: boolean;
2369
+ methods?: string[] | undefined;
2370
+ taxAmount?: number | undefined;
2371
+ pointAmount?: number | undefined;
2372
+ creditAmount?: number | undefined;
2373
+ couponDiscountAmount?: number | undefined;
2374
+ dueAmount?: number | undefined;
845
2375
  };
846
- fulfillments: {
2376
+ orderedAt: number;
2377
+ confirmed?: boolean | undefined;
2378
+ fulfillments?: {
847
2379
  id: string;
848
2380
  state: string;
849
2381
  itemIds: string[];
2382
+ items?: {
2383
+ itemId: string;
2384
+ state?: string | undefined;
2385
+ }[] | undefined;
850
2386
  trackingNumber?: string | undefined;
851
2387
  trackingCompany?: string | undefined;
852
2388
  trackingUrl?: string | undefined;
853
2389
  estimatedDeliveryDate?: number | undefined;
854
- }[];
855
- claims: {
856
- type: string;
857
- id: string;
858
- state: string;
859
- itemIds: string[];
860
- createdAt: number;
861
- extClaimId?: string | undefined;
862
- }[];
863
- orderedAt: number;
2390
+ trackingCompanyName?: string | undefined;
2391
+ }[] | undefined;
864
2392
  shippingAddress?: {
865
2393
  email?: string | undefined;
2394
+ countryCode?: string | undefined;
866
2395
  address1?: string | undefined;
867
2396
  address2?: string | undefined;
868
2397
  firstName?: string | undefined;
@@ -875,12 +2404,80 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
875
2404
  city?: string | undefined;
876
2405
  province?: string | undefined;
877
2406
  } | undefined;
2407
+ claims?: {
2408
+ type: string;
2409
+ id: string;
2410
+ state: string;
2411
+ itemIds: string[];
2412
+ createdAt: number;
2413
+ extClaimId?: string | undefined;
2414
+ }[] | undefined;
878
2415
  buyer?: {
879
2416
  name?: string | undefined;
880
2417
  email?: string | undefined;
881
2418
  phone?: string | undefined;
882
2419
  memberId?: string | undefined;
883
2420
  } | undefined;
2421
+ customAttributes?: {
2422
+ key: string;
2423
+ value?: string | undefined;
2424
+ }[] | undefined;
2425
+ adminUrl?: string | undefined;
2426
+ note?: string | undefined;
2427
+ displayFinancialStatus?: string | undefined;
2428
+ displayFulfillmentStatus?: string | undefined;
2429
+ test?: boolean | undefined;
2430
+ firstOrder?: boolean | undefined;
2431
+ closed?: boolean | undefined;
2432
+ taxesIncluded?: boolean | undefined;
2433
+ totalWeight?: number | undefined;
2434
+ appName?: string | undefined;
2435
+ billingAddress?: {
2436
+ email?: string | undefined;
2437
+ countryCode?: string | undefined;
2438
+ address1?: string | undefined;
2439
+ address2?: string | undefined;
2440
+ firstName?: string | undefined;
2441
+ lastName?: string | undefined;
2442
+ phoneNumber?: string | undefined;
2443
+ cellPhoneNumber?: string | undefined;
2444
+ zipcode?: string | undefined;
2445
+ shippingMessage?: string | undefined;
2446
+ country?: string | undefined;
2447
+ city?: string | undefined;
2448
+ province?: string | undefined;
2449
+ } | undefined;
2450
+ shippingLines?: {
2451
+ code?: string | undefined;
2452
+ id?: string | undefined;
2453
+ title?: string | undefined;
2454
+ carrierIdentifier?: string | undefined;
2455
+ taxLines?: {
2456
+ title?: string | undefined;
2457
+ amount?: number | undefined;
2458
+ rate?: number | undefined;
2459
+ ratePercentage?: number | undefined;
2460
+ }[] | undefined;
2461
+ }[] | undefined;
2462
+ transactions?: {
2463
+ status?: string | undefined;
2464
+ id?: string | undefined;
2465
+ kind?: string | undefined;
2466
+ createdAt?: number | undefined;
2467
+ amount?: number | undefined;
2468
+ currency?: string | undefined;
2469
+ parentId?: string | undefined;
2470
+ gateway?: string | undefined;
2471
+ manualPaymentGateway?: boolean | undefined;
2472
+ }[] | undefined;
2473
+ metafields?: {
2474
+ key: string;
2475
+ type?: string | undefined;
2476
+ value?: string | undefined;
2477
+ namespace?: string | undefined;
2478
+ }[] | undefined;
2479
+ marketId?: string | undefined;
2480
+ marketOrderNo?: string | undefined;
884
2481
  }[] | undefined;
885
2482
  }, {
886
2483
  next?: string | undefined;
@@ -894,10 +2491,14 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
894
2491
  amount: number;
895
2492
  quantity: number;
896
2493
  claimability: {
897
- cancelable: boolean;
898
- returnable: boolean;
899
- exchangeable: boolean;
900
- shippingAddressChangeable: boolean;
2494
+ cancelable?: boolean | undefined;
2495
+ returnable?: boolean | undefined;
2496
+ exchangeable?: boolean | undefined;
2497
+ shippingAddressChangeable?: boolean | undefined;
2498
+ nonCancelableReason?: string | undefined;
2499
+ nonReturnableReason?: string | undefined;
2500
+ nonExchangeableReason?: string | undefined;
2501
+ nonShippingAddressChangeableReason?: string | undefined;
901
2502
  };
902
2503
  imageUrl?: string | undefined;
903
2504
  option?: string | undefined;
@@ -906,6 +2507,50 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
906
2507
  shippedAt?: number | undefined;
907
2508
  deliveredAt?: number | undefined;
908
2509
  estimatedShipDate?: number | undefined;
2510
+ trackingNumber?: string | undefined;
2511
+ trackingCompany?: string | undefined;
2512
+ trackingCompanyName?: string | undefined;
2513
+ taxLines?: {
2514
+ title?: string | undefined;
2515
+ amount?: number | undefined;
2516
+ rate?: number | undefined;
2517
+ ratePercentage?: number | undefined;
2518
+ }[] | undefined;
2519
+ sku?: string | undefined;
2520
+ optionAmount?: number | undefined;
2521
+ supplierId?: string | undefined;
2522
+ productCode?: string | undefined;
2523
+ unfulfilledQuantity?: number | undefined;
2524
+ requiresShipping?: boolean | undefined;
2525
+ sellingPlanName?: string | undefined;
2526
+ sellingPlanId?: string | undefined;
2527
+ customAttributes?: {
2528
+ key: string;
2529
+ value?: string | undefined;
2530
+ }[] | undefined;
2531
+ statusCode?: string | undefined;
2532
+ statusText?: string | undefined;
2533
+ claimStatusCode?: string | undefined;
2534
+ supplierName?: string | undefined;
2535
+ bundle?: boolean | undefined;
2536
+ bundleId?: string | undefined;
2537
+ bundleName?: string | undefined;
2538
+ bundleType?: string | undefined;
2539
+ bundleItems?: {
2540
+ name?: string | undefined;
2541
+ amount?: number | undefined;
2542
+ quantity?: number | undefined;
2543
+ option?: string | undefined;
2544
+ productId?: string | undefined;
2545
+ variantId?: string | undefined;
2546
+ sku?: string | undefined;
2547
+ optionAmount?: number | undefined;
2548
+ supplierId?: string | undefined;
2549
+ productCode?: string | undefined;
2550
+ }[] | undefined;
2551
+ itemNo?: string | undefined;
2552
+ optionType?: string | undefined;
2553
+ shippingCode?: string | undefined;
909
2554
  }[];
910
2555
  payment: {
911
2556
  state: string;
@@ -914,29 +2559,33 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
914
2559
  itemsAmount: number;
915
2560
  shippingAmount: number;
916
2561
  discountAmount: number;
917
- methods: string[];
918
2562
  requireRefundBankAccount: boolean;
2563
+ methods?: string[] | undefined;
2564
+ taxAmount?: number | undefined;
2565
+ pointAmount?: number | undefined;
2566
+ creditAmount?: number | undefined;
2567
+ couponDiscountAmount?: number | undefined;
2568
+ dueAmount?: number | undefined;
919
2569
  };
920
- fulfillments: {
2570
+ orderedAt: number;
2571
+ confirmed?: boolean | undefined;
2572
+ fulfillments?: {
921
2573
  id: string;
922
2574
  state: string;
923
2575
  itemIds: string[];
2576
+ items?: {
2577
+ itemId: string;
2578
+ state?: string | undefined;
2579
+ }[] | undefined;
924
2580
  trackingNumber?: string | undefined;
925
2581
  trackingCompany?: string | undefined;
926
2582
  trackingUrl?: string | undefined;
927
2583
  estimatedDeliveryDate?: number | undefined;
928
- }[];
929
- claims: {
930
- type: string;
931
- id: string;
932
- state: string;
933
- itemIds: string[];
934
- createdAt: number;
935
- extClaimId?: string | undefined;
936
- }[];
937
- orderedAt: number;
2584
+ trackingCompanyName?: string | undefined;
2585
+ }[] | undefined;
938
2586
  shippingAddress?: {
939
2587
  email?: string | undefined;
2588
+ countryCode?: string | undefined;
940
2589
  address1?: string | undefined;
941
2590
  address2?: string | undefined;
942
2591
  firstName?: string | undefined;
@@ -949,19 +2598,87 @@ export declare const CommerceGetOrdersOutputSchema: z.ZodObject<{
949
2598
  city?: string | undefined;
950
2599
  province?: string | undefined;
951
2600
  } | undefined;
2601
+ claims?: {
2602
+ type: string;
2603
+ id: string;
2604
+ state: string;
2605
+ itemIds: string[];
2606
+ createdAt: number;
2607
+ extClaimId?: string | undefined;
2608
+ }[] | undefined;
952
2609
  buyer?: {
953
2610
  name?: string | undefined;
954
2611
  email?: string | undefined;
955
2612
  phone?: string | undefined;
956
2613
  memberId?: string | undefined;
957
2614
  } | undefined;
2615
+ customAttributes?: {
2616
+ key: string;
2617
+ value?: string | undefined;
2618
+ }[] | undefined;
2619
+ adminUrl?: string | undefined;
2620
+ note?: string | undefined;
2621
+ displayFinancialStatus?: string | undefined;
2622
+ displayFulfillmentStatus?: string | undefined;
2623
+ test?: boolean | undefined;
2624
+ firstOrder?: boolean | undefined;
2625
+ closed?: boolean | undefined;
2626
+ taxesIncluded?: boolean | undefined;
2627
+ totalWeight?: number | undefined;
2628
+ appName?: string | undefined;
2629
+ billingAddress?: {
2630
+ email?: string | undefined;
2631
+ countryCode?: string | undefined;
2632
+ address1?: string | undefined;
2633
+ address2?: string | undefined;
2634
+ firstName?: string | undefined;
2635
+ lastName?: string | undefined;
2636
+ phoneNumber?: string | undefined;
2637
+ cellPhoneNumber?: string | undefined;
2638
+ zipcode?: string | undefined;
2639
+ shippingMessage?: string | undefined;
2640
+ country?: string | undefined;
2641
+ city?: string | undefined;
2642
+ province?: string | undefined;
2643
+ } | undefined;
2644
+ shippingLines?: {
2645
+ code?: string | undefined;
2646
+ id?: string | undefined;
2647
+ title?: string | undefined;
2648
+ carrierIdentifier?: string | undefined;
2649
+ taxLines?: {
2650
+ title?: string | undefined;
2651
+ amount?: number | undefined;
2652
+ rate?: number | undefined;
2653
+ ratePercentage?: number | undefined;
2654
+ }[] | undefined;
2655
+ }[] | undefined;
2656
+ transactions?: {
2657
+ status?: string | undefined;
2658
+ id?: string | undefined;
2659
+ kind?: string | undefined;
2660
+ createdAt?: number | undefined;
2661
+ amount?: number | undefined;
2662
+ currency?: string | undefined;
2663
+ parentId?: string | undefined;
2664
+ gateway?: string | undefined;
2665
+ manualPaymentGateway?: boolean | undefined;
2666
+ }[] | undefined;
2667
+ metafields?: {
2668
+ key: string;
2669
+ type?: string | undefined;
2670
+ value?: string | undefined;
2671
+ namespace?: string | undefined;
2672
+ }[] | undefined;
2673
+ marketId?: string | undefined;
2674
+ marketOrderNo?: string | undefined;
958
2675
  }[] | undefined;
959
2676
  }>;
960
2677
  export type CommerceGetOrdersOutput = ProtoBacked<z.infer<typeof CommerceGetOrdersOutputSchema>, ProtoCommerceGetOrdersOutput>;
961
2678
  export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
962
2679
  getOrdersOptions: z.ZodOptional<z.ZodObject<{
963
- required: z.ZodArray<z.ZodString, "many">;
964
- optional: z.ZodArray<z.ZodString, "many">;
2680
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2681
+ optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
965
2682
  fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
966
2683
  type: z.ZodLiteral<"enum">;
967
2684
  allowedValues: z.ZodArray<z.ZodObject<{
@@ -997,8 +2714,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
997
2714
  description?: string | undefined;
998
2715
  }>]>>>;
999
2716
  }, "strip", z.ZodTypeAny, {
1000
- required: string[];
1001
- optional: string[];
2717
+ required?: string[] | undefined;
2718
+ optional?: string[] | undefined;
1002
2719
  fieldConfigs?: Record<string, {
1003
2720
  type: "enum";
1004
2721
  allowedValues: {
@@ -1010,8 +2727,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1010
2727
  description?: string | undefined;
1011
2728
  }> | undefined;
1012
2729
  }, {
1013
- required: string[];
1014
- optional: string[];
2730
+ required?: string[] | undefined;
2731
+ optional?: string[] | undefined;
1015
2732
  fieldConfigs?: Record<string, {
1016
2733
  type: "enum";
1017
2734
  allowedValues: {
@@ -1024,8 +2741,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1024
2741
  }> | undefined;
1025
2742
  }>>;
1026
2743
  requestCancelOrderOptions: z.ZodOptional<z.ZodObject<{
1027
- required: z.ZodArray<z.ZodString, "many">;
1028
- optional: z.ZodArray<z.ZodString, "many">;
2744
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2745
+ optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1029
2746
  fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1030
2747
  type: z.ZodLiteral<"enum">;
1031
2748
  allowedValues: z.ZodArray<z.ZodObject<{
@@ -1061,8 +2778,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1061
2778
  description?: string | undefined;
1062
2779
  }>]>>>;
1063
2780
  }, "strip", z.ZodTypeAny, {
1064
- required: string[];
1065
- optional: string[];
2781
+ required?: string[] | undefined;
2782
+ optional?: string[] | undefined;
1066
2783
  fieldConfigs?: Record<string, {
1067
2784
  type: "enum";
1068
2785
  allowedValues: {
@@ -1074,8 +2791,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1074
2791
  description?: string | undefined;
1075
2792
  }> | undefined;
1076
2793
  }, {
1077
- required: string[];
1078
- optional: string[];
2794
+ required?: string[] | undefined;
2795
+ optional?: string[] | undefined;
1079
2796
  fieldConfigs?: Record<string, {
1080
2797
  type: "enum";
1081
2798
  allowedValues: {
@@ -1088,8 +2805,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1088
2805
  }> | undefined;
1089
2806
  }>>;
1090
2807
  requestReturnOrderOptions: z.ZodOptional<z.ZodObject<{
1091
- required: z.ZodArray<z.ZodString, "many">;
1092
- optional: z.ZodArray<z.ZodString, "many">;
2808
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2809
+ optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1093
2810
  fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1094
2811
  type: z.ZodLiteral<"enum">;
1095
2812
  allowedValues: z.ZodArray<z.ZodObject<{
@@ -1125,8 +2842,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1125
2842
  description?: string | undefined;
1126
2843
  }>]>>>;
1127
2844
  }, "strip", z.ZodTypeAny, {
1128
- required: string[];
1129
- optional: string[];
2845
+ required?: string[] | undefined;
2846
+ optional?: string[] | undefined;
1130
2847
  fieldConfigs?: Record<string, {
1131
2848
  type: "enum";
1132
2849
  allowedValues: {
@@ -1138,8 +2855,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1138
2855
  description?: string | undefined;
1139
2856
  }> | undefined;
1140
2857
  }, {
1141
- required: string[];
1142
- optional: string[];
2858
+ required?: string[] | undefined;
2859
+ optional?: string[] | undefined;
1143
2860
  fieldConfigs?: Record<string, {
1144
2861
  type: "enum";
1145
2862
  allowedValues: {
@@ -1152,8 +2869,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1152
2869
  }> | undefined;
1153
2870
  }>>;
1154
2871
  acceptReturnOrderOptions: z.ZodOptional<z.ZodObject<{
1155
- required: z.ZodArray<z.ZodString, "many">;
1156
- optional: z.ZodArray<z.ZodString, "many">;
2872
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2873
+ optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1157
2874
  fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1158
2875
  type: z.ZodLiteral<"enum">;
1159
2876
  allowedValues: z.ZodArray<z.ZodObject<{
@@ -1189,8 +2906,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1189
2906
  description?: string | undefined;
1190
2907
  }>]>>>;
1191
2908
  }, "strip", z.ZodTypeAny, {
1192
- required: string[];
1193
- optional: string[];
2909
+ required?: string[] | undefined;
2910
+ optional?: string[] | undefined;
1194
2911
  fieldConfigs?: Record<string, {
1195
2912
  type: "enum";
1196
2913
  allowedValues: {
@@ -1202,8 +2919,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1202
2919
  description?: string | undefined;
1203
2920
  }> | undefined;
1204
2921
  }, {
1205
- required: string[];
1206
- optional: string[];
2922
+ required?: string[] | undefined;
2923
+ optional?: string[] | undefined;
1207
2924
  fieldConfigs?: Record<string, {
1208
2925
  type: "enum";
1209
2926
  allowedValues: {
@@ -1216,8 +2933,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1216
2933
  }> | undefined;
1217
2934
  }>>;
1218
2935
  requestExchangeOrderOptions: z.ZodOptional<z.ZodObject<{
1219
- required: z.ZodArray<z.ZodString, "many">;
1220
- optional: z.ZodArray<z.ZodString, "many">;
2936
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2937
+ optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1221
2938
  fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1222
2939
  type: z.ZodLiteral<"enum">;
1223
2940
  allowedValues: z.ZodArray<z.ZodObject<{
@@ -1253,8 +2970,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1253
2970
  description?: string | undefined;
1254
2971
  }>]>>>;
1255
2972
  }, "strip", z.ZodTypeAny, {
1256
- required: string[];
1257
- optional: string[];
2973
+ required?: string[] | undefined;
2974
+ optional?: string[] | undefined;
1258
2975
  fieldConfigs?: Record<string, {
1259
2976
  type: "enum";
1260
2977
  allowedValues: {
@@ -1266,8 +2983,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1266
2983
  description?: string | undefined;
1267
2984
  }> | undefined;
1268
2985
  }, {
1269
- required: string[];
1270
- optional: string[];
2986
+ required?: string[] | undefined;
2987
+ optional?: string[] | undefined;
1271
2988
  fieldConfigs?: Record<string, {
1272
2989
  type: "enum";
1273
2990
  allowedValues: {
@@ -1280,8 +2997,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1280
2997
  }> | undefined;
1281
2998
  }>>;
1282
2999
  changeShippingAddressOptions: z.ZodOptional<z.ZodObject<{
1283
- required: z.ZodArray<z.ZodString, "many">;
1284
- optional: z.ZodArray<z.ZodString, "many">;
3000
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3001
+ optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1285
3002
  fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1286
3003
  type: z.ZodLiteral<"enum">;
1287
3004
  allowedValues: z.ZodArray<z.ZodObject<{
@@ -1317,8 +3034,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1317
3034
  description?: string | undefined;
1318
3035
  }>]>>>;
1319
3036
  }, "strip", z.ZodTypeAny, {
1320
- required: string[];
1321
- optional: string[];
3037
+ required?: string[] | undefined;
3038
+ optional?: string[] | undefined;
1322
3039
  fieldConfigs?: Record<string, {
1323
3040
  type: "enum";
1324
3041
  allowedValues: {
@@ -1330,8 +3047,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1330
3047
  description?: string | undefined;
1331
3048
  }> | undefined;
1332
3049
  }, {
1333
- required: string[];
1334
- optional: string[];
3050
+ required?: string[] | undefined;
3051
+ optional?: string[] | undefined;
1335
3052
  fieldConfigs?: Record<string, {
1336
3053
  type: "enum";
1337
3054
  allowedValues: {
@@ -1345,8 +3062,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1345
3062
  }>>;
1346
3063
  }, "strip", z.ZodTypeAny, {
1347
3064
  getOrdersOptions?: {
1348
- required: string[];
1349
- optional: string[];
3065
+ required?: string[] | undefined;
3066
+ optional?: string[] | undefined;
1350
3067
  fieldConfigs?: Record<string, {
1351
3068
  type: "enum";
1352
3069
  allowedValues: {
@@ -1359,8 +3076,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1359
3076
  }> | undefined;
1360
3077
  } | undefined;
1361
3078
  requestCancelOrderOptions?: {
1362
- required: string[];
1363
- optional: string[];
3079
+ required?: string[] | undefined;
3080
+ optional?: string[] | undefined;
1364
3081
  fieldConfigs?: Record<string, {
1365
3082
  type: "enum";
1366
3083
  allowedValues: {
@@ -1373,8 +3090,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1373
3090
  }> | undefined;
1374
3091
  } | undefined;
1375
3092
  requestReturnOrderOptions?: {
1376
- required: string[];
1377
- optional: string[];
3093
+ required?: string[] | undefined;
3094
+ optional?: string[] | undefined;
1378
3095
  fieldConfigs?: Record<string, {
1379
3096
  type: "enum";
1380
3097
  allowedValues: {
@@ -1387,8 +3104,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1387
3104
  }> | undefined;
1388
3105
  } | undefined;
1389
3106
  requestExchangeOrderOptions?: {
1390
- required: string[];
1391
- optional: string[];
3107
+ required?: string[] | undefined;
3108
+ optional?: string[] | undefined;
1392
3109
  fieldConfigs?: Record<string, {
1393
3110
  type: "enum";
1394
3111
  allowedValues: {
@@ -1401,8 +3118,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1401
3118
  }> | undefined;
1402
3119
  } | undefined;
1403
3120
  changeShippingAddressOptions?: {
1404
- required: string[];
1405
- optional: string[];
3121
+ required?: string[] | undefined;
3122
+ optional?: string[] | undefined;
1406
3123
  fieldConfigs?: Record<string, {
1407
3124
  type: "enum";
1408
3125
  allowedValues: {
@@ -1415,8 +3132,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1415
3132
  }> | undefined;
1416
3133
  } | undefined;
1417
3134
  acceptReturnOrderOptions?: {
1418
- required: string[];
1419
- optional: string[];
3135
+ required?: string[] | undefined;
3136
+ optional?: string[] | undefined;
1420
3137
  fieldConfigs?: Record<string, {
1421
3138
  type: "enum";
1422
3139
  allowedValues: {
@@ -1430,8 +3147,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1430
3147
  } | undefined;
1431
3148
  }, {
1432
3149
  getOrdersOptions?: {
1433
- required: string[];
1434
- optional: string[];
3150
+ required?: string[] | undefined;
3151
+ optional?: string[] | undefined;
1435
3152
  fieldConfigs?: Record<string, {
1436
3153
  type: "enum";
1437
3154
  allowedValues: {
@@ -1444,8 +3161,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1444
3161
  }> | undefined;
1445
3162
  } | undefined;
1446
3163
  requestCancelOrderOptions?: {
1447
- required: string[];
1448
- optional: string[];
3164
+ required?: string[] | undefined;
3165
+ optional?: string[] | undefined;
1449
3166
  fieldConfigs?: Record<string, {
1450
3167
  type: "enum";
1451
3168
  allowedValues: {
@@ -1458,8 +3175,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1458
3175
  }> | undefined;
1459
3176
  } | undefined;
1460
3177
  requestReturnOrderOptions?: {
1461
- required: string[];
1462
- optional: string[];
3178
+ required?: string[] | undefined;
3179
+ optional?: string[] | undefined;
1463
3180
  fieldConfigs?: Record<string, {
1464
3181
  type: "enum";
1465
3182
  allowedValues: {
@@ -1472,8 +3189,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1472
3189
  }> | undefined;
1473
3190
  } | undefined;
1474
3191
  requestExchangeOrderOptions?: {
1475
- required: string[];
1476
- optional: string[];
3192
+ required?: string[] | undefined;
3193
+ optional?: string[] | undefined;
1477
3194
  fieldConfigs?: Record<string, {
1478
3195
  type: "enum";
1479
3196
  allowedValues: {
@@ -1486,8 +3203,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1486
3203
  }> | undefined;
1487
3204
  } | undefined;
1488
3205
  changeShippingAddressOptions?: {
1489
- required: string[];
1490
- optional: string[];
3206
+ required?: string[] | undefined;
3207
+ optional?: string[] | undefined;
1491
3208
  fieldConfigs?: Record<string, {
1492
3209
  type: "enum";
1493
3210
  allowedValues: {
@@ -1500,8 +3217,8 @@ export declare const CommerceAppCapabilitiesSchema: z.ZodObject<{
1500
3217
  }> | undefined;
1501
3218
  } | undefined;
1502
3219
  acceptReturnOrderOptions?: {
1503
- required: string[];
1504
- optional: string[];
3220
+ required?: string[] | undefined;
3221
+ optional?: string[] | undefined;
1505
3222
  fieldConfigs?: Record<string, {
1506
3223
  type: "enum";
1507
3224
  allowedValues: {
@@ -1518,8 +3235,8 @@ export type CommerceAppCapabilities = ProtoBacked<z.infer<typeof CommerceAppCapa
1518
3235
  export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1519
3236
  appCapabilities: z.ZodOptional<z.ZodObject<{
1520
3237
  getOrdersOptions: z.ZodOptional<z.ZodObject<{
1521
- required: z.ZodArray<z.ZodString, "many">;
1522
- optional: z.ZodArray<z.ZodString, "many">;
3238
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3239
+ optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1523
3240
  fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1524
3241
  type: z.ZodLiteral<"enum">;
1525
3242
  allowedValues: z.ZodArray<z.ZodObject<{
@@ -1555,8 +3272,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1555
3272
  description?: string | undefined;
1556
3273
  }>]>>>;
1557
3274
  }, "strip", z.ZodTypeAny, {
1558
- required: string[];
1559
- optional: string[];
3275
+ required?: string[] | undefined;
3276
+ optional?: string[] | undefined;
1560
3277
  fieldConfigs?: Record<string, {
1561
3278
  type: "enum";
1562
3279
  allowedValues: {
@@ -1568,8 +3285,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1568
3285
  description?: string | undefined;
1569
3286
  }> | undefined;
1570
3287
  }, {
1571
- required: string[];
1572
- optional: string[];
3288
+ required?: string[] | undefined;
3289
+ optional?: string[] | undefined;
1573
3290
  fieldConfigs?: Record<string, {
1574
3291
  type: "enum";
1575
3292
  allowedValues: {
@@ -1582,8 +3299,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1582
3299
  }> | undefined;
1583
3300
  }>>;
1584
3301
  requestCancelOrderOptions: z.ZodOptional<z.ZodObject<{
1585
- required: z.ZodArray<z.ZodString, "many">;
1586
- optional: z.ZodArray<z.ZodString, "many">;
3302
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3303
+ optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1587
3304
  fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1588
3305
  type: z.ZodLiteral<"enum">;
1589
3306
  allowedValues: z.ZodArray<z.ZodObject<{
@@ -1619,8 +3336,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1619
3336
  description?: string | undefined;
1620
3337
  }>]>>>;
1621
3338
  }, "strip", z.ZodTypeAny, {
1622
- required: string[];
1623
- optional: string[];
3339
+ required?: string[] | undefined;
3340
+ optional?: string[] | undefined;
1624
3341
  fieldConfigs?: Record<string, {
1625
3342
  type: "enum";
1626
3343
  allowedValues: {
@@ -1632,8 +3349,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1632
3349
  description?: string | undefined;
1633
3350
  }> | undefined;
1634
3351
  }, {
1635
- required: string[];
1636
- optional: string[];
3352
+ required?: string[] | undefined;
3353
+ optional?: string[] | undefined;
1637
3354
  fieldConfigs?: Record<string, {
1638
3355
  type: "enum";
1639
3356
  allowedValues: {
@@ -1646,8 +3363,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1646
3363
  }> | undefined;
1647
3364
  }>>;
1648
3365
  requestReturnOrderOptions: z.ZodOptional<z.ZodObject<{
1649
- required: z.ZodArray<z.ZodString, "many">;
1650
- optional: z.ZodArray<z.ZodString, "many">;
3366
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3367
+ optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1651
3368
  fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1652
3369
  type: z.ZodLiteral<"enum">;
1653
3370
  allowedValues: z.ZodArray<z.ZodObject<{
@@ -1683,8 +3400,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1683
3400
  description?: string | undefined;
1684
3401
  }>]>>>;
1685
3402
  }, "strip", z.ZodTypeAny, {
1686
- required: string[];
1687
- optional: string[];
3403
+ required?: string[] | undefined;
3404
+ optional?: string[] | undefined;
1688
3405
  fieldConfigs?: Record<string, {
1689
3406
  type: "enum";
1690
3407
  allowedValues: {
@@ -1696,8 +3413,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1696
3413
  description?: string | undefined;
1697
3414
  }> | undefined;
1698
3415
  }, {
1699
- required: string[];
1700
- optional: string[];
3416
+ required?: string[] | undefined;
3417
+ optional?: string[] | undefined;
1701
3418
  fieldConfigs?: Record<string, {
1702
3419
  type: "enum";
1703
3420
  allowedValues: {
@@ -1710,8 +3427,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1710
3427
  }> | undefined;
1711
3428
  }>>;
1712
3429
  acceptReturnOrderOptions: z.ZodOptional<z.ZodObject<{
1713
- required: z.ZodArray<z.ZodString, "many">;
1714
- optional: z.ZodArray<z.ZodString, "many">;
3430
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3431
+ optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1715
3432
  fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1716
3433
  type: z.ZodLiteral<"enum">;
1717
3434
  allowedValues: z.ZodArray<z.ZodObject<{
@@ -1747,8 +3464,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1747
3464
  description?: string | undefined;
1748
3465
  }>]>>>;
1749
3466
  }, "strip", z.ZodTypeAny, {
1750
- required: string[];
1751
- optional: string[];
3467
+ required?: string[] | undefined;
3468
+ optional?: string[] | undefined;
1752
3469
  fieldConfigs?: Record<string, {
1753
3470
  type: "enum";
1754
3471
  allowedValues: {
@@ -1760,8 +3477,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1760
3477
  description?: string | undefined;
1761
3478
  }> | undefined;
1762
3479
  }, {
1763
- required: string[];
1764
- optional: string[];
3480
+ required?: string[] | undefined;
3481
+ optional?: string[] | undefined;
1765
3482
  fieldConfigs?: Record<string, {
1766
3483
  type: "enum";
1767
3484
  allowedValues: {
@@ -1774,8 +3491,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1774
3491
  }> | undefined;
1775
3492
  }>>;
1776
3493
  requestExchangeOrderOptions: z.ZodOptional<z.ZodObject<{
1777
- required: z.ZodArray<z.ZodString, "many">;
1778
- optional: z.ZodArray<z.ZodString, "many">;
3494
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3495
+ optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1779
3496
  fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1780
3497
  type: z.ZodLiteral<"enum">;
1781
3498
  allowedValues: z.ZodArray<z.ZodObject<{
@@ -1811,8 +3528,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1811
3528
  description?: string | undefined;
1812
3529
  }>]>>>;
1813
3530
  }, "strip", z.ZodTypeAny, {
1814
- required: string[];
1815
- optional: string[];
3531
+ required?: string[] | undefined;
3532
+ optional?: string[] | undefined;
1816
3533
  fieldConfigs?: Record<string, {
1817
3534
  type: "enum";
1818
3535
  allowedValues: {
@@ -1824,8 +3541,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1824
3541
  description?: string | undefined;
1825
3542
  }> | undefined;
1826
3543
  }, {
1827
- required: string[];
1828
- optional: string[];
3544
+ required?: string[] | undefined;
3545
+ optional?: string[] | undefined;
1829
3546
  fieldConfigs?: Record<string, {
1830
3547
  type: "enum";
1831
3548
  allowedValues: {
@@ -1838,8 +3555,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1838
3555
  }> | undefined;
1839
3556
  }>>;
1840
3557
  changeShippingAddressOptions: z.ZodOptional<z.ZodObject<{
1841
- required: z.ZodArray<z.ZodString, "many">;
1842
- optional: z.ZodArray<z.ZodString, "many">;
3558
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3559
+ optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1843
3560
  fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1844
3561
  type: z.ZodLiteral<"enum">;
1845
3562
  allowedValues: z.ZodArray<z.ZodObject<{
@@ -1875,8 +3592,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1875
3592
  description?: string | undefined;
1876
3593
  }>]>>>;
1877
3594
  }, "strip", z.ZodTypeAny, {
1878
- required: string[];
1879
- optional: string[];
3595
+ required?: string[] | undefined;
3596
+ optional?: string[] | undefined;
1880
3597
  fieldConfigs?: Record<string, {
1881
3598
  type: "enum";
1882
3599
  allowedValues: {
@@ -1888,8 +3605,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1888
3605
  description?: string | undefined;
1889
3606
  }> | undefined;
1890
3607
  }, {
1891
- required: string[];
1892
- optional: string[];
3608
+ required?: string[] | undefined;
3609
+ optional?: string[] | undefined;
1893
3610
  fieldConfigs?: Record<string, {
1894
3611
  type: "enum";
1895
3612
  allowedValues: {
@@ -1903,8 +3620,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1903
3620
  }>>;
1904
3621
  }, "strip", z.ZodTypeAny, {
1905
3622
  getOrdersOptions?: {
1906
- required: string[];
1907
- optional: string[];
3623
+ required?: string[] | undefined;
3624
+ optional?: string[] | undefined;
1908
3625
  fieldConfigs?: Record<string, {
1909
3626
  type: "enum";
1910
3627
  allowedValues: {
@@ -1917,8 +3634,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1917
3634
  }> | undefined;
1918
3635
  } | undefined;
1919
3636
  requestCancelOrderOptions?: {
1920
- required: string[];
1921
- optional: string[];
3637
+ required?: string[] | undefined;
3638
+ optional?: string[] | undefined;
1922
3639
  fieldConfigs?: Record<string, {
1923
3640
  type: "enum";
1924
3641
  allowedValues: {
@@ -1931,8 +3648,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1931
3648
  }> | undefined;
1932
3649
  } | undefined;
1933
3650
  requestReturnOrderOptions?: {
1934
- required: string[];
1935
- optional: string[];
3651
+ required?: string[] | undefined;
3652
+ optional?: string[] | undefined;
1936
3653
  fieldConfigs?: Record<string, {
1937
3654
  type: "enum";
1938
3655
  allowedValues: {
@@ -1945,8 +3662,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1945
3662
  }> | undefined;
1946
3663
  } | undefined;
1947
3664
  requestExchangeOrderOptions?: {
1948
- required: string[];
1949
- optional: string[];
3665
+ required?: string[] | undefined;
3666
+ optional?: string[] | undefined;
1950
3667
  fieldConfigs?: Record<string, {
1951
3668
  type: "enum";
1952
3669
  allowedValues: {
@@ -1959,8 +3676,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1959
3676
  }> | undefined;
1960
3677
  } | undefined;
1961
3678
  changeShippingAddressOptions?: {
1962
- required: string[];
1963
- optional: string[];
3679
+ required?: string[] | undefined;
3680
+ optional?: string[] | undefined;
1964
3681
  fieldConfigs?: Record<string, {
1965
3682
  type: "enum";
1966
3683
  allowedValues: {
@@ -1973,8 +3690,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1973
3690
  }> | undefined;
1974
3691
  } | undefined;
1975
3692
  acceptReturnOrderOptions?: {
1976
- required: string[];
1977
- optional: string[];
3693
+ required?: string[] | undefined;
3694
+ optional?: string[] | undefined;
1978
3695
  fieldConfigs?: Record<string, {
1979
3696
  type: "enum";
1980
3697
  allowedValues: {
@@ -1988,8 +3705,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
1988
3705
  } | undefined;
1989
3706
  }, {
1990
3707
  getOrdersOptions?: {
1991
- required: string[];
1992
- optional: string[];
3708
+ required?: string[] | undefined;
3709
+ optional?: string[] | undefined;
1993
3710
  fieldConfigs?: Record<string, {
1994
3711
  type: "enum";
1995
3712
  allowedValues: {
@@ -2002,8 +3719,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2002
3719
  }> | undefined;
2003
3720
  } | undefined;
2004
3721
  requestCancelOrderOptions?: {
2005
- required: string[];
2006
- optional: string[];
3722
+ required?: string[] | undefined;
3723
+ optional?: string[] | undefined;
2007
3724
  fieldConfigs?: Record<string, {
2008
3725
  type: "enum";
2009
3726
  allowedValues: {
@@ -2016,8 +3733,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2016
3733
  }> | undefined;
2017
3734
  } | undefined;
2018
3735
  requestReturnOrderOptions?: {
2019
- required: string[];
2020
- optional: string[];
3736
+ required?: string[] | undefined;
3737
+ optional?: string[] | undefined;
2021
3738
  fieldConfigs?: Record<string, {
2022
3739
  type: "enum";
2023
3740
  allowedValues: {
@@ -2030,8 +3747,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2030
3747
  }> | undefined;
2031
3748
  } | undefined;
2032
3749
  requestExchangeOrderOptions?: {
2033
- required: string[];
2034
- optional: string[];
3750
+ required?: string[] | undefined;
3751
+ optional?: string[] | undefined;
2035
3752
  fieldConfigs?: Record<string, {
2036
3753
  type: "enum";
2037
3754
  allowedValues: {
@@ -2044,8 +3761,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2044
3761
  }> | undefined;
2045
3762
  } | undefined;
2046
3763
  changeShippingAddressOptions?: {
2047
- required: string[];
2048
- optional: string[];
3764
+ required?: string[] | undefined;
3765
+ optional?: string[] | undefined;
2049
3766
  fieldConfigs?: Record<string, {
2050
3767
  type: "enum";
2051
3768
  allowedValues: {
@@ -2058,8 +3775,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2058
3775
  }> | undefined;
2059
3776
  } | undefined;
2060
3777
  acceptReturnOrderOptions?: {
2061
- required: string[];
2062
- optional: string[];
3778
+ required?: string[] | undefined;
3779
+ optional?: string[] | undefined;
2063
3780
  fieldConfigs?: Record<string, {
2064
3781
  type: "enum";
2065
3782
  allowedValues: {
@@ -2075,8 +3792,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2075
3792
  }, "strip", z.ZodTypeAny, {
2076
3793
  appCapabilities?: {
2077
3794
  getOrdersOptions?: {
2078
- required: string[];
2079
- optional: string[];
3795
+ required?: string[] | undefined;
3796
+ optional?: string[] | undefined;
2080
3797
  fieldConfigs?: Record<string, {
2081
3798
  type: "enum";
2082
3799
  allowedValues: {
@@ -2089,8 +3806,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2089
3806
  }> | undefined;
2090
3807
  } | undefined;
2091
3808
  requestCancelOrderOptions?: {
2092
- required: string[];
2093
- optional: string[];
3809
+ required?: string[] | undefined;
3810
+ optional?: string[] | undefined;
2094
3811
  fieldConfigs?: Record<string, {
2095
3812
  type: "enum";
2096
3813
  allowedValues: {
@@ -2103,8 +3820,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2103
3820
  }> | undefined;
2104
3821
  } | undefined;
2105
3822
  requestReturnOrderOptions?: {
2106
- required: string[];
2107
- optional: string[];
3823
+ required?: string[] | undefined;
3824
+ optional?: string[] | undefined;
2108
3825
  fieldConfigs?: Record<string, {
2109
3826
  type: "enum";
2110
3827
  allowedValues: {
@@ -2117,8 +3834,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2117
3834
  }> | undefined;
2118
3835
  } | undefined;
2119
3836
  requestExchangeOrderOptions?: {
2120
- required: string[];
2121
- optional: string[];
3837
+ required?: string[] | undefined;
3838
+ optional?: string[] | undefined;
2122
3839
  fieldConfigs?: Record<string, {
2123
3840
  type: "enum";
2124
3841
  allowedValues: {
@@ -2131,8 +3848,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2131
3848
  }> | undefined;
2132
3849
  } | undefined;
2133
3850
  changeShippingAddressOptions?: {
2134
- required: string[];
2135
- optional: string[];
3851
+ required?: string[] | undefined;
3852
+ optional?: string[] | undefined;
2136
3853
  fieldConfigs?: Record<string, {
2137
3854
  type: "enum";
2138
3855
  allowedValues: {
@@ -2145,8 +3862,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2145
3862
  }> | undefined;
2146
3863
  } | undefined;
2147
3864
  acceptReturnOrderOptions?: {
2148
- required: string[];
2149
- optional: string[];
3865
+ required?: string[] | undefined;
3866
+ optional?: string[] | undefined;
2150
3867
  fieldConfigs?: Record<string, {
2151
3868
  type: "enum";
2152
3869
  allowedValues: {
@@ -2162,8 +3879,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2162
3879
  }, {
2163
3880
  appCapabilities?: {
2164
3881
  getOrdersOptions?: {
2165
- required: string[];
2166
- optional: string[];
3882
+ required?: string[] | undefined;
3883
+ optional?: string[] | undefined;
2167
3884
  fieldConfigs?: Record<string, {
2168
3885
  type: "enum";
2169
3886
  allowedValues: {
@@ -2176,8 +3893,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2176
3893
  }> | undefined;
2177
3894
  } | undefined;
2178
3895
  requestCancelOrderOptions?: {
2179
- required: string[];
2180
- optional: string[];
3896
+ required?: string[] | undefined;
3897
+ optional?: string[] | undefined;
2181
3898
  fieldConfigs?: Record<string, {
2182
3899
  type: "enum";
2183
3900
  allowedValues: {
@@ -2190,8 +3907,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2190
3907
  }> | undefined;
2191
3908
  } | undefined;
2192
3909
  requestReturnOrderOptions?: {
2193
- required: string[];
2194
- optional: string[];
3910
+ required?: string[] | undefined;
3911
+ optional?: string[] | undefined;
2195
3912
  fieldConfigs?: Record<string, {
2196
3913
  type: "enum";
2197
3914
  allowedValues: {
@@ -2204,8 +3921,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2204
3921
  }> | undefined;
2205
3922
  } | undefined;
2206
3923
  requestExchangeOrderOptions?: {
2207
- required: string[];
2208
- optional: string[];
3924
+ required?: string[] | undefined;
3925
+ optional?: string[] | undefined;
2209
3926
  fieldConfigs?: Record<string, {
2210
3927
  type: "enum";
2211
3928
  allowedValues: {
@@ -2218,8 +3935,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2218
3935
  }> | undefined;
2219
3936
  } | undefined;
2220
3937
  changeShippingAddressOptions?: {
2221
- required: string[];
2222
- optional: string[];
3938
+ required?: string[] | undefined;
3939
+ optional?: string[] | undefined;
2223
3940
  fieldConfigs?: Record<string, {
2224
3941
  type: "enum";
2225
3942
  allowedValues: {
@@ -2232,8 +3949,8 @@ export declare const CommerceGetAppConfigsOutputSchema: z.ZodObject<{
2232
3949
  }> | undefined;
2233
3950
  } | undefined;
2234
3951
  acceptReturnOrderOptions?: {
2235
- required: string[];
2236
- optional: string[];
3952
+ required?: string[] | undefined;
3953
+ optional?: string[] | undefined;
2237
3954
  fieldConfigs?: Record<string, {
2238
3955
  type: "enum";
2239
3956
  allowedValues: {
@@ -2410,8 +4127,10 @@ export declare const CommerceReturnOrderInputSchema: z.ZodObject<{
2410
4127
  country: z.ZodOptional<z.ZodString>;
2411
4128
  city: z.ZodOptional<z.ZodString>;
2412
4129
  province: z.ZodOptional<z.ZodString>;
4130
+ countryCode: z.ZodOptional<z.ZodString>;
2413
4131
  }, "strip", z.ZodTypeAny, {
2414
4132
  email?: string | undefined;
4133
+ countryCode?: string | undefined;
2415
4134
  address1?: string | undefined;
2416
4135
  address2?: string | undefined;
2417
4136
  firstName?: string | undefined;
@@ -2425,6 +4144,7 @@ export declare const CommerceReturnOrderInputSchema: z.ZodObject<{
2425
4144
  province?: string | undefined;
2426
4145
  }, {
2427
4146
  email?: string | undefined;
4147
+ countryCode?: string | undefined;
2428
4148
  address1?: string | undefined;
2429
4149
  address2?: string | undefined;
2430
4150
  firstName?: string | undefined;
@@ -2487,6 +4207,7 @@ export declare const CommerceReturnOrderInputSchema: z.ZodObject<{
2487
4207
  requestPickup?: boolean | undefined;
2488
4208
  pickupAddress?: {
2489
4209
  email?: string | undefined;
4210
+ countryCode?: string | undefined;
2490
4211
  address1?: string | undefined;
2491
4212
  address2?: string | undefined;
2492
4213
  firstName?: string | undefined;
@@ -2528,6 +4249,7 @@ export declare const CommerceReturnOrderInputSchema: z.ZodObject<{
2528
4249
  requestPickup?: boolean | undefined;
2529
4250
  pickupAddress?: {
2530
4251
  email?: string | undefined;
4252
+ countryCode?: string | undefined;
2531
4253
  address1?: string | undefined;
2532
4254
  address2?: string | undefined;
2533
4255
  firstName?: string | undefined;
@@ -2704,8 +4426,10 @@ export declare const CommerceExchangeOrderInputSchema: z.ZodObject<{
2704
4426
  country: z.ZodOptional<z.ZodString>;
2705
4427
  city: z.ZodOptional<z.ZodString>;
2706
4428
  province: z.ZodOptional<z.ZodString>;
4429
+ countryCode: z.ZodOptional<z.ZodString>;
2707
4430
  }, "strip", z.ZodTypeAny, {
2708
4431
  email?: string | undefined;
4432
+ countryCode?: string | undefined;
2709
4433
  address1?: string | undefined;
2710
4434
  address2?: string | undefined;
2711
4435
  firstName?: string | undefined;
@@ -2719,6 +4443,7 @@ export declare const CommerceExchangeOrderInputSchema: z.ZodObject<{
2719
4443
  province?: string | undefined;
2720
4444
  }, {
2721
4445
  email?: string | undefined;
4446
+ countryCode?: string | undefined;
2722
4447
  address1?: string | undefined;
2723
4448
  address2?: string | undefined;
2724
4449
  firstName?: string | undefined;
@@ -2772,6 +4497,7 @@ export declare const CommerceExchangeOrderInputSchema: z.ZodObject<{
2772
4497
  requestPickup?: boolean | undefined;
2773
4498
  pickupAddress?: {
2774
4499
  email?: string | undefined;
4500
+ countryCode?: string | undefined;
2775
4501
  address1?: string | undefined;
2776
4502
  address2?: string | undefined;
2777
4503
  firstName?: string | undefined;
@@ -2816,6 +4542,7 @@ export declare const CommerceExchangeOrderInputSchema: z.ZodObject<{
2816
4542
  requestPickup?: boolean | undefined;
2817
4543
  pickupAddress?: {
2818
4544
  email?: string | undefined;
4545
+ countryCode?: string | undefined;
2819
4546
  address1?: string | undefined;
2820
4547
  address2?: string | undefined;
2821
4548
  firstName?: string | undefined;
@@ -2893,116 +4620,241 @@ export declare const CommerceGetExchangeableItemsInputSchema: z.ZodObject<{
2893
4620
  } | undefined;
2894
4621
  }>;
2895
4622
  export type CommerceGetExchangeableItemsInput = ProtoBacked<z.infer<typeof CommerceGetExchangeableItemsInputSchema>, ProtoCommerceGetExchangeableItemsInput>;
4623
+ export declare const CommerceVariantOptionSchema: z.ZodObject<{
4624
+ name: z.ZodString;
4625
+ value: z.ZodString;
4626
+ }, "strip", z.ZodTypeAny, {
4627
+ value: string;
4628
+ name: string;
4629
+ }, {
4630
+ value: string;
4631
+ name: string;
4632
+ }>;
4633
+ export type CommerceVariantOption = ProtoBacked<z.infer<typeof CommerceVariantOptionSchema>, ProtoCommerceVariantOption>;
4634
+ export declare const CommerceExchangeableVariantSchema: z.ZodObject<{
4635
+ id: z.ZodString;
4636
+ additionalAmount: z.ZodNumber;
4637
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
4638
+ name: z.ZodString;
4639
+ value: z.ZodString;
4640
+ }, "strip", z.ZodTypeAny, {
4641
+ value: string;
4642
+ name: string;
4643
+ }, {
4644
+ value: string;
4645
+ name: string;
4646
+ }>, "many">>;
4647
+ stockQuantity: z.ZodOptional<z.ZodNumber>;
4648
+ useInventory: z.ZodOptional<z.ZodBoolean>;
4649
+ selling: z.ZodOptional<z.ZodBoolean>;
4650
+ display: z.ZodOptional<z.ZodBoolean>;
4651
+ }, "strip", z.ZodTypeAny, {
4652
+ id: string;
4653
+ additionalAmount: number;
4654
+ options?: {
4655
+ value: string;
4656
+ name: string;
4657
+ }[] | undefined;
4658
+ stockQuantity?: number | undefined;
4659
+ useInventory?: boolean | undefined;
4660
+ selling?: boolean | undefined;
4661
+ display?: boolean | undefined;
4662
+ }, {
4663
+ id: string;
4664
+ additionalAmount: number;
4665
+ options?: {
4666
+ value: string;
4667
+ name: string;
4668
+ }[] | undefined;
4669
+ stockQuantity?: number | undefined;
4670
+ useInventory?: boolean | undefined;
4671
+ selling?: boolean | undefined;
4672
+ display?: boolean | undefined;
4673
+ }>;
4674
+ export type CommerceExchangeableVariant = ProtoBacked<z.infer<typeof CommerceExchangeableVariantSchema>, ProtoCommerceExchangeableVariant>;
4675
+ export declare const CommerceExchangeableItemSchema: z.ZodObject<{
4676
+ id: z.ZodString;
4677
+ productId: z.ZodOptional<z.ZodString>;
4678
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
4679
+ id: z.ZodString;
4680
+ additionalAmount: z.ZodNumber;
4681
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
4682
+ name: z.ZodString;
4683
+ value: z.ZodString;
4684
+ }, "strip", z.ZodTypeAny, {
4685
+ value: string;
4686
+ name: string;
4687
+ }, {
4688
+ value: string;
4689
+ name: string;
4690
+ }>, "many">>;
4691
+ stockQuantity: z.ZodOptional<z.ZodNumber>;
4692
+ useInventory: z.ZodOptional<z.ZodBoolean>;
4693
+ selling: z.ZodOptional<z.ZodBoolean>;
4694
+ display: z.ZodOptional<z.ZodBoolean>;
4695
+ }, "strip", z.ZodTypeAny, {
4696
+ id: string;
4697
+ additionalAmount: number;
4698
+ options?: {
4699
+ value: string;
4700
+ name: string;
4701
+ }[] | undefined;
4702
+ stockQuantity?: number | undefined;
4703
+ useInventory?: boolean | undefined;
4704
+ selling?: boolean | undefined;
4705
+ display?: boolean | undefined;
4706
+ }, {
4707
+ id: string;
4708
+ additionalAmount: number;
4709
+ options?: {
4710
+ value: string;
4711
+ name: string;
4712
+ }[] | undefined;
4713
+ stockQuantity?: number | undefined;
4714
+ useInventory?: boolean | undefined;
4715
+ selling?: boolean | undefined;
4716
+ display?: boolean | undefined;
4717
+ }>, "many">>;
4718
+ }, "strip", z.ZodTypeAny, {
4719
+ id: string;
4720
+ productId?: string | undefined;
4721
+ variants?: {
4722
+ id: string;
4723
+ additionalAmount: number;
4724
+ options?: {
4725
+ value: string;
4726
+ name: string;
4727
+ }[] | undefined;
4728
+ stockQuantity?: number | undefined;
4729
+ useInventory?: boolean | undefined;
4730
+ selling?: boolean | undefined;
4731
+ display?: boolean | undefined;
4732
+ }[] | undefined;
4733
+ }, {
4734
+ id: string;
4735
+ productId?: string | undefined;
4736
+ variants?: {
4737
+ id: string;
4738
+ additionalAmount: number;
4739
+ options?: {
4740
+ value: string;
4741
+ name: string;
4742
+ }[] | undefined;
4743
+ stockQuantity?: number | undefined;
4744
+ useInventory?: boolean | undefined;
4745
+ selling?: boolean | undefined;
4746
+ display?: boolean | undefined;
4747
+ }[] | undefined;
4748
+ }>;
4749
+ export type CommerceExchangeableItem = ProtoBacked<z.infer<typeof CommerceExchangeableItemSchema>, ProtoCommerceExchangeableItem>;
2896
4750
  export declare const CommerceGetExchangeableItemsOutputSchema: z.ZodObject<{
2897
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
4751
+ exchangeableItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
2898
4752
  id: z.ZodString;
2899
- name: z.ZodString;
2900
- imageUrl: z.ZodOptional<z.ZodString>;
2901
- amount: z.ZodNumber;
2902
- quantity: z.ZodNumber;
2903
- option: z.ZodOptional<z.ZodString>;
2904
4753
  productId: z.ZodOptional<z.ZodString>;
2905
- variantId: z.ZodOptional<z.ZodString>;
2906
- state: z.ZodString;
2907
- shippedAt: z.ZodOptional<z.ZodNumber>;
2908
- deliveredAt: z.ZodOptional<z.ZodNumber>;
2909
- estimatedShipDate: z.ZodOptional<z.ZodNumber>;
2910
- claimability: z.ZodObject<{
2911
- cancelable: z.ZodBoolean;
2912
- returnable: z.ZodBoolean;
2913
- exchangeable: z.ZodBoolean;
2914
- shippingAddressChangeable: z.ZodBoolean;
4754
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
4755
+ id: z.ZodString;
4756
+ additionalAmount: z.ZodNumber;
4757
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
4758
+ name: z.ZodString;
4759
+ value: z.ZodString;
4760
+ }, "strip", z.ZodTypeAny, {
4761
+ value: string;
4762
+ name: string;
4763
+ }, {
4764
+ value: string;
4765
+ name: string;
4766
+ }>, "many">>;
4767
+ stockQuantity: z.ZodOptional<z.ZodNumber>;
4768
+ useInventory: z.ZodOptional<z.ZodBoolean>;
4769
+ selling: z.ZodOptional<z.ZodBoolean>;
4770
+ display: z.ZodOptional<z.ZodBoolean>;
2915
4771
  }, "strip", z.ZodTypeAny, {
2916
- cancelable: boolean;
2917
- returnable: boolean;
2918
- exchangeable: boolean;
2919
- shippingAddressChangeable: boolean;
4772
+ id: string;
4773
+ additionalAmount: number;
4774
+ options?: {
4775
+ value: string;
4776
+ name: string;
4777
+ }[] | undefined;
4778
+ stockQuantity?: number | undefined;
4779
+ useInventory?: boolean | undefined;
4780
+ selling?: boolean | undefined;
4781
+ display?: boolean | undefined;
2920
4782
  }, {
2921
- cancelable: boolean;
2922
- returnable: boolean;
2923
- exchangeable: boolean;
2924
- shippingAddressChangeable: boolean;
2925
- }>;
4783
+ id: string;
4784
+ additionalAmount: number;
4785
+ options?: {
4786
+ value: string;
4787
+ name: string;
4788
+ }[] | undefined;
4789
+ stockQuantity?: number | undefined;
4790
+ useInventory?: boolean | undefined;
4791
+ selling?: boolean | undefined;
4792
+ display?: boolean | undefined;
4793
+ }>, "many">>;
2926
4794
  }, "strip", z.ZodTypeAny, {
2927
- name: string;
2928
4795
  id: string;
2929
- state: string;
2930
- amount: number;
2931
- quantity: number;
2932
- claimability: {
2933
- cancelable: boolean;
2934
- returnable: boolean;
2935
- exchangeable: boolean;
2936
- shippingAddressChangeable: boolean;
2937
- };
2938
- imageUrl?: string | undefined;
2939
- option?: string | undefined;
2940
4796
  productId?: string | undefined;
2941
- variantId?: string | undefined;
2942
- shippedAt?: number | undefined;
2943
- deliveredAt?: number | undefined;
2944
- estimatedShipDate?: number | undefined;
4797
+ variants?: {
4798
+ id: string;
4799
+ additionalAmount: number;
4800
+ options?: {
4801
+ value: string;
4802
+ name: string;
4803
+ }[] | undefined;
4804
+ stockQuantity?: number | undefined;
4805
+ useInventory?: boolean | undefined;
4806
+ selling?: boolean | undefined;
4807
+ display?: boolean | undefined;
4808
+ }[] | undefined;
2945
4809
  }, {
2946
- name: string;
2947
4810
  id: string;
2948
- state: string;
2949
- amount: number;
2950
- quantity: number;
2951
- claimability: {
2952
- cancelable: boolean;
2953
- returnable: boolean;
2954
- exchangeable: boolean;
2955
- shippingAddressChangeable: boolean;
2956
- };
2957
- imageUrl?: string | undefined;
2958
- option?: string | undefined;
2959
4811
  productId?: string | undefined;
2960
- variantId?: string | undefined;
2961
- shippedAt?: number | undefined;
2962
- deliveredAt?: number | undefined;
2963
- estimatedShipDate?: number | undefined;
4812
+ variants?: {
4813
+ id: string;
4814
+ additionalAmount: number;
4815
+ options?: {
4816
+ value: string;
4817
+ name: string;
4818
+ }[] | undefined;
4819
+ stockQuantity?: number | undefined;
4820
+ useInventory?: boolean | undefined;
4821
+ selling?: boolean | undefined;
4822
+ display?: boolean | undefined;
4823
+ }[] | undefined;
2964
4824
  }>, "many">>;
2965
4825
  }, "strip", z.ZodTypeAny, {
2966
- items?: {
2967
- name: string;
4826
+ exchangeableItems?: {
2968
4827
  id: string;
2969
- state: string;
2970
- amount: number;
2971
- quantity: number;
2972
- claimability: {
2973
- cancelable: boolean;
2974
- returnable: boolean;
2975
- exchangeable: boolean;
2976
- shippingAddressChangeable: boolean;
2977
- };
2978
- imageUrl?: string | undefined;
2979
- option?: string | undefined;
2980
4828
  productId?: string | undefined;
2981
- variantId?: string | undefined;
2982
- shippedAt?: number | undefined;
2983
- deliveredAt?: number | undefined;
2984
- estimatedShipDate?: number | undefined;
4829
+ variants?: {
4830
+ id: string;
4831
+ additionalAmount: number;
4832
+ options?: {
4833
+ value: string;
4834
+ name: string;
4835
+ }[] | undefined;
4836
+ stockQuantity?: number | undefined;
4837
+ useInventory?: boolean | undefined;
4838
+ selling?: boolean | undefined;
4839
+ display?: boolean | undefined;
4840
+ }[] | undefined;
2985
4841
  }[] | undefined;
2986
4842
  }, {
2987
- items?: {
2988
- name: string;
4843
+ exchangeableItems?: {
2989
4844
  id: string;
2990
- state: string;
2991
- amount: number;
2992
- quantity: number;
2993
- claimability: {
2994
- cancelable: boolean;
2995
- returnable: boolean;
2996
- exchangeable: boolean;
2997
- shippingAddressChangeable: boolean;
2998
- };
2999
- imageUrl?: string | undefined;
3000
- option?: string | undefined;
3001
4845
  productId?: string | undefined;
3002
- variantId?: string | undefined;
3003
- shippedAt?: number | undefined;
3004
- deliveredAt?: number | undefined;
3005
- estimatedShipDate?: number | undefined;
4846
+ variants?: {
4847
+ id: string;
4848
+ additionalAmount: number;
4849
+ options?: {
4850
+ value: string;
4851
+ name: string;
4852
+ }[] | undefined;
4853
+ stockQuantity?: number | undefined;
4854
+ useInventory?: boolean | undefined;
4855
+ selling?: boolean | undefined;
4856
+ display?: boolean | undefined;
4857
+ }[] | undefined;
3006
4858
  }[] | undefined;
3007
4859
  }>;
3008
4860
  export type CommerceGetExchangeableItemsOutput = ProtoBacked<z.infer<typeof CommerceGetExchangeableItemsOutputSchema>, ProtoCommerceGetExchangeableItemsOutput>;
@@ -3031,8 +4883,10 @@ export declare const CommerceChangeShippingAddressInputSchema: z.ZodObject<{
3031
4883
  country: z.ZodOptional<z.ZodString>;
3032
4884
  city: z.ZodOptional<z.ZodString>;
3033
4885
  province: z.ZodOptional<z.ZodString>;
4886
+ countryCode: z.ZodOptional<z.ZodString>;
3034
4887
  }, "strip", z.ZodTypeAny, {
3035
4888
  email?: string | undefined;
4889
+ countryCode?: string | undefined;
3036
4890
  address1?: string | undefined;
3037
4891
  address2?: string | undefined;
3038
4892
  firstName?: string | undefined;
@@ -3046,6 +4900,7 @@ export declare const CommerceChangeShippingAddressInputSchema: z.ZodObject<{
3046
4900
  province?: string | undefined;
3047
4901
  }, {
3048
4902
  email?: string | undefined;
4903
+ countryCode?: string | undefined;
3049
4904
  address1?: string | undefined;
3050
4905
  address2?: string | undefined;
3051
4906
  firstName?: string | undefined;
@@ -3062,6 +4917,7 @@ export declare const CommerceChangeShippingAddressInputSchema: z.ZodObject<{
3062
4917
  orderId: string;
3063
4918
  newAddress: {
3064
4919
  email?: string | undefined;
4920
+ countryCode?: string | undefined;
3065
4921
  address1?: string | undefined;
3066
4922
  address2?: string | undefined;
3067
4923
  firstName?: string | undefined;
@@ -3082,6 +4938,7 @@ export declare const CommerceChangeShippingAddressInputSchema: z.ZodObject<{
3082
4938
  orderId: string;
3083
4939
  newAddress: {
3084
4940
  email?: string | undefined;
4941
+ countryCode?: string | undefined;
3085
4942
  address1?: string | undefined;
3086
4943
  address2?: string | undefined;
3087
4944
  firstName?: string | undefined;