@dropins/storefront-checkout 0.1.0-alpha50 → 0.1.0-alpha52

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 (88) hide show
  1. package/api/authenticateCustomer/authenticateCustomer.d.ts +18 -0
  2. package/api/authenticateCustomer/index.d.ts +18 -0
  3. package/api/fragments.d.ts +19 -0
  4. package/api/getCart/graphql/getCart.graphql.d.ts +0 -1
  5. package/api/getCustomer/graphql/getCustomer.graphql.d.ts +16 -16
  6. package/api/graphql/CartAddressFragment.graphql.d.ts +19 -0
  7. package/api/graphql/CheckoutDataFragment.graphql.d.ts +18 -0
  8. package/api/graphql/CustomerFragment.graphql.d.ts +18 -0
  9. package/api/graphql/OrderAddressFragment.graphql.d.ts +18 -0
  10. package/api/graphql/OrderFragment.graphql.d.ts +19 -0
  11. package/api/graphql/OrderItemFragment.graphql.d.ts +6 -0
  12. package/api/index.d.ts +17 -18
  13. package/api/initialize/initialize.d.ts +5 -5
  14. package/api/initialize/listeners.d.ts +15 -15
  15. package/api/initializeCheckout/initializeCheckout.d.ts +2 -2
  16. package/api/placeOrder/fixtures.d.ts +19 -5
  17. package/api/placeOrder/graphql/placeOrder.graphql.d.ts +16 -16
  18. package/api/placeOrder/placeOrder.d.ts +1 -1
  19. package/api/resetCheckout/index.d.ts +0 -16
  20. package/api/resetCheckout/resetCheckout.d.ts +15 -15
  21. package/api/setGuestEmailOnCart/graphql/setGuestEmailOnCart.graphql.d.ts +15 -15
  22. package/api/setPaymentMethod/graphql/setPaymentMethod.graphql.d.ts +15 -15
  23. package/api/setShippingMethods/graphql/setShippingMethodsOnCart.graphql.d.ts +15 -15
  24. package/api/synchronizeCheckout/index.d.ts +18 -0
  25. package/api/synchronizeCheckout/synchronizeCheckout.d.ts +4 -0
  26. package/api.js +8 -6
  27. package/chunks/Heading.js +2 -0
  28. package/chunks/OrderError.js +2 -0
  29. package/chunks/ServerErrorSignal.js +3 -0
  30. package/chunks/classes.js +2 -0
  31. package/chunks/fetch-graphql.js +4 -2
  32. package/chunks/isEmailAvailable.js +9 -0
  33. package/chunks/placeOrder2.js +252 -120
  34. package/chunks/setBillingAddress.js +7 -5
  35. package/chunks/setGuestEmailOnCart.js +7 -11
  36. package/chunks/setPaymentMethod.js +7 -5
  37. package/chunks/setShippingMethods.js +7 -5
  38. package/chunks/store-config.js +3 -1
  39. package/chunks/synchronizeCheckout.js +27 -0
  40. package/chunks/withConditionalRendering.js +3 -1
  41. package/components/BillToShippingAddress/BillToShippingAddress.d.ts +2 -1
  42. package/components/OrderConfirmationHeader/OrderConfirmationHeader.d.ts +10 -0
  43. package/components/OrderConfirmationHeader/OrderConfirmationHeaderSkeleton.d.ts +4 -0
  44. package/components/OrderConfirmationHeader/index.d.ts +3 -0
  45. package/components/index.d.ts +1 -0
  46. package/containers/BillToShippingAddress.js +3 -1
  47. package/containers/ErrorBanner.js +2 -0
  48. package/containers/EstimateShipping.js +3 -1
  49. package/containers/LoginForm.js +3 -1
  50. package/containers/MergedCartBanner.js +2 -0
  51. package/containers/OrderConfirmationHeader/OrderConfirmationHeader.d.ts +18 -0
  52. package/containers/OrderConfirmationHeader/index.d.ts +3 -0
  53. package/containers/OrderConfirmationHeader.d.ts +3 -0
  54. package/containers/OrderConfirmationHeader.js +3 -0
  55. package/containers/OutOfStock.js +2 -0
  56. package/containers/PaymentMethods.js +3 -1
  57. package/containers/PlaceOrder.js +3 -1
  58. package/containers/ServerError/ServerError.d.ts +3 -3
  59. package/containers/ServerError.js +3 -1
  60. package/containers/ShippingMethods.js +3 -1
  61. package/containers/index.d.ts +1 -0
  62. package/data/models/cart.d.ts +1 -0
  63. package/data/models/customer.d.ts +18 -10
  64. package/data/models/order.d.ts +111 -42
  65. package/data/transforms/index.d.ts +1 -0
  66. package/data/transforms/transform-acdl.d.ts +0 -1
  67. package/data/transforms/transform-cart.d.ts +1 -1
  68. package/data/transforms/transform-customer-address-input.d.ts +5 -0
  69. package/data/transforms/transform-customer.d.ts +2 -9
  70. package/data/transforms/transform-order.d.ts +16 -3
  71. package/fragments.d.ts +1 -0
  72. package/fragments.js +126 -0
  73. package/i18n/en_US.json.d.ts +9 -0
  74. package/lib/state.d.ts +17 -16
  75. package/package.json +1 -1
  76. package/render.js +6 -4
  77. package/utils/convertCase/convertCase.d.ts +4 -0
  78. package/utils/convertCase/index.d.ts +18 -0
  79. package/utils/index.d.ts +1 -0
  80. package/api/getCheckoutData/getCheckoutData.d.ts +0 -18
  81. package/api/getCheckoutData/index.d.ts +0 -18
  82. package/api/redirect/index.d.ts +0 -18
  83. package/api/redirect/redirect.d.ts +0 -18
  84. package/api/resetCustomer/index.d.ts +0 -18
  85. package/api/resetCustomer/resetCustomer.d.ts +0 -18
  86. package/chunks/getCart.graphql.js +0 -122
  87. package/chunks/getCustomer.js +0 -34
  88. package/chunks/resetCustomer.js +0 -1
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const authenticateCustomer: (authenticated?: boolean) => Promise<void>;
18
+ //# sourceMappingURL=authenticateCustomer.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './authenticateCustomer';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export { CHECKOUT_DATA_FRAGMENT } from './graphql/CheckoutDataFragment.graphql';
18
+ export { CUSTOMER_FRAGMENT } from './graphql/CustomerFragment.graphql';
19
+ //# sourceMappingURL=fragments.d.ts.map
@@ -14,7 +14,6 @@
14
14
  * is strictly forbidden unless prior written permission is obtained
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
- export declare const CHECKOUT_DATA_FRAGMENT = "\n fragment CheckoutData on Cart {\n is_virtual\n email\n total_quantity\n billing_address {\n id\n city\n country {\n code\n label\n }\n firstname\n lastname\n company\n postcode\n vat_id\n region {\n region_id\n code\n label\n }\n street\n telephone\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n }\n shipping_addresses {\n id\n firstname\n lastname\n company\n street\n city\n postcode\n vat_id\n region {\n region_id\n code\n label\n }\n country {\n code\n label\n }\n telephone\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n available_shipping_methods {\n amount {\n currency\n value\n }\n available\n carrier_code\n carrier_title\n error_message\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n selected_shipping_method {\n amount {\n value\n currency\n }\n carrier_code\n carrier_title\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n same_as_billing\n }\n available_payment_methods {\n code\n title\n }\n selected_payment_method {\n code\n title\n }\n }\n";
18
17
  export declare const getCartQuery: string;
