@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
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SE } from "@shipengine/js-api";
|
|
3
|
+
import { ShipFromAddress } from "../../types";
|
|
4
|
+
import { AddressParserPayload } from "../templates";
|
|
5
|
+
export type ShipFromAddressFormProps<T = undefined> = {
|
|
6
|
+
onCancel?: () => void;
|
|
7
|
+
onCancelParse?: () => void;
|
|
8
|
+
onSubmit: (payload: Partial<ShipFromAddress> & Pick<ShipFromAddress, "originAddress">) => void;
|
|
9
|
+
onSubmitParse?: (payload: AddressParserPayload) => Promise<SE.AddressExtraction | undefined>;
|
|
10
|
+
parseAddressErrors?: SE.CodedError[];
|
|
11
|
+
resetParseAddress?: () => void;
|
|
12
|
+
shipFromAddress?: ShipFromAddress;
|
|
13
|
+
} & ({
|
|
14
|
+
formId: string;
|
|
15
|
+
portalRef: React.RefObject<T>;
|
|
16
|
+
} | {
|
|
17
|
+
formId?: string;
|
|
18
|
+
portalRef?: never;
|
|
19
|
+
});
|
|
20
|
+
export declare const ShipFromAddressForm: <T extends Element>({ shipFromAddress, onSubmit, onSubmitParse, resetParseAddress, onCancelParse, parseAddressErrors, onCancel, formId, portalRef, }: ShipFromAddressFormProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
getHeaderTypography: (isAddressParserOpen: boolean) => (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
3
|
+
marginBottom?: number | undefined;
|
|
4
|
+
width: string;
|
|
5
|
+
};
|
|
6
|
+
getHeaderWrapper: (isAddressParserOpen: boolean) => (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
7
|
+
display: "flex";
|
|
8
|
+
flexDirection: "column" | "row";
|
|
9
|
+
justifyContent: "space-between";
|
|
10
|
+
paddingBottom: number;
|
|
11
|
+
width: string;
|
|
12
|
+
};
|
|
13
|
+
pasteList: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
14
|
+
flexShrink: number;
|
|
15
|
+
fontWeight: number;
|
|
16
|
+
};
|
|
17
|
+
pasteWrapper: () => {
|
|
18
|
+
flexShrink: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -11,7 +11,7 @@ export * from "./rate-form";
|
|
|
11
11
|
export * from "./shipment-form";
|
|
12
12
|
export * from "./shipment";
|
|
13
13
|
export * from "./suspend-sales-order";
|
|
14
|
-
export * from "./suspend-
|
|
14
|
+
export * from "./suspend-purchase";
|
|
15
15
|
export * from "./theme-creator";
|
|
16
16
|
export * from "./wallet-form";
|
|
17
17
|
export * from "./register-funding-source-carrier-form";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { SE } from "@shipengine/react-api";
|
|
2
2
|
import { ServicePointSearchQuery } from "../../../hooks";
|
|
3
3
|
import { PreferredRatesResponse } from "../../../types";
|
|
4
|
-
import { RateFormFeatures } from "../../../utilities";
|
|
4
|
+
import { PurchaseLabelFeatures, RateFormFeatures } from "../../../utilities";
|
|
5
5
|
export type RateFormProps = {
|
|
6
6
|
carriers?: SE.Carrier[];
|
|
7
7
|
currency: SE.Currency;
|
|
8
|
+
defaultFeatures?: PurchaseLabelFeatures;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
displayableRateErrors?: string[];
|
|
10
11
|
displayableSaveRateErrors?: string[];
|
|
@@ -31,4 +32,4 @@ export type RateFormProps = {
|
|
|
31
32
|
shipment?: SE.SalesOrderShipment;
|
|
32
33
|
showVatFeatures?: boolean;
|
|
33
34
|
};
|
|
34
|
-
export declare const RateForm: ({ carriers, currency, disabled, displayableRateErrors, displayableSaveRateErrors, displayableShipmentErrors, errors, features, fetchServicePoints, isLoading, labelErrors, labels, labelsLoading, listServicePointsErrors, onSave, onSelectRate, onSubmit, onVatRegistrationComplete, preferredRates, preferredServiceCodes, rates, salesOrder, servicePointSearchQuery, servicePointsFetching, servicePointsResponse, shipment, showVatFeatures, }: RateFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
35
|
+
export declare const RateForm: ({ carriers, currency, defaultFeatures, disabled, displayableRateErrors, displayableSaveRateErrors, displayableShipmentErrors, errors, features, fetchServicePoints, isLoading, labelErrors, labels, labelsLoading, listServicePointsErrors, onSave, onSelectRate, onSubmit, onVatRegistrationComplete, preferredRates, preferredServiceCodes, rates, salesOrder, servicePointSearchQuery, servicePointsFetching, servicePointsResponse, shipment, showVatFeatures, }: RateFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -4,8 +4,9 @@ import { ShipmentFormProps } from "../../shipment-form";
|
|
|
4
4
|
import { ShipmentFormFields } from "../../shipment-schema";
|
|
5
5
|
type CustomsFormsProps = {
|
|
6
6
|
form: UseFormReturn<ShipmentFormFields>;
|
|
7
|
+
isCanadaDeliveredDutyEligible: boolean;
|
|
7
8
|
requiresWindsorFramework?: boolean;
|
|
8
9
|
shipment: SE.SalesOrderShipment;
|
|
9
10
|
} & Pick<ShipmentFormProps, "currency" | "onDirty" | "onUpdateCustoms" | "onUpdateTaxableIds">;
|
|
10
|
-
export declare const CustomsForms: ({ form, currency, onUpdateCustoms, onUpdateTaxableIds, shipment, onDirty, requiresWindsorFramework, }: CustomsFormsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const CustomsForms: ({ form, currency, onUpdateCustoms, onUpdateTaxableIds, isCanadaDeliveredDutyEligible, shipment, onDirty, requiresWindsorFramework, }: CustomsFormsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SE } from "@shipengine/react-api";
|
|
3
3
|
import { UseShippingPresetsOptionsProps } from "../../../hooks";
|
|
4
|
-
import { ShippingPreset } from "../../../types";
|
|
5
|
-
import { ShipmentFormFeatures } from "../../../utilities";
|
|
4
|
+
import { ShipFromAddress, ShippingPreset } from "../../../types";
|
|
5
|
+
import { PurchaseLabelFeatures, ShipmentFormFeatures } from "../../../utilities";
|
|
6
6
|
import { AddressParserPayload } from "../address-parser";
|
|
7
7
|
import { AddressPreference, AddressPreferenceDisplayProps } from "../address-preference-display";
|
|
8
8
|
export type OnChangeAddressOptions = {
|
|
@@ -17,6 +17,7 @@ export type ShipmentFormProps = {
|
|
|
17
17
|
charsetWarning?: CharsetWarning;
|
|
18
18
|
currency: SE.Currency;
|
|
19
19
|
customPackageTypes?: SE.CustomPackage[];
|
|
20
|
+
defaultFeatures?: PurchaseLabelFeatures;
|
|
20
21
|
errors?: SE.CodedError[];
|
|
21
22
|
features?: ShipmentFormFeatures;
|
|
22
23
|
hydrateRef: React.MutableRefObject<((updatedShipment: SE.SalesOrderShipment) => void) | undefined>;
|
|
@@ -29,16 +30,19 @@ export type ShipmentFormProps = {
|
|
|
29
30
|
previousMode: ShipmentFormMode;
|
|
30
31
|
selectedMode: ShipmentFormMode;
|
|
31
32
|
}) => Promise<void> | void;
|
|
32
|
-
|
|
33
|
+
onChangeShipFromAddress: (id?: string, shipFromAddress?: ShipFromAddress) => Promise<void>;
|
|
33
34
|
onDirty: () => void;
|
|
34
35
|
onSubmit: (values: Partial<SE.SalesOrderShipment>) => Promise<SE.SalesOrderShipment | undefined>;
|
|
35
|
-
|
|
36
|
+
onSubmitParseAddress: (payload: AddressParserPayload) => Promise<SE.AddressExtraction | undefined>;
|
|
36
37
|
onToggleAddressPreferenceDisclosure?: AddressPreferenceDisplayProps["onToggleDisclosure"];
|
|
37
|
-
onUpdateCustoms?: (customs: SE.Customs, products: SE.Product[]) => Promise<SE.SalesOrderShipment | undefined>;
|
|
38
|
+
onUpdateCustoms?: (customs: SE.Customs, products: SE.Product[], canadaDeliveredDuty?: string | null) => Promise<SE.SalesOrderShipment | undefined>;
|
|
38
39
|
onUpdateTaxableIds?: (taxIds: SE.TaxIdentifier[], onError: (errors: SE.CodedError[]) => void) => Promise<SE.SalesOrderShipment>;
|
|
39
40
|
parseAddressErrors?: SE.CodedError[];
|
|
40
41
|
resetParseAddress?: () => void;
|
|
41
42
|
salesOrder?: SE.SalesOrder;
|
|
43
|
+
shipFromAddresses?: (ShipFromAddress & {
|
|
44
|
+
addressId: string;
|
|
45
|
+
})[];
|
|
42
46
|
shipment?: SE.SalesOrderShipment;
|
|
43
47
|
shippingPresets?: UseShippingPresetsOptionsProps;
|
|
44
48
|
warehouseId?: string;
|
|
@@ -49,4 +53,4 @@ export type CharsetWarning = {
|
|
|
49
53
|
message: string;
|
|
50
54
|
title?: string;
|
|
51
55
|
};
|
|
52
|
-
export declare const ShipmentForm: ({ accountSettings, addressLoading, addressPreference, charsetWarning, carriers, customPackageTypes, currency, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode,
|
|
56
|
+
export declare const ShipmentForm: ({ accountSettings, addressLoading, addressPreference, charsetWarning, carriers, customPackageTypes, currency, defaultFeatures, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode, onChangeShipFromAddress, onDirty, onSubmit, onSubmitParseAddress, onToggleAddressPreferenceDisclosure, onUpdateCustoms, onUpdateTaxableIds, parseAddressErrors, resetParseAddress, salesOrder, shipment, shipFromAddresses, shippingPresets, warehouseId, warehouses, }: ShipmentFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { SE } from "@shipengine/react-api";
|
|
3
|
+
import { CanadaDeliveredDutyOptions } from "../../../types";
|
|
3
4
|
type GetShipmentSchemaOptions = {
|
|
4
5
|
dimensionsUnit?: SE.DimensionUnit;
|
|
5
6
|
isContentDescriptionRequired?: boolean;
|
|
6
7
|
isCustomsRequired?: boolean;
|
|
7
8
|
requireMeasurements?: boolean;
|
|
8
9
|
requiresWindsorFramework?: boolean;
|
|
9
|
-
warehouses?: SE.Warehouse[];
|
|
10
10
|
weightUnit?: SE.WeightUnit;
|
|
11
11
|
};
|
|
12
|
-
export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionRequired, requiresWindsorFramework, isCustomsRequired, requireMeasurements,
|
|
12
|
+
export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionRequired, requiresWindsorFramework, isCustomsRequired, requireMeasurements, weightUnit, }?: GetShipmentSchemaOptions) => z.ZodEffects<z.ZodDiscriminatedUnion<"__mode", z.Primitive, z.ZodObject<z.extendShape<{
|
|
13
|
+
addressId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
14
|
advancedOptions: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
14
15
|
additionalHandling: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
canadaDeliveredDuty: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof CanadaDeliveredDutyOptions>>>>;
|
|
15
17
|
windsorFrameworkDetails: z.ZodObject<{
|
|
16
18
|
movementIndicator: z.ZodNativeEnum<typeof SE.MovementIndicator>;
|
|
17
19
|
notAtRisk: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -33,6 +35,7 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
33
35
|
}>>;
|
|
34
36
|
}, "strip", z.ZodTypeAny, {
|
|
35
37
|
additionalHandling?: boolean | undefined;
|
|
38
|
+
canadaDeliveredDuty?: CanadaDeliveredDutyOptions | null | undefined;
|
|
36
39
|
windsorFrameworkDetails?: {
|
|
37
40
|
movementIndicator: SE.MovementIndicator;
|
|
38
41
|
notAtRisk: boolean;
|
|
@@ -42,6 +45,7 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
42
45
|
} | undefined;
|
|
43
46
|
}, {
|
|
44
47
|
additionalHandling?: boolean | undefined;
|
|
48
|
+
canadaDeliveredDuty?: CanadaDeliveredDutyOptions | null | undefined;
|
|
45
49
|
windsorFrameworkDetails?: {
|
|
46
50
|
notAtRisk?: boolean | undefined;
|
|
47
51
|
movementIndicator: SE.MovementIndicator;
|
|
@@ -348,12 +352,13 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
348
352
|
}>>>;
|
|
349
353
|
shipDate: z.ZodString;
|
|
350
354
|
shipmentId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
351
|
-
warehouseId: z.ZodEffects<z.ZodString, string, string>;
|
|
352
355
|
}, {
|
|
353
356
|
__mode: z.ZodLiteral<"browse_rates">;
|
|
354
357
|
}>, "strip", z.ZodTypeAny, {
|
|
358
|
+
addressId?: string | null | undefined;
|
|
355
359
|
advancedOptions?: {
|
|
356
360
|
additionalHandling?: boolean | undefined;
|
|
361
|
+
canadaDeliveredDuty?: CanadaDeliveredDutyOptions | null | undefined;
|
|
357
362
|
windsorFrameworkDetails?: {
|
|
358
363
|
movementIndicator: SE.MovementIndicator;
|
|
359
364
|
notAtRisk: boolean;
|
|
@@ -419,10 +424,11 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
419
424
|
} | null;
|
|
420
425
|
}[];
|
|
421
426
|
shipDate: string;
|
|
422
|
-
warehouseId: string;
|
|
423
427
|
}, {
|
|
428
|
+
addressId?: string | null | undefined;
|
|
424
429
|
advancedOptions?: {
|
|
425
430
|
additionalHandling?: boolean | undefined;
|
|
431
|
+
canadaDeliveredDuty?: CanadaDeliveredDutyOptions | null | undefined;
|
|
426
432
|
windsorFrameworkDetails?: {
|
|
427
433
|
notAtRisk?: boolean | undefined;
|
|
428
434
|
movementIndicator: SE.MovementIndicator;
|
|
@@ -492,10 +498,11 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
492
498
|
};
|
|
493
499
|
}[];
|
|
494
500
|
shipDate: string;
|
|
495
|
-
warehouseId: string;
|
|
496
501
|
}> | z.ZodObject<z.extendShape<{
|
|
502
|
+
addressId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
497
503
|
advancedOptions: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
498
504
|
additionalHandling: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
+
canadaDeliveredDuty: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof CanadaDeliveredDutyOptions>>>>;
|
|
499
506
|
windsorFrameworkDetails: z.ZodObject<{
|
|
500
507
|
movementIndicator: z.ZodNativeEnum<typeof SE.MovementIndicator>;
|
|
501
508
|
notAtRisk: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -517,6 +524,7 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
517
524
|
}>>;
|
|
518
525
|
}, "strip", z.ZodTypeAny, {
|
|
519
526
|
additionalHandling?: boolean | undefined;
|
|
527
|
+
canadaDeliveredDuty?: CanadaDeliveredDutyOptions | null | undefined;
|
|
520
528
|
windsorFrameworkDetails?: {
|
|
521
529
|
movementIndicator: SE.MovementIndicator;
|
|
522
530
|
notAtRisk: boolean;
|
|
@@ -526,6 +534,7 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
526
534
|
} | undefined;
|
|
527
535
|
}, {
|
|
528
536
|
additionalHandling?: boolean | undefined;
|
|
537
|
+
canadaDeliveredDuty?: CanadaDeliveredDutyOptions | null | undefined;
|
|
529
538
|
windsorFrameworkDetails?: {
|
|
530
539
|
notAtRisk?: boolean | undefined;
|
|
531
540
|
movementIndicator: SE.MovementIndicator;
|
|
@@ -832,7 +841,6 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
832
841
|
}>>>;
|
|
833
842
|
shipDate: z.ZodString;
|
|
834
843
|
shipmentId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
835
|
-
warehouseId: z.ZodEffects<z.ZodString, string, string>;
|
|
836
844
|
}, {
|
|
837
845
|
__mode: z.ZodLiteral<"select_service">;
|
|
838
846
|
packages: z.ZodArray<z.ZodObject<z.extendShape<{
|
|
@@ -1151,8 +1159,10 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
1151
1159
|
serviceCode: string;
|
|
1152
1160
|
}>;
|
|
1153
1161
|
}>, "strip", z.ZodTypeAny, {
|
|
1162
|
+
addressId?: string | null | undefined;
|
|
1154
1163
|
advancedOptions?: {
|
|
1155
1164
|
additionalHandling?: boolean | undefined;
|
|
1165
|
+
canadaDeliveredDuty?: CanadaDeliveredDutyOptions | null | undefined;
|
|
1156
1166
|
windsorFrameworkDetails?: {
|
|
1157
1167
|
movementIndicator: SE.MovementIndicator;
|
|
1158
1168
|
notAtRisk: boolean;
|
|
@@ -1218,10 +1228,11 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
1218
1228
|
serviceCode: string;
|
|
1219
1229
|
};
|
|
1220
1230
|
shipDate: string;
|
|
1221
|
-
warehouseId: string;
|
|
1222
1231
|
}, {
|
|
1232
|
+
addressId?: string | null | undefined;
|
|
1223
1233
|
advancedOptions?: {
|
|
1224
1234
|
additionalHandling?: boolean | undefined;
|
|
1235
|
+
canadaDeliveredDuty?: CanadaDeliveredDutyOptions | null | undefined;
|
|
1225
1236
|
windsorFrameworkDetails?: {
|
|
1226
1237
|
notAtRisk?: boolean | undefined;
|
|
1227
1238
|
movementIndicator: SE.MovementIndicator;
|
|
@@ -1287,7 +1298,6 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
1287
1298
|
serviceCode: string;
|
|
1288
1299
|
};
|
|
1289
1300
|
shipDate: string;
|
|
1290
|
-
warehouseId: string;
|
|
1291
1301
|
}>>, {
|
|
1292
1302
|
carrierId: string | undefined;
|
|
1293
1303
|
customs: {
|
|
@@ -1424,8 +1434,10 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
1424
1434
|
} | null;
|
|
1425
1435
|
})[];
|
|
1426
1436
|
serviceCode: string | undefined;
|
|
1437
|
+
addressId?: string | null | undefined;
|
|
1427
1438
|
advancedOptions?: {
|
|
1428
1439
|
additionalHandling?: boolean | undefined;
|
|
1440
|
+
canadaDeliveredDuty?: CanadaDeliveredDutyOptions | null | undefined;
|
|
1429
1441
|
windsorFrameworkDetails?: {
|
|
1430
1442
|
movementIndicator: SE.MovementIndicator;
|
|
1431
1443
|
notAtRisk: boolean;
|
|
@@ -1439,7 +1451,6 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
1439
1451
|
confirmation: SE.ConfirmationType;
|
|
1440
1452
|
insuranceProvider: SE.InsuranceProviderType;
|
|
1441
1453
|
shipDate: string;
|
|
1442
|
-
warehouseId: string;
|
|
1443
1454
|
} | {
|
|
1444
1455
|
carrierId: string | undefined;
|
|
1445
1456
|
customs: {
|
|
@@ -1576,8 +1587,10 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
1576
1587
|
} | null;
|
|
1577
1588
|
})[];
|
|
1578
1589
|
serviceCode: string | undefined;
|
|
1590
|
+
addressId?: string | null | undefined;
|
|
1579
1591
|
advancedOptions?: {
|
|
1580
1592
|
additionalHandling?: boolean | undefined;
|
|
1593
|
+
canadaDeliveredDuty?: CanadaDeliveredDutyOptions | null | undefined;
|
|
1581
1594
|
windsorFrameworkDetails?: {
|
|
1582
1595
|
movementIndicator: SE.MovementIndicator;
|
|
1583
1596
|
notAtRisk: boolean;
|
|
@@ -1591,10 +1604,11 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
1591
1604
|
confirmation: SE.ConfirmationType;
|
|
1592
1605
|
insuranceProvider: SE.InsuranceProviderType;
|
|
1593
1606
|
shipDate: string;
|
|
1594
|
-
warehouseId: string;
|
|
1595
1607
|
}, {
|
|
1608
|
+
addressId?: string | null | undefined;
|
|
1596
1609
|
advancedOptions?: {
|
|
1597
1610
|
additionalHandling?: boolean | undefined;
|
|
1611
|
+
canadaDeliveredDuty?: CanadaDeliveredDutyOptions | null | undefined;
|
|
1598
1612
|
windsorFrameworkDetails?: {
|
|
1599
1613
|
notAtRisk?: boolean | undefined;
|
|
1600
1614
|
movementIndicator: SE.MovementIndicator;
|
|
@@ -1664,10 +1678,11 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
1664
1678
|
};
|
|
1665
1679
|
}[];
|
|
1666
1680
|
shipDate: string;
|
|
1667
|
-
warehouseId: string;
|
|
1668
1681
|
} | {
|
|
1682
|
+
addressId?: string | null | undefined;
|
|
1669
1683
|
advancedOptions?: {
|
|
1670
1684
|
additionalHandling?: boolean | undefined;
|
|
1685
|
+
canadaDeliveredDuty?: CanadaDeliveredDutyOptions | null | undefined;
|
|
1671
1686
|
windsorFrameworkDetails?: {
|
|
1672
1687
|
notAtRisk?: boolean | undefined;
|
|
1673
1688
|
movementIndicator: SE.MovementIndicator;
|
|
@@ -1733,7 +1748,6 @@ export declare const getShipmentSchema: ({ dimensionsUnit, isContentDescriptionR
|
|
|
1733
1748
|
serviceCode: string;
|
|
1734
1749
|
};
|
|
1735
1750
|
shipDate: string;
|
|
1736
|
-
warehouseId: string;
|
|
1737
1751
|
}>;
|
|
1738
1752
|
type ShipmentSchema = ReturnType<typeof getShipmentSchema>;
|
|
1739
1753
|
export type ShipmentFormFields = z.input<ShipmentSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./suspend-purchase";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WithChildrenCommonProps } from "@shipengine/giger";
|
|
2
|
+
import { SE } from "@shipengine/react-api";
|
|
3
|
+
export type SuspendPurchaseProps = WithChildrenCommonProps<{
|
|
4
|
+
data?: SE.SalesOrderShipment | SE.SalesOrder;
|
|
5
|
+
errors?: SE.CodedError[];
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const SuspendPurchase: ({ children, errors, isLoading, data }: SuspendPurchaseProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|