@epcc-sdk/sdks-shopper 0.0.42 → 0.1.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 +105 -73
- package/dist/client/@tanstack/react-query.gen.cjs +36 -2
- package/dist/client/@tanstack/react-query.gen.cjs.map +1 -1
- package/dist/client/@tanstack/react-query.gen.d.cts +24 -2
- package/dist/client/@tanstack/react-query.gen.d.ts +24 -2
- package/dist/client/@tanstack/react-query.gen.mjs +33 -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 +20 -2
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +11 -4
- package/dist/client/sdk.gen.d.ts +11 -4
- package/dist/client/sdk.gen.mjs +18 -1
- package/dist/client/sdk.gen.mjs.map +1 -1
- package/dist/client/transformers.gen.cjs +22 -2
- package/dist/client/transformers.gen.cjs.map +1 -1
- package/dist/client/transformers.gen.d.cts +3 -2
- package/dist/client/transformers.gen.d.ts +3 -2
- package/dist/client/transformers.gen.mjs +20 -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 +320 -53
- package/dist/client/types.gen.d.ts +320 -53
- 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
|
@@ -297,7 +297,10 @@ __export(react_query_gen_exports, {
|
|
|
297
297
|
updateCustomDiscountForCartMutation: () => updateCustomDiscountForCartMutation,
|
|
298
298
|
updatePasswordProfileInfoMutation: () => updatePasswordProfileInfoMutation,
|
|
299
299
|
updateRuleMutation: () => updateRuleMutation,
|
|
300
|
-
updateShippingGroupMutation: () => updateShippingGroupMutation
|
|
300
|
+
updateShippingGroupMutation: () => updateShippingGroupMutation,
|
|
301
|
+
validateCatalogRulesMutation: () => validateCatalogRulesMutation,
|
|
302
|
+
validateCatalogRulesOptions: () => validateCatalogRulesOptions,
|
|
303
|
+
validateCatalogRulesQueryKey: () => validateCatalogRulesQueryKey
|
|
301
304
|
});
|
|
302
305
|
module.exports = __toCommonJS(react_query_gen_exports);
|
|
303
306
|
var import_react_query = require("@tanstack/react-query");
|
|
@@ -841,6 +844,34 @@ const updateRuleMutation = (options) => {
|
|
|
841
844
|
};
|
|
842
845
|
return mutationOptions;
|
|
843
846
|
};
|
|
847
|
+
const validateCatalogRulesQueryKey = (options) => [createQueryKey("validateCatalogRules", options)];
|
|
848
|
+
const validateCatalogRulesOptions = (options) => {
|
|
849
|
+
return (0, import_react_query.queryOptions)({
|
|
850
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
851
|
+
const { data } = await (0, import_sdk.validateCatalogRules)({
|
|
852
|
+
...options,
|
|
853
|
+
...queryKey[0],
|
|
854
|
+
signal,
|
|
855
|
+
throwOnError: true
|
|
856
|
+
});
|
|
857
|
+
return data;
|
|
858
|
+
},
|
|
859
|
+
queryKey: validateCatalogRulesQueryKey(options)
|
|
860
|
+
});
|
|
861
|
+
};
|
|
862
|
+
const validateCatalogRulesMutation = (options) => {
|
|
863
|
+
const mutationOptions = {
|
|
864
|
+
mutationFn: async (localOptions) => {
|
|
865
|
+
const { data } = await (0, import_sdk.validateCatalogRules)({
|
|
866
|
+
...options,
|
|
867
|
+
...localOptions,
|
|
868
|
+
throwOnError: true
|
|
869
|
+
});
|
|
870
|
+
return data;
|
|
871
|
+
}
|
|
872
|
+
};
|
|
873
|
+
return mutationOptions;
|
|
874
|
+
};
|
|
844
875
|
const getAllHierarchiesQueryKey = (options) => [createQueryKey("getAllHierarchies", options)];
|
|
845
876
|
const getAllHierarchiesOptions = (options) => {
|
|
846
877
|
return (0, import_react_query.queryOptions)({
|
|
@@ -3110,6 +3141,9 @@ const postMultiSearchMutation = (options) => {
|
|
|
3110
3141
|
updateCustomDiscountForCartMutation,
|
|
3111
3142
|
updatePasswordProfileInfoMutation,
|
|
3112
3143
|
updateRuleMutation,
|
|
3113
|
-
updateShippingGroupMutation
|
|
3144
|
+
updateShippingGroupMutation,
|
|
3145
|
+
validateCatalogRulesMutation,
|
|
3146
|
+
validateCatalogRulesOptions,
|
|
3147
|
+
validateCatalogRulesQueryKey
|
|
3114
3148
|
});
|
|
3115
3149
|
//# sourceMappingURL=react-query.gen.cjs.map
|