@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.
Files changed (60) hide show
  1. package/index.cjs +1447 -638
  2. package/index.js +1447 -639
  3. package/package.json +2 -2
  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 +331 -140
  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 +64 -28
  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/money.d.ts +7 -0
  47. package/src/utilities/shipengine/sales-order.d.ts +4 -1
  48. package/src/workflows/onboarding/onboarding.d.ts +19 -1
  49. package/src/components/code-block/code-block.d.ts +0 -6
  50. package/src/components/code-block/index.d.ts +0 -1
  51. package/src/components/field/money-input/hooks/index.d.ts +0 -1
  52. package/src/components/field/money-input/hooks/use-utils.d.ts +0 -6
  53. package/src/components/templates/connect-carrier/connect-carrier.d.ts +0 -1
  54. package/src/components/templates/connect-carrier/connect-carrier.styles.d.ts +0 -1
  55. package/src/components/templates/connect-carrier/index.d.ts +0 -1
  56. package/src/components/templates/customs-item-form/customs-item-form.d.ts +0 -15
  57. package/src/components/templates/customs-item-form/index.d.ts +0 -2
  58. package/src/components/templates/customs-items-display/customs-items-display.d.ts +0 -7
  59. package/src/components/templates/customs-items-display/index.d.ts +0 -1
  60. /package/src/components/templates/{customs-items-display/customs-items-display.styles.d.ts → products-display/products-display.styles.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/elements",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "peerDependencies": {
5
5
  "@shipengine/alchemy": "5.x.x",
6
6
  "@emotion/react": "11.x",
@@ -27,7 +27,7 @@
27
27
  "@rjsf/validator-ajv8": "5.16.1",
28
28
  "@shipengine/giger": "1.0.1",
29
29
  "@shipengine/giger-theme": "1.0.1",
30
- "@shipengine/js-api": "0.48.3",
30
+ "@shipengine/js-api": "1.0.0",
31
31
  "@storybook/addons": "6.5.16",
32
32
  "@storybook/components": "7.0.0-rc.1",
33
33
  "@storybook/core-events": "7.0.0-rc.1",
@@ -24,6 +24,7 @@ export type AddFundsFormProvider = {
24
24
  export type AddFundsFormProps = {
25
25
  carrierId: string;
26
26
  children?: (addFundsForm: AddFundsFormProvider) => React.ReactElement;
27
+ currency?: SE.Currency;
27
28
  minimumAmount?: number;
28
29
  onCancel?: () => void;
29
30
  onSuccess?: () => void;
@@ -39,4 +40,4 @@ export type AddFundsFormProps = {
39
40
  *
40
41
  * @see {@link AddFundsFormProps | The props that are passed into the `<AddFundsForm />` component}
41
42
  */
42
- export declare const AddFundsForm: ({ carrierId, children, onCancel, onSuccess, minimumAmount, }: AddFundsFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
43
+ export declare const AddFundsForm: ({ carrierId, children, currency, onCancel, onSuccess, minimumAmount, }: AddFundsFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
+ import { SE } from "@shipengine/alchemy";
1
2
  /**
2
- * @internal
3
+ * @internalccount
3
4
  *
4
5
  * # Auto Funding Form Props
5
6
  *
@@ -13,6 +14,10 @@ export type AutoFundingFormProps = {
13
14
  * auto-funding rules for.
14
15
  */
15
16
  carrierId: string;
17
+ /**
18
+ * Currency to be used for the input's placeholders
19
+ */
20
+ currency: SE.Currency;
16
21
  };
17
22
  /**
18
23
  * @internal
@@ -29,4 +34,4 @@ export type AutoFundingFormProps = {
29
34
  *
30
35
  * @see {@link AutoFundingFormProps | The props that are passed into the `<AutoFundingForm />` component}
31
36
  */
32
- export declare const AutoFundingForm: ({ carrierId }: AutoFundingFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
37
+ export declare const AutoFundingForm: ({ carrierId, currency }: AutoFundingFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { SE } from "@shipengine/alchemy";
1
2
  /**
2
3
  * @internal
3
4
  *
@@ -14,6 +15,7 @@ export type CarrierBalanceProps = {
14
15
  * `carrierId` is the unique identifier for the carrier provider you wish to get the balance for.
15
16
  */
16
17
  carrierId?: string;
18
+ currency: SE.Currency;
17
19
  };
18
20
  /**
19
21
  * @internal
@@ -25,4 +27,4 @@ export type CarrierBalanceProps = {
25
27
  *
26
28
  * @see {@link CarrierBalanceProps | The props for the `<CarrierBalance />` component}
27
29
  */
28
- export declare const CarrierBalance: ({ balance, carrierId }: CarrierBalanceProps) => import("@emotion/react/jsx-runtime").JSX.Element;
30
+ export declare const CarrierBalance: ({ balance, carrierId, currency }: CarrierBalanceProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -6,7 +6,6 @@ export declare const styles: {
6
6
  getChildrenStyles: (isOpen?: boolean) => (theme: Theme) => {
7
7
  height: string;
8
8
  overflow: "scroll";
9
- paddingLeft: number;
10
9
  };
11
10
  getDrawerStyles: (isOpen?: boolean) => (theme: Theme) => {
12
11
  backgroundColor: "#11003A";
@@ -1,4 +1,5 @@
1
1
  import { Control } from "react-hook-form";
2
+ import { SE } from "@shipengine/alchemy";
2
3
  /**
3
4
  * @internal
4
5
  *
@@ -11,6 +12,7 @@ export type FundAndPurchaseProps = {
11
12
  carrierId?: string;
12
13
  className?: string;
13
14
  control: Control<any, any>;
15
+ currency: SE.Currency;
14
16
  disabled?: boolean;
15
17
  isFundingEnabled?: boolean;
16
18
  isFundingRequired: boolean;
@@ -30,4 +32,4 @@ export type FundAndPurchaseProps = {
30
32
  *
31
33
  * @see {@link FundAndPurchaseProps | The props that are passed into the `<FundAndPurchase />` component}
32
34
  */
33
- export declare const FundAndPurchase: ({ balance: uspsBalance, carrierId, className, control, disabled, isFundingEnabled, isFundingRequired, isPreferredRate, onSave, purchaseAmount, onPurchase, }: FundAndPurchaseProps) => import("@emotion/react/jsx-runtime").JSX.Element;
35
+ export declare const FundAndPurchase: ({ balance: uspsBalance, carrierId, className, control, currency, disabled, isFundingEnabled, isFundingRequired, isPreferredRate, purchaseAmount, onSave, onPurchase, }: FundAndPurchaseProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,6 @@
1
- export declare const CellFormattedDate: ({ date, short }: {
1
+ type CellFormattedDateProps = {
2
2
  date: string;
3
- short?: boolean | undefined;
4
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
3
+ short?: boolean;
4
+ };
5
+ export declare const CellFormattedDate: ({ date, short }: CellFormattedDateProps) => import("@emotion/react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1,5 +1,6 @@
1
- import { WalletTransaction } from "@shipengine/alchemy";
1
+ import { FundingSourceTransaction } from "@shipengine/alchemy";
2
2
  export type HistoryCardProps = {
3
- transaction: WalletTransaction;
3
+ carrier: string;
4
+ transaction: FundingSourceTransaction;
4
5
  };
5
- export declare const HistoryCard: ({ transaction }: HistoryCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
6
+ export declare const HistoryCard: ({ carrier, transaction }: HistoryCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1 +1,3 @@
1
- export declare const HistoryCardExtension: () => import("@emotion/react/jsx-runtime").JSX.Element;
1
+ export declare const HistoryCardExtension: ({ transactionDetails }: {
2
+ transactionDetails: string;
3
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -4,7 +4,6 @@ export * from "./button-group";
4
4
  export * from "./carrier-balance";
5
5
  export * from "./carrier-icon";
6
6
  export * from "./carrier-logo";
7
- export * from "./code-block";
8
7
  export * from "./collapsible-panel";
9
8
  export * from "./copy";
10
9
  export * from "./cube";
@@ -1,3 +1,4 @@
1
+ import { SE } from "@shipengine/alchemy";
1
2
  /**
2
3
  # Manage Funding Props
3
4
  *
@@ -10,6 +11,10 @@ export type ManageFundingProps = {
10
11
  * `carrierId` is the unique identifier for the carrier provider you wish to manage funding for.
11
12
  */
12
13
  carrierId: string;
14
+ /**
15
+ * Currency to be used for the input's placeholders
16
+ */
17
+ currency: SE.Currency;
13
18
  };
14
19
  /**
15
20
  * @namespace ManageFunding
@@ -27,4 +32,4 @@ export type ManageFundingProps = {
27
32
  * @see {@link ManageFundingProps | The props that are passed into the `<ManageFunding />` component}
28
33
  * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageFunding />` component}
29
34
  */
30
- export declare const ManageFunding: ({ carrierId }: ManageFundingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
35
+ export declare const ManageFunding: ({ carrierId, currency }: ManageFundingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -8,7 +8,7 @@ export declare const styles: {
8
8
  width: string;
9
9
  };
10
10
  getTabStyles: (selected: boolean) => (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
11
- backgroundColor: string;
11
+ backgroundColor: "transparent" | "#E4E5E7";
12
12
  border: string;
13
13
  borderRadius: string;
14
14
  color: string;
@@ -1,5 +1,6 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
2
  export type AccountSettingsProps = {
3
3
  carriers?: SE.Carrier[];
4
+ currency: SE.Currency;
4
5
  };
5
- export declare const AccountSettings: ({ carriers, ...rest }: AccountSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
6
+ export declare const AccountSettings: ({ carriers, currency, ...rest }: AccountSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,10 @@
1
+ import { RJSFSchema, UiSchema } from "@rjsf/utils";
1
2
  export type ConnectCarrierFormProps = {
2
- apiCode: string;
3
+ displayName: string;
4
+ iconUrl: string;
5
+ isBeta?: boolean;
6
+ jsonSchema: RJSFSchema;
7
+ onCarrierConnected?: (data: unknown) => void;
8
+ uiSchema: UiSchema;
3
9
  };
4
- export declare const ConnectCarrierForm: ({ apiCode }: ConnectCarrierFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export declare const ConnectCarrierForm: ({ displayName, iconUrl, isBeta, jsonSchema, uiSchema, onCarrierConnected, }: ConnectCarrierFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -52,6 +52,10 @@ export declare const styles: {
52
52
  width: string;
53
53
  };
54
54
  };
55
+ icon: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
56
+ height: string;
57
+ marginRight: number;
58
+ };
55
59
  terms: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
56
60
  display: "flex";
57
61
  flexDirection: "column";
@@ -6,7 +6,7 @@ export * from "./address-form";
6
6
  export * from "./address-parser";
7
7
  export * from "./address-preference-display";
8
8
  export * from "./address-preference-select";
9
- export * from "./customs-item-form";
9
+ export * from "./product-form";
10
10
  export * from "./label";
11
11
  export * from "./list-carriers";
12
12
  export * from "./manage-warehouses";
@@ -0,0 +1,2 @@
1
+ export * from "./product-form";
2
+ export * from "./product-form-schema";
@@ -1,9 +1,9 @@
1
1
  import { z } from "zod";
2
- export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.ZodEffects<z.ZodObject<z.extendShape<{
2
+ export declare const getProductFormSchema: (shipToCountry?: string) => z.ZodEffects<z.ZodObject<z.extendShape<{
3
3
  countryOfOrigin: z.ZodEnum<["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BR", "IO", "VG", "BN", "BG", "BF", "BI", "CA", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FM", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "CI", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "KP", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "VI", "UM", "US", "UY", "UZ", "VU", "VE", "VN", "WF", "EH", "YE", "ZM", "ZW"]>;
4
- customsItemId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
5
4
  description: z.ZodString;
6
5
  harmonizedTariffCode: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
6
+ productId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
7
7
  valueQuantity: z.ZodObject<{
8
8
  quantity: z.ZodNumber;
9
9
  value: z.ZodObject<{
@@ -32,7 +32,7 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
32
32
  }, {
33
33
  harmonizedTariffCode: z.ZodString;
34
34
  }>, "strip", z.ZodTypeAny, {
35
- customsItemId?: string | undefined;
35
+ productId?: string | undefined;
36
36
  countryOfOrigin: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
37
37
  description: string;
38
38
  harmonizedTariffCode: string;
@@ -44,7 +44,7 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
44
44
  quantity: number;
45
45
  };
46
46
  }, {
47
- customsItemId?: string | null | undefined;
47
+ productId?: string | null | undefined;
48
48
  countryOfOrigin: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
49
49
  description: string;
50
50
  harmonizedTariffCode: string;
@@ -61,8 +61,8 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
61
61
  amount: number;
62
62
  currency: import("@shipengine/js-api").Currency;
63
63
  };
64
- customsItemId?: string | undefined;
65
64
  harmonizedTariffCode?: string | undefined;
65
+ productId?: string | undefined;
66
66
  countryOfOrigin: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
67
67
  description: string;
68
68
  } | {
@@ -71,12 +71,12 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
71
71
  amount: number;
72
72
  currency: import("@shipengine/js-api").Currency;
73
73
  };
74
- customsItemId?: string | undefined;
74
+ productId?: string | undefined;
75
75
  countryOfOrigin: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
76
76
  description: string;
77
77
  harmonizedTariffCode: string;
78
78
  }, {
79
- customsItemId?: string | null | undefined;
79
+ productId?: string | null | undefined;
80
80
  countryOfOrigin: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
81
81
  description: string;
82
82
  harmonizedTariffCode: string;
@@ -89,9 +89,9 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
89
89
  };
90
90
  }> | z.ZodEffects<z.ZodObject<{
91
91
  countryOfOrigin: z.ZodEnum<["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BR", "IO", "VG", "BN", "BG", "BF", "BI", "CA", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FM", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "CI", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "KP", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "VI", "UM", "US", "UY", "UZ", "VU", "VE", "VN", "WF", "EH", "YE", "ZM", "ZW"]>;
92
- customsItemId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
93
92
  description: z.ZodString;
94
93
  harmonizedTariffCode: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
94
+ productId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
95
95
  valueQuantity: z.ZodObject<{
96
96
  quantity: z.ZodNumber;
97
97
  value: z.ZodObject<{
@@ -118,8 +118,8 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
118
118
  quantity: number;
119
119
  }>;
120
120
  }, "strip", z.ZodTypeAny, {
121
- customsItemId?: string | undefined;
122
121
  harmonizedTariffCode?: string | undefined;
122
+ productId?: string | undefined;
123
123
  countryOfOrigin: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
124
124
  description: string;
125
125
  valueQuantity: {
@@ -130,8 +130,8 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
130
130
  quantity: number;
131
131
  };
132
132
  }, {
133
- customsItemId?: string | null | undefined;
134
133
  harmonizedTariffCode?: string | null | undefined;
134
+ productId?: string | null | undefined;
135
135
  countryOfOrigin: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
136
136
  description: string;
137
137
  valueQuantity: {
@@ -147,8 +147,8 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
147
147
  amount: number;
148
148
  currency: import("@shipengine/js-api").Currency;
149
149
  };
150
- customsItemId?: string | undefined;
151
150
  harmonizedTariffCode?: string | undefined;
151
+ productId?: string | undefined;
152
152
  countryOfOrigin: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
153
153
  description: string;
154
154
  } | {
@@ -157,13 +157,13 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
157
157
  amount: number;
158
158
  currency: import("@shipengine/js-api").Currency;
159
159
  };
160
- customsItemId?: string | undefined;
160
+ productId?: string | undefined;
161
161
  countryOfOrigin: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
162
162
  description: string;
163
163
  harmonizedTariffCode: string;
164
164
  }, {
165
- customsItemId?: string | null | undefined;
166
165
  harmonizedTariffCode?: string | null | undefined;
166
+ productId?: string | null | undefined;
167
167
  countryOfOrigin: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
168
168
  description: string;
169
169
  valueQuantity: {
@@ -174,7 +174,7 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
174
174
  quantity: number;
175
175
  };
176
176
  }>;
177
- type CustomsItemSchema = ReturnType<typeof getCustomsItemFormSchema>;
178
- export type CustomsItemFormFields = z.input<CustomsItemSchema>;
179
- export type CustomsItemFormPayload = z.output<CustomsItemSchema>;
177
+ type ProductSchema = ReturnType<typeof getProductFormSchema>;
178
+ export type ProductFormFields = z.input<ProductSchema>;
179
+ export type ProductFormPayload = z.output<ProductSchema>;
180
180
  export {};
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { SE } from "@shipengine/alchemy";
3
+ export type ProductFormProps<T = undefined> = {
4
+ onCancel?: () => void;
5
+ onSubmit: (values: SE.Product) => Promise<void>;
6
+ product?: SE.Product;
7
+ shipToCountry?: string;
8
+ } & ({
9
+ formId: string;
10
+ portalRef: React.RefObject<T>;
11
+ } | {
12
+ formId?: string;
13
+ portalRef?: never;
14
+ });
15
+ export declare const ProductForm: <T extends Element>({ product, formId, onCancel, onSubmit, portalRef, shipToCountry, }: ProductFormProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./products-display";
@@ -0,0 +1,7 @@
1
+ import { SE } from "@shipengine/alchemy";
2
+ type ProductsDisplayProps = {
3
+ onUpdate: (products: SE.Product[]) => Promise<void>;
4
+ shipment: SE.SalesOrderShipment;
5
+ };
6
+ export declare const ProductsDisplay: ({ onUpdate, shipment }: ProductsDisplayProps) => import("@emotion/react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -2,6 +2,7 @@ import { SE } from "@shipengine/alchemy";
2
2
  import { ConfigureShipmentFeatures, PreferredRatesResponse } from "../../../elements/configure-shipment";
3
3
  export type RateFormProps = {
4
4
  carriers?: SE.Carrier[];
5
+ currency: SE.Currency;
5
6
  disabled?: boolean;
6
7
  displayableRateErrors?: string[];
7
8
  displayableSaveRateErrors?: string[];
@@ -20,4 +21,4 @@ export type RateFormProps = {
20
21
  rates?: SE.Rate[];
21
22
  shipment?: SE.SalesOrderShipment;
22
23
  };
23
- export declare const RateForm: ({ carriers, disabled, displayableRateErrors, displayableSaveRateErrors, errors, features, isLoading, labelErrors, labels, labelsLoading, onSave, onSelectRate, onSubmit, displayableShipmentErrors, preferredRates, preferredServiceCodes, rates, shipment, }: RateFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
24
+ export declare const RateForm: ({ carriers, disabled, displayableRateErrors, displayableSaveRateErrors, errors, features, isLoading, labelErrors, labels, labelsLoading, currency, displayableShipmentErrors, preferredRates, preferredServiceCodes, rates, shipment, onSave, onSelectRate, onSubmit, }: RateFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -21,6 +21,7 @@ export type ShipmentFormProps = {
21
21
  addressPreference?: AddressPreference;
22
22
  carriers?: SE.Carrier[];
23
23
  charsetWarning?: CharsetWarning;
24
+ currency: SE.Currency;
24
25
  customPackageTypes?: SE.CustomPackage[];
25
26
  errors?: SE.CodedError[];
26
27
  features?: ShipmentFormFeatures;
@@ -38,7 +39,7 @@ export type ShipmentFormProps = {
38
39
  onSubmit: (values: Partial<SE.SalesOrderShipment>) => Promise<SE.SalesOrderShipment | undefined>;
39
40
  onSubmitParseShipTo: (payload: AddressParserPayload) => Promise<SE.AddressExtraction | undefined>;
40
41
  onToggleAddressPreferenceDisclosure?: AddressPreferenceDisplayProps["onToggleDisclosure"];
41
- onUpdateCustoms?: (customs: SE.Customs) => Promise<SE.SalesOrderShipment | undefined>;
42
+ onUpdateCustoms?: (customs: SE.Customs, products: SE.Product[]) => Promise<SE.SalesOrderShipment | undefined>;
42
43
  parseAddressErrors?: SE.CodedError[];
43
44
  resetParseAddress?: () => void;
44
45
  salesOrder?: SE.SalesOrder;
@@ -52,4 +53,4 @@ export type CharsetWarning = {
52
53
  message: string;
53
54
  title?: string;
54
55
  };
55
- export declare const ShipmentForm: ({ accountSettings, addressLoading, addressPreference, charsetWarning, carriers, customPackageTypes, errors, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode, onDirty, onSubmit, onSubmitParseShipTo, onToggleAddressPreferenceDisclosure, onUpdateCustoms, parseAddressErrors, resetParseAddress, salesOrder, shipment, shippingPresets, warehouseId, warehouses, }: ShipmentFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
56
+ export declare const ShipmentForm: ({ accountSettings, addressLoading, addressPreference, charsetWarning, carriers, customPackageTypes, currency, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode, onDirty, onSubmit, onSubmitParseShipTo, onToggleAddressPreferenceDisclosure, onUpdateCustoms, parseAddressErrors, resetParseAddress, salesOrder, shipment, shippingPresets, warehouseId, warehouses, }: ShipmentFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;