ce-storefront 0.5.6 → 0.7.0
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 +8 -35
- package/docs/sdks/auth/README.md +0 -14
- package/docs/sdks/campaigns/README.md +0 -1
- package/docs/sdks/carts/README.md +0 -9
- package/docs/sdks/catalog/README.md +0 -12
- package/docs/sdks/common/README.md +0 -1
- package/docs/sdks/customers/README.md +0 -6
- package/docs/sdks/orders/README.md +0 -7
- package/docs/sdks/shipping/README.md +0 -1
- package/esm/funcs/authCheckVerificationStatus.d.ts.map +1 -1
- package/esm/funcs/authCheckVerificationStatus.js +1 -8
- package/esm/funcs/authCheckVerificationStatus.js.map +1 -1
- package/esm/funcs/authCreateNotificationPreferences.d.ts.map +1 -1
- package/esm/funcs/authCreateNotificationPreferences.js +1 -8
- package/esm/funcs/authCreateNotificationPreferences.js.map +1 -1
- package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
- package/esm/funcs/authGenerateOtp.js +1 -6
- package/esm/funcs/authGenerateOtp.js.map +1 -1
- package/esm/funcs/authGetAnonymousToken.d.ts.map +1 -1
- package/esm/funcs/authGetAnonymousToken.js +1 -6
- package/esm/funcs/authGetAnonymousToken.js.map +1 -1
- package/esm/funcs/authGetNotificationPreferences.d.ts.map +1 -1
- package/esm/funcs/authGetNotificationPreferences.js +1 -8
- package/esm/funcs/authGetNotificationPreferences.js.map +1 -1
- package/esm/funcs/authGetUserDetail.d.ts.map +1 -1
- package/esm/funcs/authGetUserDetail.js +1 -6
- package/esm/funcs/authGetUserDetail.js.map +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
- package/esm/funcs/authLoginWithEmail.js +1 -6
- package/esm/funcs/authLoginWithEmail.js.map +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
- package/esm/funcs/authLoginWithPhone.js +1 -6
- package/esm/funcs/authLoginWithPhone.js.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js +1 -6
- package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
- package/esm/funcs/authLogout.d.ts.map +1 -1
- package/esm/funcs/authLogout.js +1 -6
- package/esm/funcs/authLogout.js.map +1 -1
- package/esm/funcs/authRefreshToken.d.ts.map +1 -1
- package/esm/funcs/authRefreshToken.js +1 -6
- package/esm/funcs/authRefreshToken.js.map +1 -1
- package/esm/funcs/authUpdateNotificationPreferences.d.ts.map +1 -1
- package/esm/funcs/authUpdateNotificationPreferences.js +1 -8
- package/esm/funcs/authUpdateNotificationPreferences.js.map +1 -1
- package/esm/funcs/authUpdateUser.d.ts.map +1 -1
- package/esm/funcs/authUpdateUser.js +1 -6
- package/esm/funcs/authUpdateUser.js.map +1 -1
- package/esm/funcs/authVerifyOtp.d.ts.map +1 -1
- package/esm/funcs/authVerifyOtp.js +1 -6
- package/esm/funcs/authVerifyOtp.js.map +1 -1
- package/esm/funcs/campaignsSubscribeNewsletter.d.ts.map +1 -1
- package/esm/funcs/campaignsSubscribeNewsletter.js +1 -8
- package/esm/funcs/campaignsSubscribeNewsletter.js.map +1 -1
- package/esm/funcs/cartsApplyCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsApplyCoupon.js +1 -6
- package/esm/funcs/cartsApplyCoupon.js.map +1 -1
- package/esm/funcs/cartsCreateCart.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCart.js +1 -6
- package/esm/funcs/cartsCreateCart.js.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.js +1 -6
- package/esm/funcs/cartsCreateCartAddress.js.map +1 -1
- package/esm/funcs/cartsDeleteCart.d.ts.map +1 -1
- package/esm/funcs/cartsDeleteCart.js +1 -6
- package/esm/funcs/cartsDeleteCart.js.map +1 -1
- package/esm/funcs/cartsGetCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetCart.js +1 -6
- package/esm/funcs/cartsGetCart.js.map +1 -1
- package/esm/funcs/cartsGetUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetUserCart.js +1 -6
- package/esm/funcs/cartsGetUserCart.js.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.js +1 -6
- package/esm/funcs/cartsRemoveCoupon.js.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.js +1 -6
- package/esm/funcs/cartsRemoveUserCart.js.map +1 -1
- package/esm/funcs/cartsUpdateCart.d.ts.map +1 -1
- package/esm/funcs/cartsUpdateCart.js +1 -6
- package/esm/funcs/cartsUpdateCart.js.map +1 -1
- package/esm/funcs/catalogCreateProductReview.d.ts.map +1 -1
- package/esm/funcs/catalogCreateProductReview.js +1 -8
- package/esm/funcs/catalogCreateProductReview.js.map +1 -1
- package/esm/funcs/catalogGetProductDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetProductDetail.js +1 -6
- package/esm/funcs/catalogGetProductDetail.js.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +1 -6
- package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
- package/esm/funcs/catalogListCategories.d.ts.map +1 -1
- package/esm/funcs/catalogListCategories.js +1 -6
- package/esm/funcs/catalogListCategories.js.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js +1 -8
- package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
- package/esm/funcs/catalogListProductReviews.d.ts.map +1 -1
- package/esm/funcs/catalogListProductReviews.js +1 -6
- package/esm/funcs/catalogListProductReviews.js.map +1 -1
- package/esm/funcs/catalogListProductVariants.d.ts.map +1 -1
- package/esm/funcs/catalogListProductVariants.js +1 -8
- package/esm/funcs/catalogListProductVariants.js.map +1 -1
- package/esm/funcs/catalogListProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListProducts.js +1 -6
- package/esm/funcs/catalogListProducts.js.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.js +1 -8
- package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
- package/esm/funcs/catalogListSkus.d.ts.map +1 -1
- package/esm/funcs/catalogListSkus.js +1 -6
- package/esm/funcs/catalogListSkus.js.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.js +1 -6
- package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
- package/esm/funcs/catalogSearchProducts.d.ts.map +1 -1
- package/esm/funcs/catalogSearchProducts.js +1 -6
- package/esm/funcs/catalogSearchProducts.js.map +1 -1
- package/esm/funcs/commonListCountryPincodes.d.ts.map +1 -1
- package/esm/funcs/commonListCountryPincodes.js +1 -8
- package/esm/funcs/commonListCountryPincodes.js.map +1 -1
- package/esm/funcs/customersCreateAddress.d.ts.map +1 -1
- package/esm/funcs/customersCreateAddress.js +1 -6
- package/esm/funcs/customersCreateAddress.js.map +1 -1
- package/esm/funcs/customersDeleteAddress.d.ts.map +1 -1
- package/esm/funcs/customersDeleteAddress.js +1 -6
- package/esm/funcs/customersDeleteAddress.js.map +1 -1
- package/esm/funcs/customersGetAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersGetAddressDetail.js +1 -6
- package/esm/funcs/customersGetAddressDetail.js.map +1 -1
- package/esm/funcs/customersListAddresses.d.ts.map +1 -1
- package/esm/funcs/customersListAddresses.js +1 -6
- package/esm/funcs/customersListAddresses.js.map +1 -1
- package/esm/funcs/customersListUserReviews.d.ts.map +1 -1
- package/esm/funcs/customersListUserReviews.js +1 -6
- package/esm/funcs/customersListUserReviews.js.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.js +1 -8
- package/esm/funcs/customersUpdateAddressDetail.js.map +1 -1
- package/esm/funcs/ordersCancelOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCancelOrder.js +1 -6
- package/esm/funcs/ordersCancelOrder.js.map +1 -1
- package/esm/funcs/ordersCreateOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCreateOrder.js +1 -6
- package/esm/funcs/ordersCreateOrder.js.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.js +1 -6
- package/esm/funcs/ordersGetOrderDetail.js.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.js +1 -6
- package/esm/funcs/ordersGetPaymentStatus.js.map +1 -1
- package/esm/funcs/ordersListOrderShipments.d.ts.map +1 -1
- package/esm/funcs/ordersListOrderShipments.js +1 -6
- package/esm/funcs/ordersListOrderShipments.js.map +1 -1
- package/esm/funcs/ordersListOrders.d.ts.map +1 -1
- package/esm/funcs/ordersListOrders.js +1 -6
- package/esm/funcs/ordersListOrders.js.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.js +1 -6
- package/esm/funcs/ordersRetryOrderPayment.js.map +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.d.ts.map +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.js +1 -8
- package/esm/funcs/shippingCheckDeliveryAvailability.js.map +1 -1
- package/esm/lib/config.d.ts +16 -5
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +24 -25
- package/esm/lib/config.js.map +1 -1
- package/esm/models/components/orderitem.js +1 -1
- package/esm/models/components/orderitem.js.map +1 -1
- package/esm/models/operations/applycoupon.d.ts +0 -1
- package/esm/models/operations/applycoupon.d.ts.map +1 -1
- package/esm/models/operations/applycoupon.js +0 -10
- package/esm/models/operations/applycoupon.js.map +1 -1
- package/esm/models/operations/cancelorder.d.ts +0 -1
- package/esm/models/operations/cancelorder.d.ts.map +1 -1
- package/esm/models/operations/cancelorder.js +0 -10
- package/esm/models/operations/cancelorder.js.map +1 -1
- package/esm/models/operations/checkdeliveryavailability.d.ts +0 -1
- package/esm/models/operations/checkdeliveryavailability.d.ts.map +1 -1
- package/esm/models/operations/checkdeliveryavailability.js +0 -10
- package/esm/models/operations/checkdeliveryavailability.js.map +1 -1
- package/esm/models/operations/checkverificationstatus.d.ts +0 -1
- package/esm/models/operations/checkverificationstatus.d.ts.map +1 -1
- package/esm/models/operations/checkverificationstatus.js +0 -10
- package/esm/models/operations/checkverificationstatus.js.map +1 -1
- package/esm/models/operations/createaddress.d.ts +0 -1
- package/esm/models/operations/createaddress.d.ts.map +1 -1
- package/esm/models/operations/createaddress.js +0 -10
- package/esm/models/operations/createaddress.js.map +1 -1
- package/esm/models/operations/createcart.d.ts +0 -1
- package/esm/models/operations/createcart.d.ts.map +1 -1
- package/esm/models/operations/createcart.js +0 -10
- package/esm/models/operations/createcart.js.map +1 -1
- package/esm/models/operations/createcartaddress.d.ts +0 -1
- package/esm/models/operations/createcartaddress.d.ts.map +1 -1
- package/esm/models/operations/createcartaddress.js +0 -10
- package/esm/models/operations/createcartaddress.js.map +1 -1
- package/esm/models/operations/createnotificationpreferences.d.ts +0 -1
- package/esm/models/operations/createnotificationpreferences.d.ts.map +1 -1
- package/esm/models/operations/createnotificationpreferences.js +0 -10
- package/esm/models/operations/createnotificationpreferences.js.map +1 -1
- package/esm/models/operations/createorder.d.ts +0 -1
- package/esm/models/operations/createorder.d.ts.map +1 -1
- package/esm/models/operations/createorder.js +0 -10
- package/esm/models/operations/createorder.js.map +1 -1
- package/esm/models/operations/createproductreview.d.ts +0 -1
- package/esm/models/operations/createproductreview.d.ts.map +1 -1
- package/esm/models/operations/createproductreview.js +0 -10
- package/esm/models/operations/createproductreview.js.map +1 -1
- package/esm/models/operations/deleteaddress.d.ts +0 -1
- package/esm/models/operations/deleteaddress.d.ts.map +1 -1
- package/esm/models/operations/deleteaddress.js +0 -10
- package/esm/models/operations/deleteaddress.js.map +1 -1
- package/esm/models/operations/deletecart.d.ts +0 -1
- package/esm/models/operations/deletecart.d.ts.map +1 -1
- package/esm/models/operations/deletecart.js +0 -10
- package/esm/models/operations/deletecart.js.map +1 -1
- package/esm/models/operations/deleteusercart.d.ts +0 -1
- package/esm/models/operations/deleteusercart.d.ts.map +1 -1
- package/esm/models/operations/deleteusercart.js +0 -10
- package/esm/models/operations/deleteusercart.js.map +1 -1
- package/esm/models/operations/generateotp.d.ts +0 -1
- package/esm/models/operations/generateotp.d.ts.map +1 -1
- package/esm/models/operations/generateotp.js +0 -10
- package/esm/models/operations/generateotp.js.map +1 -1
- package/esm/models/operations/getaddressdetail.d.ts +0 -1
- package/esm/models/operations/getaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/getaddressdetail.js +0 -10
- package/esm/models/operations/getaddressdetail.js.map +1 -1
- package/esm/models/operations/getanonymoustoken.d.ts +0 -1
- package/esm/models/operations/getanonymoustoken.d.ts.map +1 -1
- package/esm/models/operations/getanonymoustoken.js +0 -10
- package/esm/models/operations/getanonymoustoken.js.map +1 -1
- package/esm/models/operations/getcart.d.ts +0 -1
- package/esm/models/operations/getcart.d.ts.map +1 -1
- package/esm/models/operations/getcart.js +0 -10
- package/esm/models/operations/getcart.js.map +1 -1
- package/esm/models/operations/getnotificationpreferences.d.ts +0 -1
- package/esm/models/operations/getnotificationpreferences.d.ts.map +1 -1
- package/esm/models/operations/getnotificationpreferences.js +0 -10
- package/esm/models/operations/getnotificationpreferences.js.map +1 -1
- package/esm/models/operations/getorderdetail.d.ts +0 -1
- package/esm/models/operations/getorderdetail.d.ts.map +1 -1
- package/esm/models/operations/getorderdetail.js +0 -10
- package/esm/models/operations/getorderdetail.js.map +1 -1
- package/esm/models/operations/getpaymentstatus.d.ts +0 -1
- package/esm/models/operations/getpaymentstatus.d.ts.map +1 -1
- package/esm/models/operations/getpaymentstatus.js +0 -10
- package/esm/models/operations/getpaymentstatus.js.map +1 -1
- package/esm/models/operations/getproductdetail.d.ts +0 -1
- package/esm/models/operations/getproductdetail.d.ts.map +1 -1
- package/esm/models/operations/getproductdetail.js +0 -10
- package/esm/models/operations/getproductdetail.js.map +1 -1
- package/esm/models/operations/getusercart.d.ts +0 -1
- package/esm/models/operations/getusercart.d.ts.map +1 -1
- package/esm/models/operations/getusercart.js +0 -10
- package/esm/models/operations/getusercart.js.map +1 -1
- package/esm/models/operations/getuserdetail.d.ts +0 -1
- package/esm/models/operations/getuserdetail.d.ts.map +1 -1
- package/esm/models/operations/getuserdetail.js +0 -10
- package/esm/models/operations/getuserdetail.js.map +1 -1
- package/esm/models/operations/getvariantdetail.d.ts +0 -1
- package/esm/models/operations/getvariantdetail.d.ts.map +1 -1
- package/esm/models/operations/getvariantdetail.js +0 -10
- package/esm/models/operations/getvariantdetail.js.map +1 -1
- package/esm/models/operations/listaddresses.d.ts +0 -1
- package/esm/models/operations/listaddresses.d.ts.map +1 -1
- package/esm/models/operations/listaddresses.js +0 -10
- package/esm/models/operations/listaddresses.js.map +1 -1
- package/esm/models/operations/listcategories.d.ts +0 -1
- package/esm/models/operations/listcategories.d.ts.map +1 -1
- package/esm/models/operations/listcategories.js +0 -10
- package/esm/models/operations/listcategories.js.map +1 -1
- package/esm/models/operations/listcountrypincodes.d.ts +0 -1
- package/esm/models/operations/listcountrypincodes.d.ts.map +1 -1
- package/esm/models/operations/listcountrypincodes.js +0 -10
- package/esm/models/operations/listcountrypincodes.js.map +1 -1
- package/esm/models/operations/listcrosssellproducts.d.ts +0 -1
- package/esm/models/operations/listcrosssellproducts.d.ts.map +1 -1
- package/esm/models/operations/listcrosssellproducts.js +0 -10
- package/esm/models/operations/listcrosssellproducts.js.map +1 -1
- package/esm/models/operations/listorders.d.ts +0 -1
- package/esm/models/operations/listorders.d.ts.map +1 -1
- package/esm/models/operations/listorders.js +0 -10
- package/esm/models/operations/listorders.js.map +1 -1
- package/esm/models/operations/listordershipments.d.ts +0 -1
- package/esm/models/operations/listordershipments.d.ts.map +1 -1
- package/esm/models/operations/listordershipments.js +0 -10
- package/esm/models/operations/listordershipments.js.map +1 -1
- package/esm/models/operations/listproductreviews.d.ts +0 -1
- package/esm/models/operations/listproductreviews.d.ts.map +1 -1
- package/esm/models/operations/listproductreviews.js +0 -10
- package/esm/models/operations/listproductreviews.js.map +1 -1
- package/esm/models/operations/listproducts.d.ts +0 -1
- package/esm/models/operations/listproducts.d.ts.map +1 -1
- package/esm/models/operations/listproducts.js +0 -10
- package/esm/models/operations/listproducts.js.map +1 -1
- package/esm/models/operations/listproductvariants.d.ts +0 -1
- package/esm/models/operations/listproductvariants.d.ts.map +1 -1
- package/esm/models/operations/listproductvariants.js +0 -10
- package/esm/models/operations/listproductvariants.js.map +1 -1
- package/esm/models/operations/listsimilarproducts.d.ts +0 -1
- package/esm/models/operations/listsimilarproducts.d.ts.map +1 -1
- package/esm/models/operations/listsimilarproducts.js +0 -10
- package/esm/models/operations/listsimilarproducts.js.map +1 -1
- package/esm/models/operations/listskus.d.ts +0 -1
- package/esm/models/operations/listskus.d.ts.map +1 -1
- package/esm/models/operations/listskus.js +0 -10
- package/esm/models/operations/listskus.js.map +1 -1
- package/esm/models/operations/listupsellproducts.d.ts +0 -1
- package/esm/models/operations/listupsellproducts.d.ts.map +1 -1
- package/esm/models/operations/listupsellproducts.js +0 -10
- package/esm/models/operations/listupsellproducts.js.map +1 -1
- package/esm/models/operations/listuserreviews.d.ts +0 -1
- package/esm/models/operations/listuserreviews.d.ts.map +1 -1
- package/esm/models/operations/listuserreviews.js +0 -10
- package/esm/models/operations/listuserreviews.js.map +1 -1
- package/esm/models/operations/loginwithemail.d.ts +0 -1
- package/esm/models/operations/loginwithemail.d.ts.map +1 -1
- package/esm/models/operations/loginwithemail.js +0 -10
- package/esm/models/operations/loginwithemail.js.map +1 -1
- package/esm/models/operations/loginwithphone.d.ts +0 -1
- package/esm/models/operations/loginwithphone.d.ts.map +1 -1
- package/esm/models/operations/loginwithphone.js +0 -10
- package/esm/models/operations/loginwithphone.js.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.d.ts +0 -1
- package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.js +0 -10
- package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
- package/esm/models/operations/logout.d.ts +0 -1
- package/esm/models/operations/logout.d.ts.map +1 -1
- package/esm/models/operations/logout.js +0 -10
- package/esm/models/operations/logout.js.map +1 -1
- package/esm/models/operations/refreshtoken.d.ts +0 -1
- package/esm/models/operations/refreshtoken.d.ts.map +1 -1
- package/esm/models/operations/refreshtoken.js +0 -10
- package/esm/models/operations/refreshtoken.js.map +1 -1
- package/esm/models/operations/removecoupon.d.ts +0 -1
- package/esm/models/operations/removecoupon.d.ts.map +1 -1
- package/esm/models/operations/removecoupon.js +0 -10
- package/esm/models/operations/removecoupon.js.map +1 -1
- package/esm/models/operations/retryorderpayment.d.ts +0 -1
- package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
- package/esm/models/operations/retryorderpayment.js +0 -10
- package/esm/models/operations/retryorderpayment.js.map +1 -1
- package/esm/models/operations/searchproducts.d.ts +0 -1
- package/esm/models/operations/searchproducts.d.ts.map +1 -1
- package/esm/models/operations/searchproducts.js +0 -10
- package/esm/models/operations/searchproducts.js.map +1 -1
- package/esm/models/operations/subscribenewsletter.d.ts +0 -1
- package/esm/models/operations/subscribenewsletter.d.ts.map +1 -1
- package/esm/models/operations/subscribenewsletter.js +0 -10
- package/esm/models/operations/subscribenewsletter.js.map +1 -1
- package/esm/models/operations/updateaddressdetail.d.ts +0 -1
- package/esm/models/operations/updateaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/updateaddressdetail.js +0 -10
- package/esm/models/operations/updateaddressdetail.js.map +1 -1
- package/esm/models/operations/updatecart.d.ts +0 -1
- package/esm/models/operations/updatecart.d.ts.map +1 -1
- package/esm/models/operations/updatecart.js +0 -10
- package/esm/models/operations/updatecart.js.map +1 -1
- package/esm/models/operations/updatenotificationpreferences.d.ts +0 -1
- package/esm/models/operations/updatenotificationpreferences.d.ts.map +1 -1
- package/esm/models/operations/updatenotificationpreferences.js +0 -10
- package/esm/models/operations/updatenotificationpreferences.js.map +1 -1
- package/esm/models/operations/updateuser.d.ts +0 -1
- package/esm/models/operations/updateuser.d.ts.map +1 -1
- package/esm/models/operations/updateuser.js +0 -10
- package/esm/models/operations/updateuser.js.map +1 -1
- package/esm/models/operations/verifyotp.d.ts +0 -1
- package/esm/models/operations/verifyotp.d.ts.map +1 -1
- package/esm/models/operations/verifyotp.js +0 -10
- package/esm/models/operations/verifyotp.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authCheckVerificationStatus.ts +1 -9
- package/src/funcs/authCreateNotificationPreferences.ts +1 -9
- package/src/funcs/authGenerateOtp.ts +1 -7
- package/src/funcs/authGetAnonymousToken.ts +1 -7
- package/src/funcs/authGetNotificationPreferences.ts +1 -9
- package/src/funcs/authGetUserDetail.ts +1 -7
- package/src/funcs/authLoginWithEmail.ts +1 -7
- package/src/funcs/authLoginWithPhone.ts +1 -7
- package/src/funcs/authLoginWithWhatsapp.ts +1 -7
- package/src/funcs/authLogout.ts +1 -7
- package/src/funcs/authRefreshToken.ts +1 -7
- package/src/funcs/authUpdateNotificationPreferences.ts +1 -9
- package/src/funcs/authUpdateUser.ts +1 -7
- package/src/funcs/authVerifyOtp.ts +1 -7
- package/src/funcs/campaignsSubscribeNewsletter.ts +1 -9
- package/src/funcs/cartsApplyCoupon.ts +1 -7
- package/src/funcs/cartsCreateCart.ts +1 -7
- package/src/funcs/cartsCreateCartAddress.ts +1 -7
- package/src/funcs/cartsDeleteCart.ts +1 -7
- package/src/funcs/cartsGetCart.ts +1 -7
- package/src/funcs/cartsGetUserCart.ts +1 -7
- package/src/funcs/cartsRemoveCoupon.ts +1 -7
- package/src/funcs/cartsRemoveUserCart.ts +1 -7
- package/src/funcs/cartsUpdateCart.ts +1 -7
- package/src/funcs/catalogCreateProductReview.ts +1 -9
- package/src/funcs/catalogGetProductDetail.ts +1 -7
- package/src/funcs/catalogGetVariantDetail.ts +1 -7
- package/src/funcs/catalogListCategories.ts +1 -7
- package/src/funcs/catalogListCrosssellProducts.ts +1 -9
- package/src/funcs/catalogListProductReviews.ts +1 -9
- package/src/funcs/catalogListProductVariants.ts +1 -9
- package/src/funcs/catalogListProducts.ts +1 -7
- package/src/funcs/catalogListSimilarProducts.ts +1 -9
- package/src/funcs/catalogListSkus.ts +1 -7
- package/src/funcs/catalogListUpsellProducts.ts +1 -9
- package/src/funcs/catalogSearchProducts.ts +1 -7
- package/src/funcs/commonListCountryPincodes.ts +1 -9
- package/src/funcs/customersCreateAddress.ts +1 -7
- package/src/funcs/customersDeleteAddress.ts +1 -7
- package/src/funcs/customersGetAddressDetail.ts +1 -7
- package/src/funcs/customersListAddresses.ts +1 -7
- package/src/funcs/customersListUserReviews.ts +1 -7
- package/src/funcs/customersUpdateAddressDetail.ts +1 -9
- package/src/funcs/ordersCancelOrder.ts +1 -7
- package/src/funcs/ordersCreateOrder.ts +1 -7
- package/src/funcs/ordersGetOrderDetail.ts +1 -7
- package/src/funcs/ordersGetPaymentStatus.ts +1 -7
- package/src/funcs/ordersListOrderShipments.ts +1 -9
- package/src/funcs/ordersListOrders.ts +1 -7
- package/src/funcs/ordersRetryOrderPayment.ts +1 -7
- package/src/funcs/shippingCheckDeliveryAvailability.ts +1 -9
- package/src/lib/config.ts +28 -26
- package/src/models/components/orderitem.ts +1 -1
- package/src/models/operations/applycoupon.ts +0 -11
- package/src/models/operations/cancelorder.ts +0 -11
- package/src/models/operations/checkdeliveryavailability.ts +0 -11
- package/src/models/operations/checkverificationstatus.ts +0 -11
- package/src/models/operations/createaddress.ts +0 -11
- package/src/models/operations/createcart.ts +0 -11
- package/src/models/operations/createcartaddress.ts +0 -11
- package/src/models/operations/createnotificationpreferences.ts +0 -11
- package/src/models/operations/createorder.ts +0 -11
- package/src/models/operations/createproductreview.ts +0 -11
- package/src/models/operations/deleteaddress.ts +0 -11
- package/src/models/operations/deletecart.ts +0 -11
- package/src/models/operations/deleteusercart.ts +0 -11
- package/src/models/operations/generateotp.ts +0 -11
- package/src/models/operations/getaddressdetail.ts +0 -11
- package/src/models/operations/getanonymoustoken.ts +0 -11
- package/src/models/operations/getcart.ts +0 -11
- package/src/models/operations/getnotificationpreferences.ts +0 -11
- package/src/models/operations/getorderdetail.ts +0 -11
- package/src/models/operations/getpaymentstatus.ts +0 -11
- package/src/models/operations/getproductdetail.ts +0 -11
- package/src/models/operations/getusercart.ts +0 -11
- package/src/models/operations/getuserdetail.ts +0 -11
- package/src/models/operations/getvariantdetail.ts +0 -11
- package/src/models/operations/listaddresses.ts +0 -11
- package/src/models/operations/listcategories.ts +0 -11
- package/src/models/operations/listcountrypincodes.ts +0 -11
- package/src/models/operations/listcrosssellproducts.ts +0 -11
- package/src/models/operations/listorders.ts +0 -11
- package/src/models/operations/listordershipments.ts +0 -11
- package/src/models/operations/listproductreviews.ts +0 -11
- package/src/models/operations/listproducts.ts +0 -11
- package/src/models/operations/listproductvariants.ts +0 -11
- package/src/models/operations/listsimilarproducts.ts +0 -11
- package/src/models/operations/listskus.ts +0 -11
- package/src/models/operations/listupsellproducts.ts +0 -11
- package/src/models/operations/listuserreviews.ts +0 -11
- package/src/models/operations/loginwithemail.ts +0 -11
- package/src/models/operations/loginwithphone.ts +0 -11
- package/src/models/operations/loginwithwhatsapp.ts +0 -11
- package/src/models/operations/logout.ts +0 -11
- package/src/models/operations/refreshtoken.ts +0 -11
- package/src/models/operations/removecoupon.ts +0 -11
- package/src/models/operations/retryorderpayment.ts +0 -11
- package/src/models/operations/searchproducts.ts +0 -11
- package/src/models/operations/subscribenewsletter.ts +0 -11
- package/src/models/operations/updateaddressdetail.ts +0 -11
- package/src/models/operations/updatecart.ts +0 -11
- package/src/models/operations/updatenotificationpreferences.ts +0 -11
- package/src/models/operations/updateuser.ts +0 -11
- package/src/models/operations/verifyotp.ts +0 -11
|
@@ -21,7 +21,6 @@ import {
|
|
|
21
21
|
import * as errors from "../models/errors/index.js";
|
|
22
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
23
|
import * as operations from "../models/operations/index.js";
|
|
24
|
-
import { UpdateAddressDetailServerList } from "../models/operations/updateaddressdetail.js";
|
|
25
24
|
import { Result } from "../types/fp.js";
|
|
26
25
|
|
|
27
26
|
/**
|
|
@@ -61,13 +60,6 @@ export async function customersUpdateAddressDetail(
|
|
|
61
60
|
const payload = parsed.value;
|
|
62
61
|
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
63
62
|
|
|
64
|
-
const baseURL = options?.serverURL
|
|
65
|
-
|| pathToFunc(UpdateAddressDetailServerList[0], {
|
|
66
|
-
charEncoding: "percent",
|
|
67
|
-
})({
|
|
68
|
-
store_id: "x2yh61zw4k",
|
|
69
|
-
});
|
|
70
|
-
|
|
71
63
|
const pathParams = {
|
|
72
64
|
address_id: encodeSimple("address_id", payload.address_id, {
|
|
73
65
|
explode: false,
|
|
@@ -108,7 +100,7 @@ export async function customersUpdateAddressDetail(
|
|
|
108
100
|
const requestRes = client._createRequest(context, {
|
|
109
101
|
security: requestSecurity,
|
|
110
102
|
method: "PUT",
|
|
111
|
-
baseURL:
|
|
103
|
+
baseURL: options?.serverURL,
|
|
112
104
|
path: path,
|
|
113
105
|
headers: headers,
|
|
114
106
|
body: body,
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
21
|
import * as errors from "../models/errors/index.js";
|
|
22
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
-
import { CancelOrderServerList } from "../models/operations/cancelorder.js";
|
|
24
23
|
import * as operations from "../models/operations/index.js";
|
|
25
24
|
import { Result } from "../types/fp.js";
|
|
26
25
|
|
|
@@ -59,11 +58,6 @@ export async function ordersCancelOrder(
|
|
|
59
58
|
const payload = parsed.value;
|
|
60
59
|
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
61
60
|
|
|
62
|
-
const baseURL = options?.serverURL
|
|
63
|
-
|| pathToFunc(CancelOrderServerList[0], { charEncoding: "percent" })({
|
|
64
|
-
store_id: "x2yh61zw4k",
|
|
65
|
-
});
|
|
66
|
-
|
|
67
61
|
const pathParams = {
|
|
68
62
|
order_number: encodeSimple("order_number", payload.order_number, {
|
|
69
63
|
explode: false,
|
|
@@ -98,7 +92,7 @@ export async function ordersCancelOrder(
|
|
|
98
92
|
const requestRes = client._createRequest(context, {
|
|
99
93
|
security: requestSecurity,
|
|
100
94
|
method: "POST",
|
|
101
|
-
baseURL:
|
|
95
|
+
baseURL: options?.serverURL,
|
|
102
96
|
path: path,
|
|
103
97
|
headers: headers,
|
|
104
98
|
body: body,
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
21
|
import * as errors from "../models/errors/index.js";
|
|
22
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
-
import { CreateOrderServerList } from "../models/operations/createorder.js";
|
|
24
23
|
import * as operations from "../models/operations/index.js";
|
|
25
24
|
import { Result } from "../types/fp.js";
|
|
26
25
|
|
|
@@ -60,11 +59,6 @@ export async function ordersCreateOrder(
|
|
|
60
59
|
const payload = parsed.value;
|
|
61
60
|
const body = encodeJSON("body", payload, { explode: true });
|
|
62
61
|
|
|
63
|
-
const baseURL = options?.serverURL
|
|
64
|
-
|| pathToFunc(CreateOrderServerList[0], { charEncoding: "percent" })({
|
|
65
|
-
store_id: "x2yh61zw4k",
|
|
66
|
-
});
|
|
67
|
-
|
|
68
62
|
const path = pathToFunc("/orders")();
|
|
69
63
|
|
|
70
64
|
const headers = new Headers(compactMap({
|
|
@@ -92,7 +86,7 @@ export async function ordersCreateOrder(
|
|
|
92
86
|
const requestRes = client._createRequest(context, {
|
|
93
87
|
security: requestSecurity,
|
|
94
88
|
method: "POST",
|
|
95
|
-
baseURL:
|
|
89
|
+
baseURL: options?.serverURL,
|
|
96
90
|
path: path,
|
|
97
91
|
headers: headers,
|
|
98
92
|
body: body,
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
21
|
import * as errors from "../models/errors/index.js";
|
|
22
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
-
import { GetOrderDetailServerList } from "../models/operations/getorderdetail.js";
|
|
24
23
|
import * as operations from "../models/operations/index.js";
|
|
25
24
|
import { Result } from "../types/fp.js";
|
|
26
25
|
|
|
@@ -59,11 +58,6 @@ export async function ordersGetOrderDetail(
|
|
|
59
58
|
const payload = parsed.value;
|
|
60
59
|
const body = null;
|
|
61
60
|
|
|
62
|
-
const baseURL = options?.serverURL
|
|
63
|
-
|| pathToFunc(GetOrderDetailServerList[0], { charEncoding: "percent" })({
|
|
64
|
-
store_id: "x2yh61zw4k",
|
|
65
|
-
});
|
|
66
|
-
|
|
67
61
|
const pathParams = {
|
|
68
62
|
order_number: encodeSimple("order_number", payload.order_number, {
|
|
69
63
|
explode: false,
|
|
@@ -97,7 +91,7 @@ export async function ordersGetOrderDetail(
|
|
|
97
91
|
const requestRes = client._createRequest(context, {
|
|
98
92
|
security: requestSecurity,
|
|
99
93
|
method: "GET",
|
|
100
|
-
baseURL:
|
|
94
|
+
baseURL: options?.serverURL,
|
|
101
95
|
path: path,
|
|
102
96
|
headers: headers,
|
|
103
97
|
body: body,
|
|
@@ -19,7 +19,6 @@ import {
|
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
21
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
-
import { GetPaymentStatusServerList } from "../models/operations/getpaymentstatus.js";
|
|
23
22
|
import * as operations from "../models/operations/index.js";
|
|
24
23
|
import { Result } from "../types/fp.js";
|
|
25
24
|
|
|
@@ -56,11 +55,6 @@ export async function ordersGetPaymentStatus(
|
|
|
56
55
|
const payload = parsed.value;
|
|
57
56
|
const body = null;
|
|
58
57
|
|
|
59
|
-
const baseURL = options?.serverURL
|
|
60
|
-
|| pathToFunc(GetPaymentStatusServerList[0], { charEncoding: "percent" })({
|
|
61
|
-
store_id: "x2yh61zw4k",
|
|
62
|
-
});
|
|
63
|
-
|
|
64
58
|
const pathParams = {
|
|
65
59
|
order_number: encodeSimple("order_number", payload.order_number, {
|
|
66
60
|
explode: false,
|
|
@@ -94,7 +88,7 @@ export async function ordersGetPaymentStatus(
|
|
|
94
88
|
const requestRes = client._createRequest(context, {
|
|
95
89
|
security: requestSecurity,
|
|
96
90
|
method: "GET",
|
|
97
|
-
baseURL:
|
|
91
|
+
baseURL: options?.serverURL,
|
|
98
92
|
path: path,
|
|
99
93
|
headers: headers,
|
|
100
94
|
body: body,
|
|
@@ -21,7 +21,6 @@ import {
|
|
|
21
21
|
import * as errors from "../models/errors/index.js";
|
|
22
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
23
|
import * as operations from "../models/operations/index.js";
|
|
24
|
-
import { ListOrderShipmentsServerList } from "../models/operations/listordershipments.js";
|
|
25
24
|
import { Result } from "../types/fp.js";
|
|
26
25
|
|
|
27
26
|
/**
|
|
@@ -59,13 +58,6 @@ export async function ordersListOrderShipments(
|
|
|
59
58
|
const payload = parsed.value;
|
|
60
59
|
const body = null;
|
|
61
60
|
|
|
62
|
-
const baseURL = options?.serverURL
|
|
63
|
-
|| pathToFunc(ListOrderShipmentsServerList[0], { charEncoding: "percent" })(
|
|
64
|
-
{
|
|
65
|
-
store_id: "x2yh61zw4k",
|
|
66
|
-
},
|
|
67
|
-
);
|
|
68
|
-
|
|
69
61
|
const pathParams = {
|
|
70
62
|
order_number: encodeSimple("order_number", payload.order_number, {
|
|
71
63
|
explode: false,
|
|
@@ -99,7 +91,7 @@ export async function ordersListOrderShipments(
|
|
|
99
91
|
const requestRes = client._createRequest(context, {
|
|
100
92
|
security: requestSecurity,
|
|
101
93
|
method: "GET",
|
|
102
|
-
baseURL:
|
|
94
|
+
baseURL: options?.serverURL,
|
|
103
95
|
path: path,
|
|
104
96
|
headers: headers,
|
|
105
97
|
body: body,
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
21
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
22
|
import * as operations from "../models/operations/index.js";
|
|
23
|
-
import { ListOrdersServerList } from "../models/operations/listorders.js";
|
|
24
23
|
import { Result } from "../types/fp.js";
|
|
25
24
|
|
|
26
25
|
/**
|
|
@@ -56,11 +55,6 @@ export async function ordersListOrders(
|
|
|
56
55
|
const payload = parsed.value;
|
|
57
56
|
const body = null;
|
|
58
57
|
|
|
59
|
-
const baseURL = options?.serverURL
|
|
60
|
-
|| pathToFunc(ListOrdersServerList[0], { charEncoding: "percent" })({
|
|
61
|
-
store_id: "x2yh61zw4k",
|
|
62
|
-
});
|
|
63
|
-
|
|
64
58
|
const path = pathToFunc("/orders")();
|
|
65
59
|
|
|
66
60
|
const query = encodeFormQuery({
|
|
@@ -95,7 +89,7 @@ export async function ordersListOrders(
|
|
|
95
89
|
const requestRes = client._createRequest(context, {
|
|
96
90
|
security: requestSecurity,
|
|
97
91
|
method: "GET",
|
|
98
|
-
baseURL:
|
|
92
|
+
baseURL: options?.serverURL,
|
|
99
93
|
path: path,
|
|
100
94
|
headers: headers,
|
|
101
95
|
query: query,
|
|
@@ -21,7 +21,6 @@ import {
|
|
|
21
21
|
import * as errors from "../models/errors/index.js";
|
|
22
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
23
|
import * as operations from "../models/operations/index.js";
|
|
24
|
-
import { RetryOrderPaymentServerList } from "../models/operations/retryorderpayment.js";
|
|
25
24
|
import { Result } from "../types/fp.js";
|
|
26
25
|
|
|
27
26
|
/**
|
|
@@ -60,11 +59,6 @@ export async function ordersRetryOrderPayment(
|
|
|
60
59
|
const payload = parsed.value;
|
|
61
60
|
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
62
61
|
|
|
63
|
-
const baseURL = options?.serverURL
|
|
64
|
-
|| pathToFunc(RetryOrderPaymentServerList[0], { charEncoding: "percent" })({
|
|
65
|
-
store_id: "x2yh61zw4k",
|
|
66
|
-
});
|
|
67
|
-
|
|
68
62
|
const pathParams = {
|
|
69
63
|
order_number: encodeSimple("order_number", payload.order_number, {
|
|
70
64
|
explode: false,
|
|
@@ -99,7 +93,7 @@ export async function ordersRetryOrderPayment(
|
|
|
99
93
|
const requestRes = client._createRequest(context, {
|
|
100
94
|
security: requestSecurity,
|
|
101
95
|
method: "POST",
|
|
102
|
-
baseURL:
|
|
96
|
+
baseURL: options?.serverURL,
|
|
103
97
|
path: path,
|
|
104
98
|
headers: headers,
|
|
105
99
|
body: body,
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
21
|
import * as errors from "../models/errors/index.js";
|
|
22
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
-
import { CheckDeliveryAvailabilityServerList } from "../models/operations/checkdeliveryavailability.js";
|
|
24
23
|
import * as operations from "../models/operations/index.js";
|
|
25
24
|
import { Result } from "../types/fp.js";
|
|
26
25
|
|
|
@@ -59,13 +58,6 @@ export async function shippingCheckDeliveryAvailability(
|
|
|
59
58
|
const payload = parsed.value;
|
|
60
59
|
const body = null;
|
|
61
60
|
|
|
62
|
-
const baseURL = options?.serverURL
|
|
63
|
-
|| pathToFunc(CheckDeliveryAvailabilityServerList[0], {
|
|
64
|
-
charEncoding: "percent",
|
|
65
|
-
})({
|
|
66
|
-
store_id: "x2yh61zw4k",
|
|
67
|
-
});
|
|
68
|
-
|
|
69
61
|
const pathParams = {
|
|
70
62
|
pincode: encodeSimple("pincode", payload.pincode, {
|
|
71
63
|
explode: false,
|
|
@@ -101,7 +93,7 @@ export async function shippingCheckDeliveryAvailability(
|
|
|
101
93
|
const requestRes = client._createRequest(context, {
|
|
102
94
|
security: requestSecurity,
|
|
103
95
|
method: "GET",
|
|
104
|
-
baseURL:
|
|
96
|
+
baseURL: options?.serverURL,
|
|
105
97
|
path: path,
|
|
106
98
|
headers: headers,
|
|
107
99
|
body: body,
|
package/src/lib/config.ts
CHANGED
|
@@ -7,19 +7,23 @@ import { Logger } from "./logger.js";
|
|
|
7
7
|
import { RetryConfig } from "./retries.js";
|
|
8
8
|
import { Params, pathToFunc } from "./url.js";
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Staging Server
|
|
12
|
+
*/
|
|
13
|
+
export const ServerStaging = "staging";
|
|
14
|
+
/**
|
|
15
|
+
* Prod Server
|
|
16
|
+
*/
|
|
17
|
+
export const ServerProd = "prod";
|
|
10
18
|
/**
|
|
11
19
|
* Contains the list of servers available to the SDK
|
|
12
20
|
*/
|
|
13
|
-
export const ServerList =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* Prod Server
|
|
20
|
-
*/
|
|
21
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
22
|
-
] as const;
|
|
21
|
+
export const ServerList = {
|
|
22
|
+
[ServerStaging]:
|
|
23
|
+
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
24
|
+
[ServerProd]:
|
|
25
|
+
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
26
|
+
} as const;
|
|
23
27
|
|
|
24
28
|
export type SDKOptions = {
|
|
25
29
|
authorization?: string | (() => Promise<string>);
|
|
@@ -28,7 +32,7 @@ export type SDKOptions = {
|
|
|
28
32
|
/**
|
|
29
33
|
* Allows overriding the default server used by the SDK
|
|
30
34
|
*/
|
|
31
|
-
|
|
35
|
+
server?: keyof typeof ServerList;
|
|
32
36
|
/**
|
|
33
37
|
* Sets the store_id variable for url substitution
|
|
34
38
|
*/
|
|
@@ -48,23 +52,21 @@ export type SDKOptions = {
|
|
|
48
52
|
export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
49
53
|
let serverURL = options.serverURL;
|
|
50
54
|
|
|
51
|
-
const serverParams: Params
|
|
52
|
-
{
|
|
53
|
-
"store_id": options.storeId ?? "
|
|
55
|
+
const serverParams: Record<string, Params> = {
|
|
56
|
+
"staging": {
|
|
57
|
+
"store_id": options.storeId ?? "store_id",
|
|
54
58
|
},
|
|
55
|
-
{
|
|
56
|
-
"store_id": options.storeId ?? "
|
|
59
|
+
"prod": {
|
|
60
|
+
"store_id": options.storeId ?? "store_id",
|
|
57
61
|
},
|
|
58
|
-
|
|
62
|
+
};
|
|
63
|
+
|
|
59
64
|
let params: Params = {};
|
|
60
65
|
|
|
61
66
|
if (!serverURL) {
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
serverURL = ServerList[serverIdx] || "";
|
|
67
|
-
params = serverParams[serverIdx] || {};
|
|
67
|
+
const server = options.server ?? ServerStaging;
|
|
68
|
+
serverURL = ServerList[server] || "";
|
|
69
|
+
params = serverParams[server] || {};
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
const u = pathToFunc(serverURL)(params);
|
|
@@ -74,7 +76,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
74
76
|
export const SDK_METADATA = {
|
|
75
77
|
language: "typescript",
|
|
76
78
|
openapiDocVersion: "1.0",
|
|
77
|
-
sdkVersion: "0.
|
|
78
|
-
genVersion: "2.
|
|
79
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
79
|
+
sdkVersion: "0.7.0",
|
|
80
|
+
genVersion: "2.506.0",
|
|
81
|
+
userAgent: "speakeasy-sdk/typescript 0.7.0 2.506.0 1.0 ce-storefront",
|
|
80
82
|
} as const;
|
|
@@ -55,7 +55,7 @@ export const OrderItem$inboundSchema: z.ZodType<
|
|
|
55
55
|
listing_price: z.number().optional(),
|
|
56
56
|
promotion_discount_amount: z.number().optional(),
|
|
57
57
|
coupon_discount_amount: z.number().optional(),
|
|
58
|
-
tax_type: z.literal("GST").
|
|
58
|
+
tax_type: z.literal("GST").default("GST"),
|
|
59
59
|
tax_rate: z.number().optional(),
|
|
60
60
|
tax_amount: z.number().optional(),
|
|
61
61
|
shipping_additional_cost: z.number().optional(),
|
|
@@ -9,17 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const ApplyCouponServerList = [
|
|
13
|
-
/**
|
|
14
|
-
* Staging Server
|
|
15
|
-
*/
|
|
16
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
17
|
-
/**
|
|
18
|
-
* Prod Server
|
|
19
|
-
*/
|
|
20
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
21
|
-
] as const;
|
|
22
|
-
|
|
23
12
|
export type ApplyCouponRequestBody = {
|
|
24
13
|
couponCode: string;
|
|
25
14
|
};
|
|
@@ -10,17 +10,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import * as components from "../components/index.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
-
export const CancelOrderServerList = [
|
|
14
|
-
/**
|
|
15
|
-
* Staging Server
|
|
16
|
-
*/
|
|
17
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
18
|
-
/**
|
|
19
|
-
* Prod Server
|
|
20
|
-
*/
|
|
21
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
22
|
-
] as const;
|
|
23
|
-
|
|
24
13
|
export const RefundMode = {
|
|
25
14
|
OriginalPaymentMode: "original_payment_mode",
|
|
26
15
|
BankTransfer: "bank_transfer",
|
|
@@ -7,17 +7,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
|
-
export const CheckDeliveryAvailabilityServerList = [
|
|
11
|
-
/**
|
|
12
|
-
* Staging Server
|
|
13
|
-
*/
|
|
14
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
15
|
-
/**
|
|
16
|
-
* Prod Server
|
|
17
|
-
*/
|
|
18
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
19
|
-
] as const;
|
|
20
|
-
|
|
21
10
|
export type CheckDeliveryAvailabilityRequest = {
|
|
22
11
|
/**
|
|
23
12
|
* delivery location pincode
|
|
@@ -8,17 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export const CheckVerificationStatusServerList = [
|
|
12
|
-
/**
|
|
13
|
-
* Staging Server
|
|
14
|
-
*/
|
|
15
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
16
|
-
/**
|
|
17
|
-
* Prod Server
|
|
18
|
-
*/
|
|
19
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
20
|
-
] as const;
|
|
21
|
-
|
|
22
11
|
export type CheckVerificationStatusRequestBody = {
|
|
23
12
|
/**
|
|
24
13
|
* A string representing the phone number.
|
|
@@ -9,17 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const CreateAddressServerList = [
|
|
13
|
-
/**
|
|
14
|
-
* Staging Server
|
|
15
|
-
*/
|
|
16
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
17
|
-
/**
|
|
18
|
-
* Prod Server
|
|
19
|
-
*/
|
|
20
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
21
|
-
] as const;
|
|
22
|
-
|
|
23
12
|
/**
|
|
24
13
|
* payload for new address
|
|
25
14
|
*/
|
|
@@ -8,17 +8,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import * as components from "../components/index.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export const CreateCartServerList = [
|
|
12
|
-
/**
|
|
13
|
-
* Staging Server
|
|
14
|
-
*/
|
|
15
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
16
|
-
/**
|
|
17
|
-
* Prod Server
|
|
18
|
-
*/
|
|
19
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
20
|
-
] as const;
|
|
21
|
-
|
|
22
11
|
export type CreateCartRequestBody = {
|
|
23
12
|
items: Array<components.UpdateCartItem>;
|
|
24
13
|
};
|
|
@@ -9,17 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const CreateCartAddressServerList = [
|
|
13
|
-
/**
|
|
14
|
-
* Staging Server
|
|
15
|
-
*/
|
|
16
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
17
|
-
/**
|
|
18
|
-
* Prod Server
|
|
19
|
-
*/
|
|
20
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
21
|
-
] as const;
|
|
22
|
-
|
|
23
12
|
/**
|
|
24
13
|
* For guest checkout where address is not saved
|
|
25
14
|
*/
|
|
@@ -9,17 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const CreateNotificationPreferencesServerList = [
|
|
13
|
-
/**
|
|
14
|
-
* Staging Server
|
|
15
|
-
*/
|
|
16
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
17
|
-
/**
|
|
18
|
-
* Prod Server
|
|
19
|
-
*/
|
|
20
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
21
|
-
] as const;
|
|
22
|
-
|
|
23
12
|
export type CreateNotificationPreferencesRequestBody = {
|
|
24
13
|
/**
|
|
25
14
|
* Set channel preferences for each type of
|
|
@@ -10,17 +10,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import * as components from "../components/index.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
-
export const CreateOrderServerList = [
|
|
14
|
-
/**
|
|
15
|
-
* Staging Server
|
|
16
|
-
*/
|
|
17
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
18
|
-
/**
|
|
19
|
-
* Prod Server
|
|
20
|
-
*/
|
|
21
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
22
|
-
] as const;
|
|
23
|
-
|
|
24
13
|
export const PaymentGateway = {
|
|
25
14
|
Payu: "PAYU",
|
|
26
15
|
Juspay: "JUSPAY",
|
|
@@ -9,17 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const CreateProductReviewServerList = [
|
|
13
|
-
/**
|
|
14
|
-
* Staging Server
|
|
15
|
-
*/
|
|
16
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
17
|
-
/**
|
|
18
|
-
* Prod Server
|
|
19
|
-
*/
|
|
20
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
21
|
-
] as const;
|
|
22
|
-
|
|
23
12
|
export type CreateProductReviewRequest = {
|
|
24
13
|
/**
|
|
25
14
|
* id of a particular product
|
|
@@ -8,17 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export const DeleteAddressServerList = [
|
|
12
|
-
/**
|
|
13
|
-
* Staging Server
|
|
14
|
-
*/
|
|
15
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
16
|
-
/**
|
|
17
|
-
* Prod Server
|
|
18
|
-
*/
|
|
19
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
20
|
-
] as const;
|
|
21
|
-
|
|
22
11
|
export type DeleteAddressRequest = {
|
|
23
12
|
/**
|
|
24
13
|
* user id
|
|
@@ -7,17 +7,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
|
-
export const DeleteCartServerList = [
|
|
11
|
-
/**
|
|
12
|
-
* Staging Server
|
|
13
|
-
*/
|
|
14
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
15
|
-
/**
|
|
16
|
-
* Prod Server
|
|
17
|
-
*/
|
|
18
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
19
|
-
] as const;
|
|
20
|
-
|
|
21
10
|
export type DeleteCartRequest = {
|
|
22
11
|
/**
|
|
23
12
|
* Cart ID
|
|
@@ -8,17 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export const DeleteUserCartServerList = [
|
|
12
|
-
/**
|
|
13
|
-
* Staging Server
|
|
14
|
-
*/
|
|
15
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
16
|
-
/**
|
|
17
|
-
* Prod Server
|
|
18
|
-
*/
|
|
19
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
20
|
-
] as const;
|
|
21
|
-
|
|
22
11
|
export type DeleteUserCartRequest = {
|
|
23
12
|
/**
|
|
24
13
|
* User ID
|
|
@@ -9,17 +9,6 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const GenerateOtpServerList = [
|
|
13
|
-
/**
|
|
14
|
-
* Staging Server
|
|
15
|
-
*/
|
|
16
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
17
|
-
/**
|
|
18
|
-
* Prod Server
|
|
19
|
-
*/
|
|
20
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
21
|
-
] as const;
|
|
22
|
-
|
|
23
12
|
/**
|
|
24
13
|
* The communication channel for sending the OTP.
|
|
25
14
|
*/
|
|
@@ -8,17 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export const GetAddressDetailServerList = [
|
|
12
|
-
/**
|
|
13
|
-
* Staging Server
|
|
14
|
-
*/
|
|
15
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
16
|
-
/**
|
|
17
|
-
* Prod Server
|
|
18
|
-
*/
|
|
19
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
20
|
-
] as const;
|
|
21
|
-
|
|
22
11
|
export type GetAddressDetailRequest = {
|
|
23
12
|
/**
|
|
24
13
|
* user id
|
|
@@ -9,17 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const GetAnonymousTokenServerList = [
|
|
13
|
-
/**
|
|
14
|
-
* Staging Server
|
|
15
|
-
*/
|
|
16
|
-
"https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
17
|
-
/**
|
|
18
|
-
* Prod Server
|
|
19
|
-
*/
|
|
20
|
-
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
21
|
-
] as const;
|
|
22
|
-
|
|
23
12
|
export type GetAnonymousTokenSecurity = {
|
|
24
13
|
xApiKey: string;
|
|
25
14
|
};
|