@shipengine/elements 1.3.1 → 1.4.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 +9769 -5948
- package/index.js +9765 -5954
- 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 +2 -1
- package/src/components/templates/shipment-form/shipment-schema.d.ts +377 -149
- 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/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 +11 -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
|
@@ -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 {};
|