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

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 (289) hide show
  1. package/api/errors/errors.d.ts +30 -0
  2. package/api/errors/index.d.ts +18 -0
  3. package/api/estimateShippingMethods/estimateShippingMethods.d.ts +13 -0
  4. package/api/estimateShippingMethods/fixtures.d.ts +8 -0
  5. package/api/estimateShippingMethods/graphql/estimateShippingMethods.graphql.d.ts +18 -0
  6. package/api/estimateShippingMethods/graphql/index.d.ts +18 -0
  7. package/api/estimateShippingMethods/index.d.ts +18 -0
  8. package/api/fetch-graphql/fetch-graphql.d.ts +25 -0
  9. package/api/fetch-graphql/index.d.ts +18 -0
  10. package/api/getCart/fixtures.d.ts +12 -0
  11. package/api/getCart/getCart.d.ts +18 -0
  12. package/api/getCart/graphql/getCart.graphql.d.ts +20 -0
  13. package/api/getCart/graphql/index.d.ts +18 -0
  14. package/api/getCart/index.d.ts +18 -0
  15. package/api/getCheckoutData/getCheckoutData.d.ts +18 -0
  16. package/api/getCheckoutData/index.d.ts +18 -0
  17. package/api/getCustomer/fixtures.d.ts +5 -0
  18. package/api/getCustomer/getCustomer.d.ts +4 -0
  19. package/api/getCustomer/graphql/getCustomer.graphql.d.ts +18 -0
  20. package/api/getCustomer/graphql/index.d.ts +18 -0
  21. package/api/getCustomer/index.d.ts +18 -0
  22. package/api/getStoreConfig/getStoreConfig.d.ts +6 -0
  23. package/api/getStoreConfig/graphql/getStoreConfig.graphql.d.ts +18 -0
  24. package/api/getStoreConfig/index.d.ts +18 -0
  25. package/api/index.d.ts +36 -0
  26. package/api/initialize/index.d.ts +18 -0
  27. package/api/initialize/initialize.d.ts +15 -0
  28. package/api/initialize/listeners.d.ts +20 -0
  29. package/api/initializeCheckout/index.d.ts +18 -0
  30. package/api/initializeCheckout/initializeCheckout.d.ts +4 -0
  31. package/api/isEmailAvailable/graphql/isEmailAvailable.graphql.d.ts +18 -0
  32. package/api/isEmailAvailable/index.d.ts +18 -0
  33. package/api/isEmailAvailable/isEmailAvailable.d.ts +4 -0
  34. package/api/placeOrder/fixtures.d.ts +6 -0
  35. package/api/placeOrder/graphql/index.d.ts +18 -0
  36. package/api/placeOrder/graphql/placeOrder.graphql.d.ts +18 -0
  37. package/api/placeOrder/index.d.ts +18 -0
  38. package/api/placeOrder/placeOrder.d.ts +18 -0
  39. package/api/redirect/index.d.ts +18 -0
  40. package/api/redirect/redirect.d.ts +18 -0
  41. package/api/resetCheckout/index.d.ts +18 -0
  42. package/api/resetCheckout/resetCheckout.d.ts +18 -0
  43. package/api/resetCustomer/index.d.ts +18 -0
  44. package/api/resetCustomer/resetCustomer.d.ts +18 -0
  45. package/api/setBillingAddress/graphql/setBillingAddress.graphql.d.ts +18 -0
  46. package/api/setBillingAddress/index.d.ts +18 -0
  47. package/api/setBillingAddress/setBillingAddress.d.ts +4 -0
  48. package/api/setGuestEmailOnCart/graphql/setGuestEmailOnCart.graphql.d.ts +18 -0
  49. package/api/setGuestEmailOnCart/index.d.ts +18 -0
  50. package/api/setGuestEmailOnCart/setGuestEmailOnCart.d.ts +18 -0
  51. package/api/setPaymentMethod/graphql/setPaymentMethod.graphql.d.ts +18 -0
  52. package/api/setPaymentMethod/index.d.ts +18 -0
  53. package/api/setPaymentMethod/setPaymentMethod.d.ts +18 -0
  54. package/api/setShippingAddress/graphql/setShippingAddress.graphql.d.ts +18 -0
  55. package/api/setShippingAddress/index.d.ts +18 -0
  56. package/api/setShippingAddress/setShippingAddress.d.ts +4 -0
  57. package/api/setShippingMethods/graphql/setShippingMethodsOnCart.graphql.d.ts +18 -0
  58. package/api/setShippingMethods/index.d.ts +18 -0
  59. package/api/setShippingMethods/setShippingMethods.d.ts +18 -0
  60. package/api/utils/dispatchApiCall.d.ts +38 -0
  61. package/api/utils/enqueueRequest.d.ts +18 -0
  62. package/api/utils/filterControlledErrors.d.ts +18 -0
  63. package/api.d.ts +1 -0
  64. package/api.js +37 -2
  65. package/chunks/Heading.js +1 -0
  66. package/chunks/OrderError.js +1 -0
  67. package/chunks/classes.js +1 -0
  68. package/chunks/fetch-graphql.js +10 -0
  69. package/chunks/getCart.graphql.js +122 -0
  70. package/chunks/getCustomer.js +34 -0
  71. package/chunks/placeOrder2.js +131 -0
  72. package/chunks/resetCustomer.js +1 -0
  73. package/chunks/setBillingAddress.js +11 -0
  74. package/chunks/setGuestEmailOnCart.js +17 -0
  75. package/chunks/setPaymentMethod.js +13 -0
  76. package/chunks/setShippingMethods.js +16 -0
  77. package/chunks/store-config.js +1 -0
  78. package/chunks/withConditionalRendering.js +1 -0
  79. package/components/BillToShippingAddress/BillToShippingAddress.d.ts +8 -0
  80. package/components/BillToShippingAddress/BillToShippingAddressSkeleton.d.ts +4 -0
  81. package/components/BillToShippingAddress/index.d.ts +20 -0
  82. package/components/EstimateShipping/EstimateShipping.d.ts +12 -0
  83. package/components/EstimateShipping/EstimateShippingSkeleton.d.ts +4 -0
  84. package/components/EstimateShipping/index.d.ts +20 -0
  85. package/components/Heading/Heading.d.ts +8 -0
  86. package/components/Heading/index.d.ts +19 -0
  87. package/components/LoginForm/Email.d.ts +13 -0
  88. package/components/LoginForm/LoginForm.d.ts +20 -0
  89. package/components/LoginForm/LoginFormSkeleton.d.ts +4 -0
  90. package/components/LoginForm/SignIn.d.ts +8 -0
  91. package/components/LoginForm/SignOut.d.ts +8 -0
  92. package/components/LoginForm/index.d.ts +22 -0
  93. package/components/OutOfStock/OutOfStock.d.ts +11 -0
  94. package/components/OutOfStock/index.d.ts +19 -0
  95. package/components/OverlayLoader/OverlayLoader.d.ts +6 -0
  96. package/components/OverlayLoader/index.d.ts +18 -0
  97. package/components/PaymentMethods/PaymentMethods.d.ts +14 -0
  98. package/components/PaymentMethods/PaymentMethodsSkeleton.d.ts +4 -0
  99. package/components/PaymentMethods/index.d.ts +20 -0
  100. package/components/PlaceOrder/PlaceOrder.d.ts +9 -0
  101. package/components/PlaceOrder/PlaceOrderSkeleton.d.ts +4 -0
  102. package/components/PlaceOrder/index.d.ts +19 -0
  103. package/components/ServerError/ServerError.d.ts +10 -0
  104. package/components/ServerError/index.d.ts +19 -0
  105. package/components/ShippingMethods/ShippingMethods.d.ts +12 -0
  106. package/components/ShippingMethods/ShippingMethodsSkeleton.d.ts +4 -0
  107. package/components/ShippingMethods/index.d.ts +20 -0
  108. package/components/index.d.ts +27 -0
  109. package/containers/BillToShippingAddress/BillToShippingAddress.d.ts +24 -0
  110. package/containers/BillToShippingAddress/index.d.ts +19 -0
  111. package/containers/BillToShippingAddress.d.ts +3 -0
  112. package/containers/BillToShippingAddress.js +1 -1
  113. package/containers/ErrorBanner/ErrorBanner.d.ts +5 -0
  114. package/containers/ErrorBanner/index.d.ts +19 -0
  115. package/containers/ErrorBanner.d.ts +3 -0
  116. package/containers/ErrorBanner.js +1 -0
  117. package/containers/EstimateShipping/EstimateShipping.d.ts +4 -0
  118. package/containers/EstimateShipping/index.d.ts +19 -0
  119. package/containers/EstimateShipping.d.ts +3 -0
  120. package/containers/EstimateShipping.js +1 -0
  121. package/containers/LoginForm/LoginForm.d.ts +11 -0
  122. package/containers/LoginForm/index.d.ts +19 -0
  123. package/containers/LoginForm.d.ts +3 -0
  124. package/containers/LoginForm.js +1 -1
  125. package/containers/MergedCartBanner/MergedCartBanner.d.ts +5 -0
  126. package/containers/MergedCartBanner/index.d.ts +19 -0
  127. package/containers/MergedCartBanner.d.ts +3 -0
  128. package/containers/MergedCartBanner.js +1 -0
  129. package/containers/OutOfStock/OutOfStock.d.ts +13 -0
  130. package/containers/OutOfStock/index.d.ts +19 -0
  131. package/containers/OutOfStock.d.ts +3 -0
  132. package/containers/OutOfStock.js +1 -0
  133. package/containers/PaymentMethods/PaymentMethods.d.ts +24 -0
  134. package/containers/PaymentMethods/defaultHandlers.d.ts +4 -0
  135. package/containers/PaymentMethods/index.d.ts +19 -0
  136. package/containers/PaymentMethods.d.ts +3 -0
  137. package/containers/PaymentMethods.js +1 -1
  138. package/containers/PlaceOrder/PlaceOrder.d.ts +14 -0
  139. package/containers/PlaceOrder/index.d.ts +19 -0
  140. package/containers/PlaceOrder.d.ts +3 -0
  141. package/containers/PlaceOrder.js +1 -1
  142. package/containers/ServerError/ServerError.d.ts +8 -0
  143. package/containers/ServerError/index.d.ts +19 -0
  144. package/containers/ServerError.d.ts +3 -0
  145. package/containers/ServerError.js +1 -0
  146. package/containers/ShippingMethods/ShippingMethods.d.ts +18 -0
  147. package/containers/ShippingMethods/hooks/useShippingEstimateEventEmitter.d.ts +19 -0
  148. package/containers/ShippingMethods/index.d.ts +19 -0
  149. package/containers/ShippingMethods.d.ts +3 -0
  150. package/containers/ShippingMethods.js +1 -1
  151. package/containers/index.d.ts +27 -0
  152. package/data/models/acdl.d.ts +115 -0
  153. package/data/models/address.d.ts +17 -0
  154. package/data/models/api.d.ts +29 -0
  155. package/data/models/cart.d.ts +18 -0
  156. package/data/models/country.d.ts +21 -0
  157. package/data/models/custom-attribute.d.ts +21 -0
  158. package/data/models/customer.d.ts +14 -0
  159. package/data/models/email-availability.d.ts +18 -0
  160. package/data/models/index.d.ts +32 -0
  161. package/data/models/order.d.ts +81 -0
  162. package/data/models/payment-method.d.ts +21 -0
  163. package/data/models/price.d.ts +21 -0
  164. package/data/models/region.d.ts +22 -0
  165. package/data/models/shipping-estimate.d.ts +17 -0
  166. package/data/models/shipping-method.d.ts +19 -0
  167. package/data/models/store-config.d.ts +30 -0
  168. package/data/transforms/index.d.ts +26 -0
  169. package/data/transforms/transform-acdl.d.ts +6 -0
  170. package/data/transforms/transform-address.d.ts +91 -0
  171. package/data/transforms/transform-cart.d.ts +7 -0
  172. package/data/transforms/transform-customer.d.ts +14 -0
  173. package/data/transforms/transform-email-availability.d.ts +6 -0
  174. package/data/transforms/transform-order.d.ts +7 -0
  175. package/data/transforms/transform-payment-methods.d.ts +9 -0
  176. package/data/transforms/transform-shipping-estimate.d.ts +5 -0
  177. package/data/transforms/transform-shipping-methods.d.ts +14 -0
  178. package/data/transforms/transform-store-config.d.ts +6 -0
  179. package/hocs/index.d.ts +18 -0
  180. package/hocs/withConditionalRendering.d.ts +13 -0
  181. package/hooks/index.d.ts +20 -0
  182. package/hooks/useBreakpoint/index.d.ts +18 -0
  183. package/hooks/useBreakpoint/useBreakpoint.d.ts +18 -0
  184. package/hooks/useLockScroll/index.d.ts +18 -0
  185. package/hooks/useLockScroll/useLockScroll.d.ts +21 -0
  186. package/hooks/useStableList/index.d.ts +2 -0
  187. package/hooks/useStableList/useStableList.d.ts +2 -0
  188. package/i18n/en_US.json.d.ts +79 -0
  189. package/lib/acdl.d.ts +18 -0
  190. package/lib/backup-data.d.ts +20 -0
  191. package/lib/fetch-error.d.ts +23 -0
  192. package/lib/index.d.ts +20 -0
  193. package/lib/network-error.d.ts +22 -0
  194. package/lib/redirect.d.ts +18 -0
  195. package/lib/state.d.ts +23 -0
  196. package/lib/validation.d.ts +5 -0
  197. package/msw/browser.d.ts +18 -0
  198. package/msw/fixtures/fragments/available-shipping-methods.d.ts +23 -0
  199. package/msw/fixtures/fragments/billing-address.d.ts +52 -0
  200. package/msw/fixtures/fragments/cart.d.ts +141 -0
  201. package/msw/fixtures/fragments/index.d.ts +21 -0
  202. package/msw/fixtures/fragments/shipping-address.d.ts +58 -0
  203. package/msw/fixtures/index.d.ts +20 -0
  204. package/msw/fixtures/mutations/estimate-shipping-methods.d.ts +4 -0
  205. package/msw/fixtures/mutations/index.d.ts +24 -0
  206. package/msw/fixtures/mutations/place-order.d.ts +4 -0
  207. package/msw/fixtures/mutations/set-billing-address.d.ts +5 -0
  208. package/msw/fixtures/mutations/set-guest-email.d.ts +4 -0
  209. package/msw/fixtures/mutations/set-payment-method.d.ts +4 -0
  210. package/msw/fixtures/mutations/set-shipping-address.d.ts +4 -0
  211. package/msw/fixtures/mutations/set-shipping-methods.d.ts +4 -0
  212. package/msw/fixtures/queries/get-cart.d.ts +4 -0
  213. package/msw/fixtures/queries/get-customer-cart-stock-status.d.ts +4 -0
  214. package/msw/fixtures/queries/get-customer.d.ts +5 -0
  215. package/msw/fixtures/queries/get-stock-status.d.ts +4 -0
  216. package/msw/fixtures/queries/get-store-config.d.ts +4 -0
  217. package/msw/fixtures/queries/index.d.ts +23 -0
  218. package/msw/fixtures/queries/is-email-available.d.ts +4 -0
  219. package/msw/handlers.d.ts +4 -0
  220. package/msw/server.d.ts +18 -0
  221. package/package.json +1 -1
  222. package/render/Provider.d.ts +8 -0
  223. package/render/index.d.ts +18 -0
  224. package/render/render.d.ts +6 -0
  225. package/render.d.ts +1 -0
  226. package/render.js +4 -1
  227. package/signals/CartSignal.d.ts +7 -0
  228. package/signals/CustomerSignal.d.ts +7 -0
  229. package/signals/EstimateShippingMethodsSignal.d.ts +7 -0
  230. package/signals/IsBillToShippingSignal.d.ts +18 -0
  231. package/signals/SelectedShippingMethodSignal.d.ts +4 -0
  232. package/signals/ServerErrorSignal.d.ts +18 -0
  233. package/signals/StoreConfigSignal.d.ts +7 -0
  234. package/signals/index.d.ts +24 -0
  235. package/tests/constants.d.ts +19 -0
  236. package/tests/integration/utils/index.d.ts +19 -0
  237. package/tests/integration/utils/setup.d.ts +8 -0
  238. package/tests/integration/utils/user-actions.d.ts +18 -0
  239. package/tests/mocks/svg.d.ts +20 -0
  240. package/tests/utils/expectError.d.ts +25 -0
  241. package/tests/utils/index.d.ts +19 -0
  242. package/tests/utils/mockEvents.d.ts +21 -0
  243. package/utils/getDisplayName/getDisplayName.d.ts +4 -0
  244. package/utils/getDisplayName/index.d.ts +18 -0
  245. package/utils/index.d.ts +21 -0
  246. package/utils/isEmpty/index.d.ts +18 -0
  247. package/utils/isEmpty/isEmpty.d.ts +18 -0
  248. package/utils/isNullish/index.d.ts +18 -0
  249. package/utils/isNullish/isNullish.d.ts +18 -0
  250. package/utils/isUnexpectedError/index.d.ts +18 -0
  251. package/utils/isUnexpectedError/isUnexpectedError.d.ts +18 -0
  252. package/utils/refetchEstimatedShippingMethods/index.d.ts +18 -0
  253. package/utils/refetchEstimatedShippingMethods/refetchEstimatedShippingMethods.d.ts +5 -0
  254. package/utils/shippingMethods/index.d.ts +18 -0
  255. package/utils/shippingMethods/isEqual.d.ts +4 -0
  256. package/212.js +0 -2
  257. package/212.js.LICENSE.txt +0 -1
  258. package/261.js +0 -2
  259. package/261.js.LICENSE.txt +0 -1
  260. package/325.js +0 -2
  261. package/325.js.LICENSE.txt +0 -1
  262. package/350.js +0 -2
  263. package/350.js.LICENSE.txt +0 -1
  264. package/41.js +0 -2
  265. package/41.js.LICENSE.txt +0 -1
  266. package/486.js +0 -2
  267. package/486.js.LICENSE.txt +0 -1
  268. package/494.js +0 -2
  269. package/494.js.LICENSE.txt +0 -1
  270. package/516.js +0 -1
  271. package/548.js +0 -1
  272. package/549.js +0 -2
  273. package/549.js.LICENSE.txt +0 -1
  274. package/565.js +0 -2
  275. package/565.js.LICENSE.txt +0 -1
  276. package/655.js +0 -1
  277. package/693.js +0 -1
  278. package/757.js +0 -1
  279. package/805.js +0 -2
  280. package/805.js.LICENSE.txt +0 -1
  281. package/942.js +0 -1
  282. package/api.js.LICENSE.txt +0 -1
  283. package/containers/AddressForm.js +0 -1
  284. package/containers/BillingForm.js +0 -1
  285. package/containers/Checkout.js +0 -2
  286. package/containers/Checkout.js.LICENSE.txt +0 -1
  287. package/containers/OrderSummary.js +0 -1
  288. package/containers/ShippingForm.js +0 -1
  289. package/runtime.js +0 -1
