@shipengine/elements 1.6.0 → 1.8.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 +17376 -16774
- package/index.js +17372 -16776
- package/package.json +3 -3
- package/src/components/collapsible-panel/collapsible-panel.d.ts +6 -1
- package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +3 -4
- 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/rate-card/cost-breakdown/cost-breakdown.d.ts +1 -1
- package/src/components/index.d.ts +6 -5
- package/src/components/templates/address-form/address-schema.d.ts +2 -0
- package/src/components/templates/index.d.ts +1 -1
- package/src/components/templates/rate-form/rate-form.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/templates/wallet-form/wallet-schema.d.ts +46 -2
- 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 +130 -101
- package/src/elements/index.d.ts +2 -1
- package/src/elements/label-layout/label-layout-element.d.ts +107 -74
- package/src/elements/labels-grid/labels-grid.d.ts +107 -74
- package/src/elements/manage-funding/manage-funding-element.d.ts +107 -74
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +110 -117
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +107 -74
- package/src/elements/purchase-label/purchase-label.d.ts +131 -81
- package/src/elements/shipengine-carriers/index.d.ts +1 -0
- package/src/elements/shipengine-carriers/shipengine-carriers.d.ts +881 -0
- package/src/elements/shipments-grid/shipments-grid.d.ts +107 -74
- package/src/elements/theme-creator/theme-creator.d.ts +107 -74
- package/src/elements/unit-settings/unit-settings-element.d.ts +107 -74
- package/src/elements/vat-settings/index.d.ts +1 -0
- package/src/elements/vat-settings/vat-settings-element.d.ts +818 -0
- package/src/elements/view-shipment/view-shipment.d.ts +121 -89
- package/src/elements/void-label/components/message/message.d.ts +3 -2
- package/src/elements/void-label/void-label.d.ts +134 -93
- package/src/elements/wallet-history/wallet-history-element.d.ts +107 -74
- package/src/features/index.d.ts +6 -5
- package/src/features/label-layout/label-layout.d.ts +6 -1
- package/src/features/label-layout/use-label-layout.d.ts +3 -3
- package/src/features/manage-warehouses/index.d.ts +1 -0
- package/src/features/manage-warehouses/manage-warehouses.d.ts +16 -1
- package/src/features/manage-warehouses/use-manage-warehouses.d.ts +15 -0
- package/src/features/shipengine-carriers/hooks/use-carrier-metadata.d.ts +13 -0
- package/src/features/shipengine-carriers/index.d.ts +1 -0
- package/src/features/shipengine-carriers/shipengine-carriers-row/index.d.ts +1 -0
- package/src/features/{list-carriers/list-carriers-row/list-carriers-row.d.ts → shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts} +2 -2
- package/src/features/shipengine-carriers/shipengine-carriers.d.ts +10 -0
- package/src/features/unit-settings/index.d.ts +1 -0
- package/src/features/unit-settings/unit-settings.d.ts +9 -1
- package/src/features/unit-settings/use-unit-settings.d.ts +10 -0
- 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/index.d.ts +3 -3
- package/src/locales/en/index.d.ts +107 -74
- package/src/types/carrier-metadata.d.ts +3 -0
- package/src/types/patch.d.ts +1 -12
- package/src/utilities/feature-flags.d.ts +15 -2
- 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 +111 -83
- package/src/workflows/account-settings/use-get-panel-props.d.ts +7 -1
- package/src/workflows/connect-carrier/connect-carrier.d.ts +107 -74
- package/src/workflows/manage-wallet-workflow/index.d.ts +1 -0
- package/src/{elements/list-carriers/list-carriers.d.ts → workflows/manage-wallet-workflow/manage-wallet-workflow.d.ts} +122 -111
- package/src/workflows/manage-wallet-workflow/use-get-wallet-panel-props.d.ts +4 -0
- package/src/workflows/onboarding/components/account-registration-form/account-registration-form-schema.d.ts +3 -0
- 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 -2
- package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +3 -3
- package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +4 -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 +7 -7
- package/src/workflows/onboarding/onboarding.d.ts +111 -79
- package/vite.config.d.ts +1 -1
- package/src/elements/list-carriers/index.d.ts +0 -1
- package/src/features/list-carriers/hooks/use-carrier-metadata.d.ts +0 -10
- package/src/features/list-carriers/index.d.ts +0 -1
- package/src/features/list-carriers/list-carriers-row/index.d.ts +0 -1
- package/src/features/list-carriers/list-carriers.d.ts +0 -9
- /package/src/features/{list-carriers → shipengine-carriers}/hooks/index.d.ts +0 -0
- /package/src/features/{list-carriers → shipengine-carriers}/hooks/use-list-connected-carriers.d.ts +0 -0
- /package/src/features/{list-carriers/list-carriers-row/list-carriers-row.styles.d.ts → shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.styles.d.ts} +0 -0
- /package/src/features/{list-carriers/list-carriers.styles.d.ts → shipengine-carriers/shipengine-carriers.styles.d.ts} +0 -0
|
@@ -32,6 +32,7 @@ declare const _default: {
|
|
|
32
32
|
resultMessages: {
|
|
33
33
|
approved: string;
|
|
34
34
|
rejected: string;
|
|
35
|
+
dpdwallet: string;
|
|
35
36
|
};
|
|
36
37
|
refund_process: string;
|
|
37
38
|
refund_rules: string;
|
|
@@ -73,11 +74,44 @@ declare const _default: {
|
|
|
73
74
|
};
|
|
74
75
|
noLabels: string;
|
|
75
76
|
};
|
|
77
|
+
"vat-settings": {
|
|
78
|
+
addNew: string;
|
|
79
|
+
vatNumber: string;
|
|
80
|
+
vatRegistrationTooltip: string;
|
|
81
|
+
vatFormText: string;
|
|
82
|
+
vatFormRegisterLater: string;
|
|
83
|
+
vatNumberInputHint: string;
|
|
84
|
+
vatNumberInputPlaceholder: string;
|
|
85
|
+
verifiedVat: string;
|
|
86
|
+
vatFormErrors: {
|
|
87
|
+
invalidFieldValue: string;
|
|
88
|
+
verificationFailure: string;
|
|
89
|
+
forbidden: string;
|
|
90
|
+
connectionNotSupported: string;
|
|
91
|
+
genericTitle: string;
|
|
92
|
+
genericText: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
"shipengine-carriers": {
|
|
96
|
+
title: string;
|
|
97
|
+
headers: {
|
|
98
|
+
accountCarriers: string;
|
|
99
|
+
carriers: string;
|
|
100
|
+
settings: string;
|
|
101
|
+
};
|
|
102
|
+
actions: {
|
|
103
|
+
status: {
|
|
104
|
+
connected: string;
|
|
105
|
+
notConnected: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
76
109
|
"register-wallet": {
|
|
77
110
|
sections: {
|
|
78
111
|
setup: {
|
|
79
112
|
title: string;
|
|
80
113
|
subtitle: string;
|
|
114
|
+
hiddenTermsSubtitle: string;
|
|
81
115
|
descriptionTitle: string;
|
|
82
116
|
description: string;
|
|
83
117
|
};
|
|
@@ -87,6 +121,9 @@ declare const _default: {
|
|
|
87
121
|
addressSubTitle: string;
|
|
88
122
|
info: string;
|
|
89
123
|
};
|
|
124
|
+
vatSettings: {
|
|
125
|
+
title: string;
|
|
126
|
+
};
|
|
90
127
|
carriers: {
|
|
91
128
|
title: string;
|
|
92
129
|
subtitle: string;
|
|
@@ -207,11 +244,13 @@ declare const _default: {
|
|
|
207
244
|
needToAcknowledge: string;
|
|
208
245
|
};
|
|
209
246
|
rates: {
|
|
247
|
+
requestedShippingNotification: string;
|
|
210
248
|
uspsMediaMailAcknowledgement: string;
|
|
211
249
|
uspsFirstClassMailAcknowledgement_leof: string;
|
|
212
250
|
rateSavings: string;
|
|
213
251
|
upsGroundSaverTermsAcknowledgement: string;
|
|
214
252
|
dhlExpressTermsAcknowledgement: string;
|
|
253
|
+
noRateService: string;
|
|
215
254
|
};
|
|
216
255
|
requirements: {
|
|
217
256
|
noWarehouse: string;
|
|
@@ -278,6 +317,8 @@ declare const _default: {
|
|
|
278
317
|
action: string;
|
|
279
318
|
};
|
|
280
319
|
termsAndAgreementLinkText: {
|
|
320
|
+
shipEngineToS: string;
|
|
321
|
+
auctanePrivacyPolicy: string;
|
|
281
322
|
aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
|
|
282
323
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
|
|
283
324
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
|
|
@@ -289,6 +330,8 @@ declare const _default: {
|
|
|
289
330
|
aHR0cHM6Ly93d3cuc2hpcHN0YXRpb24uY29tL3Rlcm1zLXNlcnZpY2UtdW5pdGVkLWtpbmdkb20v: string;
|
|
290
331
|
"aHR0cHM6Ly93d3cuZHBkLmNvLnVrL3N0YW5kYXJkX3Rlcm1zX2FuZF9jb25kaXRpb25zLmpzcA==": string;
|
|
291
332
|
aHR0cHM6Ly93d3cuZ29nbG9iYWxwb3N0LmNvbS9jb25kaXRpb25z: string;
|
|
333
|
+
aHR0cHM6Ly93d3cucHVyb2xhdG9yLmNvbS9mci9tb2RhbGl0ZXMtZXQtY29uZGl0aW9ucy1kZS1zZXJ2aWNl: string;
|
|
334
|
+
aHR0cHM6Ly93d3cucHVyb2xhdG9yLmNvbS9lbi90ZXJtcy1hbmQtY29uZGl0aW9ucy1zZXJ2aWNl: string;
|
|
292
335
|
};
|
|
293
336
|
termsAndAgreementTitles: {
|
|
294
337
|
"WW9kZWwgRGlyZWN0IC0gVGVybXMgYW5kIENvbmRpdGlvbnMgKOKAnFRlcm1z4oCdKQ==": string;
|
|
@@ -296,42 +339,8 @@ declare const _default: {
|
|
|
296
339
|
"VGVybXMgb2YgU2VydmljZSBVbml0ZWQgS2luZ2RvbQ==": string;
|
|
297
340
|
RFBEIFN0YW5kYXJkIFRlcm1zIGFuZCBDb25kaXRpb25z: string;
|
|
298
341
|
"R2xvYmFsUG9zdCBUZXJtcyBhbmQgQ29uZGl0aW9ucw==": string;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
"manage-defaults": {
|
|
302
|
-
label: {
|
|
303
|
-
title: string;
|
|
304
|
-
letter: {
|
|
305
|
-
title: string;
|
|
306
|
-
description: string;
|
|
307
|
-
};
|
|
308
|
-
purchase: {
|
|
309
|
-
title: string;
|
|
310
|
-
description: string;
|
|
311
|
-
};
|
|
312
|
-
thermal: {
|
|
313
|
-
title: string;
|
|
314
|
-
description: string;
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
|
-
status: {
|
|
318
|
-
saving: string;
|
|
319
|
-
saved: string;
|
|
320
|
-
savingFailed: string;
|
|
321
|
-
};
|
|
322
|
-
units: {
|
|
323
|
-
title: string;
|
|
324
|
-
dimensions: {
|
|
325
|
-
title: string;
|
|
326
|
-
standard: string;
|
|
327
|
-
metric: string;
|
|
328
|
-
};
|
|
329
|
-
weight: {
|
|
330
|
-
title: string;
|
|
331
|
-
standard: string;
|
|
332
|
-
g: string;
|
|
333
|
-
kg: string;
|
|
334
|
-
};
|
|
342
|
+
"UHVyb2xhdG9yIFRlcm1zIGFuZCBDb25kaXRpb25zIG9mIFNlcnZpY2U=": string;
|
|
343
|
+
UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
|
|
335
344
|
};
|
|
336
345
|
};
|
|
337
346
|
"manage-warehouses": {
|
|
@@ -401,6 +410,42 @@ declare const _default: {
|
|
|
401
410
|
currentBalance: string;
|
|
402
411
|
maximumBalanceAmount: string;
|
|
403
412
|
};
|
|
413
|
+
"manage-defaults": {
|
|
414
|
+
label: {
|
|
415
|
+
title: string;
|
|
416
|
+
letter: {
|
|
417
|
+
title: string;
|
|
418
|
+
description: string;
|
|
419
|
+
};
|
|
420
|
+
purchase: {
|
|
421
|
+
title: string;
|
|
422
|
+
description: string;
|
|
423
|
+
};
|
|
424
|
+
thermal: {
|
|
425
|
+
title: string;
|
|
426
|
+
description: string;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
status: {
|
|
430
|
+
saving: string;
|
|
431
|
+
saved: string;
|
|
432
|
+
savingFailed: string;
|
|
433
|
+
};
|
|
434
|
+
units: {
|
|
435
|
+
title: string;
|
|
436
|
+
dimensions: {
|
|
437
|
+
title: string;
|
|
438
|
+
standard: string;
|
|
439
|
+
metric: string;
|
|
440
|
+
};
|
|
441
|
+
weight: {
|
|
442
|
+
title: string;
|
|
443
|
+
standard: string;
|
|
444
|
+
g: string;
|
|
445
|
+
kg: string;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
};
|
|
404
449
|
"list-shipments": {
|
|
405
450
|
title: string;
|
|
406
451
|
headers: {
|
|
@@ -431,18 +476,31 @@ declare const _default: {
|
|
|
431
476
|
};
|
|
432
477
|
};
|
|
433
478
|
};
|
|
434
|
-
"
|
|
435
|
-
title: string;
|
|
436
|
-
headers: {
|
|
437
|
-
accountCarriers: string;
|
|
438
|
-
carriers: string;
|
|
439
|
-
settings: string;
|
|
440
|
-
};
|
|
479
|
+
"connect-carrier": {
|
|
441
480
|
actions: {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
481
|
+
cancel: string;
|
|
482
|
+
carrierSettings: string;
|
|
483
|
+
connectCarriers: string;
|
|
484
|
+
disconnect: string;
|
|
485
|
+
disconnectCarrier: string;
|
|
486
|
+
};
|
|
487
|
+
noCarriersDescription: string;
|
|
488
|
+
registrationForm: {
|
|
489
|
+
error: string;
|
|
490
|
+
title: string;
|
|
491
|
+
betaWarning: string;
|
|
492
|
+
};
|
|
493
|
+
search: string;
|
|
494
|
+
settingsModal: {
|
|
495
|
+
closeDialog: string;
|
|
496
|
+
header: string;
|
|
497
|
+
};
|
|
498
|
+
status: {
|
|
499
|
+
connected: string;
|
|
500
|
+
};
|
|
501
|
+
disconnectDropdown: {
|
|
502
|
+
toastTitle: string;
|
|
503
|
+
toastBody: string;
|
|
446
504
|
};
|
|
447
505
|
};
|
|
448
506
|
common: {
|
|
@@ -629,6 +687,7 @@ declare const _default: {
|
|
|
629
687
|
accountSettings: string;
|
|
630
688
|
carrier: string;
|
|
631
689
|
carriers: string;
|
|
690
|
+
carrierServices: string;
|
|
632
691
|
connectCarrierForm: string;
|
|
633
692
|
connectingCarriers: string;
|
|
634
693
|
creatingFundingSource: string;
|
|
@@ -731,33 +790,6 @@ declare const _default: {
|
|
|
731
790
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
|
|
732
791
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
|
|
733
792
|
};
|
|
734
|
-
"connect-carrier": {
|
|
735
|
-
actions: {
|
|
736
|
-
cancel: string;
|
|
737
|
-
carrierSettings: string;
|
|
738
|
-
connectCarriers: string;
|
|
739
|
-
disconnect: string;
|
|
740
|
-
disconnectCarrier: string;
|
|
741
|
-
};
|
|
742
|
-
noCarriersDescription: string;
|
|
743
|
-
registrationForm: {
|
|
744
|
-
error: string;
|
|
745
|
-
title: string;
|
|
746
|
-
betaWarning: string;
|
|
747
|
-
};
|
|
748
|
-
search: string;
|
|
749
|
-
settingsModal: {
|
|
750
|
-
closeDialog: string;
|
|
751
|
-
header: string;
|
|
752
|
-
};
|
|
753
|
-
status: {
|
|
754
|
-
connected: string;
|
|
755
|
-
};
|
|
756
|
-
disconnectDropdown: {
|
|
757
|
-
toastTitle: string;
|
|
758
|
-
toastBody: string;
|
|
759
|
-
};
|
|
760
|
-
};
|
|
761
793
|
"account-settings": {
|
|
762
794
|
messages: {
|
|
763
795
|
noFundingSources: string;
|
|
@@ -773,6 +805,7 @@ declare const _default: {
|
|
|
773
805
|
externalCarriers: string;
|
|
774
806
|
labelLayout: string;
|
|
775
807
|
unitSettings: string;
|
|
808
|
+
vatSettings: string;
|
|
776
809
|
};
|
|
777
810
|
};
|
|
778
811
|
};
|
package/src/types/patch.d.ts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interface TermsLink {
|
|
3
|
-
link: string;
|
|
4
|
-
locale: string;
|
|
5
|
-
title: string;
|
|
6
|
-
}
|
|
7
|
-
export interface MetadataTermsLinks {
|
|
8
|
-
links: TermsLink[];
|
|
9
|
-
}
|
|
10
|
-
export interface MetadataRequiredTermWithLinks extends MetadataRequiredTerm, MetadataTermsLinks {
|
|
11
|
-
}
|
|
1
|
+
import { MetadataResponse } from "@shipengine/alchemy";
|
|
12
2
|
export type CarrierProfile = MetadataResponse["defaultRegionProfile"]["carrierProfiles"][number];
|
|
13
|
-
export {};
|
|
@@ -82,7 +82,7 @@ export declare const featureFlags: {
|
|
|
82
82
|
/**
|
|
83
83
|
* `enableFunding` enables the `funding` section of the rate form.
|
|
84
84
|
*/
|
|
85
|
-
readonly enableFunding:
|
|
85
|
+
readonly enableFunding: true;
|
|
86
86
|
/**
|
|
87
87
|
* `enableGlobalPostFiltering` enables the `global post filtering` on all rates fetched
|
|
88
88
|
* in the rates form.
|
|
@@ -161,7 +161,7 @@ export declare const featureFlags: {
|
|
|
161
161
|
* `enabledCarriers` is a list of all `carriers` that are enabled for use in ShipEngine
|
|
162
162
|
* Elements.
|
|
163
163
|
*/
|
|
164
|
-
readonly enabledCarriers: readonly ["
|
|
164
|
+
readonly enabledCarriers: readonly ["aramex_au_walleted", "canada_post_walleted", "canpar_walleted", "couriersplease_walleted", "dhl_express_walleted", "dpd_germany_walleted", "dpdwallet", "globalpost", "hermes", "purolator_walleted", "sendle_walleted", "stamps_com", "ups_walleted", "ups", "yodel_walleted"];
|
|
165
165
|
};
|
|
166
166
|
/**
|
|
167
167
|
* All global `presentation` related feature flags.
|
|
@@ -173,6 +173,16 @@ export declare const featureFlags: {
|
|
|
173
173
|
*/
|
|
174
174
|
readonly poweredByShipEngine: false;
|
|
175
175
|
};
|
|
176
|
+
/**
|
|
177
|
+
* All global `vatSettings` related feature flags.
|
|
178
|
+
*/
|
|
179
|
+
readonly vatSettings: {
|
|
180
|
+
/**
|
|
181
|
+
* `showVatSettings` enables the `vatSettings feature` in AccountSettings/Onboarding/LabelPurchase
|
|
182
|
+
* This flag is meant to be used while development and removed once the feature is live
|
|
183
|
+
*/
|
|
184
|
+
readonly showVatSettings: true;
|
|
185
|
+
};
|
|
176
186
|
};
|
|
177
187
|
/**
|
|
178
188
|
* `ViewShipment` all scoped feature flags for the `<ViewShipment />` element.
|
|
@@ -217,3 +227,6 @@ export declare const getFeatures: (...element: string[]) => any;
|
|
|
217
227
|
* @see {@link featureFlags | All available `Feature Flags`}
|
|
218
228
|
*/
|
|
219
229
|
export declare const useFeatures: (...element: string[]) => any;
|
|
230
|
+
export type FeatureObject = Record<string, unknown>;
|
|
231
|
+
export declare const isObject: (item: unknown) => item is FeatureObject;
|
|
232
|
+
export declare function deepMergeFeatures<T extends FeatureObject>(defaults: T, custom?: T): T;
|
|
@@ -39,3 +39,14 @@ export declare const getCancelledShipment: (shipments?: SE.SalesOrderShipment[])
|
|
|
39
39
|
* @returns latest created shipment whose shipmentStatus matches the param status
|
|
40
40
|
*/
|
|
41
41
|
export declare const getShipmentByStatus: (status: SE.ShipmentStatus, shipments?: SE.SalesOrderShipment[]) => SE.SalesOrderShipment | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*
|
|
45
|
+
* # Shipment Utilities - map customsItems to products and delete customsItems from the customs object
|
|
46
|
+
*
|
|
47
|
+
* @category Utilities
|
|
48
|
+
* @param shipment
|
|
49
|
+
* @returns the shipment with customsItems moved to products
|
|
50
|
+
* @see https://www.shipengine.com/docs/shipping/international/#the-customs-object:~:text=New%20products%20array%20replaces%20the%20customs_items%20array
|
|
51
|
+
*/
|
|
52
|
+
export declare const moveCustomsItemsToProducts: (shipment: SE.SalesOrderShipment) => SE.SalesOrderShipment;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { ShipEngineCarriersFeatures, VatSettingsFeatures } from "../../features";
|
|
3
3
|
import { ConnectCarrier } from "../connect-carrier";
|
|
4
|
-
export type AccountSettingsFeatures =
|
|
4
|
+
export type AccountSettingsFeatures = ShipEngineCarriersFeatures & ConnectCarrier.ConnectCarrierFeatures & VatSettingsFeatures;
|
|
5
5
|
/**
|
|
6
6
|
* # Account Settings Component Props
|
|
7
7
|
*
|
|
@@ -14,13 +14,8 @@ export type ComponentProps = {
|
|
|
14
14
|
* Feature flags controlling operation of various sub components.
|
|
15
15
|
*/
|
|
16
16
|
features?: AccountSettingsFeatures;
|
|
17
|
-
/**
|
|
18
|
-
* This callback function will be used to house the logic you wish to execute when the
|
|
19
|
-
* user saves new changes to their account settings.
|
|
20
|
-
*/
|
|
21
|
-
onSaveSettings: () => void;
|
|
22
17
|
};
|
|
23
|
-
export declare const Component: ({
|
|
18
|
+
export declare const Component: ({ features }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
19
|
/**
|
|
25
20
|
* # Registered Account Settings Element
|
|
26
21
|
*
|
|
@@ -40,7 +35,7 @@ export declare const Component: ({ onSaveSettings, features }: ComponentProps) =
|
|
|
40
35
|
* <br />
|
|
41
36
|
*
|
|
42
37
|
* @see {@link AccountSettings.ComponentProps | The **props** that can be passed into the `<AccountSettings.Element />` component}
|
|
43
|
-
* @see {@link
|
|
38
|
+
* @see {@link ManageWalletWorkflow.Element | The `<Manage-Wallet-Workflow />` component used to view connected carriers and manage funding}
|
|
44
39
|
* @see {@link ManageWarehouses.Component | The `<ManageWarehouses />` component used to add, update, or remove warehouses}
|
|
45
40
|
* @see {@link PaymentMethodSettings | The `<PaymentMethodSettings />` component used to manage payment methods}
|
|
46
41
|
* @see {@link ManageFunding | The `<ManageFunding />` component used to manage funding rules and add funds to a carrier account}
|
|
@@ -81,6 +76,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
81
76
|
resultMessages: {
|
|
82
77
|
approved: string;
|
|
83
78
|
rejected: string;
|
|
79
|
+
dpdwallet: string;
|
|
84
80
|
};
|
|
85
81
|
refund_process: string;
|
|
86
82
|
refund_rules: string;
|
|
@@ -122,11 +118,44 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
122
118
|
};
|
|
123
119
|
noLabels: string;
|
|
124
120
|
};
|
|
121
|
+
"vat-settings": {
|
|
122
|
+
addNew: string;
|
|
123
|
+
vatNumber: string;
|
|
124
|
+
vatRegistrationTooltip: string;
|
|
125
|
+
vatFormText: string;
|
|
126
|
+
vatFormRegisterLater: string;
|
|
127
|
+
vatNumberInputHint: string;
|
|
128
|
+
vatNumberInputPlaceholder: string;
|
|
129
|
+
verifiedVat: string;
|
|
130
|
+
vatFormErrors: {
|
|
131
|
+
invalidFieldValue: string;
|
|
132
|
+
verificationFailure: string;
|
|
133
|
+
forbidden: string;
|
|
134
|
+
connectionNotSupported: string;
|
|
135
|
+
genericTitle: string;
|
|
136
|
+
genericText: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
"shipengine-carriers": {
|
|
140
|
+
title: string;
|
|
141
|
+
headers: {
|
|
142
|
+
accountCarriers: string;
|
|
143
|
+
carriers: string;
|
|
144
|
+
settings: string;
|
|
145
|
+
};
|
|
146
|
+
actions: {
|
|
147
|
+
status: {
|
|
148
|
+
connected: string;
|
|
149
|
+
notConnected: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
125
153
|
"register-wallet": {
|
|
126
154
|
sections: {
|
|
127
155
|
setup: {
|
|
128
156
|
title: string;
|
|
129
157
|
subtitle: string;
|
|
158
|
+
hiddenTermsSubtitle: string;
|
|
130
159
|
descriptionTitle: string;
|
|
131
160
|
description: string;
|
|
132
161
|
};
|
|
@@ -136,6 +165,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
136
165
|
addressSubTitle: string;
|
|
137
166
|
info: string;
|
|
138
167
|
};
|
|
168
|
+
vatSettings: {
|
|
169
|
+
title: string;
|
|
170
|
+
};
|
|
139
171
|
carriers: {
|
|
140
172
|
title: string;
|
|
141
173
|
subtitle: string;
|
|
@@ -256,11 +288,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
256
288
|
needToAcknowledge: string;
|
|
257
289
|
};
|
|
258
290
|
rates: {
|
|
291
|
+
requestedShippingNotification: string;
|
|
259
292
|
uspsMediaMailAcknowledgement: string;
|
|
260
293
|
uspsFirstClassMailAcknowledgement_leof: string;
|
|
261
294
|
rateSavings: string;
|
|
262
295
|
upsGroundSaverTermsAcknowledgement: string;
|
|
263
296
|
dhlExpressTermsAcknowledgement: string;
|
|
297
|
+
noRateService: string;
|
|
264
298
|
};
|
|
265
299
|
requirements: {
|
|
266
300
|
noWarehouse: string;
|
|
@@ -327,6 +361,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
327
361
|
action: string;
|
|
328
362
|
};
|
|
329
363
|
termsAndAgreementLinkText: {
|
|
364
|
+
shipEngineToS: string;
|
|
365
|
+
auctanePrivacyPolicy: string;
|
|
330
366
|
aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
|
|
331
367
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
|
|
332
368
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
|
|
@@ -338,6 +374,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
338
374
|
aHR0cHM6Ly93d3cuc2hpcHN0YXRpb24uY29tL3Rlcm1zLXNlcnZpY2UtdW5pdGVkLWtpbmdkb20v: string;
|
|
339
375
|
"aHR0cHM6Ly93d3cuZHBkLmNvLnVrL3N0YW5kYXJkX3Rlcm1zX2FuZF9jb25kaXRpb25zLmpzcA==": string;
|
|
340
376
|
aHR0cHM6Ly93d3cuZ29nbG9iYWxwb3N0LmNvbS9jb25kaXRpb25z: string;
|
|
377
|
+
aHR0cHM6Ly93d3cucHVyb2xhdG9yLmNvbS9mci9tb2RhbGl0ZXMtZXQtY29uZGl0aW9ucy1kZS1zZXJ2aWNl: string;
|
|
378
|
+
aHR0cHM6Ly93d3cucHVyb2xhdG9yLmNvbS9lbi90ZXJtcy1hbmQtY29uZGl0aW9ucy1zZXJ2aWNl: string;
|
|
341
379
|
};
|
|
342
380
|
termsAndAgreementTitles: {
|
|
343
381
|
"WW9kZWwgRGlyZWN0IC0gVGVybXMgYW5kIENvbmRpdGlvbnMgKOKAnFRlcm1z4oCdKQ==": string;
|
|
@@ -345,42 +383,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
345
383
|
"VGVybXMgb2YgU2VydmljZSBVbml0ZWQgS2luZ2RvbQ==": string;
|
|
346
384
|
RFBEIFN0YW5kYXJkIFRlcm1zIGFuZCBDb25kaXRpb25z: string;
|
|
347
385
|
"R2xvYmFsUG9zdCBUZXJtcyBhbmQgQ29uZGl0aW9ucw==": string;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
"manage-defaults": {
|
|
351
|
-
label: {
|
|
352
|
-
title: string;
|
|
353
|
-
letter: {
|
|
354
|
-
title: string;
|
|
355
|
-
description: string;
|
|
356
|
-
};
|
|
357
|
-
purchase: {
|
|
358
|
-
title: string;
|
|
359
|
-
description: string;
|
|
360
|
-
};
|
|
361
|
-
thermal: {
|
|
362
|
-
title: string;
|
|
363
|
-
description: string;
|
|
364
|
-
};
|
|
365
|
-
};
|
|
366
|
-
status: {
|
|
367
|
-
saving: string;
|
|
368
|
-
saved: string;
|
|
369
|
-
savingFailed: string;
|
|
370
|
-
};
|
|
371
|
-
units: {
|
|
372
|
-
title: string;
|
|
373
|
-
dimensions: {
|
|
374
|
-
title: string;
|
|
375
|
-
standard: string;
|
|
376
|
-
metric: string;
|
|
377
|
-
};
|
|
378
|
-
weight: {
|
|
379
|
-
title: string;
|
|
380
|
-
standard: string;
|
|
381
|
-
g: string;
|
|
382
|
-
kg: string;
|
|
383
|
-
};
|
|
386
|
+
"UHVyb2xhdG9yIFRlcm1zIGFuZCBDb25kaXRpb25zIG9mIFNlcnZpY2U=": string;
|
|
387
|
+
UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
|
|
384
388
|
};
|
|
385
389
|
};
|
|
386
390
|
"manage-warehouses": {
|
|
@@ -450,6 +454,42 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
450
454
|
currentBalance: string;
|
|
451
455
|
maximumBalanceAmount: string;
|
|
452
456
|
};
|
|
457
|
+
"manage-defaults": {
|
|
458
|
+
label: {
|
|
459
|
+
title: string;
|
|
460
|
+
letter: {
|
|
461
|
+
title: string;
|
|
462
|
+
description: string;
|
|
463
|
+
};
|
|
464
|
+
purchase: {
|
|
465
|
+
title: string;
|
|
466
|
+
description: string;
|
|
467
|
+
};
|
|
468
|
+
thermal: {
|
|
469
|
+
title: string;
|
|
470
|
+
description: string;
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
status: {
|
|
474
|
+
saving: string;
|
|
475
|
+
saved: string;
|
|
476
|
+
savingFailed: string;
|
|
477
|
+
};
|
|
478
|
+
units: {
|
|
479
|
+
title: string;
|
|
480
|
+
dimensions: {
|
|
481
|
+
title: string;
|
|
482
|
+
standard: string;
|
|
483
|
+
metric: string;
|
|
484
|
+
};
|
|
485
|
+
weight: {
|
|
486
|
+
title: string;
|
|
487
|
+
standard: string;
|
|
488
|
+
g: string;
|
|
489
|
+
kg: string;
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
453
493
|
"list-shipments": {
|
|
454
494
|
title: string;
|
|
455
495
|
headers: {
|
|
@@ -480,18 +520,31 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
480
520
|
};
|
|
481
521
|
};
|
|
482
522
|
};
|
|
483
|
-
"
|
|
484
|
-
title: string;
|
|
485
|
-
headers: {
|
|
486
|
-
accountCarriers: string;
|
|
487
|
-
carriers: string;
|
|
488
|
-
settings: string;
|
|
489
|
-
};
|
|
523
|
+
"connect-carrier": {
|
|
490
524
|
actions: {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
525
|
+
cancel: string;
|
|
526
|
+
carrierSettings: string;
|
|
527
|
+
connectCarriers: string;
|
|
528
|
+
disconnect: string;
|
|
529
|
+
disconnectCarrier: string;
|
|
530
|
+
};
|
|
531
|
+
noCarriersDescription: string;
|
|
532
|
+
registrationForm: {
|
|
533
|
+
error: string;
|
|
534
|
+
title: string;
|
|
535
|
+
betaWarning: string;
|
|
536
|
+
};
|
|
537
|
+
search: string;
|
|
538
|
+
settingsModal: {
|
|
539
|
+
closeDialog: string;
|
|
540
|
+
header: string;
|
|
541
|
+
};
|
|
542
|
+
status: {
|
|
543
|
+
connected: string;
|
|
544
|
+
};
|
|
545
|
+
disconnectDropdown: {
|
|
546
|
+
toastTitle: string;
|
|
547
|
+
toastBody: string;
|
|
495
548
|
};
|
|
496
549
|
};
|
|
497
550
|
common: {
|
|
@@ -678,6 +731,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
678
731
|
accountSettings: string;
|
|
679
732
|
carrier: string;
|
|
680
733
|
carriers: string;
|
|
734
|
+
carrierServices: string;
|
|
681
735
|
connectCarrierForm: string;
|
|
682
736
|
connectingCarriers: string;
|
|
683
737
|
creatingFundingSource: string;
|
|
@@ -780,33 +834,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
780
834
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
|
|
781
835
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
|
|
782
836
|
};
|
|
783
|
-
"connect-carrier": {
|
|
784
|
-
actions: {
|
|
785
|
-
cancel: string;
|
|
786
|
-
carrierSettings: string;
|
|
787
|
-
connectCarriers: string;
|
|
788
|
-
disconnect: string;
|
|
789
|
-
disconnectCarrier: string;
|
|
790
|
-
};
|
|
791
|
-
noCarriersDescription: string;
|
|
792
|
-
registrationForm: {
|
|
793
|
-
error: string;
|
|
794
|
-
title: string;
|
|
795
|
-
betaWarning: string;
|
|
796
|
-
};
|
|
797
|
-
search: string;
|
|
798
|
-
settingsModal: {
|
|
799
|
-
closeDialog: string;
|
|
800
|
-
header: string;
|
|
801
|
-
};
|
|
802
|
-
status: {
|
|
803
|
-
connected: string;
|
|
804
|
-
};
|
|
805
|
-
disconnectDropdown: {
|
|
806
|
-
toastTitle: string;
|
|
807
|
-
toastBody: string;
|
|
808
|
-
};
|
|
809
|
-
};
|
|
810
837
|
"account-settings": {
|
|
811
838
|
messages: {
|
|
812
839
|
noFundingSources: string;
|
|
@@ -822,6 +849,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
822
849
|
externalCarriers: string;
|
|
823
850
|
labelLayout: string;
|
|
824
851
|
unitSettings: string;
|
|
852
|
+
vatSettings: string;
|
|
825
853
|
};
|
|
826
854
|
};
|
|
827
855
|
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { CollapsiblePanelProps } from "../../components";
|
|
2
|
+
import { UnitSettingsProps } from "../../features";
|
|
3
|
+
import { LabelLayoutSettingsProps } from "../../features/label-layout/label-layout";
|
|
4
|
+
import { ManageWarehousesProps } from "../../features/manage-warehouses/";
|
|
5
|
+
type SettingProps = LabelLayoutSettingsProps | UnitSettingsProps | ManageWarehousesProps;
|
|
6
|
+
export type SettingPropsIntersection = LabelLayoutSettingsProps & UnitSettingsProps & ManageWarehousesProps;
|
|
2
7
|
export declare const useGetPanelProps: () => {
|
|
3
|
-
getSettingPanelProps: (setting: string) => CollapsiblePanelProps;
|
|
8
|
+
getSettingPanelProps: (setting: string) => [panelProps?: CollapsiblePanelProps, settingProps?: SettingProps];
|
|
4
9
|
};
|
|
10
|
+
export {};
|