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