@epcc-sdk/sdks-shopper 0.0.43 → 0.2.0
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 +33 -1
- package/dist/client/@tanstack/react-query.gen.cjs +168 -2
- package/dist/client/@tanstack/react-query.gen.cjs.map +1 -1
- package/dist/client/@tanstack/react-query.gen.d.cts +192 -70
- package/dist/client/@tanstack/react-query.gen.d.ts +192 -70
- package/dist/client/@tanstack/react-query.gen.mjs +161 -1
- 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 +146 -2
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +256 -79
- package/dist/client/sdk.gen.d.ts +256 -79
- package/dist/client/sdk.gen.mjs +137 -1
- package/dist/client/sdk.gen.mjs.map +1 -1
- package/dist/client/transformers.gen.cjs +120 -36
- package/dist/client/transformers.gen.cjs.map +1 -1
- package/dist/client/transformers.gen.d.cts +8 -3
- package/dist/client/transformers.gen.d.ts +8 -3
- package/dist/client/transformers.gen.mjs +113 -34
- 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 +2554 -856
- package/dist/client/types.gen.d.ts +2554 -856
- 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.mjs
CHANGED
|
@@ -436,6 +436,22 @@ const updateRule = (options) => {
|
|
|
436
436
|
url: "/catalogs/rules/{catalog_rule_id}"
|
|
437
437
|
});
|
|
438
438
|
};
|
|
439
|
+
const validateCatalogRules = (options) => {
|
|
440
|
+
return (options?.client ?? client).post({
|
|
441
|
+
...options,
|
|
442
|
+
headers: {
|
|
443
|
+
"Content-Type": "application/json",
|
|
444
|
+
...options?.headers
|
|
445
|
+
},
|
|
446
|
+
security: [
|
|
447
|
+
{
|
|
448
|
+
scheme: "bearer",
|
|
449
|
+
type: "http"
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
url: "/catalogs/rules/validate"
|
|
453
|
+
});
|
|
454
|
+
};
|
|
439
455
|
const getAllHierarchies = (options) => {
|
|
440
456
|
return (options?.client ?? client).get({
|
|
441
457
|
...options,
|
|
@@ -649,6 +665,12 @@ const getCarts = (options) => {
|
|
|
649
665
|
type: "http"
|
|
650
666
|
}
|
|
651
667
|
],
|
|
668
|
+
querySerializer: {
|
|
669
|
+
array: {
|
|
670
|
+
explode: false,
|
|
671
|
+
style: "form"
|
|
672
|
+
}
|
|
673
|
+
},
|
|
652
674
|
url: "/v2/carts"
|
|
653
675
|
});
|
|
654
676
|
};
|
|
@@ -729,6 +751,12 @@ const getCartItems = (options) => {
|
|
|
729
751
|
type: "http"
|
|
730
752
|
}
|
|
731
753
|
],
|
|
754
|
+
querySerializer: {
|
|
755
|
+
array: {
|
|
756
|
+
explode: false,
|
|
757
|
+
style: "form"
|
|
758
|
+
}
|
|
759
|
+
},
|
|
732
760
|
url: "/v2/carts/{cartID}/items"
|
|
733
761
|
});
|
|
734
762
|
};
|
|
@@ -884,6 +912,50 @@ const addTaxItemToCart = (options) => {
|
|
|
884
912
|
url: "/v2/carts/{cartID}/items/{cartitemID}/taxes"
|
|
885
913
|
});
|
|
886
914
|
};
|
|
915
|
+
const addTaxItemToCartItemComponent = (options) => {
|
|
916
|
+
return (options?.client ?? client).post({
|
|
917
|
+
...options,
|
|
918
|
+
headers: {
|
|
919
|
+
"Content-Type": "application/json",
|
|
920
|
+
...options?.headers
|
|
921
|
+
},
|
|
922
|
+
security: [
|
|
923
|
+
{
|
|
924
|
+
scheme: "bearer",
|
|
925
|
+
type: "http"
|
|
926
|
+
}
|
|
927
|
+
],
|
|
928
|
+
url: "/v2/carts/{cartID}/items/{cartitemID}/components/{productID}/taxes"
|
|
929
|
+
});
|
|
930
|
+
};
|
|
931
|
+
const deleteTaxItemFromCartItemComponent = (options) => {
|
|
932
|
+
return (options?.client ?? client).delete({
|
|
933
|
+
...options,
|
|
934
|
+
security: [
|
|
935
|
+
{
|
|
936
|
+
scheme: "bearer",
|
|
937
|
+
type: "http"
|
|
938
|
+
}
|
|
939
|
+
],
|
|
940
|
+
url: "/v2/carts/{cartID}/items/{cartitemID}/components/{productID}/taxes/{taxitemID}"
|
|
941
|
+
});
|
|
942
|
+
};
|
|
943
|
+
const updateTaxItemFromCartItemComponent = (options) => {
|
|
944
|
+
return (options?.client ?? client).put({
|
|
945
|
+
...options,
|
|
946
|
+
headers: {
|
|
947
|
+
"Content-Type": "application/json",
|
|
948
|
+
...options?.headers
|
|
949
|
+
},
|
|
950
|
+
security: [
|
|
951
|
+
{
|
|
952
|
+
scheme: "bearer",
|
|
953
|
+
type: "http"
|
|
954
|
+
}
|
|
955
|
+
],
|
|
956
|
+
url: "/v2/carts/{cartID}/items/{cartitemID}/components/{productID}/taxes/{taxitemID}"
|
|
957
|
+
});
|
|
958
|
+
};
|
|
887
959
|
const bulkDeleteTaxItemsFromCart = (options) => {
|
|
888
960
|
return (options?.client ?? client).delete({
|
|
889
961
|
...options,
|
|
@@ -1396,6 +1468,62 @@ const putShippingGroupById = (options) => {
|
|
|
1396
1468
|
url: "/v2/orders/{orderID}/shipping-groups/{shippingGroupID}"
|
|
1397
1469
|
});
|
|
1398
1470
|
};
|
|
1471
|
+
const getV2SettingsCart = (options) => {
|
|
1472
|
+
return (options?.client ?? client).get({
|
|
1473
|
+
...options,
|
|
1474
|
+
security: [
|
|
1475
|
+
{
|
|
1476
|
+
scheme: "bearer",
|
|
1477
|
+
type: "http"
|
|
1478
|
+
}
|
|
1479
|
+
],
|
|
1480
|
+
url: "/v2/settings/cart"
|
|
1481
|
+
});
|
|
1482
|
+
};
|
|
1483
|
+
const putV2SettingsCart = (options) => {
|
|
1484
|
+
return (options?.client ?? client).put({
|
|
1485
|
+
...options,
|
|
1486
|
+
headers: {
|
|
1487
|
+
"Content-Type": "application/json",
|
|
1488
|
+
...options?.headers
|
|
1489
|
+
},
|
|
1490
|
+
security: [
|
|
1491
|
+
{
|
|
1492
|
+
scheme: "bearer",
|
|
1493
|
+
type: "http"
|
|
1494
|
+
}
|
|
1495
|
+
],
|
|
1496
|
+
url: "/v2/settings/cart"
|
|
1497
|
+
});
|
|
1498
|
+
};
|
|
1499
|
+
const getV2SettingsCartStoreId = (options) => {
|
|
1500
|
+
return (options?.client ?? client).get({
|
|
1501
|
+
...options,
|
|
1502
|
+
security: [
|
|
1503
|
+
{
|
|
1504
|
+
scheme: "bearer",
|
|
1505
|
+
type: "http"
|
|
1506
|
+
}
|
|
1507
|
+
],
|
|
1508
|
+
url: "/v2/settings/cart/{storeID}"
|
|
1509
|
+
});
|
|
1510
|
+
};
|
|
1511
|
+
const putV2SettingsCartStoreId = (options) => {
|
|
1512
|
+
return (options?.client ?? client).put({
|
|
1513
|
+
...options,
|
|
1514
|
+
headers: {
|
|
1515
|
+
"Content-Type": "application/json",
|
|
1516
|
+
...options?.headers
|
|
1517
|
+
},
|
|
1518
|
+
security: [
|
|
1519
|
+
{
|
|
1520
|
+
scheme: "bearer",
|
|
1521
|
+
type: "http"
|
|
1522
|
+
}
|
|
1523
|
+
],
|
|
1524
|
+
url: "/v2/settings/cart/{storeID}"
|
|
1525
|
+
});
|
|
1526
|
+
};
|
|
1399
1527
|
const listOfferings = (options) => {
|
|
1400
1528
|
return (options?.client ?? client).get({
|
|
1401
1529
|
...options,
|
|
@@ -1974,6 +2102,7 @@ const postMultiSearch = (options) => {
|
|
|
1974
2102
|
export {
|
|
1975
2103
|
addCustomDiscountToCartItem,
|
|
1976
2104
|
addTaxItemToCart,
|
|
2105
|
+
addTaxItemToCartItemComponent,
|
|
1977
2106
|
anonymizeOrders,
|
|
1978
2107
|
bulkAddCustomDiscountsToCart,
|
|
1979
2108
|
bulkAddTaxItemsToCart,
|
|
@@ -2012,6 +2141,7 @@ export {
|
|
|
2012
2141
|
deleteReleaseById,
|
|
2013
2142
|
deleteReleases,
|
|
2014
2143
|
deleteRuleById,
|
|
2144
|
+
deleteTaxItemFromCartItemComponent,
|
|
2015
2145
|
deleteV2AccountAddress,
|
|
2016
2146
|
getACart,
|
|
2017
2147
|
getACurrency,
|
|
@@ -2079,6 +2209,8 @@ export {
|
|
|
2079
2209
|
getV2Accounts,
|
|
2080
2210
|
getV2AccountsAccountId,
|
|
2081
2211
|
getV2AccountsAccountIdAccountMemberships,
|
|
2212
|
+
getV2SettingsCart,
|
|
2213
|
+
getV2SettingsCartStoreId,
|
|
2082
2214
|
listInvoices,
|
|
2083
2215
|
listLocations,
|
|
2084
2216
|
listOfferingFeatures,
|
|
@@ -2102,6 +2234,8 @@ export {
|
|
|
2102
2234
|
putShippingGroupById,
|
|
2103
2235
|
putV2AccountAddress,
|
|
2104
2236
|
putV2AccountsAccountId,
|
|
2237
|
+
putV2SettingsCart,
|
|
2238
|
+
putV2SettingsCartStoreId,
|
|
2105
2239
|
refundATransaction,
|
|
2106
2240
|
updateACart,
|
|
2107
2241
|
updateACartItem,
|
|
@@ -2113,6 +2247,8 @@ export {
|
|
|
2113
2247
|
updateCustomDiscountForCartItem,
|
|
2114
2248
|
updatePasswordProfileInfo,
|
|
2115
2249
|
updateRule,
|
|
2116
|
-
updateShippingGroup
|
|
2250
|
+
updateShippingGroup,
|
|
2251
|
+
updateTaxItemFromCartItemComponent,
|
|
2252
|
+
validateCatalogRules
|
|
2117
2253
|
};
|
|
2118
2254
|
//# sourceMappingURL=sdk.gen.mjs.map
|