@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/dist/client/sdk.gen.cjs
CHANGED
|
@@ -31,6 +31,7 @@ __export(sdk_gen_exports, {
|
|
|
31
31
|
checkoutApi: () => checkoutApi,
|
|
32
32
|
client: () => client,
|
|
33
33
|
configureByContextProduct: () => configureByContextProduct,
|
|
34
|
+
confirmOrder: () => confirmOrder,
|
|
34
35
|
confirmPayment: () => confirmPayment,
|
|
35
36
|
createACart: () => createACart,
|
|
36
37
|
createAccountCartAssociation: () => createAccountCartAssociation,
|
|
@@ -39,13 +40,17 @@ __export(sdk_gen_exports, {
|
|
|
39
40
|
createCatalog: () => createCatalog,
|
|
40
41
|
createCustomerCartAssociation: () => createCustomerCartAssociation,
|
|
41
42
|
createOneTimePasswordTokenRequest: () => createOneTimePasswordTokenRequest,
|
|
43
|
+
createOrderShippingGroup: () => createOrderShippingGroup,
|
|
42
44
|
createRule: () => createRule,
|
|
45
|
+
createShippingGroup: () => createShippingGroup,
|
|
46
|
+
createSubscriptionState: () => createSubscriptionState,
|
|
43
47
|
deleteACart: () => deleteACart,
|
|
44
48
|
deleteACartItem: () => deleteACartItem,
|
|
45
49
|
deleteAPromotionViaPromotionCode: () => deleteAPromotionViaPromotionCode,
|
|
46
50
|
deleteATaxItem: () => deleteATaxItem,
|
|
47
51
|
deleteAccountCartAssociation: () => deleteAccountCartAssociation,
|
|
48
52
|
deleteAllCartItems: () => deleteAllCartItems,
|
|
53
|
+
deleteCartShippingGroup: () => deleteCartShippingGroup,
|
|
49
54
|
deleteCatalogById: () => deleteCatalogById,
|
|
50
55
|
deleteCustomDiscountFromCart: () => deleteCustomDiscountFromCart,
|
|
51
56
|
deleteCustomDiscountFromCartItem: () => deleteCustomDiscountFromCartItem,
|
|
@@ -54,6 +59,7 @@ __export(sdk_gen_exports, {
|
|
|
54
59
|
deleteReleases: () => deleteReleases,
|
|
55
60
|
deleteRuleById: () => deleteRuleById,
|
|
56
61
|
deleteV2AccountAddress: () => deleteV2AccountAddress,
|
|
62
|
+
getACart: () => getACart,
|
|
57
63
|
getACurrency: () => getACurrency,
|
|
58
64
|
getAFile: () => getAFile,
|
|
59
65
|
getATransaction: () => getATransaction,
|
|
@@ -79,7 +85,6 @@ __export(sdk_gen_exports, {
|
|
|
79
85
|
getByContextProductsForHierarchy: () => getByContextProductsForHierarchy,
|
|
80
86
|
getByContextProductsForNode: () => getByContextProductsForNode,
|
|
81
87
|
getByContextRelease: () => getByContextRelease,
|
|
82
|
-
getCart: () => getCart,
|
|
83
88
|
getCartItems: () => getCartItems,
|
|
84
89
|
getCarts: () => getCarts,
|
|
85
90
|
getCatalogById: () => getCatalogById,
|
|
@@ -96,6 +101,7 @@ __export(sdk_gen_exports, {
|
|
|
96
101
|
getNode: () => getNode,
|
|
97
102
|
getOffering: () => getOffering,
|
|
98
103
|
getOrderItems: () => getOrderItems,
|
|
104
|
+
getOrderShippingGroups: () => getOrderShippingGroups,
|
|
99
105
|
getOrderTransactions: () => getOrderTransactions,
|
|
100
106
|
getProduct: () => getProduct,
|
|
101
107
|
getProductsForHierarchy: () => getProductsForHierarchy,
|
|
@@ -104,6 +110,9 @@ __export(sdk_gen_exports, {
|
|
|
104
110
|
getReleases: () => getReleases,
|
|
105
111
|
getRuleById: () => getRuleById,
|
|
106
112
|
getRules: () => getRules,
|
|
113
|
+
getShippingGroupById: () => getShippingGroupById,
|
|
114
|
+
getShippingGroups: () => getShippingGroups,
|
|
115
|
+
getShippingGroupsById: () => getShippingGroupsById,
|
|
107
116
|
getStock: () => getStock,
|
|
108
117
|
getSubscription: () => getSubscription,
|
|
109
118
|
getSubscriptionInvoice: () => getSubscriptionInvoice,
|
|
@@ -135,6 +144,7 @@ __export(sdk_gen_exports, {
|
|
|
135
144
|
postV2AccountMembersTokens: () => postV2AccountMembersTokens,
|
|
136
145
|
postV2Accounts: () => postV2Accounts,
|
|
137
146
|
publishRelease: () => publishRelease,
|
|
147
|
+
putShippingGroupById: () => putShippingGroupById,
|
|
138
148
|
putV2AccountAddress: () => putV2AccountAddress,
|
|
139
149
|
putV2AccountsAccountId: () => putV2AccountsAccountId,
|
|
140
150
|
refundATransaction: () => refundATransaction,
|
|
@@ -142,11 +152,13 @@ __export(sdk_gen_exports, {
|
|
|
142
152
|
updateACartItem: () => updateACartItem,
|
|
143
153
|
updateATaxItem: () => updateATaxItem,
|
|
144
154
|
updateAnOrder: () => updateAnOrder,
|
|
155
|
+
updateCartPaymentIntent: () => updateCartPaymentIntent,
|
|
145
156
|
updateCatalog: () => updateCatalog,
|
|
146
157
|
updateCustomDiscountForCart: () => updateCustomDiscountForCart,
|
|
147
158
|
updateCustomDiscountForCartItem: () => updateCustomDiscountForCartItem,
|
|
148
159
|
updatePasswordProfileInfo: () => updatePasswordProfileInfo,
|
|
149
|
-
updateRule: () => updateRule
|
|
160
|
+
updateRule: () => updateRule,
|
|
161
|
+
updateShippingGroup: () => updateShippingGroup
|
|
150
162
|
});
|
|
151
163
|
module.exports = __toCommonJS(sdk_gen_exports);
|
|
152
164
|
var import_client_fetch = require("@hey-api/client-fetch");
|
|
@@ -827,7 +839,7 @@ const deleteACart = (options) => {
|
|
|
827
839
|
url: "/v2/carts/{cartID}"
|
|
828
840
|
});
|
|
829
841
|
};
|
|
830
|
-
const
|
|
842
|
+
const getACart = (options) => {
|
|
831
843
|
return (options?.client ?? client).get({
|
|
832
844
|
...options,
|
|
833
845
|
security: [
|
|
@@ -1187,6 +1199,74 @@ const updateCustomDiscountForCartItem = (options) => {
|
|
|
1187
1199
|
url: "/v2/carts/{cartID}/items/{cartitemID}/custom-discounts/{customdiscountID}"
|
|
1188
1200
|
});
|
|
1189
1201
|
};
|
|
1202
|
+
const getShippingGroups = (options) => {
|
|
1203
|
+
return (options?.client ?? client).get({
|
|
1204
|
+
...options,
|
|
1205
|
+
security: [
|
|
1206
|
+
{
|
|
1207
|
+
scheme: "bearer",
|
|
1208
|
+
type: "http"
|
|
1209
|
+
}
|
|
1210
|
+
],
|
|
1211
|
+
url: "/v2/carts/{cartID}/shipping-groups"
|
|
1212
|
+
});
|
|
1213
|
+
};
|
|
1214
|
+
const createShippingGroup = (options) => {
|
|
1215
|
+
return (options?.client ?? client).post({
|
|
1216
|
+
...options,
|
|
1217
|
+
headers: {
|
|
1218
|
+
"Content-Type": "application/json",
|
|
1219
|
+
...options?.headers
|
|
1220
|
+
},
|
|
1221
|
+
security: [
|
|
1222
|
+
{
|
|
1223
|
+
scheme: "bearer",
|
|
1224
|
+
type: "http"
|
|
1225
|
+
}
|
|
1226
|
+
],
|
|
1227
|
+
url: "/v2/carts/{cartID}/shipping-groups"
|
|
1228
|
+
});
|
|
1229
|
+
};
|
|
1230
|
+
const deleteCartShippingGroup = (options) => {
|
|
1231
|
+
return (options?.client ?? client).delete({
|
|
1232
|
+
...options,
|
|
1233
|
+
security: [
|
|
1234
|
+
{
|
|
1235
|
+
scheme: "bearer",
|
|
1236
|
+
type: "http"
|
|
1237
|
+
}
|
|
1238
|
+
],
|
|
1239
|
+
url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
|
|
1240
|
+
});
|
|
1241
|
+
};
|
|
1242
|
+
const getShippingGroupById = (options) => {
|
|
1243
|
+
return (options?.client ?? client).get({
|
|
1244
|
+
...options,
|
|
1245
|
+
security: [
|
|
1246
|
+
{
|
|
1247
|
+
scheme: "bearer",
|
|
1248
|
+
type: "http"
|
|
1249
|
+
}
|
|
1250
|
+
],
|
|
1251
|
+
url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
|
|
1252
|
+
});
|
|
1253
|
+
};
|
|
1254
|
+
const updateShippingGroup = (options) => {
|
|
1255
|
+
return (options?.client ?? client).put({
|
|
1256
|
+
...options,
|
|
1257
|
+
headers: {
|
|
1258
|
+
"Content-Type": "application/json",
|
|
1259
|
+
...options?.headers
|
|
1260
|
+
},
|
|
1261
|
+
security: [
|
|
1262
|
+
{
|
|
1263
|
+
scheme: "bearer",
|
|
1264
|
+
type: "http"
|
|
1265
|
+
}
|
|
1266
|
+
],
|
|
1267
|
+
url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
|
|
1268
|
+
});
|
|
1269
|
+
};
|
|
1190
1270
|
const createCartPaymentIntent = (options) => {
|
|
1191
1271
|
return (options?.client ?? client).post({
|
|
1192
1272
|
...options,
|
|
@@ -1203,6 +1283,22 @@ const createCartPaymentIntent = (options) => {
|
|
|
1203
1283
|
url: "/v2/carts/{cartID}/payments"
|
|
1204
1284
|
});
|
|
1205
1285
|
};
|
|
1286
|
+
const updateCartPaymentIntent = (options) => {
|
|
1287
|
+
return (options?.client ?? client).put({
|
|
1288
|
+
...options,
|
|
1289
|
+
headers: {
|
|
1290
|
+
"Content-Type": "application/json",
|
|
1291
|
+
...options?.headers
|
|
1292
|
+
},
|
|
1293
|
+
security: [
|
|
1294
|
+
{
|
|
1295
|
+
scheme: "bearer",
|
|
1296
|
+
type: "http"
|
|
1297
|
+
}
|
|
1298
|
+
],
|
|
1299
|
+
url: "/v2/carts/{cartID}/payments/{paymentIntentID}"
|
|
1300
|
+
});
|
|
1301
|
+
};
|
|
1206
1302
|
const checkoutApi = (options) => {
|
|
1207
1303
|
return (options?.client ?? client).post({
|
|
1208
1304
|
...options,
|
|
@@ -1287,6 +1383,18 @@ const anonymizeOrders = (options) => {
|
|
|
1287
1383
|
url: "/v2/orders/anonymize"
|
|
1288
1384
|
});
|
|
1289
1385
|
};
|
|
1386
|
+
const confirmOrder = (options) => {
|
|
1387
|
+
return (options?.client ?? client).post({
|
|
1388
|
+
...options,
|
|
1389
|
+
security: [
|
|
1390
|
+
{
|
|
1391
|
+
scheme: "bearer",
|
|
1392
|
+
type: "http"
|
|
1393
|
+
}
|
|
1394
|
+
],
|
|
1395
|
+
url: "/v2/orders/{orderID}/confirm"
|
|
1396
|
+
});
|
|
1397
|
+
};
|
|
1290
1398
|
const paymentSetup = (options) => {
|
|
1291
1399
|
return (options?.client ?? client).post({
|
|
1292
1400
|
...options,
|
|
@@ -1391,6 +1499,62 @@ const cancelATransaction = (options) => {
|
|
|
1391
1499
|
url: "/v2/orders/{orderID}/transactions/{transactionID}/cancel"
|
|
1392
1500
|
});
|
|
1393
1501
|
};
|
|
1502
|
+
const getOrderShippingGroups = (options) => {
|
|
1503
|
+
return (options?.client ?? client).get({
|
|
1504
|
+
...options,
|
|
1505
|
+
security: [
|
|
1506
|
+
{
|
|
1507
|
+
scheme: "bearer",
|
|
1508
|
+
type: "http"
|
|
1509
|
+
}
|
|
1510
|
+
],
|
|
1511
|
+
url: "/v2/orders/{orderID}/shipping-groups"
|
|
1512
|
+
});
|
|
1513
|
+
};
|
|
1514
|
+
const createOrderShippingGroup = (options) => {
|
|
1515
|
+
return (options?.client ?? client).post({
|
|
1516
|
+
...options,
|
|
1517
|
+
headers: {
|
|
1518
|
+
"Content-Type": "application/json",
|
|
1519
|
+
...options?.headers
|
|
1520
|
+
},
|
|
1521
|
+
security: [
|
|
1522
|
+
{
|
|
1523
|
+
scheme: "bearer",
|
|
1524
|
+
type: "http"
|
|
1525
|
+
}
|
|
1526
|
+
],
|
|
1527
|
+
url: "/v2/orders/{orderID}/shipping-groups"
|
|
1528
|
+
});
|
|
1529
|
+
};
|
|
1530
|
+
const getShippingGroupsById = (options) => {
|
|
1531
|
+
return (options?.client ?? client).get({
|
|
1532
|
+
...options,
|
|
1533
|
+
security: [
|
|
1534
|
+
{
|
|
1535
|
+
scheme: "bearer",
|
|
1536
|
+
type: "http"
|
|
1537
|
+
}
|
|
1538
|
+
],
|
|
1539
|
+
url: "/v2/orders/{orderID}/shipping-groups/{shippingGroupID}"
|
|
1540
|
+
});
|
|
1541
|
+
};
|
|
1542
|
+
const putShippingGroupById = (options) => {
|
|
1543
|
+
return (options?.client ?? client).put({
|
|
1544
|
+
...options,
|
|
1545
|
+
headers: {
|
|
1546
|
+
"Content-Type": "application/json",
|
|
1547
|
+
...options?.headers
|
|
1548
|
+
},
|
|
1549
|
+
security: [
|
|
1550
|
+
{
|
|
1551
|
+
scheme: "bearer",
|
|
1552
|
+
type: "http"
|
|
1553
|
+
}
|
|
1554
|
+
],
|
|
1555
|
+
url: "/v2/orders/{orderID}/shipping-groups/{shippingGroupID}"
|
|
1556
|
+
});
|
|
1557
|
+
};
|
|
1394
1558
|
const listOfferings = (options) => {
|
|
1395
1559
|
return (options?.client ?? client).get({
|
|
1396
1560
|
...options,
|
|
@@ -1547,6 +1711,22 @@ const listSubscriptionStates = (options) => {
|
|
|
1547
1711
|
url: "/v2/subscriptions/subscriptions/{subscription_uuid}/states"
|
|
1548
1712
|
});
|
|
1549
1713
|
};
|
|
1714
|
+
const createSubscriptionState = (options) => {
|
|
1715
|
+
return (options?.client ?? client).post({
|
|
1716
|
+
...options,
|
|
1717
|
+
headers: {
|
|
1718
|
+
"Content-Type": "application/json",
|
|
1719
|
+
...options?.headers
|
|
1720
|
+
},
|
|
1721
|
+
security: [
|
|
1722
|
+
{
|
|
1723
|
+
scheme: "bearer",
|
|
1724
|
+
type: "http"
|
|
1725
|
+
}
|
|
1726
|
+
],
|
|
1727
|
+
url: "/v2/subscriptions/subscriptions/{subscription_uuid}/states"
|
|
1728
|
+
});
|
|
1729
|
+
};
|
|
1550
1730
|
const getSubscriptionState = (options) => {
|
|
1551
1731
|
return (options?.client ?? client).get({
|
|
1552
1732
|
...options,
|
|
@@ -1949,6 +2129,7 @@ const getAFile = (options) => {
|
|
|
1949
2129
|
checkoutApi,
|
|
1950
2130
|
client,
|
|
1951
2131
|
configureByContextProduct,
|
|
2132
|
+
confirmOrder,
|
|
1952
2133
|
confirmPayment,
|
|
1953
2134
|
createACart,
|
|
1954
2135
|
createAccountCartAssociation,
|
|
@@ -1957,13 +2138,17 @@ const getAFile = (options) => {
|
|
|
1957
2138
|
createCatalog,
|
|
1958
2139
|
createCustomerCartAssociation,
|
|
1959
2140
|
createOneTimePasswordTokenRequest,
|
|
2141
|
+
createOrderShippingGroup,
|
|
1960
2142
|
createRule,
|
|
2143
|
+
createShippingGroup,
|
|
2144
|
+
createSubscriptionState,
|
|
1961
2145
|
deleteACart,
|
|
1962
2146
|
deleteACartItem,
|
|
1963
2147
|
deleteAPromotionViaPromotionCode,
|
|
1964
2148
|
deleteATaxItem,
|
|
1965
2149
|
deleteAccountCartAssociation,
|
|
1966
2150
|
deleteAllCartItems,
|
|
2151
|
+
deleteCartShippingGroup,
|
|
1967
2152
|
deleteCatalogById,
|
|
1968
2153
|
deleteCustomDiscountFromCart,
|
|
1969
2154
|
deleteCustomDiscountFromCartItem,
|
|
@@ -1972,6 +2157,7 @@ const getAFile = (options) => {
|
|
|
1972
2157
|
deleteReleases,
|
|
1973
2158
|
deleteRuleById,
|
|
1974
2159
|
deleteV2AccountAddress,
|
|
2160
|
+
getACart,
|
|
1975
2161
|
getACurrency,
|
|
1976
2162
|
getAFile,
|
|
1977
2163
|
getATransaction,
|
|
@@ -1997,7 +2183,6 @@ const getAFile = (options) => {
|
|
|
1997
2183
|
getByContextProductsForHierarchy,
|
|
1998
2184
|
getByContextProductsForNode,
|
|
1999
2185
|
getByContextRelease,
|
|
2000
|
-
getCart,
|
|
2001
2186
|
getCartItems,
|
|
2002
2187
|
getCarts,
|
|
2003
2188
|
getCatalogById,
|
|
@@ -2014,6 +2199,7 @@ const getAFile = (options) => {
|
|
|
2014
2199
|
getNode,
|
|
2015
2200
|
getOffering,
|
|
2016
2201
|
getOrderItems,
|
|
2202
|
+
getOrderShippingGroups,
|
|
2017
2203
|
getOrderTransactions,
|
|
2018
2204
|
getProduct,
|
|
2019
2205
|
getProductsForHierarchy,
|
|
@@ -2022,6 +2208,9 @@ const getAFile = (options) => {
|
|
|
2022
2208
|
getReleases,
|
|
2023
2209
|
getRuleById,
|
|
2024
2210
|
getRules,
|
|
2211
|
+
getShippingGroupById,
|
|
2212
|
+
getShippingGroups,
|
|
2213
|
+
getShippingGroupsById,
|
|
2025
2214
|
getStock,
|
|
2026
2215
|
getSubscription,
|
|
2027
2216
|
getSubscriptionInvoice,
|
|
@@ -2053,6 +2242,7 @@ const getAFile = (options) => {
|
|
|
2053
2242
|
postV2AccountMembersTokens,
|
|
2054
2243
|
postV2Accounts,
|
|
2055
2244
|
publishRelease,
|
|
2245
|
+
putShippingGroupById,
|
|
2056
2246
|
putV2AccountAddress,
|
|
2057
2247
|
putV2AccountsAccountId,
|
|
2058
2248
|
refundATransaction,
|
|
@@ -2060,10 +2250,12 @@ const getAFile = (options) => {
|
|
|
2060
2250
|
updateACartItem,
|
|
2061
2251
|
updateATaxItem,
|
|
2062
2252
|
updateAnOrder,
|
|
2253
|
+
updateCartPaymentIntent,
|
|
2063
2254
|
updateCatalog,
|
|
2064
2255
|
updateCustomDiscountForCart,
|
|
2065
2256
|
updateCustomDiscountForCartItem,
|
|
2066
2257
|
updatePasswordProfileInfo,
|
|
2067
|
-
updateRule
|
|
2258
|
+
updateRule,
|
|
2259
|
+
updateShippingGroup
|
|
2068
2260
|
});
|
|
2069
2261
|
//# sourceMappingURL=sdk.gen.cjs.map
|