@shipengine/elements 1.3.2 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +12553 -8745
- package/index.js +12550 -8752
- package/package.json +5 -4
- package/src/components/carrier-connection-card/carrier-connection-card.d.ts +11 -0
- package/src/components/carrier-connection-card/carrier-connection-card.styles.d.ts +35 -0
- package/src/components/carrier-connection-card/index.d.ts +1 -0
- package/src/components/field/create-field-controller.d.ts +1 -1
- package/src/components/field/input-group/input-group.d.ts +9 -0
- package/src/components/field/input-group/input-group.styles.d.ts +24 -0
- package/src/components/field/rate-card/rate-card.d.ts +4 -1
- package/src/components/field/rate-card/rate-card.styles.d.ts +1 -0
- package/src/components/field/rate-select/rate-select.d.ts +3 -0
- package/src/components/field-label/field-label.d.ts +2 -1
- package/src/components/field-label/field-label.styles.d.ts +9 -0
- package/src/components/fund-and-purchase/fund-and-purchase.d.ts +2 -1
- package/src/components/index.d.ts +3 -0
- package/src/components/modal/index.d.ts +2 -0
- package/src/components/modal/modal-container.d.ts +15 -0
- package/src/components/modal/modal.d.ts +9 -0
- package/src/components/modal/modal.styles.d.ts +17 -0
- package/src/components/pager/pager.styles.d.ts +1 -0
- package/src/components/section/section.d.ts +2 -1
- package/src/components/section/section.styles.d.ts +13 -13
- package/src/components/service-point-display/index.d.ts +1 -0
- package/src/components/service-point-display/service-point-display.d.ts +10 -0
- package/src/components/service-point-display/service-point-display.styles.d.ts +43 -0
- package/src/components/service-points/index.d.ts +1 -0
- package/src/components/service-points/service-points.d.ts +8 -0
- package/src/components/service-points/service-points.styles.d.ts +44 -0
- package/src/components/skeleton/index.d.ts +1 -0
- package/src/components/skeleton/skeleton-carrier-row.d.ts +1 -0
- package/src/components/skeleton/skeleton-carrier-row.styles.d.ts +17 -0
- package/src/components/suspend/index.d.ts +1 -0
- package/src/components/suspend/suspend-text.d.ts +5 -0
- package/src/components/tabs/tabs.d.ts +2 -1
- package/src/components/tabs/tabs.styles.d.ts +3 -3
- package/src/components/templates/account-settings/account-settings.d.ts +5 -1
- package/src/components/templates/add-carrier-form/add-carrier-form-schema.d.ts +12 -3
- package/src/components/templates/address-form/address-form-schema.d.ts +24 -0
- package/src/components/templates/address-form/address-schema.d.ts +3 -0
- package/src/components/templates/available-carriers-list/available-carriers-list.d.ts +10 -0
- package/src/components/templates/available-carriers-list/available-carriers-list.styles.d.ts +6 -0
- package/src/components/templates/available-carriers-list/index.d.ts +1 -0
- package/src/components/templates/connect-carrier-form/connect-carrier-form.d.ts +4 -2
- package/src/components/templates/connect-carrier-form/connect-carrier-form.styles.d.ts +0 -1
- package/src/components/templates/connected-carrier-list/connected-carrier-list.d.ts +8 -0
- package/src/components/templates/connected-carrier-list/connected-carrier-list.styles.d.ts +35 -0
- package/src/components/templates/connected-carrier-list/connected-carrier-row/connected-carrier-row.d.ts +8 -0
- package/src/components/templates/connected-carrier-list/connected-carrier-row/connected-carrier-row.styles.d.ts +36 -0
- package/src/components/templates/connected-carrier-list/connected-carrier-row/index.d.ts +1 -0
- package/src/components/templates/connected-carrier-list/index.d.ts +1 -0
- package/src/components/templates/index.d.ts +1 -1
- package/src/components/templates/list-carriers/list-carriers.d.ts +1 -1
- package/src/components/templates/list-carriers/list-carriers.styles.d.ts +0 -15
- package/src/components/templates/product-form/product-form.d.ts +4 -1
- package/src/components/templates/product-form/product-form.styles.d.ts +9 -0
- package/src/components/templates/products-display/products-display.d.ts +2 -1
- package/src/components/templates/pudo-rate-tabs/index.d.ts +2 -0
- package/src/components/templates/pudo-rate-tabs/pudo-rate-tabs.d.ts +22 -0
- package/src/components/templates/pudo-rate-tabs/service-points-search-bar/index.d.ts +1 -0
- package/src/components/templates/pudo-rate-tabs/service-points-search-bar/service-points-search-bar.d.ts +6 -0
- package/src/components/templates/rate-form/rate-form.d.ts +1 -1
- package/src/components/templates/shipment-form/shipment-form.d.ts +3 -1
- package/src/components/templates/wallet-form/wallet-schema.d.ts +36 -26
- package/src/components/templates/warehouse-form/warehouse-form-schema.d.ts +75 -37
- package/src/components/templates/warehouse-form/warehouse-form.d.ts +2 -1
- package/src/elements/account-settings/account-settings.d.ts +106 -33
- package/src/elements/configure-shipment/configure-shipment.d.ts +1 -0
- package/src/elements/configure-shipment/hooks/use-rates-form.d.ts +1 -1
- package/src/elements/configure-shipment/hooks/use-shipment-form.d.ts +1 -0
- package/src/elements/connect-carrier/connect-carrier.d.ts +141 -3
- package/src/elements/external-carriers/external-carriers.d.ts +34 -0
- package/src/elements/external-carriers/index.d.ts +1 -0
- package/src/elements/index.d.ts +1 -0
- package/src/elements/labels-grid/labels-grid.d.ts +82 -1
- package/src/elements/purchase-label/purchase-label.d.ts +90 -2
- package/src/elements/shipengine-workflow/label-workflow.d.ts +4 -1
- package/src/elements/shipments-grid/shipments-grid.d.ts +82 -1
- package/src/elements/theme-creator/theme-creator.d.ts +82 -1
- package/src/elements/view-shipment/view-shipment.d.ts +82 -1
- package/src/elements/void-label/void-label.d.ts +85 -2
- package/src/factories/shipengine/service-point.d.ts +3 -0
- package/src/hooks/options/index.d.ts +1 -0
- package/src/hooks/options/use-rate-options.d.ts +12 -1
- package/src/hooks/options/use-service-points.d.ts +8 -0
- package/src/hooks/use-nested-form.d.ts +5 -1
- package/src/locales/en/index.d.ts +82 -1
- package/src/utilities/feature-flags.d.ts +16 -1
- package/src/utilities/rates.d.ts +3 -1
- package/src/utilities/shipengine/address.d.ts +9 -0
- package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form-schema.d.ts +20 -0
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +1 -0
- package/src/workflows/onboarding/onboarding.d.ts +89 -2
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
carriersList: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
3
|
+
"& > li:not(:last-of-type)": {
|
|
4
|
+
borderBottom: string;
|
|
5
|
+
};
|
|
6
|
+
border: string;
|
|
7
|
+
borderRadius: string;
|
|
8
|
+
listStyle: "none";
|
|
9
|
+
marginTop: number;
|
|
10
|
+
width: string;
|
|
11
|
+
};
|
|
12
|
+
carriersListContainer: () => {
|
|
13
|
+
alignItems: "flex-end";
|
|
14
|
+
display: "flex";
|
|
15
|
+
flexDirection: "column";
|
|
16
|
+
};
|
|
17
|
+
connectButton: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
18
|
+
paddingBottom: number;
|
|
19
|
+
};
|
|
20
|
+
noCarriersContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
21
|
+
alignItems: "center";
|
|
22
|
+
borderColor: string;
|
|
23
|
+
borderRadius: number;
|
|
24
|
+
borderStyle: "dashed";
|
|
25
|
+
borderWidth: string;
|
|
26
|
+
display: "flex";
|
|
27
|
+
flexDirection: "column";
|
|
28
|
+
padding: string;
|
|
29
|
+
};
|
|
30
|
+
noCarriersDescription: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
31
|
+
color: string;
|
|
32
|
+
marginBottom: number;
|
|
33
|
+
textAlign: "center";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type ConnectedCarrier = {
|
|
2
|
+
carrierCode: string;
|
|
3
|
+
carrierId: string;
|
|
4
|
+
friendlyName: string;
|
|
5
|
+
iconUrl: string;
|
|
6
|
+
nickname: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const ConnectedCarrierRow: ({ carrierCode, carrierId, friendlyName, iconUrl, nickname, }: ConnectedCarrier) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
carrierLogo: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
3
|
+
flex: string;
|
|
4
|
+
marginRight: number;
|
|
5
|
+
maxHeight: string;
|
|
6
|
+
width: string;
|
|
7
|
+
};
|
|
8
|
+
container: {
|
|
9
|
+
display: "flex";
|
|
10
|
+
flexDirection: "column";
|
|
11
|
+
};
|
|
12
|
+
logoContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
13
|
+
alignItems: "center";
|
|
14
|
+
columnGap: string;
|
|
15
|
+
display: "flex";
|
|
16
|
+
};
|
|
17
|
+
nameContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
18
|
+
alignItems: "left";
|
|
19
|
+
columnGap: string;
|
|
20
|
+
display: "flex";
|
|
21
|
+
flexDirection: "column";
|
|
22
|
+
};
|
|
23
|
+
rowContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
24
|
+
alignItems: "center";
|
|
25
|
+
display: "flex";
|
|
26
|
+
justifyContent: "space-between";
|
|
27
|
+
padding: string;
|
|
28
|
+
};
|
|
29
|
+
statusTag: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
30
|
+
backgroundColor: string;
|
|
31
|
+
borderRadius: string;
|
|
32
|
+
color: string;
|
|
33
|
+
fontWeight: number;
|
|
34
|
+
padding: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./connected-carrier-row";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./connected-carrier-list";
|
|
@@ -6,10 +6,10 @@ 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 "./product-form";
|
|
10
9
|
export * from "./label";
|
|
11
10
|
export * from "./list-carriers";
|
|
12
11
|
export * from "./manage-warehouses";
|
|
12
|
+
export * from "./product-form";
|
|
13
13
|
export * from "./rate-form";
|
|
14
14
|
export * from "./shipment-form";
|
|
15
15
|
export * from "./shipment";
|
|
@@ -2,7 +2,7 @@ import { CarrierConnection, CodedError } from "@shipengine/alchemy";
|
|
|
2
2
|
import { ConnectedCarrierMetadata } from "../../../elements/list-carriers/hooks/use-list-connected-carriers";
|
|
3
3
|
export type ListCarriersFeatures = {
|
|
4
4
|
carriers: {
|
|
5
|
-
enabledCarriers: ("stamps_com" | "ups_walleted" | "ups" | "dhl_express_walleted" | "dhl_express_worldwide" | "hermes" | "yodel_walleted")[];
|
|
5
|
+
enabledCarriers: ("stamps_com" | "ups_walleted" | "ups" | "dhl_express_walleted" | "dhl_express_worldwide" | "hermes" | "yodel_walleted" | "dpdwallet")[];
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
8
|
export type ListCarriersProps = {
|
|
@@ -7,19 +7,4 @@ export declare const styles: {
|
|
|
7
7
|
borderRadius: string;
|
|
8
8
|
listStyle: "none";
|
|
9
9
|
};
|
|
10
|
-
skeletonLogoContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
11
|
-
alignItems: "center";
|
|
12
|
-
columnGap: string;
|
|
13
|
-
display: "flex";
|
|
14
|
-
};
|
|
15
|
-
skeletonRow: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
16
|
-
"&:not(:last-of-type)": {
|
|
17
|
-
borderBottom: string;
|
|
18
|
-
};
|
|
19
|
-
alignItems: "center";
|
|
20
|
-
display: "flex";
|
|
21
|
-
flexDirection: "row";
|
|
22
|
-
justifyContent: "space-between";
|
|
23
|
-
padding: string;
|
|
24
|
-
};
|
|
25
10
|
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SE } from "@shipengine/alchemy";
|
|
3
3
|
export type ProductFormProps<T = undefined> = {
|
|
4
|
+
currency: SE.Currency;
|
|
5
|
+
expectedCurrency?: SE.Currency;
|
|
4
6
|
onCancel?: () => void;
|
|
5
7
|
onSubmit: (values: SE.Product) => Promise<void>;
|
|
6
8
|
product?: SE.Product;
|
|
9
|
+
shipFromCountry?: string;
|
|
7
10
|
shipToCountry?: string;
|
|
8
11
|
} & ({
|
|
9
12
|
formId: string;
|
|
@@ -12,4 +15,4 @@ export type ProductFormProps<T = undefined> = {
|
|
|
12
15
|
formId?: string;
|
|
13
16
|
portalRef?: never;
|
|
14
17
|
});
|
|
15
|
-
export declare const ProductForm: <T extends Element>({ product, formId, onCancel, onSubmit, portalRef, shipToCountry, }: ProductFormProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const ProductForm: <T extends Element>({ product, formId, onCancel, onSubmit, portalRef, shipFromCountry, shipToCountry, currency, expectedCurrency, }: ProductFormProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
type ProductsDisplayProps = {
|
|
3
|
+
currency: SE.Currency;
|
|
3
4
|
onUpdate: (products: SE.Product[]) => Promise<void>;
|
|
4
5
|
shipment: SE.SalesOrderShipment;
|
|
5
6
|
};
|
|
6
|
-
export declare const ProductsDisplay: ({ onUpdate, shipment }: ProductsDisplayProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const ProductsDisplay: ({ onUpdate, shipment, currency }: ProductsDisplayProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseFormReturn } from "react-hook-form";
|
|
2
|
+
import { SE } from "@shipengine/alchemy";
|
|
3
|
+
import { RateOption } from "../../../hooks";
|
|
4
|
+
import { RateFormProps } from "../rate-form";
|
|
5
|
+
export type PudoRateTabsProps = {
|
|
6
|
+
form: UseFormReturn<{
|
|
7
|
+
rate: {
|
|
8
|
+
isAcknowledged: boolean;
|
|
9
|
+
rateId: string;
|
|
10
|
+
};
|
|
11
|
+
}, any>;
|
|
12
|
+
nicknameFeature?: boolean;
|
|
13
|
+
onSearch: (postalCode: string) => void;
|
|
14
|
+
onSelectRate?: RateFormProps["onSelectRate"];
|
|
15
|
+
onSelectServicePoint: (servicePoint?: SE.ServicePoint) => void;
|
|
16
|
+
preferredServiceCodes?: RateFormProps["preferredServiceCodes"];
|
|
17
|
+
pudoRateOptions: RateOption[];
|
|
18
|
+
rates?: RateFormProps["rates"];
|
|
19
|
+
servicePointsLoading?: boolean;
|
|
20
|
+
shipment?: RateFormProps["shipment"];
|
|
21
|
+
};
|
|
22
|
+
export declare const PudoRateTabs: ({ shipment, pudoRateOptions, form, onSelectRate, servicePointsLoading, onSelectServicePoint, nicknameFeature, preferredServiceCodes, onSearch, }: PudoRateTabsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./service-points-search-bar";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type ServicePointsSearchBarProps = {
|
|
2
|
+
onSearch: (postalCode: string) => void | Promise<void>;
|
|
3
|
+
postalCode?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const ServicePointsSearchBar: ({ postalCode, onSearch }: ServicePointsSearchBarProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -15,7 +15,7 @@ export type RateFormProps = {
|
|
|
15
15
|
labelsLoading?: boolean;
|
|
16
16
|
onSave?: (rate: Pick<SE.Rate, "carrierId" | "serviceCode">) => Promise<void> | void;
|
|
17
17
|
onSelectRate?: (rateId: string) => void;
|
|
18
|
-
onSubmit?: (rateId: string) => Promise<void> | void;
|
|
18
|
+
onSubmit?: (rateId: string, servicePoint?: SE.ServicePoint) => Promise<void> | void;
|
|
19
19
|
preferredRates?: PreferredRatesResponse;
|
|
20
20
|
preferredServiceCodes?: string[];
|
|
21
21
|
rates?: SE.Rate[];
|
|
@@ -9,6 +9,7 @@ export type OnChangeAddressOptions = {
|
|
|
9
9
|
};
|
|
10
10
|
export type ShipmentFormMode = "browse_rates" | "select_service";
|
|
11
11
|
export type ShipmentFormFeatures = {
|
|
12
|
+
addOns?: boolean;
|
|
12
13
|
browseRates?: boolean;
|
|
13
14
|
includeShipsuranceInsurance?: boolean;
|
|
14
15
|
includeThirdPartyInsurance?: boolean;
|
|
@@ -35,6 +36,7 @@ export type ShipmentFormProps = {
|
|
|
35
36
|
previousMode: ShipmentFormMode;
|
|
36
37
|
selectedMode: ShipmentFormMode;
|
|
37
38
|
}) => Promise<void> | void;
|
|
39
|
+
onChangeWarehouse: (warehouseId: string) => Promise<void>;
|
|
38
40
|
onDirty: () => void;
|
|
39
41
|
onSubmit: (values: Partial<SE.SalesOrderShipment>) => Promise<SE.SalesOrderShipment | undefined>;
|
|
40
42
|
onSubmitParseShipTo: (payload: AddressParserPayload) => Promise<SE.AddressExtraction | undefined>;
|
|
@@ -53,4 +55,4 @@ export type CharsetWarning = {
|
|
|
53
55
|
message: string;
|
|
54
56
|
title?: string;
|
|
55
57
|
};
|
|
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;
|
|
58
|
+
export declare const ShipmentForm: ({ accountSettings, addressLoading, addressPreference, charsetWarning, carriers, customPackageTypes, currency, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode, onChangeWarehouse, onDirty, onSubmit, onSubmitParseShipTo, onToggleAddressPreferenceDisclosure, onUpdateCustoms, parseAddressErrors, resetParseAddress, salesOrder, shipment, shippingPresets, warehouseId, warehouses, }: ShipmentFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { Provider } from "@shipengine/alchemy";
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const walletEmailSchemas: {
|
|
4
|
+
emailOptional: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
5
|
+
emailRequired: z.ZodString;
|
|
6
|
+
};
|
|
7
|
+
export type EmailRequirementOption = keyof typeof walletEmailSchemas;
|
|
8
|
+
export declare const getBillingAddressSchema: (emailRequirement: EmailRequirementOption) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<z.extendShape<{
|
|
4
9
|
addressLine1: z.ZodString;
|
|
5
10
|
addressLine2: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
6
11
|
cityLocality: z.ZodString;
|
|
7
12
|
companyName: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>, z.ZodLiteral<"">]>, string | undefined, string | null | undefined>;
|
|
8
13
|
countryCode: 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"]>;
|
|
14
|
+
email: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
9
15
|
name: z.ZodString;
|
|
10
16
|
phone: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string, string | null | undefined>;
|
|
11
17
|
postalCode: z.ZodString;
|
|
@@ -14,10 +20,11 @@ export declare const billingAddressSchema: z.ZodEffects<z.ZodEffects<z.ZodEffect
|
|
|
14
20
|
addressLine1: z.ZodEffects<z.ZodString, string, string>;
|
|
15
21
|
addressLine2: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>, string | undefined, string | null | undefined>;
|
|
16
22
|
companyName: z.ZodString;
|
|
17
|
-
email: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string, string | null | undefined>;
|
|
23
|
+
email: z.ZodString | z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
18
24
|
phone: z.ZodString;
|
|
19
25
|
}>, "strip", z.ZodTypeAny, {
|
|
20
26
|
addressLine2?: string | undefined;
|
|
27
|
+
email?: string | undefined;
|
|
21
28
|
addressLine1: string;
|
|
22
29
|
cityLocality: string;
|
|
23
30
|
companyName: string;
|
|
@@ -26,11 +33,10 @@ export declare const billingAddressSchema: z.ZodEffects<z.ZodEffects<z.ZodEffect
|
|
|
26
33
|
phone: string;
|
|
27
34
|
postalCode: string;
|
|
28
35
|
stateProvince: string;
|
|
29
|
-
email: string;
|
|
30
36
|
}, {
|
|
31
37
|
addressLine2?: string | null | undefined;
|
|
32
|
-
stateProvince?: string | null | undefined;
|
|
33
38
|
email?: string | null | undefined;
|
|
39
|
+
stateProvince?: string | null | undefined;
|
|
34
40
|
addressLine1: string;
|
|
35
41
|
cityLocality: string;
|
|
36
42
|
companyName: string;
|
|
@@ -40,6 +46,7 @@ export declare const billingAddressSchema: z.ZodEffects<z.ZodEffects<z.ZodEffect
|
|
|
40
46
|
postalCode: string;
|
|
41
47
|
}>, {
|
|
42
48
|
addressLine2?: string | undefined;
|
|
49
|
+
email?: string | undefined;
|
|
43
50
|
addressLine1: string;
|
|
44
51
|
cityLocality: string;
|
|
45
52
|
companyName: string;
|
|
@@ -48,11 +55,10 @@ export declare const billingAddressSchema: z.ZodEffects<z.ZodEffects<z.ZodEffect
|
|
|
48
55
|
phone: string;
|
|
49
56
|
postalCode: string;
|
|
50
57
|
stateProvince: string;
|
|
51
|
-
email: string;
|
|
52
58
|
}, {
|
|
53
59
|
addressLine2?: string | null | undefined;
|
|
54
|
-
stateProvince?: string | null | undefined;
|
|
55
60
|
email?: string | null | undefined;
|
|
61
|
+
stateProvince?: string | null | undefined;
|
|
56
62
|
addressLine1: string;
|
|
57
63
|
cityLocality: string;
|
|
58
64
|
companyName: string;
|
|
@@ -62,6 +68,7 @@ export declare const billingAddressSchema: z.ZodEffects<z.ZodEffects<z.ZodEffect
|
|
|
62
68
|
postalCode: string;
|
|
63
69
|
}>, {
|
|
64
70
|
addressLine2?: string | undefined;
|
|
71
|
+
email?: string | undefined;
|
|
65
72
|
addressLine1: string;
|
|
66
73
|
cityLocality: string;
|
|
67
74
|
companyName: string;
|
|
@@ -70,11 +77,10 @@ export declare const billingAddressSchema: z.ZodEffects<z.ZodEffects<z.ZodEffect
|
|
|
70
77
|
phone: string;
|
|
71
78
|
postalCode: string;
|
|
72
79
|
stateProvince: string;
|
|
73
|
-
email: string;
|
|
74
80
|
}, {
|
|
75
81
|
addressLine2?: string | null | undefined;
|
|
76
|
-
stateProvince?: string | null | undefined;
|
|
77
82
|
email?: string | null | undefined;
|
|
83
|
+
stateProvince?: string | null | undefined;
|
|
78
84
|
addressLine1: string;
|
|
79
85
|
cityLocality: string;
|
|
80
86
|
companyName: string;
|
|
@@ -84,6 +90,7 @@ export declare const billingAddressSchema: z.ZodEffects<z.ZodEffects<z.ZodEffect
|
|
|
84
90
|
postalCode: string;
|
|
85
91
|
}>, {
|
|
86
92
|
addressLine2?: string | undefined;
|
|
93
|
+
email?: string | undefined;
|
|
87
94
|
addressLine1: string;
|
|
88
95
|
cityLocality: string;
|
|
89
96
|
companyName: string;
|
|
@@ -92,11 +99,10 @@ export declare const billingAddressSchema: z.ZodEffects<z.ZodEffects<z.ZodEffect
|
|
|
92
99
|
phone: string;
|
|
93
100
|
postalCode: string;
|
|
94
101
|
stateProvince: string;
|
|
95
|
-
email: string;
|
|
96
102
|
}, {
|
|
97
103
|
addressLine2?: string | null | undefined;
|
|
98
|
-
stateProvince?: string | null | undefined;
|
|
99
104
|
email?: string | null | undefined;
|
|
105
|
+
stateProvince?: string | null | undefined;
|
|
100
106
|
addressLine1: string;
|
|
101
107
|
cityLocality: string;
|
|
102
108
|
companyName: string;
|
|
@@ -105,15 +111,17 @@ export declare const billingAddressSchema: z.ZodEffects<z.ZodEffects<z.ZodEffect
|
|
|
105
111
|
phone: string;
|
|
106
112
|
postalCode: string;
|
|
107
113
|
}>;
|
|
108
|
-
|
|
109
|
-
export type
|
|
110
|
-
export
|
|
114
|
+
type BillingAddressSchema = ReturnType<typeof getBillingAddressSchema>;
|
|
115
|
+
export type BillingAddressFields = z.input<BillingAddressSchema>;
|
|
116
|
+
export type BillingAddressPayload = z.output<BillingAddressSchema>;
|
|
117
|
+
export declare const getWalletSchema: (emailRequirement: EmailRequirementOption) => z.ZodObject<{
|
|
111
118
|
address: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<z.extendShape<{
|
|
112
119
|
addressLine1: z.ZodString;
|
|
113
120
|
addressLine2: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
114
121
|
cityLocality: z.ZodString;
|
|
115
122
|
companyName: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>, z.ZodLiteral<"">]>, string | undefined, string | null | undefined>;
|
|
116
123
|
countryCode: 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"]>;
|
|
124
|
+
email: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
117
125
|
name: z.ZodString;
|
|
118
126
|
phone: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string, string | null | undefined>;
|
|
119
127
|
postalCode: z.ZodString;
|
|
@@ -122,10 +130,11 @@ export declare const walletSchema: z.ZodObject<{
|
|
|
122
130
|
addressLine1: z.ZodEffects<z.ZodString, string, string>;
|
|
123
131
|
addressLine2: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>, string | undefined, string | null | undefined>;
|
|
124
132
|
companyName: z.ZodString;
|
|
125
|
-
email: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string, string | null | undefined>;
|
|
133
|
+
email: z.ZodString | z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
126
134
|
phone: z.ZodString;
|
|
127
135
|
}>, "strip", z.ZodTypeAny, {
|
|
128
136
|
addressLine2?: string | undefined;
|
|
137
|
+
email?: string | undefined;
|
|
129
138
|
addressLine1: string;
|
|
130
139
|
cityLocality: string;
|
|
131
140
|
companyName: string;
|
|
@@ -134,11 +143,10 @@ export declare const walletSchema: z.ZodObject<{
|
|
|
134
143
|
phone: string;
|
|
135
144
|
postalCode: string;
|
|
136
145
|
stateProvince: string;
|
|
137
|
-
email: string;
|
|
138
146
|
}, {
|
|
139
147
|
addressLine2?: string | null | undefined;
|
|
140
|
-
stateProvince?: string | null | undefined;
|
|
141
148
|
email?: string | null | undefined;
|
|
149
|
+
stateProvince?: string | null | undefined;
|
|
142
150
|
addressLine1: string;
|
|
143
151
|
cityLocality: string;
|
|
144
152
|
companyName: string;
|
|
@@ -148,6 +156,7 @@ export declare const walletSchema: z.ZodObject<{
|
|
|
148
156
|
postalCode: string;
|
|
149
157
|
}>, {
|
|
150
158
|
addressLine2?: string | undefined;
|
|
159
|
+
email?: string | undefined;
|
|
151
160
|
addressLine1: string;
|
|
152
161
|
cityLocality: string;
|
|
153
162
|
companyName: string;
|
|
@@ -156,11 +165,10 @@ export declare const walletSchema: z.ZodObject<{
|
|
|
156
165
|
phone: string;
|
|
157
166
|
postalCode: string;
|
|
158
167
|
stateProvince: string;
|
|
159
|
-
email: string;
|
|
160
168
|
}, {
|
|
161
169
|
addressLine2?: string | null | undefined;
|
|
162
|
-
stateProvince?: string | null | undefined;
|
|
163
170
|
email?: string | null | undefined;
|
|
171
|
+
stateProvince?: string | null | undefined;
|
|
164
172
|
addressLine1: string;
|
|
165
173
|
cityLocality: string;
|
|
166
174
|
companyName: string;
|
|
@@ -170,6 +178,7 @@ export declare const walletSchema: z.ZodObject<{
|
|
|
170
178
|
postalCode: string;
|
|
171
179
|
}>, {
|
|
172
180
|
addressLine2?: string | undefined;
|
|
181
|
+
email?: string | undefined;
|
|
173
182
|
addressLine1: string;
|
|
174
183
|
cityLocality: string;
|
|
175
184
|
companyName: string;
|
|
@@ -178,11 +187,10 @@ export declare const walletSchema: z.ZodObject<{
|
|
|
178
187
|
phone: string;
|
|
179
188
|
postalCode: string;
|
|
180
189
|
stateProvince: string;
|
|
181
|
-
email: string;
|
|
182
190
|
}, {
|
|
183
191
|
addressLine2?: string | null | undefined;
|
|
184
|
-
stateProvince?: string | null | undefined;
|
|
185
192
|
email?: string | null | undefined;
|
|
193
|
+
stateProvince?: string | null | undefined;
|
|
186
194
|
addressLine1: string;
|
|
187
195
|
cityLocality: string;
|
|
188
196
|
companyName: string;
|
|
@@ -192,6 +200,7 @@ export declare const walletSchema: z.ZodObject<{
|
|
|
192
200
|
postalCode: string;
|
|
193
201
|
}>, {
|
|
194
202
|
addressLine2?: string | undefined;
|
|
203
|
+
email?: string | undefined;
|
|
195
204
|
addressLine1: string;
|
|
196
205
|
cityLocality: string;
|
|
197
206
|
companyName: string;
|
|
@@ -200,11 +209,10 @@ export declare const walletSchema: z.ZodObject<{
|
|
|
200
209
|
phone: string;
|
|
201
210
|
postalCode: string;
|
|
202
211
|
stateProvince: string;
|
|
203
|
-
email: string;
|
|
204
212
|
}, {
|
|
205
213
|
addressLine2?: string | null | undefined;
|
|
206
|
-
stateProvince?: string | null | undefined;
|
|
207
214
|
email?: string | null | undefined;
|
|
215
|
+
stateProvince?: string | null | undefined;
|
|
208
216
|
addressLine1: string;
|
|
209
217
|
cityLocality: string;
|
|
210
218
|
companyName: string;
|
|
@@ -245,6 +253,7 @@ export declare const walletSchema: z.ZodObject<{
|
|
|
245
253
|
}, "strip", z.ZodTypeAny, {
|
|
246
254
|
address: {
|
|
247
255
|
addressLine2?: string | undefined;
|
|
256
|
+
email?: string | undefined;
|
|
248
257
|
addressLine1: string;
|
|
249
258
|
cityLocality: string;
|
|
250
259
|
companyName: string;
|
|
@@ -253,7 +262,6 @@ export declare const walletSchema: z.ZodObject<{
|
|
|
253
262
|
phone: string;
|
|
254
263
|
postalCode: string;
|
|
255
264
|
stateProvince: string;
|
|
256
|
-
email: string;
|
|
257
265
|
};
|
|
258
266
|
creditCard: {
|
|
259
267
|
cardNumber: string;
|
|
@@ -267,8 +275,8 @@ export declare const walletSchema: z.ZodObject<{
|
|
|
267
275
|
}, {
|
|
268
276
|
address: {
|
|
269
277
|
addressLine2?: string | null | undefined;
|
|
270
|
-
stateProvince?: string | null | undefined;
|
|
271
278
|
email?: string | null | undefined;
|
|
279
|
+
stateProvince?: string | null | undefined;
|
|
272
280
|
addressLine1: string;
|
|
273
281
|
cityLocality: string;
|
|
274
282
|
companyName: string;
|
|
@@ -285,5 +293,7 @@ export declare const walletSchema: z.ZodObject<{
|
|
|
285
293
|
};
|
|
286
294
|
iovationBlackbox: string;
|
|
287
295
|
}>;
|
|
288
|
-
|
|
289
|
-
export type
|
|
296
|
+
type WalletSchema = ReturnType<typeof getWalletSchema>;
|
|
297
|
+
export type WalletFormFields = z.input<WalletSchema>;
|
|
298
|
+
export type WalletFormPayload = z.output<WalletSchema>;
|
|
299
|
+
export {};
|