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