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
|
@@ -53,6 +53,14 @@ export type ListSkusResponseBody = {
|
|
|
53
53
|
content: ListSkusContent;
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
+
export type ListSkusResponse = {
|
|
57
|
+
httpMeta: components.HTTPMetadata;
|
|
58
|
+
/**
|
|
59
|
+
* Success response
|
|
60
|
+
*/
|
|
61
|
+
object?: ListSkusResponseBody | undefined;
|
|
62
|
+
};
|
|
63
|
+
|
|
56
64
|
/** @internal */
|
|
57
65
|
export const ListSkusRequest$inboundSchema: z.ZodType<
|
|
58
66
|
ListSkusRequest,
|
|
@@ -246,3 +254,68 @@ export function listSkusResponseBodyFromJSON(
|
|
|
246
254
|
`Failed to parse 'ListSkusResponseBody' from JSON`,
|
|
247
255
|
);
|
|
248
256
|
}
|
|
257
|
+
|
|
258
|
+
/** @internal */
|
|
259
|
+
export const ListSkusResponse$inboundSchema: z.ZodType<
|
|
260
|
+
ListSkusResponse,
|
|
261
|
+
z.ZodTypeDef,
|
|
262
|
+
unknown
|
|
263
|
+
> = z.object({
|
|
264
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
265
|
+
object: z.lazy(() => ListSkusResponseBody$inboundSchema).optional(),
|
|
266
|
+
}).transform((v) => {
|
|
267
|
+
return remap$(v, {
|
|
268
|
+
"HttpMeta": "httpMeta",
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
/** @internal */
|
|
273
|
+
export type ListSkusResponse$Outbound = {
|
|
274
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
275
|
+
object?: ListSkusResponseBody$Outbound | undefined;
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
/** @internal */
|
|
279
|
+
export const ListSkusResponse$outboundSchema: z.ZodType<
|
|
280
|
+
ListSkusResponse$Outbound,
|
|
281
|
+
z.ZodTypeDef,
|
|
282
|
+
ListSkusResponse
|
|
283
|
+
> = z.object({
|
|
284
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
285
|
+
object: z.lazy(() => ListSkusResponseBody$outboundSchema).optional(),
|
|
286
|
+
}).transform((v) => {
|
|
287
|
+
return remap$(v, {
|
|
288
|
+
httpMeta: "HttpMeta",
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* @internal
|
|
294
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
295
|
+
*/
|
|
296
|
+
export namespace ListSkusResponse$ {
|
|
297
|
+
/** @deprecated use `ListSkusResponse$inboundSchema` instead. */
|
|
298
|
+
export const inboundSchema = ListSkusResponse$inboundSchema;
|
|
299
|
+
/** @deprecated use `ListSkusResponse$outboundSchema` instead. */
|
|
300
|
+
export const outboundSchema = ListSkusResponse$outboundSchema;
|
|
301
|
+
/** @deprecated use `ListSkusResponse$Outbound` instead. */
|
|
302
|
+
export type Outbound = ListSkusResponse$Outbound;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export function listSkusResponseToJSON(
|
|
306
|
+
listSkusResponse: ListSkusResponse,
|
|
307
|
+
): string {
|
|
308
|
+
return JSON.stringify(
|
|
309
|
+
ListSkusResponse$outboundSchema.parse(listSkusResponse),
|
|
310
|
+
);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export function listSkusResponseFromJSON(
|
|
314
|
+
jsonString: string,
|
|
315
|
+
): SafeParseResult<ListSkusResponse, SDKValidationError> {
|
|
316
|
+
return safeParse(
|
|
317
|
+
jsonString,
|
|
318
|
+
(x) => ListSkusResponse$inboundSchema.parse(JSON.parse(x)),
|
|
319
|
+
`Failed to parse 'ListSkusResponse' from JSON`,
|
|
320
|
+
);
|
|
321
|
+
}
|
|
@@ -48,6 +48,14 @@ export type ListUpsellProductsResponseBody = {
|
|
|
48
48
|
content: ListUpsellProductsContent;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
+
export type ListUpsellProductsResponse = {
|
|
52
|
+
httpMeta: components.HTTPMetadata;
|
|
53
|
+
/**
|
|
54
|
+
* Success response
|
|
55
|
+
*/
|
|
56
|
+
object?: ListUpsellProductsResponseBody | undefined;
|
|
57
|
+
};
|
|
58
|
+
|
|
51
59
|
/** @internal */
|
|
52
60
|
export const ListUpsellProductsRequest$inboundSchema: z.ZodType<
|
|
53
61
|
ListUpsellProductsRequest,
|
|
@@ -239,3 +247,69 @@ export function listUpsellProductsResponseBodyFromJSON(
|
|
|
239
247
|
`Failed to parse 'ListUpsellProductsResponseBody' from JSON`,
|
|
240
248
|
);
|
|
241
249
|
}
|
|
250
|
+
|
|
251
|
+
/** @internal */
|
|
252
|
+
export const ListUpsellProductsResponse$inboundSchema: z.ZodType<
|
|
253
|
+
ListUpsellProductsResponse,
|
|
254
|
+
z.ZodTypeDef,
|
|
255
|
+
unknown
|
|
256
|
+
> = z.object({
|
|
257
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
258
|
+
object: z.lazy(() => ListUpsellProductsResponseBody$inboundSchema).optional(),
|
|
259
|
+
}).transform((v) => {
|
|
260
|
+
return remap$(v, {
|
|
261
|
+
"HttpMeta": "httpMeta",
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
/** @internal */
|
|
266
|
+
export type ListUpsellProductsResponse$Outbound = {
|
|
267
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
268
|
+
object?: ListUpsellProductsResponseBody$Outbound | undefined;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
/** @internal */
|
|
272
|
+
export const ListUpsellProductsResponse$outboundSchema: z.ZodType<
|
|
273
|
+
ListUpsellProductsResponse$Outbound,
|
|
274
|
+
z.ZodTypeDef,
|
|
275
|
+
ListUpsellProductsResponse
|
|
276
|
+
> = z.object({
|
|
277
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
278
|
+
object: z.lazy(() => ListUpsellProductsResponseBody$outboundSchema)
|
|
279
|
+
.optional(),
|
|
280
|
+
}).transform((v) => {
|
|
281
|
+
return remap$(v, {
|
|
282
|
+
httpMeta: "HttpMeta",
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @internal
|
|
288
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
289
|
+
*/
|
|
290
|
+
export namespace ListUpsellProductsResponse$ {
|
|
291
|
+
/** @deprecated use `ListUpsellProductsResponse$inboundSchema` instead. */
|
|
292
|
+
export const inboundSchema = ListUpsellProductsResponse$inboundSchema;
|
|
293
|
+
/** @deprecated use `ListUpsellProductsResponse$outboundSchema` instead. */
|
|
294
|
+
export const outboundSchema = ListUpsellProductsResponse$outboundSchema;
|
|
295
|
+
/** @deprecated use `ListUpsellProductsResponse$Outbound` instead. */
|
|
296
|
+
export type Outbound = ListUpsellProductsResponse$Outbound;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export function listUpsellProductsResponseToJSON(
|
|
300
|
+
listUpsellProductsResponse: ListUpsellProductsResponse,
|
|
301
|
+
): string {
|
|
302
|
+
return JSON.stringify(
|
|
303
|
+
ListUpsellProductsResponse$outboundSchema.parse(listUpsellProductsResponse),
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export function listUpsellProductsResponseFromJSON(
|
|
308
|
+
jsonString: string,
|
|
309
|
+
): SafeParseResult<ListUpsellProductsResponse, SDKValidationError> {
|
|
310
|
+
return safeParse(
|
|
311
|
+
jsonString,
|
|
312
|
+
(x) => ListUpsellProductsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
313
|
+
`Failed to parse 'ListUpsellProductsResponse' from JSON`,
|
|
314
|
+
);
|
|
315
|
+
}
|
|
@@ -30,6 +30,14 @@ export type ListUserReviewsResponseBody = {
|
|
|
30
30
|
content?: ListUserReviewsContent | undefined;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
export type ListUserReviewsResponse = {
|
|
34
|
+
httpMeta: components.HTTPMetadata;
|
|
35
|
+
/**
|
|
36
|
+
* OK
|
|
37
|
+
*/
|
|
38
|
+
object?: ListUserReviewsResponseBody | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
33
41
|
/** @internal */
|
|
34
42
|
export const ListUserReviewsRequest$inboundSchema: z.ZodType<
|
|
35
43
|
ListUserReviewsRequest,
|
|
@@ -222,3 +230,68 @@ export function listUserReviewsResponseBodyFromJSON(
|
|
|
222
230
|
`Failed to parse 'ListUserReviewsResponseBody' from JSON`,
|
|
223
231
|
);
|
|
224
232
|
}
|
|
233
|
+
|
|
234
|
+
/** @internal */
|
|
235
|
+
export const ListUserReviewsResponse$inboundSchema: z.ZodType<
|
|
236
|
+
ListUserReviewsResponse,
|
|
237
|
+
z.ZodTypeDef,
|
|
238
|
+
unknown
|
|
239
|
+
> = z.object({
|
|
240
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
241
|
+
object: z.lazy(() => ListUserReviewsResponseBody$inboundSchema).optional(),
|
|
242
|
+
}).transform((v) => {
|
|
243
|
+
return remap$(v, {
|
|
244
|
+
"HttpMeta": "httpMeta",
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
/** @internal */
|
|
249
|
+
export type ListUserReviewsResponse$Outbound = {
|
|
250
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
251
|
+
object?: ListUserReviewsResponseBody$Outbound | undefined;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
/** @internal */
|
|
255
|
+
export const ListUserReviewsResponse$outboundSchema: z.ZodType<
|
|
256
|
+
ListUserReviewsResponse$Outbound,
|
|
257
|
+
z.ZodTypeDef,
|
|
258
|
+
ListUserReviewsResponse
|
|
259
|
+
> = z.object({
|
|
260
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
261
|
+
object: z.lazy(() => ListUserReviewsResponseBody$outboundSchema).optional(),
|
|
262
|
+
}).transform((v) => {
|
|
263
|
+
return remap$(v, {
|
|
264
|
+
httpMeta: "HttpMeta",
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @internal
|
|
270
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
271
|
+
*/
|
|
272
|
+
export namespace ListUserReviewsResponse$ {
|
|
273
|
+
/** @deprecated use `ListUserReviewsResponse$inboundSchema` instead. */
|
|
274
|
+
export const inboundSchema = ListUserReviewsResponse$inboundSchema;
|
|
275
|
+
/** @deprecated use `ListUserReviewsResponse$outboundSchema` instead. */
|
|
276
|
+
export const outboundSchema = ListUserReviewsResponse$outboundSchema;
|
|
277
|
+
/** @deprecated use `ListUserReviewsResponse$Outbound` instead. */
|
|
278
|
+
export type Outbound = ListUserReviewsResponse$Outbound;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export function listUserReviewsResponseToJSON(
|
|
282
|
+
listUserReviewsResponse: ListUserReviewsResponse,
|
|
283
|
+
): string {
|
|
284
|
+
return JSON.stringify(
|
|
285
|
+
ListUserReviewsResponse$outboundSchema.parse(listUserReviewsResponse),
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export function listUserReviewsResponseFromJSON(
|
|
290
|
+
jsonString: string,
|
|
291
|
+
): SafeParseResult<ListUserReviewsResponse, SDKValidationError> {
|
|
292
|
+
return safeParse(
|
|
293
|
+
jsonString,
|
|
294
|
+
(x) => ListUserReviewsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
295
|
+
`Failed to parse 'ListUserReviewsResponse' from JSON`,
|
|
296
|
+
);
|
|
297
|
+
}
|
|
@@ -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 LoginWithEmailRequestBody = {
|
|
@@ -55,6 +56,14 @@ export type LoginWithEmailResponseBody = {
|
|
|
55
56
|
content?: LoginWithEmailContent | undefined;
|
|
56
57
|
};
|
|
57
58
|
|
|
59
|
+
export type LoginWithEmailResponse = {
|
|
60
|
+
httpMeta: components.HTTPMetadata;
|
|
61
|
+
/**
|
|
62
|
+
* OK
|
|
63
|
+
*/
|
|
64
|
+
object?: LoginWithEmailResponseBody | undefined;
|
|
65
|
+
};
|
|
66
|
+
|
|
58
67
|
/** @internal */
|
|
59
68
|
export const LoginWithEmailRequestBody$inboundSchema: z.ZodType<
|
|
60
69
|
LoginWithEmailRequestBody,
|
|
@@ -246,3 +255,68 @@ export function loginWithEmailResponseBodyFromJSON(
|
|
|
246
255
|
`Failed to parse 'LoginWithEmailResponseBody' from JSON`,
|
|
247
256
|
);
|
|
248
257
|
}
|
|
258
|
+
|
|
259
|
+
/** @internal */
|
|
260
|
+
export const LoginWithEmailResponse$inboundSchema: z.ZodType<
|
|
261
|
+
LoginWithEmailResponse,
|
|
262
|
+
z.ZodTypeDef,
|
|
263
|
+
unknown
|
|
264
|
+
> = z.object({
|
|
265
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
266
|
+
object: z.lazy(() => LoginWithEmailResponseBody$inboundSchema).optional(),
|
|
267
|
+
}).transform((v) => {
|
|
268
|
+
return remap$(v, {
|
|
269
|
+
"HttpMeta": "httpMeta",
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
|
|
273
|
+
/** @internal */
|
|
274
|
+
export type LoginWithEmailResponse$Outbound = {
|
|
275
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
276
|
+
object?: LoginWithEmailResponseBody$Outbound | undefined;
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
/** @internal */
|
|
280
|
+
export const LoginWithEmailResponse$outboundSchema: z.ZodType<
|
|
281
|
+
LoginWithEmailResponse$Outbound,
|
|
282
|
+
z.ZodTypeDef,
|
|
283
|
+
LoginWithEmailResponse
|
|
284
|
+
> = z.object({
|
|
285
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
286
|
+
object: z.lazy(() => LoginWithEmailResponseBody$outboundSchema).optional(),
|
|
287
|
+
}).transform((v) => {
|
|
288
|
+
return remap$(v, {
|
|
289
|
+
httpMeta: "HttpMeta",
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* @internal
|
|
295
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
296
|
+
*/
|
|
297
|
+
export namespace LoginWithEmailResponse$ {
|
|
298
|
+
/** @deprecated use `LoginWithEmailResponse$inboundSchema` instead. */
|
|
299
|
+
export const inboundSchema = LoginWithEmailResponse$inboundSchema;
|
|
300
|
+
/** @deprecated use `LoginWithEmailResponse$outboundSchema` instead. */
|
|
301
|
+
export const outboundSchema = LoginWithEmailResponse$outboundSchema;
|
|
302
|
+
/** @deprecated use `LoginWithEmailResponse$Outbound` instead. */
|
|
303
|
+
export type Outbound = LoginWithEmailResponse$Outbound;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export function loginWithEmailResponseToJSON(
|
|
307
|
+
loginWithEmailResponse: LoginWithEmailResponse,
|
|
308
|
+
): string {
|
|
309
|
+
return JSON.stringify(
|
|
310
|
+
LoginWithEmailResponse$outboundSchema.parse(loginWithEmailResponse),
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export function loginWithEmailResponseFromJSON(
|
|
315
|
+
jsonString: string,
|
|
316
|
+
): SafeParseResult<LoginWithEmailResponse, SDKValidationError> {
|
|
317
|
+
return safeParse(
|
|
318
|
+
jsonString,
|
|
319
|
+
(x) => LoginWithEmailResponse$inboundSchema.parse(JSON.parse(x)),
|
|
320
|
+
`Failed to parse 'LoginWithEmailResponse' from JSON`,
|
|
321
|
+
);
|
|
322
|
+
}
|
|
@@ -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 LoginWithPhoneRequestBody = {
|
|
@@ -59,6 +60,14 @@ export type LoginWithPhoneResponseBody = {
|
|
|
59
60
|
content?: LoginWithPhoneContent | undefined;
|
|
60
61
|
};
|
|
61
62
|
|
|
63
|
+
export type LoginWithPhoneResponse = {
|
|
64
|
+
httpMeta: components.HTTPMetadata;
|
|
65
|
+
/**
|
|
66
|
+
* OK
|
|
67
|
+
*/
|
|
68
|
+
object?: LoginWithPhoneResponseBody | undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
62
71
|
/** @internal */
|
|
63
72
|
export const LoginWithPhoneRequestBody$inboundSchema: z.ZodType<
|
|
64
73
|
LoginWithPhoneRequestBody,
|
|
@@ -255,3 +264,68 @@ export function loginWithPhoneResponseBodyFromJSON(
|
|
|
255
264
|
`Failed to parse 'LoginWithPhoneResponseBody' from JSON`,
|
|
256
265
|
);
|
|
257
266
|
}
|
|
267
|
+
|
|
268
|
+
/** @internal */
|
|
269
|
+
export const LoginWithPhoneResponse$inboundSchema: z.ZodType<
|
|
270
|
+
LoginWithPhoneResponse,
|
|
271
|
+
z.ZodTypeDef,
|
|
272
|
+
unknown
|
|
273
|
+
> = z.object({
|
|
274
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
275
|
+
object: z.lazy(() => LoginWithPhoneResponseBody$inboundSchema).optional(),
|
|
276
|
+
}).transform((v) => {
|
|
277
|
+
return remap$(v, {
|
|
278
|
+
"HttpMeta": "httpMeta",
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
/** @internal */
|
|
283
|
+
export type LoginWithPhoneResponse$Outbound = {
|
|
284
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
285
|
+
object?: LoginWithPhoneResponseBody$Outbound | undefined;
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
/** @internal */
|
|
289
|
+
export const LoginWithPhoneResponse$outboundSchema: z.ZodType<
|
|
290
|
+
LoginWithPhoneResponse$Outbound,
|
|
291
|
+
z.ZodTypeDef,
|
|
292
|
+
LoginWithPhoneResponse
|
|
293
|
+
> = z.object({
|
|
294
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
295
|
+
object: z.lazy(() => LoginWithPhoneResponseBody$outboundSchema).optional(),
|
|
296
|
+
}).transform((v) => {
|
|
297
|
+
return remap$(v, {
|
|
298
|
+
httpMeta: "HttpMeta",
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @internal
|
|
304
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
305
|
+
*/
|
|
306
|
+
export namespace LoginWithPhoneResponse$ {
|
|
307
|
+
/** @deprecated use `LoginWithPhoneResponse$inboundSchema` instead. */
|
|
308
|
+
export const inboundSchema = LoginWithPhoneResponse$inboundSchema;
|
|
309
|
+
/** @deprecated use `LoginWithPhoneResponse$outboundSchema` instead. */
|
|
310
|
+
export const outboundSchema = LoginWithPhoneResponse$outboundSchema;
|
|
311
|
+
/** @deprecated use `LoginWithPhoneResponse$Outbound` instead. */
|
|
312
|
+
export type Outbound = LoginWithPhoneResponse$Outbound;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export function loginWithPhoneResponseToJSON(
|
|
316
|
+
loginWithPhoneResponse: LoginWithPhoneResponse,
|
|
317
|
+
): string {
|
|
318
|
+
return JSON.stringify(
|
|
319
|
+
LoginWithPhoneResponse$outboundSchema.parse(loginWithPhoneResponse),
|
|
320
|
+
);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export function loginWithPhoneResponseFromJSON(
|
|
324
|
+
jsonString: string,
|
|
325
|
+
): SafeParseResult<LoginWithPhoneResponse, SDKValidationError> {
|
|
326
|
+
return safeParse(
|
|
327
|
+
jsonString,
|
|
328
|
+
(x) => LoginWithPhoneResponse$inboundSchema.parse(JSON.parse(x)),
|
|
329
|
+
`Failed to parse 'LoginWithPhoneResponse' from JSON`,
|
|
330
|
+
);
|
|
331
|
+
}
|
|
@@ -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 LoginWithWhatsappRequestBody = {
|
|
@@ -59,6 +60,14 @@ export type LoginWithWhatsappResponseBody = {
|
|
|
59
60
|
content?: LoginWithWhatsappContent | undefined;
|
|
60
61
|
};
|
|
61
62
|
|
|
63
|
+
export type LoginWithWhatsappResponse = {
|
|
64
|
+
httpMeta: components.HTTPMetadata;
|
|
65
|
+
/**
|
|
66
|
+
* OK
|
|
67
|
+
*/
|
|
68
|
+
object?: LoginWithWhatsappResponseBody | undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
62
71
|
/** @internal */
|
|
63
72
|
export const LoginWithWhatsappRequestBody$inboundSchema: z.ZodType<
|
|
64
73
|
LoginWithWhatsappRequestBody,
|
|
@@ -259,3 +268,68 @@ export function loginWithWhatsappResponseBodyFromJSON(
|
|
|
259
268
|
`Failed to parse 'LoginWithWhatsappResponseBody' from JSON`,
|
|
260
269
|
);
|
|
261
270
|
}
|
|
271
|
+
|
|
272
|
+
/** @internal */
|
|
273
|
+
export const LoginWithWhatsappResponse$inboundSchema: z.ZodType<
|
|
274
|
+
LoginWithWhatsappResponse,
|
|
275
|
+
z.ZodTypeDef,
|
|
276
|
+
unknown
|
|
277
|
+
> = z.object({
|
|
278
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
279
|
+
object: z.lazy(() => LoginWithWhatsappResponseBody$inboundSchema).optional(),
|
|
280
|
+
}).transform((v) => {
|
|
281
|
+
return remap$(v, {
|
|
282
|
+
"HttpMeta": "httpMeta",
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
/** @internal */
|
|
287
|
+
export type LoginWithWhatsappResponse$Outbound = {
|
|
288
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
289
|
+
object?: LoginWithWhatsappResponseBody$Outbound | undefined;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
/** @internal */
|
|
293
|
+
export const LoginWithWhatsappResponse$outboundSchema: z.ZodType<
|
|
294
|
+
LoginWithWhatsappResponse$Outbound,
|
|
295
|
+
z.ZodTypeDef,
|
|
296
|
+
LoginWithWhatsappResponse
|
|
297
|
+
> = z.object({
|
|
298
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
299
|
+
object: z.lazy(() => LoginWithWhatsappResponseBody$outboundSchema).optional(),
|
|
300
|
+
}).transform((v) => {
|
|
301
|
+
return remap$(v, {
|
|
302
|
+
httpMeta: "HttpMeta",
|
|
303
|
+
});
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @internal
|
|
308
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
309
|
+
*/
|
|
310
|
+
export namespace LoginWithWhatsappResponse$ {
|
|
311
|
+
/** @deprecated use `LoginWithWhatsappResponse$inboundSchema` instead. */
|
|
312
|
+
export const inboundSchema = LoginWithWhatsappResponse$inboundSchema;
|
|
313
|
+
/** @deprecated use `LoginWithWhatsappResponse$outboundSchema` instead. */
|
|
314
|
+
export const outboundSchema = LoginWithWhatsappResponse$outboundSchema;
|
|
315
|
+
/** @deprecated use `LoginWithWhatsappResponse$Outbound` instead. */
|
|
316
|
+
export type Outbound = LoginWithWhatsappResponse$Outbound;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export function loginWithWhatsappResponseToJSON(
|
|
320
|
+
loginWithWhatsappResponse: LoginWithWhatsappResponse,
|
|
321
|
+
): string {
|
|
322
|
+
return JSON.stringify(
|
|
323
|
+
LoginWithWhatsappResponse$outboundSchema.parse(loginWithWhatsappResponse),
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export function loginWithWhatsappResponseFromJSON(
|
|
328
|
+
jsonString: string,
|
|
329
|
+
): SafeParseResult<LoginWithWhatsappResponse, SDKValidationError> {
|
|
330
|
+
return safeParse(
|
|
331
|
+
jsonString,
|
|
332
|
+
(x) => LoginWithWhatsappResponse$inboundSchema.parse(JSON.parse(x)),
|
|
333
|
+
`Failed to parse 'LoginWithWhatsappResponse' from JSON`,
|
|
334
|
+
);
|
|
335
|
+
}
|
|
@@ -42,6 +42,14 @@ export type LogoutResponseBody = {
|
|
|
42
42
|
content?: LogoutContent | undefined;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
+
export type LogoutResponse = {
|
|
46
|
+
httpMeta: components.HTTPMetadata;
|
|
47
|
+
/**
|
|
48
|
+
* OK
|
|
49
|
+
*/
|
|
50
|
+
object?: LogoutResponseBody | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
45
53
|
/** @internal */
|
|
46
54
|
export const LogoutContent$inboundSchema: z.ZodType<
|
|
47
55
|
LogoutContent,
|
|
@@ -167,3 +175,64 @@ export function logoutResponseBodyFromJSON(
|
|
|
167
175
|
`Failed to parse 'LogoutResponseBody' from JSON`,
|
|
168
176
|
);
|
|
169
177
|
}
|
|
178
|
+
|
|
179
|
+
/** @internal */
|
|
180
|
+
export const LogoutResponse$inboundSchema: z.ZodType<
|
|
181
|
+
LogoutResponse,
|
|
182
|
+
z.ZodTypeDef,
|
|
183
|
+
unknown
|
|
184
|
+
> = z.object({
|
|
185
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
186
|
+
object: z.lazy(() => LogoutResponseBody$inboundSchema).optional(),
|
|
187
|
+
}).transform((v) => {
|
|
188
|
+
return remap$(v, {
|
|
189
|
+
"HttpMeta": "httpMeta",
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
/** @internal */
|
|
194
|
+
export type LogoutResponse$Outbound = {
|
|
195
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
196
|
+
object?: LogoutResponseBody$Outbound | undefined;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/** @internal */
|
|
200
|
+
export const LogoutResponse$outboundSchema: z.ZodType<
|
|
201
|
+
LogoutResponse$Outbound,
|
|
202
|
+
z.ZodTypeDef,
|
|
203
|
+
LogoutResponse
|
|
204
|
+
> = z.object({
|
|
205
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
206
|
+
object: z.lazy(() => LogoutResponseBody$outboundSchema).optional(),
|
|
207
|
+
}).transform((v) => {
|
|
208
|
+
return remap$(v, {
|
|
209
|
+
httpMeta: "HttpMeta",
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @internal
|
|
215
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
216
|
+
*/
|
|
217
|
+
export namespace LogoutResponse$ {
|
|
218
|
+
/** @deprecated use `LogoutResponse$inboundSchema` instead. */
|
|
219
|
+
export const inboundSchema = LogoutResponse$inboundSchema;
|
|
220
|
+
/** @deprecated use `LogoutResponse$outboundSchema` instead. */
|
|
221
|
+
export const outboundSchema = LogoutResponse$outboundSchema;
|
|
222
|
+
/** @deprecated use `LogoutResponse$Outbound` instead. */
|
|
223
|
+
export type Outbound = LogoutResponse$Outbound;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export function logoutResponseToJSON(logoutResponse: LogoutResponse): string {
|
|
227
|
+
return JSON.stringify(LogoutResponse$outboundSchema.parse(logoutResponse));
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export function logoutResponseFromJSON(
|
|
231
|
+
jsonString: string,
|
|
232
|
+
): SafeParseResult<LogoutResponse, SDKValidationError> {
|
|
233
|
+
return safeParse(
|
|
234
|
+
jsonString,
|
|
235
|
+
(x) => LogoutResponse$inboundSchema.parse(JSON.parse(x)),
|
|
236
|
+
`Failed to parse 'LogoutResponse' from JSON`,
|
|
237
|
+
);
|
|
238
|
+
}
|
|
@@ -37,6 +37,14 @@ export type RedeemLoyaltyPointsResponseBody = {
|
|
|
37
37
|
content: RedeemLoyaltyPointsContent;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
+
export type RedeemLoyaltyPointsResponse = {
|
|
41
|
+
httpMeta: components.HTTPMetadata;
|
|
42
|
+
/**
|
|
43
|
+
* OK
|
|
44
|
+
*/
|
|
45
|
+
object?: RedeemLoyaltyPointsResponseBody | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
40
48
|
/** @internal */
|
|
41
49
|
export const RedeemLoyaltyPointsRequestBody$inboundSchema: z.ZodType<
|
|
42
50
|
RedeemLoyaltyPointsRequestBody,
|
|
@@ -281,3 +289,72 @@ export function redeemLoyaltyPointsResponseBodyFromJSON(
|
|
|
281
289
|
`Failed to parse 'RedeemLoyaltyPointsResponseBody' from JSON`,
|
|
282
290
|
);
|
|
283
291
|
}
|
|
292
|
+
|
|
293
|
+
/** @internal */
|
|
294
|
+
export const RedeemLoyaltyPointsResponse$inboundSchema: z.ZodType<
|
|
295
|
+
RedeemLoyaltyPointsResponse,
|
|
296
|
+
z.ZodTypeDef,
|
|
297
|
+
unknown
|
|
298
|
+
> = z.object({
|
|
299
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
300
|
+
object: z.lazy(() => RedeemLoyaltyPointsResponseBody$inboundSchema)
|
|
301
|
+
.optional(),
|
|
302
|
+
}).transform((v) => {
|
|
303
|
+
return remap$(v, {
|
|
304
|
+
"HttpMeta": "httpMeta",
|
|
305
|
+
});
|
|
306
|
+
});
|
|
307
|
+
|
|
308
|
+
/** @internal */
|
|
309
|
+
export type RedeemLoyaltyPointsResponse$Outbound = {
|
|
310
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
311
|
+
object?: RedeemLoyaltyPointsResponseBody$Outbound | undefined;
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
/** @internal */
|
|
315
|
+
export const RedeemLoyaltyPointsResponse$outboundSchema: z.ZodType<
|
|
316
|
+
RedeemLoyaltyPointsResponse$Outbound,
|
|
317
|
+
z.ZodTypeDef,
|
|
318
|
+
RedeemLoyaltyPointsResponse
|
|
319
|
+
> = z.object({
|
|
320
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
321
|
+
object: z.lazy(() => RedeemLoyaltyPointsResponseBody$outboundSchema)
|
|
322
|
+
.optional(),
|
|
323
|
+
}).transform((v) => {
|
|
324
|
+
return remap$(v, {
|
|
325
|
+
httpMeta: "HttpMeta",
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* @internal
|
|
331
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
332
|
+
*/
|
|
333
|
+
export namespace RedeemLoyaltyPointsResponse$ {
|
|
334
|
+
/** @deprecated use `RedeemLoyaltyPointsResponse$inboundSchema` instead. */
|
|
335
|
+
export const inboundSchema = RedeemLoyaltyPointsResponse$inboundSchema;
|
|
336
|
+
/** @deprecated use `RedeemLoyaltyPointsResponse$outboundSchema` instead. */
|
|
337
|
+
export const outboundSchema = RedeemLoyaltyPointsResponse$outboundSchema;
|
|
338
|
+
/** @deprecated use `RedeemLoyaltyPointsResponse$Outbound` instead. */
|
|
339
|
+
export type Outbound = RedeemLoyaltyPointsResponse$Outbound;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export function redeemLoyaltyPointsResponseToJSON(
|
|
343
|
+
redeemLoyaltyPointsResponse: RedeemLoyaltyPointsResponse,
|
|
344
|
+
): string {
|
|
345
|
+
return JSON.stringify(
|
|
346
|
+
RedeemLoyaltyPointsResponse$outboundSchema.parse(
|
|
347
|
+
redeemLoyaltyPointsResponse,
|
|
348
|
+
),
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export function redeemLoyaltyPointsResponseFromJSON(
|
|
353
|
+
jsonString: string,
|
|
354
|
+
): SafeParseResult<RedeemLoyaltyPointsResponse, SDKValidationError> {
|
|
355
|
+
return safeParse(
|
|
356
|
+
jsonString,
|
|
357
|
+
(x) => RedeemLoyaltyPointsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
358
|
+
`Failed to parse 'RedeemLoyaltyPointsResponse' from JSON`,
|
|
359
|
+
);
|
|
360
|
+
}
|