@epcc-sdk/sdks-cart-checkout-order 0.5.2 → 0.5.3
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/mcp-support.gen.cjs +129 -22
- package/dist/client/mcp-support.gen.cjs.map +1 -1
- package/dist/client/mcp-support.gen.mjs +127 -21
- package/dist/client/mcp-support.gen.mjs.map +1 -1
- package/dist/client/mcp.gen.cjs +241 -139
- package/dist/client/mcp.gen.cjs.map +1 -1
- package/dist/client/mcp.gen.mjs +246 -140
- package/dist/client/mcp.gen.mjs.map +1 -1
- package/package.json +1 -1
package/dist/client/mcp.gen.mjs
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
loose,
|
|
4
|
+
toToolResult,
|
|
5
|
+
withSharedSchemaIds
|
|
6
|
+
} from "./mcp-support.gen.mjs";
|
|
3
7
|
import {
|
|
4
8
|
addCustomDiscountToCartItem,
|
|
5
9
|
addTaxItemToCart,
|
|
@@ -204,10 +208,13 @@ const getCartsTool = (options) => {
|
|
|
204
208
|
handler
|
|
205
209
|
};
|
|
206
210
|
};
|
|
207
|
-
const createACartInput =
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
+
const createACartInput = withSharedSchemaIds(
|
|
212
|
+
"cart_checkout_order",
|
|
213
|
+
z.object({
|
|
214
|
+
headers: zCreateACartHeaders.strict().optional(),
|
|
215
|
+
body: loose(zCreateACartBody).optional()
|
|
216
|
+
}).strict()
|
|
217
|
+
);
|
|
211
218
|
const createACartTool = (options) => {
|
|
212
219
|
const handler = (args, extra) => toToolResult(
|
|
213
220
|
createACart({
|
|
@@ -314,10 +321,13 @@ const getACartTool = (options) => {
|
|
|
314
321
|
handler
|
|
315
322
|
};
|
|
316
323
|
};
|
|
317
|
-
const updateACartInput =
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
324
|
+
const updateACartInput = withSharedSchemaIds(
|
|
325
|
+
"cart_checkout_order",
|
|
326
|
+
z.object({
|
|
327
|
+
path: zUpdateACartPath.strict(),
|
|
328
|
+
body: loose(zUpdateACartBody).optional()
|
|
329
|
+
}).strict()
|
|
330
|
+
);
|
|
321
331
|
const updateACartTool = (options) => {
|
|
322
332
|
const handler = (args, extra) => toToolResult(
|
|
323
333
|
updateACart({
|
|
@@ -424,10 +434,13 @@ const getCartItemsTool = (options) => {
|
|
|
424
434
|
handler
|
|
425
435
|
};
|
|
426
436
|
};
|
|
427
|
-
const manageCartsInput =
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
437
|
+
const manageCartsInput = withSharedSchemaIds(
|
|
438
|
+
"cart_checkout_order",
|
|
439
|
+
z.object({
|
|
440
|
+
path: zManageCartsPath.strict(),
|
|
441
|
+
body: loose(zManageCartsBody).optional()
|
|
442
|
+
}).strict()
|
|
443
|
+
);
|
|
431
444
|
const manageCartsTool = (options) => {
|
|
432
445
|
const handler = (args, extra) => toToolResult(
|
|
433
446
|
manageCarts({
|
|
@@ -461,10 +474,13 @@ const manageCartsTool = (options) => {
|
|
|
461
474
|
handler
|
|
462
475
|
};
|
|
463
476
|
};
|
|
464
|
-
const bulkUpdateItemsInCartInput =
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
477
|
+
const bulkUpdateItemsInCartInput = withSharedSchemaIds(
|
|
478
|
+
"cart_checkout_order",
|
|
479
|
+
z.object({
|
|
480
|
+
path: zBulkUpdateItemsInCartPath.strict(),
|
|
481
|
+
body: loose(zBulkUpdateItemsInCartBody).optional()
|
|
482
|
+
}).strict()
|
|
483
|
+
);
|
|
468
484
|
const bulkUpdateItemsInCartTool = (options) => {
|
|
469
485
|
const handler = (args, extra) => toToolResult(
|
|
470
486
|
bulkUpdateItemsInCart({
|
|
@@ -534,10 +550,13 @@ const deleteACartItemTool = (options) => {
|
|
|
534
550
|
handler
|
|
535
551
|
};
|
|
536
552
|
};
|
|
537
|
-
const updateACartItemInput =
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
553
|
+
const updateACartItemInput = withSharedSchemaIds(
|
|
554
|
+
"cart_checkout_order",
|
|
555
|
+
z.object({
|
|
556
|
+
path: zUpdateACartItemPath.strict(),
|
|
557
|
+
body: loose(zUpdateACartItemBody).optional()
|
|
558
|
+
}).strict()
|
|
559
|
+
);
|
|
541
560
|
const updateACartItemTool = (options) => {
|
|
542
561
|
const handler = (args, extra) => toToolResult(
|
|
543
562
|
updateACartItem({
|
|
@@ -571,11 +590,14 @@ const updateACartItemTool = (options) => {
|
|
|
571
590
|
handler
|
|
572
591
|
};
|
|
573
592
|
};
|
|
574
|
-
const deleteAccountCartAssociationInput =
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
593
|
+
const deleteAccountCartAssociationInput = withSharedSchemaIds(
|
|
594
|
+
"cart_checkout_order",
|
|
595
|
+
z.object({
|
|
596
|
+
path: zDeleteAccountCartAssociationPath.strict(),
|
|
597
|
+
headers: zDeleteAccountCartAssociationHeaders.strict().optional(),
|
|
598
|
+
body: loose(zDeleteAccountCartAssociationBody).optional()
|
|
599
|
+
}).strict()
|
|
600
|
+
);
|
|
579
601
|
const deleteAccountCartAssociationTool = (options) => {
|
|
580
602
|
const handler = (args, extra) => toToolResult(
|
|
581
603
|
deleteAccountCartAssociation({
|
|
@@ -609,11 +631,14 @@ const deleteAccountCartAssociationTool = (options) => {
|
|
|
609
631
|
handler
|
|
610
632
|
};
|
|
611
633
|
};
|
|
612
|
-
const createAccountCartAssociationInput =
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
634
|
+
const createAccountCartAssociationInput = withSharedSchemaIds(
|
|
635
|
+
"cart_checkout_order",
|
|
636
|
+
z.object({
|
|
637
|
+
path: zCreateAccountCartAssociationPath.strict(),
|
|
638
|
+
headers: zCreateAccountCartAssociationHeaders.strict().optional(),
|
|
639
|
+
body: loose(zCreateAccountCartAssociationBody).optional()
|
|
640
|
+
}).strict()
|
|
641
|
+
);
|
|
617
642
|
const createAccountCartAssociationTool = (options) => {
|
|
618
643
|
const handler = (args, extra) => toToolResult(
|
|
619
644
|
createAccountCartAssociation({
|
|
@@ -647,11 +672,14 @@ const createAccountCartAssociationTool = (options) => {
|
|
|
647
672
|
handler
|
|
648
673
|
};
|
|
649
674
|
};
|
|
650
|
-
const deleteCustomerCartAssociationInput =
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
675
|
+
const deleteCustomerCartAssociationInput = withSharedSchemaIds(
|
|
676
|
+
"cart_checkout_order",
|
|
677
|
+
z.object({
|
|
678
|
+
path: zDeleteCustomerCartAssociationPath.strict(),
|
|
679
|
+
headers: zDeleteCustomerCartAssociationHeaders.strict().optional(),
|
|
680
|
+
body: loose(zDeleteCustomerCartAssociationBody).optional()
|
|
681
|
+
}).strict()
|
|
682
|
+
);
|
|
655
683
|
const deleteCustomerCartAssociationTool = (options) => {
|
|
656
684
|
const handler = (args, extra) => toToolResult(
|
|
657
685
|
deleteCustomerCartAssociation({
|
|
@@ -685,11 +713,14 @@ const deleteCustomerCartAssociationTool = (options) => {
|
|
|
685
713
|
handler
|
|
686
714
|
};
|
|
687
715
|
};
|
|
688
|
-
const createCustomerCartAssociationInput =
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
716
|
+
const createCustomerCartAssociationInput = withSharedSchemaIds(
|
|
717
|
+
"cart_checkout_order",
|
|
718
|
+
z.object({
|
|
719
|
+
path: zCreateCustomerCartAssociationPath.strict(),
|
|
720
|
+
headers: zCreateCustomerCartAssociationHeaders.strict().optional(),
|
|
721
|
+
body: loose(zCreateCustomerCartAssociationBody).optional()
|
|
722
|
+
}).strict()
|
|
723
|
+
);
|
|
693
724
|
const createCustomerCartAssociationTool = (options) => {
|
|
694
725
|
const handler = (args, extra) => toToolResult(
|
|
695
726
|
createCustomerCartAssociation({
|
|
@@ -759,10 +790,13 @@ const deleteAPromotionViaPromotionCodeTool = (options) => {
|
|
|
759
790
|
handler
|
|
760
791
|
};
|
|
761
792
|
};
|
|
762
|
-
const addTaxItemToCartInput =
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
793
|
+
const addTaxItemToCartInput = withSharedSchemaIds(
|
|
794
|
+
"cart_checkout_order",
|
|
795
|
+
z.object({
|
|
796
|
+
path: zAddTaxItemToCartPath.strict(),
|
|
797
|
+
body: loose(zAddTaxItemToCartBody)
|
|
798
|
+
}).strict()
|
|
799
|
+
);
|
|
766
800
|
const addTaxItemToCartTool = (options) => {
|
|
767
801
|
const handler = (args, extra) => toToolResult(
|
|
768
802
|
addTaxItemToCart({
|
|
@@ -796,10 +830,13 @@ const addTaxItemToCartTool = (options) => {
|
|
|
796
830
|
handler
|
|
797
831
|
};
|
|
798
832
|
};
|
|
799
|
-
const addTaxItemToCartItemComponentInput =
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
833
|
+
const addTaxItemToCartItemComponentInput = withSharedSchemaIds(
|
|
834
|
+
"cart_checkout_order",
|
|
835
|
+
z.object({
|
|
836
|
+
path: zAddTaxItemToCartItemComponentPath.strict(),
|
|
837
|
+
body: loose(zAddTaxItemToCartItemComponentBody)
|
|
838
|
+
}).strict()
|
|
839
|
+
);
|
|
803
840
|
const addTaxItemToCartItemComponentTool = (options) => {
|
|
804
841
|
const handler = (args, extra) => toToolResult(
|
|
805
842
|
addTaxItemToCartItemComponent({
|
|
@@ -869,10 +906,13 @@ const deleteTaxItemFromCartItemComponentTool = (options) => {
|
|
|
869
906
|
handler
|
|
870
907
|
};
|
|
871
908
|
};
|
|
872
|
-
const updateTaxItemFromCartItemComponentInput =
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
909
|
+
const updateTaxItemFromCartItemComponentInput = withSharedSchemaIds(
|
|
910
|
+
"cart_checkout_order",
|
|
911
|
+
z.object({
|
|
912
|
+
path: zUpdateTaxItemFromCartItemComponentPath.strict(),
|
|
913
|
+
body: loose(zUpdateTaxItemFromCartItemComponentBody).optional()
|
|
914
|
+
}).strict()
|
|
915
|
+
);
|
|
876
916
|
const updateTaxItemFromCartItemComponentTool = (options) => {
|
|
877
917
|
const handler = (args, extra) => toToolResult(
|
|
878
918
|
updateTaxItemFromCartItemComponent({
|
|
@@ -942,10 +982,13 @@ const bulkDeleteTaxItemsFromCartTool = (options) => {
|
|
|
942
982
|
handler
|
|
943
983
|
};
|
|
944
984
|
};
|
|
945
|
-
const bulkAddTaxItemsToCartInput =
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
985
|
+
const bulkAddTaxItemsToCartInput = withSharedSchemaIds(
|
|
986
|
+
"cart_checkout_order",
|
|
987
|
+
z.object({
|
|
988
|
+
path: zBulkAddTaxItemsToCartPath.strict(),
|
|
989
|
+
body: loose(zBulkAddTaxItemsToCartBody).optional()
|
|
990
|
+
}).strict()
|
|
991
|
+
);
|
|
949
992
|
const bulkAddTaxItemsToCartTool = (options) => {
|
|
950
993
|
const handler = (args, extra) => toToolResult(
|
|
951
994
|
bulkAddTaxItemsToCart({
|
|
@@ -1015,10 +1058,13 @@ const deleteATaxItemTool = (options) => {
|
|
|
1015
1058
|
handler
|
|
1016
1059
|
};
|
|
1017
1060
|
};
|
|
1018
|
-
const updateATaxItemInput =
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1061
|
+
const updateATaxItemInput = withSharedSchemaIds(
|
|
1062
|
+
"cart_checkout_order",
|
|
1063
|
+
z.object({
|
|
1064
|
+
path: zUpdateATaxItemPath.strict(),
|
|
1065
|
+
body: loose(zUpdateATaxItemBody).optional()
|
|
1066
|
+
}).strict()
|
|
1067
|
+
);
|
|
1022
1068
|
const updateATaxItemTool = (options) => {
|
|
1023
1069
|
const handler = (args, extra) => toToolResult(
|
|
1024
1070
|
updateATaxItem({
|
|
@@ -1088,10 +1134,13 @@ const bulkDeleteCustomDiscountsFromCartTool = (options) => {
|
|
|
1088
1134
|
handler
|
|
1089
1135
|
};
|
|
1090
1136
|
};
|
|
1091
|
-
const bulkAddCustomDiscountsToCartInput =
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1137
|
+
const bulkAddCustomDiscountsToCartInput = withSharedSchemaIds(
|
|
1138
|
+
"cart_checkout_order",
|
|
1139
|
+
z.object({
|
|
1140
|
+
path: zBulkAddCustomDiscountsToCartPath.strict(),
|
|
1141
|
+
body: loose(zBulkAddCustomDiscountsToCartBody).optional()
|
|
1142
|
+
}).strict()
|
|
1143
|
+
);
|
|
1095
1144
|
const bulkAddCustomDiscountsToCartTool = (options) => {
|
|
1096
1145
|
const handler = (args, extra) => toToolResult(
|
|
1097
1146
|
bulkAddCustomDiscountsToCart({
|
|
@@ -1161,10 +1210,13 @@ const deleteCustomDiscountFromCartTool = (options) => {
|
|
|
1161
1210
|
handler
|
|
1162
1211
|
};
|
|
1163
1212
|
};
|
|
1164
|
-
const updateCustomDiscountForCartInput =
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1213
|
+
const updateCustomDiscountForCartInput = withSharedSchemaIds(
|
|
1214
|
+
"cart_checkout_order",
|
|
1215
|
+
z.object({
|
|
1216
|
+
path: zUpdateCustomDiscountForCartPath.strict(),
|
|
1217
|
+
body: loose(zUpdateCustomDiscountForCartBody).optional()
|
|
1218
|
+
}).strict()
|
|
1219
|
+
);
|
|
1168
1220
|
const updateCustomDiscountForCartTool = (options) => {
|
|
1169
1221
|
const handler = (args, extra) => toToolResult(
|
|
1170
1222
|
updateCustomDiscountForCart({
|
|
@@ -1198,10 +1250,13 @@ const updateCustomDiscountForCartTool = (options) => {
|
|
|
1198
1250
|
handler
|
|
1199
1251
|
};
|
|
1200
1252
|
};
|
|
1201
|
-
const addCustomDiscountToCartItemInput =
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1253
|
+
const addCustomDiscountToCartItemInput = withSharedSchemaIds(
|
|
1254
|
+
"cart_checkout_order",
|
|
1255
|
+
z.object({
|
|
1256
|
+
path: zAddCustomDiscountToCartItemPath.strict(),
|
|
1257
|
+
body: loose(zAddCustomDiscountToCartItemBody).optional()
|
|
1258
|
+
}).strict()
|
|
1259
|
+
);
|
|
1205
1260
|
const addCustomDiscountToCartItemTool = (options) => {
|
|
1206
1261
|
const handler = (args, extra) => toToolResult(
|
|
1207
1262
|
addCustomDiscountToCartItem({
|
|
@@ -1271,10 +1326,13 @@ const deleteCustomDiscountFromCartItemTool = (options) => {
|
|
|
1271
1326
|
handler
|
|
1272
1327
|
};
|
|
1273
1328
|
};
|
|
1274
|
-
const updateCustomDiscountForCartItemInput =
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1329
|
+
const updateCustomDiscountForCartItemInput = withSharedSchemaIds(
|
|
1330
|
+
"cart_checkout_order",
|
|
1331
|
+
z.object({
|
|
1332
|
+
path: zUpdateCustomDiscountForCartItemPath.strict(),
|
|
1333
|
+
body: loose(zUpdateCustomDiscountForCartItemBody).optional()
|
|
1334
|
+
}).strict()
|
|
1335
|
+
);
|
|
1278
1336
|
const updateCustomDiscountForCartItemTool = (options) => {
|
|
1279
1337
|
const handler = (args, extra) => toToolResult(
|
|
1280
1338
|
updateCustomDiscountForCartItem({
|
|
@@ -1344,10 +1402,13 @@ const getShippingGroupsTool = (options) => {
|
|
|
1344
1402
|
handler
|
|
1345
1403
|
};
|
|
1346
1404
|
};
|
|
1347
|
-
const createShippingGroupInput =
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1405
|
+
const createShippingGroupInput = withSharedSchemaIds(
|
|
1406
|
+
"cart_checkout_order",
|
|
1407
|
+
z.object({
|
|
1408
|
+
path: zCreateShippingGroupPath.strict(),
|
|
1409
|
+
body: loose(zCreateShippingGroupBody)
|
|
1410
|
+
}).strict()
|
|
1411
|
+
);
|
|
1351
1412
|
const createShippingGroupTool = (options) => {
|
|
1352
1413
|
const handler = (args, extra) => toToolResult(
|
|
1353
1414
|
createShippingGroup({
|
|
@@ -1453,10 +1514,13 @@ const getShippingGroupByIdTool = (options) => {
|
|
|
1453
1514
|
handler
|
|
1454
1515
|
};
|
|
1455
1516
|
};
|
|
1456
|
-
const updateShippingGroupInput =
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1517
|
+
const updateShippingGroupInput = withSharedSchemaIds(
|
|
1518
|
+
"cart_checkout_order",
|
|
1519
|
+
z.object({
|
|
1520
|
+
path: zUpdateShippingGroupPath.strict(),
|
|
1521
|
+
body: loose(zUpdateShippingGroupBody)
|
|
1522
|
+
}).strict()
|
|
1523
|
+
);
|
|
1460
1524
|
const updateShippingGroupTool = (options) => {
|
|
1461
1525
|
const handler = (args, extra) => toToolResult(
|
|
1462
1526
|
updateShippingGroup({
|
|
@@ -1490,10 +1554,13 @@ const updateShippingGroupTool = (options) => {
|
|
|
1490
1554
|
handler
|
|
1491
1555
|
};
|
|
1492
1556
|
};
|
|
1493
|
-
const createCartPaymentIntentInput =
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1557
|
+
const createCartPaymentIntentInput = withSharedSchemaIds(
|
|
1558
|
+
"cart_checkout_order",
|
|
1559
|
+
z.object({
|
|
1560
|
+
path: zCreateCartPaymentIntentPath.strict(),
|
|
1561
|
+
body: loose(zCreateCartPaymentIntentBody).optional()
|
|
1562
|
+
}).strict()
|
|
1563
|
+
);
|
|
1497
1564
|
const createCartPaymentIntentTool = (options) => {
|
|
1498
1565
|
const handler = (args, extra) => toToolResult(
|
|
1499
1566
|
createCartPaymentIntent({
|
|
@@ -1527,10 +1594,13 @@ const createCartPaymentIntentTool = (options) => {
|
|
|
1527
1594
|
handler
|
|
1528
1595
|
};
|
|
1529
1596
|
};
|
|
1530
|
-
const updateCartPaymentIntentInput =
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1597
|
+
const updateCartPaymentIntentInput = withSharedSchemaIds(
|
|
1598
|
+
"cart_checkout_order",
|
|
1599
|
+
z.object({
|
|
1600
|
+
path: zUpdateCartPaymentIntentPath.strict(),
|
|
1601
|
+
body: loose(zUpdateCartPaymentIntentBody)
|
|
1602
|
+
}).strict()
|
|
1603
|
+
);
|
|
1534
1604
|
const updateCartPaymentIntentTool = (options) => {
|
|
1535
1605
|
const handler = (args, extra) => toToolResult(
|
|
1536
1606
|
updateCartPaymentIntent({
|
|
@@ -1564,11 +1634,14 @@ const updateCartPaymentIntentTool = (options) => {
|
|
|
1564
1634
|
handler
|
|
1565
1635
|
};
|
|
1566
1636
|
};
|
|
1567
|
-
const checkoutApiInput =
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1637
|
+
const checkoutApiInput = withSharedSchemaIds(
|
|
1638
|
+
"cart_checkout_order",
|
|
1639
|
+
z.object({
|
|
1640
|
+
path: zCheckoutApiPath.strict(),
|
|
1641
|
+
headers: zCheckoutApiHeaders.strict().optional(),
|
|
1642
|
+
body: loose(zCheckoutApiBody).optional()
|
|
1643
|
+
}).strict()
|
|
1644
|
+
);
|
|
1572
1645
|
const checkoutApiTool = (options) => {
|
|
1573
1646
|
const handler = (args, extra) => toToolResult(
|
|
1574
1647
|
checkoutApi({
|
|
@@ -1676,10 +1749,13 @@ const getAnOrderTool = (options) => {
|
|
|
1676
1749
|
handler
|
|
1677
1750
|
};
|
|
1678
1751
|
};
|
|
1679
|
-
const updateAnOrderInput =
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1752
|
+
const updateAnOrderInput = withSharedSchemaIds(
|
|
1753
|
+
"cart_checkout_order",
|
|
1754
|
+
z.object({
|
|
1755
|
+
path: zUpdateAnOrderPath.strict(),
|
|
1756
|
+
body: loose(zUpdateAnOrderBody).optional()
|
|
1757
|
+
}).strict()
|
|
1758
|
+
);
|
|
1683
1759
|
const updateAnOrderTool = (options) => {
|
|
1684
1760
|
const handler = (args, extra) => toToolResult(
|
|
1685
1761
|
updateAnOrder({
|
|
@@ -1750,9 +1826,12 @@ const getOrderItemsTool = (options) => {
|
|
|
1750
1826
|
handler
|
|
1751
1827
|
};
|
|
1752
1828
|
};
|
|
1753
|
-
const anonymizeOrdersInput =
|
|
1754
|
-
|
|
1755
|
-
|
|
1829
|
+
const anonymizeOrdersInput = withSharedSchemaIds(
|
|
1830
|
+
"cart_checkout_order",
|
|
1831
|
+
z.object({
|
|
1832
|
+
body: loose(zAnonymizeOrdersBody).optional()
|
|
1833
|
+
}).strict()
|
|
1834
|
+
);
|
|
1756
1835
|
const anonymizeOrdersTool = (options) => {
|
|
1757
1836
|
const handler = (args, extra) => toToolResult(
|
|
1758
1837
|
anonymizeOrders({
|
|
@@ -1822,10 +1901,13 @@ const confirmOrderTool = (options) => {
|
|
|
1822
1901
|
handler
|
|
1823
1902
|
};
|
|
1824
1903
|
};
|
|
1825
|
-
const paymentSetupInput =
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1904
|
+
const paymentSetupInput = withSharedSchemaIds(
|
|
1905
|
+
"cart_checkout_order",
|
|
1906
|
+
z.object({
|
|
1907
|
+
path: zPaymentSetupPath.strict(),
|
|
1908
|
+
body: loose(zPaymentSetupBody).optional()
|
|
1909
|
+
}).strict()
|
|
1910
|
+
);
|
|
1829
1911
|
const paymentSetupTool = (options) => {
|
|
1830
1912
|
const handler = (args, extra) => toToolResult(
|
|
1831
1913
|
paymentSetup({
|
|
@@ -1859,10 +1941,13 @@ const paymentSetupTool = (options) => {
|
|
|
1859
1941
|
handler
|
|
1860
1942
|
};
|
|
1861
1943
|
};
|
|
1862
|
-
const confirmPaymentInput =
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1944
|
+
const confirmPaymentInput = withSharedSchemaIds(
|
|
1945
|
+
"cart_checkout_order",
|
|
1946
|
+
z.object({
|
|
1947
|
+
path: zConfirmPaymentPath.strict(),
|
|
1948
|
+
body: loose(zConfirmPaymentBody).optional()
|
|
1949
|
+
}).strict()
|
|
1950
|
+
);
|
|
1866
1951
|
const confirmPaymentTool = (options) => {
|
|
1867
1952
|
const handler = (args, extra) => toToolResult(
|
|
1868
1953
|
confirmPayment({
|
|
@@ -1896,10 +1981,13 @@ const confirmPaymentTool = (options) => {
|
|
|
1896
1981
|
handler
|
|
1897
1982
|
};
|
|
1898
1983
|
};
|
|
1899
|
-
const captureATransactionInput =
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1984
|
+
const captureATransactionInput = withSharedSchemaIds(
|
|
1985
|
+
"cart_checkout_order",
|
|
1986
|
+
z.object({
|
|
1987
|
+
path: zCaptureATransactionPath.strict(),
|
|
1988
|
+
body: loose(zCaptureATransactionBody).optional()
|
|
1989
|
+
}).strict()
|
|
1990
|
+
);
|
|
1903
1991
|
const captureATransactionTool = (options) => {
|
|
1904
1992
|
const handler = (args, extra) => toToolResult(
|
|
1905
1993
|
captureATransaction({
|
|
@@ -1933,10 +2021,13 @@ const captureATransactionTool = (options) => {
|
|
|
1933
2021
|
handler
|
|
1934
2022
|
};
|
|
1935
2023
|
};
|
|
1936
|
-
const refundATransactionInput =
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
2024
|
+
const refundATransactionInput = withSharedSchemaIds(
|
|
2025
|
+
"cart_checkout_order",
|
|
2026
|
+
z.object({
|
|
2027
|
+
path: zRefundATransactionPath.strict(),
|
|
2028
|
+
body: loose(zRefundATransactionBody).optional()
|
|
2029
|
+
}).strict()
|
|
2030
|
+
);
|
|
1940
2031
|
const refundATransactionTool = (options) => {
|
|
1941
2032
|
const handler = (args, extra) => toToolResult(
|
|
1942
2033
|
refundATransaction({
|
|
@@ -2042,10 +2133,13 @@ const getATransactionTool = (options) => {
|
|
|
2042
2133
|
handler
|
|
2043
2134
|
};
|
|
2044
2135
|
};
|
|
2045
|
-
const cancelATransactionInput =
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2136
|
+
const cancelATransactionInput = withSharedSchemaIds(
|
|
2137
|
+
"cart_checkout_order",
|
|
2138
|
+
z.object({
|
|
2139
|
+
path: zCancelATransactionPath.strict(),
|
|
2140
|
+
body: loose(zCancelATransactionBody).optional()
|
|
2141
|
+
}).strict()
|
|
2142
|
+
);
|
|
2049
2143
|
const cancelATransactionTool = (options) => {
|
|
2050
2144
|
const handler = (args, extra) => toToolResult(
|
|
2051
2145
|
cancelATransaction({
|
|
@@ -2115,10 +2209,13 @@ const getOrderShippingGroupsTool = (options) => {
|
|
|
2115
2209
|
handler
|
|
2116
2210
|
};
|
|
2117
2211
|
};
|
|
2118
|
-
const createOrderShippingGroupInput =
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2212
|
+
const createOrderShippingGroupInput = withSharedSchemaIds(
|
|
2213
|
+
"cart_checkout_order",
|
|
2214
|
+
z.object({
|
|
2215
|
+
path: zCreateOrderShippingGroupPath.strict(),
|
|
2216
|
+
body: loose(zCreateOrderShippingGroupBody).optional()
|
|
2217
|
+
}).strict()
|
|
2218
|
+
);
|
|
2122
2219
|
const createOrderShippingGroupTool = (options) => {
|
|
2123
2220
|
const handler = (args, extra) => toToolResult(
|
|
2124
2221
|
createOrderShippingGroup({
|
|
@@ -2189,10 +2286,13 @@ const getShippingGroupsByIdTool = (options) => {
|
|
|
2189
2286
|
handler
|
|
2190
2287
|
};
|
|
2191
2288
|
};
|
|
2192
|
-
const putShippingGroupByIdInput =
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2289
|
+
const putShippingGroupByIdInput = withSharedSchemaIds(
|
|
2290
|
+
"cart_checkout_order",
|
|
2291
|
+
z.object({
|
|
2292
|
+
path: zPutShippingGroupByIdPath.strict(),
|
|
2293
|
+
body: loose(zPutShippingGroupByIdBody)
|
|
2294
|
+
}).strict()
|
|
2295
|
+
);
|
|
2196
2296
|
const putShippingGroupByIdTool = (options) => {
|
|
2197
2297
|
const handler = (args, extra) => toToolResult(
|
|
2198
2298
|
putShippingGroupById({
|
|
@@ -2260,9 +2360,12 @@ const getV2SettingsCartTool = (options) => {
|
|
|
2260
2360
|
handler
|
|
2261
2361
|
};
|
|
2262
2362
|
};
|
|
2263
|
-
const putV2SettingsCartInput =
|
|
2264
|
-
|
|
2265
|
-
|
|
2363
|
+
const putV2SettingsCartInput = withSharedSchemaIds(
|
|
2364
|
+
"cart_checkout_order",
|
|
2365
|
+
z.object({
|
|
2366
|
+
body: loose(zPutV2SettingsCartBody).optional()
|
|
2367
|
+
}).strict()
|
|
2368
|
+
);
|
|
2266
2369
|
const putV2SettingsCartTool = (options) => {
|
|
2267
2370
|
const handler = (args, extra) => toToolResult(
|
|
2268
2371
|
putV2SettingsCart({
|
|
@@ -2332,10 +2435,13 @@ const getV2SettingsCartStoreIdTool = (options) => {
|
|
|
2332
2435
|
handler
|
|
2333
2436
|
};
|
|
2334
2437
|
};
|
|
2335
|
-
const putV2SettingsCartStoreIdInput =
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2438
|
+
const putV2SettingsCartStoreIdInput = withSharedSchemaIds(
|
|
2439
|
+
"cart_checkout_order",
|
|
2440
|
+
z.object({
|
|
2441
|
+
path: zPutV2SettingsCartStoreIdPath.strict(),
|
|
2442
|
+
body: loose(zPutV2SettingsCartStoreIdBody).optional()
|
|
2443
|
+
}).strict()
|
|
2444
|
+
);
|
|
2339
2445
|
const putV2SettingsCartStoreIdTool = (options) => {
|
|
2340
2446
|
const handler = (args, extra) => toToolResult(
|
|
2341
2447
|
putV2SettingsCartStoreId({
|