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
|
@@ -6,7 +6,6 @@ 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";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
12
11
|
export type DeleteAddressRequest = {
|
|
@@ -28,11 +27,6 @@ export type DeleteAddressResponseBody = {
|
|
|
28
27
|
success?: boolean | undefined;
|
|
29
28
|
};
|
|
30
29
|
|
|
31
|
-
export type DeleteAddressResponse =
|
|
32
|
-
| DeleteAddressResponseBody
|
|
33
|
-
| components.Unauthorized
|
|
34
|
-
| components.NotFound;
|
|
35
|
-
|
|
36
30
|
/** @internal */
|
|
37
31
|
export const DeleteAddressRequest$inboundSchema: z.ZodType<
|
|
38
32
|
DeleteAddressRequest,
|
|
@@ -156,62 +150,3 @@ export function deleteAddressResponseBodyFromJSON(
|
|
|
156
150
|
`Failed to parse 'DeleteAddressResponseBody' from JSON`,
|
|
157
151
|
);
|
|
158
152
|
}
|
|
159
|
-
|
|
160
|
-
/** @internal */
|
|
161
|
-
export const DeleteAddressResponse$inboundSchema: z.ZodType<
|
|
162
|
-
DeleteAddressResponse,
|
|
163
|
-
z.ZodTypeDef,
|
|
164
|
-
unknown
|
|
165
|
-
> = z.union([
|
|
166
|
-
z.lazy(() => DeleteAddressResponseBody$inboundSchema),
|
|
167
|
-
components.Unauthorized$inboundSchema,
|
|
168
|
-
components.NotFound$inboundSchema,
|
|
169
|
-
]);
|
|
170
|
-
|
|
171
|
-
/** @internal */
|
|
172
|
-
export type DeleteAddressResponse$Outbound =
|
|
173
|
-
| DeleteAddressResponseBody$Outbound
|
|
174
|
-
| components.Unauthorized$Outbound
|
|
175
|
-
| components.NotFound$Outbound;
|
|
176
|
-
|
|
177
|
-
/** @internal */
|
|
178
|
-
export const DeleteAddressResponse$outboundSchema: z.ZodType<
|
|
179
|
-
DeleteAddressResponse$Outbound,
|
|
180
|
-
z.ZodTypeDef,
|
|
181
|
-
DeleteAddressResponse
|
|
182
|
-
> = z.union([
|
|
183
|
-
z.lazy(() => DeleteAddressResponseBody$outboundSchema),
|
|
184
|
-
components.Unauthorized$outboundSchema,
|
|
185
|
-
components.NotFound$outboundSchema,
|
|
186
|
-
]);
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* @internal
|
|
190
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
191
|
-
*/
|
|
192
|
-
export namespace DeleteAddressResponse$ {
|
|
193
|
-
/** @deprecated use `DeleteAddressResponse$inboundSchema` instead. */
|
|
194
|
-
export const inboundSchema = DeleteAddressResponse$inboundSchema;
|
|
195
|
-
/** @deprecated use `DeleteAddressResponse$outboundSchema` instead. */
|
|
196
|
-
export const outboundSchema = DeleteAddressResponse$outboundSchema;
|
|
197
|
-
/** @deprecated use `DeleteAddressResponse$Outbound` instead. */
|
|
198
|
-
export type Outbound = DeleteAddressResponse$Outbound;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
export function deleteAddressResponseToJSON(
|
|
202
|
-
deleteAddressResponse: DeleteAddressResponse,
|
|
203
|
-
): string {
|
|
204
|
-
return JSON.stringify(
|
|
205
|
-
DeleteAddressResponse$outboundSchema.parse(deleteAddressResponse),
|
|
206
|
-
);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export function deleteAddressResponseFromJSON(
|
|
210
|
-
jsonString: string,
|
|
211
|
-
): SafeParseResult<DeleteAddressResponse, SDKValidationError> {
|
|
212
|
-
return safeParse(
|
|
213
|
-
jsonString,
|
|
214
|
-
(x) => DeleteAddressResponse$inboundSchema.parse(JSON.parse(x)),
|
|
215
|
-
`Failed to parse 'DeleteAddressResponse' from JSON`,
|
|
216
|
-
);
|
|
217
|
-
}
|
|
@@ -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 DeleteCartRequest = {
|
|
@@ -23,11 +22,6 @@ export type DeleteCartResponseBody = {
|
|
|
23
22
|
success: boolean;
|
|
24
23
|
};
|
|
25
24
|
|
|
26
|
-
export type DeleteCartResponse =
|
|
27
|
-
| DeleteCartResponseBody
|
|
28
|
-
| components.Unauthorized
|
|
29
|
-
| components.NotFound;
|
|
30
|
-
|
|
31
25
|
/** @internal */
|
|
32
26
|
export const DeleteCartRequest$inboundSchema: z.ZodType<
|
|
33
27
|
DeleteCartRequest,
|
|
@@ -138,62 +132,3 @@ export function deleteCartResponseBodyFromJSON(
|
|
|
138
132
|
`Failed to parse 'DeleteCartResponseBody' from JSON`,
|
|
139
133
|
);
|
|
140
134
|
}
|
|
141
|
-
|
|
142
|
-
/** @internal */
|
|
143
|
-
export const DeleteCartResponse$inboundSchema: z.ZodType<
|
|
144
|
-
DeleteCartResponse,
|
|
145
|
-
z.ZodTypeDef,
|
|
146
|
-
unknown
|
|
147
|
-
> = z.union([
|
|
148
|
-
z.lazy(() => DeleteCartResponseBody$inboundSchema),
|
|
149
|
-
components.Unauthorized$inboundSchema,
|
|
150
|
-
components.NotFound$inboundSchema,
|
|
151
|
-
]);
|
|
152
|
-
|
|
153
|
-
/** @internal */
|
|
154
|
-
export type DeleteCartResponse$Outbound =
|
|
155
|
-
| DeleteCartResponseBody$Outbound
|
|
156
|
-
| components.Unauthorized$Outbound
|
|
157
|
-
| components.NotFound$Outbound;
|
|
158
|
-
|
|
159
|
-
/** @internal */
|
|
160
|
-
export const DeleteCartResponse$outboundSchema: z.ZodType<
|
|
161
|
-
DeleteCartResponse$Outbound,
|
|
162
|
-
z.ZodTypeDef,
|
|
163
|
-
DeleteCartResponse
|
|
164
|
-
> = z.union([
|
|
165
|
-
z.lazy(() => DeleteCartResponseBody$outboundSchema),
|
|
166
|
-
components.Unauthorized$outboundSchema,
|
|
167
|
-
components.NotFound$outboundSchema,
|
|
168
|
-
]);
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* @internal
|
|
172
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
173
|
-
*/
|
|
174
|
-
export namespace DeleteCartResponse$ {
|
|
175
|
-
/** @deprecated use `DeleteCartResponse$inboundSchema` instead. */
|
|
176
|
-
export const inboundSchema = DeleteCartResponse$inboundSchema;
|
|
177
|
-
/** @deprecated use `DeleteCartResponse$outboundSchema` instead. */
|
|
178
|
-
export const outboundSchema = DeleteCartResponse$outboundSchema;
|
|
179
|
-
/** @deprecated use `DeleteCartResponse$Outbound` instead. */
|
|
180
|
-
export type Outbound = DeleteCartResponse$Outbound;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export function deleteCartResponseToJSON(
|
|
184
|
-
deleteCartResponse: DeleteCartResponse,
|
|
185
|
-
): string {
|
|
186
|
-
return JSON.stringify(
|
|
187
|
-
DeleteCartResponse$outboundSchema.parse(deleteCartResponse),
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export function deleteCartResponseFromJSON(
|
|
192
|
-
jsonString: string,
|
|
193
|
-
): SafeParseResult<DeleteCartResponse, SDKValidationError> {
|
|
194
|
-
return safeParse(
|
|
195
|
-
jsonString,
|
|
196
|
-
(x) => DeleteCartResponse$inboundSchema.parse(JSON.parse(x)),
|
|
197
|
-
`Failed to parse 'DeleteCartResponse' from JSON`,
|
|
198
|
-
);
|
|
199
|
-
}
|
|
@@ -6,7 +6,6 @@ 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";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
12
11
|
export type DeleteUserCartRequest = {
|
|
@@ -24,11 +23,6 @@ export type DeleteUserCartResponseBody = {
|
|
|
24
23
|
success: boolean;
|
|
25
24
|
};
|
|
26
25
|
|
|
27
|
-
export type DeleteUserCartResponse =
|
|
28
|
-
| DeleteUserCartResponseBody
|
|
29
|
-
| components.Unauthorized
|
|
30
|
-
| components.NotFound;
|
|
31
|
-
|
|
32
26
|
/** @internal */
|
|
33
27
|
export const DeleteUserCartRequest$inboundSchema: z.ZodType<
|
|
34
28
|
DeleteUserCartRequest,
|
|
@@ -147,62 +141,3 @@ export function deleteUserCartResponseBodyFromJSON(
|
|
|
147
141
|
`Failed to parse 'DeleteUserCartResponseBody' from JSON`,
|
|
148
142
|
);
|
|
149
143
|
}
|
|
150
|
-
|
|
151
|
-
/** @internal */
|
|
152
|
-
export const DeleteUserCartResponse$inboundSchema: z.ZodType<
|
|
153
|
-
DeleteUserCartResponse,
|
|
154
|
-
z.ZodTypeDef,
|
|
155
|
-
unknown
|
|
156
|
-
> = z.union([
|
|
157
|
-
z.lazy(() => DeleteUserCartResponseBody$inboundSchema),
|
|
158
|
-
components.Unauthorized$inboundSchema,
|
|
159
|
-
components.NotFound$inboundSchema,
|
|
160
|
-
]);
|
|
161
|
-
|
|
162
|
-
/** @internal */
|
|
163
|
-
export type DeleteUserCartResponse$Outbound =
|
|
164
|
-
| DeleteUserCartResponseBody$Outbound
|
|
165
|
-
| components.Unauthorized$Outbound
|
|
166
|
-
| components.NotFound$Outbound;
|
|
167
|
-
|
|
168
|
-
/** @internal */
|
|
169
|
-
export const DeleteUserCartResponse$outboundSchema: z.ZodType<
|
|
170
|
-
DeleteUserCartResponse$Outbound,
|
|
171
|
-
z.ZodTypeDef,
|
|
172
|
-
DeleteUserCartResponse
|
|
173
|
-
> = z.union([
|
|
174
|
-
z.lazy(() => DeleteUserCartResponseBody$outboundSchema),
|
|
175
|
-
components.Unauthorized$outboundSchema,
|
|
176
|
-
components.NotFound$outboundSchema,
|
|
177
|
-
]);
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* @internal
|
|
181
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
182
|
-
*/
|
|
183
|
-
export namespace DeleteUserCartResponse$ {
|
|
184
|
-
/** @deprecated use `DeleteUserCartResponse$inboundSchema` instead. */
|
|
185
|
-
export const inboundSchema = DeleteUserCartResponse$inboundSchema;
|
|
186
|
-
/** @deprecated use `DeleteUserCartResponse$outboundSchema` instead. */
|
|
187
|
-
export const outboundSchema = DeleteUserCartResponse$outboundSchema;
|
|
188
|
-
/** @deprecated use `DeleteUserCartResponse$Outbound` instead. */
|
|
189
|
-
export type Outbound = DeleteUserCartResponse$Outbound;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export function deleteUserCartResponseToJSON(
|
|
193
|
-
deleteUserCartResponse: DeleteUserCartResponse,
|
|
194
|
-
): string {
|
|
195
|
-
return JSON.stringify(
|
|
196
|
-
DeleteUserCartResponse$outboundSchema.parse(deleteUserCartResponse),
|
|
197
|
-
);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export function deleteUserCartResponseFromJSON(
|
|
201
|
-
jsonString: string,
|
|
202
|
-
): SafeParseResult<DeleteUserCartResponse, SDKValidationError> {
|
|
203
|
-
return safeParse(
|
|
204
|
-
jsonString,
|
|
205
|
-
(x) => DeleteUserCartResponse$inboundSchema.parse(JSON.parse(x)),
|
|
206
|
-
`Failed to parse 'DeleteUserCartResponse' from JSON`,
|
|
207
|
-
);
|
|
208
|
-
}
|
|
@@ -6,7 +6,6 @@ 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";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
12
11
|
export type GetAddressDetailRequest = {
|
|
@@ -72,11 +71,6 @@ export type GetAddressDetailResponseBody = {
|
|
|
72
71
|
content?: GetAddressDetailContent | undefined;
|
|
73
72
|
};
|
|
74
73
|
|
|
75
|
-
export type GetAddressDetailResponse =
|
|
76
|
-
| GetAddressDetailResponseBody
|
|
77
|
-
| components.Unauthorized
|
|
78
|
-
| components.NotFound;
|
|
79
|
-
|
|
80
74
|
/** @internal */
|
|
81
75
|
export const GetAddressDetailRequest$inboundSchema: z.ZodType<
|
|
82
76
|
GetAddressDetailRequest,
|
|
@@ -388,62 +382,3 @@ export function getAddressDetailResponseBodyFromJSON(
|
|
|
388
382
|
`Failed to parse 'GetAddressDetailResponseBody' from JSON`,
|
|
389
383
|
);
|
|
390
384
|
}
|
|
391
|
-
|
|
392
|
-
/** @internal */
|
|
393
|
-
export const GetAddressDetailResponse$inboundSchema: z.ZodType<
|
|
394
|
-
GetAddressDetailResponse,
|
|
395
|
-
z.ZodTypeDef,
|
|
396
|
-
unknown
|
|
397
|
-
> = z.union([
|
|
398
|
-
z.lazy(() => GetAddressDetailResponseBody$inboundSchema),
|
|
399
|
-
components.Unauthorized$inboundSchema,
|
|
400
|
-
components.NotFound$inboundSchema,
|
|
401
|
-
]);
|
|
402
|
-
|
|
403
|
-
/** @internal */
|
|
404
|
-
export type GetAddressDetailResponse$Outbound =
|
|
405
|
-
| GetAddressDetailResponseBody$Outbound
|
|
406
|
-
| components.Unauthorized$Outbound
|
|
407
|
-
| components.NotFound$Outbound;
|
|
408
|
-
|
|
409
|
-
/** @internal */
|
|
410
|
-
export const GetAddressDetailResponse$outboundSchema: z.ZodType<
|
|
411
|
-
GetAddressDetailResponse$Outbound,
|
|
412
|
-
z.ZodTypeDef,
|
|
413
|
-
GetAddressDetailResponse
|
|
414
|
-
> = z.union([
|
|
415
|
-
z.lazy(() => GetAddressDetailResponseBody$outboundSchema),
|
|
416
|
-
components.Unauthorized$outboundSchema,
|
|
417
|
-
components.NotFound$outboundSchema,
|
|
418
|
-
]);
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* @internal
|
|
422
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
423
|
-
*/
|
|
424
|
-
export namespace GetAddressDetailResponse$ {
|
|
425
|
-
/** @deprecated use `GetAddressDetailResponse$inboundSchema` instead. */
|
|
426
|
-
export const inboundSchema = GetAddressDetailResponse$inboundSchema;
|
|
427
|
-
/** @deprecated use `GetAddressDetailResponse$outboundSchema` instead. */
|
|
428
|
-
export const outboundSchema = GetAddressDetailResponse$outboundSchema;
|
|
429
|
-
/** @deprecated use `GetAddressDetailResponse$Outbound` instead. */
|
|
430
|
-
export type Outbound = GetAddressDetailResponse$Outbound;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
export function getAddressDetailResponseToJSON(
|
|
434
|
-
getAddressDetailResponse: GetAddressDetailResponse,
|
|
435
|
-
): string {
|
|
436
|
-
return JSON.stringify(
|
|
437
|
-
GetAddressDetailResponse$outboundSchema.parse(getAddressDetailResponse),
|
|
438
|
-
);
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
export function getAddressDetailResponseFromJSON(
|
|
442
|
-
jsonString: string,
|
|
443
|
-
): SafeParseResult<GetAddressDetailResponse, SDKValidationError> {
|
|
444
|
-
return safeParse(
|
|
445
|
-
jsonString,
|
|
446
|
-
(x) => GetAddressDetailResponse$inboundSchema.parse(JSON.parse(x)),
|
|
447
|
-
`Failed to parse 'GetAddressDetailResponse' from JSON`,
|
|
448
|
-
);
|
|
449
|
-
}
|
|
@@ -31,11 +31,6 @@ export type GetCartResponseBody = {
|
|
|
31
31
|
content: GetCartContent;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
export type GetCartResponse =
|
|
35
|
-
| GetCartResponseBody
|
|
36
|
-
| components.Unauthorized
|
|
37
|
-
| components.NotFound;
|
|
38
|
-
|
|
39
34
|
/** @internal */
|
|
40
35
|
export const GetCartRequest$inboundSchema: z.ZodType<
|
|
41
36
|
GetCartRequest,
|
|
@@ -195,60 +190,3 @@ export function getCartResponseBodyFromJSON(
|
|
|
195
190
|
`Failed to parse 'GetCartResponseBody' from JSON`,
|
|
196
191
|
);
|
|
197
192
|
}
|
|
198
|
-
|
|
199
|
-
/** @internal */
|
|
200
|
-
export const GetCartResponse$inboundSchema: z.ZodType<
|
|
201
|
-
GetCartResponse,
|
|
202
|
-
z.ZodTypeDef,
|
|
203
|
-
unknown
|
|
204
|
-
> = z.union([
|
|
205
|
-
z.lazy(() => GetCartResponseBody$inboundSchema),
|
|
206
|
-
components.Unauthorized$inboundSchema,
|
|
207
|
-
components.NotFound$inboundSchema,
|
|
208
|
-
]);
|
|
209
|
-
|
|
210
|
-
/** @internal */
|
|
211
|
-
export type GetCartResponse$Outbound =
|
|
212
|
-
| GetCartResponseBody$Outbound
|
|
213
|
-
| components.Unauthorized$Outbound
|
|
214
|
-
| components.NotFound$Outbound;
|
|
215
|
-
|
|
216
|
-
/** @internal */
|
|
217
|
-
export const GetCartResponse$outboundSchema: z.ZodType<
|
|
218
|
-
GetCartResponse$Outbound,
|
|
219
|
-
z.ZodTypeDef,
|
|
220
|
-
GetCartResponse
|
|
221
|
-
> = z.union([
|
|
222
|
-
z.lazy(() => GetCartResponseBody$outboundSchema),
|
|
223
|
-
components.Unauthorized$outboundSchema,
|
|
224
|
-
components.NotFound$outboundSchema,
|
|
225
|
-
]);
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* @internal
|
|
229
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
230
|
-
*/
|
|
231
|
-
export namespace GetCartResponse$ {
|
|
232
|
-
/** @deprecated use `GetCartResponse$inboundSchema` instead. */
|
|
233
|
-
export const inboundSchema = GetCartResponse$inboundSchema;
|
|
234
|
-
/** @deprecated use `GetCartResponse$outboundSchema` instead. */
|
|
235
|
-
export const outboundSchema = GetCartResponse$outboundSchema;
|
|
236
|
-
/** @deprecated use `GetCartResponse$Outbound` instead. */
|
|
237
|
-
export type Outbound = GetCartResponse$Outbound;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export function getCartResponseToJSON(
|
|
241
|
-
getCartResponse: GetCartResponse,
|
|
242
|
-
): string {
|
|
243
|
-
return JSON.stringify(GetCartResponse$outboundSchema.parse(getCartResponse));
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
export function getCartResponseFromJSON(
|
|
247
|
-
jsonString: string,
|
|
248
|
-
): SafeParseResult<GetCartResponse, SDKValidationError> {
|
|
249
|
-
return safeParse(
|
|
250
|
-
jsonString,
|
|
251
|
-
(x) => GetCartResponse$inboundSchema.parse(JSON.parse(x)),
|
|
252
|
-
`Failed to parse 'GetCartResponse' from JSON`,
|
|
253
|
-
);
|
|
254
|
-
}
|
|
@@ -30,11 +30,6 @@ export type GetLoyaltyDetailsResponseBody = {
|
|
|
30
30
|
content?: GetLoyaltyDetailsContent | undefined;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
export type GetLoyaltyDetailsResponse =
|
|
34
|
-
| GetLoyaltyDetailsResponseBody
|
|
35
|
-
| components.Unauthorized
|
|
36
|
-
| components.NotFound;
|
|
37
|
-
|
|
38
33
|
/** @internal */
|
|
39
34
|
export const GetLoyaltyDetailsRequest$inboundSchema: z.ZodType<
|
|
40
35
|
GetLoyaltyDetailsRequest,
|
|
@@ -223,62 +218,3 @@ export function getLoyaltyDetailsResponseBodyFromJSON(
|
|
|
223
218
|
`Failed to parse 'GetLoyaltyDetailsResponseBody' from JSON`,
|
|
224
219
|
);
|
|
225
220
|
}
|
|
226
|
-
|
|
227
|
-
/** @internal */
|
|
228
|
-
export const GetLoyaltyDetailsResponse$inboundSchema: z.ZodType<
|
|
229
|
-
GetLoyaltyDetailsResponse,
|
|
230
|
-
z.ZodTypeDef,
|
|
231
|
-
unknown
|
|
232
|
-
> = z.union([
|
|
233
|
-
z.lazy(() => GetLoyaltyDetailsResponseBody$inboundSchema),
|
|
234
|
-
components.Unauthorized$inboundSchema,
|
|
235
|
-
components.NotFound$inboundSchema,
|
|
236
|
-
]);
|
|
237
|
-
|
|
238
|
-
/** @internal */
|
|
239
|
-
export type GetLoyaltyDetailsResponse$Outbound =
|
|
240
|
-
| GetLoyaltyDetailsResponseBody$Outbound
|
|
241
|
-
| components.Unauthorized$Outbound
|
|
242
|
-
| components.NotFound$Outbound;
|
|
243
|
-
|
|
244
|
-
/** @internal */
|
|
245
|
-
export const GetLoyaltyDetailsResponse$outboundSchema: z.ZodType<
|
|
246
|
-
GetLoyaltyDetailsResponse$Outbound,
|
|
247
|
-
z.ZodTypeDef,
|
|
248
|
-
GetLoyaltyDetailsResponse
|
|
249
|
-
> = z.union([
|
|
250
|
-
z.lazy(() => GetLoyaltyDetailsResponseBody$outboundSchema),
|
|
251
|
-
components.Unauthorized$outboundSchema,
|
|
252
|
-
components.NotFound$outboundSchema,
|
|
253
|
-
]);
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* @internal
|
|
257
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
258
|
-
*/
|
|
259
|
-
export namespace GetLoyaltyDetailsResponse$ {
|
|
260
|
-
/** @deprecated use `GetLoyaltyDetailsResponse$inboundSchema` instead. */
|
|
261
|
-
export const inboundSchema = GetLoyaltyDetailsResponse$inboundSchema;
|
|
262
|
-
/** @deprecated use `GetLoyaltyDetailsResponse$outboundSchema` instead. */
|
|
263
|
-
export const outboundSchema = GetLoyaltyDetailsResponse$outboundSchema;
|
|
264
|
-
/** @deprecated use `GetLoyaltyDetailsResponse$Outbound` instead. */
|
|
265
|
-
export type Outbound = GetLoyaltyDetailsResponse$Outbound;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export function getLoyaltyDetailsResponseToJSON(
|
|
269
|
-
getLoyaltyDetailsResponse: GetLoyaltyDetailsResponse,
|
|
270
|
-
): string {
|
|
271
|
-
return JSON.stringify(
|
|
272
|
-
GetLoyaltyDetailsResponse$outboundSchema.parse(getLoyaltyDetailsResponse),
|
|
273
|
-
);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export function getLoyaltyDetailsResponseFromJSON(
|
|
277
|
-
jsonString: string,
|
|
278
|
-
): SafeParseResult<GetLoyaltyDetailsResponse, SDKValidationError> {
|
|
279
|
-
return safeParse(
|
|
280
|
-
jsonString,
|
|
281
|
-
(x) => GetLoyaltyDetailsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
282
|
-
`Failed to parse 'GetLoyaltyDetailsResponse' from JSON`,
|
|
283
|
-
);
|
|
284
|
-
}
|
|
@@ -29,11 +29,6 @@ export type GetOrderDetailResponseBody = {
|
|
|
29
29
|
content: GetOrderDetailContent;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
export type GetOrderDetailResponse =
|
|
33
|
-
| GetOrderDetailResponseBody
|
|
34
|
-
| components.Unauthorized
|
|
35
|
-
| components.NotFound;
|
|
36
|
-
|
|
37
32
|
/** @internal */
|
|
38
33
|
export const GetOrderDetailRequest$inboundSchema: z.ZodType<
|
|
39
34
|
GetOrderDetailRequest,
|
|
@@ -209,62 +204,3 @@ export function getOrderDetailResponseBodyFromJSON(
|
|
|
209
204
|
`Failed to parse 'GetOrderDetailResponseBody' from JSON`,
|
|
210
205
|
);
|
|
211
206
|
}
|
|
212
|
-
|
|
213
|
-
/** @internal */
|
|
214
|
-
export const GetOrderDetailResponse$inboundSchema: z.ZodType<
|
|
215
|
-
GetOrderDetailResponse,
|
|
216
|
-
z.ZodTypeDef,
|
|
217
|
-
unknown
|
|
218
|
-
> = z.union([
|
|
219
|
-
z.lazy(() => GetOrderDetailResponseBody$inboundSchema),
|
|
220
|
-
components.Unauthorized$inboundSchema,
|
|
221
|
-
components.NotFound$inboundSchema,
|
|
222
|
-
]);
|
|
223
|
-
|
|
224
|
-
/** @internal */
|
|
225
|
-
export type GetOrderDetailResponse$Outbound =
|
|
226
|
-
| GetOrderDetailResponseBody$Outbound
|
|
227
|
-
| components.Unauthorized$Outbound
|
|
228
|
-
| components.NotFound$Outbound;
|
|
229
|
-
|
|
230
|
-
/** @internal */
|
|
231
|
-
export const GetOrderDetailResponse$outboundSchema: z.ZodType<
|
|
232
|
-
GetOrderDetailResponse$Outbound,
|
|
233
|
-
z.ZodTypeDef,
|
|
234
|
-
GetOrderDetailResponse
|
|
235
|
-
> = z.union([
|
|
236
|
-
z.lazy(() => GetOrderDetailResponseBody$outboundSchema),
|
|
237
|
-
components.Unauthorized$outboundSchema,
|
|
238
|
-
components.NotFound$outboundSchema,
|
|
239
|
-
]);
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* @internal
|
|
243
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
244
|
-
*/
|
|
245
|
-
export namespace GetOrderDetailResponse$ {
|
|
246
|
-
/** @deprecated use `GetOrderDetailResponse$inboundSchema` instead. */
|
|
247
|
-
export const inboundSchema = GetOrderDetailResponse$inboundSchema;
|
|
248
|
-
/** @deprecated use `GetOrderDetailResponse$outboundSchema` instead. */
|
|
249
|
-
export const outboundSchema = GetOrderDetailResponse$outboundSchema;
|
|
250
|
-
/** @deprecated use `GetOrderDetailResponse$Outbound` instead. */
|
|
251
|
-
export type Outbound = GetOrderDetailResponse$Outbound;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export function getOrderDetailResponseToJSON(
|
|
255
|
-
getOrderDetailResponse: GetOrderDetailResponse,
|
|
256
|
-
): string {
|
|
257
|
-
return JSON.stringify(
|
|
258
|
-
GetOrderDetailResponse$outboundSchema.parse(getOrderDetailResponse),
|
|
259
|
-
);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export function getOrderDetailResponseFromJSON(
|
|
263
|
-
jsonString: string,
|
|
264
|
-
): SafeParseResult<GetOrderDetailResponse, SDKValidationError> {
|
|
265
|
-
return safeParse(
|
|
266
|
-
jsonString,
|
|
267
|
-
(x) => GetOrderDetailResponse$inboundSchema.parse(JSON.parse(x)),
|
|
268
|
-
`Failed to parse 'GetOrderDetailResponse' from JSON`,
|
|
269
|
-
);
|
|
270
|
-
}
|
|
@@ -33,11 +33,6 @@ export type GetProductDetailResponseBody = {
|
|
|
33
33
|
content: GetProductDetailContent;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
export type GetProductDetailResponse =
|
|
37
|
-
| GetProductDetailResponseBody
|
|
38
|
-
| components.Unauthorized
|
|
39
|
-
| components.NotFound;
|
|
40
|
-
|
|
41
36
|
/** @internal */
|
|
42
37
|
export const GetProductDetailRequest$inboundSchema: z.ZodType<
|
|
43
38
|
GetProductDetailRequest,
|
|
@@ -220,62 +215,3 @@ export function getProductDetailResponseBodyFromJSON(
|
|
|
220
215
|
`Failed to parse 'GetProductDetailResponseBody' from JSON`,
|
|
221
216
|
);
|
|
222
217
|
}
|
|
223
|
-
|
|
224
|
-
/** @internal */
|
|
225
|
-
export const GetProductDetailResponse$inboundSchema: z.ZodType<
|
|
226
|
-
GetProductDetailResponse,
|
|
227
|
-
z.ZodTypeDef,
|
|
228
|
-
unknown
|
|
229
|
-
> = z.union([
|
|
230
|
-
z.lazy(() => GetProductDetailResponseBody$inboundSchema),
|
|
231
|
-
components.Unauthorized$inboundSchema,
|
|
232
|
-
components.NotFound$inboundSchema,
|
|
233
|
-
]);
|
|
234
|
-
|
|
235
|
-
/** @internal */
|
|
236
|
-
export type GetProductDetailResponse$Outbound =
|
|
237
|
-
| GetProductDetailResponseBody$Outbound
|
|
238
|
-
| components.Unauthorized$Outbound
|
|
239
|
-
| components.NotFound$Outbound;
|
|
240
|
-
|
|
241
|
-
/** @internal */
|
|
242
|
-
export const GetProductDetailResponse$outboundSchema: z.ZodType<
|
|
243
|
-
GetProductDetailResponse$Outbound,
|
|
244
|
-
z.ZodTypeDef,
|
|
245
|
-
GetProductDetailResponse
|
|
246
|
-
> = z.union([
|
|
247
|
-
z.lazy(() => GetProductDetailResponseBody$outboundSchema),
|
|
248
|
-
components.Unauthorized$outboundSchema,
|
|
249
|
-
components.NotFound$outboundSchema,
|
|
250
|
-
]);
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* @internal
|
|
254
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
255
|
-
*/
|
|
256
|
-
export namespace GetProductDetailResponse$ {
|
|
257
|
-
/** @deprecated use `GetProductDetailResponse$inboundSchema` instead. */
|
|
258
|
-
export const inboundSchema = GetProductDetailResponse$inboundSchema;
|
|
259
|
-
/** @deprecated use `GetProductDetailResponse$outboundSchema` instead. */
|
|
260
|
-
export const outboundSchema = GetProductDetailResponse$outboundSchema;
|
|
261
|
-
/** @deprecated use `GetProductDetailResponse$Outbound` instead. */
|
|
262
|
-
export type Outbound = GetProductDetailResponse$Outbound;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export function getProductDetailResponseToJSON(
|
|
266
|
-
getProductDetailResponse: GetProductDetailResponse,
|
|
267
|
-
): string {
|
|
268
|
-
return JSON.stringify(
|
|
269
|
-
GetProductDetailResponse$outboundSchema.parse(getProductDetailResponse),
|
|
270
|
-
);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
export function getProductDetailResponseFromJSON(
|
|
274
|
-
jsonString: string,
|
|
275
|
-
): SafeParseResult<GetProductDetailResponse, SDKValidationError> {
|
|
276
|
-
return safeParse(
|
|
277
|
-
jsonString,
|
|
278
|
-
(x) => GetProductDetailResponse$inboundSchema.parse(JSON.parse(x)),
|
|
279
|
-
`Failed to parse 'GetProductDetailResponse' from JSON`,
|
|
280
|
-
);
|
|
281
|
-
}
|
|
@@ -32,11 +32,6 @@ export type GetUserCartResponseBody = {
|
|
|
32
32
|
content: GetUserCartContent;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
export type GetUserCartResponse =
|
|
36
|
-
| GetUserCartResponseBody
|
|
37
|
-
| components.Unauthorized
|
|
38
|
-
| components.NotFound;
|
|
39
|
-
|
|
40
35
|
/** @internal */
|
|
41
36
|
export const GetUserCartRequest$inboundSchema: z.ZodType<
|
|
42
37
|
GetUserCartRequest,
|
|
@@ -212,62 +207,3 @@ export function getUserCartResponseBodyFromJSON(
|
|
|
212
207
|
`Failed to parse 'GetUserCartResponseBody' from JSON`,
|
|
213
208
|
);
|
|
214
209
|
}
|
|
215
|
-
|
|
216
|
-
/** @internal */
|
|
217
|
-
export const GetUserCartResponse$inboundSchema: z.ZodType<
|
|
218
|
-
GetUserCartResponse,
|
|
219
|
-
z.ZodTypeDef,
|
|
220
|
-
unknown
|
|
221
|
-
> = z.union([
|
|
222
|
-
z.lazy(() => GetUserCartResponseBody$inboundSchema),
|
|
223
|
-
components.Unauthorized$inboundSchema,
|
|
224
|
-
components.NotFound$inboundSchema,
|
|
225
|
-
]);
|
|
226
|
-
|
|
227
|
-
/** @internal */
|
|
228
|
-
export type GetUserCartResponse$Outbound =
|
|
229
|
-
| GetUserCartResponseBody$Outbound
|
|
230
|
-
| components.Unauthorized$Outbound
|
|
231
|
-
| components.NotFound$Outbound;
|
|
232
|
-
|
|
233
|
-
/** @internal */
|
|
234
|
-
export const GetUserCartResponse$outboundSchema: z.ZodType<
|
|
235
|
-
GetUserCartResponse$Outbound,
|
|
236
|
-
z.ZodTypeDef,
|
|
237
|
-
GetUserCartResponse
|
|
238
|
-
> = z.union([
|
|
239
|
-
z.lazy(() => GetUserCartResponseBody$outboundSchema),
|
|
240
|
-
components.Unauthorized$outboundSchema,
|
|
241
|
-
components.NotFound$outboundSchema,
|
|
242
|
-
]);
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* @internal
|
|
246
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
247
|
-
*/
|
|
248
|
-
export namespace GetUserCartResponse$ {
|
|
249
|
-
/** @deprecated use `GetUserCartResponse$inboundSchema` instead. */
|
|
250
|
-
export const inboundSchema = GetUserCartResponse$inboundSchema;
|
|
251
|
-
/** @deprecated use `GetUserCartResponse$outboundSchema` instead. */
|
|
252
|
-
export const outboundSchema = GetUserCartResponse$outboundSchema;
|
|
253
|
-
/** @deprecated use `GetUserCartResponse$Outbound` instead. */
|
|
254
|
-
export type Outbound = GetUserCartResponse$Outbound;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export function getUserCartResponseToJSON(
|
|
258
|
-
getUserCartResponse: GetUserCartResponse,
|
|
259
|
-
): string {
|
|
260
|
-
return JSON.stringify(
|
|
261
|
-
GetUserCartResponse$outboundSchema.parse(getUserCartResponse),
|
|
262
|
-
);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export function getUserCartResponseFromJSON(
|
|
266
|
-
jsonString: string,
|
|
267
|
-
): SafeParseResult<GetUserCartResponse, SDKValidationError> {
|
|
268
|
-
return safeParse(
|
|
269
|
-
jsonString,
|
|
270
|
-
(x) => GetUserCartResponse$inboundSchema.parse(JSON.parse(x)),
|
|
271
|
-
`Failed to parse 'GetUserCartResponse' from JSON`,
|
|
272
|
-
);
|
|
273
|
-
}
|