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
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -35,7 +36,10 @@ export function cartsCreateCartAddress(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.CreateCartAddressResponseBody,
|
|
40
|
+
| errors.BadRequest
|
|
41
|
+
| errors.Unauthorized
|
|
42
|
+
| errors.NotFound
|
|
39
43
|
| CeError
|
|
40
44
|
| SDKValidationError
|
|
41
45
|
| UnexpectedClientError
|
|
@@ -59,7 +63,10 @@ async function $do(
|
|
|
59
63
|
): Promise<
|
|
60
64
|
[
|
|
61
65
|
Result<
|
|
62
|
-
operations.
|
|
66
|
+
operations.CreateCartAddressResponseBody,
|
|
67
|
+
| errors.BadRequest
|
|
68
|
+
| errors.Unauthorized
|
|
69
|
+
| errors.NotFound
|
|
63
70
|
| CeError
|
|
64
71
|
| SDKValidationError
|
|
65
72
|
| UnexpectedClientError
|
|
@@ -130,7 +137,7 @@ async function $do(
|
|
|
130
137
|
|
|
131
138
|
const doResult = await client._do(req, {
|
|
132
139
|
context,
|
|
133
|
-
errorCodes: [],
|
|
140
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
134
141
|
retryConfig: context.retryConfig,
|
|
135
142
|
retryCodes: context.retryCodes,
|
|
136
143
|
});
|
|
@@ -139,8 +146,15 @@ async function $do(
|
|
|
139
146
|
}
|
|
140
147
|
const response = doResult.value;
|
|
141
148
|
|
|
149
|
+
const responseFields = {
|
|
150
|
+
HttpMeta: { Response: response, Request: req },
|
|
151
|
+
};
|
|
152
|
+
|
|
142
153
|
const [result] = await M.match<
|
|
143
|
-
operations.
|
|
154
|
+
operations.CreateCartAddressResponseBody,
|
|
155
|
+
| errors.BadRequest
|
|
156
|
+
| errors.Unauthorized
|
|
157
|
+
| errors.NotFound
|
|
144
158
|
| CeError
|
|
145
159
|
| SDKValidationError
|
|
146
160
|
| UnexpectedClientError
|
|
@@ -149,11 +163,13 @@ async function $do(
|
|
|
149
163
|
| RequestTimeoutError
|
|
150
164
|
| ConnectionError
|
|
151
165
|
>(
|
|
152
|
-
M.json(200, operations.
|
|
153
|
-
M.
|
|
154
|
-
M.
|
|
155
|
-
M.
|
|
156
|
-
|
|
166
|
+
M.json(200, operations.CreateCartAddressResponseBody$inboundSchema),
|
|
167
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
168
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
169
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
170
|
+
M.fail("4XX"),
|
|
171
|
+
M.fail("5XX"),
|
|
172
|
+
)(response, { extraFields: responseFields });
|
|
157
173
|
if (!result.ok) {
|
|
158
174
|
return [result, { status: "complete", request: req, response }];
|
|
159
175
|
}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -35,7 +36,9 @@ export function cartsDeleteCart(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.DeleteCartResponseBody,
|
|
40
|
+
| errors.Unauthorized
|
|
41
|
+
| errors.NotFound
|
|
39
42
|
| CeError
|
|
40
43
|
| SDKValidationError
|
|
41
44
|
| UnexpectedClientError
|
|
@@ -59,7 +62,9 @@ async function $do(
|
|
|
59
62
|
): Promise<
|
|
60
63
|
[
|
|
61
64
|
Result<
|
|
62
|
-
operations.
|
|
65
|
+
operations.DeleteCartResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -129,7 +134,7 @@ async function $do(
|
|
|
129
134
|
|
|
130
135
|
const doResult = await client._do(req, {
|
|
131
136
|
context,
|
|
132
|
-
errorCodes: [],
|
|
137
|
+
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
133
138
|
retryConfig: context.retryConfig,
|
|
134
139
|
retryCodes: context.retryCodes,
|
|
135
140
|
});
|
|
@@ -138,8 +143,14 @@ async function $do(
|
|
|
138
143
|
}
|
|
139
144
|
const response = doResult.value;
|
|
140
145
|
|
|
146
|
+
const responseFields = {
|
|
147
|
+
HttpMeta: { Response: response, Request: req },
|
|
148
|
+
};
|
|
149
|
+
|
|
141
150
|
const [result] = await M.match<
|
|
142
|
-
operations.
|
|
151
|
+
operations.DeleteCartResponseBody,
|
|
152
|
+
| errors.Unauthorized
|
|
153
|
+
| errors.NotFound
|
|
143
154
|
| CeError
|
|
144
155
|
| SDKValidationError
|
|
145
156
|
| UnexpectedClientError
|
|
@@ -148,10 +159,12 @@ async function $do(
|
|
|
148
159
|
| RequestTimeoutError
|
|
149
160
|
| ConnectionError
|
|
150
161
|
>(
|
|
151
|
-
M.json(200, operations.
|
|
152
|
-
M.
|
|
153
|
-
M.
|
|
154
|
-
|
|
162
|
+
M.json(200, operations.DeleteCartResponseBody$inboundSchema),
|
|
163
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
164
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
165
|
+
M.fail("4XX"),
|
|
166
|
+
M.fail("5XX"),
|
|
167
|
+
)(response, { extraFields: responseFields });
|
|
155
168
|
if (!result.ok) {
|
|
156
169
|
return [result, { status: "complete", request: req, response }];
|
|
157
170
|
}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -35,7 +36,9 @@ export function cartsGetCart(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.GetCartResponseBody,
|
|
40
|
+
| errors.Unauthorized
|
|
41
|
+
| errors.NotFound
|
|
39
42
|
| CeError
|
|
40
43
|
| SDKValidationError
|
|
41
44
|
| UnexpectedClientError
|
|
@@ -59,7 +62,9 @@ async function $do(
|
|
|
59
62
|
): Promise<
|
|
60
63
|
[
|
|
61
64
|
Result<
|
|
62
|
-
operations.
|
|
65
|
+
operations.GetCartResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -129,7 +134,7 @@ async function $do(
|
|
|
129
134
|
|
|
130
135
|
const doResult = await client._do(req, {
|
|
131
136
|
context,
|
|
132
|
-
errorCodes: [],
|
|
137
|
+
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
133
138
|
retryConfig: context.retryConfig,
|
|
134
139
|
retryCodes: context.retryCodes,
|
|
135
140
|
});
|
|
@@ -138,8 +143,14 @@ async function $do(
|
|
|
138
143
|
}
|
|
139
144
|
const response = doResult.value;
|
|
140
145
|
|
|
146
|
+
const responseFields = {
|
|
147
|
+
HttpMeta: { Response: response, Request: req },
|
|
148
|
+
};
|
|
149
|
+
|
|
141
150
|
const [result] = await M.match<
|
|
142
|
-
operations.
|
|
151
|
+
operations.GetCartResponseBody,
|
|
152
|
+
| errors.Unauthorized
|
|
153
|
+
| errors.NotFound
|
|
143
154
|
| CeError
|
|
144
155
|
| SDKValidationError
|
|
145
156
|
| UnexpectedClientError
|
|
@@ -148,10 +159,12 @@ async function $do(
|
|
|
148
159
|
| RequestTimeoutError
|
|
149
160
|
| ConnectionError
|
|
150
161
|
>(
|
|
151
|
-
M.json(200, operations.
|
|
152
|
-
M.
|
|
153
|
-
M.
|
|
154
|
-
|
|
162
|
+
M.json(200, operations.GetCartResponseBody$inboundSchema),
|
|
163
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
164
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
165
|
+
M.fail("4XX"),
|
|
166
|
+
M.fail("5XX"),
|
|
167
|
+
)(response, { extraFields: responseFields });
|
|
155
168
|
if (!result.ok) {
|
|
156
169
|
return [result, { status: "complete", request: req, response }];
|
|
157
170
|
}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -35,7 +36,9 @@ export function cartsGetUserCart(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.GetUserCartResponseBody,
|
|
40
|
+
| errors.Unauthorized
|
|
41
|
+
| errors.NotFound
|
|
39
42
|
| CeError
|
|
40
43
|
| SDKValidationError
|
|
41
44
|
| UnexpectedClientError
|
|
@@ -59,7 +62,9 @@ async function $do(
|
|
|
59
62
|
): Promise<
|
|
60
63
|
[
|
|
61
64
|
Result<
|
|
62
|
-
operations.
|
|
65
|
+
operations.GetUserCartResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -129,7 +134,7 @@ async function $do(
|
|
|
129
134
|
|
|
130
135
|
const doResult = await client._do(req, {
|
|
131
136
|
context,
|
|
132
|
-
errorCodes: [],
|
|
137
|
+
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
133
138
|
retryConfig: context.retryConfig,
|
|
134
139
|
retryCodes: context.retryCodes,
|
|
135
140
|
});
|
|
@@ -138,8 +143,14 @@ async function $do(
|
|
|
138
143
|
}
|
|
139
144
|
const response = doResult.value;
|
|
140
145
|
|
|
146
|
+
const responseFields = {
|
|
147
|
+
HttpMeta: { Response: response, Request: req },
|
|
148
|
+
};
|
|
149
|
+
|
|
141
150
|
const [result] = await M.match<
|
|
142
|
-
operations.
|
|
151
|
+
operations.GetUserCartResponseBody,
|
|
152
|
+
| errors.Unauthorized
|
|
153
|
+
| errors.NotFound
|
|
143
154
|
| CeError
|
|
144
155
|
| SDKValidationError
|
|
145
156
|
| UnexpectedClientError
|
|
@@ -148,10 +159,12 @@ async function $do(
|
|
|
148
159
|
| RequestTimeoutError
|
|
149
160
|
| ConnectionError
|
|
150
161
|
>(
|
|
151
|
-
M.json(200, operations.
|
|
152
|
-
M.
|
|
153
|
-
M.
|
|
154
|
-
|
|
162
|
+
M.json(200, operations.GetUserCartResponseBody$inboundSchema),
|
|
163
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
164
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
165
|
+
M.fail("4XX"),
|
|
166
|
+
M.fail("5XX"),
|
|
167
|
+
)(response, { extraFields: responseFields });
|
|
155
168
|
if (!result.ok) {
|
|
156
169
|
return [result, { status: "complete", request: req, response }];
|
|
157
170
|
}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -35,7 +36,9 @@ export function cartsRedeemLoyaltyPoints(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.RedeemLoyaltyPointsResponseBody,
|
|
40
|
+
| errors.BadRequest
|
|
41
|
+
| errors.Unauthorized
|
|
39
42
|
| CeError
|
|
40
43
|
| SDKValidationError
|
|
41
44
|
| UnexpectedClientError
|
|
@@ -59,7 +62,9 @@ async function $do(
|
|
|
59
62
|
): Promise<
|
|
60
63
|
[
|
|
61
64
|
Result<
|
|
62
|
-
operations.
|
|
65
|
+
operations.RedeemLoyaltyPointsResponseBody,
|
|
66
|
+
| errors.BadRequest
|
|
67
|
+
| errors.Unauthorized
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -131,7 +136,7 @@ async function $do(
|
|
|
131
136
|
|
|
132
137
|
const doResult = await client._do(req, {
|
|
133
138
|
context,
|
|
134
|
-
errorCodes: [],
|
|
139
|
+
errorCodes: ["400", "401", "4XX", "5XX"],
|
|
135
140
|
retryConfig: context.retryConfig,
|
|
136
141
|
retryCodes: context.retryCodes,
|
|
137
142
|
});
|
|
@@ -140,8 +145,14 @@ async function $do(
|
|
|
140
145
|
}
|
|
141
146
|
const response = doResult.value;
|
|
142
147
|
|
|
148
|
+
const responseFields = {
|
|
149
|
+
HttpMeta: { Response: response, Request: req },
|
|
150
|
+
};
|
|
151
|
+
|
|
143
152
|
const [result] = await M.match<
|
|
144
|
-
operations.
|
|
153
|
+
operations.RedeemLoyaltyPointsResponseBody,
|
|
154
|
+
| errors.BadRequest
|
|
155
|
+
| errors.Unauthorized
|
|
145
156
|
| CeError
|
|
146
157
|
| SDKValidationError
|
|
147
158
|
| UnexpectedClientError
|
|
@@ -150,10 +161,12 @@ async function $do(
|
|
|
150
161
|
| RequestTimeoutError
|
|
151
162
|
| ConnectionError
|
|
152
163
|
>(
|
|
153
|
-
M.json(200, operations.
|
|
154
|
-
M.
|
|
155
|
-
M.
|
|
156
|
-
|
|
164
|
+
M.json(200, operations.RedeemLoyaltyPointsResponseBody$inboundSchema),
|
|
165
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
166
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
167
|
+
M.fail("4XX"),
|
|
168
|
+
M.fail("5XX"),
|
|
169
|
+
)(response, { extraFields: responseFields });
|
|
157
170
|
if (!result.ok) {
|
|
158
171
|
return [result, { status: "complete", request: req, response }];
|
|
159
172
|
}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -35,7 +36,9 @@ export function cartsRemoveCoupon(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.RemoveCouponResponseBody,
|
|
40
|
+
| errors.BadRequest
|
|
41
|
+
| errors.Unauthorized
|
|
39
42
|
| CeError
|
|
40
43
|
| SDKValidationError
|
|
41
44
|
| UnexpectedClientError
|
|
@@ -59,7 +62,9 @@ async function $do(
|
|
|
59
62
|
): Promise<
|
|
60
63
|
[
|
|
61
64
|
Result<
|
|
62
|
-
operations.
|
|
65
|
+
operations.RemoveCouponResponseBody,
|
|
66
|
+
| errors.BadRequest
|
|
67
|
+
| errors.Unauthorized
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -129,7 +134,7 @@ async function $do(
|
|
|
129
134
|
|
|
130
135
|
const doResult = await client._do(req, {
|
|
131
136
|
context,
|
|
132
|
-
errorCodes: [],
|
|
137
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
133
138
|
retryConfig: context.retryConfig,
|
|
134
139
|
retryCodes: context.retryCodes,
|
|
135
140
|
});
|
|
@@ -138,8 +143,14 @@ async function $do(
|
|
|
138
143
|
}
|
|
139
144
|
const response = doResult.value;
|
|
140
145
|
|
|
146
|
+
const responseFields = {
|
|
147
|
+
HttpMeta: { Response: response, Request: req },
|
|
148
|
+
};
|
|
149
|
+
|
|
141
150
|
const [result] = await M.match<
|
|
142
|
-
operations.
|
|
151
|
+
operations.RemoveCouponResponseBody,
|
|
152
|
+
| errors.BadRequest
|
|
153
|
+
| errors.Unauthorized
|
|
143
154
|
| CeError
|
|
144
155
|
| SDKValidationError
|
|
145
156
|
| UnexpectedClientError
|
|
@@ -148,11 +159,12 @@ async function $do(
|
|
|
148
159
|
| RequestTimeoutError
|
|
149
160
|
| ConnectionError
|
|
150
161
|
>(
|
|
151
|
-
M.json(200, operations.
|
|
152
|
-
M.
|
|
153
|
-
M.
|
|
154
|
-
M.
|
|
155
|
-
|
|
162
|
+
M.json(200, operations.RemoveCouponResponseBody$inboundSchema),
|
|
163
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
164
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
165
|
+
M.fail([404, "4XX"]),
|
|
166
|
+
M.fail("5XX"),
|
|
167
|
+
)(response, { extraFields: responseFields });
|
|
156
168
|
if (!result.ok) {
|
|
157
169
|
return [result, { status: "complete", request: req, response }];
|
|
158
170
|
}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -35,7 +36,9 @@ export function cartsRemoveLoyaltyPoints(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.RemoveLoyaltyPointsResponseBody,
|
|
40
|
+
| errors.BadRequest
|
|
41
|
+
| errors.Unauthorized
|
|
39
42
|
| CeError
|
|
40
43
|
| SDKValidationError
|
|
41
44
|
| UnexpectedClientError
|
|
@@ -59,7 +62,9 @@ async function $do(
|
|
|
59
62
|
): Promise<
|
|
60
63
|
[
|
|
61
64
|
Result<
|
|
62
|
-
operations.
|
|
65
|
+
operations.RemoveLoyaltyPointsResponseBody,
|
|
66
|
+
| errors.BadRequest
|
|
67
|
+
| errors.Unauthorized
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -130,7 +135,7 @@ async function $do(
|
|
|
130
135
|
|
|
131
136
|
const doResult = await client._do(req, {
|
|
132
137
|
context,
|
|
133
|
-
errorCodes: [],
|
|
138
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
134
139
|
retryConfig: context.retryConfig,
|
|
135
140
|
retryCodes: context.retryCodes,
|
|
136
141
|
});
|
|
@@ -139,8 +144,14 @@ async function $do(
|
|
|
139
144
|
}
|
|
140
145
|
const response = doResult.value;
|
|
141
146
|
|
|
147
|
+
const responseFields = {
|
|
148
|
+
HttpMeta: { Response: response, Request: req },
|
|
149
|
+
};
|
|
150
|
+
|
|
142
151
|
const [result] = await M.match<
|
|
143
|
-
operations.
|
|
152
|
+
operations.RemoveLoyaltyPointsResponseBody,
|
|
153
|
+
| errors.BadRequest
|
|
154
|
+
| errors.Unauthorized
|
|
144
155
|
| CeError
|
|
145
156
|
| SDKValidationError
|
|
146
157
|
| UnexpectedClientError
|
|
@@ -149,20 +160,12 @@ async function $do(
|
|
|
149
160
|
| RequestTimeoutError
|
|
150
161
|
| ConnectionError
|
|
151
162
|
>(
|
|
152
|
-
M.json(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
),
|
|
156
|
-
M.
|
|
157
|
-
|
|
158
|
-
operations.RemoveLoyaltyPointsResponse$inboundSchema.optional(),
|
|
159
|
-
),
|
|
160
|
-
M.json(
|
|
161
|
-
401,
|
|
162
|
-
operations.RemoveLoyaltyPointsResponse$inboundSchema.optional(),
|
|
163
|
-
),
|
|
164
|
-
M.nil(404, operations.RemoveLoyaltyPointsResponse$inboundSchema.optional()),
|
|
165
|
-
)(response);
|
|
163
|
+
M.json(200, operations.RemoveLoyaltyPointsResponseBody$inboundSchema),
|
|
164
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
165
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
166
|
+
M.fail([404, "4XX"]),
|
|
167
|
+
M.fail("5XX"),
|
|
168
|
+
)(response, { extraFields: responseFields });
|
|
166
169
|
if (!result.ok) {
|
|
167
170
|
return [result, { status: "complete", request: req, response }];
|
|
168
171
|
}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -35,7 +36,9 @@ export function cartsRemoveUserCart(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.DeleteUserCartResponseBody,
|
|
40
|
+
| errors.Unauthorized
|
|
41
|
+
| errors.NotFound
|
|
39
42
|
| CeError
|
|
40
43
|
| SDKValidationError
|
|
41
44
|
| UnexpectedClientError
|
|
@@ -59,7 +62,9 @@ async function $do(
|
|
|
59
62
|
): Promise<
|
|
60
63
|
[
|
|
61
64
|
Result<
|
|
62
|
-
operations.
|
|
65
|
+
operations.DeleteUserCartResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -129,7 +134,7 @@ async function $do(
|
|
|
129
134
|
|
|
130
135
|
const doResult = await client._do(req, {
|
|
131
136
|
context,
|
|
132
|
-
errorCodes: [],
|
|
137
|
+
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
133
138
|
retryConfig: context.retryConfig,
|
|
134
139
|
retryCodes: context.retryCodes,
|
|
135
140
|
});
|
|
@@ -138,8 +143,14 @@ async function $do(
|
|
|
138
143
|
}
|
|
139
144
|
const response = doResult.value;
|
|
140
145
|
|
|
146
|
+
const responseFields = {
|
|
147
|
+
HttpMeta: { Response: response, Request: req },
|
|
148
|
+
};
|
|
149
|
+
|
|
141
150
|
const [result] = await M.match<
|
|
142
|
-
operations.
|
|
151
|
+
operations.DeleteUserCartResponseBody,
|
|
152
|
+
| errors.Unauthorized
|
|
153
|
+
| errors.NotFound
|
|
143
154
|
| CeError
|
|
144
155
|
| SDKValidationError
|
|
145
156
|
| UnexpectedClientError
|
|
@@ -148,10 +159,12 @@ async function $do(
|
|
|
148
159
|
| RequestTimeoutError
|
|
149
160
|
| ConnectionError
|
|
150
161
|
>(
|
|
151
|
-
M.json(200, operations.
|
|
152
|
-
M.
|
|
153
|
-
M.
|
|
154
|
-
|
|
162
|
+
M.json(200, operations.DeleteUserCartResponseBody$inboundSchema),
|
|
163
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
164
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
165
|
+
M.fail("4XX"),
|
|
166
|
+
M.fail("5XX"),
|
|
167
|
+
)(response, { extraFields: responseFields });
|
|
155
168
|
if (!result.ok) {
|
|
156
169
|
return [result, { status: "complete", request: req, response }];
|
|
157
170
|
}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -35,7 +36,10 @@ export function cartsUpdateCart(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.UpdateCartResponseBody,
|
|
40
|
+
| errors.BadRequest
|
|
41
|
+
| errors.Unauthorized
|
|
42
|
+
| errors.NotFound
|
|
39
43
|
| CeError
|
|
40
44
|
| SDKValidationError
|
|
41
45
|
| UnexpectedClientError
|
|
@@ -59,7 +63,10 @@ async function $do(
|
|
|
59
63
|
): Promise<
|
|
60
64
|
[
|
|
61
65
|
Result<
|
|
62
|
-
operations.
|
|
66
|
+
operations.UpdateCartResponseBody,
|
|
67
|
+
| errors.BadRequest
|
|
68
|
+
| errors.Unauthorized
|
|
69
|
+
| errors.NotFound
|
|
63
70
|
| CeError
|
|
64
71
|
| SDKValidationError
|
|
65
72
|
| UnexpectedClientError
|
|
@@ -130,7 +137,7 @@ async function $do(
|
|
|
130
137
|
|
|
131
138
|
const doResult = await client._do(req, {
|
|
132
139
|
context,
|
|
133
|
-
errorCodes: [],
|
|
140
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
134
141
|
retryConfig: context.retryConfig,
|
|
135
142
|
retryCodes: context.retryCodes,
|
|
136
143
|
});
|
|
@@ -139,8 +146,15 @@ async function $do(
|
|
|
139
146
|
}
|
|
140
147
|
const response = doResult.value;
|
|
141
148
|
|
|
149
|
+
const responseFields = {
|
|
150
|
+
HttpMeta: { Response: response, Request: req },
|
|
151
|
+
};
|
|
152
|
+
|
|
142
153
|
const [result] = await M.match<
|
|
143
|
-
operations.
|
|
154
|
+
operations.UpdateCartResponseBody,
|
|
155
|
+
| errors.BadRequest
|
|
156
|
+
| errors.Unauthorized
|
|
157
|
+
| errors.NotFound
|
|
144
158
|
| CeError
|
|
145
159
|
| SDKValidationError
|
|
146
160
|
| UnexpectedClientError
|
|
@@ -149,11 +163,13 @@ async function $do(
|
|
|
149
163
|
| RequestTimeoutError
|
|
150
164
|
| ConnectionError
|
|
151
165
|
>(
|
|
152
|
-
M.json(200, operations.
|
|
153
|
-
M.
|
|
154
|
-
M.
|
|
155
|
-
M.
|
|
156
|
-
|
|
166
|
+
M.json(200, operations.UpdateCartResponseBody$inboundSchema),
|
|
167
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
168
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
169
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
170
|
+
M.fail("4XX"),
|
|
171
|
+
M.fail("5XX"),
|
|
172
|
+
)(response, { extraFields: responseFields });
|
|
157
173
|
if (!result.ok) {
|
|
158
174
|
return [result, { status: "complete", request: req, response }];
|
|
159
175
|
}
|