@dropins/storefront-order 0.1.0-alpha3 → 0.1.0-alpha30
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/api/cancelOrder/cancelOrder.d.ts +2 -0
- package/api/cancelOrder/graphql/cancelOrderMutation.d.ts +2 -0
- package/api/cancelOrder/index.d.ts +2 -0
- package/api/confirmCancelOrder/confirmCancelOrder.d.ts +16 -0
- package/api/confirmCancelOrder/graphql/ConfirmCancelOrder.d.ts +16 -0
- package/api/confirmCancelOrder/index.d.ts +16 -0
- package/api/getAttributesForm/getAttributesForm.d.ts +4 -0
- package/api/getAttributesForm/graphql/getAttributesForm.graphql.d.ts +3 -0
- package/api/getAttributesForm/index.d.ts +2 -0
- package/api/getAttributesList/getAttributesList.d.ts +5 -0
- package/api/getAttributesList/graphql/getAttributesList.graphql.d.ts +2 -0
- package/api/getAttributesList/index.d.ts +2 -0
- package/api/getCustomer/getCustomer.d.ts +4 -0
- package/api/getCustomer/graphql/getCustomer.graphql.d.ts +2 -0
- package/api/getCustomer/index.d.ts +2 -0
- package/api/getCustomerOrdersReturn/getCustomerOrdersReturn.d.ts +4 -0
- package/api/getCustomerOrdersReturn/graphql/getCustomerOrdersReturn.graphql.d.ts +2 -0
- package/api/getCustomerOrdersReturn/index.d.ts +2 -0
- package/api/getGuestOrder/getGuestOrder.d.ts +3 -3
- package/api/getGuestOrder/graphql/index.d.ts +2 -0
- package/api/getOrderDetailsById/getOrderDetailsById.d.ts +2 -2
- package/api/getOrderDetailsById/graphql/index.d.ts +1 -0
- package/api/getOrderDetailsById/graphql/orderItemsFragment.graphql.d.ts +5 -1
- package/api/getOrderDetailsById/graphql/orderSummaryFragment.graphql.d.ts +1 -1
- package/api/getOrderDetailsById/graphql/returnsFragment.graphql.d.ts +2 -0
- package/api/getStoreConfig/getStoreConfig.d.ts +4 -0
- package/api/getStoreConfig/graphql/StoreConfigQuery.d.ts +2 -0
- package/api/getStoreConfig/index.d.ts +2 -0
- package/api/guestOrderByToken/graphql/guestOrderByToken.graphql.d.ts +2 -0
- package/api/guestOrderByToken/guestOrderByToken.d.ts +4 -0
- package/api/guestOrderByToken/index.d.ts +2 -0
- package/api/helpers/initializeOrderDetails.d.ts +3 -1
- package/api/index.d.ts +13 -2
- package/api/placeOrder/graphql/placeOrderMutation.d.ts +2 -0
- package/api/placeOrder/index.d.ts +2 -0
- package/api/placeOrder/placeOrder.d.ts +4 -0
- package/api/reorderItems/graphql/reorderItems.graphql.d.ts +2 -0
- package/api/reorderItems/index.d.ts +2 -0
- package/api/reorderItems/reorderItems.d.ts +4 -0
- package/api/requestGuestOrderCancel/graphql/requestGuestOrderCancelMutation.d.ts +2 -0
- package/api/requestGuestOrderCancel/index.d.ts +2 -0
- package/api/requestGuestOrderCancel/requestGuestOrderCancel.d.ts +2 -0
- package/api/requestReturn/graphql/fragments.d.ts +2 -0
- package/api/requestReturn/graphql/requestReturn.graphql.d.ts +2 -0
- package/api/requestReturn/index.d.ts +2 -0
- package/api/requestReturn/requestReturn.d.ts +9 -0
- package/api.js +281 -13
- package/chunks/CartSummaryItem.js +3 -0
- package/chunks/OrderCancelForm.js +3 -0
- package/chunks/OrderLoaders.js +3 -0
- package/chunks/ReturnsListContent.js +3 -0
- package/chunks/ShippingStatusCard.js +3 -0
- package/chunks/convertCase.js +3 -0
- package/chunks/fetch-graphql.js +3 -0
- package/chunks/formatDateToLocale.js +3 -0
- package/chunks/getAttributesForm.js +49 -0
- package/chunks/getCustomerOrdersReturn.js +21 -0
- package/chunks/getFormValues.js +3 -0
- package/chunks/getGuestOrder.graphql.js +160 -0
- package/chunks/getGuestOrder.js +9 -131
- package/chunks/getStoreConfig.js +19 -0
- package/chunks/network-error.js +3 -0
- package/chunks/redirectTo.js +3 -0
- package/chunks/reorderItems.js +20 -0
- package/chunks/requestGuestOrderCancel.js +99 -0
- package/chunks/requestReturn.js +52 -0
- package/chunks/returnOrdersHelper.js +3 -0
- package/chunks/setTaxStatus.js +3 -0
- package/chunks/transform-attributes-form.js +3 -0
- package/chunks/transform-customer-orders-returns.js +142 -0
- package/chunks/useGetStoreConfig.js +3 -0
- package/chunks/useIsMobile.js +3 -0
- package/components/CustomerDetailsContent/CustomerDetailsContent.d.ts +5 -0
- package/components/CustomerDetailsContent/index.d.ts +3 -0
- package/components/EmptyList/EmptyList.d.ts +5 -0
- package/components/EmptyList/index.d.ts +3 -0
- package/components/OrderActions/OrderActions.d.ts +5 -0
- package/components/OrderActions/index.d.ts +3 -0
- package/components/OrderCancel/OrderCancel.d.ts +5 -0
- package/components/OrderCancel/index.d.ts +3 -0
- package/components/OrderCostSummaryContent/Blocks.d.ts +38 -0
- package/components/OrderCostSummaryContent/OrderCostSummaryContent.d.ts +5 -0
- package/components/OrderCostSummaryContent/index.d.ts +3 -0
- package/components/OrderHeader/OrderHeader.d.ts +9 -0
- package/components/OrderHeader/index.d.ts +2 -0
- package/components/OrderLoaders/OrderLoaders.d.ts +10 -0
- package/components/OrderLoaders/index.d.ts +3 -0
- package/components/OrderProductListContent/CartSummaryItem.d.ts +5 -0
- package/components/OrderProductListContent/OrderProductListContent.d.ts +5 -0
- package/components/OrderProductListContent/index.d.ts +4 -0
- package/components/OrderStatusContent/OrderStatusContent.d.ts +5 -0
- package/components/OrderStatusContent/index.d.ts +3 -0
- package/components/Reorder/Reorder.d.ts +5 -0
- package/components/Reorder/index.d.ts +3 -0
- package/components/ReturnOrderMessage/ReturnOrderMessage.d.ts +5 -0
- package/components/ReturnOrderMessage/index.d.ts +3 -0
- package/components/ReturnOrderProductList/ReturnOrderProductList.d.ts +5 -0
- package/components/ReturnOrderProductList/index.d.ts +3 -0
- package/components/ReturnReasonForm/ReturnReasonForm.d.ts +5 -0
- package/components/ReturnReasonForm/index.d.ts +3 -0
- package/components/ReturnsListContent/ReturnsListContent.d.ts +5 -0
- package/components/ReturnsListContent/index.d.ts +3 -0
- package/components/ShippingStatusCard/ShippingStatusCard.d.ts +5 -0
- package/components/ShippingStatusCard/ShippingStatusReturnCard.d.ts +5 -0
- package/components/ShippingStatusCard/index.d.ts +4 -0
- package/components/index.d.ts +16 -1
- package/configs/defaultAttributePreset.config.d.ts +2 -0
- package/configs/mock.config.d.ts +3567 -0
- package/containers/CreateReturn/CreateReturn.d.ts +5 -0
- package/containers/CreateReturn/index.d.ts +3 -0
- package/containers/CreateReturn.d.ts +3 -0
- package/containers/CreateReturn.js +3 -0
- package/containers/CustomerDetails/CustomerDetails.d.ts +5 -0
- package/containers/CustomerDetails/index.d.ts +3 -0
- package/containers/CustomerDetails.d.ts +3 -0
- package/containers/CustomerDetails.js +3 -0
- package/containers/OrderCancelForm/OrderCancelForm.d.ts +5 -0
- package/containers/OrderCancelForm/index.d.ts +3 -0
- package/containers/OrderCancelForm.d.ts +3 -0
- package/containers/OrderCancelForm.js +3 -0
- package/containers/OrderCostSummary/OrderCostSummary.d.ts +5 -0
- package/containers/OrderCostSummary/index.d.ts +3 -0
- package/containers/OrderCostSummary.d.ts +3 -0
- package/containers/OrderCostSummary.js +3 -0
- package/containers/OrderHeader/OrderHeader.d.ts +5 -0
- package/containers/OrderHeader/index.d.ts +3 -0
- package/containers/OrderHeader.d.ts +3 -0
- package/containers/OrderHeader.js +3 -0
- package/containers/OrderProductList/OrderProductList.d.ts +5 -0
- package/containers/OrderProductList/index.d.ts +3 -0
- package/containers/OrderProductList.d.ts +3 -0
- package/containers/OrderProductList.js +3 -0
- package/containers/OrderReturns/OrderReturns.d.ts +5 -0
- package/containers/OrderReturns/index.d.ts +3 -0
- package/containers/OrderReturns.d.ts +3 -0
- package/containers/OrderReturns.js +3 -0
- package/containers/OrderSearch.js +3 -1
- package/containers/OrderStatus/OrderStatus.d.ts +5 -0
- package/containers/OrderStatus/index.d.ts +3 -0
- package/containers/OrderStatus.d.ts +3 -0
- package/containers/OrderStatus.js +22 -0
- package/containers/ReturnsList/ReturnsList.d.ts +5 -0
- package/containers/ReturnsList/index.d.ts +3 -0
- package/containers/ReturnsList.d.ts +3 -0
- package/containers/ReturnsList.js +3 -0
- package/containers/ShippingStatus/ShippingStatus.d.ts +5 -0
- package/containers/ShippingStatus/index.d.ts +3 -0
- package/containers/ShippingStatus.d.ts +3 -0
- package/containers/ShippingStatus.js +3 -0
- package/containers/index.d.ts +10 -0
- package/data/models/acdl.d.ts +99 -0
- package/data/models/attributes-form.d.ts +27 -0
- package/data/models/customer-orders-return.d.ts +38 -0
- package/data/models/customer.d.ts +6 -0
- package/data/models/index.d.ts +5 -1
- package/data/models/order-details.d.ts +162 -31
- package/data/models/store-config.d.ts +15 -0
- package/data/transforms/index.d.ts +8 -1
- package/data/transforms/transform-acdl.d.ts +5 -0
- package/data/transforms/transform-attributes-form.d.ts +7 -0
- package/data/transforms/transform-customer-address-input.d.ts +22 -0
- package/data/transforms/transform-customer-orders-returns.d.ts +5 -0
- package/data/transforms/transform-customer.d.ts +5 -0
- package/data/transforms/transform-guest-order.d.ts +4 -3
- package/data/transforms/transform-order-details.d.ts +15 -3
- package/data/transforms/transform-place-order.d.ts +5 -0
- package/data/transforms/transform-store-config.d.ts +4 -0
- package/hooks/api/useGetStoreConfig.d.ts +4 -0
- package/hooks/containers/useConfirmCancelOrder.d.ts +9 -0
- package/hooks/containers/useCreateReturn.d.ts +64 -0
- package/hooks/containers/useCustomerDetails.d.ts +12 -0
- package/hooks/containers/useOrderCostSummary.d.ts +9 -0
- package/hooks/containers/useOrderHeader.d.ts +8 -0
- package/hooks/containers/useOrderProductList.d.ts +8 -0
- package/hooks/containers/useOrderReturns.d.ts +8 -0
- package/hooks/containers/useOrderSearch.d.ts +3 -3
- package/hooks/containers/useOrderStatus.d.ts +8 -0
- package/hooks/containers/useReturnsList.d.ts +15 -0
- package/hooks/containers/useShippingStatus.d.ts +9 -0
- package/hooks/index.d.ts +11 -0
- package/hooks/useInLineAlert.d.ts +7 -0
- package/hooks/useIsMobile.d.ts +2 -0
- package/i18n/en_US.json.d.ts +322 -3
- package/lib/acdl.d.ts +18 -0
- package/lib/capitalizeFirst.d.ts +2 -0
- package/lib/categorizeProducts.d.ts +66 -0
- package/lib/convertCase.d.ts +4 -0
- package/lib/formatDateToLocale.d.ts +31 -0
- package/lib/getQueryParam.d.ts +2 -0
- package/lib/redirectTo.d.ts +3 -0
- package/lib/returnOrdersHelper.d.ts +36 -0
- package/lib/setTaxStatus.d.ts +4 -0
- package/package.json +1 -1
- package/render.js +5 -2
- package/types/api/getAttributesForm.types.d.ts +31 -0
- package/types/api/getAttributesList.types.d.ts +28 -0
- package/types/api/getCustomer.types.d.ts +13 -0
- package/types/api/getCustomerOrdersReturn.types.d.ts +21 -0
- package/types/api/getOrderDetails.types.d.ts +123 -39
- package/types/api/guestOrderByToken.types.d.ts +13 -0
- package/types/api/placeOrder.types.d.ts +19 -0
- package/types/api/reorderItems.types.d.ts +27 -0
- package/types/api/requestReturn.types.d.ts +33 -0
- package/types/createReturn.types.d.ts +71 -0
- package/types/customerDetails.types.d.ts +59 -0
- package/types/emptyList.types.d.ts +7 -0
- package/types/form.types.d.ts +6 -6
- package/types/index.d.ts +22 -2
- package/types/notification.types.d.ts +14 -0
- package/types/orderCancel.types.d.ts +16 -0
- package/types/orderCostSummary.types.d.ts +29 -0
- package/types/orderHeader.types.d.ts +19 -0
- package/types/orderProductList.types.d.ts +36 -0
- package/types/orderSearch.types.d.ts +21 -3
- package/types/orderStatus.types.d.ts +49 -0
- package/types/reorder.types.d.ts +9 -0
- package/types/returnsList.types.d.ts +82 -0
- package/types/shippingStatus.types.d.ts +49 -0
- package/data/models/guest-order.d.ts +0 -21
- package/lib/convertToInputDateFormat.d.ts +0 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OrderDataModel } from '../data/models';
|
|
2
|
+
|
|
3
|
+
export interface SignUpContext {
|
|
4
|
+
inputsDefaultValueSet: DefaultValues;
|
|
5
|
+
addressesData: any[];
|
|
6
|
+
}
|
|
7
|
+
type DefaultValues = {
|
|
8
|
+
code: string;
|
|
9
|
+
defaultValue: string;
|
|
10
|
+
}[];
|
|
11
|
+
export interface OrderHeaderProps {
|
|
12
|
+
handleEmailAvailability?: (email: string) => Promise<boolean>;
|
|
13
|
+
handleSignUpClick?: (ctx: SignUpContext) => void;
|
|
14
|
+
orderData?: OrderDataModel;
|
|
15
|
+
}
|
|
16
|
+
export interface UseOrderHeaderProps extends OrderHeaderProps {
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=orderHeader.types.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OrderDataModel, OrderItemModel } from '../data/models';
|
|
2
|
+
|
|
3
|
+
type options = Record<string, string | number | boolean>;
|
|
4
|
+
export type TaxTypes = {
|
|
5
|
+
taxIncluded: boolean;
|
|
6
|
+
taxExcluded: boolean;
|
|
7
|
+
};
|
|
8
|
+
export interface OrderProductListProps {
|
|
9
|
+
orderData?: OrderDataModel;
|
|
10
|
+
className?: string;
|
|
11
|
+
withHeader?: boolean;
|
|
12
|
+
showConfigurableOptions?: (options: options | {}) => options;
|
|
13
|
+
routeProductDetails?: (product: any) => string;
|
|
14
|
+
}
|
|
15
|
+
export interface OrderProductListContentProps extends Omit<OrderProductListProps, 'className'> {
|
|
16
|
+
placeholderImage: string;
|
|
17
|
+
order?: OrderDataModel;
|
|
18
|
+
taxConfig: TaxTypes;
|
|
19
|
+
loading: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface CartSummaryItemProps {
|
|
22
|
+
placeholderImage?: string;
|
|
23
|
+
disabledIncrementer?: boolean;
|
|
24
|
+
loading: boolean;
|
|
25
|
+
itemType: string;
|
|
26
|
+
translations: Record<string, string>;
|
|
27
|
+
product: OrderItemModel;
|
|
28
|
+
taxConfig: TaxTypes;
|
|
29
|
+
onQuantity?: (value: number) => void;
|
|
30
|
+
showConfigurableOptions?: (options: options | {}) => options;
|
|
31
|
+
routeProductDetails?: (product: any) => string;
|
|
32
|
+
}
|
|
33
|
+
export interface UseOrderProductListProps extends Omit<OrderProductListProps, 'className' | 'withHeader' | 'showConfigurableOptions'> {
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=orderProductList.types.d.ts.map
|
|
@@ -1,18 +1,36 @@
|
|
|
1
1
|
import { FieldsProps } from '.';
|
|
2
2
|
|
|
3
|
+
type errorInformationProps = {
|
|
4
|
+
error: string;
|
|
5
|
+
};
|
|
3
6
|
export interface inLineAlertProps {
|
|
4
7
|
text: string;
|
|
5
8
|
type: 'success' | 'warning' | 'error';
|
|
6
9
|
}
|
|
10
|
+
export type RouteSignInProps = {
|
|
11
|
+
render: boolean;
|
|
12
|
+
formValues?: {
|
|
13
|
+
number: number | string;
|
|
14
|
+
email?: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
7
17
|
export interface OrderSearchProps {
|
|
8
18
|
className?: string;
|
|
19
|
+
onError?: (errorInformation: errorInformationProps) => void;
|
|
20
|
+
isAuth: boolean;
|
|
21
|
+
renderSignIn?: ({ render, formValues, }: RouteSignInProps) => boolean | undefined;
|
|
22
|
+
routeCustomerOrder?: () => string;
|
|
23
|
+
routeGuestOrder?: () => string;
|
|
9
24
|
}
|
|
10
|
-
export interface
|
|
25
|
+
export interface useOrderSearchProps extends Omit<OrderSearchProps, 'className'> {
|
|
26
|
+
}
|
|
27
|
+
export interface OrderSearchFormProps {
|
|
11
28
|
onSubmit?: (event: SubmitEvent, isValid: boolean) => Promise<void | null | undefined>;
|
|
12
|
-
loading
|
|
29
|
+
loading?: boolean;
|
|
13
30
|
inLineAlert: inLineAlertProps;
|
|
14
|
-
fieldsConfig
|
|
31
|
+
fieldsConfig?: FieldsProps[];
|
|
15
32
|
}
|
|
16
33
|
export interface useOrderSearch extends Omit<OrderSearchProps, 'className'> {
|
|
17
34
|
}
|
|
35
|
+
export {};
|
|
18
36
|
//# sourceMappingURL=orderSearch.types.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { OrderDataModel, OrdersReturnPropsModel } from '../data/models';
|
|
2
|
+
import { SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
3
|
+
import { UserInputErrorProps } from '.';
|
|
4
|
+
|
|
5
|
+
export declare enum StatusEnumProps {
|
|
6
|
+
PENDING = "pending",
|
|
7
|
+
SHIPPING = "shipping",
|
|
8
|
+
COMPLETE = "complete",
|
|
9
|
+
PROCESSING = "processing",
|
|
10
|
+
HOLD = "on hold",
|
|
11
|
+
CANCELED = "Canceled",
|
|
12
|
+
SUSPECTED_FRAUD = "suspected fraud",
|
|
13
|
+
PAYMENT_REVIEW = "payment review"
|
|
14
|
+
}
|
|
15
|
+
type DefaultSlotContext = {
|
|
16
|
+
orderData?: OrderDataModel;
|
|
17
|
+
};
|
|
18
|
+
export interface OrderStatusProps {
|
|
19
|
+
className?: string;
|
|
20
|
+
orderData?: OrderDataModel;
|
|
21
|
+
statusTitle?: string;
|
|
22
|
+
status?: StatusEnumProps;
|
|
23
|
+
slots?: {
|
|
24
|
+
OrderActions: SlotProps<DefaultSlotContext>;
|
|
25
|
+
};
|
|
26
|
+
routeCreateReturn?: (orderReturn: OrdersReturnPropsModel) => string;
|
|
27
|
+
routeOnSuccess?: () => string;
|
|
28
|
+
onError?: (errorInformation: UserInputErrorProps[] | string) => void;
|
|
29
|
+
}
|
|
30
|
+
export interface OrderStatusContentProps extends Omit<OrderStatusProps, 'statusTitle' | 'orderData' | 'status'> {
|
|
31
|
+
title?: string;
|
|
32
|
+
status?: StatusEnumProps;
|
|
33
|
+
orderData?: OrderDataModel;
|
|
34
|
+
}
|
|
35
|
+
export interface OrderActionsProps {
|
|
36
|
+
className?: string;
|
|
37
|
+
orderData?: OrderDataModel;
|
|
38
|
+
slots?: {
|
|
39
|
+
OrderActions: SlotProps<DefaultSlotContext>;
|
|
40
|
+
};
|
|
41
|
+
routeCreateReturn?: (orderReturn: OrdersReturnPropsModel) => string;
|
|
42
|
+
routeOnSuccess?: () => string;
|
|
43
|
+
onError?: (errorInformation: UserInputErrorProps[] | string) => void;
|
|
44
|
+
}
|
|
45
|
+
export interface UseOrderStatusProps {
|
|
46
|
+
orderData?: OrderDataModel;
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=orderStatus.types.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OrderDataModel } from '../data/models';
|
|
2
|
+
import { UserInputErrorProps } from '.';
|
|
3
|
+
|
|
4
|
+
export interface ReorderProps {
|
|
5
|
+
orderData?: OrderDataModel;
|
|
6
|
+
routeOnSuccess?: () => string;
|
|
7
|
+
onError?: (errorInformation: UserInputErrorProps[] | string) => void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=reorder.types.d.ts.map
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { SlotProps } from '@dropins/tools/types/elsie/src/src/lib';
|
|
2
|
+
import { OrderDataModel, OrderItemModel, OrdersReturnItemsPropsModel, OrdersReturnPropsModel, PageInfoProps } from '../data/models';
|
|
3
|
+
|
|
4
|
+
export interface IconConfig {
|
|
5
|
+
size: '12' | '16' | '24' | '32' | '64' | '80' | undefined;
|
|
6
|
+
stroke: '4' | '1' | '2' | '3' | undefined;
|
|
7
|
+
}
|
|
8
|
+
type routeTrackingProps = {
|
|
9
|
+
carrier: string;
|
|
10
|
+
title: string;
|
|
11
|
+
number: string;
|
|
12
|
+
};
|
|
13
|
+
export interface ReturnsListProps {
|
|
14
|
+
slots?: {
|
|
15
|
+
ReturnItemsDetails?: SlotProps<{
|
|
16
|
+
items: OrdersReturnItemsPropsModel[];
|
|
17
|
+
}>;
|
|
18
|
+
DetailsActionParams?: SlotProps<{
|
|
19
|
+
returnOrderItem: OrdersReturnPropsModel;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
returnPageSize?: number;
|
|
23
|
+
withReturnsListButton?: boolean;
|
|
24
|
+
returnsInMinifiedView?: number;
|
|
25
|
+
className?: string;
|
|
26
|
+
minifiedView?: boolean;
|
|
27
|
+
withHeader?: boolean;
|
|
28
|
+
routeReturnDetails?: ({ returnNumber, token, orderNumber, }: {
|
|
29
|
+
returnNumber: string;
|
|
30
|
+
token: string;
|
|
31
|
+
orderNumber: string;
|
|
32
|
+
}) => string;
|
|
33
|
+
routeOrderDetails?: ({ token, orderNumber, }: {
|
|
34
|
+
token: string;
|
|
35
|
+
orderNumber: string;
|
|
36
|
+
}) => string;
|
|
37
|
+
routeTracking?: (track: routeTrackingProps) => string;
|
|
38
|
+
routeReturnsList?: () => string;
|
|
39
|
+
routeProductDetails?: (orderItem?: OrderItemModel) => string;
|
|
40
|
+
withThumbnails?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface ReturnsListContentProps extends Omit<ReturnsListProps, 'className' | 'returnPageSize'> {
|
|
43
|
+
placeholderImage?: string;
|
|
44
|
+
minifiedViewKey: 'minifiedView' | 'fullSizeView';
|
|
45
|
+
orderReturns?: OrdersReturnPropsModel[] | [];
|
|
46
|
+
translations: Record<string, string>;
|
|
47
|
+
isMobile: boolean;
|
|
48
|
+
pageInfo: PageInfoProps;
|
|
49
|
+
selectedPage?: number;
|
|
50
|
+
handleSetSelectPage?: (value: number) => void;
|
|
51
|
+
withOrderNumber?: boolean;
|
|
52
|
+
withReturnNumber?: boolean;
|
|
53
|
+
loading: boolean;
|
|
54
|
+
}
|
|
55
|
+
export interface UseReturnsListProps {
|
|
56
|
+
returnPageSize?: number;
|
|
57
|
+
}
|
|
58
|
+
export interface OrderReturnsProps {
|
|
59
|
+
slots?: {
|
|
60
|
+
ReturnItemsDetails?: SlotProps<{
|
|
61
|
+
items: OrdersReturnItemsPropsModel[];
|
|
62
|
+
}>;
|
|
63
|
+
DetailsActionParams?: SlotProps<{
|
|
64
|
+
returnOrderItem: OrdersReturnPropsModel;
|
|
65
|
+
}>;
|
|
66
|
+
};
|
|
67
|
+
withThumbnails?: boolean;
|
|
68
|
+
withHeader?: boolean;
|
|
69
|
+
className?: string;
|
|
70
|
+
orderData?: OrderDataModel;
|
|
71
|
+
routeReturnDetails?: ({ token, orderNumber, }: {
|
|
72
|
+
token: string;
|
|
73
|
+
orderNumber: string;
|
|
74
|
+
}) => string;
|
|
75
|
+
routeProductDetails?: (product: any) => string;
|
|
76
|
+
routeTracking?: (track: routeTrackingProps) => string;
|
|
77
|
+
}
|
|
78
|
+
export interface UseOrderReturnsProps {
|
|
79
|
+
orderData?: OrderDataModel;
|
|
80
|
+
}
|
|
81
|
+
export {};
|
|
82
|
+
//# sourceMappingURL=returnsList.types.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'preact/compat';
|
|
2
|
+
import { SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
3
|
+
import { OrderDataModel, OrdersReturnPropsModel } from '../data/models';
|
|
4
|
+
|
|
5
|
+
type routeOrderDetailsTypes = {
|
|
6
|
+
returnNumber?: string;
|
|
7
|
+
token?: string;
|
|
8
|
+
orderNumber?: string;
|
|
9
|
+
};
|
|
10
|
+
type routeTrackingProps = {
|
|
11
|
+
carrier: string;
|
|
12
|
+
title: string;
|
|
13
|
+
number: string;
|
|
14
|
+
};
|
|
15
|
+
export interface ShippingStatusProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
orderData?: OrderDataModel;
|
|
17
|
+
collapseThreshold?: number;
|
|
18
|
+
slots?: {
|
|
19
|
+
DeliveryTimeLine?: SlotProps;
|
|
20
|
+
DeliveryTrackActions?: SlotProps;
|
|
21
|
+
ReturnItemsDetails?: SlotProps;
|
|
22
|
+
};
|
|
23
|
+
routeOrderDetails?: ({ returnNumber, token, orderNumber, }: routeOrderDetailsTypes) => string;
|
|
24
|
+
routeTracking?: (track: routeTrackingProps) => string;
|
|
25
|
+
routeProductDetails?: (product: any) => string;
|
|
26
|
+
}
|
|
27
|
+
export interface UseShippingStatusProps {
|
|
28
|
+
orderData?: OrderDataModel;
|
|
29
|
+
}
|
|
30
|
+
export interface ShippingStatusCardProps {
|
|
31
|
+
placeholderImage: string;
|
|
32
|
+
translations: Record<string, string>;
|
|
33
|
+
slots?: {
|
|
34
|
+
DeliveryTimeLine?: SlotProps;
|
|
35
|
+
DeliveryTrackActions?: SlotProps;
|
|
36
|
+
ReturnItemsDetails?: SlotProps;
|
|
37
|
+
};
|
|
38
|
+
orderData?: OrderDataModel;
|
|
39
|
+
collapseThreshold?: number;
|
|
40
|
+
routeOrderDetails?: ({ returnNumber, token, orderNumber, }: routeOrderDetailsTypes) => string;
|
|
41
|
+
routeProductDetails?: (product: any) => string;
|
|
42
|
+
routeTracking?: (track: routeTrackingProps) => string;
|
|
43
|
+
}
|
|
44
|
+
export interface ShippingStatusReturnCardProps extends ShippingStatusCardProps {
|
|
45
|
+
collapseThreshold: number;
|
|
46
|
+
returnData: OrdersReturnPropsModel;
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=shippingStatus.types.d.ts.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { DiscountProps, GuestOrderProps, MoneyProps, paymentMethodsProps, UserAddressesProps } from '../../types';
|
|
2
|
-
|
|
3
|
-
export interface GuestOrderModel extends Omit<GuestOrderProps, 'shipping_address' | 'billing_address' | 'payment_methods' | 'gift_receipt_included' | 'order_date' | 'printed_card_included' | 'shipping_method' | 'total'> {
|
|
4
|
-
defaultShipping: UserAddressesProps;
|
|
5
|
-
defaultBulling: UserAddressesProps;
|
|
6
|
-
paymentMethods: paymentMethodsProps[];
|
|
7
|
-
giftReceiptIncluded: boolean;
|
|
8
|
-
orderDate: string;
|
|
9
|
-
printedCardIncluded: boolean;
|
|
10
|
-
shippingMethod: string;
|
|
11
|
-
total: {
|
|
12
|
-
discounts: DiscountProps[] | null;
|
|
13
|
-
subtotal: MoneyProps | null;
|
|
14
|
-
totalTax: MoneyProps | null;
|
|
15
|
-
totalShipping: MoneyProps | null;
|
|
16
|
-
grandTotal: MoneyProps | null;
|
|
17
|
-
};
|
|
18
|
-
token: string;
|
|
19
|
-
}
|
|
20
|
-
export type GuestOrderModelResponse = GuestOrderModel | null;
|
|
21
|
-
//# sourceMappingURL=guest-order.d.ts.map
|