@shipengine/elements 2.11.1 → 2.12.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/canada-ddp.js +1 -0
- package/carrier.js +1 -1
- package/components.js +1 -1
- package/elements.js +1 -1
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/package.json +4 -4
- package/shipment.js +1 -1
- package/src/components/actions-menu/actions-menu.d.ts +2 -1
- package/src/components/field/select/select-with-categories.d.ts +1 -0
- package/src/components/grid-filters/grid-filters.d.ts +2 -1
- package/src/components/index.d.ts +1 -0
- package/src/components/ship-from-address-form/index.d.ts +1 -0
- package/src/components/ship-from-address-form/ship-from-address-form-schema.d.ts +436 -0
- package/src/components/ship-from-address-form/ship-from-address-form.d.ts +20 -0
- package/src/components/ship-from-address-form/ship-from-address-form.styles.d.ts +20 -0
- package/src/components/templates/index.d.ts +1 -1
- package/src/components/templates/rate-form/rate-form.d.ts +3 -2
- package/src/components/templates/shipment-form/sections/customs-forms/customs-forms.d.ts +2 -1
- package/src/components/templates/shipment-form/shipment-form.d.ts +10 -6
- package/src/components/templates/shipment-form/shipment-form.styles.d.ts +1 -0
- package/src/components/templates/shipment-form/shipment-schema.d.ts +26 -12
- package/src/components/templates/suspend-purchase/index.d.ts +1 -0
- package/src/components/templates/suspend-purchase/suspend-purchase.d.ts +8 -0
- package/src/components/warehouse-form/warehouse-form-schema.d.ts +148 -34
- package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +4 -0
- package/src/elements/labels-grid/labels-grid.d.ts +37 -22
- package/src/elements/manage-carriers/manage-carriers.d.ts +15 -0
- package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +15 -0
- package/src/elements/manage-funding/manage-funding-element.d.ts +15 -0
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +15 -0
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +15 -0
- package/src/elements/purchase-label/configure-shipment.d.ts +3 -2
- package/src/elements/purchase-label/hooks/index.d.ts +0 -2
- package/src/elements/purchase-label/hooks/use-address.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-configure-shipment.d.ts +23 -12
- package/src/elements/purchase-label/hooks/use-customs.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-import-sales-order.d.ts +2 -1
- package/src/elements/purchase-label/hooks/use-shipment-form.d.ts +14 -5
- package/src/elements/purchase-label/purchase-label.d.ts +88 -47
- package/src/elements/select-label-layout/select-label-layout-element.d.ts +15 -0
- package/src/elements/shipment-summary/shipment-summary.d.ts +27 -6
- package/src/elements/shipments-grid/shipments-grid.d.ts +91 -20
- package/src/elements/theme-creator/theme-creator.d.ts +15 -0
- package/src/elements/transaction-history/transaction-history-element.d.ts +15 -0
- package/src/elements/unit-settings/unit-settings-element.d.ts +15 -0
- package/src/elements/vat-settings/vat-settings-element.d.ts +15 -0
- package/src/elements/void-label/void-label.d.ts +15 -0
- package/src/hooks/options/index.d.ts +1 -1
- package/src/hooks/options/use-ship-from-address-options.d.ts +19 -0
- package/src/hooks/options/use-shipment-metadata.d.ts +1 -0
- package/src/locales/en/index.d.ts +15 -0
- package/src/types/canada-ddp.d.ts +4 -0
- package/src/types/index.d.ts +2 -0
- package/src/types/ship-from-address.d.ts +4 -0
- package/src/utilities/feature-flags/types.d.ts +7 -1
- package/src/utilities/shipengine/address.d.ts +32 -0
- package/src/utilities/shipengine/sales-order.d.ts +2 -2
- package/src/utilities/shipengine/warehouses.d.ts +2 -1
- package/src/workflows/account-settings/account-settings.d.ts +15 -0
- package/src/workflows/carrier-services/carrier-services.d.ts +15 -0
- package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +15 -0
- package/src/workflows/onboarding/onboarding.d.ts +16 -1
- package/suspend-text.js +1 -1
- package/transaction-history-element.js +1 -1
- package/types.js +1 -1
- package/use-scrub-errors.js +1 -1
- package/use-toggle.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/vat.js +1 -1
- package/wallet-form.js +1 -1
- package/workflows.js +1 -1
- package/src/components/templates/suspend-shipment/index.d.ts +0 -1
- package/src/components/templates/suspend-shipment/suspend-shipment.d.ts +0 -8
- package/src/elements/purchase-label/hooks/use-get-or-create-shipment.d.ts +0 -13
- package/src/elements/purchase-label/hooks/use-load-shipment.d.ts +0 -9
- package/src/elements/purchase-label/hooks/use-pending-shipment.d.ts +0 -13
- package/src/elements/purchase-label/purchase-label-by-sales-order.d.ts +0 -11
- package/src/elements/purchase-label/purchase-label-by-shipment.d.ts +0 -8
- package/src/hooks/options/use-warehouse-options.d.ts +0 -13
|
@@ -590,6 +590,8 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
590
590
|
status: string;
|
|
591
591
|
trackingStatus: string;
|
|
592
592
|
labelId: string;
|
|
593
|
+
externalOrderId: string;
|
|
594
|
+
externalShipmentId: string;
|
|
593
595
|
};
|
|
594
596
|
empty: {
|
|
595
597
|
title: string;
|
|
@@ -784,6 +786,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
784
786
|
description: string;
|
|
785
787
|
harmonizedTariffCode: string;
|
|
786
788
|
ifDeliveryFails: string;
|
|
789
|
+
dutiesTaxes: string;
|
|
787
790
|
quantity: string;
|
|
788
791
|
sku: string;
|
|
789
792
|
value: string;
|
|
@@ -798,6 +801,17 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
798
801
|
returnToSender: string;
|
|
799
802
|
treatAsAbandoned: string;
|
|
800
803
|
};
|
|
804
|
+
canadaDeliveredDuty: {
|
|
805
|
+
senderPrepay: string;
|
|
806
|
+
recipientPays: string;
|
|
807
|
+
tooltip: {
|
|
808
|
+
title: string;
|
|
809
|
+
restriction: string;
|
|
810
|
+
requirement1: string;
|
|
811
|
+
requirement2: string;
|
|
812
|
+
requirement3: string;
|
|
813
|
+
};
|
|
814
|
+
};
|
|
801
815
|
removeAllDeclarations: string;
|
|
802
816
|
total: string;
|
|
803
817
|
};
|
|
@@ -990,6 +1004,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
990
1004
|
edit: string;
|
|
991
1005
|
remove: string;
|
|
992
1006
|
viewDetails: string;
|
|
1007
|
+
cancelShipment: string;
|
|
993
1008
|
};
|
|
994
1009
|
};
|
|
995
1010
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
@@ -590,6 +590,8 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
590
590
|
status: string;
|
|
591
591
|
trackingStatus: string;
|
|
592
592
|
labelId: string;
|
|
593
|
+
externalOrderId: string;
|
|
594
|
+
externalShipmentId: string;
|
|
593
595
|
};
|
|
594
596
|
empty: {
|
|
595
597
|
title: string;
|
|
@@ -784,6 +786,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
784
786
|
description: string;
|
|
785
787
|
harmonizedTariffCode: string;
|
|
786
788
|
ifDeliveryFails: string;
|
|
789
|
+
dutiesTaxes: string;
|
|
787
790
|
quantity: string;
|
|
788
791
|
sku: string;
|
|
789
792
|
value: string;
|
|
@@ -798,6 +801,17 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
798
801
|
returnToSender: string;
|
|
799
802
|
treatAsAbandoned: string;
|
|
800
803
|
};
|
|
804
|
+
canadaDeliveredDuty: {
|
|
805
|
+
senderPrepay: string;
|
|
806
|
+
recipientPays: string;
|
|
807
|
+
tooltip: {
|
|
808
|
+
title: string;
|
|
809
|
+
restriction: string;
|
|
810
|
+
requirement1: string;
|
|
811
|
+
requirement2: string;
|
|
812
|
+
requirement3: string;
|
|
813
|
+
};
|
|
814
|
+
};
|
|
801
815
|
removeAllDeclarations: string;
|
|
802
816
|
total: string;
|
|
803
817
|
};
|
|
@@ -990,6 +1004,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
990
1004
|
edit: string;
|
|
991
1005
|
remove: string;
|
|
992
1006
|
viewDetails: string;
|
|
1007
|
+
cancelShipment: string;
|
|
993
1008
|
};
|
|
994
1009
|
};
|
|
995
1010
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
@@ -590,6 +590,8 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
590
590
|
status: string;
|
|
591
591
|
trackingStatus: string;
|
|
592
592
|
labelId: string;
|
|
593
|
+
externalOrderId: string;
|
|
594
|
+
externalShipmentId: string;
|
|
593
595
|
};
|
|
594
596
|
empty: {
|
|
595
597
|
title: string;
|
|
@@ -784,6 +786,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
784
786
|
description: string;
|
|
785
787
|
harmonizedTariffCode: string;
|
|
786
788
|
ifDeliveryFails: string;
|
|
789
|
+
dutiesTaxes: string;
|
|
787
790
|
quantity: string;
|
|
788
791
|
sku: string;
|
|
789
792
|
value: string;
|
|
@@ -798,6 +801,17 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
798
801
|
returnToSender: string;
|
|
799
802
|
treatAsAbandoned: string;
|
|
800
803
|
};
|
|
804
|
+
canadaDeliveredDuty: {
|
|
805
|
+
senderPrepay: string;
|
|
806
|
+
recipientPays: string;
|
|
807
|
+
tooltip: {
|
|
808
|
+
title: string;
|
|
809
|
+
restriction: string;
|
|
810
|
+
requirement1: string;
|
|
811
|
+
requirement2: string;
|
|
812
|
+
requirement3: string;
|
|
813
|
+
};
|
|
814
|
+
};
|
|
801
815
|
removeAllDeclarations: string;
|
|
802
816
|
total: string;
|
|
803
817
|
};
|
|
@@ -990,6 +1004,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
990
1004
|
edit: string;
|
|
991
1005
|
remove: string;
|
|
992
1006
|
viewDetails: string;
|
|
1007
|
+
cancelShipment: string;
|
|
993
1008
|
};
|
|
994
1009
|
};
|
|
995
1010
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
@@ -682,6 +682,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
682
682
|
status: string;
|
|
683
683
|
trackingStatus: string;
|
|
684
684
|
labelId: string;
|
|
685
|
+
externalOrderId: string;
|
|
686
|
+
externalShipmentId: string;
|
|
685
687
|
};
|
|
686
688
|
empty: {
|
|
687
689
|
title: string;
|
|
@@ -885,6 +887,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
885
887
|
description: string;
|
|
886
888
|
harmonizedTariffCode: string;
|
|
887
889
|
ifDeliveryFails: string;
|
|
890
|
+
dutiesTaxes: string;
|
|
888
891
|
quantity: string;
|
|
889
892
|
sku: string;
|
|
890
893
|
value: string;
|
|
@@ -899,6 +902,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
899
902
|
returnToSender: string;
|
|
900
903
|
treatAsAbandoned: string;
|
|
901
904
|
};
|
|
905
|
+
canadaDeliveredDuty: {
|
|
906
|
+
senderPrepay: string;
|
|
907
|
+
recipientPays: string;
|
|
908
|
+
tooltip: {
|
|
909
|
+
title: string;
|
|
910
|
+
restriction: string;
|
|
911
|
+
requirement1: string;
|
|
912
|
+
requirement2: string;
|
|
913
|
+
requirement3: string;
|
|
914
|
+
};
|
|
915
|
+
};
|
|
902
916
|
removeAllDeclarations: string;
|
|
903
917
|
total: string;
|
|
904
918
|
};
|
|
@@ -1091,6 +1105,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
1091
1105
|
edit: string;
|
|
1092
1106
|
remove: string;
|
|
1093
1107
|
viewDetails: string;
|
|
1108
|
+
cancelShipment: string;
|
|
1094
1109
|
};
|
|
1095
1110
|
};
|
|
1096
1111
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
@@ -12,6 +12,6 @@ export * from "./use-service-code-options";
|
|
|
12
12
|
export * from "./use-shipment-metadata";
|
|
13
13
|
export * from "./use-shipping-presets-options";
|
|
14
14
|
export * from "./use-state-code-options";
|
|
15
|
-
export * from "./use-
|
|
15
|
+
export * from "./use-ship-from-address-options";
|
|
16
16
|
export * from "./use-service-points";
|
|
17
17
|
export * from "./use-windsor-framework";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
|
+
import { ShipFromAddress } from "../../types";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*
|
|
6
|
+
* # Warehouse Options Hook
|
|
7
|
+
*
|
|
8
|
+
* @category Hooks
|
|
9
|
+
*/
|
|
10
|
+
export declare const useShipFromAddressOptions: (warehouses?: SE.Warehouse[], shipFromAddresses?: (ShipFromAddress & {
|
|
11
|
+
addressId: string;
|
|
12
|
+
})[], shipment?: SE.SalesOrderShipment) => {
|
|
13
|
+
label: string;
|
|
14
|
+
options: {
|
|
15
|
+
label: string;
|
|
16
|
+
subLabel: string;
|
|
17
|
+
value: string;
|
|
18
|
+
}[];
|
|
19
|
+
}[] | undefined;
|
|
@@ -8,6 +8,7 @@ import { SE } from "@shipengine/react-api";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const useShipmentMetadata: (shipment?: SE.SalesOrderShipment) => {
|
|
10
10
|
hasAllZeroMeasurements: boolean;
|
|
11
|
+
isCanadaDeliveredDutyEligible: boolean;
|
|
11
12
|
isContentDescriptionRequired: boolean;
|
|
12
13
|
isCustomsRequired: boolean;
|
|
13
14
|
isInternational: boolean;
|
|
@@ -586,6 +586,8 @@ declare const _default: {
|
|
|
586
586
|
status: string;
|
|
587
587
|
trackingStatus: string;
|
|
588
588
|
labelId: string;
|
|
589
|
+
externalOrderId: string;
|
|
590
|
+
externalShipmentId: string;
|
|
589
591
|
};
|
|
590
592
|
empty: {
|
|
591
593
|
title: string;
|
|
@@ -780,6 +782,7 @@ declare const _default: {
|
|
|
780
782
|
description: string;
|
|
781
783
|
harmonizedTariffCode: string;
|
|
782
784
|
ifDeliveryFails: string;
|
|
785
|
+
dutiesTaxes: string;
|
|
783
786
|
quantity: string;
|
|
784
787
|
sku: string;
|
|
785
788
|
value: string;
|
|
@@ -794,6 +797,17 @@ declare const _default: {
|
|
|
794
797
|
returnToSender: string;
|
|
795
798
|
treatAsAbandoned: string;
|
|
796
799
|
};
|
|
800
|
+
canadaDeliveredDuty: {
|
|
801
|
+
senderPrepay: string;
|
|
802
|
+
recipientPays: string;
|
|
803
|
+
tooltip: {
|
|
804
|
+
title: string;
|
|
805
|
+
restriction: string;
|
|
806
|
+
requirement1: string;
|
|
807
|
+
requirement2: string;
|
|
808
|
+
requirement3: string;
|
|
809
|
+
};
|
|
810
|
+
};
|
|
797
811
|
removeAllDeclarations: string;
|
|
798
812
|
total: string;
|
|
799
813
|
};
|
|
@@ -986,6 +1000,7 @@ declare const _default: {
|
|
|
986
1000
|
edit: string;
|
|
987
1001
|
remove: string;
|
|
988
1002
|
viewDetails: string;
|
|
1003
|
+
cancelShipment: string;
|
|
989
1004
|
};
|
|
990
1005
|
};
|
|
991
1006
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
package/src/types/index.d.ts
CHANGED
|
@@ -63,6 +63,10 @@ export type ShipmentFormFeatures = {
|
|
|
63
63
|
* shipment form of the PurchaseLabel element.
|
|
64
64
|
*/
|
|
65
65
|
shippingPresets?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* When disabled the Purchase Label element will not use the Seller's saved warehouses during Shipment creation or expose the warehouses in the ship from drop down.
|
|
68
|
+
*/
|
|
69
|
+
useWarehouses?: boolean;
|
|
66
70
|
};
|
|
67
71
|
export type ShipmentSummaryFeatures = {
|
|
68
72
|
schedulePickup?: boolean;
|
|
@@ -123,12 +127,13 @@ export type AccountSettingsFeatures = {
|
|
|
123
127
|
*/
|
|
124
128
|
showVatSettings?: boolean;
|
|
125
129
|
};
|
|
126
|
-
export type LabelColumnName = "shipmentId" | "labelId" | "packages" | "recipient" | "shippingService" | "createdDate" | "shipDate" | "status" | "trackingStatus";
|
|
130
|
+
export type LabelColumnName = "shipmentId" | "labelId" | "externalOrderId" | "externalShipmentId" | "packages" | "recipient" | "shippingService" | "createdDate" | "shipDate" | "status" | "trackingStatus";
|
|
127
131
|
export type BaseLabelColumnConfig = {
|
|
128
132
|
/**
|
|
129
133
|
* The name identifying the column
|
|
130
134
|
*/
|
|
131
135
|
name: Exclude<LabelColumnName, "shipmentId" | "labelId">;
|
|
136
|
+
nickname?: string;
|
|
132
137
|
};
|
|
133
138
|
export type FilterableLabelColumnConfig = {
|
|
134
139
|
/**
|
|
@@ -139,6 +144,7 @@ export type FilterableLabelColumnConfig = {
|
|
|
139
144
|
* The name identifying the column
|
|
140
145
|
*/
|
|
141
146
|
name: Extract<LabelColumnName, "shipmentId" | "labelId">;
|
|
147
|
+
nickname?: string;
|
|
142
148
|
};
|
|
143
149
|
export type LabelColumnConfig = BaseLabelColumnConfig | FilterableLabelColumnConfig;
|
|
144
150
|
export type LabelsGridFeatures = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SE } from "@shipengine/react-api";
|
|
2
|
+
import { ShipFromAddress } from "../../types";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*
|
|
@@ -64,3 +65,34 @@ export declare const isEmptyAddress: (address?: SE.Address) => boolean;
|
|
|
64
65
|
* @category Utilities
|
|
65
66
|
*/
|
|
66
67
|
export declare const addEmailToValidation: (addressValidation: SE.AddressValidation, email?: string) => SE.AddressValidation;
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*
|
|
71
|
+
* # Address Utilities - getDefaultShipFromAddress
|
|
72
|
+
* Gets the default ship from address from an array of ship from addresses
|
|
73
|
+
*
|
|
74
|
+
* @category Utilities
|
|
75
|
+
*/
|
|
76
|
+
export declare const getDefaultShipFromAddress: (addresses?: ShipFromAddress[]) => ShipFromAddress | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
*
|
|
80
|
+
* # Address Utilities - getSavedShipFromAddressId
|
|
81
|
+
* Gets the address ID of from the shipment if it is a saved address and not a warehouse
|
|
82
|
+
*
|
|
83
|
+
* @category Utilities
|
|
84
|
+
*/
|
|
85
|
+
export declare const getSavedShipFromAddressId: (shipment?: SE.SalesOrderShipment, shipFromAddresses?: (ShipFromAddress & {
|
|
86
|
+
addressId: string;
|
|
87
|
+
})[]) => string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*
|
|
91
|
+
* # Address Utilities - getIsShipmentUsingSavedShipFromAddress
|
|
92
|
+
* Returns true if the shipment is using a saved ship from address
|
|
93
|
+
*
|
|
94
|
+
* @category Utilities
|
|
95
|
+
*/
|
|
96
|
+
export declare const getIsShipmentUsingSavedShipFromAddress: (shipment?: SE.SalesOrderShipment, shipFromAddresses?: (ShipFromAddress & {
|
|
97
|
+
addressId: string;
|
|
98
|
+
})[]) => boolean | undefined;
|
|
@@ -6,7 +6,7 @@ import { SE } from "@shipengine/react-api";
|
|
|
6
6
|
*
|
|
7
7
|
* @category Utilities
|
|
8
8
|
*/
|
|
9
|
-
export declare const getCustomsFromSalesOrder: (salesOrder: SE.SalesOrder,
|
|
9
|
+
export declare const getCustomsFromSalesOrder: (salesOrder: SE.SalesOrder, originAddress: SE.Address) => {
|
|
10
10
|
customs: SE.Customs;
|
|
11
11
|
products: SE.Product[];
|
|
12
12
|
};
|
|
@@ -17,7 +17,7 @@ export declare const getCustomsFromSalesOrder: (salesOrder: SE.SalesOrder, wareh
|
|
|
17
17
|
*
|
|
18
18
|
* @category Utilities
|
|
19
19
|
*/
|
|
20
|
-
export declare const getIsCustomsRequiredForSalesOrder: ({ shipTo }: SE.SalesOrder,
|
|
20
|
+
export declare const getIsCustomsRequiredForSalesOrder: ({ shipTo }: SE.SalesOrder, originAddress?: SE.Address) => boolean;
|
|
21
21
|
/**
|
|
22
22
|
* @internal
|
|
23
23
|
*
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { SE } from "@shipengine/react-api";
|
|
2
|
-
export declare const getDefaultWarehouse: (warehouses
|
|
2
|
+
export declare const getDefaultWarehouse: (warehouses?: SE.Warehouse[]) => SE.Warehouse | undefined;
|
|
3
|
+
export declare const getWarehouseById: (warehouseId?: string, warehouses?: SE.Warehouse[]) => SE.Warehouse | undefined;
|
|
@@ -622,6 +622,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
622
622
|
status: string;
|
|
623
623
|
trackingStatus: string;
|
|
624
624
|
labelId: string;
|
|
625
|
+
externalOrderId: string;
|
|
626
|
+
externalShipmentId: string;
|
|
625
627
|
};
|
|
626
628
|
empty: {
|
|
627
629
|
title: string;
|
|
@@ -816,6 +818,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
816
818
|
description: string;
|
|
817
819
|
harmonizedTariffCode: string;
|
|
818
820
|
ifDeliveryFails: string;
|
|
821
|
+
dutiesTaxes: string;
|
|
819
822
|
quantity: string;
|
|
820
823
|
sku: string;
|
|
821
824
|
value: string;
|
|
@@ -830,6 +833,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
830
833
|
returnToSender: string;
|
|
831
834
|
treatAsAbandoned: string;
|
|
832
835
|
};
|
|
836
|
+
canadaDeliveredDuty: {
|
|
837
|
+
senderPrepay: string;
|
|
838
|
+
recipientPays: string;
|
|
839
|
+
tooltip: {
|
|
840
|
+
title: string;
|
|
841
|
+
restriction: string;
|
|
842
|
+
requirement1: string;
|
|
843
|
+
requirement2: string;
|
|
844
|
+
requirement3: string;
|
|
845
|
+
};
|
|
846
|
+
};
|
|
833
847
|
removeAllDeclarations: string;
|
|
834
848
|
total: string;
|
|
835
849
|
};
|
|
@@ -1022,6 +1036,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
1022
1036
|
edit: string;
|
|
1023
1037
|
remove: string;
|
|
1024
1038
|
viewDetails: string;
|
|
1039
|
+
cancelShipment: string;
|
|
1025
1040
|
};
|
|
1026
1041
|
};
|
|
1027
1042
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
@@ -616,6 +616,8 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
616
616
|
status: string;
|
|
617
617
|
trackingStatus: string;
|
|
618
618
|
labelId: string;
|
|
619
|
+
externalOrderId: string;
|
|
620
|
+
externalShipmentId: string;
|
|
619
621
|
};
|
|
620
622
|
empty: {
|
|
621
623
|
title: string;
|
|
@@ -810,6 +812,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
810
812
|
description: string;
|
|
811
813
|
harmonizedTariffCode: string;
|
|
812
814
|
ifDeliveryFails: string;
|
|
815
|
+
dutiesTaxes: string;
|
|
813
816
|
quantity: string;
|
|
814
817
|
sku: string;
|
|
815
818
|
value: string;
|
|
@@ -824,6 +827,17 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
824
827
|
returnToSender: string;
|
|
825
828
|
treatAsAbandoned: string;
|
|
826
829
|
};
|
|
830
|
+
canadaDeliveredDuty: {
|
|
831
|
+
senderPrepay: string;
|
|
832
|
+
recipientPays: string;
|
|
833
|
+
tooltip: {
|
|
834
|
+
title: string;
|
|
835
|
+
restriction: string;
|
|
836
|
+
requirement1: string;
|
|
837
|
+
requirement2: string;
|
|
838
|
+
requirement3: string;
|
|
839
|
+
};
|
|
840
|
+
};
|
|
827
841
|
removeAllDeclarations: string;
|
|
828
842
|
total: string;
|
|
829
843
|
};
|
|
@@ -1016,6 +1030,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
1016
1030
|
edit: string;
|
|
1017
1031
|
remove: string;
|
|
1018
1032
|
viewDetails: string;
|
|
1033
|
+
cancelShipment: string;
|
|
1019
1034
|
};
|
|
1020
1035
|
};
|
|
1021
1036
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
@@ -623,6 +623,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
623
623
|
status: string;
|
|
624
624
|
trackingStatus: string;
|
|
625
625
|
labelId: string;
|
|
626
|
+
externalOrderId: string;
|
|
627
|
+
externalShipmentId: string;
|
|
626
628
|
};
|
|
627
629
|
empty: {
|
|
628
630
|
title: string;
|
|
@@ -817,6 +819,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
817
819
|
description: string;
|
|
818
820
|
harmonizedTariffCode: string;
|
|
819
821
|
ifDeliveryFails: string;
|
|
822
|
+
dutiesTaxes: string;
|
|
820
823
|
quantity: string;
|
|
821
824
|
sku: string;
|
|
822
825
|
value: string;
|
|
@@ -831,6 +834,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
831
834
|
returnToSender: string;
|
|
832
835
|
treatAsAbandoned: string;
|
|
833
836
|
};
|
|
837
|
+
canadaDeliveredDuty: {
|
|
838
|
+
senderPrepay: string;
|
|
839
|
+
recipientPays: string;
|
|
840
|
+
tooltip: {
|
|
841
|
+
title: string;
|
|
842
|
+
restriction: string;
|
|
843
|
+
requirement1: string;
|
|
844
|
+
requirement2: string;
|
|
845
|
+
requirement3: string;
|
|
846
|
+
};
|
|
847
|
+
};
|
|
834
848
|
removeAllDeclarations: string;
|
|
835
849
|
total: string;
|
|
836
850
|
};
|
|
@@ -1023,6 +1037,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
1023
1037
|
edit: string;
|
|
1024
1038
|
remove: string;
|
|
1025
1039
|
viewDetails: string;
|
|
1040
|
+
cancelShipment: string;
|
|
1026
1041
|
};
|
|
1027
1042
|
};
|
|
1028
1043
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
@@ -659,6 +659,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
659
659
|
status: string;
|
|
660
660
|
trackingStatus: string;
|
|
661
661
|
labelId: string;
|
|
662
|
+
externalOrderId: string;
|
|
663
|
+
externalShipmentId: string;
|
|
662
664
|
};
|
|
663
665
|
empty: {
|
|
664
666
|
title: string;
|
|
@@ -666,7 +668,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
666
668
|
};
|
|
667
669
|
emptyWithFilters: {
|
|
668
670
|
title: string;
|
|
669
|
-
subtitle: string;
|
|
671
|
+
subtitle: string;
|
|
670
672
|
button: string;
|
|
671
673
|
};
|
|
672
674
|
status: {
|
|
@@ -860,6 +862,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
860
862
|
description: string;
|
|
861
863
|
harmonizedTariffCode: string;
|
|
862
864
|
ifDeliveryFails: string;
|
|
865
|
+
dutiesTaxes: string;
|
|
863
866
|
quantity: string;
|
|
864
867
|
sku: string;
|
|
865
868
|
value: string;
|
|
@@ -874,6 +877,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
874
877
|
returnToSender: string;
|
|
875
878
|
treatAsAbandoned: string;
|
|
876
879
|
};
|
|
880
|
+
canadaDeliveredDuty: {
|
|
881
|
+
senderPrepay: string;
|
|
882
|
+
recipientPays: string;
|
|
883
|
+
tooltip: {
|
|
884
|
+
title: string;
|
|
885
|
+
restriction: string;
|
|
886
|
+
requirement1: string;
|
|
887
|
+
requirement2: string;
|
|
888
|
+
requirement3: string;
|
|
889
|
+
};
|
|
890
|
+
};
|
|
877
891
|
removeAllDeclarations: string;
|
|
878
892
|
total: string;
|
|
879
893
|
};
|
|
@@ -1066,6 +1080,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
1066
1080
|
edit: string;
|
|
1067
1081
|
remove: string;
|
|
1068
1082
|
viewDetails: string;
|
|
1083
|
+
cancelShipment: string;
|
|
1069
1084
|
};
|
|
1070
1085
|
};
|
|
1071
1086
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
package/suspend-text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{K as e,M as t,N as n,O as a,Q as o,U as i,X as r,Y as s,Z as c,_ as l,$ as g,a0 as p,J as d,a1 as m,a2 as u,G as h}from"./actions-menu.js";import{jsxs as b,jsx as f,Fragment as C}from"@emotion/react/jsx-runtime";import{useState as w,useRef as S,useCallback as x}from"react";import{useTranslation as O,Trans as v}from"react-i18next";import{Button as j,ButtonVariant as I,Icon as y,IconSize as T,DropdownOptionList as k,Option as E,Pagination as P,Typography as _,Skeleton as D,SkeletonAnimation as M,SkeletonVariant as R}from"@shipengine/giger";import{IconNames as A}from"@shipengine/giger-theme";import{b as W}from"./validation.js";var z=Object.freeze({__proto__:null,CheckboxInput:e,CreditCardInput:t,DatePicker:n,ExpirationInput:a,InputGroup:o,transform:i,MoneyInput:r,NumberInput:s,RateSelect:c,SelectAutoComplete:l,Select:g,SelectWithCategories:p,SubmitButton:d,Switch:m,TextArea:u,TextInput:h});const B=W({footer:{"> *":{borderTop:"0 !important"},alignItems:"center",display:"flex",justifyContent:"space-between",width:"100%"},leftFooter:e=>({display:"flex",margin:e.spacing(2),span:{fontWeight:e.typography.fontWeight.bold}}),rowCount:e=>({alignItems:"center",display:"flex",marginRight:e.spacing(4),whiteSpace:"pre"}),rowCountDropDown:{"> * > *":{justifyContent:"center !important"}},rowsActions:e=>({"#selected-row":{":hover":{backgroundColor:"transparent"},borderRadius:e.borderRadius.XS,color:e.palette.black,padding:e.spacing(1),paddingRight:e.spacing(.5)},alignItems:"baseline",display:"flex",span:{alignSelf:"center"}})}),N=[5,10,25,50],X=({currentPageSize:e,pagingData:t,rowCountSelection:n=N,onPageSelect:a,onPageSizeSelect:o})=>{const[i,r]=w(!1),s=S(null),{t:c}=O(),l=x((()=>r((e=>!e))),[]);return b("div",Object.assign({css:B.footer},{children:[b("div",Object.assign({css:B.leftFooter},{children:[f("div",Object.assign({css:B.rowCount},{children:f(v,{components:[f("b",{style:{fontWeight:"bold"}},"1")],count:t.total,i18nKey:"common:grid.row-count",values:{firstIndex:0!==t.total?1+(t.page-1)*e:0,lastIndex:Math.min(t.total,t.page*e)}})})),b("div",Object.assign({css:B.rowsActions},{children:[c("common:grid.rows"),f(j,Object.assign({id:"selected-row",onClick:()=>l(),ref:s,variant:I.TEXT},{children:e})),f(y,i?{name:A.CHEVRON_TOP,onClick:()=>l(),size:T.SIZE_MEDIUM}:{name:A.CHEVRON_BOTTOM,onClick:()=>l(),size:T.SIZE_MEDIUM}),f(k,Object.assign({css:B.rowCountDropDown,dropdownWidth:"max-content",isOpen:i,onChange:()=>l(),onClickAway:e=>{var t;(null===(t=s.current)||void 0===t?void 0:t.contains(e.target))||l()},placement:"bottom",reference:s.current},{children:n.map((e=>f(E,Object.assign({onClick:()=>o(e),value:String(e)},{children:e}),e)))}))]}))]})),f("div",{children:f(P,{boundaryPagesToShow:5,currentPage:t.page,onPageChange:a,totalPages:t.pages})})]}))},U=({children:e,notes:t})=>b(C,{children:[b("div",Object.assign({css:()=>({backgroundColor:"lightsteelblue",marginBottom:"16px",padding:"16px",paddingLeft:"32px"})},{children:[f(_,Object.assign({variant:"heading5"},{children:"Story notes:"})),f("ul",Object.assign({css:e=>({"> li":{marginTop:e.spacing(1)}})},{children:t.map((e=>f("li",{children:e},e)))}))]})),f("hr",{css:()=>({backgroundColor:"transparent",borderTop:"1px dotted lightgrey",marginBottom:"16px"})}),e]}),V=({children:e,loading:t})=>t?f(D,{animation:M.WAVE,variant:R.TEXT}):f("span",{children:e});export{X as P,U as S,V as a,z as f};
|