@@ -0,0 +1,30 @@
1
+ import { FetchQueryError } from '../fetch-graphql';
2
+
3
+ export declare class FetchError extends Error {
4
+ constructor(reasons: FetchQueryError);
5
+ }
6
+ export declare class InvalidArgument extends Error {
7
+ constructor(message: string);
8
+ }
9
+ export declare class UnexpectedError extends Error {
10
+ constructor(message: string);
11
+ }
12
+ export declare class MissingCart extends InvalidArgument {
13
+ constructor();
14
+ }
15
+ export declare class MissingEmail extends InvalidArgument {
16
+ constructor();
17
+ }
18
+ export declare class MissingPaymentMethod extends InvalidArgument {
19
+ constructor();
20
+ }
21
+ export declare class MissingShippinghAddress extends InvalidArgument {
22
+ constructor();
23
+ }
24
+ export declare class MissingBillingAddress extends InvalidArgument {
25
+ constructor();
26
+ }
27
+ export declare class MissingCountry extends InvalidArgument {
28
+ constructor();
29
+ }
30
+ //# sourceMappingURL=errors.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 './errors';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { ShippingMethod } from '../../data/models';
2
+
3
+ export interface ShippingEstimationCriteria {
4
+ country_code: string;
5
+ region_name?: string;
6
+ region_id?: string | number;
7
+ zip?: string;
8
+ }
9
+ export type EstimateShippingInput = {
10
+ criteria: ShippingEstimationCriteria;
11
+ };
12
+ export declare const estimateShippingMethods: (input?: EstimateShippingInput) => Promise<ShippingMethod[] | undefined>;
13
+ //# sourceMappingURL=estimateShippingMethods.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { ShippingMethod } from '../../data/models';
2
+
3
+ declare const flatRate: ShippingMethod;
4
+ declare const freeShipping: ShippingMethod;
5
+ declare const standardShipping: ShippingMethod;
6
+ declare const expressShipping: ShippingMethod;
7
+ export { expressShipping, flatRate, freeShipping, standardShipping };
8
+ //# sourceMappingURL=fixtures.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 estimateShippingMethodsMutation = "\n mutation estimateShippingMethods(\n $cartId: String!\n $address: EstimateAddressInput!\n ) {\n estimateShippingMethods(input: { cart_id: $cartId, address: $address }) {\n carrier_title\n carrier_code\n method_title\n method_code\n available\n amount {\n currency\n value\n }\n price_excl_tax {\n currency\n value\n }\n price_incl_tax {\n currency\n value\n }\n error_message\n }\n }\n";
18
+ //# sourceMappingURL=estimateShippingMethods.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 './estimateShippingMethods.graphql';
18
+ //# sourceMappingURL=index.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 './estimateShippingMethods';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,25 @@
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 setEndpoint: (endpoint: string) => void, setFetchGraphQlHeader: (key: string, value: string | null) => void, removeFetchGraphQlHeader: (key: string) => void, setFetchGraphQlHeaders: (header: import('@adobe/fetch-graphql').Header) => void, fetchGraphQl: <T = any>(query: string, options?: import('@adobe/fetch-graphql').FetchOptions | undefined) => Promise<{
18
+ errors?: import('@adobe/fetch-graphql').FetchQueryError | undefined;
19
+ data: T;
20
+ }>, getConfig: () => {
21
+ endpoint: string | undefined;
22
+ fetchGraphQlHeaders: import('@adobe/fetch-graphql').Header | undefined;
23
+ };
24
+ export type { FetchOptions, FetchQueryError } from '@adobe/fetch-graphql';
25
+ //# sourceMappingURL=fetch-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 './fetch-graphql';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { Cart } from '../../data/models/cart';
2
+ import { ShippingMethod } from '../../data/models/shipping-method';
3
+
4
+ declare const emptyCart: Cart;
5
+ declare const simpleCart: Cart;
6
+ declare const simpleCartWithShippingInfo: ({ methods, selection, }?: {
7
+ methods?: ShippingMethod[] | undefined;
8
+ selection?: ShippingMethod | undefined;
9
+ }) => Cart;
10
+ declare const virtualCart: Cart;
11
+ export { emptyCart, virtualCart, simpleCart, simpleCartWithShippingInfo };
12
+ //# sourceMappingURL=fixtures.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 getCart: () => Promise<import('../../data/models/cart').Cart | null | undefined>;
18
+ //# sourceMappingURL=getCart.d.ts.map
@@ -0,0 +1,20 @@
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 = "\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
+ export declare const getCartQuery: string;
19
+ export declare const getCustomerCartQuery: string;
20
+ //# sourceMappingURL=getCart.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 './getCart.graphql';
18
+ //# sourceMappingURL=index.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 './getCart';
18
+ //# sourceMappingURL=index.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 getCheckoutData: () => Promise<void>;
18
+ //# sourceMappingURL=getCheckoutData.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 './getCheckoutData';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { Customer } from '../../data/models';
2
+
3
+ declare const johnDoe: Customer;
4
+ export { johnDoe };
5
+ //# sourceMappingURL=fixtures.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { Customer } from '../../data/models';
2
+
3
+ export declare const getCustomer: () => Promise<Customer | null | undefined>;
4
+ //# sourceMappingURL=getCustomer.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 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";
18
+ //# sourceMappingURL=getCustomer.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 './getCustomer.graphql';
18
+ //# sourceMappingURL=index.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 './getCustomer';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { StoreConfig } from '../../data/models';
2
+
3
+ export declare const DEFAULT_COUNTRY = "US";
4
+ export declare const STORE_CONFIG_DEFAULTS: StoreConfig;
5
+ export declare const getStoreConfig: () => Promise<StoreConfig | undefined>;
6
+ //# sourceMappingURL=getStoreConfig.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 getStoreConfigQuery = "\n query getStoreConfig {\n storeConfig {\n default_country\n is_guest_checkout_enabled\n is_one_page_checkout_enabled\n shopping_cart_display_shipping\n }\n }\n";
18
+ //# sourceMappingURL=getStoreConfig.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 './getStoreConfig';
18
+ //# sourceMappingURL=index.d.ts.map
package/api/index.d.ts ADDED
@@ -0,0 +1,36 @@
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 './errors';
18
+ export * from './estimateShippingMethods';
19
+ export * from './fetch-graphql';
20
+ export * from './getCart';
21
+ export * from './getCheckoutData';
22
+ export * from './getCustomer';
23
+ export * from './getStoreConfig';
24
+ export * from './initialize';
25
+ export * from './initializeCheckout';
26
+ export * from './isEmailAvailable';
27
+ export * from './placeOrder';
28
+ export * from './redirect';
29
+ export * from './resetCheckout';
30
+ export * from './resetCustomer';
31
+ export * from './setBillingAddress';
32
+ export * from './setGuestEmailOnCart';
33
+ export * from './setPaymentMethod';
34
+ export * from './setShippingAddress';
35
+ export * from './setShippingMethods';
36
+ //# sourceMappingURL=index.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 './initialize';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,15 @@
1
+ import { Lang } from '@dropins/tools/types/elsie/src/i18n';
2
+ import { Initializer } from '@dropins/tools/types/elsie/src/lib';
3
+
4
+ export type ConfigProps = {
5
+ langDefinitions?: Lang;
6
+ models?: {
7
+ [name: string]: {
8
+ initialData: any;
9
+ transform?: (data?: any) => any;
10
+ };
11
+ };
12
+ };
13
+ export declare const initialize: Initializer<ConfigProps>;
14
+ export declare const config: import('@dropins/tools/types/elsie/src/lib').Config<ConfigProps>;
15
+ //# sourceMappingURL=initialize.d.ts.map
@@ -0,0 +1,20 @@
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 addCheckoutEventListeners: () => ({
18
+ off(): void;
19
+ } | undefined)[];
20
+ //# sourceMappingURL=listeners.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 './initializeCheckout';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { ConfigProps } from '..';
2
+
3
+ export declare const initializeCheckout: (config?: ConfigProps) => Promise<import('../../data/models/store-config').StoreConfig | undefined>;
4
+ //# sourceMappingURL=initializeCheckout.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 isEmailAvailableQuery = "\n query isEmailAvailable($email: String!) {\n isEmailAvailable(email: $email) {\n is_email_available\n }\n }\n";
18
+ //# sourceMappingURL=isEmailAvailable.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 './isEmailAvailable';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { EmailAvailability } from '../../data/models/email-availability';
2
+
3
+ export declare const isEmailAvailable: (email: string) => Promise<EmailAvailability>;
4
+ //# sourceMappingURL=isEmailAvailable.d.ts.map
@@ -0,0 +1,6 @@
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'];
6
+ //# sourceMappingURL=fixtures.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 './placeOrder.graphql';
18
+ //# sourceMappingURL=index.d.ts.map