ce-storefront 0.11.2 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/sdks/auth/README.md +10 -10
- package/docs/sdks/carts/README.md +12 -12
- package/docs/sdks/catalog/README.md +11 -11
- package/docs/sdks/common/README.md +1 -1
- package/docs/sdks/customers/README.md +7 -7
- package/docs/sdks/orders/README.md +7 -7
- package/docs/sdks/shipping/README.md +2 -2
- package/esm/funcs/authGenerateOtp.d.ts +1 -1
- package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
- package/esm/funcs/authGenerateOtp.js +6 -1
- package/esm/funcs/authGenerateOtp.js.map +1 -1
- package/esm/funcs/authGetAnonymousToken.d.ts +1 -1
- package/esm/funcs/authGetAnonymousToken.d.ts.map +1 -1
- package/esm/funcs/authGetAnonymousToken.js +6 -1
- package/esm/funcs/authGetAnonymousToken.js.map +1 -1
- package/esm/funcs/authGetUserDetail.d.ts +1 -1
- package/esm/funcs/authGetUserDetail.d.ts.map +1 -1
- package/esm/funcs/authGetUserDetail.js +6 -1
- package/esm/funcs/authGetUserDetail.js.map +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
- package/esm/funcs/authLoginWithEmail.js +6 -1
- package/esm/funcs/authLoginWithEmail.js.map +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
- package/esm/funcs/authLoginWithPhone.js +6 -1
- package/esm/funcs/authLoginWithPhone.js.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js +6 -1
- package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
- package/esm/funcs/authLogout.d.ts +1 -1
- package/esm/funcs/authLogout.d.ts.map +1 -1
- package/esm/funcs/authLogout.js +4 -1
- package/esm/funcs/authLogout.js.map +1 -1
- package/esm/funcs/authRefreshToken.d.ts +1 -1
- package/esm/funcs/authRefreshToken.d.ts.map +1 -1
- package/esm/funcs/authRefreshToken.js +6 -1
- package/esm/funcs/authRefreshToken.js.map +1 -1
- package/esm/funcs/authUpdateUser.d.ts +1 -1
- package/esm/funcs/authUpdateUser.d.ts.map +1 -1
- package/esm/funcs/authUpdateUser.js +4 -1
- package/esm/funcs/authUpdateUser.js.map +1 -1
- package/esm/funcs/authVerifyOtp.d.ts +1 -1
- package/esm/funcs/authVerifyOtp.d.ts.map +1 -1
- package/esm/funcs/authVerifyOtp.js +4 -1
- package/esm/funcs/authVerifyOtp.js.map +1 -1
- package/esm/funcs/cartsAddShippingMethod.d.ts +1 -1
- package/esm/funcs/cartsAddShippingMethod.d.ts.map +1 -1
- package/esm/funcs/cartsAddShippingMethod.js +3 -1
- package/esm/funcs/cartsAddShippingMethod.js.map +1 -1
- package/esm/funcs/cartsApplyCoupon.d.ts +1 -1
- package/esm/funcs/cartsApplyCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsApplyCoupon.js +3 -1
- package/esm/funcs/cartsApplyCoupon.js.map +1 -1
- package/esm/funcs/cartsCreateCart.d.ts +1 -1
- package/esm/funcs/cartsCreateCart.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCart.js +4 -1
- package/esm/funcs/cartsCreateCart.js.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts +1 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.js +3 -1
- package/esm/funcs/cartsCreateCartAddress.js.map +1 -1
- package/esm/funcs/cartsDeleteCart.d.ts +1 -1
- package/esm/funcs/cartsDeleteCart.d.ts.map +1 -1
- package/esm/funcs/cartsDeleteCart.js +1 -1
- package/esm/funcs/cartsDeleteCart.js.map +1 -1
- package/esm/funcs/cartsGetCart.d.ts +1 -1
- package/esm/funcs/cartsGetCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetCart.js +1 -1
- package/esm/funcs/cartsGetCart.js.map +1 -1
- package/esm/funcs/cartsGetUserCart.d.ts +1 -1
- package/esm/funcs/cartsGetUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetUserCart.js +3 -1
- package/esm/funcs/cartsGetUserCart.js.map +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.d.ts +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.d.ts.map +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.js +3 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.js.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts +1 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.js +3 -1
- package/esm/funcs/cartsRemoveCoupon.js.map +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.d.ts +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.js +3 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.js.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts +1 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.js +3 -1
- package/esm/funcs/cartsRemoveUserCart.js.map +1 -1
- package/esm/funcs/cartsUpdateCart.d.ts +1 -1
- package/esm/funcs/cartsUpdateCart.d.ts.map +1 -1
- package/esm/funcs/cartsUpdateCart.js +1 -1
- package/esm/funcs/cartsUpdateCart.js.map +1 -1
- package/esm/funcs/catalogGetProductDetail.d.ts +1 -1
- package/esm/funcs/catalogGetProductDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetProductDetail.js +3 -1
- package/esm/funcs/catalogGetProductDetail.js.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts +1 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +3 -1
- package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
- package/esm/funcs/catalogListCategories.d.ts +1 -1
- package/esm/funcs/catalogListCategories.d.ts.map +1 -1
- package/esm/funcs/catalogListCategories.js +6 -1
- package/esm/funcs/catalogListCategories.js.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts +1 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js +3 -1
- package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
- package/esm/funcs/catalogListProductReviews.d.ts +1 -1
- package/esm/funcs/catalogListProductReviews.d.ts.map +1 -1
- package/esm/funcs/catalogListProductReviews.js +3 -1
- package/esm/funcs/catalogListProductReviews.js.map +1 -1
- package/esm/funcs/catalogListProductVariants.d.ts +1 -1
- package/esm/funcs/catalogListProductVariants.d.ts.map +1 -1
- package/esm/funcs/catalogListProductVariants.js +3 -1
- package/esm/funcs/catalogListProductVariants.js.map +1 -1
- package/esm/funcs/catalogListProducts.d.ts +1 -1
- package/esm/funcs/catalogListProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListProducts.js +3 -1
- package/esm/funcs/catalogListProducts.js.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts +1 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.js +3 -1
- package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
- package/esm/funcs/catalogListSkus.d.ts +1 -1
- package/esm/funcs/catalogListSkus.d.ts.map +1 -1
- package/esm/funcs/catalogListSkus.js +1 -1
- package/esm/funcs/catalogListSkus.js.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts +1 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.js +3 -1
- package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
- package/esm/funcs/catalogSearchProducts.d.ts +1 -1
- package/esm/funcs/catalogSearchProducts.d.ts.map +1 -1
- package/esm/funcs/catalogSearchProducts.js +3 -1
- package/esm/funcs/catalogSearchProducts.js.map +1 -1
- package/esm/funcs/commonListCountryPincodes.d.ts +1 -1
- package/esm/funcs/commonListCountryPincodes.d.ts.map +1 -1
- package/esm/funcs/commonListCountryPincodes.js +6 -1
- package/esm/funcs/commonListCountryPincodes.js.map +1 -1
- package/esm/funcs/customersCreateAddress.d.ts +1 -1
- package/esm/funcs/customersCreateAddress.d.ts.map +1 -1
- package/esm/funcs/customersCreateAddress.js +3 -1
- package/esm/funcs/customersCreateAddress.js.map +1 -1
- package/esm/funcs/customersDeleteAddress.d.ts +1 -1
- package/esm/funcs/customersDeleteAddress.d.ts.map +1 -1
- package/esm/funcs/customersDeleteAddress.js +3 -1
- package/esm/funcs/customersDeleteAddress.js.map +1 -1
- package/esm/funcs/customersGetAddressDetail.d.ts +1 -1
- package/esm/funcs/customersGetAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersGetAddressDetail.js +3 -1
- package/esm/funcs/customersGetAddressDetail.js.map +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.d.ts +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.d.ts.map +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.js +3 -1
- package/esm/funcs/customersGetLoyaltyDetails.js.map +1 -1
- package/esm/funcs/customersListAddresses.d.ts +1 -1
- package/esm/funcs/customersListAddresses.d.ts.map +1 -1
- package/esm/funcs/customersListAddresses.js +6 -1
- package/esm/funcs/customersListAddresses.js.map +1 -1
- package/esm/funcs/customersListUserReviews.d.ts +1 -1
- package/esm/funcs/customersListUserReviews.d.ts.map +1 -1
- package/esm/funcs/customersListUserReviews.js +6 -1
- package/esm/funcs/customersListUserReviews.js.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts +1 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.js +3 -1
- package/esm/funcs/customersUpdateAddressDetail.js.map +1 -1
- package/esm/funcs/ordersCancelOrder.d.ts +1 -1
- package/esm/funcs/ordersCancelOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCancelOrder.js +3 -1
- package/esm/funcs/ordersCancelOrder.js.map +1 -1
- package/esm/funcs/ordersCreateOrder.d.ts +1 -1
- package/esm/funcs/ordersCreateOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCreateOrder.js +3 -1
- package/esm/funcs/ordersCreateOrder.js.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts +1 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.js +3 -1
- package/esm/funcs/ordersGetOrderDetail.js.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts +1 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.js +6 -1
- package/esm/funcs/ordersGetPaymentStatus.js.map +1 -1
- package/esm/funcs/ordersListOrderShipments.d.ts +1 -1
- package/esm/funcs/ordersListOrderShipments.d.ts.map +1 -1
- package/esm/funcs/ordersListOrderShipments.js +3 -1
- package/esm/funcs/ordersListOrderShipments.js.map +1 -1
- package/esm/funcs/ordersListOrders.d.ts +1 -1
- package/esm/funcs/ordersListOrders.d.ts.map +1 -1
- package/esm/funcs/ordersListOrders.js +4 -1
- package/esm/funcs/ordersListOrders.js.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts +1 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.js +3 -1
- package/esm/funcs/ordersRetryOrderPayment.js.map +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.d.ts +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.d.ts.map +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.js +3 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.js.map +1 -1
- package/esm/funcs/shippingCheckServiceability.d.ts +1 -1
- package/esm/funcs/shippingCheckServiceability.d.ts.map +1 -1
- package/esm/funcs/shippingCheckServiceability.js +6 -1
- package/esm/funcs/shippingCheckServiceability.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/matchers.d.ts +1 -1
- package/esm/lib/matchers.d.ts.map +1 -1
- package/esm/lib/matchers.js +10 -11
- package/esm/lib/matchers.js.map +1 -1
- package/esm/models/components/httpmetadata.d.ts +37 -0
- package/esm/models/components/httpmetadata.d.ts.map +1 -0
- package/esm/models/components/httpmetadata.js +48 -0
- package/esm/models/components/httpmetadata.js.map +1 -0
- package/esm/models/components/index.d.ts +1 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +1 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/errors/ceerror.d.ts +8 -5
- package/esm/models/errors/ceerror.d.ts.map +1 -1
- package/esm/models/errors/ceerror.js +3 -9
- package/esm/models/errors/ceerror.js.map +1 -1
- package/esm/models/operations/applycoupon.d.ts +30 -0
- package/esm/models/operations/applycoupon.d.ts.map +1 -1
- package/esm/models/operations/applycoupon.js +35 -0
- package/esm/models/operations/applycoupon.js.map +1 -1
- package/esm/models/operations/cancelorder.d.ts +30 -0
- package/esm/models/operations/cancelorder.d.ts.map +1 -1
- package/esm/models/operations/cancelorder.js +35 -0
- package/esm/models/operations/cancelorder.js.map +1 -1
- package/esm/models/operations/checkdeliveryavailability.d.ts +31 -0
- package/esm/models/operations/checkdeliveryavailability.d.ts.map +1 -1
- package/esm/models/operations/checkdeliveryavailability.js +39 -0
- package/esm/models/operations/checkdeliveryavailability.js.map +1 -1
- package/esm/models/operations/createaddress.d.ts +30 -0
- package/esm/models/operations/createaddress.d.ts.map +1 -1
- package/esm/models/operations/createaddress.js +35 -0
- package/esm/models/operations/createaddress.js.map +1 -1
- package/esm/models/operations/createcart.d.ts +30 -0
- package/esm/models/operations/createcart.d.ts.map +1 -1
- package/esm/models/operations/createcart.js +36 -0
- package/esm/models/operations/createcart.js.map +1 -1
- package/esm/models/operations/createcartaddress.d.ts +30 -0
- package/esm/models/operations/createcartaddress.d.ts.map +1 -1
- package/esm/models/operations/createcartaddress.js +35 -0
- package/esm/models/operations/createcartaddress.js.map +1 -1
- package/esm/models/operations/createorder.d.ts +30 -0
- package/esm/models/operations/createorder.d.ts.map +1 -1
- package/esm/models/operations/createorder.js +35 -0
- package/esm/models/operations/createorder.js.map +1 -1
- package/esm/models/operations/deleteaddress.d.ts +31 -0
- package/esm/models/operations/deleteaddress.d.ts.map +1 -1
- package/esm/models/operations/deleteaddress.js +36 -0
- package/esm/models/operations/deleteaddress.js.map +1 -1
- package/esm/models/operations/deletecart.d.ts +31 -0
- package/esm/models/operations/deletecart.d.ts.map +1 -1
- package/esm/models/operations/deletecart.js +37 -0
- package/esm/models/operations/deletecart.js.map +1 -1
- package/esm/models/operations/deleteusercart.d.ts +31 -0
- package/esm/models/operations/deleteusercart.d.ts.map +1 -1
- package/esm/models/operations/deleteusercart.js +36 -0
- package/esm/models/operations/deleteusercart.js.map +1 -1
- package/esm/models/operations/generateotp.d.ts +31 -0
- package/esm/models/operations/generateotp.d.ts.map +1 -1
- package/esm/models/operations/generateotp.js +36 -0
- package/esm/models/operations/generateotp.js.map +1 -1
- package/esm/models/operations/getaddressdetail.d.ts +31 -0
- package/esm/models/operations/getaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/getaddressdetail.js +36 -0
- package/esm/models/operations/getaddressdetail.js.map +1 -1
- package/esm/models/operations/getanonymoustoken.d.ts +30 -0
- package/esm/models/operations/getanonymoustoken.d.ts.map +1 -1
- package/esm/models/operations/getanonymoustoken.js +35 -0
- package/esm/models/operations/getanonymoustoken.js.map +1 -1
- package/esm/models/operations/getcart.d.ts +30 -0
- package/esm/models/operations/getcart.d.ts.map +1 -1
- package/esm/models/operations/getcart.js +36 -0
- package/esm/models/operations/getcart.js.map +1 -1
- package/esm/models/operations/getloyaltydetails.d.ts +30 -0
- package/esm/models/operations/getloyaltydetails.d.ts.map +1 -1
- package/esm/models/operations/getloyaltydetails.js +35 -0
- package/esm/models/operations/getloyaltydetails.js.map +1 -1
- package/esm/models/operations/getorderdetail.d.ts +30 -0
- package/esm/models/operations/getorderdetail.d.ts.map +1 -1
- package/esm/models/operations/getorderdetail.js +35 -0
- package/esm/models/operations/getorderdetail.js.map +1 -1
- package/esm/models/operations/getpaymentstatus.d.ts +31 -0
- package/esm/models/operations/getpaymentstatus.d.ts.map +1 -1
- package/esm/models/operations/getpaymentstatus.js +36 -0
- package/esm/models/operations/getpaymentstatus.js.map +1 -1
- package/esm/models/operations/getproductdetail.d.ts +30 -0
- package/esm/models/operations/getproductdetail.d.ts.map +1 -1
- package/esm/models/operations/getproductdetail.js +35 -0
- package/esm/models/operations/getproductdetail.js.map +1 -1
- package/esm/models/operations/getusercart.d.ts +30 -0
- package/esm/models/operations/getusercart.d.ts.map +1 -1
- package/esm/models/operations/getusercart.js +35 -0
- package/esm/models/operations/getusercart.js.map +1 -1
- package/esm/models/operations/getuserdetail.d.ts +30 -0
- package/esm/models/operations/getuserdetail.d.ts.map +1 -1
- package/esm/models/operations/getuserdetail.js +36 -0
- package/esm/models/operations/getuserdetail.js.map +1 -1
- package/esm/models/operations/getvariantdetail.d.ts +30 -0
- package/esm/models/operations/getvariantdetail.d.ts.map +1 -1
- package/esm/models/operations/getvariantdetail.js +35 -0
- package/esm/models/operations/getvariantdetail.js.map +1 -1
- package/esm/models/operations/listaddresses.d.ts +30 -0
- package/esm/models/operations/listaddresses.d.ts.map +1 -1
- package/esm/models/operations/listaddresses.js +35 -0
- package/esm/models/operations/listaddresses.js.map +1 -1
- package/esm/models/operations/listcategories.d.ts +30 -0
- package/esm/models/operations/listcategories.d.ts.map +1 -1
- package/esm/models/operations/listcategories.js +35 -0
- package/esm/models/operations/listcategories.js.map +1 -1
- package/esm/models/operations/listcountrypincodes.d.ts +30 -0
- package/esm/models/operations/listcountrypincodes.d.ts.map +1 -1
- package/esm/models/operations/listcountrypincodes.js +37 -0
- package/esm/models/operations/listcountrypincodes.js.map +1 -1
- package/esm/models/operations/listcrosssellproducts.d.ts +30 -0
- package/esm/models/operations/listcrosssellproducts.d.ts.map +1 -1
- package/esm/models/operations/listcrosssellproducts.js +37 -0
- package/esm/models/operations/listcrosssellproducts.js.map +1 -1
- package/esm/models/operations/listorders.d.ts +30 -0
- package/esm/models/operations/listorders.d.ts.map +1 -1
- package/esm/models/operations/listorders.js +35 -0
- package/esm/models/operations/listorders.js.map +1 -1
- package/esm/models/operations/listordershipments.d.ts +30 -0
- package/esm/models/operations/listordershipments.d.ts.map +1 -1
- package/esm/models/operations/listordershipments.js +36 -0
- package/esm/models/operations/listordershipments.js.map +1 -1
- package/esm/models/operations/listproductreviews.d.ts +30 -0
- package/esm/models/operations/listproductreviews.d.ts.map +1 -1
- package/esm/models/operations/listproductreviews.js +36 -0
- package/esm/models/operations/listproductreviews.js.map +1 -1
- package/esm/models/operations/listproducts.d.ts +30 -0
- package/esm/models/operations/listproducts.d.ts.map +1 -1
- package/esm/models/operations/listproducts.js +35 -0
- package/esm/models/operations/listproducts.js.map +1 -1
- package/esm/models/operations/listproductvariants.d.ts +30 -0
- package/esm/models/operations/listproductvariants.d.ts.map +1 -1
- package/esm/models/operations/listproductvariants.js +37 -0
- package/esm/models/operations/listproductvariants.js.map +1 -1
- package/esm/models/operations/listsimilarproducts.d.ts +30 -0
- package/esm/models/operations/listsimilarproducts.d.ts.map +1 -1
- package/esm/models/operations/listsimilarproducts.js +37 -0
- package/esm/models/operations/listsimilarproducts.js.map +1 -1
- package/esm/models/operations/listskus.d.ts +30 -0
- package/esm/models/operations/listskus.d.ts.map +1 -1
- package/esm/models/operations/listskus.js +35 -0
- package/esm/models/operations/listskus.js.map +1 -1
- package/esm/models/operations/listupsellproducts.d.ts +30 -0
- package/esm/models/operations/listupsellproducts.d.ts.map +1 -1
- package/esm/models/operations/listupsellproducts.js +36 -0
- package/esm/models/operations/listupsellproducts.js.map +1 -1
- package/esm/models/operations/listuserreviews.d.ts +30 -0
- package/esm/models/operations/listuserreviews.d.ts.map +1 -1
- package/esm/models/operations/listuserreviews.js +35 -0
- package/esm/models/operations/listuserreviews.js.map +1 -1
- package/esm/models/operations/loginwithemail.d.ts +31 -0
- package/esm/models/operations/loginwithemail.d.ts.map +1 -1
- package/esm/models/operations/loginwithemail.js +36 -0
- package/esm/models/operations/loginwithemail.js.map +1 -1
- package/esm/models/operations/loginwithphone.d.ts +31 -0
- package/esm/models/operations/loginwithphone.d.ts.map +1 -1
- package/esm/models/operations/loginwithphone.js +36 -0
- package/esm/models/operations/loginwithphone.js.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.d.ts +31 -0
- package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.js +36 -0
- package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
- package/esm/models/operations/logout.d.ts +30 -0
- package/esm/models/operations/logout.d.ts.map +1 -1
- package/esm/models/operations/logout.js +35 -0
- package/esm/models/operations/logout.js.map +1 -1
- package/esm/models/operations/redeemloyaltypoints.d.ts +30 -0
- package/esm/models/operations/redeemloyaltypoints.d.ts.map +1 -1
- package/esm/models/operations/redeemloyaltypoints.js +37 -0
- package/esm/models/operations/redeemloyaltypoints.js.map +1 -1
- package/esm/models/operations/refreshtoken.d.ts +31 -0
- package/esm/models/operations/refreshtoken.d.ts.map +1 -1
- package/esm/models/operations/refreshtoken.js +36 -0
- package/esm/models/operations/refreshtoken.js.map +1 -1
- package/esm/models/operations/removecoupon.d.ts +30 -0
- package/esm/models/operations/removecoupon.d.ts.map +1 -1
- package/esm/models/operations/removecoupon.js +36 -0
- package/esm/models/operations/removecoupon.js.map +1 -1
- package/esm/models/operations/removeloyaltypoints.d.ts +30 -0
- package/esm/models/operations/removeloyaltypoints.d.ts.map +1 -1
- package/esm/models/operations/removeloyaltypoints.js +38 -0
- package/esm/models/operations/removeloyaltypoints.js.map +1 -1
- package/esm/models/operations/retryorderpayment.d.ts +30 -0
- package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
- package/esm/models/operations/retryorderpayment.js +35 -0
- package/esm/models/operations/retryorderpayment.js.map +1 -1
- package/esm/models/operations/searchproducts.d.ts +30 -0
- package/esm/models/operations/searchproducts.d.ts.map +1 -1
- package/esm/models/operations/searchproducts.js +35 -0
- package/esm/models/operations/searchproducts.js.map +1 -1
- package/esm/models/operations/shippingmethods.d.ts +30 -0
- package/esm/models/operations/shippingmethods.d.ts.map +1 -1
- package/esm/models/operations/shippingmethods.js +35 -0
- package/esm/models/operations/shippingmethods.js.map +1 -1
- package/esm/models/operations/updateaddressdetail.d.ts +30 -0
- package/esm/models/operations/updateaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/updateaddressdetail.js +37 -0
- package/esm/models/operations/updateaddressdetail.js.map +1 -1
- package/esm/models/operations/updatecart.d.ts +30 -0
- package/esm/models/operations/updatecart.d.ts.map +1 -1
- package/esm/models/operations/updatecart.js +35 -0
- package/esm/models/operations/updatecart.js.map +1 -1
- package/esm/models/operations/updateshippingmethod.d.ts +30 -0
- package/esm/models/operations/updateshippingmethod.d.ts.map +1 -1
- package/esm/models/operations/updateshippingmethod.js +37 -0
- package/esm/models/operations/updateshippingmethod.js.map +1 -1
- package/esm/models/operations/updateuser.d.ts +30 -0
- package/esm/models/operations/updateuser.d.ts.map +1 -1
- package/esm/models/operations/updateuser.js +35 -0
- package/esm/models/operations/updateuser.js.map +1 -1
- package/esm/models/operations/verifyotp.d.ts +30 -0
- package/esm/models/operations/verifyotp.d.ts.map +1 -1
- package/esm/models/operations/verifyotp.js +35 -0
- package/esm/models/operations/verifyotp.js.map +1 -1
- package/esm/sdk/auth.d.ts +10 -10
- package/esm/sdk/auth.d.ts.map +1 -1
- package/esm/sdk/carts.d.ts +12 -12
- package/esm/sdk/carts.d.ts.map +1 -1
- package/esm/sdk/catalog.d.ts +11 -11
- package/esm/sdk/catalog.d.ts.map +1 -1
- package/esm/sdk/common.d.ts +1 -1
- package/esm/sdk/common.d.ts.map +1 -1
- package/esm/sdk/customers.d.ts +7 -7
- package/esm/sdk/customers.d.ts.map +1 -1
- package/esm/sdk/orders.d.ts +7 -7
- package/esm/sdk/orders.d.ts.map +1 -1
- package/esm/sdk/shipping.d.ts +2 -2
- package/esm/sdk/shipping.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authGenerateOtp.ts +11 -5
- package/src/funcs/authGetAnonymousToken.ts +11 -5
- package/src/funcs/authGetUserDetail.ts +11 -5
- package/src/funcs/authLoginWithEmail.ts +11 -5
- package/src/funcs/authLoginWithPhone.ts +11 -5
- package/src/funcs/authLoginWithWhatsapp.ts +11 -5
- package/src/funcs/authLogout.ts +9 -5
- package/src/funcs/authRefreshToken.ts +11 -5
- package/src/funcs/authUpdateUser.ts +9 -5
- package/src/funcs/authVerifyOtp.ts +9 -5
- package/src/funcs/cartsAddShippingMethod.ts +7 -5
- package/src/funcs/cartsApplyCoupon.ts +7 -5
- package/src/funcs/cartsCreateCart.ts +9 -5
- package/src/funcs/cartsCreateCartAddress.ts +7 -5
- package/src/funcs/cartsDeleteCart.ts +5 -5
- package/src/funcs/cartsGetCart.ts +5 -5
- package/src/funcs/cartsGetUserCart.ts +7 -5
- package/src/funcs/cartsRedeemLoyaltyPoints.ts +7 -5
- package/src/funcs/cartsRemoveCoupon.ts +7 -5
- package/src/funcs/cartsRemoveLoyaltyPoints.ts +7 -5
- package/src/funcs/cartsRemoveUserCart.ts +7 -5
- package/src/funcs/cartsUpdateCart.ts +5 -5
- package/src/funcs/catalogGetProductDetail.ts +7 -5
- package/src/funcs/catalogGetVariantDetail.ts +7 -5
- package/src/funcs/catalogListCategories.ts +11 -5
- package/src/funcs/catalogListCrosssellProducts.ts +7 -5
- package/src/funcs/catalogListProductReviews.ts +7 -5
- package/src/funcs/catalogListProductVariants.ts +7 -5
- package/src/funcs/catalogListProducts.ts +7 -5
- package/src/funcs/catalogListSimilarProducts.ts +7 -5
- package/src/funcs/catalogListSkus.ts +5 -5
- package/src/funcs/catalogListUpsellProducts.ts +7 -5
- package/src/funcs/catalogSearchProducts.ts +7 -5
- package/src/funcs/commonListCountryPincodes.ts +11 -5
- package/src/funcs/customersCreateAddress.ts +7 -5
- package/src/funcs/customersDeleteAddress.ts +7 -5
- package/src/funcs/customersGetAddressDetail.ts +7 -5
- package/src/funcs/customersGetLoyaltyDetails.ts +7 -5
- package/src/funcs/customersListAddresses.ts +11 -5
- package/src/funcs/customersListUserReviews.ts +11 -5
- package/src/funcs/customersUpdateAddressDetail.ts +7 -5
- package/src/funcs/ordersCancelOrder.ts +7 -5
- package/src/funcs/ordersCreateOrder.ts +7 -5
- package/src/funcs/ordersGetOrderDetail.ts +7 -5
- package/src/funcs/ordersGetPaymentStatus.ts +11 -5
- package/src/funcs/ordersListOrderShipments.ts +7 -5
- package/src/funcs/ordersListOrders.ts +9 -5
- package/src/funcs/ordersRetryOrderPayment.ts +7 -5
- package/src/funcs/shippingCheckDeliveryAvailability.ts +7 -5
- package/src/funcs/shippingCheckServiceability.ts +11 -5
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +10 -16
- package/src/models/components/httpmetadata.ts +87 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/errors/ceerror.ts +7 -13
- package/src/models/operations/applycoupon.ts +73 -0
- package/src/models/operations/cancelorder.ts +73 -0
- package/src/models/operations/checkdeliveryavailability.ts +80 -0
- package/src/models/operations/createaddress.ts +73 -0
- package/src/models/operations/createcart.ts +74 -0
- package/src/models/operations/createcartaddress.ts +73 -0
- package/src/models/operations/createorder.ts +73 -0
- package/src/models/operations/deleteaddress.ts +74 -0
- package/src/models/operations/deletecart.ts +75 -0
- package/src/models/operations/deleteusercart.ts +74 -0
- package/src/models/operations/generateotp.ts +74 -0
- package/src/models/operations/getaddressdetail.ts +74 -0
- package/src/models/operations/getanonymoustoken.ts +73 -0
- package/src/models/operations/getcart.ts +72 -0
- package/src/models/operations/getloyaltydetails.ts +73 -0
- package/src/models/operations/getorderdetail.ts +73 -0
- package/src/models/operations/getpaymentstatus.ts +74 -0
- package/src/models/operations/getproductdetail.ts +73 -0
- package/src/models/operations/getusercart.ts +73 -0
- package/src/models/operations/getuserdetail.ts +74 -0
- package/src/models/operations/getvariantdetail.ts +73 -0
- package/src/models/operations/listaddresses.ts +73 -0
- package/src/models/operations/listcategories.ts +73 -0
- package/src/models/operations/listcountrypincodes.ts +77 -0
- package/src/models/operations/listcrosssellproducts.ts +77 -0
- package/src/models/operations/listorders.ts +73 -0
- package/src/models/operations/listordershipments.ts +74 -0
- package/src/models/operations/listproductreviews.ts +74 -0
- package/src/models/operations/listproducts.ts +73 -0
- package/src/models/operations/listproductvariants.ts +77 -0
- package/src/models/operations/listsimilarproducts.ts +77 -0
- package/src/models/operations/listskus.ts +73 -0
- package/src/models/operations/listupsellproducts.ts +74 -0
- package/src/models/operations/listuserreviews.ts +73 -0
- package/src/models/operations/loginwithemail.ts +74 -0
- package/src/models/operations/loginwithphone.ts +74 -0
- package/src/models/operations/loginwithwhatsapp.ts +74 -0
- package/src/models/operations/logout.ts +69 -0
- package/src/models/operations/redeemloyaltypoints.ts +77 -0
- package/src/models/operations/refreshtoken.ts +74 -0
- package/src/models/operations/removecoupon.ts +74 -0
- package/src/models/operations/removeloyaltypoints.ts +78 -0
- package/src/models/operations/retryorderpayment.ts +73 -0
- package/src/models/operations/searchproducts.ts +73 -0
- package/src/models/operations/shippingmethods.ts +73 -0
- package/src/models/operations/updateaddressdetail.ts +77 -0
- package/src/models/operations/updatecart.ts +73 -0
- package/src/models/operations/updateshippingmethod.ts +77 -0
- package/src/models/operations/updateuser.ts +73 -0
- package/src/models/operations/verifyotp.ts +73 -0
- package/src/sdk/auth.ts +10 -10
- package/src/sdk/carts.ts +12 -12
- package/src/sdk/catalog.ts +11 -11
- package/src/sdk/common.ts +1 -1
- package/src/sdk/customers.ts +7 -7
- package/src/sdk/orders.ts +7 -7
- package/src/sdk/shipping.ts +2 -2
|
@@ -6,6 +6,7 @@ import * as z from "zod";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
|
|
11
12
|
export type RefreshTokenRequestBody = {
|
|
@@ -47,6 +48,14 @@ export type RefreshTokenResponseBody = {
|
|
|
47
48
|
content?: RefreshTokenContent | undefined;
|
|
48
49
|
};
|
|
49
50
|
|
|
51
|
+
export type RefreshTokenResponse = {
|
|
52
|
+
httpMeta: components.HTTPMetadata;
|
|
53
|
+
/**
|
|
54
|
+
* OK
|
|
55
|
+
*/
|
|
56
|
+
object?: RefreshTokenResponseBody | undefined;
|
|
57
|
+
};
|
|
58
|
+
|
|
50
59
|
/** @internal */
|
|
51
60
|
export const RefreshTokenRequestBody$inboundSchema: z.ZodType<
|
|
52
61
|
RefreshTokenRequestBody,
|
|
@@ -235,3 +244,68 @@ export function refreshTokenResponseBodyFromJSON(
|
|
|
235
244
|
`Failed to parse 'RefreshTokenResponseBody' from JSON`,
|
|
236
245
|
);
|
|
237
246
|
}
|
|
247
|
+
|
|
248
|
+
/** @internal */
|
|
249
|
+
export const RefreshTokenResponse$inboundSchema: z.ZodType<
|
|
250
|
+
RefreshTokenResponse,
|
|
251
|
+
z.ZodTypeDef,
|
|
252
|
+
unknown
|
|
253
|
+
> = z.object({
|
|
254
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
255
|
+
object: z.lazy(() => RefreshTokenResponseBody$inboundSchema).optional(),
|
|
256
|
+
}).transform((v) => {
|
|
257
|
+
return remap$(v, {
|
|
258
|
+
"HttpMeta": "httpMeta",
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
/** @internal */
|
|
263
|
+
export type RefreshTokenResponse$Outbound = {
|
|
264
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
265
|
+
object?: RefreshTokenResponseBody$Outbound | undefined;
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
/** @internal */
|
|
269
|
+
export const RefreshTokenResponse$outboundSchema: z.ZodType<
|
|
270
|
+
RefreshTokenResponse$Outbound,
|
|
271
|
+
z.ZodTypeDef,
|
|
272
|
+
RefreshTokenResponse
|
|
273
|
+
> = z.object({
|
|
274
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
275
|
+
object: z.lazy(() => RefreshTokenResponseBody$outboundSchema).optional(),
|
|
276
|
+
}).transform((v) => {
|
|
277
|
+
return remap$(v, {
|
|
278
|
+
httpMeta: "HttpMeta",
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @internal
|
|
284
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
285
|
+
*/
|
|
286
|
+
export namespace RefreshTokenResponse$ {
|
|
287
|
+
/** @deprecated use `RefreshTokenResponse$inboundSchema` instead. */
|
|
288
|
+
export const inboundSchema = RefreshTokenResponse$inboundSchema;
|
|
289
|
+
/** @deprecated use `RefreshTokenResponse$outboundSchema` instead. */
|
|
290
|
+
export const outboundSchema = RefreshTokenResponse$outboundSchema;
|
|
291
|
+
/** @deprecated use `RefreshTokenResponse$Outbound` instead. */
|
|
292
|
+
export type Outbound = RefreshTokenResponse$Outbound;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export function refreshTokenResponseToJSON(
|
|
296
|
+
refreshTokenResponse: RefreshTokenResponse,
|
|
297
|
+
): string {
|
|
298
|
+
return JSON.stringify(
|
|
299
|
+
RefreshTokenResponse$outboundSchema.parse(refreshTokenResponse),
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export function refreshTokenResponseFromJSON(
|
|
304
|
+
jsonString: string,
|
|
305
|
+
): SafeParseResult<RefreshTokenResponse, SDKValidationError> {
|
|
306
|
+
return safeParse(
|
|
307
|
+
jsonString,
|
|
308
|
+
(x) => RefreshTokenResponse$inboundSchema.parse(JSON.parse(x)),
|
|
309
|
+
`Failed to parse 'RefreshTokenResponse' from JSON`,
|
|
310
|
+
);
|
|
311
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import * as components from "../components/index.js";
|
|
@@ -31,6 +32,14 @@ export type RemoveCouponResponseBody = {
|
|
|
31
32
|
content: RemoveCouponContent;
|
|
32
33
|
};
|
|
33
34
|
|
|
35
|
+
export type RemoveCouponResponse = {
|
|
36
|
+
httpMeta: components.HTTPMetadata;
|
|
37
|
+
/**
|
|
38
|
+
* OK
|
|
39
|
+
*/
|
|
40
|
+
object?: RemoveCouponResponseBody | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
34
43
|
/** @internal */
|
|
35
44
|
export const RemoveCouponRequest$inboundSchema: z.ZodType<
|
|
36
45
|
RemoveCouponRequest,
|
|
@@ -198,3 +207,68 @@ export function removeCouponResponseBodyFromJSON(
|
|
|
198
207
|
`Failed to parse 'RemoveCouponResponseBody' from JSON`,
|
|
199
208
|
);
|
|
200
209
|
}
|
|
210
|
+
|
|
211
|
+
/** @internal */
|
|
212
|
+
export const RemoveCouponResponse$inboundSchema: z.ZodType<
|
|
213
|
+
RemoveCouponResponse,
|
|
214
|
+
z.ZodTypeDef,
|
|
215
|
+
unknown
|
|
216
|
+
> = z.object({
|
|
217
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
218
|
+
object: z.lazy(() => RemoveCouponResponseBody$inboundSchema).optional(),
|
|
219
|
+
}).transform((v) => {
|
|
220
|
+
return remap$(v, {
|
|
221
|
+
"HttpMeta": "httpMeta",
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
/** @internal */
|
|
226
|
+
export type RemoveCouponResponse$Outbound = {
|
|
227
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
228
|
+
object?: RemoveCouponResponseBody$Outbound | undefined;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
/** @internal */
|
|
232
|
+
export const RemoveCouponResponse$outboundSchema: z.ZodType<
|
|
233
|
+
RemoveCouponResponse$Outbound,
|
|
234
|
+
z.ZodTypeDef,
|
|
235
|
+
RemoveCouponResponse
|
|
236
|
+
> = z.object({
|
|
237
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
238
|
+
object: z.lazy(() => RemoveCouponResponseBody$outboundSchema).optional(),
|
|
239
|
+
}).transform((v) => {
|
|
240
|
+
return remap$(v, {
|
|
241
|
+
httpMeta: "HttpMeta",
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @internal
|
|
247
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
248
|
+
*/
|
|
249
|
+
export namespace RemoveCouponResponse$ {
|
|
250
|
+
/** @deprecated use `RemoveCouponResponse$inboundSchema` instead. */
|
|
251
|
+
export const inboundSchema = RemoveCouponResponse$inboundSchema;
|
|
252
|
+
/** @deprecated use `RemoveCouponResponse$outboundSchema` instead. */
|
|
253
|
+
export const outboundSchema = RemoveCouponResponse$outboundSchema;
|
|
254
|
+
/** @deprecated use `RemoveCouponResponse$Outbound` instead. */
|
|
255
|
+
export type Outbound = RemoveCouponResponse$Outbound;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export function removeCouponResponseToJSON(
|
|
259
|
+
removeCouponResponse: RemoveCouponResponse,
|
|
260
|
+
): string {
|
|
261
|
+
return JSON.stringify(
|
|
262
|
+
RemoveCouponResponse$outboundSchema.parse(removeCouponResponse),
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export function removeCouponResponseFromJSON(
|
|
267
|
+
jsonString: string,
|
|
268
|
+
): SafeParseResult<RemoveCouponResponse, SDKValidationError> {
|
|
269
|
+
return safeParse(
|
|
270
|
+
jsonString,
|
|
271
|
+
(x) => RemoveCouponResponse$inboundSchema.parse(JSON.parse(x)),
|
|
272
|
+
`Failed to parse 'RemoveCouponResponse' from JSON`,
|
|
273
|
+
);
|
|
274
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import * as components from "../components/index.js";
|
|
@@ -31,6 +32,14 @@ export type RemoveLoyaltyPointsResponseBody = {
|
|
|
31
32
|
content: RemoveLoyaltyPointsContent;
|
|
32
33
|
};
|
|
33
34
|
|
|
35
|
+
export type RemoveLoyaltyPointsResponse = {
|
|
36
|
+
httpMeta: components.HTTPMetadata;
|
|
37
|
+
/**
|
|
38
|
+
* OK
|
|
39
|
+
*/
|
|
40
|
+
object?: RemoveLoyaltyPointsResponseBody | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
34
43
|
/** @internal */
|
|
35
44
|
export const RemoveLoyaltyPointsRequest$inboundSchema: z.ZodType<
|
|
36
45
|
RemoveLoyaltyPointsRequest,
|
|
@@ -200,3 +209,72 @@ export function removeLoyaltyPointsResponseBodyFromJSON(
|
|
|
200
209
|
`Failed to parse 'RemoveLoyaltyPointsResponseBody' from JSON`,
|
|
201
210
|
);
|
|
202
211
|
}
|
|
212
|
+
|
|
213
|
+
/** @internal */
|
|
214
|
+
export const RemoveLoyaltyPointsResponse$inboundSchema: z.ZodType<
|
|
215
|
+
RemoveLoyaltyPointsResponse,
|
|
216
|
+
z.ZodTypeDef,
|
|
217
|
+
unknown
|
|
218
|
+
> = z.object({
|
|
219
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
220
|
+
object: z.lazy(() => RemoveLoyaltyPointsResponseBody$inboundSchema)
|
|
221
|
+
.optional(),
|
|
222
|
+
}).transform((v) => {
|
|
223
|
+
return remap$(v, {
|
|
224
|
+
"HttpMeta": "httpMeta",
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
/** @internal */
|
|
229
|
+
export type RemoveLoyaltyPointsResponse$Outbound = {
|
|
230
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
231
|
+
object?: RemoveLoyaltyPointsResponseBody$Outbound | undefined;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
/** @internal */
|
|
235
|
+
export const RemoveLoyaltyPointsResponse$outboundSchema: z.ZodType<
|
|
236
|
+
RemoveLoyaltyPointsResponse$Outbound,
|
|
237
|
+
z.ZodTypeDef,
|
|
238
|
+
RemoveLoyaltyPointsResponse
|
|
239
|
+
> = z.object({
|
|
240
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
241
|
+
object: z.lazy(() => RemoveLoyaltyPointsResponseBody$outboundSchema)
|
|
242
|
+
.optional(),
|
|
243
|
+
}).transform((v) => {
|
|
244
|
+
return remap$(v, {
|
|
245
|
+
httpMeta: "HttpMeta",
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* @internal
|
|
251
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
252
|
+
*/
|
|
253
|
+
export namespace RemoveLoyaltyPointsResponse$ {
|
|
254
|
+
/** @deprecated use `RemoveLoyaltyPointsResponse$inboundSchema` instead. */
|
|
255
|
+
export const inboundSchema = RemoveLoyaltyPointsResponse$inboundSchema;
|
|
256
|
+
/** @deprecated use `RemoveLoyaltyPointsResponse$outboundSchema` instead. */
|
|
257
|
+
export const outboundSchema = RemoveLoyaltyPointsResponse$outboundSchema;
|
|
258
|
+
/** @deprecated use `RemoveLoyaltyPointsResponse$Outbound` instead. */
|
|
259
|
+
export type Outbound = RemoveLoyaltyPointsResponse$Outbound;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export function removeLoyaltyPointsResponseToJSON(
|
|
263
|
+
removeLoyaltyPointsResponse: RemoveLoyaltyPointsResponse,
|
|
264
|
+
): string {
|
|
265
|
+
return JSON.stringify(
|
|
266
|
+
RemoveLoyaltyPointsResponse$outboundSchema.parse(
|
|
267
|
+
removeLoyaltyPointsResponse,
|
|
268
|
+
),
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export function removeLoyaltyPointsResponseFromJSON(
|
|
273
|
+
jsonString: string,
|
|
274
|
+
): SafeParseResult<RemoveLoyaltyPointsResponse, SDKValidationError> {
|
|
275
|
+
return safeParse(
|
|
276
|
+
jsonString,
|
|
277
|
+
(x) => RemoveLoyaltyPointsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
278
|
+
`Failed to parse 'RemoveLoyaltyPointsResponse' from JSON`,
|
|
279
|
+
);
|
|
280
|
+
}
|
|
@@ -44,6 +44,14 @@ export type RetryOrderPaymentResponseBody = {
|
|
|
44
44
|
content: RetryOrderPaymentContent;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
+
export type RetryOrderPaymentResponse = {
|
|
48
|
+
httpMeta: components.HTTPMetadata;
|
|
49
|
+
/**
|
|
50
|
+
* OK
|
|
51
|
+
*/
|
|
52
|
+
object?: RetryOrderPaymentResponseBody | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
47
55
|
/** @internal */
|
|
48
56
|
export const RetryOrderPaymentPaymentGatewayParams$inboundSchema: z.ZodType<
|
|
49
57
|
RetryOrderPaymentPaymentGatewayParams,
|
|
@@ -471,3 +479,68 @@ export function retryOrderPaymentResponseBodyFromJSON(
|
|
|
471
479
|
`Failed to parse 'RetryOrderPaymentResponseBody' from JSON`,
|
|
472
480
|
);
|
|
473
481
|
}
|
|
482
|
+
|
|
483
|
+
/** @internal */
|
|
484
|
+
export const RetryOrderPaymentResponse$inboundSchema: z.ZodType<
|
|
485
|
+
RetryOrderPaymentResponse,
|
|
486
|
+
z.ZodTypeDef,
|
|
487
|
+
unknown
|
|
488
|
+
> = z.object({
|
|
489
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
490
|
+
object: z.lazy(() => RetryOrderPaymentResponseBody$inboundSchema).optional(),
|
|
491
|
+
}).transform((v) => {
|
|
492
|
+
return remap$(v, {
|
|
493
|
+
"HttpMeta": "httpMeta",
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
|
|
497
|
+
/** @internal */
|
|
498
|
+
export type RetryOrderPaymentResponse$Outbound = {
|
|
499
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
500
|
+
object?: RetryOrderPaymentResponseBody$Outbound | undefined;
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
/** @internal */
|
|
504
|
+
export const RetryOrderPaymentResponse$outboundSchema: z.ZodType<
|
|
505
|
+
RetryOrderPaymentResponse$Outbound,
|
|
506
|
+
z.ZodTypeDef,
|
|
507
|
+
RetryOrderPaymentResponse
|
|
508
|
+
> = z.object({
|
|
509
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
510
|
+
object: z.lazy(() => RetryOrderPaymentResponseBody$outboundSchema).optional(),
|
|
511
|
+
}).transform((v) => {
|
|
512
|
+
return remap$(v, {
|
|
513
|
+
httpMeta: "HttpMeta",
|
|
514
|
+
});
|
|
515
|
+
});
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* @internal
|
|
519
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
520
|
+
*/
|
|
521
|
+
export namespace RetryOrderPaymentResponse$ {
|
|
522
|
+
/** @deprecated use `RetryOrderPaymentResponse$inboundSchema` instead. */
|
|
523
|
+
export const inboundSchema = RetryOrderPaymentResponse$inboundSchema;
|
|
524
|
+
/** @deprecated use `RetryOrderPaymentResponse$outboundSchema` instead. */
|
|
525
|
+
export const outboundSchema = RetryOrderPaymentResponse$outboundSchema;
|
|
526
|
+
/** @deprecated use `RetryOrderPaymentResponse$Outbound` instead. */
|
|
527
|
+
export type Outbound = RetryOrderPaymentResponse$Outbound;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
export function retryOrderPaymentResponseToJSON(
|
|
531
|
+
retryOrderPaymentResponse: RetryOrderPaymentResponse,
|
|
532
|
+
): string {
|
|
533
|
+
return JSON.stringify(
|
|
534
|
+
RetryOrderPaymentResponse$outboundSchema.parse(retryOrderPaymentResponse),
|
|
535
|
+
);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export function retryOrderPaymentResponseFromJSON(
|
|
539
|
+
jsonString: string,
|
|
540
|
+
): SafeParseResult<RetryOrderPaymentResponse, SDKValidationError> {
|
|
541
|
+
return safeParse(
|
|
542
|
+
jsonString,
|
|
543
|
+
(x) => RetryOrderPaymentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
544
|
+
`Failed to parse 'RetryOrderPaymentResponse' from JSON`,
|
|
545
|
+
);
|
|
546
|
+
}
|
|
@@ -33,6 +33,14 @@ export type SearchProductsResponseBody = {
|
|
|
33
33
|
content: SearchProductsContent;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
export type SearchProductsResponse = {
|
|
37
|
+
httpMeta: components.HTTPMetadata;
|
|
38
|
+
/**
|
|
39
|
+
* Success response
|
|
40
|
+
*/
|
|
41
|
+
object?: SearchProductsResponseBody | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
36
44
|
/** @internal */
|
|
37
45
|
export const FacetStats$inboundSchema: z.ZodType<
|
|
38
46
|
FacetStats,
|
|
@@ -218,3 +226,68 @@ export function searchProductsResponseBodyFromJSON(
|
|
|
218
226
|
`Failed to parse 'SearchProductsResponseBody' from JSON`,
|
|
219
227
|
);
|
|
220
228
|
}
|
|
229
|
+
|
|
230
|
+
/** @internal */
|
|
231
|
+
export const SearchProductsResponse$inboundSchema: z.ZodType<
|
|
232
|
+
SearchProductsResponse,
|
|
233
|
+
z.ZodTypeDef,
|
|
234
|
+
unknown
|
|
235
|
+
> = z.object({
|
|
236
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
237
|
+
object: z.lazy(() => SearchProductsResponseBody$inboundSchema).optional(),
|
|
238
|
+
}).transform((v) => {
|
|
239
|
+
return remap$(v, {
|
|
240
|
+
"HttpMeta": "httpMeta",
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
/** @internal */
|
|
245
|
+
export type SearchProductsResponse$Outbound = {
|
|
246
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
247
|
+
object?: SearchProductsResponseBody$Outbound | undefined;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
/** @internal */
|
|
251
|
+
export const SearchProductsResponse$outboundSchema: z.ZodType<
|
|
252
|
+
SearchProductsResponse$Outbound,
|
|
253
|
+
z.ZodTypeDef,
|
|
254
|
+
SearchProductsResponse
|
|
255
|
+
> = z.object({
|
|
256
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
257
|
+
object: z.lazy(() => SearchProductsResponseBody$outboundSchema).optional(),
|
|
258
|
+
}).transform((v) => {
|
|
259
|
+
return remap$(v, {
|
|
260
|
+
httpMeta: "HttpMeta",
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* @internal
|
|
266
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
267
|
+
*/
|
|
268
|
+
export namespace SearchProductsResponse$ {
|
|
269
|
+
/** @deprecated use `SearchProductsResponse$inboundSchema` instead. */
|
|
270
|
+
export const inboundSchema = SearchProductsResponse$inboundSchema;
|
|
271
|
+
/** @deprecated use `SearchProductsResponse$outboundSchema` instead. */
|
|
272
|
+
export const outboundSchema = SearchProductsResponse$outboundSchema;
|
|
273
|
+
/** @deprecated use `SearchProductsResponse$Outbound` instead. */
|
|
274
|
+
export type Outbound = SearchProductsResponse$Outbound;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export function searchProductsResponseToJSON(
|
|
278
|
+
searchProductsResponse: SearchProductsResponse,
|
|
279
|
+
): string {
|
|
280
|
+
return JSON.stringify(
|
|
281
|
+
SearchProductsResponse$outboundSchema.parse(searchProductsResponse),
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export function searchProductsResponseFromJSON(
|
|
286
|
+
jsonString: string,
|
|
287
|
+
): SafeParseResult<SearchProductsResponse, SDKValidationError> {
|
|
288
|
+
return safeParse(
|
|
289
|
+
jsonString,
|
|
290
|
+
(x) => SearchProductsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
291
|
+
`Failed to parse 'SearchProductsResponse' from JSON`,
|
|
292
|
+
);
|
|
293
|
+
}
|
|
@@ -23,6 +23,14 @@ export type ShippingMethodsResponseBody = {
|
|
|
23
23
|
content: components.PincodeServiceability;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
+
export type ShippingMethodsResponse = {
|
|
27
|
+
httpMeta: components.HTTPMetadata;
|
|
28
|
+
/**
|
|
29
|
+
* OK
|
|
30
|
+
*/
|
|
31
|
+
object?: ShippingMethodsResponseBody | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
26
34
|
/** @internal */
|
|
27
35
|
export const ShippingMethodsRequestBody$inboundSchema: z.ZodType<
|
|
28
36
|
ShippingMethodsRequestBody,
|
|
@@ -151,3 +159,68 @@ export function shippingMethodsResponseBodyFromJSON(
|
|
|
151
159
|
`Failed to parse 'ShippingMethodsResponseBody' from JSON`,
|
|
152
160
|
);
|
|
153
161
|
}
|
|
162
|
+
|
|
163
|
+
/** @internal */
|
|
164
|
+
export const ShippingMethodsResponse$inboundSchema: z.ZodType<
|
|
165
|
+
ShippingMethodsResponse,
|
|
166
|
+
z.ZodTypeDef,
|
|
167
|
+
unknown
|
|
168
|
+
> = z.object({
|
|
169
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
170
|
+
object: z.lazy(() => ShippingMethodsResponseBody$inboundSchema).optional(),
|
|
171
|
+
}).transform((v) => {
|
|
172
|
+
return remap$(v, {
|
|
173
|
+
"HttpMeta": "httpMeta",
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
/** @internal */
|
|
178
|
+
export type ShippingMethodsResponse$Outbound = {
|
|
179
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
180
|
+
object?: ShippingMethodsResponseBody$Outbound | undefined;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
/** @internal */
|
|
184
|
+
export const ShippingMethodsResponse$outboundSchema: z.ZodType<
|
|
185
|
+
ShippingMethodsResponse$Outbound,
|
|
186
|
+
z.ZodTypeDef,
|
|
187
|
+
ShippingMethodsResponse
|
|
188
|
+
> = z.object({
|
|
189
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
190
|
+
object: z.lazy(() => ShippingMethodsResponseBody$outboundSchema).optional(),
|
|
191
|
+
}).transform((v) => {
|
|
192
|
+
return remap$(v, {
|
|
193
|
+
httpMeta: "HttpMeta",
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @internal
|
|
199
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
200
|
+
*/
|
|
201
|
+
export namespace ShippingMethodsResponse$ {
|
|
202
|
+
/** @deprecated use `ShippingMethodsResponse$inboundSchema` instead. */
|
|
203
|
+
export const inboundSchema = ShippingMethodsResponse$inboundSchema;
|
|
204
|
+
/** @deprecated use `ShippingMethodsResponse$outboundSchema` instead. */
|
|
205
|
+
export const outboundSchema = ShippingMethodsResponse$outboundSchema;
|
|
206
|
+
/** @deprecated use `ShippingMethodsResponse$Outbound` instead. */
|
|
207
|
+
export type Outbound = ShippingMethodsResponse$Outbound;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export function shippingMethodsResponseToJSON(
|
|
211
|
+
shippingMethodsResponse: ShippingMethodsResponse,
|
|
212
|
+
): string {
|
|
213
|
+
return JSON.stringify(
|
|
214
|
+
ShippingMethodsResponse$outboundSchema.parse(shippingMethodsResponse),
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export function shippingMethodsResponseFromJSON(
|
|
219
|
+
jsonString: string,
|
|
220
|
+
): SafeParseResult<ShippingMethodsResponse, SDKValidationError> {
|
|
221
|
+
return safeParse(
|
|
222
|
+
jsonString,
|
|
223
|
+
(x) => ShippingMethodsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
224
|
+
`Failed to parse 'ShippingMethodsResponse' from JSON`,
|
|
225
|
+
);
|
|
226
|
+
}
|
|
@@ -77,6 +77,14 @@ export type UpdateAddressDetailResponseBody = {
|
|
|
77
77
|
content?: UpdateAddressDetailContent | undefined;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
+
export type UpdateAddressDetailResponse = {
|
|
81
|
+
httpMeta: components.HTTPMetadata;
|
|
82
|
+
/**
|
|
83
|
+
* OK
|
|
84
|
+
*/
|
|
85
|
+
object?: UpdateAddressDetailResponseBody | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
80
88
|
/** @internal */
|
|
81
89
|
export const UpdateAddressDetailRequestBody$inboundSchema: z.ZodType<
|
|
82
90
|
UpdateAddressDetailRequestBody,
|
|
@@ -396,3 +404,72 @@ export function updateAddressDetailResponseBodyFromJSON(
|
|
|
396
404
|
`Failed to parse 'UpdateAddressDetailResponseBody' from JSON`,
|
|
397
405
|
);
|
|
398
406
|
}
|
|
407
|
+
|
|
408
|
+
/** @internal */
|
|
409
|
+
export const UpdateAddressDetailResponse$inboundSchema: z.ZodType<
|
|
410
|
+
UpdateAddressDetailResponse,
|
|
411
|
+
z.ZodTypeDef,
|
|
412
|
+
unknown
|
|
413
|
+
> = z.object({
|
|
414
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
415
|
+
object: z.lazy(() => UpdateAddressDetailResponseBody$inboundSchema)
|
|
416
|
+
.optional(),
|
|
417
|
+
}).transform((v) => {
|
|
418
|
+
return remap$(v, {
|
|
419
|
+
"HttpMeta": "httpMeta",
|
|
420
|
+
});
|
|
421
|
+
});
|
|
422
|
+
|
|
423
|
+
/** @internal */
|
|
424
|
+
export type UpdateAddressDetailResponse$Outbound = {
|
|
425
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
426
|
+
object?: UpdateAddressDetailResponseBody$Outbound | undefined;
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
/** @internal */
|
|
430
|
+
export const UpdateAddressDetailResponse$outboundSchema: z.ZodType<
|
|
431
|
+
UpdateAddressDetailResponse$Outbound,
|
|
432
|
+
z.ZodTypeDef,
|
|
433
|
+
UpdateAddressDetailResponse
|
|
434
|
+
> = z.object({
|
|
435
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
436
|
+
object: z.lazy(() => UpdateAddressDetailResponseBody$outboundSchema)
|
|
437
|
+
.optional(),
|
|
438
|
+
}).transform((v) => {
|
|
439
|
+
return remap$(v, {
|
|
440
|
+
httpMeta: "HttpMeta",
|
|
441
|
+
});
|
|
442
|
+
});
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* @internal
|
|
446
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
447
|
+
*/
|
|
448
|
+
export namespace UpdateAddressDetailResponse$ {
|
|
449
|
+
/** @deprecated use `UpdateAddressDetailResponse$inboundSchema` instead. */
|
|
450
|
+
export const inboundSchema = UpdateAddressDetailResponse$inboundSchema;
|
|
451
|
+
/** @deprecated use `UpdateAddressDetailResponse$outboundSchema` instead. */
|
|
452
|
+
export const outboundSchema = UpdateAddressDetailResponse$outboundSchema;
|
|
453
|
+
/** @deprecated use `UpdateAddressDetailResponse$Outbound` instead. */
|
|
454
|
+
export type Outbound = UpdateAddressDetailResponse$Outbound;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export function updateAddressDetailResponseToJSON(
|
|
458
|
+
updateAddressDetailResponse: UpdateAddressDetailResponse,
|
|
459
|
+
): string {
|
|
460
|
+
return JSON.stringify(
|
|
461
|
+
UpdateAddressDetailResponse$outboundSchema.parse(
|
|
462
|
+
updateAddressDetailResponse,
|
|
463
|
+
),
|
|
464
|
+
);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export function updateAddressDetailResponseFromJSON(
|
|
468
|
+
jsonString: string,
|
|
469
|
+
): SafeParseResult<UpdateAddressDetailResponse, SDKValidationError> {
|
|
470
|
+
return safeParse(
|
|
471
|
+
jsonString,
|
|
472
|
+
(x) => UpdateAddressDetailResponse$inboundSchema.parse(JSON.parse(x)),
|
|
473
|
+
`Failed to parse 'UpdateAddressDetailResponse' from JSON`,
|
|
474
|
+
);
|
|
475
|
+
}
|
|
@@ -33,6 +33,14 @@ export type UpdateCartResponseBody = {
|
|
|
33
33
|
content: UpdateCartContent;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
export type UpdateCartResponse = {
|
|
37
|
+
httpMeta: components.HTTPMetadata;
|
|
38
|
+
/**
|
|
39
|
+
* OK
|
|
40
|
+
*/
|
|
41
|
+
object?: UpdateCartResponseBody | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
36
44
|
/** @internal */
|
|
37
45
|
export const UpdateCartRequest$inboundSchema: z.ZodType<
|
|
38
46
|
UpdateCartRequest,
|
|
@@ -211,3 +219,68 @@ export function updateCartResponseBodyFromJSON(
|
|
|
211
219
|
`Failed to parse 'UpdateCartResponseBody' from JSON`,
|
|
212
220
|
);
|
|
213
221
|
}
|
|
222
|
+
|
|
223
|
+
/** @internal */
|
|
224
|
+
export const UpdateCartResponse$inboundSchema: z.ZodType<
|
|
225
|
+
UpdateCartResponse,
|
|
226
|
+
z.ZodTypeDef,
|
|
227
|
+
unknown
|
|
228
|
+
> = z.object({
|
|
229
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
230
|
+
object: z.lazy(() => UpdateCartResponseBody$inboundSchema).optional(),
|
|
231
|
+
}).transform((v) => {
|
|
232
|
+
return remap$(v, {
|
|
233
|
+
"HttpMeta": "httpMeta",
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
/** @internal */
|
|
238
|
+
export type UpdateCartResponse$Outbound = {
|
|
239
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
240
|
+
object?: UpdateCartResponseBody$Outbound | undefined;
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
/** @internal */
|
|
244
|
+
export const UpdateCartResponse$outboundSchema: z.ZodType<
|
|
245
|
+
UpdateCartResponse$Outbound,
|
|
246
|
+
z.ZodTypeDef,
|
|
247
|
+
UpdateCartResponse
|
|
248
|
+
> = z.object({
|
|
249
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
250
|
+
object: z.lazy(() => UpdateCartResponseBody$outboundSchema).optional(),
|
|
251
|
+
}).transform((v) => {
|
|
252
|
+
return remap$(v, {
|
|
253
|
+
httpMeta: "HttpMeta",
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @internal
|
|
259
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
260
|
+
*/
|
|
261
|
+
export namespace UpdateCartResponse$ {
|
|
262
|
+
/** @deprecated use `UpdateCartResponse$inboundSchema` instead. */
|
|
263
|
+
export const inboundSchema = UpdateCartResponse$inboundSchema;
|
|
264
|
+
/** @deprecated use `UpdateCartResponse$outboundSchema` instead. */
|
|
265
|
+
export const outboundSchema = UpdateCartResponse$outboundSchema;
|
|
266
|
+
/** @deprecated use `UpdateCartResponse$Outbound` instead. */
|
|
267
|
+
export type Outbound = UpdateCartResponse$Outbound;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export function updateCartResponseToJSON(
|
|
271
|
+
updateCartResponse: UpdateCartResponse,
|
|
272
|
+
): string {
|
|
273
|
+
return JSON.stringify(
|
|
274
|
+
UpdateCartResponse$outboundSchema.parse(updateCartResponse),
|
|
275
|
+
);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export function updateCartResponseFromJSON(
|
|
279
|
+
jsonString: string,
|
|
280
|
+
): SafeParseResult<UpdateCartResponse, SDKValidationError> {
|
|
281
|
+
return safeParse(
|
|
282
|
+
jsonString,
|
|
283
|
+
(x) => UpdateCartResponse$inboundSchema.parse(JSON.parse(x)),
|
|
284
|
+
`Failed to parse 'UpdateCartResponse' from JSON`,
|
|
285
|
+
);
|
|
286
|
+
}
|