@epcc-sdk/sdks-shopper 0.1.0 → 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.
@@ -65,6 +65,9 @@ import {
65
65
  createCustomerCartAssociation,
66
66
  deleteAPromotionViaPromotionCode,
67
67
  addTaxItemToCart,
68
+ addTaxItemToCartItemComponent,
69
+ deleteTaxItemFromCartItemComponent,
70
+ updateTaxItemFromCartItemComponent,
68
71
  bulkDeleteTaxItemsFromCart,
69
72
  bulkAddTaxItemsToCart,
70
73
  deleteATaxItem,
@@ -101,6 +104,10 @@ import {
101
104
  createOrderShippingGroup,
102
105
  getShippingGroupsById,
103
106
  putShippingGroupById,
107
+ getV2SettingsCart,
108
+ putV2SettingsCart,
109
+ getV2SettingsCartStoreId,
110
+ putV2SettingsCartStoreId,
104
111
  listOfferings,
105
112
  getOffering,
106
113
  listOfferingPricingOptions,
@@ -1245,6 +1252,60 @@ const addTaxItemToCartMutation = (options) => {
1245
1252
  };
1246
1253
  return mutationOptions;
1247
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
+ };
1248
1309
  const bulkDeleteTaxItemsFromCartMutation = (options) => {
1249
1310
  const mutationOptions = {
1250
1311
  mutationFn: async (localOptions) => {
@@ -1951,6 +2012,62 @@ const putShippingGroupByIdMutation = (options) => {
1951
2012
  };
1952
2013
  return mutationOptions;
1953
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
+ };
1954
2071
  const listOfferingsQueryKey = (options) => [
1955
2072
  createQueryKey("listOfferings", options)
1956
2073
  ];
@@ -2705,6 +2822,9 @@ export {
2705
2822
  addCustomDiscountToCartItemMutation,
2706
2823
  addCustomDiscountToCartItemOptions,
2707
2824
  addCustomDiscountToCartItemQueryKey,
2825
+ addTaxItemToCartItemComponentMutation,
2826
+ addTaxItemToCartItemComponentOptions,
2827
+ addTaxItemToCartItemComponentQueryKey,
2708
2828
  addTaxItemToCartMutation,
2709
2829
  addTaxItemToCartOptions,
2710
2830
  addTaxItemToCartQueryKey,
@@ -2785,6 +2905,7 @@ export {
2785
2905
  deleteReleaseByIdMutation,
2786
2906
  deleteReleasesMutation,
2787
2907
  deleteRuleByIdMutation,
2908
+ deleteTaxItemFromCartItemComponentMutation,
2788
2909
  deleteV2AccountAddressMutation,
2789
2910
  getACartOptions,
2790
2911
  getACartQueryKey,
@@ -2918,6 +3039,10 @@ export {
2918
3039
  getV2AccountsAccountIdQueryKey,
2919
3040
  getV2AccountsOptions,
2920
3041
  getV2AccountsQueryKey,
3042
+ getV2SettingsCartOptions,
3043
+ getV2SettingsCartQueryKey,
3044
+ getV2SettingsCartStoreIdOptions,
3045
+ getV2SettingsCartStoreIdQueryKey,
2921
3046
  listInvoicesOptions,
2922
3047
  listInvoicesQueryKey,
2923
3048
  listLocationsOptions,
@@ -2968,6 +3093,8 @@ export {
2968
3093
  putShippingGroupByIdMutation,
2969
3094
  putV2AccountAddressMutation,
2970
3095
  putV2AccountsAccountIdMutation,
3096
+ putV2SettingsCartMutation,
3097
+ putV2SettingsCartStoreIdMutation,
2971
3098
  refundATransactionMutation,
2972
3099
  refundATransactionOptions,
2973
3100
  refundATransactionQueryKey,
@@ -2982,6 +3109,7 @@ export {
2982
3109
  updatePasswordProfileInfoMutation,
2983
3110
  updateRuleMutation,
2984
3111
  updateShippingGroupMutation,
3112
+ updateTaxItemFromCartItemComponentMutation,
2985
3113
  validateCatalogRulesMutation,
2986
3114
  validateCatalogRulesOptions,
2987
3115
  validateCatalogRulesQueryKey