@shipengine/elements 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/field/create-field-controller.d.ts +3 -1
- package/components/field/credit-card-input/credit-card-input.d.ts +3 -0
- package/components/field/credit-card-input/index.d.ts +1 -0
- package/components/field/fields.d.ts +1 -0
- package/components/field/money-input/hooks/use-utils.d.ts +1 -1
- package/components/field/money-input/money-input.d.ts +1 -1
- package/components/field/rate-card/cost-breakdown/cost-breakdown.d.ts +1 -1
- package/components/form-portal/form-portal.d.ts +18 -0
- package/components/form-portal/index.d.ts +1 -0
- package/components/index.d.ts +1 -0
- package/components/items-breakdown/items-breakdown.d.ts +1 -1
- package/components/organisms/auto-funding-form/auto-funding-form.d.ts +4 -3
- package/components/organisms/auto-funding-form/auto-funding-form.styles.d.ts +1 -0
- package/components/organisms/auto-funding-form/auto-funding-schema.d.ts +10 -10
- package/components/organisms/manual-funding-form/manual-funding-form.d.ts +3 -2
- package/components/organisms/manual-funding-form/manual-funding-schema.d.ts +5 -5
- package/components/portal/portal.d.ts +1 -1
- package/components/settings-card/settings-card.d.ts +6 -1
- package/components/settings-card/settings-card.styles.d.ts +1 -6
- package/components/templates/add-carrier-form/add-carrier-form-schema.d.ts +140 -0
- package/components/templates/add-carrier-form/add-carrier-form-test.d.ts +1 -0
- package/components/templates/add-carrier-form/add-carrier-form.d.ts +10 -0
- package/components/templates/add-carrier-form/index.d.ts +2 -0
- package/components/templates/address-display/address-display.d.ts +1 -1
- package/components/templates/address-form/address-fields.d.ts +10 -0
- package/components/templates/{billing-form/billing-schema.d.ts → address-form/address-form-schema.d.ts} +54 -36
- package/components/templates/address-form/address-form.d.ts +2 -2
- package/components/templates/address-form/address-schema.d.ts +7 -221
- package/components/templates/address-form/index.d.ts +2 -0
- package/components/templates/address-preference-display/address-preference-display.d.ts +1 -1
- package/components/templates/carrier-recovery-form/carrier-recovery-form-schema.d.ts +238 -0
- package/components/templates/carrier-recovery-form/carrier-recovery-form.d.ts +10 -0
- package/components/templates/carrier-recovery-form/carrier-recovery-form.styles.d.ts +1 -0
- package/components/templates/carrier-recovery-form/index.d.ts +2 -0
- package/components/templates/carrier-terms-form/carrier-terms-form-schema.d.ts +10 -0
- package/components/templates/carrier-terms-form/carrier-terms-form.d.ts +6 -0
- package/components/templates/carrier-terms-form/carrier-terms-form.styles.d.ts +1 -0
- package/components/templates/carrier-terms-form/index.d.ts +1 -0
- package/components/templates/customs-item-form/customs-item-form-schema.d.ts +112 -12
- package/components/templates/customs-item-form/customs-item-form.d.ts +3 -2
- package/components/templates/customs-items-display/customs-items-display.d.ts +1 -1
- package/components/templates/display-carrier-terms/display-carrier-terms.d.ts +6 -0
- package/components/templates/display-carrier-terms/index.d.ts +1 -0
- package/components/templates/edit-billing-form/edit-billing-form.d.ts +6 -0
- package/components/templates/edit-billing-form/edit-billing-form.styles.d.ts +1 -0
- package/components/templates/edit-billing-form/index.d.ts +1 -0
- package/components/templates/funding-methods/funding-methods.d.ts +6 -5
- package/components/templates/funding-methods/funding-methods.styles.d.ts +1 -0
- package/components/templates/index.d.ts +8 -3
- package/components/templates/label/label.d.ts +2 -2
- package/components/templates/landing-page/index.d.ts +1 -0
- package/components/templates/landing-page/landing-page-form-schema.d.ts +10 -0
- package/components/templates/landing-page/landing-page-form.d.ts +4 -0
- package/components/templates/landing-page/landing-page.d.ts +4 -0
- package/components/templates/landing-page/landing-page.styles.d.ts +1 -0
- package/components/templates/list-carriers/index.d.ts +1 -0
- package/components/templates/list-carriers/list-carriers.d.ts +9 -0
- package/components/templates/list-carriers/list-carriers.styles.d.ts +1 -0
- package/components/templates/list-carriers-row/index.d.ts +1 -0
- package/components/templates/list-carriers-row/list-carriers-row.d.ts +9 -0
- package/components/templates/list-carriers-row/list-carriers-row.styles.d.ts +1 -0
- package/components/templates/manage-wallet/index.d.ts +1 -0
- package/components/templates/manage-wallet/manage-wallet.d.ts +1 -0
- package/components/templates/manage-wallet/manage-wallet.styles.d.ts +1 -0
- package/components/templates/manage-warehouses/manage-warehouses.d.ts +7 -2
- package/components/templates/onboarding/index.d.ts +1 -0
- package/components/templates/onboarding/onboarding.d.ts +18 -0
- package/components/templates/onboarding/onboarding.styles.d.ts +1 -0
- package/components/templates/rate-form/rate-form.d.ts +2 -2
- package/components/templates/sales-order/sales-order.d.ts +1 -1
- package/components/templates/shipment/shipment.d.ts +1 -1
- package/components/templates/shipment-form/shipment-form.d.ts +3 -3
- package/components/templates/shipment-form/shipment-schema.d.ts +11 -11
- package/components/templates/void-label/void-label.d.ts +1 -1
- package/components/templates/wallet-card/index.d.ts +1 -0
- package/components/templates/wallet-card/wallet-card.d.ts +4 -0
- package/components/templates/wallet-card/wallet-card.styles.d.ts +1 -0
- package/components/templates/wallet-form/billing-fields.d.ts +6 -0
- package/components/templates/wallet-form/edit-wallet-address-form.d.ts +16 -0
- package/components/templates/wallet-form/index.d.ts +4 -0
- package/components/templates/wallet-form/wallet-form.d.ts +11 -0
- package/components/templates/wallet-form/wallet-form.styles.d.ts +1 -0
- package/components/templates/wallet-form/wallet-schema.d.ts +269 -0
- package/components/templates/warehouse-display/warehouse-display.d.ts +1 -1
- package/components/templates/warehouse-form/index.d.ts +1 -0
- package/components/templates/warehouse-form/warehouse-form-schema.d.ts +503 -0
- package/components/templates/warehouse-form/warehouse-form.d.ts +10 -0
- package/components/templates/warehouse-form/warehouse-form.styles.d.ts +1 -0
- package/constants/shipengine/address.d.ts +5 -0
- package/elements/components/configure-shipment/configure-shipment.d.ts +1 -1
- package/elements/components/configure-shipment/hooks/use-address.d.ts +3 -3
- package/elements/components/configure-shipment/hooks/use-customs.d.ts +3 -3
- package/elements/components/configure-shipment/hooks/use-presets.d.ts +2 -2
- package/elements/components/configure-shipment/hooks/use-rates-form.d.ts +2 -2
- package/elements/components/configure-shipment/hooks/use-request-rates.d.ts +2 -2
- package/elements/components/configure-shipment/hooks/use-shipment-form.d.ts +6 -6
- package/elements/components/index.d.ts +2 -2
- package/elements/components/list-carriers/hooks/use-list-connected-carriers.d.ts +11 -0
- package/elements/components/list-carriers/index.d.ts +1 -0
- package/elements/components/list-carriers/list-carriers.d.ts +1 -0
- package/elements/components/manage-funding/manage-funding.d.ts +6 -2
- package/elements/components/onboarding/index.d.ts +1 -0
- package/elements/components/onboarding/onboarding.d.ts +4 -0
- package/elements/components/sales-order/hooks/use-configure-shipment.d.ts +3 -1
- package/elements/components/sales-order/hooks/use-import-sales-order.d.ts +2 -2
- package/elements/components/sales-order/hooks/use-pending-shipment.d.ts +1 -1
- package/elements/components/sales-order/sales-order.d.ts +1 -1
- package/elements/components/shipment/shipment.d.ts +1 -1
- package/elements/components/void-label/void-label.d.ts +1 -1
- package/elements/index.d.ts +2 -2
- package/elements/list-carriers.d.ts +1 -0
- package/elements/manage-funding.d.ts +1 -1
- package/elements/onboarding.d.ts +1 -0
- package/factories/shipengine/address.d.ts +1 -1
- package/factories/shipengine/carrier.d.ts +1 -1
- package/factories/shipengine/label.d.ts +1 -1
- package/factories/shipengine/money.d.ts +1 -1
- package/factories/shipengine/order-source.d.ts +10 -2
- package/factories/shipengine/package.d.ts +2 -2
- package/factories/shipengine/resource.d.ts +1 -1
- package/factories/shipengine/sales-order.d.ts +1 -1
- package/factories/shipengine/service.d.ts +2 -2
- package/factories/shipengine/shipment.d.ts +4 -4
- package/factories/shipengine/warehouse.d.ts +1 -1
- package/factories/shipengine/weight.d.ts +1 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/options/use-confirmation-options.d.ts +1 -1
- package/hooks/options/use-customs-contents-options.d.ts +1 -1
- package/hooks/options/use-customs-non-delivery-options.d.ts +1 -1
- package/hooks/options/use-insurance-provider-options.d.ts +2 -2
- package/hooks/options/use-package-options.d.ts +2 -2
- package/hooks/options/use-rate-options.d.ts +1 -1
- package/hooks/options/use-service-code-options.d.ts +1 -1
- package/hooks/options/use-warehouse-options.d.ts +1 -1
- package/hooks/use-carrier-metadata.d.ts +2 -5
- package/hooks/use-elements.d.ts +2 -2
- package/hooks/use-toggle.d.ts +12 -0
- package/index.cjs +19433 -17322
- package/index.js +20014 -17903
- package/locales/en/index.d.ts +107 -2
- package/mocks/browser.d.ts +1 -0
- package/mocks/carriers/handlers.d.ts +1 -0
- package/mocks/handlers.d.ts +12 -0
- package/package.json +8 -6
- package/register.d.ts +1 -4
- package/schemas/shipengine/index.d.ts +0 -1
- package/schemas/shipengine/money.d.ts +1 -1
- package/testing/index.d.ts +0 -1
- package/types/carrier-metadata.d.ts +10 -5
- package/types/shipping-preset/shipping-preset.d.ts +2 -2
- package/utilities/date.d.ts +13 -1
- package/utilities/money.d.ts +2 -1
- package/utilities/rates.d.ts +1 -1
- package/utilities/shipengine/address.d.ts +1 -1
- package/utilities/shipengine/dimensions.d.ts +1 -1
- package/utilities/shipengine/sales-order.d.ts +1 -1
- package/utilities/shipengine/shipment.d.ts +1 -1
- package/utilities/shipengine/weight.d.ts +1 -1
- package/components/templates/add-carriers/add-carriers.d.ts +0 -5
- package/components/templates/add-carriers/index.d.ts +0 -1
- package/components/templates/agreement-form/agreement-form-schema.d.ts +0 -10
- package/components/templates/agreement-form/agreement-form.d.ts +0 -8
- package/components/templates/agreement-form/agreement-form.styles.d.ts +0 -1
- package/components/templates/agreement-form/index.d.ts +0 -1
- package/components/templates/billing-form/billing-form-stories.d.ts +0 -6
- package/components/templates/billing-form/billing-form.d.ts +0 -9
- package/components/templates/billing-form/index.d.ts +0 -2
- package/components/templates/register-wallet/index.d.ts +0 -1
- package/components/templates/register-wallet/register-wallet.d.ts +0 -3
- package/components/templates/register-wallet/register-wallet.styles.d.ts +0 -6
- package/elements/add-carriers.d.ts +0 -1
- package/elements/components/add-carriers/add-carriers.d.ts +0 -8
- package/elements/components/add-carriers/index.d.ts +0 -1
- package/elements/components/register-wallet/index.d.ts +0 -1
- package/elements/components/register-wallet/register-wallet.d.ts +0 -9
- package/elements/register-wallet.d.ts +0 -1
- package/schemas/shipengine/address.d.ts +0 -17
- package/testing/swr.d.ts +0 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const getCustomsItemFormSchema: (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
4
|
customsItemId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
5
5
|
description: z.ZodString;
|
|
@@ -8,24 +8,112 @@ export declare const customsItemFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8
8
|
quantity: z.ZodNumber;
|
|
9
9
|
value: z.ZodObject<{
|
|
10
10
|
amount: z.ZodNumber;
|
|
11
|
-
currency: z.ZodNativeEnum<typeof import("
|
|
11
|
+
currency: z.ZodNativeEnum<typeof import("@shipengine/api").Currency>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
amount: number;
|
|
14
|
-
currency: import("
|
|
14
|
+
currency: import("@shipengine/api").Currency;
|
|
15
15
|
}, {
|
|
16
16
|
amount: number;
|
|
17
|
-
currency: import("
|
|
17
|
+
currency: import("@shipengine/api").Currency;
|
|
18
18
|
}>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
value: {
|
|
21
21
|
amount: number;
|
|
22
|
-
currency: import("
|
|
22
|
+
currency: import("@shipengine/api").Currency;
|
|
23
23
|
};
|
|
24
24
|
quantity: number;
|
|
25
25
|
}, {
|
|
26
26
|
value: {
|
|
27
27
|
amount: number;
|
|
28
|
-
currency: import("
|
|
28
|
+
currency: import("@shipengine/api").Currency;
|
|
29
|
+
};
|
|
30
|
+
quantity: number;
|
|
31
|
+
}>;
|
|
32
|
+
}, {
|
|
33
|
+
harmonizedTariffCode: z.ZodString;
|
|
34
|
+
}>, "strip", z.ZodTypeAny, {
|
|
35
|
+
customsItemId?: string | undefined;
|
|
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
|
+
description: string;
|
|
38
|
+
harmonizedTariffCode: string;
|
|
39
|
+
valueQuantity: {
|
|
40
|
+
value: {
|
|
41
|
+
amount: number;
|
|
42
|
+
currency: import("@shipengine/api").Currency;
|
|
43
|
+
};
|
|
44
|
+
quantity: number;
|
|
45
|
+
};
|
|
46
|
+
}, {
|
|
47
|
+
customsItemId?: string | null | undefined;
|
|
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
|
+
description: string;
|
|
50
|
+
harmonizedTariffCode: string;
|
|
51
|
+
valueQuantity: {
|
|
52
|
+
value: {
|
|
53
|
+
amount: number;
|
|
54
|
+
currency: import("@shipengine/api").Currency;
|
|
55
|
+
};
|
|
56
|
+
quantity: number;
|
|
57
|
+
};
|
|
58
|
+
}>, {
|
|
59
|
+
quantity: number;
|
|
60
|
+
value: {
|
|
61
|
+
amount: number;
|
|
62
|
+
currency: import("@shipengine/api").Currency;
|
|
63
|
+
};
|
|
64
|
+
customsItemId?: string | undefined;
|
|
65
|
+
harmonizedTariffCode?: string | undefined;
|
|
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
|
+
description: string;
|
|
68
|
+
} | {
|
|
69
|
+
quantity: number;
|
|
70
|
+
value: {
|
|
71
|
+
amount: number;
|
|
72
|
+
currency: import("@shipengine/api").Currency;
|
|
73
|
+
};
|
|
74
|
+
customsItemId?: string | undefined;
|
|
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
|
+
description: string;
|
|
77
|
+
harmonizedTariffCode: string;
|
|
78
|
+
}, {
|
|
79
|
+
customsItemId?: string | null | undefined;
|
|
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
|
+
description: string;
|
|
82
|
+
harmonizedTariffCode: string;
|
|
83
|
+
valueQuantity: {
|
|
84
|
+
value: {
|
|
85
|
+
amount: number;
|
|
86
|
+
currency: import("@shipengine/api").Currency;
|
|
87
|
+
};
|
|
88
|
+
quantity: number;
|
|
89
|
+
};
|
|
90
|
+
}> | z.ZodEffects<z.ZodObject<{
|
|
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
|
+
description: z.ZodString;
|
|
94
|
+
harmonizedTariffCode: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
95
|
+
valueQuantity: z.ZodObject<{
|
|
96
|
+
quantity: z.ZodNumber;
|
|
97
|
+
value: z.ZodObject<{
|
|
98
|
+
amount: z.ZodNumber;
|
|
99
|
+
currency: z.ZodNativeEnum<typeof import("@shipengine/api").Currency>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
amount: number;
|
|
102
|
+
currency: import("@shipengine/api").Currency;
|
|
103
|
+
}, {
|
|
104
|
+
amount: number;
|
|
105
|
+
currency: import("@shipengine/api").Currency;
|
|
106
|
+
}>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
value: {
|
|
109
|
+
amount: number;
|
|
110
|
+
currency: import("@shipengine/api").Currency;
|
|
111
|
+
};
|
|
112
|
+
quantity: number;
|
|
113
|
+
}, {
|
|
114
|
+
value: {
|
|
115
|
+
amount: number;
|
|
116
|
+
currency: import("@shipengine/api").Currency;
|
|
29
117
|
};
|
|
30
118
|
quantity: number;
|
|
31
119
|
}>;
|
|
@@ -37,7 +125,7 @@ export declare const customsItemFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
37
125
|
valueQuantity: {
|
|
38
126
|
value: {
|
|
39
127
|
amount: number;
|
|
40
|
-
currency: import("
|
|
128
|
+
currency: import("@shipengine/api").Currency;
|
|
41
129
|
};
|
|
42
130
|
quantity: number;
|
|
43
131
|
};
|
|
@@ -49,7 +137,7 @@ export declare const customsItemFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
49
137
|
valueQuantity: {
|
|
50
138
|
value: {
|
|
51
139
|
amount: number;
|
|
52
|
-
currency: import("
|
|
140
|
+
currency: import("@shipengine/api").Currency;
|
|
53
141
|
};
|
|
54
142
|
quantity: number;
|
|
55
143
|
};
|
|
@@ -57,12 +145,22 @@ export declare const customsItemFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
57
145
|
quantity: number;
|
|
58
146
|
value: {
|
|
59
147
|
amount: number;
|
|
60
|
-
currency: import("
|
|
148
|
+
currency: import("@shipengine/api").Currency;
|
|
61
149
|
};
|
|
62
150
|
customsItemId?: string | undefined;
|
|
63
151
|
harmonizedTariffCode?: string | undefined;
|
|
64
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";
|
|
65
153
|
description: string;
|
|
154
|
+
} | {
|
|
155
|
+
quantity: number;
|
|
156
|
+
value: {
|
|
157
|
+
amount: number;
|
|
158
|
+
currency: import("@shipengine/api").Currency;
|
|
159
|
+
};
|
|
160
|
+
customsItemId?: string | undefined;
|
|
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
|
+
description: string;
|
|
163
|
+
harmonizedTariffCode: string;
|
|
66
164
|
}, {
|
|
67
165
|
customsItemId?: string | null | undefined;
|
|
68
166
|
harmonizedTariffCode?: string | null | undefined;
|
|
@@ -71,10 +169,12 @@ export declare const customsItemFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
71
169
|
valueQuantity: {
|
|
72
170
|
value: {
|
|
73
171
|
amount: number;
|
|
74
|
-
currency: import("
|
|
172
|
+
currency: import("@shipengine/api").Currency;
|
|
75
173
|
};
|
|
76
174
|
quantity: number;
|
|
77
175
|
};
|
|
78
176
|
}>;
|
|
79
|
-
|
|
80
|
-
export type
|
|
177
|
+
type CustomsItemSchema = ReturnType<typeof getCustomsItemFormSchema>;
|
|
178
|
+
export type CustomsItemFormFields = z.input<CustomsItemSchema>;
|
|
179
|
+
export type CustomsItemFormPayload = z.output<CustomsItemSchema>;
|
|
180
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
2
|
+
import { SE } from "@shipengine/api";
|
|
3
3
|
export type CustomsItemFormProps<T = undefined> = {
|
|
4
4
|
customsItem?: SE.CustomsItem;
|
|
5
5
|
onCancel?: () => void;
|
|
6
6
|
onSubmit: (values: SE.CustomsItem) => Promise<void>;
|
|
7
|
+
shipToCountry?: string;
|
|
7
8
|
} & ({
|
|
8
9
|
formId: string;
|
|
9
10
|
portalRef: React.RefObject<T>;
|
|
@@ -11,4 +12,4 @@ export type CustomsItemFormProps<T = undefined> = {
|
|
|
11
12
|
formId?: string;
|
|
12
13
|
portalRef?: never;
|
|
13
14
|
});
|
|
14
|
-
export declare const CustomsItemForm: <T extends Element>({ customsItem, formId, onCancel, onSubmit, portalRef, }: CustomsItemFormProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const CustomsItemForm: <T extends Element>({ customsItem, formId, onCancel, onSubmit, portalRef, shipToCountry, }: CustomsItemFormProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./display-carrier-terms";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WalletFormPayload } from "../wallet-form";
|
|
2
|
+
export type EditBillingFormProps = {
|
|
3
|
+
onCancel: () => void;
|
|
4
|
+
onSubmit: (walletPayload: WalletFormPayload) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const EditBillingForm: ({ onCancel, onSubmit }: EditBillingFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: Record<"boldLink" | "container" | "heading" | "subtitle", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./edit-billing-form";
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ManualFundingFormPayload } from "../../organisms
|
|
1
|
+
import { SE } from "@shipengine/api";
|
|
2
|
+
import { ManualFundingFormPayload } from "../../organisms";
|
|
3
3
|
export type FundingMethodsProps = {
|
|
4
4
|
addFundsErrorMessage?: string;
|
|
5
|
-
autoFundingData
|
|
5
|
+
autoFundingData?: SE.CarrierAutoFundingSettings;
|
|
6
6
|
autoFundingErrorMessage?: string;
|
|
7
|
+
fundingMethod: "manual" | "auto" | "both";
|
|
7
8
|
hasAutoFundingError: boolean;
|
|
8
9
|
hasManualFundingError: boolean;
|
|
9
10
|
isAutoFundingLoading: boolean;
|
|
10
11
|
isManualFundingLoading: boolean;
|
|
11
12
|
manualFundingCurrentBalance: number;
|
|
12
13
|
manualFundingRequiredAmount?: number;
|
|
13
|
-
onSubmitAutoFunding: (payload:
|
|
14
|
+
onSubmitAutoFunding: (payload: SE.CarrierAutoFundingSettings) => Promise<void> | void;
|
|
14
15
|
onSubmitManualFunding: (payload: ManualFundingFormPayload) => Promise<void> | void;
|
|
15
16
|
onToggleAutoFunding: (enabled: boolean) => Promise<void> | void;
|
|
16
17
|
};
|
|
17
|
-
export declare const FundingMethods: ({ addFundsErrorMessage, autoFundingData, autoFundingErrorMessage, hasAutoFundingError, hasManualFundingError, isAutoFundingLoading, isManualFundingLoading, manualFundingCurrentBalance, manualFundingRequiredAmount, onSubmitAutoFunding, onSubmitManualFunding, onToggleAutoFunding, }: FundingMethodsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const FundingMethods: ({ addFundsErrorMessage, autoFundingData, autoFundingErrorMessage, fundingMethod, hasAutoFundingError, hasManualFundingError, isAutoFundingLoading, isManualFundingLoading, manualFundingCurrentBalance, manualFundingRequiredAmount, onSubmitAutoFunding, onSubmitManualFunding, onToggleAutoFunding, }: FundingMethodsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: Record<"addFundsButton" | "balanceText" | "header" | "negativeBalanceText", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
export * from "./add-
|
|
1
|
+
export * from "./add-carrier-form";
|
|
2
2
|
export * from "./address-display";
|
|
3
3
|
export * from "./address-form";
|
|
4
4
|
export * from "./address-parser";
|
|
5
5
|
export * from "./address-preference-display";
|
|
6
|
-
export * from "./
|
|
6
|
+
export * from "./carrier-recovery-form";
|
|
7
|
+
export * from "./carrier-terms-form";
|
|
7
8
|
export * from "./customs-item-form";
|
|
8
9
|
export * from "./funding-methods";
|
|
9
10
|
export * from "./label";
|
|
11
|
+
export * from "./landing-page";
|
|
12
|
+
export * from "./list-carriers";
|
|
10
13
|
export * from "./manage-warehouses";
|
|
14
|
+
export * from "./onboarding";
|
|
11
15
|
export * from "./rate-form";
|
|
12
|
-
export * from "./register-wallet";
|
|
13
16
|
export * from "./sales-order";
|
|
14
17
|
export * from "./shipment-form";
|
|
15
18
|
export * from "./shipment";
|
|
19
|
+
export * from "./warehouse-form";
|
|
16
20
|
export * from "./void-label";
|
|
21
|
+
export * from "./wallet-form";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SE } from "@shipengine/api";
|
|
2
2
|
export type LabelProps = {
|
|
3
3
|
label: SE.Label & {
|
|
4
4
|
carrier?: SE.Carrier;
|
|
5
5
|
deliveryConfirmation?: SE.ConfirmationType;
|
|
6
6
|
insuredValue?: SE.Money;
|
|
7
|
-
service?: SE.
|
|
7
|
+
service?: SE.CarrierService;
|
|
8
8
|
};
|
|
9
9
|
onClickPrintLabel?: () => void;
|
|
10
10
|
onClickVoid?: (label: SE.Label) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./landing-page";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const landingPageFormSchema: z.ZodObject<{
|
|
3
|
+
email: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
email: string;
|
|
6
|
+
}, {
|
|
7
|
+
email: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type LandingPageFormFields = z.input<typeof landingPageFormSchema>;
|
|
10
|
+
export type LandingPageFormPayload = z.output<typeof landingPageFormSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: Record<"container" | "description" | "header", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./list-carriers";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CarrierConnection, CodedError } from "@shipengine/api";
|
|
2
|
+
import { ConnectedCarrierMetadata } from "../../../elements/components/list-carriers/hooks/use-list-connected-carriers";
|
|
3
|
+
export type ListCarriersProps = {
|
|
4
|
+
carriers?: ConnectedCarrierMetadata[];
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
onRegisterCarrier: (payload: CarrierConnection) => Promise<void>;
|
|
7
|
+
registerCarrierErrors?: CodedError[] | null;
|
|
8
|
+
};
|
|
9
|
+
export declare const ListCarriers: ({ carriers, isLoading, onRegisterCarrier, registerCarrierErrors, }: ListCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: Record<"listContainer" | "skeletonLogoContainer" | "skeletonRow", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./list-carriers-row";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CodedError } from "@shipengine/api";
|
|
2
|
+
import { ConnectedCarrierMetadata } from "../../../elements/components/list-carriers/hooks/use-list-connected-carriers";
|
|
3
|
+
import { AddCarrierFormPayload } from "../add-carrier-form";
|
|
4
|
+
export type ListCarriersRowProps = {
|
|
5
|
+
connectedCarrier: ConnectedCarrierMetadata;
|
|
6
|
+
registerCarrier: (payload?: AddCarrierFormPayload) => Promise<void>;
|
|
7
|
+
registerCarrierErrors?: CodedError[] | null;
|
|
8
|
+
};
|
|
9
|
+
export declare const ListCarriersRow: ({ connectedCarrier: { carrier, isConnected }, registerCarrier, registerCarrierErrors, }: ListCarriersRowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: Record<"carrierTypography" | "container" | "loadingButtonContainer" | "logoContainer" | "rowContainer" | "statusChipConnected" | "statusChipNotConnected", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./manage-wallet";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ManageWallet: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: Record<"container" | "subtitle" | "headingContainer", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SE } from "@shipengine/api";
|
|
2
2
|
export type ManageWarehousesProps = {
|
|
3
|
+
errors?: SE.CodedError[];
|
|
4
|
+
onAdd: (payload: Omit<SE.Warehouse, "createdAt" | "warehouseId">) => Promise<void> | void;
|
|
5
|
+
onDelete: (warehouseId: string) => Promise<void> | void;
|
|
6
|
+
onEdit: (payload: Omit<SE.Warehouse, "createdAt" | "warehouseId">, warehouseId: string) => Promise<void> | void;
|
|
7
|
+
onSetDefault: (warehouse: Partial<SE.Warehouse>, warehouseId: string) => Promise<void> | void;
|
|
3
8
|
warehouses: SE.Warehouse[];
|
|
4
9
|
};
|
|
5
|
-
export declare const ManageWarehouses: ({ warehouses }: ManageWarehousesProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const ManageWarehouses: ({ errors, onAdd, onDelete, onEdit, onSetDefault, warehouses, }: ManageWarehousesProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./onboarding";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SE } from "@shipengine/api";
|
|
2
|
+
export type OnboardingProps = {
|
|
3
|
+
carriers: SE.Carrier[];
|
|
4
|
+
createWarehouse: (payload: Partial<SE.Warehouse>) => Promise<SE.Warehouse>;
|
|
5
|
+
isLoadingDhl: boolean;
|
|
6
|
+
isLoadingUps: boolean;
|
|
7
|
+
onCarrierCreated: () => Promise<void>;
|
|
8
|
+
onCompleteOnboarding: () => void;
|
|
9
|
+
onWarehouseCreated: () => Promise<void>;
|
|
10
|
+
registerDhlCarrier: (payload: SE.CarrierConnection) => Promise<void>;
|
|
11
|
+
registerDhlCarrierErrors: SE.CodedError[] | null;
|
|
12
|
+
registerStampsCarrier: (payload: SE.CarrierConnection) => Promise<void>;
|
|
13
|
+
registerStampsCarrierErrors: SE.CodedError[] | null;
|
|
14
|
+
registerUpsCarrier: (payload: SE.CarrierConnection) => Promise<void>;
|
|
15
|
+
registerUpsCarrierErrors: SE.CodedError[] | null;
|
|
16
|
+
warehouses: SE.Warehouse[];
|
|
17
|
+
};
|
|
18
|
+
export declare const Onboarding: ({ carriers, createWarehouse, onCarrierCreated, onWarehouseCreated, isLoadingDhl, isLoadingUps, onCompleteOnboarding, registerDhlCarrier, registerDhlCarrierErrors, registerStampsCarrier, registerStampsCarrierErrors, registerUpsCarrier, registerUpsCarrierErrors, warehouses, }: OnboardingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: Record<"lastStep" | "step", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SE } from "@shipengine/api";
|
|
2
2
|
export type RateFormFeatures = {
|
|
3
3
|
enableGlobalPostFiltering?: boolean;
|
|
4
4
|
includeRecommendedRates?: boolean;
|
|
@@ -13,7 +13,7 @@ export type RateFormProps = {
|
|
|
13
13
|
isLoading?: boolean;
|
|
14
14
|
labelErrors?: SE.CodedError[];
|
|
15
15
|
onSave?: (rate: Pick<SE.Rate, "carrierId" | "serviceCode">) => Promise<void> | void;
|
|
16
|
-
onSelectRate
|
|
16
|
+
onSelectRate?: (rateId: string) => void;
|
|
17
17
|
onSubmit?: (rateId: string) => Promise<void> | void;
|
|
18
18
|
rates?: SE.Rate[];
|
|
19
19
|
shipment?: SE.SalesOrderShipment;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SE } from "@shipengine/api";
|
|
2
2
|
export declare const schedulePickupForCarrier: (carrierCode?: string, plaftformSchedulePickupUrl?: string) => string | undefined;
|
|
3
3
|
export type ShipmentFeatures = {
|
|
4
4
|
schedulePickup?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
2
|
+
import { SE } from "@shipengine/api";
|
|
3
3
|
import { UseShippingPresetsOptionsProps } from "../../../hooks";
|
|
4
4
|
import { ShippingPreset } from "../../../types";
|
|
5
5
|
import { AddressParserPayload } from "../address-parser";
|
|
@@ -12,7 +12,7 @@ export type ShipmentFormProps = {
|
|
|
12
12
|
addressPreference?: AddressPreference;
|
|
13
13
|
carriers?: SE.Carrier[];
|
|
14
14
|
charsetWarning?: CharsetWarning;
|
|
15
|
-
customPackageTypes?: SE.
|
|
15
|
+
customPackageTypes?: SE.CustomPackage[];
|
|
16
16
|
errors?: SE.CodedError[];
|
|
17
17
|
features?: ShipmentFormFeatures;
|
|
18
18
|
hydrateRef: React.MutableRefObject<((updatedShipment: SE.SalesOrderShipment) => void) | undefined>;
|
|
@@ -27,7 +27,7 @@ export type ShipmentFormProps = {
|
|
|
27
27
|
}) => Promise<void> | void;
|
|
28
28
|
onDirty: () => void;
|
|
29
29
|
onSubmit: (values: Partial<SE.SalesOrderShipment>) => Promise<SE.SalesOrderShipment | undefined>;
|
|
30
|
-
onSubmitParseShipTo: (payload: AddressParserPayload) => Promise<SE.
|
|
30
|
+
onSubmitParseShipTo: (payload: AddressParserPayload) => Promise<SE.AddressExtraction | undefined>;
|
|
31
31
|
onToggleAddressPreferenceDisclosure?: AddressPreferenceDisplayProps["onToggleDisclosure"];
|
|
32
32
|
onUpdateCustoms?: (customs: SE.Customs) => Promise<SE.SalesOrderShipment | undefined>;
|
|
33
33
|
salesOrder: SE.SalesOrder;
|