@epcc-sdk/sdks-shopper 0.0.26 → 0.0.28

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.
Files changed (64) hide show
  1. package/README.md +4 -0
  2. package/dist/client/@tanstack/react-query.gen.cjs +2790 -0
  3. package/dist/client/@tanstack/react-query.gen.cjs.map +1 -0
  4. package/dist/client/@tanstack/react-query.gen.d.cts +2877 -0
  5. package/dist/client/@tanstack/react-query.gen.d.ts +821 -794
  6. package/dist/client/@tanstack/react-query.gen.mjs +2647 -0
  7. package/dist/client/@tanstack/react-query.gen.mjs.map +1 -0
  8. package/dist/client/index.cjs +25 -0
  9. package/dist/client/index.cjs.map +1 -0
  10. package/dist/client/index.d.cts +3 -0
  11. package/dist/client/index.d.ts +3 -2
  12. package/dist/client/index.mjs +3 -0
  13. package/dist/client/index.mjs.map +1 -0
  14. package/dist/client/sdk.gen.cjs +1959 -0
  15. package/dist/client/sdk.gen.cjs.map +1 -0
  16. package/dist/client/{sdk.gen.js → sdk.gen.d.cts} +338 -1134
  17. package/dist/client/sdk.gen.d.ts +285 -273
  18. package/dist/client/sdk.gen.mjs +1812 -0
  19. package/dist/client/sdk.gen.mjs.map +1 -0
  20. package/dist/client/transformers.gen.cjs +821 -0
  21. package/dist/client/transformers.gen.cjs.map +1 -0
  22. package/dist/client/transformers.gen.d.cts +60 -0
  23. package/dist/client/transformers.gen.d.ts +60 -56
  24. package/dist/client/transformers.gen.mjs +742 -0
  25. package/dist/client/transformers.gen.mjs.map +1 -0
  26. package/dist/client/types.gen.cjs +17 -0
  27. package/dist/client/types.gen.cjs.map +1 -0
  28. package/dist/client/types.gen.d.cts +10820 -0
  29. package/dist/client/types.gen.d.ts +1399 -1127
  30. package/dist/client/types.gen.mjs +1 -0
  31. package/dist/client/types.gen.mjs.map +1 -0
  32. package/dist/index.cjs +40 -0
  33. package/dist/index.cjs.map +1 -0
  34. package/dist/index.d.cts +6 -0
  35. package/dist/index.d.ts +6 -6
  36. package/dist/index.mjs +11 -0
  37. package/dist/index.mjs.map +1 -0
  38. package/dist/utils/extract-media.cjs +54 -0
  39. package/dist/utils/extract-media.cjs.map +1 -0
  40. package/dist/utils/extract-media.d.cts +18 -0
  41. package/dist/utils/extract-media.d.ts +6 -3
  42. package/dist/utils/extract-media.mjs +30 -0
  43. package/dist/utils/extract-media.mjs.map +1 -0
  44. package/dist/utils/extract-product-image.cjs +35 -0
  45. package/dist/utils/extract-product-image.cjs.map +1 -0
  46. package/dist/utils/extract-product-image.d.cts +5 -0
  47. package/dist/utils/extract-product-image.d.ts +5 -2
  48. package/dist/utils/extract-product-image.mjs +11 -0
  49. package/dist/utils/extract-product-image.mjs.map +1 -0
  50. package/dist/utils/index.cjs +32 -0
  51. package/dist/utils/index.cjs.map +1 -0
  52. package/dist/utils/index.d.cts +3 -0
  53. package/dist/utils/index.d.ts +3 -2
  54. package/dist/utils/index.mjs +7 -0
  55. package/dist/utils/index.mjs.map +1 -0
  56. package/package.json +23 -15
  57. package/dist/client/@tanstack/react-query.gen.js +0 -2717
  58. package/dist/client/index.js +0 -3
  59. package/dist/client/transformers.gen.js +0 -789
  60. package/dist/client/types.gen.js +0 -2
  61. package/dist/index.js +0 -6
  62. package/dist/utils/extract-media.js +0 -54
  63. package/dist/utils/extract-product-image.js +0 -8
  64. package/dist/utils/index.js +0 -2