19
18
  export declare const getCustomerCartQuery: string;
20
19
  //# sourceMappingURL=getCart.graphql.d.ts.map
@@ -1,18 +1,18 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
17
- export declare const getCustomerQuery = "\n query getCustomer {\n customer {\n firstname\n lastname\n email\n addresses {\n id\n default_shipping\n default_billing\n city\n country_code\n firstname\n lastname\n company\n postcode\n vat_id\n region {\n region\n region_id\n region_code\n }\n street\n telephone\n custom_attributesV2 {\n ... on AttributeValue {\n code\n value\n }\n }\n }\n }\n }\n";
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const getCustomerQuery: string;
18
18
  //# sourceMappingURL=getCustomer.graphql.d.ts.map
@@ -0,0 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const BILLING_CART_ADDRESS_FRAGMENT = "\n fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {\n id\n city\n country {\n code\n label\n }\n firstname\n lastname\n company\n postcode\n vat_id\n region {\n region_id\n code\n label\n }\n street\n telephone\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n }\n";
18
+ export declare const SHIPPING_CART_ADDRESS_FRAGMENT = "\n fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {\n id\n firstname\n lastname\n company\n street\n city\n postcode\n vat_id\n region {\n region_id\n code\n label\n }\n country {\n code\n label\n }\n telephone\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n available_shipping_methods {\n amount {\n currency\n value\n }\n available\n carrier_code\n carrier_title\n error_message\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n selected_shipping_method {\n amount {\n value\n currency\n }\n carrier_code\n carrier_title\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n same_as_billing\n }\n";
19
+ //# sourceMappingURL=CartAddressFragment.graphql.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const CHECKOUT_DATA_FRAGMENT: string;
18
+ //# sourceMappingURL=CheckoutDataFragment.graphql.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const CUSTOMER_FRAGMENT = "\n fragment CUSTOMER_FRAGMENT on Customer {\n firstname\n lastname\n email\n }\n";
18
+ //# sourceMappingURL=CustomerFragment.graphql.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const ORDER_ADDRESS_FRAGMENT = "\n fragment ORDER_ADDRESS_FRAGMENT on OrderAddress {\n city\n company\n country_code\n fax\n firstname\n lastname\n middlename\n postcode\n prefix\n region\n region_id\n street\n suffix\n telephone\n vat_id\n custom_attributesV2 {\n code\n ... on AttributeValue {\n value\n }\n }\n }\n";
18
+ //# sourceMappingURL=OrderAddressFragment.graphql.d.ts.map
@@ -0,0 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const ORDER_SUMMARY_FRAGMENT = "\n fragment ORDER_SUMMARY_FRAGMENT on OrderTotal {\n grand_total {\n value\n currency\n }\n total_giftcard {\n currency\n value\n }\n subtotal {\n currency\n value\n }\n taxes {\n amount {\n currency\n value\n }\n rate\n }\n total_tax {\n currency\n value\n }\n total_shipping {\n currency\n value\n }\n discounts {\n amount {\n currency\n value\n }\n label\n }\n }\n";
18
+ export declare const ORDER_FRAGMENT: string;
19
+ //# sourceMappingURL=OrderFragment.graphql.d.ts.map
@@ -0,0 +1,6 @@
1
+ export declare const PRODUCT_FRAGMENT = "\n fragment PRODUCT_FRAGMENT on ProductInterface {\n __typename\n canonical_url\n uid\n name\n sku\n only_x_left_in_stock\n stock_status\n image {\n url\n }\n thumbnail {\n label\n url\n }\n price_range {\n maximum_price {\n regular_price {\n currency\n value\n }\n }\n }\n }\n";
2
+ export declare const PRICE_FRAGMENT = "\n fragment PRICE_FRAGMENT on OrderItemInterface {\n prices {\n price_including_tax {\n value\n currency\n }\n original_price {\n value\n currency\n }\n original_price_including_tax {\n value\n currency\n }\n price {\n value\n currency\n }\n }\n }\n";
3
+ export declare const GIFT_CARD_FRAGMENT = "\n fragment GIFT_CARD_FRAGMENT on GiftCardOrderItem {\n ...PRICE_FRAGMENT\n gift_message {\n message\n }\n gift_card {\n recipient_name\n recipient_email\n sender_name\n sender_email\n message\n }\n }\n";
4
+ export declare const ORDER_ITEM_FRAGMENT = "\n fragment ORDER_ITEM_FRAGMENT on OrderItemInterface {\n __typename\n status\n product_name\n id\n quantity_ordered\n quantity_shipped\n quantity_canceled\n quantity_invoiced\n quantity_refunded\n quantity_returned\n product_sale_price {\n value\n currency\n }\n selected_options {\n label\n value\n }\n product {\n ...PRODUCT_FRAGMENT\n }\n ...PRICE_FRAGMENT\n }\n";
5
+ export declare const BUNDLE_ORDER_ITEM_FRAGMENT = "\n fragment BUNDLE_ORDER_ITEM_FRAGMENT on BundleOrderItem {\n ...PRICE_FRAGMENT\n bundle_options {\n uid\n label\n values {\n uid\n product_name\n }\n }\n }\n";
6
+ //# sourceMappingURL=OrderItemFragment.graphql.d.ts.map
package/api/index.d.ts CHANGED
@@ -1,36 +1,35 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './authenticateCustomer';
17
18
  export * from './errors';
