@shipengine/elements 2.3.1 → 2.4.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/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 +1 -0
- package/src/elements/label-layout/label-layout-element.d.ts +33 -7
- package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +67 -0
- package/src/elements/labels-grid/index.d.ts +1 -0
- package/src/elements/labels-grid/labels-grid.d.ts +88 -19
- package/src/elements/labels-grid/labels-grid.styles.d.ts +5 -0
- package/src/elements/manage-carriers/manage-carriers.d.ts +33 -7
- package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +33 -7
- package/src/elements/manage-funding/manage-funding-element.d.ts +33 -7
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +33 -7
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +33 -7
- package/src/elements/purchase-label/purchase-label.d.ts +34 -45
- package/src/elements/shipment-summary/shipment-summary.d.ts +33 -7
- package/src/elements/shipments-grid/shipments-grid.d.ts +33 -7
- package/src/elements/theme-creator/theme-creator.d.ts +33 -7
- package/src/elements/transaction-history/transaction-history-element.d.ts +33 -7
- package/src/elements/unit-settings/unit-settings-element.d.ts +33 -7
- package/src/elements/vat-settings/vat-settings-element.d.ts +33 -7
- package/src/elements/void-label/void-label.d.ts +33 -7
- 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 +33 -7
- package/src/workflows/account-settings/account-settings.d.ts +33 -7
- package/src/workflows/carrier-services/carrier-services.d.ts +33 -7
- package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +33 -7
- package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form-schema.d.ts +18 -18
- package/src/workflows/onboarding/onboarding.d.ts +33 -7
- 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/story-notes.js +0 -1
|
@@ -1,8 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type
|
|
3
|
-
|
|
1
|
+
import { SE } from "@shipengine/js-api";
|
|
2
|
+
export type LabelsGridProps = {
|
|
3
|
+
/**
|
|
4
|
+
* `labelStatus` is the status of the labels you wish to view.
|
|
5
|
+
* If no value is defined, all labels will be rendered.
|
|
6
|
+
*/
|
|
7
|
+
labelStatus?: SE.LabelStatus;
|
|
8
|
+
/**
|
|
9
|
+
* `onClickPrintForm` is an optional callback function that will be invoked when the user clicks the
|
|
10
|
+
* `Print Forms` button.
|
|
11
|
+
*/
|
|
12
|
+
onClickPrintForms?: () => void;
|
|
13
|
+
/**
|
|
14
|
+
* `onClickPrintLabel` is an optional callback function that will be invoked when the user clicks the
|
|
15
|
+
* `Print Label` button.
|
|
16
|
+
*/
|
|
17
|
+
onClickPrintLabel?: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* `onClickVoidLabel` is a callback function that controls the display of `Void Label` button and
|
|
20
|
+
* will be invoked when the user clicks on it.
|
|
21
|
+
*/
|
|
22
|
+
onClickVoidLabel?: (label: SE.Label) => void;
|
|
23
|
+
/**
|
|
24
|
+
* `showShipmentIdFilter` controls the display of the shipmentId search filter
|
|
25
|
+
*/
|
|
26
|
+
showShipmentIdFilter?: boolean;
|
|
4
27
|
};
|
|
5
|
-
export declare const Element: ({ resources, ...props }:
|
|
28
|
+
export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
6
29
|
resources?: {
|
|
7
30
|
en: {
|
|
8
31
|
"wallet-history": {
|
|
@@ -46,7 +69,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
46
69
|
approved: string;
|
|
47
70
|
rejected: string;
|
|
48
71
|
};
|
|
49
|
-
voidedOn: string;
|
|
72
|
+
voidedOn: string; /**
|
|
73
|
+
* `onClickVoidLabel` is a callback function that controls the display of `Void Label` button and
|
|
74
|
+
* will be invoked when the user clicks on it.
|
|
75
|
+
*/
|
|
50
76
|
};
|
|
51
77
|
"view-shipment": {
|
|
52
78
|
title: string;
|
|
@@ -66,7 +92,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
66
92
|
items: string;
|
|
67
93
|
orderDate: string;
|
|
68
94
|
orderValue: string;
|
|
69
|
-
requestedShipping: string;
|
|
95
|
+
requestedShipping: string; /**
|
|
96
|
+
* `labelStatus` is the status of the labels you wish to view.
|
|
97
|
+
* If no value is defined, all labels will be rendered.
|
|
98
|
+
*/
|
|
70
99
|
shipDate: string;
|
|
71
100
|
shipTo: string;
|
|
72
101
|
warehouse: string;
|
|
@@ -360,7 +389,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
360
389
|
};
|
|
361
390
|
warehouse: {
|
|
362
391
|
title: string;
|
|
363
|
-
subtitle: string;
|
|
392
|
+
subtitle: string; /**
|
|
393
|
+
* `onClickPrintLabel` is an optional callback function that will be invoked when the user clicks the
|
|
394
|
+
* `Print Label` button.
|
|
395
|
+
*/
|
|
364
396
|
inlineMessage: string;
|
|
365
397
|
};
|
|
366
398
|
errors: {
|
|
@@ -415,7 +447,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
415
447
|
setDefault: string;
|
|
416
448
|
shipFrom: string;
|
|
417
449
|
noWarehouses: string;
|
|
418
|
-
};
|
|
450
|
+
}; /**
|
|
451
|
+
* `labelStatus` is the status of the labels you wish to view.
|
|
452
|
+
* If no value is defined, all labels will be rendered.
|
|
453
|
+
*/
|
|
419
454
|
"manage-funding": {
|
|
420
455
|
actions: {
|
|
421
456
|
addFunds: string;
|
|
@@ -435,9 +470,15 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
435
470
|
isLoading: string;
|
|
436
471
|
lowBalancePurchaseThreshold: string;
|
|
437
472
|
maximumPurchasesPerDay: string;
|
|
438
|
-
purchaseAmount: string;
|
|
473
|
+
purchaseAmount: string; /**
|
|
474
|
+
* `onClickPrintForm` is an optional callback function that will be invoked when the user clicks the
|
|
475
|
+
* `Print Forms` button.
|
|
476
|
+
*/
|
|
439
477
|
readSettings: string;
|
|
440
|
-
};
|
|
478
|
+
}; /**
|
|
479
|
+
* `onClickPrintLabel` is an optional callback function that will be invoked when the user clicks the
|
|
480
|
+
* `Print Label` button.
|
|
481
|
+
*/
|
|
441
482
|
addFunds: {
|
|
442
483
|
custom: string;
|
|
443
484
|
error: {
|
|
@@ -525,15 +566,33 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
525
566
|
title: string;
|
|
526
567
|
headers: {
|
|
527
568
|
created: string;
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
569
|
+
shipmentId: string;
|
|
570
|
+
parcels: string;
|
|
571
|
+
recipient: string;
|
|
572
|
+
shipping: string;
|
|
573
|
+
shipDate: string;
|
|
574
|
+
status: string;
|
|
575
|
+
};
|
|
576
|
+
empty: {
|
|
577
|
+
title: string;
|
|
578
|
+
subtitle: string;
|
|
579
|
+
};
|
|
580
|
+
emptyWithFilters: {
|
|
581
|
+
title: string;
|
|
582
|
+
subtitle: string;
|
|
583
|
+
button: string;
|
|
584
|
+
};
|
|
585
|
+
status: {
|
|
586
|
+
voided: string;
|
|
587
|
+
error: string;
|
|
588
|
+
completed: string;
|
|
589
|
+
processing: string;
|
|
532
590
|
};
|
|
533
591
|
actions: {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
592
|
+
title: string;
|
|
593
|
+
print: string;
|
|
594
|
+
void: string;
|
|
595
|
+
printForms: string;
|
|
537
596
|
};
|
|
538
597
|
};
|
|
539
598
|
"connect-carrier": {
|
|
@@ -594,7 +653,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
594
653
|
addressLine1: string;
|
|
595
654
|
addressLine2: string;
|
|
596
655
|
cityLocality: string;
|
|
597
|
-
stateProvince: string;
|
|
656
|
+
stateProvince: string; /**
|
|
657
|
+
* `onClickPrintForm` is an optional callback function that will be invoked when the user clicks the
|
|
658
|
+
* `Print Forms` button.
|
|
659
|
+
*/
|
|
598
660
|
postalCode: string;
|
|
599
661
|
phone: string;
|
|
600
662
|
email: string;
|
|
@@ -753,6 +815,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
753
815
|
"row-count_one": string;
|
|
754
816
|
"row-count_other": string;
|
|
755
817
|
rows: string;
|
|
818
|
+
clearAll: string;
|
|
819
|
+
shipmentId: string;
|
|
820
|
+
shipmentIdFilter: string;
|
|
821
|
+
apply: string;
|
|
822
|
+
clear: string;
|
|
823
|
+
search: string;
|
|
824
|
+
shipmentIdHint: string;
|
|
756
825
|
};
|
|
757
826
|
insuranceProviders: {
|
|
758
827
|
carrier: string;
|
|
@@ -828,6 +897,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
828
897
|
requiredList: string;
|
|
829
898
|
tooFewCharacters: string;
|
|
830
899
|
tooManyCharacters: string;
|
|
900
|
+
requiredShipmentId: string;
|
|
831
901
|
};
|
|
832
902
|
shippingPresets: {
|
|
833
903
|
apply: string;
|
|
@@ -905,4 +975,3 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
905
975
|
};
|
|
906
976
|
} | undefined;
|
|
907
977
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
908
|
-
export {};
|
|
@@ -569,15 +569,33 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
569
569
|
title: string;
|
|
570
570
|
headers: {
|
|
571
571
|
created: string;
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
572
|
+
shipmentId: string;
|
|
573
|
+
parcels: string;
|
|
574
|
+
recipient: string;
|
|
575
|
+
shipping: string;
|
|
576
|
+
shipDate: string;
|
|
577
|
+
status: string;
|
|
578
|
+
};
|
|
579
|
+
empty: {
|
|
580
|
+
title: string;
|
|
581
|
+
subtitle: string;
|
|
582
|
+
};
|
|
583
|
+
emptyWithFilters: {
|
|
584
|
+
title: string;
|
|
585
|
+
subtitle: string;
|
|
586
|
+
button: string;
|
|
587
|
+
};
|
|
588
|
+
status: {
|
|
589
|
+
voided: string;
|
|
590
|
+
error: string;
|
|
591
|
+
completed: string;
|
|
592
|
+
processing: string;
|
|
576
593
|
};
|
|
577
594
|
actions: {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
595
|
+
title: string;
|
|
596
|
+
print: string;
|
|
597
|
+
void: string;
|
|
598
|
+
printForms: string;
|
|
581
599
|
};
|
|
582
600
|
};
|
|
583
601
|
"connect-carrier": {
|
|
@@ -819,6 +837,13 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
819
837
|
"row-count_one": string;
|
|
820
838
|
"row-count_other": string;
|
|
821
839
|
rows: string;
|
|
840
|
+
clearAll: string;
|
|
841
|
+
shipmentId: string;
|
|
842
|
+
shipmentIdFilter: string;
|
|
843
|
+
apply: string;
|
|
844
|
+
clear: string;
|
|
845
|
+
search: string;
|
|
846
|
+
shipmentIdHint: string;
|
|
822
847
|
};
|
|
823
848
|
insuranceProviders: {
|
|
824
849
|
carrier: string;
|
|
@@ -894,6 +919,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
894
919
|
requiredList: string;
|
|
895
920
|
tooFewCharacters: string;
|
|
896
921
|
tooManyCharacters: string;
|
|
922
|
+
requiredShipmentId: string;
|
|
897
923
|
};
|
|
898
924
|
shippingPresets: {
|
|
899
925
|
apply: string;
|
|
@@ -569,15 +569,33 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
569
569
|
title: string;
|
|
570
570
|
headers: {
|
|
571
571
|
created: string;
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
572
|
+
shipmentId: string;
|
|
573
|
+
parcels: string;
|
|
574
|
+
recipient: string;
|
|
575
|
+
shipping: string;
|
|
576
|
+
shipDate: string;
|
|
577
|
+
status: string;
|
|
578
|
+
};
|
|
579
|
+
empty: {
|
|
580
|
+
title: string;
|
|
581
|
+
subtitle: string;
|
|
582
|
+
};
|
|
583
|
+
emptyWithFilters: {
|
|
584
|
+
title: string;
|
|
585
|
+
subtitle: string;
|
|
586
|
+
button: string;
|
|
587
|
+
};
|
|
588
|
+
status: {
|
|
589
|
+
voided: string;
|
|
590
|
+
error: string;
|
|
591
|
+
completed: string;
|
|
592
|
+
processing: string;
|
|
576
593
|
};
|
|
577
594
|
actions: {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
595
|
+
title: string;
|
|
596
|
+
print: string;
|
|
597
|
+
void: string;
|
|
598
|
+
printForms: string;
|
|
581
599
|
};
|
|
582
600
|
};
|
|
583
601
|
"connect-carrier": {
|
|
@@ -797,6 +815,13 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
797
815
|
"row-count_one": string;
|
|
798
816
|
"row-count_other": string;
|
|
799
817
|
rows: string;
|
|
818
|
+
clearAll: string;
|
|
819
|
+
shipmentId: string;
|
|
820
|
+
shipmentIdFilter: string;
|
|
821
|
+
apply: string;
|
|
822
|
+
clear: string;
|
|
823
|
+
search: string;
|
|
824
|
+
shipmentIdHint: string;
|
|
800
825
|
};
|
|
801
826
|
insuranceProviders: {
|
|
802
827
|
carrier: string;
|
|
@@ -872,6 +897,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
872
897
|
requiredList: string;
|
|
873
898
|
tooFewCharacters: string;
|
|
874
899
|
tooManyCharacters: string;
|
|
900
|
+
requiredShipmentId: string;
|
|
875
901
|
};
|
|
876
902
|
shippingPresets: {
|
|
877
903
|
apply: string;
|
|
@@ -524,15 +524,33 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
524
524
|
title: string;
|
|
525
525
|
headers: {
|
|
526
526
|
created: string;
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
527
|
+
shipmentId: string;
|
|
528
|
+
parcels: string;
|
|
529
|
+
recipient: string;
|
|
530
|
+
shipping: string;
|
|
531
|
+
shipDate: string;
|
|
532
|
+
status: string;
|
|
533
|
+
};
|
|
534
|
+
empty: {
|
|
535
|
+
title: string;
|
|
536
|
+
subtitle: string;
|
|
537
|
+
};
|
|
538
|
+
emptyWithFilters: {
|
|
539
|
+
title: string;
|
|
540
|
+
subtitle: string;
|
|
541
|
+
button: string;
|
|
542
|
+
};
|
|
543
|
+
status: {
|
|
544
|
+
voided: string;
|
|
545
|
+
error: string;
|
|
546
|
+
completed: string;
|
|
547
|
+
processing: string;
|
|
531
548
|
};
|
|
532
549
|
actions: {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
550
|
+
title: string;
|
|
551
|
+
print: string;
|
|
552
|
+
void: string;
|
|
553
|
+
printForms: string;
|
|
536
554
|
};
|
|
537
555
|
};
|
|
538
556
|
"connect-carrier": {
|
|
@@ -752,6 +770,13 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
752
770
|
"row-count_one": string;
|
|
753
771
|
"row-count_other": string;
|
|
754
772
|
rows: string;
|
|
773
|
+
clearAll: string;
|
|
774
|
+
shipmentId: string;
|
|
775
|
+
shipmentIdFilter: string;
|
|
776
|
+
apply: string;
|
|
777
|
+
clear: string;
|
|
778
|
+
search: string;
|
|
779
|
+
shipmentIdHint: string;
|
|
755
780
|
};
|
|
756
781
|
insuranceProviders: {
|
|
757
782
|
carrier: string;
|
|
@@ -827,6 +852,7 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
827
852
|
requiredList: string;
|
|
828
853
|
tooFewCharacters: string;
|
|
829
854
|
tooManyCharacters: string;
|
|
855
|
+
requiredShipmentId: string;
|
|
830
856
|
};
|
|
831
857
|
shippingPresets: {
|
|
832
858
|
apply: string;
|
|
@@ -541,15 +541,33 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
541
541
|
title: string;
|
|
542
542
|
headers: {
|
|
543
543
|
created: string;
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
544
|
+
shipmentId: string;
|
|
545
|
+
parcels: string;
|
|
546
|
+
recipient: string;
|
|
547
|
+
shipping: string;
|
|
548
|
+
shipDate: string;
|
|
549
|
+
status: string;
|
|
550
|
+
};
|
|
551
|
+
empty: {
|
|
552
|
+
title: string;
|
|
553
|
+
subtitle: string;
|
|
554
|
+
};
|
|
555
|
+
emptyWithFilters: {
|
|
556
|
+
title: string;
|
|
557
|
+
subtitle: string;
|
|
558
|
+
button: string;
|
|
559
|
+
};
|
|
560
|
+
status: {
|
|
561
|
+
voided: string;
|
|
562
|
+
error: string;
|
|
563
|
+
completed: string;
|
|
564
|
+
processing: string;
|
|
548
565
|
};
|
|
549
566
|
actions: {
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
567
|
+
title: string;
|
|
568
|
+
print: string;
|
|
569
|
+
void: string;
|
|
570
|
+
printForms: string;
|
|
553
571
|
};
|
|
554
572
|
};
|
|
555
573
|
"connect-carrier": {
|
|
@@ -786,6 +804,13 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
786
804
|
"row-count_one": string;
|
|
787
805
|
"row-count_other": string;
|
|
788
806
|
rows: string;
|
|
807
|
+
clearAll: string;
|
|
808
|
+
shipmentId: string;
|
|
809
|
+
shipmentIdFilter: string;
|
|
810
|
+
apply: string;
|
|
811
|
+
clear: string;
|
|
812
|
+
search: string;
|
|
813
|
+
shipmentIdHint: string;
|
|
789
814
|
};
|
|
790
815
|
insuranceProviders: {
|
|
791
816
|
carrier: string;
|
|
@@ -861,6 +886,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
861
886
|
requiredList: string;
|
|
862
887
|
tooFewCharacters: string;
|
|
863
888
|
tooManyCharacters: string;
|
|
889
|
+
requiredShipmentId: string;
|
|
864
890
|
};
|
|
865
891
|
shippingPresets: {
|
|
866
892
|
apply: string;
|
|
@@ -524,15 +524,33 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
|
|
|
524
524
|
title: string;
|
|
525
525
|
headers: {
|
|
526
526
|
created: string;
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
527
|
+
shipmentId: string;
|
|
528
|
+
parcels: string;
|
|
529
|
+
recipient: string;
|
|
530
|
+
shipping: string;
|
|
531
|
+
shipDate: string;
|
|
532
|
+
status: string;
|
|
533
|
+
};
|
|
534
|
+
empty: {
|
|
535
|
+
title: string;
|
|
536
|
+
subtitle: string;
|
|
537
|
+
};
|
|
538
|
+
emptyWithFilters: {
|
|
539
|
+
title: string;
|
|
540
|
+
subtitle: string;
|
|
541
|
+
button: string;
|
|
542
|
+
};
|
|
543
|
+
status: {
|
|
544
|
+
voided: string;
|
|
545
|
+
error: string;
|
|
546
|
+
completed: string;
|
|
547
|
+
processing: string;
|
|
531
548
|
};
|
|
532
549
|
actions: {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
550
|
+
title: string;
|
|
551
|
+
print: string;
|
|
552
|
+
void: string;
|
|
553
|
+
printForms: string;
|
|
536
554
|
};
|
|
537
555
|
};
|
|
538
556
|
"connect-carrier": {
|
|
@@ -752,6 +770,13 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
|
|
|
752
770
|
"row-count_one": string;
|
|
753
771
|
"row-count_other": string;
|
|
754
772
|
rows: string;
|
|
773
|
+
clearAll: string;
|
|
774
|
+
shipmentId: string;
|
|
775
|
+
shipmentIdFilter: string;
|
|
776
|
+
apply: string;
|
|
777
|
+
clear: string;
|
|
778
|
+
search: string;
|
|
779
|
+
shipmentIdHint: string;
|
|
755
780
|
};
|
|
756
781
|
insuranceProviders: {
|
|
757
782
|
carrier: string;
|
|
@@ -827,6 +852,7 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
|
|
|
827
852
|
requiredList: string;
|
|
828
853
|
tooFewCharacters: string;
|
|
829
854
|
tooManyCharacters: string;
|
|
855
|
+
requiredShipmentId: string;
|
|
830
856
|
};
|
|
831
857
|
shippingPresets: {
|
|
832
858
|
apply: string;
|
|
@@ -728,15 +728,33 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
728
728
|
title: string;
|
|
729
729
|
headers: {
|
|
730
730
|
created: string;
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
731
|
+
shipmentId: string;
|
|
732
|
+
parcels: string;
|
|
733
|
+
recipient: string;
|
|
734
|
+
shipping: string;
|
|
735
|
+
shipDate: string;
|
|
736
|
+
status: string;
|
|
737
|
+
};
|
|
738
|
+
empty: {
|
|
739
|
+
title: string;
|
|
740
|
+
subtitle: string;
|
|
741
|
+
};
|
|
742
|
+
emptyWithFilters: {
|
|
743
|
+
title: string;
|
|
744
|
+
subtitle: string;
|
|
745
|
+
button: string;
|
|
746
|
+
};
|
|
747
|
+
status: {
|
|
748
|
+
voided: string;
|
|
749
|
+
error: string;
|
|
750
|
+
completed: string;
|
|
751
|
+
processing: string;
|
|
735
752
|
};
|
|
736
753
|
actions: {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
754
|
+
title: string;
|
|
755
|
+
print: string;
|
|
756
|
+
void: string;
|
|
757
|
+
printForms: string;
|
|
740
758
|
};
|
|
741
759
|
};
|
|
742
760
|
"connect-carrier": {
|
|
@@ -970,6 +988,13 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
970
988
|
"row-count_one": string;
|
|
971
989
|
"row-count_other": string;
|
|
972
990
|
rows: string;
|
|
991
|
+
clearAll: string;
|
|
992
|
+
shipmentId: string;
|
|
993
|
+
shipmentIdFilter: string;
|
|
994
|
+
apply: string;
|
|
995
|
+
clear: string;
|
|
996
|
+
search: string;
|
|
997
|
+
shipmentIdHint: string;
|
|
973
998
|
};
|
|
974
999
|
insuranceProviders: {
|
|
975
1000
|
carrier: string;
|
|
@@ -1013,44 +1038,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
1013
1038
|
};
|
|
1014
1039
|
packageCategories: {
|
|
1015
1040
|
customPackages: string;
|
|
1016
|
-
};
|
|
1017
|
-
* # Registered Purchase Label Element
|
|
1018
|
-
*
|
|
1019
|
-
* @param ElementProps The props necessary to render the `<PurchaseLabel.Element />` for shipment
|
|
1020
|
-
* based or sales order based label purchasing.
|
|
1021
|
-
*
|
|
1022
|
-
* @example
|
|
1023
|
-
* The `<Component />` is the source JSX that is rendered when you make use of the `PurchaseLabel`
|
|
1024
|
-
* Element directly.
|
|
1025
|
-
* ```tsx
|
|
1026
|
-
* <PurchaseLabel.Element
|
|
1027
|
-
* key={currentSalesOrderId}
|
|
1028
|
-
* printLabelLayout='4x6'
|
|
1029
|
-
* shippingPresets={presets}
|
|
1030
|
-
* onShipmentUpdated={(shipment) => console.log('Shipment Updated', shipment)}
|
|
1031
|
-
* onRateSaved={(
|
|
1032
|
-
* shipment: SE.SalesOrderShipment,
|
|
1033
|
-
* rate?: SE.Rate,
|
|
1034
|
-
* rateOptions?: SE.Rate[]
|
|
1035
|
-
* ) => console.log('Rate Saved', shipment, rate, rateOptions)}
|
|
1036
|
-
* onRatesCalculated={() => console.log('Rates Calculated')}
|
|
1037
|
-
* onBeforeLabelCreate={onBeforeLabelPurchase}
|
|
1038
|
-
* onLabelCreateSuccess={onLabelPurchaseSuccess}
|
|
1039
|
-
* onLabelCreateFailure={(rate) => console.log('Label Purchase Failed', rate)}
|
|
1040
|
-
* warehouseId={defaultWarehouseId}
|
|
1041
|
-
* />
|
|
1042
|
-
* ```
|
|
1043
|
-
*
|
|
1044
|
-
* <br />
|
|
1045
|
-
*
|
|
1046
|
-
* - Once a label has been purchased using this Element, you can take the `shipmentId` for the
|
|
1047
|
-
* associated shipment and pass it into the `<ShipmentSummary.Element />` Element in order to view
|
|
1048
|
-
* the shipment details.
|
|
1049
|
-
*
|
|
1050
|
-
* @see {@link PurchaseLabel.PurchaseLabelCommonProps | The **Common props** used in `<PurchaseLabel.Element />`}
|
|
1051
|
-
*
|
|
1052
|
-
* @see {@link ShipmentSummary.Element | The next step in the label purchase workflow `<ShipmentSummary.Element />`}
|
|
1053
|
-
*/
|
|
1041
|
+
};
|
|
1054
1042
|
packageCodes: {
|
|
1055
1043
|
package: string;
|
|
1056
1044
|
};
|
|
@@ -1082,6 +1070,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
1082
1070
|
requiredList: string;
|
|
1083
1071
|
tooFewCharacters: string;
|
|
1084
1072
|
tooManyCharacters: string;
|
|
1073
|
+
requiredShipmentId: string;
|
|
1085
1074
|
};
|
|
1086
1075
|
shippingPresets: {
|
|
1087
1076
|
apply: string;
|
|
@@ -618,15 +618,33 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
618
618
|
title: string;
|
|
619
619
|
headers: {
|
|
620
620
|
created: string;
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
621
|
+
shipmentId: string;
|
|
622
|
+
parcels: string;
|
|
623
|
+
recipient: string;
|
|
624
|
+
shipping: string;
|
|
625
|
+
shipDate: string;
|
|
626
|
+
status: string;
|
|
627
|
+
};
|
|
628
|
+
empty: {
|
|
629
|
+
title: string;
|
|
630
|
+
subtitle: string;
|
|
631
|
+
};
|
|
632
|
+
emptyWithFilters: {
|
|
633
|
+
title: string;
|
|
634
|
+
subtitle: string;
|
|
635
|
+
button: string;
|
|
636
|
+
};
|
|
637
|
+
status: {
|
|
638
|
+
voided: string;
|
|
639
|
+
error: string;
|
|
640
|
+
completed: string;
|
|
641
|
+
processing: string;
|
|
625
642
|
};
|
|
626
643
|
actions: {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
644
|
+
title: string;
|
|
645
|
+
print: string;
|
|
646
|
+
void: string;
|
|
647
|
+
printForms: string;
|
|
630
648
|
};
|
|
631
649
|
};
|
|
632
650
|
"connect-carrier": {
|
|
@@ -848,6 +866,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
848
866
|
"row-count_one": string;
|
|
849
867
|
"row-count_other": string;
|
|
850
868
|
rows: string;
|
|
869
|
+
clearAll: string;
|
|
870
|
+
shipmentId: string;
|
|
871
|
+
shipmentIdFilter: string;
|
|
872
|
+
apply: string;
|
|
873
|
+
clear: string;
|
|
874
|
+
search: string;
|
|
875
|
+
shipmentIdHint: string;
|
|
851
876
|
};
|
|
852
877
|
insuranceProviders: {
|
|
853
878
|
carrier: string;
|
|
@@ -923,6 +948,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
923
948
|
requiredList: string;
|
|
924
949
|
tooFewCharacters: string;
|
|
925
950
|
tooManyCharacters: string;
|
|
951
|
+
requiredShipmentId: string;
|
|
926
952
|
};
|
|
927
953
|
shippingPresets: {
|
|
928
954
|
apply: string;
|