@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
|
@@ -25,7 +25,7 @@ export type ComponentProps = {
|
|
|
25
25
|
* (() => {
|
|
26
26
|
* const features = useFeatures("Global");
|
|
27
27
|
*
|
|
28
|
-
* return <
|
|
28
|
+
* return <ManageWalletWorkflow.Element features={features} />;
|
|
29
29
|
* })();
|
|
30
30
|
* ```
|
|
31
31
|
*
|
|
@@ -71,6 +71,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
71
71
|
resultMessages: {
|
|
72
72
|
approved: string;
|
|
73
73
|
rejected: string;
|
|
74
|
+
dpdwallet: string;
|
|
74
75
|
};
|
|
75
76
|
refund_process: string;
|
|
76
77
|
refund_rules: string;
|
|
@@ -112,6 +113,38 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
112
113
|
};
|
|
113
114
|
noLabels: string;
|
|
114
115
|
};
|
|
116
|
+
"vat-settings": {
|
|
117
|
+
addNew: string;
|
|
118
|
+
vatNumber: string;
|
|
119
|
+
vatRegistrationTooltip: string;
|
|
120
|
+
vatFormText: string;
|
|
121
|
+
vatFormRegisterLater: string;
|
|
122
|
+
vatNumberInputHint: string;
|
|
123
|
+
vatNumberInputPlaceholder: string;
|
|
124
|
+
verifiedVat: string;
|
|
125
|
+
vatFormErrors: {
|
|
126
|
+
invalidFieldValue: string;
|
|
127
|
+
verificationFailure: string;
|
|
128
|
+
forbidden: string;
|
|
129
|
+
connectionNotSupported: string;
|
|
130
|
+
genericTitle: string;
|
|
131
|
+
genericText: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
"shipengine-carriers": {
|
|
135
|
+
title: string;
|
|
136
|
+
headers: {
|
|
137
|
+
accountCarriers: string;
|
|
138
|
+
carriers: string;
|
|
139
|
+
settings: string;
|
|
140
|
+
};
|
|
141
|
+
actions: {
|
|
142
|
+
status: {
|
|
143
|
+
connected: string;
|
|
144
|
+
notConnected: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
};
|
|
115
148
|
"register-wallet": {
|
|
116
149
|
sections: {
|
|
117
150
|
setup: {
|
|
@@ -124,11 +157,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
124
157
|
billing: {
|
|
125
158
|
title: string;
|
|
126
159
|
cardSubTitle: string;
|
|
127
|
-
addressSubTitle: string;
|
|
128
|
-
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
129
|
-
*/
|
|
160
|
+
addressSubTitle: string;
|
|
130
161
|
info: string;
|
|
131
162
|
};
|
|
163
|
+
vatSettings: {
|
|
164
|
+
title: string;
|
|
165
|
+
};
|
|
132
166
|
carriers: {
|
|
133
167
|
title: string;
|
|
134
168
|
subtitle: string;
|
|
@@ -255,6 +289,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
255
289
|
rateSavings: string;
|
|
256
290
|
upsGroundSaverTermsAcknowledgement: string;
|
|
257
291
|
dhlExpressTermsAcknowledgement: string;
|
|
292
|
+
noRateService: string;
|
|
258
293
|
};
|
|
259
294
|
requirements: {
|
|
260
295
|
noWarehouse: string;
|
|
@@ -305,6 +340,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
305
340
|
messageLine2: string;
|
|
306
341
|
};
|
|
307
342
|
stepLabel: {
|
|
343
|
+
/**
|
|
344
|
+
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
345
|
+
*/
|
|
308
346
|
accountRegistration: string;
|
|
309
347
|
termsAgreement: string;
|
|
310
348
|
shipFromAddress: string;
|
|
@@ -321,6 +359,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
321
359
|
action: string;
|
|
322
360
|
};
|
|
323
361
|
termsAndAgreementLinkText: {
|
|
362
|
+
shipEngineToS: string;
|
|
363
|
+
auctanePrivacyPolicy: string;
|
|
324
364
|
aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
|
|
325
365
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
|
|
326
366
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
|
|
@@ -345,42 +385,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
345
385
|
UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
|
|
346
386
|
};
|
|
347
387
|
};
|
|
348
|
-
"manage-defaults": {
|
|
349
|
-
label: {
|
|
350
|
-
title: string;
|
|
351
|
-
letter: {
|
|
352
|
-
title: string;
|
|
353
|
-
description: string;
|
|
354
|
-
};
|
|
355
|
-
purchase: {
|
|
356
|
-
title: string;
|
|
357
|
-
description: string;
|
|
358
|
-
};
|
|
359
|
-
thermal: {
|
|
360
|
-
title: string;
|
|
361
|
-
description: string;
|
|
362
|
-
};
|
|
363
|
-
};
|
|
364
|
-
status: {
|
|
365
|
-
saving: string;
|
|
366
|
-
saved: string;
|
|
367
|
-
savingFailed: string;
|
|
368
|
-
};
|
|
369
|
-
units: {
|
|
370
|
-
title: string;
|
|
371
|
-
dimensions: {
|
|
372
|
-
title: string;
|
|
373
|
-
standard: string;
|
|
374
|
-
metric: string;
|
|
375
|
-
};
|
|
376
|
-
weight: {
|
|
377
|
-
title: string;
|
|
378
|
-
standard: string;
|
|
379
|
-
g: string;
|
|
380
|
-
kg: string;
|
|
381
|
-
};
|
|
382
|
-
};
|
|
383
|
-
};
|
|
384
388
|
"manage-warehouses": {
|
|
385
389
|
title: string;
|
|
386
390
|
addNew: string;
|
|
@@ -448,6 +452,42 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
448
452
|
currentBalance: string;
|
|
449
453
|
maximumBalanceAmount: string;
|
|
450
454
|
};
|
|
455
|
+
"manage-defaults": {
|
|
456
|
+
label: {
|
|
457
|
+
title: string;
|
|
458
|
+
letter: {
|
|
459
|
+
title: string;
|
|
460
|
+
description: string;
|
|
461
|
+
};
|
|
462
|
+
purchase: {
|
|
463
|
+
title: string;
|
|
464
|
+
description: string;
|
|
465
|
+
};
|
|
466
|
+
thermal: {
|
|
467
|
+
title: string;
|
|
468
|
+
description: string;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
status: {
|
|
472
|
+
saving: string;
|
|
473
|
+
saved: string;
|
|
474
|
+
savingFailed: string;
|
|
475
|
+
};
|
|
476
|
+
units: {
|
|
477
|
+
title: string;
|
|
478
|
+
dimensions: {
|
|
479
|
+
title: string;
|
|
480
|
+
standard: string;
|
|
481
|
+
metric: string;
|
|
482
|
+
};
|
|
483
|
+
weight: {
|
|
484
|
+
title: string;
|
|
485
|
+
standard: string;
|
|
486
|
+
g: string;
|
|
487
|
+
kg: string;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
};
|
|
451
491
|
"list-shipments": {
|
|
452
492
|
title: string;
|
|
453
493
|
headers: {
|
|
@@ -478,18 +518,31 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
478
518
|
};
|
|
479
519
|
};
|
|
480
520
|
};
|
|
481
|
-
"
|
|
482
|
-
title: string;
|
|
483
|
-
headers: {
|
|
484
|
-
accountCarriers: string;
|
|
485
|
-
carriers: string;
|
|
486
|
-
settings: string;
|
|
487
|
-
};
|
|
521
|
+
"connect-carrier": {
|
|
488
522
|
actions: {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
523
|
+
cancel: string;
|
|
524
|
+
carrierSettings: string;
|
|
525
|
+
connectCarriers: string;
|
|
526
|
+
disconnect: string;
|
|
527
|
+
disconnectCarrier: string;
|
|
528
|
+
};
|
|
529
|
+
noCarriersDescription: string;
|
|
530
|
+
registrationForm: {
|
|
531
|
+
error: string;
|
|
532
|
+
title: string;
|
|
533
|
+
betaWarning: string;
|
|
534
|
+
};
|
|
535
|
+
search: string;
|
|
536
|
+
settingsModal: {
|
|
537
|
+
closeDialog: string;
|
|
538
|
+
header: string;
|
|
539
|
+
};
|
|
540
|
+
status: {
|
|
541
|
+
connected: string;
|
|
542
|
+
};
|
|
543
|
+
disconnectDropdown: {
|
|
544
|
+
toastTitle: string;
|
|
545
|
+
toastBody: string;
|
|
493
546
|
};
|
|
494
547
|
};
|
|
495
548
|
common: {
|
|
@@ -676,6 +729,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
676
729
|
accountSettings: string;
|
|
677
730
|
carrier: string;
|
|
678
731
|
carriers: string;
|
|
732
|
+
carrierServices: string;
|
|
679
733
|
connectCarrierForm: string;
|
|
680
734
|
connectingCarriers: string;
|
|
681
735
|
creatingFundingSource: string;
|
|
@@ -778,33 +832,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
778
832
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
|
|
779
833
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
|
|
780
834
|
};
|
|
781
|
-
"connect-carrier": {
|
|
782
|
-
actions: {
|
|
783
|
-
cancel: string;
|
|
784
|
-
carrierSettings: string;
|
|
785
|
-
connectCarriers: string;
|
|
786
|
-
disconnect: string;
|
|
787
|
-
disconnectCarrier: string;
|
|
788
|
-
};
|
|
789
|
-
noCarriersDescription: string;
|
|
790
|
-
registrationForm: {
|
|
791
|
-
error: string;
|
|
792
|
-
title: string;
|
|
793
|
-
betaWarning: string;
|
|
794
|
-
};
|
|
795
|
-
search: string;
|
|
796
|
-
settingsModal: {
|
|
797
|
-
closeDialog: string;
|
|
798
|
-
header: string;
|
|
799
|
-
};
|
|
800
|
-
status: {
|
|
801
|
-
connected: string;
|
|
802
|
-
};
|
|
803
|
-
disconnectDropdown: {
|
|
804
|
-
toastTitle: string;
|
|
805
|
-
toastBody: string;
|
|
806
|
-
};
|
|
807
|
-
};
|
|
808
835
|
"account-settings": {
|
|
809
836
|
messages: {
|
|
810
837
|
noFundingSources: string;
|
|
@@ -820,6 +847,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
820
847
|
externalCarriers: string;
|
|
821
848
|
labelLayout: string;
|
|
822
849
|
unitSettings: string;
|
|
850
|
+
vatSettings: string;
|
|
823
851
|
};
|
|
824
852
|
};
|
|
825
853
|
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const accountRegistrationFormSchema: z.ZodObject<{
|
|
3
|
+
agreeToTerms: z.ZodLiteral<boolean>;
|
|
3
4
|
email: z.ZodString;
|
|
4
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
agreeToTerms: boolean;
|
|
5
7
|
email: string;
|
|
6
8
|
}, {
|
|
9
|
+
agreeToTerms: boolean;
|
|
7
10
|
email: string;
|
|
8
11
|
}>;
|
|
9
12
|
export type AccountRegistrationFormFields = z.input<typeof accountRegistrationFormSchema>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
import { WalletPayload } from "../../../../components/templates/wallet-form";
|
|
3
|
+
import { VatSettingsFeatures } from "../../../../features";
|
|
3
4
|
export type FundingAndCarrierConnectionStepProps = {
|
|
4
5
|
address: SE.Address;
|
|
5
6
|
createFundingSourceErrors: SE.CodedError[] | null;
|
|
7
|
+
features?: VatSettingsFeatures;
|
|
6
8
|
onSubmit: (payload: WalletPayload) => Promise<void>;
|
|
7
9
|
registerCarrierErrors: SE.CodedError[] | null;
|
|
8
10
|
};
|
|
9
|
-
export declare const FundingAndCarrierConnectionStep: ({ address, createFundingSourceErrors, onSubmit, registerCarrierErrors, }: FundingAndCarrierConnectionStepProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export declare const FundingAndCarrierConnectionStep: ({ address, createFundingSourceErrors, onSubmit, registerCarrierErrors, features, }: FundingAndCarrierConnectionStepProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
import { WalletPayload } from "../../../../components/templates/wallet-form";
|
|
3
|
-
import { CarrierProfile
|
|
3
|
+
import { CarrierProfile } from "../../../../types";
|
|
4
4
|
type UseFundingAndCarrierConnectionStepProps = {
|
|
5
5
|
isUpsEnabled: boolean;
|
|
6
6
|
onStepComplete: () => void;
|
|
@@ -10,7 +10,7 @@ export declare const useFundingAndCarrierConnectionStep: ({ isUpsEnabled, onStep
|
|
|
10
10
|
carrierProfiles: CarrierProfile[];
|
|
11
11
|
defaultWarehouse: SE.Warehouse;
|
|
12
12
|
email: string;
|
|
13
|
-
fundingSourceTerms:
|
|
13
|
+
fundingSourceTerms: SE.MetadataRequiredTerm[];
|
|
14
14
|
}) => ({ address, creditCard, iovationBlackbox }: WalletPayload) => Promise<void>;
|
|
15
15
|
createFundingSourceErrors: SE.CodedError[] | null;
|
|
16
16
|
fundingSourceId: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
|
-
import { ShipEngineCarriersFeatures } from "../../../../features";
|
|
2
|
+
import { ShipEngineCarriersFeatures, VatSettingsFeatures } from "../../../../features";
|
|
3
3
|
import { ShipFromAddressStepProps } from "../ship-from-address-step";
|
|
4
4
|
export type ValidateWarehouse = {
|
|
5
5
|
type: "warehouse";
|
|
@@ -17,7 +17,7 @@ export type OnboardingWizardFeatures = ShipEngineCarriersFeatures & {
|
|
|
17
17
|
presentation: {
|
|
18
18
|
poweredByShipEngine?: boolean;
|
|
19
19
|
};
|
|
20
|
-
};
|
|
20
|
+
} & VatSettingsFeatures;
|
|
21
21
|
export type OnboardingWizardProps = {
|
|
22
22
|
defaultShipFromAddress?: ShipFromAddressStepProps["defaultShipFromAddress"];
|
|
23
23
|
features?: Partial<OnboardingWizardFeatures>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
export type TermsAgreementFormProps = {
|
|
3
|
-
carrierTerms:
|
|
4
|
-
fundingSourceTerms: MetadataRequiredTermWithLinks[];
|
|
3
|
+
carrierTerms: SE.MetadataRequiredTerm[];
|
|
5
4
|
hideTerms: boolean;
|
|
6
5
|
onSubmit: (agreement: boolean) => void;
|
|
7
6
|
};
|
|
8
|
-
export declare const TermsAgreementForm: ({ carrierTerms,
|
|
7
|
+
export declare const TermsAgreementForm: ({ carrierTerms, hideTerms, onSubmit, }: TermsAgreementFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.styles.d.ts
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
export declare const styles: {
|
|
2
|
-
closeButton: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
3
|
-
marginRight: number;
|
|
4
|
-
};
|
|
5
2
|
container: {
|
|
6
3
|
alignItems: "center";
|
|
7
4
|
display: "flex";
|
|
8
5
|
flexDirection: "column";
|
|
9
6
|
justifyContent: "center";
|
|
7
|
+
textAlign: "left";
|
|
10
8
|
};
|
|
11
9
|
expanderLink: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
12
10
|
alignItems: "center";
|
|
13
11
|
display: "inline-flex";
|
|
14
12
|
fontWeight: number;
|
|
15
13
|
};
|
|
14
|
+
fullWidth: {
|
|
15
|
+
width: string;
|
|
16
|
+
};
|
|
16
17
|
termsWell: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
17
18
|
backgroundColor: string;
|
|
18
19
|
marginBottom: number;
|
|
19
|
-
padding:
|
|
20
|
-
|
|
21
|
-
termTypeDivider: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
22
|
-
margin: string;
|
|
20
|
+
padding: number;
|
|
21
|
+
width: string;
|
|
23
22
|
};
|
|
24
23
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
export type TermsAgreementStepProps = {
|
|
3
3
|
carrierCodes: string[];
|
|
4
|
-
carrierTerms:
|
|
5
|
-
fundingSourceTerms: MetadataRequiredTermWithLinks[];
|
|
4
|
+
carrierTerms: SE.MetadataRequiredTerm[];
|
|
6
5
|
onSubmit: (agreement: boolean) => void;
|
|
7
6
|
};
|
|
8
|
-
export declare const TermsAgreementStep: ({ carrierCodes, carrierTerms,
|
|
7
|
+
export declare const TermsAgreementStep: ({ carrierCodes, carrierTerms, onSubmit, }: TermsAgreementStepProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
export type UseTermsAgreementStepProps = {
|
|
3
3
|
enabledCarriers: string[];
|
|
4
4
|
onStepComplete: () => void;
|
|
@@ -6,13 +6,13 @@ export type UseTermsAgreementStepProps = {
|
|
|
6
6
|
export declare const useTermsAgreementStep: ({ enabledCarriers, onStepComplete, }: UseTermsAgreementStepProps) => {
|
|
7
7
|
carrierCodes: string[] | undefined;
|
|
8
8
|
carrierProfiles: {
|
|
9
|
-
capabilities:
|
|
9
|
+
capabilities: SE.MetadataCapability[] | null;
|
|
10
10
|
carrierCode: string;
|
|
11
|
-
registrationRequirements:
|
|
12
|
-
requiredTerms:
|
|
11
|
+
registrationRequirements: SE.MetadataRegistrationRequirement[];
|
|
12
|
+
requiredTerms: SE.MetadataRequiredTerm[];
|
|
13
13
|
}[] | undefined;
|
|
14
|
-
carrierTerms:
|
|
15
|
-
fundingSourceMetadata: import("@tanstack/react-query").UseQueryResult<
|
|
16
|
-
fundingSourceTerms:
|
|
14
|
+
carrierTerms: SE.MetadataRequiredTerm[] | undefined;
|
|
15
|
+
fundingSourceMetadata: import("@tanstack/react-query").UseQueryResult<SE.MetadataResponse, SE.CodedError[]>;
|
|
16
|
+
fundingSourceTerms: SE.MetadataRequiredTerm[] | undefined;
|
|
17
17
|
handleSubmitTermsAgreement: () => void;
|
|
18
18
|
};
|
|
@@ -109,6 +109,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
109
109
|
resultMessages: {
|
|
110
110
|
approved: string;
|
|
111
111
|
rejected: string;
|
|
112
|
+
dpdwallet: string;
|
|
112
113
|
};
|
|
113
114
|
refund_process: string;
|
|
114
115
|
refund_rules: string;
|
|
@@ -150,6 +151,38 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
150
151
|
};
|
|
151
152
|
noLabels: string;
|
|
152
153
|
};
|
|
154
|
+
"vat-settings": {
|
|
155
|
+
addNew: string;
|
|
156
|
+
vatNumber: string;
|
|
157
|
+
vatRegistrationTooltip: string;
|
|
158
|
+
vatFormText: string;
|
|
159
|
+
vatFormRegisterLater: string;
|
|
160
|
+
vatNumberInputHint: string;
|
|
161
|
+
vatNumberInputPlaceholder: string;
|
|
162
|
+
verifiedVat: string;
|
|
163
|
+
vatFormErrors: {
|
|
164
|
+
invalidFieldValue: string;
|
|
165
|
+
verificationFailure: string;
|
|
166
|
+
forbidden: string;
|
|
167
|
+
connectionNotSupported: string;
|
|
168
|
+
genericTitle: string;
|
|
169
|
+
genericText: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
"shipengine-carriers": {
|
|
173
|
+
title: string;
|
|
174
|
+
headers: {
|
|
175
|
+
accountCarriers: string;
|
|
176
|
+
carriers: string;
|
|
177
|
+
settings: string;
|
|
178
|
+
};
|
|
179
|
+
actions: {
|
|
180
|
+
status: {
|
|
181
|
+
connected: string;
|
|
182
|
+
notConnected: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
153
186
|
"register-wallet": {
|
|
154
187
|
sections: {
|
|
155
188
|
setup: {
|
|
@@ -165,6 +198,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
165
198
|
addressSubTitle: string;
|
|
166
199
|
info: string;
|
|
167
200
|
};
|
|
201
|
+
vatSettings: {
|
|
202
|
+
title: string; /** Invoked when the onboarding process is completed. */
|
|
203
|
+
};
|
|
168
204
|
carriers: {
|
|
169
205
|
title: string;
|
|
170
206
|
subtitle: string;
|
|
@@ -291,6 +327,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
291
327
|
rateSavings: string;
|
|
292
328
|
upsGroundSaverTermsAcknowledgement: string;
|
|
293
329
|
dhlExpressTermsAcknowledgement: string;
|
|
330
|
+
noRateService: string;
|
|
294
331
|
};
|
|
295
332
|
requirements: {
|
|
296
333
|
noWarehouse: string;
|
|
@@ -357,6 +394,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
357
394
|
action: string;
|
|
358
395
|
};
|
|
359
396
|
termsAndAgreementLinkText: {
|
|
397
|
+
shipEngineToS: string;
|
|
398
|
+
auctanePrivacyPolicy: string;
|
|
360
399
|
aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
|
|
361
400
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
|
|
362
401
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
|
|
@@ -381,42 +420,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
381
420
|
UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
|
|
382
421
|
};
|
|
383
422
|
};
|
|
384
|
-
"manage-defaults": {
|
|
385
|
-
label: {
|
|
386
|
-
title: string;
|
|
387
|
-
letter: {
|
|
388
|
-
title: string;
|
|
389
|
-
description: string;
|
|
390
|
-
};
|
|
391
|
-
purchase: {
|
|
392
|
-
title: string;
|
|
393
|
-
description: string;
|
|
394
|
-
};
|
|
395
|
-
thermal: {
|
|
396
|
-
title: string;
|
|
397
|
-
description: string;
|
|
398
|
-
};
|
|
399
|
-
};
|
|
400
|
-
status: {
|
|
401
|
-
saving: string;
|
|
402
|
-
saved: string;
|
|
403
|
-
savingFailed: string;
|
|
404
|
-
};
|
|
405
|
-
units: {
|
|
406
|
-
title: string;
|
|
407
|
-
dimensions: {
|
|
408
|
-
title: string;
|
|
409
|
-
standard: string; /** Invoked when the onboarding process is completed. */
|
|
410
|
-
metric: string;
|
|
411
|
-
};
|
|
412
|
-
weight: {
|
|
413
|
-
title: string; /** The partner responsible for the currently onboarding seller. This is typically the name of the entity that owns the host application. */
|
|
414
|
-
standard: string;
|
|
415
|
-
g: string;
|
|
416
|
-
kg: string;
|
|
417
|
-
};
|
|
418
|
-
};
|
|
419
|
-
};
|
|
420
423
|
"manage-warehouses": {
|
|
421
424
|
title: string;
|
|
422
425
|
addNew: string;
|
|
@@ -484,6 +487,42 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
484
487
|
currentBalance: string;
|
|
485
488
|
maximumBalanceAmount: string;
|
|
486
489
|
};
|
|
490
|
+
"manage-defaults": {
|
|
491
|
+
label: {
|
|
492
|
+
title: string;
|
|
493
|
+
letter: {
|
|
494
|
+
title: string;
|
|
495
|
+
description: string;
|
|
496
|
+
};
|
|
497
|
+
purchase: {
|
|
498
|
+
title: string;
|
|
499
|
+
description: string;
|
|
500
|
+
};
|
|
501
|
+
thermal: {
|
|
502
|
+
title: string;
|
|
503
|
+
description: string;
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
status: {
|
|
507
|
+
saving: string;
|
|
508
|
+
saved: string;
|
|
509
|
+
savingFailed: string;
|
|
510
|
+
};
|
|
511
|
+
units: {
|
|
512
|
+
title: string;
|
|
513
|
+
dimensions: {
|
|
514
|
+
title: string;
|
|
515
|
+
standard: string; /** Invoked when the onboarding process is completed. */
|
|
516
|
+
metric: string;
|
|
517
|
+
};
|
|
518
|
+
weight: {
|
|
519
|
+
title: string; /** The partner responsible for the currently onboarding seller. This is typically the name of the entity that owns the host application. */
|
|
520
|
+
standard: string;
|
|
521
|
+
g: string;
|
|
522
|
+
kg: string;
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
};
|
|
487
526
|
"list-shipments": {
|
|
488
527
|
title: string;
|
|
489
528
|
headers: {
|
|
@@ -520,18 +559,31 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
520
559
|
};
|
|
521
560
|
};
|
|
522
561
|
};
|
|
523
|
-
"
|
|
524
|
-
title: string;
|
|
525
|
-
headers: {
|
|
526
|
-
accountCarriers: string;
|
|
527
|
-
carriers: string;
|
|
528
|
-
settings: string;
|
|
529
|
-
};
|
|
562
|
+
"connect-carrier": {
|
|
530
563
|
actions: {
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
564
|
+
cancel: string;
|
|
565
|
+
carrierSettings: string;
|
|
566
|
+
connectCarriers: string;
|
|
567
|
+
disconnect: string;
|
|
568
|
+
disconnectCarrier: string;
|
|
569
|
+
};
|
|
570
|
+
noCarriersDescription: string;
|
|
571
|
+
registrationForm: {
|
|
572
|
+
error: string;
|
|
573
|
+
title: string;
|
|
574
|
+
betaWarning: string;
|
|
575
|
+
};
|
|
576
|
+
search: string;
|
|
577
|
+
settingsModal: {
|
|
578
|
+
closeDialog: string;
|
|
579
|
+
header: string;
|
|
580
|
+
};
|
|
581
|
+
status: {
|
|
582
|
+
connected: string;
|
|
583
|
+
};
|
|
584
|
+
disconnectDropdown: {
|
|
585
|
+
toastTitle: string;
|
|
586
|
+
toastBody: string;
|
|
535
587
|
};
|
|
536
588
|
};
|
|
537
589
|
common: {
|
|
@@ -758,6 +810,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
758
810
|
accountSettings: string;
|
|
759
811
|
carrier: string;
|
|
760
812
|
carriers: string;
|
|
813
|
+
carrierServices: string;
|
|
761
814
|
connectCarrierForm: string;
|
|
762
815
|
connectingCarriers: string;
|
|
763
816
|
creatingFundingSource: string;
|
|
@@ -860,33 +913,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
860
913
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
|
|
861
914
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
|
|
862
915
|
};
|
|
863
|
-
"connect-carrier": {
|
|
864
|
-
actions: {
|
|
865
|
-
cancel: string;
|
|
866
|
-
carrierSettings: string;
|
|
867
|
-
connectCarriers: string;
|
|
868
|
-
disconnect: string;
|
|
869
|
-
disconnectCarrier: string;
|
|
870
|
-
};
|
|
871
|
-
noCarriersDescription: string;
|
|
872
|
-
registrationForm: {
|
|
873
|
-
error: string;
|
|
874
|
-
title: string;
|
|
875
|
-
betaWarning: string;
|
|
876
|
-
};
|
|
877
|
-
search: string;
|
|
878
|
-
settingsModal: {
|
|
879
|
-
closeDialog: string;
|
|
880
|
-
header: string;
|
|
881
|
-
};
|
|
882
|
-
status: {
|
|
883
|
-
connected: string;
|
|
884
|
-
};
|
|
885
|
-
disconnectDropdown: {
|
|
886
|
-
toastTitle: string;
|
|
887
|
-
toastBody: string;
|
|
888
|
-
};
|
|
889
|
-
};
|
|
890
916
|
"account-settings": {
|
|
891
917
|
messages: {
|
|
892
918
|
noFundingSources: string;
|
|
@@ -909,6 +935,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
909
935
|
externalCarriers: string;
|
|
910
936
|
labelLayout: string;
|
|
911
937
|
unitSettings: string;
|
|
938
|
+
vatSettings: string;
|
|
912
939
|
};
|
|
913
940
|
};
|
|
914
941
|
};
|