18
19
  export * from './estimateShippingMethods';
19
20
  export * from './fetch-graphql';
20
21
  export * from './getCart';
21
- export * from './getCheckoutData';
22
22
  export * from './getCustomer';
23
23
  export * from './getStoreConfig';
24
24
  export * from './initialize';
25
25
  export * from './initializeCheckout';
26
26
  export * from './isEmailAvailable';
27
27
  export * from './placeOrder';
28
- export * from './redirect';
29
28
  export * from './resetCheckout';
30
- export * from './resetCustomer';
31
29
  export * from './setBillingAddress';
32
30
  export * from './setGuestEmailOnCart';
33
31
  export * from './setPaymentMethod';
34
32
  export * from './setShippingAddress';
35
33
  export * from './setShippingMethods';
34
+ export * from './synchronizeCheckout';
36
35
  //# sourceMappingURL=index.d.ts.map
@@ -1,13 +1,13 @@
1
1
  import { Lang } from '@dropins/tools/types/elsie/src/i18n';
2
- import { Initializer } from '@dropins/tools/types/elsie/src/lib';
2
+ import { Initializer, Model } from '@dropins/tools/types/elsie/src/lib';
3
+ import { Cart as CartModel, Customer as CustomerModel, Order as OrderModel } from '../../data/models';
3
4
 
