ce-storefront 0.10.12 → 0.11.1

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.
Files changed (323) hide show
  1. package/README.md +0 -83
  2. package/docs/sdks/customers/README.md +2 -2
  3. package/esm/lib/config.d.ts +3 -3
  4. package/esm/lib/config.js +3 -3
  5. package/esm/lib/config.js.map +1 -1
  6. package/esm/models/components/cart.d.ts +14 -0
  7. package/esm/models/components/cart.d.ts.map +1 -1
  8. package/esm/models/components/cart.js +28 -0
  9. package/esm/models/components/cart.js.map +1 -1
  10. package/jsr.json +1 -1
  11. package/package.json +2 -16
  12. package/src/lib/config.ts +3 -3
  13. package/src/models/components/cart.ts +42 -0
  14. package/bin/mcp-server.js +0 -50254
  15. package/bin/mcp-server.js.map +0 -467
  16. package/esm/mcp-server/build.d.mts.map +0 -1
  17. package/esm/mcp-server/build.mjs +0 -14
  18. package/esm/mcp-server/build.mjs.map +0 -1
  19. package/esm/mcp-server/cli/start/command.d.ts +0 -2
  20. package/esm/mcp-server/cli/start/command.d.ts.map +0 -1
  21. package/esm/mcp-server/cli/start/command.js +0 -108
  22. package/esm/mcp-server/cli/start/command.js.map +0 -1
  23. package/esm/mcp-server/cli/start/impl.d.ts +0 -19
  24. package/esm/mcp-server/cli/start/impl.d.ts.map +0 -1
  25. package/esm/mcp-server/cli/start/impl.js +0 -100
  26. package/esm/mcp-server/cli/start/impl.js.map +0 -1
  27. package/esm/mcp-server/cli.d.ts +0 -6
  28. package/esm/mcp-server/cli.d.ts.map +0 -1
  29. package/esm/mcp-server/cli.js +0 -7
  30. package/esm/mcp-server/cli.js.map +0 -1
  31. package/esm/mcp-server/console-logger.d.ts +0 -7
  32. package/esm/mcp-server/console-logger.d.ts.map +0 -1
  33. package/esm/mcp-server/console-logger.js +0 -55
  34. package/esm/mcp-server/console-logger.js.map +0 -1
  35. package/esm/mcp-server/extensions.d.ts +0 -11
  36. package/esm/mcp-server/extensions.d.ts.map +0 -1
  37. package/esm/mcp-server/extensions.js +0 -5
  38. package/esm/mcp-server/extensions.js.map +0 -1
  39. package/esm/mcp-server/mcp-server.d.ts +0 -2
  40. package/esm/mcp-server/mcp-server.d.ts.map +0 -1
  41. package/esm/mcp-server/mcp-server.js +0 -23
  42. package/esm/mcp-server/mcp-server.js.map +0 -1
  43. package/esm/mcp-server/prompts.d.ts +0 -26
  44. package/esm/mcp-server/prompts.d.ts.map +0 -1
  45. package/esm/mcp-server/prompts.js +0 -47
  46. package/esm/mcp-server/prompts.js.map +0 -1
  47. package/esm/mcp-server/resources.d.ts +0 -32
  48. package/esm/mcp-server/resources.d.ts.map +0 -1
  49. package/esm/mcp-server/resources.js +0 -82
  50. package/esm/mcp-server/resources.js.map +0 -1
  51. package/esm/mcp-server/scopes.d.ts +0 -3
  52. package/esm/mcp-server/scopes.d.ts.map +0 -1
  53. package/esm/mcp-server/scopes.js +0 -5
  54. package/esm/mcp-server/scopes.js.map +0 -1
  55. package/esm/mcp-server/server.d.ts +0 -14
  56. package/esm/mcp-server/server.d.ts.map +0 -1
  57. package/esm/mcp-server/server.js +0 -128
  58. package/esm/mcp-server/server.js.map +0 -1
  59. package/esm/mcp-server/shared.d.ts +0 -7
  60. package/esm/mcp-server/shared.d.ts.map +0 -1
  61. package/esm/mcp-server/shared.js +0 -59
  62. package/esm/mcp-server/shared.js.map +0 -1
  63. package/esm/mcp-server/tools/authGenerateOtp.d.ts +0 -8
  64. package/esm/mcp-server/tools/authGenerateOtp.d.ts.map +0 -1
  65. package/esm/mcp-server/tools/authGenerateOtp.js +0 -28
  66. package/esm/mcp-server/tools/authGenerateOtp.js.map +0 -1
  67. package/esm/mcp-server/tools/authGetUserDetail.d.ts +0 -8
  68. package/esm/mcp-server/tools/authGetUserDetail.d.ts.map +0 -1
  69. package/esm/mcp-server/tools/authGetUserDetail.js +0 -28
  70. package/esm/mcp-server/tools/authGetUserDetail.js.map +0 -1
  71. package/esm/mcp-server/tools/authLoginWithEmail.d.ts +0 -8
  72. package/esm/mcp-server/tools/authLoginWithEmail.d.ts.map +0 -1
  73. package/esm/mcp-server/tools/authLoginWithEmail.js +0 -28
  74. package/esm/mcp-server/tools/authLoginWithEmail.js.map +0 -1
  75. package/esm/mcp-server/tools/authLoginWithPhone.d.ts +0 -8
  76. package/esm/mcp-server/tools/authLoginWithPhone.d.ts.map +0 -1
  77. package/esm/mcp-server/tools/authLoginWithPhone.js +0 -28
  78. package/esm/mcp-server/tools/authLoginWithPhone.js.map +0 -1
  79. package/esm/mcp-server/tools/authLoginWithWhatsapp.d.ts +0 -8
  80. package/esm/mcp-server/tools/authLoginWithWhatsapp.d.ts.map +0 -1
  81. package/esm/mcp-server/tools/authLoginWithWhatsapp.js +0 -28
  82. package/esm/mcp-server/tools/authLoginWithWhatsapp.js.map +0 -1
  83. package/esm/mcp-server/tools/authLogout.d.ts +0 -3
  84. package/esm/mcp-server/tools/authLogout.d.ts.map +0 -1
  85. package/esm/mcp-server/tools/authLogout.js +0 -23
  86. package/esm/mcp-server/tools/authLogout.js.map +0 -1
  87. package/esm/mcp-server/tools/authRefreshToken.d.ts +0 -8
  88. package/esm/mcp-server/tools/authRefreshToken.d.ts.map +0 -1
  89. package/esm/mcp-server/tools/authRefreshToken.js +0 -28
  90. package/esm/mcp-server/tools/authRefreshToken.js.map +0 -1
  91. package/esm/mcp-server/tools/authUpdateUser.d.ts +0 -8
  92. package/esm/mcp-server/tools/authUpdateUser.d.ts.map +0 -1
  93. package/esm/mcp-server/tools/authUpdateUser.js +0 -28
  94. package/esm/mcp-server/tools/authUpdateUser.js.map +0 -1
  95. package/esm/mcp-server/tools/authVerifyOtp.d.ts +0 -8
  96. package/esm/mcp-server/tools/authVerifyOtp.d.ts.map +0 -1
  97. package/esm/mcp-server/tools/authVerifyOtp.js +0 -28
  98. package/esm/mcp-server/tools/authVerifyOtp.js.map +0 -1
  99. package/esm/mcp-server/tools/cartsAddShippingMethod.d.ts +0 -8
  100. package/esm/mcp-server/tools/cartsAddShippingMethod.d.ts.map +0 -1
  101. package/esm/mcp-server/tools/cartsAddShippingMethod.js +0 -28
  102. package/esm/mcp-server/tools/cartsAddShippingMethod.js.map +0 -1
  103. package/esm/mcp-server/tools/cartsApplyCoupon.d.ts +0 -8
  104. package/esm/mcp-server/tools/cartsApplyCoupon.d.ts.map +0 -1
  105. package/esm/mcp-server/tools/cartsApplyCoupon.js +0 -28
  106. package/esm/mcp-server/tools/cartsApplyCoupon.js.map +0 -1
  107. package/esm/mcp-server/tools/cartsCreateCart.d.ts +0 -8
  108. package/esm/mcp-server/tools/cartsCreateCart.d.ts.map +0 -1
  109. package/esm/mcp-server/tools/cartsCreateCart.js +0 -28
  110. package/esm/mcp-server/tools/cartsCreateCart.js.map +0 -1
  111. package/esm/mcp-server/tools/cartsCreateCartAddress.d.ts +0 -8
  112. package/esm/mcp-server/tools/cartsCreateCartAddress.d.ts.map +0 -1
  113. package/esm/mcp-server/tools/cartsCreateCartAddress.js +0 -28
  114. package/esm/mcp-server/tools/cartsCreateCartAddress.js.map +0 -1
  115. package/esm/mcp-server/tools/cartsDeleteCart.d.ts +0 -8
  116. package/esm/mcp-server/tools/cartsDeleteCart.d.ts.map +0 -1
  117. package/esm/mcp-server/tools/cartsDeleteCart.js +0 -28
  118. package/esm/mcp-server/tools/cartsDeleteCart.js.map +0 -1
  119. package/esm/mcp-server/tools/cartsGetCart.d.ts +0 -8
  120. package/esm/mcp-server/tools/cartsGetCart.d.ts.map +0 -1
  121. package/esm/mcp-server/tools/cartsGetCart.js +0 -28
  122. package/esm/mcp-server/tools/cartsGetCart.js.map +0 -1
  123. package/esm/mcp-server/tools/cartsGetUserCart.d.ts +0 -8
  124. package/esm/mcp-server/tools/cartsGetUserCart.d.ts.map +0 -1
  125. package/esm/mcp-server/tools/cartsGetUserCart.js +0 -28
  126. package/esm/mcp-server/tools/cartsGetUserCart.js.map +0 -1
  127. package/esm/mcp-server/tools/cartsRedeemLoyaltyPoints.d.ts +0 -8
  128. package/esm/mcp-server/tools/cartsRedeemLoyaltyPoints.d.ts.map +0 -1
  129. package/esm/mcp-server/tools/cartsRedeemLoyaltyPoints.js +0 -28
  130. package/esm/mcp-server/tools/cartsRedeemLoyaltyPoints.js.map +0 -1
  131. package/esm/mcp-server/tools/cartsRemoveCoupon.d.ts +0 -8
  132. package/esm/mcp-server/tools/cartsRemoveCoupon.d.ts.map +0 -1
  133. package/esm/mcp-server/tools/cartsRemoveCoupon.js +0 -28
  134. package/esm/mcp-server/tools/cartsRemoveCoupon.js.map +0 -1
  135. package/esm/mcp-server/tools/cartsRemoveLoyaltyPoints.d.ts +0 -8
  136. package/esm/mcp-server/tools/cartsRemoveLoyaltyPoints.d.ts.map +0 -1
  137. package/esm/mcp-server/tools/cartsRemoveLoyaltyPoints.js +0 -28
  138. package/esm/mcp-server/tools/cartsRemoveLoyaltyPoints.js.map +0 -1
  139. package/esm/mcp-server/tools/cartsRemoveUserCart.d.ts +0 -8
  140. package/esm/mcp-server/tools/cartsRemoveUserCart.d.ts.map +0 -1
  141. package/esm/mcp-server/tools/cartsRemoveUserCart.js +0 -28
  142. package/esm/mcp-server/tools/cartsRemoveUserCart.js.map +0 -1
  143. package/esm/mcp-server/tools/cartsUpdateCart.d.ts +0 -8
  144. package/esm/mcp-server/tools/cartsUpdateCart.d.ts.map +0 -1
  145. package/esm/mcp-server/tools/cartsUpdateCart.js +0 -28
  146. package/esm/mcp-server/tools/cartsUpdateCart.js.map +0 -1
  147. package/esm/mcp-server/tools/catalogGetProductDetail.d.ts +0 -8
  148. package/esm/mcp-server/tools/catalogGetProductDetail.d.ts.map +0 -1
  149. package/esm/mcp-server/tools/catalogGetProductDetail.js +0 -28
  150. package/esm/mcp-server/tools/catalogGetProductDetail.js.map +0 -1
  151. package/esm/mcp-server/tools/catalogGetVariantDetail.d.ts +0 -8
  152. package/esm/mcp-server/tools/catalogGetVariantDetail.d.ts.map +0 -1
  153. package/esm/mcp-server/tools/catalogGetVariantDetail.js +0 -28
  154. package/esm/mcp-server/tools/catalogGetVariantDetail.js.map +0 -1
  155. package/esm/mcp-server/tools/catalogListCategories.d.ts +0 -8
  156. package/esm/mcp-server/tools/catalogListCategories.d.ts.map +0 -1
  157. package/esm/mcp-server/tools/catalogListCategories.js +0 -28
  158. package/esm/mcp-server/tools/catalogListCategories.js.map +0 -1
  159. package/esm/mcp-server/tools/catalogListCrosssellProducts.d.ts +0 -8
  160. package/esm/mcp-server/tools/catalogListCrosssellProducts.d.ts.map +0 -1
  161. package/esm/mcp-server/tools/catalogListCrosssellProducts.js +0 -28
  162. package/esm/mcp-server/tools/catalogListCrosssellProducts.js.map +0 -1
  163. package/esm/mcp-server/tools/catalogListProductReviews.d.ts +0 -8
  164. package/esm/mcp-server/tools/catalogListProductReviews.d.ts.map +0 -1
  165. package/esm/mcp-server/tools/catalogListProductReviews.js +0 -28
  166. package/esm/mcp-server/tools/catalogListProductReviews.js.map +0 -1
  167. package/esm/mcp-server/tools/catalogListProductVariants.d.ts +0 -8
  168. package/esm/mcp-server/tools/catalogListProductVariants.d.ts.map +0 -1
  169. package/esm/mcp-server/tools/catalogListProductVariants.js +0 -28
  170. package/esm/mcp-server/tools/catalogListProductVariants.js.map +0 -1
  171. package/esm/mcp-server/tools/catalogListProducts.d.ts +0 -8
  172. package/esm/mcp-server/tools/catalogListProducts.d.ts.map +0 -1
  173. package/esm/mcp-server/tools/catalogListProducts.js +0 -28
  174. package/esm/mcp-server/tools/catalogListProducts.js.map +0 -1
  175. package/esm/mcp-server/tools/catalogListSimilarProducts.d.ts +0 -8
  176. package/esm/mcp-server/tools/catalogListSimilarProducts.d.ts.map +0 -1
  177. package/esm/mcp-server/tools/catalogListSimilarProducts.js +0 -28
  178. package/esm/mcp-server/tools/catalogListSimilarProducts.js.map +0 -1
  179. package/esm/mcp-server/tools/catalogListSkus.d.ts +0 -8
  180. package/esm/mcp-server/tools/catalogListSkus.d.ts.map +0 -1
  181. package/esm/mcp-server/tools/catalogListSkus.js +0 -28
  182. package/esm/mcp-server/tools/catalogListSkus.js.map +0 -1
  183. package/esm/mcp-server/tools/catalogListUpsellProducts.d.ts +0 -8
  184. package/esm/mcp-server/tools/catalogListUpsellProducts.d.ts.map +0 -1
  185. package/esm/mcp-server/tools/catalogListUpsellProducts.js +0 -28
  186. package/esm/mcp-server/tools/catalogListUpsellProducts.js.map +0 -1
  187. package/esm/mcp-server/tools/catalogSearchProducts.d.ts +0 -8
  188. package/esm/mcp-server/tools/catalogSearchProducts.d.ts.map +0 -1
  189. package/esm/mcp-server/tools/catalogSearchProducts.js +0 -28
  190. package/esm/mcp-server/tools/catalogSearchProducts.js.map +0 -1
  191. package/esm/mcp-server/tools/commonListCountryPincodes.d.ts +0 -8
  192. package/esm/mcp-server/tools/commonListCountryPincodes.d.ts.map +0 -1
  193. package/esm/mcp-server/tools/commonListCountryPincodes.js +0 -28
  194. package/esm/mcp-server/tools/commonListCountryPincodes.js.map +0 -1
  195. package/esm/mcp-server/tools/customersCreateAddress.d.ts +0 -8
  196. package/esm/mcp-server/tools/customersCreateAddress.d.ts.map +0 -1
  197. package/esm/mcp-server/tools/customersCreateAddress.js +0 -28
  198. package/esm/mcp-server/tools/customersCreateAddress.js.map +0 -1
  199. package/esm/mcp-server/tools/customersDeleteAddress.d.ts +0 -8
  200. package/esm/mcp-server/tools/customersDeleteAddress.d.ts.map +0 -1
  201. package/esm/mcp-server/tools/customersDeleteAddress.js +0 -28
  202. package/esm/mcp-server/tools/customersDeleteAddress.js.map +0 -1
  203. package/esm/mcp-server/tools/customersGetAddressDetail.d.ts +0 -8
  204. package/esm/mcp-server/tools/customersGetAddressDetail.d.ts.map +0 -1
  205. package/esm/mcp-server/tools/customersGetAddressDetail.js +0 -28
  206. package/esm/mcp-server/tools/customersGetAddressDetail.js.map +0 -1
  207. package/esm/mcp-server/tools/customersGetLoyaltyDetails.d.ts +0 -8
  208. package/esm/mcp-server/tools/customersGetLoyaltyDetails.d.ts.map +0 -1
  209. package/esm/mcp-server/tools/customersGetLoyaltyDetails.js +0 -28
  210. package/esm/mcp-server/tools/customersGetLoyaltyDetails.js.map +0 -1
  211. package/esm/mcp-server/tools/customersListAddresses.d.ts +0 -8
  212. package/esm/mcp-server/tools/customersListAddresses.d.ts.map +0 -1
  213. package/esm/mcp-server/tools/customersListAddresses.js +0 -28
  214. package/esm/mcp-server/tools/customersListAddresses.js.map +0 -1
  215. package/esm/mcp-server/tools/customersListUserReviews.d.ts +0 -8
  216. package/esm/mcp-server/tools/customersListUserReviews.d.ts.map +0 -1
  217. package/esm/mcp-server/tools/customersListUserReviews.js +0 -28
  218. package/esm/mcp-server/tools/customersListUserReviews.js.map +0 -1
  219. package/esm/mcp-server/tools/customersUpdateAddressDetail.d.ts +0 -8
  220. package/esm/mcp-server/tools/customersUpdateAddressDetail.d.ts.map +0 -1
  221. package/esm/mcp-server/tools/customersUpdateAddressDetail.js +0 -28
  222. package/esm/mcp-server/tools/customersUpdateAddressDetail.js.map +0 -1
  223. package/esm/mcp-server/tools/ordersCancelOrder.d.ts +0 -8
  224. package/esm/mcp-server/tools/ordersCancelOrder.d.ts.map +0 -1
  225. package/esm/mcp-server/tools/ordersCancelOrder.js +0 -28
  226. package/esm/mcp-server/tools/ordersCancelOrder.js.map +0 -1
  227. package/esm/mcp-server/tools/ordersCreateOrder.d.ts +0 -8
  228. package/esm/mcp-server/tools/ordersCreateOrder.d.ts.map +0 -1
  229. package/esm/mcp-server/tools/ordersCreateOrder.js +0 -28
  230. package/esm/mcp-server/tools/ordersCreateOrder.js.map +0 -1
  231. package/esm/mcp-server/tools/ordersGetOrderDetail.d.ts +0 -8
  232. package/esm/mcp-server/tools/ordersGetOrderDetail.d.ts.map +0 -1
  233. package/esm/mcp-server/tools/ordersGetOrderDetail.js +0 -28
  234. package/esm/mcp-server/tools/ordersGetOrderDetail.js.map +0 -1
  235. package/esm/mcp-server/tools/ordersGetPaymentStatus.d.ts +0 -8
  236. package/esm/mcp-server/tools/ordersGetPaymentStatus.d.ts.map +0 -1
  237. package/esm/mcp-server/tools/ordersGetPaymentStatus.js +0 -28
  238. package/esm/mcp-server/tools/ordersGetPaymentStatus.js.map +0 -1
  239. package/esm/mcp-server/tools/ordersListOrderShipments.d.ts +0 -8
  240. package/esm/mcp-server/tools/ordersListOrderShipments.d.ts.map +0 -1
  241. package/esm/mcp-server/tools/ordersListOrderShipments.js +0 -28
  242. package/esm/mcp-server/tools/ordersListOrderShipments.js.map +0 -1
  243. package/esm/mcp-server/tools/ordersListOrders.d.ts +0 -8
  244. package/esm/mcp-server/tools/ordersListOrders.d.ts.map +0 -1
  245. package/esm/mcp-server/tools/ordersListOrders.js +0 -28
  246. package/esm/mcp-server/tools/ordersListOrders.js.map +0 -1
  247. package/esm/mcp-server/tools/ordersRetryOrderPayment.d.ts +0 -8
  248. package/esm/mcp-server/tools/ordersRetryOrderPayment.d.ts.map +0 -1
  249. package/esm/mcp-server/tools/ordersRetryOrderPayment.js +0 -28
  250. package/esm/mcp-server/tools/ordersRetryOrderPayment.js.map +0 -1
  251. package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.d.ts +0 -8
  252. package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.d.ts.map +0 -1
  253. package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.js +0 -28
  254. package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.js.map +0 -1
  255. package/esm/mcp-server/tools/shippingCheckServiceability.d.ts +0 -8
  256. package/esm/mcp-server/tools/shippingCheckServiceability.d.ts.map +0 -1
  257. package/esm/mcp-server/tools/shippingCheckServiceability.js +0 -28
  258. package/esm/mcp-server/tools/shippingCheckServiceability.js.map +0 -1
  259. package/esm/mcp-server/tools.d.ts +0 -25
  260. package/esm/mcp-server/tools.d.ts.map +0 -1
  261. package/esm/mcp-server/tools.js +0 -78
  262. package/esm/mcp-server/tools.js.map +0 -1
  263. package/src/mcp-server/cli/start/command.ts +0 -113
  264. package/src/mcp-server/cli/start/impl.ts +0 -137
  265. package/src/mcp-server/cli.ts +0 -13
  266. package/src/mcp-server/console-logger.ts +0 -71
  267. package/src/mcp-server/extensions.ts +0 -17
  268. package/src/mcp-server/mcp-server.ts +0 -26
  269. package/src/mcp-server/prompts.ts +0 -117
  270. package/src/mcp-server/resources.ts +0 -172
  271. package/src/mcp-server/scopes.ts +0 -7
  272. package/src/mcp-server/server.ts +0 -159
  273. package/src/mcp-server/shared.ts +0 -75
  274. package/src/mcp-server/tools/authGenerateOtp.ts +0 -37
  275. package/src/mcp-server/tools/authGetUserDetail.ts +0 -37
  276. package/src/mcp-server/tools/authLoginWithEmail.ts +0 -37
  277. package/src/mcp-server/tools/authLoginWithPhone.ts +0 -37
  278. package/src/mcp-server/tools/authLoginWithWhatsapp.ts +0 -37
  279. package/src/mcp-server/tools/authLogout.ts +0 -30
  280. package/src/mcp-server/tools/authRefreshToken.ts +0 -37
  281. package/src/mcp-server/tools/authUpdateUser.ts +0 -37
  282. package/src/mcp-server/tools/authVerifyOtp.ts +0 -37
  283. package/src/mcp-server/tools/cartsAddShippingMethod.ts +0 -37
  284. package/src/mcp-server/tools/cartsApplyCoupon.ts +0 -37
  285. package/src/mcp-server/tools/cartsCreateCart.ts +0 -37
  286. package/src/mcp-server/tools/cartsCreateCartAddress.ts +0 -37
  287. package/src/mcp-server/tools/cartsDeleteCart.ts +0 -37
  288. package/src/mcp-server/tools/cartsGetCart.ts +0 -37
  289. package/src/mcp-server/tools/cartsGetUserCart.ts +0 -37
  290. package/src/mcp-server/tools/cartsRedeemLoyaltyPoints.ts +0 -37
  291. package/src/mcp-server/tools/cartsRemoveCoupon.ts +0 -37
  292. package/src/mcp-server/tools/cartsRemoveLoyaltyPoints.ts +0 -37
  293. package/src/mcp-server/tools/cartsRemoveUserCart.ts +0 -37
  294. package/src/mcp-server/tools/cartsUpdateCart.ts +0 -37
  295. package/src/mcp-server/tools/catalogGetProductDetail.ts +0 -37
  296. package/src/mcp-server/tools/catalogGetVariantDetail.ts +0 -37
  297. package/src/mcp-server/tools/catalogListCategories.ts +0 -37
  298. package/src/mcp-server/tools/catalogListCrosssellProducts.ts +0 -37
  299. package/src/mcp-server/tools/catalogListProductReviews.ts +0 -37
  300. package/src/mcp-server/tools/catalogListProductVariants.ts +0 -37
  301. package/src/mcp-server/tools/catalogListProducts.ts +0 -37
  302. package/src/mcp-server/tools/catalogListSimilarProducts.ts +0 -37
  303. package/src/mcp-server/tools/catalogListSkus.ts +0 -37
  304. package/src/mcp-server/tools/catalogListUpsellProducts.ts +0 -37
  305. package/src/mcp-server/tools/catalogSearchProducts.ts +0 -37
  306. package/src/mcp-server/tools/commonListCountryPincodes.ts +0 -37
  307. package/src/mcp-server/tools/customersCreateAddress.ts +0 -37
  308. package/src/mcp-server/tools/customersDeleteAddress.ts +0 -37
  309. package/src/mcp-server/tools/customersGetAddressDetail.ts +0 -37
  310. package/src/mcp-server/tools/customersGetLoyaltyDetails.ts +0 -37
  311. package/src/mcp-server/tools/customersListAddresses.ts +0 -37
  312. package/src/mcp-server/tools/customersListUserReviews.ts +0 -37
  313. package/src/mcp-server/tools/customersUpdateAddressDetail.ts +0 -37
  314. package/src/mcp-server/tools/ordersCancelOrder.ts +0 -37
  315. package/src/mcp-server/tools/ordersCreateOrder.ts +0 -37
  316. package/src/mcp-server/tools/ordersGetOrderDetail.ts +0 -37
  317. package/src/mcp-server/tools/ordersGetPaymentStatus.ts +0 -37
  318. package/src/mcp-server/tools/ordersListOrderShipments.ts +0 -37
  319. package/src/mcp-server/tools/ordersListOrders.ts +0 -37
  320. package/src/mcp-server/tools/ordersRetryOrderPayment.ts +0 -37
  321. package/src/mcp-server/tools/shippingCheckDeliveryAvailability.ts +0 -39
  322. package/src/mcp-server/tools/shippingCheckServiceability.ts +0 -37
  323. package/src/mcp-server/tools.ts +0 -129
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { cartsRemoveUserCart } from "../../funcs/cartsRemoveUserCart.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.DeleteUserCartRequest$inboundSchema,
11
- };
12
-
13
- export const tool$cartsRemoveUserCart: ToolDefinition<typeof args> = {
14
- name: "carts-remove-user-cart",
15
- description: `Delete cart using user id
16
-
17
- delete all items from the cart using user id.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await cartsRemoveUserCart(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { cartsUpdateCart } from "../../funcs/cartsUpdateCart.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.UpdateCartRequest$inboundSchema,
11
- };
12
-
13
- export const tool$cartsUpdateCart: ToolDefinition<typeof args> = {
14
- name: "carts-update-cart",
15
- description: `Add/delete cart item
16
-
17
- Add Item to cart. To delete item from cart, pass quantity = 0`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await cartsUpdateCart(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { catalogGetProductDetail } from "../../funcs/catalogGetProductDetail.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.GetProductDetailRequest$inboundSchema,
11
- };
12
-
13
- export const tool$catalogGetProductDetail: ToolDefinition<typeof args> = {
14
- name: "catalog-get-product-detail",
15
- description: `Retrieve a product detail
16
-
17
- Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Commerce Engine will return the corresponding product information.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await catalogGetProductDetail(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { catalogGetVariantDetail } from "../../funcs/catalogGetVariantDetail.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.GetVariantDetailRequest$inboundSchema,
11
- };
12
-
13
- export const tool$catalogGetVariantDetail: ToolDefinition<typeof args> = {
14
- name: "catalog-get-variant-detail",
15
- description: `Retrieve variant detail
16
-
17
- Retrieves the details of a particular variant. Supply the unique product ID, and variant ID.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await catalogGetVariantDetail(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { catalogListCategories } from "../../funcs/catalogListCategories.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.ListCategoriesRequest$inboundSchema,
11
- };
12
-
13
- export const tool$catalogListCategories: ToolDefinition<typeof args> = {
14
- name: "catalog-list-categories",
15
- description: `List all categories
16
-
17
- Returns a list of your product categories. The categories are returned sorted by creation date, with the most recently created categories appearing first.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await catalogListCategories(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { catalogListCrosssellProducts } from "../../funcs/catalogListCrosssellProducts.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.ListCrosssellProductsRequest$inboundSchema,
11
- };
12
-
13
- export const tool$catalogListCrosssellProducts: ToolDefinition<typeof args> = {
14
- name: "catalog-list-crosssell-products",
15
- description: `Retrieve cross-sell products
16
-
17
- Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await catalogListCrosssellProducts(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { catalogListProductReviews } from "../../funcs/catalogListProductReviews.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.ListProductReviewsRequest$inboundSchema,
11
- };
12
-
13
- export const tool$catalogListProductReviews: ToolDefinition<typeof args> = {
14
- name: "catalog-list-product-reviews",
15
- description: `List all product reviews
16
-
17
- List of reviews for a specified product. The reviews are returned sorted by submission date, with the most recent reviews appearing first. You can filter the reviews by rating, reviewer, or date for more detailed analysis.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await catalogListProductReviews(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { catalogListProductVariants } from "../../funcs/catalogListProductVariants.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.ListProductVariantsRequest$inboundSchema,
11
- };
12
-
13
- export const tool$catalogListProductVariants: ToolDefinition<typeof args> = {
14
- name: "catalog-list-product-variants",
15
- description: `Retrieve product variants
16
-
17
- Retrieves the variants of an existing product. Supply the unique product ID, and Commerce Engine will return the corresponding product variants information.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await catalogListProductVariants(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { catalogListProducts } from "../../funcs/catalogListProducts.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.ListProductsRequest$inboundSchema,
11
- };
12
-
13
- export const tool$catalogListProducts: ToolDefinition<typeof args> = {
14
- name: "catalog-list-products",
15
- description: `List all products
16
-
17
- Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await catalogListProducts(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { catalogListSimilarProducts } from "../../funcs/catalogListSimilarProducts.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.ListSimilarProductsRequest$inboundSchema,
11
- };
12
-
13
- export const tool$catalogListSimilarProducts: ToolDefinition<typeof args> = {
14
- name: "catalog-list-similar-products",
15
- description: `Retrieve similar products
16
-
17
- Retrieves a list of products similar to a specified product based on their attributes and category. The similar products are returned sorted by relevance, with the most closely matching products appearing first. Useful for providing product recommendations to your customers.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await catalogListSimilarProducts(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { catalogListSkus } from "../../funcs/catalogListSkus.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.ListSkusRequest$inboundSchema,
11
- };
12
-
13
- export const tool$catalogListSkus: ToolDefinition<typeof args> = {
14
- name: "catalog-list-skus",
15
- description: `List all SKUs
16
-
17
- Returns a list of SKUs. The SKUs are returned sorted by creation date, with the most recently created SKUs appearing first.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await catalogListSkus(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { catalogListUpsellProducts } from "../../funcs/catalogListUpsellProducts.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.ListUpsellProductsRequest$inboundSchema,
11
- };
12
-
13
- export const tool$catalogListUpsellProducts: ToolDefinition<typeof args> = {
14
- name: "catalog-list-upsell-products",
15
- description: `Retrieve up-sell products
16
-
17
- Retrieves a list of products specified for upsell. The upsell products are returned based on product ids specified in request param.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await catalogListUpsellProducts(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { catalogSearchProducts } from "../../funcs/catalogSearchProducts.js";
6
- import * as components from "../../models/components/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: components.SearchProduct$inboundSchema,
11
- };
12
-
13
- export const tool$catalogSearchProducts: ToolDefinition<typeof args> = {
14
- name: "catalog-search-products",
15
- description: `Search products
16
-
17
- Search for products matching a specific words or characters given.`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await catalogSearchProducts(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { commonListCountryPincodes } from "../../funcs/commonListCountryPincodes.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.ListCountryPincodesRequest$inboundSchema,
11
- };
12
-
13
- export const tool$commonListCountryPincodes: ToolDefinition<typeof args> = {
14
- name: "common-list-country-pincodes",
15
- description: `Retrieve pincodes
16
-
17
- Retrieve pincodes`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await commonListCountryPincodes(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { customersCreateAddress } from "../../funcs/customersCreateAddress.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.CreateAddressRequest$inboundSchema,
11
- };
12
-
13
- export const tool$customersCreateAddress: ToolDefinition<typeof args> = {
14
- name: "customers-create-address",
15
- description: `Create address
16
-
17
- Add new address`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await customersCreateAddress(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { customersDeleteAddress } from "../../funcs/customersDeleteAddress.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.DeleteAddressRequest$inboundSchema,
11
- };
12
-
13
- export const tool$customersDeleteAddress: ToolDefinition<typeof args> = {
14
- name: "customers-delete-address",
15
- description: `Remove particular address
16
-
17
- Delete address`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await customersDeleteAddress(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { customersGetAddressDetail } from "../../funcs/customersGetAddressDetail.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.GetAddressDetailRequest$inboundSchema,
11
- };
12
-
13
- export const tool$customersGetAddressDetail: ToolDefinition<typeof args> = {
14
- name: "customers-get-address-detail",
15
- description: `Retrieve particular address
16
-
17
- Retrieve address`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await customersGetAddressDetail(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { customersGetLoyaltyDetails } from "../../funcs/customersGetLoyaltyDetails.js";
6
- import * as operations from "../../models/operations/index.js";
7
- import { formatResult, ToolDefinition } from "../tools.js";
8
-
9
- const args = {
10
- request: operations.GetLoyaltyDetailsRequest$inboundSchema,
11
- };
12
-
13
- export const tool$customersGetLoyaltyDetails: ToolDefinition<typeof args> = {
14
- name: "customers-get-loyalty-details",
15
- description: `Retrieve loyalty details
16
-
17
- Retrieve loyalty details`,
18
- args,
19
- tool: async (client, args, ctx) => {
20
- const [result, apiCall] = await customersGetLoyaltyDetails(
21
- client,
22
- args.request,
23
- { fetchOptions: { signal: ctx.signal } },
24
- ).$inspect();
25
-
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
-
33
- const value = result.value;
34
-
35
- return formatResult(value, apiCall);
36
- },
37
- };