@epcc-sdk/sdks-shopper 0.0.33 → 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 +23 -1
- package/dist/client/@tanstack/react-query.gen.cjs +251 -11
- package/dist/client/@tanstack/react-query.gen.cjs.map +1 -1
- package/dist/client/@tanstack/react-query.gen.d.cts +289 -303
- package/dist/client/@tanstack/react-query.gen.d.ts +289 -303
- package/dist/client/@tanstack/react-query.gen.mjs +239 -9
- 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 +179 -5
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +134 -110
- package/dist/client/sdk.gen.d.ts +134 -110
- package/dist/client/sdk.gen.mjs +166 -3
- package/dist/client/sdk.gen.mjs.map +1 -1
- package/dist/client/transformers.gen.cjs +124 -2
- package/dist/client/transformers.gen.cjs.map +1 -1
- package/dist/client/transformers.gen.d.cts +13 -2
- package/dist/client/transformers.gen.d.ts +13 -2
- package/dist/client/transformers.gen.mjs +112 -1
- package/dist/client/transformers.gen.mjs.map +1 -1
- package/dist/client/types.gen.cjs.map +1 -1
- package/dist/client/types.gen.d.cts +1788 -1187
- package/dist/client/types.gen.d.ts +1788 -1187
- 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
package/README.md
CHANGED
|
@@ -326,7 +326,7 @@ const product = await getByContextProduct({
|
|
|
326
326
|
|
|
327
327
|
- **`deleteACart`** (`DELETE /v2/carts/{cartID}`)
|
|
328
328
|
|
|
329
|
-
- **`
|
|
329
|
+
- **`getACart`** (`GET /v2/carts/{cartID}`)
|
|
330
330
|
|
|
331
331
|
- **`updateACart`** (`PUT /v2/carts/{cartID}`)
|
|
332
332
|
|
|
@@ -376,8 +376,20 @@ const product = await getByContextProduct({
|
|
|
376
376
|
|
|
377
377
|
- **`updateCustomDiscountForCartItem`** (`PUT /v2/carts/{cartID}/items/{cartitemID}/custom-discounts/{customdiscountID}`)
|
|
378
378
|
|
|
379
|
+
- **`getShippingGroups`** (`GET /v2/carts/{cartID}/shipping-groups`)
|
|
380
|
+
|
|
381
|
+
- **`createShippingGroup`** (`POST /v2/carts/{cartID}/shipping-groups`)
|
|
382
|
+
|
|
383
|
+
- **`deleteCartShippingGroup`** (`DELETE /v2/carts/{cartId}/shipping-groups/{shippingGroupId}`)
|
|
384
|
+
|
|
385
|
+
- **`getShippingGroupById`** (`GET /v2/carts/{cartId}/shipping-groups/{shippingGroupId}`)
|
|
386
|
+
|
|
387
|
+
- **`updateShippingGroup`** (`PUT /v2/carts/{cartId}/shipping-groups/{shippingGroupId}`)
|
|
388
|
+
|
|
379
389
|
- **`createCartPaymentIntent`** (`POST /v2/carts/{cartID}/payments`)
|
|
380
390
|
|
|
391
|
+
- **`updateCartPaymentIntent`** (`PUT /v2/carts/{cartID}/payments/{paymentIntentID}`)
|
|
392
|
+
|
|
381
393
|
- **`checkoutApi`** (`POST /v2/carts/{cartID}/checkout`)
|
|
382
394
|
|
|
383
395
|
- **`getCustomerOrders`** (`GET /v2/orders`)
|
|
@@ -390,6 +402,8 @@ const product = await getByContextProduct({
|
|
|
390
402
|
|
|
391
403
|
- **`anonymizeOrders`** (`POST /v2/orders/anonymize`)
|
|
392
404
|
|
|
405
|
+
- **`confirmOrder`** (`POST /v2/orders/{orderID}/confirm`)
|
|
406
|
+
|
|
393
407
|
- **`paymentSetup`** (`POST /v2/orders/{orderID}/payments`)
|
|
394
408
|
|
|
395
409
|
- **`confirmPayment`** (`POST /v2/orders/{orderID}/transactions/{transactionID}/confirm`)
|
|
@@ -404,6 +418,14 @@ const product = await getByContextProduct({
|
|
|
404
418
|
|
|
405
419
|
- **`cancelATransaction`** (`POST /v2/orders/{orderID}/transactions/{transactionID}/cancel`)
|
|
406
420
|
|
|
421
|
+
- **`getOrderShippingGroups`** (`GET /v2/orders/{orderID}/shipping-groups`)
|
|
422
|
+
|
|
423
|
+
- **`createOrderShippingGroup`** (`POST /v2/orders/{orderID}/shipping-groups`)
|
|
424
|
+
|
|
425
|
+
- **`getShippingGroupsById`** (`GET /v2/orders/{orderID}/shipping-groups/{shippingGroupID}`)
|
|
426
|
+
|
|
427
|
+
- **`putShippingGroupById`** (`PUT /v2/orders/{orderID}/shipping-groups/{shippingGroupID}`)
|
|
428
|
+
|
|
407
429
|
- **`listOfferings`** (`GET /v2/subscriptions/offerings`)
|
|
408
430
|
|
|
409
431
|
- **`getOffering`** (`GET /v2/subscriptions/offerings/{offering_uuid}`)
|
|
@@ -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,6 +183,8 @@ __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
190
|
getProductOptions: () => getProductOptions,
|
|
@@ -189,6 +201,12 @@ __export(react_query_gen_exports, {
|
|
|
189
201
|
getRuleByIdQueryKey: () => getRuleByIdQueryKey,
|
|
190
202
|
getRulesOptions: () => getRulesOptions,
|
|
191
203
|
getRulesQueryKey: () => getRulesQueryKey,
|
|
204
|
+
getShippingGroupByIdOptions: () => getShippingGroupByIdOptions,
|
|
205
|
+
getShippingGroupByIdQueryKey: () => getShippingGroupByIdQueryKey,
|
|
206
|
+
getShippingGroupsByIdOptions: () => getShippingGroupsByIdOptions,
|
|
207
|
+
getShippingGroupsByIdQueryKey: () => getShippingGroupsByIdQueryKey,
|
|
208
|
+
getShippingGroupsOptions: () => getShippingGroupsOptions,
|
|
209
|
+
getShippingGroupsQueryKey: () => getShippingGroupsQueryKey,
|
|
192
210
|
getStockOptions: () => getStockOptions,
|
|
193
211
|
getStockQueryKey: () => getStockQueryKey,
|
|
194
212
|
getSubscriptionInvoiceOptions: () => getSubscriptionInvoiceOptions,
|
|
@@ -257,6 +275,7 @@ __export(react_query_gen_exports, {
|
|
|
257
275
|
publishReleaseMutation: () => publishReleaseMutation,
|
|
258
276
|
publishReleaseOptions: () => publishReleaseOptions,
|
|
259
277
|
publishReleaseQueryKey: () => publishReleaseQueryKey,
|
|
278
|
+
putShippingGroupByIdMutation: () => putShippingGroupByIdMutation,
|
|
260
279
|
putV2AccountAddressMutation: () => putV2AccountAddressMutation,
|
|
261
280
|
putV2AccountsAccountIdMutation: () => putV2AccountsAccountIdMutation,
|
|
262
281
|
refundATransactionMutation: () => refundATransactionMutation,
|
|
@@ -266,11 +285,13 @@ __export(react_query_gen_exports, {
|
|
|
266
285
|
updateACartMutation: () => updateACartMutation,
|
|
267
286
|
updateATaxItemMutation: () => updateATaxItemMutation,
|
|
268
287
|
updateAnOrderMutation: () => updateAnOrderMutation,
|
|
288
|
+
updateCartPaymentIntentMutation: () => updateCartPaymentIntentMutation,
|
|
269
289
|
updateCatalogMutation: () => updateCatalogMutation,
|
|
270
290
|
updateCustomDiscountForCartItemMutation: () => updateCustomDiscountForCartItemMutation,
|
|
271
291
|
updateCustomDiscountForCartMutation: () => updateCustomDiscountForCartMutation,
|
|
272
292
|
updatePasswordProfileInfoMutation: () => updatePasswordProfileInfoMutation,
|
|
273
|
-
updateRuleMutation: () => updateRuleMutation
|
|
293
|
+
updateRuleMutation: () => updateRuleMutation,
|
|
294
|
+
updateShippingGroupMutation: () => updateShippingGroupMutation
|
|
274
295
|
});
|
|
275
296
|
module.exports = __toCommonJS(react_query_gen_exports);
|
|
276
297
|
var import_react_query = require("@tanstack/react-query");
|
|
@@ -1094,13 +1115,13 @@ const deleteACartMutation = (options) => {
|
|
|
1094
1115
|
};
|
|
1095
1116
|
return mutationOptions;
|
|
1096
1117
|
};
|
|
1097
|
-
const
|
|
1098
|
-
createQueryKey("
|
|
1118
|
+
const getACartQueryKey = (options) => [
|
|
1119
|
+
createQueryKey("getACart", options)
|
|
1099
1120
|
];
|
|
1100
|
-
const
|
|
1121
|
+
const getACartOptions = (options) => {
|
|
1101
1122
|
return (0, import_react_query.queryOptions)({
|
|
1102
1123
|
queryFn: async ({ queryKey, signal }) => {
|
|
1103
|
-
const { data } = await (0, import_sdk.
|
|
1124
|
+
const { data } = await (0, import_sdk.getACart)({
|
|
1104
1125
|
...options,
|
|
1105
1126
|
...queryKey[0],
|
|
1106
1127
|
signal,
|
|
@@ -1108,7 +1129,7 @@ const getCartOptions = (options) => {
|
|
|
1108
1129
|
});
|
|
1109
1130
|
return data;
|
|
1110
1131
|
},
|
|
1111
|
-
queryKey:
|
|
1132
|
+
queryKey: getACartQueryKey(options)
|
|
1112
1133
|
});
|
|
1113
1134
|
};
|
|
1114
1135
|
const updateACartMutation = (options) => {
|
|
@@ -1534,6 +1555,90 @@ const updateCustomDiscountForCartItemMutation = (options) => {
|
|
|
1534
1555
|
};
|
|
1535
1556
|
return mutationOptions;
|
|
1536
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
|
+
};
|
|
1537
1642
|
const createCartPaymentIntentQueryKey = (options) => [createQueryKey("createCartPaymentIntent", options)];
|
|
1538
1643
|
const createCartPaymentIntentOptions = (options) => {
|
|
1539
1644
|
return (0, import_react_query.queryOptions)({
|
|
@@ -1562,6 +1667,19 @@ const createCartPaymentIntentMutation = (options) => {
|
|
|
1562
1667
|
};
|
|
1563
1668
|
return mutationOptions;
|
|
1564
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
|
+
};
|
|
1565
1683
|
const checkoutApiQueryKey = (options) => [
|
|
1566
1684
|
createQueryKey("checkoutApi", options)
|
|
1567
1685
|
];
|
|
@@ -1682,6 +1800,36 @@ const anonymizeOrdersMutation = (options) => {
|
|
|
1682
1800
|
};
|
|
1683
1801
|
return mutationOptions;
|
|
1684
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
|
+
};
|
|
1685
1833
|
const paymentSetupQueryKey = (options) => [
|
|
1686
1834
|
createQueryKey("paymentSetup", options)
|
|
1687
1835
|
];
|
|
@@ -1854,6 +2002,77 @@ const cancelATransactionMutation = (options) => {
|
|
|
1854
2002
|
};
|
|
1855
2003
|
return mutationOptions;
|
|
1856
2004
|
};
|
|
2005
|
+
const getOrderShippingGroupsQueryKey = (options) => [createQueryKey("getOrderShippingGroups", options)];
|
|
2006
|
+
const getOrderShippingGroupsOptions = (options) => {
|
|
2007
|
+
return (0, import_react_query.queryOptions)({
|
|
2008
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2009
|
+
const { data } = await (0, import_sdk.getOrderShippingGroups)({
|
|
2010
|
+
...options,
|
|
2011
|
+
...queryKey[0],
|
|
2012
|
+
signal,
|
|
2013
|
+
throwOnError: true
|
|
2014
|
+
});
|
|
2015
|
+
return data;
|
|
2016
|
+
},
|
|
2017
|
+
queryKey: getOrderShippingGroupsQueryKey(options)
|
|
2018
|
+
});
|
|
2019
|
+
};
|
|
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) => {
|
|
2050
|
+
return (0, import_react_query.queryOptions)({
|
|
2051
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2052
|
+
const { data } = await (0, import_sdk.getShippingGroupsById)({
|
|
2053
|
+
...options,
|
|
2054
|
+
...queryKey[0],
|
|
2055
|
+
signal,
|
|
2056
|
+
throwOnError: true
|
|
2057
|
+
});
|
|
2058
|
+
return data;
|
|
2059
|
+
},
|
|
2060
|
+
queryKey: getShippingGroupsByIdQueryKey(options)
|
|
2061
|
+
});
|
|
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
|
+
};
|
|
1857
2076
|
const listOfferingsQueryKey = (options) => [
|
|
1858
2077
|
createQueryKey("listOfferings", options)
|
|
1859
2078
|
];
|
|
@@ -2580,6 +2799,9 @@ const getAFileOptions = (options) => {
|
|
|
2580
2799
|
configureByContextProductMutation,
|
|
2581
2800
|
configureByContextProductOptions,
|
|
2582
2801
|
configureByContextProductQueryKey,
|
|
2802
|
+
confirmOrderMutation,
|
|
2803
|
+
confirmOrderOptions,
|
|
2804
|
+
confirmOrderQueryKey,
|
|
2583
2805
|
confirmPaymentMutation,
|
|
2584
2806
|
confirmPaymentOptions,
|
|
2585
2807
|
confirmPaymentQueryKey,
|
|
@@ -2604,15 +2826,22 @@ const getAFileOptions = (options) => {
|
|
|
2604
2826
|
createOneTimePasswordTokenRequestMutation,
|
|
2605
2827
|
createOneTimePasswordTokenRequestOptions,
|
|
2606
2828
|
createOneTimePasswordTokenRequestQueryKey,
|
|
2829
|
+
createOrderShippingGroupMutation,
|
|
2830
|
+
createOrderShippingGroupOptions,
|
|
2831
|
+
createOrderShippingGroupQueryKey,
|
|
2607
2832
|
createRuleMutation,
|
|
2608
2833
|
createRuleOptions,
|
|
2609
2834
|
createRuleQueryKey,
|
|
2835
|
+
createShippingGroupMutation,
|
|
2836
|
+
createShippingGroupOptions,
|
|
2837
|
+
createShippingGroupQueryKey,
|
|
2610
2838
|
deleteACartItemMutation,
|
|
2611
2839
|
deleteACartMutation,
|
|
2612
2840
|
deleteAPromotionViaPromotionCodeMutation,
|
|
2613
2841
|
deleteATaxItemMutation,
|
|
2614
2842
|
deleteAccountCartAssociationMutation,
|
|
2615
2843
|
deleteAllCartItemsMutation,
|
|
2844
|
+
deleteCartShippingGroupMutation,
|
|
2616
2845
|
deleteCatalogByIdMutation,
|
|
2617
2846
|
deleteCustomDiscountFromCartItemMutation,
|
|
2618
2847
|
deleteCustomDiscountFromCartMutation,
|
|
@@ -2621,6 +2850,8 @@ const getAFileOptions = (options) => {
|
|
|
2621
2850
|
deleteReleasesMutation,
|
|
2622
2851
|
deleteRuleByIdMutation,
|
|
2623
2852
|
deleteV2AccountAddressMutation,
|
|
2853
|
+
getACartOptions,
|
|
2854
|
+
getACartQueryKey,
|
|
2624
2855
|
getACurrencyOptions,
|
|
2625
2856
|
getACurrencyQueryKey,
|
|
2626
2857
|
getAFileOptions,
|
|
@@ -2673,8 +2904,6 @@ const getAFileOptions = (options) => {
|
|
|
2673
2904
|
getByContextReleaseQueryKey,
|
|
2674
2905
|
getCartItemsOptions,
|
|
2675
2906
|
getCartItemsQueryKey,
|
|
2676
|
-
getCartOptions,
|
|
2677
|
-
getCartQueryKey,
|
|
2678
2907
|
getCartsOptions,
|
|
2679
2908
|
getCartsQueryKey,
|
|
2680
2909
|
getCatalogByIdOptions,
|
|
@@ -2705,6 +2934,8 @@ const getAFileOptions = (options) => {
|
|
|
2705
2934
|
getOfferingQueryKey,
|
|
2706
2935
|
getOrderItemsOptions,
|
|
2707
2936
|
getOrderItemsQueryKey,
|
|
2937
|
+
getOrderShippingGroupsOptions,
|
|
2938
|
+
getOrderShippingGroupsQueryKey,
|
|
2708
2939
|
getOrderTransactionsOptions,
|
|
2709
2940
|
getOrderTransactionsQueryKey,
|
|
2710
2941
|
getProductOptions,
|
|
@@ -2721,6 +2952,12 @@ const getAFileOptions = (options) => {
|
|
|
2721
2952
|
getRuleByIdQueryKey,
|
|
2722
2953
|
getRulesOptions,
|
|
2723
2954
|
getRulesQueryKey,
|
|
2955
|
+
getShippingGroupByIdOptions,
|
|
2956
|
+
getShippingGroupByIdQueryKey,
|
|
2957
|
+
getShippingGroupsByIdOptions,
|
|
2958
|
+
getShippingGroupsByIdQueryKey,
|
|
2959
|
+
getShippingGroupsOptions,
|
|
2960
|
+
getShippingGroupsQueryKey,
|
|
2724
2961
|
getStockOptions,
|
|
2725
2962
|
getStockQueryKey,
|
|
2726
2963
|
getSubscriptionInvoiceOptions,
|
|
@@ -2789,6 +3026,7 @@ const getAFileOptions = (options) => {
|
|
|
2789
3026
|
publishReleaseMutation,
|
|
2790
3027
|
publishReleaseOptions,
|
|
2791
3028
|
publishReleaseQueryKey,
|
|
3029
|
+
putShippingGroupByIdMutation,
|
|
2792
3030
|
putV2AccountAddressMutation,
|
|
2793
3031
|
putV2AccountsAccountIdMutation,
|
|
2794
3032
|
refundATransactionMutation,
|
|
@@ -2798,10 +3036,12 @@ const getAFileOptions = (options) => {
|
|
|
2798
3036
|
updateACartMutation,
|
|
2799
3037
|
updateATaxItemMutation,
|
|
2800
3038
|
updateAnOrderMutation,
|
|
3039
|
+
updateCartPaymentIntentMutation,
|
|
2801
3040
|
updateCatalogMutation,
|
|
2802
3041
|
updateCustomDiscountForCartItemMutation,
|
|
2803
3042
|
updateCustomDiscountForCartMutation,
|
|
2804
3043
|
updatePasswordProfileInfoMutation,
|
|
2805
|
-
updateRuleMutation
|
|
3044
|
+
updateRuleMutation,
|
|
3045
|
+
updateShippingGroupMutation
|
|
2806
3046
|
});
|
|
2807
3047
|
//# sourceMappingURL=react-query.gen.cjs.map
|