4
5
  export type ConfigProps = {
5
6
  langDefinitions?: Lang;
6
7
  models?: {
7
- [name: string]: {
8
- initialData: any;
9
- transform?: (data?: any) => any;
10
- };
8
+ CartModel?: Model<CartModel>;
9
+ CustomerModel?: Model<CustomerModel>;
10
+ OrderModel?: Model<OrderModel>;
11
11
  };
12
12
  };
13
13
  export declare const initialize: Initializer<ConfigProps>;
@@ -1,19 +1,19 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
17
  export declare const addCheckoutEventListeners: () => ({
18
18
  off(): void;
19
19
  } | undefined)[];
@@ -1,4 +1,4 @@
1
- import { ConfigProps } from '..';
1
+ import { Cart } from '@adobe/event-bus';
2
2
 
3
- export declare const initializeCheckout: (config?: ConfigProps) => Promise<import('../../data/models/store-config').StoreConfig | undefined>;
3
+ export declare const initializeCheckout: (cart: Cart | null) => Promise<void>;
4
4
  //# sourceMappingURL=initializeCheckout.d.ts.map
@@ -1,6 +1,20 @@
1
- import { Order } from '../../data/models/order';
2
-
3
- export declare const customerOrder: (overrides?: Partial<Order>) => Order;
4
- export declare const customerOrderItem: (overrides?: Partial<Order['items'][number]>) => Order['items'][number];
5
- export declare const customerOrderItemProduct: (overrides?: Partial<Order['items'][number]['product']>) => Order['items'][number]['product'];
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const customerOrder: (overrides?: Order) => Order;
18
+ export declare const customerOrderItem: (overrides?: Order) => Order;
19
+ export declare const customerOrderItemProduct: (overrides?: Order) => Order;
6
20
  //# sourceMappingURL=fixtures.d.ts.map
