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.
- package/README.md +0 -83
- package/docs/sdks/customers/README.md +2 -2
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/models/components/cart.d.ts +14 -0
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +28 -0
- package/esm/models/components/cart.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -16
- package/src/lib/config.ts +3 -3
- package/src/models/components/cart.ts +42 -0
- package/bin/mcp-server.js +0 -50254
- package/bin/mcp-server.js.map +0 -467
- package/esm/mcp-server/build.d.mts.map +0 -1
- package/esm/mcp-server/build.mjs +0 -14
- package/esm/mcp-server/build.mjs.map +0 -1
- package/esm/mcp-server/cli/start/command.d.ts +0 -2
- package/esm/mcp-server/cli/start/command.d.ts.map +0 -1
- package/esm/mcp-server/cli/start/command.js +0 -108
- package/esm/mcp-server/cli/start/command.js.map +0 -1
- package/esm/mcp-server/cli/start/impl.d.ts +0 -19
- package/esm/mcp-server/cli/start/impl.d.ts.map +0 -1
- package/esm/mcp-server/cli/start/impl.js +0 -100
- package/esm/mcp-server/cli/start/impl.js.map +0 -1
- package/esm/mcp-server/cli.d.ts +0 -6
- package/esm/mcp-server/cli.d.ts.map +0 -1
- package/esm/mcp-server/cli.js +0 -7
- package/esm/mcp-server/cli.js.map +0 -1
- package/esm/mcp-server/console-logger.d.ts +0 -7
- package/esm/mcp-server/console-logger.d.ts.map +0 -1
- package/esm/mcp-server/console-logger.js +0 -55
- package/esm/mcp-server/console-logger.js.map +0 -1
- package/esm/mcp-server/extensions.d.ts +0 -11
- package/esm/mcp-server/extensions.d.ts.map +0 -1
- package/esm/mcp-server/extensions.js +0 -5
- package/esm/mcp-server/extensions.js.map +0 -1
- package/esm/mcp-server/mcp-server.d.ts +0 -2
- package/esm/mcp-server/mcp-server.d.ts.map +0 -1
- package/esm/mcp-server/mcp-server.js +0 -23
- package/esm/mcp-server/mcp-server.js.map +0 -1
- package/esm/mcp-server/prompts.d.ts +0 -26
- package/esm/mcp-server/prompts.d.ts.map +0 -1
- package/esm/mcp-server/prompts.js +0 -47
- package/esm/mcp-server/prompts.js.map +0 -1
- package/esm/mcp-server/resources.d.ts +0 -32
- package/esm/mcp-server/resources.d.ts.map +0 -1
- package/esm/mcp-server/resources.js +0 -82
- package/esm/mcp-server/resources.js.map +0 -1
- package/esm/mcp-server/scopes.d.ts +0 -3
- package/esm/mcp-server/scopes.d.ts.map +0 -1
- package/esm/mcp-server/scopes.js +0 -5
- package/esm/mcp-server/scopes.js.map +0 -1
- package/esm/mcp-server/server.d.ts +0 -14
- package/esm/mcp-server/server.d.ts.map +0 -1
- package/esm/mcp-server/server.js +0 -128
- package/esm/mcp-server/server.js.map +0 -1
- package/esm/mcp-server/shared.d.ts +0 -7
- package/esm/mcp-server/shared.d.ts.map +0 -1
- package/esm/mcp-server/shared.js +0 -59
- package/esm/mcp-server/shared.js.map +0 -1
- package/esm/mcp-server/tools/authGenerateOtp.d.ts +0 -8
- package/esm/mcp-server/tools/authGenerateOtp.d.ts.map +0 -1
- package/esm/mcp-server/tools/authGenerateOtp.js +0 -28
- package/esm/mcp-server/tools/authGenerateOtp.js.map +0 -1
- package/esm/mcp-server/tools/authGetUserDetail.d.ts +0 -8
- package/esm/mcp-server/tools/authGetUserDetail.d.ts.map +0 -1
- package/esm/mcp-server/tools/authGetUserDetail.js +0 -28
- package/esm/mcp-server/tools/authGetUserDetail.js.map +0 -1
- package/esm/mcp-server/tools/authLoginWithEmail.d.ts +0 -8
- package/esm/mcp-server/tools/authLoginWithEmail.d.ts.map +0 -1
- package/esm/mcp-server/tools/authLoginWithEmail.js +0 -28
- package/esm/mcp-server/tools/authLoginWithEmail.js.map +0 -1
- package/esm/mcp-server/tools/authLoginWithPhone.d.ts +0 -8
- package/esm/mcp-server/tools/authLoginWithPhone.d.ts.map +0 -1
- package/esm/mcp-server/tools/authLoginWithPhone.js +0 -28
- package/esm/mcp-server/tools/authLoginWithPhone.js.map +0 -1
- package/esm/mcp-server/tools/authLoginWithWhatsapp.d.ts +0 -8
- package/esm/mcp-server/tools/authLoginWithWhatsapp.d.ts.map +0 -1
- package/esm/mcp-server/tools/authLoginWithWhatsapp.js +0 -28
- package/esm/mcp-server/tools/authLoginWithWhatsapp.js.map +0 -1
- package/esm/mcp-server/tools/authLogout.d.ts +0 -3
- package/esm/mcp-server/tools/authLogout.d.ts.map +0 -1
- package/esm/mcp-server/tools/authLogout.js +0 -23
- package/esm/mcp-server/tools/authLogout.js.map +0 -1
- package/esm/mcp-server/tools/authRefreshToken.d.ts +0 -8
- package/esm/mcp-server/tools/authRefreshToken.d.ts.map +0 -1
- package/esm/mcp-server/tools/authRefreshToken.js +0 -28
- package/esm/mcp-server/tools/authRefreshToken.js.map +0 -1
- package/esm/mcp-server/tools/authUpdateUser.d.ts +0 -8
- package/esm/mcp-server/tools/authUpdateUser.d.ts.map +0 -1
- package/esm/mcp-server/tools/authUpdateUser.js +0 -28
- package/esm/mcp-server/tools/authUpdateUser.js.map +0 -1
- package/esm/mcp-server/tools/authVerifyOtp.d.ts +0 -8
- package/esm/mcp-server/tools/authVerifyOtp.d.ts.map +0 -1
- package/esm/mcp-server/tools/authVerifyOtp.js +0 -28
- package/esm/mcp-server/tools/authVerifyOtp.js.map +0 -1
- package/esm/mcp-server/tools/cartsAddShippingMethod.d.ts +0 -8
- package/esm/mcp-server/tools/cartsAddShippingMethod.d.ts.map +0 -1
- package/esm/mcp-server/tools/cartsAddShippingMethod.js +0 -28
- package/esm/mcp-server/tools/cartsAddShippingMethod.js.map +0 -1
- package/esm/mcp-server/tools/cartsApplyCoupon.d.ts +0 -8
- package/esm/mcp-server/tools/cartsApplyCoupon.d.ts.map +0 -1
- package/esm/mcp-server/tools/cartsApplyCoupon.js +0 -28
- package/esm/mcp-server/tools/cartsApplyCoupon.js.map +0 -1
- package/esm/mcp-server/tools/cartsCreateCart.d.ts +0 -8
- package/esm/mcp-server/tools/cartsCreateCart.d.ts.map +0 -1
- package/esm/mcp-server/tools/cartsCreateCart.js +0 -28
- package/esm/mcp-server/tools/cartsCreateCart.js.map +0 -1
- package/esm/mcp-server/tools/cartsCreateCartAddress.d.ts +0 -8
- package/esm/mcp-server/tools/cartsCreateCartAddress.d.ts.map +0 -1
- package/esm/mcp-server/tools/cartsCreateCartAddress.js +0 -28
- package/esm/mcp-server/tools/cartsCreateCartAddress.js.map +0 -1
- package/esm/mcp-server/tools/cartsDeleteCart.d.ts +0 -8
- package/esm/mcp-server/tools/cartsDeleteCart.d.ts.map +0 -1
- package/esm/mcp-server/tools/cartsDeleteCart.js +0 -28
- package/esm/mcp-server/tools/cartsDeleteCart.js.map +0 -1
- package/esm/mcp-server/tools/cartsGetCart.d.ts +0 -8
- package/esm/mcp-server/tools/cartsGetCart.d.ts.map +0 -1
- package/esm/mcp-server/tools/cartsGetCart.js +0 -28
- package/esm/mcp-server/tools/cartsGetCart.js.map +0 -1
- package/esm/mcp-server/tools/cartsGetUserCart.d.ts +0 -8
- package/esm/mcp-server/tools/cartsGetUserCart.d.ts.map +0 -1
- package/esm/mcp-server/tools/cartsGetUserCart.js +0 -28
- package/esm/mcp-server/tools/cartsGetUserCart.js.map +0 -1
- package/esm/mcp-server/tools/cartsRedeemLoyaltyPoints.d.ts +0 -8
- package/esm/mcp-server/tools/cartsRedeemLoyaltyPoints.d.ts.map +0 -1
- package/esm/mcp-server/tools/cartsRedeemLoyaltyPoints.js +0 -28
- package/esm/mcp-server/tools/cartsRedeemLoyaltyPoints.js.map +0 -1
- package/esm/mcp-server/tools/cartsRemoveCoupon.d.ts +0 -8
- package/esm/mcp-server/tools/cartsRemoveCoupon.d.ts.map +0 -1
- package/esm/mcp-server/tools/cartsRemoveCoupon.js +0 -28
- package/esm/mcp-server/tools/cartsRemoveCoupon.js.map +0 -1
- package/esm/mcp-server/tools/cartsRemoveLoyaltyPoints.d.ts +0 -8
- package/esm/mcp-server/tools/cartsRemoveLoyaltyPoints.d.ts.map +0 -1
- package/esm/mcp-server/tools/cartsRemoveLoyaltyPoints.js +0 -28
- package/esm/mcp-server/tools/cartsRemoveLoyaltyPoints.js.map +0 -1
- package/esm/mcp-server/tools/cartsRemoveUserCart.d.ts +0 -8
- package/esm/mcp-server/tools/cartsRemoveUserCart.d.ts.map +0 -1
- package/esm/mcp-server/tools/cartsRemoveUserCart.js +0 -28
- package/esm/mcp-server/tools/cartsRemoveUserCart.js.map +0 -1
- package/esm/mcp-server/tools/cartsUpdateCart.d.ts +0 -8
- package/esm/mcp-server/tools/cartsUpdateCart.d.ts.map +0 -1
- package/esm/mcp-server/tools/cartsUpdateCart.js +0 -28
- package/esm/mcp-server/tools/cartsUpdateCart.js.map +0 -1
- package/esm/mcp-server/tools/catalogGetProductDetail.d.ts +0 -8
- package/esm/mcp-server/tools/catalogGetProductDetail.d.ts.map +0 -1
- package/esm/mcp-server/tools/catalogGetProductDetail.js +0 -28
- package/esm/mcp-server/tools/catalogGetProductDetail.js.map +0 -1
- package/esm/mcp-server/tools/catalogGetVariantDetail.d.ts +0 -8
- package/esm/mcp-server/tools/catalogGetVariantDetail.d.ts.map +0 -1
- package/esm/mcp-server/tools/catalogGetVariantDetail.js +0 -28
- package/esm/mcp-server/tools/catalogGetVariantDetail.js.map +0 -1
- package/esm/mcp-server/tools/catalogListCategories.d.ts +0 -8
- package/esm/mcp-server/tools/catalogListCategories.d.ts.map +0 -1
- package/esm/mcp-server/tools/catalogListCategories.js +0 -28
- package/esm/mcp-server/tools/catalogListCategories.js.map +0 -1
- package/esm/mcp-server/tools/catalogListCrosssellProducts.d.ts +0 -8
- package/esm/mcp-server/tools/catalogListCrosssellProducts.d.ts.map +0 -1
- package/esm/mcp-server/tools/catalogListCrosssellProducts.js +0 -28
- package/esm/mcp-server/tools/catalogListCrosssellProducts.js.map +0 -1
- package/esm/mcp-server/tools/catalogListProductReviews.d.ts +0 -8
- package/esm/mcp-server/tools/catalogListProductReviews.d.ts.map +0 -1
- package/esm/mcp-server/tools/catalogListProductReviews.js +0 -28
- package/esm/mcp-server/tools/catalogListProductReviews.js.map +0 -1
- package/esm/mcp-server/tools/catalogListProductVariants.d.ts +0 -8
- package/esm/mcp-server/tools/catalogListProductVariants.d.ts.map +0 -1
- package/esm/mcp-server/tools/catalogListProductVariants.js +0 -28
- package/esm/mcp-server/tools/catalogListProductVariants.js.map +0 -1
- package/esm/mcp-server/tools/catalogListProducts.d.ts +0 -8
- package/esm/mcp-server/tools/catalogListProducts.d.ts.map +0 -1
- package/esm/mcp-server/tools/catalogListProducts.js +0 -28
- package/esm/mcp-server/tools/catalogListProducts.js.map +0 -1
- package/esm/mcp-server/tools/catalogListSimilarProducts.d.ts +0 -8
- package/esm/mcp-server/tools/catalogListSimilarProducts.d.ts.map +0 -1
- package/esm/mcp-server/tools/catalogListSimilarProducts.js +0 -28
- package/esm/mcp-server/tools/catalogListSimilarProducts.js.map +0 -1
- package/esm/mcp-server/tools/catalogListSkus.d.ts +0 -8
- package/esm/mcp-server/tools/catalogListSkus.d.ts.map +0 -1
- package/esm/mcp-server/tools/catalogListSkus.js +0 -28
- package/esm/mcp-server/tools/catalogListSkus.js.map +0 -1
- package/esm/mcp-server/tools/catalogListUpsellProducts.d.ts +0 -8
- package/esm/mcp-server/tools/catalogListUpsellProducts.d.ts.map +0 -1
- package/esm/mcp-server/tools/catalogListUpsellProducts.js +0 -28
- package/esm/mcp-server/tools/catalogListUpsellProducts.js.map +0 -1
- package/esm/mcp-server/tools/catalogSearchProducts.d.ts +0 -8
- package/esm/mcp-server/tools/catalogSearchProducts.d.ts.map +0 -1
- package/esm/mcp-server/tools/catalogSearchProducts.js +0 -28
- package/esm/mcp-server/tools/catalogSearchProducts.js.map +0 -1
- package/esm/mcp-server/tools/commonListCountryPincodes.d.ts +0 -8
- package/esm/mcp-server/tools/commonListCountryPincodes.d.ts.map +0 -1
- package/esm/mcp-server/tools/commonListCountryPincodes.js +0 -28
- package/esm/mcp-server/tools/commonListCountryPincodes.js.map +0 -1
- package/esm/mcp-server/tools/customersCreateAddress.d.ts +0 -8
- package/esm/mcp-server/tools/customersCreateAddress.d.ts.map +0 -1
- package/esm/mcp-server/tools/customersCreateAddress.js +0 -28
- package/esm/mcp-server/tools/customersCreateAddress.js.map +0 -1
- package/esm/mcp-server/tools/customersDeleteAddress.d.ts +0 -8
- package/esm/mcp-server/tools/customersDeleteAddress.d.ts.map +0 -1
- package/esm/mcp-server/tools/customersDeleteAddress.js +0 -28
- package/esm/mcp-server/tools/customersDeleteAddress.js.map +0 -1
- package/esm/mcp-server/tools/customersGetAddressDetail.d.ts +0 -8
- package/esm/mcp-server/tools/customersGetAddressDetail.d.ts.map +0 -1
- package/esm/mcp-server/tools/customersGetAddressDetail.js +0 -28
- package/esm/mcp-server/tools/customersGetAddressDetail.js.map +0 -1
- package/esm/mcp-server/tools/customersGetLoyaltyDetails.d.ts +0 -8
- package/esm/mcp-server/tools/customersGetLoyaltyDetails.d.ts.map +0 -1
- package/esm/mcp-server/tools/customersGetLoyaltyDetails.js +0 -28
- package/esm/mcp-server/tools/customersGetLoyaltyDetails.js.map +0 -1
- package/esm/mcp-server/tools/customersListAddresses.d.ts +0 -8
- package/esm/mcp-server/tools/customersListAddresses.d.ts.map +0 -1
- package/esm/mcp-server/tools/customersListAddresses.js +0 -28
- package/esm/mcp-server/tools/customersListAddresses.js.map +0 -1
- package/esm/mcp-server/tools/customersListUserReviews.d.ts +0 -8
- package/esm/mcp-server/tools/customersListUserReviews.d.ts.map +0 -1
- package/esm/mcp-server/tools/customersListUserReviews.js +0 -28
- package/esm/mcp-server/tools/customersListUserReviews.js.map +0 -1
- package/esm/mcp-server/tools/customersUpdateAddressDetail.d.ts +0 -8
- package/esm/mcp-server/tools/customersUpdateAddressDetail.d.ts.map +0 -1
- package/esm/mcp-server/tools/customersUpdateAddressDetail.js +0 -28
- package/esm/mcp-server/tools/customersUpdateAddressDetail.js.map +0 -1
- package/esm/mcp-server/tools/ordersCancelOrder.d.ts +0 -8
- package/esm/mcp-server/tools/ordersCancelOrder.d.ts.map +0 -1
- package/esm/mcp-server/tools/ordersCancelOrder.js +0 -28
- package/esm/mcp-server/tools/ordersCancelOrder.js.map +0 -1
- package/esm/mcp-server/tools/ordersCreateOrder.d.ts +0 -8
- package/esm/mcp-server/tools/ordersCreateOrder.d.ts.map +0 -1
- package/esm/mcp-server/tools/ordersCreateOrder.js +0 -28
- package/esm/mcp-server/tools/ordersCreateOrder.js.map +0 -1
- package/esm/mcp-server/tools/ordersGetOrderDetail.d.ts +0 -8
- package/esm/mcp-server/tools/ordersGetOrderDetail.d.ts.map +0 -1
- package/esm/mcp-server/tools/ordersGetOrderDetail.js +0 -28
- package/esm/mcp-server/tools/ordersGetOrderDetail.js.map +0 -1
- package/esm/mcp-server/tools/ordersGetPaymentStatus.d.ts +0 -8
- package/esm/mcp-server/tools/ordersGetPaymentStatus.d.ts.map +0 -1
- package/esm/mcp-server/tools/ordersGetPaymentStatus.js +0 -28
- package/esm/mcp-server/tools/ordersGetPaymentStatus.js.map +0 -1
- package/esm/mcp-server/tools/ordersListOrderShipments.d.ts +0 -8
- package/esm/mcp-server/tools/ordersListOrderShipments.d.ts.map +0 -1
- package/esm/mcp-server/tools/ordersListOrderShipments.js +0 -28
- package/esm/mcp-server/tools/ordersListOrderShipments.js.map +0 -1
- package/esm/mcp-server/tools/ordersListOrders.d.ts +0 -8
- package/esm/mcp-server/tools/ordersListOrders.d.ts.map +0 -1
- package/esm/mcp-server/tools/ordersListOrders.js +0 -28
- package/esm/mcp-server/tools/ordersListOrders.js.map +0 -1
- package/esm/mcp-server/tools/ordersRetryOrderPayment.d.ts +0 -8
- package/esm/mcp-server/tools/ordersRetryOrderPayment.d.ts.map +0 -1
- package/esm/mcp-server/tools/ordersRetryOrderPayment.js +0 -28
- package/esm/mcp-server/tools/ordersRetryOrderPayment.js.map +0 -1
- package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.d.ts +0 -8
- package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.d.ts.map +0 -1
- package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.js +0 -28
- package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.js.map +0 -1
- package/esm/mcp-server/tools/shippingCheckServiceability.d.ts +0 -8
- package/esm/mcp-server/tools/shippingCheckServiceability.d.ts.map +0 -1
- package/esm/mcp-server/tools/shippingCheckServiceability.js +0 -28
- package/esm/mcp-server/tools/shippingCheckServiceability.js.map +0 -1
- package/esm/mcp-server/tools.d.ts +0 -25
- package/esm/mcp-server/tools.d.ts.map +0 -1
- package/esm/mcp-server/tools.js +0 -78
- package/esm/mcp-server/tools.js.map +0 -1
- package/src/mcp-server/cli/start/command.ts +0 -113
- package/src/mcp-server/cli/start/impl.ts +0 -137
- package/src/mcp-server/cli.ts +0 -13
- package/src/mcp-server/console-logger.ts +0 -71
- package/src/mcp-server/extensions.ts +0 -17
- package/src/mcp-server/mcp-server.ts +0 -26
- package/src/mcp-server/prompts.ts +0 -117
- package/src/mcp-server/resources.ts +0 -172
- package/src/mcp-server/scopes.ts +0 -7
- package/src/mcp-server/server.ts +0 -159
- package/src/mcp-server/shared.ts +0 -75
- package/src/mcp-server/tools/authGenerateOtp.ts +0 -37
- package/src/mcp-server/tools/authGetUserDetail.ts +0 -37
- package/src/mcp-server/tools/authLoginWithEmail.ts +0 -37
- package/src/mcp-server/tools/authLoginWithPhone.ts +0 -37
- package/src/mcp-server/tools/authLoginWithWhatsapp.ts +0 -37
- package/src/mcp-server/tools/authLogout.ts +0 -30
- package/src/mcp-server/tools/authRefreshToken.ts +0 -37
- package/src/mcp-server/tools/authUpdateUser.ts +0 -37
- package/src/mcp-server/tools/authVerifyOtp.ts +0 -37
- package/src/mcp-server/tools/cartsAddShippingMethod.ts +0 -37
- package/src/mcp-server/tools/cartsApplyCoupon.ts +0 -37
- package/src/mcp-server/tools/cartsCreateCart.ts +0 -37
- package/src/mcp-server/tools/cartsCreateCartAddress.ts +0 -37
- package/src/mcp-server/tools/cartsDeleteCart.ts +0 -37
- package/src/mcp-server/tools/cartsGetCart.ts +0 -37
- package/src/mcp-server/tools/cartsGetUserCart.ts +0 -37
- package/src/mcp-server/tools/cartsRedeemLoyaltyPoints.ts +0 -37
- package/src/mcp-server/tools/cartsRemoveCoupon.ts +0 -37
- package/src/mcp-server/tools/cartsRemoveLoyaltyPoints.ts +0 -37
- package/src/mcp-server/tools/cartsRemoveUserCart.ts +0 -37
- package/src/mcp-server/tools/cartsUpdateCart.ts +0 -37
- package/src/mcp-server/tools/catalogGetProductDetail.ts +0 -37
- package/src/mcp-server/tools/catalogGetVariantDetail.ts +0 -37
- package/src/mcp-server/tools/catalogListCategories.ts +0 -37
- package/src/mcp-server/tools/catalogListCrosssellProducts.ts +0 -37
- package/src/mcp-server/tools/catalogListProductReviews.ts +0 -37
- package/src/mcp-server/tools/catalogListProductVariants.ts +0 -37
- package/src/mcp-server/tools/catalogListProducts.ts +0 -37
- package/src/mcp-server/tools/catalogListSimilarProducts.ts +0 -37
- package/src/mcp-server/tools/catalogListSkus.ts +0 -37
- package/src/mcp-server/tools/catalogListUpsellProducts.ts +0 -37
- package/src/mcp-server/tools/catalogSearchProducts.ts +0 -37
- package/src/mcp-server/tools/commonListCountryPincodes.ts +0 -37
- package/src/mcp-server/tools/customersCreateAddress.ts +0 -37
- package/src/mcp-server/tools/customersDeleteAddress.ts +0 -37
- package/src/mcp-server/tools/customersGetAddressDetail.ts +0 -37
- package/src/mcp-server/tools/customersGetLoyaltyDetails.ts +0 -37
- package/src/mcp-server/tools/customersListAddresses.ts +0 -37
- package/src/mcp-server/tools/customersListUserReviews.ts +0 -37
- package/src/mcp-server/tools/customersUpdateAddressDetail.ts +0 -37
- package/src/mcp-server/tools/ordersCancelOrder.ts +0 -37
- package/src/mcp-server/tools/ordersCreateOrder.ts +0 -37
- package/src/mcp-server/tools/ordersGetOrderDetail.ts +0 -37
- package/src/mcp-server/tools/ordersGetPaymentStatus.ts +0 -37
- package/src/mcp-server/tools/ordersListOrderShipments.ts +0 -37
- package/src/mcp-server/tools/ordersListOrders.ts +0 -37
- package/src/mcp-server/tools/ordersRetryOrderPayment.ts +0 -37
- package/src/mcp-server/tools/shippingCheckDeliveryAvailability.ts +0 -39
- package/src/mcp-server/tools/shippingCheckServiceability.ts +0 -37
- 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 { authGetUserDetail } from "../../funcs/authGetUserDetail.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.GetUserDetailRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$authGetUserDetail: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "auth-get-user-detail",
|
|
15
|
-
description: `Retrieve a user
|
|
16
|
-
|
|
17
|
-
The Retrieve User API is designed to facilitate the retrieval of comprehensive user information from the system. A required parameter is a user-id of the user whose information needs to be retrieved.`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await authGetUserDetail(
|
|
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 { authLoginWithEmail } from "../../funcs/authLoginWithEmail.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.LoginWithEmailRequestBody$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$authLoginWithEmail: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "auth-login-with-email",
|
|
15
|
-
description: `Login with email
|
|
16
|
-
|
|
17
|
-
This API enables users to authenticate into the system using their email address. It provides a secure way for users to Login by verifying their identity through a one-time password (OTP) sent to their email address.`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await authLoginWithEmail(
|
|
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 { authLoginWithPhone } from "../../funcs/authLoginWithPhone.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.LoginWithPhoneRequestBody$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$authLoginWithPhone: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "auth-login-with-phone",
|
|
15
|
-
description: `Login with phone
|
|
16
|
-
|
|
17
|
-
This API enables users to authenticate into the system using their phone number. It provides a secure way for users to log in by verifying their identity through a one-time password (OTP) sent to their registered phone.`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await authLoginWithPhone(
|
|
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 { authLoginWithWhatsapp } from "../../funcs/authLoginWithWhatsapp.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.LoginWithWhatsappRequestBody$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$authLoginWithWhatsapp: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "auth-login-with-whatsapp",
|
|
15
|
-
description: `Login with whatsapp
|
|
16
|
-
|
|
17
|
-
This API enables users to authenticate into the system using their WhatsApp Number. It provides a secure way for users to Login by verifying their identity through a one-time password (OTP) sent to their WhatsApp Number.`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await authLoginWithWhatsapp(
|
|
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,30 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { authLogout } from "../../funcs/authLogout.js";
|
|
6
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
7
|
-
|
|
8
|
-
export const tool$authLogout: ToolDefinition = {
|
|
9
|
-
name: "auth-logout",
|
|
10
|
-
description: `Logout user
|
|
11
|
-
|
|
12
|
-
The Logout User API initiate the logout process for a user. Upon a successful request, the API responds with a confirmation message. If the user is not found or there's an issue with the request, an error response is returned with an appropriate message.`,
|
|
13
|
-
tool: async (client, ctx) => {
|
|
14
|
-
const [result, apiCall] = await authLogout(
|
|
15
|
-
client,
|
|
16
|
-
{ fetchOptions: { signal: ctx.signal } },
|
|
17
|
-
).$inspect();
|
|
18
|
-
|
|
19
|
-
if (!result.ok) {
|
|
20
|
-
return {
|
|
21
|
-
content: [{ type: "text", text: result.error.message }],
|
|
22
|
-
isError: true,
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const value = result.value;
|
|
27
|
-
|
|
28
|
-
return formatResult(value, apiCall);
|
|
29
|
-
},
|
|
30
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { authRefreshToken } from "../../funcs/authRefreshToken.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.RefreshTokenRequestBody$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$authRefreshToken: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "auth-refresh-token",
|
|
15
|
-
description: `Refresh access token
|
|
16
|
-
|
|
17
|
-
The Refresh Access Token API is an integral component designed to enhance security and user experience. It enables clients to refresh their access tokens seamlessly, extending user sessions without compromising security.`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await authRefreshToken(
|
|
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 { authUpdateUser } from "../../funcs/authUpdateUser.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.UpdateUserRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$authUpdateUser: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "auth-update-user",
|
|
15
|
-
description: `Update a user
|
|
16
|
-
|
|
17
|
-
The Update User API helps to efficiently modify and enhance user information within the system, ensuring that user profiles remain accurate and up-to-date. This API provides a secure and flexible mechanism for updating specific details while maintaining adherence to established conventions.`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await authUpdateUser(
|
|
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 { authVerifyOtp } from "../../funcs/authVerifyOtp.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.VerifyOtpRequestBody$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$authVerifyOtp: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "auth-verify-otp",
|
|
15
|
-
description: `Verify OTP
|
|
16
|
-
|
|
17
|
-
This API endpoint allows you to verify a one-time password (OTP) for authentication purposes. By sending a request to this endpoint with the necessary parameters, you can confirm the validity of the OTP provided by the user.`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await authVerifyOtp(
|
|
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 { cartsAddShippingMethod } from "../../funcs/cartsAddShippingMethod.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.UpdateShippingMethodRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$cartsAddShippingMethod: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "carts-add-shipping-method",
|
|
15
|
-
description: `Update shipping method
|
|
16
|
-
|
|
17
|
-
Update preferred shipping method and courier.`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await cartsAddShippingMethod(
|
|
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 { cartsApplyCoupon } from "../../funcs/cartsApplyCoupon.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.ApplyCouponRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$cartsApplyCoupon: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "carts-apply-coupon",
|
|
15
|
-
description: `Apply coupon
|
|
16
|
-
|
|
17
|
-
Apply coupon`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await cartsApplyCoupon(
|
|
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 { cartsCreateCart } from "../../funcs/cartsCreateCart.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.CreateCartRequestBody$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$cartsCreateCart: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "carts-create-cart",
|
|
15
|
-
description: `Create cart
|
|
16
|
-
|
|
17
|
-
Create cart`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await cartsCreateCart(
|
|
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 { cartsCreateCartAddress } from "../../funcs/cartsCreateCartAddress.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.CreateCartAddressRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$cartsCreateCartAddress: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "carts-create-cart-address",
|
|
15
|
-
description: `Update cart address
|
|
16
|
-
|
|
17
|
-
Update billing and shipping address`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await cartsCreateCartAddress(
|
|
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 { cartsDeleteCart } from "../../funcs/cartsDeleteCart.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.DeleteCartRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$cartsDeleteCart: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "carts-delete-cart",
|
|
15
|
-
description: `Delete cart
|
|
16
|
-
|
|
17
|
-
delete all items from the cart.`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await cartsDeleteCart(
|
|
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 { cartsGetCart } from "../../funcs/cartsGetCart.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.GetCartRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$cartsGetCart: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "carts-get-cart",
|
|
15
|
-
description: `Retrieve cart detail
|
|
16
|
-
|
|
17
|
-
Retrieve cart detail`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await cartsGetCart(
|
|
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 { cartsGetUserCart } from "../../funcs/cartsGetUserCart.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.GetUserCartRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$cartsGetUserCart: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "carts-get-user-cart",
|
|
15
|
-
description: `Retrieve cart using user id
|
|
16
|
-
|
|
17
|
-
Retrieve cart detail using user id`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await cartsGetUserCart(
|
|
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 { cartsRedeemLoyaltyPoints } from "../../funcs/cartsRedeemLoyaltyPoints.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.RedeemLoyaltyPointsRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$cartsRedeemLoyaltyPoints: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "carts-redeem-loyalty-points",
|
|
15
|
-
description: `Redeem loyalty points
|
|
16
|
-
|
|
17
|
-
Redeem loyalty points`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await cartsRedeemLoyaltyPoints(
|
|
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 { cartsRemoveCoupon } from "../../funcs/cartsRemoveCoupon.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.RemoveCouponRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$cartsRemoveCoupon: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "carts-remove-coupon",
|
|
15
|
-
description: `Remove coupon
|
|
16
|
-
|
|
17
|
-
remove coupon from cart`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await cartsRemoveCoupon(
|
|
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 { cartsRemoveLoyaltyPoints } from "../../funcs/cartsRemoveLoyaltyPoints.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.RemoveLoyaltyPointsRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$cartsRemoveLoyaltyPoints: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "carts-remove-loyalty-points",
|
|
15
|
-
description: `Remove loyalty points
|
|
16
|
-
|
|
17
|
-
Remove loyalty points applied in cart`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await cartsRemoveLoyaltyPoints(
|
|
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
|
-
};
|