@shipengine/elements 1.7.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 +15309 -14863
- package/index.js +15310 -14867
- package/package.json +3 -3
- 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/index.d.ts +6 -5
- 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 +124 -97
- package/src/elements/label-layout/label-layout-element.d.ts +101 -74
- package/src/elements/labels-grid/labels-grid.d.ts +101 -74
- package/src/elements/manage-funding/manage-funding-element.d.ts +101 -74
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +101 -74
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +101 -74
- package/src/elements/purchase-label/purchase-label.d.ts +121 -77
- package/src/elements/shipengine-carriers/shipengine-carriers.d.ts +124 -97
- package/src/elements/shipments-grid/shipments-grid.d.ts +101 -74
- package/src/elements/theme-creator/theme-creator.d.ts +101 -74
- package/src/elements/unit-settings/unit-settings-element.d.ts +101 -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 +111 -83
- package/src/elements/void-label/components/message/message.d.ts +3 -2
- package/src/elements/void-label/void-label.d.ts +128 -92
- package/src/elements/wallet-history/wallet-history-element.d.ts +101 -74
- package/src/features/index.d.ts +5 -4
- 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/index.d.ts +3 -3
- package/src/locales/en/index.d.ts +101 -74
- package/src/types/patch.d.ts +1 -12
- package/src/utilities/feature-flags.d.ts +10 -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 +104 -79
- package/src/workflows/connect-carrier/connect-carrier.d.ts +101 -74
- package/src/workflows/manage-wallet-workflow/manage-wallet-workflow.d.ts +106 -78
- 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 +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 +7 -7
- package/src/workflows/onboarding/onboarding.d.ts +101 -74
- package/vite.config.d.ts +1 -1
|
@@ -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;
|
|
@@ -77,6 +78,38 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
77
78
|
};
|
|
78
79
|
noLabels: string;
|
|
79
80
|
};
|
|
81
|
+
"vat-settings": {
|
|
82
|
+
addNew: string;
|
|
83
|
+
vatNumber: string;
|
|
84
|
+
vatRegistrationTooltip: string;
|
|
85
|
+
vatFormText: string;
|
|
86
|
+
vatFormRegisterLater: string;
|
|
87
|
+
vatNumberInputHint: string;
|
|
88
|
+
vatNumberInputPlaceholder: string;
|
|
89
|
+
verifiedVat: string;
|
|
90
|
+
vatFormErrors: {
|
|
91
|
+
invalidFieldValue: string;
|
|
92
|
+
verificationFailure: string;
|
|
93
|
+
forbidden: string;
|
|
94
|
+
connectionNotSupported: string;
|
|
95
|
+
genericTitle: string;
|
|
96
|
+
genericText: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
"shipengine-carriers": {
|
|
100
|
+
title: string;
|
|
101
|
+
headers: {
|
|
102
|
+
accountCarriers: string;
|
|
103
|
+
carriers: string;
|
|
104
|
+
settings: string;
|
|
105
|
+
};
|
|
106
|
+
actions: {
|
|
107
|
+
status: {
|
|
108
|
+
connected: string;
|
|
109
|
+
notConnected: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
80
113
|
"register-wallet": {
|
|
81
114
|
sections: {
|
|
82
115
|
setup: {
|
|
@@ -92,6 +125,9 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
92
125
|
addressSubTitle: string;
|
|
93
126
|
info: string;
|
|
94
127
|
};
|
|
128
|
+
vatSettings: {
|
|
129
|
+
title: string;
|
|
130
|
+
};
|
|
95
131
|
carriers: {
|
|
96
132
|
title: string;
|
|
97
133
|
subtitle: string;
|
|
@@ -218,6 +254,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
218
254
|
rateSavings: string;
|
|
219
255
|
upsGroundSaverTermsAcknowledgement: string;
|
|
220
256
|
dhlExpressTermsAcknowledgement: string;
|
|
257
|
+
noRateService: string;
|
|
221
258
|
};
|
|
222
259
|
requirements: {
|
|
223
260
|
noWarehouse: string;
|
|
@@ -284,6 +321,8 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
284
321
|
action: string;
|
|
285
322
|
};
|
|
286
323
|
termsAndAgreementLinkText: {
|
|
324
|
+
shipEngineToS: string;
|
|
325
|
+
auctanePrivacyPolicy: string;
|
|
287
326
|
aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
|
|
288
327
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
|
|
289
328
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
|
|
@@ -308,42 +347,6 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
308
347
|
UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
|
|
309
348
|
};
|
|
310
349
|
};
|
|
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
350
|
"manage-warehouses": {
|
|
348
351
|
title: string;
|
|
349
352
|
addNew: string;
|
|
@@ -411,6 +414,42 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
411
414
|
currentBalance: string;
|
|
412
415
|
maximumBalanceAmount: string;
|
|
413
416
|
};
|
|
417
|
+
"manage-defaults": {
|
|
418
|
+
label: {
|
|
419
|
+
title: string;
|
|
420
|
+
letter: {
|
|
421
|
+
title: string;
|
|
422
|
+
description: string;
|
|
423
|
+
};
|
|
424
|
+
purchase: {
|
|
425
|
+
title: string;
|
|
426
|
+
description: string;
|
|
427
|
+
};
|
|
428
|
+
thermal: {
|
|
429
|
+
title: string;
|
|
430
|
+
description: string;
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
status: {
|
|
434
|
+
saving: string;
|
|
435
|
+
saved: string;
|
|
436
|
+
savingFailed: string;
|
|
437
|
+
};
|
|
438
|
+
units: {
|
|
439
|
+
title: string;
|
|
440
|
+
dimensions: {
|
|
441
|
+
title: string;
|
|
442
|
+
standard: string;
|
|
443
|
+
metric: string;
|
|
444
|
+
};
|
|
445
|
+
weight: {
|
|
446
|
+
title: string;
|
|
447
|
+
standard: string;
|
|
448
|
+
g: string;
|
|
449
|
+
kg: string;
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
};
|
|
414
453
|
"list-shipments": {
|
|
415
454
|
title: string;
|
|
416
455
|
headers: {
|
|
@@ -441,18 +480,31 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
441
480
|
};
|
|
442
481
|
};
|
|
443
482
|
};
|
|
444
|
-
"
|
|
445
|
-
title: string;
|
|
446
|
-
headers: {
|
|
447
|
-
accountCarriers: string;
|
|
448
|
-
carriers: string;
|
|
449
|
-
settings: string;
|
|
450
|
-
};
|
|
483
|
+
"connect-carrier": {
|
|
451
484
|
actions: {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
485
|
+
cancel: string;
|
|
486
|
+
carrierSettings: string;
|
|
487
|
+
connectCarriers: string;
|
|
488
|
+
disconnect: string;
|
|
489
|
+
disconnectCarrier: string;
|
|
490
|
+
};
|
|
491
|
+
noCarriersDescription: string;
|
|
492
|
+
registrationForm: {
|
|
493
|
+
error: string;
|
|
494
|
+
title: string;
|
|
495
|
+
betaWarning: string;
|
|
496
|
+
};
|
|
497
|
+
search: string;
|
|
498
|
+
settingsModal: {
|
|
499
|
+
closeDialog: string;
|
|
500
|
+
header: string;
|
|
501
|
+
};
|
|
502
|
+
status: {
|
|
503
|
+
connected: string;
|
|
504
|
+
};
|
|
505
|
+
disconnectDropdown: {
|
|
506
|
+
toastTitle: string;
|
|
507
|
+
toastBody: string;
|
|
456
508
|
};
|
|
457
509
|
};
|
|
458
510
|
common: {
|
|
@@ -639,6 +691,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
639
691
|
accountSettings: string;
|
|
640
692
|
carrier: string;
|
|
641
693
|
carriers: string;
|
|
694
|
+
carrierServices: string;
|
|
642
695
|
connectCarrierForm: string;
|
|
643
696
|
connectingCarriers: string;
|
|
644
697
|
creatingFundingSource: string;
|
|
@@ -741,33 +794,6 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
741
794
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
|
|
742
795
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
|
|
743
796
|
};
|
|
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
797
|
"account-settings": {
|
|
772
798
|
messages: {
|
|
773
799
|
noFundingSources: string;
|
|
@@ -783,6 +809,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
783
809
|
externalCarriers: string;
|
|
784
810
|
labelLayout: string;
|
|
785
811
|
unitSettings: string;
|
|
812
|
+
vatSettings: string;
|
|
786
813
|
};
|
|
787
814
|
};
|
|
788
815
|
};
|
package/src/features/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./external-carriers";
|
|
2
2
|
export * from "./label-layout";
|
|
3
3
|
export * from "./manage-funding";
|
|
4
|
-
export * from "./unit-settings";
|
|
5
|
-
export * from "./payment-method-settings";
|
|
6
4
|
export * from "./manage-warehouses";
|
|
5
|
+
export * from "./payment-method-settings";
|
|
7
6
|
export * from "./shipengine-carriers";
|
|
8
|
-
export * from "./
|
|
7
|
+
export * from "./unit-settings";
|
|
8
|
+
export * from "./vat-settings";
|
|
9
|
+
export * from "./wallet-history";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
export type UnitSettingsProps = {
|
|
3
3
|
accountSettings?: SE.AccountSettings;
|
|
4
|
-
|
|
4
|
+
getVatSettingsErrors?: SE.CodedError[] | null;
|
|
5
5
|
isLoading: boolean;
|
|
6
6
|
refreshAccountSettings: () => void;
|
|
7
7
|
updateAccountSettings: (payload: Partial<SE.AccountSettings>) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const UnitSettings: ({ accountSettings,
|
|
9
|
+
export declare const UnitSettings: ({ accountSettings, getVatSettingsErrors: errors, isLoading, refreshAccountSettings, updateAccountSettings, }: UnitSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
export declare const useUnitSettings: () => {
|
|
3
3
|
accountSettings: SE.AccountSettings | undefined;
|
|
4
|
-
|
|
4
|
+
getVatSettingsErrors: SE.CodedError[] | null;
|
|
5
5
|
isLoading: boolean;
|
|
6
6
|
isUpdatingUnitSettings: boolean;
|
|
7
7
|
refreshAccountSettings: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<SE.AccountSettings, SE.CodedError[]>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const useVatSettings: () => {
|
|
2
|
+
getVatSettingsErrors: import("@shipengine/alchemy").CodedError[] | null;
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
refreshVatSettings: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/alchemy").AccountSettings, import("@shipengine/alchemy").CodedError[]>>;
|
|
5
|
+
updateVatSettings: import("@tanstack/react-query").UseMutateAsyncFunction<import("@shipengine/alchemy").AccountSettings, import("@shipengine/alchemy").CodedError[], Partial<import("@shipengine/alchemy").AccountSettings>, unknown>;
|
|
6
|
+
updateVatSettingsErrors: import("@shipengine/alchemy").CodedError[] | null;
|
|
7
|
+
vatSettings: import("@shipengine/alchemy").AccountSettings | undefined;
|
|
8
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type VatSettingsFeatures = {
|
|
2
|
+
vatSettings: {
|
|
3
|
+
showVatSettings?: boolean;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
export type VatSettingsProps = {
|
|
7
|
+
showRegisterLaterText?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const VatSettings: ({ showRegisterLaterText }: VatSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
addVatSection: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
3
|
+
alignItems: "center";
|
|
4
|
+
display: "flex";
|
|
5
|
+
justifyContent: "space-between";
|
|
6
|
+
paddingBottom: number;
|
|
7
|
+
};
|
|
8
|
+
buttonIcon: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
9
|
+
marginLeft: number;
|
|
10
|
+
};
|
|
11
|
+
infoIcon: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
14
|
+
registrationText: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
15
|
+
alignItems: "center";
|
|
16
|
+
display: "flex";
|
|
17
|
+
gap: number;
|
|
18
|
+
minHeight: number;
|
|
19
|
+
width: string;
|
|
20
|
+
};
|
|
21
|
+
tooltipContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
22
|
+
maxWidth: string;
|
|
23
|
+
};
|
|
24
|
+
vatText: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
25
|
+
alignItems: "center";
|
|
26
|
+
display: "flex";
|
|
27
|
+
gap: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
package/src/hooks/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from "./options";
|
|
2
|
+
export * from "./use-address-validation";
|
|
3
|
+
export * from "./use-black-box-detection";
|
|
2
4
|
export * from "./use-nested-form";
|
|
3
5
|
export * from "./use-page-layout";
|
|
4
6
|
export * from "./use-root-portal";
|
|
5
7
|
export * from "./use-run-once-on-true";
|
|
6
|
-
export * from "./use-toggle";
|
|
7
|
-
export * from "./use-address-validation";
|
|
8
|
-
export * from "./use-black-box-detection";
|
|
9
8
|
export * from "./use-scrub-errors";
|
|
9
|
+
export * from "./use-toggle";
|
|
@@ -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,6 +74,38 @@ 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: {
|
|
@@ -88,6 +121,9 @@ declare const _default: {
|
|
|
88
121
|
addressSubTitle: string;
|
|
89
122
|
info: string;
|
|
90
123
|
};
|
|
124
|
+
vatSettings: {
|
|
125
|
+
title: string;
|
|
126
|
+
};
|
|
91
127
|
carriers: {
|
|
92
128
|
title: string;
|
|
93
129
|
subtitle: string;
|
|
@@ -214,6 +250,7 @@ declare const _default: {
|
|
|
214
250
|
rateSavings: string;
|
|
215
251
|
upsGroundSaverTermsAcknowledgement: string;
|
|
216
252
|
dhlExpressTermsAcknowledgement: string;
|
|
253
|
+
noRateService: string;
|
|
217
254
|
};
|
|
218
255
|
requirements: {
|
|
219
256
|
noWarehouse: string;
|
|
@@ -280,6 +317,8 @@ declare const _default: {
|
|
|
280
317
|
action: string;
|
|
281
318
|
};
|
|
282
319
|
termsAndAgreementLinkText: {
|
|
320
|
+
shipEngineToS: string;
|
|
321
|
+
auctanePrivacyPolicy: string;
|
|
283
322
|
aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
|
|
284
323
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
|
|
285
324
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
|
|
@@ -304,42 +343,6 @@ declare const _default: {
|
|
|
304
343
|
UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
|
|
305
344
|
};
|
|
306
345
|
};
|
|
307
|
-
"manage-defaults": {
|
|
308
|
-
label: {
|
|
309
|
-
title: string;
|
|
310
|
-
letter: {
|
|
311
|
-
title: string;
|
|
312
|
-
description: string;
|
|
313
|
-
};
|
|
314
|
-
purchase: {
|
|
315
|
-
title: string;
|
|
316
|
-
description: string;
|
|
317
|
-
};
|
|
318
|
-
thermal: {
|
|
319
|
-
title: string;
|
|
320
|
-
description: string;
|
|
321
|
-
};
|
|
322
|
-
};
|
|
323
|
-
status: {
|
|
324
|
-
saving: string;
|
|
325
|
-
saved: string;
|
|
326
|
-
savingFailed: string;
|
|
327
|
-
};
|
|
328
|
-
units: {
|
|
329
|
-
title: string;
|
|
330
|
-
dimensions: {
|
|
331
|
-
title: string;
|
|
332
|
-
standard: string;
|
|
333
|
-
metric: string;
|
|
334
|
-
};
|
|
335
|
-
weight: {
|
|
336
|
-
title: string;
|
|
337
|
-
standard: string;
|
|
338
|
-
g: string;
|
|
339
|
-
kg: string;
|
|
340
|
-
};
|
|
341
|
-
};
|
|
342
|
-
};
|
|
343
346
|
"manage-warehouses": {
|
|
344
347
|
title: string;
|
|
345
348
|
addNew: string;
|
|
@@ -407,6 +410,42 @@ declare const _default: {
|
|
|
407
410
|
currentBalance: string;
|
|
408
411
|
maximumBalanceAmount: string;
|
|
409
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
|
+
};
|
|
410
449
|
"list-shipments": {
|
|
411
450
|
title: string;
|
|
412
451
|
headers: {
|
|
@@ -437,18 +476,31 @@ declare const _default: {
|
|
|
437
476
|
};
|
|
438
477
|
};
|
|
439
478
|
};
|
|
440
|
-
"
|
|
441
|
-
title: string;
|
|
442
|
-
headers: {
|
|
443
|
-
accountCarriers: string;
|
|
444
|
-
carriers: string;
|
|
445
|
-
settings: string;
|
|
446
|
-
};
|
|
479
|
+
"connect-carrier": {
|
|
447
480
|
actions: {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
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;
|
|
452
504
|
};
|
|
453
505
|
};
|
|
454
506
|
common: {
|
|
@@ -635,6 +687,7 @@ declare const _default: {
|
|
|
635
687
|
accountSettings: string;
|
|
636
688
|
carrier: string;
|
|
637
689
|
carriers: string;
|
|
690
|
+
carrierServices: string;
|
|
638
691
|
connectCarrierForm: string;
|
|
639
692
|
connectingCarriers: string;
|
|
640
693
|
creatingFundingSource: string;
|
|
@@ -737,33 +790,6 @@ declare const _default: {
|
|
|
737
790
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
|
|
738
791
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
|
|
739
792
|
};
|
|
740
|
-
"connect-carrier": {
|
|
741
|
-
actions: {
|
|
742
|
-
cancel: string;
|
|
743
|
-
carrierSettings: string;
|
|
744
|
-
connectCarriers: string;
|
|
745
|
-
disconnect: string;
|
|
746
|
-
disconnectCarrier: string;
|
|
747
|
-
};
|
|
748
|
-
noCarriersDescription: string;
|
|
749
|
-
registrationForm: {
|
|
750
|
-
error: string;
|
|
751
|
-
title: string;
|
|
752
|
-
betaWarning: string;
|
|
753
|
-
};
|
|
754
|
-
search: string;
|
|
755
|
-
settingsModal: {
|
|
756
|
-
closeDialog: string;
|
|
757
|
-
header: string;
|
|
758
|
-
};
|
|
759
|
-
status: {
|
|
760
|
-
connected: string;
|
|
761
|
-
};
|
|
762
|
-
disconnectDropdown: {
|
|
763
|
-
toastTitle: string;
|
|
764
|
-
toastBody: string;
|
|
765
|
-
};
|
|
766
|
-
};
|
|
767
793
|
"account-settings": {
|
|
768
794
|
messages: {
|
|
769
795
|
noFundingSources: string;
|
|
@@ -779,6 +805,7 @@ declare const _default: {
|
|
|
779
805
|
externalCarriers: string;
|
|
780
806
|
labelLayout: string;
|
|
781
807
|
unitSettings: string;
|
|
808
|
+
vatSettings: string;
|
|
782
809
|
};
|
|
783
810
|
};
|
|
784
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 {};
|
|
@@ -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.
|
|
@@ -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;
|