ce-storefront 0.11.2 → 0.11.3
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/docs/sdks/auth/README.md +10 -10
- package/docs/sdks/carts/README.md +12 -12
- package/docs/sdks/catalog/README.md +11 -11
- package/docs/sdks/common/README.md +1 -1
- package/docs/sdks/customers/README.md +7 -7
- package/docs/sdks/orders/README.md +7 -7
- package/docs/sdks/shipping/README.md +2 -2
- package/esm/funcs/authGenerateOtp.d.ts +1 -1
- package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
- package/esm/funcs/authGenerateOtp.js +6 -1
- package/esm/funcs/authGenerateOtp.js.map +1 -1
- package/esm/funcs/authGetAnonymousToken.d.ts +1 -1
- package/esm/funcs/authGetAnonymousToken.d.ts.map +1 -1
- package/esm/funcs/authGetAnonymousToken.js +6 -1
- package/esm/funcs/authGetAnonymousToken.js.map +1 -1
- package/esm/funcs/authGetUserDetail.d.ts +1 -1
- package/esm/funcs/authGetUserDetail.d.ts.map +1 -1
- package/esm/funcs/authGetUserDetail.js +6 -1
- package/esm/funcs/authGetUserDetail.js.map +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
- package/esm/funcs/authLoginWithEmail.js +6 -1
- package/esm/funcs/authLoginWithEmail.js.map +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
- package/esm/funcs/authLoginWithPhone.js +6 -1
- package/esm/funcs/authLoginWithPhone.js.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js +6 -1
- package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
- package/esm/funcs/authLogout.d.ts +1 -1
- package/esm/funcs/authLogout.d.ts.map +1 -1
- package/esm/funcs/authLogout.js +4 -1
- package/esm/funcs/authLogout.js.map +1 -1
- package/esm/funcs/authRefreshToken.d.ts +1 -1
- package/esm/funcs/authRefreshToken.d.ts.map +1 -1
- package/esm/funcs/authRefreshToken.js +6 -1
- package/esm/funcs/authRefreshToken.js.map +1 -1
- package/esm/funcs/authUpdateUser.d.ts +1 -1
- package/esm/funcs/authUpdateUser.d.ts.map +1 -1
- package/esm/funcs/authUpdateUser.js +4 -1
- package/esm/funcs/authUpdateUser.js.map +1 -1
- package/esm/funcs/authVerifyOtp.d.ts +1 -1
- package/esm/funcs/authVerifyOtp.d.ts.map +1 -1
- package/esm/funcs/authVerifyOtp.js +4 -1
- package/esm/funcs/authVerifyOtp.js.map +1 -1
- package/esm/funcs/cartsAddShippingMethod.d.ts +1 -1
- package/esm/funcs/cartsAddShippingMethod.d.ts.map +1 -1
- package/esm/funcs/cartsAddShippingMethod.js +3 -1
- package/esm/funcs/cartsAddShippingMethod.js.map +1 -1
- package/esm/funcs/cartsApplyCoupon.d.ts +1 -1
- package/esm/funcs/cartsApplyCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsApplyCoupon.js +3 -1
- package/esm/funcs/cartsApplyCoupon.js.map +1 -1
- package/esm/funcs/cartsCreateCart.d.ts +1 -1
- package/esm/funcs/cartsCreateCart.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCart.js +4 -1
- package/esm/funcs/cartsCreateCart.js.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts +1 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.js +3 -1
- package/esm/funcs/cartsCreateCartAddress.js.map +1 -1
- package/esm/funcs/cartsDeleteCart.d.ts +1 -1
- package/esm/funcs/cartsDeleteCart.d.ts.map +1 -1
- package/esm/funcs/cartsDeleteCart.js +1 -1
- package/esm/funcs/cartsDeleteCart.js.map +1 -1
- package/esm/funcs/cartsGetCart.d.ts +1 -1
- package/esm/funcs/cartsGetCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetCart.js +1 -1
- package/esm/funcs/cartsGetCart.js.map +1 -1
- package/esm/funcs/cartsGetUserCart.d.ts +1 -1
- package/esm/funcs/cartsGetUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetUserCart.js +3 -1
- package/esm/funcs/cartsGetUserCart.js.map +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.d.ts +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.d.ts.map +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.js +3 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.js.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts +1 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.js +3 -1
- package/esm/funcs/cartsRemoveCoupon.js.map +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.d.ts +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.js +3 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.js.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts +1 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.js +3 -1
- package/esm/funcs/cartsRemoveUserCart.js.map +1 -1
- package/esm/funcs/cartsUpdateCart.d.ts +1 -1
- package/esm/funcs/cartsUpdateCart.d.ts.map +1 -1
- package/esm/funcs/cartsUpdateCart.js +1 -1
- package/esm/funcs/cartsUpdateCart.js.map +1 -1
- package/esm/funcs/catalogGetProductDetail.d.ts +1 -1
- package/esm/funcs/catalogGetProductDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetProductDetail.js +3 -1
- package/esm/funcs/catalogGetProductDetail.js.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts +1 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +3 -1
- package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
- package/esm/funcs/catalogListCategories.d.ts +1 -1
- package/esm/funcs/catalogListCategories.d.ts.map +1 -1
- package/esm/funcs/catalogListCategories.js +6 -1
- package/esm/funcs/catalogListCategories.js.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts +1 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js +3 -1
- package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
- package/esm/funcs/catalogListProductReviews.d.ts +1 -1
- package/esm/funcs/catalogListProductReviews.d.ts.map +1 -1
- package/esm/funcs/catalogListProductReviews.js +3 -1
- package/esm/funcs/catalogListProductReviews.js.map +1 -1
- package/esm/funcs/catalogListProductVariants.d.ts +1 -1
- package/esm/funcs/catalogListProductVariants.d.ts.map +1 -1
- package/esm/funcs/catalogListProductVariants.js +3 -1
- package/esm/funcs/catalogListProductVariants.js.map +1 -1
- package/esm/funcs/catalogListProducts.d.ts +1 -1
- package/esm/funcs/catalogListProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListProducts.js +3 -1
- package/esm/funcs/catalogListProducts.js.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts +1 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.js +3 -1
- package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
- package/esm/funcs/catalogListSkus.d.ts +1 -1
- package/esm/funcs/catalogListSkus.d.ts.map +1 -1
- package/esm/funcs/catalogListSkus.js +1 -1
- package/esm/funcs/catalogListSkus.js.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts +1 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.js +3 -1
- package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
- package/esm/funcs/catalogSearchProducts.d.ts +1 -1
- package/esm/funcs/catalogSearchProducts.d.ts.map +1 -1
- package/esm/funcs/catalogSearchProducts.js +3 -1
- package/esm/funcs/catalogSearchProducts.js.map +1 -1
- package/esm/funcs/commonListCountryPincodes.d.ts +1 -1
- package/esm/funcs/commonListCountryPincodes.d.ts.map +1 -1
- package/esm/funcs/commonListCountryPincodes.js +6 -1
- package/esm/funcs/commonListCountryPincodes.js.map +1 -1
- package/esm/funcs/customersCreateAddress.d.ts +1 -1
- package/esm/funcs/customersCreateAddress.d.ts.map +1 -1
- package/esm/funcs/customersCreateAddress.js +3 -1
- package/esm/funcs/customersCreateAddress.js.map +1 -1
- package/esm/funcs/customersDeleteAddress.d.ts +1 -1
- package/esm/funcs/customersDeleteAddress.d.ts.map +1 -1
- package/esm/funcs/customersDeleteAddress.js +3 -1
- package/esm/funcs/customersDeleteAddress.js.map +1 -1
- package/esm/funcs/customersGetAddressDetail.d.ts +1 -1
- package/esm/funcs/customersGetAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersGetAddressDetail.js +3 -1
- package/esm/funcs/customersGetAddressDetail.js.map +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.d.ts +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.d.ts.map +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.js +3 -1
- package/esm/funcs/customersGetLoyaltyDetails.js.map +1 -1
- package/esm/funcs/customersListAddresses.d.ts +1 -1
- package/esm/funcs/customersListAddresses.d.ts.map +1 -1
- package/esm/funcs/customersListAddresses.js +6 -1
- package/esm/funcs/customersListAddresses.js.map +1 -1
- package/esm/funcs/customersListUserReviews.d.ts +1 -1
- package/esm/funcs/customersListUserReviews.d.ts.map +1 -1
- package/esm/funcs/customersListUserReviews.js +6 -1
- package/esm/funcs/customersListUserReviews.js.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts +1 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.js +3 -1
- package/esm/funcs/customersUpdateAddressDetail.js.map +1 -1
- package/esm/funcs/ordersCancelOrder.d.ts +1 -1
- package/esm/funcs/ordersCancelOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCancelOrder.js +3 -1
- package/esm/funcs/ordersCancelOrder.js.map +1 -1
- package/esm/funcs/ordersCreateOrder.d.ts +1 -1
- package/esm/funcs/ordersCreateOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCreateOrder.js +3 -1
- package/esm/funcs/ordersCreateOrder.js.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts +1 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.js +3 -1
- package/esm/funcs/ordersGetOrderDetail.js.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts +1 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.js +6 -1
- package/esm/funcs/ordersGetPaymentStatus.js.map +1 -1
- package/esm/funcs/ordersListOrderShipments.d.ts +1 -1
- package/esm/funcs/ordersListOrderShipments.d.ts.map +1 -1
- package/esm/funcs/ordersListOrderShipments.js +3 -1
- 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 +4 -1
- package/esm/funcs/ordersListOrders.js.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts +1 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.js +3 -1
- package/esm/funcs/ordersRetryOrderPayment.js.map +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.d.ts +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.d.ts.map +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.js +3 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.js.map +1 -1
- package/esm/funcs/shippingCheckServiceability.d.ts +1 -1
- package/esm/funcs/shippingCheckServiceability.d.ts.map +1 -1
- package/esm/funcs/shippingCheckServiceability.js +6 -1
- 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/lib/matchers.d.ts +1 -1
- package/esm/lib/matchers.d.ts.map +1 -1
- package/esm/lib/matchers.js +10 -11
- package/esm/lib/matchers.js.map +1 -1
- package/esm/models/components/httpmetadata.d.ts +37 -0
- package/esm/models/components/httpmetadata.d.ts.map +1 -0
- package/esm/models/components/httpmetadata.js +48 -0
- package/esm/models/components/httpmetadata.js.map +1 -0
- package/esm/models/components/index.d.ts +1 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +1 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/errors/ceerror.d.ts +8 -5
- package/esm/models/errors/ceerror.d.ts.map +1 -1
- package/esm/models/errors/ceerror.js +3 -9
- package/esm/models/errors/ceerror.js.map +1 -1
- package/esm/models/operations/applycoupon.d.ts +30 -0
- package/esm/models/operations/applycoupon.d.ts.map +1 -1
- package/esm/models/operations/applycoupon.js +35 -0
- package/esm/models/operations/applycoupon.js.map +1 -1
- package/esm/models/operations/cancelorder.d.ts +30 -0
- package/esm/models/operations/cancelorder.d.ts.map +1 -1
- package/esm/models/operations/cancelorder.js +35 -0
- package/esm/models/operations/cancelorder.js.map +1 -1
- package/esm/models/operations/checkdeliveryavailability.d.ts +31 -0
- package/esm/models/operations/checkdeliveryavailability.d.ts.map +1 -1
- package/esm/models/operations/checkdeliveryavailability.js +39 -0
- package/esm/models/operations/checkdeliveryavailability.js.map +1 -1
- package/esm/models/operations/createaddress.d.ts +30 -0
- package/esm/models/operations/createaddress.d.ts.map +1 -1
- package/esm/models/operations/createaddress.js +35 -0
- package/esm/models/operations/createaddress.js.map +1 -1
- package/esm/models/operations/createcart.d.ts +30 -0
- package/esm/models/operations/createcart.d.ts.map +1 -1
- package/esm/models/operations/createcart.js +36 -0
- package/esm/models/operations/createcart.js.map +1 -1
- package/esm/models/operations/createcartaddress.d.ts +30 -0
- package/esm/models/operations/createcartaddress.d.ts.map +1 -1
- package/esm/models/operations/createcartaddress.js +35 -0
- package/esm/models/operations/createcartaddress.js.map +1 -1
- package/esm/models/operations/createorder.d.ts +30 -0
- package/esm/models/operations/createorder.d.ts.map +1 -1
- package/esm/models/operations/createorder.js +35 -0
- package/esm/models/operations/createorder.js.map +1 -1
- package/esm/models/operations/deleteaddress.d.ts +31 -0
- package/esm/models/operations/deleteaddress.d.ts.map +1 -1
- package/esm/models/operations/deleteaddress.js +36 -0
- package/esm/models/operations/deleteaddress.js.map +1 -1
- package/esm/models/operations/deletecart.d.ts +31 -0
- package/esm/models/operations/deletecart.d.ts.map +1 -1
- package/esm/models/operations/deletecart.js +37 -0
- package/esm/models/operations/deletecart.js.map +1 -1
- package/esm/models/operations/deleteusercart.d.ts +31 -0
- package/esm/models/operations/deleteusercart.d.ts.map +1 -1
- package/esm/models/operations/deleteusercart.js +36 -0
- package/esm/models/operations/deleteusercart.js.map +1 -1
- package/esm/models/operations/generateotp.d.ts +31 -0
- package/esm/models/operations/generateotp.d.ts.map +1 -1
- package/esm/models/operations/generateotp.js +36 -0
- package/esm/models/operations/generateotp.js.map +1 -1
- package/esm/models/operations/getaddressdetail.d.ts +31 -0
- package/esm/models/operations/getaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/getaddressdetail.js +36 -0
- package/esm/models/operations/getaddressdetail.js.map +1 -1
- package/esm/models/operations/getanonymoustoken.d.ts +30 -0
- package/esm/models/operations/getanonymoustoken.d.ts.map +1 -1
- package/esm/models/operations/getanonymoustoken.js +35 -0
- package/esm/models/operations/getanonymoustoken.js.map +1 -1
- package/esm/models/operations/getcart.d.ts +30 -0
- package/esm/models/operations/getcart.d.ts.map +1 -1
- package/esm/models/operations/getcart.js +36 -0
- package/esm/models/operations/getcart.js.map +1 -1
- package/esm/models/operations/getloyaltydetails.d.ts +30 -0
- package/esm/models/operations/getloyaltydetails.d.ts.map +1 -1
- package/esm/models/operations/getloyaltydetails.js +35 -0
- package/esm/models/operations/getloyaltydetails.js.map +1 -1
- package/esm/models/operations/getorderdetail.d.ts +30 -0
- package/esm/models/operations/getorderdetail.d.ts.map +1 -1
- package/esm/models/operations/getorderdetail.js +35 -0
- package/esm/models/operations/getorderdetail.js.map +1 -1
- package/esm/models/operations/getpaymentstatus.d.ts +31 -0
- package/esm/models/operations/getpaymentstatus.d.ts.map +1 -1
- package/esm/models/operations/getpaymentstatus.js +36 -0
- package/esm/models/operations/getpaymentstatus.js.map +1 -1
- package/esm/models/operations/getproductdetail.d.ts +30 -0
- package/esm/models/operations/getproductdetail.d.ts.map +1 -1
- package/esm/models/operations/getproductdetail.js +35 -0
- package/esm/models/operations/getproductdetail.js.map +1 -1
- package/esm/models/operations/getusercart.d.ts +30 -0
- package/esm/models/operations/getusercart.d.ts.map +1 -1
- package/esm/models/operations/getusercart.js +35 -0
- package/esm/models/operations/getusercart.js.map +1 -1
- package/esm/models/operations/getuserdetail.d.ts +30 -0
- package/esm/models/operations/getuserdetail.d.ts.map +1 -1
- package/esm/models/operations/getuserdetail.js +36 -0
- package/esm/models/operations/getuserdetail.js.map +1 -1
- package/esm/models/operations/getvariantdetail.d.ts +30 -0
- package/esm/models/operations/getvariantdetail.d.ts.map +1 -1
- package/esm/models/operations/getvariantdetail.js +35 -0
- package/esm/models/operations/getvariantdetail.js.map +1 -1
- package/esm/models/operations/listaddresses.d.ts +30 -0
- package/esm/models/operations/listaddresses.d.ts.map +1 -1
- package/esm/models/operations/listaddresses.js +35 -0
- package/esm/models/operations/listaddresses.js.map +1 -1
- package/esm/models/operations/listcategories.d.ts +30 -0
- package/esm/models/operations/listcategories.d.ts.map +1 -1
- package/esm/models/operations/listcategories.js +35 -0
- package/esm/models/operations/listcategories.js.map +1 -1
- package/esm/models/operations/listcountrypincodes.d.ts +30 -0
- package/esm/models/operations/listcountrypincodes.d.ts.map +1 -1
- package/esm/models/operations/listcountrypincodes.js +37 -0
- package/esm/models/operations/listcountrypincodes.js.map +1 -1
- package/esm/models/operations/listcrosssellproducts.d.ts +30 -0
- package/esm/models/operations/listcrosssellproducts.d.ts.map +1 -1
- package/esm/models/operations/listcrosssellproducts.js +37 -0
- package/esm/models/operations/listcrosssellproducts.js.map +1 -1
- package/esm/models/operations/listorders.d.ts +30 -0
- package/esm/models/operations/listorders.d.ts.map +1 -1
- package/esm/models/operations/listorders.js +35 -0
- package/esm/models/operations/listorders.js.map +1 -1
- package/esm/models/operations/listordershipments.d.ts +30 -0
- package/esm/models/operations/listordershipments.d.ts.map +1 -1
- package/esm/models/operations/listordershipments.js +36 -0
- package/esm/models/operations/listordershipments.js.map +1 -1
- package/esm/models/operations/listproductreviews.d.ts +30 -0
- package/esm/models/operations/listproductreviews.d.ts.map +1 -1
- package/esm/models/operations/listproductreviews.js +36 -0
- package/esm/models/operations/listproductreviews.js.map +1 -1
- package/esm/models/operations/listproducts.d.ts +30 -0
- package/esm/models/operations/listproducts.d.ts.map +1 -1
- package/esm/models/operations/listproducts.js +35 -0
- package/esm/models/operations/listproducts.js.map +1 -1
- package/esm/models/operations/listproductvariants.d.ts +30 -0
- package/esm/models/operations/listproductvariants.d.ts.map +1 -1
- package/esm/models/operations/listproductvariants.js +37 -0
- package/esm/models/operations/listproductvariants.js.map +1 -1
- package/esm/models/operations/listsimilarproducts.d.ts +30 -0
- package/esm/models/operations/listsimilarproducts.d.ts.map +1 -1
- package/esm/models/operations/listsimilarproducts.js +37 -0
- package/esm/models/operations/listsimilarproducts.js.map +1 -1
- package/esm/models/operations/listskus.d.ts +30 -0
- package/esm/models/operations/listskus.d.ts.map +1 -1
- package/esm/models/operations/listskus.js +35 -0
- package/esm/models/operations/listskus.js.map +1 -1
- package/esm/models/operations/listupsellproducts.d.ts +30 -0
- package/esm/models/operations/listupsellproducts.d.ts.map +1 -1
- package/esm/models/operations/listupsellproducts.js +36 -0
- package/esm/models/operations/listupsellproducts.js.map +1 -1
- package/esm/models/operations/listuserreviews.d.ts +30 -0
- package/esm/models/operations/listuserreviews.d.ts.map +1 -1
- package/esm/models/operations/listuserreviews.js +35 -0
- package/esm/models/operations/listuserreviews.js.map +1 -1
- package/esm/models/operations/loginwithemail.d.ts +31 -0
- package/esm/models/operations/loginwithemail.d.ts.map +1 -1
- package/esm/models/operations/loginwithemail.js +36 -0
- package/esm/models/operations/loginwithemail.js.map +1 -1
- package/esm/models/operations/loginwithphone.d.ts +31 -0
- package/esm/models/operations/loginwithphone.d.ts.map +1 -1
- package/esm/models/operations/loginwithphone.js +36 -0
- package/esm/models/operations/loginwithphone.js.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.d.ts +31 -0
- package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.js +36 -0
- package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
- package/esm/models/operations/logout.d.ts +30 -0
- package/esm/models/operations/logout.d.ts.map +1 -1
- package/esm/models/operations/logout.js +35 -0
- package/esm/models/operations/logout.js.map +1 -1
- package/esm/models/operations/redeemloyaltypoints.d.ts +30 -0
- package/esm/models/operations/redeemloyaltypoints.d.ts.map +1 -1
- package/esm/models/operations/redeemloyaltypoints.js +37 -0
- package/esm/models/operations/redeemloyaltypoints.js.map +1 -1
- package/esm/models/operations/refreshtoken.d.ts +31 -0
- package/esm/models/operations/refreshtoken.d.ts.map +1 -1
- package/esm/models/operations/refreshtoken.js +36 -0
- package/esm/models/operations/refreshtoken.js.map +1 -1
- package/esm/models/operations/removecoupon.d.ts +30 -0
- package/esm/models/operations/removecoupon.d.ts.map +1 -1
- package/esm/models/operations/removecoupon.js +36 -0
- package/esm/models/operations/removecoupon.js.map +1 -1
- package/esm/models/operations/removeloyaltypoints.d.ts +30 -0
- package/esm/models/operations/removeloyaltypoints.d.ts.map +1 -1
- package/esm/models/operations/removeloyaltypoints.js +38 -0
- package/esm/models/operations/removeloyaltypoints.js.map +1 -1
- package/esm/models/operations/retryorderpayment.d.ts +30 -0
- package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
- package/esm/models/operations/retryorderpayment.js +35 -0
- package/esm/models/operations/retryorderpayment.js.map +1 -1
- package/esm/models/operations/searchproducts.d.ts +30 -0
- package/esm/models/operations/searchproducts.d.ts.map +1 -1
- package/esm/models/operations/searchproducts.js +35 -0
- package/esm/models/operations/searchproducts.js.map +1 -1
- package/esm/models/operations/shippingmethods.d.ts +30 -0
- package/esm/models/operations/shippingmethods.d.ts.map +1 -1
- package/esm/models/operations/shippingmethods.js +35 -0
- package/esm/models/operations/shippingmethods.js.map +1 -1
- package/esm/models/operations/updateaddressdetail.d.ts +30 -0
- package/esm/models/operations/updateaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/updateaddressdetail.js +37 -0
- package/esm/models/operations/updateaddressdetail.js.map +1 -1
- package/esm/models/operations/updatecart.d.ts +30 -0
- package/esm/models/operations/updatecart.d.ts.map +1 -1
- package/esm/models/operations/updatecart.js +35 -0
- package/esm/models/operations/updatecart.js.map +1 -1
- package/esm/models/operations/updateshippingmethod.d.ts +30 -0
- package/esm/models/operations/updateshippingmethod.d.ts.map +1 -1
- package/esm/models/operations/updateshippingmethod.js +37 -0
- package/esm/models/operations/updateshippingmethod.js.map +1 -1
- package/esm/models/operations/updateuser.d.ts +30 -0
- package/esm/models/operations/updateuser.d.ts.map +1 -1
- package/esm/models/operations/updateuser.js +35 -0
- package/esm/models/operations/updateuser.js.map +1 -1
- package/esm/models/operations/verifyotp.d.ts +30 -0
- package/esm/models/operations/verifyotp.d.ts.map +1 -1
- package/esm/models/operations/verifyotp.js +35 -0
- package/esm/models/operations/verifyotp.js.map +1 -1
- package/esm/sdk/auth.d.ts +10 -10
- package/esm/sdk/auth.d.ts.map +1 -1
- package/esm/sdk/carts.d.ts +12 -12
- package/esm/sdk/carts.d.ts.map +1 -1
- package/esm/sdk/catalog.d.ts +11 -11
- package/esm/sdk/catalog.d.ts.map +1 -1
- package/esm/sdk/common.d.ts +1 -1
- package/esm/sdk/common.d.ts.map +1 -1
- package/esm/sdk/customers.d.ts +7 -7
- package/esm/sdk/customers.d.ts.map +1 -1
- package/esm/sdk/orders.d.ts +7 -7
- package/esm/sdk/orders.d.ts.map +1 -1
- package/esm/sdk/shipping.d.ts +2 -2
- package/esm/sdk/shipping.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authGenerateOtp.ts +11 -5
- package/src/funcs/authGetAnonymousToken.ts +11 -5
- package/src/funcs/authGetUserDetail.ts +11 -5
- package/src/funcs/authLoginWithEmail.ts +11 -5
- package/src/funcs/authLoginWithPhone.ts +11 -5
- package/src/funcs/authLoginWithWhatsapp.ts +11 -5
- package/src/funcs/authLogout.ts +9 -5
- package/src/funcs/authRefreshToken.ts +11 -5
- package/src/funcs/authUpdateUser.ts +9 -5
- package/src/funcs/authVerifyOtp.ts +9 -5
- package/src/funcs/cartsAddShippingMethod.ts +7 -5
- package/src/funcs/cartsApplyCoupon.ts +7 -5
- package/src/funcs/cartsCreateCart.ts +9 -5
- package/src/funcs/cartsCreateCartAddress.ts +7 -5
- package/src/funcs/cartsDeleteCart.ts +5 -5
- package/src/funcs/cartsGetCart.ts +5 -5
- package/src/funcs/cartsGetUserCart.ts +7 -5
- package/src/funcs/cartsRedeemLoyaltyPoints.ts +7 -5
- package/src/funcs/cartsRemoveCoupon.ts +7 -5
- package/src/funcs/cartsRemoveLoyaltyPoints.ts +7 -5
- package/src/funcs/cartsRemoveUserCart.ts +7 -5
- package/src/funcs/cartsUpdateCart.ts +5 -5
- package/src/funcs/catalogGetProductDetail.ts +7 -5
- package/src/funcs/catalogGetVariantDetail.ts +7 -5
- package/src/funcs/catalogListCategories.ts +11 -5
- package/src/funcs/catalogListCrosssellProducts.ts +7 -5
- package/src/funcs/catalogListProductReviews.ts +7 -5
- package/src/funcs/catalogListProductVariants.ts +7 -5
- package/src/funcs/catalogListProducts.ts +7 -5
- package/src/funcs/catalogListSimilarProducts.ts +7 -5
- package/src/funcs/catalogListSkus.ts +5 -5
- package/src/funcs/catalogListUpsellProducts.ts +7 -5
- package/src/funcs/catalogSearchProducts.ts +7 -5
- package/src/funcs/commonListCountryPincodes.ts +11 -5
- package/src/funcs/customersCreateAddress.ts +7 -5
- package/src/funcs/customersDeleteAddress.ts +7 -5
- package/src/funcs/customersGetAddressDetail.ts +7 -5
- package/src/funcs/customersGetLoyaltyDetails.ts +7 -5
- package/src/funcs/customersListAddresses.ts +11 -5
- package/src/funcs/customersListUserReviews.ts +11 -5
- package/src/funcs/customersUpdateAddressDetail.ts +7 -5
- package/src/funcs/ordersCancelOrder.ts +7 -5
- package/src/funcs/ordersCreateOrder.ts +7 -5
- package/src/funcs/ordersGetOrderDetail.ts +7 -5
- package/src/funcs/ordersGetPaymentStatus.ts +11 -5
- package/src/funcs/ordersListOrderShipments.ts +7 -5
- package/src/funcs/ordersListOrders.ts +9 -5
- package/src/funcs/ordersRetryOrderPayment.ts +7 -5
- package/src/funcs/shippingCheckDeliveryAvailability.ts +7 -5
- package/src/funcs/shippingCheckServiceability.ts +11 -5
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +10 -16
- package/src/models/components/httpmetadata.ts +87 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/errors/ceerror.ts +7 -13
- package/src/models/operations/applycoupon.ts +73 -0
- package/src/models/operations/cancelorder.ts +73 -0
- package/src/models/operations/checkdeliveryavailability.ts +80 -0
- package/src/models/operations/createaddress.ts +73 -0
- package/src/models/operations/createcart.ts +74 -0
- package/src/models/operations/createcartaddress.ts +73 -0
- package/src/models/operations/createorder.ts +73 -0
- package/src/models/operations/deleteaddress.ts +74 -0
- package/src/models/operations/deletecart.ts +75 -0
- package/src/models/operations/deleteusercart.ts +74 -0
- package/src/models/operations/generateotp.ts +74 -0
- package/src/models/operations/getaddressdetail.ts +74 -0
- package/src/models/operations/getanonymoustoken.ts +73 -0
- package/src/models/operations/getcart.ts +72 -0
- package/src/models/operations/getloyaltydetails.ts +73 -0
- package/src/models/operations/getorderdetail.ts +73 -0
- package/src/models/operations/getpaymentstatus.ts +74 -0
- package/src/models/operations/getproductdetail.ts +73 -0
- package/src/models/operations/getusercart.ts +73 -0
- package/src/models/operations/getuserdetail.ts +74 -0
- package/src/models/operations/getvariantdetail.ts +73 -0
- package/src/models/operations/listaddresses.ts +73 -0
- package/src/models/operations/listcategories.ts +73 -0
- package/src/models/operations/listcountrypincodes.ts +77 -0
- package/src/models/operations/listcrosssellproducts.ts +77 -0
- package/src/models/operations/listorders.ts +73 -0
- package/src/models/operations/listordershipments.ts +74 -0
- package/src/models/operations/listproductreviews.ts +74 -0
- package/src/models/operations/listproducts.ts +73 -0
- package/src/models/operations/listproductvariants.ts +77 -0
- package/src/models/operations/listsimilarproducts.ts +77 -0
- package/src/models/operations/listskus.ts +73 -0
- package/src/models/operations/listupsellproducts.ts +74 -0
- package/src/models/operations/listuserreviews.ts +73 -0
- package/src/models/operations/loginwithemail.ts +74 -0
- package/src/models/operations/loginwithphone.ts +74 -0
- package/src/models/operations/loginwithwhatsapp.ts +74 -0
- package/src/models/operations/logout.ts +69 -0
- package/src/models/operations/redeemloyaltypoints.ts +77 -0
- package/src/models/operations/refreshtoken.ts +74 -0
- package/src/models/operations/removecoupon.ts +74 -0
- package/src/models/operations/removeloyaltypoints.ts +78 -0
- package/src/models/operations/retryorderpayment.ts +73 -0
- package/src/models/operations/searchproducts.ts +73 -0
- package/src/models/operations/shippingmethods.ts +73 -0
- package/src/models/operations/updateaddressdetail.ts +77 -0
- package/src/models/operations/updatecart.ts +73 -0
- package/src/models/operations/updateshippingmethod.ts +77 -0
- package/src/models/operations/updateuser.ts +73 -0
- package/src/models/operations/verifyotp.ts +73 -0
- package/src/sdk/auth.ts +10 -10
- package/src/sdk/carts.ts +12 -12
- package/src/sdk/catalog.ts +11 -11
- package/src/sdk/common.ts +1 -1
- package/src/sdk/customers.ts +7 -7
- package/src/sdk/orders.ts +7 -7
- package/src/sdk/shipping.ts +2 -2
|
@@ -35,7 +35,7 @@ export function cartsCreateCart(
|
|
|
35
35
|
options?: RequestOptions,
|
|
36
36
|
): APIPromise<
|
|
37
37
|
Result<
|
|
38
|
-
operations.
|
|
38
|
+
operations.CreateCartResponse,
|
|
39
39
|
| CeError
|
|
40
40
|
| SDKValidationError
|
|
41
41
|
| UnexpectedClientError
|
|
@@ -59,7 +59,7 @@ async function $do(
|
|
|
59
59
|
): Promise<
|
|
60
60
|
[
|
|
61
61
|
Result<
|
|
62
|
-
operations.
|
|
62
|
+
operations.CreateCartResponse,
|
|
63
63
|
| CeError
|
|
64
64
|
| SDKValidationError
|
|
65
65
|
| UnexpectedClientError
|
|
@@ -132,8 +132,12 @@ async function $do(
|
|
|
132
132
|
}
|
|
133
133
|
const response = doResult.value;
|
|
134
134
|
|
|
135
|
+
const responseFields = {
|
|
136
|
+
HttpMeta: { Response: response, Request: req },
|
|
137
|
+
};
|
|
138
|
+
|
|
135
139
|
const [result] = await M.match<
|
|
136
|
-
operations.
|
|
140
|
+
operations.CreateCartResponse,
|
|
137
141
|
| CeError
|
|
138
142
|
| SDKValidationError
|
|
139
143
|
| UnexpectedClientError
|
|
@@ -142,10 +146,10 @@ async function $do(
|
|
|
142
146
|
| RequestTimeoutError
|
|
143
147
|
| ConnectionError
|
|
144
148
|
>(
|
|
145
|
-
M.json(200, operations.
|
|
149
|
+
M.json(200, operations.CreateCartResponse$inboundSchema, { key: "object" }),
|
|
146
150
|
M.fail("4XX"),
|
|
147
151
|
M.fail("5XX"),
|
|
148
|
-
)(response);
|
|
152
|
+
)(response, req, { extraFields: responseFields });
|
|
149
153
|
if (!result.ok) {
|
|
150
154
|
return [result, { status: "complete", request: req, response }];
|
|
151
155
|
}
|
|
@@ -36,7 +36,7 @@ export function cartsCreateCartAddress(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.CreateCartAddressResponse,
|
|
40
40
|
| errors.BadRequest
|
|
41
41
|
| errors.Unauthorized
|
|
42
42
|
| errors.NotFound
|
|
@@ -63,7 +63,7 @@ async function $do(
|
|
|
63
63
|
): Promise<
|
|
64
64
|
[
|
|
65
65
|
Result<
|
|
66
|
-
operations.
|
|
66
|
+
operations.CreateCartAddressResponse,
|
|
67
67
|
| errors.BadRequest
|
|
68
68
|
| errors.Unauthorized
|
|
69
69
|
| errors.NotFound
|
|
@@ -151,7 +151,7 @@ async function $do(
|
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
const [result] = await M.match<
|
|
154
|
-
operations.
|
|
154
|
+
operations.CreateCartAddressResponse,
|
|
155
155
|
| errors.BadRequest
|
|
156
156
|
| errors.Unauthorized
|
|
157
157
|
| errors.NotFound
|
|
@@ -163,13 +163,15 @@ async function $do(
|
|
|
163
163
|
| RequestTimeoutError
|
|
164
164
|
| ConnectionError
|
|
165
165
|
>(
|
|
166
|
-
M.json(200, operations.
|
|
166
|
+
M.json(200, operations.CreateCartAddressResponse$inboundSchema, {
|
|
167
|
+
key: "object",
|
|
168
|
+
}),
|
|
167
169
|
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
168
170
|
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
169
171
|
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
170
172
|
M.fail("4XX"),
|
|
171
173
|
M.fail("5XX"),
|
|
172
|
-
)(response, { extraFields: responseFields });
|
|
174
|
+
)(response, req, { extraFields: responseFields });
|
|
173
175
|
if (!result.ok) {
|
|
174
176
|
return [result, { status: "complete", request: req, response }];
|
|
175
177
|
}
|
|
@@ -36,7 +36,7 @@ export function cartsDeleteCart(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.DeleteCartResponse,
|
|
40
40
|
| errors.Unauthorized
|
|
41
41
|
| errors.NotFound
|
|
42
42
|
| CeError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
operations.
|
|
65
|
+
operations.DeleteCartResponse,
|
|
66
66
|
| errors.Unauthorized
|
|
67
67
|
| errors.NotFound
|
|
68
68
|
| CeError
|
|
@@ -148,7 +148,7 @@ async function $do(
|
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
const [result] = await M.match<
|
|
151
|
-
operations.
|
|
151
|
+
operations.DeleteCartResponse,
|
|
152
152
|
| errors.Unauthorized
|
|
153
153
|
| errors.NotFound
|
|
154
154
|
| CeError
|
|
@@ -159,12 +159,12 @@ async function $do(
|
|
|
159
159
|
| RequestTimeoutError
|
|
160
160
|
| ConnectionError
|
|
161
161
|
>(
|
|
162
|
-
M.json(200, operations.
|
|
162
|
+
M.json(200, operations.DeleteCartResponse$inboundSchema, { key: "object" }),
|
|
163
163
|
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
164
164
|
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
165
165
|
M.fail("4XX"),
|
|
166
166
|
M.fail("5XX"),
|
|
167
|
-
)(response, { extraFields: responseFields });
|
|
167
|
+
)(response, req, { extraFields: responseFields });
|
|
168
168
|
if (!result.ok) {
|
|
169
169
|
return [result, { status: "complete", request: req, response }];
|
|
170
170
|
}
|
|
@@ -36,7 +36,7 @@ export function cartsGetCart(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.GetCartResponse,
|
|
40
40
|
| errors.Unauthorized
|
|
41
41
|
| errors.NotFound
|
|
42
42
|
| CeError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
operations.
|
|
65
|
+
operations.GetCartResponse,
|
|
66
66
|
| errors.Unauthorized
|
|
67
67
|
| errors.NotFound
|
|
68
68
|
| CeError
|
|
@@ -148,7 +148,7 @@ async function $do(
|
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
const [result] = await M.match<
|
|
151
|
-
operations.
|
|
151
|
+
operations.GetCartResponse,
|
|
152
152
|
| errors.Unauthorized
|
|
153
153
|
| errors.NotFound
|
|
154
154
|
| CeError
|
|
@@ -159,12 +159,12 @@ async function $do(
|
|
|
159
159
|
| RequestTimeoutError
|
|
160
160
|
| ConnectionError
|
|
161
161
|
>(
|
|
162
|
-
M.json(200, operations.
|
|
162
|
+
M.json(200, operations.GetCartResponse$inboundSchema, { key: "object" }),
|
|
163
163
|
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
164
164
|
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
165
165
|
M.fail("4XX"),
|
|
166
166
|
M.fail("5XX"),
|
|
167
|
-
)(response, { extraFields: responseFields });
|
|
167
|
+
)(response, req, { extraFields: responseFields });
|
|
168
168
|
if (!result.ok) {
|
|
169
169
|
return [result, { status: "complete", request: req, response }];
|
|
170
170
|
}
|
|
@@ -36,7 +36,7 @@ export function cartsGetUserCart(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.GetUserCartResponse,
|
|
40
40
|
| errors.Unauthorized
|
|
41
41
|
| errors.NotFound
|
|
42
42
|
| CeError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
operations.
|
|
65
|
+
operations.GetUserCartResponse,
|
|
66
66
|
| errors.Unauthorized
|
|
67
67
|
| errors.NotFound
|
|
68
68
|
| CeError
|
|
@@ -148,7 +148,7 @@ async function $do(
|
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
const [result] = await M.match<
|
|
151
|
-
operations.
|
|
151
|
+
operations.GetUserCartResponse,
|
|
152
152
|
| errors.Unauthorized
|
|
153
153
|
| errors.NotFound
|
|
154
154
|
| CeError
|
|
@@ -159,12 +159,14 @@ async function $do(
|
|
|
159
159
|
| RequestTimeoutError
|
|
160
160
|
| ConnectionError
|
|
161
161
|
>(
|
|
162
|
-
M.json(200, operations.
|
|
162
|
+
M.json(200, operations.GetUserCartResponse$inboundSchema, {
|
|
163
|
+
key: "object",
|
|
164
|
+
}),
|
|
163
165
|
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
164
166
|
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
165
167
|
M.fail("4XX"),
|
|
166
168
|
M.fail("5XX"),
|
|
167
|
-
)(response, { extraFields: responseFields });
|
|
169
|
+
)(response, req, { extraFields: responseFields });
|
|
168
170
|
if (!result.ok) {
|
|
169
171
|
return [result, { status: "complete", request: req, response }];
|
|
170
172
|
}
|
|
@@ -36,7 +36,7 @@ export function cartsRedeemLoyaltyPoints(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.RedeemLoyaltyPointsResponse,
|
|
40
40
|
| errors.BadRequest
|
|
41
41
|
| errors.Unauthorized
|
|
42
42
|
| CeError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
operations.
|
|
65
|
+
operations.RedeemLoyaltyPointsResponse,
|
|
66
66
|
| errors.BadRequest
|
|
67
67
|
| errors.Unauthorized
|
|
68
68
|
| CeError
|
|
@@ -150,7 +150,7 @@ async function $do(
|
|
|
150
150
|
};
|
|
151
151
|
|
|
152
152
|
const [result] = await M.match<
|
|
153
|
-
operations.
|
|
153
|
+
operations.RedeemLoyaltyPointsResponse,
|
|
154
154
|
| errors.BadRequest
|
|
155
155
|
| errors.Unauthorized
|
|
156
156
|
| CeError
|
|
@@ -161,12 +161,14 @@ async function $do(
|
|
|
161
161
|
| RequestTimeoutError
|
|
162
162
|
| ConnectionError
|
|
163
163
|
>(
|
|
164
|
-
M.json(200, operations.
|
|
164
|
+
M.json(200, operations.RedeemLoyaltyPointsResponse$inboundSchema, {
|
|
165
|
+
key: "object",
|
|
166
|
+
}),
|
|
165
167
|
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
166
168
|
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
167
169
|
M.fail("4XX"),
|
|
168
170
|
M.fail("5XX"),
|
|
169
|
-
)(response, { extraFields: responseFields });
|
|
171
|
+
)(response, req, { extraFields: responseFields });
|
|
170
172
|
if (!result.ok) {
|
|
171
173
|
return [result, { status: "complete", request: req, response }];
|
|
172
174
|
}
|
|
@@ -36,7 +36,7 @@ export function cartsRemoveCoupon(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.RemoveCouponResponse,
|
|
40
40
|
| errors.BadRequest
|
|
41
41
|
| errors.Unauthorized
|
|
42
42
|
| CeError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
operations.
|
|
65
|
+
operations.RemoveCouponResponse,
|
|
66
66
|
| errors.BadRequest
|
|
67
67
|
| errors.Unauthorized
|
|
68
68
|
| CeError
|
|
@@ -148,7 +148,7 @@ async function $do(
|
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
const [result] = await M.match<
|
|
151
|
-
operations.
|
|
151
|
+
operations.RemoveCouponResponse,
|
|
152
152
|
| errors.BadRequest
|
|
153
153
|
| errors.Unauthorized
|
|
154
154
|
| CeError
|
|
@@ -159,12 +159,14 @@ async function $do(
|
|
|
159
159
|
| RequestTimeoutError
|
|
160
160
|
| ConnectionError
|
|
161
161
|
>(
|
|
162
|
-
M.json(200, operations.
|
|
162
|
+
M.json(200, operations.RemoveCouponResponse$inboundSchema, {
|
|
163
|
+
key: "object",
|
|
164
|
+
}),
|
|
163
165
|
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
164
166
|
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
165
167
|
M.fail([404, "4XX"]),
|
|
166
168
|
M.fail("5XX"),
|
|
167
|
-
)(response, { extraFields: responseFields });
|
|
169
|
+
)(response, req, { extraFields: responseFields });
|
|
168
170
|
if (!result.ok) {
|
|
169
171
|
return [result, { status: "complete", request: req, response }];
|
|
170
172
|
}
|
|
@@ -36,7 +36,7 @@ export function cartsRemoveLoyaltyPoints(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.RemoveLoyaltyPointsResponse,
|
|
40
40
|
| errors.BadRequest
|
|
41
41
|
| errors.Unauthorized
|
|
42
42
|
| CeError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
operations.
|
|
65
|
+
operations.RemoveLoyaltyPointsResponse,
|
|
66
66
|
| errors.BadRequest
|
|
67
67
|
| errors.Unauthorized
|
|
68
68
|
| CeError
|
|
@@ -149,7 +149,7 @@ async function $do(
|
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
const [result] = await M.match<
|
|
152
|
-
operations.
|
|
152
|
+
operations.RemoveLoyaltyPointsResponse,
|
|
153
153
|
| errors.BadRequest
|
|
154
154
|
| errors.Unauthorized
|
|
155
155
|
| CeError
|
|
@@ -160,12 +160,14 @@ async function $do(
|
|
|
160
160
|
| RequestTimeoutError
|
|
161
161
|
| ConnectionError
|
|
162
162
|
>(
|
|
163
|
-
M.json(200, operations.
|
|
163
|
+
M.json(200, operations.RemoveLoyaltyPointsResponse$inboundSchema, {
|
|
164
|
+
key: "object",
|
|
165
|
+
}),
|
|
164
166
|
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
165
167
|
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
166
168
|
M.fail([404, "4XX"]),
|
|
167
169
|
M.fail("5XX"),
|
|
168
|
-
)(response, { extraFields: responseFields });
|
|
170
|
+
)(response, req, { extraFields: responseFields });
|
|
169
171
|
if (!result.ok) {
|
|
170
172
|
return [result, { status: "complete", request: req, response }];
|
|
171
173
|
}
|
|
@@ -36,7 +36,7 @@ export function cartsRemoveUserCart(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.DeleteUserCartResponse,
|
|
40
40
|
| errors.Unauthorized
|
|
41
41
|
| errors.NotFound
|
|
42
42
|
| CeError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
operations.
|
|
65
|
+
operations.DeleteUserCartResponse,
|
|
66
66
|
| errors.Unauthorized
|
|
67
67
|
| errors.NotFound
|
|
68
68
|
| CeError
|
|
@@ -148,7 +148,7 @@ async function $do(
|
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
const [result] = await M.match<
|
|
151
|
-
operations.
|
|
151
|
+
operations.DeleteUserCartResponse,
|
|
152
152
|
| errors.Unauthorized
|
|
153
153
|
| errors.NotFound
|
|
154
154
|
| CeError
|
|
@@ -159,12 +159,14 @@ async function $do(
|
|
|
159
159
|
| RequestTimeoutError
|
|
160
160
|
| ConnectionError
|
|
161
161
|
>(
|
|
162
|
-
M.json(200, operations.
|
|
162
|
+
M.json(200, operations.DeleteUserCartResponse$inboundSchema, {
|
|
163
|
+
key: "object",
|
|
164
|
+
}),
|
|
163
165
|
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
164
166
|
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
165
167
|
M.fail("4XX"),
|
|
166
168
|
M.fail("5XX"),
|
|
167
|
-
)(response, { extraFields: responseFields });
|
|
169
|
+
)(response, req, { extraFields: responseFields });
|
|
168
170
|
if (!result.ok) {
|
|
169
171
|
return [result, { status: "complete", request: req, response }];
|
|
170
172
|
}
|
|
@@ -36,7 +36,7 @@ export function cartsUpdateCart(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.UpdateCartResponse,
|
|
40
40
|
| errors.BadRequest
|
|
41
41
|
| errors.Unauthorized
|
|
42
42
|
| errors.NotFound
|
|
@@ -63,7 +63,7 @@ async function $do(
|
|
|
63
63
|
): Promise<
|
|
64
64
|
[
|
|
65
65
|
Result<
|
|
66
|
-
operations.
|
|
66
|
+
operations.UpdateCartResponse,
|
|
67
67
|
| errors.BadRequest
|
|
68
68
|
| errors.Unauthorized
|
|
69
69
|
| errors.NotFound
|
|
@@ -151,7 +151,7 @@ async function $do(
|
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
const [result] = await M.match<
|
|
154
|
-
operations.
|
|
154
|
+
operations.UpdateCartResponse,
|
|
155
155
|
| errors.BadRequest
|
|
156
156
|
| errors.Unauthorized
|
|
157
157
|
| errors.NotFound
|
|
@@ -163,13 +163,13 @@ async function $do(
|
|
|
163
163
|
| RequestTimeoutError
|
|
164
164
|
| ConnectionError
|
|
165
165
|
>(
|
|
166
|
-
M.json(200, operations.
|
|
166
|
+
M.json(200, operations.UpdateCartResponse$inboundSchema, { key: "object" }),
|
|
167
167
|
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
168
168
|
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
169
169
|
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
170
170
|
M.fail("4XX"),
|
|
171
171
|
M.fail("5XX"),
|
|
172
|
-
)(response, { extraFields: responseFields });
|
|
172
|
+
)(response, req, { extraFields: responseFields });
|
|
173
173
|
if (!result.ok) {
|
|
174
174
|
return [result, { status: "complete", request: req, response }];
|
|
175
175
|
}
|
|
@@ -36,7 +36,7 @@ export function catalogGetProductDetail(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.GetProductDetailResponse,
|
|
40
40
|
| errors.Unauthorized
|
|
41
41
|
| errors.NotFound
|
|
42
42
|
| CeError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
operations.
|
|
65
|
+
operations.GetProductDetailResponse,
|
|
66
66
|
| errors.Unauthorized
|
|
67
67
|
| errors.NotFound
|
|
68
68
|
| CeError
|
|
@@ -153,7 +153,7 @@ async function $do(
|
|
|
153
153
|
};
|
|
154
154
|
|
|
155
155
|
const [result] = await M.match<
|
|
156
|
-
operations.
|
|
156
|
+
operations.GetProductDetailResponse,
|
|
157
157
|
| errors.Unauthorized
|
|
158
158
|
| errors.NotFound
|
|
159
159
|
| CeError
|
|
@@ -164,12 +164,14 @@ async function $do(
|
|
|
164
164
|
| RequestTimeoutError
|
|
165
165
|
| ConnectionError
|
|
166
166
|
>(
|
|
167
|
-
M.json(200, operations.
|
|
167
|
+
M.json(200, operations.GetProductDetailResponse$inboundSchema, {
|
|
168
|
+
key: "object",
|
|
169
|
+
}),
|
|
168
170
|
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
169
171
|
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
170
172
|
M.fail("4XX"),
|
|
171
173
|
M.fail("5XX"),
|
|
172
|
-
)(response, { extraFields: responseFields });
|
|
174
|
+
)(response, req, { extraFields: responseFields });
|
|
173
175
|
if (!result.ok) {
|
|
174
176
|
return [result, { status: "complete", request: req, response }];
|
|
175
177
|
}
|
|
@@ -36,7 +36,7 @@ export function catalogGetVariantDetail(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.GetVariantDetailResponse,
|
|
40
40
|
| errors.Unauthorized
|
|
41
41
|
| errors.NotFound
|
|
42
42
|
| CeError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
operations.
|
|
65
|
+
operations.GetVariantDetailResponse,
|
|
66
66
|
| errors.Unauthorized
|
|
67
67
|
| errors.NotFound
|
|
68
68
|
| CeError
|
|
@@ -159,7 +159,7 @@ async function $do(
|
|
|
159
159
|
};
|
|
160
160
|
|
|
161
161
|
const [result] = await M.match<
|
|
162
|
-
operations.
|
|
162
|
+
operations.GetVariantDetailResponse,
|
|
163
163
|
| errors.Unauthorized
|
|
164
164
|
| errors.NotFound
|
|
165
165
|
| CeError
|
|
@@ -170,12 +170,14 @@ async function $do(
|
|
|
170
170
|
| RequestTimeoutError
|
|
171
171
|
| ConnectionError
|
|
172
172
|
>(
|
|
173
|
-
M.json(200, operations.
|
|
173
|
+
M.json(200, operations.GetVariantDetailResponse$inboundSchema, {
|
|
174
|
+
key: "object",
|
|
175
|
+
}),
|
|
174
176
|
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
175
177
|
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
176
178
|
M.fail("4XX"),
|
|
177
179
|
M.fail("5XX"),
|
|
178
|
-
)(response, { extraFields: responseFields });
|
|
180
|
+
)(response, req, { extraFields: responseFields });
|
|
179
181
|
if (!result.ok) {
|
|
180
182
|
return [result, { status: "complete", request: req, response }];
|
|
181
183
|
}
|
|
@@ -35,7 +35,7 @@ export function catalogListCategories(
|
|
|
35
35
|
options?: RequestOptions,
|
|
36
36
|
): APIPromise<
|
|
37
37
|
Result<
|
|
38
|
-
operations.
|
|
38
|
+
operations.ListCategoriesResponse,
|
|
39
39
|
| CeError
|
|
40
40
|
| SDKValidationError
|
|
41
41
|
| UnexpectedClientError
|
|
@@ -59,7 +59,7 @@ async function $do(
|
|
|
59
59
|
): Promise<
|
|
60
60
|
[
|
|
61
61
|
Result<
|
|
62
|
-
operations.
|
|
62
|
+
operations.ListCategoriesResponse,
|
|
63
63
|
| CeError
|
|
64
64
|
| SDKValidationError
|
|
65
65
|
| UnexpectedClientError
|
|
@@ -139,8 +139,12 @@ async function $do(
|
|
|
139
139
|
}
|
|
140
140
|
const response = doResult.value;
|
|
141
141
|
|
|
142
|
+
const responseFields = {
|
|
143
|
+
HttpMeta: { Response: response, Request: req },
|
|
144
|
+
};
|
|
145
|
+
|
|
142
146
|
const [result] = await M.match<
|
|
143
|
-
operations.
|
|
147
|
+
operations.ListCategoriesResponse,
|
|
144
148
|
| CeError
|
|
145
149
|
| SDKValidationError
|
|
146
150
|
| UnexpectedClientError
|
|
@@ -149,10 +153,12 @@ async function $do(
|
|
|
149
153
|
| RequestTimeoutError
|
|
150
154
|
| ConnectionError
|
|
151
155
|
>(
|
|
152
|
-
M.json(200, operations.
|
|
156
|
+
M.json(200, operations.ListCategoriesResponse$inboundSchema, {
|
|
157
|
+
key: "object",
|
|
158
|
+
}),
|
|
153
159
|
M.fail("4XX"),
|
|
154
160
|
M.fail("5XX"),
|
|
155
|
-
)(response);
|
|
161
|
+
)(response, req, { extraFields: responseFields });
|
|
156
162
|
if (!result.ok) {
|
|
157
163
|
return [result, { status: "complete", request: req, response }];
|
|
158
164
|
}
|
|
@@ -36,7 +36,7 @@ export function catalogListCrosssellProducts(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.ListCrosssellProductsResponse,
|
|
40
40
|
| errors.Unauthorized
|
|
41
41
|
| errors.NotFound
|
|
42
42
|
| CeError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
operations.
|
|
65
|
+
operations.ListCrosssellProductsResponse,
|
|
66
66
|
| errors.Unauthorized
|
|
67
67
|
| errors.NotFound
|
|
68
68
|
| CeError
|
|
@@ -150,7 +150,7 @@ async function $do(
|
|
|
150
150
|
};
|
|
151
151
|
|
|
152
152
|
const [result] = await M.match<
|
|
153
|
-
operations.
|
|
153
|
+
operations.ListCrosssellProductsResponse,
|
|
154
154
|
| errors.Unauthorized
|
|
155
155
|
| errors.NotFound
|
|
156
156
|
| CeError
|
|
@@ -161,12 +161,14 @@ async function $do(
|
|
|
161
161
|
| RequestTimeoutError
|
|
162
162
|
| ConnectionError
|
|
163
163
|
>(
|
|
164
|
-
M.json(200, operations.
|
|
164
|
+
M.json(200, operations.ListCrosssellProductsResponse$inboundSchema, {
|
|
165
|
+
key: "object",
|
|
166
|
+
}),
|
|
165
167
|
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
166
168
|
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
167
169
|
M.fail("4XX"),
|
|
168
170
|
M.fail("5XX"),
|
|
169
|
-
)(response, { extraFields: responseFields });
|
|
171
|
+
)(response, req, { extraFields: responseFields });
|
|
170
172
|
if (!result.ok) {
|
|
171
173
|
return [result, { status: "complete", request: req, response }];
|
|
172
174
|
}
|
|
@@ -36,7 +36,7 @@ export function catalogListProductReviews(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.ListProductReviewsResponse,
|
|
40
40
|
| errors.Unauthorized
|
|
41
41
|
| errors.NotFound
|
|
42
42
|
| CeError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
operations.
|
|
65
|
+
operations.ListProductReviewsResponse,
|
|
66
66
|
| errors.Unauthorized
|
|
67
67
|
| errors.NotFound
|
|
68
68
|
| CeError
|
|
@@ -157,7 +157,7 @@ async function $do(
|
|
|
157
157
|
};
|
|
158
158
|
|
|
159
159
|
const [result] = await M.match<
|
|
160
|
-
operations.
|
|
160
|
+
operations.ListProductReviewsResponse,
|
|
161
161
|
| errors.Unauthorized
|
|
162
162
|
| errors.NotFound
|
|
163
163
|
| CeError
|
|
@@ -168,12 +168,14 @@ async function $do(
|
|
|
168
168
|
| RequestTimeoutError
|
|
169
169
|
| ConnectionError
|
|
170
170
|
>(
|
|
171
|
-
M.json(200, operations.
|
|
171
|
+
M.json(200, operations.ListProductReviewsResponse$inboundSchema, {
|
|
172
|
+
key: "object",
|
|
173
|
+
}),
|
|
172
174
|
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
173
175
|
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
174
176
|
M.fail("4XX"),
|
|
175
177
|
M.fail("5XX"),
|
|
176
|
-
)(response, { extraFields: responseFields });
|
|
178
|
+
)(response, req, { extraFields: responseFields });
|
|
177
179
|
if (!result.ok) {
|
|
178
180
|
return [result, { status: "complete", request: req, response }];
|
|
179
181
|
}
|