@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.
Files changed (220) hide show
  1. package/api/cancelOrder/cancelOrder.d.ts +2 -0
  2. package/api/cancelOrder/graphql/cancelOrderMutation.d.ts +2 -0
  3. package/api/cancelOrder/index.d.ts +2 -0
  4. package/api/confirmCancelOrder/confirmCancelOrder.d.ts +16 -0
  5. package/api/confirmCancelOrder/graphql/ConfirmCancelOrder.d.ts +16 -0
  6. package/api/confirmCancelOrder/index.d.ts +16 -0
  7. package/api/getAttributesForm/getAttributesForm.d.ts +4 -0
  8. package/api/getAttributesForm/graphql/getAttributesForm.graphql.d.ts +3 -0
  9. package/api/getAttributesForm/index.d.ts +2 -0
  10. package/api/getAttributesList/getAttributesList.d.ts +5 -0
  11. package/api/getAttributesList/graphql/getAttributesList.graphql.d.ts +2 -0
  12. package/api/getAttributesList/index.d.ts +2 -0
  13. package/api/getCustomer/getCustomer.d.ts +4 -0
  14. package/api/getCustomer/graphql/getCustomer.graphql.d.ts +2 -0
  15. package/api/getCustomer/index.d.ts +2 -0
  16. package/api/getCustomerOrdersReturn/getCustomerOrdersReturn.d.ts +4 -0
  17. package/api/getCustomerOrdersReturn/graphql/getCustomerOrdersReturn.graphql.d.ts +2 -0
  18. package/api/getCustomerOrdersReturn/index.d.ts +2 -0
  19. package/api/getGuestOrder/getGuestOrder.d.ts +3 -3
  20. package/api/getGuestOrder/graphql/index.d.ts +2 -0
  21. package/api/getOrderDetailsById/getOrderDetailsById.d.ts +2 -2
  22. package/api/getOrderDetailsById/graphql/index.d.ts +1 -0
  23. package/api/getOrderDetailsById/graphql/orderItemsFragment.graphql.d.ts +5 -1
  24. package/api/getOrderDetailsById/graphql/orderSummaryFragment.graphql.d.ts +1 -1
  25. package/api/getOrderDetailsById/graphql/returnsFragment.graphql.d.ts +2 -0
  26. package/api/getStoreConfig/getStoreConfig.d.ts +4 -0
  27. package/api/getStoreConfig/graphql/StoreConfigQuery.d.ts +2 -0
  28. package/api/getStoreConfig/index.d.ts +2 -0
  29. package/api/guestOrderByToken/graphql/guestOrderByToken.graphql.d.ts +2 -0
  30. package/api/guestOrderByToken/guestOrderByToken.d.ts +4 -0
  31. package/api/guestOrderByToken/index.d.ts +2 -0
  32. package/api/helpers/initializeOrderDetails.d.ts +3 -1
  33. package/api/index.d.ts +13 -2
  34. package/api/placeOrder/graphql/placeOrderMutation.d.ts +2 -0
  35. package/api/placeOrder/index.d.ts +2 -0
  36. package/api/placeOrder/placeOrder.d.ts +4 -0
  37. package/api/reorderItems/graphql/reorderItems.graphql.d.ts +2 -0
  38. package/api/reorderItems/index.d.ts +2 -0
  39. package/api/reorderItems/reorderItems.d.ts +4 -0
  40. package/api/requestGuestOrderCancel/graphql/requestGuestOrderCancelMutation.d.ts +2 -0
  41. package/api/requestGuestOrderCancel/index.d.ts +2 -0
  42. package/api/requestGuestOrderCancel/requestGuestOrderCancel.d.ts +2 -0
  43. package/api/requestReturn/graphql/fragments.d.ts +2 -0
  44. package/api/requestReturn/graphql/requestReturn.graphql.d.ts +2 -0
  45. package/api/requestReturn/index.d.ts +2 -0
  46. package/api/requestReturn/requestReturn.d.ts +9 -0
  47. package/api.js +281 -13
  48. package/chunks/CartSummaryItem.js +3 -0
  49. package/chunks/OrderCancelForm.js +3 -0
  50. package/chunks/OrderLoaders.js +3 -0
  51. package/chunks/ReturnsListContent.js +3 -0
  52. package/chunks/ShippingStatusCard.js +3 -0
  53. package/chunks/convertCase.js +3 -0
  54. package/chunks/fetch-graphql.js +3 -0
  55. package/chunks/formatDateToLocale.js +3 -0
  56. package/chunks/getAttributesForm.js +49 -0
  57. package/chunks/getCustomerOrdersReturn.js +21 -0
  58. package/chunks/getFormValues.js +3 -0
  59. package/chunks/getGuestOrder.graphql.js +160 -0
  60. package/chunks/getGuestOrder.js +9 -131
  61. package/chunks/getStoreConfig.js +19 -0
  62. package/chunks/network-error.js +3 -0
  63. package/chunks/redirectTo.js +3 -0
  64. package/chunks/reorderItems.js +20 -0
  65. package/chunks/requestGuestOrderCancel.js +99 -0
  66. package/chunks/requestReturn.js +52 -0
  67. package/chunks/returnOrdersHelper.js +3 -0
  68. package/chunks/setTaxStatus.js +3 -0
  69. package/chunks/transform-attributes-form.js +3 -0
  70. package/chunks/transform-customer-orders-returns.js +142 -0
  71. package/chunks/useGetStoreConfig.js +3 -0
  72. package/chunks/useIsMobile.js +3 -0
  73. package/components/CustomerDetailsContent/CustomerDetailsContent.d.ts +5 -0
  74. package/components/CustomerDetailsContent/index.d.ts +3 -0
  75. package/components/EmptyList/EmptyList.d.ts +5 -0
  76. package/components/EmptyList/index.d.ts +3 -0
  77. package/components/OrderActions/OrderActions.d.ts +5 -0
  78. package/components/OrderActions/index.d.ts +3 -0
  79. package/components/OrderCancel/OrderCancel.d.ts +5 -0
  80. package/components/OrderCancel/index.d.ts +3 -0
  81. package/components/OrderCostSummaryContent/Blocks.d.ts +38 -0
  82. package/components/OrderCostSummaryContent/OrderCostSummaryContent.d.ts +5 -0
  83. package/components/OrderCostSummaryContent/index.d.ts +3 -0
  84. package/components/OrderHeader/OrderHeader.d.ts +9 -0
  85. package/components/OrderHeader/index.d.ts +2 -0
  86. package/components/OrderLoaders/OrderLoaders.d.ts +10 -0
  87. package/components/OrderLoaders/index.d.ts +3 -0
  88. package/components/OrderProductListContent/CartSummaryItem.d.ts +5 -0
  89. package/components/OrderProductListContent/OrderProductListContent.d.ts +5 -0
  90. package/components/OrderProductListContent/index.d.ts +4 -0
  91. package/components/OrderStatusContent/OrderStatusContent.d.ts +5 -0
  92. package/components/OrderStatusContent/index.d.ts +3 -0
  93. package/components/Reorder/Reorder.d.ts +5 -0
  94. package/components/Reorder/index.d.ts +3 -0
  95. package/components/ReturnOrderMessage/ReturnOrderMessage.d.ts +5 -0
  96. package/components/ReturnOrderMessage/index.d.ts +3 -0
  97. package/components/ReturnOrderProductList/ReturnOrderProductList.d.ts +5 -0
  98. package/components/ReturnOrderProductList/index.d.ts +3 -0
  99. package/components/ReturnReasonForm/ReturnReasonForm.d.ts +5 -0
  100. package/components/ReturnReasonForm/index.d.ts +3 -0
  101. package/components/ReturnsListContent/ReturnsListContent.d.ts +5 -0
  102. package/components/ReturnsListContent/index.d.ts +3 -0
  103. package/components/ShippingStatusCard/ShippingStatusCard.d.ts +5 -0
  104. package/components/ShippingStatusCard/ShippingStatusReturnCard.d.ts +5 -0
  105. package/components/ShippingStatusCard/index.d.ts +4 -0
  106. package/components/index.d.ts +16 -1
  107. package/configs/defaultAttributePreset.config.d.ts +2 -0
  108. package/configs/mock.config.d.ts +3567 -0
  109. package/containers/CreateReturn/CreateReturn.d.ts +5 -0
  110. package/containers/CreateReturn/index.d.ts +3 -0
  111. package/containers/CreateReturn.d.ts +3 -0
  112. package/containers/CreateReturn.js +3 -0
  113. package/containers/CustomerDetails/CustomerDetails.d.ts +5 -0
  114. package/containers/CustomerDetails/index.d.ts +3 -0
  115. package/containers/CustomerDetails.d.ts +3 -0
  116. package/containers/CustomerDetails.js +3 -0
  117. package/containers/OrderCancelForm/OrderCancelForm.d.ts +5 -0
  118. package/containers/OrderCancelForm/index.d.ts +3 -0
  119. package/containers/OrderCancelForm.d.ts +3 -0
  120. package/containers/OrderCancelForm.js +3 -0
  121. package/containers/OrderCostSummary/OrderCostSummary.d.ts +5 -0
  122. package/containers/OrderCostSummary/index.d.ts +3 -0
  123. package/containers/OrderCostSummary.d.ts +3 -0
  124. package/containers/OrderCostSummary.js +3 -0
  125. package/containers/OrderHeader/OrderHeader.d.ts +5 -0
  126. package/containers/OrderHeader/index.d.ts +3 -0
  127. package/containers/OrderHeader.d.ts +3 -0
  128. package/containers/OrderHeader.js +3 -0
  129. package/containers/OrderProductList/OrderProductList.d.ts +5 -0
  130. package/containers/OrderProductList/index.d.ts +3 -0
  131. package/containers/OrderProductList.d.ts +3 -0
  132. package/containers/OrderProductList.js +3 -0
  133. package/containers/OrderReturns/OrderReturns.d.ts +5 -0
  134. package/containers/OrderReturns/index.d.ts +3 -0
  135. package/containers/OrderReturns.d.ts +3 -0
  136. package/containers/OrderReturns.js +3 -0
  137. package/containers/OrderSearch.js +3 -1
  138. package/containers/OrderStatus/OrderStatus.d.ts +5 -0
  139. package/containers/OrderStatus/index.d.ts +3 -0
  140. package/containers/OrderStatus.d.ts +3 -0
  141. package/containers/OrderStatus.js +22 -0
  142. package/containers/ReturnsList/ReturnsList.d.ts +5 -0
  143. package/containers/ReturnsList/index.d.ts +3 -0
  144. package/containers/ReturnsList.d.ts +3 -0
  145. package/containers/ReturnsList.js +3 -0
  146. package/containers/ShippingStatus/ShippingStatus.d.ts +5 -0
  147. package/containers/ShippingStatus/index.d.ts +3 -0
  148. package/containers/ShippingStatus.d.ts +3 -0
  149. package/containers/ShippingStatus.js +3 -0
  150. package/containers/index.d.ts +10 -0
  151. package/data/models/acdl.d.ts +99 -0
  152. package/data/models/attributes-form.d.ts +27 -0
  153. package/data/models/customer-orders-return.d.ts +38 -0
  154. package/data/models/customer.d.ts +6 -0
  155. package/data/models/index.d.ts +5 -1
  156. package/data/models/order-details.d.ts +162 -31
  157. package/data/models/store-config.d.ts +15 -0
  158. package/data/transforms/index.d.ts +8 -1
  159. package/data/transforms/transform-acdl.d.ts +5 -0
  160. package/data/transforms/transform-attributes-form.d.ts +7 -0
  161. package/data/transforms/transform-customer-address-input.d.ts +22 -0
  162. package/data/transforms/transform-customer-orders-returns.d.ts +5 -0
  163. package/data/transforms/transform-customer.d.ts +5 -0
  164. package/data/transforms/transform-guest-order.d.ts +4 -3
  165. package/data/transforms/transform-order-details.d.ts +15 -3
  166. package/data/transforms/transform-place-order.d.ts +5 -0
  167. package/data/transforms/transform-store-config.d.ts +4 -0
  168. package/hooks/api/useGetStoreConfig.d.ts +4 -0
  169. package/hooks/containers/useConfirmCancelOrder.d.ts +9 -0
  170. package/hooks/containers/useCreateReturn.d.ts +64 -0
  171. package/hooks/containers/useCustomerDetails.d.ts +12 -0
  172. package/hooks/containers/useOrderCostSummary.d.ts +9 -0
  173. package/hooks/containers/useOrderHeader.d.ts +8 -0
  174. package/hooks/containers/useOrderProductList.d.ts +8 -0
  175. package/hooks/containers/useOrderReturns.d.ts +8 -0
  176. package/hooks/containers/useOrderSearch.d.ts +3 -3
  177. package/hooks/containers/useOrderStatus.d.ts +8 -0
  178. package/hooks/containers/useReturnsList.d.ts +15 -0
  179. package/hooks/containers/useShippingStatus.d.ts +9 -0
  180. package/hooks/index.d.ts +11 -0
  181. package/hooks/useInLineAlert.d.ts +7 -0
  182. package/hooks/useIsMobile.d.ts +2 -0
  183. package/i18n/en_US.json.d.ts +322 -3
  184. package/lib/acdl.d.ts +18 -0
  185. package/lib/capitalizeFirst.d.ts +2 -0
  186. package/lib/categorizeProducts.d.ts +66 -0
  187. package/lib/convertCase.d.ts +4 -0
  188. package/lib/formatDateToLocale.d.ts +31 -0
  189. package/lib/getQueryParam.d.ts +2 -0
  190. package/lib/redirectTo.d.ts +3 -0
  191. package/lib/returnOrdersHelper.d.ts +36 -0
  192. package/lib/setTaxStatus.d.ts +4 -0
  193. package/package.json +1 -1
  194. package/render.js +5 -2
  195. package/types/api/getAttributesForm.types.d.ts +31 -0
  196. package/types/api/getAttributesList.types.d.ts +28 -0
  197. package/types/api/getCustomer.types.d.ts +13 -0
  198. package/types/api/getCustomerOrdersReturn.types.d.ts +21 -0
  199. package/types/api/getOrderDetails.types.d.ts +123 -39
  200. package/types/api/guestOrderByToken.types.d.ts +13 -0
  201. package/types/api/placeOrder.types.d.ts +19 -0
  202. package/types/api/reorderItems.types.d.ts +27 -0
  203. package/types/api/requestReturn.types.d.ts +33 -0
  204. package/types/createReturn.types.d.ts +71 -0
  205. package/types/customerDetails.types.d.ts +59 -0
  206. package/types/emptyList.types.d.ts +7 -0
  207. package/types/form.types.d.ts +6 -6
  208. package/types/index.d.ts +22 -2
  209. package/types/notification.types.d.ts +14 -0
  210. package/types/orderCancel.types.d.ts +16 -0
  211. package/types/orderCostSummary.types.d.ts +29 -0
  212. package/types/orderHeader.types.d.ts +19 -0
  213. package/types/orderProductList.types.d.ts +36 -0
  214. package/types/orderSearch.types.d.ts +21 -3
  215. package/types/orderStatus.types.d.ts +49 -0
  216. package/types/reorder.types.d.ts +9 -0
  217. package/types/returnsList.types.d.ts +82 -0
  218. package/types/shippingStatus.types.d.ts +49 -0
  219. package/data/models/guest-order.d.ts +0 -21
  220. 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 OrderSearchFormProps extends Omit<OrderSearchProps, 'className'> {
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: boolean;
29
+ loading?: boolean;
13
30
  inLineAlert: inLineAlertProps;
14
- fieldsConfig: FieldsProps[];
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
@@ -1,2 +0,0 @@
1
- export declare const convertToInputDateFormat: (dateTimeString: string) => string;
2
- //# sourceMappingURL=convertToInputDateFormat.d.ts.map