ce-storefront 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -18
- package/docs/sdks/carts/README.md +69 -44
- package/docs/sdks/catalog/README.md +59 -40
- package/docs/sdks/customers/README.md +31 -20
- package/docs/sdks/orders/README.md +32 -20
- package/docs/sdks/shipping/README.md +5 -4
- package/esm/funcs/authGenerateOtp.js +2 -2
- package/esm/funcs/authGenerateOtp.js.map +1 -1
- package/esm/funcs/authGetAnonymousToken.js +2 -2
- package/esm/funcs/authGetAnonymousToken.js.map +1 -1
- package/esm/funcs/authGetUserDetail.js +2 -2
- package/esm/funcs/authGetUserDetail.js.map +1 -1
- package/esm/funcs/authLoginWithEmail.js +2 -2
- package/esm/funcs/authLoginWithEmail.js.map +1 -1
- package/esm/funcs/authLoginWithPhone.js +2 -2
- package/esm/funcs/authLoginWithPhone.js.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js +2 -2
- package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
- package/esm/funcs/authLogout.js +2 -2
- package/esm/funcs/authLogout.js.map +1 -1
- package/esm/funcs/authRefreshToken.js +2 -2
- package/esm/funcs/authRefreshToken.js.map +1 -1
- package/esm/funcs/authUpdateUser.js +2 -2
- package/esm/funcs/authUpdateUser.js.map +1 -1
- package/esm/funcs/authVerifyOtp.js +2 -2
- package/esm/funcs/authVerifyOtp.js.map +1 -1
- package/esm/funcs/cartsAddShippingMethod.d.ts +2 -1
- package/esm/funcs/cartsAddShippingMethod.d.ts.map +1 -1
- package/esm/funcs/cartsAddShippingMethod.js +6 -2
- package/esm/funcs/cartsAddShippingMethod.js.map +1 -1
- package/esm/funcs/cartsApplyCoupon.d.ts +2 -1
- package/esm/funcs/cartsApplyCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsApplyCoupon.js +6 -2
- package/esm/funcs/cartsApplyCoupon.js.map +1 -1
- package/esm/funcs/cartsCreateCart.js +2 -2
- package/esm/funcs/cartsCreateCart.js.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts +2 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.js +6 -2
- package/esm/funcs/cartsCreateCartAddress.js.map +1 -1
- package/esm/funcs/cartsDeleteCart.d.ts +2 -1
- package/esm/funcs/cartsDeleteCart.d.ts.map +1 -1
- package/esm/funcs/cartsDeleteCart.js +6 -2
- package/esm/funcs/cartsDeleteCart.js.map +1 -1
- package/esm/funcs/cartsGetCart.d.ts +2 -1
- package/esm/funcs/cartsGetCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetCart.js +6 -2
- package/esm/funcs/cartsGetCart.js.map +1 -1
- package/esm/funcs/cartsGetUserCart.d.ts +2 -1
- package/esm/funcs/cartsGetUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetUserCart.js +6 -2
- package/esm/funcs/cartsGetUserCart.js.map +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.d.ts +2 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.d.ts.map +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.js +6 -2
- package/esm/funcs/cartsRedeemLoyaltyPoints.js.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts +2 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.js +6 -2
- package/esm/funcs/cartsRemoveCoupon.js.map +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.d.ts +2 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.js +6 -2
- package/esm/funcs/cartsRemoveLoyaltyPoints.js.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts +2 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.js +6 -2
- package/esm/funcs/cartsRemoveUserCart.js.map +1 -1
- package/esm/funcs/cartsUpdateCart.d.ts +2 -1
- package/esm/funcs/cartsUpdateCart.d.ts.map +1 -1
- package/esm/funcs/cartsUpdateCart.js +6 -2
- package/esm/funcs/cartsUpdateCart.js.map +1 -1
- package/esm/funcs/catalogGetProductDetail.d.ts +2 -1
- package/esm/funcs/catalogGetProductDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetProductDetail.js +6 -2
- package/esm/funcs/catalogGetProductDetail.js.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts +2 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +6 -2
- package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
- package/esm/funcs/catalogListCategories.js +2 -2
- package/esm/funcs/catalogListCategories.js.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts +2 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js +6 -2
- package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
- package/esm/funcs/catalogListProductReviews.d.ts +2 -1
- package/esm/funcs/catalogListProductReviews.d.ts.map +1 -1
- package/esm/funcs/catalogListProductReviews.js +6 -2
- package/esm/funcs/catalogListProductReviews.js.map +1 -1
- package/esm/funcs/catalogListProductVariants.d.ts +2 -1
- package/esm/funcs/catalogListProductVariants.d.ts.map +1 -1
- package/esm/funcs/catalogListProductVariants.js +6 -2
- package/esm/funcs/catalogListProductVariants.js.map +1 -1
- package/esm/funcs/catalogListProducts.d.ts +2 -1
- package/esm/funcs/catalogListProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListProducts.js +6 -2
- package/esm/funcs/catalogListProducts.js.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts +2 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.js +6 -2
- package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
- package/esm/funcs/catalogListSkus.d.ts +2 -1
- package/esm/funcs/catalogListSkus.d.ts.map +1 -1
- package/esm/funcs/catalogListSkus.js +6 -2
- package/esm/funcs/catalogListSkus.js.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts +2 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.js +6 -2
- package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
- package/esm/funcs/catalogSearchProducts.d.ts +2 -1
- package/esm/funcs/catalogSearchProducts.d.ts.map +1 -1
- package/esm/funcs/catalogSearchProducts.js +6 -2
- package/esm/funcs/catalogSearchProducts.js.map +1 -1
- package/esm/funcs/commonListCountryPincodes.js +2 -2
- package/esm/funcs/commonListCountryPincodes.js.map +1 -1
- package/esm/funcs/customersCreateAddress.d.ts +2 -1
- package/esm/funcs/customersCreateAddress.d.ts.map +1 -1
- package/esm/funcs/customersCreateAddress.js +6 -2
- package/esm/funcs/customersCreateAddress.js.map +1 -1
- package/esm/funcs/customersDeleteAddress.d.ts +2 -1
- package/esm/funcs/customersDeleteAddress.d.ts.map +1 -1
- package/esm/funcs/customersDeleteAddress.js +6 -2
- package/esm/funcs/customersDeleteAddress.js.map +1 -1
- package/esm/funcs/customersGetAddressDetail.d.ts +2 -1
- package/esm/funcs/customersGetAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersGetAddressDetail.js +6 -2
- package/esm/funcs/customersGetAddressDetail.js.map +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.d.ts +2 -1
- package/esm/funcs/customersGetLoyaltyDetails.d.ts.map +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.js +6 -2
- package/esm/funcs/customersGetLoyaltyDetails.js.map +1 -1
- package/esm/funcs/customersListAddresses.js +2 -2
- package/esm/funcs/customersListAddresses.js.map +1 -1
- package/esm/funcs/customersListUserReviews.js +2 -2
- package/esm/funcs/customersListUserReviews.js.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts +2 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.js +6 -2
- package/esm/funcs/customersUpdateAddressDetail.js.map +1 -1
- package/esm/funcs/ordersCancelOrder.d.ts +2 -1
- package/esm/funcs/ordersCancelOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCancelOrder.js +6 -2
- package/esm/funcs/ordersCancelOrder.js.map +1 -1
- package/esm/funcs/ordersCreateOrder.d.ts +2 -1
- package/esm/funcs/ordersCreateOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCreateOrder.js +6 -2
- package/esm/funcs/ordersCreateOrder.js.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts +2 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.js +6 -2
- package/esm/funcs/ordersGetOrderDetail.js.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.js +2 -2
- package/esm/funcs/ordersGetPaymentStatus.js.map +1 -1
- package/esm/funcs/ordersListOrderShipments.d.ts +2 -1
- package/esm/funcs/ordersListOrderShipments.d.ts.map +1 -1
- package/esm/funcs/ordersListOrderShipments.js +6 -2
- 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 +2 -2
- package/esm/funcs/ordersListOrders.js.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts +2 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.js +6 -2
- package/esm/funcs/ordersRetryOrderPayment.js.map +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.d.ts +2 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.d.ts.map +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.js +6 -2
- package/esm/funcs/shippingCheckDeliveryAvailability.js.map +1 -1
- package/esm/funcs/shippingCheckServiceability.js +2 -2
- 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/models/components/cart.d.ts +9 -6
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +12 -12
- package/esm/models/components/cart.js.map +1 -1
- package/esm/models/components/cartitem.d.ts +12 -2
- package/esm/models/components/cartitem.d.ts.map +1 -1
- package/esm/models/components/cartitem.js +12 -4
- package/esm/models/components/cartitem.js.map +1 -1
- package/esm/models/components/index.d.ts +0 -3
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +0 -3
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/{components → errors}/badrequest.d.ts +13 -4
- package/esm/models/errors/badrequest.d.ts.map +1 -0
- package/esm/models/{components → errors}/badrequest.js +26 -8
- package/esm/models/errors/badrequest.js.map +1 -0
- package/esm/models/errors/index.d.ts +3 -0
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +3 -0
- package/esm/models/errors/index.js.map +1 -1
- package/esm/models/{components → errors}/notfound.d.ts +11 -5
- package/esm/models/errors/notfound.d.ts.map +1 -0
- package/esm/models/{components → errors}/notfound.js +24 -9
- package/esm/models/errors/notfound.js.map +1 -0
- package/esm/models/{components → errors}/unauthorized.d.ts +13 -7
- package/esm/models/errors/unauthorized.d.ts.map +1 -0
- package/esm/models/{components → errors}/unauthorized.js +24 -9
- package/esm/models/errors/unauthorized.js.map +1 -0
- package/esm/models/operations/applycoupon.d.ts +0 -21
- package/esm/models/operations/applycoupon.d.ts.map +1 -1
- package/esm/models/operations/applycoupon.js +0 -29
- package/esm/models/operations/applycoupon.js.map +1 -1
- package/esm/models/operations/cancelorder.d.ts +0 -21
- package/esm/models/operations/cancelorder.d.ts.map +1 -1
- package/esm/models/operations/cancelorder.js +0 -29
- package/esm/models/operations/cancelorder.js.map +1 -1
- package/esm/models/operations/checkdeliveryavailability.d.ts +0 -22
- package/esm/models/operations/checkdeliveryavailability.d.ts.map +1 -1
- package/esm/models/operations/checkdeliveryavailability.js +0 -28
- package/esm/models/operations/checkdeliveryavailability.js.map +1 -1
- package/esm/models/operations/createaddress.d.ts +0 -21
- package/esm/models/operations/createaddress.d.ts.map +1 -1
- package/esm/models/operations/createaddress.js +0 -29
- package/esm/models/operations/createaddress.js.map +1 -1
- package/esm/models/operations/createcartaddress.d.ts +0 -21
- package/esm/models/operations/createcartaddress.d.ts.map +1 -1
- package/esm/models/operations/createcartaddress.js +0 -31
- package/esm/models/operations/createcartaddress.js.map +1 -1
- package/esm/models/operations/createorder.d.ts +0 -21
- package/esm/models/operations/createorder.d.ts.map +1 -1
- package/esm/models/operations/createorder.js +0 -31
- package/esm/models/operations/createorder.js.map +1 -1
- package/esm/models/operations/deleteaddress.d.ts +0 -22
- package/esm/models/operations/deleteaddress.d.ts.map +1 -1
- package/esm/models/operations/deleteaddress.js +0 -30
- package/esm/models/operations/deleteaddress.js.map +1 -1
- package/esm/models/operations/deletecart.d.ts +0 -22
- package/esm/models/operations/deletecart.d.ts.map +1 -1
- package/esm/models/operations/deletecart.js +0 -30
- package/esm/models/operations/deletecart.js.map +1 -1
- package/esm/models/operations/deleteusercart.d.ts +0 -22
- package/esm/models/operations/deleteusercart.d.ts.map +1 -1
- package/esm/models/operations/deleteusercart.js +0 -30
- package/esm/models/operations/deleteusercart.js.map +1 -1
- package/esm/models/operations/getaddressdetail.d.ts +0 -22
- package/esm/models/operations/getaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/getaddressdetail.js +0 -30
- package/esm/models/operations/getaddressdetail.js.map +1 -1
- package/esm/models/operations/getcart.d.ts +0 -21
- package/esm/models/operations/getcart.d.ts.map +1 -1
- package/esm/models/operations/getcart.js +0 -29
- package/esm/models/operations/getcart.js.map +1 -1
- package/esm/models/operations/getloyaltydetails.d.ts +0 -21
- package/esm/models/operations/getloyaltydetails.d.ts.map +1 -1
- package/esm/models/operations/getloyaltydetails.js +0 -29
- package/esm/models/operations/getloyaltydetails.js.map +1 -1
- package/esm/models/operations/getorderdetail.d.ts +0 -21
- package/esm/models/operations/getorderdetail.d.ts.map +1 -1
- package/esm/models/operations/getorderdetail.js +0 -29
- package/esm/models/operations/getorderdetail.js.map +1 -1
- package/esm/models/operations/getproductdetail.d.ts +0 -21
- package/esm/models/operations/getproductdetail.d.ts.map +1 -1
- package/esm/models/operations/getproductdetail.js +0 -29
- package/esm/models/operations/getproductdetail.js.map +1 -1
- package/esm/models/operations/getusercart.d.ts +0 -21
- package/esm/models/operations/getusercart.d.ts.map +1 -1
- package/esm/models/operations/getusercart.js +0 -29
- package/esm/models/operations/getusercart.js.map +1 -1
- package/esm/models/operations/getvariantdetail.d.ts +0 -21
- package/esm/models/operations/getvariantdetail.d.ts.map +1 -1
- package/esm/models/operations/getvariantdetail.js +0 -29
- package/esm/models/operations/getvariantdetail.js.map +1 -1
- package/esm/models/operations/listcrosssellproducts.d.ts +0 -21
- package/esm/models/operations/listcrosssellproducts.d.ts.map +1 -1
- package/esm/models/operations/listcrosssellproducts.js +0 -29
- package/esm/models/operations/listcrosssellproducts.js.map +1 -1
- package/esm/models/operations/listordershipments.d.ts +0 -21
- package/esm/models/operations/listordershipments.d.ts.map +1 -1
- package/esm/models/operations/listordershipments.js +0 -29
- package/esm/models/operations/listordershipments.js.map +1 -1
- package/esm/models/operations/listproductreviews.d.ts +0 -21
- package/esm/models/operations/listproductreviews.d.ts.map +1 -1
- package/esm/models/operations/listproductreviews.js +0 -29
- package/esm/models/operations/listproductreviews.js.map +1 -1
- package/esm/models/operations/listproducts.d.ts +0 -21
- package/esm/models/operations/listproducts.d.ts.map +1 -1
- package/esm/models/operations/listproducts.js +0 -29
- package/esm/models/operations/listproducts.js.map +1 -1
- package/esm/models/operations/listproductvariants.d.ts +0 -21
- package/esm/models/operations/listproductvariants.d.ts.map +1 -1
- package/esm/models/operations/listproductvariants.js +0 -29
- package/esm/models/operations/listproductvariants.js.map +1 -1
- package/esm/models/operations/listsimilarproducts.d.ts +0 -21
- package/esm/models/operations/listsimilarproducts.d.ts.map +1 -1
- package/esm/models/operations/listsimilarproducts.js +0 -29
- package/esm/models/operations/listsimilarproducts.js.map +1 -1
- package/esm/models/operations/listskus.d.ts +0 -21
- package/esm/models/operations/listskus.d.ts.map +1 -1
- package/esm/models/operations/listskus.js +0 -29
- package/esm/models/operations/listskus.js.map +1 -1
- package/esm/models/operations/listupsellproducts.d.ts +0 -21
- package/esm/models/operations/listupsellproducts.d.ts.map +1 -1
- package/esm/models/operations/listupsellproducts.js +0 -29
- package/esm/models/operations/listupsellproducts.js.map +1 -1
- package/esm/models/operations/redeemloyaltypoints.d.ts +0 -21
- package/esm/models/operations/redeemloyaltypoints.d.ts.map +1 -1
- package/esm/models/operations/redeemloyaltypoints.js +0 -29
- package/esm/models/operations/redeemloyaltypoints.js.map +1 -1
- package/esm/models/operations/removecoupon.d.ts +0 -21
- package/esm/models/operations/removecoupon.d.ts.map +1 -1
- package/esm/models/operations/removecoupon.js +0 -29
- package/esm/models/operations/removecoupon.js.map +1 -1
- package/esm/models/operations/removeloyaltypoints.d.ts +0 -21
- package/esm/models/operations/removeloyaltypoints.d.ts.map +1 -1
- package/esm/models/operations/removeloyaltypoints.js +0 -29
- package/esm/models/operations/removeloyaltypoints.js.map +1 -1
- package/esm/models/operations/retryorderpayment.d.ts +0 -21
- package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
- package/esm/models/operations/retryorderpayment.js +0 -31
- package/esm/models/operations/retryorderpayment.js.map +1 -1
- package/esm/models/operations/searchproducts.d.ts +0 -21
- package/esm/models/operations/searchproducts.d.ts.map +1 -1
- package/esm/models/operations/searchproducts.js +0 -27
- package/esm/models/operations/searchproducts.js.map +1 -1
- package/esm/models/operations/updateaddressdetail.d.ts +0 -21
- package/esm/models/operations/updateaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/updateaddressdetail.js +0 -31
- package/esm/models/operations/updateaddressdetail.js.map +1 -1
- package/esm/models/operations/updatecart.d.ts +0 -21
- package/esm/models/operations/updatecart.d.ts.map +1 -1
- package/esm/models/operations/updatecart.js +0 -31
- package/esm/models/operations/updatecart.js.map +1 -1
- package/esm/models/operations/updateshippingmethod.d.ts +0 -21
- package/esm/models/operations/updateshippingmethod.d.ts.map +1 -1
- package/esm/models/operations/updateshippingmethod.js +0 -31
- package/esm/models/operations/updateshippingmethod.js.map +1 -1
- package/esm/sdk/carts.d.ts +11 -11
- package/esm/sdk/carts.d.ts.map +1 -1
- package/esm/sdk/catalog.d.ts +10 -10
- package/esm/sdk/catalog.d.ts.map +1 -1
- package/esm/sdk/customers.d.ts +5 -5
- package/esm/sdk/customers.d.ts.map +1 -1
- package/esm/sdk/orders.d.ts +6 -6
- package/esm/sdk/orders.d.ts.map +1 -1
- package/esm/sdk/shipping.d.ts +1 -1
- package/esm/sdk/shipping.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/authGenerateOtp.ts +3 -1
- package/src/funcs/authGetAnonymousToken.ts +3 -1
- package/src/funcs/authGetUserDetail.ts +3 -1
- package/src/funcs/authLoginWithEmail.ts +3 -1
- package/src/funcs/authLoginWithPhone.ts +3 -1
- package/src/funcs/authLoginWithWhatsapp.ts +3 -1
- package/src/funcs/authLogout.ts +3 -1
- package/src/funcs/authRefreshToken.ts +3 -1
- package/src/funcs/authUpdateUser.ts +3 -1
- package/src/funcs/authVerifyOtp.ts +3 -1
- package/src/funcs/cartsAddShippingMethod.ts +25 -9
- package/src/funcs/cartsApplyCoupon.ts +21 -8
- package/src/funcs/cartsCreateCart.ts +3 -1
- package/src/funcs/cartsCreateCartAddress.ts +25 -9
- package/src/funcs/cartsDeleteCart.ts +21 -8
- package/src/funcs/cartsGetCart.ts +21 -8
- package/src/funcs/cartsGetUserCart.ts +21 -8
- package/src/funcs/cartsRedeemLoyaltyPoints.ts +21 -8
- package/src/funcs/cartsRemoveCoupon.ts +21 -9
- package/src/funcs/cartsRemoveLoyaltyPoints.ts +21 -18
- package/src/funcs/cartsRemoveUserCart.ts +21 -8
- package/src/funcs/cartsUpdateCart.ts +25 -9
- package/src/funcs/catalogGetProductDetail.ts +21 -8
- package/src/funcs/catalogGetVariantDetail.ts +21 -8
- package/src/funcs/catalogListCategories.ts +3 -1
- package/src/funcs/catalogListCrosssellProducts.ts +21 -8
- package/src/funcs/catalogListProductReviews.ts +21 -8
- package/src/funcs/catalogListProductVariants.ts +21 -8
- package/src/funcs/catalogListProducts.ts +21 -8
- package/src/funcs/catalogListSimilarProducts.ts +21 -8
- package/src/funcs/catalogListSkus.ts +21 -8
- package/src/funcs/catalogListUpsellProducts.ts +21 -8
- package/src/funcs/catalogSearchProducts.ts +17 -7
- package/src/funcs/commonListCountryPincodes.ts +3 -1
- package/src/funcs/customersCreateAddress.ts +21 -8
- package/src/funcs/customersDeleteAddress.ts +21 -8
- package/src/funcs/customersGetAddressDetail.ts +21 -8
- package/src/funcs/customersGetLoyaltyDetails.ts +21 -8
- package/src/funcs/customersListAddresses.ts +3 -1
- package/src/funcs/customersListUserReviews.ts +3 -1
- package/src/funcs/customersUpdateAddressDetail.ts +25 -9
- package/src/funcs/ordersCancelOrder.ts +21 -8
- package/src/funcs/ordersCreateOrder.ts +25 -9
- package/src/funcs/ordersGetOrderDetail.ts +21 -8
- package/src/funcs/ordersGetPaymentStatus.ts +3 -1
- package/src/funcs/ordersListOrderShipments.ts +21 -8
- package/src/funcs/ordersListOrders.ts +7 -6
- package/src/funcs/ordersRetryOrderPayment.ts +25 -9
- package/src/funcs/shippingCheckDeliveryAvailability.ts +17 -7
- package/src/funcs/shippingCheckServiceability.ts +3 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/cart.ts +21 -18
- package/src/models/components/cartitem.ts +24 -6
- package/src/models/components/index.ts +0 -3
- package/src/models/{components → errors}/badrequest.ts +40 -23
- package/src/models/errors/index.ts +3 -0
- package/src/models/{components → errors}/notfound.ts +36 -24
- package/src/models/{components → errors}/unauthorized.ts +38 -26
- package/src/models/operations/applycoupon.ts +0 -64
- package/src/models/operations/cancelorder.ts +0 -64
- package/src/models/operations/checkdeliveryavailability.ts +0 -64
- package/src/models/operations/createaddress.ts +0 -64
- package/src/models/operations/createcartaddress.ts +0 -68
- package/src/models/operations/createorder.ts +0 -68
- package/src/models/operations/deleteaddress.ts +0 -65
- package/src/models/operations/deletecart.ts +0 -65
- package/src/models/operations/deleteusercart.ts +0 -65
- package/src/models/operations/getaddressdetail.ts +0 -65
- package/src/models/operations/getcart.ts +0 -62
- package/src/models/operations/getloyaltydetails.ts +0 -64
- package/src/models/operations/getorderdetail.ts +0 -64
- package/src/models/operations/getproductdetail.ts +0 -64
- package/src/models/operations/getusercart.ts +0 -64
- package/src/models/operations/getvariantdetail.ts +0 -64
- package/src/models/operations/listcrosssellproducts.ts +0 -66
- package/src/models/operations/listordershipments.ts +0 -64
- package/src/models/operations/listproductreviews.ts +0 -64
- package/src/models/operations/listproducts.ts +0 -64
- package/src/models/operations/listproductvariants.ts +0 -66
- package/src/models/operations/listsimilarproducts.ts +0 -66
- package/src/models/operations/listskus.ts +0 -64
- package/src/models/operations/listupsellproducts.ts +0 -64
- package/src/models/operations/redeemloyaltypoints.ts +0 -66
- package/src/models/operations/removecoupon.ts +0 -64
- package/src/models/operations/removeloyaltypoints.ts +0 -66
- package/src/models/operations/retryorderpayment.ts +0 -68
- package/src/models/operations/searchproducts.ts +0 -60
- package/src/models/operations/updateaddressdetail.ts +0 -70
- package/src/models/operations/updatecart.ts +0 -68
- package/src/models/operations/updateshippingmethod.ts +0 -70
- package/src/sdk/carts.ts +11 -11
- package/src/sdk/catalog.ts +10 -10
- package/src/sdk/customers.ts +5 -5
- package/src/sdk/orders.ts +6 -6
- package/src/sdk/shipping.ts +1 -1
- package/esm/models/components/badrequest.d.ts.map +0 -1
- package/esm/models/components/badrequest.js.map +0 -1
- package/esm/models/components/notfound.d.ts.map +0 -1
- package/esm/models/components/notfound.js.map +0 -1
- package/esm/models/components/unauthorized.d.ts.map +0 -1
- package/esm/models/components/unauthorized.js.map +0 -1
|
@@ -3,19 +3,40 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
6
|
|
|
10
7
|
/**
|
|
11
8
|
* Requested resource not found
|
|
12
9
|
*/
|
|
13
|
-
export type
|
|
10
|
+
export type NotFoundData = {
|
|
14
11
|
message?: string | undefined;
|
|
15
12
|
success?: boolean | undefined;
|
|
16
13
|
code?: string | undefined;
|
|
17
14
|
};
|
|
18
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Requested resource not found
|
|
18
|
+
*/
|
|
19
|
+
export class NotFound extends Error {
|
|
20
|
+
success?: boolean | undefined;
|
|
21
|
+
code?: string | undefined;
|
|
22
|
+
|
|
23
|
+
/** The original data that was passed to this error instance. */
|
|
24
|
+
data$: NotFoundData;
|
|
25
|
+
|
|
26
|
+
constructor(err: NotFoundData) {
|
|
27
|
+
const message = "message" in err && typeof err.message === "string"
|
|
28
|
+
? err.message
|
|
29
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
30
|
+
super(message);
|
|
31
|
+
this.data$ = err;
|
|
32
|
+
|
|
33
|
+
if (err.success != null) this.success = err.success;
|
|
34
|
+
if (err.code != null) this.code = err.code;
|
|
35
|
+
|
|
36
|
+
this.name = "NotFound";
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
19
40
|
/** @internal */
|
|
20
41
|
export const NotFound$inboundSchema: z.ZodType<
|
|
21
42
|
NotFound,
|
|
@@ -25,7 +46,10 @@ export const NotFound$inboundSchema: z.ZodType<
|
|
|
25
46
|
message: z.string().optional(),
|
|
26
47
|
success: z.boolean().optional(),
|
|
27
48
|
code: z.string().optional(),
|
|
28
|
-
})
|
|
49
|
+
})
|
|
50
|
+
.transform((v) => {
|
|
51
|
+
return new NotFound(v);
|
|
52
|
+
});
|
|
29
53
|
|
|
30
54
|
/** @internal */
|
|
31
55
|
export type NotFound$Outbound = {
|
|
@@ -39,11 +63,13 @@ export const NotFound$outboundSchema: z.ZodType<
|
|
|
39
63
|
NotFound$Outbound,
|
|
40
64
|
z.ZodTypeDef,
|
|
41
65
|
NotFound
|
|
42
|
-
> = z.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
66
|
+
> = z.instanceof(NotFound)
|
|
67
|
+
.transform(v => v.data$)
|
|
68
|
+
.pipe(z.object({
|
|
69
|
+
message: z.string().optional(),
|
|
70
|
+
success: z.boolean().optional(),
|
|
71
|
+
code: z.string().optional(),
|
|
72
|
+
}));
|
|
47
73
|
|
|
48
74
|
/**
|
|
49
75
|
* @internal
|
|
@@ -57,17 +83,3 @@ export namespace NotFound$ {
|
|
|
57
83
|
/** @deprecated use `NotFound$Outbound` instead. */
|
|
58
84
|
export type Outbound = NotFound$Outbound;
|
|
59
85
|
}
|
|
60
|
-
|
|
61
|
-
export function notFoundToJSON(notFound: NotFound): string {
|
|
62
|
-
return JSON.stringify(NotFound$outboundSchema.parse(notFound));
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function notFoundFromJSON(
|
|
66
|
-
jsonString: string,
|
|
67
|
-
): SafeParseResult<NotFound, SDKValidationError> {
|
|
68
|
-
return safeParse(
|
|
69
|
-
jsonString,
|
|
70
|
-
(x) => NotFound$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
-
`Failed to parse 'NotFound' from JSON`,
|
|
72
|
-
);
|
|
73
|
-
}
|
|
@@ -3,19 +3,40 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
6
|
|
|
10
7
|
/**
|
|
11
8
|
* Not authorized for given operation on the Resource
|
|
12
9
|
*/
|
|
13
|
-
export type
|
|
10
|
+
export type UnauthorizedData = {
|
|
14
11
|
message?: string | undefined;
|
|
15
|
-
success?: boolean
|
|
12
|
+
success?: boolean;
|
|
16
13
|
code?: string | undefined;
|
|
17
14
|
};
|
|
18
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Not authorized for given operation on the Resource
|
|
18
|
+
*/
|
|
19
|
+
export class Unauthorized extends Error {
|
|
20
|
+
success?: boolean;
|
|
21
|
+
code?: string | undefined;
|
|
22
|
+
|
|
23
|
+
/** The original data that was passed to this error instance. */
|
|
24
|
+
data$: UnauthorizedData;
|
|
25
|
+
|
|
26
|
+
constructor(err: UnauthorizedData) {
|
|
27
|
+
const message = "message" in err && typeof err.message === "string"
|
|
28
|
+
? err.message
|
|
29
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
30
|
+
super(message);
|
|
31
|
+
this.data$ = err;
|
|
32
|
+
|
|
33
|
+
if (err.success != null) this.success = err.success;
|
|
34
|
+
if (err.code != null) this.code = err.code;
|
|
35
|
+
|
|
36
|
+
this.name = "Unauthorized";
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
19
40
|
/** @internal */
|
|
20
41
|
export const Unauthorized$inboundSchema: z.ZodType<
|
|
21
42
|
Unauthorized,
|
|
@@ -25,12 +46,15 @@ export const Unauthorized$inboundSchema: z.ZodType<
|
|
|
25
46
|
message: z.string().optional(),
|
|
26
47
|
success: z.boolean().default(false),
|
|
27
48
|
code: z.string().optional(),
|
|
28
|
-
})
|
|
49
|
+
})
|
|
50
|
+
.transform((v) => {
|
|
51
|
+
return new Unauthorized(v);
|
|
52
|
+
});
|
|
29
53
|
|
|
30
54
|
/** @internal */
|
|
31
55
|
export type Unauthorized$Outbound = {
|
|
32
56
|
message?: string | undefined;
|
|
33
|
-
success
|
|
57
|
+
success?: boolean;
|
|
34
58
|
code?: string | undefined;
|
|
35
59
|
};
|
|
36
60
|
|
|
@@ -39,11 +63,13 @@ export const Unauthorized$outboundSchema: z.ZodType<
|
|
|
39
63
|
Unauthorized$Outbound,
|
|
40
64
|
z.ZodTypeDef,
|
|
41
65
|
Unauthorized
|
|
42
|
-
> = z.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
66
|
+
> = z.instanceof(Unauthorized)
|
|
67
|
+
.transform(v => v.data$)
|
|
68
|
+
.pipe(z.object({
|
|
69
|
+
message: z.string().optional(),
|
|
70
|
+
success: z.boolean().default(false),
|
|
71
|
+
code: z.string().optional(),
|
|
72
|
+
}));
|
|
47
73
|
|
|
48
74
|
/**
|
|
49
75
|
* @internal
|
|
@@ -57,17 +83,3 @@ export namespace Unauthorized$ {
|
|
|
57
83
|
/** @deprecated use `Unauthorized$Outbound` instead. */
|
|
58
84
|
export type Outbound = Unauthorized$Outbound;
|
|
59
85
|
}
|
|
60
|
-
|
|
61
|
-
export function unauthorizedToJSON(unauthorized: Unauthorized): string {
|
|
62
|
-
return JSON.stringify(Unauthorized$outboundSchema.parse(unauthorized));
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function unauthorizedFromJSON(
|
|
66
|
-
jsonString: string,
|
|
67
|
-
): SafeParseResult<Unauthorized, SDKValidationError> {
|
|
68
|
-
return safeParse(
|
|
69
|
-
jsonString,
|
|
70
|
-
(x) => Unauthorized$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
-
`Failed to parse 'Unauthorized' from JSON`,
|
|
72
|
-
);
|
|
73
|
-
}
|
|
@@ -37,11 +37,6 @@ export type ApplyCouponResponseBody = {
|
|
|
37
37
|
content: ApplyCouponContent;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
export type ApplyCouponResponse =
|
|
41
|
-
| ApplyCouponResponseBody
|
|
42
|
-
| components.Unauthorized
|
|
43
|
-
| components.BadRequest;
|
|
44
|
-
|
|
45
40
|
/** @internal */
|
|
46
41
|
export const ApplyCouponRequestBody$inboundSchema: z.ZodType<
|
|
47
42
|
ApplyCouponRequestBody,
|
|
@@ -282,62 +277,3 @@ export function applyCouponResponseBodyFromJSON(
|
|
|
282
277
|
`Failed to parse 'ApplyCouponResponseBody' from JSON`,
|
|
283
278
|
);
|
|
284
279
|
}
|
|
285
|
-
|
|
286
|
-
/** @internal */
|
|
287
|
-
export const ApplyCouponResponse$inboundSchema: z.ZodType<
|
|
288
|
-
ApplyCouponResponse,
|
|
289
|
-
z.ZodTypeDef,
|
|
290
|
-
unknown
|
|
291
|
-
> = z.union([
|
|
292
|
-
z.lazy(() => ApplyCouponResponseBody$inboundSchema),
|
|
293
|
-
components.Unauthorized$inboundSchema,
|
|
294
|
-
components.BadRequest$inboundSchema,
|
|
295
|
-
]);
|
|
296
|
-
|
|
297
|
-
/** @internal */
|
|
298
|
-
export type ApplyCouponResponse$Outbound =
|
|
299
|
-
| ApplyCouponResponseBody$Outbound
|
|
300
|
-
| components.Unauthorized$Outbound
|
|
301
|
-
| components.BadRequest$Outbound;
|
|
302
|
-
|
|
303
|
-
/** @internal */
|
|
304
|
-
export const ApplyCouponResponse$outboundSchema: z.ZodType<
|
|
305
|
-
ApplyCouponResponse$Outbound,
|
|
306
|
-
z.ZodTypeDef,
|
|
307
|
-
ApplyCouponResponse
|
|
308
|
-
> = z.union([
|
|
309
|
-
z.lazy(() => ApplyCouponResponseBody$outboundSchema),
|
|
310
|
-
components.Unauthorized$outboundSchema,
|
|
311
|
-
components.BadRequest$outboundSchema,
|
|
312
|
-
]);
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* @internal
|
|
316
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
317
|
-
*/
|
|
318
|
-
export namespace ApplyCouponResponse$ {
|
|
319
|
-
/** @deprecated use `ApplyCouponResponse$inboundSchema` instead. */
|
|
320
|
-
export const inboundSchema = ApplyCouponResponse$inboundSchema;
|
|
321
|
-
/** @deprecated use `ApplyCouponResponse$outboundSchema` instead. */
|
|
322
|
-
export const outboundSchema = ApplyCouponResponse$outboundSchema;
|
|
323
|
-
/** @deprecated use `ApplyCouponResponse$Outbound` instead. */
|
|
324
|
-
export type Outbound = ApplyCouponResponse$Outbound;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
export function applyCouponResponseToJSON(
|
|
328
|
-
applyCouponResponse: ApplyCouponResponse,
|
|
329
|
-
): string {
|
|
330
|
-
return JSON.stringify(
|
|
331
|
-
ApplyCouponResponse$outboundSchema.parse(applyCouponResponse),
|
|
332
|
-
);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
export function applyCouponResponseFromJSON(
|
|
336
|
-
jsonString: string,
|
|
337
|
-
): SafeParseResult<ApplyCouponResponse, SDKValidationError> {
|
|
338
|
-
return safeParse(
|
|
339
|
-
jsonString,
|
|
340
|
-
(x) => ApplyCouponResponse$inboundSchema.parse(JSON.parse(x)),
|
|
341
|
-
`Failed to parse 'ApplyCouponResponse' from JSON`,
|
|
342
|
-
);
|
|
343
|
-
}
|
|
@@ -50,11 +50,6 @@ export type CancelOrderResponseBody = {
|
|
|
50
50
|
content?: CancelOrderContent | undefined;
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
export type CancelOrderResponse =
|
|
54
|
-
| CancelOrderResponseBody
|
|
55
|
-
| components.Unauthorized
|
|
56
|
-
| components.NotFound;
|
|
57
|
-
|
|
58
53
|
/** @internal */
|
|
59
54
|
export const RefundMode$inboundSchema: z.ZodNativeEnum<typeof RefundMode> = z
|
|
60
55
|
.nativeEnum(RefundMode);
|
|
@@ -329,62 +324,3 @@ export function cancelOrderResponseBodyFromJSON(
|
|
|
329
324
|
`Failed to parse 'CancelOrderResponseBody' from JSON`,
|
|
330
325
|
);
|
|
331
326
|
}
|
|
332
|
-
|
|
333
|
-
/** @internal */
|
|
334
|
-
export const CancelOrderResponse$inboundSchema: z.ZodType<
|
|
335
|
-
CancelOrderResponse,
|
|
336
|
-
z.ZodTypeDef,
|
|
337
|
-
unknown
|
|
338
|
-
> = z.union([
|
|
339
|
-
z.lazy(() => CancelOrderResponseBody$inboundSchema),
|
|
340
|
-
components.Unauthorized$inboundSchema,
|
|
341
|
-
components.NotFound$inboundSchema,
|
|
342
|
-
]);
|
|
343
|
-
|
|
344
|
-
/** @internal */
|
|
345
|
-
export type CancelOrderResponse$Outbound =
|
|
346
|
-
| CancelOrderResponseBody$Outbound
|
|
347
|
-
| components.Unauthorized$Outbound
|
|
348
|
-
| components.NotFound$Outbound;
|
|
349
|
-
|
|
350
|
-
/** @internal */
|
|
351
|
-
export const CancelOrderResponse$outboundSchema: z.ZodType<
|
|
352
|
-
CancelOrderResponse$Outbound,
|
|
353
|
-
z.ZodTypeDef,
|
|
354
|
-
CancelOrderResponse
|
|
355
|
-
> = z.union([
|
|
356
|
-
z.lazy(() => CancelOrderResponseBody$outboundSchema),
|
|
357
|
-
components.Unauthorized$outboundSchema,
|
|
358
|
-
components.NotFound$outboundSchema,
|
|
359
|
-
]);
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* @internal
|
|
363
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
364
|
-
*/
|
|
365
|
-
export namespace CancelOrderResponse$ {
|
|
366
|
-
/** @deprecated use `CancelOrderResponse$inboundSchema` instead. */
|
|
367
|
-
export const inboundSchema = CancelOrderResponse$inboundSchema;
|
|
368
|
-
/** @deprecated use `CancelOrderResponse$outboundSchema` instead. */
|
|
369
|
-
export const outboundSchema = CancelOrderResponse$outboundSchema;
|
|
370
|
-
/** @deprecated use `CancelOrderResponse$Outbound` instead. */
|
|
371
|
-
export type Outbound = CancelOrderResponse$Outbound;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
export function cancelOrderResponseToJSON(
|
|
375
|
-
cancelOrderResponse: CancelOrderResponse,
|
|
376
|
-
): string {
|
|
377
|
-
return JSON.stringify(
|
|
378
|
-
CancelOrderResponse$outboundSchema.parse(cancelOrderResponse),
|
|
379
|
-
);
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
export function cancelOrderResponseFromJSON(
|
|
383
|
-
jsonString: string,
|
|
384
|
-
): SafeParseResult<CancelOrderResponse, SDKValidationError> {
|
|
385
|
-
return safeParse(
|
|
386
|
-
jsonString,
|
|
387
|
-
(x) => CancelOrderResponse$inboundSchema.parse(JSON.parse(x)),
|
|
388
|
-
`Failed to parse 'CancelOrderResponse' from JSON`,
|
|
389
|
-
);
|
|
390
|
-
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import * as components from "../components/index.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
|
|
11
10
|
export type CheckDeliveryAvailabilityRequest = {
|
|
@@ -23,10 +22,6 @@ export type CheckDeliveryAvailabilityResponseBody = {
|
|
|
23
22
|
success?: boolean | undefined;
|
|
24
23
|
};
|
|
25
24
|
|
|
26
|
-
export type CheckDeliveryAvailabilityResponse =
|
|
27
|
-
| CheckDeliveryAvailabilityResponseBody
|
|
28
|
-
| components.Unauthorized;
|
|
29
|
-
|
|
30
25
|
/** @internal */
|
|
31
26
|
export const CheckDeliveryAvailabilityRequest$inboundSchema: z.ZodType<
|
|
32
27
|
CheckDeliveryAvailabilityRequest,
|
|
@@ -144,62 +139,3 @@ export function checkDeliveryAvailabilityResponseBodyFromJSON(
|
|
|
144
139
|
`Failed to parse 'CheckDeliveryAvailabilityResponseBody' from JSON`,
|
|
145
140
|
);
|
|
146
141
|
}
|
|
147
|
-
|
|
148
|
-
/** @internal */
|
|
149
|
-
export const CheckDeliveryAvailabilityResponse$inboundSchema: z.ZodType<
|
|
150
|
-
CheckDeliveryAvailabilityResponse,
|
|
151
|
-
z.ZodTypeDef,
|
|
152
|
-
unknown
|
|
153
|
-
> = z.union([
|
|
154
|
-
z.lazy(() => CheckDeliveryAvailabilityResponseBody$inboundSchema),
|
|
155
|
-
components.Unauthorized$inboundSchema,
|
|
156
|
-
]);
|
|
157
|
-
|
|
158
|
-
/** @internal */
|
|
159
|
-
export type CheckDeliveryAvailabilityResponse$Outbound =
|
|
160
|
-
| CheckDeliveryAvailabilityResponseBody$Outbound
|
|
161
|
-
| components.Unauthorized$Outbound;
|
|
162
|
-
|
|
163
|
-
/** @internal */
|
|
164
|
-
export const CheckDeliveryAvailabilityResponse$outboundSchema: z.ZodType<
|
|
165
|
-
CheckDeliveryAvailabilityResponse$Outbound,
|
|
166
|
-
z.ZodTypeDef,
|
|
167
|
-
CheckDeliveryAvailabilityResponse
|
|
168
|
-
> = z.union([
|
|
169
|
-
z.lazy(() => CheckDeliveryAvailabilityResponseBody$outboundSchema),
|
|
170
|
-
components.Unauthorized$outboundSchema,
|
|
171
|
-
]);
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* @internal
|
|
175
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
176
|
-
*/
|
|
177
|
-
export namespace CheckDeliveryAvailabilityResponse$ {
|
|
178
|
-
/** @deprecated use `CheckDeliveryAvailabilityResponse$inboundSchema` instead. */
|
|
179
|
-
export const inboundSchema = CheckDeliveryAvailabilityResponse$inboundSchema;
|
|
180
|
-
/** @deprecated use `CheckDeliveryAvailabilityResponse$outboundSchema` instead. */
|
|
181
|
-
export const outboundSchema =
|
|
182
|
-
CheckDeliveryAvailabilityResponse$outboundSchema;
|
|
183
|
-
/** @deprecated use `CheckDeliveryAvailabilityResponse$Outbound` instead. */
|
|
184
|
-
export type Outbound = CheckDeliveryAvailabilityResponse$Outbound;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export function checkDeliveryAvailabilityResponseToJSON(
|
|
188
|
-
checkDeliveryAvailabilityResponse: CheckDeliveryAvailabilityResponse,
|
|
189
|
-
): string {
|
|
190
|
-
return JSON.stringify(
|
|
191
|
-
CheckDeliveryAvailabilityResponse$outboundSchema.parse(
|
|
192
|
-
checkDeliveryAvailabilityResponse,
|
|
193
|
-
),
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export function checkDeliveryAvailabilityResponseFromJSON(
|
|
198
|
-
jsonString: string,
|
|
199
|
-
): SafeParseResult<CheckDeliveryAvailabilityResponse, SDKValidationError> {
|
|
200
|
-
return safeParse(
|
|
201
|
-
jsonString,
|
|
202
|
-
(x) => CheckDeliveryAvailabilityResponse$inboundSchema.parse(JSON.parse(x)),
|
|
203
|
-
`Failed to parse 'CheckDeliveryAvailabilityResponse' from JSON`,
|
|
204
|
-
);
|
|
205
|
-
}
|
|
@@ -73,11 +73,6 @@ export type CreateAddressResponseBody = {
|
|
|
73
73
|
content?: CreateAddressContent | undefined;
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
export type CreateAddressResponse =
|
|
77
|
-
| CreateAddressResponseBody
|
|
78
|
-
| components.Unauthorized
|
|
79
|
-
| components.BadRequest;
|
|
80
|
-
|
|
81
76
|
/** @internal */
|
|
82
77
|
export const CreateAddressRequestBody$inboundSchema: z.ZodType<
|
|
83
78
|
CreateAddressRequestBody,
|
|
@@ -386,62 +381,3 @@ export function createAddressResponseBodyFromJSON(
|
|
|
386
381
|
`Failed to parse 'CreateAddressResponseBody' from JSON`,
|
|
387
382
|
);
|
|
388
383
|
}
|
|
389
|
-
|
|
390
|
-
/** @internal */
|
|
391
|
-
export const CreateAddressResponse$inboundSchema: z.ZodType<
|
|
392
|
-
CreateAddressResponse,
|
|
393
|
-
z.ZodTypeDef,
|
|
394
|
-
unknown
|
|
395
|
-
> = z.union([
|
|
396
|
-
z.lazy(() => CreateAddressResponseBody$inboundSchema),
|
|
397
|
-
components.Unauthorized$inboundSchema,
|
|
398
|
-
components.BadRequest$inboundSchema,
|
|
399
|
-
]);
|
|
400
|
-
|
|
401
|
-
/** @internal */
|
|
402
|
-
export type CreateAddressResponse$Outbound =
|
|
403
|
-
| CreateAddressResponseBody$Outbound
|
|
404
|
-
| components.Unauthorized$Outbound
|
|
405
|
-
| components.BadRequest$Outbound;
|
|
406
|
-
|
|
407
|
-
/** @internal */
|
|
408
|
-
export const CreateAddressResponse$outboundSchema: z.ZodType<
|
|
409
|
-
CreateAddressResponse$Outbound,
|
|
410
|
-
z.ZodTypeDef,
|
|
411
|
-
CreateAddressResponse
|
|
412
|
-
> = z.union([
|
|
413
|
-
z.lazy(() => CreateAddressResponseBody$outboundSchema),
|
|
414
|
-
components.Unauthorized$outboundSchema,
|
|
415
|
-
components.BadRequest$outboundSchema,
|
|
416
|
-
]);
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* @internal
|
|
420
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
421
|
-
*/
|
|
422
|
-
export namespace CreateAddressResponse$ {
|
|
423
|
-
/** @deprecated use `CreateAddressResponse$inboundSchema` instead. */
|
|
424
|
-
export const inboundSchema = CreateAddressResponse$inboundSchema;
|
|
425
|
-
/** @deprecated use `CreateAddressResponse$outboundSchema` instead. */
|
|
426
|
-
export const outboundSchema = CreateAddressResponse$outboundSchema;
|
|
427
|
-
/** @deprecated use `CreateAddressResponse$Outbound` instead. */
|
|
428
|
-
export type Outbound = CreateAddressResponse$Outbound;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
export function createAddressResponseToJSON(
|
|
432
|
-
createAddressResponse: CreateAddressResponse,
|
|
433
|
-
): string {
|
|
434
|
-
return JSON.stringify(
|
|
435
|
-
CreateAddressResponse$outboundSchema.parse(createAddressResponse),
|
|
436
|
-
);
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
export function createAddressResponseFromJSON(
|
|
440
|
-
jsonString: string,
|
|
441
|
-
): SafeParseResult<CreateAddressResponse, SDKValidationError> {
|
|
442
|
-
return safeParse(
|
|
443
|
-
jsonString,
|
|
444
|
-
(x) => CreateAddressResponse$inboundSchema.parse(JSON.parse(x)),
|
|
445
|
-
`Failed to parse 'CreateAddressResponse' from JSON`,
|
|
446
|
-
);
|
|
447
|
-
}
|
|
@@ -57,12 +57,6 @@ export type CreateCartAddressResponseBody = {
|
|
|
57
57
|
content: CreateCartAddressContent;
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
export type CreateCartAddressResponse =
|
|
61
|
-
| CreateCartAddressResponseBody
|
|
62
|
-
| components.Unauthorized
|
|
63
|
-
| components.NotFound
|
|
64
|
-
| components.BadRequest;
|
|
65
|
-
|
|
66
60
|
/** @internal */
|
|
67
61
|
export const GuestUser$inboundSchema: z.ZodType<
|
|
68
62
|
GuestUser,
|
|
@@ -433,65 +427,3 @@ export function createCartAddressResponseBodyFromJSON(
|
|
|
433
427
|
`Failed to parse 'CreateCartAddressResponseBody' from JSON`,
|
|
434
428
|
);
|
|
435
429
|
}
|
|
436
|
-
|
|
437
|
-
/** @internal */
|
|
438
|
-
export const CreateCartAddressResponse$inboundSchema: z.ZodType<
|
|
439
|
-
CreateCartAddressResponse,
|
|
440
|
-
z.ZodTypeDef,
|
|
441
|
-
unknown
|
|
442
|
-
> = z.union([
|
|
443
|
-
z.lazy(() => CreateCartAddressResponseBody$inboundSchema),
|
|
444
|
-
components.Unauthorized$inboundSchema,
|
|
445
|
-
components.NotFound$inboundSchema,
|
|
446
|
-
components.BadRequest$inboundSchema,
|
|
447
|
-
]);
|
|
448
|
-
|
|
449
|
-
/** @internal */
|
|
450
|
-
export type CreateCartAddressResponse$Outbound =
|
|
451
|
-
| CreateCartAddressResponseBody$Outbound
|
|
452
|
-
| components.Unauthorized$Outbound
|
|
453
|
-
| components.NotFound$Outbound
|
|
454
|
-
| components.BadRequest$Outbound;
|
|
455
|
-
|
|
456
|
-
/** @internal */
|
|
457
|
-
export const CreateCartAddressResponse$outboundSchema: z.ZodType<
|
|
458
|
-
CreateCartAddressResponse$Outbound,
|
|
459
|
-
z.ZodTypeDef,
|
|
460
|
-
CreateCartAddressResponse
|
|
461
|
-
> = z.union([
|
|
462
|
-
z.lazy(() => CreateCartAddressResponseBody$outboundSchema),
|
|
463
|
-
components.Unauthorized$outboundSchema,
|
|
464
|
-
components.NotFound$outboundSchema,
|
|
465
|
-
components.BadRequest$outboundSchema,
|
|
466
|
-
]);
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* @internal
|
|
470
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
471
|
-
*/
|
|
472
|
-
export namespace CreateCartAddressResponse$ {
|
|
473
|
-
/** @deprecated use `CreateCartAddressResponse$inboundSchema` instead. */
|
|
474
|
-
export const inboundSchema = CreateCartAddressResponse$inboundSchema;
|
|
475
|
-
/** @deprecated use `CreateCartAddressResponse$outboundSchema` instead. */
|
|
476
|
-
export const outboundSchema = CreateCartAddressResponse$outboundSchema;
|
|
477
|
-
/** @deprecated use `CreateCartAddressResponse$Outbound` instead. */
|
|
478
|
-
export type Outbound = CreateCartAddressResponse$Outbound;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
export function createCartAddressResponseToJSON(
|
|
482
|
-
createCartAddressResponse: CreateCartAddressResponse,
|
|
483
|
-
): string {
|
|
484
|
-
return JSON.stringify(
|
|
485
|
-
CreateCartAddressResponse$outboundSchema.parse(createCartAddressResponse),
|
|
486
|
-
);
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
export function createCartAddressResponseFromJSON(
|
|
490
|
-
jsonString: string,
|
|
491
|
-
): SafeParseResult<CreateCartAddressResponse, SDKValidationError> {
|
|
492
|
-
return safeParse(
|
|
493
|
-
jsonString,
|
|
494
|
-
(x) => CreateCartAddressResponse$inboundSchema.parse(JSON.parse(x)),
|
|
495
|
-
`Failed to parse 'CreateCartAddressResponse' from JSON`,
|
|
496
|
-
);
|
|
497
|
-
}
|
|
@@ -50,12 +50,6 @@ export type CreateOrderResponseBody = {
|
|
|
50
50
|
content: CreateOrderContent;
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
export type CreateOrderResponse =
|
|
54
|
-
| CreateOrderResponseBody
|
|
55
|
-
| components.Unauthorized
|
|
56
|
-
| components.NotFound
|
|
57
|
-
| components.BadRequest;
|
|
58
|
-
|
|
59
53
|
/** @internal */
|
|
60
54
|
export const PaymentGateway$inboundSchema: z.ZodNativeEnum<
|
|
61
55
|
typeof PaymentGateway
|
|
@@ -440,65 +434,3 @@ export function createOrderResponseBodyFromJSON(
|
|
|
440
434
|
`Failed to parse 'CreateOrderResponseBody' from JSON`,
|
|
441
435
|
);
|
|
442
436
|
}
|
|
443
|
-
|
|
444
|
-
/** @internal */
|
|
445
|
-
export const CreateOrderResponse$inboundSchema: z.ZodType<
|
|
446
|
-
CreateOrderResponse,
|
|
447
|
-
z.ZodTypeDef,
|
|
448
|
-
unknown
|
|
449
|
-
> = z.union([
|
|
450
|
-
z.lazy(() => CreateOrderResponseBody$inboundSchema),
|
|
451
|
-
components.Unauthorized$inboundSchema,
|
|
452
|
-
components.NotFound$inboundSchema,
|
|
453
|
-
components.BadRequest$inboundSchema,
|
|
454
|
-
]);
|
|
455
|
-
|
|
456
|
-
/** @internal */
|
|
457
|
-
export type CreateOrderResponse$Outbound =
|
|
458
|
-
| CreateOrderResponseBody$Outbound
|
|
459
|
-
| components.Unauthorized$Outbound
|
|
460
|
-
| components.NotFound$Outbound
|
|
461
|
-
| components.BadRequest$Outbound;
|
|
462
|
-
|
|
463
|
-
/** @internal */
|
|
464
|
-
export const CreateOrderResponse$outboundSchema: z.ZodType<
|
|
465
|
-
CreateOrderResponse$Outbound,
|
|
466
|
-
z.ZodTypeDef,
|
|
467
|
-
CreateOrderResponse
|
|
468
|
-
> = z.union([
|
|
469
|
-
z.lazy(() => CreateOrderResponseBody$outboundSchema),
|
|
470
|
-
components.Unauthorized$outboundSchema,
|
|
471
|
-
components.NotFound$outboundSchema,
|
|
472
|
-
components.BadRequest$outboundSchema,
|
|
473
|
-
]);
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* @internal
|
|
477
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
478
|
-
*/
|
|
479
|
-
export namespace CreateOrderResponse$ {
|
|
480
|
-
/** @deprecated use `CreateOrderResponse$inboundSchema` instead. */
|
|
481
|
-
export const inboundSchema = CreateOrderResponse$inboundSchema;
|
|
482
|
-
/** @deprecated use `CreateOrderResponse$outboundSchema` instead. */
|
|
483
|
-
export const outboundSchema = CreateOrderResponse$outboundSchema;
|
|
484
|
-
/** @deprecated use `CreateOrderResponse$Outbound` instead. */
|
|
485
|
-
export type Outbound = CreateOrderResponse$Outbound;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
export function createOrderResponseToJSON(
|
|
489
|
-
createOrderResponse: CreateOrderResponse,
|
|
490
|
-
): string {
|
|
491
|
-
return JSON.stringify(
|
|
492
|
-
CreateOrderResponse$outboundSchema.parse(createOrderResponse),
|
|
493
|
-
);
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
export function createOrderResponseFromJSON(
|
|
497
|
-
jsonString: string,
|
|
498
|
-
): SafeParseResult<CreateOrderResponse, SDKValidationError> {
|
|
499
|
-
return safeParse(
|
|
500
|
-
jsonString,
|
|
501
|
-
(x) => CreateOrderResponse$inboundSchema.parse(JSON.parse(x)),
|
|
502
|
-
`Failed to parse 'CreateOrderResponse' from JSON`,
|
|
503
|
-
);
|
|
504
|
-
}
|