@epcc-sdk/sdks-shopper 0.0.33 → 0.0.35
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 +25 -1
- package/dist/client/@tanstack/react-query.gen.cjs +285 -11
- package/dist/client/@tanstack/react-query.gen.cjs.map +1 -1
- package/dist/client/@tanstack/react-query.gen.d.cts +311 -303
- package/dist/client/@tanstack/react-query.gen.d.ts +311 -303
- package/dist/client/@tanstack/react-query.gen.mjs +271 -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 +197 -5
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +148 -110
- package/dist/client/sdk.gen.d.ts +148 -110
- package/dist/client/sdk.gen.mjs +183 -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 +1811 -1175
- package/dist/client/types.gen.d.ts +1811 -1175
- 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}`)
|
|
@@ -426,6 +448,8 @@ const product = await getByContextProduct({
|
|
|
426
448
|
|
|
427
449
|
- **`listSubscriptionStates`** (`GET /v2/subscriptions/subscriptions/{subscription_uuid}/states`)
|
|
428
450
|
|
|
451
|
+
- **`createSubscriptionState`** (`POST /v2/subscriptions/subscriptions/{subscription_uuid}/states`)
|
|
452
|
+
|
|
429
453
|
- **`getSubscriptionState`** (`GET /v2/subscriptions/subscriptions/{subscription_uuid}/states/{state_uuid}`)
|
|
430
454
|
|
|
431
455
|
- **`listSubscriptionInvoices`** (`GET /v2/subscriptions/subscriptions/{subscription_uuid}/invoices`)
|
|
@@ -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,25 @@ __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,
|
|
87
|
+
createSubscriptionStateMutation: () => createSubscriptionStateMutation,
|
|
88
|
+
createSubscriptionStateOptions: () => createSubscriptionStateOptions,
|
|
89
|
+
createSubscriptionStateQueryKey: () => createSubscriptionStateQueryKey,
|
|
78
90
|
deleteACartItemMutation: () => deleteACartItemMutation,
|
|
79
91
|
deleteACartMutation: () => deleteACartMutation,
|
|
80
92
|
deleteAPromotionViaPromotionCodeMutation: () => deleteAPromotionViaPromotionCodeMutation,
|
|
81
93
|
deleteATaxItemMutation: () => deleteATaxItemMutation,
|
|
82
94
|
deleteAccountCartAssociationMutation: () => deleteAccountCartAssociationMutation,
|
|
83
95
|
deleteAllCartItemsMutation: () => deleteAllCartItemsMutation,
|
|
96
|
+
deleteCartShippingGroupMutation: () => deleteCartShippingGroupMutation,
|
|
84
97
|
deleteCatalogByIdMutation: () => deleteCatalogByIdMutation,
|
|
85
98
|
deleteCustomDiscountFromCartItemMutation: () => deleteCustomDiscountFromCartItemMutation,
|
|
86
99
|
deleteCustomDiscountFromCartMutation: () => deleteCustomDiscountFromCartMutation,
|
|
@@ -89,6 +102,8 @@ __export(react_query_gen_exports, {
|
|
|
89
102
|
deleteReleasesMutation: () => deleteReleasesMutation,
|
|
90
103
|
deleteRuleByIdMutation: () => deleteRuleByIdMutation,
|
|
91
104
|
deleteV2AccountAddressMutation: () => deleteV2AccountAddressMutation,
|
|
105
|
+
getACartOptions: () => getACartOptions,
|
|
106
|
+
getACartQueryKey: () => getACartQueryKey,
|
|
92
107
|
getACurrencyOptions: () => getACurrencyOptions,
|
|
93
108
|
getACurrencyQueryKey: () => getACurrencyQueryKey,
|
|
94
109
|
getAFileOptions: () => getAFileOptions,
|
|
@@ -141,8 +156,6 @@ __export(react_query_gen_exports, {
|
|
|
141
156
|
getByContextReleaseQueryKey: () => getByContextReleaseQueryKey,
|
|
142
157
|
getCartItemsOptions: () => getCartItemsOptions,
|
|
143
158
|
getCartItemsQueryKey: () => getCartItemsQueryKey,
|
|
144
|
-
getCartOptions: () => getCartOptions,
|
|
145
|
-
getCartQueryKey: () => getCartQueryKey,
|
|
146
159
|
getCartsOptions: () => getCartsOptions,
|
|
147
160
|
getCartsQueryKey: () => getCartsQueryKey,
|
|
148
161
|
getCatalogByIdOptions: () => getCatalogByIdOptions,
|
|
@@ -173,6 +186,8 @@ __export(react_query_gen_exports, {
|
|
|
173
186
|
getOfferingQueryKey: () => getOfferingQueryKey,
|
|
174
187
|
getOrderItemsOptions: () => getOrderItemsOptions,
|
|
175
188
|
getOrderItemsQueryKey: () => getOrderItemsQueryKey,
|
|
189
|
+
getOrderShippingGroupsOptions: () => getOrderShippingGroupsOptions,
|
|
190
|
+
getOrderShippingGroupsQueryKey: () => getOrderShippingGroupsQueryKey,
|
|
176
191
|
getOrderTransactionsOptions: () => getOrderTransactionsOptions,
|
|
177
192
|
getOrderTransactionsQueryKey: () => getOrderTransactionsQueryKey,
|
|
178
193
|
getProductOptions: () => getProductOptions,
|
|
@@ -189,6 +204,12 @@ __export(react_query_gen_exports, {
|
|
|
189
204
|
getRuleByIdQueryKey: () => getRuleByIdQueryKey,
|
|
190
205
|
getRulesOptions: () => getRulesOptions,
|
|
191
206
|
getRulesQueryKey: () => getRulesQueryKey,
|
|
207
|
+
getShippingGroupByIdOptions: () => getShippingGroupByIdOptions,
|
|
208
|
+
getShippingGroupByIdQueryKey: () => getShippingGroupByIdQueryKey,
|
|
209
|
+
getShippingGroupsByIdOptions: () => getShippingGroupsByIdOptions,
|
|
210
|
+
getShippingGroupsByIdQueryKey: () => getShippingGroupsByIdQueryKey,
|
|
211
|
+
getShippingGroupsOptions: () => getShippingGroupsOptions,
|
|
212
|
+
getShippingGroupsQueryKey: () => getShippingGroupsQueryKey,
|
|
192
213
|
getStockOptions: () => getStockOptions,
|
|
193
214
|
getStockQueryKey: () => getStockQueryKey,
|
|
194
215
|
getSubscriptionInvoiceOptions: () => getSubscriptionInvoiceOptions,
|
|
@@ -257,6 +278,7 @@ __export(react_query_gen_exports, {
|
|
|
257
278
|
publishReleaseMutation: () => publishReleaseMutation,
|
|
258
279
|
publishReleaseOptions: () => publishReleaseOptions,
|
|
259
280
|
publishReleaseQueryKey: () => publishReleaseQueryKey,
|
|
281
|
+
putShippingGroupByIdMutation: () => putShippingGroupByIdMutation,
|
|
260
282
|
putV2AccountAddressMutation: () => putV2AccountAddressMutation,
|
|
261
283
|
putV2AccountsAccountIdMutation: () => putV2AccountsAccountIdMutation,
|
|
262
284
|
refundATransactionMutation: () => refundATransactionMutation,
|
|
@@ -266,11 +288,13 @@ __export(react_query_gen_exports, {
|
|
|
266
288
|
updateACartMutation: () => updateACartMutation,
|
|
267
289
|
updateATaxItemMutation: () => updateATaxItemMutation,
|
|
268
290
|
updateAnOrderMutation: () => updateAnOrderMutation,
|
|
291
|
+
updateCartPaymentIntentMutation: () => updateCartPaymentIntentMutation,
|
|
269
292
|
updateCatalogMutation: () => updateCatalogMutation,
|
|
270
293
|
updateCustomDiscountForCartItemMutation: () => updateCustomDiscountForCartItemMutation,
|
|
271
294
|
updateCustomDiscountForCartMutation: () => updateCustomDiscountForCartMutation,
|
|
272
295
|
updatePasswordProfileInfoMutation: () => updatePasswordProfileInfoMutation,
|
|
273
|
-
updateRuleMutation: () => updateRuleMutation
|
|
296
|
+
updateRuleMutation: () => updateRuleMutation,
|
|
297
|
+
updateShippingGroupMutation: () => updateShippingGroupMutation
|
|
274
298
|
});
|
|
275
299
|
module.exports = __toCommonJS(react_query_gen_exports);
|
|
276
300
|
var import_react_query = require("@tanstack/react-query");
|
|
@@ -1094,13 +1118,13 @@ const deleteACartMutation = (options) => {
|
|
|
1094
1118
|
};
|
|
1095
1119
|
return mutationOptions;
|
|
1096
1120
|
};
|
|
1097
|
-
const
|
|
1098
|
-
createQueryKey("
|
|
1121
|
+
const getACartQueryKey = (options) => [
|
|
1122
|
+
createQueryKey("getACart", options)
|
|
1099
1123
|
];
|
|
1100
|
-
const
|
|
1124
|
+
const getACartOptions = (options) => {
|
|
1101
1125
|
return (0, import_react_query.queryOptions)({
|
|
1102
1126
|
queryFn: async ({ queryKey, signal }) => {
|
|
1103
|
-
const { data } = await (0, import_sdk.
|
|
1127
|
+
const { data } = await (0, import_sdk.getACart)({
|
|
1104
1128
|
...options,
|
|
1105
1129
|
...queryKey[0],
|
|
1106
1130
|
signal,
|
|
@@ -1108,7 +1132,7 @@ const getCartOptions = (options) => {
|
|
|
1108
1132
|
});
|
|
1109
1133
|
return data;
|
|
1110
1134
|
},
|
|
1111
|
-
queryKey:
|
|
1135
|
+
queryKey: getACartQueryKey(options)
|
|
1112
1136
|
});
|
|
1113
1137
|
};
|
|
1114
1138
|
const updateACartMutation = (options) => {
|
|
@@ -1534,6 +1558,90 @@ const updateCustomDiscountForCartItemMutation = (options) => {
|
|
|
1534
1558
|
};
|
|
1535
1559
|
return mutationOptions;
|
|
1536
1560
|
};
|
|
1561
|
+
const getShippingGroupsQueryKey = (options) => [createQueryKey("getShippingGroups", options)];
|
|
1562
|
+
const getShippingGroupsOptions = (options) => {
|
|
1563
|
+
return (0, import_react_query.queryOptions)({
|
|
1564
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1565
|
+
const { data } = await (0, import_sdk.getShippingGroups)({
|
|
1566
|
+
...options,
|
|
1567
|
+
...queryKey[0],
|
|
1568
|
+
signal,
|
|
1569
|
+
throwOnError: true
|
|
1570
|
+
});
|
|
1571
|
+
return data;
|
|
1572
|
+
},
|
|
1573
|
+
queryKey: getShippingGroupsQueryKey(options)
|
|
1574
|
+
});
|
|
1575
|
+
};
|
|
1576
|
+
const createShippingGroupQueryKey = (options) => [createQueryKey("createShippingGroup", options)];
|
|
1577
|
+
const createShippingGroupOptions = (options) => {
|
|
1578
|
+
return (0, import_react_query.queryOptions)({
|
|
1579
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1580
|
+
const { data } = await (0, import_sdk.createShippingGroup)({
|
|
1581
|
+
...options,
|
|
1582
|
+
...queryKey[0],
|
|
1583
|
+
signal,
|
|
1584
|
+
throwOnError: true
|
|
1585
|
+
});
|
|
1586
|
+
return data;
|
|
1587
|
+
},
|
|
1588
|
+
queryKey: createShippingGroupQueryKey(options)
|
|
1589
|
+
});
|
|
1590
|
+
};
|
|
1591
|
+
const createShippingGroupMutation = (options) => {
|
|
1592
|
+
const mutationOptions = {
|
|
1593
|
+
mutationFn: async (localOptions) => {
|
|
1594
|
+
const { data } = await (0, import_sdk.createShippingGroup)({
|
|
1595
|
+
...options,
|
|
1596
|
+
...localOptions,
|
|
1597
|
+
throwOnError: true
|
|
1598
|
+
});
|
|
1599
|
+
return data;
|
|
1600
|
+
}
|
|
1601
|
+
};
|
|
1602
|
+
return mutationOptions;
|
|
1603
|
+
};
|
|
1604
|
+
const deleteCartShippingGroupMutation = (options) => {
|
|
1605
|
+
const mutationOptions = {
|
|
1606
|
+
mutationFn: async (localOptions) => {
|
|
1607
|
+
const { data } = await (0, import_sdk.deleteCartShippingGroup)({
|
|
1608
|
+
...options,
|
|
1609
|
+
...localOptions,
|
|
1610
|
+
throwOnError: true
|
|
1611
|
+
});
|
|
1612
|
+
return data;
|
|
1613
|
+
}
|
|
1614
|
+
};
|
|
1615
|
+
return mutationOptions;
|
|
1616
|
+
};
|
|
1617
|
+
const getShippingGroupByIdQueryKey = (options) => [createQueryKey("getShippingGroupById", options)];
|
|
1618
|
+
const getShippingGroupByIdOptions = (options) => {
|
|
1619
|
+
return (0, import_react_query.queryOptions)({
|
|
1620
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1621
|
+
const { data } = await (0, import_sdk.getShippingGroupById)({
|
|
1622
|
+
...options,
|
|
1623
|
+
...queryKey[0],
|
|
1624
|
+
signal,
|
|
1625
|
+
throwOnError: true
|
|
1626
|
+
});
|
|
1627
|
+
return data;
|
|
1628
|
+
},
|
|
1629
|
+
queryKey: getShippingGroupByIdQueryKey(options)
|
|
1630
|
+
});
|
|
1631
|
+
};
|
|
1632
|
+
const updateShippingGroupMutation = (options) => {
|
|
1633
|
+
const mutationOptions = {
|
|
1634
|
+
mutationFn: async (localOptions) => {
|
|
1635
|
+
const { data } = await (0, import_sdk.updateShippingGroup)({
|
|
1636
|
+
...options,
|
|
1637
|
+
...localOptions,
|
|
1638
|
+
throwOnError: true
|
|
1639
|
+
});
|
|
1640
|
+
return data;
|
|
1641
|
+
}
|
|
1642
|
+
};
|
|
1643
|
+
return mutationOptions;
|
|
1644
|
+
};
|
|
1537
1645
|
const createCartPaymentIntentQueryKey = (options) => [createQueryKey("createCartPaymentIntent", options)];
|
|
1538
1646
|
const createCartPaymentIntentOptions = (options) => {
|
|
1539
1647
|
return (0, import_react_query.queryOptions)({
|
|
@@ -1562,6 +1670,19 @@ const createCartPaymentIntentMutation = (options) => {
|
|
|
1562
1670
|
};
|
|
1563
1671
|
return mutationOptions;
|
|
1564
1672
|
};
|
|
1673
|
+
const updateCartPaymentIntentMutation = (options) => {
|
|
1674
|
+
const mutationOptions = {
|
|
1675
|
+
mutationFn: async (localOptions) => {
|
|
1676
|
+
const { data } = await (0, import_sdk.updateCartPaymentIntent)({
|
|
1677
|
+
...options,
|
|
1678
|
+
...localOptions,
|
|
1679
|
+
throwOnError: true
|
|
1680
|
+
});
|
|
1681
|
+
return data;
|
|
1682
|
+
}
|
|
1683
|
+
};
|
|
1684
|
+
return mutationOptions;
|
|
1685
|
+
};
|
|
1565
1686
|
const checkoutApiQueryKey = (options) => [
|
|
1566
1687
|
createQueryKey("checkoutApi", options)
|
|
1567
1688
|
];
|
|
@@ -1682,6 +1803,36 @@ const anonymizeOrdersMutation = (options) => {
|
|
|
1682
1803
|
};
|
|
1683
1804
|
return mutationOptions;
|
|
1684
1805
|
};
|
|
1806
|
+
const confirmOrderQueryKey = (options) => [
|
|
1807
|
+
createQueryKey("confirmOrder", options)
|
|
1808
|
+
];
|
|
1809
|
+
const confirmOrderOptions = (options) => {
|
|
1810
|
+
return (0, import_react_query.queryOptions)({
|
|
1811
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1812
|
+
const { data } = await (0, import_sdk.confirmOrder)({
|
|
1813
|
+
...options,
|
|
1814
|
+
...queryKey[0],
|
|
1815
|
+
signal,
|
|
1816
|
+
throwOnError: true
|
|
1817
|
+
});
|
|
1818
|
+
return data;
|
|
1819
|
+
},
|
|
1820
|
+
queryKey: confirmOrderQueryKey(options)
|
|
1821
|
+
});
|
|
1822
|
+
};
|
|
1823
|
+
const confirmOrderMutation = (options) => {
|
|
1824
|
+
const mutationOptions = {
|
|
1825
|
+
mutationFn: async (localOptions) => {
|
|
1826
|
+
const { data } = await (0, import_sdk.confirmOrder)({
|
|
1827
|
+
...options,
|
|
1828
|
+
...localOptions,
|
|
1829
|
+
throwOnError: true
|
|
1830
|
+
});
|
|
1831
|
+
return data;
|
|
1832
|
+
}
|
|
1833
|
+
};
|
|
1834
|
+
return mutationOptions;
|
|
1835
|
+
};
|
|
1685
1836
|
const paymentSetupQueryKey = (options) => [
|
|
1686
1837
|
createQueryKey("paymentSetup", options)
|
|
1687
1838
|
];
|
|
@@ -1854,6 +2005,77 @@ const cancelATransactionMutation = (options) => {
|
|
|
1854
2005
|
};
|
|
1855
2006
|
return mutationOptions;
|
|
1856
2007
|
};
|
|
2008
|
+
const getOrderShippingGroupsQueryKey = (options) => [createQueryKey("getOrderShippingGroups", options)];
|
|
2009
|
+
const getOrderShippingGroupsOptions = (options) => {
|
|
2010
|
+
return (0, import_react_query.queryOptions)({
|
|
2011
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2012
|
+
const { data } = await (0, import_sdk.getOrderShippingGroups)({
|
|
2013
|
+
...options,
|
|
2014
|
+
...queryKey[0],
|
|
2015
|
+
signal,
|
|
2016
|
+
throwOnError: true
|
|
2017
|
+
});
|
|
2018
|
+
return data;
|
|
2019
|
+
},
|
|
2020
|
+
queryKey: getOrderShippingGroupsQueryKey(options)
|
|
2021
|
+
});
|
|
2022
|
+
};
|
|
2023
|
+
const createOrderShippingGroupQueryKey = (options) => [createQueryKey("createOrderShippingGroup", options)];
|
|
2024
|
+
const createOrderShippingGroupOptions = (options) => {
|
|
2025
|
+
return (0, import_react_query.queryOptions)({
|
|
2026
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2027
|
+
const { data } = await (0, import_sdk.createOrderShippingGroup)({
|
|
2028
|
+
...options,
|
|
2029
|
+
...queryKey[0],
|
|
2030
|
+
signal,
|
|
2031
|
+
throwOnError: true
|
|
2032
|
+
});
|
|
2033
|
+
return data;
|
|
2034
|
+
},
|
|
2035
|
+
queryKey: createOrderShippingGroupQueryKey(options)
|
|
2036
|
+
});
|
|
2037
|
+
};
|
|
2038
|
+
const createOrderShippingGroupMutation = (options) => {
|
|
2039
|
+
const mutationOptions = {
|
|
2040
|
+
mutationFn: async (localOptions) => {
|
|
2041
|
+
const { data } = await (0, import_sdk.createOrderShippingGroup)({
|
|
2042
|
+
...options,
|
|
2043
|
+
...localOptions,
|
|
2044
|
+
throwOnError: true
|
|
2045
|
+
});
|
|
2046
|
+
return data;
|
|
2047
|
+
}
|
|
2048
|
+
};
|
|
2049
|
+
return mutationOptions;
|
|
2050
|
+
};
|
|
2051
|
+
const getShippingGroupsByIdQueryKey = (options) => [createQueryKey("getShippingGroupsById", options)];
|
|
2052
|
+
const getShippingGroupsByIdOptions = (options) => {
|
|
2053
|
+
return (0, import_react_query.queryOptions)({
|
|
2054
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2055
|
+
const { data } = await (0, import_sdk.getShippingGroupsById)({
|
|
2056
|
+
...options,
|
|
2057
|
+
...queryKey[0],
|
|
2058
|
+
signal,
|
|
2059
|
+
throwOnError: true
|
|
2060
|
+
});
|
|
2061
|
+
return data;
|
|
2062
|
+
},
|
|
2063
|
+
queryKey: getShippingGroupsByIdQueryKey(options)
|
|
2064
|
+
});
|
|
2065
|
+
};
|
|
2066
|
+
const putShippingGroupByIdMutation = (options) => {
|
|
2067
|
+
const mutationOptions = {
|
|
2068
|
+
mutationFn: async (localOptions) => {
|
|
2069
|
+
const { data } = await (0, import_sdk.putShippingGroupById)({
|
|
2070
|
+
...options,
|
|
2071
|
+
...localOptions,
|
|
2072
|
+
throwOnError: true
|
|
2073
|
+
});
|
|
2074
|
+
return data;
|
|
2075
|
+
}
|
|
2076
|
+
};
|
|
2077
|
+
return mutationOptions;
|
|
2078
|
+
};
|
|
1857
2079
|
const listOfferingsQueryKey = (options) => [
|
|
1858
2080
|
createQueryKey("listOfferings", options)
|
|
1859
2081
|
];
|
|
@@ -2023,6 +2245,34 @@ const listSubscriptionStatesOptions = (options) => {
|
|
|
2023
2245
|
queryKey: listSubscriptionStatesQueryKey(options)
|
|
2024
2246
|
});
|
|
2025
2247
|
};
|
|
2248
|
+
const createSubscriptionStateQueryKey = (options) => [createQueryKey("createSubscriptionState", options)];
|
|
2249
|
+
const createSubscriptionStateOptions = (options) => {
|
|
2250
|
+
return (0, import_react_query.queryOptions)({
|
|
2251
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2252
|
+
const { data } = await (0, import_sdk.createSubscriptionState)({
|
|
2253
|
+
...options,
|
|
2254
|
+
...queryKey[0],
|
|
2255
|
+
signal,
|
|
2256
|
+
throwOnError: true
|
|
2257
|
+
});
|
|
2258
|
+
return data;
|
|
2259
|
+
},
|
|
2260
|
+
queryKey: createSubscriptionStateQueryKey(options)
|
|
2261
|
+
});
|
|
2262
|
+
};
|
|
2263
|
+
const createSubscriptionStateMutation = (options) => {
|
|
2264
|
+
const mutationOptions = {
|
|
2265
|
+
mutationFn: async (localOptions) => {
|
|
2266
|
+
const { data } = await (0, import_sdk.createSubscriptionState)({
|
|
2267
|
+
...options,
|
|
2268
|
+
...localOptions,
|
|
2269
|
+
throwOnError: true
|
|
2270
|
+
});
|
|
2271
|
+
return data;
|
|
2272
|
+
}
|
|
2273
|
+
};
|
|
2274
|
+
return mutationOptions;
|
|
2275
|
+
};
|
|
2026
2276
|
const getSubscriptionStateQueryKey = (options) => [createQueryKey("getSubscriptionState", options)];
|
|
2027
2277
|
const getSubscriptionStateOptions = (options) => {
|
|
2028
2278
|
return (0, import_react_query.queryOptions)({
|
|
@@ -2580,6 +2830,9 @@ const getAFileOptions = (options) => {
|
|
|
2580
2830
|
configureByContextProductMutation,
|
|
2581
2831
|
configureByContextProductOptions,
|
|
2582
2832
|
configureByContextProductQueryKey,
|
|
2833
|
+
confirmOrderMutation,
|
|
2834
|
+
confirmOrderOptions,
|
|
2835
|
+
confirmOrderQueryKey,
|
|
2583
2836
|
confirmPaymentMutation,
|
|
2584
2837
|
confirmPaymentOptions,
|
|
2585
2838
|
confirmPaymentQueryKey,
|
|
@@ -2604,15 +2857,25 @@ const getAFileOptions = (options) => {
|
|
|
2604
2857
|
createOneTimePasswordTokenRequestMutation,
|
|
2605
2858
|
createOneTimePasswordTokenRequestOptions,
|
|
2606
2859
|
createOneTimePasswordTokenRequestQueryKey,
|
|
2860
|
+
createOrderShippingGroupMutation,
|
|
2861
|
+
createOrderShippingGroupOptions,
|
|
2862
|
+
createOrderShippingGroupQueryKey,
|
|
2607
2863
|
createRuleMutation,
|
|
2608
2864
|
createRuleOptions,
|
|
2609
2865
|
createRuleQueryKey,
|
|
2866
|
+
createShippingGroupMutation,
|
|
2867
|
+
createShippingGroupOptions,
|
|
2868
|
+
createShippingGroupQueryKey,
|
|
2869
|
+
createSubscriptionStateMutation,
|
|
2870
|
+
createSubscriptionStateOptions,
|
|
2871
|
+
createSubscriptionStateQueryKey,
|
|
2610
2872
|
deleteACartItemMutation,
|
|
2611
2873
|
deleteACartMutation,
|
|
2612
2874
|
deleteAPromotionViaPromotionCodeMutation,
|
|
2613
2875
|
deleteATaxItemMutation,
|
|
2614
2876
|
deleteAccountCartAssociationMutation,
|
|
2615
2877
|
deleteAllCartItemsMutation,
|
|
2878
|
+
deleteCartShippingGroupMutation,
|
|
2616
2879
|
deleteCatalogByIdMutation,
|
|
2617
2880
|
deleteCustomDiscountFromCartItemMutation,
|
|
2618
2881
|
deleteCustomDiscountFromCartMutation,
|
|
@@ -2621,6 +2884,8 @@ const getAFileOptions = (options) => {
|
|
|
2621
2884
|
deleteReleasesMutation,
|
|
2622
2885
|
deleteRuleByIdMutation,
|
|
2623
2886
|
deleteV2AccountAddressMutation,
|
|
2887
|
+
getACartOptions,
|
|
2888
|
+
getACartQueryKey,
|
|
2624
2889
|
getACurrencyOptions,
|
|
2625
2890
|
getACurrencyQueryKey,
|
|
2626
2891
|
getAFileOptions,
|
|
@@ -2673,8 +2938,6 @@ const getAFileOptions = (options) => {
|
|
|
2673
2938
|
getByContextReleaseQueryKey,
|
|
2674
2939
|
getCartItemsOptions,
|
|
2675
2940
|
getCartItemsQueryKey,
|
|
2676
|
-
getCartOptions,
|
|
2677
|
-
getCartQueryKey,
|
|
2678
2941
|
getCartsOptions,
|
|
2679
2942
|
getCartsQueryKey,
|
|
2680
2943
|
getCatalogByIdOptions,
|
|
@@ -2705,6 +2968,8 @@ const getAFileOptions = (options) => {
|
|
|
2705
2968
|
getOfferingQueryKey,
|
|
2706
2969
|
getOrderItemsOptions,
|
|
2707
2970
|
getOrderItemsQueryKey,
|
|
2971
|
+
getOrderShippingGroupsOptions,
|
|
2972
|
+
getOrderShippingGroupsQueryKey,
|
|
2708
2973
|
getOrderTransactionsOptions,
|
|
2709
2974
|
getOrderTransactionsQueryKey,
|
|
2710
2975
|
getProductOptions,
|
|
@@ -2721,6 +2986,12 @@ const getAFileOptions = (options) => {
|
|
|
2721
2986
|
getRuleByIdQueryKey,
|
|
2722
2987
|
getRulesOptions,
|
|
2723
2988
|
getRulesQueryKey,
|
|
2989
|
+
getShippingGroupByIdOptions,
|
|
2990
|
+
getShippingGroupByIdQueryKey,
|
|
2991
|
+
getShippingGroupsByIdOptions,
|
|
2992
|
+
getShippingGroupsByIdQueryKey,
|
|
2993
|
+
getShippingGroupsOptions,
|
|
2994
|
+
getShippingGroupsQueryKey,
|
|
2724
2995
|
getStockOptions,
|
|
2725
2996
|
getStockQueryKey,
|
|
2726
2997
|
getSubscriptionInvoiceOptions,
|
|
@@ -2789,6 +3060,7 @@ const getAFileOptions = (options) => {
|
|
|
2789
3060
|
publishReleaseMutation,
|
|
2790
3061
|
publishReleaseOptions,
|
|
2791
3062
|
publishReleaseQueryKey,
|
|
3063
|
+
putShippingGroupByIdMutation,
|
|
2792
3064
|
putV2AccountAddressMutation,
|
|
2793
3065
|
putV2AccountsAccountIdMutation,
|
|
2794
3066
|
refundATransactionMutation,
|
|
@@ -2798,10 +3070,12 @@ const getAFileOptions = (options) => {
|
|
|
2798
3070
|
updateACartMutation,
|
|
2799
3071
|
updateATaxItemMutation,
|
|
2800
3072
|
updateAnOrderMutation,
|
|
3073
|
+
updateCartPaymentIntentMutation,
|
|
2801
3074
|
updateCatalogMutation,
|
|
2802
3075
|
updateCustomDiscountForCartItemMutation,
|
|
2803
3076
|
updateCustomDiscountForCartMutation,
|
|
2804
3077
|
updatePasswordProfileInfoMutation,
|
|
2805
|
-
updateRuleMutation
|
|
3078
|
+
updateRuleMutation,
|
|
3079
|
+
updateShippingGroupMutation
|
|
2806
3080
|
});
|
|
2807
3081
|
//# sourceMappingURL=react-query.gen.cjs.map
|