@epcc-sdk/sdks-shopper 0.0.32 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -7
- package/dist/client/@tanstack/react-query.gen.cjs +272 -53
- package/dist/client/@tanstack/react-query.gen.cjs.map +1 -1
- package/dist/client/@tanstack/react-query.gen.d.cts +314 -357
- package/dist/client/@tanstack/react-query.gen.d.ts +314 -357
- package/dist/client/@tanstack/react-query.gen.mjs +258 -48
- package/dist/client/@tanstack/react-query.gen.mjs.map +1 -1
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.cjs +209 -25
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +154 -136
- package/dist/client/sdk.gen.d.ts +154 -136
- package/dist/client/sdk.gen.mjs +193 -19
- package/dist/client/sdk.gen.mjs.map +1 -1
- package/dist/client/transformers.gen.cjs +91 -60
- package/dist/client/transformers.gen.cjs.map +1 -1
- package/dist/client/transformers.gen.d.cts +13 -9
- package/dist/client/transformers.gen.d.ts +13 -9
- package/dist/client/transformers.gen.mjs +79 -52
- package/dist/client/transformers.gen.mjs.map +1 -1
- package/dist/client/types.gen.cjs.map +1 -1
- package/dist/client/types.gen.d.cts +1992 -1384
- package/dist/client/types.gen.d.ts +1992 -1384
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/react-query.d.cts +1 -1
- package/dist/react-query.d.ts +1 -1
- package/package.json +1 -1
|
@@ -48,6 +48,9 @@ __export(react_query_gen_exports, {
|
|
|
48
48
|
configureByContextProductMutation: () => configureByContextProductMutation,
|
|
49
49
|
configureByContextProductOptions: () => configureByContextProductOptions,
|
|
50
50
|
configureByContextProductQueryKey: () => configureByContextProductQueryKey,
|
|
51
|
+
confirmOrderMutation: () => confirmOrderMutation,
|
|
52
|
+
confirmOrderOptions: () => confirmOrderOptions,
|
|
53
|
+
confirmOrderQueryKey: () => confirmOrderQueryKey,
|
|
51
54
|
confirmPaymentMutation: () => confirmPaymentMutation,
|
|
52
55
|
confirmPaymentOptions: () => confirmPaymentOptions,
|
|
53
56
|
confirmPaymentQueryKey: () => confirmPaymentQueryKey,
|
|
@@ -72,15 +75,22 @@ __export(react_query_gen_exports, {
|
|
|
72
75
|
createOneTimePasswordTokenRequestMutation: () => createOneTimePasswordTokenRequestMutation,
|
|
73
76
|
createOneTimePasswordTokenRequestOptions: () => createOneTimePasswordTokenRequestOptions,
|
|
74
77
|
createOneTimePasswordTokenRequestQueryKey: () => createOneTimePasswordTokenRequestQueryKey,
|
|
78
|
+
createOrderShippingGroupMutation: () => createOrderShippingGroupMutation,
|
|
79
|
+
createOrderShippingGroupOptions: () => createOrderShippingGroupOptions,
|
|
80
|
+
createOrderShippingGroupQueryKey: () => createOrderShippingGroupQueryKey,
|
|
75
81
|
createRuleMutation: () => createRuleMutation,
|
|
76
82
|
createRuleOptions: () => createRuleOptions,
|
|
77
83
|
createRuleQueryKey: () => createRuleQueryKey,
|
|
84
|
+
createShippingGroupMutation: () => createShippingGroupMutation,
|
|
85
|
+
createShippingGroupOptions: () => createShippingGroupOptions,
|
|
86
|
+
createShippingGroupQueryKey: () => createShippingGroupQueryKey,
|
|
78
87
|
deleteACartItemMutation: () => deleteACartItemMutation,
|
|
79
88
|
deleteACartMutation: () => deleteACartMutation,
|
|
80
89
|
deleteAPromotionViaPromotionCodeMutation: () => deleteAPromotionViaPromotionCodeMutation,
|
|
81
90
|
deleteATaxItemMutation: () => deleteATaxItemMutation,
|
|
82
91
|
deleteAccountCartAssociationMutation: () => deleteAccountCartAssociationMutation,
|
|
83
92
|
deleteAllCartItemsMutation: () => deleteAllCartItemsMutation,
|
|
93
|
+
deleteCartShippingGroupMutation: () => deleteCartShippingGroupMutation,
|
|
84
94
|
deleteCatalogByIdMutation: () => deleteCatalogByIdMutation,
|
|
85
95
|
deleteCustomDiscountFromCartItemMutation: () => deleteCustomDiscountFromCartItemMutation,
|
|
86
96
|
deleteCustomDiscountFromCartMutation: () => deleteCustomDiscountFromCartMutation,
|
|
@@ -89,6 +99,8 @@ __export(react_query_gen_exports, {
|
|
|
89
99
|
deleteReleasesMutation: () => deleteReleasesMutation,
|
|
90
100
|
deleteRuleByIdMutation: () => deleteRuleByIdMutation,
|
|
91
101
|
deleteV2AccountAddressMutation: () => deleteV2AccountAddressMutation,
|
|
102
|
+
getACartOptions: () => getACartOptions,
|
|
103
|
+
getACartQueryKey: () => getACartQueryKey,
|
|
92
104
|
getACurrencyOptions: () => getACurrencyOptions,
|
|
93
105
|
getACurrencyQueryKey: () => getACurrencyQueryKey,
|
|
94
106
|
getAFileOptions: () => getAFileOptions,
|
|
@@ -141,8 +153,6 @@ __export(react_query_gen_exports, {
|
|
|
141
153
|
getByContextReleaseQueryKey: () => getByContextReleaseQueryKey,
|
|
142
154
|
getCartItemsOptions: () => getCartItemsOptions,
|
|
143
155
|
getCartItemsQueryKey: () => getCartItemsQueryKey,
|
|
144
|
-
getCartOptions: () => getCartOptions,
|
|
145
|
-
getCartQueryKey: () => getCartQueryKey,
|
|
146
156
|
getCartsOptions: () => getCartsOptions,
|
|
147
157
|
getCartsQueryKey: () => getCartsQueryKey,
|
|
148
158
|
getCatalogByIdOptions: () => getCatalogByIdOptions,
|
|
@@ -173,10 +183,10 @@ __export(react_query_gen_exports, {
|
|
|
173
183
|
getOfferingQueryKey: () => getOfferingQueryKey,
|
|
174
184
|
getOrderItemsOptions: () => getOrderItemsOptions,
|
|
175
185
|
getOrderItemsQueryKey: () => getOrderItemsQueryKey,
|
|
186
|
+
getOrderShippingGroupsOptions: () => getOrderShippingGroupsOptions,
|
|
187
|
+
getOrderShippingGroupsQueryKey: () => getOrderShippingGroupsQueryKey,
|
|
176
188
|
getOrderTransactionsOptions: () => getOrderTransactionsOptions,
|
|
177
189
|
getOrderTransactionsQueryKey: () => getOrderTransactionsQueryKey,
|
|
178
|
-
getPlanOptions: () => getPlanOptions,
|
|
179
|
-
getPlanQueryKey: () => getPlanQueryKey,
|
|
180
190
|
getProductOptions: () => getProductOptions,
|
|
181
191
|
getProductQueryKey: () => getProductQueryKey,
|
|
182
192
|
getProductsForHierarchyOptions: () => getProductsForHierarchyOptions,
|
|
@@ -191,6 +201,12 @@ __export(react_query_gen_exports, {
|
|
|
191
201
|
getRuleByIdQueryKey: () => getRuleByIdQueryKey,
|
|
192
202
|
getRulesOptions: () => getRulesOptions,
|
|
193
203
|
getRulesQueryKey: () => getRulesQueryKey,
|
|
204
|
+
getShippingGroupByIdOptions: () => getShippingGroupByIdOptions,
|
|
205
|
+
getShippingGroupByIdQueryKey: () => getShippingGroupByIdQueryKey,
|
|
206
|
+
getShippingGroupsByIdOptions: () => getShippingGroupsByIdOptions,
|
|
207
|
+
getShippingGroupsByIdQueryKey: () => getShippingGroupsByIdQueryKey,
|
|
208
|
+
getShippingGroupsOptions: () => getShippingGroupsOptions,
|
|
209
|
+
getShippingGroupsQueryKey: () => getShippingGroupsQueryKey,
|
|
194
210
|
getStockOptions: () => getStockOptions,
|
|
195
211
|
getStockQueryKey: () => getStockQueryKey,
|
|
196
212
|
getSubscriptionInvoiceOptions: () => getSubscriptionInvoiceOptions,
|
|
@@ -198,8 +214,6 @@ __export(react_query_gen_exports, {
|
|
|
198
214
|
getSubscriptionInvoicePaymentQueryKey: () => getSubscriptionInvoicePaymentQueryKey,
|
|
199
215
|
getSubscriptionInvoiceQueryKey: () => getSubscriptionInvoiceQueryKey,
|
|
200
216
|
getSubscriptionOptions: () => getSubscriptionOptions,
|
|
201
|
-
getSubscriptionProductOptions: () => getSubscriptionProductOptions,
|
|
202
|
-
getSubscriptionProductQueryKey: () => getSubscriptionProductQueryKey,
|
|
203
217
|
getSubscriptionQueryKey: () => getSubscriptionQueryKey,
|
|
204
218
|
getSubscriptionStateOptions: () => getSubscriptionStateOptions,
|
|
205
219
|
getSubscriptionStateQueryKey: () => getSubscriptionStateQueryKey,
|
|
@@ -223,10 +237,12 @@ __export(react_query_gen_exports, {
|
|
|
223
237
|
listLocationsQueryKey: () => listLocationsQueryKey,
|
|
224
238
|
listOfferingFeaturesOptions: () => listOfferingFeaturesOptions,
|
|
225
239
|
listOfferingFeaturesQueryKey: () => listOfferingFeaturesQueryKey,
|
|
240
|
+
listOfferingPlanPricingOptionsOptions: () => listOfferingPlanPricingOptionsOptions,
|
|
241
|
+
listOfferingPlanPricingOptionsQueryKey: () => listOfferingPlanPricingOptionsQueryKey,
|
|
226
242
|
listOfferingPlansOptions: () => listOfferingPlansOptions,
|
|
227
243
|
listOfferingPlansQueryKey: () => listOfferingPlansQueryKey,
|
|
228
|
-
|
|
229
|
-
|
|
244
|
+
listOfferingPricingOptionsOptions: () => listOfferingPricingOptionsOptions,
|
|
245
|
+
listOfferingPricingOptionsQueryKey: () => listOfferingPricingOptionsQueryKey,
|
|
230
246
|
listOfferingsOptions: () => listOfferingsOptions,
|
|
231
247
|
listOfferingsQueryKey: () => listOfferingsQueryKey,
|
|
232
248
|
listSubscriptionInvoicePaymentsOptions: () => listSubscriptionInvoicePaymentsOptions,
|
|
@@ -235,8 +251,8 @@ __export(react_query_gen_exports, {
|
|
|
235
251
|
listSubscriptionInvoicesQueryKey: () => listSubscriptionInvoicesQueryKey,
|
|
236
252
|
listSubscriptionPlansOptions: () => listSubscriptionPlansOptions,
|
|
237
253
|
listSubscriptionPlansQueryKey: () => listSubscriptionPlansQueryKey,
|
|
238
|
-
|
|
239
|
-
|
|
254
|
+
listSubscriptionPricingOptionsOptions: () => listSubscriptionPricingOptionsOptions,
|
|
255
|
+
listSubscriptionPricingOptionsQueryKey: () => listSubscriptionPricingOptionsQueryKey,
|
|
240
256
|
listSubscriptionStatesOptions: () => listSubscriptionStatesOptions,
|
|
241
257
|
listSubscriptionStatesQueryKey: () => listSubscriptionStatesQueryKey,
|
|
242
258
|
listSubscriptionsOptions: () => listSubscriptionsOptions,
|
|
@@ -259,6 +275,7 @@ __export(react_query_gen_exports, {
|
|
|
259
275
|
publishReleaseMutation: () => publishReleaseMutation,
|
|
260
276
|
publishReleaseOptions: () => publishReleaseOptions,
|
|
261
277
|
publishReleaseQueryKey: () => publishReleaseQueryKey,
|
|
278
|
+
putShippingGroupByIdMutation: () => putShippingGroupByIdMutation,
|
|
262
279
|
putV2AccountAddressMutation: () => putV2AccountAddressMutation,
|
|
263
280
|
putV2AccountsAccountIdMutation: () => putV2AccountsAccountIdMutation,
|
|
264
281
|
refundATransactionMutation: () => refundATransactionMutation,
|
|
@@ -268,11 +285,13 @@ __export(react_query_gen_exports, {
|
|
|
268
285
|
updateACartMutation: () => updateACartMutation,
|
|
269
286
|
updateATaxItemMutation: () => updateATaxItemMutation,
|
|
270
287
|
updateAnOrderMutation: () => updateAnOrderMutation,
|
|
288
|
+
updateCartPaymentIntentMutation: () => updateCartPaymentIntentMutation,
|
|
271
289
|
updateCatalogMutation: () => updateCatalogMutation,
|
|
272
290
|
updateCustomDiscountForCartItemMutation: () => updateCustomDiscountForCartItemMutation,
|
|
273
291
|
updateCustomDiscountForCartMutation: () => updateCustomDiscountForCartMutation,
|
|
274
292
|
updatePasswordProfileInfoMutation: () => updatePasswordProfileInfoMutation,
|
|
275
|
-
updateRuleMutation: () => updateRuleMutation
|
|
293
|
+
updateRuleMutation: () => updateRuleMutation,
|
|
294
|
+
updateShippingGroupMutation: () => updateShippingGroupMutation
|
|
276
295
|
});
|
|
277
296
|
module.exports = __toCommonJS(react_query_gen_exports);
|
|
278
297
|
var import_react_query = require("@tanstack/react-query");
|
|
@@ -1096,13 +1115,13 @@ const deleteACartMutation = (options) => {
|
|
|
1096
1115
|
};
|
|
1097
1116
|
return mutationOptions;
|
|
1098
1117
|
};
|
|
1099
|
-
const
|
|
1100
|
-
createQueryKey("
|
|
1118
|
+
const getACartQueryKey = (options) => [
|
|
1119
|
+
createQueryKey("getACart", options)
|
|
1101
1120
|
];
|
|
1102
|
-
const
|
|
1121
|
+
const getACartOptions = (options) => {
|
|
1103
1122
|
return (0, import_react_query.queryOptions)({
|
|
1104
1123
|
queryFn: async ({ queryKey, signal }) => {
|
|
1105
|
-
const { data } = await (0, import_sdk.
|
|
1124
|
+
const { data } = await (0, import_sdk.getACart)({
|
|
1106
1125
|
...options,
|
|
1107
1126
|
...queryKey[0],
|
|
1108
1127
|
signal,
|
|
@@ -1110,7 +1129,7 @@ const getCartOptions = (options) => {
|
|
|
1110
1129
|
});
|
|
1111
1130
|
return data;
|
|
1112
1131
|
},
|
|
1113
|
-
queryKey:
|
|
1132
|
+
queryKey: getACartQueryKey(options)
|
|
1114
1133
|
});
|
|
1115
1134
|
};
|
|
1116
1135
|
const updateACartMutation = (options) => {
|
|
@@ -1536,6 +1555,90 @@ const updateCustomDiscountForCartItemMutation = (options) => {
|
|
|
1536
1555
|
};
|
|
1537
1556
|
return mutationOptions;
|
|
1538
1557
|
};
|
|
1558
|
+
const getShippingGroupsQueryKey = (options) => [createQueryKey("getShippingGroups", options)];
|
|
1559
|
+
const getShippingGroupsOptions = (options) => {
|
|
1560
|
+
return (0, import_react_query.queryOptions)({
|
|
1561
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1562
|
+
const { data } = await (0, import_sdk.getShippingGroups)({
|
|
1563
|
+
...options,
|
|
1564
|
+
...queryKey[0],
|
|
1565
|
+
signal,
|
|
1566
|
+
throwOnError: true
|
|
1567
|
+
});
|
|
1568
|
+
return data;
|
|
1569
|
+
},
|
|
1570
|
+
queryKey: getShippingGroupsQueryKey(options)
|
|
1571
|
+
});
|
|
1572
|
+
};
|
|
1573
|
+
const createShippingGroupQueryKey = (options) => [createQueryKey("createShippingGroup", options)];
|
|
1574
|
+
const createShippingGroupOptions = (options) => {
|
|
1575
|
+
return (0, import_react_query.queryOptions)({
|
|
1576
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1577
|
+
const { data } = await (0, import_sdk.createShippingGroup)({
|
|
1578
|
+
...options,
|
|
1579
|
+
...queryKey[0],
|
|
1580
|
+
signal,
|
|
1581
|
+
throwOnError: true
|
|
1582
|
+
});
|
|
1583
|
+
return data;
|
|
1584
|
+
},
|
|
1585
|
+
queryKey: createShippingGroupQueryKey(options)
|
|
1586
|
+
});
|
|
1587
|
+
};
|
|
1588
|
+
const createShippingGroupMutation = (options) => {
|
|
1589
|
+
const mutationOptions = {
|
|
1590
|
+
mutationFn: async (localOptions) => {
|
|
1591
|
+
const { data } = await (0, import_sdk.createShippingGroup)({
|
|
1592
|
+
...options,
|
|
1593
|
+
...localOptions,
|
|
1594
|
+
throwOnError: true
|
|
1595
|
+
});
|
|
1596
|
+
return data;
|
|
1597
|
+
}
|
|
1598
|
+
};
|
|
1599
|
+
return mutationOptions;
|
|
1600
|
+
};
|
|
1601
|
+
const deleteCartShippingGroupMutation = (options) => {
|
|
1602
|
+
const mutationOptions = {
|
|
1603
|
+
mutationFn: async (localOptions) => {
|
|
1604
|
+
const { data } = await (0, import_sdk.deleteCartShippingGroup)({
|
|
1605
|
+
...options,
|
|
1606
|
+
...localOptions,
|
|
1607
|
+
throwOnError: true
|
|
1608
|
+
});
|
|
1609
|
+
return data;
|
|
1610
|
+
}
|
|
1611
|
+
};
|
|
1612
|
+
return mutationOptions;
|
|
1613
|
+
};
|
|
1614
|
+
const getShippingGroupByIdQueryKey = (options) => [createQueryKey("getShippingGroupById", options)];
|
|
1615
|
+
const getShippingGroupByIdOptions = (options) => {
|
|
1616
|
+
return (0, import_react_query.queryOptions)({
|
|
1617
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1618
|
+
const { data } = await (0, import_sdk.getShippingGroupById)({
|
|
1619
|
+
...options,
|
|
1620
|
+
...queryKey[0],
|
|
1621
|
+
signal,
|
|
1622
|
+
throwOnError: true
|
|
1623
|
+
});
|
|
1624
|
+
return data;
|
|
1625
|
+
},
|
|
1626
|
+
queryKey: getShippingGroupByIdQueryKey(options)
|
|
1627
|
+
});
|
|
1628
|
+
};
|
|
1629
|
+
const updateShippingGroupMutation = (options) => {
|
|
1630
|
+
const mutationOptions = {
|
|
1631
|
+
mutationFn: async (localOptions) => {
|
|
1632
|
+
const { data } = await (0, import_sdk.updateShippingGroup)({
|
|
1633
|
+
...options,
|
|
1634
|
+
...localOptions,
|
|
1635
|
+
throwOnError: true
|
|
1636
|
+
});
|
|
1637
|
+
return data;
|
|
1638
|
+
}
|
|
1639
|
+
};
|
|
1640
|
+
return mutationOptions;
|
|
1641
|
+
};
|
|
1539
1642
|
const createCartPaymentIntentQueryKey = (options) => [createQueryKey("createCartPaymentIntent", options)];
|
|
1540
1643
|
const createCartPaymentIntentOptions = (options) => {
|
|
1541
1644
|
return (0, import_react_query.queryOptions)({
|
|
@@ -1564,6 +1667,19 @@ const createCartPaymentIntentMutation = (options) => {
|
|
|
1564
1667
|
};
|
|
1565
1668
|
return mutationOptions;
|
|
1566
1669
|
};
|
|
1670
|
+
const updateCartPaymentIntentMutation = (options) => {
|
|
1671
|
+
const mutationOptions = {
|
|
1672
|
+
mutationFn: async (localOptions) => {
|
|
1673
|
+
const { data } = await (0, import_sdk.updateCartPaymentIntent)({
|
|
1674
|
+
...options,
|
|
1675
|
+
...localOptions,
|
|
1676
|
+
throwOnError: true
|
|
1677
|
+
});
|
|
1678
|
+
return data;
|
|
1679
|
+
}
|
|
1680
|
+
};
|
|
1681
|
+
return mutationOptions;
|
|
1682
|
+
};
|
|
1567
1683
|
const checkoutApiQueryKey = (options) => [
|
|
1568
1684
|
createQueryKey("checkoutApi", options)
|
|
1569
1685
|
];
|
|
@@ -1684,6 +1800,36 @@ const anonymizeOrdersMutation = (options) => {
|
|
|
1684
1800
|
};
|
|
1685
1801
|
return mutationOptions;
|
|
1686
1802
|
};
|
|
1803
|
+
const confirmOrderQueryKey = (options) => [
|
|
1804
|
+
createQueryKey("confirmOrder", options)
|
|
1805
|
+
];
|
|
1806
|
+
const confirmOrderOptions = (options) => {
|
|
1807
|
+
return (0, import_react_query.queryOptions)({
|
|
1808
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1809
|
+
const { data } = await (0, import_sdk.confirmOrder)({
|
|
1810
|
+
...options,
|
|
1811
|
+
...queryKey[0],
|
|
1812
|
+
signal,
|
|
1813
|
+
throwOnError: true
|
|
1814
|
+
});
|
|
1815
|
+
return data;
|
|
1816
|
+
},
|
|
1817
|
+
queryKey: confirmOrderQueryKey(options)
|
|
1818
|
+
});
|
|
1819
|
+
};
|
|
1820
|
+
const confirmOrderMutation = (options) => {
|
|
1821
|
+
const mutationOptions = {
|
|
1822
|
+
mutationFn: async (localOptions) => {
|
|
1823
|
+
const { data } = await (0, import_sdk.confirmOrder)({
|
|
1824
|
+
...options,
|
|
1825
|
+
...localOptions,
|
|
1826
|
+
throwOnError: true
|
|
1827
|
+
});
|
|
1828
|
+
return data;
|
|
1829
|
+
}
|
|
1830
|
+
};
|
|
1831
|
+
return mutationOptions;
|
|
1832
|
+
};
|
|
1687
1833
|
const paymentSetupQueryKey = (options) => [
|
|
1688
1834
|
createQueryKey("paymentSetup", options)
|
|
1689
1835
|
];
|
|
@@ -1856,11 +2002,11 @@ const cancelATransactionMutation = (options) => {
|
|
|
1856
2002
|
};
|
|
1857
2003
|
return mutationOptions;
|
|
1858
2004
|
};
|
|
1859
|
-
const
|
|
1860
|
-
const
|
|
2005
|
+
const getOrderShippingGroupsQueryKey = (options) => [createQueryKey("getOrderShippingGroups", options)];
|
|
2006
|
+
const getOrderShippingGroupsOptions = (options) => {
|
|
1861
2007
|
return (0, import_react_query.queryOptions)({
|
|
1862
2008
|
queryFn: async ({ queryKey, signal }) => {
|
|
1863
|
-
const { data } = await (0, import_sdk.
|
|
2009
|
+
const { data } = await (0, import_sdk.getOrderShippingGroups)({
|
|
1864
2010
|
...options,
|
|
1865
2011
|
...queryKey[0],
|
|
1866
2012
|
signal,
|
|
@@ -1868,16 +2014,42 @@ const getSubscriptionProductOptions = (options) => {
|
|
|
1868
2014
|
});
|
|
1869
2015
|
return data;
|
|
1870
2016
|
},
|
|
1871
|
-
queryKey:
|
|
2017
|
+
queryKey: getOrderShippingGroupsQueryKey(options)
|
|
1872
2018
|
});
|
|
1873
2019
|
};
|
|
1874
|
-
const
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
2020
|
+
const createOrderShippingGroupQueryKey = (options) => [createQueryKey("createOrderShippingGroup", options)];
|
|
2021
|
+
const createOrderShippingGroupOptions = (options) => {
|
|
2022
|
+
return (0, import_react_query.queryOptions)({
|
|
2023
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2024
|
+
const { data } = await (0, import_sdk.createOrderShippingGroup)({
|
|
2025
|
+
...options,
|
|
2026
|
+
...queryKey[0],
|
|
2027
|
+
signal,
|
|
2028
|
+
throwOnError: true
|
|
2029
|
+
});
|
|
2030
|
+
return data;
|
|
2031
|
+
},
|
|
2032
|
+
queryKey: createOrderShippingGroupQueryKey(options)
|
|
2033
|
+
});
|
|
2034
|
+
};
|
|
2035
|
+
const createOrderShippingGroupMutation = (options) => {
|
|
2036
|
+
const mutationOptions = {
|
|
2037
|
+
mutationFn: async (localOptions) => {
|
|
2038
|
+
const { data } = await (0, import_sdk.createOrderShippingGroup)({
|
|
2039
|
+
...options,
|
|
2040
|
+
...localOptions,
|
|
2041
|
+
throwOnError: true
|
|
2042
|
+
});
|
|
2043
|
+
return data;
|
|
2044
|
+
}
|
|
2045
|
+
};
|
|
2046
|
+
return mutationOptions;
|
|
2047
|
+
};
|
|
2048
|
+
const getShippingGroupsByIdQueryKey = (options) => [createQueryKey("getShippingGroupsById", options)];
|
|
2049
|
+
const getShippingGroupsByIdOptions = (options) => {
|
|
1878
2050
|
return (0, import_react_query.queryOptions)({
|
|
1879
2051
|
queryFn: async ({ queryKey, signal }) => {
|
|
1880
|
-
const { data } = await (0, import_sdk.
|
|
2052
|
+
const { data } = await (0, import_sdk.getShippingGroupsById)({
|
|
1881
2053
|
...options,
|
|
1882
2054
|
...queryKey[0],
|
|
1883
2055
|
signal,
|
|
@@ -1885,9 +2057,22 @@ const getPlanOptions = (options) => {
|
|
|
1885
2057
|
});
|
|
1886
2058
|
return data;
|
|
1887
2059
|
},
|
|
1888
|
-
queryKey:
|
|
2060
|
+
queryKey: getShippingGroupsByIdQueryKey(options)
|
|
1889
2061
|
});
|
|
1890
2062
|
};
|
|
2063
|
+
const putShippingGroupByIdMutation = (options) => {
|
|
2064
|
+
const mutationOptions = {
|
|
2065
|
+
mutationFn: async (localOptions) => {
|
|
2066
|
+
const { data } = await (0, import_sdk.putShippingGroupById)({
|
|
2067
|
+
...options,
|
|
2068
|
+
...localOptions,
|
|
2069
|
+
throwOnError: true
|
|
2070
|
+
});
|
|
2071
|
+
return data;
|
|
2072
|
+
}
|
|
2073
|
+
};
|
|
2074
|
+
return mutationOptions;
|
|
2075
|
+
};
|
|
1891
2076
|
const listOfferingsQueryKey = (options) => [
|
|
1892
2077
|
createQueryKey("listOfferings", options)
|
|
1893
2078
|
];
|
|
@@ -1922,11 +2107,11 @@ const getOfferingOptions = (options) => {
|
|
|
1922
2107
|
queryKey: getOfferingQueryKey(options)
|
|
1923
2108
|
});
|
|
1924
2109
|
};
|
|
1925
|
-
const
|
|
1926
|
-
const
|
|
2110
|
+
const listOfferingPricingOptionsQueryKey = (options) => [createQueryKey("listOfferingPricingOptions", options)];
|
|
2111
|
+
const listOfferingPricingOptionsOptions = (options) => {
|
|
1927
2112
|
return (0, import_react_query.queryOptions)({
|
|
1928
2113
|
queryFn: async ({ queryKey, signal }) => {
|
|
1929
|
-
const { data } = await (0, import_sdk.
|
|
2114
|
+
const { data } = await (0, import_sdk.listOfferingPricingOptions)({
|
|
1930
2115
|
...options,
|
|
1931
2116
|
...queryKey[0],
|
|
1932
2117
|
signal,
|
|
@@ -1934,7 +2119,7 @@ const listOfferingPlansOptions = (options) => {
|
|
|
1934
2119
|
});
|
|
1935
2120
|
return data;
|
|
1936
2121
|
},
|
|
1937
|
-
queryKey:
|
|
2122
|
+
queryKey: listOfferingPricingOptionsQueryKey(options)
|
|
1938
2123
|
});
|
|
1939
2124
|
};
|
|
1940
2125
|
const listOfferingFeaturesQueryKey = (options) => [createQueryKey("listOfferingFeatures", options)];
|
|
@@ -1952,11 +2137,26 @@ const listOfferingFeaturesOptions = (options) => {
|
|
|
1952
2137
|
queryKey: listOfferingFeaturesQueryKey(options)
|
|
1953
2138
|
});
|
|
1954
2139
|
};
|
|
1955
|
-
const
|
|
1956
|
-
const
|
|
2140
|
+
const listOfferingPlansQueryKey = (options) => [createQueryKey("listOfferingPlans", options)];
|
|
2141
|
+
const listOfferingPlansOptions = (options) => {
|
|
2142
|
+
return (0, import_react_query.queryOptions)({
|
|
2143
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2144
|
+
const { data } = await (0, import_sdk.listOfferingPlans)({
|
|
2145
|
+
...options,
|
|
2146
|
+
...queryKey[0],
|
|
2147
|
+
signal,
|
|
2148
|
+
throwOnError: true
|
|
2149
|
+
});
|
|
2150
|
+
return data;
|
|
2151
|
+
},
|
|
2152
|
+
queryKey: listOfferingPlansQueryKey(options)
|
|
2153
|
+
});
|
|
2154
|
+
};
|
|
2155
|
+
const listOfferingPlanPricingOptionsQueryKey = (options) => [createQueryKey("listOfferingPlanPricingOptions", options)];
|
|
2156
|
+
const listOfferingPlanPricingOptionsOptions = (options) => {
|
|
1957
2157
|
return (0, import_react_query.queryOptions)({
|
|
1958
2158
|
queryFn: async ({ queryKey, signal }) => {
|
|
1959
|
-
const { data } = await (0, import_sdk.
|
|
2159
|
+
const { data } = await (0, import_sdk.listOfferingPlanPricingOptions)({
|
|
1960
2160
|
...options,
|
|
1961
2161
|
...queryKey[0],
|
|
1962
2162
|
signal,
|
|
@@ -1964,7 +2164,7 @@ const listOfferingProductsOptions = (options) => {
|
|
|
1964
2164
|
});
|
|
1965
2165
|
return data;
|
|
1966
2166
|
},
|
|
1967
|
-
queryKey:
|
|
2167
|
+
queryKey: listOfferingPlanPricingOptionsQueryKey(options)
|
|
1968
2168
|
});
|
|
1969
2169
|
};
|
|
1970
2170
|
const listSubscriptionsQueryKey = (options) => [createQueryKey("listSubscriptions", options)];
|
|
@@ -1997,11 +2197,11 @@ const getSubscriptionOptions = (options) => {
|
|
|
1997
2197
|
queryKey: getSubscriptionQueryKey(options)
|
|
1998
2198
|
});
|
|
1999
2199
|
};
|
|
2000
|
-
const
|
|
2001
|
-
const
|
|
2200
|
+
const listSubscriptionPlansQueryKey = (options) => [createQueryKey("listSubscriptionPlans", options)];
|
|
2201
|
+
const listSubscriptionPlansOptions = (options) => {
|
|
2002
2202
|
return (0, import_react_query.queryOptions)({
|
|
2003
2203
|
queryFn: async ({ queryKey, signal }) => {
|
|
2004
|
-
const { data } = await (0, import_sdk.
|
|
2204
|
+
const { data } = await (0, import_sdk.listSubscriptionPlans)({
|
|
2005
2205
|
...options,
|
|
2006
2206
|
...queryKey[0],
|
|
2007
2207
|
signal,
|
|
@@ -2009,14 +2209,14 @@ const listSubscriptionProductsOptions = (options) => {
|
|
|
2009
2209
|
});
|
|
2010
2210
|
return data;
|
|
2011
2211
|
},
|
|
2012
|
-
queryKey:
|
|
2212
|
+
queryKey: listSubscriptionPlansQueryKey(options)
|
|
2013
2213
|
});
|
|
2014
2214
|
};
|
|
2015
|
-
const
|
|
2016
|
-
const
|
|
2215
|
+
const listSubscriptionPricingOptionsQueryKey = (options) => [createQueryKey("listSubscriptionPricingOptions", options)];
|
|
2216
|
+
const listSubscriptionPricingOptionsOptions = (options) => {
|
|
2017
2217
|
return (0, import_react_query.queryOptions)({
|
|
2018
2218
|
queryFn: async ({ queryKey, signal }) => {
|
|
2019
|
-
const { data } = await (0, import_sdk.
|
|
2219
|
+
const { data } = await (0, import_sdk.listSubscriptionPricingOptions)({
|
|
2020
2220
|
...options,
|
|
2021
2221
|
...queryKey[0],
|
|
2022
2222
|
signal,
|
|
@@ -2024,7 +2224,7 @@ const listSubscriptionPlansOptions = (options) => {
|
|
|
2024
2224
|
});
|
|
2025
2225
|
return data;
|
|
2026
2226
|
},
|
|
2027
|
-
queryKey:
|
|
2227
|
+
queryKey: listSubscriptionPricingOptionsQueryKey(options)
|
|
2028
2228
|
});
|
|
2029
2229
|
};
|
|
2030
2230
|
const listSubscriptionStatesQueryKey = (options) => [createQueryKey("listSubscriptionStates", options)];
|
|
@@ -2599,6 +2799,9 @@ const getAFileOptions = (options) => {
|
|
|
2599
2799
|
configureByContextProductMutation,
|
|
2600
2800
|
configureByContextProductOptions,
|
|
2601
2801
|
configureByContextProductQueryKey,
|
|
2802
|
+
confirmOrderMutation,
|
|
2803
|
+
confirmOrderOptions,
|
|
2804
|
+
confirmOrderQueryKey,
|
|
2602
2805
|
confirmPaymentMutation,
|
|
2603
2806
|
confirmPaymentOptions,
|
|
2604
2807
|
confirmPaymentQueryKey,
|
|
@@ -2623,15 +2826,22 @@ const getAFileOptions = (options) => {
|
|
|
2623
2826
|
createOneTimePasswordTokenRequestMutation,
|
|
2624
2827
|
createOneTimePasswordTokenRequestOptions,
|
|
2625
2828
|
createOneTimePasswordTokenRequestQueryKey,
|
|
2829
|
+
createOrderShippingGroupMutation,
|
|
2830
|
+
createOrderShippingGroupOptions,
|
|
2831
|
+
createOrderShippingGroupQueryKey,
|
|
2626
2832
|
createRuleMutation,
|
|
2627
2833
|
createRuleOptions,
|
|
2628
2834
|
createRuleQueryKey,
|
|
2835
|
+
createShippingGroupMutation,
|
|
2836
|
+
createShippingGroupOptions,
|
|
2837
|
+
createShippingGroupQueryKey,
|
|
2629
2838
|
deleteACartItemMutation,
|
|
2630
2839
|
deleteACartMutation,
|
|
2631
2840
|
deleteAPromotionViaPromotionCodeMutation,
|
|
2632
2841
|
deleteATaxItemMutation,
|
|
2633
2842
|
deleteAccountCartAssociationMutation,
|
|
2634
2843
|
deleteAllCartItemsMutation,
|
|
2844
|
+
deleteCartShippingGroupMutation,
|
|
2635
2845
|
deleteCatalogByIdMutation,
|
|
2636
2846
|
deleteCustomDiscountFromCartItemMutation,
|
|
2637
2847
|
deleteCustomDiscountFromCartMutation,
|
|
@@ -2640,6 +2850,8 @@ const getAFileOptions = (options) => {
|
|
|
2640
2850
|
deleteReleasesMutation,
|
|
2641
2851
|
deleteRuleByIdMutation,
|
|
2642
2852
|
deleteV2AccountAddressMutation,
|
|
2853
|
+
getACartOptions,
|
|
2854
|
+
getACartQueryKey,
|
|
2643
2855
|
getACurrencyOptions,
|
|
2644
2856
|
getACurrencyQueryKey,
|
|
2645
2857
|
getAFileOptions,
|
|
@@ -2692,8 +2904,6 @@ const getAFileOptions = (options) => {
|
|
|
2692
2904
|
getByContextReleaseQueryKey,
|
|
2693
2905
|
getCartItemsOptions,
|
|
2694
2906
|
getCartItemsQueryKey,
|
|
2695
|
-
getCartOptions,
|
|
2696
|
-
getCartQueryKey,
|
|
2697
2907
|
getCartsOptions,
|
|
2698
2908
|
getCartsQueryKey,
|
|
2699
2909
|
getCatalogByIdOptions,
|
|
@@ -2724,10 +2934,10 @@ const getAFileOptions = (options) => {
|
|
|
2724
2934
|
getOfferingQueryKey,
|
|
2725
2935
|
getOrderItemsOptions,
|
|
2726
2936
|
getOrderItemsQueryKey,
|
|
2937
|
+
getOrderShippingGroupsOptions,
|
|
2938
|
+
getOrderShippingGroupsQueryKey,
|
|
2727
2939
|
getOrderTransactionsOptions,
|
|
2728
2940
|
getOrderTransactionsQueryKey,
|
|
2729
|
-
getPlanOptions,
|
|
2730
|
-
getPlanQueryKey,
|
|
2731
2941
|
getProductOptions,
|
|
2732
2942
|
getProductQueryKey,
|
|
2733
2943
|
getProductsForHierarchyOptions,
|
|
@@ -2742,6 +2952,12 @@ const getAFileOptions = (options) => {
|
|
|
2742
2952
|
getRuleByIdQueryKey,
|
|
2743
2953
|
getRulesOptions,
|
|
2744
2954
|
getRulesQueryKey,
|
|
2955
|
+
getShippingGroupByIdOptions,
|
|
2956
|
+
getShippingGroupByIdQueryKey,
|
|
2957
|
+
getShippingGroupsByIdOptions,
|
|
2958
|
+
getShippingGroupsByIdQueryKey,
|
|
2959
|
+
getShippingGroupsOptions,
|
|
2960
|
+
getShippingGroupsQueryKey,
|
|
2745
2961
|
getStockOptions,
|
|
2746
2962
|
getStockQueryKey,
|
|
2747
2963
|
getSubscriptionInvoiceOptions,
|
|
@@ -2749,8 +2965,6 @@ const getAFileOptions = (options) => {
|
|
|
2749
2965
|
getSubscriptionInvoicePaymentQueryKey,
|
|
2750
2966
|
getSubscriptionInvoiceQueryKey,
|
|
2751
2967
|
getSubscriptionOptions,
|
|
2752
|
-
getSubscriptionProductOptions,
|
|
2753
|
-
getSubscriptionProductQueryKey,
|
|
2754
2968
|
getSubscriptionQueryKey,
|
|
2755
2969
|
getSubscriptionStateOptions,
|
|
2756
2970
|
getSubscriptionStateQueryKey,
|
|
@@ -2774,10 +2988,12 @@ const getAFileOptions = (options) => {
|
|
|
2774
2988
|
listLocationsQueryKey,
|
|
2775
2989
|
listOfferingFeaturesOptions,
|
|
2776
2990
|
listOfferingFeaturesQueryKey,
|
|
2991
|
+
listOfferingPlanPricingOptionsOptions,
|
|
2992
|
+
listOfferingPlanPricingOptionsQueryKey,
|
|
2777
2993
|
listOfferingPlansOptions,
|
|
2778
2994
|
listOfferingPlansQueryKey,
|
|
2779
|
-
|
|
2780
|
-
|
|
2995
|
+
listOfferingPricingOptionsOptions,
|
|
2996
|
+
listOfferingPricingOptionsQueryKey,
|
|
2781
2997
|
listOfferingsOptions,
|
|
2782
2998
|
listOfferingsQueryKey,
|
|
2783
2999
|
listSubscriptionInvoicePaymentsOptions,
|
|
@@ -2786,8 +3002,8 @@ const getAFileOptions = (options) => {
|
|
|
2786
3002
|
listSubscriptionInvoicesQueryKey,
|
|
2787
3003
|
listSubscriptionPlansOptions,
|
|
2788
3004
|
listSubscriptionPlansQueryKey,
|
|
2789
|
-
|
|
2790
|
-
|
|
3005
|
+
listSubscriptionPricingOptionsOptions,
|
|
3006
|
+
listSubscriptionPricingOptionsQueryKey,
|
|
2791
3007
|
listSubscriptionStatesOptions,
|
|
2792
3008
|
listSubscriptionStatesQueryKey,
|
|
2793
3009
|
listSubscriptionsOptions,
|
|
@@ -2810,6 +3026,7 @@ const getAFileOptions = (options) => {
|
|
|
2810
3026
|
publishReleaseMutation,
|
|
2811
3027
|
publishReleaseOptions,
|
|
2812
3028
|
publishReleaseQueryKey,
|
|
3029
|
+
putShippingGroupByIdMutation,
|
|
2813
3030
|
putV2AccountAddressMutation,
|
|
2814
3031
|
putV2AccountsAccountIdMutation,
|
|
2815
3032
|
refundATransactionMutation,
|
|
@@ -2819,10 +3036,12 @@ const getAFileOptions = (options) => {
|
|
|
2819
3036
|
updateACartMutation,
|
|
2820
3037
|
updateATaxItemMutation,
|
|
2821
3038
|
updateAnOrderMutation,
|
|
3039
|
+
updateCartPaymentIntentMutation,
|
|
2822
3040
|
updateCatalogMutation,
|
|
2823
3041
|
updateCustomDiscountForCartItemMutation,
|
|
2824
3042
|
updateCustomDiscountForCartMutation,
|
|
2825
3043
|
updatePasswordProfileInfoMutation,
|
|
2826
|
-
updateRuleMutation
|
|
3044
|
+
updateRuleMutation,
|
|
3045
|
+
updateShippingGroupMutation
|
|
2827
3046
|
});
|
|
2828
3047
|
//# sourceMappingURL=react-query.gen.cjs.map
|