@shipengine/elements 2.17.0 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions-menu.js +5 -5
- package/components.js +1 -1
- package/elements.js +1 -1
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/package.json +4 -12
- package/src/components/add-funds-form/add-funds-form.d.ts +3 -9
- package/src/components/button-group/button-group.d.ts +4 -1
- package/src/components/date-range-combo/date-range-combo.d.ts +1 -1
- package/src/components/field/select/select-with-categories.d.ts +1 -0
- package/src/components/fund-and-purchase/fund-and-purchase.d.ts +6 -7
- package/src/components/grid-controller/grid-controller.d.ts +6 -2
- package/src/components/grid-controller/index.d.ts +1 -0
- package/src/components/grid-controller/sortable-header.d.ts +20 -0
- package/src/components/grid-filters/components/index.d.ts +1 -0
- package/src/components/grid-filters/components/tracking-status-filter/index.d.ts +1 -0
- package/src/components/grid-filters/components/tracking-status-filter/tracking-status-filter-schema.d.ts +21 -0
- package/src/components/grid-filters/components/tracking-status-filter/tracking-status-filter.d.ts +23 -0
- package/src/components/grid-filters/components/tracking-status-filter/tracking-status-filter.styles.d.ts +13 -0
- package/src/components/grid-filters/grid-filters.d.ts +4 -1
- package/src/components/history/history-card/history-card.styles.d.ts +1 -1
- package/src/components/ship-from-address-form/ship-from-address-form.d.ts +2 -1
- package/src/components/templates/connect-external-carrier-form/connect-external-carrier-form.d.ts +3 -1
- package/src/components/templates/connect-external-carrier-form/custom-forms/custom-external-carrier-form.d.ts +10 -0
- package/src/components/templates/connect-external-carrier-form/custom-forms/custom-form-fedex.d.ts +6 -0
- package/src/components/templates/connect-external-carrier-form/custom-forms/eula-clickwrap.d.ts +11 -0
- package/src/components/templates/connect-external-carrier-form/custom-forms/eula-clickwrap.styles.d.ts +20 -0
- package/src/components/templates/connect-external-carrier-form/custom-forms/index.d.ts +1 -0
- package/src/components/templates/connect-external-carrier-form/index.d.ts +1 -0
- package/src/components/templates/rate-form/rate-form.d.ts +4 -2
- package/src/components/templates/shipment-form/shipment-form.d.ts +2 -1
- package/src/components/templates/theme-creator/theme-creator.d.ts +3 -2
- package/src/create-element/element/index.d.ts +0 -1
- package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +12 -51
- package/src/elements/labels-grid/labels-grid.d.ts +50 -34
- package/src/elements/manage-carriers/manage-carriers.d.ts +49 -49
- package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +43 -0
- package/src/elements/manage-funding/manage-funding-element.d.ts +24 -2
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +21 -0
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +21 -0
- package/src/elements/purchase-label/hooks/use-rates-form.d.ts +1 -0
- package/src/elements/purchase-label/hooks/use-shipment-form.d.ts +4 -4
- package/src/elements/purchase-label/purchase-label.d.ts +26 -5
- package/src/elements/select-label-layout/select-label-layout-element.d.ts +21 -0
- package/src/elements/shipment-summary/shipment-summary.d.ts +31 -36
- package/src/elements/shipments-grid/shipments-grid.d.ts +25 -36
- package/src/elements/theme-creator/theme-creator.d.ts +25 -15
- package/src/elements/transaction-history/transaction-history-element.d.ts +21 -0
- package/src/elements/unit-settings/unit-settings-element.d.ts +21 -0
- package/src/elements/vat-settings/vat-settings-element.d.ts +21 -0
- package/src/elements/void-label/void-label.d.ts +50 -9
- package/src/elements-provider/elements-context-provider.d.ts +2 -2
- package/src/elements-provider/elements-provider.d.ts +1 -2
- package/src/features/manage-carriers/manage-carriers.d.ts +6 -8
- package/src/features/manage-carriers/use-manage-carriers.d.ts +4 -7
- package/src/features/manage-funding/manage-funding.d.ts +4 -9
- package/src/hooks/index.d.ts +1 -0
- package/src/hooks/insurance/use-manage-funding-source-insurance.d.ts +1 -0
- package/src/hooks/options/use-date-range-options.d.ts +4 -1
- package/src/hooks/options/use-rate-options.d.ts +2 -1
- package/src/hooks/use-balance-services.d.ts +22 -0
- package/src/hooks/use-helpers.d.ts +4 -0
- package/src/locales/en/index.d.ts +21 -0
- package/src/utilities/feature-flags/types.d.ts +5 -1
- package/src/utilities/shipengine/address.d.ts +1 -1
- package/src/utilities/storybook-local-storage-config.d.ts +12 -0
- package/src/utilities/validation.d.ts +19 -0
- package/src/workflows/account-settings/account-settings.d.ts +21 -0
- package/src/workflows/carrier-services/carrier-services.d.ts +22 -27
- package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +31 -24
- package/src/workflows/label-workflow/label-workflow.d.ts +21 -0
- package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +2 -1
- package/src/workflows/onboarding/onboarding.d.ts +67 -84
- package/styles.js +1 -0
- package/suspend-text.js +1 -1
- package/transaction-history-element.js +1 -1
- package/use-balance-services.js +1 -0
- package/use-configure-shipment.js +1 -1
- package/use-page-layout.js +1 -1
- package/use-unit-settings.js +1 -1
- package/usePager.js +1 -1
- package/utilities.js +1 -1
- package/validation.js +1 -1
- package/wallet-form.js +1 -1
- package/warehouses.js +1 -1
- package/workflows.js +1 -1
- package/carrier.js +0 -1
- package/src/create-element/element/utils/get-emotion-cache.d.ts +0 -2
- package/src/create-element/element/utils/index.d.ts +0 -1
- package/use-toggle.js +0 -1
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import { SE } from "@shipengine/react-api";
|
|
1
|
+
import { LabelTrackingStatus, SE } from "@shipengine/react-api";
|
|
2
2
|
import { LabelsGridProps } from "../";
|
|
3
|
-
import { IGridFilters } from "../../../components";
|
|
4
|
-
|
|
3
|
+
import { IGridFilters, SortDirection } from "../../../components";
|
|
4
|
+
import { Label } from "../labels-grid";
|
|
5
|
+
export declare const useLabelsGrid: ({ createdDateSortBy, labelStatus, showShipmentIdFilter, showLabelIdFilter, showTrackingStatusFilter, }: {
|
|
6
|
+
createdDateSortBy?: SortDirection | undefined;
|
|
5
7
|
labelStatus: LabelsGridProps["labelStatus"];
|
|
6
8
|
showLabelIdFilter?: boolean | undefined;
|
|
7
9
|
showShipmentIdFilter?: boolean | undefined;
|
|
10
|
+
showTrackingStatusFilter?: boolean | undefined;
|
|
8
11
|
}) => {
|
|
9
12
|
clearAllFilters: () => void;
|
|
10
13
|
filters: IGridFilters;
|
|
11
|
-
getGridData: () => {
|
|
14
|
+
getGridData: () => Label[] | {
|
|
15
|
+
bodyCellStyles: {
|
|
16
|
+
color: string | undefined;
|
|
17
|
+
};
|
|
12
18
|
serviceName: string | null | undefined;
|
|
13
19
|
alternativeIdentifiers?: string[] | undefined;
|
|
14
20
|
batchId: string;
|
|
@@ -49,7 +55,7 @@ export declare const useLabelsGrid: ({ labelStatus, showShipmentIdFilter, showLa
|
|
|
49
55
|
status: SE.LabelStatus;
|
|
50
56
|
trackable: boolean;
|
|
51
57
|
trackingNumber: string;
|
|
52
|
-
trackingStatus:
|
|
58
|
+
trackingStatus: LabelTrackingStatus;
|
|
53
59
|
trackingUrl: string;
|
|
54
60
|
voided: boolean;
|
|
55
61
|
voidedAt: string | null;
|
|
@@ -57,52 +63,7 @@ export declare const useLabelsGrid: ({ labelStatus, showShipmentIdFilter, showLa
|
|
|
57
63
|
isAnyFilterActive: boolean;
|
|
58
64
|
isError: boolean;
|
|
59
65
|
isLoading: boolean;
|
|
60
|
-
labels:
|
|
61
|
-
serviceName: string | null | undefined;
|
|
62
|
-
alternativeIdentifiers?: string[] | undefined;
|
|
63
|
-
batchId: string;
|
|
64
|
-
carrierCode: string;
|
|
65
|
-
carrierId: string;
|
|
66
|
-
chargeEvent: SE.LabelChargeEvent;
|
|
67
|
-
createdAt: string;
|
|
68
|
-
displayScheme: SE.LabelDisplayScheme;
|
|
69
|
-
externalOrderId: string | null;
|
|
70
|
-
externalShipmentId: string | null;
|
|
71
|
-
formDownload: SE.LinkedResource;
|
|
72
|
-
insuranceClaim: SE.LinkedResource;
|
|
73
|
-
insuranceCost: SE.Money;
|
|
74
|
-
isInternational: boolean;
|
|
75
|
-
isReturnLabel: boolean;
|
|
76
|
-
labelDownload: SE.Download;
|
|
77
|
-
labelFormat: SE.LabelFormat;
|
|
78
|
-
labelId: string;
|
|
79
|
-
labelImageId: string;
|
|
80
|
-
labelLayout: SE.LabelLayout;
|
|
81
|
-
packageCode: string;
|
|
82
|
-
packages: SE.ShipmentPackage[];
|
|
83
|
-
paperlessDownload: SE.PaperlessDownload | null;
|
|
84
|
-
qrCodeDownload?: SE.LinkedResource | undefined;
|
|
85
|
-
rateDetails: SE.RateDetail[];
|
|
86
|
-
relayPoints: {
|
|
87
|
-
shipFrom: SE.RelayPoint;
|
|
88
|
-
shipTo: SE.RelayPoint;
|
|
89
|
-
};
|
|
90
|
-
requestedComparisonAmount?: SE.Money | undefined;
|
|
91
|
-
rmaNumber: string;
|
|
92
|
-
serviceCode: string;
|
|
93
|
-
shipDate: string;
|
|
94
|
-
shipmentCost: SE.Money;
|
|
95
|
-
shipmentId: string;
|
|
96
|
-
shippingRuleId: string | null;
|
|
97
|
-
shipTo: SE.Address;
|
|
98
|
-
status: SE.LabelStatus;
|
|
99
|
-
trackable: boolean;
|
|
100
|
-
trackingNumber: string;
|
|
101
|
-
trackingStatus: SE.LabelTrackingStatus;
|
|
102
|
-
trackingUrl: string;
|
|
103
|
-
voided: boolean;
|
|
104
|
-
voidedAt: string | null;
|
|
105
|
-
}[];
|
|
66
|
+
labels: Label[];
|
|
106
67
|
pageConfig: {
|
|
107
68
|
currentPage: number;
|
|
108
69
|
pagerProps: {
|
|
@@ -47,6 +47,9 @@ export type LabelsGridProps = {
|
|
|
47
47
|
*/
|
|
48
48
|
onRowClick?: (label: SE.Label) => void;
|
|
49
49
|
};
|
|
50
|
+
export type Label = SE.Label & {
|
|
51
|
+
serviceName: string | undefined | null;
|
|
52
|
+
};
|
|
50
53
|
export declare const Component: ({ labelStatus, features, onClickPrintLabel, onClickVoidLabel, onClickPrintForms, onClickViewDetails, onRowClick, onClickExternalOrderId, onClickExternalShipmentId, }: LabelsGridProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
51
54
|
export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
52
55
|
resources?: {
|
|
@@ -70,6 +73,9 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
70
73
|
thisMonth: string;
|
|
71
74
|
lastMonth: string;
|
|
72
75
|
};
|
|
76
|
+
category: {
|
|
77
|
+
fundsAdded: string;
|
|
78
|
+
};
|
|
73
79
|
};
|
|
74
80
|
"void-label": {
|
|
75
81
|
title: string;
|
|
@@ -87,10 +93,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
87
93
|
rejected: string;
|
|
88
94
|
dpdwallet: string;
|
|
89
95
|
};
|
|
90
|
-
refund_process: string;
|
|
91
|
-
* `features` provides optional feature configuration for the Element
|
|
92
|
-
* If no value is defined, default configuration will be used.
|
|
93
|
-
*/
|
|
96
|
+
refund_process: string;
|
|
94
97
|
refund_rules: string;
|
|
95
98
|
resultTitles: {
|
|
96
99
|
approved: string;
|
|
@@ -214,10 +217,6 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
214
217
|
error: {
|
|
215
218
|
title: string;
|
|
216
219
|
};
|
|
217
|
-
/**
|
|
218
|
-
* `onClickExternalOrderId` is an optional callback function that will be invoked when the user clicks the id number within the
|
|
219
|
-
* `External Order ID` column, if present.
|
|
220
|
-
*/
|
|
221
220
|
info: {
|
|
222
221
|
description: string;
|
|
223
222
|
};
|
|
@@ -228,10 +227,6 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
228
227
|
carrier: {
|
|
229
228
|
title: string;
|
|
230
229
|
confirmAddress: string;
|
|
231
|
-
/**
|
|
232
|
-
* `onClickPrintForm` is an optional callback function that will be invoked when the user clicks the
|
|
233
|
-
* `Print Forms` button.
|
|
234
|
-
*/
|
|
235
230
|
description: string;
|
|
236
231
|
};
|
|
237
232
|
blackBox: {
|
|
@@ -328,18 +323,12 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
328
323
|
};
|
|
329
324
|
fields: {
|
|
330
325
|
"requires-additional-handling": string;
|
|
331
|
-
addOns: string;
|
|
332
|
-
* `onClickPrintForm` is an optional callback function that will be invoked when the user clicks the
|
|
333
|
-
* `Print Forms` button.
|
|
334
|
-
*/
|
|
326
|
+
addOns: string;
|
|
335
327
|
contentDescription: string;
|
|
336
328
|
confirmation: string;
|
|
337
329
|
dimensions: {
|
|
338
330
|
length: string;
|
|
339
|
-
width: string;
|
|
340
|
-
* `onClickPrintLabel` is an optional callback function that will be invoked when the user clicks the
|
|
341
|
-
* `Print Label` button.
|
|
342
|
-
*/
|
|
331
|
+
width: string;
|
|
343
332
|
height: string;
|
|
344
333
|
};
|
|
345
334
|
dimensionsGroup: string;
|
|
@@ -484,7 +473,10 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
484
473
|
"aHR0cHM6Ly93d3cudXBzLmNvbS91cy9lbi9zdXBwb3J0L3NoaXBwaW5nLXN1cHBvcnQvc2hpcHBpbmctc3BlY2lhbC1jYXJlLXJlZ3VsYXRlZC1pdGVtcy9wcm9oaWJpdGVkLWl0ZW1zLnBhZ2U=": string;
|
|
485
474
|
aHR0cHM6Ly93d3cudXBzLmNvbS9hc3NldHMvcmVzb3VyY2VzL21lZGlhL2VuX1VTL1VQU19EQVBfVEMucGRm: string;
|
|
486
475
|
"aHR0cHM6Ly93d3cudXBzLmNvbS9hc3NldHMvcmVzb3VyY2VzL21lZGlhL2VuX1VTL1VUQS5wZGY=": string;
|
|
487
|
-
"aHR0cHM6Ly93d3cuZXZyaS5jb20vdGVybXMtYW5kLWNvbmRpdGlvbnM=": string;
|
|
476
|
+
"aHR0cHM6Ly93d3cuZXZyaS5jb20vdGVybXMtYW5kLWNvbmRpdGlvbnM=": string; /**
|
|
477
|
+
* `onViewDetails` is a callback function that controls the "View Details" action button and
|
|
478
|
+
* will be invoked when the user clicks on it.
|
|
479
|
+
*/
|
|
488
480
|
"aHR0cHM6Ly93d3cueW9kZWxkaXJlY3QuY28udWsvY29udGVudC9hYm91dC10ZXJtcw==": string;
|
|
489
481
|
aHR0cHM6Ly93d3cuc2hpcHN0YXRpb24uY29tL3Rlcm1zLXNlcnZpY2UtdW5pdGVkLWtpbmdkb20v: string;
|
|
490
482
|
"aHR0cHM6Ly93d3cuZHBkLmNvLnVrL3N0YW5kYXJkX3Rlcm1zX2FuZF9jb25kaXRpb25zLmpzcA==": string;
|
|
@@ -564,6 +556,10 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
564
556
|
finalBalance: string;
|
|
565
557
|
insufficientFunds: string;
|
|
566
558
|
insufficientFundsTitle: string;
|
|
559
|
+
/**
|
|
560
|
+
* `onClickExternalShipmentId` is an optional callback function that will be invoked when the user clicks the id number within
|
|
561
|
+
* `External Shipment Id` column, if present.
|
|
562
|
+
*/
|
|
567
563
|
negativeBalance: string;
|
|
568
564
|
negativeBalanceTitle: string;
|
|
569
565
|
newBalance: string;
|
|
@@ -613,10 +609,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
613
609
|
g: string;
|
|
614
610
|
kg: string;
|
|
615
611
|
};
|
|
616
|
-
};
|
|
617
|
-
* `features` provides optional feature configuration for the Element
|
|
618
|
-
* If no value is defined, default configuration will be used.
|
|
619
|
-
*/
|
|
612
|
+
};
|
|
620
613
|
};
|
|
621
614
|
"list-shipments": {
|
|
622
615
|
title: string;
|
|
@@ -652,10 +645,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
652
645
|
title: string;
|
|
653
646
|
subtitle: string;
|
|
654
647
|
};
|
|
655
|
-
};
|
|
656
|
-
* `labelStatus` is the status of the labels you wish to view.
|
|
657
|
-
* If no value is defined, all labels will be rendered.
|
|
658
|
-
*/
|
|
648
|
+
};
|
|
659
649
|
"list-labels": {
|
|
660
650
|
title: string;
|
|
661
651
|
headers: {
|
|
@@ -688,9 +678,15 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
688
678
|
};
|
|
689
679
|
trackingStatus: {
|
|
690
680
|
unknown: string;
|
|
681
|
+
/**
|
|
682
|
+
* `features` provides optional feature configuration for the Element
|
|
683
|
+
* If no value is defined, default configuration will be used.
|
|
684
|
+
*/
|
|
691
685
|
inTransit: string;
|
|
686
|
+
in_transit: string;
|
|
692
687
|
delivered: string;
|
|
693
688
|
error: string;
|
|
689
|
+
voided: string;
|
|
694
690
|
};
|
|
695
691
|
actions: {
|
|
696
692
|
title: string;
|
|
@@ -710,6 +706,17 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
710
706
|
connectCarriers: string;
|
|
711
707
|
disconnect: string;
|
|
712
708
|
disconnectCarrier: string;
|
|
709
|
+
downloadEula: string;
|
|
710
|
+
};
|
|
711
|
+
customForms: {
|
|
712
|
+
fedex: {
|
|
713
|
+
eulaName: string;
|
|
714
|
+
disclaimerFooter: string;
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
eula: {
|
|
718
|
+
toContinue: string;
|
|
719
|
+
iAgree: string;
|
|
713
720
|
};
|
|
714
721
|
noCarriersDescription: string;
|
|
715
722
|
registrationForm: {
|
|
@@ -756,6 +763,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
756
763
|
address: {
|
|
757
764
|
fields: {
|
|
758
765
|
name: string;
|
|
766
|
+
fullName: string;
|
|
759
767
|
company: string;
|
|
760
768
|
county: string;
|
|
761
769
|
countryCode: string;
|
|
@@ -768,6 +776,10 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
768
776
|
email: string;
|
|
769
777
|
addressResidentialIndicator: string;
|
|
770
778
|
};
|
|
779
|
+
/**
|
|
780
|
+
* `features` provides optional feature configuration for the Element
|
|
781
|
+
* If no value is defined, default configuration will be used.
|
|
782
|
+
*/
|
|
771
783
|
noResults: string;
|
|
772
784
|
subFields: {
|
|
773
785
|
optional: string;
|
|
@@ -796,10 +808,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
796
808
|
};
|
|
797
809
|
billing: {
|
|
798
810
|
fields: {
|
|
799
|
-
differentBillingAddress: string;
|
|
800
|
-
* `onClickPrintLabel` is an optional callback function that will be invoked when the user clicks the
|
|
801
|
-
* `Print Label` button.
|
|
802
|
-
*/
|
|
811
|
+
differentBillingAddress: string;
|
|
803
812
|
name: string;
|
|
804
813
|
cardNumber: string;
|
|
805
814
|
expiration: string;
|
|
@@ -921,6 +930,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
921
930
|
unknown: string;
|
|
922
931
|
noRatesAvailable: string;
|
|
923
932
|
refreshAndTryAgain: string;
|
|
933
|
+
updateShipFromAddress: string;
|
|
924
934
|
windsorFramework: {
|
|
925
935
|
doNotConform: string;
|
|
926
936
|
pleaseAddTheFollowingTaxIds: string;
|
|
@@ -939,6 +949,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
939
949
|
saveRate: string;
|
|
940
950
|
security: string;
|
|
941
951
|
shipmentStatus: string;
|
|
952
|
+
shipFromAddress: string;
|
|
942
953
|
system: string;
|
|
943
954
|
unknown: string;
|
|
944
955
|
validation: string;
|
|
@@ -952,6 +963,8 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
952
963
|
shipmentId: string;
|
|
953
964
|
labelId: string;
|
|
954
965
|
labelIdFilter: string;
|
|
966
|
+
filteredTrackingStatus: string;
|
|
967
|
+
more: string;
|
|
955
968
|
createdDate: string;
|
|
956
969
|
shipmentIdFilter: string;
|
|
957
970
|
createdDateFilter: string;
|
|
@@ -1131,7 +1144,10 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
1131
1144
|
labelLayout: string;
|
|
1132
1145
|
unitSettings: string;
|
|
1133
1146
|
vatSettings: string;
|
|
1134
|
-
};
|
|
1147
|
+
}; /**
|
|
1148
|
+
* `features` provides optional feature configuration for the Element
|
|
1149
|
+
* If no value is defined, default configuration will be used.
|
|
1150
|
+
*/
|
|
1135
1151
|
};
|
|
1136
1152
|
};
|
|
1137
1153
|
} | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ShipEngineCarriersProps } from "../../features/manage-carriers";
|
|
3
|
+
export type ComponentProps = Pick<ShipEngineCarriersProps, "onRedirectToOnboarding" | "showFunds">;
|
|
3
4
|
/**
|
|
4
5
|
* # Manage-Carriers Element
|
|
5
6
|
*
|
|
@@ -23,8 +24,8 @@ import { ShipEngineCarriersProps } from "../../features/manage-carriers";
|
|
|
23
24
|
* @see {@link ManageCarriers.ComponentProps | The props that are passed into the `<ManageCarriers />` component}
|
|
24
25
|
* @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageCarriers />` component}
|
|
25
26
|
*/
|
|
26
|
-
export declare const Component: ({ onRedirectToOnboarding }:
|
|
27
|
-
export declare const Element: ({ resources, ...props }:
|
|
27
|
+
export declare const Component: ({ onRedirectToOnboarding, showFunds }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
28
29
|
resources?: {
|
|
29
30
|
en: {
|
|
30
31
|
"wallet-history": {
|
|
@@ -43,9 +44,34 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
43
44
|
historyOptions: {
|
|
44
45
|
custom: string;
|
|
45
46
|
last30days: string;
|
|
46
|
-
thisMonth: string;
|
|
47
|
+
thisMonth: string; /**
|
|
48
|
+
* # Manage-Carriers Element
|
|
49
|
+
*
|
|
50
|
+
* @param ComponentProps The base props that will be passed into the `<ManageCarriers />` component.
|
|
51
|
+
*
|
|
52
|
+
* @returns Element A React element that renders the `<ManageCarriers />` component allowing users
|
|
53
|
+
* to view a list of carriers that are connected to their ShipEngine account. This component is
|
|
54
|
+
* composed in the `<AccountSettings />` Element.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```tsx
|
|
58
|
+
* (() => {
|
|
59
|
+
* const features = useFeatures("Global");
|
|
60
|
+
*
|
|
61
|
+
* return <ManageCarriers.Element features={features} />;
|
|
62
|
+
* })();
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* <br />
|
|
66
|
+
*
|
|
67
|
+
* @see {@link ManageCarriers.ComponentProps | The props that are passed into the `<ManageCarriers />` component}
|
|
68
|
+
* @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageCarriers />` component}
|
|
69
|
+
*/
|
|
47
70
|
lastMonth: string;
|
|
48
71
|
};
|
|
72
|
+
category: {
|
|
73
|
+
fundsAdded: string;
|
|
74
|
+
};
|
|
49
75
|
};
|
|
50
76
|
"void-label": {
|
|
51
77
|
title: string;
|
|
@@ -222,29 +248,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
222
248
|
notifications: {
|
|
223
249
|
error: {
|
|
224
250
|
title: string;
|
|
225
|
-
};
|
|
226
|
-
* # Manage-Carriers Element
|
|
227
|
-
*
|
|
228
|
-
* @param ComponentProps The base props that will be passed into the `<ManageCarriers />` component.
|
|
229
|
-
*
|
|
230
|
-
* @returns Element A React element that renders the `<ManageCarriers />` component allowing users
|
|
231
|
-
* to view a list of carriers that are connected to their ShipEngine account. This component is
|
|
232
|
-
* composed in the `<AccountSettings />` Element.
|
|
233
|
-
*
|
|
234
|
-
* @example
|
|
235
|
-
* ```tsx
|
|
236
|
-
* (() => {
|
|
237
|
-
* const features = useFeatures("Global");
|
|
238
|
-
*
|
|
239
|
-
* return <ManageCarriers.Element features={features} />;
|
|
240
|
-
* })();
|
|
241
|
-
* ```
|
|
242
|
-
*
|
|
243
|
-
* <br />
|
|
244
|
-
*
|
|
245
|
-
* @see {@link ManageCarriers.ComponentProps | The props that are passed into the `<ManageCarriers />` component}
|
|
246
|
-
* @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageCarriers />` component}
|
|
247
|
-
*/
|
|
251
|
+
};
|
|
248
252
|
};
|
|
249
253
|
noFundingSource: string;
|
|
250
254
|
};
|
|
@@ -664,8 +668,10 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
664
668
|
trackingStatus: {
|
|
665
669
|
unknown: string;
|
|
666
670
|
inTransit: string;
|
|
671
|
+
in_transit: string;
|
|
667
672
|
delivered: string;
|
|
668
673
|
error: string;
|
|
674
|
+
voided: string;
|
|
669
675
|
};
|
|
670
676
|
actions: {
|
|
671
677
|
title: string;
|
|
@@ -685,6 +691,17 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
685
691
|
connectCarriers: string;
|
|
686
692
|
disconnect: string;
|
|
687
693
|
disconnectCarrier: string;
|
|
694
|
+
downloadEula: string;
|
|
695
|
+
};
|
|
696
|
+
customForms: {
|
|
697
|
+
fedex: {
|
|
698
|
+
eulaName: string;
|
|
699
|
+
disclaimerFooter: string;
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
eula: {
|
|
703
|
+
toContinue: string;
|
|
704
|
+
iAgree: string;
|
|
688
705
|
};
|
|
689
706
|
noCarriersDescription: string;
|
|
690
707
|
registrationForm: {
|
|
@@ -717,29 +734,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
717
734
|
connect: string;
|
|
718
735
|
continue: string;
|
|
719
736
|
delete: string;
|
|
720
|
-
edit: string;
|
|
721
|
-
* # Manage-Carriers Element
|
|
722
|
-
*
|
|
723
|
-
* @param ComponentProps The base props that will be passed into the `<ManageCarriers />` component.
|
|
724
|
-
*
|
|
725
|
-
* @returns Element A React element that renders the `<ManageCarriers />` component allowing users
|
|
726
|
-
* to view a list of carriers that are connected to their ShipEngine account. This component is
|
|
727
|
-
* composed in the `<AccountSettings />` Element.
|
|
728
|
-
*
|
|
729
|
-
* @example
|
|
730
|
-
* ```tsx
|
|
731
|
-
* (() => {
|
|
732
|
-
* const features = useFeatures("Global");
|
|
733
|
-
*
|
|
734
|
-
* return <ManageCarriers.Element features={features} />;
|
|
735
|
-
* })();
|
|
736
|
-
* ```
|
|
737
|
-
*
|
|
738
|
-
* <br />
|
|
739
|
-
*
|
|
740
|
-
* @see {@link ManageCarriers.ComponentProps | The props that are passed into the `<ManageCarriers />` component}
|
|
741
|
-
* @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageCarriers />` component}
|
|
742
|
-
*/
|
|
737
|
+
edit: string;
|
|
743
738
|
enable: string;
|
|
744
739
|
hide: string;
|
|
745
740
|
parse: string;
|
|
@@ -753,6 +748,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
753
748
|
address: {
|
|
754
749
|
fields: {
|
|
755
750
|
name: string;
|
|
751
|
+
fullName: string;
|
|
756
752
|
company: string;
|
|
757
753
|
county: string;
|
|
758
754
|
countryCode: string;
|
|
@@ -915,6 +911,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
915
911
|
unknown: string;
|
|
916
912
|
noRatesAvailable: string;
|
|
917
913
|
refreshAndTryAgain: string;
|
|
914
|
+
updateShipFromAddress: string;
|
|
918
915
|
windsorFramework: {
|
|
919
916
|
doNotConform: string;
|
|
920
917
|
pleaseAddTheFollowingTaxIds: string;
|
|
@@ -933,6 +930,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
933
930
|
saveRate: string;
|
|
934
931
|
security: string;
|
|
935
932
|
shipmentStatus: string;
|
|
933
|
+
shipFromAddress: string;
|
|
936
934
|
system: string;
|
|
937
935
|
unknown: string;
|
|
938
936
|
validation: string;
|
|
@@ -946,6 +944,8 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
946
944
|
shipmentId: string;
|
|
947
945
|
labelId: string;
|
|
948
946
|
labelIdFilter: string;
|
|
947
|
+
filteredTrackingStatus: string;
|
|
948
|
+
more: string;
|
|
949
949
|
createdDate: string;
|
|
950
950
|
shipmentIdFilter: string;
|
|
951
951
|
createdDateFilter: string;
|
|
@@ -46,6 +46,9 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
46
46
|
thisMonth: string;
|
|
47
47
|
lastMonth: string;
|
|
48
48
|
};
|
|
49
|
+
category: {
|
|
50
|
+
fundsAdded: string;
|
|
51
|
+
};
|
|
49
52
|
};
|
|
50
53
|
"void-label": {
|
|
51
54
|
title: string;
|
|
@@ -686,8 +689,10 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
686
689
|
trackingStatus: {
|
|
687
690
|
unknown: string;
|
|
688
691
|
inTransit: string;
|
|
692
|
+
in_transit: string;
|
|
689
693
|
delivered: string;
|
|
690
694
|
error: string;
|
|
695
|
+
voided: string;
|
|
691
696
|
};
|
|
692
697
|
actions: {
|
|
693
698
|
title: string;
|
|
@@ -707,6 +712,39 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
707
712
|
connectCarriers: string;
|
|
708
713
|
disconnect: string;
|
|
709
714
|
disconnectCarrier: string;
|
|
715
|
+
downloadEula: string;
|
|
716
|
+
};
|
|
717
|
+
/**
|
|
718
|
+
* # ManageExternalCarriers Element
|
|
719
|
+
*
|
|
720
|
+
* @param ComponentProps The base props that will be passed into the `<ManageExternalCarriers />` component.
|
|
721
|
+
*
|
|
722
|
+
* @returns Element A React element that renders the `<ManageExternalCarriers />` component allowing users
|
|
723
|
+
* to view a list of their own carrier accounts that have been connected to their ShipEngine account,
|
|
724
|
+
* and to add additional carriers.
|
|
725
|
+
* This component is composed in the `<AccountSettings />` Element.
|
|
726
|
+
*
|
|
727
|
+
* @example
|
|
728
|
+
* ```tsx
|
|
729
|
+
* (() => {
|
|
730
|
+
* return <ManageExternalCarriers.Element isModalFullScreen={false} />;
|
|
731
|
+
* })();
|
|
732
|
+
* ```
|
|
733
|
+
*
|
|
734
|
+
* <br />
|
|
735
|
+
*
|
|
736
|
+
* @see {@link ManageExternalCarriers.ComponentProps | The props that are passed into the `<ManageExternalCarriers />` component}
|
|
737
|
+
* @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageExternalCarriers />` component}
|
|
738
|
+
*/
|
|
739
|
+
customForms: {
|
|
740
|
+
fedex: {
|
|
741
|
+
eulaName: string;
|
|
742
|
+
disclaimerFooter: string;
|
|
743
|
+
};
|
|
744
|
+
};
|
|
745
|
+
eula: {
|
|
746
|
+
toContinue: string;
|
|
747
|
+
iAgree: string;
|
|
710
748
|
};
|
|
711
749
|
noCarriersDescription: string;
|
|
712
750
|
registrationForm: {
|
|
@@ -753,6 +791,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
753
791
|
address: {
|
|
754
792
|
fields: {
|
|
755
793
|
name: string;
|
|
794
|
+
fullName: string;
|
|
756
795
|
company: string;
|
|
757
796
|
county: string;
|
|
758
797
|
countryCode: string;
|
|
@@ -915,6 +954,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
915
954
|
unknown: string;
|
|
916
955
|
noRatesAvailable: string;
|
|
917
956
|
refreshAndTryAgain: string;
|
|
957
|
+
updateShipFromAddress: string;
|
|
918
958
|
windsorFramework: {
|
|
919
959
|
doNotConform: string;
|
|
920
960
|
pleaseAddTheFollowingTaxIds: string;
|
|
@@ -933,6 +973,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
933
973
|
saveRate: string;
|
|
934
974
|
security: string;
|
|
935
975
|
shipmentStatus: string;
|
|
976
|
+
shipFromAddress: string;
|
|
936
977
|
system: string;
|
|
937
978
|
unknown: string;
|
|
938
979
|
validation: string;
|
|
@@ -946,6 +987,8 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
946
987
|
shipmentId: string;
|
|
947
988
|
labelId: string;
|
|
948
989
|
labelIdFilter: string;
|
|
990
|
+
filteredTrackingStatus: string;
|
|
991
|
+
more: string;
|
|
949
992
|
createdDate: string;
|
|
950
993
|
shipmentIdFilter: string;
|
|
951
994
|
createdDateFilter: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ManageFundingProps } from "../../features";
|
|
3
|
-
export
|
|
4
|
-
export declare const
|
|
3
|
+
export type ComponentProps = Pick<ManageFundingProps, "onRedirectToOnboarding">;
|
|
4
|
+
export declare const Component: ({ onRedirectToOnboarding }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
5
6
|
resources?: {
|
|
6
7
|
en: {
|
|
7
8
|
"wallet-history": {
|
|
@@ -23,6 +24,9 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
23
24
|
thisMonth: string;
|
|
24
25
|
lastMonth: string;
|
|
25
26
|
};
|
|
27
|
+
category: {
|
|
28
|
+
fundsAdded: string;
|
|
29
|
+
};
|
|
26
30
|
};
|
|
27
31
|
"void-label": {
|
|
28
32
|
title: string;
|
|
@@ -619,8 +623,10 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
619
623
|
trackingStatus: {
|
|
620
624
|
unknown: string;
|
|
621
625
|
inTransit: string;
|
|
626
|
+
in_transit: string;
|
|
622
627
|
delivered: string;
|
|
623
628
|
error: string;
|
|
629
|
+
voided: string;
|
|
624
630
|
};
|
|
625
631
|
actions: {
|
|
626
632
|
title: string;
|
|
@@ -640,6 +646,17 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
640
646
|
connectCarriers: string;
|
|
641
647
|
disconnect: string;
|
|
642
648
|
disconnectCarrier: string;
|
|
649
|
+
downloadEula: string;
|
|
650
|
+
};
|
|
651
|
+
customForms: {
|
|
652
|
+
fedex: {
|
|
653
|
+
eulaName: string;
|
|
654
|
+
disclaimerFooter: string;
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
eula: {
|
|
658
|
+
toContinue: string;
|
|
659
|
+
iAgree: string;
|
|
643
660
|
};
|
|
644
661
|
noCarriersDescription: string;
|
|
645
662
|
registrationForm: {
|
|
@@ -686,6 +703,7 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
686
703
|
address: {
|
|
687
704
|
fields: {
|
|
688
705
|
name: string;
|
|
706
|
+
fullName: string;
|
|
689
707
|
company: string;
|
|
690
708
|
county: string;
|
|
691
709
|
countryCode: string;
|
|
@@ -848,6 +866,7 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
848
866
|
unknown: string;
|
|
849
867
|
noRatesAvailable: string;
|
|
850
868
|
refreshAndTryAgain: string;
|
|
869
|
+
updateShipFromAddress: string;
|
|
851
870
|
windsorFramework: {
|
|
852
871
|
doNotConform: string;
|
|
853
872
|
pleaseAddTheFollowingTaxIds: string;
|
|
@@ -866,6 +885,7 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
866
885
|
saveRate: string;
|
|
867
886
|
security: string;
|
|
868
887
|
shipmentStatus: string;
|
|
888
|
+
shipFromAddress: string;
|
|
869
889
|
system: string;
|
|
870
890
|
unknown: string;
|
|
871
891
|
validation: string;
|
|
@@ -879,6 +899,8 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
879
899
|
shipmentId: string;
|
|
880
900
|
labelId: string;
|
|
881
901
|
labelIdFilter: string;
|
|
902
|
+
filteredTrackingStatus: string;
|
|
903
|
+
more: string;
|
|
882
904
|
createdDate: string;
|
|
883
905
|
shipmentIdFilter: string;
|
|
884
906
|
createdDateFilter: string;
|