ce-storefront 0.7.3 → 0.8.2
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 +93 -7
- package/bin/mcp-server.js +50005 -0
- package/bin/mcp-server.js.map +465 -0
- package/docs/sdks/catalog/README.md +0 -90
- package/esm/funcs/authCheckVerificationStatus.d.ts +2 -1
- package/esm/funcs/authCheckVerificationStatus.d.ts.map +1 -1
- package/esm/funcs/authCheckVerificationStatus.js +11 -7
- package/esm/funcs/authCheckVerificationStatus.js.map +1 -1
- package/esm/funcs/authCreateNotificationPreferences.d.ts +2 -1
- package/esm/funcs/authCreateNotificationPreferences.d.ts.map +1 -1
- package/esm/funcs/authCreateNotificationPreferences.js +11 -7
- package/esm/funcs/authCreateNotificationPreferences.js.map +1 -1
- package/esm/funcs/authGenerateOtp.d.ts +2 -1
- package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
- package/esm/funcs/authGenerateOtp.js +11 -7
- package/esm/funcs/authGenerateOtp.js.map +1 -1
- package/esm/funcs/authGetAnonymousToken.d.ts +2 -1
- package/esm/funcs/authGetAnonymousToken.d.ts.map +1 -1
- package/esm/funcs/authGetAnonymousToken.js +10 -6
- package/esm/funcs/authGetAnonymousToken.js.map +1 -1
- package/esm/funcs/authGetNotificationPreferences.d.ts +2 -1
- package/esm/funcs/authGetNotificationPreferences.d.ts.map +1 -1
- package/esm/funcs/authGetNotificationPreferences.js +11 -7
- package/esm/funcs/authGetNotificationPreferences.js.map +1 -1
- package/esm/funcs/authGetUserDetail.d.ts +2 -1
- package/esm/funcs/authGetUserDetail.d.ts.map +1 -1
- package/esm/funcs/authGetUserDetail.js +11 -7
- package/esm/funcs/authGetUserDetail.js.map +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts +2 -1
- package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
- package/esm/funcs/authLoginWithEmail.js +11 -7
- package/esm/funcs/authLoginWithEmail.js.map +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts +2 -1
- package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
- package/esm/funcs/authLoginWithPhone.js +11 -7
- package/esm/funcs/authLoginWithPhone.js.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts +2 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js +11 -7
- package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
- package/esm/funcs/authLogout.d.ts +2 -1
- package/esm/funcs/authLogout.d.ts.map +1 -1
- package/esm/funcs/authLogout.js +10 -6
- package/esm/funcs/authLogout.js.map +1 -1
- package/esm/funcs/authRefreshToken.d.ts +2 -1
- package/esm/funcs/authRefreshToken.d.ts.map +1 -1
- package/esm/funcs/authRefreshToken.js +11 -7
- package/esm/funcs/authRefreshToken.js.map +1 -1
- package/esm/funcs/authUpdateNotificationPreferences.d.ts +2 -1
- package/esm/funcs/authUpdateNotificationPreferences.d.ts.map +1 -1
- package/esm/funcs/authUpdateNotificationPreferences.js +11 -7
- package/esm/funcs/authUpdateNotificationPreferences.js.map +1 -1
- package/esm/funcs/authUpdateUser.d.ts +2 -1
- package/esm/funcs/authUpdateUser.d.ts.map +1 -1
- package/esm/funcs/authUpdateUser.js +11 -7
- package/esm/funcs/authUpdateUser.js.map +1 -1
- package/esm/funcs/authVerifyOtp.d.ts +2 -1
- package/esm/funcs/authVerifyOtp.d.ts.map +1 -1
- package/esm/funcs/authVerifyOtp.js +11 -7
- package/esm/funcs/authVerifyOtp.js.map +1 -1
- package/esm/funcs/campaignsSubscribeNewsletter.d.ts +2 -1
- package/esm/funcs/campaignsSubscribeNewsletter.d.ts.map +1 -1
- package/esm/funcs/campaignsSubscribeNewsletter.js +11 -7
- package/esm/funcs/campaignsSubscribeNewsletter.js.map +1 -1
- package/esm/funcs/cartsApplyCoupon.d.ts +2 -1
- package/esm/funcs/cartsApplyCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsApplyCoupon.js +11 -7
- package/esm/funcs/cartsApplyCoupon.js.map +1 -1
- package/esm/funcs/cartsCreateCart.d.ts +2 -1
- package/esm/funcs/cartsCreateCart.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCart.js +11 -7
- package/esm/funcs/cartsCreateCart.js.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts +2 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.js +11 -7
- package/esm/funcs/cartsCreateCartAddress.js.map +1 -1
- package/esm/funcs/cartsDeleteCart.d.ts +2 -1
- package/esm/funcs/cartsDeleteCart.d.ts.map +1 -1
- package/esm/funcs/cartsDeleteCart.js +11 -7
- package/esm/funcs/cartsDeleteCart.js.map +1 -1
- package/esm/funcs/cartsGetCart.d.ts +2 -1
- package/esm/funcs/cartsGetCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetCart.js +11 -7
- package/esm/funcs/cartsGetCart.js.map +1 -1
- package/esm/funcs/cartsGetUserCart.d.ts +2 -1
- package/esm/funcs/cartsGetUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetUserCart.js +11 -7
- package/esm/funcs/cartsGetUserCart.js.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts +2 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.js +11 -7
- package/esm/funcs/cartsRemoveCoupon.js.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts +2 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.js +11 -7
- package/esm/funcs/cartsRemoveUserCart.js.map +1 -1
- package/esm/funcs/cartsUpdateCart.d.ts +2 -1
- package/esm/funcs/cartsUpdateCart.d.ts.map +1 -1
- package/esm/funcs/cartsUpdateCart.js +11 -7
- package/esm/funcs/cartsUpdateCart.js.map +1 -1
- package/esm/funcs/catalogGetProductDetail.d.ts +2 -1
- package/esm/funcs/catalogGetProductDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetProductDetail.js +11 -7
- package/esm/funcs/catalogGetProductDetail.js.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts +2 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +11 -7
- package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
- package/esm/funcs/catalogListCategories.d.ts +2 -1
- package/esm/funcs/catalogListCategories.d.ts.map +1 -1
- package/esm/funcs/catalogListCategories.js +11 -7
- package/esm/funcs/catalogListCategories.js.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts +2 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js +11 -7
- package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
- package/esm/funcs/catalogListProductReviews.d.ts +2 -1
- package/esm/funcs/catalogListProductReviews.d.ts.map +1 -1
- package/esm/funcs/catalogListProductReviews.js +11 -7
- package/esm/funcs/catalogListProductReviews.js.map +1 -1
- package/esm/funcs/catalogListProductVariants.d.ts +2 -1
- package/esm/funcs/catalogListProductVariants.d.ts.map +1 -1
- package/esm/funcs/catalogListProductVariants.js +11 -7
- package/esm/funcs/catalogListProductVariants.js.map +1 -1
- package/esm/funcs/catalogListProducts.d.ts +2 -1
- package/esm/funcs/catalogListProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListProducts.js +11 -7
- package/esm/funcs/catalogListProducts.js.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts +2 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.js +11 -7
- package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
- package/esm/funcs/catalogListSkus.d.ts +2 -1
- package/esm/funcs/catalogListSkus.d.ts.map +1 -1
- package/esm/funcs/catalogListSkus.js +11 -7
- package/esm/funcs/catalogListSkus.js.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts +2 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.js +11 -7
- package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
- package/esm/funcs/catalogSearchProducts.d.ts +2 -1
- package/esm/funcs/catalogSearchProducts.d.ts.map +1 -1
- package/esm/funcs/catalogSearchProducts.js +11 -7
- package/esm/funcs/catalogSearchProducts.js.map +1 -1
- package/esm/funcs/commonListCountryPincodes.d.ts +2 -1
- package/esm/funcs/commonListCountryPincodes.d.ts.map +1 -1
- package/esm/funcs/commonListCountryPincodes.js +11 -7
- package/esm/funcs/commonListCountryPincodes.js.map +1 -1
- package/esm/funcs/customersCreateAddress.d.ts +2 -1
- package/esm/funcs/customersCreateAddress.d.ts.map +1 -1
- package/esm/funcs/customersCreateAddress.js +11 -7
- package/esm/funcs/customersCreateAddress.js.map +1 -1
- package/esm/funcs/customersDeleteAddress.d.ts +2 -1
- package/esm/funcs/customersDeleteAddress.d.ts.map +1 -1
- package/esm/funcs/customersDeleteAddress.js +11 -7
- package/esm/funcs/customersDeleteAddress.js.map +1 -1
- package/esm/funcs/customersGetAddressDetail.d.ts +2 -1
- package/esm/funcs/customersGetAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersGetAddressDetail.js +11 -7
- package/esm/funcs/customersGetAddressDetail.js.map +1 -1
- package/esm/funcs/customersListAddresses.d.ts +2 -1
- package/esm/funcs/customersListAddresses.d.ts.map +1 -1
- package/esm/funcs/customersListAddresses.js +11 -7
- package/esm/funcs/customersListAddresses.js.map +1 -1
- package/esm/funcs/customersListUserReviews.d.ts +2 -1
- package/esm/funcs/customersListUserReviews.d.ts.map +1 -1
- package/esm/funcs/customersListUserReviews.js +11 -7
- package/esm/funcs/customersListUserReviews.js.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts +2 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.js +11 -7
- package/esm/funcs/customersUpdateAddressDetail.js.map +1 -1
- package/esm/funcs/ordersCancelOrder.d.ts +2 -1
- package/esm/funcs/ordersCancelOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCancelOrder.js +11 -7
- package/esm/funcs/ordersCancelOrder.js.map +1 -1
- package/esm/funcs/ordersCreateOrder.d.ts +2 -1
- package/esm/funcs/ordersCreateOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCreateOrder.js +11 -7
- package/esm/funcs/ordersCreateOrder.js.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts +2 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.js +11 -7
- package/esm/funcs/ordersGetOrderDetail.js.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts +2 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.js +11 -7
- package/esm/funcs/ordersGetPaymentStatus.js.map +1 -1
- package/esm/funcs/ordersListOrderShipments.d.ts +2 -1
- package/esm/funcs/ordersListOrderShipments.d.ts.map +1 -1
- package/esm/funcs/ordersListOrderShipments.js +11 -7
- package/esm/funcs/ordersListOrderShipments.js.map +1 -1
- package/esm/funcs/ordersListOrders.d.ts +2 -1
- package/esm/funcs/ordersListOrders.d.ts.map +1 -1
- package/esm/funcs/ordersListOrders.js +11 -7
- package/esm/funcs/ordersListOrders.js.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts +2 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.js +11 -7
- package/esm/funcs/ordersRetryOrderPayment.js.map +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.d.ts +2 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.d.ts.map +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.js +11 -7
- package/esm/funcs/shippingCheckDeliveryAvailability.js.map +1 -1
- package/esm/hooks/types.d.ts +1 -1
- package/esm/hooks/types.d.ts.map +1 -1
- package/esm/lib/config.d.ts +7 -7
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +3 -3
- package/esm/lib/files.js.map +1 -1
- package/esm/lib/primitives.d.ts +3 -0
- package/esm/lib/primitives.d.ts.map +1 -1
- package/esm/lib/primitives.js +6 -0
- package/esm/lib/primitives.js.map +1 -1
- package/esm/lib/sdks.d.ts +1 -1
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +2 -8
- package/esm/lib/sdks.js.map +1 -1
- package/esm/lib/security.d.ts +4 -3
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +6 -1
- package/esm/lib/security.js.map +1 -1
- package/esm/mcp-server/build.d.mts.map +1 -0
- package/esm/mcp-server/build.mjs +14 -0
- package/esm/mcp-server/build.mjs.map +1 -0
- package/esm/mcp-server/cli/start/command.d.ts +2 -0
- package/esm/mcp-server/cli/start/command.d.ts.map +1 -0
- package/esm/mcp-server/cli/start/command.js +108 -0
- package/esm/mcp-server/cli/start/command.js.map +1 -0
- package/esm/mcp-server/cli/start/impl.d.ts +19 -0
- package/esm/mcp-server/cli/start/impl.d.ts.map +1 -0
- package/esm/mcp-server/cli/start/impl.js +100 -0
- package/esm/mcp-server/cli/start/impl.js.map +1 -0
- package/esm/mcp-server/cli.d.ts +6 -0
- package/esm/mcp-server/cli.d.ts.map +1 -0
- package/esm/mcp-server/cli.js +7 -0
- package/esm/mcp-server/cli.js.map +1 -0
- package/esm/mcp-server/console-logger.d.ts +7 -0
- package/esm/mcp-server/console-logger.d.ts.map +1 -0
- package/esm/mcp-server/console-logger.js +55 -0
- package/esm/mcp-server/console-logger.js.map +1 -0
- package/esm/mcp-server/extensions.d.ts +11 -0
- package/esm/mcp-server/extensions.d.ts.map +1 -0
- package/esm/mcp-server/extensions.js +5 -0
- package/esm/mcp-server/extensions.js.map +1 -0
- package/esm/mcp-server/mcp-server.d.ts +2 -0
- package/esm/mcp-server/mcp-server.d.ts.map +1 -0
- package/esm/mcp-server/mcp-server.js +23 -0
- package/esm/mcp-server/mcp-server.js.map +1 -0
- package/esm/mcp-server/prompts.d.ts +26 -0
- package/esm/mcp-server/prompts.d.ts.map +1 -0
- package/esm/mcp-server/prompts.js +43 -0
- package/esm/mcp-server/prompts.js.map +1 -0
- package/esm/mcp-server/resources.d.ts +32 -0
- package/esm/mcp-server/resources.d.ts.map +1 -0
- package/esm/mcp-server/resources.js +74 -0
- package/esm/mcp-server/resources.js.map +1 -0
- package/esm/mcp-server/scopes.d.ts +3 -0
- package/esm/mcp-server/scopes.d.ts.map +1 -0
- package/esm/mcp-server/scopes.js +5 -0
- package/esm/mcp-server/scopes.js.map +1 -0
- package/esm/mcp-server/server.d.ts +14 -0
- package/esm/mcp-server/server.d.ts.map +1 -0
- package/esm/mcp-server/server.js +129 -0
- package/esm/mcp-server/server.js.map +1 -0
- package/esm/mcp-server/shared.d.ts +7 -0
- package/esm/mcp-server/shared.d.ts.map +1 -0
- package/esm/mcp-server/shared.js +59 -0
- package/esm/mcp-server/shared.js.map +1 -0
- package/esm/mcp-server/tools/authCheckVerificationStatus.d.ts +8 -0
- package/esm/mcp-server/tools/authCheckVerificationStatus.d.ts.map +1 -0
- package/esm/mcp-server/tools/authCheckVerificationStatus.js +28 -0
- package/esm/mcp-server/tools/authCheckVerificationStatus.js.map +1 -0
- package/esm/mcp-server/tools/authCreateNotificationPreferences.d.ts +8 -0
- package/esm/mcp-server/tools/authCreateNotificationPreferences.d.ts.map +1 -0
- package/esm/mcp-server/tools/authCreateNotificationPreferences.js +28 -0
- package/esm/mcp-server/tools/authCreateNotificationPreferences.js.map +1 -0
- package/esm/mcp-server/tools/authGenerateOtp.d.ts +8 -0
- package/esm/mcp-server/tools/authGenerateOtp.d.ts.map +1 -0
- package/esm/mcp-server/tools/authGenerateOtp.js +28 -0
- package/esm/mcp-server/tools/authGenerateOtp.js.map +1 -0
- package/esm/mcp-server/tools/authGetNotificationPreferences.d.ts +8 -0
- package/esm/mcp-server/tools/authGetNotificationPreferences.d.ts.map +1 -0
- package/esm/mcp-server/tools/authGetNotificationPreferences.js +28 -0
- package/esm/mcp-server/tools/authGetNotificationPreferences.js.map +1 -0
- package/esm/mcp-server/tools/authGetUserDetail.d.ts +8 -0
- package/esm/mcp-server/tools/authGetUserDetail.d.ts.map +1 -0
- package/esm/mcp-server/tools/authGetUserDetail.js +28 -0
- package/esm/mcp-server/tools/authGetUserDetail.js.map +1 -0
- package/esm/mcp-server/tools/authLoginWithEmail.d.ts +8 -0
- package/esm/mcp-server/tools/authLoginWithEmail.d.ts.map +1 -0
- package/esm/mcp-server/tools/authLoginWithEmail.js +28 -0
- package/esm/mcp-server/tools/authLoginWithEmail.js.map +1 -0
- package/esm/mcp-server/tools/authLoginWithPhone.d.ts +8 -0
- package/esm/mcp-server/tools/authLoginWithPhone.d.ts.map +1 -0
- package/esm/mcp-server/tools/authLoginWithPhone.js +28 -0
- package/esm/mcp-server/tools/authLoginWithPhone.js.map +1 -0
- package/esm/mcp-server/tools/authLoginWithWhatsapp.d.ts +8 -0
- package/esm/mcp-server/tools/authLoginWithWhatsapp.d.ts.map +1 -0
- package/esm/mcp-server/tools/authLoginWithWhatsapp.js +28 -0
- package/esm/mcp-server/tools/authLoginWithWhatsapp.js.map +1 -0
- package/esm/mcp-server/tools/authLogout.d.ts +3 -0
- package/esm/mcp-server/tools/authLogout.d.ts.map +1 -0
- package/esm/mcp-server/tools/authLogout.js +23 -0
- package/esm/mcp-server/tools/authLogout.js.map +1 -0
- package/esm/mcp-server/tools/authRefreshToken.d.ts +8 -0
- package/esm/mcp-server/tools/authRefreshToken.d.ts.map +1 -0
- package/esm/mcp-server/tools/authRefreshToken.js +28 -0
- package/esm/mcp-server/tools/authRefreshToken.js.map +1 -0
- package/esm/mcp-server/tools/authUpdateNotificationPreferences.d.ts +8 -0
- package/esm/mcp-server/tools/authUpdateNotificationPreferences.d.ts.map +1 -0
- package/esm/mcp-server/tools/authUpdateNotificationPreferences.js +28 -0
- package/esm/mcp-server/tools/authUpdateNotificationPreferences.js.map +1 -0
- package/esm/mcp-server/tools/authUpdateUser.d.ts +8 -0
- package/esm/mcp-server/tools/authUpdateUser.d.ts.map +1 -0
- package/esm/mcp-server/tools/authUpdateUser.js +28 -0
- package/esm/mcp-server/tools/authUpdateUser.js.map +1 -0
- package/esm/mcp-server/tools/authVerifyOtp.d.ts +8 -0
- package/esm/mcp-server/tools/authVerifyOtp.d.ts.map +1 -0
- package/esm/mcp-server/tools/authVerifyOtp.js +28 -0
- package/esm/mcp-server/tools/authVerifyOtp.js.map +1 -0
- package/esm/mcp-server/tools/campaignsSubscribeNewsletter.d.ts +8 -0
- package/esm/mcp-server/tools/campaignsSubscribeNewsletter.d.ts.map +1 -0
- package/esm/mcp-server/tools/campaignsSubscribeNewsletter.js +28 -0
- package/esm/mcp-server/tools/campaignsSubscribeNewsletter.js.map +1 -0
- package/esm/mcp-server/tools/cartsApplyCoupon.d.ts +8 -0
- package/esm/mcp-server/tools/cartsApplyCoupon.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsApplyCoupon.js +28 -0
- package/esm/mcp-server/tools/cartsApplyCoupon.js.map +1 -0
- package/esm/mcp-server/tools/cartsCreateCart.d.ts +8 -0
- package/esm/mcp-server/tools/cartsCreateCart.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsCreateCart.js +28 -0
- package/esm/mcp-server/tools/cartsCreateCart.js.map +1 -0
- package/esm/mcp-server/tools/cartsCreateCartAddress.d.ts +8 -0
- package/esm/mcp-server/tools/cartsCreateCartAddress.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsCreateCartAddress.js +28 -0
- package/esm/mcp-server/tools/cartsCreateCartAddress.js.map +1 -0
- package/esm/mcp-server/tools/cartsDeleteCart.d.ts +8 -0
- package/esm/mcp-server/tools/cartsDeleteCart.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsDeleteCart.js +28 -0
- package/esm/mcp-server/tools/cartsDeleteCart.js.map +1 -0
- package/esm/mcp-server/tools/cartsGetCart.d.ts +8 -0
- package/esm/mcp-server/tools/cartsGetCart.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsGetCart.js +28 -0
- package/esm/mcp-server/tools/cartsGetCart.js.map +1 -0
- package/esm/mcp-server/tools/cartsGetUserCart.d.ts +8 -0
- package/esm/mcp-server/tools/cartsGetUserCart.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsGetUserCart.js +28 -0
- package/esm/mcp-server/tools/cartsGetUserCart.js.map +1 -0
- package/esm/mcp-server/tools/cartsRemoveCoupon.d.ts +8 -0
- package/esm/mcp-server/tools/cartsRemoveCoupon.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsRemoveCoupon.js +28 -0
- package/esm/mcp-server/tools/cartsRemoveCoupon.js.map +1 -0
- package/esm/mcp-server/tools/cartsRemoveUserCart.d.ts +8 -0
- package/esm/mcp-server/tools/cartsRemoveUserCart.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsRemoveUserCart.js +28 -0
- package/esm/mcp-server/tools/cartsRemoveUserCart.js.map +1 -0
- package/esm/mcp-server/tools/cartsUpdateCart.d.ts +8 -0
- package/esm/mcp-server/tools/cartsUpdateCart.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsUpdateCart.js +28 -0
- package/esm/mcp-server/tools/cartsUpdateCart.js.map +1 -0
- package/esm/mcp-server/tools/catalogGetProductDetail.d.ts +8 -0
- package/esm/mcp-server/tools/catalogGetProductDetail.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogGetProductDetail.js +28 -0
- package/esm/mcp-server/tools/catalogGetProductDetail.js.map +1 -0
- package/esm/mcp-server/tools/catalogGetVariantDetail.d.ts +8 -0
- package/esm/mcp-server/tools/catalogGetVariantDetail.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogGetVariantDetail.js +28 -0
- package/esm/mcp-server/tools/catalogGetVariantDetail.js.map +1 -0
- package/esm/mcp-server/tools/catalogListCategories.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListCategories.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListCategories.js +28 -0
- package/esm/mcp-server/tools/catalogListCategories.js.map +1 -0
- package/esm/mcp-server/tools/catalogListCrosssellProducts.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListCrosssellProducts.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListCrosssellProducts.js +28 -0
- package/esm/mcp-server/tools/catalogListCrosssellProducts.js.map +1 -0
- package/esm/mcp-server/tools/catalogListProductReviews.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListProductReviews.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListProductReviews.js +28 -0
- package/esm/mcp-server/tools/catalogListProductReviews.js.map +1 -0
- package/esm/mcp-server/tools/catalogListProductVariants.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListProductVariants.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListProductVariants.js +28 -0
- package/esm/mcp-server/tools/catalogListProductVariants.js.map +1 -0
- package/esm/mcp-server/tools/catalogListProducts.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListProducts.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListProducts.js +28 -0
- package/esm/mcp-server/tools/catalogListProducts.js.map +1 -0
- package/esm/mcp-server/tools/catalogListSimilarProducts.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListSimilarProducts.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListSimilarProducts.js +28 -0
- package/esm/mcp-server/tools/catalogListSimilarProducts.js.map +1 -0
- package/esm/mcp-server/tools/catalogListSkus.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListSkus.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListSkus.js +28 -0
- package/esm/mcp-server/tools/catalogListSkus.js.map +1 -0
- package/esm/mcp-server/tools/catalogListUpsellProducts.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListUpsellProducts.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListUpsellProducts.js +28 -0
- package/esm/mcp-server/tools/catalogListUpsellProducts.js.map +1 -0
- package/esm/mcp-server/tools/catalogSearchProducts.d.ts +8 -0
- package/esm/mcp-server/tools/catalogSearchProducts.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogSearchProducts.js +28 -0
- package/esm/mcp-server/tools/catalogSearchProducts.js.map +1 -0
- package/esm/mcp-server/tools/commonListCountryPincodes.d.ts +8 -0
- package/esm/mcp-server/tools/commonListCountryPincodes.d.ts.map +1 -0
- package/esm/mcp-server/tools/commonListCountryPincodes.js +28 -0
- package/esm/mcp-server/tools/commonListCountryPincodes.js.map +1 -0
- package/esm/mcp-server/tools/customersCreateAddress.d.ts +8 -0
- package/esm/mcp-server/tools/customersCreateAddress.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersCreateAddress.js +28 -0
- package/esm/mcp-server/tools/customersCreateAddress.js.map +1 -0
- package/esm/mcp-server/tools/customersDeleteAddress.d.ts +8 -0
- package/esm/mcp-server/tools/customersDeleteAddress.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersDeleteAddress.js +28 -0
- package/esm/mcp-server/tools/customersDeleteAddress.js.map +1 -0
- package/esm/mcp-server/tools/customersGetAddressDetail.d.ts +8 -0
- package/esm/mcp-server/tools/customersGetAddressDetail.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersGetAddressDetail.js +28 -0
- package/esm/mcp-server/tools/customersGetAddressDetail.js.map +1 -0
- package/esm/mcp-server/tools/customersListAddresses.d.ts +8 -0
- package/esm/mcp-server/tools/customersListAddresses.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersListAddresses.js +28 -0
- package/esm/mcp-server/tools/customersListAddresses.js.map +1 -0
- package/esm/mcp-server/tools/customersListUserReviews.d.ts +8 -0
- package/esm/mcp-server/tools/customersListUserReviews.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersListUserReviews.js +28 -0
- package/esm/mcp-server/tools/customersListUserReviews.js.map +1 -0
- package/esm/mcp-server/tools/customersUpdateAddressDetail.d.ts +8 -0
- package/esm/mcp-server/tools/customersUpdateAddressDetail.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersUpdateAddressDetail.js +28 -0
- package/esm/mcp-server/tools/customersUpdateAddressDetail.js.map +1 -0
- package/esm/mcp-server/tools/ordersCancelOrder.d.ts +8 -0
- package/esm/mcp-server/tools/ordersCancelOrder.d.ts.map +1 -0
- package/esm/mcp-server/tools/ordersCancelOrder.js +28 -0
- package/esm/mcp-server/tools/ordersCancelOrder.js.map +1 -0
- package/esm/mcp-server/tools/ordersCreateOrder.d.ts +8 -0
- package/esm/mcp-server/tools/ordersCreateOrder.d.ts.map +1 -0
- package/esm/mcp-server/tools/ordersCreateOrder.js +28 -0
- package/esm/mcp-server/tools/ordersCreateOrder.js.map +1 -0
- package/esm/mcp-server/tools/ordersGetOrderDetail.d.ts +8 -0
- package/esm/mcp-server/tools/ordersGetOrderDetail.d.ts.map +1 -0
- package/esm/mcp-server/tools/ordersGetOrderDetail.js +28 -0
- package/esm/mcp-server/tools/ordersGetOrderDetail.js.map +1 -0
- package/esm/mcp-server/tools/ordersGetPaymentStatus.d.ts +8 -0
- package/esm/mcp-server/tools/ordersGetPaymentStatus.d.ts.map +1 -0
- package/esm/mcp-server/tools/ordersGetPaymentStatus.js +28 -0
- package/esm/mcp-server/tools/ordersGetPaymentStatus.js.map +1 -0
- package/esm/mcp-server/tools/ordersListOrderShipments.d.ts +8 -0
- package/esm/mcp-server/tools/ordersListOrderShipments.d.ts.map +1 -0
- package/esm/mcp-server/tools/ordersListOrderShipments.js +28 -0
- package/esm/mcp-server/tools/ordersListOrderShipments.js.map +1 -0
- package/esm/mcp-server/tools/ordersListOrders.d.ts +8 -0
- package/esm/mcp-server/tools/ordersListOrders.d.ts.map +1 -0
- package/esm/mcp-server/tools/ordersListOrders.js +28 -0
- package/esm/mcp-server/tools/ordersListOrders.js.map +1 -0
- package/esm/mcp-server/tools/ordersRetryOrderPayment.d.ts +8 -0
- package/esm/mcp-server/tools/ordersRetryOrderPayment.d.ts.map +1 -0
- package/esm/mcp-server/tools/ordersRetryOrderPayment.js +28 -0
- package/esm/mcp-server/tools/ordersRetryOrderPayment.js.map +1 -0
- package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.d.ts +8 -0
- package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.d.ts.map +1 -0
- package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.js +28 -0
- package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.js.map +1 -0
- package/esm/mcp-server/tools.d.ts +25 -0
- package/esm/mcp-server/tools.d.ts.map +1 -0
- package/esm/mcp-server/tools.js +77 -0
- package/esm/mcp-server/tools.js.map +1 -0
- package/esm/models/components/index.d.ts +1 -2
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +1 -2
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/{sku.d.ts → item.d.ts} +22 -22
- package/esm/models/components/item.d.ts.map +1 -0
- package/esm/models/components/{sku.js → item.js} +26 -27
- package/esm/models/components/item.js.map +1 -0
- package/esm/models/components/juspaypaymentinfo.d.ts +9 -9
- package/esm/models/components/juspaypaymentinfo.js +3 -3
- package/esm/models/components/juspaypaymentinfo.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +2 -2
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +2 -2
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/operations/index.d.ts +0 -1
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +0 -1
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/listaddresses.d.ts +2 -2
- package/esm/models/operations/listaddresses.d.ts.map +1 -1
- package/esm/models/operations/listaddresses.js +2 -2
- package/esm/models/operations/listaddresses.js.map +1 -1
- package/esm/models/operations/listcrosssellproducts.d.ts +2 -2
- package/esm/models/operations/listcrosssellproducts.d.ts.map +1 -1
- package/esm/models/operations/listcrosssellproducts.js +2 -2
- package/esm/models/operations/listcrosssellproducts.js.map +1 -1
- package/esm/models/operations/listsimilarproducts.d.ts +2 -2
- package/esm/models/operations/listsimilarproducts.d.ts.map +1 -1
- package/esm/models/operations/listsimilarproducts.js +2 -2
- package/esm/models/operations/listsimilarproducts.js.map +1 -1
- package/esm/models/operations/listskus.d.ts +2 -2
- package/esm/models/operations/listskus.d.ts.map +1 -1
- package/esm/models/operations/listskus.js +2 -2
- package/esm/models/operations/listskus.js.map +1 -1
- package/esm/models/operations/listupsellproducts.d.ts +2 -2
- package/esm/models/operations/listupsellproducts.d.ts.map +1 -1
- package/esm/models/operations/listupsellproducts.js +2 -2
- package/esm/models/operations/listupsellproducts.js.map +1 -1
- package/esm/models/operations/searchproducts.d.ts +2 -2
- package/esm/models/operations/searchproducts.d.ts.map +1 -1
- package/esm/models/operations/searchproducts.js +2 -2
- package/esm/models/operations/searchproducts.js.map +1 -1
- package/esm/sdk/catalog.d.ts +0 -7
- package/esm/sdk/catalog.d.ts.map +1 -1
- package/esm/sdk/catalog.js +0 -10
- package/esm/sdk/catalog.js.map +1 -1
- package/esm/types/async.d.ts +23 -0
- package/esm/types/async.d.ts.map +1 -0
- package/esm/types/async.js +40 -0
- package/esm/types/async.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +16 -2
- package/src/funcs/authCheckVerificationStatus.ts +35 -8
- package/src/funcs/authCreateNotificationPreferences.ts +35 -8
- package/src/funcs/authGenerateOtp.ts +35 -8
- package/src/funcs/authGetAnonymousToken.ts +34 -7
- package/src/funcs/authGetNotificationPreferences.ts +35 -8
- package/src/funcs/authGetUserDetail.ts +35 -8
- package/src/funcs/authLoginWithEmail.ts +35 -8
- package/src/funcs/authLoginWithPhone.ts +35 -8
- package/src/funcs/authLoginWithWhatsapp.ts +35 -8
- package/src/funcs/authLogout.ts +32 -7
- package/src/funcs/authRefreshToken.ts +35 -8
- package/src/funcs/authUpdateNotificationPreferences.ts +35 -8
- package/src/funcs/authUpdateUser.ts +35 -8
- package/src/funcs/authVerifyOtp.ts +35 -8
- package/src/funcs/campaignsSubscribeNewsletter.ts +35 -8
- package/src/funcs/cartsApplyCoupon.ts +37 -8
- package/src/funcs/cartsCreateCart.ts +35 -8
- package/src/funcs/cartsCreateCartAddress.ts +38 -8
- package/src/funcs/cartsDeleteCart.ts +37 -8
- package/src/funcs/cartsGetCart.ts +37 -8
- package/src/funcs/cartsGetUserCart.ts +37 -8
- package/src/funcs/cartsRemoveCoupon.ts +37 -8
- package/src/funcs/cartsRemoveUserCart.ts +37 -8
- package/src/funcs/cartsUpdateCart.ts +38 -8
- package/src/funcs/catalogGetProductDetail.ts +37 -8
- package/src/funcs/catalogGetVariantDetail.ts +37 -8
- package/src/funcs/catalogListCategories.ts +35 -8
- package/src/funcs/catalogListCrosssellProducts.ts +37 -8
- package/src/funcs/catalogListProductReviews.ts +37 -8
- package/src/funcs/catalogListProductVariants.ts +37 -8
- package/src/funcs/catalogListProducts.ts +37 -8
- package/src/funcs/catalogListSimilarProducts.ts +37 -8
- package/src/funcs/catalogListSkus.ts +37 -8
- package/src/funcs/catalogListUpsellProducts.ts +37 -8
- package/src/funcs/catalogSearchProducts.ts +36 -8
- package/src/funcs/commonListCountryPincodes.ts +35 -8
- package/src/funcs/customersCreateAddress.ts +37 -8
- package/src/funcs/customersDeleteAddress.ts +37 -8
- package/src/funcs/customersGetAddressDetail.ts +37 -8
- package/src/funcs/customersListAddresses.ts +35 -8
- package/src/funcs/customersListUserReviews.ts +35 -8
- package/src/funcs/customersUpdateAddressDetail.ts +38 -8
- package/src/funcs/ordersCancelOrder.ts +37 -8
- package/src/funcs/ordersCreateOrder.ts +38 -8
- package/src/funcs/ordersGetOrderDetail.ts +37 -8
- package/src/funcs/ordersGetPaymentStatus.ts +35 -8
- package/src/funcs/ordersListOrderShipments.ts +37 -8
- package/src/funcs/ordersListOrders.ts +35 -8
- package/src/funcs/ordersRetryOrderPayment.ts +38 -8
- package/src/funcs/shippingCheckDeliveryAvailability.ts +36 -8
- package/src/hooks/types.ts +1 -1
- package/src/lib/config.ts +7 -7
- package/src/lib/files.ts +1 -1
- package/src/lib/primitives.ts +14 -0
- package/src/lib/sdks.ts +3 -8
- package/src/lib/security.ts +11 -3
- package/src/mcp-server/cli/start/command.ts +113 -0
- package/src/mcp-server/cli/start/impl.ts +137 -0
- package/src/mcp-server/cli.ts +13 -0
- package/src/mcp-server/console-logger.ts +71 -0
- package/src/mcp-server/extensions.ts +17 -0
- package/src/mcp-server/mcp-server.ts +26 -0
- package/src/mcp-server/prompts.ts +110 -0
- package/src/mcp-server/resources.ts +158 -0
- package/src/mcp-server/scopes.ts +7 -0
- package/src/mcp-server/server.ts +159 -0
- package/src/mcp-server/shared.ts +75 -0
- package/src/mcp-server/tools/authCheckVerificationStatus.ts +37 -0
- package/src/mcp-server/tools/authCreateNotificationPreferences.ts +39 -0
- package/src/mcp-server/tools/authGenerateOtp.ts +37 -0
- package/src/mcp-server/tools/authGetNotificationPreferences.ts +38 -0
- package/src/mcp-server/tools/authGetUserDetail.ts +37 -0
- package/src/mcp-server/tools/authLoginWithEmail.ts +37 -0
- package/src/mcp-server/tools/authLoginWithPhone.ts +37 -0
- package/src/mcp-server/tools/authLoginWithWhatsapp.ts +37 -0
- package/src/mcp-server/tools/authLogout.ts +30 -0
- package/src/mcp-server/tools/authRefreshToken.ts +37 -0
- package/src/mcp-server/tools/authUpdateNotificationPreferences.ts +39 -0
- package/src/mcp-server/tools/authUpdateUser.ts +37 -0
- package/src/mcp-server/tools/authVerifyOtp.ts +37 -0
- package/src/mcp-server/tools/campaignsSubscribeNewsletter.ts +37 -0
- package/src/mcp-server/tools/cartsApplyCoupon.ts +37 -0
- package/src/mcp-server/tools/cartsCreateCart.ts +37 -0
- package/src/mcp-server/tools/cartsCreateCartAddress.ts +37 -0
- package/src/mcp-server/tools/cartsDeleteCart.ts +37 -0
- package/src/mcp-server/tools/cartsGetCart.ts +37 -0
- package/src/mcp-server/tools/cartsGetUserCart.ts +37 -0
- package/src/mcp-server/tools/cartsRemoveCoupon.ts +37 -0
- package/src/mcp-server/tools/cartsRemoveUserCart.ts +37 -0
- package/src/mcp-server/tools/cartsUpdateCart.ts +37 -0
- package/src/mcp-server/tools/catalogGetProductDetail.ts +37 -0
- package/src/mcp-server/tools/catalogGetVariantDetail.ts +37 -0
- package/src/mcp-server/tools/catalogListCategories.ts +37 -0
- package/src/mcp-server/tools/catalogListCrosssellProducts.ts +37 -0
- package/src/mcp-server/tools/catalogListProductReviews.ts +37 -0
- package/src/mcp-server/tools/catalogListProductVariants.ts +37 -0
- package/src/mcp-server/tools/catalogListProducts.ts +37 -0
- package/src/mcp-server/tools/catalogListSimilarProducts.ts +37 -0
- package/src/mcp-server/tools/catalogListSkus.ts +37 -0
- package/src/mcp-server/tools/catalogListUpsellProducts.ts +37 -0
- package/src/mcp-server/tools/catalogSearchProducts.ts +37 -0
- package/src/mcp-server/tools/commonListCountryPincodes.ts +37 -0
- package/src/mcp-server/tools/customersCreateAddress.ts +37 -0
- package/src/mcp-server/tools/customersDeleteAddress.ts +37 -0
- package/src/mcp-server/tools/customersGetAddressDetail.ts +37 -0
- package/src/mcp-server/tools/customersListAddresses.ts +37 -0
- package/src/mcp-server/tools/customersListUserReviews.ts +37 -0
- package/src/mcp-server/tools/customersUpdateAddressDetail.ts +37 -0
- package/src/mcp-server/tools/ordersCancelOrder.ts +37 -0
- package/src/mcp-server/tools/ordersCreateOrder.ts +37 -0
- package/src/mcp-server/tools/ordersGetOrderDetail.ts +37 -0
- package/src/mcp-server/tools/ordersGetPaymentStatus.ts +37 -0
- package/src/mcp-server/tools/ordersListOrderShipments.ts +37 -0
- package/src/mcp-server/tools/ordersListOrders.ts +37 -0
- package/src/mcp-server/tools/ordersRetryOrderPayment.ts +37 -0
- package/src/mcp-server/tools/shippingCheckDeliveryAvailability.ts +39 -0
- package/src/mcp-server/tools.ts +126 -0
- package/src/models/components/index.ts +1 -2
- package/src/models/components/{sku.ts → item.ts} +34 -34
- package/src/models/components/juspaypaymentinfo.ts +3 -3
- package/src/models/components/productdetail.ts +4 -4
- package/src/models/operations/index.ts +0 -1
- package/src/models/operations/listaddresses.ts +4 -4
- package/src/models/operations/listcrosssellproducts.ts +4 -4
- package/src/models/operations/listsimilarproducts.ts +4 -4
- package/src/models/operations/listskus.ts +4 -4
- package/src/models/operations/listupsellproducts.ts +4 -4
- package/src/models/operations/searchproducts.ts +4 -4
- package/src/sdk/catalog.ts +0 -18
- package/src/types/async.ts +68 -0
- package/esm/funcs/catalogCreateProductReview.d.ts +0 -16
- package/esm/funcs/catalogCreateProductReview.d.ts.map +0 -1
- package/esm/funcs/catalogCreateProductReview.js +0 -93
- package/esm/funcs/catalogCreateProductReview.js.map +0 -1
- package/esm/models/components/createreview.d.ts +0 -42
- package/esm/models/components/createreview.d.ts.map +0 -1
- package/esm/models/components/createreview.js +0 -54
- package/esm/models/components/createreview.js.map +0 -1
- package/esm/models/components/sku.d.ts.map +0 -1
- package/esm/models/components/sku.js.map +0 -1
- package/esm/models/operations/createproductreview.d.ts +0 -65
- package/esm/models/operations/createproductreview.d.ts.map +0 -1
- package/esm/models/operations/createproductreview.js +0 -72
- package/esm/models/operations/createproductreview.js.map +0 -1
- package/src/funcs/catalogCreateProductReview.ts +0 -161
- package/src/models/components/createreview.ts +0 -98
- package/src/models/operations/createproductreview.ts +0 -152
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cartsGetCart.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/cartsGetCart.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,4BAA4B;CACjD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAgC;IAC5D,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE;;qBAEM;IACnB,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,YAAY,CAC1C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.GetUserCartRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$cartsGetUserCart: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=cartsGetUserCart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cartsGetUserCart.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/cartsGetUserCart.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,cAAc,CAAC,OAAO,IAAI,CAwB7D,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { cartsGetUserCart } from "../../funcs/cartsGetUserCart.js";
|
|
5
|
+
import * as operations from "../../models/operations/index.js";
|
|
6
|
+
import { formatResult } from "../tools.js";
|
|
7
|
+
const args = {
|
|
8
|
+
request: operations.GetUserCartRequest$inboundSchema,
|
|
9
|
+
};
|
|
10
|
+
export const tool$cartsGetUserCart = {
|
|
11
|
+
name: "carts-get-user-cart",
|
|
12
|
+
description: `Retrieve cart using user id
|
|
13
|
+
|
|
14
|
+
Retrieve cart detail using user id`,
|
|
15
|
+
args,
|
|
16
|
+
tool: async (client, args, ctx) => {
|
|
17
|
+
const [result, apiCall] = await cartsGetUserCart(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
18
|
+
if (!result.ok) {
|
|
19
|
+
return {
|
|
20
|
+
content: [{ type: "text", text: result.error.message }],
|
|
21
|
+
isError: true,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const value = result.value;
|
|
25
|
+
return formatResult(value, apiCall);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=cartsGetUserCart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cartsGetUserCart.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/cartsGetUserCart.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,gCAAgC;CACrD,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAgC;IAChE,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE;;mCAEoB;IACjC,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,gBAAgB,CAC9C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.RemoveCouponRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$cartsRemoveCoupon: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=cartsRemoveCoupon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cartsRemoveCoupon.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/cartsRemoveCoupon.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAAC,OAAO,IAAI,CAwB9D,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { cartsRemoveCoupon } from "../../funcs/cartsRemoveCoupon.js";
|
|
5
|
+
import * as operations from "../../models/operations/index.js";
|
|
6
|
+
import { formatResult } from "../tools.js";
|
|
7
|
+
const args = {
|
|
8
|
+
request: operations.RemoveCouponRequest$inboundSchema,
|
|
9
|
+
};
|
|
10
|
+
export const tool$cartsRemoveCoupon = {
|
|
11
|
+
name: "carts-remove-coupon",
|
|
12
|
+
description: `Remove coupon
|
|
13
|
+
|
|
14
|
+
remove coupon from cart`,
|
|
15
|
+
args,
|
|
16
|
+
tool: async (client, args, ctx) => {
|
|
17
|
+
const [result, apiCall] = await cartsRemoveCoupon(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
18
|
+
if (!result.ok) {
|
|
19
|
+
return {
|
|
20
|
+
content: [{ type: "text", text: result.error.message }],
|
|
21
|
+
isError: true,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const value = result.value;
|
|
25
|
+
return formatResult(value, apiCall);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=cartsRemoveCoupon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cartsRemoveCoupon.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/cartsRemoveCoupon.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,iCAAiC;CACtD,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAgC;IACjE,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE;;wBAES;IACtB,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,iBAAiB,CAC/C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.DeleteUserCartRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$cartsRemoveUserCart: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=cartsRemoveUserCart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cartsRemoveUserCart.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/cartsRemoveUserCart.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,cAAc,CAAC,OAAO,IAAI,CAwBhE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { cartsRemoveUserCart } from "../../funcs/cartsRemoveUserCart.js";
|
|
5
|
+
import * as operations from "../../models/operations/index.js";
|
|
6
|
+
import { formatResult } from "../tools.js";
|
|
7
|
+
const args = {
|
|
8
|
+
request: operations.DeleteUserCartRequest$inboundSchema,
|
|
9
|
+
};
|
|
10
|
+
export const tool$cartsRemoveUserCart = {
|
|
11
|
+
name: "carts-remove-user-cart",
|
|
12
|
+
description: `Delete cart using user id
|
|
13
|
+
|
|
14
|
+
delete all items from the cart using user id.`,
|
|
15
|
+
args,
|
|
16
|
+
tool: async (client, args, ctx) => {
|
|
17
|
+
const [result, apiCall] = await cartsRemoveUserCart(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
18
|
+
if (!result.ok) {
|
|
19
|
+
return {
|
|
20
|
+
content: [{ type: "text", text: result.error.message }],
|
|
21
|
+
isError: true,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const value = result.value;
|
|
25
|
+
return formatResult(value, apiCall);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=cartsRemoveUserCart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cartsRemoveUserCart.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/cartsRemoveUserCart.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,mCAAmC;CACxD,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAgC;IACnE,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE;;8CAE+B;IAC5C,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,mBAAmB,CACjD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.UpdateCartRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$cartsUpdateCart: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=cartsUpdateCart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cartsUpdateCart.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/cartsUpdateCart.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,OAAO,IAAI,CAwB5D,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { cartsUpdateCart } from "../../funcs/cartsUpdateCart.js";
|
|
5
|
+
import * as operations from "../../models/operations/index.js";
|
|
6
|
+
import { formatResult } from "../tools.js";
|
|
7
|
+
const args = {
|
|
8
|
+
request: operations.UpdateCartRequest$inboundSchema,
|
|
9
|
+
};
|
|
10
|
+
export const tool$cartsUpdateCart = {
|
|
11
|
+
name: "carts-update-cart",
|
|
12
|
+
description: `Add/delete cart item
|
|
13
|
+
|
|
14
|
+
Add Item to cart. To delete item from cart, pass quantity = 0`,
|
|
15
|
+
args,
|
|
16
|
+
tool: async (client, args, ctx) => {
|
|
17
|
+
const [result, apiCall] = await cartsUpdateCart(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
18
|
+
if (!result.ok) {
|
|
19
|
+
return {
|
|
20
|
+
content: [{ type: "text", text: result.error.message }],
|
|
21
|
+
isError: true,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const value = result.value;
|
|
25
|
+
return formatResult(value, apiCall);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=cartsUpdateCart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cartsUpdateCart.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/cartsUpdateCart.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,+BAA+B;CACpD,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAgC;IAC/D,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE;;8DAE+C;IAC5D,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,eAAe,CAC7C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.GetProductDetailRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$catalogGetProductDetail: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=catalogGetProductDetail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogGetProductDetail.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogGetProductDetail.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,cAAc,CAAC,OAAO,IAAI,CAwBpE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { catalogGetProductDetail } from "../../funcs/catalogGetProductDetail.js";
|
|
5
|
+
import * as operations from "../../models/operations/index.js";
|
|
6
|
+
import { formatResult } from "../tools.js";
|
|
7
|
+
const args = {
|
|
8
|
+
request: operations.GetProductDetailRequest$inboundSchema,
|
|
9
|
+
};
|
|
10
|
+
export const tool$catalogGetProductDetail = {
|
|
11
|
+
name: "catalog-get-product-detail",
|
|
12
|
+
description: `Retrieve a product detail
|
|
13
|
+
|
|
14
|
+
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.`,
|
|
15
|
+
args,
|
|
16
|
+
tool: async (client, args, ctx) => {
|
|
17
|
+
const [result, apiCall] = await catalogGetProductDetail(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
18
|
+
if (!result.ok) {
|
|
19
|
+
return {
|
|
20
|
+
content: [{ type: "text", text: result.error.message }],
|
|
21
|
+
isError: true,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const value = result.value;
|
|
25
|
+
return formatResult(value, apiCall);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=catalogGetProductDetail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogGetProductDetail.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogGetProductDetail.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,qCAAqC;CAC1D,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAgC;IACvE,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE;;8MAE+L;IAC5M,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,uBAAuB,CACrD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.GetVariantDetailRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$catalogGetVariantDetail: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=catalogGetVariantDetail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogGetVariantDetail.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogGetVariantDetail.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,cAAc,CAAC,OAAO,IAAI,CAwBpE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { catalogGetVariantDetail } from "../../funcs/catalogGetVariantDetail.js";
|
|
5
|
+
import * as operations from "../../models/operations/index.js";
|
|
6
|
+
import { formatResult } from "../tools.js";
|
|
7
|
+
const args = {
|
|
8
|
+
request: operations.GetVariantDetailRequest$inboundSchema,
|
|
9
|
+
};
|
|
10
|
+
export const tool$catalogGetVariantDetail = {
|
|
11
|
+
name: "catalog-get-variant-detail",
|
|
12
|
+
description: `Retrieve variant detail
|
|
13
|
+
|
|
14
|
+
Retrieves the details of a particular variant. Supply the unique product ID, and variant ID.`,
|
|
15
|
+
args,
|
|
16
|
+
tool: async (client, args, ctx) => {
|
|
17
|
+
const [result, apiCall] = await catalogGetVariantDetail(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
18
|
+
if (!result.ok) {
|
|
19
|
+
return {
|
|
20
|
+
content: [{ type: "text", text: result.error.message }],
|
|
21
|
+
isError: true,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const value = result.value;
|
|
25
|
+
return formatResult(value, apiCall);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=catalogGetVariantDetail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogGetVariantDetail.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogGetVariantDetail.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,qCAAqC;CAC1D,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAgC;IACvE,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE;;6FAE8E;IAC3F,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,uBAAuB,CACrD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.ListCategoriesRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$catalogListCategories: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=catalogListCategories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogListCategories.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogListCategories.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,cAAc,CAAC,OAAO,IAAI,CAwBlE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { catalogListCategories } from "../../funcs/catalogListCategories.js";
|
|
5
|
+
import * as operations from "../../models/operations/index.js";
|
|
6
|
+
import { formatResult } from "../tools.js";
|
|
7
|
+
const args = {
|
|
8
|
+
request: operations.ListCategoriesRequest$inboundSchema,
|
|
9
|
+
};
|
|
10
|
+
export const tool$catalogListCategories = {
|
|
11
|
+
name: "catalog-list-categories",
|
|
12
|
+
description: `List all categories
|
|
13
|
+
|
|
14
|
+
Returns a list of your product categories. The categories are returned sorted by creation date, with the most recently created categories appearing first.`,
|
|
15
|
+
args,
|
|
16
|
+
tool: async (client, args, ctx) => {
|
|
17
|
+
const [result, apiCall] = await catalogListCategories(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
18
|
+
if (!result.ok) {
|
|
19
|
+
return {
|
|
20
|
+
content: [{ type: "text", text: result.error.message }],
|
|
21
|
+
isError: true,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const value = result.value;
|
|
25
|
+
return formatResult(value, apiCall);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=catalogListCategories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogListCategories.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogListCategories.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,mCAAmC;CACxD,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAgC;IACrE,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE;;2JAE4I;IACzJ,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,qBAAqB,CACnD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.ListCrosssellProductsRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$catalogListCrosssellProducts: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=catalogListCrosssellProducts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogListCrosssellProducts.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogListCrosssellProducts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,cAAc,CAAC,OAAO,IAAI,CAwBzE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { catalogListCrosssellProducts } from "../../funcs/catalogListCrosssellProducts.js";
|
|
5
|
+
import * as operations from "../../models/operations/index.js";
|
|
6
|
+
import { formatResult } from "../tools.js";
|
|
7
|
+
const args = {
|
|
8
|
+
request: operations.ListCrosssellProductsRequest$inboundSchema,
|
|
9
|
+
};
|
|
10
|
+
export const tool$catalogListCrosssellProducts = {
|
|
11
|
+
name: "catalog-list-crosssell-products",
|
|
12
|
+
description: `Retrieve cross-sell products
|
|
13
|
+
|
|
14
|
+
Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.`,
|
|
15
|
+
args,
|
|
16
|
+
tool: async (client, args, ctx) => {
|
|
17
|
+
const [result, apiCall] = await catalogListCrosssellProducts(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
18
|
+
if (!result.ok) {
|
|
19
|
+
return {
|
|
20
|
+
content: [{ type: "text", text: result.error.message }],
|
|
21
|
+
isError: true,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const value = result.value;
|
|
25
|
+
return formatResult(value, apiCall);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=catalogListCrosssellProducts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogListCrosssellProducts.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogListCrosssellProducts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,0CAA0C;CAC/D,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAgC;IAC5E,IAAI,EAAE,iCAAiC;IACvC,WAAW,EAAE;;gJAEiI;IAC9I,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,4BAA4B,CAC1D,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.ListProductReviewsRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$catalogListProductReviews: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=catalogListProductReviews.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogListProductReviews.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogListProductReviews.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,cAAc,CAAC,OAAO,IAAI,CAwBtE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { catalogListProductReviews } from "../../funcs/catalogListProductReviews.js";
|
|
5
|
+
import * as operations from "../../models/operations/index.js";
|
|
6
|
+
import { formatResult } from "../tools.js";
|
|
7
|
+
const args = {
|
|
8
|
+
request: operations.ListProductReviewsRequest$inboundSchema,
|
|
9
|
+
};
|
|
10
|
+
export const tool$catalogListProductReviews = {
|
|
11
|
+
name: "catalog-list-product-reviews",
|
|
12
|
+
description: `List all product reviews
|
|
13
|
+
|
|
14
|
+
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.`,
|
|
15
|
+
args,
|
|
16
|
+
tool: async (client, args, ctx) => {
|
|
17
|
+
const [result, apiCall] = await catalogListProductReviews(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
18
|
+
if (!result.ok) {
|
|
19
|
+
return {
|
|
20
|
+
content: [{ type: "text", text: result.error.message }],
|
|
21
|
+
isError: true,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const value = result.value;
|
|
25
|
+
return formatResult(value, apiCall);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=catalogListProductReviews.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogListProductReviews.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogListProductReviews.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,uCAAuC;CAC5D,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAgC;IACzE,IAAI,EAAE,8BAA8B;IACpC,WAAW,EAAE;;+NAEgN;IAC7N,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,yBAAyB,CACvD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.ListProductVariantsRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$catalogListProductVariants: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=catalogListProductVariants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogListProductVariants.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogListProductVariants.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,cAAc,CAAC,OAAO,IAAI,CAwBvE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { catalogListProductVariants } from "../../funcs/catalogListProductVariants.js";
|
|
5
|
+
import * as operations from "../../models/operations/index.js";
|
|
6
|
+
import { formatResult } from "../tools.js";
|
|
7
|
+
const args = {
|
|
8
|
+
request: operations.ListProductVariantsRequest$inboundSchema,
|
|
9
|
+
};
|
|
10
|
+
export const tool$catalogListProductVariants = {
|
|
11
|
+
name: "catalog-list-product-variants",
|
|
12
|
+
description: `Retrieve product variants
|
|
13
|
+
|
|
14
|
+
Retrieves the variants of an existing product. Supply the unique product ID, and Commerce Engine will return the corresponding product variants information.`,
|
|
15
|
+
args,
|
|
16
|
+
tool: async (client, args, ctx) => {
|
|
17
|
+
const [result, apiCall] = await catalogListProductVariants(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
18
|
+
if (!result.ok) {
|
|
19
|
+
return {
|
|
20
|
+
content: [{ type: "text", text: result.error.message }],
|
|
21
|
+
isError: true,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const value = result.value;
|
|
25
|
+
return formatResult(value, apiCall);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=catalogListProductVariants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogListProductVariants.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogListProductVariants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,wCAAwC;CAC7D,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAgC;IAC1E,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE;;6JAE8I;IAC3J,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,0BAA0B,CACxD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.ListProductsRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$catalogListProducts: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=catalogListProducts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogListProducts.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogListProducts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,cAAc,CAAC,OAAO,IAAI,CAwBhE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { catalogListProducts } from "../../funcs/catalogListProducts.js";
|
|
5
|
+
import * as operations from "../../models/operations/index.js";
|
|
6
|
+
import { formatResult } from "../tools.js";
|
|
7
|
+
const args = {
|
|
8
|
+
request: operations.ListProductsRequest$inboundSchema,
|
|
9
|
+
};
|
|
10
|
+
export const tool$catalogListProducts = {
|
|
11
|
+
name: "catalog-list-products",
|
|
12
|
+
description: `List all products
|
|
13
|
+
|
|
14
|
+
Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.`,
|
|
15
|
+
args,
|
|
16
|
+
tool: async (client, args, ctx) => {
|
|
17
|
+
const [result, apiCall] = await catalogListProducts(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
18
|
+
if (!result.ok) {
|
|
19
|
+
return {
|
|
20
|
+
content: [{ type: "text", text: result.error.message }],
|
|
21
|
+
isError: true,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const value = result.value;
|
|
25
|
+
return formatResult(value, apiCall);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=catalogListProducts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogListProducts.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogListProducts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,iCAAiC;CACtD,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAgC;IACnE,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE;;6IAE8H;IAC3I,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,mBAAmB,CACjD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.ListSimilarProductsRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$catalogListSimilarProducts: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=catalogListSimilarProducts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogListSimilarProducts.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogListSimilarProducts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,cAAc,CAAC,OAAO,IAAI,CAwBvE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { catalogListSimilarProducts } from "../../funcs/catalogListSimilarProducts.js";
|
|
5
|
+
import * as operations from "../../models/operations/index.js";
|
|
6
|
+
import { formatResult } from "../tools.js";
|
|
7
|
+
const args = {
|
|
8
|
+
request: operations.ListSimilarProductsRequest$inboundSchema,
|
|
9
|
+
};
|
|
10
|
+
export const tool$catalogListSimilarProducts = {
|
|
11
|
+
name: "catalog-list-similar-products",
|
|
12
|
+
description: `Retrieve similar products
|
|
13
|
+
|
|
14
|
+
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.`,
|
|
15
|
+
args,
|
|
16
|
+
tool: async (client, args, ctx) => {
|
|
17
|
+
const [result, apiCall] = await catalogListSimilarProducts(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
18
|
+
if (!result.ok) {
|
|
19
|
+
return {
|
|
20
|
+
content: [{ type: "text", text: result.error.message }],
|
|
21
|
+
isError: true,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const value = result.value;
|
|
25
|
+
return formatResult(value, apiCall);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=catalogListSimilarProducts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogListSimilarProducts.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogListSimilarProducts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,wCAAwC;CAC7D,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAgC;IAC1E,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE;;oRAEqQ;IAClR,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,0BAA0B,CACxD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.ListSkusRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$catalogListSkus: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=catalogListSkus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogListSkus.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/catalogListSkus.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,OAAO,IAAI,CAwB5D,CAAC"}
|