@shipengine/elements 1.3.0 → 1.3.2
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 +1166 -1090
- package/index.js +1165 -1094
- package/package.json +1 -1
- package/src/components/templates/shipment-form/shipment-schema.d.ts +380 -153
- package/src/elements/purchase-label/purchase-label.d.ts +38 -49
- package/src/utilities/date.d.ts +46 -5
- package/src/utilities/i18nDateUtils.d.ts +0 -16
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { SE } from "@shipengine/alchemy";
|
|
3
3
|
type GetShipmentSchemaOptions = {
|
|
4
|
-
allowInternationalShipFrom?: boolean;
|
|
5
4
|
dimensionsUnit?: SE.DimensionUnit;
|
|
6
5
|
isContentDescriptionRequired?: boolean;
|
|
7
6
|
isCustomsRequired?: boolean;
|
|
@@ -9,7 +8,7 @@ type GetShipmentSchemaOptions = {
|
|
|
9
8
|
warehouses?: SE.Warehouse[];
|
|
10
9
|
weightUnit?: SE.WeightUnit;
|
|
11
10
|
};
|
|
12
|
-
export declare const getShipmentSchema: ({
|
|
11
|
+
export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionRequired, isCustomsRequired, requireMeasurements, warehouses, weightUnit, }?: GetShipmentSchemaOptions) => z.ZodEffects<z.ZodDiscriminatedUnion<"__mode", z.Primitive, z.ZodObject<z.extendShape<{
|
|
13
12
|
advancedOptions: z.ZodOptional<z.ZodObject<{
|
|
14
13
|
additionalHandling: z.ZodOptional<z.ZodBoolean>;
|
|
15
14
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -133,7 +132,43 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
133
132
|
currency: SE.Currency;
|
|
134
133
|
};
|
|
135
134
|
quantity: number;
|
|
136
|
-
}>, "many"
|
|
135
|
+
}>, "many"> | z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
136
|
+
countryOfOrigin: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
137
|
+
description: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
138
|
+
harmonizedTariffCode: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
139
|
+
productId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
140
|
+
quantity: z.ZodNumber;
|
|
141
|
+
value: z.ZodObject<{
|
|
142
|
+
amount: z.ZodNumber;
|
|
143
|
+
currency: z.ZodNativeEnum<typeof SE.Currency>;
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
amount: number;
|
|
146
|
+
currency: SE.Currency;
|
|
147
|
+
}, {
|
|
148
|
+
amount: number;
|
|
149
|
+
currency: SE.Currency;
|
|
150
|
+
}>;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
countryOfOrigin?: string | undefined;
|
|
153
|
+
description?: string | undefined;
|
|
154
|
+
harmonizedTariffCode?: string | undefined;
|
|
155
|
+
productId?: string | undefined;
|
|
156
|
+
value: {
|
|
157
|
+
amount: number;
|
|
158
|
+
currency: SE.Currency;
|
|
159
|
+
};
|
|
160
|
+
quantity: number;
|
|
161
|
+
}, {
|
|
162
|
+
countryOfOrigin?: string | null | undefined;
|
|
163
|
+
description?: string | null | undefined;
|
|
164
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
165
|
+
productId?: string | null | undefined;
|
|
166
|
+
value: {
|
|
167
|
+
amount: number;
|
|
168
|
+
currency: SE.Currency;
|
|
169
|
+
};
|
|
170
|
+
quantity: number;
|
|
171
|
+
}>, "many">>>;
|
|
137
172
|
type: z.ZodObject<{
|
|
138
173
|
carrierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
139
174
|
code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -192,12 +227,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
192
227
|
amount: number;
|
|
193
228
|
currency: SE.Currency;
|
|
194
229
|
} | undefined;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
230
|
+
products?: {
|
|
231
|
+
countryOfOrigin?: string | undefined;
|
|
232
|
+
description?: string | undefined;
|
|
233
|
+
harmonizedTariffCode?: string | undefined;
|
|
234
|
+
productId?: string | undefined;
|
|
235
|
+
value: {
|
|
236
|
+
amount: number;
|
|
237
|
+
currency: SE.Currency;
|
|
238
|
+
};
|
|
239
|
+
quantity: number;
|
|
240
|
+
}[] | {
|
|
201
241
|
countryOfOrigin?: string | undefined;
|
|
202
242
|
description?: string | undefined;
|
|
203
243
|
harmonizedTariffCode?: string | undefined;
|
|
@@ -207,7 +247,12 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
207
247
|
currency: SE.Currency;
|
|
208
248
|
};
|
|
209
249
|
quantity: number;
|
|
210
|
-
}[];
|
|
250
|
+
}[] | null | undefined;
|
|
251
|
+
weight?: SE.WeightWithUnit | undefined;
|
|
252
|
+
type: {
|
|
253
|
+
code?: string | null | undefined;
|
|
254
|
+
carrierId?: string | null | undefined;
|
|
255
|
+
};
|
|
211
256
|
}, {
|
|
212
257
|
contentDescription?: string | null | undefined;
|
|
213
258
|
dimensions?: {
|
|
@@ -223,6 +268,27 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
223
268
|
amount: number;
|
|
224
269
|
currency: SE.Currency;
|
|
225
270
|
} | undefined;
|
|
271
|
+
products?: {
|
|
272
|
+
countryOfOrigin?: string | null | undefined;
|
|
273
|
+
description?: string | null | undefined;
|
|
274
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
275
|
+
productId?: string | null | undefined;
|
|
276
|
+
value: {
|
|
277
|
+
amount: number;
|
|
278
|
+
currency: SE.Currency;
|
|
279
|
+
};
|
|
280
|
+
quantity: number;
|
|
281
|
+
}[] | {
|
|
282
|
+
countryOfOrigin?: string | null | undefined;
|
|
283
|
+
description?: string | null | undefined;
|
|
284
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
285
|
+
productId?: string | null | undefined;
|
|
286
|
+
value: {
|
|
287
|
+
amount: number;
|
|
288
|
+
currency: SE.Currency;
|
|
289
|
+
};
|
|
290
|
+
quantity: number;
|
|
291
|
+
}[] | null | undefined;
|
|
226
292
|
weight?: {
|
|
227
293
|
fractional?: number | null | undefined;
|
|
228
294
|
whole?: number | null | undefined;
|
|
@@ -234,17 +300,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
234
300
|
code?: string | null | undefined;
|
|
235
301
|
carrierId?: string | null | undefined;
|
|
236
302
|
};
|
|
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
|
-
}[];
|
|
248
303
|
}>, "many">;
|
|
249
304
|
service: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
250
305
|
carrierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -258,7 +313,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
258
313
|
}>>>;
|
|
259
314
|
shipDate: z.ZodString;
|
|
260
315
|
shipmentId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
261
|
-
warehouseId: z.ZodEffects<z.
|
|
316
|
+
warehouseId: z.ZodEffects<z.ZodString, string, string>;
|
|
262
317
|
}, {
|
|
263
318
|
__mode: z.ZodLiteral<"browse_rates">;
|
|
264
319
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -295,12 +350,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
295
350
|
amount: number;
|
|
296
351
|
currency: SE.Currency;
|
|
297
352
|
} | undefined;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
353
|
+
products?: {
|
|
354
|
+
countryOfOrigin?: string | undefined;
|
|
355
|
+
description?: string | undefined;
|
|
356
|
+
harmonizedTariffCode?: string | undefined;
|
|
357
|
+
productId?: string | undefined;
|
|
358
|
+
value: {
|
|
359
|
+
amount: number;
|
|
360
|
+
currency: SE.Currency;
|
|
361
|
+
};
|
|
362
|
+
quantity: number;
|
|
363
|
+
}[] | {
|
|
304
364
|
countryOfOrigin?: string | undefined;
|
|
305
365
|
description?: string | undefined;
|
|
306
366
|
harmonizedTariffCode?: string | undefined;
|
|
@@ -310,7 +370,12 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
310
370
|
currency: SE.Currency;
|
|
311
371
|
};
|
|
312
372
|
quantity: number;
|
|
313
|
-
}[];
|
|
373
|
+
}[] | null | undefined;
|
|
374
|
+
weight?: SE.WeightWithUnit | undefined;
|
|
375
|
+
type: {
|
|
376
|
+
code?: string | null | undefined;
|
|
377
|
+
carrierId?: string | null | undefined;
|
|
378
|
+
};
|
|
314
379
|
}[];
|
|
315
380
|
shipDate: string;
|
|
316
381
|
warehouseId: string;
|
|
@@ -346,6 +411,27 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
346
411
|
amount: number;
|
|
347
412
|
currency: SE.Currency;
|
|
348
413
|
} | undefined;
|
|
414
|
+
products?: {
|
|
415
|
+
countryOfOrigin?: string | null | undefined;
|
|
416
|
+
description?: string | null | undefined;
|
|
417
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
418
|
+
productId?: string | null | undefined;
|
|
419
|
+
value: {
|
|
420
|
+
amount: number;
|
|
421
|
+
currency: SE.Currency;
|
|
422
|
+
};
|
|
423
|
+
quantity: number;
|
|
424
|
+
}[] | {
|
|
425
|
+
countryOfOrigin?: string | null | undefined;
|
|
426
|
+
description?: string | null | undefined;
|
|
427
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
428
|
+
productId?: string | null | undefined;
|
|
429
|
+
value: {
|
|
430
|
+
amount: number;
|
|
431
|
+
currency: SE.Currency;
|
|
432
|
+
};
|
|
433
|
+
quantity: number;
|
|
434
|
+
}[] | null | undefined;
|
|
349
435
|
weight?: {
|
|
350
436
|
fractional?: number | null | undefined;
|
|
351
437
|
whole?: number | null | undefined;
|
|
@@ -357,17 +443,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
357
443
|
code?: string | null | undefined;
|
|
358
444
|
carrierId?: string | null | undefined;
|
|
359
445
|
};
|
|
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
|
-
}[];
|
|
371
446
|
}[];
|
|
372
447
|
shipDate: string;
|
|
373
448
|
warehouseId: string;
|
|
@@ -495,7 +570,43 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
495
570
|
currency: SE.Currency;
|
|
496
571
|
};
|
|
497
572
|
quantity: number;
|
|
498
|
-
}>, "many"
|
|
573
|
+
}>, "many"> | z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
574
|
+
countryOfOrigin: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
575
|
+
description: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
576
|
+
harmonizedTariffCode: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
577
|
+
productId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
578
|
+
quantity: z.ZodNumber;
|
|
579
|
+
value: z.ZodObject<{
|
|
580
|
+
amount: z.ZodNumber;
|
|
581
|
+
currency: z.ZodNativeEnum<typeof SE.Currency>;
|
|
582
|
+
}, "strip", z.ZodTypeAny, {
|
|
583
|
+
amount: number;
|
|
584
|
+
currency: SE.Currency;
|
|
585
|
+
}, {
|
|
586
|
+
amount: number;
|
|
587
|
+
currency: SE.Currency;
|
|
588
|
+
}>;
|
|
589
|
+
}, "strip", z.ZodTypeAny, {
|
|
590
|
+
countryOfOrigin?: string | undefined;
|
|
591
|
+
description?: string | undefined;
|
|
592
|
+
harmonizedTariffCode?: string | undefined;
|
|
593
|
+
productId?: string | undefined;
|
|
594
|
+
value: {
|
|
595
|
+
amount: number;
|
|
596
|
+
currency: SE.Currency;
|
|
597
|
+
};
|
|
598
|
+
quantity: number;
|
|
599
|
+
}, {
|
|
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
|
+
}>, "many">>>;
|
|
499
610
|
type: z.ZodObject<{
|
|
500
611
|
carrierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
501
612
|
code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -554,12 +665,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
554
665
|
amount: number;
|
|
555
666
|
currency: SE.Currency;
|
|
556
667
|
} | undefined;
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
668
|
+
products?: {
|
|
669
|
+
countryOfOrigin?: string | undefined;
|
|
670
|
+
description?: string | undefined;
|
|
671
|
+
harmonizedTariffCode?: string | undefined;
|
|
672
|
+
productId?: string | undefined;
|
|
673
|
+
value: {
|
|
674
|
+
amount: number;
|
|
675
|
+
currency: SE.Currency;
|
|
676
|
+
};
|
|
677
|
+
quantity: number;
|
|
678
|
+
}[] | {
|
|
563
679
|
countryOfOrigin?: string | undefined;
|
|
564
680
|
description?: string | undefined;
|
|
565
681
|
harmonizedTariffCode?: string | undefined;
|
|
@@ -569,7 +685,12 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
569
685
|
currency: SE.Currency;
|
|
570
686
|
};
|
|
571
687
|
quantity: number;
|
|
572
|
-
}[];
|
|
688
|
+
}[] | null | undefined;
|
|
689
|
+
weight?: SE.WeightWithUnit | undefined;
|
|
690
|
+
type: {
|
|
691
|
+
code?: string | null | undefined;
|
|
692
|
+
carrierId?: string | null | undefined;
|
|
693
|
+
};
|
|
573
694
|
}, {
|
|
574
695
|
contentDescription?: string | null | undefined;
|
|
575
696
|
dimensions?: {
|
|
@@ -585,6 +706,27 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
585
706
|
amount: number;
|
|
586
707
|
currency: SE.Currency;
|
|
587
708
|
} | undefined;
|
|
709
|
+
products?: {
|
|
710
|
+
countryOfOrigin?: string | null | undefined;
|
|
711
|
+
description?: string | null | undefined;
|
|
712
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
713
|
+
productId?: string | null | 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
|
+
}[] | null | undefined;
|
|
588
730
|
weight?: {
|
|
589
731
|
fractional?: number | null | undefined;
|
|
590
732
|
whole?: number | null | undefined;
|
|
@@ -596,17 +738,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
596
738
|
code?: string | null | undefined;
|
|
597
739
|
carrierId?: string | null | undefined;
|
|
598
740
|
};
|
|
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
|
-
}[];
|
|
610
741
|
}>, "many">;
|
|
611
742
|
service: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
612
743
|
carrierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -620,7 +751,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
620
751
|
}>>>;
|
|
621
752
|
shipDate: z.ZodString;
|
|
622
753
|
shipmentId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
623
|
-
warehouseId: z.ZodEffects<z.
|
|
754
|
+
warehouseId: z.ZodEffects<z.ZodString, string, string>;
|
|
624
755
|
}, {
|
|
625
756
|
__mode: z.ZodLiteral<"select_service">;
|
|
626
757
|
packages: z.ZodArray<z.ZodObject<z.extendShape<{
|
|
@@ -726,7 +857,43 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
726
857
|
currency: SE.Currency;
|
|
727
858
|
};
|
|
728
859
|
quantity: number;
|
|
729
|
-
}>, "many"
|
|
860
|
+
}>, "many"> | z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
861
|
+
countryOfOrigin: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
862
|
+
description: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
863
|
+
harmonizedTariffCode: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
864
|
+
productId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
865
|
+
quantity: z.ZodNumber;
|
|
866
|
+
value: z.ZodObject<{
|
|
867
|
+
amount: z.ZodNumber;
|
|
868
|
+
currency: z.ZodNativeEnum<typeof SE.Currency>;
|
|
869
|
+
}, "strip", z.ZodTypeAny, {
|
|
870
|
+
amount: number;
|
|
871
|
+
currency: SE.Currency;
|
|
872
|
+
}, {
|
|
873
|
+
amount: number;
|
|
874
|
+
currency: SE.Currency;
|
|
875
|
+
}>;
|
|
876
|
+
}, "strip", z.ZodTypeAny, {
|
|
877
|
+
countryOfOrigin?: string | undefined;
|
|
878
|
+
description?: string | undefined;
|
|
879
|
+
harmonizedTariffCode?: string | undefined;
|
|
880
|
+
productId?: string | undefined;
|
|
881
|
+
value: {
|
|
882
|
+
amount: number;
|
|
883
|
+
currency: SE.Currency;
|
|
884
|
+
};
|
|
885
|
+
quantity: number;
|
|
886
|
+
}, {
|
|
887
|
+
countryOfOrigin?: string | null | undefined;
|
|
888
|
+
description?: string | null | undefined;
|
|
889
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
890
|
+
productId?: string | null | undefined;
|
|
891
|
+
value: {
|
|
892
|
+
amount: number;
|
|
893
|
+
currency: SE.Currency;
|
|
894
|
+
};
|
|
895
|
+
quantity: number;
|
|
896
|
+
}>, "many">>>;
|
|
730
897
|
type: z.ZodObject<{
|
|
731
898
|
carrierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
732
899
|
code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -821,12 +988,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
821
988
|
amount: number;
|
|
822
989
|
currency: SE.Currency;
|
|
823
990
|
} | undefined;
|
|
824
|
-
|
|
825
|
-
type: {
|
|
826
|
-
code?: string | null | undefined;
|
|
827
|
-
carrierId?: string | null | undefined;
|
|
828
|
-
};
|
|
829
|
-
products: {
|
|
991
|
+
products?: {
|
|
830
992
|
countryOfOrigin?: string | undefined;
|
|
831
993
|
description?: string | undefined;
|
|
832
994
|
harmonizedTariffCode?: string | undefined;
|
|
@@ -836,7 +998,22 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
836
998
|
currency: SE.Currency;
|
|
837
999
|
};
|
|
838
1000
|
quantity: number;
|
|
839
|
-
}[]
|
|
1001
|
+
}[] | {
|
|
1002
|
+
countryOfOrigin?: string | undefined;
|
|
1003
|
+
description?: string | undefined;
|
|
1004
|
+
harmonizedTariffCode?: string | undefined;
|
|
1005
|
+
productId?: string | undefined;
|
|
1006
|
+
value: {
|
|
1007
|
+
amount: number;
|
|
1008
|
+
currency: SE.Currency;
|
|
1009
|
+
};
|
|
1010
|
+
quantity: number;
|
|
1011
|
+
}[] | null | undefined;
|
|
1012
|
+
weight?: SE.WeightWithUnit | undefined;
|
|
1013
|
+
type: {
|
|
1014
|
+
code?: string | null | undefined;
|
|
1015
|
+
carrierId?: string | null | undefined;
|
|
1016
|
+
};
|
|
840
1017
|
}, {
|
|
841
1018
|
contentDescription?: string | null | undefined;
|
|
842
1019
|
dimensions?: {
|
|
@@ -848,6 +1025,27 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
848
1025
|
amount: number;
|
|
849
1026
|
currency: SE.Currency;
|
|
850
1027
|
} | undefined;
|
|
1028
|
+
products?: {
|
|
1029
|
+
countryOfOrigin?: string | null | undefined;
|
|
1030
|
+
description?: string | null | undefined;
|
|
1031
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
1032
|
+
productId?: string | null | undefined;
|
|
1033
|
+
value: {
|
|
1034
|
+
amount: number;
|
|
1035
|
+
currency: SE.Currency;
|
|
1036
|
+
};
|
|
1037
|
+
quantity: number;
|
|
1038
|
+
}[] | {
|
|
1039
|
+
countryOfOrigin?: string | null | undefined;
|
|
1040
|
+
description?: string | null | undefined;
|
|
1041
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
1042
|
+
productId?: string | null | undefined;
|
|
1043
|
+
value: {
|
|
1044
|
+
amount: number;
|
|
1045
|
+
currency: SE.Currency;
|
|
1046
|
+
};
|
|
1047
|
+
quantity: number;
|
|
1048
|
+
}[] | null | undefined;
|
|
851
1049
|
weight?: {
|
|
852
1050
|
fractional?: number | null | undefined;
|
|
853
1051
|
whole?: number | null | undefined;
|
|
@@ -859,17 +1057,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
859
1057
|
code?: string | null | undefined;
|
|
860
1058
|
carrierId?: string | null | undefined;
|
|
861
1059
|
};
|
|
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
|
-
}[];
|
|
873
1060
|
}>, "many">;
|
|
874
1061
|
service: z.ZodObject<{
|
|
875
1062
|
carrierId: z.ZodString;
|
|
@@ -911,12 +1098,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
911
1098
|
amount: number;
|
|
912
1099
|
currency: SE.Currency;
|
|
913
1100
|
} | undefined;
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
1101
|
+
products?: {
|
|
1102
|
+
countryOfOrigin?: string | undefined;
|
|
1103
|
+
description?: string | undefined;
|
|
1104
|
+
harmonizedTariffCode?: string | undefined;
|
|
1105
|
+
productId?: string | undefined;
|
|
1106
|
+
value: {
|
|
1107
|
+
amount: number;
|
|
1108
|
+
currency: SE.Currency;
|
|
1109
|
+
};
|
|
1110
|
+
quantity: number;
|
|
1111
|
+
}[] | {
|
|
920
1112
|
countryOfOrigin?: string | undefined;
|
|
921
1113
|
description?: string | undefined;
|
|
922
1114
|
harmonizedTariffCode?: string | undefined;
|
|
@@ -926,7 +1118,12 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
926
1118
|
currency: SE.Currency;
|
|
927
1119
|
};
|
|
928
1120
|
quantity: number;
|
|
929
|
-
}[];
|
|
1121
|
+
}[] | null | undefined;
|
|
1122
|
+
weight?: SE.WeightWithUnit | undefined;
|
|
1123
|
+
type: {
|
|
1124
|
+
code?: string | null | undefined;
|
|
1125
|
+
carrierId?: string | null | undefined;
|
|
1126
|
+
};
|
|
930
1127
|
}[];
|
|
931
1128
|
service: {
|
|
932
1129
|
carrierId: string;
|
|
@@ -958,6 +1155,27 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
958
1155
|
amount: number;
|
|
959
1156
|
currency: SE.Currency;
|
|
960
1157
|
} | undefined;
|
|
1158
|
+
products?: {
|
|
1159
|
+
countryOfOrigin?: string | null | undefined;
|
|
1160
|
+
description?: string | null | undefined;
|
|
1161
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
1162
|
+
productId?: string | null | undefined;
|
|
1163
|
+
value: {
|
|
1164
|
+
amount: number;
|
|
1165
|
+
currency: SE.Currency;
|
|
1166
|
+
};
|
|
1167
|
+
quantity: number;
|
|
1168
|
+
}[] | {
|
|
1169
|
+
countryOfOrigin?: string | null | undefined;
|
|
1170
|
+
description?: string | null | undefined;
|
|
1171
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
1172
|
+
productId?: string | null | undefined;
|
|
1173
|
+
value: {
|
|
1174
|
+
amount: number;
|
|
1175
|
+
currency: SE.Currency;
|
|
1176
|
+
};
|
|
1177
|
+
quantity: number;
|
|
1178
|
+
}[] | null | undefined;
|
|
961
1179
|
weight?: {
|
|
962
1180
|
fractional?: number | null | undefined;
|
|
963
1181
|
whole?: number | null | undefined;
|
|
@@ -969,17 +1187,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
969
1187
|
code?: string | null | undefined;
|
|
970
1188
|
carrierId?: string | null | undefined;
|
|
971
1189
|
};
|
|
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
|
-
}[];
|
|
983
1190
|
}[];
|
|
984
1191
|
service: {
|
|
985
1192
|
carrierId: string;
|
|
@@ -994,6 +1201,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
994
1201
|
nonDelivery: SE.CustomsNonDeliveryType;
|
|
995
1202
|
} | null | undefined;
|
|
996
1203
|
packages: ({
|
|
1204
|
+
products: {
|
|
1205
|
+
countryOfOrigin?: string | undefined;
|
|
1206
|
+
description?: string | undefined;
|
|
1207
|
+
harmonizedTariffCode?: string | undefined;
|
|
1208
|
+
productId?: string | undefined;
|
|
1209
|
+
value: {
|
|
1210
|
+
amount: number;
|
|
1211
|
+
currency: SE.Currency;
|
|
1212
|
+
};
|
|
1213
|
+
quantity: number;
|
|
1214
|
+
}[] | null | undefined;
|
|
997
1215
|
dimensions: {
|
|
998
1216
|
unit: SE.DimensionUnit;
|
|
999
1217
|
girth?: number | undefined;
|
|
@@ -1015,6 +1233,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1015
1233
|
amount: number;
|
|
1016
1234
|
currency: SE.Currency;
|
|
1017
1235
|
} | undefined;
|
|
1236
|
+
} | {
|
|
1018
1237
|
products: {
|
|
1019
1238
|
countryOfOrigin?: string | undefined;
|
|
1020
1239
|
description?: string | undefined;
|
|
@@ -1025,8 +1244,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1025
1244
|
currency: SE.Currency;
|
|
1026
1245
|
};
|
|
1027
1246
|
quantity: number;
|
|
1028
|
-
}[];
|
|
1029
|
-
} | {
|
|
1247
|
+
}[] | null | undefined;
|
|
1030
1248
|
packageId: string | null | undefined;
|
|
1031
1249
|
weight?: {
|
|
1032
1250
|
unit: string;
|
|
@@ -1037,6 +1255,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1037
1255
|
amount: number;
|
|
1038
1256
|
currency: SE.Currency;
|
|
1039
1257
|
} | undefined;
|
|
1258
|
+
} | {
|
|
1040
1259
|
products: {
|
|
1041
1260
|
countryOfOrigin?: string | undefined;
|
|
1042
1261
|
description?: string | undefined;
|
|
@@ -1047,8 +1266,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1047
1266
|
currency: SE.Currency;
|
|
1048
1267
|
};
|
|
1049
1268
|
quantity: number;
|
|
1050
|
-
}[];
|
|
1051
|
-
} | {
|
|
1269
|
+
}[] | null | undefined;
|
|
1052
1270
|
dimensions: {
|
|
1053
1271
|
unit: SE.DimensionUnit;
|
|
1054
1272
|
girth?: number | undefined;
|
|
@@ -1070,6 +1288,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1070
1288
|
amount: number;
|
|
1071
1289
|
currency: SE.Currency;
|
|
1072
1290
|
} | undefined;
|
|
1291
|
+
} | {
|
|
1073
1292
|
products: {
|
|
1074
1293
|
countryOfOrigin?: string | undefined;
|
|
1075
1294
|
description?: string | undefined;
|
|
@@ -1080,8 +1299,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1080
1299
|
currency: SE.Currency;
|
|
1081
1300
|
};
|
|
1082
1301
|
quantity: number;
|
|
1083
|
-
}[];
|
|
1084
|
-
} | {
|
|
1302
|
+
}[] | null | undefined;
|
|
1085
1303
|
packageId: string | null | undefined;
|
|
1086
1304
|
weight?: {
|
|
1087
1305
|
unit: string;
|
|
@@ -1092,17 +1310,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1092
1310
|
amount: number;
|
|
1093
1311
|
currency: SE.Currency;
|
|
1094
1312
|
} | 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
|
-
}[];
|
|
1106
1313
|
})[];
|
|
1107
1314
|
serviceCode: string | undefined;
|
|
1108
1315
|
advancedOptions?: {
|
|
@@ -1121,6 +1328,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1121
1328
|
nonDelivery: SE.CustomsNonDeliveryType;
|
|
1122
1329
|
} | null | undefined;
|
|
1123
1330
|
packages: ({
|
|
1331
|
+
products: {
|
|
1332
|
+
countryOfOrigin?: string | undefined;
|
|
1333
|
+
description?: string | undefined;
|
|
1334
|
+
harmonizedTariffCode?: string | undefined;
|
|
1335
|
+
productId?: string | undefined;
|
|
1336
|
+
value: {
|
|
1337
|
+
amount: number;
|
|
1338
|
+
currency: SE.Currency;
|
|
1339
|
+
};
|
|
1340
|
+
quantity: number;
|
|
1341
|
+
}[] | null | undefined;
|
|
1124
1342
|
dimensions: {
|
|
1125
1343
|
unit: SE.DimensionUnit;
|
|
1126
1344
|
girth?: number | undefined;
|
|
@@ -1142,6 +1360,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1142
1360
|
amount: number;
|
|
1143
1361
|
currency: SE.Currency;
|
|
1144
1362
|
} | undefined;
|
|
1363
|
+
} | {
|
|
1145
1364
|
products: {
|
|
1146
1365
|
countryOfOrigin?: string | undefined;
|
|
1147
1366
|
description?: string | undefined;
|
|
@@ -1152,8 +1371,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1152
1371
|
currency: SE.Currency;
|
|
1153
1372
|
};
|
|
1154
1373
|
quantity: number;
|
|
1155
|
-
}[];
|
|
1156
|
-
} | {
|
|
1374
|
+
}[] | null | undefined;
|
|
1157
1375
|
packageId: string | null | undefined;
|
|
1158
1376
|
weight?: {
|
|
1159
1377
|
unit: string;
|
|
@@ -1164,6 +1382,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1164
1382
|
amount: number;
|
|
1165
1383
|
currency: SE.Currency;
|
|
1166
1384
|
} | undefined;
|
|
1385
|
+
} | {
|
|
1167
1386
|
products: {
|
|
1168
1387
|
countryOfOrigin?: string | undefined;
|
|
1169
1388
|
description?: string | undefined;
|
|
@@ -1174,8 +1393,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1174
1393
|
currency: SE.Currency;
|
|
1175
1394
|
};
|
|
1176
1395
|
quantity: number;
|
|
1177
|
-
}[];
|
|
1178
|
-
} | {
|
|
1396
|
+
}[] | null | undefined;
|
|
1179
1397
|
dimensions: {
|
|
1180
1398
|
unit: SE.DimensionUnit;
|
|
1181
1399
|
girth?: number | undefined;
|
|
@@ -1197,6 +1415,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1197
1415
|
amount: number;
|
|
1198
1416
|
currency: SE.Currency;
|
|
1199
1417
|
} | undefined;
|
|
1418
|
+
} | {
|
|
1200
1419
|
products: {
|
|
1201
1420
|
countryOfOrigin?: string | undefined;
|
|
1202
1421
|
description?: string | undefined;
|
|
@@ -1207,8 +1426,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1207
1426
|
currency: SE.Currency;
|
|
1208
1427
|
};
|
|
1209
1428
|
quantity: number;
|
|
1210
|
-
}[];
|
|
1211
|
-
} | {
|
|
1429
|
+
}[] | null | undefined;
|
|
1212
1430
|
packageId: string | null | undefined;
|
|
1213
1431
|
weight?: {
|
|
1214
1432
|
unit: string;
|
|
@@ -1219,17 +1437,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1219
1437
|
amount: number;
|
|
1220
1438
|
currency: SE.Currency;
|
|
1221
1439
|
} | 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
|
-
}[];
|
|
1233
1440
|
})[];
|
|
1234
1441
|
serviceCode: string | undefined;
|
|
1235
1442
|
advancedOptions?: {
|
|
@@ -1273,6 +1480,27 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1273
1480
|
amount: number;
|
|
1274
1481
|
currency: SE.Currency;
|
|
1275
1482
|
} | undefined;
|
|
1483
|
+
products?: {
|
|
1484
|
+
countryOfOrigin?: string | null | undefined;
|
|
1485
|
+
description?: string | null | undefined;
|
|
1486
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
1487
|
+
productId?: string | null | undefined;
|
|
1488
|
+
value: {
|
|
1489
|
+
amount: number;
|
|
1490
|
+
currency: SE.Currency;
|
|
1491
|
+
};
|
|
1492
|
+
quantity: number;
|
|
1493
|
+
}[] | {
|
|
1494
|
+
countryOfOrigin?: string | null | undefined;
|
|
1495
|
+
description?: string | null | undefined;
|
|
1496
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
1497
|
+
productId?: string | null | undefined;
|
|
1498
|
+
value: {
|
|
1499
|
+
amount: number;
|
|
1500
|
+
currency: SE.Currency;
|
|
1501
|
+
};
|
|
1502
|
+
quantity: number;
|
|
1503
|
+
}[] | null | undefined;
|
|
1276
1504
|
weight?: {
|
|
1277
1505
|
fractional?: number | null | undefined;
|
|
1278
1506
|
whole?: number | null | undefined;
|
|
@@ -1284,17 +1512,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1284
1512
|
code?: string | null | undefined;
|
|
1285
1513
|
carrierId?: string | null | undefined;
|
|
1286
1514
|
};
|
|
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
|
-
}[];
|
|
1298
1515
|
}[];
|
|
1299
1516
|
shipDate: string;
|
|
1300
1517
|
warehouseId: string;
|
|
@@ -1322,6 +1539,27 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1322
1539
|
amount: number;
|
|
1323
1540
|
currency: SE.Currency;
|
|
1324
1541
|
} | undefined;
|
|
1542
|
+
products?: {
|
|
1543
|
+
countryOfOrigin?: string | null | undefined;
|
|
1544
|
+
description?: string | null | undefined;
|
|
1545
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
1546
|
+
productId?: string | null | undefined;
|
|
1547
|
+
value: {
|
|
1548
|
+
amount: number;
|
|
1549
|
+
currency: SE.Currency;
|
|
1550
|
+
};
|
|
1551
|
+
quantity: number;
|
|
1552
|
+
}[] | {
|
|
1553
|
+
countryOfOrigin?: string | null | undefined;
|
|
1554
|
+
description?: string | null | undefined;
|
|
1555
|
+
harmonizedTariffCode?: string | null | undefined;
|
|
1556
|
+
productId?: string | null | undefined;
|
|
1557
|
+
value: {
|
|
1558
|
+
amount: number;
|
|
1559
|
+
currency: SE.Currency;
|
|
1560
|
+
};
|
|
1561
|
+
quantity: number;
|
|
1562
|
+
}[] | null | undefined;
|
|
1325
1563
|
weight?: {
|
|
1326
1564
|
fractional?: number | null | undefined;
|
|
1327
1565
|
whole?: number | null | undefined;
|
|
@@ -1333,17 +1571,6 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimension
|
|
|
1333
1571
|
code?: string | null | undefined;
|
|
1334
1572
|
carrierId?: string | null | undefined;
|
|
1335
1573
|
};
|
|
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
|
-
}[];
|
|
1347
1574
|
}[];
|
|
1348
1575
|
service: {
|
|
1349
1576
|
carrierId: string;
|