@epcc-sdk/sdks-shopper 0.0.32 → 0.0.34

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.
@@ -50,7 +50,7 @@ import {
50
50
  getCarts,
51
51
  createACart,
52
52
  deleteACart,
53
- getCart,
53
+ getACart,
54
54
  updateACart,
55
55
  deleteAllCartItems,
56
56
  getCartItems,
@@ -75,13 +75,20 @@ import {
75
75
  addCustomDiscountToCartItem,
76
76
  deleteCustomDiscountFromCartItem,
77
77
  updateCustomDiscountForCartItem,
78
+ getShippingGroups,
79
+ createShippingGroup,
80
+ deleteCartShippingGroup,
81
+ getShippingGroupById,
82
+ updateShippingGroup,
78
83
  createCartPaymentIntent,
84
+ updateCartPaymentIntent,
79
85
  checkoutApi,
80
86
  getCustomerOrders,
81
87
  getAnOrder,
82
88
  updateAnOrder,
83
89
  getOrderItems,
84
90
  anonymizeOrders,
91
+ confirmOrder,
85
92
  paymentSetup,
86
93
  confirmPayment,
87
94
  captureATransaction,
@@ -89,17 +96,20 @@ import {
89
96
  getOrderTransactions,
90
97
  getATransaction,
91
98
  cancelATransaction,
92
- getSubscriptionProduct,
93
- getPlan,
99
+ getOrderShippingGroups,
100
+ createOrderShippingGroup,
101
+ getShippingGroupsById,
102
+ putShippingGroupById,
94
103
  listOfferings,
95
104
  getOffering,
96
- listOfferingPlans,
105
+ listOfferingPricingOptions,
97
106
  listOfferingFeatures,
98
- listOfferingProducts,
107
+ listOfferingPlans,
108
+ listOfferingPlanPricingOptions,
99
109
  listSubscriptions,
100
110
  getSubscription,
101
- listSubscriptionProducts,
102
111
  listSubscriptionPlans,
112
+ listSubscriptionPricingOptions,
103
113
  listSubscriptionStates,
104
114
  getSubscriptionState,
105
115
  listSubscriptionInvoices,
@@ -952,13 +962,13 @@ const deleteACartMutation = (options) => {
952
962
  };
953
963
  return mutationOptions;
954
964
  };
955
- const getCartQueryKey = (options) => [
956
- createQueryKey("getCart", options)
965
+ const getACartQueryKey = (options) => [
966
+ createQueryKey("getACart", options)
957
967
  ];
958
- const getCartOptions = (options) => {
968
+ const getACartOptions = (options) => {
959
969
  return queryOptions({
960
970
  queryFn: async ({ queryKey, signal }) => {
961
- const { data } = await getCart({
971
+ const { data } = await getACart({
962
972
  ...options,
963
973
  ...queryKey[0],
964
974
  signal,
@@ -966,7 +976,7 @@ const getCartOptions = (options) => {
966
976
  });
967
977
  return data;
968
978
  },
969
- queryKey: getCartQueryKey(options)
979
+ queryKey: getACartQueryKey(options)
970
980
  });
971
981
  };
972
982
  const updateACartMutation = (options) => {
@@ -1392,6 +1402,90 @@ const updateCustomDiscountForCartItemMutation = (options) => {
1392
1402
  };
1393
1403
  return mutationOptions;
1394
1404
  };
1405
+ const getShippingGroupsQueryKey = (options) => [createQueryKey("getShippingGroups", options)];
1406
+ const getShippingGroupsOptions = (options) => {
1407
+ return queryOptions({
1408
+ queryFn: async ({ queryKey, signal }) => {
1409
+ const { data } = await getShippingGroups({
1410
+ ...options,
1411
+ ...queryKey[0],
1412
+ signal,
1413
+ throwOnError: true
1414
+ });
1415
+ return data;
1416
+ },
1417
+ queryKey: getShippingGroupsQueryKey(options)
1418
+ });
1419
+ };
1420
+ const createShippingGroupQueryKey = (options) => [createQueryKey("createShippingGroup", options)];
1421
+ const createShippingGroupOptions = (options) => {
1422
+ return queryOptions({
1423
+ queryFn: async ({ queryKey, signal }) => {
1424
+ const { data } = await createShippingGroup({
1425
+ ...options,
1426
+ ...queryKey[0],
1427
+ signal,
1428
+ throwOnError: true
1429
+ });
1430
+ return data;
1431
+ },
1432
+ queryKey: createShippingGroupQueryKey(options)
1433
+ });
1434
+ };
1435
+ const createShippingGroupMutation = (options) => {
1436
+ const mutationOptions = {
1437
+ mutationFn: async (localOptions) => {
1438
+ const { data } = await createShippingGroup({
1439
+ ...options,
1440
+ ...localOptions,
1441
+ throwOnError: true
1442
+ });
1443
+ return data;
1444
+ }
1445
+ };
1446
+ return mutationOptions;
1447
+ };
1448
+ const deleteCartShippingGroupMutation = (options) => {
1449
+ const mutationOptions = {
1450
+ mutationFn: async (localOptions) => {
1451
+ const { data } = await deleteCartShippingGroup({
1452
+ ...options,
1453
+ ...localOptions,
1454
+ throwOnError: true
1455
+ });
1456
+ return data;
1457
+ }
1458
+ };
1459
+ return mutationOptions;
1460
+ };
1461
+ const getShippingGroupByIdQueryKey = (options) => [createQueryKey("getShippingGroupById", options)];
1462
+ const getShippingGroupByIdOptions = (options) => {
1463
+ return queryOptions({
1464
+ queryFn: async ({ queryKey, signal }) => {
1465
+ const { data } = await getShippingGroupById({
1466
+ ...options,
1467
+ ...queryKey[0],
1468
+ signal,
1469
+ throwOnError: true
1470
+ });
1471
+ return data;
1472
+ },
1473
+ queryKey: getShippingGroupByIdQueryKey(options)
1474
+ });
1475
+ };
1476
+ const updateShippingGroupMutation = (options) => {
1477
+ const mutationOptions = {
1478
+ mutationFn: async (localOptions) => {
1479
+ const { data } = await updateShippingGroup({
1480
+ ...options,
1481
+ ...localOptions,
1482
+ throwOnError: true
1483
+ });
1484
+ return data;
1485
+ }
1486
+ };
1487
+ return mutationOptions;
1488
+ };
1395
1489
  const createCartPaymentIntentQueryKey = (options) => [createQueryKey("createCartPaymentIntent", options)];
1396
1490
  const createCartPaymentIntentOptions = (options) => {
1397
1491
  return queryOptions({
@@ -1420,6 +1514,19 @@ const createCartPaymentIntentMutation = (options) => {
1420
1514
  };
1421
1515
  return mutationOptions;
1422
1516
  };
1517
+ const updateCartPaymentIntentMutation = (options) => {
1518
+ const mutationOptions = {
1519
+ mutationFn: async (localOptions) => {
1520
+ const { data } = await updateCartPaymentIntent({
1521
+ ...options,
1522
+ ...localOptions,
1523
+ throwOnError: true
1524
+ });
1525
+ return data;
1526
+ }
1527
+ };
1528
+ return mutationOptions;
1529
+ };
1423
1530
  const checkoutApiQueryKey = (options) => [
1424
1531
  createQueryKey("checkoutApi", options)
1425
1532
  ];
@@ -1540,6 +1647,36 @@ const anonymizeOrdersMutation = (options) => {
1540
1647
  };
1541
1648
  return mutationOptions;
1542
1649
  };
1650
+ const confirmOrderQueryKey = (options) => [
1651
+ createQueryKey("confirmOrder", options)
1652
+ ];
1653
+ const confirmOrderOptions = (options) => {
1654
+ return queryOptions({
1655
+ queryFn: async ({ queryKey, signal }) => {
1656
+ const { data } = await confirmOrder({
1657
+ ...options,
1658
+ ...queryKey[0],
1659
+ signal,
1660
+ throwOnError: true
1661
+ });
1662
+ return data;
1663
+ },
1664
+ queryKey: confirmOrderQueryKey(options)
1665
+ });
1666
+ };
1667
+ const confirmOrderMutation = (options) => {
1668
+ const mutationOptions = {
1669
+ mutationFn: async (localOptions) => {
1670
+ const { data } = await confirmOrder({
1671
+ ...options,
1672
+ ...localOptions,
1673
+ throwOnError: true
1674
+ });
1675
+ return data;
1676
+ }
1677
+ };
1678
+ return mutationOptions;
1679
+ };
1543
1680
  const paymentSetupQueryKey = (options) => [
1544
1681
  createQueryKey("paymentSetup", options)
1545
1682
  ];
@@ -1712,11 +1849,11 @@ const cancelATransactionMutation = (options) => {
1712
1849
  };
1713
1850
  return mutationOptions;
1714
1851
  };
1715
- const getSubscriptionProductQueryKey = (options) => [createQueryKey("getSubscriptionProduct", options)];
1716
- const getSubscriptionProductOptions = (options) => {
1852
+ const getOrderShippingGroupsQueryKey = (options) => [createQueryKey("getOrderShippingGroups", options)];
1853
+ const getOrderShippingGroupsOptions = (options) => {
1717
1854
  return queryOptions({
1718
1855
  queryFn: async ({ queryKey, signal }) => {
1719
- const { data } = await getSubscriptionProduct({
1856
+ const { data } = await getOrderShippingGroups({
1720
1857
  ...options,
1721
1858
  ...queryKey[0],
1722
1859
  signal,
@@ -1724,16 +1861,14 @@ const getSubscriptionProductOptions = (options) => {
1724
1861
  });
1725
1862
  return data;
1726
1863
  },
1727
- queryKey: getSubscriptionProductQueryKey(options)
1864
+ queryKey: getOrderShippingGroupsQueryKey(options)
1728
1865
  });
1729
1866
  };
1730
- const getPlanQueryKey = (options) => [
1731
- createQueryKey("getPlan", options)
1732
- ];
1733
- const getPlanOptions = (options) => {
1867
+ const createOrderShippingGroupQueryKey = (options) => [createQueryKey("createOrderShippingGroup", options)];
1868
+ const createOrderShippingGroupOptions = (options) => {
1734
1869
  return queryOptions({
1735
1870
  queryFn: async ({ queryKey, signal }) => {
1736
- const { data } = await getPlan({
1871
+ const { data } = await createOrderShippingGroup({
1737
1872
  ...options,
1738
1873
  ...queryKey[0],
1739
1874
  signal,
@@ -1741,9 +1876,50 @@ const getPlanOptions = (options) => {
1741
1876
  });
1742
1877
  return data;
1743
1878
  },
1744
- queryKey: getPlanQueryKey(options)
1879
+ queryKey: createOrderShippingGroupQueryKey(options)
1745
1880
  });
1746
1881
  };
1882
+ const createOrderShippingGroupMutation = (options) => {
1883
+ const mutationOptions = {
1884
+ mutationFn: async (localOptions) => {
1885
+ const { data } = await createOrderShippingGroup({
1886
+ ...options,
1887
+ ...localOptions,
1888
+ throwOnError: true
1889
+ });
1890
+ return data;
1891
+ }
1892
+ };
1893
+ return mutationOptions;
1894
+ };
1895
+ const getShippingGroupsByIdQueryKey = (options) => [createQueryKey("getShippingGroupsById", options)];
1896
+ const getShippingGroupsByIdOptions = (options) => {
1897
+ return queryOptions({
1898
+ queryFn: async ({ queryKey, signal }) => {
1899
+ const { data } = await getShippingGroupsById({
1900
+ ...options,
1901
+ ...queryKey[0],
1902
+ signal,
1903
+ throwOnError: true
1904
+ });
1905
+ return data;
1906
+ },
1907
+ queryKey: getShippingGroupsByIdQueryKey(options)
1908
+ });
1909
+ };
1910
+ const putShippingGroupByIdMutation = (options) => {
1911
+ const mutationOptions = {
1912
+ mutationFn: async (localOptions) => {
1913
+ const { data } = await putShippingGroupById({
1914
+ ...options,
1915
+ ...localOptions,
1916
+ throwOnError: true
1917
+ });
1918
+ return data;
1919
+ }
1920
+ };
1921
+ return mutationOptions;
1922
+ };
1747
1923
  const listOfferingsQueryKey = (options) => [
1748
1924
  createQueryKey("listOfferings", options)
1749
1925
  ];
@@ -1778,11 +1954,11 @@ const getOfferingOptions = (options) => {
1778
1954
  queryKey: getOfferingQueryKey(options)
1779
1955
  });
1780
1956
  };
1781
- const listOfferingPlansQueryKey = (options) => [createQueryKey("listOfferingPlans", options)];
1782
- const listOfferingPlansOptions = (options) => {
1957
+ const listOfferingPricingOptionsQueryKey = (options) => [createQueryKey("listOfferingPricingOptions", options)];
1958
+ const listOfferingPricingOptionsOptions = (options) => {
1783
1959
  return queryOptions({
1784
1960
  queryFn: async ({ queryKey, signal }) => {
1785
- const { data } = await listOfferingPlans({
1961
+ const { data } = await listOfferingPricingOptions({
1786
1962
  ...options,
1787
1963
  ...queryKey[0],
1788
1964
  signal,
@@ -1790,7 +1966,7 @@ const listOfferingPlansOptions = (options) => {
1790
1966
  });
1791
1967
  return data;
1792
1968
  },
1793
- queryKey: listOfferingPlansQueryKey(options)
1969
+ queryKey: listOfferingPricingOptionsQueryKey(options)
1794
1970
  });
1795
1971
  };
1796
1972
  const listOfferingFeaturesQueryKey = (options) => [createQueryKey("listOfferingFeatures", options)];
@@ -1808,11 +1984,26 @@ const listOfferingFeaturesOptions = (options) => {
1808
1984
  queryKey: listOfferingFeaturesQueryKey(options)
1809
1985
  });
1810
1986
  };
1811
- const listOfferingProductsQueryKey = (options) => [createQueryKey("listOfferingProducts", options)];
1812
- const listOfferingProductsOptions = (options) => {
1987
+ const listOfferingPlansQueryKey = (options) => [createQueryKey("listOfferingPlans", options)];
1988
+ const listOfferingPlansOptions = (options) => {
1989
+ return queryOptions({
1990
+ queryFn: async ({ queryKey, signal }) => {
1991
+ const { data } = await listOfferingPlans({
1992
+ ...options,
1993
+ ...queryKey[0],
1994
+ signal,
1995
+ throwOnError: true
1996
+ });
1997
+ return data;
1998
+ },
1999
+ queryKey: listOfferingPlansQueryKey(options)
2000
+ });
2001
+ };
2002
+ const listOfferingPlanPricingOptionsQueryKey = (options) => [createQueryKey("listOfferingPlanPricingOptions", options)];
2003
+ const listOfferingPlanPricingOptionsOptions = (options) => {
1813
2004
  return queryOptions({
1814
2005
  queryFn: async ({ queryKey, signal }) => {
1815
- const { data } = await listOfferingProducts({
2006
+ const { data } = await listOfferingPlanPricingOptions({
1816
2007
  ...options,
1817
2008
  ...queryKey[0],
1818
2009
  signal,
@@ -1820,7 +2011,7 @@ const listOfferingProductsOptions = (options) => {
1820
2011
  });
1821
2012
  return data;
1822
2013
  },
1823
- queryKey: listOfferingProductsQueryKey(options)
2014
+ queryKey: listOfferingPlanPricingOptionsQueryKey(options)
1824
2015
  });
1825
2016
  };
1826
2017
  const listSubscriptionsQueryKey = (options) => [createQueryKey("listSubscriptions", options)];
@@ -1853,11 +2044,11 @@ const getSubscriptionOptions = (options) => {
1853
2044
  queryKey: getSubscriptionQueryKey(options)
1854
2045
  });
1855
2046
  };
1856
- const listSubscriptionProductsQueryKey = (options) => [createQueryKey("listSubscriptionProducts", options)];
1857
- const listSubscriptionProductsOptions = (options) => {
2047
+ const listSubscriptionPlansQueryKey = (options) => [createQueryKey("listSubscriptionPlans", options)];
2048
+ const listSubscriptionPlansOptions = (options) => {
1858
2049
  return queryOptions({
1859
2050
  queryFn: async ({ queryKey, signal }) => {
1860
- const { data } = await listSubscriptionProducts({
2051
+ const { data } = await listSubscriptionPlans({
1861
2052
  ...options,
1862
2053
  ...queryKey[0],
1863
2054
  signal,
@@ -1865,14 +2056,14 @@ const listSubscriptionProductsOptions = (options) => {
1865
2056
  });
1866
2057
  return data;
1867
2058
  },
1868
- queryKey: listSubscriptionProductsQueryKey(options)
2059
+ queryKey: listSubscriptionPlansQueryKey(options)
1869
2060
  });
1870
2061
  };
1871
- const listSubscriptionPlansQueryKey = (options) => [createQueryKey("listSubscriptionPlans", options)];
1872
- const listSubscriptionPlansOptions = (options) => {
2062
+ const listSubscriptionPricingOptionsQueryKey = (options) => [createQueryKey("listSubscriptionPricingOptions", options)];
2063
+ const listSubscriptionPricingOptionsOptions = (options) => {
1873
2064
  return queryOptions({
1874
2065
  queryFn: async ({ queryKey, signal }) => {
1875
- const { data } = await listSubscriptionPlans({
2066
+ const { data } = await listSubscriptionPricingOptions({
1876
2067
  ...options,
1877
2068
  ...queryKey[0],
1878
2069
  signal,
@@ -1880,7 +2071,7 @@ const listSubscriptionPlansOptions = (options) => {
1880
2071
  });
1881
2072
  return data;
1882
2073
  },
1883
- queryKey: listSubscriptionPlansQueryKey(options)
2074
+ queryKey: listSubscriptionPricingOptionsQueryKey(options)
1884
2075
  });
1885
2076
  };
1886
2077
  const listSubscriptionStatesQueryKey = (options) => [createQueryKey("listSubscriptionStates", options)];
@@ -2454,6 +2645,9 @@ export {
2454
2645
  configureByContextProductMutation,
2455
2646
  configureByContextProductOptions,
2456
2647
  configureByContextProductQueryKey,
2648
+ confirmOrderMutation,
2649
+ confirmOrderOptions,
2650
+ confirmOrderQueryKey,
2457
2651
  confirmPaymentMutation,
2458
2652
  confirmPaymentOptions,
2459
2653
  confirmPaymentQueryKey,
@@ -2478,15 +2672,22 @@ export {
2478
2672
  createOneTimePasswordTokenRequestMutation,
2479
2673
  createOneTimePasswordTokenRequestOptions,
2480
2674
  createOneTimePasswordTokenRequestQueryKey,
2675
+ createOrderShippingGroupMutation,
2676
+ createOrderShippingGroupOptions,
2677
+ createOrderShippingGroupQueryKey,
2481
2678
  createRuleMutation,
2482
2679
  createRuleOptions,
2483
2680
  createRuleQueryKey,
2681
+ createShippingGroupMutation,
2682
+ createShippingGroupOptions,
2683
+ createShippingGroupQueryKey,
2484
2684
  deleteACartItemMutation,
2485
2685
  deleteACartMutation,
2486
2686
  deleteAPromotionViaPromotionCodeMutation,
2487
2687
  deleteATaxItemMutation,
2488
2688
  deleteAccountCartAssociationMutation,
2489
2689
  deleteAllCartItemsMutation,
2690
+ deleteCartShippingGroupMutation,
2490
2691
  deleteCatalogByIdMutation,
2491
2692
  deleteCustomDiscountFromCartItemMutation,
2492
2693
  deleteCustomDiscountFromCartMutation,
@@ -2495,6 +2696,8 @@ export {
2495
2696
  deleteReleasesMutation,
2496
2697
  deleteRuleByIdMutation,
2497
2698
  deleteV2AccountAddressMutation,
2699
+ getACartOptions,
2700
+ getACartQueryKey,
2498
2701
  getACurrencyOptions,
2499
2702
  getACurrencyQueryKey,
2500
2703
  getAFileOptions,
@@ -2547,8 +2750,6 @@ export {
2547
2750
  getByContextReleaseQueryKey,
2548
2751
  getCartItemsOptions,
2549
2752
  getCartItemsQueryKey,
2550
- getCartOptions,
2551
- getCartQueryKey,
2552
2753
  getCartsOptions,
2553
2754
  getCartsQueryKey,
2554
2755
  getCatalogByIdOptions,
@@ -2579,10 +2780,10 @@ export {
2579
2780
  getOfferingQueryKey,
2580
2781
  getOrderItemsOptions,
2581
2782
  getOrderItemsQueryKey,
2783
+ getOrderShippingGroupsOptions,
2784
+ getOrderShippingGroupsQueryKey,
2582
2785
  getOrderTransactionsOptions,
2583
2786
  getOrderTransactionsQueryKey,
2584
- getPlanOptions,
2585
- getPlanQueryKey,
2586
2787
  getProductOptions,
2587
2788
  getProductQueryKey,
2588
2789
  getProductsForHierarchyOptions,
@@ -2597,6 +2798,12 @@ export {
2597
2798
  getRuleByIdQueryKey,
2598
2799
  getRulesOptions,
2599
2800
  getRulesQueryKey,
2801
+ getShippingGroupByIdOptions,
2802
+ getShippingGroupByIdQueryKey,
2803
+ getShippingGroupsByIdOptions,
2804
+ getShippingGroupsByIdQueryKey,
2805
+ getShippingGroupsOptions,
2806
+ getShippingGroupsQueryKey,
2600
2807
  getStockOptions,
2601
2808
  getStockQueryKey,
2602
2809
  getSubscriptionInvoiceOptions,
@@ -2604,8 +2811,6 @@ export {
2604
2811
  getSubscriptionInvoicePaymentQueryKey,
2605
2812
  getSubscriptionInvoiceQueryKey,
2606
2813
  getSubscriptionOptions,
2607
- getSubscriptionProductOptions,
2608
- getSubscriptionProductQueryKey,
2609
2814
  getSubscriptionQueryKey,
2610
2815
  getSubscriptionStateOptions,
2611
2816
  getSubscriptionStateQueryKey,
@@ -2629,10 +2834,12 @@ export {
2629
2834
  listLocationsQueryKey,
2630
2835
  listOfferingFeaturesOptions,
2631
2836
  listOfferingFeaturesQueryKey,
2837
+ listOfferingPlanPricingOptionsOptions,
2838
+ listOfferingPlanPricingOptionsQueryKey,
2632
2839
  listOfferingPlansOptions,
2633
2840
  listOfferingPlansQueryKey,
2634
- listOfferingProductsOptions,
2635
- listOfferingProductsQueryKey,
2841
+ listOfferingPricingOptionsOptions,
2842
+ listOfferingPricingOptionsQueryKey,
2636
2843
  listOfferingsOptions,
2637
2844
  listOfferingsQueryKey,
2638
2845
  listSubscriptionInvoicePaymentsOptions,
@@ -2641,8 +2848,8 @@ export {
2641
2848
  listSubscriptionInvoicesQueryKey,
2642
2849
  listSubscriptionPlansOptions,
2643
2850
  listSubscriptionPlansQueryKey,
2644
- listSubscriptionProductsOptions,
2645
- listSubscriptionProductsQueryKey,
2851
+ listSubscriptionPricingOptionsOptions,
2852
+ listSubscriptionPricingOptionsQueryKey,
2646
2853
  listSubscriptionStatesOptions,
2647
2854
  listSubscriptionStatesQueryKey,
2648
2855
  listSubscriptionsOptions,
@@ -2665,6 +2872,7 @@ export {
2665
2872
  publishReleaseMutation,
2666
2873
  publishReleaseOptions,
2667
2874
  publishReleaseQueryKey,
2875
+ putShippingGroupByIdMutation,
2668
2876
  putV2AccountAddressMutation,
2669
2877
  putV2AccountsAccountIdMutation,
2670
2878
  refundATransactionMutation,
@@ -2674,10 +2882,12 @@ export {
2674
2882
  updateACartMutation,
2675
2883
  updateATaxItemMutation,
2676
2884
  updateAnOrderMutation,
2885
+ updateCartPaymentIntentMutation,
2677
2886
  updateCatalogMutation,
2678
2887
  updateCustomDiscountForCartItemMutation,
2679
2888
  updateCustomDiscountForCartMutation,
2680
2889
  updatePasswordProfileInfoMutation,
2681
- updateRuleMutation
2890
+ updateRuleMutation,
2891
+ updateShippingGroupMutation
2682
2892
  };
2683
2893
  //# sourceMappingURL=react-query.gen.mjs.map