ce-storefront 0.3.10 → 0.3.17
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/FUNCTIONS.md +2 -2
- package/README.md +129 -108
- package/docs/sdks/addresses/README.md +4 -363
- package/docs/sdks/auth/README.md +72 -0
- package/docs/sdks/authuser/README.md +80 -0
- package/docs/sdks/{refunds → cards}/README.md +12 -11
- package/docs/sdks/catalogproductreviews/README.md +97 -0
- package/docs/sdks/{shipments → catalogproducts}/README.md +12 -12
- package/docs/sdks/{skus → catalogskus}/README.md +3 -3
- package/docs/sdks/{cestorefrontreviews → cestorefrontaddresses}/README.md +123 -34
- package/docs/sdks/cestorefrontproducts/README.md +6 -0
- package/docs/sdks/cestorefrontuser/README.md +6 -727
- package/docs/sdks/cestorefrontusers/README.md +92 -0
- package/docs/sdks/countries/README.md +79 -0
- package/docs/sdks/customers/README.md +192 -18
- package/docs/sdks/juspay/README.md +15 -15
- package/docs/sdks/loyalty/README.md +0 -81
- package/docs/sdks/loyaltypoints/README.md +88 -0
- package/docs/sdks/notificationpreferences/README.md +4 -162
- package/docs/sdks/orders/README.md +163 -5
- package/docs/sdks/payments/README.md +15 -95
- package/docs/sdks/products/README.md +15 -94
- package/docs/sdks/reviews/README.md +17 -13
- package/docs/sdks/{shipping → shipment}/README.md +5 -5
- package/docs/sdks/user/README.md +425 -0
- package/docs/sdks/users/README.md +240 -0
- package/docs/sdks/utils/README.md +0 -72
- package/docs/sdks/wishlist/README.md +5 -5
- package/esm/funcs/{catalogProductsGetCrossSells.d.ts → addressesGet.d.ts} +4 -4
- package/esm/funcs/addressesGet.d.ts.map +1 -0
- package/esm/funcs/{customersAddressesGet.js → addressesGet.js} +2 -2
- package/esm/funcs/addressesGet.js.map +1 -0
- package/esm/funcs/{authUserLogout.d.ts → authLogout.d.ts} +2 -2
- package/esm/funcs/authLogout.d.ts.map +1 -0
- package/esm/funcs/{authUserLogout.js → authLogout.js} +2 -2
- package/esm/funcs/authLogout.js.map +1 -0
- package/esm/funcs/{authUserDeactivateAccount.d.ts → authUserDeactivate.d.ts} +2 -2
- package/esm/funcs/{paymentsGetMethods.d.ts.map → authUserDeactivate.d.ts.map} +1 -1
- package/esm/funcs/{authUserDeactivateAccount.js → authUserDeactivate.js} +2 -2
- package/esm/funcs/authUserDeactivate.js.map +1 -0
- package/esm/funcs/{userNotificationPreferencesGet.d.ts → authUserNotificationPreferencesGet.d.ts} +2 -2
- package/esm/funcs/authUserNotificationPreferencesGet.d.ts.map +1 -0
- package/esm/funcs/{userNotificationPreferencesGet.js → authUserNotificationPreferencesGet.js} +2 -2
- package/esm/funcs/authUserNotificationPreferencesGet.js.map +1 -0
- package/esm/funcs/{authUserAddProfileImage.d.ts → authUsersAddProfileImage.d.ts} +2 -2
- package/esm/funcs/authUsersAddProfileImage.d.ts.map +1 -0
- package/esm/funcs/{authUserAddProfileImage.js → authUsersAddProfileImage.js} +2 -2
- package/esm/funcs/authUsersAddProfileImage.js.map +1 -0
- package/esm/funcs/{catalogProductsReviewsCreate.d.ts → catalogProductReviewsCreate.d.ts} +2 -2
- package/esm/funcs/catalogProductReviewsCreate.d.ts.map +1 -0
- package/esm/funcs/{catalogProductsReviewsCreate.js → catalogProductReviewsCreate.js} +2 -2
- package/esm/funcs/catalogProductReviewsCreate.js.map +1 -0
- package/esm/funcs/customersAddAddress.d.ts +16 -0
- package/esm/funcs/{catalogProductsList.d.ts.map → customersAddAddress.d.ts.map} +1 -1
- package/esm/funcs/{customersAddressesAdd.js → customersAddAddress.js} +2 -2
- package/esm/funcs/customersAddAddress.js.map +1 -0
- package/esm/funcs/{customersPostCustomers.d.ts → customersCreate.d.ts} +2 -2
- package/esm/funcs/customersCreate.d.ts.map +1 -0
- package/esm/funcs/{customersPostCustomers.js → customersCreate.js} +2 -2
- package/esm/funcs/customersCreate.js.map +1 -0
- package/esm/funcs/{customersGetCustomersId.d.ts → customersGet.d.ts} +2 -2
- package/esm/funcs/customersGet.d.ts.map +1 -0
- package/esm/funcs/{customersGetCustomersId.js → customersGet.js} +2 -2
- package/esm/funcs/customersGet.js.map +1 -0
- package/esm/funcs/customersGetReviews.d.ts +15 -0
- package/esm/funcs/customersGetReviews.d.ts.map +1 -0
- package/esm/funcs/{customersReviewsList.js → customersGetReviews.js} +2 -2
- package/esm/funcs/customersGetReviews.js.map +1 -0
- package/esm/funcs/{customersAddressesAdd.d.ts → customersUpdate.d.ts} +4 -4
- package/esm/funcs/customersUpdate.d.ts.map +1 -0
- package/esm/funcs/{customersPutCustomersId.js → customersUpdate.js} +2 -2
- package/esm/funcs/customersUpdate.js.map +1 -0
- package/esm/funcs/juspayCreateCustomer.d.ts +17 -0
- package/esm/funcs/juspayCreateCustomer.d.ts.map +1 -0
- package/esm/funcs/{juspayPostPaymentsJuspayCreateCustomer.js → juspayCreateCustomer.js} +2 -2
- package/esm/funcs/juspayCreateCustomer.js.map +1 -0
- package/esm/funcs/{juspayPostPaymentsJuspayCreateOrder.d.ts → juspayCreateOrder.d.ts} +2 -2
- package/esm/funcs/juspayCreateOrder.d.ts.map +1 -0
- package/esm/funcs/{juspayPostPaymentsJuspayCreateOrder.js → juspayCreateOrder.js} +2 -2
- package/esm/funcs/{juspayGetPaymentsJuspayCustomer.js.map → juspayCreateOrder.js.map} +1 -1
- package/esm/funcs/{juspayGetPaymentsJuspayCustomer.d.ts → juspayGetCustomer.d.ts} +2 -2
- package/esm/funcs/juspayGetCustomer.d.ts.map +1 -0
- package/esm/funcs/{juspayGetPaymentsJuspayCustomer.js → juspayGetCustomer.js} +2 -2
- package/esm/funcs/{juspayPostPaymentsJuspayCreateOrder.js.map → juspayGetCustomer.js.map} +1 -1
- package/esm/funcs/{customersLoyaltyListActivities.d.ts → loyaltyPointsListActivities.d.ts} +2 -2
- package/esm/funcs/loyaltyPointsListActivities.d.ts.map +1 -0
- package/esm/funcs/{customersLoyaltyListActivities.js → loyaltyPointsListActivities.js} +2 -2
- package/esm/funcs/loyaltyPointsListActivities.js.map +1 -0
- package/esm/funcs/{customersReviewsList.d.ts → ordersGetPaymentStatus.d.ts} +4 -4
- package/esm/funcs/ordersGetPaymentStatus.d.ts.map +1 -0
- package/esm/funcs/{ordersGetOrdersIdPaymentStatus.js → ordersGetPaymentStatus.js} +2 -2
- package/esm/funcs/ordersGetPaymentStatus.js.map +1 -0
- package/esm/funcs/{ordersRefundsList.d.ts → ordersGetRefunds.d.ts} +2 -2
- package/esm/funcs/ordersGetRefunds.d.ts.map +1 -0
- package/esm/funcs/{ordersRefundsList.js → ordersGetRefunds.js} +2 -2
- package/esm/funcs/ordersGetRefunds.js.map +1 -0
- package/esm/funcs/{ordersShipmentsList.d.ts → ordersGetShipments.d.ts} +2 -2
- package/esm/funcs/ordersGetShipments.d.ts.map +1 -0
- package/esm/funcs/{ordersShipmentsList.js → ordersGetShipments.js} +2 -2
- package/esm/funcs/ordersGetShipments.js.map +1 -0
- package/esm/funcs/{paymentsPostPaymentsCards.d.ts → paymentsAddCard.d.ts} +2 -2
- package/esm/funcs/paymentsAddCard.d.ts.map +1 -0
- package/esm/funcs/{paymentsPostPaymentsCards.js → paymentsAddCard.js} +2 -2
- package/esm/funcs/paymentsAddCard.js.map +1 -0
- package/esm/funcs/{paymentsGetPaymentsCards.d.ts → paymentsCardsList.d.ts} +2 -2
- package/esm/funcs/paymentsCardsList.d.ts.map +1 -0
- package/esm/funcs/{paymentsGetPaymentsCards.js → paymentsCardsList.js} +2 -2
- package/esm/funcs/paymentsCardsList.js.map +1 -0
- package/esm/funcs/{paymentsGetMethods.d.ts → paymentsListMethods.d.ts} +2 -2
- package/esm/funcs/paymentsListMethods.d.ts.map +1 -0
- package/esm/funcs/{paymentsGetMethods.js → paymentsListMethods.js} +2 -2
- package/esm/funcs/paymentsListMethods.js.map +1 -0
- package/esm/funcs/{paymentsGetPaymentsVerifyVpa.d.ts → paymentsVerifyVpa.d.ts} +2 -2
- package/esm/funcs/paymentsVerifyVpa.d.ts.map +1 -0
- package/esm/funcs/{paymentsGetPaymentsVerifyVpa.js → paymentsVerifyVpa.js} +2 -2
- package/esm/funcs/paymentsVerifyVpa.js.map +1 -0
- package/esm/funcs/{catalogProductsGetSimilar.d.ts → productsGetSimilar.d.ts} +2 -2
- package/esm/funcs/productsGetSimilar.d.ts.map +1 -0
- package/esm/funcs/{catalogProductsGetSimilar.js → productsGetSimilar.js} +2 -2
- package/esm/funcs/productsGetSimilar.js.map +1 -0
- package/esm/funcs/{catalogProductsGetUpsells.d.ts → productsGetUpsells.d.ts} +2 -2
- package/esm/funcs/productsGetUpsells.d.ts.map +1 -0
- package/esm/funcs/{catalogProductsGetUpsells.js → productsGetUpsells.js} +2 -2
- package/esm/funcs/productsGetUpsells.js.map +1 -0
- package/esm/funcs/{catalogProductsList.d.ts → productsList.d.ts} +2 -2
- package/esm/funcs/productsList.d.ts.map +1 -0
- package/esm/funcs/{catalogProductsList.js → productsList.js} +2 -2
- package/esm/funcs/productsList.js.map +1 -0
- package/esm/funcs/{juspayPostPaymentsJuspayCreateCustomer.d.ts → productsListCrossSells.d.ts} +4 -5
- package/esm/funcs/productsListCrossSells.d.ts.map +1 -0
- package/esm/funcs/{catalogProductsGetCrossSells.js → productsListCrossSells.js} +2 -2
- package/esm/funcs/productsListCrossSells.js.map +1 -0
- package/esm/funcs/{shippingCheckPincodeServiceability.d.ts → shipmentCheckPincodeServiceability.d.ts} +2 -2
- package/esm/funcs/{shippingCheckPincodeServiceability.d.ts.map → shipmentCheckPincodeServiceability.d.ts.map} +1 -1
- package/esm/funcs/{shippingCheckPincodeServiceability.js → shipmentCheckPincodeServiceability.js} +2 -2
- package/esm/funcs/{shippingCheckPincodeServiceability.js.map → shipmentCheckPincodeServiceability.js.map} +1 -1
- package/esm/funcs/{authUserDeleteProfileImage.d.ts → userDeleteProfileImage.d.ts} +2 -2
- package/esm/funcs/userDeleteProfileImage.d.ts.map +1 -0
- package/esm/funcs/{authUserDeleteProfileImage.js → userDeleteProfileImage.js} +2 -2
- package/esm/funcs/userDeleteProfileImage.js.map +1 -0
- package/esm/funcs/{authUserResetPassword.d.ts → userResetPassword.d.ts} +2 -2
- package/esm/funcs/{ordersRefundsList.d.ts.map → userResetPassword.d.ts.map} +1 -1
- package/esm/funcs/{authUserResetPassword.js → userResetPassword.js} +2 -2
- package/esm/funcs/userResetPassword.js.map +1 -0
- package/esm/funcs/{authUserUpdate.d.ts → userUpdate.d.ts} +2 -2
- package/esm/funcs/userUpdate.d.ts.map +1 -0
- package/esm/funcs/{authUserUpdate.js → userUpdate.js} +2 -2
- package/esm/funcs/userUpdate.js.map +1 -0
- package/esm/funcs/{userNotificationPreferencesUpdate.d.ts → userUpdateNotificationPreferences.d.ts} +2 -2
- package/esm/funcs/{userNotificationPreferencesUpdate.d.ts.map → userUpdateNotificationPreferences.d.ts.map} +1 -1
- package/esm/funcs/{userNotificationPreferencesUpdate.js → userUpdateNotificationPreferences.js} +2 -2
- package/esm/funcs/{userNotificationPreferencesUpdate.js.map → userUpdateNotificationPreferences.js.map} +1 -1
- package/esm/funcs/{authUserUpdateProfileImage.d.ts → userUpdateProfileImage.d.ts} +2 -2
- package/esm/funcs/userUpdateProfileImage.d.ts.map +1 -0
- package/esm/funcs/{authUserUpdateProfileImage.js → userUpdateProfileImage.js} +2 -2
- package/esm/funcs/userUpdateProfileImage.js.map +1 -0
- package/esm/funcs/{userNotificationPreferencesCreate.d.ts → usersCreateNotificationPreferences.d.ts} +2 -2
- package/esm/funcs/usersCreateNotificationPreferences.d.ts.map +1 -0
- package/esm/funcs/{userNotificationPreferencesCreate.js → usersCreateNotificationPreferences.js} +2 -2
- package/esm/funcs/usersCreateNotificationPreferences.js.map +1 -0
- package/esm/funcs/{authUserGet.d.ts → usersGet.d.ts} +2 -2
- package/esm/funcs/usersGet.d.ts.map +1 -0
- package/esm/funcs/{authUserGet.js → usersGet.js} +2 -2
- package/esm/funcs/usersGet.js.map +1 -0
- package/esm/funcs/{authUserGetProfileImage.d.ts → usersGetProfileImage.d.ts} +2 -2
- package/esm/funcs/{customersReviewsList.d.ts.map → usersGetProfileImage.d.ts.map} +1 -1
- package/esm/funcs/{authUserGetProfileImage.js → usersGetProfileImage.js} +2 -2
- package/esm/funcs/{customersReviewsList.js.map → usersGetProfileImage.js.map} +1 -1
- package/esm/funcs/{utilsGetCountries.d.ts → utilsCountriesGet.d.ts} +2 -2
- package/esm/funcs/{utilsGetCountries.d.ts.map → utilsCountriesGet.d.ts.map} +1 -1
- package/esm/funcs/{utilsGetCountries.js → utilsCountriesGet.js} +2 -2
- package/esm/funcs/{utilsGetCountries.js.map → utilsCountriesGet.js.map} +1 -1
- package/esm/funcs/{wishlistDelete.d.ts → wishlistRemoveItem.d.ts} +2 -2
- package/esm/funcs/wishlistRemoveItem.d.ts.map +1 -0
- package/esm/funcs/{wishlistDelete.js → wishlistRemoveItem.js} +2 -2
- package/esm/funcs/wishlistRemoveItem.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/components/associatedoption.d.ts +4 -102
- package/esm/models/components/associatedoption.d.ts.map +1 -1
- package/esm/models/components/associatedoption.js +4 -82
- package/esm/models/components/associatedoption.js.map +1 -1
- package/esm/models/components/bundleproduct.d.ts +48 -48
- package/esm/models/components/bundleproduct.d.ts.map +1 -1
- package/esm/models/components/bundleproduct.js +46 -50
- package/esm/models/components/bundleproduct.js.map +1 -1
- package/esm/models/components/bundleproductdetail.d.ts +66 -66
- package/esm/models/components/bundleproductdetail.d.ts.map +1 -1
- package/esm/models/components/bundleproductdetail.js +62 -66
- package/esm/models/components/bundleproductdetail.js.map +1 -1
- package/esm/models/components/coloroption.d.ts +72 -0
- package/esm/models/components/coloroption.d.ts.map +1 -0
- package/esm/models/components/coloroption.js +62 -0
- package/esm/models/components/coloroption.js.map +1 -0
- package/esm/models/components/currency.d.ts +6 -6
- package/esm/models/components/currency.d.ts.map +1 -1
- package/esm/models/components/currency.js +6 -6
- package/esm/models/components/currency.js.map +1 -1
- package/esm/models/components/index.d.ts +2 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +2 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/notificationpreferences.d.ts +6 -6
- package/esm/models/components/notificationpreferences.d.ts.map +1 -1
- package/esm/models/components/notificationpreferences.js +6 -6
- package/esm/models/components/notificationpreferences.js.map +1 -1
- package/esm/models/components/pagination.d.ts +8 -8
- package/esm/models/components/pagination.d.ts.map +1 -1
- package/esm/models/components/pagination.js +8 -8
- package/esm/models/components/pagination.js.map +1 -1
- package/esm/models/components/productattribute.d.ts +2 -2
- package/esm/models/components/productattribute.d.ts.map +1 -1
- package/esm/models/components/productattribute.js +2 -2
- package/esm/models/components/productattribute.js.map +1 -1
- package/esm/models/components/productcategory.d.ts +20 -20
- package/esm/models/components/productcategory.d.ts.map +1 -1
- package/esm/models/components/productcategory.js +20 -20
- package/esm/models/components/productcategory.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +2 -14
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +4 -18
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productimage.d.ts +14 -14
- package/esm/models/components/productimage.d.ts.map +1 -1
- package/esm/models/components/productimage.js +14 -14
- package/esm/models/components/productimage.js.map +1 -1
- package/esm/models/components/productpricing.d.ts +4 -4
- package/esm/models/components/productpricing.d.ts.map +1 -1
- package/esm/models/components/productpricing.js +4 -4
- package/esm/models/components/productpricing.js.map +1 -1
- package/esm/models/components/productshipping.d.ts +12 -12
- package/esm/models/components/productshipping.d.ts.map +1 -1
- package/esm/models/components/productshipping.js +12 -12
- package/esm/models/components/productshipping.js.map +1 -1
- package/esm/models/components/productvideo.d.ts +16 -16
- package/esm/models/components/productvideo.d.ts.map +1 -1
- package/esm/models/components/productvideo.js +16 -16
- package/esm/models/components/productvideo.js.map +1 -1
- package/esm/models/components/seo.d.ts +8 -8
- package/esm/models/components/seo.d.ts.map +1 -1
- package/esm/models/components/seo.js +8 -8
- package/esm/models/components/seo.js.map +1 -1
- package/esm/models/components/singleproduct.d.ts +18 -18
- package/esm/models/components/singleproduct.d.ts.map +1 -1
- package/esm/models/components/singleproduct.js +18 -18
- package/esm/models/components/singleproduct.js.map +1 -1
- package/esm/models/components/singleproductdetail.d.ts +36 -36
- package/esm/models/components/singleproductdetail.d.ts.map +1 -1
- package/esm/models/components/singleproductdetail.js +34 -34
- package/esm/models/components/singleproductdetail.js.map +1 -1
- package/esm/models/components/singleselectoption.d.ts +42 -0
- package/esm/models/components/singleselectoption.d.ts.map +1 -0
- package/esm/models/components/singleselectoption.js +35 -0
- package/esm/models/components/singleselectoption.js.map +1 -0
- package/esm/models/components/sku.d.ts +30 -30
- package/esm/models/components/sku.d.ts.map +1 -1
- package/esm/models/components/sku.js +28 -30
- package/esm/models/components/sku.js.map +1 -1
- package/esm/models/components/variant.d.ts +15 -12
- package/esm/models/components/variant.d.ts.map +1 -1
- package/esm/models/components/variant.js +12 -12
- package/esm/models/components/variant.js.map +1 -1
- package/esm/models/components/variantdetail.d.ts +41 -38
- package/esm/models/components/variantdetail.d.ts.map +1 -1
- package/esm/models/components/variantdetail.js +36 -36
- package/esm/models/components/variantdetail.js.map +1 -1
- package/esm/models/components/variantoption.d.ts +34 -26
- package/esm/models/components/variantoption.d.ts.map +1 -1
- package/esm/models/components/variantoption.js +32 -45
- package/esm/models/components/variantoption.js.map +1 -1
- package/esm/sdk/addresses.d.ts +0 -28
- package/esm/sdk/addresses.d.ts.map +1 -1
- package/esm/sdk/addresses.js +2 -42
- package/esm/sdk/addresses.js.map +1 -1
- package/esm/sdk/auth.d.ts +10 -0
- package/esm/sdk/auth.d.ts.map +1 -1
- package/esm/sdk/auth.js +14 -0
- package/esm/sdk/auth.js.map +1 -1
- package/esm/sdk/authuser.d.ts +12 -0
- package/esm/sdk/authuser.d.ts.map +1 -0
- package/esm/sdk/authuser.js +18 -0
- package/esm/sdk/authuser.js.map +1 -0
- package/esm/sdk/cards.d.ts +12 -0
- package/esm/sdk/cards.d.ts.map +1 -0
- package/esm/sdk/cards.js +18 -0
- package/esm/sdk/cards.js.map +1 -0
- package/esm/sdk/catalog.d.ts +2 -5
- package/esm/sdk/catalog.d.ts.map +1 -1
- package/esm/sdk/catalog.js +2 -6
- package/esm/sdk/catalog.js.map +1 -1
- package/esm/sdk/catalogproductreviews.d.ts +12 -0
- package/esm/sdk/catalogproductreviews.d.ts.map +1 -0
- package/esm/sdk/catalogproductreviews.js +18 -0
- package/esm/sdk/catalogproductreviews.js.map +1 -0
- package/esm/sdk/catalogproducts.d.ts +12 -0
- package/esm/sdk/catalogproducts.d.ts.map +1 -0
- package/esm/sdk/catalogproducts.js +18 -0
- package/esm/sdk/catalogproducts.js.map +1 -0
- package/esm/sdk/{skus.d.ts → catalogskus.d.ts} +2 -2
- package/esm/sdk/catalogskus.d.ts.map +1 -0
- package/esm/sdk/{skus.js → catalogskus.js} +2 -2
- package/esm/sdk/catalogskus.js.map +1 -0
- package/esm/sdk/cestorefrontaddresses.d.ts +26 -0
- package/esm/sdk/cestorefrontaddresses.d.ts.map +1 -0
- package/esm/sdk/cestorefrontaddresses.js +38 -0
- package/esm/sdk/cestorefrontaddresses.js.map +1 -0
- package/esm/sdk/cestorefrontproducts.d.ts +10 -0
- package/esm/sdk/cestorefrontproducts.d.ts.map +1 -0
- package/esm/sdk/cestorefrontproducts.js +15 -0
- package/esm/sdk/cestorefrontproducts.js.map +1 -0
- package/esm/sdk/cestorefrontuser.d.ts +4 -64
- package/esm/sdk/cestorefrontuser.d.ts.map +1 -1
- package/esm/sdk/cestorefrontuser.js +6 -92
- package/esm/sdk/cestorefrontuser.js.map +1 -1
- package/esm/sdk/cestorefrontusers.d.ts +12 -0
- package/esm/sdk/cestorefrontusers.d.ts.map +1 -0
- package/esm/sdk/cestorefrontusers.js +18 -0
- package/esm/sdk/cestorefrontusers.js.map +1 -0
- package/esm/sdk/countries.d.ts +12 -0
- package/esm/sdk/countries.d.ts.map +1 -0
- package/esm/sdk/countries.js +18 -0
- package/esm/sdk/countries.js.map +1 -0
- package/esm/sdk/customers.d.ts +19 -8
- package/esm/sdk/customers.d.ts.map +1 -1
- package/esm/sdk/customers.js +31 -15
- package/esm/sdk/customers.js.map +1 -1
- package/esm/sdk/juspay.d.ts +3 -3
- package/esm/sdk/juspay.d.ts.map +1 -1
- package/esm/sdk/juspay.js +9 -9
- package/esm/sdk/juspay.js.map +1 -1
- package/esm/sdk/loyalty.d.ts +0 -7
- package/esm/sdk/loyalty.d.ts.map +1 -1
- package/esm/sdk/loyalty.js +0 -10
- package/esm/sdk/loyalty.js.map +1 -1
- package/esm/sdk/loyaltypoints.d.ts +12 -0
- package/esm/sdk/loyaltypoints.d.ts.map +1 -0
- package/esm/sdk/loyaltypoints.js +18 -0
- package/esm/sdk/loyaltypoints.js.map +1 -0
- package/esm/sdk/notificationpreferences.d.ts +0 -14
- package/esm/sdk/notificationpreferences.d.ts.map +1 -1
- package/esm/sdk/notificationpreferences.js +2 -22
- package/esm/sdk/notificationpreferences.js.map +1 -1
- package/esm/sdk/orders.d.ts +15 -7
- package/esm/sdk/orders.d.ts.map +1 -1
- package/esm/sdk/orders.js +23 -11
- package/esm/sdk/orders.js.map +1 -1
- package/esm/sdk/payments.d.ts +6 -10
- package/esm/sdk/payments.d.ts.map +1 -1
- package/esm/sdk/payments.js +13 -19
- package/esm/sdk/payments.js.map +1 -1
- package/esm/sdk/products.d.ts +1 -14
- package/esm/sdk/products.d.ts.map +1 -1
- package/esm/sdk/products.js +9 -27
- package/esm/sdk/products.js.map +1 -1
- package/esm/sdk/reviews.d.ts +3 -3
- package/esm/sdk/reviews.d.ts.map +1 -1
- package/esm/sdk/reviews.js +4 -4
- package/esm/sdk/reviews.js.map +1 -1
- package/esm/sdk/sdk.d.ts +27 -3
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +35 -3
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/{shipping.d.ts → shipment.d.ts} +2 -2
- package/esm/sdk/{shipping.d.ts.map → shipment.d.ts.map} +1 -1
- package/esm/sdk/{shipping.js → shipment.js} +4 -4
- package/esm/sdk/{shipping.js.map → shipment.js.map} +1 -1
- package/esm/sdk/user.d.ts +37 -4
- package/esm/sdk/user.d.ts.map +1 -1
- package/esm/sdk/user.js +50 -3
- package/esm/sdk/user.js.map +1 -1
- package/esm/sdk/users.d.ts +26 -0
- package/esm/sdk/users.d.ts.map +1 -0
- package/esm/sdk/users.js +38 -0
- package/esm/sdk/users.js.map +1 -0
- package/esm/sdk/utils.d.ts +3 -7
- package/esm/sdk/utils.d.ts.map +1 -1
- package/esm/sdk/utils.js +3 -9
- package/esm/sdk/utils.js.map +1 -1
- package/esm/sdk/wishlist.d.ts +1 -1
- package/esm/sdk/wishlist.d.ts.map +1 -1
- package/esm/sdk/wishlist.js +3 -3
- package/esm/sdk/wishlist.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{customersAddressesGet.ts → addressesGet.ts} +1 -1
- package/src/funcs/{authUserLogout.ts → authLogout.ts} +1 -1
- package/src/funcs/{authUserDeactivateAccount.ts → authUserDeactivate.ts} +1 -1
- package/src/funcs/{userNotificationPreferencesGet.ts → authUserNotificationPreferencesGet.ts} +1 -1
- package/src/funcs/{authUserAddProfileImage.ts → authUsersAddProfileImage.ts} +1 -1
- package/src/funcs/{catalogProductsReviewsCreate.ts → catalogProductReviewsCreate.ts} +1 -1
- package/src/funcs/{customersAddressesAdd.ts → customersAddAddress.ts} +1 -1
- package/src/funcs/{customersPostCustomers.ts → customersCreate.ts} +1 -1
- package/src/funcs/{customersGetCustomersId.ts → customersGet.ts} +1 -1
- package/src/funcs/{customersReviewsList.ts → customersGetReviews.ts} +1 -1
- package/src/funcs/{customersPutCustomersId.ts → customersUpdate.ts} +1 -1
- package/src/funcs/{juspayPostPaymentsJuspayCreateCustomer.ts → juspayCreateCustomer.ts} +1 -1
- package/src/funcs/{juspayPostPaymentsJuspayCreateOrder.ts → juspayCreateOrder.ts} +1 -1
- package/src/funcs/{juspayGetPaymentsJuspayCustomer.ts → juspayGetCustomer.ts} +1 -1
- package/src/funcs/{customersLoyaltyListActivities.ts → loyaltyPointsListActivities.ts} +1 -1
- package/src/funcs/{ordersGetOrdersIdPaymentStatus.ts → ordersGetPaymentStatus.ts} +1 -1
- package/src/funcs/{ordersRefundsList.ts → ordersGetRefunds.ts} +1 -1
- package/src/funcs/{ordersShipmentsList.ts → ordersGetShipments.ts} +1 -1
- package/src/funcs/{paymentsPostPaymentsCards.ts → paymentsAddCard.ts} +1 -1
- package/src/funcs/{paymentsGetPaymentsCards.ts → paymentsCardsList.ts} +1 -1
- package/src/funcs/{paymentsGetMethods.ts → paymentsListMethods.ts} +1 -1
- package/src/funcs/{paymentsGetPaymentsVerifyVpa.ts → paymentsVerifyVpa.ts} +1 -1
- package/src/funcs/{catalogProductsGetSimilar.ts → productsGetSimilar.ts} +1 -1
- package/src/funcs/{catalogProductsGetUpsells.ts → productsGetUpsells.ts} +1 -1
- package/src/funcs/{catalogProductsList.ts → productsList.ts} +1 -1
- package/src/funcs/{catalogProductsGetCrossSells.ts → productsListCrossSells.ts} +1 -1
- package/src/funcs/{shippingCheckPincodeServiceability.ts → shipmentCheckPincodeServiceability.ts} +1 -1
- package/src/funcs/{authUserDeleteProfileImage.ts → userDeleteProfileImage.ts} +1 -1
- package/src/funcs/{authUserResetPassword.ts → userResetPassword.ts} +1 -1
- package/src/funcs/{authUserUpdate.ts → userUpdate.ts} +1 -1
- package/src/funcs/{userNotificationPreferencesUpdate.ts → userUpdateNotificationPreferences.ts} +1 -1
- package/src/funcs/{authUserUpdateProfileImage.ts → userUpdateProfileImage.ts} +1 -1
- package/src/funcs/{userNotificationPreferencesCreate.ts → usersCreateNotificationPreferences.ts} +1 -1
- package/src/funcs/{authUserGet.ts → usersGet.ts} +1 -1
- package/src/funcs/{authUserGetProfileImage.ts → usersGetProfileImage.ts} +1 -1
- package/src/funcs/{utilsGetCountries.ts → utilsCountriesGet.ts} +1 -1
- package/src/funcs/{wishlistDelete.ts → wishlistRemoveItem.ts} +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/associatedoption.ts +19 -164
- package/src/models/components/bundleproduct.ts +92 -99
- package/src/models/components/bundleproductdetail.ts +124 -131
- package/src/models/components/coloroption.ts +144 -0
- package/src/models/components/currency.ts +12 -12
- package/src/models/components/index.ts +2 -0
- package/src/models/components/notificationpreferences.ts +12 -12
- package/src/models/components/pagination.ts +16 -16
- package/src/models/components/productattribute.ts +4 -4
- package/src/models/components/productcategory.ts +40 -40
- package/src/models/components/productdetail.ts +7 -37
- package/src/models/components/productimage.ts +28 -28
- package/src/models/components/productpricing.ts +8 -8
- package/src/models/components/productshipping.ts +24 -24
- package/src/models/components/productvideo.ts +32 -32
- package/src/models/components/seo.ts +16 -16
- package/src/models/components/singleproduct.ts +36 -36
- package/src/models/components/singleproductdetail.ts +68 -68
- package/src/models/components/singleselectoption.ts +83 -0
- package/src/models/components/sku.ts +56 -61
- package/src/models/components/variant.ts +27 -24
- package/src/models/components/variantdetail.ts +75 -72
- package/src/models/components/variantoption.ts +54 -61
- package/src/sdk/addresses.ts +2 -74
- package/src/sdk/auth.ts +22 -0
- package/src/sdk/authuser.ts +27 -0
- package/src/sdk/{refunds.ts → cards.ts} +7 -7
- package/src/sdk/catalog.ts +4 -10
- package/src/sdk/catalogproductreviews.ts +27 -0
- package/src/sdk/catalogproducts.ts +27 -0
- package/src/sdk/{skus.ts → catalogskus.ts} +1 -1
- package/src/sdk/cestorefrontaddresses.ts +63 -0
- package/src/sdk/cestorefrontproducts.ts +19 -0
- package/src/sdk/cestorefrontuser.ts +8 -160
- package/src/sdk/cestorefrontusers.ts +27 -0
- package/src/sdk/countries.ts +25 -0
- package/src/sdk/customers.ts +49 -19
- package/src/sdk/juspay.ts +9 -9
- package/src/sdk/loyalty.ts +0 -18
- package/src/sdk/loyaltypoints.ts +27 -0
- package/src/sdk/notificationpreferences.ts +2 -38
- package/src/sdk/orders.ts +39 -15
- package/src/sdk/payments.ts +15 -27
- package/src/sdk/products.ts +9 -39
- package/src/sdk/reviews.ts +6 -6
- package/src/sdk/sdk.ts +54 -4
- package/src/sdk/{shipping.ts → shipment.ts} +3 -3
- package/src/sdk/user.ts +90 -6
- package/src/sdk/users.ts +63 -0
- package/src/sdk/utils.ts +4 -14
- package/src/sdk/wishlist.ts +3 -3
- package/esm/funcs/authUserAddProfileImage.d.ts.map +0 -1
- package/esm/funcs/authUserAddProfileImage.js.map +0 -1
- package/esm/funcs/authUserDeactivateAccount.d.ts.map +0 -1
- package/esm/funcs/authUserDeactivateAccount.js.map +0 -1
- package/esm/funcs/authUserDeleteProfileImage.d.ts.map +0 -1
- package/esm/funcs/authUserDeleteProfileImage.js.map +0 -1
- package/esm/funcs/authUserGet.d.ts.map +0 -1
- package/esm/funcs/authUserGet.js.map +0 -1
- package/esm/funcs/authUserGetProfileImage.d.ts.map +0 -1
- package/esm/funcs/authUserGetProfileImage.js.map +0 -1
- package/esm/funcs/authUserLogout.d.ts.map +0 -1
- package/esm/funcs/authUserLogout.js.map +0 -1
- package/esm/funcs/authUserResetPassword.d.ts.map +0 -1
- package/esm/funcs/authUserResetPassword.js.map +0 -1
- package/esm/funcs/authUserUpdate.d.ts.map +0 -1
- package/esm/funcs/authUserUpdate.js.map +0 -1
- package/esm/funcs/authUserUpdateProfileImage.d.ts.map +0 -1
- package/esm/funcs/authUserUpdateProfileImage.js.map +0 -1
- package/esm/funcs/catalogProductsGetCrossSells.d.ts.map +0 -1
- package/esm/funcs/catalogProductsGetCrossSells.js.map +0 -1
- package/esm/funcs/catalogProductsGetSimilar.d.ts.map +0 -1
- package/esm/funcs/catalogProductsGetSimilar.js.map +0 -1
- package/esm/funcs/catalogProductsGetUpsells.d.ts.map +0 -1
- package/esm/funcs/catalogProductsGetUpsells.js.map +0 -1
- package/esm/funcs/catalogProductsList.js.map +0 -1
- package/esm/funcs/catalogProductsReviewsCreate.d.ts.map +0 -1
- package/esm/funcs/catalogProductsReviewsCreate.js.map +0 -1
- package/esm/funcs/customersAddressesAdd.d.ts.map +0 -1
- package/esm/funcs/customersAddressesAdd.js.map +0 -1
- package/esm/funcs/customersAddressesGet.d.ts +0 -16
- package/esm/funcs/customersAddressesGet.d.ts.map +0 -1
- package/esm/funcs/customersAddressesGet.js.map +0 -1
- package/esm/funcs/customersGetCustomersId.d.ts.map +0 -1
- package/esm/funcs/customersGetCustomersId.js.map +0 -1
- package/esm/funcs/customersLoyaltyListActivities.d.ts.map +0 -1
- package/esm/funcs/customersLoyaltyListActivities.js.map +0 -1
- package/esm/funcs/customersPostCustomers.d.ts.map +0 -1
- package/esm/funcs/customersPostCustomers.js.map +0 -1
- package/esm/funcs/customersPutCustomersId.d.ts +0 -16
- package/esm/funcs/customersPutCustomersId.d.ts.map +0 -1
- package/esm/funcs/customersPutCustomersId.js.map +0 -1
- package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
- package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts +0 -15
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +0 -1
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +0 -1
- package/esm/funcs/ordersRefundsList.js.map +0 -1
- package/esm/funcs/ordersShipmentsList.d.ts.map +0 -1
- package/esm/funcs/ordersShipmentsList.js.map +0 -1
- package/esm/funcs/paymentsGetMethods.js.map +0 -1
- package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +0 -1
- package/esm/funcs/paymentsGetPaymentsCards.js.map +0 -1
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +0 -1
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +0 -1
- package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +0 -1
- package/esm/funcs/paymentsPostPaymentsCards.js.map +0 -1
- package/esm/funcs/userNotificationPreferencesCreate.d.ts.map +0 -1
- package/esm/funcs/userNotificationPreferencesCreate.js.map +0 -1
- package/esm/funcs/userNotificationPreferencesGet.d.ts.map +0 -1
- package/esm/funcs/userNotificationPreferencesGet.js.map +0 -1
- package/esm/funcs/wishlistDelete.d.ts.map +0 -1
- package/esm/funcs/wishlistDelete.js.map +0 -1
- package/esm/sdk/cestorefrontreviews.d.ts +0 -19
- package/esm/sdk/cestorefrontreviews.d.ts.map +0 -1
- package/esm/sdk/cestorefrontreviews.js +0 -28
- package/esm/sdk/cestorefrontreviews.js.map +0 -1
- package/esm/sdk/refunds.d.ts +0 -12
- package/esm/sdk/refunds.d.ts.map +0 -1
- package/esm/sdk/refunds.js +0 -18
- package/esm/sdk/refunds.js.map +0 -1
- package/esm/sdk/shipments.d.ts +0 -12
- package/esm/sdk/shipments.d.ts.map +0 -1
- package/esm/sdk/shipments.js +0 -18
- package/esm/sdk/shipments.js.map +0 -1
- package/esm/sdk/skus.d.ts.map +0 -1
- package/esm/sdk/skus.js.map +0 -1
- package/src/sdk/cestorefrontreviews.ts +0 -45
- package/src/sdk/shipments.ts +0 -27
|
@@ -63,10 +63,10 @@ export type SingleProduct = {
|
|
|
63
63
|
* The ULID of the product
|
|
64
64
|
*/
|
|
65
65
|
id: string;
|
|
66
|
-
sku
|
|
66
|
+
sku: string | null;
|
|
67
67
|
name: string;
|
|
68
|
-
slug: string;
|
|
69
|
-
shortDescription
|
|
68
|
+
slug: string | null;
|
|
69
|
+
shortDescription: string | null;
|
|
70
70
|
productType: ProductType;
|
|
71
71
|
active?: boolean | undefined;
|
|
72
72
|
/**
|
|
@@ -89,11 +89,11 @@ export type SingleProduct = {
|
|
|
89
89
|
* Indicates whether the product has variants
|
|
90
90
|
*/
|
|
91
91
|
hasVariant?: boolean | undefined;
|
|
92
|
-
tags
|
|
93
|
-
categoryIds
|
|
94
|
-
reviewsRatingSum
|
|
95
|
-
reviewsCount
|
|
96
|
-
attributes
|
|
92
|
+
tags: Array<string> | null;
|
|
93
|
+
categoryIds: Array<string>;
|
|
94
|
+
reviewsRatingSum: number;
|
|
95
|
+
reviewsCount: number;
|
|
96
|
+
attributes: Array<ProductAttribute>;
|
|
97
97
|
pricing: ProductPricing;
|
|
98
98
|
/**
|
|
99
99
|
* this will be used if has_variant is true, to auto set default values.
|
|
@@ -102,7 +102,7 @@ export type SingleProduct = {
|
|
|
102
102
|
promotion: ProductPromotion | null;
|
|
103
103
|
images: Array<ProductImage>;
|
|
104
104
|
subscription: Array<ProductSubscription>;
|
|
105
|
-
variants
|
|
105
|
+
variants: Array<Variant>;
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
/** @internal */
|
|
@@ -131,10 +131,10 @@ export const SingleProduct$inboundSchema: z.ZodType<
|
|
|
131
131
|
unknown
|
|
132
132
|
> = z.object({
|
|
133
133
|
id: z.string(),
|
|
134
|
-
sku: z.
|
|
134
|
+
sku: z.nullable(z.string()),
|
|
135
135
|
name: z.string(),
|
|
136
|
-
slug: z.string(),
|
|
137
|
-
short_description: z.
|
|
136
|
+
slug: z.nullable(z.string()),
|
|
137
|
+
short_description: z.nullable(z.string()),
|
|
138
138
|
product_type: ProductType$inboundSchema,
|
|
139
139
|
active: z.boolean().default(true),
|
|
140
140
|
stock_available: z.boolean().default(true),
|
|
@@ -142,17 +142,17 @@ export const SingleProduct$inboundSchema: z.ZodType<
|
|
|
142
142
|
on_subscription: z.boolean().default(false),
|
|
143
143
|
on_promotion: z.boolean().default(false),
|
|
144
144
|
has_variant: z.boolean().default(false),
|
|
145
|
-
tags: z.nullable(z.array(z.string()))
|
|
146
|
-
category_ids: z.array(z.string())
|
|
147
|
-
reviews_rating_sum: z.number()
|
|
148
|
-
reviews_count: z.number().int()
|
|
149
|
-
attributes: z.array(ProductAttribute$inboundSchema)
|
|
145
|
+
tags: z.nullable(z.array(z.string())),
|
|
146
|
+
category_ids: z.array(z.string()),
|
|
147
|
+
reviews_rating_sum: z.number(),
|
|
148
|
+
reviews_count: z.number().int(),
|
|
149
|
+
attributes: z.array(ProductAttribute$inboundSchema),
|
|
150
150
|
pricing: ProductPricing$inboundSchema,
|
|
151
151
|
variant_options: z.nullable(z.array(VariantOption$inboundSchema)),
|
|
152
152
|
promotion: z.nullable(ProductPromotion$inboundSchema),
|
|
153
153
|
images: z.array(ProductImage$inboundSchema),
|
|
154
154
|
subscription: z.array(ProductSubscription$inboundSchema),
|
|
155
|
-
variants: z.array(Variant$inboundSchema)
|
|
155
|
+
variants: z.array(Variant$inboundSchema),
|
|
156
156
|
}).transform((v) => {
|
|
157
157
|
return remap$(v, {
|
|
158
158
|
"short_description": "shortDescription",
|
|
@@ -172,10 +172,10 @@ export const SingleProduct$inboundSchema: z.ZodType<
|
|
|
172
172
|
/** @internal */
|
|
173
173
|
export type SingleProduct$Outbound = {
|
|
174
174
|
id: string;
|
|
175
|
-
sku
|
|
175
|
+
sku: string | null;
|
|
176
176
|
name: string;
|
|
177
|
-
slug: string;
|
|
178
|
-
short_description
|
|
177
|
+
slug: string | null;
|
|
178
|
+
short_description: string | null;
|
|
179
179
|
product_type: string;
|
|
180
180
|
active: boolean;
|
|
181
181
|
stock_available: boolean;
|
|
@@ -183,17 +183,17 @@ export type SingleProduct$Outbound = {
|
|
|
183
183
|
on_subscription: boolean;
|
|
184
184
|
on_promotion: boolean;
|
|
185
185
|
has_variant: boolean;
|
|
186
|
-
tags
|
|
187
|
-
category_ids
|
|
188
|
-
reviews_rating_sum
|
|
189
|
-
reviews_count
|
|
190
|
-
attributes
|
|
186
|
+
tags: Array<string> | null;
|
|
187
|
+
category_ids: Array<string>;
|
|
188
|
+
reviews_rating_sum: number;
|
|
189
|
+
reviews_count: number;
|
|
190
|
+
attributes: Array<ProductAttribute$Outbound>;
|
|
191
191
|
pricing: ProductPricing$Outbound;
|
|
192
192
|
variant_options: Array<VariantOption$Outbound> | null;
|
|
193
193
|
promotion: ProductPromotion$Outbound | null;
|
|
194
194
|
images: Array<ProductImage$Outbound>;
|
|
195
195
|
subscription: Array<ProductSubscription$Outbound>;
|
|
196
|
-
variants
|
|
196
|
+
variants: Array<Variant$Outbound>;
|
|
197
197
|
};
|
|
198
198
|
|
|
199
199
|
/** @internal */
|
|
@@ -203,10 +203,10 @@ export const SingleProduct$outboundSchema: z.ZodType<
|
|
|
203
203
|
SingleProduct
|
|
204
204
|
> = z.object({
|
|
205
205
|
id: z.string(),
|
|
206
|
-
sku: z.
|
|
206
|
+
sku: z.nullable(z.string()),
|
|
207
207
|
name: z.string(),
|
|
208
|
-
slug: z.string(),
|
|
209
|
-
shortDescription: z.
|
|
208
|
+
slug: z.nullable(z.string()),
|
|
209
|
+
shortDescription: z.nullable(z.string()),
|
|
210
210
|
productType: ProductType$outboundSchema,
|
|
211
211
|
active: z.boolean().default(true),
|
|
212
212
|
stockAvailable: z.boolean().default(true),
|
|
@@ -214,17 +214,17 @@ export const SingleProduct$outboundSchema: z.ZodType<
|
|
|
214
214
|
onSubscription: z.boolean().default(false),
|
|
215
215
|
onPromotion: z.boolean().default(false),
|
|
216
216
|
hasVariant: z.boolean().default(false),
|
|
217
|
-
tags: z.nullable(z.array(z.string()))
|
|
218
|
-
categoryIds: z.array(z.string())
|
|
219
|
-
reviewsRatingSum: z.number()
|
|
220
|
-
reviewsCount: z.number().int()
|
|
221
|
-
attributes: z.array(ProductAttribute$outboundSchema)
|
|
217
|
+
tags: z.nullable(z.array(z.string())),
|
|
218
|
+
categoryIds: z.array(z.string()),
|
|
219
|
+
reviewsRatingSum: z.number(),
|
|
220
|
+
reviewsCount: z.number().int(),
|
|
221
|
+
attributes: z.array(ProductAttribute$outboundSchema),
|
|
222
222
|
pricing: ProductPricing$outboundSchema,
|
|
223
223
|
variantOptions: z.nullable(z.array(VariantOption$outboundSchema)),
|
|
224
224
|
promotion: z.nullable(ProductPromotion$outboundSchema),
|
|
225
225
|
images: z.array(ProductImage$outboundSchema),
|
|
226
226
|
subscription: z.array(ProductSubscription$outboundSchema),
|
|
227
|
-
variants: z.array(Variant$outboundSchema)
|
|
227
|
+
variants: z.array(Variant$outboundSchema),
|
|
228
228
|
}).transform((v) => {
|
|
229
229
|
return remap$(v, {
|
|
230
230
|
shortDescription: "short_description",
|
|
@@ -83,10 +83,10 @@ export type SingleProductDetail = {
|
|
|
83
83
|
* The ULID of the product
|
|
84
84
|
*/
|
|
85
85
|
id: string;
|
|
86
|
-
sku
|
|
86
|
+
sku: string | null;
|
|
87
87
|
name: string;
|
|
88
|
-
slug: string;
|
|
89
|
-
shortDescription
|
|
88
|
+
slug: string | null;
|
|
89
|
+
shortDescription: string | null;
|
|
90
90
|
productType: SingleProductDetailProductType;
|
|
91
91
|
active?: boolean | undefined;
|
|
92
92
|
/**
|
|
@@ -109,11 +109,11 @@ export type SingleProductDetail = {
|
|
|
109
109
|
* Indicates whether the product has variants
|
|
110
110
|
*/
|
|
111
111
|
hasVariant?: boolean | undefined;
|
|
112
|
-
tags
|
|
113
|
-
categoryIds
|
|
114
|
-
reviewsRatingSum
|
|
115
|
-
reviewsCount
|
|
116
|
-
attributes
|
|
112
|
+
tags: Array<string> | null;
|
|
113
|
+
categoryIds: Array<string>;
|
|
114
|
+
reviewsRatingSum: number;
|
|
115
|
+
reviewsCount: number;
|
|
116
|
+
attributes: Array<ProductAttribute>;
|
|
117
117
|
pricing: ProductPricing;
|
|
118
118
|
/**
|
|
119
119
|
* this will be used if has_variant is true, to auto set default values.
|
|
@@ -122,21 +122,21 @@ export type SingleProductDetail = {
|
|
|
122
122
|
promotion: ProductPromotion | null;
|
|
123
123
|
images: Array<ProductImage>;
|
|
124
124
|
subscription: Array<ProductSubscription>;
|
|
125
|
-
variants
|
|
126
|
-
description
|
|
127
|
-
hsnCode
|
|
128
|
-
videos
|
|
129
|
-
shipping
|
|
125
|
+
variants: Array<Variant>;
|
|
126
|
+
description: string | null;
|
|
127
|
+
hsnCode: string | null;
|
|
128
|
+
videos: Array<ProductVideo>;
|
|
129
|
+
shipping: ProductShipping | null;
|
|
130
130
|
/**
|
|
131
131
|
* An array of product ULIDs
|
|
132
132
|
*/
|
|
133
|
-
upsellingProductIds
|
|
133
|
+
upsellingProductIds: Array<string>;
|
|
134
134
|
/**
|
|
135
135
|
* An array of product ULIDs
|
|
136
136
|
*/
|
|
137
|
-
crosssellingProductIds
|
|
138
|
-
seo
|
|
139
|
-
metadata
|
|
137
|
+
crosssellingProductIds: Array<string>;
|
|
138
|
+
seo: Seo;
|
|
139
|
+
metadata: { [k: string]: string };
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
/** @internal */
|
|
@@ -167,10 +167,10 @@ export const SingleProductDetail$inboundSchema: z.ZodType<
|
|
|
167
167
|
unknown
|
|
168
168
|
> = z.object({
|
|
169
169
|
id: z.string(),
|
|
170
|
-
sku: z.
|
|
170
|
+
sku: z.nullable(z.string()),
|
|
171
171
|
name: z.string(),
|
|
172
|
-
slug: z.string(),
|
|
173
|
-
short_description: z.
|
|
172
|
+
slug: z.nullable(z.string()),
|
|
173
|
+
short_description: z.nullable(z.string()),
|
|
174
174
|
product_type: SingleProductDetailProductType$inboundSchema,
|
|
175
175
|
active: z.boolean().default(true),
|
|
176
176
|
stock_available: z.boolean().default(true),
|
|
@@ -178,25 +178,25 @@ export const SingleProductDetail$inboundSchema: z.ZodType<
|
|
|
178
178
|
on_subscription: z.boolean().default(false),
|
|
179
179
|
on_promotion: z.boolean().default(false),
|
|
180
180
|
has_variant: z.boolean().default(false),
|
|
181
|
-
tags: z.nullable(z.array(z.string()))
|
|
182
|
-
category_ids: z.array(z.string())
|
|
183
|
-
reviews_rating_sum: z.number()
|
|
184
|
-
reviews_count: z.number().int()
|
|
185
|
-
attributes: z.array(ProductAttribute$inboundSchema)
|
|
181
|
+
tags: z.nullable(z.array(z.string())),
|
|
182
|
+
category_ids: z.array(z.string()),
|
|
183
|
+
reviews_rating_sum: z.number(),
|
|
184
|
+
reviews_count: z.number().int(),
|
|
185
|
+
attributes: z.array(ProductAttribute$inboundSchema),
|
|
186
186
|
pricing: ProductPricing$inboundSchema,
|
|
187
187
|
variant_options: z.nullable(z.array(VariantOption$inboundSchema)),
|
|
188
188
|
promotion: z.nullable(ProductPromotion$inboundSchema),
|
|
189
189
|
images: z.array(ProductImage$inboundSchema),
|
|
190
190
|
subscription: z.array(ProductSubscription$inboundSchema),
|
|
191
|
-
variants: z.array(Variant$inboundSchema)
|
|
192
|
-
description: z.
|
|
193
|
-
hsn_code: z.
|
|
194
|
-
videos: z.array(ProductVideo$inboundSchema)
|
|
195
|
-
shipping: z.nullable(ProductShipping$inboundSchema)
|
|
196
|
-
upselling_product_ids: z.array(z.string())
|
|
197
|
-
crossselling_product_ids: z.array(z.string())
|
|
198
|
-
seo: Seo$inboundSchema
|
|
199
|
-
metadata: z.record(z.string())
|
|
191
|
+
variants: z.array(Variant$inboundSchema),
|
|
192
|
+
description: z.nullable(z.string()),
|
|
193
|
+
hsn_code: z.nullable(z.string()),
|
|
194
|
+
videos: z.array(ProductVideo$inboundSchema),
|
|
195
|
+
shipping: z.nullable(ProductShipping$inboundSchema),
|
|
196
|
+
upselling_product_ids: z.array(z.string()),
|
|
197
|
+
crossselling_product_ids: z.array(z.string()),
|
|
198
|
+
seo: Seo$inboundSchema,
|
|
199
|
+
metadata: z.record(z.string()),
|
|
200
200
|
}).transform((v) => {
|
|
201
201
|
return remap$(v, {
|
|
202
202
|
"short_description": "shortDescription",
|
|
@@ -219,10 +219,10 @@ export const SingleProductDetail$inboundSchema: z.ZodType<
|
|
|
219
219
|
/** @internal */
|
|
220
220
|
export type SingleProductDetail$Outbound = {
|
|
221
221
|
id: string;
|
|
222
|
-
sku
|
|
222
|
+
sku: string | null;
|
|
223
223
|
name: string;
|
|
224
|
-
slug: string;
|
|
225
|
-
short_description
|
|
224
|
+
slug: string | null;
|
|
225
|
+
short_description: string | null;
|
|
226
226
|
product_type: string;
|
|
227
227
|
active: boolean;
|
|
228
228
|
stock_available: boolean;
|
|
@@ -230,25 +230,25 @@ export type SingleProductDetail$Outbound = {
|
|
|
230
230
|
on_subscription: boolean;
|
|
231
231
|
on_promotion: boolean;
|
|
232
232
|
has_variant: boolean;
|
|
233
|
-
tags
|
|
234
|
-
category_ids
|
|
235
|
-
reviews_rating_sum
|
|
236
|
-
reviews_count
|
|
237
|
-
attributes
|
|
233
|
+
tags: Array<string> | null;
|
|
234
|
+
category_ids: Array<string>;
|
|
235
|
+
reviews_rating_sum: number;
|
|
236
|
+
reviews_count: number;
|
|
237
|
+
attributes: Array<ProductAttribute$Outbound>;
|
|
238
238
|
pricing: ProductPricing$Outbound;
|
|
239
239
|
variant_options: Array<VariantOption$Outbound> | null;
|
|
240
240
|
promotion: ProductPromotion$Outbound | null;
|
|
241
241
|
images: Array<ProductImage$Outbound>;
|
|
242
242
|
subscription: Array<ProductSubscription$Outbound>;
|
|
243
|
-
variants
|
|
244
|
-
description
|
|
245
|
-
hsn_code
|
|
246
|
-
videos
|
|
247
|
-
shipping
|
|
248
|
-
upselling_product_ids
|
|
249
|
-
crossselling_product_ids
|
|
250
|
-
seo
|
|
251
|
-
metadata
|
|
243
|
+
variants: Array<Variant$Outbound>;
|
|
244
|
+
description: string | null;
|
|
245
|
+
hsn_code: string | null;
|
|
246
|
+
videos: Array<ProductVideo$Outbound>;
|
|
247
|
+
shipping: ProductShipping$Outbound | null;
|
|
248
|
+
upselling_product_ids: Array<string>;
|
|
249
|
+
crossselling_product_ids: Array<string>;
|
|
250
|
+
seo: Seo$Outbound;
|
|
251
|
+
metadata: { [k: string]: string };
|
|
252
252
|
};
|
|
253
253
|
|
|
254
254
|
/** @internal */
|
|
@@ -258,10 +258,10 @@ export const SingleProductDetail$outboundSchema: z.ZodType<
|
|
|
258
258
|
SingleProductDetail
|
|
259
259
|
> = z.object({
|
|
260
260
|
id: z.string(),
|
|
261
|
-
sku: z.
|
|
261
|
+
sku: z.nullable(z.string()),
|
|
262
262
|
name: z.string(),
|
|
263
|
-
slug: z.string(),
|
|
264
|
-
shortDescription: z.
|
|
263
|
+
slug: z.nullable(z.string()),
|
|
264
|
+
shortDescription: z.nullable(z.string()),
|
|
265
265
|
productType: SingleProductDetailProductType$outboundSchema,
|
|
266
266
|
active: z.boolean().default(true),
|
|
267
267
|
stockAvailable: z.boolean().default(true),
|
|
@@ -269,25 +269,25 @@ export const SingleProductDetail$outboundSchema: z.ZodType<
|
|
|
269
269
|
onSubscription: z.boolean().default(false),
|
|
270
270
|
onPromotion: z.boolean().default(false),
|
|
271
271
|
hasVariant: z.boolean().default(false),
|
|
272
|
-
tags: z.nullable(z.array(z.string()))
|
|
273
|
-
categoryIds: z.array(z.string())
|
|
274
|
-
reviewsRatingSum: z.number()
|
|
275
|
-
reviewsCount: z.number().int()
|
|
276
|
-
attributes: z.array(ProductAttribute$outboundSchema)
|
|
272
|
+
tags: z.nullable(z.array(z.string())),
|
|
273
|
+
categoryIds: z.array(z.string()),
|
|
274
|
+
reviewsRatingSum: z.number(),
|
|
275
|
+
reviewsCount: z.number().int(),
|
|
276
|
+
attributes: z.array(ProductAttribute$outboundSchema),
|
|
277
277
|
pricing: ProductPricing$outboundSchema,
|
|
278
278
|
variantOptions: z.nullable(z.array(VariantOption$outboundSchema)),
|
|
279
279
|
promotion: z.nullable(ProductPromotion$outboundSchema),
|
|
280
280
|
images: z.array(ProductImage$outboundSchema),
|
|
281
281
|
subscription: z.array(ProductSubscription$outboundSchema),
|
|
282
|
-
variants: z.array(Variant$outboundSchema)
|
|
283
|
-
description: z.
|
|
284
|
-
hsnCode: z.
|
|
285
|
-
videos: z.array(ProductVideo$outboundSchema)
|
|
286
|
-
shipping: z.nullable(ProductShipping$outboundSchema)
|
|
287
|
-
upsellingProductIds: z.array(z.string())
|
|
288
|
-
crosssellingProductIds: z.array(z.string())
|
|
289
|
-
seo: Seo$outboundSchema
|
|
290
|
-
metadata: z.record(z.string())
|
|
282
|
+
variants: z.array(Variant$outboundSchema),
|
|
283
|
+
description: z.nullable(z.string()),
|
|
284
|
+
hsnCode: z.nullable(z.string()),
|
|
285
|
+
videos: z.array(ProductVideo$outboundSchema),
|
|
286
|
+
shipping: z.nullable(ProductShipping$outboundSchema),
|
|
287
|
+
upsellingProductIds: z.array(z.string()),
|
|
288
|
+
crosssellingProductIds: z.array(z.string()),
|
|
289
|
+
seo: Seo$outboundSchema,
|
|
290
|
+
metadata: z.record(z.string()),
|
|
291
291
|
}).transform((v) => {
|
|
292
292
|
return remap$(v, {
|
|
293
293
|
shortDescription: "short_description",
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type SingleSelectOption = {
|
|
11
|
+
/**
|
|
12
|
+
* The name of the associated option.
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* The type of the associated option.
|
|
17
|
+
*/
|
|
18
|
+
type?: "single-select" | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* The value of the associated option
|
|
21
|
+
*/
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const SingleSelectOption$inboundSchema: z.ZodType<
|
|
27
|
+
SingleSelectOption,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
name: z.string(),
|
|
32
|
+
type: z.literal("single-select").optional(),
|
|
33
|
+
value: z.string(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type SingleSelectOption$Outbound = {
|
|
38
|
+
name: string;
|
|
39
|
+
type: "single-select";
|
|
40
|
+
value: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const SingleSelectOption$outboundSchema: z.ZodType<
|
|
45
|
+
SingleSelectOption$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
SingleSelectOption
|
|
48
|
+
> = z.object({
|
|
49
|
+
name: z.string(),
|
|
50
|
+
type: z.literal("single-select").default("single-select" as const),
|
|
51
|
+
value: z.string(),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace SingleSelectOption$ {
|
|
59
|
+
/** @deprecated use `SingleSelectOption$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = SingleSelectOption$inboundSchema;
|
|
61
|
+
/** @deprecated use `SingleSelectOption$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = SingleSelectOption$outboundSchema;
|
|
63
|
+
/** @deprecated use `SingleSelectOption$Outbound` instead. */
|
|
64
|
+
export type Outbound = SingleSelectOption$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function singleSelectOptionToJSON(
|
|
68
|
+
singleSelectOption: SingleSelectOption,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
SingleSelectOption$outboundSchema.parse(singleSelectOption),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function singleSelectOptionFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<SingleSelectOption, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => SingleSelectOption$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'SingleSelectOption' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -54,13 +54,13 @@ export type SKUProductType = ClosedEnum<typeof SKUProductType>;
|
|
|
54
54
|
|
|
55
55
|
export type Sku = {
|
|
56
56
|
productId: string;
|
|
57
|
-
variantId
|
|
57
|
+
variantId: string | null;
|
|
58
58
|
sku: string;
|
|
59
|
-
slug
|
|
59
|
+
slug: string | null;
|
|
60
60
|
productName: string;
|
|
61
|
-
variantName
|
|
61
|
+
variantName: string | null;
|
|
62
62
|
productType: SKUProductType;
|
|
63
|
-
shortDescription
|
|
63
|
+
shortDescription: string | null;
|
|
64
64
|
active?: boolean | undefined;
|
|
65
65
|
stockAvailable?: boolean | undefined;
|
|
66
66
|
/**
|
|
@@ -69,16 +69,16 @@ export type Sku = {
|
|
|
69
69
|
onOffer?: boolean | undefined;
|
|
70
70
|
onSubscription?: boolean | undefined;
|
|
71
71
|
onPromotion?: boolean | undefined;
|
|
72
|
-
categoryIds
|
|
73
|
-
tags
|
|
74
|
-
reviewsCount
|
|
75
|
-
reviewsRatingSum
|
|
76
|
-
attributes
|
|
77
|
-
images
|
|
78
|
-
pricing
|
|
79
|
-
promotion
|
|
80
|
-
subscription
|
|
81
|
-
associatedOptions
|
|
72
|
+
categoryIds: Array<string>;
|
|
73
|
+
tags: Array<string> | null;
|
|
74
|
+
reviewsCount: number;
|
|
75
|
+
reviewsRatingSum: number | null;
|
|
76
|
+
attributes: Array<ProductAttribute>;
|
|
77
|
+
images: Array<ProductImage>;
|
|
78
|
+
pricing: ProductPricing;
|
|
79
|
+
promotion: ProductPromotion | null;
|
|
80
|
+
subscription: Array<ProductSubscription>;
|
|
81
|
+
associatedOptions: { [k: string]: AssociatedOption } | null;
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
/** @internal */
|
|
@@ -106,29 +106,28 @@ export namespace SKUProductType$ {
|
|
|
106
106
|
export const Sku$inboundSchema: z.ZodType<Sku, z.ZodTypeDef, unknown> = z
|
|
107
107
|
.object({
|
|
108
108
|
product_id: z.string(),
|
|
109
|
-
variant_id: z.nullable(z.string())
|
|
109
|
+
variant_id: z.nullable(z.string()),
|
|
110
110
|
sku: z.string(),
|
|
111
|
-
slug: z.
|
|
111
|
+
slug: z.nullable(z.string()),
|
|
112
112
|
product_name: z.string(),
|
|
113
|
-
variant_name: z.nullable(z.string())
|
|
113
|
+
variant_name: z.nullable(z.string()),
|
|
114
114
|
product_type: SKUProductType$inboundSchema,
|
|
115
|
-
short_description: z.
|
|
115
|
+
short_description: z.nullable(z.string()),
|
|
116
116
|
active: z.boolean().default(true),
|
|
117
117
|
stock_available: z.boolean().default(true),
|
|
118
118
|
on_offer: z.boolean().default(false),
|
|
119
119
|
on_subscription: z.boolean().default(false),
|
|
120
120
|
on_promotion: z.boolean().default(false),
|
|
121
|
-
category_ids: z.array(z.string())
|
|
122
|
-
tags: z.array(z.string())
|
|
123
|
-
reviews_count: z.number().int()
|
|
124
|
-
reviews_rating_sum: z.
|
|
125
|
-
attributes: z.array(ProductAttribute$inboundSchema)
|
|
126
|
-
images: z.array(ProductImage$inboundSchema)
|
|
127
|
-
pricing: ProductPricing$inboundSchema
|
|
128
|
-
promotion: z.nullable(ProductPromotion$inboundSchema)
|
|
129
|
-
subscription: z.array(ProductSubscription$inboundSchema)
|
|
130
|
-
associated_options: z.nullable(z.record(AssociatedOption$inboundSchema))
|
|
131
|
-
.optional(),
|
|
121
|
+
category_ids: z.array(z.string()),
|
|
122
|
+
tags: z.nullable(z.array(z.string())),
|
|
123
|
+
reviews_count: z.number().int(),
|
|
124
|
+
reviews_rating_sum: z.nullable(z.number()),
|
|
125
|
+
attributes: z.array(ProductAttribute$inboundSchema),
|
|
126
|
+
images: z.array(ProductImage$inboundSchema),
|
|
127
|
+
pricing: ProductPricing$inboundSchema,
|
|
128
|
+
promotion: z.nullable(ProductPromotion$inboundSchema),
|
|
129
|
+
subscription: z.array(ProductSubscription$inboundSchema),
|
|
130
|
+
associated_options: z.nullable(z.record(AssociatedOption$inboundSchema)),
|
|
132
131
|
}).transform((v) => {
|
|
133
132
|
return remap$(v, {
|
|
134
133
|
"product_id": "productId",
|
|
@@ -151,60 +150,56 @@ export const Sku$inboundSchema: z.ZodType<Sku, z.ZodTypeDef, unknown> = z
|
|
|
151
150
|
/** @internal */
|
|
152
151
|
export type Sku$Outbound = {
|
|
153
152
|
product_id: string;
|
|
154
|
-
variant_id
|
|
153
|
+
variant_id: string | null;
|
|
155
154
|
sku: string;
|
|
156
|
-
slug
|
|
155
|
+
slug: string | null;
|
|
157
156
|
product_name: string;
|
|
158
|
-
variant_name
|
|
157
|
+
variant_name: string | null;
|
|
159
158
|
product_type: string;
|
|
160
|
-
short_description
|
|
159
|
+
short_description: string | null;
|
|
161
160
|
active: boolean;
|
|
162
161
|
stock_available: boolean;
|
|
163
162
|
on_offer: boolean;
|
|
164
163
|
on_subscription: boolean;
|
|
165
164
|
on_promotion: boolean;
|
|
166
|
-
category_ids
|
|
167
|
-
tags
|
|
168
|
-
reviews_count
|
|
169
|
-
reviews_rating_sum
|
|
170
|
-
attributes
|
|
171
|
-
images
|
|
172
|
-
pricing
|
|
173
|
-
promotion
|
|
174
|
-
subscription
|
|
175
|
-
associated_options
|
|
176
|
-
| { [k: string]: AssociatedOption$Outbound }
|
|
177
|
-
| null
|
|
178
|
-
| undefined;
|
|
165
|
+
category_ids: Array<string>;
|
|
166
|
+
tags: Array<string> | null;
|
|
167
|
+
reviews_count: number;
|
|
168
|
+
reviews_rating_sum: number | null;
|
|
169
|
+
attributes: Array<ProductAttribute$Outbound>;
|
|
170
|
+
images: Array<ProductImage$Outbound>;
|
|
171
|
+
pricing: ProductPricing$Outbound;
|
|
172
|
+
promotion: ProductPromotion$Outbound | null;
|
|
173
|
+
subscription: Array<ProductSubscription$Outbound>;
|
|
174
|
+
associated_options: { [k: string]: AssociatedOption$Outbound } | null;
|
|
179
175
|
};
|
|
180
176
|
|
|
181
177
|
/** @internal */
|
|
182
178
|
export const Sku$outboundSchema: z.ZodType<Sku$Outbound, z.ZodTypeDef, Sku> = z
|
|
183
179
|
.object({
|
|
184
180
|
productId: z.string(),
|
|
185
|
-
variantId: z.nullable(z.string())
|
|
181
|
+
variantId: z.nullable(z.string()),
|
|
186
182
|
sku: z.string(),
|
|
187
|
-
slug: z.
|
|
183
|
+
slug: z.nullable(z.string()),
|
|
188
184
|
productName: z.string(),
|
|
189
|
-
variantName: z.nullable(z.string())
|
|
185
|
+
variantName: z.nullable(z.string()),
|
|
190
186
|
productType: SKUProductType$outboundSchema,
|
|
191
|
-
shortDescription: z.
|
|
187
|
+
shortDescription: z.nullable(z.string()),
|
|
192
188
|
active: z.boolean().default(true),
|
|
193
189
|
stockAvailable: z.boolean().default(true),
|
|
194
190
|
onOffer: z.boolean().default(false),
|
|
195
191
|
onSubscription: z.boolean().default(false),
|
|
196
192
|
onPromotion: z.boolean().default(false),
|
|
197
|
-
categoryIds: z.array(z.string())
|
|
198
|
-
tags: z.array(z.string())
|
|
199
|
-
reviewsCount: z.number().int()
|
|
200
|
-
reviewsRatingSum: z.
|
|
201
|
-
attributes: z.array(ProductAttribute$outboundSchema)
|
|
202
|
-
images: z.array(ProductImage$outboundSchema)
|
|
203
|
-
pricing: ProductPricing$outboundSchema
|
|
204
|
-
promotion: z.nullable(ProductPromotion$outboundSchema)
|
|
205
|
-
subscription: z.array(ProductSubscription$outboundSchema)
|
|
206
|
-
associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema))
|
|
207
|
-
.optional(),
|
|
193
|
+
categoryIds: z.array(z.string()),
|
|
194
|
+
tags: z.nullable(z.array(z.string())),
|
|
195
|
+
reviewsCount: z.number().int(),
|
|
196
|
+
reviewsRatingSum: z.nullable(z.number()),
|
|
197
|
+
attributes: z.array(ProductAttribute$outboundSchema),
|
|
198
|
+
images: z.array(ProductImage$outboundSchema),
|
|
199
|
+
pricing: ProductPricing$outboundSchema,
|
|
200
|
+
promotion: z.nullable(ProductPromotion$outboundSchema),
|
|
201
|
+
subscription: z.array(ProductSubscription$outboundSchema),
|
|
202
|
+
associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema)),
|
|
208
203
|
}).transform((v) => {
|
|
209
204
|
return remap$(v, {
|
|
210
205
|
productId: "product_id",
|