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,9 @@ export function catalogGetProductDetail(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.GetProductDetailResponseBody,
|
|
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.GetProductDetailResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -134,7 +139,7 @@ async function $do(
|
|
|
134
139
|
|
|
135
140
|
const doResult = await client._do(req, {
|
|
136
141
|
context,
|
|
137
|
-
errorCodes: [],
|
|
142
|
+
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
138
143
|
retryConfig: context.retryConfig,
|
|
139
144
|
retryCodes: context.retryCodes,
|
|
140
145
|
});
|
|
@@ -143,8 +148,14 @@ async function $do(
|
|
|
143
148
|
}
|
|
144
149
|
const response = doResult.value;
|
|
145
150
|
|
|
151
|
+
const responseFields = {
|
|
152
|
+
HttpMeta: { Response: response, Request: req },
|
|
153
|
+
};
|
|
154
|
+
|
|
146
155
|
const [result] = await M.match<
|
|
147
|
-
operations.
|
|
156
|
+
operations.GetProductDetailResponseBody,
|
|
157
|
+
| errors.Unauthorized
|
|
158
|
+
| errors.NotFound
|
|
148
159
|
| CeError
|
|
149
160
|
| SDKValidationError
|
|
150
161
|
| UnexpectedClientError
|
|
@@ -153,10 +164,12 @@ async function $do(
|
|
|
153
164
|
| RequestTimeoutError
|
|
154
165
|
| ConnectionError
|
|
155
166
|
>(
|
|
156
|
-
M.json(200, operations.
|
|
157
|
-
M.
|
|
158
|
-
M.
|
|
159
|
-
|
|
167
|
+
M.json(200, operations.GetProductDetailResponseBody$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 });
|
|
160
173
|
if (!result.ok) {
|
|
161
174
|
return [result, { status: "complete", request: req, response }];
|
|
162
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 catalogGetVariantDetail(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.GetVariantDetailResponseBody,
|
|
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.GetVariantDetailResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -140,7 +145,7 @@ async function $do(
|
|
|
140
145
|
|
|
141
146
|
const doResult = await client._do(req, {
|
|
142
147
|
context,
|
|
143
|
-
errorCodes: [],
|
|
148
|
+
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
144
149
|
retryConfig: context.retryConfig,
|
|
145
150
|
retryCodes: context.retryCodes,
|
|
146
151
|
});
|
|
@@ -149,8 +154,14 @@ async function $do(
|
|
|
149
154
|
}
|
|
150
155
|
const response = doResult.value;
|
|
151
156
|
|
|
157
|
+
const responseFields = {
|
|
158
|
+
HttpMeta: { Response: response, Request: req },
|
|
159
|
+
};
|
|
160
|
+
|
|
152
161
|
const [result] = await M.match<
|
|
153
|
-
operations.
|
|
162
|
+
operations.GetVariantDetailResponseBody,
|
|
163
|
+
| errors.Unauthorized
|
|
164
|
+
| errors.NotFound
|
|
154
165
|
| CeError
|
|
155
166
|
| SDKValidationError
|
|
156
167
|
| UnexpectedClientError
|
|
@@ -159,10 +170,12 @@ async function $do(
|
|
|
159
170
|
| RequestTimeoutError
|
|
160
171
|
| ConnectionError
|
|
161
172
|
>(
|
|
162
|
-
M.json(200, operations.
|
|
163
|
-
M.
|
|
164
|
-
M.
|
|
165
|
-
|
|
173
|
+
M.json(200, operations.GetVariantDetailResponseBody$inboundSchema),
|
|
174
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
175
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
176
|
+
M.fail("4XX"),
|
|
177
|
+
M.fail("5XX"),
|
|
178
|
+
)(response, { extraFields: responseFields });
|
|
166
179
|
if (!result.ok) {
|
|
167
180
|
return [result, { status: "complete", request: req, response }];
|
|
168
181
|
}
|
|
@@ -130,7 +130,7 @@ async function $do(
|
|
|
130
130
|
|
|
131
131
|
const doResult = await client._do(req, {
|
|
132
132
|
context,
|
|
133
|
-
errorCodes: [],
|
|
133
|
+
errorCodes: ["4XX", "5XX"],
|
|
134
134
|
retryConfig: context.retryConfig,
|
|
135
135
|
retryCodes: context.retryCodes,
|
|
136
136
|
});
|
|
@@ -150,6 +150,8 @@ async function $do(
|
|
|
150
150
|
| ConnectionError
|
|
151
151
|
>(
|
|
152
152
|
M.json(200, operations.ListCategoriesResponseBody$inboundSchema),
|
|
153
|
+
M.fail("4XX"),
|
|
154
|
+
M.fail("5XX"),
|
|
153
155
|
)(response);
|
|
154
156
|
if (!result.ok) {
|
|
155
157
|
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 catalogListCrosssellProducts(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.ListCrosssellProductsResponseBody,
|
|
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.ListCrosssellProductsResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
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: ["401", "404", "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.ListCrosssellProductsResponseBody,
|
|
154
|
+
| errors.Unauthorized
|
|
155
|
+
| errors.NotFound
|
|
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.ListCrosssellProductsResponseBody$inboundSchema),
|
|
165
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
166
|
+
M.jsonErr(404, errors.NotFound$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 catalogListProductReviews(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.ListProductReviewsResponseBody,
|
|
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.ListProductReviewsResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -138,7 +143,7 @@ async function $do(
|
|
|
138
143
|
|
|
139
144
|
const doResult = await client._do(req, {
|
|
140
145
|
context,
|
|
141
|
-
errorCodes: [],
|
|
146
|
+
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
142
147
|
retryConfig: context.retryConfig,
|
|
143
148
|
retryCodes: context.retryCodes,
|
|
144
149
|
});
|
|
@@ -147,8 +152,14 @@ async function $do(
|
|
|
147
152
|
}
|
|
148
153
|
const response = doResult.value;
|
|
149
154
|
|
|
155
|
+
const responseFields = {
|
|
156
|
+
HttpMeta: { Response: response, Request: req },
|
|
157
|
+
};
|
|
158
|
+
|
|
150
159
|
const [result] = await M.match<
|
|
151
|
-
operations.
|
|
160
|
+
operations.ListProductReviewsResponseBody,
|
|
161
|
+
| errors.Unauthorized
|
|
162
|
+
| errors.NotFound
|
|
152
163
|
| CeError
|
|
153
164
|
| SDKValidationError
|
|
154
165
|
| UnexpectedClientError
|
|
@@ -157,10 +168,12 @@ async function $do(
|
|
|
157
168
|
| RequestTimeoutError
|
|
158
169
|
| ConnectionError
|
|
159
170
|
>(
|
|
160
|
-
M.json(200, operations.
|
|
161
|
-
M.
|
|
162
|
-
M.
|
|
163
|
-
|
|
171
|
+
M.json(200, operations.ListProductReviewsResponseBody$inboundSchema),
|
|
172
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
173
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
174
|
+
M.fail("4XX"),
|
|
175
|
+
M.fail("5XX"),
|
|
176
|
+
)(response, { extraFields: responseFields });
|
|
164
177
|
if (!result.ok) {
|
|
165
178
|
return [result, { status: "complete", request: req, response }];
|
|
166
179
|
}
|
|
@@ -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 catalogListProductVariants(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.ListProductVariantsResponseBody,
|
|
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.ListProductVariantsResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -137,7 +142,7 @@ async function $do(
|
|
|
137
142
|
|
|
138
143
|
const doResult = await client._do(req, {
|
|
139
144
|
context,
|
|
140
|
-
errorCodes: [],
|
|
145
|
+
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
141
146
|
retryConfig: context.retryConfig,
|
|
142
147
|
retryCodes: context.retryCodes,
|
|
143
148
|
});
|
|
@@ -146,8 +151,14 @@ async function $do(
|
|
|
146
151
|
}
|
|
147
152
|
const response = doResult.value;
|
|
148
153
|
|
|
154
|
+
const responseFields = {
|
|
155
|
+
HttpMeta: { Response: response, Request: req },
|
|
156
|
+
};
|
|
157
|
+
|
|
149
158
|
const [result] = await M.match<
|
|
150
|
-
operations.
|
|
159
|
+
operations.ListProductVariantsResponseBody,
|
|
160
|
+
| errors.Unauthorized
|
|
161
|
+
| errors.NotFound
|
|
151
162
|
| CeError
|
|
152
163
|
| SDKValidationError
|
|
153
164
|
| UnexpectedClientError
|
|
@@ -156,10 +167,12 @@ async function $do(
|
|
|
156
167
|
| RequestTimeoutError
|
|
157
168
|
| ConnectionError
|
|
158
169
|
>(
|
|
159
|
-
M.json(200, operations.
|
|
160
|
-
M.
|
|
161
|
-
M.
|
|
162
|
-
|
|
170
|
+
M.json(200, operations.ListProductVariantsResponseBody$inboundSchema),
|
|
171
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
172
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
173
|
+
M.fail("4XX"),
|
|
174
|
+
M.fail("5XX"),
|
|
175
|
+
)(response, { extraFields: responseFields });
|
|
163
176
|
if (!result.ok) {
|
|
164
177
|
return [result, { status: "complete", request: req, response }];
|
|
165
178
|
}
|
|
@@ -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 catalogListProducts(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.ListProductsResponseBody,
|
|
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.ListProductsResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
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: ["401", "404", "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.ListProductsResponseBody,
|
|
154
|
+
| errors.Unauthorized
|
|
155
|
+
| errors.NotFound
|
|
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.ListProductsResponseBody$inboundSchema),
|
|
165
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
166
|
+
M.jsonErr(404, errors.NotFound$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 catalogListSimilarProducts(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.ListSimilarProductsResponseBody,
|
|
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.ListSimilarProductsResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
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: ["401", "404", "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.ListSimilarProductsResponseBody,
|
|
154
|
+
| errors.Unauthorized
|
|
155
|
+
| errors.NotFound
|
|
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.ListSimilarProductsResponseBody$inboundSchema),
|
|
165
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
166
|
+
M.jsonErr(404, errors.NotFound$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 catalogListSkus(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.ListSkusResponseBody,
|
|
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.ListSkusResponseBody,
|
|
66
|
+
| errors.Unauthorized
|
|
67
|
+
| errors.NotFound
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -132,7 +137,7 @@ async function $do(
|
|
|
132
137
|
|
|
133
138
|
const doResult = await client._do(req, {
|
|
134
139
|
context,
|
|
135
|
-
errorCodes: [],
|
|
140
|
+
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
136
141
|
retryConfig: context.retryConfig,
|
|
137
142
|
retryCodes: context.retryCodes,
|
|
138
143
|
});
|
|
@@ -141,8 +146,14 @@ async function $do(
|
|
|
141
146
|
}
|
|
142
147
|
const response = doResult.value;
|
|
143
148
|
|
|
149
|
+
const responseFields = {
|
|
150
|
+
HttpMeta: { Response: response, Request: req },
|
|
151
|
+
};
|
|
152
|
+
|
|
144
153
|
const [result] = await M.match<
|
|
145
|
-
operations.
|
|
154
|
+
operations.ListSkusResponseBody,
|
|
155
|
+
| errors.Unauthorized
|
|
156
|
+
| errors.NotFound
|
|
146
157
|
| CeError
|
|
147
158
|
| SDKValidationError
|
|
148
159
|
| UnexpectedClientError
|
|
@@ -151,10 +162,12 @@ async function $do(
|
|
|
151
162
|
| RequestTimeoutError
|
|
152
163
|
| ConnectionError
|
|
153
164
|
>(
|
|
154
|
-
M.json(200, operations.
|
|
155
|
-
M.
|
|
156
|
-
M.
|
|
157
|
-
|
|
165
|
+
M.json(200, operations.ListSkusResponseBody$inboundSchema),
|
|
166
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
167
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
168
|
+
M.fail("4XX"),
|
|
169
|
+
M.fail("5XX"),
|
|
170
|
+
)(response, { extraFields: responseFields });
|
|
158
171
|
if (!result.ok) {
|
|
159
172
|
return [result, { status: "complete", request: req, response }];
|
|
160
173
|
}
|
|
@@ -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 catalogListUpsellProducts(
|
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
|
-
operations.
|
|
39
|
+
operations.ListUpsellProductsResponseBody,
|
|
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.ListUpsellProductsResponseBody,
|
|
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.ListUpsellProductsResponseBody,
|
|
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.ListUpsellProductsResponseBody$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
|
}
|