@epcc-sdk/sdks-shopper 0.0.33 → 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.
- package/README.md +23 -1
- package/dist/client/@tanstack/react-query.gen.cjs +251 -11
- package/dist/client/@tanstack/react-query.gen.cjs.map +1 -1
- package/dist/client/@tanstack/react-query.gen.d.cts +289 -303
- package/dist/client/@tanstack/react-query.gen.d.ts +289 -303
- package/dist/client/@tanstack/react-query.gen.mjs +239 -9
- package/dist/client/@tanstack/react-query.gen.mjs.map +1 -1
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.cjs +179 -5
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +134 -110
- package/dist/client/sdk.gen.d.ts +134 -110
- package/dist/client/sdk.gen.mjs +166 -3
- package/dist/client/sdk.gen.mjs.map +1 -1
- package/dist/client/transformers.gen.cjs +124 -2
- package/dist/client/transformers.gen.cjs.map +1 -1
- package/dist/client/transformers.gen.d.cts +13 -2
- package/dist/client/transformers.gen.d.ts +13 -2
- package/dist/client/transformers.gen.mjs +112 -1
- package/dist/client/transformers.gen.mjs.map +1 -1
- package/dist/client/types.gen.cjs.map +1 -1
- package/dist/client/types.gen.d.cts +1788 -1187
- package/dist/client/types.gen.d.ts +1788 -1187
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/react-query.d.cts +1 -1
- package/dist/react-query.d.ts +1 -1
- package/package.json +1 -1
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
getCarts,
|
|
51
51
|
createACart,
|
|
52
52
|
deleteACart,
|
|
53
|
-
|
|
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,
|
|
@@ -951,13 +962,13 @@ const deleteACartMutation = (options) => {
|
|
|
951
962
|
};
|
|
952
963
|
return mutationOptions;
|
|
953
964
|
};
|
|
954
|
-
const
|
|
955
|
-
createQueryKey("
|
|
965
|
+
const getACartQueryKey = (options) => [
|
|
966
|
+
createQueryKey("getACart", options)
|
|
956
967
|
];
|
|
957
|
-
const
|
|
968
|
+
const getACartOptions = (options) => {
|
|
958
969
|
return queryOptions({
|
|
959
970
|
queryFn: async ({ queryKey, signal }) => {
|
|
960
|
-
const { data } = await
|
|
971
|
+
const { data } = await getACart({
|
|
961
972
|
...options,
|
|
962
973
|
...queryKey[0],
|
|
963
974
|
signal,
|
|
@@ -965,7 +976,7 @@ const getCartOptions = (options) => {
|
|
|
965
976
|
});
|
|
966
977
|
return data;
|
|
967
978
|
},
|
|
968
|
-
queryKey:
|
|
979
|
+
queryKey: getACartQueryKey(options)
|
|
969
980
|
});
|
|
970
981
|
};
|
|
971
982
|
const updateACartMutation = (options) => {
|
|
@@ -1391,6 +1402,90 @@ const updateCustomDiscountForCartItemMutation = (options) => {
|
|
|
1391
1402
|
};
|
|
1392
1403
|
return mutationOptions;
|
|
1393
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
|
+
};
|
|
1394
1489
|
const createCartPaymentIntentQueryKey = (options) => [createQueryKey("createCartPaymentIntent", options)];
|
|
1395
1490
|
const createCartPaymentIntentOptions = (options) => {
|
|
1396
1491
|
return queryOptions({
|
|
@@ -1419,6 +1514,19 @@ const createCartPaymentIntentMutation = (options) => {
|
|
|
1419
1514
|
};
|
|
1420
1515
|
return mutationOptions;
|
|
1421
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
|
+
};
|
|
1422
1530
|
const checkoutApiQueryKey = (options) => [
|
|
1423
1531
|
createQueryKey("checkoutApi", options)
|
|
1424
1532
|
];
|
|
@@ -1539,6 +1647,36 @@ const anonymizeOrdersMutation = (options) => {
|
|
|
1539
1647
|
};
|
|
1540
1648
|
return mutationOptions;
|
|
1541
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
|
+
};
|
|
1542
1680
|
const paymentSetupQueryKey = (options) => [
|
|
1543
1681
|
createQueryKey("paymentSetup", options)
|
|
1544
1682
|
];
|
|
@@ -1711,6 +1849,77 @@ const cancelATransactionMutation = (options) => {
|
|
|
1711
1849
|
};
|
|
1712
1850
|
return mutationOptions;
|
|
1713
1851
|
};
|
|
1852
|
+
const getOrderShippingGroupsQueryKey = (options) => [createQueryKey("getOrderShippingGroups", options)];
|
|
1853
|
+
const getOrderShippingGroupsOptions = (options) => {
|
|
1854
|
+
return queryOptions({
|
|
1855
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1856
|
+
const { data } = await getOrderShippingGroups({
|
|
1857
|
+
...options,
|
|
1858
|
+
...queryKey[0],
|
|
1859
|
+
signal,
|
|
1860
|
+
throwOnError: true
|
|
1861
|
+
});
|
|
1862
|
+
return data;
|
|
1863
|
+
},
|
|
1864
|
+
queryKey: getOrderShippingGroupsQueryKey(options)
|
|
1865
|
+
});
|
|
1866
|
+
};
|
|
1867
|
+
const createOrderShippingGroupQueryKey = (options) => [createQueryKey("createOrderShippingGroup", options)];
|
|
1868
|
+
const createOrderShippingGroupOptions = (options) => {
|
|
1869
|
+
return queryOptions({
|
|
1870
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1871
|
+
const { data } = await createOrderShippingGroup({
|
|
1872
|
+
...options,
|
|
1873
|
+
...queryKey[0],
|
|
1874
|
+
signal,
|
|
1875
|
+
throwOnError: true
|
|
1876
|
+
});
|
|
1877
|
+
return data;
|
|
1878
|
+
},
|
|
1879
|
+
queryKey: createOrderShippingGroupQueryKey(options)
|
|
1880
|
+
});
|
|
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
|
+
};
|
|
1714
1923
|
const listOfferingsQueryKey = (options) => [
|
|
1715
1924
|
createQueryKey("listOfferings", options)
|
|
1716
1925
|
];
|
|
@@ -2436,6 +2645,9 @@ export {
|
|
|
2436
2645
|
configureByContextProductMutation,
|
|
2437
2646
|
configureByContextProductOptions,
|
|
2438
2647
|
configureByContextProductQueryKey,
|
|
2648
|
+
confirmOrderMutation,
|
|
2649
|
+
confirmOrderOptions,
|
|
2650
|
+
confirmOrderQueryKey,
|
|
2439
2651
|
confirmPaymentMutation,
|
|
2440
2652
|
confirmPaymentOptions,
|
|
2441
2653
|
confirmPaymentQueryKey,
|
|
@@ -2460,15 +2672,22 @@ export {
|
|
|
2460
2672
|
createOneTimePasswordTokenRequestMutation,
|
|
2461
2673
|
createOneTimePasswordTokenRequestOptions,
|
|
2462
2674
|
createOneTimePasswordTokenRequestQueryKey,
|
|
2675
|
+
createOrderShippingGroupMutation,
|
|
2676
|
+
createOrderShippingGroupOptions,
|
|
2677
|
+
createOrderShippingGroupQueryKey,
|
|
2463
2678
|
createRuleMutation,
|
|
2464
2679
|
createRuleOptions,
|
|
2465
2680
|
createRuleQueryKey,
|
|
2681
|
+
createShippingGroupMutation,
|
|
2682
|
+
createShippingGroupOptions,
|
|
2683
|
+
createShippingGroupQueryKey,
|
|
2466
2684
|
deleteACartItemMutation,
|
|
2467
2685
|
deleteACartMutation,
|
|
2468
2686
|
deleteAPromotionViaPromotionCodeMutation,
|
|
2469
2687
|
deleteATaxItemMutation,
|
|
2470
2688
|
deleteAccountCartAssociationMutation,
|
|
2471
2689
|
deleteAllCartItemsMutation,
|
|
2690
|
+
deleteCartShippingGroupMutation,
|
|
2472
2691
|
deleteCatalogByIdMutation,
|
|
2473
2692
|
deleteCustomDiscountFromCartItemMutation,
|
|
2474
2693
|
deleteCustomDiscountFromCartMutation,
|
|
@@ -2477,6 +2696,8 @@ export {
|
|
|
2477
2696
|
deleteReleasesMutation,
|
|
2478
2697
|
deleteRuleByIdMutation,
|
|
2479
2698
|
deleteV2AccountAddressMutation,
|
|
2699
|
+
getACartOptions,
|
|
2700
|
+
getACartQueryKey,
|
|
2480
2701
|
getACurrencyOptions,
|
|
2481
2702
|
getACurrencyQueryKey,
|
|
2482
2703
|
getAFileOptions,
|
|
@@ -2529,8 +2750,6 @@ export {
|
|
|
2529
2750
|
getByContextReleaseQueryKey,
|
|
2530
2751
|
getCartItemsOptions,
|
|
2531
2752
|
getCartItemsQueryKey,
|
|
2532
|
-
getCartOptions,
|
|
2533
|
-
getCartQueryKey,
|
|
2534
2753
|
getCartsOptions,
|
|
2535
2754
|
getCartsQueryKey,
|
|
2536
2755
|
getCatalogByIdOptions,
|
|
@@ -2561,6 +2780,8 @@ export {
|
|
|
2561
2780
|
getOfferingQueryKey,
|
|
2562
2781
|
getOrderItemsOptions,
|
|
2563
2782
|
getOrderItemsQueryKey,
|
|
2783
|
+
getOrderShippingGroupsOptions,
|
|
2784
|
+
getOrderShippingGroupsQueryKey,
|
|
2564
2785
|
getOrderTransactionsOptions,
|
|
2565
2786
|
getOrderTransactionsQueryKey,
|
|
2566
2787
|
getProductOptions,
|
|
@@ -2577,6 +2798,12 @@ export {
|
|
|
2577
2798
|
getRuleByIdQueryKey,
|
|
2578
2799
|
getRulesOptions,
|
|
2579
2800
|
getRulesQueryKey,
|
|
2801
|
+
getShippingGroupByIdOptions,
|
|
2802
|
+
getShippingGroupByIdQueryKey,
|
|
2803
|
+
getShippingGroupsByIdOptions,
|
|
2804
|
+
getShippingGroupsByIdQueryKey,
|
|
2805
|
+
getShippingGroupsOptions,
|
|
2806
|
+
getShippingGroupsQueryKey,
|
|
2580
2807
|
getStockOptions,
|
|
2581
2808
|
getStockQueryKey,
|
|
2582
2809
|
getSubscriptionInvoiceOptions,
|
|
@@ -2645,6 +2872,7 @@ export {
|
|
|
2645
2872
|
publishReleaseMutation,
|
|
2646
2873
|
publishReleaseOptions,
|
|
2647
2874
|
publishReleaseQueryKey,
|
|
2875
|
+
putShippingGroupByIdMutation,
|
|
2648
2876
|
putV2AccountAddressMutation,
|
|
2649
2877
|
putV2AccountsAccountIdMutation,
|
|
2650
2878
|
refundATransactionMutation,
|
|
@@ -2654,10 +2882,12 @@ export {
|
|
|
2654
2882
|
updateACartMutation,
|
|
2655
2883
|
updateATaxItemMutation,
|
|
2656
2884
|
updateAnOrderMutation,
|
|
2885
|
+
updateCartPaymentIntentMutation,
|
|
2657
2886
|
updateCatalogMutation,
|
|
2658
2887
|
updateCustomDiscountForCartItemMutation,
|
|
2659
2888
|
updateCustomDiscountForCartMutation,
|
|
2660
2889
|
updatePasswordProfileInfoMutation,
|
|
2661
|
-
updateRuleMutation
|
|
2890
|
+
updateRuleMutation,
|
|
2891
|
+
updateShippingGroupMutation
|
|
2662
2892
|
};
|
|
2663
2893
|
//# sourceMappingURL=react-query.gen.mjs.map
|