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
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
RequestTimeoutError,
|
|
20
20
|
UnexpectedClientError,
|
|
21
21
|
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
22
23
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
24
|
import * as operations from "../models/operations/index.js";
|
|
24
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -36,7 +37,8 @@ export function catalogSearchProducts(
|
|
|
36
37
|
options?: RequestOptions,
|
|
37
38
|
): APIPromise<
|
|
38
39
|
Result<
|
|
39
|
-
operations.
|
|
40
|
+
operations.SearchProductsResponseBody,
|
|
41
|
+
| errors.Unauthorized
|
|
40
42
|
| CeError
|
|
41
43
|
| SDKValidationError
|
|
42
44
|
| UnexpectedClientError
|
|
@@ -60,7 +62,8 @@ async function $do(
|
|
|
60
62
|
): Promise<
|
|
61
63
|
[
|
|
62
64
|
Result<
|
|
63
|
-
operations.
|
|
65
|
+
operations.SearchProductsResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
64
67
|
| CeError
|
|
65
68
|
| SDKValidationError
|
|
66
69
|
| UnexpectedClientError
|
|
@@ -124,7 +127,7 @@ async function $do(
|
|
|
124
127
|
|
|
125
128
|
const doResult = await client._do(req, {
|
|
126
129
|
context,
|
|
127
|
-
errorCodes: [],
|
|
130
|
+
errorCodes: ["401", "4XX", "5XX"],
|
|
128
131
|
retryConfig: context.retryConfig,
|
|
129
132
|
retryCodes: context.retryCodes,
|
|
130
133
|
});
|
|
@@ -133,8 +136,13 @@ async function $do(
|
|
|
133
136
|
}
|
|
134
137
|
const response = doResult.value;
|
|
135
138
|
|
|
139
|
+
const responseFields = {
|
|
140
|
+
HttpMeta: { Response: response, Request: req },
|
|
141
|
+
};
|
|
142
|
+
|
|
136
143
|
const [result] = await M.match<
|
|
137
|
-
operations.
|
|
144
|
+
operations.SearchProductsResponseBody,
|
|
145
|
+
| errors.Unauthorized
|
|
138
146
|
| CeError
|
|
139
147
|
| SDKValidationError
|
|
140
148
|
| UnexpectedClientError
|
|
@@ -143,9 +151,11 @@ async function $do(
|
|
|
143
151
|
| RequestTimeoutError
|
|
144
152
|
| ConnectionError
|
|
145
153
|
>(
|
|
146
|
-
M.json(200, operations.
|
|
147
|
-
M.
|
|
148
|
-
|
|
154
|
+
M.json(200, operations.SearchProductsResponseBody$inboundSchema),
|
|
155
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
156
|
+
M.fail("4XX"),
|
|
157
|
+
M.fail("5XX"),
|
|
158
|
+
)(response, { extraFields: responseFields });
|
|
149
159
|
if (!result.ok) {
|
|
150
160
|
return [result, { status: "complete", request: req, response }];
|
|
151
161
|
}
|
|
@@ -140,7 +140,7 @@ async function $do(
|
|
|
140
140
|
|
|
141
141
|
const doResult = await client._do(req, {
|
|
142
142
|
context,
|
|
143
|
-
errorCodes: [],
|
|
143
|
+
errorCodes: ["4XX", "5XX"],
|
|
144
144
|
retryConfig: context.retryConfig,
|
|
145
145
|
retryCodes: context.retryCodes,
|
|
146
146
|
});
|
|
@@ -160,6 +160,8 @@ async function $do(
|
|
|
160
160
|
| ConnectionError
|
|
161
161
|
>(
|
|
162
162
|
M.json(200, operations.ListCountryPincodesResponseBody$inboundSchema),
|
|
163
|
+
M.fail("4XX"),
|
|
164
|
+
M.fail("5XX"),
|
|
163
165
|
)(response);
|
|
164
166
|
if (!result.ok) {
|
|
165
167
|
return [result, { status: "complete", request: req, response }];
|
|
@@ -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 customersCreateAddress(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.CreateAddressResponseBody,
|
|
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.CreateAddressResponseBody,
|
|
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", "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.CreateAddressResponseBody,
|
|
153
|
+
| errors.BadRequest
|
|
154
|
+
| errors.Unauthorized
|
|
144
155
|
| CeError
|
|
145
156
|
| SDKValidationError
|
|
146
157
|
| UnexpectedClientError
|
|
@@ -149,10 +160,12 @@ async function $do(
|
|
|
149
160
|
| RequestTimeoutError
|
|
150
161
|
| ConnectionError
|
|
151
162
|
>(
|
|
152
|
-
M.json(200, operations.
|
|
153
|
-
M.
|
|
154
|
-
M.
|
|
155
|
-
|
|
163
|
+
M.json(200, operations.CreateAddressResponseBody$inboundSchema),
|
|
164
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
165
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
166
|
+
M.fail("4XX"),
|
|
167
|
+
M.fail("5XX"),
|
|
168
|
+
)(response, { extraFields: responseFields });
|
|
156
169
|
if (!result.ok) {
|
|
157
170
|
return [result, { status: "complete", request: req, response }];
|
|
158
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 customersDeleteAddress(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.DeleteAddressResponseBody,
|
|
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.DeleteAddressResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -135,7 +140,7 @@ async function $do(
|
|
|
135
140
|
|
|
136
141
|
const doResult = await client._do(req, {
|
|
137
142
|
context,
|
|
138
|
-
errorCodes: [],
|
|
143
|
+
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
139
144
|
retryConfig: context.retryConfig,
|
|
140
145
|
retryCodes: context.retryCodes,
|
|
141
146
|
});
|
|
@@ -144,8 +149,14 @@ async function $do(
|
|
|
144
149
|
}
|
|
145
150
|
const response = doResult.value;
|
|
146
151
|
|
|
152
|
+
const responseFields = {
|
|
153
|
+
HttpMeta: { Response: response, Request: req },
|
|
154
|
+
};
|
|
155
|
+
|
|
147
156
|
const [result] = await M.match<
|
|
148
|
-
operations.
|
|
157
|
+
operations.DeleteAddressResponseBody,
|
|
158
|
+
| errors.Unauthorized
|
|
159
|
+
| errors.NotFound
|
|
149
160
|
| CeError
|
|
150
161
|
| SDKValidationError
|
|
151
162
|
| UnexpectedClientError
|
|
@@ -154,10 +165,12 @@ async function $do(
|
|
|
154
165
|
| RequestTimeoutError
|
|
155
166
|
| ConnectionError
|
|
156
167
|
>(
|
|
157
|
-
M.json(200, operations.
|
|
158
|
-
M.
|
|
159
|
-
M.
|
|
160
|
-
|
|
168
|
+
M.json(200, operations.DeleteAddressResponseBody$inboundSchema),
|
|
169
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
170
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
171
|
+
M.fail("4XX"),
|
|
172
|
+
M.fail("5XX"),
|
|
173
|
+
)(response, { extraFields: responseFields });
|
|
161
174
|
if (!result.ok) {
|
|
162
175
|
return [result, { status: "complete", request: req, response }];
|
|
163
176
|
}
|
|
@@ -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 customersGetAddressDetail(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.GetAddressDetailResponseBody,
|
|
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.GetAddressDetailResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -135,7 +140,7 @@ async function $do(
|
|
|
135
140
|
|
|
136
141
|
const doResult = await client._do(req, {
|
|
137
142
|
context,
|
|
138
|
-
errorCodes: [],
|
|
143
|
+
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
139
144
|
retryConfig: context.retryConfig,
|
|
140
145
|
retryCodes: context.retryCodes,
|
|
141
146
|
});
|
|
@@ -144,8 +149,14 @@ async function $do(
|
|
|
144
149
|
}
|
|
145
150
|
const response = doResult.value;
|
|
146
151
|
|
|
152
|
+
const responseFields = {
|
|
153
|
+
HttpMeta: { Response: response, Request: req },
|
|
154
|
+
};
|
|
155
|
+
|
|
147
156
|
const [result] = await M.match<
|
|
148
|
-
operations.
|
|
157
|
+
operations.GetAddressDetailResponseBody,
|
|
158
|
+
| errors.Unauthorized
|
|
159
|
+
| errors.NotFound
|
|
149
160
|
| CeError
|
|
150
161
|
| SDKValidationError
|
|
151
162
|
| UnexpectedClientError
|
|
@@ -154,10 +165,12 @@ async function $do(
|
|
|
154
165
|
| RequestTimeoutError
|
|
155
166
|
| ConnectionError
|
|
156
167
|
>(
|
|
157
|
-
M.json(200, operations.
|
|
158
|
-
M.
|
|
159
|
-
M.
|
|
160
|
-
|
|
168
|
+
M.json(200, operations.GetAddressDetailResponseBody$inboundSchema),
|
|
169
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
170
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
171
|
+
M.fail("4XX"),
|
|
172
|
+
M.fail("5XX"),
|
|
173
|
+
)(response, { extraFields: responseFields });
|
|
161
174
|
if (!result.ok) {
|
|
162
175
|
return [result, { status: "complete", request: req, response }];
|
|
163
176
|
}
|
|
@@ -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 customersGetLoyaltyDetails(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.GetLoyaltyDetailsResponseBody,
|
|
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.GetLoyaltyDetailsResponseBody,
|
|
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.GetLoyaltyDetailsResponseBody,
|
|
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.GetLoyaltyDetailsResponseBody$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
|
}
|
|
@@ -135,7 +135,7 @@ async function $do(
|
|
|
135
135
|
|
|
136
136
|
const doResult = await client._do(req, {
|
|
137
137
|
context,
|
|
138
|
-
errorCodes: [],
|
|
138
|
+
errorCodes: ["4XX", "5XX"],
|
|
139
139
|
retryConfig: context.retryConfig,
|
|
140
140
|
retryCodes: context.retryCodes,
|
|
141
141
|
});
|
|
@@ -155,6 +155,8 @@ async function $do(
|
|
|
155
155
|
| ConnectionError
|
|
156
156
|
>(
|
|
157
157
|
M.json(200, operations.ListAddressesResponseBody$inboundSchema),
|
|
158
|
+
M.fail("4XX"),
|
|
159
|
+
M.fail("5XX"),
|
|
158
160
|
)(response);
|
|
159
161
|
if (!result.ok) {
|
|
160
162
|
return [result, { status: "complete", request: req, response }];
|
|
@@ -129,7 +129,7 @@ async function $do(
|
|
|
129
129
|
|
|
130
130
|
const doResult = await client._do(req, {
|
|
131
131
|
context,
|
|
132
|
-
errorCodes: [],
|
|
132
|
+
errorCodes: ["4XX", "5XX"],
|
|
133
133
|
retryConfig: context.retryConfig,
|
|
134
134
|
retryCodes: context.retryCodes,
|
|
135
135
|
});
|
|
@@ -149,6 +149,8 @@ async function $do(
|
|
|
149
149
|
| ConnectionError
|
|
150
150
|
>(
|
|
151
151
|
M.json(200, operations.ListUserReviewsResponseBody$inboundSchema),
|
|
152
|
+
M.fail("4XX"),
|
|
153
|
+
M.fail("5XX"),
|
|
152
154
|
)(response);
|
|
153
155
|
if (!result.ok) {
|
|
154
156
|
return [result, { status: "complete", request: req, response }];
|
|
@@ -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 customersUpdateAddressDetail(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.UpdateAddressDetailResponseBody,
|
|
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.UpdateAddressDetailResponseBody,
|
|
67
|
+
| errors.BadRequest
|
|
68
|
+
| errors.Unauthorized
|
|
69
|
+
| errors.NotFound
|
|
63
70
|
| CeError
|
|
64
71
|
| SDKValidationError
|
|
65
72
|
| UnexpectedClientError
|
|
@@ -137,7 +144,7 @@ async function $do(
|
|
|
137
144
|
|
|
138
145
|
const doResult = await client._do(req, {
|
|
139
146
|
context,
|
|
140
|
-
errorCodes: [],
|
|
147
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
141
148
|
retryConfig: context.retryConfig,
|
|
142
149
|
retryCodes: context.retryCodes,
|
|
143
150
|
});
|
|
@@ -146,8 +153,15 @@ async function $do(
|
|
|
146
153
|
}
|
|
147
154
|
const response = doResult.value;
|
|
148
155
|
|
|
156
|
+
const responseFields = {
|
|
157
|
+
HttpMeta: { Response: response, Request: req },
|
|
158
|
+
};
|
|
159
|
+
|
|
149
160
|
const [result] = await M.match<
|
|
150
|
-
operations.
|
|
161
|
+
operations.UpdateAddressDetailResponseBody,
|
|
162
|
+
| errors.BadRequest
|
|
163
|
+
| errors.Unauthorized
|
|
164
|
+
| errors.NotFound
|
|
151
165
|
| CeError
|
|
152
166
|
| SDKValidationError
|
|
153
167
|
| UnexpectedClientError
|
|
@@ -156,11 +170,13 @@ async function $do(
|
|
|
156
170
|
| RequestTimeoutError
|
|
157
171
|
| ConnectionError
|
|
158
172
|
>(
|
|
159
|
-
M.json(200, operations.
|
|
160
|
-
M.
|
|
161
|
-
M.
|
|
162
|
-
M.
|
|
163
|
-
|
|
173
|
+
M.json(200, operations.UpdateAddressDetailResponseBody$inboundSchema),
|
|
174
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
175
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
176
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
177
|
+
M.fail("4XX"),
|
|
178
|
+
M.fail("5XX"),
|
|
179
|
+
)(response, { extraFields: responseFields });
|
|
164
180
|
if (!result.ok) {
|
|
165
181
|
return [result, { status: "complete", request: req, response }];
|
|
166
182
|
}
|
|
@@ -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 ordersCancelOrder(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.CancelOrderResponseBody,
|
|
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.CancelOrderResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
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: ["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.CancelOrderResponseBody,
|
|
153
|
+
| errors.Unauthorized
|
|
154
|
+
| errors.NotFound
|
|
144
155
|
| CeError
|
|
145
156
|
| SDKValidationError
|
|
146
157
|
| UnexpectedClientError
|
|
@@ -149,10 +160,12 @@ async function $do(
|
|
|
149
160
|
| RequestTimeoutError
|
|
150
161
|
| ConnectionError
|
|
151
162
|
>(
|
|
152
|
-
M.json(200, operations.
|
|
153
|
-
M.
|
|
154
|
-
M.
|
|
155
|
-
|
|
163
|
+
M.json(200, operations.CancelOrderResponseBody$inboundSchema),
|
|
164
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
165
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
166
|
+
M.fail("4XX"),
|
|
167
|
+
M.fail("5XX"),
|
|
168
|
+
)(response, { extraFields: responseFields });
|
|
156
169
|
if (!result.ok) {
|
|
157
170
|
return [result, { status: "complete", request: req, response }];
|
|
158
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,10 @@ export function ordersCreateOrder(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.CreateOrderResponseBody,
|
|
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.CreateOrderResponseBody,
|
|
67
|
+
| errors.BadRequest
|
|
68
|
+
| errors.Unauthorized
|
|
69
|
+
| errors.NotFound
|
|
63
70
|
| CeError
|
|
64
71
|
| SDKValidationError
|
|
65
72
|
| UnexpectedClientError
|
|
@@ -123,7 +130,7 @@ async function $do(
|
|
|
123
130
|
|
|
124
131
|
const doResult = await client._do(req, {
|
|
125
132
|
context,
|
|
126
|
-
errorCodes: [],
|
|
133
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
127
134
|
retryConfig: context.retryConfig,
|
|
128
135
|
retryCodes: context.retryCodes,
|
|
129
136
|
});
|
|
@@ -132,8 +139,15 @@ async function $do(
|
|
|
132
139
|
}
|
|
133
140
|
const response = doResult.value;
|
|
134
141
|
|
|
142
|
+
const responseFields = {
|
|
143
|
+
HttpMeta: { Response: response, Request: req },
|
|
144
|
+
};
|
|
145
|
+
|
|
135
146
|
const [result] = await M.match<
|
|
136
|
-
operations.
|
|
147
|
+
operations.CreateOrderResponseBody,
|
|
148
|
+
| errors.BadRequest
|
|
149
|
+
| errors.Unauthorized
|
|
150
|
+
| errors.NotFound
|
|
137
151
|
| CeError
|
|
138
152
|
| SDKValidationError
|
|
139
153
|
| UnexpectedClientError
|
|
@@ -142,11 +156,13 @@ async function $do(
|
|
|
142
156
|
| RequestTimeoutError
|
|
143
157
|
| ConnectionError
|
|
144
158
|
>(
|
|
145
|
-
M.json(200, operations.
|
|
146
|
-
M.
|
|
147
|
-
M.
|
|
148
|
-
M.
|
|
149
|
-
|
|
159
|
+
M.json(200, operations.CreateOrderResponseBody$inboundSchema),
|
|
160
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
161
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
162
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
163
|
+
M.fail("4XX"),
|
|
164
|
+
M.fail("5XX"),
|
|
165
|
+
)(response, { extraFields: responseFields });
|
|
150
166
|
if (!result.ok) {
|
|
151
167
|
return [result, { status: "complete", request: req, response }];
|
|
152
168
|
}
|