@shipengine/elements 2.3.1 → 2.5.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 +3 -12
- package/components.js +1 -1
- package/elements.js +1 -1
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/package.json +5 -3
- package/src/components/actions-menu/actions-menu.d.ts +2 -1
- package/src/components/error-state/error-state.d.ts +6 -0
- package/src/{workflows/onboarding/components/account-registration-step/account-registration-step.styles.d.ts → components/error-state/error-state.styles.d.ts} +9 -5
- package/src/components/error-state/index.d.ts +1 -0
- package/src/components/field/create-field-controller.d.ts +2 -1
- package/src/components/field-label/field-label.d.ts +2 -1
- package/src/components/field-label/field-label.styles.d.ts +16 -0
- package/src/components/grid-controller/grid-controller.d.ts +20 -2
- package/src/components/grid-controller/grid-controller.styles.d.ts +18 -6
- package/src/components/grid-controller/grid-footer.d.ts +27 -0
- package/src/components/grid-controller/index.d.ts +2 -0
- package/src/components/grid-filters/grid-filters.d.ts +30 -0
- package/src/components/grid-filters/grid-filters.styles.d.ts +11 -0
- package/src/components/grid-filters/index.d.ts +2 -0
- package/src/components/grid-filters/shipment-id-filter-shema.d.ts +9 -0
- package/src/components/grid-filters/shipment-id-filter.d.ts +23 -0
- package/src/components/index.d.ts +2 -0
- package/src/components/templates/address-display/address-display.d.ts +2 -1
- package/src/components/templates/wallet-form/wallet-form.d.ts +1 -1
- package/src/components/warehouse-form/warehouse-form-schema.d.ts +4 -1
- package/src/components/warehouse-form/warehouse-form.d.ts +2 -1
- package/src/elements/label-layout/label-layout-element.d.ts +77 -22
- package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +68 -0
- package/src/elements/labels-grid/index.d.ts +1 -0
- package/src/elements/labels-grid/labels-grid.d.ts +132 -28
- package/src/elements/labels-grid/labels-grid.styles.d.ts +11 -0
- package/src/elements/manage-carriers/manage-carriers.d.ts +77 -22
- package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +99 -23
- package/src/elements/manage-funding/manage-funding-element.d.ts +77 -22
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +77 -22
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +77 -22
- package/src/elements/purchase-label/purchase-label.d.ts +88 -73
- package/src/elements/shipment-summary/shipment-summary.d.ts +84 -26
- package/src/elements/shipments-grid/hooks/use-shipments-grid.d.ts +161 -0
- package/src/elements/shipments-grid/shipments-grid.d.ts +161 -30
- package/src/elements/shipments-grid/shipments-grid.styles.d.ts +11 -0
- package/src/elements/theme-creator/theme-creator.d.ts +77 -22
- package/src/elements/transaction-history/transaction-history-element.d.ts +77 -22
- package/src/elements/unit-settings/unit-settings-element.d.ts +77 -22
- package/src/elements/vat-settings/vat-settings-element.d.ts +77 -22
- package/src/elements/void-label/void-label.d.ts +89 -33
- package/src/hooks/index.d.ts +1 -0
- package/src/hooks/use-get-service-name.d.ts +4 -0
- package/src/locales/en/index.d.ts +77 -22
- package/src/workflows/account-settings/account-settings.d.ts +77 -22
- package/src/workflows/carrier-services/carrier-services.d.ts +77 -22
- package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +77 -22
- package/src/workflows/label-workflow/label-workflow.d.ts +10 -29
- package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form-schema.d.ts +18 -18
- package/src/workflows/onboarding/components/confirmation-and-submission-step/confirmation-and-submission-step.d.ts +12 -0
- package/src/workflows/onboarding/components/confirmation-and-submission-step/index.d.ts +2 -0
- package/src/workflows/onboarding/components/confirmation-and-submission-step/use-confirmation-and-submission-step.d.ts +19 -0
- package/src/workflows/onboarding/components/funding-step/funding-step.d.ts +7 -0
- package/src/workflows/onboarding/components/funding-step/index.d.ts +1 -0
- package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +1 -2
- package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.styles.d.ts +3 -0
- package/src/workflows/onboarding/components/ship-from-address-step/index.d.ts +0 -1
- package/src/workflows/onboarding/components/ship-from-address-step/ship-from-address-step.d.ts +3 -2
- package/src/workflows/onboarding/components/step-header/step-header.d.ts +3 -2
- package/src/workflows/onboarding/components/{funding-and-carrier-connection-step/funding-and-carrier-connection-step.styles.d.ts → step-header/step-header.styles.d.ts} +5 -8
- package/src/workflows/onboarding/components/welcome-page/index.d.ts +1 -0
- package/src/workflows/onboarding/components/welcome-page/welcome-page.d.ts +4 -0
- package/src/workflows/onboarding/onboarding.d.ts +79 -26
- package/suspend-text.js +1 -1
- package/transaction-history-element.js +1 -1
- package/use-get-service-name.js +1 -0
- package/use-unit-settings.js +1 -1
- package/usePager.js +1 -0
- package/vat.js +1 -1
- package/wallet-form.js +1 -1
- package/workflows.js +1 -1
- package/src/workflows/onboarding/components/account-registration-form/account-registration-form-schema.d.ts +0 -13
- package/src/workflows/onboarding/components/account-registration-form/account-registration-form.d.ts +0 -4
- package/src/workflows/onboarding/components/account-registration-form/index.d.ts +0 -1
- package/src/workflows/onboarding/components/account-registration-step/account-registration-step.d.ts +0 -5
- package/src/workflows/onboarding/components/account-registration-step/index.d.ts +0 -2
- package/src/workflows/onboarding/components/account-registration-step/use-account-registration-step.d.ts +0 -7
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +0 -9
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/index.d.ts +0 -2
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +0 -25
- package/src/workflows/onboarding/components/ship-from-address-step/use-ship-from-address-step.d.ts +0 -9
- package/story-notes.js +0 -1
|
@@ -206,7 +206,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
206
206
|
setup: {
|
|
207
207
|
title: string;
|
|
208
208
|
subtitle: string;
|
|
209
|
-
hiddenTermsSubtitle: string;
|
|
210
209
|
descriptionTitle: string;
|
|
211
210
|
description: string;
|
|
212
211
|
};
|
|
@@ -214,7 +213,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
214
213
|
title: string;
|
|
215
214
|
cardSubTitle: string;
|
|
216
215
|
addressSubTitle: string;
|
|
217
|
-
info: string;
|
|
218
216
|
};
|
|
219
217
|
vatSettings: {
|
|
220
218
|
title: string;
|
|
@@ -228,15 +226,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
228
226
|
title: string;
|
|
229
227
|
};
|
|
230
228
|
info: {
|
|
231
|
-
title: string;
|
|
232
229
|
description: string;
|
|
233
230
|
};
|
|
234
231
|
poBox: {
|
|
235
232
|
title: string;
|
|
236
|
-
/**
|
|
237
|
-
* `onClickVoidLabel` is a callback function that will be invoked when the user clicks the
|
|
238
|
-
* `Void Label` button.
|
|
239
|
-
*/
|
|
240
233
|
description: string;
|
|
241
234
|
};
|
|
242
235
|
carrier: {
|
|
@@ -435,18 +428,15 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
435
428
|
};
|
|
436
429
|
onboarding: {
|
|
437
430
|
title: string;
|
|
438
|
-
|
|
439
|
-
accountRegistration: {
|
|
440
|
-
action: string;
|
|
431
|
+
confirmation: {
|
|
441
432
|
title: string;
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
messageLine2: string;
|
|
433
|
+
warehouse: string;
|
|
434
|
+
billingAddress: string;
|
|
435
|
+
paymentMethod: string;
|
|
436
|
+
action: string;
|
|
447
437
|
};
|
|
448
438
|
stepLabel: {
|
|
449
|
-
|
|
439
|
+
confirmation: string;
|
|
450
440
|
termsAgreement: string;
|
|
451
441
|
shipFromAddress: string;
|
|
452
442
|
fundingAndCarrierConnection: string;
|
|
@@ -493,6 +483,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
493
483
|
"UHVyb2xhdG9yIFRlcm1zIGFuZCBDb25kaXRpb25zIG9mIFNlcnZpY2U=": string;
|
|
494
484
|
UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
|
|
495
485
|
};
|
|
486
|
+
tooltip: {
|
|
487
|
+
warehouse: string;
|
|
488
|
+
};
|
|
489
|
+
welcomePage: {
|
|
490
|
+
title: string;
|
|
491
|
+
message: string;
|
|
492
|
+
action: string;
|
|
493
|
+
};
|
|
496
494
|
};
|
|
497
495
|
"manage-warehouses": {
|
|
498
496
|
title: string;
|
|
@@ -601,32 +599,81 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
601
599
|
};
|
|
602
600
|
"list-shipments": {
|
|
603
601
|
title: string;
|
|
602
|
+
none: string;
|
|
604
603
|
headers: {
|
|
605
604
|
created: string;
|
|
606
|
-
|
|
605
|
+
modified: string;
|
|
606
|
+
shipping: string;
|
|
607
607
|
shipmentId: string;
|
|
608
|
-
|
|
609
|
-
|
|
608
|
+
parcels: string;
|
|
609
|
+
recipient: string;
|
|
610
|
+
status: string;
|
|
610
611
|
};
|
|
612
|
+
status: {
|
|
613
|
+
cancelled: string;
|
|
614
|
+
purchased: string;
|
|
615
|
+
readyToBuy: string;
|
|
616
|
+
processing: string;
|
|
617
|
+
};
|
|
618
|
+
/**
|
|
619
|
+
* # Shipment Summary Component Props
|
|
620
|
+
*
|
|
621
|
+
* - These are the base props that will be passed into the `<ShipmentSummary />` component.
|
|
622
|
+
*
|
|
623
|
+
* @see {@link ShipmentSummary.Component | This prop types usage in the `<ShipmentSummary />` component}
|
|
624
|
+
*/
|
|
611
625
|
actions: {
|
|
612
626
|
download: {
|
|
613
627
|
pdf: string;
|
|
614
628
|
};
|
|
615
629
|
};
|
|
630
|
+
emptyState: {
|
|
631
|
+
title: string;
|
|
632
|
+
subtitle: string;
|
|
633
|
+
filtersTitle: string;
|
|
634
|
+
filtersSubtitle: string;
|
|
635
|
+
viewAll: string;
|
|
636
|
+
};
|
|
637
|
+
errorMessages: {
|
|
638
|
+
title: string;
|
|
639
|
+
subtitle: string;
|
|
640
|
+
};
|
|
616
641
|
};
|
|
617
642
|
"list-labels": {
|
|
618
643
|
title: string;
|
|
619
644
|
headers: {
|
|
620
645
|
created: string;
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
646
|
+
shipmentId: string;
|
|
647
|
+
parcels: string;
|
|
648
|
+
recipient: string;
|
|
649
|
+
shipping: string;
|
|
650
|
+
shipDate: string;
|
|
651
|
+
status: string;
|
|
652
|
+
};
|
|
653
|
+
empty: {
|
|
654
|
+
title: string;
|
|
655
|
+
subtitle: string;
|
|
656
|
+
};
|
|
657
|
+
emptyWithFilters: {
|
|
658
|
+
title: string;
|
|
659
|
+
subtitle: string;
|
|
660
|
+
button: string;
|
|
661
|
+
};
|
|
662
|
+
status: {
|
|
663
|
+
voided: string;
|
|
664
|
+
error: string;
|
|
665
|
+
completed: string;
|
|
666
|
+
processing: string;
|
|
625
667
|
};
|
|
626
668
|
actions: {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
669
|
+
title: string;
|
|
670
|
+
print: string;
|
|
671
|
+
void: string;
|
|
672
|
+
printForms: string;
|
|
673
|
+
};
|
|
674
|
+
errorMessages: {
|
|
675
|
+
title: string;
|
|
676
|
+
subtitle: string;
|
|
630
677
|
};
|
|
631
678
|
};
|
|
632
679
|
"connect-carrier": {
|
|
@@ -830,6 +877,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
830
877
|
emailIsRequired: string;
|
|
831
878
|
unknown: string;
|
|
832
879
|
noRatesAvailable: string;
|
|
880
|
+
refreshAndTryAgain: string;
|
|
833
881
|
};
|
|
834
882
|
errorTypes: {
|
|
835
883
|
accountStatus: string;
|
|
@@ -848,6 +896,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
848
896
|
"row-count_one": string;
|
|
849
897
|
"row-count_other": string;
|
|
850
898
|
rows: string;
|
|
899
|
+
clearAll: string;
|
|
900
|
+
shipmentId: string;
|
|
901
|
+
shipmentIdFilter: string;
|
|
902
|
+
apply: string;
|
|
903
|
+
clear: string;
|
|
904
|
+
search: string;
|
|
905
|
+
shipmentIdHint: string;
|
|
851
906
|
};
|
|
852
907
|
insuranceProviders: {
|
|
853
908
|
carrier: string;
|
|
@@ -923,6 +978,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
923
978
|
requiredList: string;
|
|
924
979
|
tooFewCharacters: string;
|
|
925
980
|
tooManyCharacters: string;
|
|
981
|
+
requiredShipmentId: string;
|
|
926
982
|
};
|
|
927
983
|
shippingPresets: {
|
|
928
984
|
apply: string;
|
|
@@ -936,6 +992,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
936
992
|
agreeToTerms: string;
|
|
937
993
|
carriersTitle: string;
|
|
938
994
|
fundingSourceTitle: string;
|
|
995
|
+
shipEngineTitle: string;
|
|
939
996
|
};
|
|
940
997
|
weight: {
|
|
941
998
|
ounces: string;
|
|
@@ -960,6 +1017,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
960
1017
|
printForms: string;
|
|
961
1018
|
edit: string;
|
|
962
1019
|
remove: string;
|
|
1020
|
+
viewDetails: string;
|
|
963
1021
|
};
|
|
964
1022
|
};
|
|
965
1023
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SE } from "@shipengine/js-api";
|
|
3
|
+
import { IGridFilters } from "../../../components";
|
|
4
|
+
import { ShipmentsGridProps } from "../shipments-grid";
|
|
5
|
+
export declare const useShipmentsGrid: ({ shipmentStatus, showShipmentIdFilter, }: ShipmentsGridProps) => {
|
|
6
|
+
clearAllFilters: () => void;
|
|
7
|
+
filters: IGridFilters;
|
|
8
|
+
getGridData: () => {
|
|
9
|
+
serviceName: string | null | undefined;
|
|
10
|
+
addressValidation?: SE.AddressValidation | undefined;
|
|
11
|
+
advancedOptions?: {
|
|
12
|
+
additionalHandling?: boolean | undefined;
|
|
13
|
+
ancillaryEndorsementsOption?: string | undefined;
|
|
14
|
+
billToAccount?: string | undefined;
|
|
15
|
+
billToCountryCode?: string | undefined;
|
|
16
|
+
billToParty?: SE.BillToParties | undefined;
|
|
17
|
+
billToPostalCode?: string | undefined;
|
|
18
|
+
collectOnDelivery?: {
|
|
19
|
+
paymentAmount: SE.Money;
|
|
20
|
+
paymentType: SE.PaymentTypes;
|
|
21
|
+
} | undefined;
|
|
22
|
+
containsAlcohol?: boolean | undefined;
|
|
23
|
+
customField1?: string | undefined;
|
|
24
|
+
customField2?: string | undefined;
|
|
25
|
+
customField3?: string | undefined;
|
|
26
|
+
deliveredDutyPaid?: boolean | undefined;
|
|
27
|
+
dryIce?: boolean | undefined;
|
|
28
|
+
dryIceWeight?: SE.WeightWithUnit | undefined;
|
|
29
|
+
eventNotification?: boolean | undefined;
|
|
30
|
+
fedexFreight?: {
|
|
31
|
+
bookingConfirmation?: string | undefined;
|
|
32
|
+
shipperLoadAndCount?: string | undefined;
|
|
33
|
+
} | undefined;
|
|
34
|
+
freightClass?: string | undefined;
|
|
35
|
+
limitedQuantity?: boolean | undefined;
|
|
36
|
+
nonMachinable?: boolean | undefined;
|
|
37
|
+
originType?: SE.OriginTypes | undefined;
|
|
38
|
+
ownDocumentUpload?: boolean | undefined;
|
|
39
|
+
returnPickupAttempts?: number | undefined;
|
|
40
|
+
saturdayDelivery?: boolean | undefined;
|
|
41
|
+
shipperRelease?: boolean | undefined;
|
|
42
|
+
thirdPartyConsignee?: boolean | undefined;
|
|
43
|
+
useUpsGroundFreightPricing?: boolean | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
carrierId: string;
|
|
46
|
+
comparisonRateType?: string | undefined;
|
|
47
|
+
confirmation: SE.ConfirmationType;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
customs?: SE.Customs | undefined;
|
|
50
|
+
externalOrderId?: string | undefined;
|
|
51
|
+
externalShipmentId?: string | undefined;
|
|
52
|
+
insuranceProvider: SE.InsuranceProviderType;
|
|
53
|
+
isReturn?: boolean | undefined;
|
|
54
|
+
items: SE.ShipmentItem[];
|
|
55
|
+
modifiedAt: string;
|
|
56
|
+
orderSourceCode: SE.OrderSourceCode | null;
|
|
57
|
+
originType?: SE.OriginTypes | undefined;
|
|
58
|
+
packages: SE.ShipmentPackage[];
|
|
59
|
+
returnTo: SE.Address | null;
|
|
60
|
+
serviceCode: string | null;
|
|
61
|
+
shipDate?: string | undefined;
|
|
62
|
+
shipFrom: SE.Address | null;
|
|
63
|
+
shipmentId: string;
|
|
64
|
+
shipmentNumber?: string | undefined;
|
|
65
|
+
shipmentStatus: SE.ShipmentStatus;
|
|
66
|
+
shippingRuleId?: string | undefined;
|
|
67
|
+
shipTo: SE.Address;
|
|
68
|
+
tags: {
|
|
69
|
+
name: string;
|
|
70
|
+
}[];
|
|
71
|
+
taxIdentifiers?: SE.TaxIdentifier[] | undefined;
|
|
72
|
+
totalWeight: SE.WeightWithUnit;
|
|
73
|
+
validateAddress?: SE.AddressValidationOptions | undefined;
|
|
74
|
+
warehouseId?: string | undefined;
|
|
75
|
+
}[];
|
|
76
|
+
isAnyFilterActive: boolean;
|
|
77
|
+
isError: boolean;
|
|
78
|
+
isLoading: boolean;
|
|
79
|
+
pageConfig: {
|
|
80
|
+
currentPage: number;
|
|
81
|
+
pagerProps: {
|
|
82
|
+
currentPage: number;
|
|
83
|
+
currentPageSize: number;
|
|
84
|
+
onPageSelect: (page: number) => void;
|
|
85
|
+
onPageSizeSelect: (pageSize: number) => void;
|
|
86
|
+
};
|
|
87
|
+
pagesAmount: number;
|
|
88
|
+
pageSize: number;
|
|
89
|
+
totalElements: number;
|
|
90
|
+
};
|
|
91
|
+
setFilters: import("react").Dispatch<import("react").SetStateAction<IGridFilters>>;
|
|
92
|
+
shipments: {
|
|
93
|
+
serviceName: string | null | undefined;
|
|
94
|
+
addressValidation?: SE.AddressValidation | undefined;
|
|
95
|
+
advancedOptions?: {
|
|
96
|
+
additionalHandling?: boolean | undefined;
|
|
97
|
+
ancillaryEndorsementsOption?: string | undefined;
|
|
98
|
+
billToAccount?: string | undefined;
|
|
99
|
+
billToCountryCode?: string | undefined;
|
|
100
|
+
billToParty?: SE.BillToParties | undefined;
|
|
101
|
+
billToPostalCode?: string | undefined;
|
|
102
|
+
collectOnDelivery?: {
|
|
103
|
+
paymentAmount: SE.Money;
|
|
104
|
+
paymentType: SE.PaymentTypes;
|
|
105
|
+
} | undefined;
|
|
106
|
+
containsAlcohol?: boolean | undefined;
|
|
107
|
+
customField1?: string | undefined;
|
|
108
|
+
customField2?: string | undefined;
|
|
109
|
+
customField3?: string | undefined;
|
|
110
|
+
deliveredDutyPaid?: boolean | undefined;
|
|
111
|
+
dryIce?: boolean | undefined;
|
|
112
|
+
dryIceWeight?: SE.WeightWithUnit | undefined;
|
|
113
|
+
eventNotification?: boolean | undefined;
|
|
114
|
+
fedexFreight?: {
|
|
115
|
+
bookingConfirmation?: string | undefined;
|
|
116
|
+
shipperLoadAndCount?: string | undefined;
|
|
117
|
+
} | undefined;
|
|
118
|
+
freightClass?: string | undefined;
|
|
119
|
+
limitedQuantity?: boolean | undefined;
|
|
120
|
+
nonMachinable?: boolean | undefined;
|
|
121
|
+
originType?: SE.OriginTypes | undefined;
|
|
122
|
+
ownDocumentUpload?: boolean | undefined;
|
|
123
|
+
returnPickupAttempts?: number | undefined;
|
|
124
|
+
saturdayDelivery?: boolean | undefined;
|
|
125
|
+
shipperRelease?: boolean | undefined;
|
|
126
|
+
thirdPartyConsignee?: boolean | undefined;
|
|
127
|
+
useUpsGroundFreightPricing?: boolean | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
carrierId: string;
|
|
130
|
+
comparisonRateType?: string | undefined;
|
|
131
|
+
confirmation: SE.ConfirmationType;
|
|
132
|
+
createdAt: string;
|
|
133
|
+
customs?: SE.Customs | undefined;
|
|
134
|
+
externalOrderId?: string | undefined;
|
|
135
|
+
externalShipmentId?: string | undefined;
|
|
136
|
+
insuranceProvider: SE.InsuranceProviderType;
|
|
137
|
+
isReturn?: boolean | undefined;
|
|
138
|
+
items: SE.ShipmentItem[];
|
|
139
|
+
modifiedAt: string;
|
|
140
|
+
orderSourceCode: SE.OrderSourceCode | null;
|
|
141
|
+
originType?: SE.OriginTypes | undefined;
|
|
142
|
+
packages: SE.ShipmentPackage[];
|
|
143
|
+
returnTo: SE.Address | null;
|
|
144
|
+
serviceCode: string | null;
|
|
145
|
+
shipDate?: string | undefined;
|
|
146
|
+
shipFrom: SE.Address | null;
|
|
147
|
+
shipmentId: string;
|
|
148
|
+
shipmentNumber?: string | undefined;
|
|
149
|
+
shipmentStatus: SE.ShipmentStatus;
|
|
150
|
+
shippingRuleId?: string | undefined;
|
|
151
|
+
shipTo: SE.Address;
|
|
152
|
+
tags: {
|
|
153
|
+
name: string;
|
|
154
|
+
}[];
|
|
155
|
+
taxIdentifiers?: SE.TaxIdentifier[] | undefined;
|
|
156
|
+
totalWeight: SE.WeightWithUnit;
|
|
157
|
+
validateAddress?: SE.AddressValidationOptions | undefined;
|
|
158
|
+
warehouseId?: string | undefined;
|
|
159
|
+
}[] | undefined;
|
|
160
|
+
shouldShowFilters: boolean;
|
|
161
|
+
};
|
|
@@ -1,8 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SE } from "@shipengine/js-api";
|
|
3
|
+
/**
|
|
4
|
+
* # Shipments Grid Props
|
|
5
|
+
*
|
|
6
|
+
* @see {@link ShipmentsGrid.Element | This prop types usage in `<ShipmentsGrid />`}
|
|
7
|
+
*/
|
|
8
|
+
export type ShipmentsGridProps = {
|
|
9
|
+
/**
|
|
10
|
+
* `onRowClick` callback invoked when a row is clicked.
|
|
11
|
+
*/
|
|
12
|
+
onRowClick?: (data: SE.Shipment) => void;
|
|
13
|
+
/**
|
|
14
|
+
* `shipmentStatus` is the status of the shipments you wish to view.
|
|
15
|
+
* If no value is defined, all shipments will be rendered.
|
|
16
|
+
*/
|
|
17
|
+
shipmentStatus?: SE.ShipmentStatus;
|
|
18
|
+
/**
|
|
19
|
+
* `showShipmentIdFilter` controls the display of the shipmentId search filter
|
|
20
|
+
*/
|
|
21
|
+
showShipmentIdFilter?: boolean;
|
|
5
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* # Shipments Grid Component
|
|
25
|
+
*
|
|
26
|
+
* - The `<ShipmentsGrid />` component is used to view the user's list of shipments.
|
|
27
|
+
*
|
|
28
|
+
* @param ShipmentsGridProps The base props that will be passed into the `<ShipmentsGrid />` component.
|
|
29
|
+
*
|
|
30
|
+
* @returns Element An EmotionJSX.Element that will render the `<ShipmentsGrid />` component.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* You can see how the `<Component />` is used in the `createElement` function call below.
|
|
34
|
+
* ```tsx
|
|
35
|
+
* export const Element = createElement(Component, ErrorFallback, {
|
|
36
|
+
* resources: { en },
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* <br />
|
|
41
|
+
*
|
|
42
|
+
* @see {@link ShipmentsGrid.Element | The **Element** created to render `<ShipmentsGrid />`}
|
|
43
|
+
*/
|
|
44
|
+
export declare const Component: ({ onRowClick, shipmentStatus, showShipmentIdFilter, }: ShipmentsGridProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
45
|
+
/**
|
|
46
|
+
* # Registered Shipments Grid Element
|
|
47
|
+
*
|
|
48
|
+
* @param ShipmentsGridProps The props necessary to render the `<ShipmentsGrid.Element />`.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* The `<Component />` is the source JSX that is rendered when you make use of the `ShipmentsGrid`
|
|
52
|
+
* Element directly.
|
|
53
|
+
*
|
|
54
|
+
* ```tsx
|
|
55
|
+
* <ShipmentsGrid.Element
|
|
56
|
+
* shipmentStatus="pending"
|
|
57
|
+
* onRowClick={(shipment) => console.log('Row clicked', shipment)}
|
|
58
|
+
* />
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* <br />
|
|
62
|
+
*
|
|
63
|
+
* @see {@link ShipmentsGrid.ShipmentsGridProps | The **Base props** used in `<ShipmentsGrid.Element />`}
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
6
66
|
export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
7
67
|
resources?: {
|
|
8
68
|
en: {
|
|
@@ -120,7 +180,6 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
120
180
|
setup: {
|
|
121
181
|
title: string;
|
|
122
182
|
subtitle: string;
|
|
123
|
-
hiddenTermsSubtitle: string;
|
|
124
183
|
descriptionTitle: string;
|
|
125
184
|
description: string;
|
|
126
185
|
};
|
|
@@ -128,7 +187,6 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
128
187
|
title: string;
|
|
129
188
|
cardSubTitle: string;
|
|
130
189
|
addressSubTitle: string;
|
|
131
|
-
info: string;
|
|
132
190
|
};
|
|
133
191
|
vatSettings: {
|
|
134
192
|
title: string;
|
|
@@ -142,7 +200,6 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
142
200
|
title: string;
|
|
143
201
|
};
|
|
144
202
|
info: {
|
|
145
|
-
title: string;
|
|
146
203
|
description: string;
|
|
147
204
|
};
|
|
148
205
|
poBox: {
|
|
@@ -198,11 +255,18 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
198
255
|
tax: string;
|
|
199
256
|
delivery: string;
|
|
200
257
|
handling: string;
|
|
258
|
+
/**
|
|
259
|
+
* # Shipments Grid Props
|
|
260
|
+
*
|
|
261
|
+
* @see {@link ShipmentsGrid.Element | This prop types usage in `<ShipmentsGrid />`}
|
|
262
|
+
*/
|
|
201
263
|
special_goods: string;
|
|
202
264
|
pickup: string;
|
|
203
265
|
location_fee: string;
|
|
204
266
|
oversize: string;
|
|
205
|
-
returns: string;
|
|
267
|
+
returns: string; /**
|
|
268
|
+
* `onRowClick` callback invoked when a row is clicked.
|
|
269
|
+
*/
|
|
206
270
|
notifications: string;
|
|
207
271
|
tip: string;
|
|
208
272
|
duties_and_taxes: string;
|
|
@@ -343,18 +407,15 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
343
407
|
};
|
|
344
408
|
onboarding: {
|
|
345
409
|
title: string;
|
|
346
|
-
|
|
347
|
-
accountRegistration: {
|
|
348
|
-
action: string;
|
|
410
|
+
confirmation: {
|
|
349
411
|
title: string;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
messageLine2: string;
|
|
412
|
+
warehouse: string;
|
|
413
|
+
billingAddress: string;
|
|
414
|
+
paymentMethod: string;
|
|
415
|
+
action: string;
|
|
355
416
|
};
|
|
356
417
|
stepLabel: {
|
|
357
|
-
|
|
418
|
+
confirmation: string;
|
|
358
419
|
termsAgreement: string;
|
|
359
420
|
shipFromAddress: string;
|
|
360
421
|
fundingAndCarrierConnection: string;
|
|
@@ -401,6 +462,14 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
401
462
|
"UHVyb2xhdG9yIFRlcm1zIGFuZCBDb25kaXRpb25zIG9mIFNlcnZpY2U=": string;
|
|
402
463
|
UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
|
|
403
464
|
};
|
|
465
|
+
tooltip: {
|
|
466
|
+
warehouse: string;
|
|
467
|
+
};
|
|
468
|
+
welcomePage: {
|
|
469
|
+
title: string;
|
|
470
|
+
message: string;
|
|
471
|
+
action: string;
|
|
472
|
+
};
|
|
404
473
|
};
|
|
405
474
|
"manage-warehouses": {
|
|
406
475
|
title: string;
|
|
@@ -509,32 +578,74 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
509
578
|
};
|
|
510
579
|
"list-shipments": {
|
|
511
580
|
title: string;
|
|
581
|
+
none: string;
|
|
512
582
|
headers: {
|
|
513
583
|
created: string;
|
|
514
|
-
|
|
584
|
+
modified: string;
|
|
585
|
+
shipping: string;
|
|
515
586
|
shipmentId: string;
|
|
516
|
-
|
|
517
|
-
|
|
587
|
+
parcels: string;
|
|
588
|
+
recipient: string;
|
|
589
|
+
status: string;
|
|
590
|
+
};
|
|
591
|
+
status: {
|
|
592
|
+
cancelled: string;
|
|
593
|
+
purchased: string;
|
|
594
|
+
readyToBuy: string;
|
|
595
|
+
processing: string;
|
|
518
596
|
};
|
|
519
597
|
actions: {
|
|
520
598
|
download: {
|
|
521
599
|
pdf: string;
|
|
522
600
|
};
|
|
523
601
|
};
|
|
602
|
+
emptyState: {
|
|
603
|
+
title: string;
|
|
604
|
+
subtitle: string;
|
|
605
|
+
filtersTitle: string;
|
|
606
|
+
filtersSubtitle: string;
|
|
607
|
+
viewAll: string;
|
|
608
|
+
};
|
|
609
|
+
errorMessages: {
|
|
610
|
+
title: string;
|
|
611
|
+
subtitle: string;
|
|
612
|
+
};
|
|
524
613
|
};
|
|
525
614
|
"list-labels": {
|
|
526
615
|
title: string;
|
|
527
616
|
headers: {
|
|
528
617
|
created: string;
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
618
|
+
shipmentId: string;
|
|
619
|
+
parcels: string;
|
|
620
|
+
recipient: string;
|
|
621
|
+
shipping: string;
|
|
622
|
+
shipDate: string;
|
|
623
|
+
status: string;
|
|
624
|
+
};
|
|
625
|
+
empty: {
|
|
626
|
+
title: string;
|
|
627
|
+
subtitle: string;
|
|
628
|
+
};
|
|
629
|
+
emptyWithFilters: {
|
|
630
|
+
title: string;
|
|
631
|
+
subtitle: string;
|
|
632
|
+
button: string;
|
|
633
|
+
};
|
|
634
|
+
status: {
|
|
635
|
+
voided: string;
|
|
636
|
+
error: string;
|
|
637
|
+
completed: string;
|
|
638
|
+
processing: string;
|
|
533
639
|
};
|
|
534
640
|
actions: {
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
641
|
+
title: string;
|
|
642
|
+
print: string;
|
|
643
|
+
void: string;
|
|
644
|
+
printForms: string;
|
|
645
|
+
};
|
|
646
|
+
errorMessages: {
|
|
647
|
+
title: string;
|
|
648
|
+
subtitle: string;
|
|
538
649
|
};
|
|
539
650
|
};
|
|
540
651
|
"connect-carrier": {
|
|
@@ -593,7 +704,9 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
593
704
|
county: string;
|
|
594
705
|
countryCode: string;
|
|
595
706
|
addressLine1: string;
|
|
596
|
-
addressLine2: string;
|
|
707
|
+
addressLine2: string; /**
|
|
708
|
+
* `onRowClick` callback invoked when a row is clicked.
|
|
709
|
+
*/
|
|
597
710
|
cityLocality: string;
|
|
598
711
|
stateProvince: string;
|
|
599
712
|
postalCode: string;
|
|
@@ -736,6 +849,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
736
849
|
emailIsRequired: string;
|
|
737
850
|
unknown: string;
|
|
738
851
|
noRatesAvailable: string;
|
|
852
|
+
refreshAndTryAgain: string;
|
|
739
853
|
};
|
|
740
854
|
errorTypes: {
|
|
741
855
|
accountStatus: string;
|
|
@@ -754,6 +868,13 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
754
868
|
"row-count_one": string;
|
|
755
869
|
"row-count_other": string;
|
|
756
870
|
rows: string;
|
|
871
|
+
clearAll: string;
|
|
872
|
+
shipmentId: string;
|
|
873
|
+
shipmentIdFilter: string;
|
|
874
|
+
apply: string;
|
|
875
|
+
clear: string;
|
|
876
|
+
search: string;
|
|
877
|
+
shipmentIdHint: string;
|
|
757
878
|
};
|
|
758
879
|
insuranceProviders: {
|
|
759
880
|
carrier: string;
|
|
@@ -829,6 +950,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
829
950
|
requiredList: string;
|
|
830
951
|
tooFewCharacters: string;
|
|
831
952
|
tooManyCharacters: string;
|
|
953
|
+
requiredShipmentId: string;
|
|
832
954
|
};
|
|
833
955
|
shippingPresets: {
|
|
834
956
|
apply: string;
|
|
@@ -842,6 +964,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
842
964
|
agreeToTerms: string;
|
|
843
965
|
carriersTitle: string;
|
|
844
966
|
fundingSourceTitle: string;
|
|
967
|
+
shipEngineTitle: string;
|
|
845
968
|
};
|
|
846
969
|
weight: {
|
|
847
970
|
ounces: string;
|
|
@@ -866,6 +989,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
866
989
|
printForms: string;
|
|
867
990
|
edit: string;
|
|
868
991
|
remove: string;
|
|
992
|
+
viewDetails: string;
|
|
869
993
|
};
|
|
870
994
|
};
|
|
871
995
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
@@ -896,7 +1020,9 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
896
1020
|
transactionHistory: string;
|
|
897
1021
|
adjustmentHistory: string;
|
|
898
1022
|
warehouses: string;
|
|
899
|
-
carriers: string;
|
|
1023
|
+
carriers: string; /**
|
|
1024
|
+
* `onRowClick` callback invoked when a row is clicked.
|
|
1025
|
+
*/
|
|
900
1026
|
externalCarriers: string;
|
|
901
1027
|
labelLayout: string;
|
|
902
1028
|
unitSettings: string;
|
|
@@ -906,4 +1032,9 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
906
1032
|
};
|
|
907
1033
|
} | undefined;
|
|
908
1034
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
909
|
-
|
|
1035
|
+
/**
|
|
1036
|
+
* # Shipments Grid Element Props
|
|
1037
|
+
*
|
|
1038
|
+
* @see {@link ShipmentsGrid.Element | See the full type that `typeof Element` will return}
|
|
1039
|
+
*/
|
|
1040
|
+
export type ElementProps = React.ComponentProps<typeof Element>;
|