@shipengine/elements 2.11.1 → 2.13.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/add-funds-form/add-funds-form.d.ts +9 -1
- package/src/components/carrier-connection-card/carrier-connection-card.styles.d.ts +1 -1
- package/src/components/collapsible-panel/collapsible-panel.d.ts +15 -1
- package/src/components/field/date-picker/date-picker.d.ts +3 -1
- package/src/components/field/rate-select/rate-card/cost-breakdown/cost-breakdown.styles.d.ts +2 -1
- package/src/components/field/rate-select/rate-card/rate-card.styles.d.ts +1 -1
- package/src/components/field/select/select-with-categories.d.ts +1 -0
- package/src/components/grid-controller/grid-controller.styles.d.ts +8 -3
- package/src/components/grid-filters/components/label-id-filter/label-id-filter.styles.d.ts +1 -1
- package/src/components/grid-filters/grid-filters.d.ts +2 -1
- package/src/components/history/history-card/history-card.styles.d.ts +1 -1
- package/src/components/index.d.ts +1 -0
- package/src/components/save-status/save-status.d.ts +15 -1
- 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/label-display/label-card.styles.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 +41 -121
- 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/templates/theme-creator/theme-creator.styles.d.ts +1 -1
- 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 +47 -23
- package/src/elements/manage-carriers/manage-carriers.d.ts +25 -1
- package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +25 -1
- package/src/elements/manage-funding/manage-funding-element.d.ts +25 -1
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +25 -1
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +25 -1
- 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 +102 -49
- package/src/elements/select-label-layout/select-label-layout-element.d.ts +25 -1
- package/src/elements/shipment-summary/shipment-summary.d.ts +40 -8
- package/src/elements/shipments-grid/shipments-grid.d.ts +101 -21
- package/src/elements/theme-creator/theme-creator.d.ts +25 -1
- package/src/elements/transaction-history/transaction-history-element.d.ts +25 -1
- package/src/elements/unit-settings/unit-settings-element.d.ts +25 -1
- package/src/elements/vat-settings/vat-settings-element.d.ts +25 -1
- package/src/elements/void-label/components/actions/actions.d.ts +2 -1
- package/src/elements/void-label/void-label.d.ts +80 -25
- package/src/elements-provider/elements-context-provider.d.ts +10 -3
- package/src/elements-provider/elements-provider.d.ts +7 -2
- package/src/features/manage-carriers/index.d.ts +1 -0
- package/src/features/manage-carriers/manage-carriers.d.ts +12 -1
- package/src/features/manage-carriers/use-manage-carriers.d.ts +15 -0
- package/src/features/manage-funding/manage-funding.d.ts +10 -1
- package/src/features/vat-settings/use-vat-settings.d.ts +1 -1
- package/src/hooks/options/index.d.ts +1 -1
- package/src/hooks/options/use-insurance-provider-options.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/hooks/use-root-portal.d.ts +3 -2
- package/src/locales/en/index.d.ts +25 -1
- 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/utilities/styles.d.ts +6 -2
- package/src/workflows/account-settings/account-settings.d.ts +25 -1
- package/src/workflows/account-settings/use-get-panel-props.d.ts +2 -2
- package/src/workflows/carrier-services/carrier-services.d.ts +75 -2
- package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +48 -1
- package/src/workflows/label-workflow/label-workflow.d.ts +10 -0
- package/src/workflows/onboarding/onboarding.d.ts +33 -2
- 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
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export type UseImportSalesOrderProps = {
|
|
2
|
+
enabled: boolean;
|
|
2
3
|
externalOrderId?: string;
|
|
3
4
|
externalOrderNumber?: string;
|
|
4
5
|
orderSourceCode?: string;
|
|
5
6
|
salesOrderId?: string;
|
|
6
7
|
};
|
|
7
|
-
export declare const useImportSalesOrder: ({ externalOrderId, externalOrderNumber, orderSourceCode, salesOrderId, }: UseImportSalesOrderProps) => {
|
|
8
|
+
export declare const useImportSalesOrder: ({ enabled, externalOrderId, externalOrderNumber, orderSourceCode, salesOrderId, }: UseImportSalesOrderProps) => {
|
|
8
9
|
errors: import("@shipengine/react-api").CodedError[] | undefined;
|
|
9
10
|
isLoading: boolean;
|
|
10
11
|
salesOrder: import("@shipengine/react-api").SalesOrder | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SE } from "@shipengine/react-api";
|
|
2
|
-
import { ShippingPreset } from "../../../types";
|
|
2
|
+
import { ShipFromAddress, ShippingPreset } from "../../../types";
|
|
3
3
|
import { UseAddressProps } from "./use-address";
|
|
4
4
|
import { UsePresetsProps } from "./use-presets";
|
|
5
5
|
export type UseShipmentFormProps = {
|
|
@@ -10,9 +10,11 @@ export type UseShipmentFormProps = {
|
|
|
10
10
|
onShipmentUpdated?: (shipment: SE.SalesOrderShipment) => Promise<void> | void;
|
|
11
11
|
onSubmit?: (shipment: SE.SalesOrderShipment) => Promise<void> | void;
|
|
12
12
|
salesOrder?: SE.SalesOrder;
|
|
13
|
+
shipFromAddresses?: ShipFromAddress[];
|
|
13
14
|
shipment?: SE.SalesOrderShipment;
|
|
15
|
+
useWarehouses?: boolean;
|
|
14
16
|
};
|
|
15
|
-
export declare const useShipmentForm: ({ compatibleCountryCodes, onAddressValidation, onApplyPreset, onChangeAddress, onShipmentUpdated, onSubmit, salesOrder, shipment, }: UseShipmentFormProps) => {
|
|
17
|
+
export declare const useShipmentForm: ({ compatibleCountryCodes, onAddressValidation, onApplyPreset, onChangeAddress, onShipmentUpdated, onSubmit, salesOrder, shipment, shipFromAddresses: shipFromAddressesProp, useWarehouses, }: UseShipmentFormProps) => {
|
|
16
18
|
accountSettings: SE.ShipEngineAccountSettings | undefined;
|
|
17
19
|
addressLoading: boolean;
|
|
18
20
|
addressPreference: import("../../../components/templates").AddressPreference | undefined;
|
|
@@ -23,17 +25,24 @@ export declare const useShipmentForm: ({ compatibleCountryCodes, onAddressValida
|
|
|
23
25
|
errors: SE.CodedError[] | undefined;
|
|
24
26
|
onApplyPreset: (preset: ShippingPreset) => Promise<void>;
|
|
25
27
|
onChangeAddress: (shipTo: SE.Address, { shouldValidate }: import("../../../components/templates").OnChangeAddressOptions) => Promise<SE.SalesOrderShipment>;
|
|
26
|
-
|
|
28
|
+
onChangeShipFromAddress: (id?: string, shipFromAddress?: ShipFromAddress) => Promise<void>;
|
|
27
29
|
onSubmit: (values: Partial<SE.SalesOrderShipment>) => Promise<SE.SalesOrderShipment>;
|
|
28
|
-
|
|
30
|
+
onSubmitParseAddress: ({ fullAddress }: {
|
|
29
31
|
fullAddress: string;
|
|
30
32
|
}) => Promise<SE.AddressExtraction>;
|
|
31
|
-
onUpdateCustoms: (customs: SE.Customs, products: SE.Product[]) => Promise<SE.SalesOrderShipment>;
|
|
33
|
+
onUpdateCustoms: (customs: SE.Customs, products: SE.Product[], canadaDdpValue?: string | null | undefined) => Promise<SE.SalesOrderShipment>;
|
|
32
34
|
onUpdateTaxableIds: (taxIds: SE.TaxIdentifier[], onError: (errors: SE.CodedError[]) => void) => Promise<SE.SalesOrderShipment>;
|
|
33
35
|
parseAddressErrors: SE.CodedError[] | undefined;
|
|
34
36
|
resetParseAddress: () => void;
|
|
35
37
|
resetSalesOrderShipment: () => void;
|
|
36
38
|
salesOrder: SE.SalesOrder | undefined;
|
|
39
|
+
shipFromAddresses: {
|
|
40
|
+
addressId: string;
|
|
41
|
+
originAddress: SE.Address;
|
|
42
|
+
returnAddress: SE.Address;
|
|
43
|
+
isDefault: boolean;
|
|
44
|
+
name?: string | undefined;
|
|
45
|
+
}[] | undefined;
|
|
37
46
|
shipment: SE.SalesOrderShipment | undefined;
|
|
38
47
|
warehouses: SE.Warehouse[] | undefined;
|
|
39
48
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { SE } from "@shipengine/react-api";
|
|
2
3
|
import { UseShippingPresetsOptionsProps } from "../../hooks";
|
|
3
4
|
import { PurchaseLabelFeatures } from "../../utilities";
|
|
4
5
|
import { ConfigureShipmentProps } from "./configure-shipment";
|
|
5
|
-
import { UseConfigureShipmentProps } from "./hooks";
|
|
6
|
-
import { PurchaseLabelSalesOrderProps } from "./purchase-label-by-sales-order";
|
|
7
|
-
import { PurchaseLabelByShipmentProps } from "./purchase-label-by-shipment";
|
|
6
|
+
import { UseConfigureShipmentProps, UseImportSalesOrderProps } from "./hooks";
|
|
8
7
|
/**
|
|
9
8
|
* # Purchase Label Component Props
|
|
10
9
|
*
|
|
@@ -14,6 +13,25 @@ import { PurchaseLabelByShipmentProps } from "./purchase-label-by-shipment";
|
|
|
14
13
|
* @see {@link PurchaseLabel.Element | This prop types usage in `<PurchaseLabel.Element />`}
|
|
15
14
|
*/
|
|
16
15
|
export type PurchaseLabelCommonProps = {
|
|
16
|
+
/**
|
|
17
|
+
* The Currency used through out the label purchase process. Default to USD
|
|
18
|
+
*/
|
|
19
|
+
currency?: SE.Currency;
|
|
20
|
+
/**
|
|
21
|
+
* A unique ID assigned during the creation of a sales order. It can be used to locate the
|
|
22
|
+
* sales order and any subsequent shipments related to that order.
|
|
23
|
+
*/
|
|
24
|
+
externalOrderId?: UseImportSalesOrderProps["externalOrderId"];
|
|
25
|
+
/**
|
|
26
|
+
* A unique ID assigned during the creation of a sales order. It can be used to locate the
|
|
27
|
+
* sales order and any subsequent shipments related to that order.
|
|
28
|
+
*/
|
|
29
|
+
externalOrderNumber?: UseImportSalesOrderProps["externalOrderNumber"];
|
|
30
|
+
/**
|
|
31
|
+
* A unique ID assigned during the creation of a sales order. It can be used to locate the
|
|
32
|
+
* sales order and any subsequent shipments related to that order.
|
|
33
|
+
*/
|
|
34
|
+
externalShipmentId?: string;
|
|
17
35
|
/**
|
|
18
36
|
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
19
37
|
*/
|
|
@@ -95,6 +113,10 @@ export type PurchaseLabelCommonProps = {
|
|
|
95
113
|
* the formatted address that we return after validation.
|
|
96
114
|
*/
|
|
97
115
|
onToggleAddressPreferenceDisclosure?: ConfigureShipmentProps["onToggleAddressPreferenceDisclosure"];
|
|
116
|
+
/**
|
|
117
|
+
* A unique Id refering the API code used to identify the type of order source, e.g. "amazon_ca"
|
|
118
|
+
*/
|
|
119
|
+
orderSourceCode?: UseImportSalesOrderProps["orderSourceCode"];
|
|
98
120
|
/**
|
|
99
121
|
* `preferredServiceCodes` is an array of service codes you would like to be marked as preferred. The services
|
|
100
122
|
* codes corresponding rate will get the same UI enhancements as the rates received from getPreferredRates.
|
|
@@ -105,6 +127,19 @@ export type PurchaseLabelCommonProps = {
|
|
|
105
127
|
* purchasing a label. e.g. `4x6`
|
|
106
128
|
*/
|
|
107
129
|
printLabelLayout?: ConfigureShipmentProps["printLabelLayout"];
|
|
130
|
+
/**
|
|
131
|
+
* A unique Id used to indentify a ShipEngine Sales Order
|
|
132
|
+
*/
|
|
133
|
+
salesOrderId?: UseImportSalesOrderProps["salesOrderId"];
|
|
134
|
+
/**
|
|
135
|
+
* `shipFromAddresses` is an array of objects that contain the ship from and return to addresses to be used when purchasing a label.
|
|
136
|
+
* This can be used in lieu of a `warehouseId` if initializing the Purchase Label Element without a pre-existing shipment or sales order.
|
|
137
|
+
*/
|
|
138
|
+
shipFromAddresses?: ConfigureShipmentProps["shipFromAddresses"];
|
|
139
|
+
/**
|
|
140
|
+
* A unique Id used to indentify a ShipEngine Shipment
|
|
141
|
+
*/
|
|
142
|
+
shipmentId?: string;
|
|
108
143
|
/**
|
|
109
144
|
* `shippingPresets` is an object that contains configured shipment details/specs
|
|
110
145
|
* (dimensions, shipping service, etc) that can be applied to a shipment when purchasing a label.
|
|
@@ -119,13 +154,9 @@ export type PurchaseLabelCommonProps = {
|
|
|
119
154
|
/**
|
|
120
155
|
* # PurchaseLabel Element Props
|
|
121
156
|
*
|
|
122
|
-
* - The Purchase Label `ElementProps` is a `union` of the `PurchaseLabelByShipmentProps` and
|
|
123
|
-
* `PurchaseLabelSalesOrderProps` prop types. This is for ease of use when purchasing labels by
|
|
124
|
-
* `shipment` or `sales order`.
|
|
125
|
-
*
|
|
126
157
|
* @see {@link PurchaseLabel.Element | This prop types usage in `<PurchaseLabel />`}
|
|
127
158
|
*/
|
|
128
|
-
export type ElementProps =
|
|
159
|
+
export type ElementProps = PurchaseLabelCommonProps;
|
|
129
160
|
/**
|
|
130
161
|
* # Purchase Label Component
|
|
131
162
|
*
|
|
@@ -150,7 +181,7 @@ export type ElementProps = PurchaseLabelByShipmentProps | PurchaseLabelSalesOrde
|
|
|
150
181
|
*
|
|
151
182
|
* @see {@link PurchaseLabel.Element | The **Element** created to render `<PurchaseLabel />`}
|
|
152
183
|
*/
|
|
153
|
-
export declare const Component: ({ features, ...props }: ElementProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
184
|
+
export declare const Component: ({ features, externalOrderId, externalOrderNumber, externalShipmentId, onLoad, onShipmentUpdated, orderSourceCode, salesOrderId, shipFromAddresses, warehouseId, shipmentId, printLabelLayout, currency: currencyProp, ...props }: ElementProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
154
185
|
/**
|
|
155
186
|
* # Registered Purchase Label Element
|
|
156
187
|
*
|
|
@@ -189,7 +220,7 @@ export declare const Component: ({ features, ...props }: ElementProps) => import
|
|
|
189
220
|
*
|
|
190
221
|
* @see {@link ShipmentSummary.Element | The next step in the label purchase workflow `<ShipmentSummary.Element />`}
|
|
191
222
|
*/
|
|
192
|
-
export declare const Element: ({ resources, ...props }:
|
|
223
|
+
export declare const Element: ({ resources, ...props }: PurchaseLabelCommonProps & {
|
|
193
224
|
resources?: {
|
|
194
225
|
en: {
|
|
195
226
|
"wallet-history": {
|
|
@@ -221,6 +252,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
221
252
|
};
|
|
222
253
|
errorMessages: {
|
|
223
254
|
labelIdRequired: string;
|
|
255
|
+
request_failed_to_complete: string;
|
|
224
256
|
};
|
|
225
257
|
resultMessages: {
|
|
226
258
|
approved: string;
|
|
@@ -230,7 +262,10 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
230
262
|
refund_process: string;
|
|
231
263
|
refund_rules: string;
|
|
232
264
|
resultTitles: {
|
|
233
|
-
approved: string;
|
|
265
|
+
approved: string; /**
|
|
266
|
+
* A unique ID assigned during the creation of a sales order. It can be used to locate the
|
|
267
|
+
* sales order and any subsequent shipments related to that order.
|
|
268
|
+
*/
|
|
234
269
|
rejected: string;
|
|
235
270
|
};
|
|
236
271
|
voidedOn: string;
|
|
@@ -406,6 +441,14 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
406
441
|
location_fee: string;
|
|
407
442
|
oversize: string;
|
|
408
443
|
returns: string;
|
|
444
|
+
/**
|
|
445
|
+
* # Purchase Label Component Props
|
|
446
|
+
*
|
|
447
|
+
* These are the shared props that will be passed into the `<PurchaseLabel.Element />`, and work
|
|
448
|
+
* for either shipment-based or sales order-based label purchasing.
|
|
449
|
+
*
|
|
450
|
+
* @see {@link PurchaseLabel.Element | This prop types usage in `<PurchaseLabel.Element />`}
|
|
451
|
+
*/
|
|
409
452
|
notifications: string;
|
|
410
453
|
tip: string;
|
|
411
454
|
duties_and_taxes: string;
|
|
@@ -475,10 +518,6 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
475
518
|
addShipToAddress: string;
|
|
476
519
|
warehouse: string;
|
|
477
520
|
weight: {
|
|
478
|
-
/**
|
|
479
|
-
* `onBeforeLabelCreate` is an async/sync callback function that will be invoked before every
|
|
480
|
-
* label purchase.
|
|
481
|
-
*/
|
|
482
521
|
whole: string;
|
|
483
522
|
fractional: string;
|
|
484
523
|
};
|
|
@@ -506,7 +545,10 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
506
545
|
uspsMediaMailAcknowledgement: string;
|
|
507
546
|
uspsFirstClassMailAcknowledgement_leof: string;
|
|
508
547
|
rateSavings: string;
|
|
509
|
-
upsGroundSaverTermsAcknowledgement: string;
|
|
548
|
+
upsGroundSaverTermsAcknowledgement: string; /**
|
|
549
|
+
* `onChangeShipmentFormMode` is an async/sync callback function that will be invoked each time
|
|
550
|
+
* the user toggles the `Shipment Form Mode` between `Browse Rates` and `Selected Rate`.
|
|
551
|
+
*/
|
|
510
552
|
dhlExpressTermsAcknowledgement: string;
|
|
511
553
|
noRateService: string;
|
|
512
554
|
};
|
|
@@ -516,18 +558,14 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
516
558
|
b2c: string;
|
|
517
559
|
c2b: string;
|
|
518
560
|
c2c: string;
|
|
519
|
-
b2b: string;
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
561
|
+
b2b: string; /**
|
|
562
|
+
* `onLabelCreateSuccess` is an async/sync callback provided by the client that is invoked if the
|
|
563
|
+
* label is successfully created/purchased.
|
|
564
|
+
*/
|
|
565
|
+
};
|
|
524
566
|
notAtRisk: string;
|
|
525
567
|
notAtRiskShipmentTootip: string;
|
|
526
568
|
};
|
|
527
|
-
/**
|
|
528
|
-
* `onShipmentUpdated` is an async/sync callback function that will be invoked each time a
|
|
529
|
-
* shipment is updated with a new `ShipTo/ShipFrom Address`, `rate`, `preset`, etc.
|
|
530
|
-
*/
|
|
531
569
|
requirements: {
|
|
532
570
|
noWarehouse: string;
|
|
533
571
|
noCarrier: string;
|
|
@@ -561,7 +599,9 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
561
599
|
windsorFramework: string;
|
|
562
600
|
shipment: string;
|
|
563
601
|
rate_one: string;
|
|
564
|
-
rate_other: string;
|
|
602
|
+
rate_other: string; /**
|
|
603
|
+
* A unique Id refering the API code used to identify the type of order source, e.g. "amazon_ca"
|
|
604
|
+
*/
|
|
565
605
|
payment: string;
|
|
566
606
|
};
|
|
567
607
|
};
|
|
@@ -790,6 +830,8 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
790
830
|
status: string;
|
|
791
831
|
trackingStatus: string;
|
|
792
832
|
labelId: string;
|
|
833
|
+
externalOrderId: string;
|
|
834
|
+
externalShipmentId: string;
|
|
793
835
|
};
|
|
794
836
|
empty: {
|
|
795
837
|
title: string;
|
|
@@ -852,14 +894,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
852
894
|
deleteCarrierErrorTitle: string;
|
|
853
895
|
deleteCarrierErrorMessage: string;
|
|
854
896
|
loadingDeletingCarrier: string;
|
|
855
|
-
};
|
|
856
|
-
*`getPreferredRates is an async/sync optional callback function that will be invoked each time rates are caculated.
|
|
857
|
-
* This is an optional callback function that returns an array of ShipEngine rates. The rates from this response will
|
|
858
|
-
* be spliced into the normal get rates response the Elements makes internally. If a service code matches a service
|
|
859
|
-
* code on a rate returned from getPreferredRates, the rate returned from getPreferredRates will not be shown in the
|
|
860
|
-
* rate form. These preferred rates will be displayed with a set of UI enhancements that incude a dynamic cost savings
|
|
861
|
-
* flag and green checkmark when the rate is selected.
|
|
862
|
-
*/
|
|
897
|
+
};
|
|
863
898
|
common: {
|
|
864
899
|
actions: {
|
|
865
900
|
add: string;
|
|
@@ -899,6 +934,9 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
899
934
|
subFields: {
|
|
900
935
|
optional: string;
|
|
901
936
|
};
|
|
937
|
+
/**
|
|
938
|
+
* The Currency used through out the label purchase process. Default to USD
|
|
939
|
+
*/
|
|
902
940
|
parserFields: {
|
|
903
941
|
fullAddress: string;
|
|
904
942
|
};
|
|
@@ -947,10 +985,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
947
985
|
message: string;
|
|
948
986
|
};
|
|
949
987
|
address: {
|
|
950
|
-
message: string;
|
|
951
|
-
* `onChangeAddress` is an async/sync callback function that will be invoked each time a
|
|
952
|
-
* `Ship To Address` or `Ship From Address` has been updated.
|
|
953
|
-
*/
|
|
988
|
+
message: string;
|
|
954
989
|
title: string;
|
|
955
990
|
};
|
|
956
991
|
};
|
|
@@ -967,10 +1002,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
967
1002
|
addDeclaration: string;
|
|
968
1003
|
noResults: string;
|
|
969
1004
|
contents: {
|
|
970
|
-
documents: string;
|
|
971
|
-
* `onLabelCreateFailure` is an async/sync callback function that will be invoked each time a
|
|
972
|
-
* label purchase fails.
|
|
973
|
-
*/
|
|
1005
|
+
documents: string;
|
|
974
1006
|
gift: string;
|
|
975
1007
|
merchandise: string;
|
|
976
1008
|
returnedGoods: string;
|
|
@@ -997,13 +1029,8 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
997
1029
|
description: string;
|
|
998
1030
|
harmonizedTariffCode: string;
|
|
999
1031
|
ifDeliveryFails: string;
|
|
1032
|
+
dutiesTaxes: string;
|
|
1000
1033
|
quantity: string;
|
|
1001
|
-
/**
|
|
1002
|
-
* `onToggleAddressPreferenceDisclosure` is an async/sync callback function that will be invoked
|
|
1003
|
-
* each time the user toggles the `Address Preference` disclosure. This disclosure component
|
|
1004
|
-
* allows the user to select whether they would like to use the address they entered, or
|
|
1005
|
-
* the formatted address that we return after validation.
|
|
1006
|
-
*/
|
|
1007
1034
|
sku: string;
|
|
1008
1035
|
value: string;
|
|
1009
1036
|
valueQuantity: string;
|
|
@@ -1017,6 +1044,23 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
1017
1044
|
returnToSender: string;
|
|
1018
1045
|
treatAsAbandoned: string;
|
|
1019
1046
|
};
|
|
1047
|
+
canadaDeliveredDuty: {
|
|
1048
|
+
senderPrepay: string;
|
|
1049
|
+
recipientPays: string;
|
|
1050
|
+
tooltip: {
|
|
1051
|
+
title: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* `onToggleAddressPreferenceDisclosure` is an async/sync callback function that will be invoked
|
|
1054
|
+
* each time the user toggles the `Address Preference` disclosure. This disclosure component
|
|
1055
|
+
* allows the user to select whether they would like to use the address they entered, or
|
|
1056
|
+
* the formatted address that we return after validation.
|
|
1057
|
+
*/
|
|
1058
|
+
restriction: string;
|
|
1059
|
+
requirement1: string;
|
|
1060
|
+
requirement2: string;
|
|
1061
|
+
requirement3: string;
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
1020
1064
|
removeAllDeclarations: string;
|
|
1021
1065
|
total: string;
|
|
1022
1066
|
};
|
|
@@ -1166,6 +1210,9 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
1166
1210
|
tooManyCharacters: string;
|
|
1167
1211
|
requiredShipmentId: string;
|
|
1168
1212
|
requiredLabelId: string;
|
|
1213
|
+
heightExceeded: string;
|
|
1214
|
+
widthExceeded: string;
|
|
1215
|
+
lengthExceeded: string;
|
|
1169
1216
|
};
|
|
1170
1217
|
shippingPresets: {
|
|
1171
1218
|
apply: string;
|
|
@@ -1209,6 +1256,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
1209
1256
|
edit: string;
|
|
1210
1257
|
remove: string;
|
|
1211
1258
|
viewDetails: string;
|
|
1259
|
+
cancelShipment: string;
|
|
1212
1260
|
};
|
|
1213
1261
|
};
|
|
1214
1262
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
@@ -1239,7 +1287,12 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
1239
1287
|
transactionHistory: string;
|
|
1240
1288
|
adjustmentHistory: string;
|
|
1241
1289
|
warehouses: string;
|
|
1242
|
-
carriers:
|
|
1290
|
+
carriers: {
|
|
1291
|
+
title: string;
|
|
1292
|
+
customStatusMessages: {
|
|
1293
|
+
success: string;
|
|
1294
|
+
};
|
|
1295
|
+
};
|
|
1243
1296
|
externalCarriers: string;
|
|
1244
1297
|
labelLayout: string;
|
|
1245
1298
|
unitSettings: string;
|
|
@@ -32,6 +32,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
32
32
|
};
|
|
33
33
|
errorMessages: {
|
|
34
34
|
labelIdRequired: string;
|
|
35
|
+
request_failed_to_complete: string;
|
|
35
36
|
};
|
|
36
37
|
resultMessages: {
|
|
37
38
|
approved: string;
|
|
@@ -590,6 +591,8 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
590
591
|
status: string;
|
|
591
592
|
trackingStatus: string;
|
|
592
593
|
labelId: string;
|
|
594
|
+
externalOrderId: string;
|
|
595
|
+
externalShipmentId: string;
|
|
593
596
|
};
|
|
594
597
|
empty: {
|
|
595
598
|
title: string;
|
|
@@ -784,6 +787,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
784
787
|
description: string;
|
|
785
788
|
harmonizedTariffCode: string;
|
|
786
789
|
ifDeliveryFails: string;
|
|
790
|
+
dutiesTaxes: string;
|
|
787
791
|
quantity: string;
|
|
788
792
|
sku: string;
|
|
789
793
|
value: string;
|
|
@@ -798,6 +802,17 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
798
802
|
returnToSender: string;
|
|
799
803
|
treatAsAbandoned: string;
|
|
800
804
|
};
|
|
805
|
+
canadaDeliveredDuty: {
|
|
806
|
+
senderPrepay: string;
|
|
807
|
+
recipientPays: string;
|
|
808
|
+
tooltip: {
|
|
809
|
+
title: string;
|
|
810
|
+
restriction: string;
|
|
811
|
+
requirement1: string;
|
|
812
|
+
requirement2: string;
|
|
813
|
+
requirement3: string;
|
|
814
|
+
};
|
|
815
|
+
};
|
|
801
816
|
removeAllDeclarations: string;
|
|
802
817
|
total: string;
|
|
803
818
|
};
|
|
@@ -947,6 +962,9 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
947
962
|
tooManyCharacters: string;
|
|
948
963
|
requiredShipmentId: string;
|
|
949
964
|
requiredLabelId: string;
|
|
965
|
+
heightExceeded: string;
|
|
966
|
+
widthExceeded: string;
|
|
967
|
+
lengthExceeded: string;
|
|
950
968
|
};
|
|
951
969
|
shippingPresets: {
|
|
952
970
|
apply: string;
|
|
@@ -990,6 +1008,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
990
1008
|
edit: string;
|
|
991
1009
|
remove: string;
|
|
992
1010
|
viewDetails: string;
|
|
1011
|
+
cancelShipment: string;
|
|
993
1012
|
};
|
|
994
1013
|
};
|
|
995
1014
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
@@ -1020,7 +1039,12 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
1020
1039
|
transactionHistory: string;
|
|
1021
1040
|
adjustmentHistory: string;
|
|
1022
1041
|
warehouses: string;
|
|
1023
|
-
carriers:
|
|
1042
|
+
carriers: {
|
|
1043
|
+
title: string;
|
|
1044
|
+
customStatusMessages: {
|
|
1045
|
+
success: string;
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1024
1048
|
externalCarriers: string;
|
|
1025
1049
|
labelLayout: string;
|
|
1026
1050
|
unitSettings: string;
|
|
@@ -121,11 +121,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
121
121
|
};
|
|
122
122
|
errorMessages: {
|
|
123
123
|
labelIdRequired: string;
|
|
124
|
+
request_failed_to_complete: string;
|
|
124
125
|
};
|
|
125
126
|
resultMessages: {
|
|
126
127
|
approved: string;
|
|
127
128
|
rejected: string;
|
|
128
|
-
dpdwallet: string;
|
|
129
|
+
dpdwallet: string; /**
|
|
130
|
+
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
131
|
+
*/
|
|
129
132
|
};
|
|
130
133
|
refund_process: string;
|
|
131
134
|
refund_rules: string;
|
|
@@ -688,6 +691,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
688
691
|
status: string;
|
|
689
692
|
trackingStatus: string;
|
|
690
693
|
labelId: string;
|
|
694
|
+
externalOrderId: string;
|
|
695
|
+
externalShipmentId: string;
|
|
691
696
|
};
|
|
692
697
|
empty: {
|
|
693
698
|
title: string;
|
|
@@ -702,7 +707,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
702
707
|
voided: string;
|
|
703
708
|
error: string;
|
|
704
709
|
completed: string;
|
|
705
|
-
processing: string;
|
|
710
|
+
processing: string; /**
|
|
711
|
+
* `onClickPrintLabel` is a callback function that will be invoked when the user clicks the
|
|
712
|
+
* `Print Label` button.
|
|
713
|
+
*/
|
|
706
714
|
};
|
|
707
715
|
trackingStatus: {
|
|
708
716
|
unknown: string;
|
|
@@ -714,10 +722,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
714
722
|
title: string;
|
|
715
723
|
print: string;
|
|
716
724
|
void: string;
|
|
717
|
-
printForms: string;
|
|
718
|
-
* `onClickPurchaseLabel` is a callback function that will be invoked when the user clicks the
|
|
719
|
-
* `Purchase Label` button.
|
|
720
|
-
*/
|
|
725
|
+
printForms: string;
|
|
721
726
|
};
|
|
722
727
|
errorMessages: {
|
|
723
728
|
title: string;
|
|
@@ -910,7 +915,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
910
915
|
description: string;
|
|
911
916
|
harmonizedTariffCode: string;
|
|
912
917
|
ifDeliveryFails: string;
|
|
913
|
-
|
|
918
|
+
dutiesTaxes: string;
|
|
919
|
+
quantity: string; /**
|
|
920
|
+
* # Shipment Summary Element Props
|
|
921
|
+
*
|
|
922
|
+
* - These are the base props that will be passed into the `<ShipmentSummary />` element.
|
|
923
|
+
*
|
|
924
|
+
* @see {@link ShipmentSummary.Element | See the full type that `typeof Element` will return}
|
|
925
|
+
*/
|
|
914
926
|
sku: string;
|
|
915
927
|
value: string;
|
|
916
928
|
valueQuantity: string;
|
|
@@ -924,6 +936,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
924
936
|
returnToSender: string;
|
|
925
937
|
treatAsAbandoned: string;
|
|
926
938
|
};
|
|
939
|
+
canadaDeliveredDuty: {
|
|
940
|
+
senderPrepay: string;
|
|
941
|
+
recipientPays: string;
|
|
942
|
+
tooltip: {
|
|
943
|
+
title: string;
|
|
944
|
+
restriction: string;
|
|
945
|
+
requirement1: string;
|
|
946
|
+
requirement2: string;
|
|
947
|
+
requirement3: string;
|
|
948
|
+
};
|
|
949
|
+
};
|
|
927
950
|
removeAllDeclarations: string;
|
|
928
951
|
total: string;
|
|
929
952
|
};
|
|
@@ -1073,6 +1096,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
1073
1096
|
tooManyCharacters: string;
|
|
1074
1097
|
requiredShipmentId: string;
|
|
1075
1098
|
requiredLabelId: string;
|
|
1099
|
+
heightExceeded: string;
|
|
1100
|
+
widthExceeded: string;
|
|
1101
|
+
lengthExceeded: string;
|
|
1076
1102
|
};
|
|
1077
1103
|
shippingPresets: {
|
|
1078
1104
|
apply: string;
|
|
@@ -1116,6 +1142,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
1116
1142
|
edit: string;
|
|
1117
1143
|
remove: string;
|
|
1118
1144
|
viewDetails: string;
|
|
1145
|
+
cancelShipment: string;
|
|
1119
1146
|
};
|
|
1120
1147
|
};
|
|
1121
1148
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
@@ -1146,7 +1173,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
1146
1173
|
transactionHistory: string;
|
|
1147
1174
|
adjustmentHistory: string;
|
|
1148
1175
|
warehouses: string;
|
|
1149
|
-
carriers:
|
|
1176
|
+
carriers: {
|
|
1177
|
+
title: string;
|
|
1178
|
+
customStatusMessages: {
|
|
1179
|
+
success: string;
|
|
1180
|
+
};
|
|
1181
|
+
};
|
|
1150
1182
|
externalCarriers: string;
|
|
1151
1183
|
labelLayout: string;
|
|
1152
1184
|
unitSettings: string;
|