@shipengine/elements 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +1447 -638
- package/index.js +1447 -639
- package/package.json +2 -2
- package/src/components/add-funds-form/add-funds-form.d.ts +2 -1
- package/src/components/auto-funding-form/auto-funding-form.d.ts +7 -2
- package/src/components/carrier-balance/carrier-balance.d.ts +3 -1
- package/src/components/drawer/drawer.styles.d.ts +0 -1
- package/src/components/fund-and-purchase/fund-and-purchase.d.ts +3 -1
- package/src/components/grid-controller/cell-formatted-date.d.ts +5 -3
- package/src/components/history/history-card/history-card.d.ts +4 -3
- package/src/components/history/history-card-extension/history-card-extension.d.ts +3 -1
- package/src/components/index.d.ts +0 -1
- package/src/components/manage-funding/manage-funding.d.ts +6 -1
- package/src/components/tabs/tabs.styles.d.ts +1 -1
- package/src/components/templates/account-settings/account-settings.d.ts +2 -1
- package/src/components/templates/connect-carrier-form/connect-carrier-form.d.ts +8 -2
- package/src/components/templates/connect-carrier-form/connect-carrier-form.styles.d.ts +4 -0
- package/src/components/templates/index.d.ts +1 -1
- package/src/components/templates/product-form/index.d.ts +2 -0
- package/src/components/templates/{customs-item-form/customs-item-form-schema.d.ts → product-form/product-form-schema.d.ts} +16 -16
- package/src/components/templates/product-form/product-form.d.ts +15 -0
- package/src/components/templates/products-display/index.d.ts +1 -0
- package/src/components/templates/products-display/products-display.d.ts +7 -0
- package/src/components/templates/rate-form/rate-form.d.ts +2 -1
- package/src/components/templates/shipment-form/shipment-form.d.ts +3 -2
- package/src/components/templates/shipment-form/shipment-schema.d.ts +331 -140
- package/src/components/templates/theme-creator/theme-creator.d.ts +6 -1
- package/src/components/templates/theme-creator/theme-creator.styles.d.ts +2 -2
- package/src/elements/account-settings/account-settings.d.ts +51 -6
- package/src/elements/configure-shipment/configure-shipment.d.ts +2 -1
- package/src/elements/configure-shipment/hooks/use-customs.d.ts +1 -1
- package/src/elements/configure-shipment/hooks/use-rates-with-cache.d.ts +4 -4
- package/src/elements/configure-shipment/hooks/use-shipment-form.d.ts +1 -1
- package/src/elements/connect-carrier/connect-carrier.d.ts +17 -3
- package/src/elements/labels-grid/labels-grid.d.ts +12 -1
- package/src/elements/purchase-label/purchase-label-by-sales-order.d.ts +3 -1
- package/src/elements/purchase-label/purchase-label-by-shipment.d.ts +3 -1
- package/src/elements/purchase-label/purchase-label.d.ts +64 -28
- package/src/elements/shipments-grid/shipments-grid.d.ts +12 -1
- package/src/elements/theme-creator/theme-creator.d.ts +16 -1
- package/src/elements/view-shipment/view-shipment.d.ts +12 -1
- package/src/elements/void-label/void-label.d.ts +18 -8
- package/src/factories/shipengine/shipment.d.ts +2 -1
- package/src/features/wallet-history/wallet-history.styles.d.ts +6 -1
- package/src/locales/en/index.d.ts +12 -1
- package/src/utilities/money.d.ts +7 -0
- package/src/utilities/shipengine/sales-order.d.ts +4 -1
- package/src/workflows/onboarding/onboarding.d.ts +19 -1
- package/src/components/code-block/code-block.d.ts +0 -6
- package/src/components/code-block/index.d.ts +0 -1
- package/src/components/field/money-input/hooks/index.d.ts +0 -1
- package/src/components/field/money-input/hooks/use-utils.d.ts +0 -6
- package/src/components/templates/connect-carrier/connect-carrier.d.ts +0 -1
- package/src/components/templates/connect-carrier/connect-carrier.styles.d.ts +0 -1
- package/src/components/templates/connect-carrier/index.d.ts +0 -1
- package/src/components/templates/customs-item-form/customs-item-form.d.ts +0 -15
- package/src/components/templates/customs-item-form/index.d.ts +0 -2
- package/src/components/templates/customs-items-display/customs-items-display.d.ts +0 -7
- package/src/components/templates/customs-items-display/index.d.ts +0 -1
- /package/src/components/templates/{customs-items-display/customs-items-display.styles.d.ts → products-display/products-display.styles.d.ts} +0 -0
|
@@ -21,50 +21,12 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
21
21
|
confirmation: z.ZodDefault<z.ZodNativeEnum<typeof SE.ConfirmationType>>;
|
|
22
22
|
customs: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
23
23
|
contents: z.ZodNativeEnum<typeof SE.CustomsContentsType>;
|
|
24
|
-
customsItems: z.ZodArray<z.ZodObject<{
|
|
25
|
-
countryOfOrigin: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
26
|
-
customsItemId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
27
|
-
description: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
28
|
-
harmonizedTariffCode: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
29
|
-
quantity: z.ZodNumber;
|
|
30
|
-
value: z.ZodNumber;
|
|
31
|
-
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
countryOfOrigin?: string | undefined;
|
|
33
|
-
customsItemId?: string | undefined;
|
|
34
|
-
description?: string | undefined;
|
|
35
|
-
harmonizedTariffCode?: string | undefined;
|
|
36
|
-
value: number;
|
|
37
|
-
quantity: number;
|
|
38
|
-
}, {
|
|
39
|
-
countryOfOrigin?: string | null | undefined;
|
|
40
|
-
customsItemId?: string | null | undefined;
|
|
41
|
-
description?: string | null | undefined;
|
|
42
|
-
harmonizedTariffCode?: string | null | undefined;
|
|
43
|
-
value: number;
|
|
44
|
-
quantity: number;
|
|
45
|
-
}>, "many">;
|
|
46
24
|
nonDelivery: z.ZodNativeEnum<typeof SE.CustomsNonDeliveryType>;
|
|
47
25
|
}, "strip", z.ZodTypeAny, {
|
|
48
26
|
contents: SE.CustomsContentsType;
|
|
49
|
-
customsItems: {
|
|
50
|
-
countryOfOrigin?: string | undefined;
|
|
51
|
-
customsItemId?: string | undefined;
|
|
52
|
-
description?: string | undefined;
|
|
53
|
-
harmonizedTariffCode?: string | undefined;
|
|
54
|
-
value: number;
|
|
55
|
-
quantity: number;
|
|
56
|
-
}[];
|
|
57
27
|
nonDelivery: SE.CustomsNonDeliveryType;
|
|
58
28
|
}, {
|
|
59
29
|
contents: SE.CustomsContentsType;
|
|
60
|
-
customsItems: {
|
|
61
|
-
countryOfOrigin?: string | null | undefined;
|
|
62
|
-
customsItemId?: string | null | undefined;
|
|
63
|
-
description?: string | null | undefined;
|
|
64
|
-
harmonizedTariffCode?: string | null | undefined;
|
|
65
|
-
value: number;
|
|
66
|
-
quantity: number;
|
|
67
|
-
}[];
|
|
68
30
|
nonDelivery: SE.CustomsNonDeliveryType;
|
|
69
31
|
}>>>;
|
|
70
32
|
insuranceProvider: z.ZodDefault<z.ZodNativeEnum<typeof SE.InsuranceProviderType>>;
|
|
@@ -135,6 +97,43 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
135
97
|
amount: number;
|
|
136
98
|
currency: SE.Currency;
|
|
137
99
|
}>>;
|
|
100
|
+
products: z.ZodArray<z.ZodObject<{
|
|
101
|
+
countryOfOrigin: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
102
|
+
description: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
103
|
+
harmonizedTariffCode: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
104
|
+
productId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
105
|
+
quantity: z.ZodNumber;
|
|
106
|
+
value: z.ZodObject<{
|
|
107
|
+
amount: z.ZodNumber;
|
|
108
|
+
currency: z.ZodNativeEnum<typeof SE.Currency>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
amount: number;
|
|
111
|
+
currency: SE.Currency;
|
|
112
|
+
}, {
|
|
113
|
+
amount: number;
|
|
114
|
+
currency: SE.Currency;
|
|
115
|
+
}>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
countryOfOrigin?: string | undefined;
|
|
118
|
+
description?: string | undefined;
|
|
119
|
+
harmonizedTariffCode?: string | undefined;
|
|
120
|
+
productId?: string | undefined;
|
|
121
|
+
value: {
|
|
122
|
+
amount: number;
|
|
123
|
+
currency: SE.Currency;
|
|
124
|
+
};
|
|
125
|
+
quantity: number;
|
|
126
|
+
}, {
|
|
127
|
+
countryOfOrigin?: string | null | undefined;
|
|
128
|
+
description?: string | null | undefined;
|
|
129
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
130
|
+
productId?: string | null | undefined;
|
|
131
|
+
value: {
|
|
132
|
+
amount: number;
|
|
133
|
+
currency: SE.Currency;
|
|
134
|
+
};
|
|
135
|
+
quantity: number;
|
|
136
|
+
}>, "many">;
|
|
138
137
|
type: z.ZodObject<{
|
|
139
138
|
carrierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
140
139
|
code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -198,6 +197,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
198
197
|
code?: string | null | undefined;
|
|
199
198
|
carrierId?: string | null | undefined;
|
|
200
199
|
};
|
|
200
|
+
products: {
|
|
201
|
+
countryOfOrigin?: string | undefined;
|
|
202
|
+
description?: string | undefined;
|
|
203
|
+
harmonizedTariffCode?: string | undefined;
|
|
204
|
+
productId?: string | undefined;
|
|
205
|
+
value: {
|
|
206
|
+
amount: number;
|
|
207
|
+
currency: SE.Currency;
|
|
208
|
+
};
|
|
209
|
+
quantity: number;
|
|
210
|
+
}[];
|
|
201
211
|
}, {
|
|
202
212
|
contentDescription?: string | null | undefined;
|
|
203
213
|
dimensions?: {
|
|
@@ -224,6 +234,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
224
234
|
code?: string | null | undefined;
|
|
225
235
|
carrierId?: string | null | undefined;
|
|
226
236
|
};
|
|
237
|
+
products: {
|
|
238
|
+
countryOfOrigin?: string | null | undefined;
|
|
239
|
+
description?: string | null | undefined;
|
|
240
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
241
|
+
productId?: string | null | undefined;
|
|
242
|
+
value: {
|
|
243
|
+
amount: number;
|
|
244
|
+
currency: SE.Currency;
|
|
245
|
+
};
|
|
246
|
+
quantity: number;
|
|
247
|
+
}[];
|
|
227
248
|
}>, "many">;
|
|
228
249
|
service: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
229
250
|
carrierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -247,14 +268,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
247
268
|
carrierId?: string | null | undefined;
|
|
248
269
|
customs?: {
|
|
249
270
|
contents: SE.CustomsContentsType;
|
|
250
|
-
customsItems: {
|
|
251
|
-
countryOfOrigin?: string | undefined;
|
|
252
|
-
customsItemId?: string | undefined;
|
|
253
|
-
description?: string | undefined;
|
|
254
|
-
harmonizedTariffCode?: string | undefined;
|
|
255
|
-
value: number;
|
|
256
|
-
quantity: number;
|
|
257
|
-
}[];
|
|
258
271
|
nonDelivery: SE.CustomsNonDeliveryType;
|
|
259
272
|
} | null | undefined;
|
|
260
273
|
service?: {
|
|
@@ -287,6 +300,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
287
300
|
code?: string | null | undefined;
|
|
288
301
|
carrierId?: string | null | undefined;
|
|
289
302
|
};
|
|
303
|
+
products: {
|
|
304
|
+
countryOfOrigin?: string | undefined;
|
|
305
|
+
description?: string | undefined;
|
|
306
|
+
harmonizedTariffCode?: string | undefined;
|
|
307
|
+
productId?: string | undefined;
|
|
308
|
+
value: {
|
|
309
|
+
amount: number;
|
|
310
|
+
currency: SE.Currency;
|
|
311
|
+
};
|
|
312
|
+
quantity: number;
|
|
313
|
+
}[];
|
|
290
314
|
}[];
|
|
291
315
|
shipDate: string;
|
|
292
316
|
warehouseId: string;
|
|
@@ -298,14 +322,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
298
322
|
confirmation?: SE.ConfirmationType | undefined;
|
|
299
323
|
customs?: {
|
|
300
324
|
contents: SE.CustomsContentsType;
|
|
301
|
-
customsItems: {
|
|
302
|
-
countryOfOrigin?: string | null | undefined;
|
|
303
|
-
customsItemId?: string | null | undefined;
|
|
304
|
-
description?: string | null | undefined;
|
|
305
|
-
harmonizedTariffCode?: string | null | undefined;
|
|
306
|
-
value: number;
|
|
307
|
-
quantity: number;
|
|
308
|
-
}[];
|
|
309
325
|
nonDelivery: SE.CustomsNonDeliveryType;
|
|
310
326
|
} | null | undefined;
|
|
311
327
|
insuranceProvider?: SE.InsuranceProviderType | undefined;
|
|
@@ -341,6 +357,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
341
357
|
code?: string | null | undefined;
|
|
342
358
|
carrierId?: string | null | undefined;
|
|
343
359
|
};
|
|
360
|
+
products: {
|
|
361
|
+
countryOfOrigin?: string | null | undefined;
|
|
362
|
+
description?: string | null | undefined;
|
|
363
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
364
|
+
productId?: string | null | undefined;
|
|
365
|
+
value: {
|
|
366
|
+
amount: number;
|
|
367
|
+
currency: SE.Currency;
|
|
368
|
+
};
|
|
369
|
+
quantity: number;
|
|
370
|
+
}[];
|
|
344
371
|
}[];
|
|
345
372
|
shipDate: string;
|
|
346
373
|
warehouseId: string;
|
|
@@ -356,50 +383,12 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
356
383
|
confirmation: z.ZodDefault<z.ZodNativeEnum<typeof SE.ConfirmationType>>;
|
|
357
384
|
customs: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
358
385
|
contents: z.ZodNativeEnum<typeof SE.CustomsContentsType>;
|
|
359
|
-
customsItems: z.ZodArray<z.ZodObject<{
|
|
360
|
-
countryOfOrigin: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
361
|
-
customsItemId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
362
|
-
description: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
363
|
-
harmonizedTariffCode: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
364
|
-
quantity: z.ZodNumber;
|
|
365
|
-
value: z.ZodNumber;
|
|
366
|
-
}, "strip", z.ZodTypeAny, {
|
|
367
|
-
countryOfOrigin?: string | undefined;
|
|
368
|
-
customsItemId?: string | undefined;
|
|
369
|
-
description?: string | undefined;
|
|
370
|
-
harmonizedTariffCode?: string | undefined;
|
|
371
|
-
value: number;
|
|
372
|
-
quantity: number;
|
|
373
|
-
}, {
|
|
374
|
-
countryOfOrigin?: string | null | undefined;
|
|
375
|
-
customsItemId?: string | null | undefined;
|
|
376
|
-
description?: string | null | undefined;
|
|
377
|
-
harmonizedTariffCode?: string | null | undefined;
|
|
378
|
-
value: number;
|
|
379
|
-
quantity: number;
|
|
380
|
-
}>, "many">;
|
|
381
386
|
nonDelivery: z.ZodNativeEnum<typeof SE.CustomsNonDeliveryType>;
|
|
382
387
|
}, "strip", z.ZodTypeAny, {
|
|
383
388
|
contents: SE.CustomsContentsType;
|
|
384
|
-
customsItems: {
|
|
385
|
-
countryOfOrigin?: string | undefined;
|
|
386
|
-
customsItemId?: string | undefined;
|
|
387
|
-
description?: string | undefined;
|
|
388
|
-
harmonizedTariffCode?: string | undefined;
|
|
389
|
-
value: number;
|
|
390
|
-
quantity: number;
|
|
391
|
-
}[];
|
|
392
389
|
nonDelivery: SE.CustomsNonDeliveryType;
|
|
393
390
|
}, {
|
|
394
391
|
contents: SE.CustomsContentsType;
|
|
395
|
-
customsItems: {
|
|
396
|
-
countryOfOrigin?: string | null | undefined;
|
|
397
|
-
customsItemId?: string | null | undefined;
|
|
398
|
-
description?: string | null | undefined;
|
|
399
|
-
harmonizedTariffCode?: string | null | undefined;
|
|
400
|
-
value: number;
|
|
401
|
-
quantity: number;
|
|
402
|
-
}[];
|
|
403
392
|
nonDelivery: SE.CustomsNonDeliveryType;
|
|
404
393
|
}>>>;
|
|
405
394
|
insuranceProvider: z.ZodDefault<z.ZodNativeEnum<typeof SE.InsuranceProviderType>>;
|
|
@@ -470,6 +459,43 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
470
459
|
amount: number;
|
|
471
460
|
currency: SE.Currency;
|
|
472
461
|
}>>;
|
|
462
|
+
products: z.ZodArray<z.ZodObject<{
|
|
463
|
+
countryOfOrigin: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
464
|
+
description: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
465
|
+
harmonizedTariffCode: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
466
|
+
productId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
467
|
+
quantity: z.ZodNumber;
|
|
468
|
+
value: z.ZodObject<{
|
|
469
|
+
amount: z.ZodNumber;
|
|
470
|
+
currency: z.ZodNativeEnum<typeof SE.Currency>;
|
|
471
|
+
}, "strip", z.ZodTypeAny, {
|
|
472
|
+
amount: number;
|
|
473
|
+
currency: SE.Currency;
|
|
474
|
+
}, {
|
|
475
|
+
amount: number;
|
|
476
|
+
currency: SE.Currency;
|
|
477
|
+
}>;
|
|
478
|
+
}, "strip", z.ZodTypeAny, {
|
|
479
|
+
countryOfOrigin?: string | undefined;
|
|
480
|
+
description?: string | undefined;
|
|
481
|
+
harmonizedTariffCode?: string | undefined;
|
|
482
|
+
productId?: string | undefined;
|
|
483
|
+
value: {
|
|
484
|
+
amount: number;
|
|
485
|
+
currency: SE.Currency;
|
|
486
|
+
};
|
|
487
|
+
quantity: number;
|
|
488
|
+
}, {
|
|
489
|
+
countryOfOrigin?: string | null | undefined;
|
|
490
|
+
description?: string | null | undefined;
|
|
491
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
492
|
+
productId?: string | null | undefined;
|
|
493
|
+
value: {
|
|
494
|
+
amount: number;
|
|
495
|
+
currency: SE.Currency;
|
|
496
|
+
};
|
|
497
|
+
quantity: number;
|
|
498
|
+
}>, "many">;
|
|
473
499
|
type: z.ZodObject<{
|
|
474
500
|
carrierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
475
501
|
code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -533,6 +559,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
533
559
|
code?: string | null | undefined;
|
|
534
560
|
carrierId?: string | null | undefined;
|
|
535
561
|
};
|
|
562
|
+
products: {
|
|
563
|
+
countryOfOrigin?: string | undefined;
|
|
564
|
+
description?: string | undefined;
|
|
565
|
+
harmonizedTariffCode?: string | undefined;
|
|
566
|
+
productId?: string | undefined;
|
|
567
|
+
value: {
|
|
568
|
+
amount: number;
|
|
569
|
+
currency: SE.Currency;
|
|
570
|
+
};
|
|
571
|
+
quantity: number;
|
|
572
|
+
}[];
|
|
536
573
|
}, {
|
|
537
574
|
contentDescription?: string | null | undefined;
|
|
538
575
|
dimensions?: {
|
|
@@ -559,6 +596,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
559
596
|
code?: string | null | undefined;
|
|
560
597
|
carrierId?: string | null | undefined;
|
|
561
598
|
};
|
|
599
|
+
products: {
|
|
600
|
+
countryOfOrigin?: string | null | undefined;
|
|
601
|
+
description?: string | null | undefined;
|
|
602
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
603
|
+
productId?: string | null | undefined;
|
|
604
|
+
value: {
|
|
605
|
+
amount: number;
|
|
606
|
+
currency: SE.Currency;
|
|
607
|
+
};
|
|
608
|
+
quantity: number;
|
|
609
|
+
}[];
|
|
562
610
|
}>, "many">;
|
|
563
611
|
service: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
564
612
|
carrierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -642,6 +690,43 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
642
690
|
amount: number;
|
|
643
691
|
currency: SE.Currency;
|
|
644
692
|
}>>;
|
|
693
|
+
products: z.ZodArray<z.ZodObject<{
|
|
694
|
+
countryOfOrigin: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
695
|
+
description: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
696
|
+
harmonizedTariffCode: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
697
|
+
productId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
698
|
+
quantity: z.ZodNumber;
|
|
699
|
+
value: z.ZodObject<{
|
|
700
|
+
amount: z.ZodNumber;
|
|
701
|
+
currency: z.ZodNativeEnum<typeof SE.Currency>;
|
|
702
|
+
}, "strip", z.ZodTypeAny, {
|
|
703
|
+
amount: number;
|
|
704
|
+
currency: SE.Currency;
|
|
705
|
+
}, {
|
|
706
|
+
amount: number;
|
|
707
|
+
currency: SE.Currency;
|
|
708
|
+
}>;
|
|
709
|
+
}, "strip", z.ZodTypeAny, {
|
|
710
|
+
countryOfOrigin?: string | undefined;
|
|
711
|
+
description?: string | undefined;
|
|
712
|
+
harmonizedTariffCode?: string | undefined;
|
|
713
|
+
productId?: string | undefined;
|
|
714
|
+
value: {
|
|
715
|
+
amount: number;
|
|
716
|
+
currency: SE.Currency;
|
|
717
|
+
};
|
|
718
|
+
quantity: number;
|
|
719
|
+
}, {
|
|
720
|
+
countryOfOrigin?: string | null | undefined;
|
|
721
|
+
description?: string | null | undefined;
|
|
722
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
723
|
+
productId?: string | null | undefined;
|
|
724
|
+
value: {
|
|
725
|
+
amount: number;
|
|
726
|
+
currency: SE.Currency;
|
|
727
|
+
};
|
|
728
|
+
quantity: number;
|
|
729
|
+
}>, "many">;
|
|
645
730
|
type: z.ZodObject<{
|
|
646
731
|
carrierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
647
732
|
code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -741,6 +826,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
741
826
|
code?: string | null | undefined;
|
|
742
827
|
carrierId?: string | null | undefined;
|
|
743
828
|
};
|
|
829
|
+
products: {
|
|
830
|
+
countryOfOrigin?: string | undefined;
|
|
831
|
+
description?: string | undefined;
|
|
832
|
+
harmonizedTariffCode?: string | undefined;
|
|
833
|
+
productId?: string | undefined;
|
|
834
|
+
value: {
|
|
835
|
+
amount: number;
|
|
836
|
+
currency: SE.Currency;
|
|
837
|
+
};
|
|
838
|
+
quantity: number;
|
|
839
|
+
}[];
|
|
744
840
|
}, {
|
|
745
841
|
contentDescription?: string | null | undefined;
|
|
746
842
|
dimensions?: {
|
|
@@ -763,6 +859,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
763
859
|
code?: string | null | undefined;
|
|
764
860
|
carrierId?: string | null | undefined;
|
|
765
861
|
};
|
|
862
|
+
products: {
|
|
863
|
+
countryOfOrigin?: string | null | undefined;
|
|
864
|
+
description?: string | null | undefined;
|
|
865
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
866
|
+
productId?: string | null | undefined;
|
|
867
|
+
value: {
|
|
868
|
+
amount: number;
|
|
869
|
+
currency: SE.Currency;
|
|
870
|
+
};
|
|
871
|
+
quantity: number;
|
|
872
|
+
}[];
|
|
766
873
|
}>, "many">;
|
|
767
874
|
service: z.ZodObject<{
|
|
768
875
|
carrierId: z.ZodString;
|
|
@@ -781,14 +888,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
781
888
|
carrierId?: string | null | undefined;
|
|
782
889
|
customs?: {
|
|
783
890
|
contents: SE.CustomsContentsType;
|
|
784
|
-
customsItems: {
|
|
785
|
-
countryOfOrigin?: string | undefined;
|
|
786
|
-
customsItemId?: string | undefined;
|
|
787
|
-
description?: string | undefined;
|
|
788
|
-
harmonizedTariffCode?: string | undefined;
|
|
789
|
-
value: number;
|
|
790
|
-
quantity: number;
|
|
791
|
-
}[];
|
|
792
891
|
nonDelivery: SE.CustomsNonDeliveryType;
|
|
793
892
|
} | null | undefined;
|
|
794
893
|
shipmentId?: string | undefined;
|
|
@@ -817,6 +916,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
817
916
|
code?: string | null | undefined;
|
|
818
917
|
carrierId?: string | null | undefined;
|
|
819
918
|
};
|
|
919
|
+
products: {
|
|
920
|
+
countryOfOrigin?: string | undefined;
|
|
921
|
+
description?: string | undefined;
|
|
922
|
+
harmonizedTariffCode?: string | undefined;
|
|
923
|
+
productId?: string | undefined;
|
|
924
|
+
value: {
|
|
925
|
+
amount: number;
|
|
926
|
+
currency: SE.Currency;
|
|
927
|
+
};
|
|
928
|
+
quantity: number;
|
|
929
|
+
}[];
|
|
820
930
|
}[];
|
|
821
931
|
service: {
|
|
822
932
|
carrierId: string;
|
|
@@ -832,14 +942,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
832
942
|
confirmation?: SE.ConfirmationType | undefined;
|
|
833
943
|
customs?: {
|
|
834
944
|
contents: SE.CustomsContentsType;
|
|
835
|
-
customsItems: {
|
|
836
|
-
countryOfOrigin?: string | null | undefined;
|
|
837
|
-
customsItemId?: string | null | undefined;
|
|
838
|
-
description?: string | null | undefined;
|
|
839
|
-
harmonizedTariffCode?: string | null | undefined;
|
|
840
|
-
value: number;
|
|
841
|
-
quantity: number;
|
|
842
|
-
}[];
|
|
843
945
|
nonDelivery: SE.CustomsNonDeliveryType;
|
|
844
946
|
} | null | undefined;
|
|
845
947
|
insuranceProvider?: SE.InsuranceProviderType | undefined;
|
|
@@ -867,6 +969,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
867
969
|
code?: string | null | undefined;
|
|
868
970
|
carrierId?: string | null | undefined;
|
|
869
971
|
};
|
|
972
|
+
products: {
|
|
973
|
+
countryOfOrigin?: string | null | undefined;
|
|
974
|
+
description?: string | null | undefined;
|
|
975
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
976
|
+
productId?: string | null | undefined;
|
|
977
|
+
value: {
|
|
978
|
+
amount: number;
|
|
979
|
+
currency: SE.Currency;
|
|
980
|
+
};
|
|
981
|
+
quantity: number;
|
|
982
|
+
}[];
|
|
870
983
|
}[];
|
|
871
984
|
service: {
|
|
872
985
|
carrierId: string;
|
|
@@ -878,14 +991,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
878
991
|
carrierId: string | undefined;
|
|
879
992
|
customs: {
|
|
880
993
|
contents: SE.CustomsContentsType;
|
|
881
|
-
customsItems: {
|
|
882
|
-
countryOfOrigin?: string | undefined;
|
|
883
|
-
customsItemId?: string | undefined;
|
|
884
|
-
description?: string | undefined;
|
|
885
|
-
harmonizedTariffCode?: string | undefined;
|
|
886
|
-
value: number;
|
|
887
|
-
quantity: number;
|
|
888
|
-
}[];
|
|
889
994
|
nonDelivery: SE.CustomsNonDeliveryType;
|
|
890
995
|
} | null | undefined;
|
|
891
996
|
packages: ({
|
|
@@ -910,6 +1015,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
910
1015
|
amount: number;
|
|
911
1016
|
currency: SE.Currency;
|
|
912
1017
|
} | undefined;
|
|
1018
|
+
products: {
|
|
1019
|
+
countryOfOrigin?: string | undefined;
|
|
1020
|
+
description?: string | undefined;
|
|
1021
|
+
harmonizedTariffCode?: string | undefined;
|
|
1022
|
+
productId?: string | undefined;
|
|
1023
|
+
value: {
|
|
1024
|
+
amount: number;
|
|
1025
|
+
currency: SE.Currency;
|
|
1026
|
+
};
|
|
1027
|
+
quantity: number;
|
|
1028
|
+
}[];
|
|
913
1029
|
} | {
|
|
914
1030
|
packageId: string | null | undefined;
|
|
915
1031
|
weight?: {
|
|
@@ -921,6 +1037,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
921
1037
|
amount: number;
|
|
922
1038
|
currency: SE.Currency;
|
|
923
1039
|
} | undefined;
|
|
1040
|
+
products: {
|
|
1041
|
+
countryOfOrigin?: string | undefined;
|
|
1042
|
+
description?: string | undefined;
|
|
1043
|
+
harmonizedTariffCode?: string | undefined;
|
|
1044
|
+
productId?: string | undefined;
|
|
1045
|
+
value: {
|
|
1046
|
+
amount: number;
|
|
1047
|
+
currency: SE.Currency;
|
|
1048
|
+
};
|
|
1049
|
+
quantity: number;
|
|
1050
|
+
}[];
|
|
924
1051
|
} | {
|
|
925
1052
|
dimensions: {
|
|
926
1053
|
unit: SE.DimensionUnit;
|
|
@@ -943,6 +1070,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
943
1070
|
amount: number;
|
|
944
1071
|
currency: SE.Currency;
|
|
945
1072
|
} | undefined;
|
|
1073
|
+
products: {
|
|
1074
|
+
countryOfOrigin?: string | undefined;
|
|
1075
|
+
description?: string | undefined;
|
|
1076
|
+
harmonizedTariffCode?: string | undefined;
|
|
1077
|
+
productId?: string | undefined;
|
|
1078
|
+
value: {
|
|
1079
|
+
amount: number;
|
|
1080
|
+
currency: SE.Currency;
|
|
1081
|
+
};
|
|
1082
|
+
quantity: number;
|
|
1083
|
+
}[];
|
|
946
1084
|
} | {
|
|
947
1085
|
packageId: string | null | undefined;
|
|
948
1086
|
weight?: {
|
|
@@ -954,6 +1092,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
954
1092
|
amount: number;
|
|
955
1093
|
currency: SE.Currency;
|
|
956
1094
|
} | undefined;
|
|
1095
|
+
products: {
|
|
1096
|
+
countryOfOrigin?: string | undefined;
|
|
1097
|
+
description?: string | undefined;
|
|
1098
|
+
harmonizedTariffCode?: string | undefined;
|
|
1099
|
+
productId?: string | undefined;
|
|
1100
|
+
value: {
|
|
1101
|
+
amount: number;
|
|
1102
|
+
currency: SE.Currency;
|
|
1103
|
+
};
|
|
1104
|
+
quantity: number;
|
|
1105
|
+
}[];
|
|
957
1106
|
})[];
|
|
958
1107
|
serviceCode: string | undefined;
|
|
959
1108
|
advancedOptions?: {
|
|
@@ -969,14 +1118,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
969
1118
|
carrierId: string | undefined;
|
|
970
1119
|
customs: {
|
|
971
1120
|
contents: SE.CustomsContentsType;
|
|
972
|
-
customsItems: {
|
|
973
|
-
countryOfOrigin?: string | undefined;
|
|
974
|
-
customsItemId?: string | undefined;
|
|
975
|
-
description?: string | undefined;
|
|
976
|
-
harmonizedTariffCode?: string | undefined;
|
|
977
|
-
value: number;
|
|
978
|
-
quantity: number;
|
|
979
|
-
}[];
|
|
980
1121
|
nonDelivery: SE.CustomsNonDeliveryType;
|
|
981
1122
|
} | null | undefined;
|
|
982
1123
|
packages: ({
|
|
@@ -1001,6 +1142,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1001
1142
|
amount: number;
|
|
1002
1143
|
currency: SE.Currency;
|
|
1003
1144
|
} | undefined;
|
|
1145
|
+
products: {
|
|
1146
|
+
countryOfOrigin?: string | undefined;
|
|
1147
|
+
description?: string | undefined;
|
|
1148
|
+
harmonizedTariffCode?: string | undefined;
|
|
1149
|
+
productId?: string | undefined;
|
|
1150
|
+
value: {
|
|
1151
|
+
amount: number;
|
|
1152
|
+
currency: SE.Currency;
|
|
1153
|
+
};
|
|
1154
|
+
quantity: number;
|
|
1155
|
+
}[];
|
|
1004
1156
|
} | {
|
|
1005
1157
|
packageId: string | null | undefined;
|
|
1006
1158
|
weight?: {
|
|
@@ -1012,6 +1164,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1012
1164
|
amount: number;
|
|
1013
1165
|
currency: SE.Currency;
|
|
1014
1166
|
} | undefined;
|
|
1167
|
+
products: {
|
|
1168
|
+
countryOfOrigin?: string | undefined;
|
|
1169
|
+
description?: string | undefined;
|
|
1170
|
+
harmonizedTariffCode?: string | undefined;
|
|
1171
|
+
productId?: string | undefined;
|
|
1172
|
+
value: {
|
|
1173
|
+
amount: number;
|
|
1174
|
+
currency: SE.Currency;
|
|
1175
|
+
};
|
|
1176
|
+
quantity: number;
|
|
1177
|
+
}[];
|
|
1015
1178
|
} | {
|
|
1016
1179
|
dimensions: {
|
|
1017
1180
|
unit: SE.DimensionUnit;
|
|
@@ -1034,6 +1197,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1034
1197
|
amount: number;
|
|
1035
1198
|
currency: SE.Currency;
|
|
1036
1199
|
} | undefined;
|
|
1200
|
+
products: {
|
|
1201
|
+
countryOfOrigin?: string | undefined;
|
|
1202
|
+
description?: string | undefined;
|
|
1203
|
+
harmonizedTariffCode?: string | undefined;
|
|
1204
|
+
productId?: string | undefined;
|
|
1205
|
+
value: {
|
|
1206
|
+
amount: number;
|
|
1207
|
+
currency: SE.Currency;
|
|
1208
|
+
};
|
|
1209
|
+
quantity: number;
|
|
1210
|
+
}[];
|
|
1037
1211
|
} | {
|
|
1038
1212
|
packageId: string | null | undefined;
|
|
1039
1213
|
weight?: {
|
|
@@ -1045,6 +1219,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1045
1219
|
amount: number;
|
|
1046
1220
|
currency: SE.Currency;
|
|
1047
1221
|
} | undefined;
|
|
1222
|
+
products: {
|
|
1223
|
+
countryOfOrigin?: string | undefined;
|
|
1224
|
+
description?: string | undefined;
|
|
1225
|
+
harmonizedTariffCode?: string | undefined;
|
|
1226
|
+
productId?: string | undefined;
|
|
1227
|
+
value: {
|
|
1228
|
+
amount: number;
|
|
1229
|
+
currency: SE.Currency;
|
|
1230
|
+
};
|
|
1231
|
+
quantity: number;
|
|
1232
|
+
}[];
|
|
1048
1233
|
})[];
|
|
1049
1234
|
serviceCode: string | undefined;
|
|
1050
1235
|
advancedOptions?: {
|
|
@@ -1064,14 +1249,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1064
1249
|
confirmation?: SE.ConfirmationType | undefined;
|
|
1065
1250
|
customs?: {
|
|
1066
1251
|
contents: SE.CustomsContentsType;
|
|
1067
|
-
customsItems: {
|
|
1068
|
-
countryOfOrigin?: string | null | undefined;
|
|
1069
|
-
customsItemId?: string | null | undefined;
|
|
1070
|
-
description?: string | null | undefined;
|
|
1071
|
-
harmonizedTariffCode?: string | null | undefined;
|
|
1072
|
-
value: number;
|
|
1073
|
-
quantity: number;
|
|
1074
|
-
}[];
|
|
1075
1252
|
nonDelivery: SE.CustomsNonDeliveryType;
|
|
1076
1253
|
} | null | undefined;
|
|
1077
1254
|
insuranceProvider?: SE.InsuranceProviderType | undefined;
|
|
@@ -1107,6 +1284,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1107
1284
|
code?: string | null | undefined;
|
|
1108
1285
|
carrierId?: string | null | undefined;
|
|
1109
1286
|
};
|
|
1287
|
+
products: {
|
|
1288
|
+
countryOfOrigin?: string | null | undefined;
|
|
1289
|
+
description?: string | null | undefined;
|
|
1290
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
1291
|
+
productId?: string | null | undefined;
|
|
1292
|
+
value: {
|
|
1293
|
+
amount: number;
|
|
1294
|
+
currency: SE.Currency;
|
|
1295
|
+
};
|
|
1296
|
+
quantity: number;
|
|
1297
|
+
}[];
|
|
1110
1298
|
}[];
|
|
1111
1299
|
shipDate: string;
|
|
1112
1300
|
warehouseId: string;
|
|
@@ -1118,14 +1306,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1118
1306
|
confirmation?: SE.ConfirmationType | undefined;
|
|
1119
1307
|
customs?: {
|
|
1120
1308
|
contents: SE.CustomsContentsType;
|
|
1121
|
-
customsItems: {
|
|
1122
|
-
countryOfOrigin?: string | null | undefined;
|
|
1123
|
-
customsItemId?: string | null | undefined;
|
|
1124
|
-
description?: string | null | undefined;
|
|
1125
|
-
harmonizedTariffCode?: string | null | undefined;
|
|
1126
|
-
value: number;
|
|
1127
|
-
quantity: number;
|
|
1128
|
-
}[];
|
|
1129
1309
|
nonDelivery: SE.CustomsNonDeliveryType;
|
|
1130
1310
|
} | null | undefined;
|
|
1131
1311
|
insuranceProvider?: SE.InsuranceProviderType | undefined;
|
|
@@ -1153,6 +1333,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1153
1333
|
code?: string | null | undefined;
|
|
1154
1334
|
carrierId?: string | null | undefined;
|
|
1155
1335
|
};
|
|
1336
|
+
products: {
|
|
1337
|
+
countryOfOrigin?: string | null | undefined;
|
|
1338
|
+
description?: string | null | undefined;
|
|
1339
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
1340
|
+
productId?: string | null | undefined;
|
|
1341
|
+
value: {
|
|
1342
|
+
amount: number;
|
|
1343
|
+
currency: SE.Currency;
|
|
1344
|
+
};
|
|
1345
|
+
quantity: number;
|
|
1346
|
+
}[];
|
|
1156
1347
|
}[];
|
|
1157
1348
|
service: {
|
|
1158
1349
|
carrierId: string;
|