@shipengine/elements 2.13.1 → 2.15.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/actions-menu.js +5 -5
- package/components.js +1 -1
- package/elements.js +1 -1
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/package.json +8 -5
- package/src/components/address-preference-context/address-preference-context.d.ts +1 -1
- package/src/components/drawer/drawer.styles.d.ts +1 -0
- package/src/components/enable-insurance-banner/enable-insurance-banner.d.ts +4 -3
- package/src/components/pager/usePager.d.ts +1 -0
- package/src/components/tabs/tabs.styles.d.ts +1 -0
- package/src/components/templates/address-form/address-fields.d.ts +1 -2
- package/src/components/templates/address-form/address-form.d.ts +1 -2
- package/src/components/templates/product-form/product-form.d.ts +3 -1
- package/src/components/templates/products-display/products-display.d.ts +4 -4
- package/src/components/templates/rate-form/rate-form.styles.d.ts +3 -0
- package/src/components/templates/register-funding-source-insurance-form/register-funding-source-insurance-form.d.ts +3 -1
- package/src/components/templates/shipment-form/sections/customs-forms/customs-forms.d.ts +3 -2
- package/src/components/templates/shipment-form/shipment-form.d.ts +5 -2
- package/src/components/templates/theme-creator/theme-creator.d.ts +1 -0
- package/src/components/templates/theme-creator/theme-creator.styles.d.ts +40 -2
- package/src/components/templates/wallet-form/edit-wallet-address-form.d.ts +1 -1
- package/src/components/templates/wallet-form/wallet-schema.d.ts +1 -1
- package/src/components/vat-form/vat-form-schema.d.ts +21 -3
- package/src/components/vat-form/vat-form.d.ts +7 -2
- package/src/components/vat-form/vat-form.styles.d.ts +3 -0
- package/src/components/vat-form/vat-types.d.ts +6 -0
- package/src/components/warehouse-form/warehouse-form-schema.d.ts +6 -0
- package/src/components/warehouse-form/warehouse-form.d.ts +3 -1
- package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +1 -0
- package/src/elements/labels-grid/labels-grid.d.ts +44 -17
- package/src/elements/manage-carriers/manage-carriers.d.ts +11 -3
- package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +11 -3
- package/src/elements/manage-funding/manage-funding-element.d.ts +11 -3
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +11 -3
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +11 -3
- package/src/elements/purchase-label/configure-shipment.d.ts +3 -2
- package/src/elements/purchase-label/hooks/index.d.ts +0 -2
- package/src/elements/purchase-label/hooks/use-shipment-form.d.ts +2 -1
- package/src/elements/purchase-label/purchase-label.d.ts +33 -40
- package/src/elements/select-label-layout/select-label-layout-element.d.ts +11 -3
- package/src/elements/shipment-summary/shipment-summary.d.ts +14 -7
- package/src/elements/shipments-grid/hooks/use-shipments-grid.d.ts +1 -0
- package/src/elements/shipments-grid/shipments-grid.d.ts +11 -6
- package/src/elements/theme-creator/theme-creator.d.ts +11 -3
- package/src/elements/transaction-history/transaction-history-element.d.ts +11 -3
- package/src/elements/unit-settings/unit-settings-element.d.ts +11 -3
- package/src/elements/vat-settings/vat-settings-element.d.ts +11 -3
- package/src/elements/void-label/void-label.d.ts +41 -47
- package/src/elements-provider/elements-provider.d.ts +1 -2
- package/src/features/manage-carriers/manage-insurance-provider-row/manage-insurance-provider-row.d.ts +2 -1
- package/src/features/vat-settings/use-vat-settings.d.ts +1 -1
- package/src/features/vat-settings/vat-settings.d.ts +1 -4
- package/src/features/vat-settings/vat-settings.styles.d.ts +7 -0
- package/src/hooks/index.d.ts +2 -0
- package/src/hooks/insurance/use-manage-funding-source-insurance.d.ts +3 -2
- package/src/hooks/options/use-country-code-options.d.ts +1 -1
- package/src/hooks/options/use-state-code-options.d.ts +2 -2
- package/src/{elements/purchase-label/hooks → hooks}/use-configure-shipment.d.ts +5 -10
- package/src/hooks/use-helpers.stories.d.ts +3 -0
- package/src/hooks/use-nested-form.d.ts +6 -2
- package/src/locales/en/index.d.ts +11 -3
- package/src/themes/auctane.d.ts +3 -0
- package/src/themes/index.d.ts +1 -0
- package/src/types/harmonized-tariff-code.d.ts +10 -0
- package/src/types/index.d.ts +4 -3
- package/src/workflows/account-settings/account-settings.d.ts +11 -3
- package/src/workflows/carrier-services/carrier-services.d.ts +11 -26
- package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +11 -3
- package/src/workflows/label-workflow/label-workflow.d.ts +1126 -101
- package/src/workflows/onboarding/components/ship-from-address-step/ship-from-address-step.d.ts +1 -1
- package/src/workflows/onboarding/onboarding.d.ts +12 -4
- package/transaction-history-element.js +1 -1
- package/use-configure-shipment.js +1 -0
- package/use-toggle.js +1 -1
- package/use-unit-settings.js +1 -1
- package/usePager.js +1 -1
- package/utilities.js +1 -1
- package/vat.js +1 -1
- package/wallet-form.js +1 -1
- package/warehouses.js +1 -0
- package/workflows.js +1 -1
- package/shipment.js +0 -1
- package/src/elements/theme-creator/themeData/index.d.ts +0 -1
- package/src/elements/theme-creator/themeData/themeData.d.ts +0 -2
- package/use-scrub-errors.js +0 -1
- /package/src/{elements/purchase-label/hooks → hooks}/use-import-sales-order.d.ts +0 -0
|
@@ -87,17 +87,17 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
87
87
|
rejected: string;
|
|
88
88
|
dpdwallet: string;
|
|
89
89
|
};
|
|
90
|
-
refund_process: string;
|
|
90
|
+
refund_process: string; /**
|
|
91
|
+
* `features` provides optional feature configuration for the Element
|
|
92
|
+
* If no value is defined, default configuration will be used.
|
|
93
|
+
*/
|
|
91
94
|
refund_rules: string;
|
|
92
95
|
resultTitles: {
|
|
93
96
|
approved: string;
|
|
94
97
|
rejected: string;
|
|
95
98
|
};
|
|
96
99
|
voidedOn: string;
|
|
97
|
-
};
|
|
98
|
-
* `onClickExternalOrderId` is an optional callback function that will be invoked when the user clicks the id number within the
|
|
99
|
-
* `External Order ID` column, if present.
|
|
100
|
-
*/
|
|
100
|
+
};
|
|
101
101
|
"view-shipment": {
|
|
102
102
|
title: string;
|
|
103
103
|
actions: {
|
|
@@ -152,16 +152,18 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
152
152
|
vatNumber: string;
|
|
153
153
|
vatRegistrationTooltip: string;
|
|
154
154
|
vatFormText: string;
|
|
155
|
-
vatFormRegisterLater: string;
|
|
156
155
|
vatNumberInputHint: string;
|
|
157
156
|
vatNumberInputPlaceholder: string;
|
|
158
157
|
verifiedVat: string;
|
|
158
|
+
vatNumberFieldLabel: string;
|
|
159
|
+
vatTypePlaceholder: string;
|
|
160
|
+
issuingAuthorityPlaceholder: string;
|
|
161
|
+
issuingAuthorityFieldLabel: string;
|
|
159
162
|
vatFormErrors: {
|
|
160
163
|
invalidFieldValue: string;
|
|
161
164
|
verificationFailure: string;
|
|
162
165
|
forbidden: string;
|
|
163
166
|
connectionNotSupported: string;
|
|
164
|
-
genericTitle: string;
|
|
165
167
|
genericText: string;
|
|
166
168
|
};
|
|
167
169
|
};
|
|
@@ -194,6 +196,10 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
194
196
|
subtitle: string;
|
|
195
197
|
};
|
|
196
198
|
insuranceProviders: {
|
|
199
|
+
connectionError: {
|
|
200
|
+
title: string;
|
|
201
|
+
description: string;
|
|
202
|
+
};
|
|
197
203
|
parcelguard: {
|
|
198
204
|
description: string;
|
|
199
205
|
terms: string;
|
|
@@ -208,6 +214,10 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
208
214
|
error: {
|
|
209
215
|
title: string;
|
|
210
216
|
};
|
|
217
|
+
/**
|
|
218
|
+
* `onClickExternalOrderId` is an optional callback function that will be invoked when the user clicks the id number within the
|
|
219
|
+
* `External Order ID` column, if present.
|
|
220
|
+
*/
|
|
211
221
|
info: {
|
|
212
222
|
description: string;
|
|
213
223
|
};
|
|
@@ -218,6 +228,10 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
218
228
|
carrier: {
|
|
219
229
|
title: string;
|
|
220
230
|
confirmAddress: string;
|
|
231
|
+
/**
|
|
232
|
+
* `onClickPrintForm` is an optional callback function that will be invoked when the user clicks the
|
|
233
|
+
* `Print Forms` button.
|
|
234
|
+
*/
|
|
221
235
|
description: string;
|
|
222
236
|
};
|
|
223
237
|
blackBox: {
|
|
@@ -314,12 +328,18 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
314
328
|
};
|
|
315
329
|
fields: {
|
|
316
330
|
"requires-additional-handling": string;
|
|
317
|
-
addOns: string;
|
|
331
|
+
addOns: string; /**
|
|
332
|
+
* `onClickPrintForm` is an optional callback function that will be invoked when the user clicks the
|
|
333
|
+
* `Print Forms` button.
|
|
334
|
+
*/
|
|
318
335
|
contentDescription: string;
|
|
319
336
|
confirmation: string;
|
|
320
337
|
dimensions: {
|
|
321
338
|
length: string;
|
|
322
|
-
width: string;
|
|
339
|
+
width: string; /**
|
|
340
|
+
* `onClickPrintLabel` is an optional callback function that will be invoked when the user clicks the
|
|
341
|
+
* `Print Label` button.
|
|
342
|
+
*/
|
|
323
343
|
height: string;
|
|
324
344
|
};
|
|
325
345
|
dimensionsGroup: string;
|
|
@@ -593,7 +613,10 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
593
613
|
g: string;
|
|
594
614
|
kg: string;
|
|
595
615
|
};
|
|
596
|
-
};
|
|
616
|
+
}; /**
|
|
617
|
+
* `features` provides optional feature configuration for the Element
|
|
618
|
+
* If no value is defined, default configuration will be used.
|
|
619
|
+
*/
|
|
597
620
|
};
|
|
598
621
|
"list-shipments": {
|
|
599
622
|
title: string;
|
|
@@ -629,7 +652,10 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
629
652
|
title: string;
|
|
630
653
|
subtitle: string;
|
|
631
654
|
};
|
|
632
|
-
};
|
|
655
|
+
}; /**
|
|
656
|
+
* `labelStatus` is the status of the labels you wish to view.
|
|
657
|
+
* If no value is defined, all labels will be rendered.
|
|
658
|
+
*/
|
|
633
659
|
"list-labels": {
|
|
634
660
|
title: string;
|
|
635
661
|
headers: {
|
|
@@ -667,10 +693,6 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
667
693
|
error: string;
|
|
668
694
|
};
|
|
669
695
|
actions: {
|
|
670
|
-
/**
|
|
671
|
-
* `labelStatus` is the status of the labels you wish to view.
|
|
672
|
-
* If no value is defined, all labels will be rendered.
|
|
673
|
-
*/
|
|
674
696
|
title: string;
|
|
675
697
|
print: string;
|
|
676
698
|
void: string;
|
|
@@ -774,7 +796,10 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
774
796
|
};
|
|
775
797
|
billing: {
|
|
776
798
|
fields: {
|
|
777
|
-
differentBillingAddress: string;
|
|
799
|
+
differentBillingAddress: string; /**
|
|
800
|
+
* `onClickPrintLabel` is an optional callback function that will be invoked when the user clicks the
|
|
801
|
+
* `Print Label` button.
|
|
802
|
+
*/
|
|
778
803
|
name: string;
|
|
779
804
|
cardNumber: string;
|
|
780
805
|
expiration: string;
|
|
@@ -853,6 +878,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
853
878
|
taxIssuingAuthority: string;
|
|
854
879
|
entityType: string;
|
|
855
880
|
};
|
|
881
|
+
hsCode: string;
|
|
856
882
|
nonDelivery: {
|
|
857
883
|
returnToSender: string;
|
|
858
884
|
treatAsAbandoned: string;
|
|
@@ -890,6 +916,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
890
916
|
shipments: string;
|
|
891
917
|
warehouses: string;
|
|
892
918
|
};
|
|
919
|
+
labelHasBeenPurchased: string;
|
|
893
920
|
emailIsRequired: string;
|
|
894
921
|
unknown: string;
|
|
895
922
|
noRatesAvailable: string;
|
|
@@ -1000,7 +1027,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
1000
1027
|
};
|
|
1001
1028
|
invalidAddressName: string;
|
|
1002
1029
|
invalidAddressNameStrict: string;
|
|
1003
|
-
|
|
1030
|
+
invalidAddressNameOnboarding: string;
|
|
1004
1031
|
invalidAddressPoBox: string;
|
|
1005
1032
|
invalidCreditCardType: string;
|
|
1006
1033
|
invalidExpirationDate: string;
|
|
@@ -125,16 +125,18 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
125
125
|
vatNumber: string;
|
|
126
126
|
vatRegistrationTooltip: string;
|
|
127
127
|
vatFormText: string;
|
|
128
|
-
vatFormRegisterLater: string;
|
|
129
128
|
vatNumberInputHint: string;
|
|
130
129
|
vatNumberInputPlaceholder: string;
|
|
131
130
|
verifiedVat: string;
|
|
131
|
+
vatNumberFieldLabel: string;
|
|
132
|
+
vatTypePlaceholder: string;
|
|
133
|
+
issuingAuthorityPlaceholder: string;
|
|
134
|
+
issuingAuthorityFieldLabel: string;
|
|
132
135
|
vatFormErrors: {
|
|
133
136
|
invalidFieldValue: string;
|
|
134
137
|
verificationFailure: string;
|
|
135
138
|
forbidden: string;
|
|
136
139
|
connectionNotSupported: string;
|
|
137
|
-
genericTitle: string;
|
|
138
140
|
genericText: string;
|
|
139
141
|
};
|
|
140
142
|
};
|
|
@@ -167,6 +169,10 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
167
169
|
subtitle: string;
|
|
168
170
|
};
|
|
169
171
|
insuranceProviders: {
|
|
172
|
+
connectionError: {
|
|
173
|
+
title: string;
|
|
174
|
+
description: string;
|
|
175
|
+
};
|
|
170
176
|
parcelguard: {
|
|
171
177
|
description: string;
|
|
172
178
|
terms: string;
|
|
@@ -866,6 +872,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
866
872
|
taxIssuingAuthority: string;
|
|
867
873
|
entityType: string;
|
|
868
874
|
};
|
|
875
|
+
hsCode: string;
|
|
869
876
|
nonDelivery: {
|
|
870
877
|
returnToSender: string;
|
|
871
878
|
treatAsAbandoned: string;
|
|
@@ -903,6 +910,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
903
910
|
shipments: string;
|
|
904
911
|
warehouses: string;
|
|
905
912
|
};
|
|
913
|
+
labelHasBeenPurchased: string;
|
|
906
914
|
emailIsRequired: string;
|
|
907
915
|
unknown: string;
|
|
908
916
|
noRatesAvailable: string;
|
|
@@ -1013,7 +1021,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
1013
1021
|
};
|
|
1014
1022
|
invalidAddressName: string;
|
|
1015
1023
|
invalidAddressNameStrict: string;
|
|
1016
|
-
|
|
1024
|
+
invalidAddressNameOnboarding: string;
|
|
1017
1025
|
invalidAddressPoBox: string;
|
|
1018
1026
|
invalidCreditCardType: string;
|
|
1019
1027
|
invalidExpirationDate: string;
|
|
@@ -147,16 +147,18 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
147
147
|
vatNumber: string;
|
|
148
148
|
vatRegistrationTooltip: string;
|
|
149
149
|
vatFormText: string;
|
|
150
|
-
vatFormRegisterLater: string;
|
|
151
150
|
vatNumberInputHint: string;
|
|
152
151
|
vatNumberInputPlaceholder: string;
|
|
153
152
|
verifiedVat: string;
|
|
153
|
+
vatNumberFieldLabel: string;
|
|
154
|
+
vatTypePlaceholder: string;
|
|
155
|
+
issuingAuthorityPlaceholder: string;
|
|
156
|
+
issuingAuthorityFieldLabel: string;
|
|
154
157
|
vatFormErrors: {
|
|
155
158
|
invalidFieldValue: string;
|
|
156
159
|
verificationFailure: string;
|
|
157
160
|
forbidden: string;
|
|
158
161
|
connectionNotSupported: string;
|
|
159
|
-
genericTitle: string;
|
|
160
162
|
genericText: string;
|
|
161
163
|
};
|
|
162
164
|
};
|
|
@@ -211,6 +213,10 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
211
213
|
subtitle: string;
|
|
212
214
|
};
|
|
213
215
|
insuranceProviders: {
|
|
216
|
+
connectionError: {
|
|
217
|
+
title: string;
|
|
218
|
+
description: string;
|
|
219
|
+
};
|
|
214
220
|
parcelguard: {
|
|
215
221
|
description: string;
|
|
216
222
|
terms: string;
|
|
@@ -866,6 +872,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
866
872
|
taxIssuingAuthority: string;
|
|
867
873
|
entityType: string;
|
|
868
874
|
};
|
|
875
|
+
hsCode: string;
|
|
869
876
|
nonDelivery: {
|
|
870
877
|
returnToSender: string;
|
|
871
878
|
treatAsAbandoned: string;
|
|
@@ -903,6 +910,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
903
910
|
shipments: string;
|
|
904
911
|
warehouses: string;
|
|
905
912
|
};
|
|
913
|
+
labelHasBeenPurchased: string;
|
|
906
914
|
emailIsRequired: string;
|
|
907
915
|
unknown: string;
|
|
908
916
|
noRatesAvailable: string;
|
|
@@ -1013,7 +1021,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
1013
1021
|
};
|
|
1014
1022
|
invalidAddressName: string;
|
|
1015
1023
|
invalidAddressNameStrict: string;
|
|
1016
|
-
|
|
1024
|
+
invalidAddressNameOnboarding: string;
|
|
1017
1025
|
invalidAddressPoBox: string;
|
|
1018
1026
|
invalidCreditCardType: string;
|
|
1019
1027
|
invalidExpirationDate: string;
|
|
@@ -102,16 +102,18 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
102
102
|
vatNumber: string;
|
|
103
103
|
vatRegistrationTooltip: string;
|
|
104
104
|
vatFormText: string;
|
|
105
|
-
vatFormRegisterLater: string;
|
|
106
105
|
vatNumberInputHint: string;
|
|
107
106
|
vatNumberInputPlaceholder: string;
|
|
108
107
|
verifiedVat: string;
|
|
108
|
+
vatNumberFieldLabel: string;
|
|
109
|
+
vatTypePlaceholder: string;
|
|
110
|
+
issuingAuthorityPlaceholder: string;
|
|
111
|
+
issuingAuthorityFieldLabel: string;
|
|
109
112
|
vatFormErrors: {
|
|
110
113
|
invalidFieldValue: string;
|
|
111
114
|
verificationFailure: string;
|
|
112
115
|
forbidden: string;
|
|
113
116
|
connectionNotSupported: string;
|
|
114
|
-
genericTitle: string;
|
|
115
117
|
genericText: string;
|
|
116
118
|
};
|
|
117
119
|
};
|
|
@@ -144,6 +146,10 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
144
146
|
subtitle: string;
|
|
145
147
|
};
|
|
146
148
|
insuranceProviders: {
|
|
149
|
+
connectionError: {
|
|
150
|
+
title: string;
|
|
151
|
+
description: string;
|
|
152
|
+
};
|
|
147
153
|
parcelguard: {
|
|
148
154
|
description: string;
|
|
149
155
|
terms: string;
|
|
@@ -799,6 +805,7 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
799
805
|
taxIssuingAuthority: string;
|
|
800
806
|
entityType: string;
|
|
801
807
|
};
|
|
808
|
+
hsCode: string;
|
|
802
809
|
nonDelivery: {
|
|
803
810
|
returnToSender: string;
|
|
804
811
|
treatAsAbandoned: string;
|
|
@@ -836,6 +843,7 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
836
843
|
shipments: string;
|
|
837
844
|
warehouses: string;
|
|
838
845
|
};
|
|
846
|
+
labelHasBeenPurchased: string;
|
|
839
847
|
emailIsRequired: string;
|
|
840
848
|
unknown: string;
|
|
841
849
|
noRatesAvailable: string;
|
|
@@ -946,7 +954,7 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
946
954
|
};
|
|
947
955
|
invalidAddressName: string;
|
|
948
956
|
invalidAddressNameStrict: string;
|
|
949
|
-
|
|
957
|
+
invalidAddressNameOnboarding: string;
|
|
950
958
|
invalidAddressPoBox: string;
|
|
951
959
|
invalidCreditCardType: string;
|
|
952
960
|
invalidExpirationDate: string;
|
|
@@ -119,16 +119,18 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
119
119
|
vatNumber: string;
|
|
120
120
|
vatRegistrationTooltip: string;
|
|
121
121
|
vatFormText: string;
|
|
122
|
-
vatFormRegisterLater: string;
|
|
123
122
|
vatNumberInputHint: string;
|
|
124
123
|
vatNumberInputPlaceholder: string;
|
|
125
124
|
verifiedVat: string;
|
|
125
|
+
vatNumberFieldLabel: string;
|
|
126
|
+
vatTypePlaceholder: string;
|
|
127
|
+
issuingAuthorityPlaceholder: string;
|
|
128
|
+
issuingAuthorityFieldLabel: string;
|
|
126
129
|
vatFormErrors: {
|
|
127
130
|
invalidFieldValue: string;
|
|
128
131
|
verificationFailure: string;
|
|
129
132
|
forbidden: string;
|
|
130
133
|
connectionNotSupported: string;
|
|
131
|
-
genericTitle: string;
|
|
132
134
|
genericText: string;
|
|
133
135
|
};
|
|
134
136
|
};
|
|
@@ -161,6 +163,10 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
161
163
|
subtitle: string;
|
|
162
164
|
};
|
|
163
165
|
insuranceProviders: {
|
|
166
|
+
connectionError: {
|
|
167
|
+
title: string;
|
|
168
|
+
description: string;
|
|
169
|
+
};
|
|
164
170
|
parcelguard: {
|
|
165
171
|
description: string;
|
|
166
172
|
terms: string;
|
|
@@ -833,6 +839,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
833
839
|
taxIssuingAuthority: string;
|
|
834
840
|
entityType: string;
|
|
835
841
|
};
|
|
842
|
+
hsCode: string;
|
|
836
843
|
nonDelivery: {
|
|
837
844
|
returnToSender: string;
|
|
838
845
|
treatAsAbandoned: string;
|
|
@@ -870,6 +877,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
870
877
|
shipments: string;
|
|
871
878
|
warehouses: string;
|
|
872
879
|
};
|
|
880
|
+
labelHasBeenPurchased: string;
|
|
873
881
|
emailIsRequired: string;
|
|
874
882
|
unknown: string;
|
|
875
883
|
noRatesAvailable: string;
|
|
@@ -980,7 +988,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
980
988
|
};
|
|
981
989
|
invalidAddressName: string;
|
|
982
990
|
invalidAddressNameStrict: string;
|
|
983
|
-
|
|
991
|
+
invalidAddressNameOnboarding: string;
|
|
984
992
|
invalidAddressPoBox: string;
|
|
985
993
|
invalidCreditCardType: string;
|
|
986
994
|
invalidExpirationDate: string;
|
|
@@ -102,16 +102,18 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
|
|
|
102
102
|
vatNumber: string;
|
|
103
103
|
vatRegistrationTooltip: string;
|
|
104
104
|
vatFormText: string;
|
|
105
|
-
vatFormRegisterLater: string;
|
|
106
105
|
vatNumberInputHint: string;
|
|
107
106
|
vatNumberInputPlaceholder: string;
|
|
108
107
|
verifiedVat: string;
|
|
108
|
+
vatNumberFieldLabel: string;
|
|
109
|
+
vatTypePlaceholder: string;
|
|
110
|
+
issuingAuthorityPlaceholder: string;
|
|
111
|
+
issuingAuthorityFieldLabel: string;
|
|
109
112
|
vatFormErrors: {
|
|
110
113
|
invalidFieldValue: string;
|
|
111
114
|
verificationFailure: string;
|
|
112
115
|
forbidden: string;
|
|
113
116
|
connectionNotSupported: string;
|
|
114
|
-
genericTitle: string;
|
|
115
117
|
genericText: string;
|
|
116
118
|
};
|
|
117
119
|
};
|
|
@@ -144,6 +146,10 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
|
|
|
144
146
|
subtitle: string;
|
|
145
147
|
};
|
|
146
148
|
insuranceProviders: {
|
|
149
|
+
connectionError: {
|
|
150
|
+
title: string;
|
|
151
|
+
description: string;
|
|
152
|
+
};
|
|
147
153
|
parcelguard: {
|
|
148
154
|
description: string;
|
|
149
155
|
terms: string;
|
|
@@ -799,6 +805,7 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
|
|
|
799
805
|
taxIssuingAuthority: string;
|
|
800
806
|
entityType: string;
|
|
801
807
|
};
|
|
808
|
+
hsCode: string;
|
|
802
809
|
nonDelivery: {
|
|
803
810
|
returnToSender: string;
|
|
804
811
|
treatAsAbandoned: string;
|
|
@@ -836,6 +843,7 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
|
|
|
836
843
|
shipments: string;
|
|
837
844
|
warehouses: string;
|
|
838
845
|
};
|
|
846
|
+
labelHasBeenPurchased: string;
|
|
839
847
|
emailIsRequired: string;
|
|
840
848
|
unknown: string;
|
|
841
849
|
noRatesAvailable: string;
|
|
@@ -946,7 +954,7 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
|
|
|
946
954
|
};
|
|
947
955
|
invalidAddressName: string;
|
|
948
956
|
invalidAddressNameStrict: string;
|
|
949
|
-
|
|
957
|
+
invalidAddressNameOnboarding: string;
|
|
950
958
|
invalidAddressPoBox: string;
|
|
951
959
|
invalidCreditCardType: string;
|
|
952
960
|
invalidExpirationDate: string;
|
|
@@ -2,7 +2,7 @@ import { SE } from "@shipengine/react-api";
|
|
|
2
2
|
import { RateFormProps } from "../../components/templates/rate-form";
|
|
3
3
|
import { ShipmentFormProps } from "../../components/templates/shipment-form";
|
|
4
4
|
import { UseShippingPresetsOptionsProps } from "../../hooks";
|
|
5
|
-
import { PreferredRatesResponse, ShipFromAddress } from "../../types";
|
|
5
|
+
import { HarmonizedTariffCode, PreferredRatesResponse, ShipFromAddress } from "../../types";
|
|
6
6
|
import { PurchaseLabelFeatures } from "../../utilities";
|
|
7
7
|
import { UseRatesFormProps, UseShipmentFormProps } from "./hooks";
|
|
8
8
|
export type ShipmentFormMode = "browse_rates" | "select_service";
|
|
@@ -11,6 +11,7 @@ export type ConfigureShipmentProps = {
|
|
|
11
11
|
errors?: ShipmentFormProps["errors"];
|
|
12
12
|
features?: PurchaseLabelFeatures;
|
|
13
13
|
getPreferredRates?: (shipment: SE.SalesOrderShipment, isInternational: boolean) => Promise<PreferredRatesResponse | undefined>;
|
|
14
|
+
harmonizedTariffCodes?: HarmonizedTariffCode[];
|
|
14
15
|
insuranceAccount?: SE.InsuranceAccount;
|
|
15
16
|
isLoading?: ShipmentFormProps["isLoading"];
|
|
16
17
|
onAddressValidation?: UseShipmentFormProps["onAddressValidation"];
|
|
@@ -33,4 +34,4 @@ export type ConfigureShipmentProps = {
|
|
|
33
34
|
shippingPresets?: UseShippingPresetsOptionsProps;
|
|
34
35
|
warehouseId?: string;
|
|
35
36
|
};
|
|
36
|
-
export declare const ConfigureShipment: ({ errors, features, currency, getPreferredRates, onAddressValidation, onApplyPreset, onBeforeLabelCreate, onChangeAddress, onLabelCreateFailure, onLabelCreateSuccess, onRateSaved, onRatesCalculated, onShipmentUpdated, printLabelLayout, preferredServiceCodes, salesOrder, shipment, onBeforeRateSaved, shipFromAddresses, ...props }: ConfigureShipmentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare const ConfigureShipment: ({ errors, features, currency, getPreferredRates, onAddressValidation, onApplyPreset, onBeforeLabelCreate, onChangeAddress, onChangeShipmentFormMode, onLabelCreateFailure, onLabelCreateSuccess, onRateSaved, onRatesCalculated, onShipmentUpdated, printLabelLayout, preferredServiceCodes, salesOrder, shipment, onBeforeRateSaved, shipFromAddresses, ...props }: ConfigureShipmentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { SE } from "@shipengine/react-api";
|
|
2
|
-
import { ShipFromAddress, ShippingPreset } from "../../../types";
|
|
2
|
+
import { HarmonizedTariffCode, ShipFromAddress, ShippingPreset } from "../../../types";
|
|
3
3
|
import { UseAddressProps } from "./use-address";
|
|
4
4
|
import { UsePresetsProps } from "./use-presets";
|
|
5
5
|
export type UseShipmentFormProps = {
|
|
6
6
|
compatibleCountryCodes?: UseAddressProps["compatibleCountryCodes"];
|
|
7
|
+
harmonizedTariffCodes?: HarmonizedTariffCode[];
|
|
7
8
|
onAddressValidation?: UseAddressProps["onValidation"];
|
|
8
9
|
onApplyPreset?: UsePresetsProps["onApply"];
|
|
9
10
|
onChangeAddress?: UseAddressProps["onChange"];
|