@@ -1,18 +1,18 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
17
- export declare const placeOrderMutation = "\n mutation placeOrder($cartId: String!) {\n placeOrder(input: { cart_id: $cartId }) {\n errors {\n code\n message\n }\n orderV2 {\n number\n status\n token\n is_virtual\n applied_coupons {\n code\n }\n email\n id\n total {\n grand_total {\n currency\n value\n }\n subtotal {\n currency\n value\n }\n total_shipping {\n currency\n value\n }\n total_tax {\n currency\n value\n }\n }\n shipping_method\n payment_methods {\n name\n type\n }\n billing_address {\n firstname\n middlename\n lastname\n street\n city\n postcode\n telephone\n country_code\n region\n region_id\n company\n custom_attributesV2 {\n code\n ... on AttributeValue {\n value\n }\n }\n }\n shipping_address {\n firstname\n middlename\n lastname\n street\n city\n postcode\n telephone\n country_code\n region\n region_id\n company\n custom_attributesV2 {\n code\n ... on AttributeValue {\n value\n }\n }\n }\n items {\n __typename\n id\n discounts {\n amount {\n value\n }\n }\n product {\n __typename\n canonical_url\n image {\n url\n }\n thumbnail {\n label\n url\n }\n name\n sku\n uid\n price_range {\n maximum_price {\n regular_price {\n currency\n value\n }\n }\n }\n }\n selected_options {\n label\n value\n }\n product_sale_price {\n value\n currency\n }\n quantity_ordered\n ... on GiftCardOrderItem {\n gift_card {\n recipient_name\n recipient_email\n sender_name\n sender_email\n message\n }\n }\n }\n }\n }\n }\n";
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const placeOrderMutation: string;
18
18
  //# sourceMappingURL=placeOrder.graphql.d.ts.map
@@ -14,5 +14,5 @@
14
14
  * is strictly forbidden unless prior written permission is obtained
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
- export declare const placeOrder: () => Promise<import('../../data/models/order').Order>;
17
+ export declare const placeOrder: () => Promise<any>;
18
18
  //# sourceMappingURL=placeOrder.d.ts.map
@@ -1,18 +1,2 @@
1
- /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
17
1
  export * from './resetCheckout';
18
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,18 +1,18 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
17
  export declare const resetCheckout: () => void;
18
18
  //# sourceMappingURL=resetCheckout.d.ts.map
@@ -1,18 +1,18 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
17
  export declare const setGuestEmailMutation: string;
18
18
  //# sourceMappingURL=setGuestEmailOnCart.graphql.d.ts.map
@@ -1,18 +1,18 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
17
  export declare const setPaymentMethodMutation: string;
18
18
  //# sourceMappingURL=setPaymentMethod.graphql.d.ts.map
@@ -1,18 +1,18 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
17
  export declare const setShippingMethodsMutation: string;
18
18
  //# sourceMappingURL=setShippingMethodsOnCart.graphql.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './synchronizeCheckout';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { Cart } from '@adobe/event-bus';
2
+
3
+ export declare const synchronizeCheckout: (cart: Cart | null) => Promise<void>;
4
+ //# sourceMappingURL=synchronizeCheckout.d.ts.map