@shipengine/elements 1.2.1 → 1.3.1

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