@epcc-sdk/sdks-shopper 0.10.1 → 0.12.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/dist/client/@tanstack/react-query.gen.cjs +79 -0
- package/dist/client/@tanstack/react-query.gen.cjs.map +1 -1
- package/dist/client/@tanstack/react-query.gen.d.cts +153 -6
- package/dist/client/@tanstack/react-query.gen.d.ts +153 -6
- package/dist/client/@tanstack/react-query.gen.mjs +77 -0
- package/dist/client/@tanstack/react-query.gen.mjs.map +1 -1
- package/dist/client/index.cjs +10 -0
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.mjs +10 -0
- package/dist/client/index.mjs.map +1 -1
- package/dist/client/sdk.gen.cjs +73 -0
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +80 -5
- package/dist/client/sdk.gen.d.ts +80 -5
- package/dist/client/sdk.gen.mjs +68 -0
- package/dist/client/sdk.gen.mjs.map +1 -1
- package/dist/client/types.gen.cjs.map +1 -1
- package/dist/client/types.gen.d.cts +460 -94
- package/dist/client/types.gen.d.ts +460 -94
- package/dist/client/zod.gen.cjs +287 -30
- package/dist/client/zod.gen.cjs.map +1 -1
- package/dist/client/zod.gen.d.cts +880 -203
- package/dist/client/zod.gen.d.ts +880 -203
- package/dist/client/zod.gen.mjs +268 -30
- package/dist/client/zod.gen.mjs.map +1 -1
- 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/dist/zod.d.cts +1 -1
- package/dist/zod.d.ts +1 -1
- package/package.json +1 -1
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
createRule,
|
|
30
30
|
createShippingGroup,
|
|
31
31
|
createSubscriptionState,
|
|
32
|
+
createTransactionNote,
|
|
32
33
|
deleteACart,
|
|
33
34
|
deleteACartItem,
|
|
34
35
|
deleteAccountCartAssociation,
|
|
@@ -44,6 +45,7 @@ import {
|
|
|
44
45
|
deleteReleases,
|
|
45
46
|
deleteRuleById,
|
|
46
47
|
deleteTaxItemFromCartItemComponent,
|
|
48
|
+
deleteTransactionNote,
|
|
47
49
|
deleteV2AccountAddress,
|
|
48
50
|
getACart,
|
|
49
51
|
getACurrency,
|
|
@@ -104,6 +106,8 @@ import {
|
|
|
104
106
|
getSubscriptionInvoice,
|
|
105
107
|
getSubscriptionInvoicePayment,
|
|
106
108
|
getSubscriptionState,
|
|
109
|
+
getTransactionNote,
|
|
110
|
+
getTransactionNotes,
|
|
107
111
|
getV2AccountAddress,
|
|
108
112
|
getV2AccountAddresses,
|
|
109
113
|
getV2AccountMembers,
|
|
@@ -152,6 +156,7 @@ import {
|
|
|
152
156
|
updateRule,
|
|
153
157
|
updateShippingGroup,
|
|
154
158
|
updateTaxItemFromCartItemComponent,
|
|
159
|
+
updateTransactionNote,
|
|
155
160
|
validateCatalogRules
|
|
156
161
|
} from "../sdk.gen.mjs";
|
|
157
162
|
const createQueryKey = (id, options, infinite, tags) => {
|
|
@@ -1453,6 +1458,71 @@ const cancelATransactionMutation = (options) => {
|
|
|
1453
1458
|
};
|
|
1454
1459
|
return mutationOptions;
|
|
1455
1460
|
};
|
|
1461
|
+
const getTransactionNotesQueryKey = (options) => createQueryKey("getTransactionNotes", options);
|
|
1462
|
+
const getTransactionNotesOptions = (options) => queryOptions({
|
|
1463
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1464
|
+
const { data } = await getTransactionNotes({
|
|
1465
|
+
...options,
|
|
1466
|
+
...queryKey[0],
|
|
1467
|
+
signal,
|
|
1468
|
+
throwOnError: true
|
|
1469
|
+
});
|
|
1470
|
+
return data;
|
|
1471
|
+
},
|
|
1472
|
+
queryKey: getTransactionNotesQueryKey(options)
|
|
1473
|
+
});
|
|
1474
|
+
const createTransactionNoteMutation = (options) => {
|
|
1475
|
+
const mutationOptions = {
|
|
1476
|
+
mutationFn: async (fnOptions) => {
|
|
1477
|
+
const { data } = await createTransactionNote({
|
|
1478
|
+
...options,
|
|
1479
|
+
...fnOptions,
|
|
1480
|
+
throwOnError: true
|
|
1481
|
+
});
|
|
1482
|
+
return data;
|
|
1483
|
+
}
|
|
1484
|
+
};
|
|
1485
|
+
return mutationOptions;
|
|
1486
|
+
};
|
|
1487
|
+
const deleteTransactionNoteMutation = (options) => {
|
|
1488
|
+
const mutationOptions = {
|
|
1489
|
+
mutationFn: async (fnOptions) => {
|
|
1490
|
+
const { data } = await deleteTransactionNote({
|
|
1491
|
+
...options,
|
|
1492
|
+
...fnOptions,
|
|
1493
|
+
throwOnError: true
|
|
1494
|
+
});
|
|
1495
|
+
return data;
|
|
1496
|
+
}
|
|
1497
|
+
};
|
|
1498
|
+
return mutationOptions;
|
|
1499
|
+
};
|
|
1500
|
+
const getTransactionNoteQueryKey = (options) => createQueryKey("getTransactionNote", options);
|
|
1501
|
+
const getTransactionNoteOptions = (options) => queryOptions({
|
|
1502
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1503
|
+
const { data } = await getTransactionNote({
|
|
1504
|
+
...options,
|
|
1505
|
+
...queryKey[0],
|
|
1506
|
+
signal,
|
|
1507
|
+
throwOnError: true
|
|
1508
|
+
});
|
|
1509
|
+
return data;
|
|
1510
|
+
},
|
|
1511
|
+
queryKey: getTransactionNoteQueryKey(options)
|
|
1512
|
+
});
|
|
1513
|
+
const updateTransactionNoteMutation = (options) => {
|
|
1514
|
+
const mutationOptions = {
|
|
1515
|
+
mutationFn: async (fnOptions) => {
|
|
1516
|
+
const { data } = await updateTransactionNote({
|
|
1517
|
+
...options,
|
|
1518
|
+
...fnOptions,
|
|
1519
|
+
throwOnError: true
|
|
1520
|
+
});
|
|
1521
|
+
return data;
|
|
1522
|
+
}
|
|
1523
|
+
};
|
|
1524
|
+
return mutationOptions;
|
|
1525
|
+
};
|
|
1456
1526
|
const getOrderShippingGroupsQueryKey = (options) => createQueryKey("getOrderShippingGroups", options);
|
|
1457
1527
|
const getOrderShippingGroupsOptions = (options) => queryOptions({
|
|
1458
1528
|
queryFn: async ({ queryKey, signal }) => {
|
|
@@ -2171,6 +2241,7 @@ export {
|
|
|
2171
2241
|
createRuleMutation,
|
|
2172
2242
|
createShippingGroupMutation,
|
|
2173
2243
|
createSubscriptionStateMutation,
|
|
2244
|
+
createTransactionNoteMutation,
|
|
2174
2245
|
deleteACartItemMutation,
|
|
2175
2246
|
deleteACartMutation,
|
|
2176
2247
|
deleteAPromotionViaPromotionCodeMutation,
|
|
@@ -2186,6 +2257,7 @@ export {
|
|
|
2186
2257
|
deleteReleasesMutation,
|
|
2187
2258
|
deleteRuleByIdMutation,
|
|
2188
2259
|
deleteTaxItemFromCartItemComponentMutation,
|
|
2260
|
+
deleteTransactionNoteMutation,
|
|
2189
2261
|
deleteV2AccountAddressMutation,
|
|
2190
2262
|
getACartOptions,
|
|
2191
2263
|
getACartQueryKey,
|
|
@@ -2305,6 +2377,10 @@ export {
|
|
|
2305
2377
|
getSubscriptionQueryKey,
|
|
2306
2378
|
getSubscriptionStateOptions,
|
|
2307
2379
|
getSubscriptionStateQueryKey,
|
|
2380
|
+
getTransactionNoteOptions,
|
|
2381
|
+
getTransactionNoteQueryKey,
|
|
2382
|
+
getTransactionNotesOptions,
|
|
2383
|
+
getTransactionNotesQueryKey,
|
|
2308
2384
|
getV2AccountAddressOptions,
|
|
2309
2385
|
getV2AccountAddressQueryKey,
|
|
2310
2386
|
getV2AccountAddressesOptions,
|
|
@@ -2377,6 +2453,7 @@ export {
|
|
|
2377
2453
|
updateRuleMutation,
|
|
2378
2454
|
updateShippingGroupMutation,
|
|
2379
2455
|
updateTaxItemFromCartItemComponentMutation,
|
|
2456
|
+
updateTransactionNoteMutation,
|
|
2380
2457
|
validateCatalogRulesMutation
|
|
2381
2458
|
};
|
|
2382
2459
|
//# sourceMappingURL=react-query.gen.mjs.map
|