@epcc-sdk/sdks-shopper 0.0.43 → 0.2.0
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 +33 -1
- package/dist/client/@tanstack/react-query.gen.cjs +168 -2
- package/dist/client/@tanstack/react-query.gen.cjs.map +1 -1
- package/dist/client/@tanstack/react-query.gen.d.cts +192 -70
- package/dist/client/@tanstack/react-query.gen.d.ts +192 -70
- package/dist/client/@tanstack/react-query.gen.mjs +161 -1
- 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 +146 -2
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +256 -79
- package/dist/client/sdk.gen.d.ts +256 -79
- package/dist/client/sdk.gen.mjs +137 -1
- package/dist/client/sdk.gen.mjs.map +1 -1
- package/dist/client/transformers.gen.cjs +120 -36
- package/dist/client/transformers.gen.cjs.map +1 -1
- package/dist/client/transformers.gen.d.cts +8 -3
- package/dist/client/transformers.gen.d.ts +8 -3
- package/dist/client/transformers.gen.mjs +113 -34
- 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 +2554 -856
- package/dist/client/types.gen.d.ts +2554 -856
- 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
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
deleteRuleById,
|
|
34
34
|
getRuleById,
|
|
35
35
|
updateRule,
|
|
36
|
+
validateCatalogRules,
|
|
36
37
|
getAllHierarchies,
|
|
37
38
|
getHierarchy,
|
|
38
39
|
getHierarchyNodes,
|
|
@@ -64,6 +65,9 @@ import {
|
|
|
64
65
|
createCustomerCartAssociation,
|
|
65
66
|
deleteAPromotionViaPromotionCode,
|
|
66
67
|
addTaxItemToCart,
|
|
68
|
+
addTaxItemToCartItemComponent,
|
|
69
|
+
deleteTaxItemFromCartItemComponent,
|
|
70
|
+
updateTaxItemFromCartItemComponent,
|
|
67
71
|
bulkDeleteTaxItemsFromCart,
|
|
68
72
|
bulkAddTaxItemsToCart,
|
|
69
73
|
deleteATaxItem,
|
|
@@ -100,6 +104,10 @@ import {
|
|
|
100
104
|
createOrderShippingGroup,
|
|
101
105
|
getShippingGroupsById,
|
|
102
106
|
putShippingGroupById,
|
|
107
|
+
getV2SettingsCart,
|
|
108
|
+
putV2SettingsCart,
|
|
109
|
+
getV2SettingsCartStoreId,
|
|
110
|
+
putV2SettingsCartStoreId,
|
|
103
111
|
listOfferings,
|
|
104
112
|
getOffering,
|
|
105
113
|
listOfferingPricingOptions,
|
|
@@ -684,6 +692,34 @@ const updateRuleMutation = (options) => {
|
|
|
684
692
|
};
|
|
685
693
|
return mutationOptions;
|
|
686
694
|
};
|
|
695
|
+
const validateCatalogRulesQueryKey = (options) => [createQueryKey("validateCatalogRules", options)];
|
|
696
|
+
const validateCatalogRulesOptions = (options) => {
|
|
697
|
+
return queryOptions({
|
|
698
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
699
|
+
const { data } = await validateCatalogRules({
|
|
700
|
+
...options,
|
|
701
|
+
...queryKey[0],
|
|
702
|
+
signal,
|
|
703
|
+
throwOnError: true
|
|
704
|
+
});
|
|
705
|
+
return data;
|
|
706
|
+
},
|
|
707
|
+
queryKey: validateCatalogRulesQueryKey(options)
|
|
708
|
+
});
|
|
709
|
+
};
|
|
710
|
+
const validateCatalogRulesMutation = (options) => {
|
|
711
|
+
const mutationOptions = {
|
|
712
|
+
mutationFn: async (localOptions) => {
|
|
713
|
+
const { data } = await validateCatalogRules({
|
|
714
|
+
...options,
|
|
715
|
+
...localOptions,
|
|
716
|
+
throwOnError: true
|
|
717
|
+
});
|
|
718
|
+
return data;
|
|
719
|
+
}
|
|
720
|
+
};
|
|
721
|
+
return mutationOptions;
|
|
722
|
+
};
|
|
687
723
|
const getAllHierarchiesQueryKey = (options) => [createQueryKey("getAllHierarchies", options)];
|
|
688
724
|
const getAllHierarchiesOptions = (options) => {
|
|
689
725
|
return queryOptions({
|
|
@@ -1216,6 +1252,60 @@ const addTaxItemToCartMutation = (options) => {
|
|
|
1216
1252
|
};
|
|
1217
1253
|
return mutationOptions;
|
|
1218
1254
|
};
|
|
1255
|
+
const addTaxItemToCartItemComponentQueryKey = (options) => [createQueryKey("addTaxItemToCartItemComponent", options)];
|
|
1256
|
+
const addTaxItemToCartItemComponentOptions = (options) => {
|
|
1257
|
+
return queryOptions({
|
|
1258
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1259
|
+
const { data } = await addTaxItemToCartItemComponent({
|
|
1260
|
+
...options,
|
|
1261
|
+
...queryKey[0],
|
|
1262
|
+
signal,
|
|
1263
|
+
throwOnError: true
|
|
1264
|
+
});
|
|
1265
|
+
return data;
|
|
1266
|
+
},
|
|
1267
|
+
queryKey: addTaxItemToCartItemComponentQueryKey(options)
|
|
1268
|
+
});
|
|
1269
|
+
};
|
|
1270
|
+
const addTaxItemToCartItemComponentMutation = (options) => {
|
|
1271
|
+
const mutationOptions = {
|
|
1272
|
+
mutationFn: async (localOptions) => {
|
|
1273
|
+
const { data } = await addTaxItemToCartItemComponent({
|
|
1274
|
+
...options,
|
|
1275
|
+
...localOptions,
|
|
1276
|
+
throwOnError: true
|
|
1277
|
+
});
|
|
1278
|
+
return data;
|
|
1279
|
+
}
|
|
1280
|
+
};
|
|
1281
|
+
return mutationOptions;
|
|
1282
|
+
};
|
|
1283
|
+
const deleteTaxItemFromCartItemComponentMutation = (options) => {
|
|
1284
|
+
const mutationOptions = {
|
|
1285
|
+
mutationFn: async (localOptions) => {
|
|
1286
|
+
const { data } = await deleteTaxItemFromCartItemComponent({
|
|
1287
|
+
...options,
|
|
1288
|
+
...localOptions,
|
|
1289
|
+
throwOnError: true
|
|
1290
|
+
});
|
|
1291
|
+
return data;
|
|
1292
|
+
}
|
|
1293
|
+
};
|
|
1294
|
+
return mutationOptions;
|
|
1295
|
+
};
|
|
1296
|
+
const updateTaxItemFromCartItemComponentMutation = (options) => {
|
|
1297
|
+
const mutationOptions = {
|
|
1298
|
+
mutationFn: async (localOptions) => {
|
|
1299
|
+
const { data } = await updateTaxItemFromCartItemComponent({
|
|
1300
|
+
...options,
|
|
1301
|
+
...localOptions,
|
|
1302
|
+
throwOnError: true
|
|
1303
|
+
});
|
|
1304
|
+
return data;
|
|
1305
|
+
}
|
|
1306
|
+
};
|
|
1307
|
+
return mutationOptions;
|
|
1308
|
+
};
|
|
1219
1309
|
const bulkDeleteTaxItemsFromCartMutation = (options) => {
|
|
1220
1310
|
const mutationOptions = {
|
|
1221
1311
|
mutationFn: async (localOptions) => {
|
|
@@ -1922,6 +2012,62 @@ const putShippingGroupByIdMutation = (options) => {
|
|
|
1922
2012
|
};
|
|
1923
2013
|
return mutationOptions;
|
|
1924
2014
|
};
|
|
2015
|
+
const getV2SettingsCartQueryKey = (options) => [createQueryKey("getV2SettingsCart", options)];
|
|
2016
|
+
const getV2SettingsCartOptions = (options) => {
|
|
2017
|
+
return queryOptions({
|
|
2018
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2019
|
+
const { data } = await getV2SettingsCart({
|
|
2020
|
+
...options,
|
|
2021
|
+
...queryKey[0],
|
|
2022
|
+
signal,
|
|
2023
|
+
throwOnError: true
|
|
2024
|
+
});
|
|
2025
|
+
return data;
|
|
2026
|
+
},
|
|
2027
|
+
queryKey: getV2SettingsCartQueryKey(options)
|
|
2028
|
+
});
|
|
2029
|
+
};
|
|
2030
|
+
const putV2SettingsCartMutation = (options) => {
|
|
2031
|
+
const mutationOptions = {
|
|
2032
|
+
mutationFn: async (localOptions) => {
|
|
2033
|
+
const { data } = await putV2SettingsCart({
|
|
2034
|
+
...options,
|
|
2035
|
+
...localOptions,
|
|
2036
|
+
throwOnError: true
|
|
2037
|
+
});
|
|
2038
|
+
return data;
|
|
2039
|
+
}
|
|
2040
|
+
};
|
|
2041
|
+
return mutationOptions;
|
|
2042
|
+
};
|
|
2043
|
+
const getV2SettingsCartStoreIdQueryKey = (options) => [createQueryKey("getV2SettingsCartStoreId", options)];
|
|
2044
|
+
const getV2SettingsCartStoreIdOptions = (options) => {
|
|
2045
|
+
return queryOptions({
|
|
2046
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2047
|
+
const { data } = await getV2SettingsCartStoreId({
|
|
2048
|
+
...options,
|
|
2049
|
+
...queryKey[0],
|
|
2050
|
+
signal,
|
|
2051
|
+
throwOnError: true
|
|
2052
|
+
});
|
|
2053
|
+
return data;
|
|
2054
|
+
},
|
|
2055
|
+
queryKey: getV2SettingsCartStoreIdQueryKey(options)
|
|
2056
|
+
});
|
|
2057
|
+
};
|
|
2058
|
+
const putV2SettingsCartStoreIdMutation = (options) => {
|
|
2059
|
+
const mutationOptions = {
|
|
2060
|
+
mutationFn: async (localOptions) => {
|
|
2061
|
+
const { data } = await putV2SettingsCartStoreId({
|
|
2062
|
+
...options,
|
|
2063
|
+
...localOptions,
|
|
2064
|
+
throwOnError: true
|
|
2065
|
+
});
|
|
2066
|
+
return data;
|
|
2067
|
+
}
|
|
2068
|
+
};
|
|
2069
|
+
return mutationOptions;
|
|
2070
|
+
};
|
|
1925
2071
|
const listOfferingsQueryKey = (options) => [
|
|
1926
2072
|
createQueryKey("listOfferings", options)
|
|
1927
2073
|
];
|
|
@@ -2676,6 +2822,9 @@ export {
|
|
|
2676
2822
|
addCustomDiscountToCartItemMutation,
|
|
2677
2823
|
addCustomDiscountToCartItemOptions,
|
|
2678
2824
|
addCustomDiscountToCartItemQueryKey,
|
|
2825
|
+
addTaxItemToCartItemComponentMutation,
|
|
2826
|
+
addTaxItemToCartItemComponentOptions,
|
|
2827
|
+
addTaxItemToCartItemComponentQueryKey,
|
|
2679
2828
|
addTaxItemToCartMutation,
|
|
2680
2829
|
addTaxItemToCartOptions,
|
|
2681
2830
|
addTaxItemToCartQueryKey,
|
|
@@ -2756,6 +2905,7 @@ export {
|
|
|
2756
2905
|
deleteReleaseByIdMutation,
|
|
2757
2906
|
deleteReleasesMutation,
|
|
2758
2907
|
deleteRuleByIdMutation,
|
|
2908
|
+
deleteTaxItemFromCartItemComponentMutation,
|
|
2759
2909
|
deleteV2AccountAddressMutation,
|
|
2760
2910
|
getACartOptions,
|
|
2761
2911
|
getACartQueryKey,
|
|
@@ -2889,6 +3039,10 @@ export {
|
|
|
2889
3039
|
getV2AccountsAccountIdQueryKey,
|
|
2890
3040
|
getV2AccountsOptions,
|
|
2891
3041
|
getV2AccountsQueryKey,
|
|
3042
|
+
getV2SettingsCartOptions,
|
|
3043
|
+
getV2SettingsCartQueryKey,
|
|
3044
|
+
getV2SettingsCartStoreIdOptions,
|
|
3045
|
+
getV2SettingsCartStoreIdQueryKey,
|
|
2892
3046
|
listInvoicesOptions,
|
|
2893
3047
|
listInvoicesQueryKey,
|
|
2894
3048
|
listLocationsOptions,
|
|
@@ -2939,6 +3093,8 @@ export {
|
|
|
2939
3093
|
putShippingGroupByIdMutation,
|
|
2940
3094
|
putV2AccountAddressMutation,
|
|
2941
3095
|
putV2AccountsAccountIdMutation,
|
|
3096
|
+
putV2SettingsCartMutation,
|
|
3097
|
+
putV2SettingsCartStoreIdMutation,
|
|
2942
3098
|
refundATransactionMutation,
|
|
2943
3099
|
refundATransactionOptions,
|
|
2944
3100
|
refundATransactionQueryKey,
|
|
@@ -2952,6 +3108,10 @@ export {
|
|
|
2952
3108
|
updateCustomDiscountForCartMutation,
|
|
2953
3109
|
updatePasswordProfileInfoMutation,
|
|
2954
3110
|
updateRuleMutation,
|
|
2955
|
-
updateShippingGroupMutation
|
|
3111
|
+
updateShippingGroupMutation,
|
|
3112
|
+
updateTaxItemFromCartItemComponentMutation,
|
|
3113
|
+
validateCatalogRulesMutation,
|
|
3114
|
+
validateCatalogRulesOptions,
|
|
3115
|
+
validateCatalogRulesQueryKey
|
|
2956
3116
|
};
|
|
2957
3117
|
//# sourceMappingURL=react-query.gen.mjs.map
|