@epcc-sdk/sdks-shopper 0.0.33 → 0.0.35

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,6 +96,10 @@ import {
89
96
  getOrderTransactions,
90
97
  getATransaction,
91
98
  cancelATransaction,
99
+ getOrderShippingGroups,
100
+ createOrderShippingGroup,
101
+ getShippingGroupsById,
102
+ putShippingGroupById,
92
103
  listOfferings,
93
104
  getOffering,
94
105
  listOfferingPricingOptions,
@@ -100,6 +111,7 @@ import {
100
111
  listSubscriptionPlans,
101
112
  listSubscriptionPricingOptions,
102
113
  listSubscriptionStates,
114
+ createSubscriptionState,
103
115
  getSubscriptionState,
104
116
  listSubscriptionInvoices,
105
117
  listSubscriptionInvoicePayments,
@@ -951,13 +963,13 @@ const deleteACartMutation = (options) => {
951
963
  };
952
964
  return mutationOptions;
953
965
  };
954
- const getCartQueryKey = (options) => [
955
- createQueryKey("getCart", options)
966
+ const getACartQueryKey = (options) => [
967
+ createQueryKey("getACart", options)
956
968
  ];
957
- const getCartOptions = (options) => {
969
+ const getACartOptions = (options) => {
958
970
  return queryOptions({
959
971
  queryFn: async ({ queryKey, signal }) => {
960
- const { data } = await getCart({
972
+ const { data } = await getACart({
961
973
  ...options,
962
974
  ...queryKey[0],
963
975
  signal,
@@ -965,7 +977,7 @@ const getCartOptions = (options) => {
965
977
  });
966
978
  return data;
967
979
  },
968
- queryKey: getCartQueryKey(options)
980
+ queryKey: getACartQueryKey(options)
969
981
  });
970
982
  };
971
983
  const updateACartMutation = (options) => {
@@ -1391,6 +1403,90 @@ const updateCustomDiscountForCartItemMutation = (options) => {
1391
1403
  };
1392
1404
  return mutationOptions;
1393
1405
  };
1406
+ const getShippingGroupsQueryKey = (options) => [createQueryKey("getShippingGroups", options)];
1407
+ const getShippingGroupsOptions = (options) => {
1408
+ return queryOptions({
1409
+ queryFn: async ({ queryKey, signal }) => {
1410
+ const { data } = await getShippingGroups({
1411
+ ...options,
1412
+ ...queryKey[0],
1413
+ signal,
1414
+ throwOnError: true
1415
+ });
1416
+ return data;
1417
+ },
1418
+ queryKey: getShippingGroupsQueryKey(options)
1419
+ });
1420
+ };
1421
+ const createShippingGroupQueryKey = (options) => [createQueryKey("createShippingGroup", options)];
1422
+ const createShippingGroupOptions = (options) => {
1423
+ return queryOptions({
1424
+ queryFn: async ({ queryKey, signal }) => {
1425
+ const { data } = await createShippingGroup({
1426
+ ...options,
1427
+ ...queryKey[0],
1428
+ signal,
1429
+ throwOnError: true
1430
+ });
1431
+ return data;
1432
+ },
1433
+ queryKey: createShippingGroupQueryKey(options)
1434
+ });
1435
+ };
1436
+ const createShippingGroupMutation = (options) => {
1437
+ const mutationOptions = {
1438
+ mutationFn: async (localOptions) => {
1439
+ const { data } = await createShippingGroup({
1440
+ ...options,
1441
+ ...localOptions,
1442
+ throwOnError: true
1443
+ });
1444
+ return data;
1445
+ }
1446
+ };
1447
+ return mutationOptions;
1448
+ };
1449
+ const deleteCartShippingGroupMutation = (options) => {
1450
+ const mutationOptions = {
1451
+ mutationFn: async (localOptions) => {
1452
+ const { data } = await deleteCartShippingGroup({
1453
+ ...options,
1454
+ ...localOptions,
1455
+ throwOnError: true
1456
+ });
1457
+ return data;
1458
+ }
1459
+ };
1460
+ return mutationOptions;
1461
+ };
1462
+ const getShippingGroupByIdQueryKey = (options) => [createQueryKey("getShippingGroupById", options)];
1463
+ const getShippingGroupByIdOptions = (options) => {
1464
+ return queryOptions({
1465
+ queryFn: async ({ queryKey, signal }) => {
1466
+ const { data } = await getShippingGroupById({
1467
+ ...options,
1468
+ ...queryKey[0],
1469
+ signal,
1470
+ throwOnError: true
1471
+ });
1472
+ return data;
1473
+ },
1474
+ queryKey: getShippingGroupByIdQueryKey(options)
1475
+ });
1476
+ };
1477
+ const updateShippingGroupMutation = (options) => {
1478
+ const mutationOptions = {
1479
+ mutationFn: async (localOptions) => {
1480
+ const { data } = await updateShippingGroup({
1481
+ ...options,
1482
+ ...localOptions,
1483
+ throwOnError: true
1484
+ });
1485
+ return data;
1486
+ }
1487
+ };
1488
+ return mutationOptions;
1489
+ };
1394
1490
  const createCartPaymentIntentQueryKey = (options) => [createQueryKey("createCartPaymentIntent", options)];
1395
1491
  const createCartPaymentIntentOptions = (options) => {
1396
1492
  return queryOptions({
@@ -1419,6 +1515,19 @@ const createCartPaymentIntentMutation = (options) => {
1419
1515
  };
1420
1516
  return mutationOptions;
1421
1517
  };
1518
+ const updateCartPaymentIntentMutation = (options) => {
1519
+ const mutationOptions = {
1520
+ mutationFn: async (localOptions) => {
1521
+ const { data } = await updateCartPaymentIntent({
1522
+ ...options,
1523
+ ...localOptions,
1524
+ throwOnError: true
1525
+ });
1526
+ return data;
1527
+ }
1528
+ };
1529
+ return mutationOptions;
1530
+ };
1422
1531
  const checkoutApiQueryKey = (options) => [
1423
1532
  createQueryKey("checkoutApi", options)
1424
1533
  ];
@@ -1539,6 +1648,36 @@ const anonymizeOrdersMutation = (options) => {
1539
1648
  };
1540
1649
  return mutationOptions;
1541
1650
  };
1651
+ const confirmOrderQueryKey = (options) => [
1652
+ createQueryKey("confirmOrder", options)
1653
+ ];
1654
+ const confirmOrderOptions = (options) => {
1655
+ return queryOptions({
1656
+ queryFn: async ({ queryKey, signal }) => {
1657
+ const { data } = await confirmOrder({
1658
+ ...options,
1659
+ ...queryKey[0],
1660
+ signal,
1661
+ throwOnError: true
1662
+ });
1663
+ return data;
1664
+ },
1665
+ queryKey: confirmOrderQueryKey(options)
1666
+ });
1667
+ };
1668
+ const confirmOrderMutation = (options) => {
1669
+ const mutationOptions = {
1670
+ mutationFn: async (localOptions) => {
1671
+ const { data } = await confirmOrder({
1672
+ ...options,
1673
+ ...localOptions,
1674
+ throwOnError: true
1675
+ });
1676
+ return data;
1677
+ }
1678
+ };
1679
+ return mutationOptions;
1680
+ };
1542
1681
  const paymentSetupQueryKey = (options) => [
1543
1682
  createQueryKey("paymentSetup", options)
1544
1683
  ];
@@ -1711,6 +1850,77 @@ const cancelATransactionMutation = (options) => {
1711
1850
  };
1712
1851
  return mutationOptions;
1713
1852
  };
1853
+ const getOrderShippingGroupsQueryKey = (options) => [createQueryKey("getOrderShippingGroups", options)];
1854
+ const getOrderShippingGroupsOptions = (options) => {
1855
+ return queryOptions({
1856
+ queryFn: async ({ queryKey, signal }) => {
1857
+ const { data } = await getOrderShippingGroups({
1858
+ ...options,
1859
+ ...queryKey[0],
1860
+ signal,
1861
+ throwOnError: true
1862
+ });
1863
+ return data;
1864
+ },
1865
+ queryKey: getOrderShippingGroupsQueryKey(options)
1866
+ });
1867
+ };
1868
+ const createOrderShippingGroupQueryKey = (options) => [createQueryKey("createOrderShippingGroup", options)];
1869
+ const createOrderShippingGroupOptions = (options) => {
1870
+ return queryOptions({
1871
+ queryFn: async ({ queryKey, signal }) => {
1872
+ const { data } = await createOrderShippingGroup({
1873
+ ...options,
1874
+ ...queryKey[0],
1875
+ signal,
1876
+ throwOnError: true
1877
+ });
1878
+ return data;
1879
+ },
1880
+ queryKey: createOrderShippingGroupQueryKey(options)
1881
+ });
1882
+ };
1883
+ const createOrderShippingGroupMutation = (options) => {
1884
+ const mutationOptions = {
1885
+ mutationFn: async (localOptions) => {
1886
+ const { data } = await createOrderShippingGroup({
1887
+ ...options,
1888
+ ...localOptions,
1889
+ throwOnError: true
1890
+ });
1891
+ return data;
1892
+ }
1893
+ };
1894
+ return mutationOptions;
1895
+ };
1896
+ const getShippingGroupsByIdQueryKey = (options) => [createQueryKey("getShippingGroupsById", options)];
1897
+ const getShippingGroupsByIdOptions = (options) => {
1898
+ return queryOptions({
1899
+ queryFn: async ({ queryKey, signal }) => {
1900
+ const { data } = await getShippingGroupsById({
1901
+ ...options,
1902
+ ...queryKey[0],
1903
+ signal,
1904
+ throwOnError: true
1905
+ });
1906
+ return data;
1907
+ },
1908
+ queryKey: getShippingGroupsByIdQueryKey(options)
1909
+ });
1910
+ };
1911
+ const putShippingGroupByIdMutation = (options) => {
1912
+ const mutationOptions = {
1913
+ mutationFn: async (localOptions) => {
1914
+ const { data } = await putShippingGroupById({
1915
+ ...options,
1916
+ ...localOptions,
1917
+ throwOnError: true
1918
+ });
1919
+ return data;
1920
+ }
1921
+ };
1922
+ return mutationOptions;
1923
+ };
1714
1924
  const listOfferingsQueryKey = (options) => [
1715
1925
  createQueryKey("listOfferings", options)
1716
1926
  ];
@@ -1880,6 +2090,34 @@ const listSubscriptionStatesOptions = (options) => {
1880
2090
  queryKey: listSubscriptionStatesQueryKey(options)
1881
2091
  });
1882
2092
  };
2093
+ const createSubscriptionStateQueryKey = (options) => [createQueryKey("createSubscriptionState", options)];
2094
+ const createSubscriptionStateOptions = (options) => {
2095
+ return queryOptions({
2096
+ queryFn: async ({ queryKey, signal }) => {
2097
+ const { data } = await createSubscriptionState({
2098
+ ...options,
2099
+ ...queryKey[0],
2100
+ signal,
2101
+ throwOnError: true
2102
+ });
2103
+ return data;
2104
+ },
2105
+ queryKey: createSubscriptionStateQueryKey(options)
2106
+ });
2107
+ };
2108
+ const createSubscriptionStateMutation = (options) => {
2109
+ const mutationOptions = {
2110
+ mutationFn: async (localOptions) => {
2111
+ const { data } = await createSubscriptionState({
2112
+ ...options,
2113
+ ...localOptions,
2114
+ throwOnError: true
2115
+ });
2116
+ return data;
2117
+ }
2118
+ };
2119
+ return mutationOptions;
2120
+ };
1883
2121
  const getSubscriptionStateQueryKey = (options) => [createQueryKey("getSubscriptionState", options)];
1884
2122
  const getSubscriptionStateOptions = (options) => {
1885
2123
  return queryOptions({
@@ -2436,6 +2674,9 @@ export {
2436
2674
  configureByContextProductMutation,
2437
2675
  configureByContextProductOptions,
2438
2676
  configureByContextProductQueryKey,
2677
+ confirmOrderMutation,
2678
+ confirmOrderOptions,
2679
+ confirmOrderQueryKey,
2439
2680
  confirmPaymentMutation,
2440
2681
  confirmPaymentOptions,
2441
2682
  confirmPaymentQueryKey,
@@ -2460,15 +2701,25 @@ export {
2460
2701
  createOneTimePasswordTokenRequestMutation,
2461
2702
  createOneTimePasswordTokenRequestOptions,
2462
2703
  createOneTimePasswordTokenRequestQueryKey,
2704
+ createOrderShippingGroupMutation,
2705
+ createOrderShippingGroupOptions,
2706
+ createOrderShippingGroupQueryKey,
2463
2707
  createRuleMutation,
2464
2708
  createRuleOptions,
2465
2709
  createRuleQueryKey,
2710
+ createShippingGroupMutation,
2711
+ createShippingGroupOptions,
2712
+ createShippingGroupQueryKey,
2713
+ createSubscriptionStateMutation,
2714
+ createSubscriptionStateOptions,
2715
+ createSubscriptionStateQueryKey,
2466
2716
  deleteACartItemMutation,
2467
2717
  deleteACartMutation,
2468
2718
  deleteAPromotionViaPromotionCodeMutation,
2469
2719
  deleteATaxItemMutation,
2470
2720
  deleteAccountCartAssociationMutation,
2471
2721
  deleteAllCartItemsMutation,
2722
+ deleteCartShippingGroupMutation,
2472
2723
  deleteCatalogByIdMutation,
2473
2724
  deleteCustomDiscountFromCartItemMutation,
2474
2725
  deleteCustomDiscountFromCartMutation,
@@ -2477,6 +2728,8 @@ export {
2477
2728
  deleteReleasesMutation,
2478
2729
  deleteRuleByIdMutation,
2479
2730
  deleteV2AccountAddressMutation,
2731
+ getACartOptions,
2732
+ getACartQueryKey,
2480
2733
  getACurrencyOptions,
2481
2734
  getACurrencyQueryKey,
2482
2735
  getAFileOptions,
@@ -2529,8 +2782,6 @@ export {
2529
2782
  getByContextReleaseQueryKey,
2530
2783
  getCartItemsOptions,
2531
2784
  getCartItemsQueryKey,
2532
- getCartOptions,
2533
- getCartQueryKey,
2534
2785
  getCartsOptions,
2535
2786
  getCartsQueryKey,
2536
2787
  getCatalogByIdOptions,
@@ -2561,6 +2812,8 @@ export {
2561
2812
  getOfferingQueryKey,
2562
2813
  getOrderItemsOptions,
2563
2814
  getOrderItemsQueryKey,
2815
+ getOrderShippingGroupsOptions,
2816
+ getOrderShippingGroupsQueryKey,
2564
2817
  getOrderTransactionsOptions,
2565
2818
  getOrderTransactionsQueryKey,
2566
2819
  getProductOptions,
@@ -2577,6 +2830,12 @@ export {
2577
2830
  getRuleByIdQueryKey,
2578
2831
  getRulesOptions,
2579
2832
  getRulesQueryKey,
2833
+ getShippingGroupByIdOptions,
2834
+ getShippingGroupByIdQueryKey,
2835
+ getShippingGroupsByIdOptions,
2836
+ getShippingGroupsByIdQueryKey,
2837
+ getShippingGroupsOptions,
2838
+ getShippingGroupsQueryKey,
2580
2839
  getStockOptions,
2581
2840
  getStockQueryKey,
2582
2841
  getSubscriptionInvoiceOptions,
@@ -2645,6 +2904,7 @@ export {
2645
2904
  publishReleaseMutation,
2646
2905
  publishReleaseOptions,
2647
2906
  publishReleaseQueryKey,
2907
+ putShippingGroupByIdMutation,
2648
2908
  putV2AccountAddressMutation,
2649
2909
  putV2AccountsAccountIdMutation,
2650
2910
  refundATransactionMutation,
@@ -2654,10 +2914,12 @@ export {
2654
2914
  updateACartMutation,
2655
2915
  updateATaxItemMutation,
2656
2916
  updateAnOrderMutation,
2917
+ updateCartPaymentIntentMutation,
2657
2918
  updateCatalogMutation,
2658
2919
  updateCustomDiscountForCartItemMutation,
2659
2920
  updateCustomDiscountForCartMutation,
2660
2921
  updatePasswordProfileInfoMutation,
2661
- updateRuleMutation
2922
+ updateRuleMutation,
2923
+ updateShippingGroupMutation
2662
2924
  };
2663
2925
  //# sourceMappingURL=react-query.gen.mjs.map