@@ -0,0 +1,2790 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var react_query_gen_exports = {};
20
+ __export(react_query_gen_exports, {
21
+ addCustomDiscountToCartItemMutation: () => addCustomDiscountToCartItemMutation,
22
+ addCustomDiscountToCartItemOptions: () => addCustomDiscountToCartItemOptions,
23
+ addCustomDiscountToCartItemQueryKey: () => addCustomDiscountToCartItemQueryKey,
24
+ addTaxItemToCartMutation: () => addTaxItemToCartMutation,
25
+ addTaxItemToCartOptions: () => addTaxItemToCartOptions,
26
+ addTaxItemToCartQueryKey: () => addTaxItemToCartQueryKey,
27
+ anonymizeOrdersMutation: () => anonymizeOrdersMutation,
28
+ anonymizeOrdersOptions: () => anonymizeOrdersOptions,
29
+ anonymizeOrdersQueryKey: () => anonymizeOrdersQueryKey,
30
+ bulkAddCustomDiscountsToCartMutation: () => bulkAddCustomDiscountsToCartMutation,
31
+ bulkAddCustomDiscountsToCartOptions: () => bulkAddCustomDiscountsToCartOptions,
32
+ bulkAddCustomDiscountsToCartQueryKey: () => bulkAddCustomDiscountsToCartQueryKey,
33
+ bulkAddTaxItemsToCartMutation: () => bulkAddTaxItemsToCartMutation,
34
+ bulkAddTaxItemsToCartOptions: () => bulkAddTaxItemsToCartOptions,
35
+ bulkAddTaxItemsToCartQueryKey: () => bulkAddTaxItemsToCartQueryKey,
36
+ bulkDeleteCustomDiscountsFromCartMutation: () => bulkDeleteCustomDiscountsFromCartMutation,
37
+ bulkDeleteTaxItemsFromCartMutation: () => bulkDeleteTaxItemsFromCartMutation,
38
+ bulkUpdateItemsInCartMutation: () => bulkUpdateItemsInCartMutation,
39
+ cancelATransactionMutation: () => cancelATransactionMutation,
40
+ cancelATransactionOptions: () => cancelATransactionOptions,
41
+ cancelATransactionQueryKey: () => cancelATransactionQueryKey,
42
+ captureATransactionMutation: () => captureATransactionMutation,
43
+ captureATransactionOptions: () => captureATransactionOptions,
44
+ captureATransactionQueryKey: () => captureATransactionQueryKey,
45
+ checkoutApiMutation: () => checkoutApiMutation,
46
+ checkoutApiOptions: () => checkoutApiOptions,
47
+ checkoutApiQueryKey: () => checkoutApiQueryKey,
48
+ configureByContextProductMutation: () => configureByContextProductMutation,
49
+ configureByContextProductOptions: () => configureByContextProductOptions,
50
+ configureByContextProductQueryKey: () => configureByContextProductQueryKey,
51
+ confirmPaymentMutation: () => confirmPaymentMutation,
52
+ confirmPaymentOptions: () => confirmPaymentOptions,
53
+ confirmPaymentQueryKey: () => confirmPaymentQueryKey,
54
+ createACartMutation: () => createACartMutation,
55
+ createACartOptions: () => createACartOptions,
56
+ createACartQueryKey: () => createACartQueryKey,
57
+ createAccountCartAssociationMutation: () => createAccountCartAssociationMutation,
58
+ createAccountCartAssociationOptions: () => createAccountCartAssociationOptions,
59
+ createAccountCartAssociationQueryKey: () => createAccountCartAssociationQueryKey,
60
+ createAnAccessTokenMutation: () => createAnAccessTokenMutation,
61
+ createAnAccessTokenOptions: () => createAnAccessTokenOptions,
62
+ createAnAccessTokenQueryKey: () => createAnAccessTokenQueryKey,
63
+ createCartPaymentIntentMutation: () => createCartPaymentIntentMutation,
64
+ createCartPaymentIntentOptions: () => createCartPaymentIntentOptions,
65
+ createCartPaymentIntentQueryKey: () => createCartPaymentIntentQueryKey,
66
+ createCatalogMutation: () => createCatalogMutation,
67
+ createCatalogOptions: () => createCatalogOptions,
68
+ createCatalogQueryKey: () => createCatalogQueryKey,
69
+ createCustomerCartAssociationMutation: () => createCustomerCartAssociationMutation,
70
+ createCustomerCartAssociationOptions: () => createCustomerCartAssociationOptions,
71
+ createCustomerCartAssociationQueryKey: () => createCustomerCartAssociationQueryKey,
72
+ createOneTimePasswordTokenRequestMutation: () => createOneTimePasswordTokenRequestMutation,
73
+ createOneTimePasswordTokenRequestOptions: () => createOneTimePasswordTokenRequestOptions,
74
+ createOneTimePasswordTokenRequestQueryKey: () => createOneTimePasswordTokenRequestQueryKey,
75
+ createRuleMutation: () => createRuleMutation,
76
+ createRuleOptions: () => createRuleOptions,
77
+ createRuleQueryKey: () => createRuleQueryKey,
78
+ deleteACartItemMutation: () => deleteACartItemMutation,
79
+ deleteACartMutation: () => deleteACartMutation,
80
+ deleteAPromotionViaPromotionCodeMutation: () => deleteAPromotionViaPromotionCodeMutation,
81
+ deleteATaxItemMutation: () => deleteATaxItemMutation,
82
+ deleteAccountCartAssociationMutation: () => deleteAccountCartAssociationMutation,
83
+ deleteAllCartItemsMutation: () => deleteAllCartItemsMutation,
84
+ deleteCatalogByIdMutation: () => deleteCatalogByIdMutation,
85
+ deleteCustomDiscountFromCartItemMutation: () => deleteCustomDiscountFromCartItemMutation,
86
+ deleteCustomDiscountFromCartMutation: () => deleteCustomDiscountFromCartMutation,
87
+ deleteCustomerCartAssociationMutation: () => deleteCustomerCartAssociationMutation,
88
+ deleteReleaseByIdMutation: () => deleteReleaseByIdMutation,
89
+ deleteReleasesMutation: () => deleteReleasesMutation,
90
+ deleteRuleByIdMutation: () => deleteRuleByIdMutation,
91
+ deleteV2AccountAddressMutation: () => deleteV2AccountAddressMutation,
92
+ getACurrencyOptions: () => getACurrencyOptions,
93
+ getACurrencyQueryKey: () => getACurrencyQueryKey,
94
+ getAFileOptions: () => getAFileOptions,
95
+ getAFileQueryKey: () => getAFileQueryKey,
96
+ getATransactionOptions: () => getATransactionOptions,
97
+ getATransactionQueryKey: () => getATransactionQueryKey,
98
+ getAllCurrenciesOptions: () => getAllCurrenciesOptions,
99
+ getAllCurrenciesQueryKey: () => getAllCurrenciesQueryKey,
100
+ getAllFilesOptions: () => getAllFilesOptions,
101
+ getAllFilesQueryKey: () => getAllFilesQueryKey,
102
+ getAllHierarchiesOptions: () => getAllHierarchiesOptions,
103
+ getAllHierarchiesQueryKey: () => getAllHierarchiesQueryKey,
104
+ getAllNodesOptions: () => getAllNodesOptions,
105
+ getAllNodesQueryKey: () => getAllNodesQueryKey,
106
+ getAllProductsOptions: () => getAllProductsOptions,
107
+ getAllProductsQueryKey: () => getAllProductsQueryKey,
108
+ getAnOrderOptions: () => getAnOrderOptions,
109
+ getAnOrderQueryKey: () => getAnOrderQueryKey,
110
+ getByContextAllHierarchiesOptions: () => getByContextAllHierarchiesOptions,
111
+ getByContextAllHierarchiesQueryKey: () => getByContextAllHierarchiesQueryKey,
112
+ getByContextAllNodesOptions: () => getByContextAllNodesOptions,
113
+ getByContextAllNodesQueryKey: () => getByContextAllNodesQueryKey,
114
+ getByContextAllProductsOptions: () => getByContextAllProductsOptions,
115
+ getByContextAllProductsQueryKey: () => getByContextAllProductsQueryKey,
116
+ getByContextChildNodesOptions: () => getByContextChildNodesOptions,
117
+ getByContextChildNodesQueryKey: () => getByContextChildNodesQueryKey,
118
+ getByContextChildProductsOptions: () => getByContextChildProductsOptions,
119
+ getByContextChildProductsQueryKey: () => getByContextChildProductsQueryKey,
120
+ getByContextComponentProductIdsOptions: () => getByContextComponentProductIdsOptions,
121
+ getByContextComponentProductIdsQueryKey: () => getByContextComponentProductIdsQueryKey,
122
+ getByContextHierarchyChildNodesOptions: () => getByContextHierarchyChildNodesOptions,
123
+ getByContextHierarchyChildNodesQueryKey: () => getByContextHierarchyChildNodesQueryKey,
124
+ getByContextHierarchyNodesOptions: () => getByContextHierarchyNodesOptions,
125
+ getByContextHierarchyNodesQueryKey: () => getByContextHierarchyNodesQueryKey,
126
+ getByContextHierarchyOptions: () => getByContextHierarchyOptions,
127
+ getByContextHierarchyQueryKey: () => getByContextHierarchyQueryKey,
128
+ getByContextNodeOptions: () => getByContextNodeOptions,
129
+ getByContextNodeQueryKey: () => getByContextNodeQueryKey,
130
+ getByContextProductOptions: () => getByContextProductOptions,
131
+ getByContextProductQueryKey: () => getByContextProductQueryKey,
132
+ getByContextProductsForHierarchyOptions: () => getByContextProductsForHierarchyOptions,
133
+ getByContextProductsForHierarchyQueryKey: () => getByContextProductsForHierarchyQueryKey,
134
+ getByContextProductsForNodeOptions: () => getByContextProductsForNodeOptions,
135
+ getByContextProductsForNodeQueryKey: () => getByContextProductsForNodeQueryKey,
136
+ getByContextReleaseOptions: () => getByContextReleaseOptions,
137
+ getByContextReleaseQueryKey: () => getByContextReleaseQueryKey,
138
+ getCartItemsOptions: () => getCartItemsOptions,
139
+ getCartItemsQueryKey: () => getCartItemsQueryKey,
140
+ getCartOptions: () => getCartOptions,
141
+ getCartQueryKey: () => getCartQueryKey,
142
+ getCartsOptions: () => getCartsOptions,
143
+ getCartsQueryKey: () => getCartsQueryKey,
144
+ getCatalogByIdOptions: () => getCatalogByIdOptions,
145
+ getCatalogByIdQueryKey: () => getCatalogByIdQueryKey,
146
+ getCatalogsOptions: () => getCatalogsOptions,
147
+ getCatalogsQueryKey: () => getCatalogsQueryKey,
148
+ getChildNodesOptions: () => getChildNodesOptions,
149
+ getChildNodesQueryKey: () => getChildNodesQueryKey,
150
+ getChildProductsOptions: () => getChildProductsOptions,
151
+ getChildProductsQueryKey: () => getChildProductsQueryKey,
152
+ getComponentProductIdsOptions: () => getComponentProductIdsOptions,
153
+ getComponentProductIdsQueryKey: () => getComponentProductIdsQueryKey,
154
+ getCustomerOrdersOptions: () => getCustomerOrdersOptions,
155
+ getCustomerOrdersQueryKey: () => getCustomerOrdersQueryKey,
156
+ getFeatureOptions: () => getFeatureOptions,
157
+ getFeatureQueryKey: () => getFeatureQueryKey,
158
+ getHierarchyChildNodesOptions: () => getHierarchyChildNodesOptions,
159
+ getHierarchyChildNodesQueryKey: () => getHierarchyChildNodesQueryKey,
160
+ getHierarchyNodesOptions: () => getHierarchyNodesOptions,
161
+ getHierarchyNodesQueryKey: () => getHierarchyNodesQueryKey,
162
+ getHierarchyOptions: () => getHierarchyOptions,
163
+ getHierarchyQueryKey: () => getHierarchyQueryKey,
164
+ getInvoiceOptions: () => getInvoiceOptions,
165
+ getInvoiceQueryKey: () => getInvoiceQueryKey,
166
+ getNodeOptions: () => getNodeOptions,
167
+ getNodeQueryKey: () => getNodeQueryKey,
168
+ getOfferingOptions: () => getOfferingOptions,
169
+ getOfferingQueryKey: () => getOfferingQueryKey,
170
+ getOrderItemsOptions: () => getOrderItemsOptions,
171
+ getOrderItemsQueryKey: () => getOrderItemsQueryKey,
172
+ getOrderTransactionsOptions: () => getOrderTransactionsOptions,
173
+ getOrderTransactionsQueryKey: () => getOrderTransactionsQueryKey,
174
+ getPlanOptions: () => getPlanOptions,
175
+ getPlanQueryKey: () => getPlanQueryKey,
176
+ getProductOptions: () => getProductOptions,
177
+ getProductQueryKey: () => getProductQueryKey,
178
+ getProductsForHierarchyOptions: () => getProductsForHierarchyOptions,
179
+ getProductsForHierarchyQueryKey: () => getProductsForHierarchyQueryKey,
180
+ getProductsForNodeOptions: () => getProductsForNodeOptions,
181
+ getProductsForNodeQueryKey: () => getProductsForNodeQueryKey,
182
+ getReleaseByIdOptions: () => getReleaseByIdOptions,
183
+ getReleaseByIdQueryKey: () => getReleaseByIdQueryKey,
184
+ getReleasesOptions: () => getReleasesOptions,
185
+ getReleasesQueryKey: () => getReleasesQueryKey,
186
+ getRuleByIdOptions: () => getRuleByIdOptions,
187
+ getRuleByIdQueryKey: () => getRuleByIdQueryKey,
188
+ getRulesOptions: () => getRulesOptions,
189
+ getRulesQueryKey: () => getRulesQueryKey,
190
+ getStockOptions: () => getStockOptions,
191
+ getStockQueryKey: () => getStockQueryKey,
192
+ getSubscriptionInvoiceOptions: () => getSubscriptionInvoiceOptions,
193
+ getSubscriptionInvoicePaymentOptions: () => getSubscriptionInvoicePaymentOptions,
194
+ getSubscriptionInvoicePaymentQueryKey: () => getSubscriptionInvoicePaymentQueryKey,
195
+ getSubscriptionInvoiceQueryKey: () => getSubscriptionInvoiceQueryKey,
196
+ getSubscriptionOptions: () => getSubscriptionOptions,
197
+ getSubscriptionProductOptions: () => getSubscriptionProductOptions,
198
+ getSubscriptionProductQueryKey: () => getSubscriptionProductQueryKey,
199
+ getSubscriptionQueryKey: () => getSubscriptionQueryKey,
200
+ getSubscriptionStateOptions: () => getSubscriptionStateOptions,
201
+ getSubscriptionStateQueryKey: () => getSubscriptionStateQueryKey,
202
+ getV2AccountAddressOptions: () => getV2AccountAddressOptions,
203
+ getV2AccountAddressQueryKey: () => getV2AccountAddressQueryKey,
204
+ getV2AccountAddressesOptions: () => getV2AccountAddressesOptions,
205
+ getV2AccountAddressesQueryKey: () => getV2AccountAddressesQueryKey,
206
+ getV2AccountMembersAccountMemberIdOptions: () => getV2AccountMembersAccountMemberIdOptions,
207
+ getV2AccountMembersAccountMemberIdQueryKey: () => getV2AccountMembersAccountMemberIdQueryKey,
208
+ getV2AccountMembersOptions: () => getV2AccountMembersOptions,
209
+ getV2AccountMembersQueryKey: () => getV2AccountMembersQueryKey,
210
+ getV2AccountsAccountIdAccountMembershipsOptions: () => getV2AccountsAccountIdAccountMembershipsOptions,
211
+ getV2AccountsAccountIdAccountMembershipsQueryKey: () => getV2AccountsAccountIdAccountMembershipsQueryKey,
212
+ getV2AccountsAccountIdOptions: () => getV2AccountsAccountIdOptions,
213
+ getV2AccountsAccountIdQueryKey: () => getV2AccountsAccountIdQueryKey,
214
+ getV2AccountsOptions: () => getV2AccountsOptions,
215
+ getV2AccountsQueryKey: () => getV2AccountsQueryKey,
216
+ listInvoicesOptions: () => listInvoicesOptions,
217
+ listInvoicesQueryKey: () => listInvoicesQueryKey,
218
+ listLocationsOptions: () => listLocationsOptions,
219
+ listLocationsQueryKey: () => listLocationsQueryKey,
220
+ listOfferingFeaturesOptions: () => listOfferingFeaturesOptions,
221
+ listOfferingFeaturesQueryKey: () => listOfferingFeaturesQueryKey,
222
+ listOfferingPlansOptions: () => listOfferingPlansOptions,
223
+ listOfferingPlansQueryKey: () => listOfferingPlansQueryKey,
224
+ listOfferingProductsOptions: () => listOfferingProductsOptions,
225
+ listOfferingProductsQueryKey: () => listOfferingProductsQueryKey,
226
+ listOfferingsOptions: () => listOfferingsOptions,
227
+ listOfferingsQueryKey: () => listOfferingsQueryKey,
228
+ listSubscriptionInvoicePaymentsOptions: () => listSubscriptionInvoicePaymentsOptions,
229
+ listSubscriptionInvoicePaymentsQueryKey: () => listSubscriptionInvoicePaymentsQueryKey,
230
+ listSubscriptionInvoicesOptions: () => listSubscriptionInvoicesOptions,
231
+ listSubscriptionInvoicesQueryKey: () => listSubscriptionInvoicesQueryKey,
232
+ listSubscriptionPlansOptions: () => listSubscriptionPlansOptions,
233
+ listSubscriptionPlansQueryKey: () => listSubscriptionPlansQueryKey,
234
+ listSubscriptionProductsOptions: () => listSubscriptionProductsOptions,
235
+ listSubscriptionProductsQueryKey: () => listSubscriptionProductsQueryKey,
236
+ listSubscriptionStatesOptions: () => listSubscriptionStatesOptions,
237
+ listSubscriptionStatesQueryKey: () => listSubscriptionStatesQueryKey,
238
+ listSubscriptionsOptions: () => listSubscriptionsOptions,
239
+ listSubscriptionsQueryKey: () => listSubscriptionsQueryKey,
240
+ manageCartsMutation: () => manageCartsMutation,
241
+ manageCartsOptions: () => manageCartsOptions,
242
+ manageCartsQueryKey: () => manageCartsQueryKey,
243
+ paymentSetupMutation: () => paymentSetupMutation,
244
+ paymentSetupOptions: () => paymentSetupOptions,
245
+ paymentSetupQueryKey: () => paymentSetupQueryKey,
246
+ postV2AccountAddressMutation: () => postV2AccountAddressMutation,
247
+ postV2AccountAddressOptions: () => postV2AccountAddressOptions,
248
+ postV2AccountAddressQueryKey: () => postV2AccountAddressQueryKey,
249
+ postV2AccountMembersTokensMutation: () => postV2AccountMembersTokensMutation,
250
+ postV2AccountMembersTokensOptions: () => postV2AccountMembersTokensOptions,
251
+ postV2AccountMembersTokensQueryKey: () => postV2AccountMembersTokensQueryKey,
252
+ postV2AccountsMutation: () => postV2AccountsMutation,
253
+ postV2AccountsOptions: () => postV2AccountsOptions,
254
+ postV2AccountsQueryKey: () => postV2AccountsQueryKey,
255
+ publishReleaseMutation: () => publishReleaseMutation,
256
+ publishReleaseOptions: () => publishReleaseOptions,
257
+ publishReleaseQueryKey: () => publishReleaseQueryKey,
258
+ putV2AccountAddressMutation: () => putV2AccountAddressMutation,
259
+ putV2AccountsAccountIdMutation: () => putV2AccountsAccountIdMutation,
260
+ refundATransactionMutation: () => refundATransactionMutation,
261
+ refundATransactionOptions: () => refundATransactionOptions,
262
+ refundATransactionQueryKey: () => refundATransactionQueryKey,
263
+ updateACartItemMutation: () => updateACartItemMutation,
264
+ updateACartMutation: () => updateACartMutation,
265
+ updateATaxItemMutation: () => updateATaxItemMutation,
266
+ updateAnOrderMutation: () => updateAnOrderMutation,
267
+ updateCatalogMutation: () => updateCatalogMutation,
268
+ updateCustomDiscountForCartItemMutation: () => updateCustomDiscountForCartItemMutation,
269
+ updateCustomDiscountForCartMutation: () => updateCustomDiscountForCartMutation,
270
+ updatePasswordProfileInfoMutation: () => updatePasswordProfileInfoMutation,
271
+ updateRuleMutation: () => updateRuleMutation
272
+ });
273
+ module.exports = __toCommonJS(react_query_gen_exports);
274
+ var import_react_query = require("@tanstack/react-query");
275
+ var import_sdk = require('../sdk.gen.cjs');
276
+ const createQueryKey = (id, options, infinite) => {
277
+ const params = {
278
+ _id: id,
279
+ baseUrl: (options?.client ?? import_sdk.client).getConfig().baseUrl
280
+ };
281
+ if (infinite) {
282
+ params._infinite = infinite;
283
+ }
284
+ if (options?.body) {
285
+ params.body = options.body;
286
+ }
287
+ if (options?.headers) {
288
+ params.headers = options.headers;
289
+ }
290
+ if (options?.path) {
291
+ params.path = options.path;
292
+ }
293
+ if (options?.query) {
294
+ params.query = options.query;
295
+ }
296
+ return params;
297
+ };
298
+ const getByContextReleaseQueryKey = (options) => [createQueryKey("getByContextRelease", options)];
299
+ const getByContextReleaseOptions = (options) => {
300
+ return (0, import_react_query.queryOptions)({
301
+ queryFn: async ({ queryKey, signal }) => {
302
+ const { data } = await (0, import_sdk.getByContextRelease)({
303
+ ...options,
304
+ ...queryKey[0],
305
+ signal,
306
+ throwOnError: true
307
+ });
308
+ return data;
309
+ },
310
+ queryKey: getByContextReleaseQueryKey(options)
311
+ });
312
+ };
313
+ const getByContextAllHierarchiesQueryKey = (options) => [createQueryKey("getByContextAllHierarchies", options)];
314
+ const getByContextAllHierarchiesOptions = (options) => {
315
+ return (0, import_react_query.queryOptions)({
316
+ queryFn: async ({ queryKey, signal }) => {
317
+ const { data } = await (0, import_sdk.getByContextAllHierarchies)({
318
+ ...options,
319
+ ...queryKey[0],
320
+ signal,
321
+ throwOnError: true
322
+ });
323
+ return data;
324
+ },
325
+ queryKey: getByContextAllHierarchiesQueryKey(options)
326
+ });
327
+ };
328
+ const getByContextHierarchyQueryKey = (options) => [createQueryKey("getByContextHierarchy", options)];
329
+ const getByContextHierarchyOptions = (options) => {
330
+ return (0, import_react_query.queryOptions)({
331
+ queryFn: async ({ queryKey, signal }) => {
332
+ const { data } = await (0, import_sdk.getByContextHierarchy)({
333
+ ...options,
334
+ ...queryKey[0],
335
+ signal,
336
+ throwOnError: true
337
+ });
338
+ return data;
339
+ },
340
+ queryKey: getByContextHierarchyQueryKey(options)
341
+ });
342
+ };
343
+ const getByContextHierarchyNodesQueryKey = (options) => [createQueryKey("getByContextHierarchyNodes", options)];
344
+ const getByContextHierarchyNodesOptions = (options) => {
345
+ return (0, import_react_query.queryOptions)({
346
+ queryFn: async ({ queryKey, signal }) => {
347
+ const { data } = await (0, import_sdk.getByContextHierarchyNodes)({
348
+ ...options,
349
+ ...queryKey[0],
350
+ signal,
351
+ throwOnError: true
352
+ });
353
+ return data;
354
+ },
355
+ queryKey: getByContextHierarchyNodesQueryKey(options)
356
+ });
357
+ };
358
+ const getByContextHierarchyChildNodesQueryKey = (options) => [createQueryKey("getByContextHierarchyChildNodes", options)];
359
+ const getByContextHierarchyChildNodesOptions = (options) => {
360
+ return (0, import_react_query.queryOptions)({
361
+ queryFn: async ({ queryKey, signal }) => {
362
+ const { data } = await (0, import_sdk.getByContextHierarchyChildNodes)({
363
+ ...options,
364
+ ...queryKey[0],
365
+ signal,
366
+ throwOnError: true
367
+ });
368
+ return data;
369
+ },
370
+ queryKey: getByContextHierarchyChildNodesQueryKey(options)
371
+ });
372
+ };
373
+ const getByContextAllNodesQueryKey = (options) => [createQueryKey("getByContextAllNodes", options)];
374
+ const getByContextAllNodesOptions = (options) => {
375
+ return (0, import_react_query.queryOptions)({
376
+ queryFn: async ({ queryKey, signal }) => {
377
+ const { data } = await (0, import_sdk.getByContextAllNodes)({
378
+ ...options,
379
+ ...queryKey[0],
380
+ signal,
381
+ throwOnError: true
382
+ });
383
+ return data;
384
+ },
385
+ queryKey: getByContextAllNodesQueryKey(options)
386
+ });
387
+ };
388
+ const getByContextNodeQueryKey = (options) => [createQueryKey("getByContextNode", options)];
389
+ const getByContextNodeOptions = (options) => {
390
+ return (0, import_react_query.queryOptions)({
391
+ queryFn: async ({ queryKey, signal }) => {
392
+ const { data } = await (0, import_sdk.getByContextNode)({
393
+ ...options,
394
+ ...queryKey[0],
395
+ signal,
396
+ throwOnError: true
397
+ });
398
+ return data;
399
+ },
400
+ queryKey: getByContextNodeQueryKey(options)
401
+ });
402
+ };
403
+ const getByContextChildNodesQueryKey = (options) => [createQueryKey("getByContextChildNodes", options)];
404
+ const getByContextChildNodesOptions = (options) => {
405
+ return (0, import_react_query.queryOptions)({
406
+ queryFn: async ({ queryKey, signal }) => {
407
+ const { data } = await (0, import_sdk.getByContextChildNodes)({
408
+ ...options,
409
+ ...queryKey[0],
410
+ signal,
411
+ throwOnError: true
412
+ });
413
+ return data;
414
+ },
415
+ queryKey: getByContextChildNodesQueryKey(options)
416
+ });
417
+ };
418
+ const getByContextAllProductsQueryKey = (options) => [createQueryKey("getByContextAllProducts", options)];
419
+ const getByContextAllProductsOptions = (options) => {
420
+ return (0, import_react_query.queryOptions)({
421
+ queryFn: async ({ queryKey, signal }) => {
422
+ const { data } = await (0, import_sdk.getByContextAllProducts)({
423
+ ...options,
424
+ ...queryKey[0],
425
+ signal,
426
+ throwOnError: true
427
+ });
428
+ return data;
429
+ },
430
+ queryKey: getByContextAllProductsQueryKey(options)
431
+ });
432
+ };
433
+ const getByContextProductQueryKey = (options) => [createQueryKey("getByContextProduct", options)];
434
+ const getByContextProductOptions = (options) => {
435
+ return (0, import_react_query.queryOptions)({
436
+ queryFn: async ({ queryKey, signal }) => {
437
+ const { data } = await (0, import_sdk.getByContextProduct)({
438
+ ...options,
439
+ ...queryKey[0],
440
+ signal,
441
+ throwOnError: true
442
+ });
443
+ return data;
444
+ },
445
+ queryKey: getByContextProductQueryKey(options)
446
+ });
447
+ };
448
+ const getByContextComponentProductIdsQueryKey = (options) => [createQueryKey("getByContextComponentProductIds", options)];
449
+ const getByContextComponentProductIdsOptions = (options) => {
450
+ return (0, import_react_query.queryOptions)({
451
+ queryFn: async ({ queryKey, signal }) => {
452
+ const { data } = await (0, import_sdk.getByContextComponentProductIds)({
453
+ ...options,
454
+ ...queryKey[0],
455
+ signal,
456
+ throwOnError: true
457
+ });
458
+ return data;
459
+ },
460
+ queryKey: getByContextComponentProductIdsQueryKey(options)
461
+ });
462
+ };
463
+ const getByContextChildProductsQueryKey = (options) => [createQueryKey("getByContextChildProducts", options)];
464
+ const getByContextChildProductsOptions = (options) => {
465
+ return (0, import_react_query.queryOptions)({
466
+ queryFn: async ({ queryKey, signal }) => {
467
+ const { data } = await (0, import_sdk.getByContextChildProducts)({
468
+ ...options,
469
+ ...queryKey[0],
470
+ signal,
471
+ throwOnError: true
472
+ });
473
+ return data;
474
+ },
475
+ queryKey: getByContextChildProductsQueryKey(options)
476
+ });
477
+ };
478
+ const getByContextProductsForHierarchyQueryKey = (options) => [createQueryKey("getByContextProductsForHierarchy", options)];
479
+ const getByContextProductsForHierarchyOptions = (options) => {
480
+ return (0, import_react_query.queryOptions)({
481
+ queryFn: async ({ queryKey, signal }) => {
482
+ const { data } = await (0, import_sdk.getByContextProductsForHierarchy)({
483
+ ...options,
484
+ ...queryKey[0],
485
+ signal,
486
+ throwOnError: true
487
+ });
488
+ return data;
489
+ },
490
+ queryKey: getByContextProductsForHierarchyQueryKey(options)
491
+ });
492
+ };
493
+ const getByContextProductsForNodeQueryKey = (options) => [createQueryKey("getByContextProductsForNode", options)];
494
+ const getByContextProductsForNodeOptions = (options) => {
495
+ return (0, import_react_query.queryOptions)({
496
+ queryFn: async ({ queryKey, signal }) => {
497
+ const { data } = await (0, import_sdk.getByContextProductsForNode)({
498
+ ...options,
499
+ ...queryKey[0],
500
+ signal,
501
+ throwOnError: true
502
+ });
503
+ return data;
504
+ },
505
+ queryKey: getByContextProductsForNodeQueryKey(options)
506
+ });
507
+ };
508
+ const configureByContextProductQueryKey = (options) => [createQueryKey("configureByContextProduct", options)];
509
+ const configureByContextProductOptions = (options) => {
510
+ return (0, import_react_query.queryOptions)({
511
+ queryFn: async ({ queryKey, signal }) => {
512
+ const { data } = await (0, import_sdk.configureByContextProduct)({
513
+ ...options,
514
+ ...queryKey[0],
515
+ signal,
516
+ throwOnError: true
517
+ });
518
+ return data;
519
+ },
520
+ queryKey: configureByContextProductQueryKey(options)
521
+ });
522
+ };
523
+ const configureByContextProductMutation = (options) => {
524
+ const mutationOptions = {
525
+ mutationFn: async (localOptions) => {
526
+ const { data } = await (0, import_sdk.configureByContextProduct)({
527
+ ...options,
528
+ ...localOptions,
529
+ throwOnError: true
530
+ });
531
+ return data;
532
+ }
533
+ };
534
+ return mutationOptions;
535
+ };
536
+ const getCatalogsQueryKey = (options) => [
537
+ createQueryKey("getCatalogs", options)
538
+ ];
539
+ const getCatalogsOptions = (options) => {
540
+ return (0, import_react_query.queryOptions)({
541
+ queryFn: async ({ queryKey, signal }) => {
542
+ const { data } = await (0, import_sdk.getCatalogs)({
543
+ ...options,
544
+ ...queryKey[0],
545
+ signal,
546
+ throwOnError: true
547
+ });
548
+ return data;
549
+ },
550
+ queryKey: getCatalogsQueryKey(options)
551
+ });
552
+ };
553
+ const createCatalogQueryKey = (options) => [
554
+ createQueryKey("createCatalog", options)
555
+ ];
556
+ const createCatalogOptions = (options) => {
557
+ return (0, import_react_query.queryOptions)({
558
+ queryFn: async ({ queryKey, signal }) => {
559
+ const { data } = await (0, import_sdk.createCatalog)({
560
+ ...options,
561
+ ...queryKey[0],
562
+ signal,
563
+ throwOnError: true
564
+ });
565
+ return data;
566
+ },
567
+ queryKey: createCatalogQueryKey(options)
568
+ });
569
+ };
570
+ const createCatalogMutation = (options) => {
571
+ const mutationOptions = {
572
+ mutationFn: async (localOptions) => {
573
+ const { data } = await (0, import_sdk.createCatalog)({
574
+ ...options,
575
+ ...localOptions,
576
+ throwOnError: true
577
+ });
578
+ return data;
579
+ }
580
+ };
581
+ return mutationOptions;
582
+ };
583
+ const deleteCatalogByIdMutation = (options) => {
584
+ const mutationOptions = {
585
+ mutationFn: async (localOptions) => {
586
+ const { data } = await (0, import_sdk.deleteCatalogById)({
587
+ ...options,
588
+ ...localOptions,
589
+ throwOnError: true
590
+ });
591
+ return data;
592
+ }
593
+ };
594
+ return mutationOptions;
595
+ };
596
+ const getCatalogByIdQueryKey = (options) => [createQueryKey("getCatalogById", options)];
597
+ const getCatalogByIdOptions = (options) => {
598
+ return (0, import_react_query.queryOptions)({
599
+ queryFn: async ({ queryKey, signal }) => {
600
+ const { data } = await (0, import_sdk.getCatalogById)({
601
+ ...options,
602
+ ...queryKey[0],
603
+ signal,
604
+ throwOnError: true
605
+ });
606
+ return data;
607
+ },
608
+ queryKey: getCatalogByIdQueryKey(options)
609
+ });
610
+ };
611
+ const updateCatalogMutation = (options) => {
612
+ const mutationOptions = {
613
+ mutationFn: async (localOptions) => {
614
+ const { data } = await (0, import_sdk.updateCatalog)({
615
+ ...options,
616
+ ...localOptions,
617
+ throwOnError: true
618
+ });
619
+ return data;
620
+ }
621
+ };
622
+ return mutationOptions;
623
+ };
624
+ const deleteReleasesMutation = (options) => {
625
+ const mutationOptions = {
626
+ mutationFn: async (localOptions) => {
627
+ const { data } = await (0, import_sdk.deleteReleases)({
628
+ ...options,
629
+ ...localOptions,
630
+ throwOnError: true
631
+ });
632
+ return data;
633
+ }
634
+ };
635
+ return mutationOptions;
636
+ };
637
+ const getReleasesQueryKey = (options) => [
638
+ createQueryKey("getReleases", options)
639
+ ];
640
+ const getReleasesOptions = (options) => {
641
+ return (0, import_react_query.queryOptions)({
642
+ queryFn: async ({ queryKey, signal }) => {
643
+ const { data } = await (0, import_sdk.getReleases)({
644
+ ...options,
645
+ ...queryKey[0],
646
+ signal,
647
+ throwOnError: true
648
+ });
649
+ return data;
650
+ },
651
+ queryKey: getReleasesQueryKey(options)
652
+ });
653
+ };
654
+ const publishReleaseQueryKey = (options) => [createQueryKey("publishRelease", options)];
655
+ const publishReleaseOptions = (options) => {
656
+ return (0, import_react_query.queryOptions)({
657
+ queryFn: async ({ queryKey, signal }) => {
658
+ const { data } = await (0, import_sdk.publishRelease)({
659
+ ...options,
660
+ ...queryKey[0],
661
+ signal,
662
+ throwOnError: true
663
+ });
664
+ return data;
665
+ },
666
+ queryKey: publishReleaseQueryKey(options)
667
+ });
668
+ };
669
+ const publishReleaseMutation = (options) => {
670
+ const mutationOptions = {
671
+ mutationFn: async (localOptions) => {
672
+ const { data } = await (0, import_sdk.publishRelease)({
673
+ ...options,
674
+ ...localOptions,
675
+ throwOnError: true
676
+ });
677
+ return data;
678
+ }
679
+ };
680
+ return mutationOptions;
681
+ };
682
+ const deleteReleaseByIdMutation = (options) => {
683
+ const mutationOptions = {
684
+ mutationFn: async (localOptions) => {
685
+ const { data } = await (0, import_sdk.deleteReleaseById)({
686
+ ...options,
687
+ ...localOptions,
688
+ throwOnError: true
689
+ });
690
+ return data;
691
+ }
692
+ };
693
+ return mutationOptions;
694
+ };
695
+ const getReleaseByIdQueryKey = (options) => [createQueryKey("getReleaseById", options)];
696
+ const getReleaseByIdOptions = (options) => {
697
+ return (0, import_react_query.queryOptions)({
698
+ queryFn: async ({ queryKey, signal }) => {
699
+ const { data } = await (0, import_sdk.getReleaseById)({
700
+ ...options,
701
+ ...queryKey[0],
702
+ signal,
703
+ throwOnError: true
704
+ });
705
+ return data;
706
+ },
707
+ queryKey: getReleaseByIdQueryKey(options)
708
+ });
709
+ };
710
+ const getRulesQueryKey = (options) => [
711
+ createQueryKey("getRules", options)
712
+ ];
713
+ const getRulesOptions = (options) => {
714
+ return (0, import_react_query.queryOptions)({
715
+ queryFn: async ({ queryKey, signal }) => {
716
+ const { data } = await (0, import_sdk.getRules)({
717
+ ...options,
718
+ ...queryKey[0],
719
+ signal,
720
+ throwOnError: true
721
+ });
722
+ return data;
723
+ },
724
+ queryKey: getRulesQueryKey(options)
725
+ });
726
+ };
727
+ const createRuleQueryKey = (options) => [
728
+ createQueryKey("createRule", options)
729
+ ];
730
+ const createRuleOptions = (options) => {
731
+ return (0, import_react_query.queryOptions)({
732
+ queryFn: async ({ queryKey, signal }) => {
733
+ const { data } = await (0, import_sdk.createRule)({
734
+ ...options,
735
+ ...queryKey[0],
736
+ signal,
737
+ throwOnError: true
738
+ });
739
+ return data;
740
+ },
741
+ queryKey: createRuleQueryKey(options)
742
+ });
743
+ };
744
+ const createRuleMutation = (options) => {
745
+ const mutationOptions = {
746
+ mutationFn: async (localOptions) => {
747
+ const { data } = await (0, import_sdk.createRule)({
748
+ ...options,
749
+ ...localOptions,
750
+ throwOnError: true
751
+ });
752
+ return data;
753
+ }
754
+ };
755
+ return mutationOptions;
756
+ };
757
+ const deleteRuleByIdMutation = (options) => {
758
+ const mutationOptions = {
759
+ mutationFn: async (localOptions) => {
760
+ const { data } = await (0, import_sdk.deleteRuleById)({
761
+ ...options,
762
+ ...localOptions,
763
+ throwOnError: true
764
+ });
765
+ return data;
766
+ }
767
+ };
768
+ return mutationOptions;
769
+ };
770
+ const getRuleByIdQueryKey = (options) => [
771
+ createQueryKey("getRuleById", options)
772
+ ];
773
+ const getRuleByIdOptions = (options) => {
774
+ return (0, import_react_query.queryOptions)({
775
+ queryFn: async ({ queryKey, signal }) => {
776
+ const { data } = await (0, import_sdk.getRuleById)({
777
+ ...options,
778
+ ...queryKey[0],
779
+ signal,
780
+ throwOnError: true
781
+ });
782
+ return data;
783
+ },
784
+ queryKey: getRuleByIdQueryKey(options)
785
+ });
786
+ };
787
+ const updateRuleMutation = (options) => {
788
+ const mutationOptions = {
789
+ mutationFn: async (localOptions) => {
790
+ const { data } = await (0, import_sdk.updateRule)({
791
+ ...options,
792
+ ...localOptions,
793
+ throwOnError: true
794
+ });
795
+ return data;
796
+ }
797
+ };
798
+ return mutationOptions;
799
+ };
800
+ const getAllHierarchiesQueryKey = (options) => [createQueryKey("getAllHierarchies", options)];
801
+ const getAllHierarchiesOptions = (options) => {
802
+ return (0, import_react_query.queryOptions)({
803
+ queryFn: async ({ queryKey, signal }) => {
804
+ const { data } = await (0, import_sdk.getAllHierarchies)({
805
+ ...options,
806
+ ...queryKey[0],
807
+ signal,
808
+ throwOnError: true
809
+ });
810
+ return data;
811
+ },
812
+ queryKey: getAllHierarchiesQueryKey(options)
813
+ });
814
+ };
815
+ const getHierarchyQueryKey = (options) => [
816
+ createQueryKey("getHierarchy", options)
817
+ ];
818
+ const getHierarchyOptions = (options) => {
819
+ return (0, import_react_query.queryOptions)({
820
+ queryFn: async ({ queryKey, signal }) => {
821
+ const { data } = await (0, import_sdk.getHierarchy)({
822
+ ...options,
823
+ ...queryKey[0],
824
+ signal,
825
+ throwOnError: true
826
+ });
827
+ return data;
828
+ },
829
+ queryKey: getHierarchyQueryKey(options)
830
+ });
831
+ };
832
+ const getHierarchyNodesQueryKey = (options) => [createQueryKey("getHierarchyNodes", options)];
833
+ const getHierarchyNodesOptions = (options) => {
834
+ return (0, import_react_query.queryOptions)({
835
+ queryFn: async ({ queryKey, signal }) => {
836
+ const { data } = await (0, import_sdk.getHierarchyNodes)({
837
+ ...options,
838
+ ...queryKey[0],
839
+ signal,
840
+ throwOnError: true
841
+ });
842
+ return data;
843
+ },
844
+ queryKey: getHierarchyNodesQueryKey(options)
845
+ });
846
+ };
847
+ const getHierarchyChildNodesQueryKey = (options) => [createQueryKey("getHierarchyChildNodes", options)];
848
+ const getHierarchyChildNodesOptions = (options) => {
849
+ return (0, import_react_query.queryOptions)({
850
+ queryFn: async ({ queryKey, signal }) => {
851
+ const { data } = await (0, import_sdk.getHierarchyChildNodes)({
852
+ ...options,
853
+ ...queryKey[0],
854
+ signal,
855
+ throwOnError: true
856
+ });
857
+ return data;
858
+ },
859
+ queryKey: getHierarchyChildNodesQueryKey(options)
860
+ });
861
+ };
862
+ const getAllNodesQueryKey = (options) => [
863
+ createQueryKey("getAllNodes", options)
864
+ ];
865
+ const getAllNodesOptions = (options) => {
866
+ return (0, import_react_query.queryOptions)({
867
+ queryFn: async ({ queryKey, signal }) => {
868
+ const { data } = await (0, import_sdk.getAllNodes)({
869
+ ...options,
870
+ ...queryKey[0],
871
+ signal,
872
+ throwOnError: true
873
+ });
874
+ return data;
875
+ },
876
+ queryKey: getAllNodesQueryKey(options)
877
+ });
878
+ };
879
+ const getNodeQueryKey = (options) => [
880
+ createQueryKey("getNode", options)
881
+ ];
882
+ const getNodeOptions = (options) => {
883
+ return (0, import_react_query.queryOptions)({
884
+ queryFn: async ({ queryKey, signal }) => {
885
+ const { data } = await (0, import_sdk.getNode)({
886
+ ...options,
887
+ ...queryKey[0],
888
+ signal,
889
+ throwOnError: true
890
+ });
891
+ return data;
892
+ },
893
+ queryKey: getNodeQueryKey(options)
894
+ });
895
+ };
896
+ const getChildNodesQueryKey = (options) => [
897
+ createQueryKey("getChildNodes", options)
898
+ ];
899
+ const getChildNodesOptions = (options) => {
900
+ return (0, import_react_query.queryOptions)({
901
+ queryFn: async ({ queryKey, signal }) => {
902
+ const { data } = await (0, import_sdk.getChildNodes)({
903
+ ...options,
904
+ ...queryKey[0],
905
+ signal,
906
+ throwOnError: true
907
+ });
908
+ return data;
909
+ },
910
+ queryKey: getChildNodesQueryKey(options)
911
+ });
912
+ };
913
+ const getAllProductsQueryKey = (options) => [createQueryKey("getAllProducts", options)];
914
+ const getAllProductsOptions = (options) => {
915
+ return (0, import_react_query.queryOptions)({
916
+ queryFn: async ({ queryKey, signal }) => {
917
+ const { data } = await (0, import_sdk.getAllProducts)({
918
+ ...options,
919
+ ...queryKey[0],
920
+ signal,
921
+ throwOnError: true
922
+ });
923
+ return data;
924
+ },
925
+ queryKey: getAllProductsQueryKey(options)
926
+ });
927
+ };
928
+ const getProductQueryKey = (options) => [
929
+ createQueryKey("getProduct", options)
930
+ ];
931
+ const getProductOptions = (options) => {
932
+ return (0, import_react_query.queryOptions)({
933
+ queryFn: async ({ queryKey, signal }) => {
934
+ const { data } = await (0, import_sdk.getProduct)({
935
+ ...options,
936
+ ...queryKey[0],
937
+ signal,
938
+ throwOnError: true
939
+ });
940
+ return data;
941
+ },
942
+ queryKey: getProductQueryKey(options)
943
+ });
944
+ };
945
+ const getComponentProductIdsQueryKey = (options) => [createQueryKey("getComponentProductIds", options)];
946
+ const getComponentProductIdsOptions = (options) => {
947
+ return (0, import_react_query.queryOptions)({
948
+ queryFn: async ({ queryKey, signal }) => {
949
+ const { data } = await (0, import_sdk.getComponentProductIds)({
950
+ ...options,
951
+ ...queryKey[0],
952
+ signal,
953
+ throwOnError: true
954
+ });
955
+ return data;
956
+ },
957
+ queryKey: getComponentProductIdsQueryKey(options)
958
+ });
959
+ };
960
+ const getChildProductsQueryKey = (options) => [createQueryKey("getChildProducts", options)];
961
+ const getChildProductsOptions = (options) => {
962
+ return (0, import_react_query.queryOptions)({
963
+ queryFn: async ({ queryKey, signal }) => {
964
+ const { data } = await (0, import_sdk.getChildProducts)({
965
+ ...options,
966
+ ...queryKey[0],
967
+ signal,
968
+ throwOnError: true
969
+ });
970
+ return data;
971
+ },
972
+ queryKey: getChildProductsQueryKey(options)
973
+ });
974
+ };
975
+ const getProductsForHierarchyQueryKey = (options) => [createQueryKey("getProductsForHierarchy", options)];
976
+ const getProductsForHierarchyOptions = (options) => {
977
+ return (0, import_react_query.queryOptions)({
978
+ queryFn: async ({ queryKey, signal }) => {
979
+ const { data } = await (0, import_sdk.getProductsForHierarchy)({
980
+ ...options,
981
+ ...queryKey[0],
982
+ signal,
983
+ throwOnError: true
984
+ });
985
+ return data;
986
+ },
987
+ queryKey: getProductsForHierarchyQueryKey(options)
988
+ });
989
+ };
990
+ const getProductsForNodeQueryKey = (options) => [createQueryKey("getProductsForNode", options)];
991
+ const getProductsForNodeOptions = (options) => {
992
+ return (0, import_react_query.queryOptions)({
993
+ queryFn: async ({ queryKey, signal }) => {
994
+ const { data } = await (0, import_sdk.getProductsForNode)({
995
+ ...options,
996
+ ...queryKey[0],
997
+ signal,
998
+ throwOnError: true
999
+ });
1000
+ return data;
1001
+ },
1002
+ queryKey: getProductsForNodeQueryKey(options)
1003
+ });
1004
+ };
1005
+ const getCartsQueryKey = (options) => [
1006
+ createQueryKey("getCarts", options)
1007
+ ];
1008
+ const getCartsOptions = (options) => {
1009
+ return (0, import_react_query.queryOptions)({
1010
+ queryFn: async ({ queryKey, signal }) => {
1011
+ const { data } = await (0, import_sdk.getCarts)({
1012
+ ...options,
1013
+ ...queryKey[0],
1014
+ signal,
1015
+ throwOnError: true
1016
+ });
1017
+ return data;
1018
+ },
1019
+ queryKey: getCartsQueryKey(options)
1020
+ });
1021
+ };
1022
+ const createACartQueryKey = (options) => [
1023
+ createQueryKey("createACart", options)
1024
+ ];
1025
+ const createACartOptions = (options) => {
1026
+ return (0, import_react_query.queryOptions)({
1027
+ queryFn: async ({ queryKey, signal }) => {
1028
+ const { data } = await (0, import_sdk.createACart)({
1029
+ ...options,
1030
+ ...queryKey[0],
1031
+ signal,
1032
+ throwOnError: true
1033
+ });
1034
+ return data;
1035
+ },
1036
+ queryKey: createACartQueryKey(options)
1037
+ });
1038
+ };
1039
+ const createACartMutation = (options) => {
1040
+ const mutationOptions = {
1041
+ mutationFn: async (localOptions) => {
1042
+ const { data } = await (0, import_sdk.createACart)({
1043
+ ...options,
1044
+ ...localOptions,
1045
+ throwOnError: true
1046
+ });
1047
+ return data;
1048
+ }
1049
+ };
1050
+ return mutationOptions;
1051
+ };
1052
+ const deleteACartMutation = (options) => {
1053
+ const mutationOptions = {
1054
+ mutationFn: async (localOptions) => {
1055
+ const { data } = await (0, import_sdk.deleteACart)({
1056
+ ...options,
1057
+ ...localOptions,
1058
+ throwOnError: true
1059
+ });
1060
+ return data;
1061
+ }
1062
+ };
1063
+ return mutationOptions;
1064
+ };
1065
+ const getCartQueryKey = (options) => [
1066
+ createQueryKey("getCart", options)
1067
+ ];
1068
+ const getCartOptions = (options) => {
1069
+ return (0, import_react_query.queryOptions)({
1070
+ queryFn: async ({ queryKey, signal }) => {
1071
+ const { data } = await (0, import_sdk.getCart)({
1072
+ ...options,
1073
+ ...queryKey[0],
1074
+ signal,
1075
+ throwOnError: true
1076
+ });
1077
+ return data;
1078
+ },
1079
+ queryKey: getCartQueryKey(options)
1080
+ });
1081
+ };
1082
+ const updateACartMutation = (options) => {
1083
+ const mutationOptions = {
1084
+ mutationFn: async (localOptions) => {
1085
+ const { data } = await (0, import_sdk.updateACart)({
1086
+ ...options,
1087
+ ...localOptions,
1088
+ throwOnError: true
1089
+ });
1090
+ return data;
1091
+ }
1092
+ };
1093
+ return mutationOptions;
1094
+ };
1095
+ const deleteAllCartItemsMutation = (options) => {
1096
+ const mutationOptions = {
1097
+ mutationFn: async (localOptions) => {
1098
+ const { data } = await (0, import_sdk.deleteAllCartItems)({
1099
+ ...options,
1100
+ ...localOptions,
1101
+ throwOnError: true
1102
+ });
1103
+ return data;
1104
+ }
1105
+ };
1106
+ return mutationOptions;
1107
+ };
1108
+ const getCartItemsQueryKey = (options) => [
1109
+ createQueryKey("getCartItems", options)
1110
+ ];
1111
+ const getCartItemsOptions = (options) => {
1112
+ return (0, import_react_query.queryOptions)({
1113
+ queryFn: async ({ queryKey, signal }) => {
1114
+ const { data } = await (0, import_sdk.getCartItems)({
1115
+ ...options,
1116
+ ...queryKey[0],
1117
+ signal,
1118
+ throwOnError: true
1119
+ });
1120
+ return data;
1121
+ },
1122
+ queryKey: getCartItemsQueryKey(options)
1123
+ });
1124
+ };
1125
+ const manageCartsQueryKey = (options) => [
1126
+ createQueryKey("manageCarts", options)
1127
+ ];
1128
+ const manageCartsOptions = (options) => {
1129
+ return (0, import_react_query.queryOptions)({
1130
+ queryFn: async ({ queryKey, signal }) => {
1131
+ const { data } = await (0, import_sdk.manageCarts)({
1132
+ ...options,
1133
+ ...queryKey[0],
1134
+ signal,
1135
+ throwOnError: true
1136
+ });
1137
+ return data;
1138
+ },
1139
+ queryKey: manageCartsQueryKey(options)
1140
+ });
1141
+ };
1142
+ const manageCartsMutation = (options) => {
1143
+ const mutationOptions = {
1144
+ mutationFn: async (localOptions) => {
1145
+ const { data } = await (0, import_sdk.manageCarts)({
1146
+ ...options,
1147
+ ...localOptions,
1148
+ throwOnError: true
1149
+ });
1150
+ return data;
1151
+ }
1152
+ };
1153
+ return mutationOptions;
1154
+ };
1155
+ const bulkUpdateItemsInCartMutation = (options) => {
1156
+ const mutationOptions = {
1157
+ mutationFn: async (localOptions) => {
1158
+ const { data } = await (0, import_sdk.bulkUpdateItemsInCart)({
1159
+ ...options,
1160
+ ...localOptions,
1161
+ throwOnError: true
1162
+ });
1163
+ return data;
1164
+ }
1165
+ };
1166
+ return mutationOptions;
1167
+ };
1168
+ const deleteACartItemMutation = (options) => {
1169
+ const mutationOptions = {
1170
+ mutationFn: async (localOptions) => {
1171
+ const { data } = await (0, import_sdk.deleteACartItem)({
1172
+ ...options,
1173
+ ...localOptions,
1174
+ throwOnError: true
1175
+ });
1176
+ return data;
1177
+ }
1178
+ };
1179
+ return mutationOptions;
1180
+ };
1181
+ const updateACartItemMutation = (options) => {
1182
+ const mutationOptions = {
1183
+ mutationFn: async (localOptions) => {
1184
+ const { data } = await (0, import_sdk.updateACartItem)({
1185
+ ...options,
1186
+ ...localOptions,
1187
+ throwOnError: true
1188
+ });
1189
+ return data;
1190
+ }
1191
+ };
1192
+ return mutationOptions;
1193
+ };
1194
+ const deleteAccountCartAssociationMutation = (options) => {
1195
+ const mutationOptions = {
1196
+ mutationFn: async (localOptions) => {
1197
+ const { data } = await (0, import_sdk.deleteAccountCartAssociation)({
1198
+ ...options,
1199
+ ...localOptions,
1200
+ throwOnError: true
1201
+ });
1202
+ return data;
1203
+ }
1204
+ };
1205
+ return mutationOptions;
1206
+ };
1207
+ const createAccountCartAssociationQueryKey = (options) => [createQueryKey("createAccountCartAssociation", options)];
1208
+ const createAccountCartAssociationOptions = (options) => {
1209
+ return (0, import_react_query.queryOptions)({
1210
+ queryFn: async ({ queryKey, signal }) => {
1211
+ const { data } = await (0, import_sdk.createAccountCartAssociation)({
1212
+ ...options,
1213
+ ...queryKey[0],
1214
+ signal,
1215
+ throwOnError: true
1216
+ });
1217
+ return data;
1218
+ },
1219
+ queryKey: createAccountCartAssociationQueryKey(options)
1220
+ });
1221
+ };
1222
+ const createAccountCartAssociationMutation = (options) => {
1223
+ const mutationOptions = {
1224
+ mutationFn: async (localOptions) => {
1225
+ const { data } = await (0, import_sdk.createAccountCartAssociation)({
1226
+ ...options,
1227
+ ...localOptions,
1228
+ throwOnError: true
1229
+ });
1230
+ return data;
1231
+ }
1232
+ };
1233
+ return mutationOptions;
1234
+ };
1235
+ const deleteCustomerCartAssociationMutation = (options) => {
1236
+ const mutationOptions = {
1237
+ mutationFn: async (localOptions) => {
1238
+ const { data } = await (0, import_sdk.deleteCustomerCartAssociation)({
1239
+ ...options,
1240
+ ...localOptions,
1241
+ throwOnError: true
1242
+ });
1243
+ return data;
1244
+ }
1245
+ };
1246
+ return mutationOptions;
1247
+ };
1248
+ const createCustomerCartAssociationQueryKey = (options) => [createQueryKey("createCustomerCartAssociation", options)];
1249
+ const createCustomerCartAssociationOptions = (options) => {
1250
+ return (0, import_react_query.queryOptions)({
1251
+ queryFn: async ({ queryKey, signal }) => {
1252
+ const { data } = await (0, import_sdk.createCustomerCartAssociation)({
1253
+ ...options,
1254
+ ...queryKey[0],
1255
+ signal,
1256
+ throwOnError: true
1257
+ });
1258
+ return data;
1259
+ },
1260
+ queryKey: createCustomerCartAssociationQueryKey(options)
1261
+ });
1262
+ };
1263
+ const createCustomerCartAssociationMutation = (options) => {
1264
+ const mutationOptions = {
1265
+ mutationFn: async (localOptions) => {
1266
+ const { data } = await (0, import_sdk.createCustomerCartAssociation)({
1267
+ ...options,
1268
+ ...localOptions,
1269
+ throwOnError: true
1270
+ });
1271
+ return data;
1272
+ }
1273
+ };
1274
+ return mutationOptions;
1275
+ };
1276
+ const deleteAPromotionViaPromotionCodeMutation = (options) => {
1277
+ const mutationOptions = {
1278
+ mutationFn: async (localOptions) => {
1279
+ const { data } = await (0, import_sdk.deleteAPromotionViaPromotionCode)({
1280
+ ...options,
1281
+ ...localOptions,
1282
+ throwOnError: true
1283
+ });
1284
+ return data;
1285
+ }
1286
+ };
1287
+ return mutationOptions;
1288
+ };
1289
+ const addTaxItemToCartQueryKey = (options) => [createQueryKey("addTaxItemToCart", options)];
1290
+ const addTaxItemToCartOptions = (options) => {
1291
+ return (0, import_react_query.queryOptions)({
1292
+ queryFn: async ({ queryKey, signal }) => {
1293
+ const { data } = await (0, import_sdk.addTaxItemToCart)({
1294
+ ...options,
1295
+ ...queryKey[0],
1296
+ signal,
1297
+ throwOnError: true
1298
+ });
1299
+ return data;
1300
+ },
1301
+ queryKey: addTaxItemToCartQueryKey(options)
1302
+ });
1303
+ };
1304
+ const addTaxItemToCartMutation = (options) => {
1305
+ const mutationOptions = {
1306
+ mutationFn: async (localOptions) => {
1307
+ const { data } = await (0, import_sdk.addTaxItemToCart)({
1308
+ ...options,
1309
+ ...localOptions,
1310
+ throwOnError: true
1311
+ });
1312
+ return data;
1313
+ }
1314
+ };
1315
+ return mutationOptions;
1316
+ };
1317
+ const bulkDeleteTaxItemsFromCartMutation = (options) => {
1318
+ const mutationOptions = {
1319
+ mutationFn: async (localOptions) => {
1320
+ const { data } = await (0, import_sdk.bulkDeleteTaxItemsFromCart)({
1321
+ ...options,
1322
+ ...localOptions,
1323
+ throwOnError: true
1324
+ });
1325
+ return data;
1326
+ }
1327
+ };
1328
+ return mutationOptions;
1329
+ };
1330
+ const bulkAddTaxItemsToCartQueryKey = (options) => [createQueryKey("bulkAddTaxItemsToCart", options)];
1331
+ const bulkAddTaxItemsToCartOptions = (options) => {
1332
+ return (0, import_react_query.queryOptions)({
1333
+ queryFn: async ({ queryKey, signal }) => {
1334
+ const { data } = await (0, import_sdk.bulkAddTaxItemsToCart)({
1335
+ ...options,
1336
+ ...queryKey[0],
1337
+ signal,
1338
+ throwOnError: true
1339
+ });
1340
+ return data;
1341
+ },
1342
+ queryKey: bulkAddTaxItemsToCartQueryKey(options)
1343
+ });
1344
+ };
1345
+ const bulkAddTaxItemsToCartMutation = (options) => {
1346
+ const mutationOptions = {
1347
+ mutationFn: async (localOptions) => {
1348
+ const { data } = await (0, import_sdk.bulkAddTaxItemsToCart)({
1349
+ ...options,
1350
+ ...localOptions,
1351
+ throwOnError: true
1352
+ });
1353
+ return data;
1354
+ }
1355
+ };
1356
+ return mutationOptions;
1357
+ };
1358
+ const deleteATaxItemMutation = (options) => {
1359
+ const mutationOptions = {
1360
+ mutationFn: async (localOptions) => {
1361
+ const { data } = await (0, import_sdk.deleteATaxItem)({
1362
+ ...options,
1363
+ ...localOptions,
1364
+ throwOnError: true
1365
+ });
1366
+ return data;
1367
+ }
1368
+ };
1369
+ return mutationOptions;
1370
+ };
1371
+ const updateATaxItemMutation = (options) => {
1372
+ const mutationOptions = {
1373
+ mutationFn: async (localOptions) => {
1374
+ const { data } = await (0, import_sdk.updateATaxItem)({
1375
+ ...options,
1376
+ ...localOptions,
1377
+ throwOnError: true
1378
+ });
1379
+ return data;
1380
+ }
1381
+ };
1382
+ return mutationOptions;
1383
+ };
1384
+ const bulkDeleteCustomDiscountsFromCartMutation = (options) => {
1385
+ const mutationOptions = {
1386
+ mutationFn: async (localOptions) => {
1387
+ const { data } = await (0, import_sdk.bulkDeleteCustomDiscountsFromCart)({
1388
+ ...options,
1389
+ ...localOptions,
1390
+ throwOnError: true
1391
+ });
1392
+ return data;
1393
+ }
1394
+ };
1395
+ return mutationOptions;
1396
+ };
1397
+ const bulkAddCustomDiscountsToCartQueryKey = (options) => [createQueryKey("bulkAddCustomDiscountsToCart", options)];
1398
+ const bulkAddCustomDiscountsToCartOptions = (options) => {
1399
+ return (0, import_react_query.queryOptions)({
1400
+ queryFn: async ({ queryKey, signal }) => {
1401
+ const { data } = await (0, import_sdk.bulkAddCustomDiscountsToCart)({
1402
+ ...options,
1403
+ ...queryKey[0],
1404
+ signal,
1405
+ throwOnError: true
1406
+ });
1407
+ return data;
1408
+ },
1409
+ queryKey: bulkAddCustomDiscountsToCartQueryKey(options)
1410
+ });
1411
+ };
1412
+ const bulkAddCustomDiscountsToCartMutation = (options) => {
1413
+ const mutationOptions = {
1414
+ mutationFn: async (localOptions) => {
1415
+ const { data } = await (0, import_sdk.bulkAddCustomDiscountsToCart)({
1416
+ ...options,
1417
+ ...localOptions,
1418
+ throwOnError: true
1419
+ });
1420
+ return data;
1421
+ }
1422
+ };
1423
+ return mutationOptions;
1424
+ };
1425
+ const deleteCustomDiscountFromCartMutation = (options) => {
1426
+ const mutationOptions = {
1427
+ mutationFn: async (localOptions) => {
1428
+ const { data } = await (0, import_sdk.deleteCustomDiscountFromCart)({
1429
+ ...options,
1430
+ ...localOptions,
1431
+ throwOnError: true
1432
+ });
1433
+ return data;
1434
+ }
1435
+ };
1436
+ return mutationOptions;
1437
+ };
1438
+ const updateCustomDiscountForCartMutation = (options) => {
1439
+ const mutationOptions = {
1440
+ mutationFn: async (localOptions) => {
1441
+ const { data } = await (0, import_sdk.updateCustomDiscountForCart)({
1442
+ ...options,
1443
+ ...localOptions,
1444
+ throwOnError: true
1445
+ });
1446
+ return data;
1447
+ }
1448
+ };
1449
+ return mutationOptions;
1450
+ };
1451
+ const addCustomDiscountToCartItemQueryKey = (options) => [createQueryKey("addCustomDiscountToCartItem", options)];
1452
+ const addCustomDiscountToCartItemOptions = (options) => {
1453
+ return (0, import_react_query.queryOptions)({
1454
+ queryFn: async ({ queryKey, signal }) => {
1455
+ const { data } = await (0, import_sdk.addCustomDiscountToCartItem)({
1456
+ ...options,
1457
+ ...queryKey[0],
1458
+ signal,
1459
+ throwOnError: true
1460
+ });
1461
+ return data;
1462
+ },
1463
+ queryKey: addCustomDiscountToCartItemQueryKey(options)
1464
+ });
1465
+ };
1466
+ const addCustomDiscountToCartItemMutation = (options) => {
1467
+ const mutationOptions = {
1468
+ mutationFn: async (localOptions) => {
1469
+ const { data } = await (0, import_sdk.addCustomDiscountToCartItem)({
1470
+ ...options,
1471
+ ...localOptions,
1472
+ throwOnError: true
1473
+ });
1474
+ return data;
1475
+ }
1476
+ };
1477
+ return mutationOptions;
1478
+ };
1479
+ const deleteCustomDiscountFromCartItemMutation = (options) => {
1480
+ const mutationOptions = {
1481
+ mutationFn: async (localOptions) => {
1482
+ const { data } = await (0, import_sdk.deleteCustomDiscountFromCartItem)({
1483
+ ...options,
1484
+ ...localOptions,
1485
+ throwOnError: true
1486
+ });
1487
+ return data;
1488
+ }
1489
+ };
1490
+ return mutationOptions;
1491
+ };
1492
+ const updateCustomDiscountForCartItemMutation = (options) => {
1493
+ const mutationOptions = {
1494
+ mutationFn: async (localOptions) => {
1495
+ const { data } = await (0, import_sdk.updateCustomDiscountForCartItem)({
1496
+ ...options,
1497
+ ...localOptions,
1498
+ throwOnError: true
1499
+ });
1500
+ return data;
1501
+ }
1502
+ };
1503
+ return mutationOptions;
1504
+ };
1505
+ const createCartPaymentIntentQueryKey = (options) => [createQueryKey("createCartPaymentIntent", options)];
1506
+ const createCartPaymentIntentOptions = (options) => {
1507
+ return (0, import_react_query.queryOptions)({
1508
+ queryFn: async ({ queryKey, signal }) => {
1509
+ const { data } = await (0, import_sdk.createCartPaymentIntent)({
1510
+ ...options,
1511
+ ...queryKey[0],
1512
+ signal,
1513
+ throwOnError: true
1514
+ });
1515
+ return data;
1516
+ },
1517
+ queryKey: createCartPaymentIntentQueryKey(options)
1518
+ });
1519
+ };
1520
+ const createCartPaymentIntentMutation = (options) => {
1521
+ const mutationOptions = {
1522
+ mutationFn: async (localOptions) => {
1523
+ const { data } = await (0, import_sdk.createCartPaymentIntent)({
1524
+ ...options,
1525
+ ...localOptions,
1526
+ throwOnError: true
1527
+ });
1528
+ return data;
1529
+ }
1530
+ };
1531
+ return mutationOptions;
1532
+ };
1533
+ const checkoutApiQueryKey = (options) => [
1534
+ createQueryKey("checkoutApi", options)
1535
+ ];
1536
+ const checkoutApiOptions = (options) => {
1537
+ return (0, import_react_query.queryOptions)({
1538
+ queryFn: async ({ queryKey, signal }) => {
1539
+ const { data } = await (0, import_sdk.checkoutApi)({
1540
+ ...options,
1541
+ ...queryKey[0],
1542
+ signal,
1543
+ throwOnError: true
1544
+ });
1545
+ return data;
1546
+ },
1547
+ queryKey: checkoutApiQueryKey(options)
1548
+ });
1549
+ };
1550
+ const checkoutApiMutation = (options) => {
1551
+ const mutationOptions = {
1552
+ mutationFn: async (localOptions) => {
1553
+ const { data } = await (0, import_sdk.checkoutApi)({
1554
+ ...options,
1555
+ ...localOptions,
1556
+ throwOnError: true
1557
+ });
1558
+ return data;
1559
+ }
1560
+ };
1561
+ return mutationOptions;
1562
+ };
1563
+ const getCustomerOrdersQueryKey = (options) => [createQueryKey("getCustomerOrders", options)];
1564
+ const getCustomerOrdersOptions = (options) => {
1565
+ return (0, import_react_query.queryOptions)({
1566
+ queryFn: async ({ queryKey, signal }) => {
1567
+ const { data } = await (0, import_sdk.getCustomerOrders)({
1568
+ ...options,
1569
+ ...queryKey[0],
1570
+ signal,
1571
+ throwOnError: true
1572
+ });
1573
+ return data;
1574
+ },
1575
+ queryKey: getCustomerOrdersQueryKey(options)
1576
+ });
1577
+ };
1578
+ const getAnOrderQueryKey = (options) => [
1579
+ createQueryKey("getAnOrder", options)
1580
+ ];
1581
+ const getAnOrderOptions = (options) => {
1582
+ return (0, import_react_query.queryOptions)({
1583
+ queryFn: async ({ queryKey, signal }) => {
1584
+ const { data } = await (0, import_sdk.getAnOrder)({
1585
+ ...options,
1586
+ ...queryKey[0],
1587
+ signal,
1588
+ throwOnError: true
1589
+ });
1590
+ return data;
1591
+ },
1592
+ queryKey: getAnOrderQueryKey(options)
1593
+ });
1594
+ };
1595
+ const updateAnOrderMutation = (options) => {
1596
+ const mutationOptions = {
1597
+ mutationFn: async (localOptions) => {
1598
+ const { data } = await (0, import_sdk.updateAnOrder)({
1599
+ ...options,
1600
+ ...localOptions,
1601
+ throwOnError: true
1602
+ });
1603
+ return data;
1604
+ }
1605
+ };
1606
+ return mutationOptions;
1607
+ };
1608
+ const getOrderItemsQueryKey = (options) => [
1609
+ createQueryKey("getOrderItems", options)
1610
+ ];
1611
+ const getOrderItemsOptions = (options) => {
1612
+ return (0, import_react_query.queryOptions)({
1613
+ queryFn: async ({ queryKey, signal }) => {
1614
+ const { data } = await (0, import_sdk.getOrderItems)({
1615
+ ...options,
1616
+ ...queryKey[0],
1617
+ signal,
1618
+ throwOnError: true
1619
+ });
1620
+ return data;
1621
+ },
1622
+ queryKey: getOrderItemsQueryKey(options)
1623
+ });
1624
+ };
1625
+ const anonymizeOrdersQueryKey = (options) => [createQueryKey("anonymizeOrders", options)];
1626
+ const anonymizeOrdersOptions = (options) => {
1627
+ return (0, import_react_query.queryOptions)({
1628
+ queryFn: async ({ queryKey, signal }) => {
1629
+ const { data } = await (0, import_sdk.anonymizeOrders)({
1630
+ ...options,
1631
+ ...queryKey[0],
1632
+ signal,
1633
+ throwOnError: true
1634
+ });
1635
+ return data;
1636
+ },
1637
+ queryKey: anonymizeOrdersQueryKey(options)
1638
+ });
1639
+ };
1640
+ const anonymizeOrdersMutation = (options) => {
1641
+ const mutationOptions = {
1642
+ mutationFn: async (localOptions) => {
1643
+ const { data } = await (0, import_sdk.anonymizeOrders)({
1644
+ ...options,
1645
+ ...localOptions,
1646
+ throwOnError: true
1647
+ });
1648
+ return data;
1649
+ }
1650
+ };
1651
+ return mutationOptions;
1652
+ };
1653
+ const paymentSetupQueryKey = (options) => [
1654
+ createQueryKey("paymentSetup", options)
1655
+ ];
1656
+ const paymentSetupOptions = (options) => {
1657
+ return (0, import_react_query.queryOptions)({
1658
+ queryFn: async ({ queryKey, signal }) => {
1659
+ const { data } = await (0, import_sdk.paymentSetup)({
1660
+ ...options,
1661
+ ...queryKey[0],
1662
+ signal,
1663
+ throwOnError: true
1664
+ });
1665
+ return data;
1666
+ },
1667
+ queryKey: paymentSetupQueryKey(options)
1668
+ });
1669
+ };
1670
+ const paymentSetupMutation = (options) => {
1671
+ const mutationOptions = {
1672
+ mutationFn: async (localOptions) => {
1673
+ const { data } = await (0, import_sdk.paymentSetup)({
1674
+ ...options,
1675
+ ...localOptions,
1676
+ throwOnError: true
1677
+ });
1678
+ return data;
1679
+ }
1680
+ };
1681
+ return mutationOptions;
1682
+ };
1683
+ const confirmPaymentQueryKey = (options) => [createQueryKey("confirmPayment", options)];
1684
+ const confirmPaymentOptions = (options) => {
1685
+ return (0, import_react_query.queryOptions)({
1686
+ queryFn: async ({ queryKey, signal }) => {
1687
+ const { data } = await (0, import_sdk.confirmPayment)({
1688
+ ...options,
1689
+ ...queryKey[0],
1690
+ signal,
1691
+ throwOnError: true
1692
+ });
1693
+ return data;
1694
+ },
1695
+ queryKey: confirmPaymentQueryKey(options)
1696
+ });
1697
+ };
1698
+ const confirmPaymentMutation = (options) => {
1699
+ const mutationOptions = {
1700
+ mutationFn: async (localOptions) => {
1701
+ const { data } = await (0, import_sdk.confirmPayment)({
1702
+ ...options,
1703
+ ...localOptions,
1704
+ throwOnError: true
1705
+ });
1706
+ return data;
1707
+ }
1708
+ };
1709
+ return mutationOptions;
1710
+ };
1711
+ const captureATransactionQueryKey = (options) => [createQueryKey("captureATransaction", options)];
1712
+ const captureATransactionOptions = (options) => {
1713
+ return (0, import_react_query.queryOptions)({
1714
+ queryFn: async ({ queryKey, signal }) => {
1715
+ const { data } = await (0, import_sdk.captureATransaction)({
1716
+ ...options,
1717
+ ...queryKey[0],
1718
+ signal,
1719
+ throwOnError: true
1720
+ });
1721
+ return data;
1722
+ },
1723
+ queryKey: captureATransactionQueryKey(options)
1724
+ });
1725
+ };
1726
+ const captureATransactionMutation = (options) => {
1727
+ const mutationOptions = {
1728
+ mutationFn: async (localOptions) => {
1729
+ const { data } = await (0, import_sdk.captureATransaction)({
1730
+ ...options,
1731
+ ...localOptions,
1732
+ throwOnError: true
1733
+ });
1734
+ return data;
1735
+ }
1736
+ };
1737
+ return mutationOptions;
1738
+ };
1739
+ const refundATransactionQueryKey = (options) => [createQueryKey("refundATransaction", options)];
1740
+ const refundATransactionOptions = (options) => {
1741
+ return (0, import_react_query.queryOptions)({
1742
+ queryFn: async ({ queryKey, signal }) => {
1743
+ const { data } = await (0, import_sdk.refundATransaction)({
1744
+ ...options,
1745
+ ...queryKey[0],
1746
+ signal,
1747
+ throwOnError: true
1748
+ });
1749
+ return data;
1750
+ },
1751
+ queryKey: refundATransactionQueryKey(options)
1752
+ });
1753
+ };
1754
+ const refundATransactionMutation = (options) => {
1755
+ const mutationOptions = {
1756
+ mutationFn: async (localOptions) => {
1757
+ const { data } = await (0, import_sdk.refundATransaction)({
1758
+ ...options,
1759
+ ...localOptions,
1760
+ throwOnError: true
1761
+ });
1762
+ return data;
1763
+ }
1764
+ };
1765
+ return mutationOptions;
1766
+ };
1767
+ const getOrderTransactionsQueryKey = (options) => [createQueryKey("getOrderTransactions", options)];
1768
+ const getOrderTransactionsOptions = (options) => {
1769
+ return (0, import_react_query.queryOptions)({
1770
+ queryFn: async ({ queryKey, signal }) => {
1771
+ const { data } = await (0, import_sdk.getOrderTransactions)({
1772
+ ...options,
1773
+ ...queryKey[0],
1774
+ signal,
1775
+ throwOnError: true
1776
+ });
1777
+ return data;
1778
+ },
1779
+ queryKey: getOrderTransactionsQueryKey(options)
1780
+ });
1781
+ };
1782
+ const getATransactionQueryKey = (options) => [createQueryKey("getATransaction", options)];
1783
+ const getATransactionOptions = (options) => {
1784
+ return (0, import_react_query.queryOptions)({
1785
+ queryFn: async ({ queryKey, signal }) => {
1786
+ const { data } = await (0, import_sdk.getATransaction)({
1787
+ ...options,
1788
+ ...queryKey[0],
1789
+ signal,
1790
+ throwOnError: true
1791
+ });
1792
+ return data;
1793
+ },
1794
+ queryKey: getATransactionQueryKey(options)
1795
+ });
1796
+ };
1797
+ const cancelATransactionQueryKey = (options) => [createQueryKey("cancelATransaction", options)];
1798
+ const cancelATransactionOptions = (options) => {
1799
+ return (0, import_react_query.queryOptions)({
1800
+ queryFn: async ({ queryKey, signal }) => {
1801
+ const { data } = await (0, import_sdk.cancelATransaction)({
1802
+ ...options,
1803
+ ...queryKey[0],
1804
+ signal,
1805
+ throwOnError: true
1806
+ });
1807
+ return data;
1808
+ },
1809
+ queryKey: cancelATransactionQueryKey(options)
1810
+ });
1811
+ };
1812
+ const cancelATransactionMutation = (options) => {
1813
+ const mutationOptions = {
1814
+ mutationFn: async (localOptions) => {
1815
+ const { data } = await (0, import_sdk.cancelATransaction)({
1816
+ ...options,
1817
+ ...localOptions,
1818
+ throwOnError: true
1819
+ });
1820
+ return data;
1821
+ }
1822
+ };
1823
+ return mutationOptions;
1824
+ };
1825
+ const getSubscriptionProductQueryKey = (options) => [createQueryKey("getSubscriptionProduct", options)];
1826
+ const getSubscriptionProductOptions = (options) => {
1827
+ return (0, import_react_query.queryOptions)({
1828
+ queryFn: async ({ queryKey, signal }) => {
1829
+ const { data } = await (0, import_sdk.getSubscriptionProduct)({
1830
+ ...options,
1831
+ ...queryKey[0],
1832
+ signal,
1833
+ throwOnError: true
1834
+ });
1835
+ return data;
1836
+ },
1837
+ queryKey: getSubscriptionProductQueryKey(options)
1838
+ });
1839
+ };
1840
+ const getPlanQueryKey = (options) => [
1841
+ createQueryKey("getPlan", options)
1842
+ ];
1843
+ const getPlanOptions = (options) => {
1844
+ return (0, import_react_query.queryOptions)({
1845
+ queryFn: async ({ queryKey, signal }) => {
1846
+ const { data } = await (0, import_sdk.getPlan)({
1847
+ ...options,
1848
+ ...queryKey[0],
1849
+ signal,
1850
+ throwOnError: true
1851
+ });
1852
+ return data;
1853
+ },
1854
+ queryKey: getPlanQueryKey(options)
1855
+ });
1856
+ };
1857
+ const listOfferingsQueryKey = (options) => [
1858
+ createQueryKey("listOfferings", options)
1859
+ ];
1860
+ const listOfferingsOptions = (options) => {
1861
+ return (0, import_react_query.queryOptions)({
1862
+ queryFn: async ({ queryKey, signal }) => {
1863
+ const { data } = await (0, import_sdk.listOfferings)({
1864
+ ...options,
1865
+ ...queryKey[0],
1866
+ signal,
1867
+ throwOnError: true
1868
+ });
1869
+ return data;
1870
+ },
1871
+ queryKey: listOfferingsQueryKey(options)
1872
+ });
1873
+ };
1874
+ const getOfferingQueryKey = (options) => [
1875
+ createQueryKey("getOffering", options)
1876
+ ];
1877
+ const getOfferingOptions = (options) => {
1878
+ return (0, import_react_query.queryOptions)({
1879
+ queryFn: async ({ queryKey, signal }) => {
1880
+ const { data } = await (0, import_sdk.getOffering)({
1881
+ ...options,
1882
+ ...queryKey[0],
1883
+ signal,
1884
+ throwOnError: true
1885
+ });
1886
+ return data;
1887
+ },
1888
+ queryKey: getOfferingQueryKey(options)
1889
+ });
1890
+ };
1891
+ const listOfferingPlansQueryKey = (options) => [createQueryKey("listOfferingPlans", options)];
1892
+ const listOfferingPlansOptions = (options) => {
1893
+ return (0, import_react_query.queryOptions)({
1894
+ queryFn: async ({ queryKey, signal }) => {
1895
+ const { data } = await (0, import_sdk.listOfferingPlans)({
1896
+ ...options,
1897
+ ...queryKey[0],
1898
+ signal,
1899
+ throwOnError: true
1900
+ });
1901
+ return data;
1902
+ },
1903
+ queryKey: listOfferingPlansQueryKey(options)
1904
+ });
1905
+ };
1906
+ const listOfferingFeaturesQueryKey = (options) => [createQueryKey("listOfferingFeatures", options)];
1907
+ const listOfferingFeaturesOptions = (options) => {
1908
+ return (0, import_react_query.queryOptions)({
1909
+ queryFn: async ({ queryKey, signal }) => {
1910
+ const { data } = await (0, import_sdk.listOfferingFeatures)({
1911
+ ...options,
1912
+ ...queryKey[0],
1913
+ signal,
1914
+ throwOnError: true
1915
+ });
1916
+ return data;
1917
+ },
1918
+ queryKey: listOfferingFeaturesQueryKey(options)
1919
+ });
1920
+ };
1921
+ const listOfferingProductsQueryKey = (options) => [createQueryKey("listOfferingProducts", options)];
1922
+ const listOfferingProductsOptions = (options) => {
1923
+ return (0, import_react_query.queryOptions)({
1924
+ queryFn: async ({ queryKey, signal }) => {
1925
+ const { data } = await (0, import_sdk.listOfferingProducts)({
1926
+ ...options,
1927
+ ...queryKey[0],
1928
+ signal,
1929
+ throwOnError: true
1930
+ });
1931
+ return data;
1932
+ },
1933
+ queryKey: listOfferingProductsQueryKey(options)
1934
+ });
1935
+ };
1936
+ const listSubscriptionsQueryKey = (options) => [createQueryKey("listSubscriptions", options)];
1937
+ const listSubscriptionsOptions = (options) => {
1938
+ return (0, import_react_query.queryOptions)({
1939
+ queryFn: async ({ queryKey, signal }) => {
1940
+ const { data } = await (0, import_sdk.listSubscriptions)({
1941
+ ...options,
1942
+ ...queryKey[0],
1943
+ signal,
1944
+ throwOnError: true
1945
+ });
1946
+ return data;
1947
+ },
1948
+ queryKey: listSubscriptionsQueryKey(options)
1949
+ });
1950
+ };
1951
+ const getSubscriptionQueryKey = (options) => [createQueryKey("getSubscription", options)];
1952
+ const getSubscriptionOptions = (options) => {
1953
+ return (0, import_react_query.queryOptions)({
1954
+ queryFn: async ({ queryKey, signal }) => {
1955
+ const { data } = await (0, import_sdk.getSubscription)({
1956
+ ...options,
1957
+ ...queryKey[0],
1958
+ signal,
1959
+ throwOnError: true
1960
+ });
1961
+ return data;
1962
+ },
1963
+ queryKey: getSubscriptionQueryKey(options)
1964
+ });
1965
+ };
1966
+ const listSubscriptionProductsQueryKey = (options) => [createQueryKey("listSubscriptionProducts", options)];
1967
+ const listSubscriptionProductsOptions = (options) => {
1968
+ return (0, import_react_query.queryOptions)({
1969
+ queryFn: async ({ queryKey, signal }) => {
1970
+ const { data } = await (0, import_sdk.listSubscriptionProducts)({
1971
+ ...options,
1972
+ ...queryKey[0],
1973
+ signal,
1974
+ throwOnError: true
1975
+ });
1976
+ return data;
1977
+ },
1978
+ queryKey: listSubscriptionProductsQueryKey(options)
1979
+ });
1980
+ };
1981
+ const listSubscriptionPlansQueryKey = (options) => [createQueryKey("listSubscriptionPlans", options)];
1982
+ const listSubscriptionPlansOptions = (options) => {
1983
+ return (0, import_react_query.queryOptions)({
1984
+ queryFn: async ({ queryKey, signal }) => {
1985
+ const { data } = await (0, import_sdk.listSubscriptionPlans)({
1986
+ ...options,
1987
+ ...queryKey[0],
1988
+ signal,
1989
+ throwOnError: true
1990
+ });
1991
+ return data;
1992
+ },
1993
+ queryKey: listSubscriptionPlansQueryKey(options)
1994
+ });
1995
+ };
1996
+ const listSubscriptionStatesQueryKey = (options) => [createQueryKey("listSubscriptionStates", options)];
1997
+ const listSubscriptionStatesOptions = (options) => {
1998
+ return (0, import_react_query.queryOptions)({
1999
+ queryFn: async ({ queryKey, signal }) => {
2000
+ const { data } = await (0, import_sdk.listSubscriptionStates)({
2001
+ ...options,
2002
+ ...queryKey[0],
2003
+ signal,
2004
+ throwOnError: true
2005
+ });
2006
+ return data;
2007
+ },
2008
+ queryKey: listSubscriptionStatesQueryKey(options)
2009
+ });
2010
+ };
2011
+ const getSubscriptionStateQueryKey = (options) => [createQueryKey("getSubscriptionState", options)];
2012
+ const getSubscriptionStateOptions = (options) => {
2013
+ return (0, import_react_query.queryOptions)({
2014
+ queryFn: async ({ queryKey, signal }) => {
2015
+ const { data } = await (0, import_sdk.getSubscriptionState)({
2016
+ ...options,
2017
+ ...queryKey[0],
2018
+ signal,
2019
+ throwOnError: true
2020
+ });
2021
+ return data;
2022
+ },
2023
+ queryKey: getSubscriptionStateQueryKey(options)
2024
+ });
2025
+ };
2026
+ const listSubscriptionInvoicesQueryKey = (options) => [createQueryKey("listSubscriptionInvoices", options)];
2027
+ const listSubscriptionInvoicesOptions = (options) => {
2028
+ return (0, import_react_query.queryOptions)({
2029
+ queryFn: async ({ queryKey, signal }) => {
2030
+ const { data } = await (0, import_sdk.listSubscriptionInvoices)({
2031
+ ...options,
2032
+ ...queryKey[0],
2033
+ signal,
2034
+ throwOnError: true
2035
+ });
2036
+ return data;
2037
+ },
2038
+ queryKey: listSubscriptionInvoicesQueryKey(options)
2039
+ });
2040
+ };
2041
+ const listSubscriptionInvoicePaymentsQueryKey = (options) => [createQueryKey("listSubscriptionInvoicePayments", options)];
2042
+ const listSubscriptionInvoicePaymentsOptions = (options) => {
2043
+ return (0, import_react_query.queryOptions)({
2044
+ queryFn: async ({ queryKey, signal }) => {
2045
+ const { data } = await (0, import_sdk.listSubscriptionInvoicePayments)({
2046
+ ...options,
2047
+ ...queryKey[0],
2048
+ signal,
2049
+ throwOnError: true
2050
+ });
2051
+ return data;
2052
+ },
2053
+ queryKey: listSubscriptionInvoicePaymentsQueryKey(options)
2054
+ });
2055
+ };
2056
+ const getSubscriptionInvoicePaymentQueryKey = (options) => [createQueryKey("getSubscriptionInvoicePayment", options)];
2057
+ const getSubscriptionInvoicePaymentOptions = (options) => {
2058
+ return (0, import_react_query.queryOptions)({
2059
+ queryFn: async ({ queryKey, signal }) => {
2060
+ const { data } = await (0, import_sdk.getSubscriptionInvoicePayment)({
2061
+ ...options,
2062
+ ...queryKey[0],
2063
+ signal,
2064
+ throwOnError: true
2065
+ });
2066
+ return data;
2067
+ },
2068
+ queryKey: getSubscriptionInvoicePaymentQueryKey(options)
2069
+ });
2070
+ };
2071
+ const getSubscriptionInvoiceQueryKey = (options) => [createQueryKey("getSubscriptionInvoice", options)];
2072
+ const getSubscriptionInvoiceOptions = (options) => {
2073
+ return (0, import_react_query.queryOptions)({
2074
+ queryFn: async ({ queryKey, signal }) => {
2075
+ const { data } = await (0, import_sdk.getSubscriptionInvoice)({
2076
+ ...options,
2077
+ ...queryKey[0],
2078
+ signal,
2079
+ throwOnError: true
2080
+ });
2081
+ return data;
2082
+ },
2083
+ queryKey: getSubscriptionInvoiceQueryKey(options)
2084
+ });
2085
+ };
2086
+ const listInvoicesQueryKey = (options) => [
2087
+ createQueryKey("listInvoices", options)
2088
+ ];
2089
+ const listInvoicesOptions = (options) => {
2090
+ return (0, import_react_query.queryOptions)({
2091
+ queryFn: async ({ queryKey, signal }) => {
2092
+ const { data } = await (0, import_sdk.listInvoices)({
2093
+ ...options,
2094
+ ...queryKey[0],
2095
+ signal,
2096
+ throwOnError: true
2097
+ });
2098
+ return data;
2099
+ },
2100
+ queryKey: listInvoicesQueryKey(options)
2101
+ });
2102
+ };
2103
+ const getInvoiceQueryKey = (options) => [
2104
+ createQueryKey("getInvoice", options)
2105
+ ];
2106
+ const getInvoiceOptions = (options) => {
2107
+ return (0, import_react_query.queryOptions)({
2108
+ queryFn: async ({ queryKey, signal }) => {
2109
+ const { data } = await (0, import_sdk.getInvoice)({
2110
+ ...options,
2111
+ ...queryKey[0],
2112
+ signal,
2113
+ throwOnError: true
2114
+ });
2115
+ return data;
2116
+ },
2117
+ queryKey: getInvoiceQueryKey(options)
2118
+ });
2119
+ };
2120
+ const getFeatureQueryKey = (options) => [
2121
+ createQueryKey("getFeature", options)
2122
+ ];
2123
+ const getFeatureOptions = (options) => {
2124
+ return (0, import_react_query.queryOptions)({
2125
+ queryFn: async ({ queryKey, signal }) => {
2126
+ const { data } = await (0, import_sdk.getFeature)({
2127
+ ...options,
2128
+ ...queryKey[0],
2129
+ signal,
2130
+ throwOnError: true
2131
+ });
2132
+ return data;
2133
+ },
2134
+ queryKey: getFeatureQueryKey(options)
2135
+ });
2136
+ };
2137
+ const getStockQueryKey = (options) => [
2138
+ createQueryKey("getStock", options)
2139
+ ];
2140
+ const getStockOptions = (options) => {
2141
+ return (0, import_react_query.queryOptions)({
2142
+ queryFn: async ({ queryKey, signal }) => {
2143
+ const { data } = await (0, import_sdk.getStock)({
2144
+ ...options,
2145
+ ...queryKey[0],
2146
+ signal,
2147
+ throwOnError: true
2148
+ });
2149
+ return data;
2150
+ },
2151
+ queryKey: getStockQueryKey(options)
2152
+ });
2153
+ };
2154
+ const listLocationsQueryKey = (options) => [
2155
+ createQueryKey("listLocations", options)
2156
+ ];
2157
+ const listLocationsOptions = (options) => {
2158
+ return (0, import_react_query.queryOptions)({
2159
+ queryFn: async ({ queryKey, signal }) => {
2160
+ const { data } = await (0, import_sdk.listLocations)({
2161
+ ...options,
2162
+ ...queryKey[0],
2163
+ signal,
2164
+ throwOnError: true
2165
+ });
2166
+ return data;
2167
+ },
2168
+ queryKey: listLocationsQueryKey(options)
2169
+ });
2170
+ };
2171
+ const createAnAccessTokenQueryKey = (options) => [createQueryKey("createAnAccessToken", options)];
2172
+ const createAnAccessTokenOptions = (options) => {
2173
+ return (0, import_react_query.queryOptions)({
2174
+ queryFn: async ({ queryKey, signal }) => {
2175
+ const { data } = await (0, import_sdk.createAnAccessToken)({
2176
+ ...options,
2177
+ ...queryKey[0],
2178
+ signal,
2179
+ throwOnError: true
2180
+ });
2181
+ return data;
2182
+ },
2183
+ queryKey: createAnAccessTokenQueryKey(options)
2184
+ });
2185
+ };
2186
+ const createAnAccessTokenMutation = (options) => {
2187
+ const mutationOptions = {
2188
+ mutationFn: async (localOptions) => {
2189
+ const { data } = await (0, import_sdk.createAnAccessToken)({
2190
+ ...options,
2191
+ ...localOptions,
2192
+ throwOnError: true
2193
+ });
2194
+ return data;
2195
+ }
2196
+ };
2197
+ return mutationOptions;
2198
+ };
2199
+ const getV2AccountAddressesQueryKey = (options) => [createQueryKey("getV2AccountAddresses", options)];
2200
+ const getV2AccountAddressesOptions = (options) => {
2201
+ return (0, import_react_query.queryOptions)({
2202
+ queryFn: async ({ queryKey, signal }) => {
2203
+ const { data } = await (0, import_sdk.getV2AccountAddresses)({
2204
+ ...options,
2205
+ ...queryKey[0],
2206
+ signal,
2207
+ throwOnError: true
2208
+ });
2209
+ return data;
2210
+ },
2211
+ queryKey: getV2AccountAddressesQueryKey(options)
2212
+ });
2213
+ };
2214
+ const postV2AccountAddressQueryKey = (options) => [createQueryKey("postV2AccountAddress", options)];
2215
+ const postV2AccountAddressOptions = (options) => {
2216
+ return (0, import_react_query.queryOptions)({
2217
+ queryFn: async ({ queryKey, signal }) => {
2218
+ const { data } = await (0, import_sdk.postV2AccountAddress)({
2219
+ ...options,
2220
+ ...queryKey[0],
2221
+ signal,
2222
+ throwOnError: true
2223
+ });
2224
+ return data;
2225
+ },
2226
+ queryKey: postV2AccountAddressQueryKey(options)
2227
+ });
2228
+ };
2229
+ const postV2AccountAddressMutation = (options) => {
2230
+ const mutationOptions = {
2231
+ mutationFn: async (localOptions) => {
2232
+ const { data } = await (0, import_sdk.postV2AccountAddress)({
2233
+ ...options,
2234
+ ...localOptions,
2235
+ throwOnError: true
2236
+ });
2237
+ return data;
2238
+ }
2239
+ };
2240
+ return mutationOptions;
2241
+ };
2242
+ const deleteV2AccountAddressMutation = (options) => {
2243
+ const mutationOptions = {
2244
+ mutationFn: async (localOptions) => {
2245
+ const { data } = await (0, import_sdk.deleteV2AccountAddress)({
2246
+ ...options,
2247
+ ...localOptions,
2248
+ throwOnError: true
2249
+ });
2250
+ return data;
2251
+ }
2252
+ };
2253
+ return mutationOptions;
2254
+ };
2255
+ const getV2AccountAddressQueryKey = (options) => [createQueryKey("getV2AccountAddress", options)];
2256
+ const getV2AccountAddressOptions = (options) => {
2257
+ return (0, import_react_query.queryOptions)({
2258
+ queryFn: async ({ queryKey, signal }) => {
2259
+ const { data } = await (0, import_sdk.getV2AccountAddress)({
2260
+ ...options,
2261
+ ...queryKey[0],
2262
+ signal,
2263
+ throwOnError: true
2264
+ });
2265
+ return data;
2266
+ },
2267
+ queryKey: getV2AccountAddressQueryKey(options)
2268
+ });
2269
+ };
2270
+ const putV2AccountAddressMutation = (options) => {
2271
+ const mutationOptions = {
2272
+ mutationFn: async (localOptions) => {
2273
+ const { data } = await (0, import_sdk.putV2AccountAddress)({
2274
+ ...options,
2275
+ ...localOptions,
2276
+ throwOnError: true
2277
+ });
2278
+ return data;
2279
+ }
2280
+ };
2281
+ return mutationOptions;
2282
+ };
2283
+ const getV2AccountsQueryKey = (options) => [
2284
+ createQueryKey("getV2Accounts", options)
2285
+ ];
2286
+ const getV2AccountsOptions = (options) => {
2287
+ return (0, import_react_query.queryOptions)({
2288
+ queryFn: async ({ queryKey, signal }) => {
2289
+ const { data } = await (0, import_sdk.getV2Accounts)({
2290
+ ...options,
2291
+ ...queryKey[0],
2292
+ signal,
2293
+ throwOnError: true
2294
+ });
2295
+ return data;
2296
+ },
2297
+ queryKey: getV2AccountsQueryKey(options)
2298
+ });
2299
+ };
2300
+ const postV2AccountsQueryKey = (options) => [createQueryKey("postV2Accounts", options)];
2301
+ const postV2AccountsOptions = (options) => {
2302
+ return (0, import_react_query.queryOptions)({
2303
+ queryFn: async ({ queryKey, signal }) => {
2304
+ const { data } = await (0, import_sdk.postV2Accounts)({
2305
+ ...options,
2306
+ ...queryKey[0],
2307
+ signal,
2308
+ throwOnError: true
2309
+ });
2310
+ return data;
2311
+ },
2312
+ queryKey: postV2AccountsQueryKey(options)
2313
+ });
2314
+ };
2315
+ const postV2AccountsMutation = (options) => {
2316
+ const mutationOptions = {
2317
+ mutationFn: async (localOptions) => {
2318
+ const { data } = await (0, import_sdk.postV2Accounts)({
2319
+ ...options,
2320
+ ...localOptions,
2321
+ throwOnError: true
2322
+ });
2323
+ return data;
2324
+ }
2325
+ };
2326
+ return mutationOptions;
2327
+ };
2328
+ const getV2AccountsAccountIdQueryKey = (options) => [createQueryKey("getV2AccountsAccountId", options)];
2329
+ const getV2AccountsAccountIdOptions = (options) => {
2330
+ return (0, import_react_query.queryOptions)({
2331
+ queryFn: async ({ queryKey, signal }) => {
2332
+ const { data } = await (0, import_sdk.getV2AccountsAccountId)({
2333
+ ...options,
2334
+ ...queryKey[0],
2335
+ signal,
2336
+ throwOnError: true
2337
+ });
2338
+ return data;
2339
+ },
2340
+ queryKey: getV2AccountsAccountIdQueryKey(options)
2341
+ });
2342
+ };
2343
+ const putV2AccountsAccountIdMutation = (options) => {
2344
+ const mutationOptions = {
2345
+ mutationFn: async (localOptions) => {
2346
+ const { data } = await (0, import_sdk.putV2AccountsAccountId)({
2347
+ ...options,
2348
+ ...localOptions,
2349
+ throwOnError: true
2350
+ });
2351
+ return data;
2352
+ }
2353
+ };
2354
+ return mutationOptions;
2355
+ };
2356
+ const getV2AccountMembersQueryKey = (options) => [createQueryKey("getV2AccountMembers", options)];
2357
+ const getV2AccountMembersOptions = (options) => {
2358
+ return (0, import_react_query.queryOptions)({
2359
+ queryFn: async ({ queryKey, signal }) => {
2360
+ const { data } = await (0, import_sdk.getV2AccountMembers)({
2361
+ ...options,
2362
+ ...queryKey[0],
2363
+ signal,
2364
+ throwOnError: true
2365
+ });
2366
+ return data;
2367
+ },
2368
+ queryKey: getV2AccountMembersQueryKey(options)
2369
+ });
2370
+ };
2371
+ const getV2AccountMembersAccountMemberIdQueryKey = (options) => [createQueryKey("getV2AccountMembersAccountMemberId", options)];
2372
+ const getV2AccountMembersAccountMemberIdOptions = (options) => {
2373
+ return (0, import_react_query.queryOptions)({
2374
+ queryFn: async ({ queryKey, signal }) => {
2375
+ const { data } = await (0, import_sdk.getV2AccountMembersAccountMemberId)({
2376
+ ...options,
2377
+ ...queryKey[0],
2378
+ signal,
2379
+ throwOnError: true
2380
+ });
2381
+ return data;
2382
+ },
2383
+ queryKey: getV2AccountMembersAccountMemberIdQueryKey(options)
2384
+ });
2385
+ };
2386
+ const getV2AccountsAccountIdAccountMembershipsQueryKey = (options) => [createQueryKey("getV2AccountsAccountIdAccountMemberships", options)];
2387
+ const getV2AccountsAccountIdAccountMembershipsOptions = (options) => {
2388
+ return (0, import_react_query.queryOptions)({
2389
+ queryFn: async ({ queryKey, signal }) => {
2390
+ const { data } = await (0, import_sdk.getV2AccountsAccountIdAccountMemberships)({
2391
+ ...options,
2392
+ ...queryKey[0],
2393
+ signal,
2394
+ throwOnError: true
2395
+ });
2396
+ return data;
2397
+ },
2398
+ queryKey: getV2AccountsAccountIdAccountMembershipsQueryKey(options)
2399
+ });
2400
+ };
2401
+ const postV2AccountMembersTokensQueryKey = (options) => [createQueryKey("postV2AccountMembersTokens", options)];
2402
+ const postV2AccountMembersTokensOptions = (options) => {
2403
+ return (0, import_react_query.queryOptions)({
2404
+ queryFn: async ({ queryKey, signal }) => {
2405
+ const { data } = await (0, import_sdk.postV2AccountMembersTokens)({
2406
+ ...options,
2407
+ ...queryKey[0],
2408
+ signal,
2409
+ throwOnError: true
2410
+ });
2411
+ return data;
2412
+ },
2413
+ queryKey: postV2AccountMembersTokensQueryKey(options)
2414
+ });
2415
+ };
2416
+ const postV2AccountMembersTokensMutation = (options) => {
2417
+ const mutationOptions = {
2418
+ mutationFn: async (localOptions) => {
2419
+ const { data } = await (0, import_sdk.postV2AccountMembersTokens)({
2420
+ ...options,
2421
+ ...localOptions,
2422
+ throwOnError: true
2423
+ });
2424
+ return data;
2425
+ }
2426
+ };
2427
+ return mutationOptions;
2428
+ };
2429
+ const createOneTimePasswordTokenRequestQueryKey = (options) => [createQueryKey("createOneTimePasswordTokenRequest", options)];
2430
+ const createOneTimePasswordTokenRequestOptions = (options) => {
2431
+ return (0, import_react_query.queryOptions)({
2432
+ queryFn: async ({ queryKey, signal }) => {
2433
+ const { data } = await (0, import_sdk.createOneTimePasswordTokenRequest)({
2434
+ ...options,
2435
+ ...queryKey[0],
2436
+ signal,
2437
+ throwOnError: true
2438
+ });
2439
+ return data;
2440
+ },
2441
+ queryKey: createOneTimePasswordTokenRequestQueryKey(options)
2442
+ });
2443
+ };
2444
+ const createOneTimePasswordTokenRequestMutation = (options) => {
2445
+ const mutationOptions = {
2446
+ mutationFn: async (localOptions) => {
2447
+ const { data } = await (0, import_sdk.createOneTimePasswordTokenRequest)({
2448
+ ...options,
2449
+ ...localOptions,
2450
+ throwOnError: true
2451
+ });
2452
+ return data;
2453
+ }
2454
+ };
2455
+ return mutationOptions;
2456
+ };
2457
+ const updatePasswordProfileInfoMutation = (options) => {
2458
+ const mutationOptions = {
2459
+ mutationFn: async (localOptions) => {
2460
+ const { data } = await (0, import_sdk.updatePasswordProfileInfo)({
2461
+ ...options,
2462
+ ...localOptions,
2463
+ throwOnError: true
2464
+ });
2465
+ return data;
2466
+ }
2467
+ };
2468
+ return mutationOptions;
2469
+ };
2470
+ const getAllCurrenciesQueryKey = (options) => [createQueryKey("getAllCurrencies", options)];
2471
+ const getAllCurrenciesOptions = (options) => {
2472
+ return (0, import_react_query.queryOptions)({
2473
+ queryFn: async ({ queryKey, signal }) => {
2474
+ const { data } = await (0, import_sdk.getAllCurrencies)({
2475
+ ...options,
2476
+ ...queryKey[0],
2477
+ signal,
2478
+ throwOnError: true
2479
+ });
2480
+ return data;
2481
+ },
2482
+ queryKey: getAllCurrenciesQueryKey(options)
2483
+ });
2484
+ };
2485
+ const getACurrencyQueryKey = (options) => [
2486
+ createQueryKey("getACurrency", options)
2487
+ ];
2488
+ const getACurrencyOptions = (options) => {
2489
+ return (0, import_react_query.queryOptions)({
2490
+ queryFn: async ({ queryKey, signal }) => {
2491
+ const { data } = await (0, import_sdk.getACurrency)({
2492
+ ...options,
2493
+ ...queryKey[0],
2494
+ signal,
2495
+ throwOnError: true
2496
+ });
2497
+ return data;
2498
+ },
2499
+ queryKey: getACurrencyQueryKey(options)
2500
+ });
2501
+ };
2502
+ const getAllFilesQueryKey = (options) => [
2503
+ createQueryKey("getAllFiles", options)
2504
+ ];
2505
+ const getAllFilesOptions = (options) => {
2506
+ return (0, import_react_query.queryOptions)({
2507
+ queryFn: async ({ queryKey, signal }) => {
2508
+ const { data } = await (0, import_sdk.getAllFiles)({
2509
+ ...options,
2510
+ ...queryKey[0],
2511
+ signal,
2512
+ throwOnError: true
2513
+ });
2514
+ return data;
2515
+ },
2516
+ queryKey: getAllFilesQueryKey(options)
2517
+ });
2518
+ };
2519
+ const getAFileQueryKey = (options) => [
2520
+ createQueryKey("getAFile", options)
2521
+ ];
2522
+ const getAFileOptions = (options) => {
2523
+ return (0, import_react_query.queryOptions)({
2524
+ queryFn: async ({ queryKey, signal }) => {
2525
+ const { data } = await (0, import_sdk.getAFile)({
2526
+ ...options,
2527
+ ...queryKey[0],
2528
+ signal,
2529
+ throwOnError: true
2530
+ });
2531
+ return data;
2532
+ },
2533
+ queryKey: getAFileQueryKey(options)
2534
+ });
2535
+ };
2536
+ // Annotate the CommonJS export names for ESM import in node:
2537
+ 0 && (module.exports = {
2538
+ addCustomDiscountToCartItemMutation,
2539
+ addCustomDiscountToCartItemOptions,
2540
+ addCustomDiscountToCartItemQueryKey,
2541
+ addTaxItemToCartMutation,
2542
+ addTaxItemToCartOptions,
2543
+ addTaxItemToCartQueryKey,
2544
+ anonymizeOrdersMutation,
2545
+ anonymizeOrdersOptions,
2546
+ anonymizeOrdersQueryKey,
2547
+ bulkAddCustomDiscountsToCartMutation,
2548
+ bulkAddCustomDiscountsToCartOptions,
2549
+ bulkAddCustomDiscountsToCartQueryKey,
2550
+ bulkAddTaxItemsToCartMutation,
2551
+ bulkAddTaxItemsToCartOptions,
2552
+ bulkAddTaxItemsToCartQueryKey,
2553
+ bulkDeleteCustomDiscountsFromCartMutation,
2554
+ bulkDeleteTaxItemsFromCartMutation,
2555
+ bulkUpdateItemsInCartMutation,
2556
+ cancelATransactionMutation,
2557
+ cancelATransactionOptions,
2558
+ cancelATransactionQueryKey,
2559
+ captureATransactionMutation,
2560
+ captureATransactionOptions,
2561
+ captureATransactionQueryKey,
2562
+ checkoutApiMutation,
2563
+ checkoutApiOptions,
2564
+ checkoutApiQueryKey,
2565
+ configureByContextProductMutation,
2566
+ configureByContextProductOptions,
2567
+ configureByContextProductQueryKey,
2568
+ confirmPaymentMutation,
2569
+ confirmPaymentOptions,
2570
+ confirmPaymentQueryKey,
2571
+ createACartMutation,
2572
+ createACartOptions,
2573
+ createACartQueryKey,
2574
+ createAccountCartAssociationMutation,
2575
+ createAccountCartAssociationOptions,
2576
+ createAccountCartAssociationQueryKey,
2577
+ createAnAccessTokenMutation,
2578
+ createAnAccessTokenOptions,
2579
+ createAnAccessTokenQueryKey,
2580
+ createCartPaymentIntentMutation,
2581
+ createCartPaymentIntentOptions,
2582
+ createCartPaymentIntentQueryKey,
2583
+ createCatalogMutation,
2584
+ createCatalogOptions,
2585
+ createCatalogQueryKey,
2586
+ createCustomerCartAssociationMutation,
2587
+ createCustomerCartAssociationOptions,
2588
+ createCustomerCartAssociationQueryKey,
2589
+ createOneTimePasswordTokenRequestMutation,
2590
+ createOneTimePasswordTokenRequestOptions,
2591
+ createOneTimePasswordTokenRequestQueryKey,
2592
+ createRuleMutation,
2593
+ createRuleOptions,
2594
+ createRuleQueryKey,
2595
+ deleteACartItemMutation,
2596
+ deleteACartMutation,
2597
+ deleteAPromotionViaPromotionCodeMutation,
2598
+ deleteATaxItemMutation,
2599
+ deleteAccountCartAssociationMutation,
2600
+ deleteAllCartItemsMutation,
2601
+ deleteCatalogByIdMutation,
2602
+ deleteCustomDiscountFromCartItemMutation,
2603
+ deleteCustomDiscountFromCartMutation,
2604
+ deleteCustomerCartAssociationMutation,
2605
+ deleteReleaseByIdMutation,
2606
+ deleteReleasesMutation,
2607
+ deleteRuleByIdMutation,
2608
+ deleteV2AccountAddressMutation,
2609
+ getACurrencyOptions,
2610
+ getACurrencyQueryKey,
2611
+ getAFileOptions,
2612
+ getAFileQueryKey,
2613
+ getATransactionOptions,
2614
+ getATransactionQueryKey,
2615
+ getAllCurrenciesOptions,
2616
+ getAllCurrenciesQueryKey,
2617
+ getAllFilesOptions,
2618
+ getAllFilesQueryKey,
2619
+ getAllHierarchiesOptions,
2620
+ getAllHierarchiesQueryKey,
2621
+ getAllNodesOptions,
2622
+ getAllNodesQueryKey,
2623
+ getAllProductsOptions,
2624
+ getAllProductsQueryKey,
2625
+ getAnOrderOptions,
2626
+ getAnOrderQueryKey,
2627
+ getByContextAllHierarchiesOptions,
2628
+ getByContextAllHierarchiesQueryKey,
2629
+ getByContextAllNodesOptions,
2630
+ getByContextAllNodesQueryKey,
2631
+ getByContextAllProductsOptions,
2632
+ getByContextAllProductsQueryKey,
2633
+ getByContextChildNodesOptions,
2634
+ getByContextChildNodesQueryKey,
2635
+ getByContextChildProductsOptions,
2636
+ getByContextChildProductsQueryKey,
2637
+ getByContextComponentProductIdsOptions,
2638
+ getByContextComponentProductIdsQueryKey,
2639
+ getByContextHierarchyChildNodesOptions,
2640
+ getByContextHierarchyChildNodesQueryKey,
2641
+ getByContextHierarchyNodesOptions,
2642
+ getByContextHierarchyNodesQueryKey,
2643
+ getByContextHierarchyOptions,
2644
+ getByContextHierarchyQueryKey,
2645
+ getByContextNodeOptions,
2646
+ getByContextNodeQueryKey,
2647
+ getByContextProductOptions,
2648
+ getByContextProductQueryKey,
2649
+ getByContextProductsForHierarchyOptions,
2650
+ getByContextProductsForHierarchyQueryKey,
2651
+ getByContextProductsForNodeOptions,
2652
+ getByContextProductsForNodeQueryKey,
2653
+ getByContextReleaseOptions,
2654
+ getByContextReleaseQueryKey,
2655
+ getCartItemsOptions,
2656
+ getCartItemsQueryKey,
2657
+ getCartOptions,
2658
+ getCartQueryKey,
2659
+ getCartsOptions,
2660
+ getCartsQueryKey,
2661
+ getCatalogByIdOptions,
2662
+ getCatalogByIdQueryKey,
2663
+ getCatalogsOptions,
2664
+ getCatalogsQueryKey,
2665
+ getChildNodesOptions,
2666
+ getChildNodesQueryKey,
2667
+ getChildProductsOptions,
2668
+ getChildProductsQueryKey,
2669
+ getComponentProductIdsOptions,
2670
+ getComponentProductIdsQueryKey,
2671
+ getCustomerOrdersOptions,
2672
+ getCustomerOrdersQueryKey,
2673
+ getFeatureOptions,
2674
+ getFeatureQueryKey,
2675
+ getHierarchyChildNodesOptions,
2676
+ getHierarchyChildNodesQueryKey,
2677
+ getHierarchyNodesOptions,
2678
+ getHierarchyNodesQueryKey,
2679
+ getHierarchyOptions,
2680
+ getHierarchyQueryKey,
2681
+ getInvoiceOptions,
2682
+ getInvoiceQueryKey,
2683
+ getNodeOptions,
2684
+ getNodeQueryKey,
2685
+ getOfferingOptions,
2686
+ getOfferingQueryKey,
2687
+ getOrderItemsOptions,
2688
+ getOrderItemsQueryKey,
2689
+ getOrderTransactionsOptions,
2690
+ getOrderTransactionsQueryKey,
2691
+ getPlanOptions,
2692
+ getPlanQueryKey,
2693
+ getProductOptions,
2694
+ getProductQueryKey,
2695
+ getProductsForHierarchyOptions,
2696
+ getProductsForHierarchyQueryKey,
2697
+ getProductsForNodeOptions,
2698
+ getProductsForNodeQueryKey,
2699
+ getReleaseByIdOptions,
2700
+ getReleaseByIdQueryKey,
2701
+ getReleasesOptions,
2702
+ getReleasesQueryKey,
2703
+ getRuleByIdOptions,
2704
+ getRuleByIdQueryKey,
2705
+ getRulesOptions,
2706
+ getRulesQueryKey,
2707
+ getStockOptions,
2708
+ getStockQueryKey,
2709
+ getSubscriptionInvoiceOptions,
2710
+ getSubscriptionInvoicePaymentOptions,
2711
+ getSubscriptionInvoicePaymentQueryKey,
2712
+ getSubscriptionInvoiceQueryKey,
2713
+ getSubscriptionOptions,
2714
+ getSubscriptionProductOptions,
2715
+ getSubscriptionProductQueryKey,
2716
+ getSubscriptionQueryKey,
2717
+ getSubscriptionStateOptions,
2718
+ getSubscriptionStateQueryKey,
2719
+ getV2AccountAddressOptions,
2720
+ getV2AccountAddressQueryKey,
2721
+ getV2AccountAddressesOptions,
2722
+ getV2AccountAddressesQueryKey,
2723
+ getV2AccountMembersAccountMemberIdOptions,
2724
+ getV2AccountMembersAccountMemberIdQueryKey,
2725
+ getV2AccountMembersOptions,
2726
+ getV2AccountMembersQueryKey,
2727
+ getV2AccountsAccountIdAccountMembershipsOptions,
2728
+ getV2AccountsAccountIdAccountMembershipsQueryKey,
2729
+ getV2AccountsAccountIdOptions,
2730
+ getV2AccountsAccountIdQueryKey,
2731
+ getV2AccountsOptions,
2732
+ getV2AccountsQueryKey,
2733
+ listInvoicesOptions,
2734
+ listInvoicesQueryKey,
2735
+ listLocationsOptions,
2736
+ listLocationsQueryKey,
2737
+ listOfferingFeaturesOptions,
2738
+ listOfferingFeaturesQueryKey,
2739
+ listOfferingPlansOptions,
2740
+ listOfferingPlansQueryKey,
2741
+ listOfferingProductsOptions,
2742
+ listOfferingProductsQueryKey,
2743
+ listOfferingsOptions,
2744
+ listOfferingsQueryKey,
2745
+ listSubscriptionInvoicePaymentsOptions,
2746
+ listSubscriptionInvoicePaymentsQueryKey,
2747
+ listSubscriptionInvoicesOptions,
2748
+ listSubscriptionInvoicesQueryKey,
2749
+ listSubscriptionPlansOptions,
2750
+ listSubscriptionPlansQueryKey,
2751
+ listSubscriptionProductsOptions,
2752
+ listSubscriptionProductsQueryKey,
2753
+ listSubscriptionStatesOptions,
2754
+ listSubscriptionStatesQueryKey,
2755
+ listSubscriptionsOptions,
2756
+ listSubscriptionsQueryKey,
2757
+ manageCartsMutation,
2758
+ manageCartsOptions,
2759
+ manageCartsQueryKey,
2760
+ paymentSetupMutation,
2761
+ paymentSetupOptions,
2762
+ paymentSetupQueryKey,
2763
+ postV2AccountAddressMutation,
2764
+ postV2AccountAddressOptions,
2765
+ postV2AccountAddressQueryKey,
2766
+ postV2AccountMembersTokensMutation,
2767
+ postV2AccountMembersTokensOptions,
2768
+ postV2AccountMembersTokensQueryKey,
2769
+ postV2AccountsMutation,
2770
+ postV2AccountsOptions,
2771
+ postV2AccountsQueryKey,
2772
+ publishReleaseMutation,
2773
+ publishReleaseOptions,
2774
+ publishReleaseQueryKey,
2775
+ putV2AccountAddressMutation,
2776
+ putV2AccountsAccountIdMutation,
2777
+ refundATransactionMutation,
2778
+ refundATransactionOptions,
2779
+ refundATransactionQueryKey,
2780
+ updateACartItemMutation,
2781
+ updateACartMutation,
2782
+ updateATaxItemMutation,
2783
+ updateAnOrderMutation,
2784
+ updateCatalogMutation,
2785
+ updateCustomDiscountForCartItemMutation,
2786
+ updateCustomDiscountForCartMutation,
2787
+ updatePasswordProfileInfoMutation,
2788
+ updateRuleMutation
2789
+ });
2790
+ //# sourceMappingURL=react-query.gen.cjs.map