@shipengine/elements 1.7.0 → 1.9.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/address-8f8119f4.js +1 -0
- package/carrier-2abb4760.js +1 -0
- package/carrier-logo-1b6c767e.js +1 -0
- package/components.js +1 -0
- package/constants.js +1 -0
- package/elements.js +1 -0
- package/extensions.js +1 -0
- package/feature-flags-3e03717c.js +1 -0
- package/formatString-413ec7c7.js +1 -0
- package/hooks.js +1 -0
- package/index.js +1 -25135
- package/money-fbc4d0b3.js +1 -0
- package/package.json +48 -6
- package/payment-method-settings-element-595cc38d.js +1 -0
- package/phone-87dd7bd8.js +1 -0
- package/schemas.js +1 -0
- package/shipment-90d35708.js +1 -0
- package/src/components/address-preference-context/address-preference-context.d.ts +5 -2
- package/src/components/carrier-icon/carrier-icon.d.ts +9 -9
- package/src/components/carrier-logo/carrier-logo.d.ts +2 -1
- package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +2 -3
- package/src/components/display-term/display-term.d.ts +2 -2
- package/src/components/display-term/display-term.styles.d.ts +2 -0
- package/src/components/field/date-picker/date-picker.d.ts +1 -1
- package/src/components/field/rate-card/rate-card.d.ts +2 -1
- package/src/components/field/rate-card/rate-card.styles.d.ts +0 -1
- package/src/components/field/rate-select/rate-select.d.ts +6 -1
- package/src/components/fund-and-purchase/fund-and-purchase.d.ts +4 -1
- package/src/components/here-map/here-map.d.ts +16 -0
- package/src/components/here-map/here-map.styles.d.ts +23 -0
- package/src/components/index.d.ts +7 -5
- package/src/components/modal/modal.d.ts +2 -1
- package/src/components/rate-details/index.d.ts +1 -0
- package/src/components/rate-details/rate-details.d.ts +17 -0
- package/src/components/rate-details/rate-details.styles.d.ts +23 -0
- package/src/components/search-bar/index.d.ts +1 -0
- package/src/components/search-bar/search-bar.d.ts +8 -0
- package/src/components/service-point-display/operating-hours.d.ts +6 -0
- package/src/components/service-point-display/operating-hours.styles.d.ts +44 -0
- package/src/components/service-point-display/service-point-display.d.ts +6 -6
- package/src/components/service-point-display/service-point-display.styles.d.ts +13 -19
- package/src/components/service-points/service-points.d.ts +2 -1
- package/src/components/tabs/tabs.d.ts +5 -1
- package/src/components/tabs/tabs.styles.d.ts +3 -2
- package/src/components/templates/index.d.ts +1 -1
- package/src/components/templates/label/label.styles.d.ts +21 -1
- package/src/components/templates/product-form/product-form-schema.d.ts +12 -0
- package/src/components/templates/pudo-rate-tabs/index.d.ts +0 -1
- package/src/components/templates/pudo-rate-tabs/pudo-list-view/pudo-list-view.d.ts +5 -0
- package/src/components/templates/pudo-rate-tabs/pudo-map-view/pudo-map-view.d.ts +15 -0
- package/src/components/templates/pudo-rate-tabs/pudo-rate-tabs.d.ts +17 -15
- package/src/components/templates/rate-form/rate-form.d.ts +10 -2
- package/src/components/templates/register-funding-source-carrier-form/index.d.ts +2 -0
- package/src/components/templates/register-funding-source-carrier-form/register-funding-source-carrier-form.d.ts +13 -0
- package/src/components/templates/register-funding-source-carrier-form/register-funding-source-carrier-form.styles.d.ts +25 -0
- package/src/components/templates/{add-carrier-form/add-carrier-form-schema.d.ts → register-funding-source-carrier-form/register-funding-source-carrier-schema.d.ts} +42 -88
- package/src/components/templates/shipment/shipment.d.ts +2 -1
- package/src/components/templates/wallet-form/wallet-form.d.ts +3 -1
- package/src/components/templates/wallet-form/wallet-form.styles.d.ts +3 -0
- package/src/components/vat-form/index.d.ts +1 -0
- package/src/components/vat-form/vat-form-schema.d.ts +10 -0
- package/src/components/vat-form/vat-form.d.ts +6 -0
- package/src/components/vat-form/vat-form.styles.d.ts +9 -0
- package/src/elements/external-carriers/external-carriers.d.ts +198 -101
- package/src/elements/label-layout/label-layout-element.d.ts +150 -77
- package/src/elements/labels-grid/labels-grid.d.ts +150 -77
- package/src/elements/manage-funding/manage-funding-element.d.ts +150 -77
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +150 -77
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +150 -77
- package/src/elements/purchase-label/configure-shipment.d.ts +2 -1
- package/src/elements/purchase-label/hooks/use-rates-form.d.ts +5 -0
- package/src/elements/purchase-label/purchase-label.d.ts +170 -80
- package/src/elements/shipengine-carriers/shipengine-carriers.d.ts +173 -100
- package/src/elements/shipments-grid/shipments-grid.d.ts +150 -77
- package/src/elements/theme-creator/theme-creator.d.ts +150 -77
- package/src/elements/theme-creator/themeData/themeData.d.ts +0 -1
- package/src/elements/unit-settings/unit-settings-element.d.ts +150 -77
- package/src/elements/vat-settings/index.d.ts +1 -0
- package/src/elements/vat-settings/vat-settings-element.d.ts +864 -0
- package/src/elements/view-shipment/view-shipment.d.ts +181 -100
- package/src/elements/void-label/components/actions/actions.d.ts +3 -3
- package/src/elements/void-label/components/message/message.d.ts +3 -2
- package/src/elements/void-label/void-label.d.ts +183 -96
- package/src/elements/wallet-history/wallet-history-element.d.ts +150 -77
- package/src/factories/shipengine/label.d.ts +2 -0
- package/src/features/external-carriers/external-carriers.d.ts +2 -1
- package/src/features/index.d.ts +5 -4
- package/src/features/shipengine-carriers/hooks/index.d.ts +2 -1
- package/src/features/shipengine-carriers/hooks/use-carrier-metadata.d.ts +2 -13
- package/src/features/shipengine-carriers/hooks/{use-list-connected-carriers.d.ts → use-list-funding-source-carriers.d.ts} +3 -3
- package/src/features/shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts +9 -7
- package/src/features/unit-settings/unit-settings.d.ts +2 -2
- package/src/features/unit-settings/use-unit-settings.d.ts +1 -1
- package/src/features/vat-settings/index.d.ts +2 -0
- package/src/features/vat-settings/use-vat-settings.d.ts +8 -0
- package/src/features/vat-settings/vat-settings.d.ts +9 -0
- package/src/features/vat-settings/vat-settings.styles.d.ts +29 -0
- package/src/hooks/here-map/init.d.ts +6 -0
- package/src/hooks/here-map/use-here-map-ui.d.ts +10 -0
- package/src/hooks/here-map/use-here-map.d.ts +5 -0
- package/src/hooks/index.d.ts +3 -3
- package/src/hooks/options/use-service-points.d.ts +5 -3
- package/src/locales/en/index.d.ts +150 -77
- package/src/testing/test-utils.d.ts +1 -0
- package/src/types/carrier-metadata.d.ts +7 -11
- package/src/types/index.d.ts +0 -1
- package/src/utilities/date.d.ts +1 -2
- package/src/utilities/feature-flags.d.ts +12 -2
- package/src/utilities/shipengine/carrier.d.ts +8 -0
- package/src/utilities/shipengine/index.d.ts +1 -0
- package/src/utilities/shipengine/shipment.d.ts +11 -0
- package/src/workflows/account-settings/account-settings.d.ts +153 -82
- package/src/workflows/connect-carrier/connect-carrier.d.ts +150 -77
- package/src/workflows/manage-wallet-workflow/manage-wallet-workflow.d.ts +155 -81
- package/src/workflows/onboarding/components/account-registration-form/account-registration-form-schema.d.ts +3 -0
- package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form.d.ts +3 -4
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +3 -1
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +2 -3
- package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +2 -2
- package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +3 -4
- package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.styles.d.ts +6 -7
- package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +3 -4
- package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.styles.d.ts +3 -0
- package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +5 -10
- package/src/workflows/onboarding/onboarding.d.ts +151 -78
- package/story-notes-ce2d8cca.js +1 -0
- package/suspend-text-c8c7b6b6.js +1 -0
- package/types.js +1 -0
- package/use-page-layout-93ffae78.js +1 -0
- package/use-scrub-errors-2c4db406.js +1 -0
- package/use-toggle-838d2ebd.js +1 -0
- package/utilities.js +1 -0
- package/validation-b941a548.js +1 -0
- package/vite.config.d.ts +1 -1
- package/wallet-form-3981400b.js +1 -0
- package/wallet-history-5b34c856.js +1 -0
- package/warehouse-form-c0b3ea78.js +34 -0
- package/warehouses-dfcdce23.js +1 -0
- package/workflows.js +1 -0
- package/zod-60def96c.js +1 -0
- package/index.cjs +0 -25349
- package/src/components/templates/add-carrier-form/add-carrier-form-test.d.ts +0 -1
- package/src/components/templates/add-carrier-form/add-carrier-form.d.ts +0 -10
- package/src/components/templates/add-carrier-form/index.d.ts +0 -2
- package/src/components/templates/pudo-rate-tabs/service-points-search-bar/index.d.ts +0 -1
- package/src/components/templates/pudo-rate-tabs/service-points-search-bar/service-points-search-bar.d.ts +0 -6
- package/src/types/patch.d.ts +0 -13
|
@@ -36,6 +36,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
36
36
|
resultMessages: {
|
|
37
37
|
approved: string;
|
|
38
38
|
rejected: string;
|
|
39
|
+
dpdwallet: string;
|
|
39
40
|
};
|
|
40
41
|
refund_process: string;
|
|
41
42
|
refund_rules: string;
|
|
@@ -55,6 +56,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
55
56
|
schedulePickup: string;
|
|
56
57
|
showItems: string;
|
|
57
58
|
void: string;
|
|
59
|
+
download: string;
|
|
58
60
|
};
|
|
59
61
|
fields: {
|
|
60
62
|
dimensions: string;
|
|
@@ -74,9 +76,42 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
74
76
|
multipleShippingServices: string;
|
|
75
77
|
sections: {
|
|
76
78
|
labels: string;
|
|
79
|
+
shipmentSummary: string;
|
|
77
80
|
};
|
|
78
81
|
noLabels: string;
|
|
79
82
|
};
|
|
83
|
+
"vat-settings": {
|
|
84
|
+
addNew: string;
|
|
85
|
+
vatNumber: string;
|
|
86
|
+
vatRegistrationTooltip: string;
|
|
87
|
+
vatFormText: string;
|
|
88
|
+
vatFormRegisterLater: string;
|
|
89
|
+
vatNumberInputHint: string;
|
|
90
|
+
vatNumberInputPlaceholder: string;
|
|
91
|
+
verifiedVat: string;
|
|
92
|
+
vatFormErrors: {
|
|
93
|
+
invalidFieldValue: string;
|
|
94
|
+
verificationFailure: string;
|
|
95
|
+
forbidden: string;
|
|
96
|
+
connectionNotSupported: string;
|
|
97
|
+
genericTitle: string;
|
|
98
|
+
genericText: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
"shipengine-carriers": {
|
|
102
|
+
title: string;
|
|
103
|
+
headers: {
|
|
104
|
+
accountCarriers: string;
|
|
105
|
+
carriers: string;
|
|
106
|
+
settings: string;
|
|
107
|
+
};
|
|
108
|
+
actions: {
|
|
109
|
+
status: {
|
|
110
|
+
connected: string;
|
|
111
|
+
notConnected: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
80
115
|
"register-wallet": {
|
|
81
116
|
sections: {
|
|
82
117
|
setup: {
|
|
@@ -92,6 +127,9 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
92
127
|
addressSubTitle: string;
|
|
93
128
|
info: string;
|
|
94
129
|
};
|
|
130
|
+
vatSettings: {
|
|
131
|
+
title: string;
|
|
132
|
+
};
|
|
95
133
|
carriers: {
|
|
96
134
|
title: string;
|
|
97
135
|
subtitle: string;
|
|
@@ -128,8 +166,48 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
128
166
|
};
|
|
129
167
|
};
|
|
130
168
|
"register-carrier": {
|
|
131
|
-
formTitle:
|
|
132
|
-
|
|
169
|
+
formTitle: {
|
|
170
|
+
default: string;
|
|
171
|
+
new: string;
|
|
172
|
+
edit: string;
|
|
173
|
+
};
|
|
174
|
+
notifications: {
|
|
175
|
+
error: {
|
|
176
|
+
title: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
"rate-details": {
|
|
181
|
+
total: string;
|
|
182
|
+
subtotal: string;
|
|
183
|
+
registerVat: string;
|
|
184
|
+
concepts: {
|
|
185
|
+
confirmation: string;
|
|
186
|
+
uncategorized: string;
|
|
187
|
+
shipping: string;
|
|
188
|
+
insurance: string;
|
|
189
|
+
confirm: string;
|
|
190
|
+
discount: string;
|
|
191
|
+
fuel_charge: string;
|
|
192
|
+
additional_fees: string;
|
|
193
|
+
tariff: string;
|
|
194
|
+
tax: string;
|
|
195
|
+
delivery: string;
|
|
196
|
+
handling: string;
|
|
197
|
+
special_goods: string;
|
|
198
|
+
pickup: string;
|
|
199
|
+
location_fee: string;
|
|
200
|
+
oversize: string;
|
|
201
|
+
returns: string;
|
|
202
|
+
notifications: string;
|
|
203
|
+
tip: string;
|
|
204
|
+
duties_and_taxes: string;
|
|
205
|
+
brokerage_fee: string;
|
|
206
|
+
admin_fee: string;
|
|
207
|
+
adjustment: string;
|
|
208
|
+
auctane_service_fee: string;
|
|
209
|
+
product_price: string;
|
|
210
|
+
};
|
|
133
211
|
};
|
|
134
212
|
"purchase-label": {
|
|
135
213
|
title: string;
|
|
@@ -218,6 +296,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
218
296
|
rateSavings: string;
|
|
219
297
|
upsGroundSaverTermsAcknowledgement: string;
|
|
220
298
|
dhlExpressTermsAcknowledgement: string;
|
|
299
|
+
noRateService: string;
|
|
221
300
|
};
|
|
222
301
|
requirements: {
|
|
223
302
|
noWarehouse: string;
|
|
@@ -241,7 +320,10 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
241
320
|
today: string;
|
|
242
321
|
viewMap: string;
|
|
243
322
|
otherLocations: string;
|
|
244
|
-
|
|
323
|
+
noServicePointsForService: string;
|
|
324
|
+
error: string;
|
|
325
|
+
paperless: string;
|
|
326
|
+
localTimeDisclaimer: string;
|
|
245
327
|
};
|
|
246
328
|
shipToAddressFormFields: string;
|
|
247
329
|
sections: {
|
|
@@ -284,6 +366,8 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
284
366
|
action: string;
|
|
285
367
|
};
|
|
286
368
|
termsAndAgreementLinkText: {
|
|
369
|
+
shipEngineToS: string;
|
|
370
|
+
auctanePrivacyPolicy: string;
|
|
287
371
|
aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
|
|
288
372
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
|
|
289
373
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
|
|
@@ -308,42 +392,6 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
308
392
|
UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
|
|
309
393
|
};
|
|
310
394
|
};
|
|
311
|
-
"manage-defaults": {
|
|
312
|
-
label: {
|
|
313
|
-
title: string;
|
|
314
|
-
letter: {
|
|
315
|
-
title: string;
|
|
316
|
-
description: string;
|
|
317
|
-
};
|
|
318
|
-
purchase: {
|
|
319
|
-
title: string;
|
|
320
|
-
description: string;
|
|
321
|
-
};
|
|
322
|
-
thermal: {
|
|
323
|
-
title: string;
|
|
324
|
-
description: string;
|
|
325
|
-
};
|
|
326
|
-
};
|
|
327
|
-
status: {
|
|
328
|
-
saving: string;
|
|
329
|
-
saved: string;
|
|
330
|
-
savingFailed: string;
|
|
331
|
-
};
|
|
332
|
-
units: {
|
|
333
|
-
title: string;
|
|
334
|
-
dimensions: {
|
|
335
|
-
title: string;
|
|
336
|
-
standard: string;
|
|
337
|
-
metric: string;
|
|
338
|
-
};
|
|
339
|
-
weight: {
|
|
340
|
-
title: string;
|
|
341
|
-
standard: string;
|
|
342
|
-
g: string;
|
|
343
|
-
kg: string;
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
};
|
|
347
395
|
"manage-warehouses": {
|
|
348
396
|
title: string;
|
|
349
397
|
addNew: string;
|
|
@@ -411,6 +459,42 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
411
459
|
currentBalance: string;
|
|
412
460
|
maximumBalanceAmount: string;
|
|
413
461
|
};
|
|
462
|
+
"manage-defaults": {
|
|
463
|
+
label: {
|
|
464
|
+
title: string;
|
|
465
|
+
letter: {
|
|
466
|
+
title: string;
|
|
467
|
+
description: string;
|
|
468
|
+
};
|
|
469
|
+
purchase: {
|
|
470
|
+
title: string;
|
|
471
|
+
description: string;
|
|
472
|
+
};
|
|
473
|
+
thermal: {
|
|
474
|
+
title: string;
|
|
475
|
+
description: string;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
status: {
|
|
479
|
+
saving: string;
|
|
480
|
+
saved: string;
|
|
481
|
+
savingFailed: string;
|
|
482
|
+
};
|
|
483
|
+
units: {
|
|
484
|
+
title: string;
|
|
485
|
+
dimensions: {
|
|
486
|
+
title: string;
|
|
487
|
+
standard: string;
|
|
488
|
+
metric: string;
|
|
489
|
+
};
|
|
490
|
+
weight: {
|
|
491
|
+
title: string;
|
|
492
|
+
standard: string;
|
|
493
|
+
g: string;
|
|
494
|
+
kg: string;
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
};
|
|
414
498
|
"list-shipments": {
|
|
415
499
|
title: string;
|
|
416
500
|
headers: {
|
|
@@ -441,18 +525,31 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
441
525
|
};
|
|
442
526
|
};
|
|
443
527
|
};
|
|
444
|
-
"
|
|
445
|
-
title: string;
|
|
446
|
-
headers: {
|
|
447
|
-
accountCarriers: string;
|
|
448
|
-
carriers: string;
|
|
449
|
-
settings: string;
|
|
450
|
-
};
|
|
528
|
+
"connect-carrier": {
|
|
451
529
|
actions: {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
530
|
+
cancel: string;
|
|
531
|
+
carrierSettings: string;
|
|
532
|
+
connectCarriers: string;
|
|
533
|
+
disconnect: string;
|
|
534
|
+
disconnectCarrier: string;
|
|
535
|
+
};
|
|
536
|
+
noCarriersDescription: string;
|
|
537
|
+
registrationForm: {
|
|
538
|
+
error: string;
|
|
539
|
+
title: string;
|
|
540
|
+
betaWarning: string;
|
|
541
|
+
};
|
|
542
|
+
search: string;
|
|
543
|
+
settingsModal: {
|
|
544
|
+
closeDialog: string;
|
|
545
|
+
header: string;
|
|
546
|
+
};
|
|
547
|
+
status: {
|
|
548
|
+
connected: string;
|
|
549
|
+
};
|
|
550
|
+
disconnectDropdown: {
|
|
551
|
+
toastTitle: string;
|
|
552
|
+
toastBody: string;
|
|
456
553
|
};
|
|
457
554
|
};
|
|
458
555
|
common: {
|
|
@@ -639,6 +736,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
639
736
|
accountSettings: string;
|
|
640
737
|
carrier: string;
|
|
641
738
|
carriers: string;
|
|
739
|
+
carrierServices: string;
|
|
642
740
|
connectCarrierForm: string;
|
|
643
741
|
connectingCarriers: string;
|
|
644
742
|
creatingFundingSource: string;
|
|
@@ -729,6 +827,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
729
827
|
gram: string;
|
|
730
828
|
kilogram: string;
|
|
731
829
|
};
|
|
830
|
+
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
732
831
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
733
832
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
734
833
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
|
|
@@ -741,33 +840,6 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
741
840
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
|
|
742
841
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
|
|
743
842
|
};
|
|
744
|
-
"connect-carrier": {
|
|
745
|
-
actions: {
|
|
746
|
-
cancel: string;
|
|
747
|
-
carrierSettings: string;
|
|
748
|
-
connectCarriers: string;
|
|
749
|
-
disconnect: string;
|
|
750
|
-
disconnectCarrier: string;
|
|
751
|
-
};
|
|
752
|
-
noCarriersDescription: string;
|
|
753
|
-
registrationForm: {
|
|
754
|
-
error: string;
|
|
755
|
-
title: string;
|
|
756
|
-
betaWarning: string;
|
|
757
|
-
};
|
|
758
|
-
search: string;
|
|
759
|
-
settingsModal: {
|
|
760
|
-
closeDialog: string;
|
|
761
|
-
header: string;
|
|
762
|
-
};
|
|
763
|
-
status: {
|
|
764
|
-
connected: string;
|
|
765
|
-
};
|
|
766
|
-
disconnectDropdown: {
|
|
767
|
-
toastTitle: string;
|
|
768
|
-
toastBody: string;
|
|
769
|
-
};
|
|
770
|
-
};
|
|
771
843
|
"account-settings": {
|
|
772
844
|
messages: {
|
|
773
845
|
noFundingSources: string;
|
|
@@ -783,6 +855,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
783
855
|
externalCarriers: string;
|
|
784
856
|
labelLayout: string;
|
|
785
857
|
unitSettings: string;
|
|
858
|
+
vatSettings: string;
|
|
786
859
|
};
|
|
787
860
|
};
|
|
788
861
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
import { RateFormProps } from "../../components/templates/rate-form";
|
|
3
3
|
import { ShipmentFormFeatures, ShipmentFormProps } from "../../components/templates/shipment-form";
|
|
4
|
+
import { VatSettingsFeatures } from "../../features";
|
|
4
5
|
import { UseShippingPresetsOptionsProps } from "../../hooks";
|
|
5
6
|
import { PreferredRatesResponse } from "../../types";
|
|
6
7
|
import { UseRatesFormProps, UseShipmentFormProps } from "./hooks";
|
|
@@ -31,7 +32,7 @@ export type ConfigureShipmentFeatures = {
|
|
|
31
32
|
export type ConfigureShipmentProps = {
|
|
32
33
|
currency: SE.Currency;
|
|
33
34
|
errors?: ShipmentFormProps["errors"];
|
|
34
|
-
features?: ConfigureShipmentFeatures;
|
|
35
|
+
features?: ConfigureShipmentFeatures & VatSettingsFeatures;
|
|
35
36
|
getPreferredRates?: (shipment: SE.SalesOrderShipment, isInternational: boolean) => Promise<PreferredRatesResponse | undefined>;
|
|
36
37
|
insuranceAccount?: SE.InsuranceAccount;
|
|
37
38
|
isLoading?: ShipmentFormProps["isLoading"];
|
|
@@ -25,10 +25,12 @@ export declare const useRatesForm: ({ getPreferredRates, onBeforeRateSaved, onBe
|
|
|
25
25
|
carriers: SE.Carrier[] | undefined;
|
|
26
26
|
displayableRateErrors: string[] | undefined;
|
|
27
27
|
errors: SE.CodedError[] | undefined;
|
|
28
|
+
fetchServicePoints: (searchQuery?: import("../../../hooks").ServicePointSearchQuery | undefined) => void;
|
|
28
29
|
isLoading: boolean;
|
|
29
30
|
labelErrors: string[] | undefined;
|
|
30
31
|
labels: SE.Label[];
|
|
31
32
|
labelsLoading: boolean;
|
|
33
|
+
listServicePointsErrors: SE.CodedError[] | null;
|
|
32
34
|
onSave: ({ carrierId, serviceCode }: Pick<SE.Rate, "carrierId" | "serviceCode">) => Promise<void>;
|
|
33
35
|
onSubmit: (rateId: string, servicePoint?: SE.ServicePoint) => Promise<void>;
|
|
34
36
|
preferredRates: import("../../..").PreferredRatesResponse | undefined;
|
|
@@ -36,5 +38,8 @@ export declare const useRatesForm: ({ getPreferredRates, onBeforeRateSaved, onBe
|
|
|
36
38
|
requestRates: (shipment: SE.SalesOrderShipment, isInternational: boolean) => Promise<void>;
|
|
37
39
|
resetLabel: () => void;
|
|
38
40
|
resetRates: () => void;
|
|
41
|
+
servicePointSearchQuery: import("../../../hooks").ServicePointSearchQuery | undefined;
|
|
42
|
+
servicePointsFetching: boolean;
|
|
43
|
+
servicePointsResponse: SE.ServicePointsListResponse | undefined;
|
|
39
44
|
shipment: SE.SalesOrderShipment | undefined;
|
|
40
45
|
};
|