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
|
@@ -37,11 +37,6 @@ export type GetVariantDetailResponseBody = {
|
|
|
37
37
|
content: GetVariantDetailContent;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
export type GetVariantDetailResponse =
|
|
41
|
-
| GetVariantDetailResponseBody
|
|
42
|
-
| components.Unauthorized
|
|
43
|
-
| components.NotFound;
|
|
44
|
-
|
|
45
40
|
/** @internal */
|
|
46
41
|
export const GetVariantDetailRequest$inboundSchema: z.ZodType<
|
|
47
42
|
GetVariantDetailRequest,
|
|
@@ -229,62 +224,3 @@ export function getVariantDetailResponseBodyFromJSON(
|
|
|
229
224
|
`Failed to parse 'GetVariantDetailResponseBody' from JSON`,
|
|
230
225
|
);
|
|
231
226
|
}
|
|
232
|
-
|
|
233
|
-
/** @internal */
|
|
234
|
-
export const GetVariantDetailResponse$inboundSchema: z.ZodType<
|
|
235
|
-
GetVariantDetailResponse,
|
|
236
|
-
z.ZodTypeDef,
|
|
237
|
-
unknown
|
|
238
|
-
> = z.union([
|
|
239
|
-
z.lazy(() => GetVariantDetailResponseBody$inboundSchema),
|
|
240
|
-
components.Unauthorized$inboundSchema,
|
|
241
|
-
components.NotFound$inboundSchema,
|
|
242
|
-
]);
|
|
243
|
-
|
|
244
|
-
/** @internal */
|
|
245
|
-
export type GetVariantDetailResponse$Outbound =
|
|
246
|
-
| GetVariantDetailResponseBody$Outbound
|
|
247
|
-
| components.Unauthorized$Outbound
|
|
248
|
-
| components.NotFound$Outbound;
|
|
249
|
-
|
|
250
|
-
/** @internal */
|
|
251
|
-
export const GetVariantDetailResponse$outboundSchema: z.ZodType<
|
|
252
|
-
GetVariantDetailResponse$Outbound,
|
|
253
|
-
z.ZodTypeDef,
|
|
254
|
-
GetVariantDetailResponse
|
|
255
|
-
> = z.union([
|
|
256
|
-
z.lazy(() => GetVariantDetailResponseBody$outboundSchema),
|
|
257
|
-
components.Unauthorized$outboundSchema,
|
|
258
|
-
components.NotFound$outboundSchema,
|
|
259
|
-
]);
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* @internal
|
|
263
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
264
|
-
*/
|
|
265
|
-
export namespace GetVariantDetailResponse$ {
|
|
266
|
-
/** @deprecated use `GetVariantDetailResponse$inboundSchema` instead. */
|
|
267
|
-
export const inboundSchema = GetVariantDetailResponse$inboundSchema;
|
|
268
|
-
/** @deprecated use `GetVariantDetailResponse$outboundSchema` instead. */
|
|
269
|
-
export const outboundSchema = GetVariantDetailResponse$outboundSchema;
|
|
270
|
-
/** @deprecated use `GetVariantDetailResponse$Outbound` instead. */
|
|
271
|
-
export type Outbound = GetVariantDetailResponse$Outbound;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export function getVariantDetailResponseToJSON(
|
|
275
|
-
getVariantDetailResponse: GetVariantDetailResponse,
|
|
276
|
-
): string {
|
|
277
|
-
return JSON.stringify(
|
|
278
|
-
GetVariantDetailResponse$outboundSchema.parse(getVariantDetailResponse),
|
|
279
|
-
);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
export function getVariantDetailResponseFromJSON(
|
|
283
|
-
jsonString: string,
|
|
284
|
-
): SafeParseResult<GetVariantDetailResponse, SDKValidationError> {
|
|
285
|
-
return safeParse(
|
|
286
|
-
jsonString,
|
|
287
|
-
(x) => GetVariantDetailResponse$inboundSchema.parse(JSON.parse(x)),
|
|
288
|
-
`Failed to parse 'GetVariantDetailResponse' from JSON`,
|
|
289
|
-
);
|
|
290
|
-
}
|
|
@@ -45,11 +45,6 @@ export type ListCrosssellProductsResponseBody = {
|
|
|
45
45
|
content: ListCrosssellProductsContent;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
export type ListCrosssellProductsResponse =
|
|
49
|
-
| ListCrosssellProductsResponseBody
|
|
50
|
-
| components.Unauthorized
|
|
51
|
-
| components.NotFound;
|
|
52
|
-
|
|
53
48
|
/** @internal */
|
|
54
49
|
export const ListCrosssellProductsRequest$inboundSchema: z.ZodType<
|
|
55
50
|
ListCrosssellProductsRequest,
|
|
@@ -246,64 +241,3 @@ export function listCrosssellProductsResponseBodyFromJSON(
|
|
|
246
241
|
`Failed to parse 'ListCrosssellProductsResponseBody' from JSON`,
|
|
247
242
|
);
|
|
248
243
|
}
|
|
249
|
-
|
|
250
|
-
/** @internal */
|
|
251
|
-
export const ListCrosssellProductsResponse$inboundSchema: z.ZodType<
|
|
252
|
-
ListCrosssellProductsResponse,
|
|
253
|
-
z.ZodTypeDef,
|
|
254
|
-
unknown
|
|
255
|
-
> = z.union([
|
|
256
|
-
z.lazy(() => ListCrosssellProductsResponseBody$inboundSchema),
|
|
257
|
-
components.Unauthorized$inboundSchema,
|
|
258
|
-
components.NotFound$inboundSchema,
|
|
259
|
-
]);
|
|
260
|
-
|
|
261
|
-
/** @internal */
|
|
262
|
-
export type ListCrosssellProductsResponse$Outbound =
|
|
263
|
-
| ListCrosssellProductsResponseBody$Outbound
|
|
264
|
-
| components.Unauthorized$Outbound
|
|
265
|
-
| components.NotFound$Outbound;
|
|
266
|
-
|
|
267
|
-
/** @internal */
|
|
268
|
-
export const ListCrosssellProductsResponse$outboundSchema: z.ZodType<
|
|
269
|
-
ListCrosssellProductsResponse$Outbound,
|
|
270
|
-
z.ZodTypeDef,
|
|
271
|
-
ListCrosssellProductsResponse
|
|
272
|
-
> = z.union([
|
|
273
|
-
z.lazy(() => ListCrosssellProductsResponseBody$outboundSchema),
|
|
274
|
-
components.Unauthorized$outboundSchema,
|
|
275
|
-
components.NotFound$outboundSchema,
|
|
276
|
-
]);
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* @internal
|
|
280
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
281
|
-
*/
|
|
282
|
-
export namespace ListCrosssellProductsResponse$ {
|
|
283
|
-
/** @deprecated use `ListCrosssellProductsResponse$inboundSchema` instead. */
|
|
284
|
-
export const inboundSchema = ListCrosssellProductsResponse$inboundSchema;
|
|
285
|
-
/** @deprecated use `ListCrosssellProductsResponse$outboundSchema` instead. */
|
|
286
|
-
export const outboundSchema = ListCrosssellProductsResponse$outboundSchema;
|
|
287
|
-
/** @deprecated use `ListCrosssellProductsResponse$Outbound` instead. */
|
|
288
|
-
export type Outbound = ListCrosssellProductsResponse$Outbound;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
export function listCrosssellProductsResponseToJSON(
|
|
292
|
-
listCrosssellProductsResponse: ListCrosssellProductsResponse,
|
|
293
|
-
): string {
|
|
294
|
-
return JSON.stringify(
|
|
295
|
-
ListCrosssellProductsResponse$outboundSchema.parse(
|
|
296
|
-
listCrosssellProductsResponse,
|
|
297
|
-
),
|
|
298
|
-
);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export function listCrosssellProductsResponseFromJSON(
|
|
302
|
-
jsonString: string,
|
|
303
|
-
): SafeParseResult<ListCrosssellProductsResponse, SDKValidationError> {
|
|
304
|
-
return safeParse(
|
|
305
|
-
jsonString,
|
|
306
|
-
(x) => ListCrosssellProductsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
307
|
-
`Failed to parse 'ListCrosssellProductsResponse' from JSON`,
|
|
308
|
-
);
|
|
309
|
-
}
|
|
@@ -29,11 +29,6 @@ export type ListOrderShipmentsResponseBody = {
|
|
|
29
29
|
content?: ListOrderShipmentsContent | undefined;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
export type ListOrderShipmentsResponse =
|
|
33
|
-
| ListOrderShipmentsResponseBody
|
|
34
|
-
| components.Unauthorized
|
|
35
|
-
| components.NotFound;
|
|
36
|
-
|
|
37
32
|
/** @internal */
|
|
38
33
|
export const ListOrderShipmentsRequest$inboundSchema: z.ZodType<
|
|
39
34
|
ListOrderShipmentsRequest,
|
|
@@ -211,62 +206,3 @@ export function listOrderShipmentsResponseBodyFromJSON(
|
|
|
211
206
|
`Failed to parse 'ListOrderShipmentsResponseBody' from JSON`,
|
|
212
207
|
);
|
|
213
208
|
}
|
|
214
|
-
|
|
215
|
-
/** @internal */
|
|
216
|
-
export const ListOrderShipmentsResponse$inboundSchema: z.ZodType<
|
|
217
|
-
ListOrderShipmentsResponse,
|
|
218
|
-
z.ZodTypeDef,
|
|
219
|
-
unknown
|
|
220
|
-
> = z.union([
|
|
221
|
-
z.lazy(() => ListOrderShipmentsResponseBody$inboundSchema),
|
|
222
|
-
components.Unauthorized$inboundSchema,
|
|
223
|
-
components.NotFound$inboundSchema,
|
|
224
|
-
]);
|
|
225
|
-
|
|
226
|
-
/** @internal */
|
|
227
|
-
export type ListOrderShipmentsResponse$Outbound =
|
|
228
|
-
| ListOrderShipmentsResponseBody$Outbound
|
|
229
|
-
| components.Unauthorized$Outbound
|
|
230
|
-
| components.NotFound$Outbound;
|
|
231
|
-
|
|
232
|
-
/** @internal */
|
|
233
|
-
export const ListOrderShipmentsResponse$outboundSchema: z.ZodType<
|
|
234
|
-
ListOrderShipmentsResponse$Outbound,
|
|
235
|
-
z.ZodTypeDef,
|
|
236
|
-
ListOrderShipmentsResponse
|
|
237
|
-
> = z.union([
|
|
238
|
-
z.lazy(() => ListOrderShipmentsResponseBody$outboundSchema),
|
|
239
|
-
components.Unauthorized$outboundSchema,
|
|
240
|
-
components.NotFound$outboundSchema,
|
|
241
|
-
]);
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* @internal
|
|
245
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
246
|
-
*/
|
|
247
|
-
export namespace ListOrderShipmentsResponse$ {
|
|
248
|
-
/** @deprecated use `ListOrderShipmentsResponse$inboundSchema` instead. */
|
|
249
|
-
export const inboundSchema = ListOrderShipmentsResponse$inboundSchema;
|
|
250
|
-
/** @deprecated use `ListOrderShipmentsResponse$outboundSchema` instead. */
|
|
251
|
-
export const outboundSchema = ListOrderShipmentsResponse$outboundSchema;
|
|
252
|
-
/** @deprecated use `ListOrderShipmentsResponse$Outbound` instead. */
|
|
253
|
-
export type Outbound = ListOrderShipmentsResponse$Outbound;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export function listOrderShipmentsResponseToJSON(
|
|
257
|
-
listOrderShipmentsResponse: ListOrderShipmentsResponse,
|
|
258
|
-
): string {
|
|
259
|
-
return JSON.stringify(
|
|
260
|
-
ListOrderShipmentsResponse$outboundSchema.parse(listOrderShipmentsResponse),
|
|
261
|
-
);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
export function listOrderShipmentsResponseFromJSON(
|
|
265
|
-
jsonString: string,
|
|
266
|
-
): SafeParseResult<ListOrderShipmentsResponse, SDKValidationError> {
|
|
267
|
-
return safeParse(
|
|
268
|
-
jsonString,
|
|
269
|
-
(x) => ListOrderShipmentsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
270
|
-
`Failed to parse 'ListOrderShipmentsResponse' from JSON`,
|
|
271
|
-
);
|
|
272
|
-
}
|
|
@@ -54,11 +54,6 @@ export type ListProductReviewsResponseBody = {
|
|
|
54
54
|
content: ListProductReviewsContent;
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
export type ListProductReviewsResponse =
|
|
58
|
-
| ListProductReviewsResponseBody
|
|
59
|
-
| components.Unauthorized
|
|
60
|
-
| components.NotFound;
|
|
61
|
-
|
|
62
57
|
/** @internal */
|
|
63
58
|
export const ListProductReviewsRequest$inboundSchema: z.ZodType<
|
|
64
59
|
ListProductReviewsRequest,
|
|
@@ -269,62 +264,3 @@ export function listProductReviewsResponseBodyFromJSON(
|
|
|
269
264
|
`Failed to parse 'ListProductReviewsResponseBody' from JSON`,
|
|
270
265
|
);
|
|
271
266
|
}
|
|
272
|
-
|
|
273
|
-
/** @internal */
|
|
274
|
-
export const ListProductReviewsResponse$inboundSchema: z.ZodType<
|
|
275
|
-
ListProductReviewsResponse,
|
|
276
|
-
z.ZodTypeDef,
|
|
277
|
-
unknown
|
|
278
|
-
> = z.union([
|
|
279
|
-
z.lazy(() => ListProductReviewsResponseBody$inboundSchema),
|
|
280
|
-
components.Unauthorized$inboundSchema,
|
|
281
|
-
components.NotFound$inboundSchema,
|
|
282
|
-
]);
|
|
283
|
-
|
|
284
|
-
/** @internal */
|
|
285
|
-
export type ListProductReviewsResponse$Outbound =
|
|
286
|
-
| ListProductReviewsResponseBody$Outbound
|
|
287
|
-
| components.Unauthorized$Outbound
|
|
288
|
-
| components.NotFound$Outbound;
|
|
289
|
-
|
|
290
|
-
/** @internal */
|
|
291
|
-
export const ListProductReviewsResponse$outboundSchema: z.ZodType<
|
|
292
|
-
ListProductReviewsResponse$Outbound,
|
|
293
|
-
z.ZodTypeDef,
|
|
294
|
-
ListProductReviewsResponse
|
|
295
|
-
> = z.union([
|
|
296
|
-
z.lazy(() => ListProductReviewsResponseBody$outboundSchema),
|
|
297
|
-
components.Unauthorized$outboundSchema,
|
|
298
|
-
components.NotFound$outboundSchema,
|
|
299
|
-
]);
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* @internal
|
|
303
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
304
|
-
*/
|
|
305
|
-
export namespace ListProductReviewsResponse$ {
|
|
306
|
-
/** @deprecated use `ListProductReviewsResponse$inboundSchema` instead. */
|
|
307
|
-
export const inboundSchema = ListProductReviewsResponse$inboundSchema;
|
|
308
|
-
/** @deprecated use `ListProductReviewsResponse$outboundSchema` instead. */
|
|
309
|
-
export const outboundSchema = ListProductReviewsResponse$outboundSchema;
|
|
310
|
-
/** @deprecated use `ListProductReviewsResponse$Outbound` instead. */
|
|
311
|
-
export type Outbound = ListProductReviewsResponse$Outbound;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
export function listProductReviewsResponseToJSON(
|
|
315
|
-
listProductReviewsResponse: ListProductReviewsResponse,
|
|
316
|
-
): string {
|
|
317
|
-
return JSON.stringify(
|
|
318
|
-
ListProductReviewsResponse$outboundSchema.parse(listProductReviewsResponse),
|
|
319
|
-
);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
export function listProductReviewsResponseFromJSON(
|
|
323
|
-
jsonString: string,
|
|
324
|
-
): SafeParseResult<ListProductReviewsResponse, SDKValidationError> {
|
|
325
|
-
return safeParse(
|
|
326
|
-
jsonString,
|
|
327
|
-
(x) => ListProductReviewsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
328
|
-
`Failed to parse 'ListProductReviewsResponse' from JSON`,
|
|
329
|
-
);
|
|
330
|
-
}
|
|
@@ -49,11 +49,6 @@ export type ListProductsResponseBody = {
|
|
|
49
49
|
content: Content;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
export type ListProductsResponse =
|
|
53
|
-
| ListProductsResponseBody
|
|
54
|
-
| components.Unauthorized
|
|
55
|
-
| components.NotFound;
|
|
56
|
-
|
|
57
52
|
/** @internal */
|
|
58
53
|
export const ListProductsRequest$inboundSchema: z.ZodType<
|
|
59
54
|
ListProductsRequest,
|
|
@@ -241,62 +236,3 @@ export function listProductsResponseBodyFromJSON(
|
|
|
241
236
|
`Failed to parse 'ListProductsResponseBody' from JSON`,
|
|
242
237
|
);
|
|
243
238
|
}
|
|
244
|
-
|
|
245
|
-
/** @internal */
|
|
246
|
-
export const ListProductsResponse$inboundSchema: z.ZodType<
|
|
247
|
-
ListProductsResponse,
|
|
248
|
-
z.ZodTypeDef,
|
|
249
|
-
unknown
|
|
250
|
-
> = z.union([
|
|
251
|
-
z.lazy(() => ListProductsResponseBody$inboundSchema),
|
|
252
|
-
components.Unauthorized$inboundSchema,
|
|
253
|
-
components.NotFound$inboundSchema,
|
|
254
|
-
]);
|
|
255
|
-
|
|
256
|
-
/** @internal */
|
|
257
|
-
export type ListProductsResponse$Outbound =
|
|
258
|
-
| ListProductsResponseBody$Outbound
|
|
259
|
-
| components.Unauthorized$Outbound
|
|
260
|
-
| components.NotFound$Outbound;
|
|
261
|
-
|
|
262
|
-
/** @internal */
|
|
263
|
-
export const ListProductsResponse$outboundSchema: z.ZodType<
|
|
264
|
-
ListProductsResponse$Outbound,
|
|
265
|
-
z.ZodTypeDef,
|
|
266
|
-
ListProductsResponse
|
|
267
|
-
> = z.union([
|
|
268
|
-
z.lazy(() => ListProductsResponseBody$outboundSchema),
|
|
269
|
-
components.Unauthorized$outboundSchema,
|
|
270
|
-
components.NotFound$outboundSchema,
|
|
271
|
-
]);
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* @internal
|
|
275
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
276
|
-
*/
|
|
277
|
-
export namespace ListProductsResponse$ {
|
|
278
|
-
/** @deprecated use `ListProductsResponse$inboundSchema` instead. */
|
|
279
|
-
export const inboundSchema = ListProductsResponse$inboundSchema;
|
|
280
|
-
/** @deprecated use `ListProductsResponse$outboundSchema` instead. */
|
|
281
|
-
export const outboundSchema = ListProductsResponse$outboundSchema;
|
|
282
|
-
/** @deprecated use `ListProductsResponse$Outbound` instead. */
|
|
283
|
-
export type Outbound = ListProductsResponse$Outbound;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
export function listProductsResponseToJSON(
|
|
287
|
-
listProductsResponse: ListProductsResponse,
|
|
288
|
-
): string {
|
|
289
|
-
return JSON.stringify(
|
|
290
|
-
ListProductsResponse$outboundSchema.parse(listProductsResponse),
|
|
291
|
-
);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
export function listProductsResponseFromJSON(
|
|
295
|
-
jsonString: string,
|
|
296
|
-
): SafeParseResult<ListProductsResponse, SDKValidationError> {
|
|
297
|
-
return safeParse(
|
|
298
|
-
jsonString,
|
|
299
|
-
(x) => ListProductsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
300
|
-
`Failed to parse 'ListProductsResponse' from JSON`,
|
|
301
|
-
);
|
|
302
|
-
}
|
|
@@ -33,11 +33,6 @@ export type ListProductVariantsResponseBody = {
|
|
|
33
33
|
content: ListProductVariantsContent;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
export type ListProductVariantsResponse =
|
|
37
|
-
| ListProductVariantsResponseBody
|
|
38
|
-
| components.Unauthorized
|
|
39
|
-
| components.NotFound;
|
|
40
|
-
|
|
41
36
|
/** @internal */
|
|
42
37
|
export const ListProductVariantsRequest$inboundSchema: z.ZodType<
|
|
43
38
|
ListProductVariantsRequest,
|
|
@@ -220,64 +215,3 @@ export function listProductVariantsResponseBodyFromJSON(
|
|
|
220
215
|
`Failed to parse 'ListProductVariantsResponseBody' from JSON`,
|
|
221
216
|
);
|
|
222
217
|
}
|
|
223
|
-
|
|
224
|
-
/** @internal */
|
|
225
|
-
export const ListProductVariantsResponse$inboundSchema: z.ZodType<
|
|
226
|
-
ListProductVariantsResponse,
|
|
227
|
-
z.ZodTypeDef,
|
|
228
|
-
unknown
|
|
229
|
-
> = z.union([
|
|
230
|
-
z.lazy(() => ListProductVariantsResponseBody$inboundSchema),
|
|
231
|
-
components.Unauthorized$inboundSchema,
|
|
232
|
-
components.NotFound$inboundSchema,
|
|
233
|
-
]);
|
|
234
|
-
|
|
235
|
-
/** @internal */
|
|
236
|
-
export type ListProductVariantsResponse$Outbound =
|
|
237
|
-
| ListProductVariantsResponseBody$Outbound
|
|
238
|
-
| components.Unauthorized$Outbound
|
|
239
|
-
| components.NotFound$Outbound;
|
|
240
|
-
|
|
241
|
-
/** @internal */
|
|
242
|
-
export const ListProductVariantsResponse$outboundSchema: z.ZodType<
|
|
243
|
-
ListProductVariantsResponse$Outbound,
|
|
244
|
-
z.ZodTypeDef,
|
|
245
|
-
ListProductVariantsResponse
|
|
246
|
-
> = z.union([
|
|
247
|
-
z.lazy(() => ListProductVariantsResponseBody$outboundSchema),
|
|
248
|
-
components.Unauthorized$outboundSchema,
|
|
249
|
-
components.NotFound$outboundSchema,
|
|
250
|
-
]);
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* @internal
|
|
254
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
255
|
-
*/
|
|
256
|
-
export namespace ListProductVariantsResponse$ {
|
|
257
|
-
/** @deprecated use `ListProductVariantsResponse$inboundSchema` instead. */
|
|
258
|
-
export const inboundSchema = ListProductVariantsResponse$inboundSchema;
|
|
259
|
-
/** @deprecated use `ListProductVariantsResponse$outboundSchema` instead. */
|
|
260
|
-
export const outboundSchema = ListProductVariantsResponse$outboundSchema;
|
|
261
|
-
/** @deprecated use `ListProductVariantsResponse$Outbound` instead. */
|
|
262
|
-
export type Outbound = ListProductVariantsResponse$Outbound;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export function listProductVariantsResponseToJSON(
|
|
266
|
-
listProductVariantsResponse: ListProductVariantsResponse,
|
|
267
|
-
): string {
|
|
268
|
-
return JSON.stringify(
|
|
269
|
-
ListProductVariantsResponse$outboundSchema.parse(
|
|
270
|
-
listProductVariantsResponse,
|
|
271
|
-
),
|
|
272
|
-
);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
export function listProductVariantsResponseFromJSON(
|
|
276
|
-
jsonString: string,
|
|
277
|
-
): SafeParseResult<ListProductVariantsResponse, SDKValidationError> {
|
|
278
|
-
return safeParse(
|
|
279
|
-
jsonString,
|
|
280
|
-
(x) => ListProductVariantsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
281
|
-
`Failed to parse 'ListProductVariantsResponse' from JSON`,
|
|
282
|
-
);
|
|
283
|
-
}
|
|
@@ -45,11 +45,6 @@ export type ListSimilarProductsResponseBody = {
|
|
|
45
45
|
content: ListSimilarProductsContent;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
export type ListSimilarProductsResponse =
|
|
49
|
-
| ListSimilarProductsResponseBody
|
|
50
|
-
| components.Unauthorized
|
|
51
|
-
| components.NotFound;
|
|
52
|
-
|
|
53
48
|
/** @internal */
|
|
54
49
|
export const ListSimilarProductsRequest$inboundSchema: z.ZodType<
|
|
55
50
|
ListSimilarProductsRequest,
|
|
@@ -241,64 +236,3 @@ export function listSimilarProductsResponseBodyFromJSON(
|
|
|
241
236
|
`Failed to parse 'ListSimilarProductsResponseBody' from JSON`,
|
|
242
237
|
);
|
|
243
238
|
}
|
|
244
|
-
|
|
245
|
-
/** @internal */
|
|
246
|
-
export const ListSimilarProductsResponse$inboundSchema: z.ZodType<
|
|
247
|
-
ListSimilarProductsResponse,
|
|
248
|
-
z.ZodTypeDef,
|
|
249
|
-
unknown
|
|
250
|
-
> = z.union([
|
|
251
|
-
z.lazy(() => ListSimilarProductsResponseBody$inboundSchema),
|
|
252
|
-
components.Unauthorized$inboundSchema,
|
|
253
|
-
components.NotFound$inboundSchema,
|
|
254
|
-
]);
|
|
255
|
-
|
|
256
|
-
/** @internal */
|
|
257
|
-
export type ListSimilarProductsResponse$Outbound =
|
|
258
|
-
| ListSimilarProductsResponseBody$Outbound
|
|
259
|
-
| components.Unauthorized$Outbound
|
|
260
|
-
| components.NotFound$Outbound;
|
|
261
|
-
|
|
262
|
-
/** @internal */
|
|
263
|
-
export const ListSimilarProductsResponse$outboundSchema: z.ZodType<
|
|
264
|
-
ListSimilarProductsResponse$Outbound,
|
|
265
|
-
z.ZodTypeDef,
|
|
266
|
-
ListSimilarProductsResponse
|
|
267
|
-
> = z.union([
|
|
268
|
-
z.lazy(() => ListSimilarProductsResponseBody$outboundSchema),
|
|
269
|
-
components.Unauthorized$outboundSchema,
|
|
270
|
-
components.NotFound$outboundSchema,
|
|
271
|
-
]);
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* @internal
|
|
275
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
276
|
-
*/
|
|
277
|
-
export namespace ListSimilarProductsResponse$ {
|
|
278
|
-
/** @deprecated use `ListSimilarProductsResponse$inboundSchema` instead. */
|
|
279
|
-
export const inboundSchema = ListSimilarProductsResponse$inboundSchema;
|
|
280
|
-
/** @deprecated use `ListSimilarProductsResponse$outboundSchema` instead. */
|
|
281
|
-
export const outboundSchema = ListSimilarProductsResponse$outboundSchema;
|
|
282
|
-
/** @deprecated use `ListSimilarProductsResponse$Outbound` instead. */
|
|
283
|
-
export type Outbound = ListSimilarProductsResponse$Outbound;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
export function listSimilarProductsResponseToJSON(
|
|
287
|
-
listSimilarProductsResponse: ListSimilarProductsResponse,
|
|
288
|
-
): string {
|
|
289
|
-
return JSON.stringify(
|
|
290
|
-
ListSimilarProductsResponse$outboundSchema.parse(
|
|
291
|
-
listSimilarProductsResponse,
|
|
292
|
-
),
|
|
293
|
-
);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export function listSimilarProductsResponseFromJSON(
|
|
297
|
-
jsonString: string,
|
|
298
|
-
): SafeParseResult<ListSimilarProductsResponse, SDKValidationError> {
|
|
299
|
-
return safeParse(
|
|
300
|
-
jsonString,
|
|
301
|
-
(x) => ListSimilarProductsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
302
|
-
`Failed to parse 'ListSimilarProductsResponse' from JSON`,
|
|
303
|
-
);
|
|
304
|
-
}
|
|
@@ -53,11 +53,6 @@ export type ListSkusResponseBody = {
|
|
|
53
53
|
content: ListSkusContent;
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
export type ListSkusResponse =
|
|
57
|
-
| ListSkusResponseBody
|
|
58
|
-
| components.Unauthorized
|
|
59
|
-
| components.NotFound;
|
|
60
|
-
|
|
61
56
|
/** @internal */
|
|
62
57
|
export const ListSkusRequest$inboundSchema: z.ZodType<
|
|
63
58
|
ListSkusRequest,
|
|
@@ -251,62 +246,3 @@ export function listSkusResponseBodyFromJSON(
|
|
|
251
246
|
`Failed to parse 'ListSkusResponseBody' from JSON`,
|
|
252
247
|
);
|
|
253
248
|
}
|
|
254
|
-
|
|
255
|
-
/** @internal */
|
|
256
|
-
export const ListSkusResponse$inboundSchema: z.ZodType<
|
|
257
|
-
ListSkusResponse,
|
|
258
|
-
z.ZodTypeDef,
|
|
259
|
-
unknown
|
|
260
|
-
> = z.union([
|
|
261
|
-
z.lazy(() => ListSkusResponseBody$inboundSchema),
|
|
262
|
-
components.Unauthorized$inboundSchema,
|
|
263
|
-
components.NotFound$inboundSchema,
|
|
264
|
-
]);
|
|
265
|
-
|
|
266
|
-
/** @internal */
|
|
267
|
-
export type ListSkusResponse$Outbound =
|
|
268
|
-
| ListSkusResponseBody$Outbound
|
|
269
|
-
| components.Unauthorized$Outbound
|
|
270
|
-
| components.NotFound$Outbound;
|
|
271
|
-
|
|
272
|
-
/** @internal */
|
|
273
|
-
export const ListSkusResponse$outboundSchema: z.ZodType<
|
|
274
|
-
ListSkusResponse$Outbound,
|
|
275
|
-
z.ZodTypeDef,
|
|
276
|
-
ListSkusResponse
|
|
277
|
-
> = z.union([
|
|
278
|
-
z.lazy(() => ListSkusResponseBody$outboundSchema),
|
|
279
|
-
components.Unauthorized$outboundSchema,
|
|
280
|
-
components.NotFound$outboundSchema,
|
|
281
|
-
]);
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* @internal
|
|
285
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
286
|
-
*/
|
|
287
|
-
export namespace ListSkusResponse$ {
|
|
288
|
-
/** @deprecated use `ListSkusResponse$inboundSchema` instead. */
|
|
289
|
-
export const inboundSchema = ListSkusResponse$inboundSchema;
|
|
290
|
-
/** @deprecated use `ListSkusResponse$outboundSchema` instead. */
|
|
291
|
-
export const outboundSchema = ListSkusResponse$outboundSchema;
|
|
292
|
-
/** @deprecated use `ListSkusResponse$Outbound` instead. */
|
|
293
|
-
export type Outbound = ListSkusResponse$Outbound;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export function listSkusResponseToJSON(
|
|
297
|
-
listSkusResponse: ListSkusResponse,
|
|
298
|
-
): string {
|
|
299
|
-
return JSON.stringify(
|
|
300
|
-
ListSkusResponse$outboundSchema.parse(listSkusResponse),
|
|
301
|
-
);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
export function listSkusResponseFromJSON(
|
|
305
|
-
jsonString: string,
|
|
306
|
-
): SafeParseResult<ListSkusResponse, SDKValidationError> {
|
|
307
|
-
return safeParse(
|
|
308
|
-
jsonString,
|
|
309
|
-
(x) => ListSkusResponse$inboundSchema.parse(JSON.parse(x)),
|
|
310
|
-
`Failed to parse 'ListSkusResponse' from JSON`,
|
|
311
|
-
);
|
|
312
|
-
}
|
|
@@ -48,11 +48,6 @@ export type ListUpsellProductsResponseBody = {
|
|
|
48
48
|
content: ListUpsellProductsContent;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
export type ListUpsellProductsResponse =
|
|
52
|
-
| ListUpsellProductsResponseBody
|
|
53
|
-
| components.Unauthorized
|
|
54
|
-
| components.NotFound;
|
|
55
|
-
|
|
56
51
|
/** @internal */
|
|
57
52
|
export const ListUpsellProductsRequest$inboundSchema: z.ZodType<
|
|
58
53
|
ListUpsellProductsRequest,
|
|
@@ -244,62 +239,3 @@ export function listUpsellProductsResponseBodyFromJSON(
|
|
|
244
239
|
`Failed to parse 'ListUpsellProductsResponseBody' from JSON`,
|
|
245
240
|
);
|
|
246
241
|
}
|
|
247
|
-
|
|
248
|
-
/** @internal */
|
|
249
|
-
export const ListUpsellProductsResponse$inboundSchema: z.ZodType<
|
|
250
|
-
ListUpsellProductsResponse,
|
|
251
|
-
z.ZodTypeDef,
|
|
252
|
-
unknown
|
|
253
|
-
> = z.union([
|
|
254
|
-
z.lazy(() => ListUpsellProductsResponseBody$inboundSchema),
|
|
255
|
-
components.Unauthorized$inboundSchema,
|
|
256
|
-
components.NotFound$inboundSchema,
|
|
257
|
-
]);
|
|
258
|
-
|
|
259
|
-
/** @internal */
|
|
260
|
-
export type ListUpsellProductsResponse$Outbound =
|
|
261
|
-
| ListUpsellProductsResponseBody$Outbound
|
|
262
|
-
| components.Unauthorized$Outbound
|
|
263
|
-
| components.NotFound$Outbound;
|
|
264
|
-
|
|
265
|
-
/** @internal */
|
|
266
|
-
export const ListUpsellProductsResponse$outboundSchema: z.ZodType<
|
|
267
|
-
ListUpsellProductsResponse$Outbound,
|
|
268
|
-
z.ZodTypeDef,
|
|
269
|
-
ListUpsellProductsResponse
|
|
270
|
-
> = z.union([
|
|
271
|
-
z.lazy(() => ListUpsellProductsResponseBody$outboundSchema),
|
|
272
|
-
components.Unauthorized$outboundSchema,
|
|
273
|
-
components.NotFound$outboundSchema,
|
|
274
|
-
]);
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* @internal
|
|
278
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
279
|
-
*/
|
|
280
|
-
export namespace ListUpsellProductsResponse$ {
|
|
281
|
-
/** @deprecated use `ListUpsellProductsResponse$inboundSchema` instead. */
|
|
282
|
-
export const inboundSchema = ListUpsellProductsResponse$inboundSchema;
|
|
283
|
-
/** @deprecated use `ListUpsellProductsResponse$outboundSchema` instead. */
|
|
284
|
-
export const outboundSchema = ListUpsellProductsResponse$outboundSchema;
|
|
285
|
-
/** @deprecated use `ListUpsellProductsResponse$Outbound` instead. */
|
|
286
|
-
export type Outbound = ListUpsellProductsResponse$Outbound;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
export function listUpsellProductsResponseToJSON(
|
|
290
|
-
listUpsellProductsResponse: ListUpsellProductsResponse,
|
|
291
|
-
): string {
|
|
292
|
-
return JSON.stringify(
|
|
293
|
-
ListUpsellProductsResponse$outboundSchema.parse(listUpsellProductsResponse),
|
|
294
|
-
);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
export function listUpsellProductsResponseFromJSON(
|
|
298
|
-
jsonString: string,
|
|
299
|
-
): SafeParseResult<ListUpsellProductsResponse, SDKValidationError> {
|
|
300
|
-
return safeParse(
|
|
301
|
-
jsonString,
|
|
302
|
-
(x) => ListUpsellProductsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
303
|
-
`Failed to parse 'ListUpsellProductsResponse' from JSON`,
|
|
304
|
-
);
|
|
305
|
-
}
|