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
|
@@ -12,11 +12,11 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
* pagination metadata structure
|
|
13
13
|
*/
|
|
14
14
|
export type Pagination = {
|
|
15
|
-
totalRecords
|
|
16
|
-
totalPages
|
|
15
|
+
totalRecords: number;
|
|
16
|
+
totalPages: number;
|
|
17
17
|
previousPage?: number | null | undefined;
|
|
18
|
-
limit
|
|
19
|
-
nextPage
|
|
18
|
+
limit: number;
|
|
19
|
+
nextPage: number | null;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
/** @internal */
|
|
@@ -25,11 +25,11 @@ export const Pagination$inboundSchema: z.ZodType<
|
|
|
25
25
|
z.ZodTypeDef,
|
|
26
26
|
unknown
|
|
27
27
|
> = z.object({
|
|
28
|
-
total_records: z.number().int()
|
|
29
|
-
total_pages: z.number().int()
|
|
28
|
+
total_records: z.number().int(),
|
|
29
|
+
total_pages: z.number().int(),
|
|
30
30
|
previous_page: z.nullable(z.number().int()).optional(),
|
|
31
|
-
limit: z.number().int()
|
|
32
|
-
next_page: z.nullable(z.number().int())
|
|
31
|
+
limit: z.number().int(),
|
|
32
|
+
next_page: z.nullable(z.number().int()),
|
|
33
33
|
}).transform((v) => {
|
|
34
34
|
return remap$(v, {
|
|
35
35
|
"total_records": "totalRecords",
|
|
@@ -41,11 +41,11 @@ export const Pagination$inboundSchema: z.ZodType<
|
|
|
41
41
|
|
|
42
42
|
/** @internal */
|
|
43
43
|
export type Pagination$Outbound = {
|
|
44
|
-
total_records
|
|
45
|
-
total_pages
|
|
44
|
+
total_records: number;
|
|
45
|
+
total_pages: number;
|
|
46
46
|
previous_page?: number | null | undefined;
|
|
47
|
-
limit
|
|
48
|
-
next_page
|
|
47
|
+
limit: number;
|
|
48
|
+
next_page: number | null;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
/** @internal */
|
|
@@ -54,11 +54,11 @@ export const Pagination$outboundSchema: z.ZodType<
|
|
|
54
54
|
z.ZodTypeDef,
|
|
55
55
|
Pagination
|
|
56
56
|
> = z.object({
|
|
57
|
-
totalRecords: z.number().int()
|
|
58
|
-
totalPages: z.number().int()
|
|
57
|
+
totalRecords: z.number().int(),
|
|
58
|
+
totalPages: z.number().int(),
|
|
59
59
|
previousPage: z.nullable(z.number().int()).optional(),
|
|
60
|
-
limit: z.number().int()
|
|
61
|
-
nextPage: z.nullable(z.number().int())
|
|
60
|
+
limit: z.number().int(),
|
|
61
|
+
nextPage: z.nullable(z.number().int()),
|
|
62
62
|
}).transform((v) => {
|
|
63
63
|
return remap$(v, {
|
|
64
64
|
totalRecords: "total_records",
|
|
@@ -68,7 +68,7 @@ export type TextAttribute = {
|
|
|
68
68
|
/**
|
|
69
69
|
* A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type`
|
|
70
70
|
*/
|
|
71
|
-
key
|
|
71
|
+
key: string;
|
|
72
72
|
type?: "text" | undefined;
|
|
73
73
|
/**
|
|
74
74
|
* For text attributes
|
|
@@ -292,7 +292,7 @@ export const TextAttribute$inboundSchema: z.ZodType<
|
|
|
292
292
|
> = z.object({
|
|
293
293
|
id: z.string(),
|
|
294
294
|
name: z.string(),
|
|
295
|
-
key: z.string()
|
|
295
|
+
key: z.string(),
|
|
296
296
|
type: z.literal("text").optional(),
|
|
297
297
|
value: z.string(),
|
|
298
298
|
});
|
|
@@ -301,7 +301,7 @@ export const TextAttribute$inboundSchema: z.ZodType<
|
|
|
301
301
|
export type TextAttribute$Outbound = {
|
|
302
302
|
id: string;
|
|
303
303
|
name: string;
|
|
304
|
-
key
|
|
304
|
+
key: string;
|
|
305
305
|
type: "text";
|
|
306
306
|
value: string;
|
|
307
307
|
};
|
|
@@ -314,7 +314,7 @@ export const TextAttribute$outboundSchema: z.ZodType<
|
|
|
314
314
|
> = z.object({
|
|
315
315
|
id: z.string(),
|
|
316
316
|
name: z.string(),
|
|
317
|
-
key: z.string()
|
|
317
|
+
key: z.string(),
|
|
318
318
|
type: z.literal("text").default("text" as const),
|
|
319
319
|
value: z.string(),
|
|
320
320
|
});
|
|
@@ -9,22 +9,22 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type ChildCategories = {
|
|
12
|
-
id
|
|
13
|
-
name
|
|
14
|
-
description
|
|
15
|
-
parentCategoryId
|
|
16
|
-
productCount
|
|
17
|
-
active
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string | null;
|
|
15
|
+
parentCategoryId: string | null;
|
|
16
|
+
productCount: number;
|
|
17
|
+
active: boolean;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export type ProductCategory = {
|
|
21
21
|
id: string;
|
|
22
22
|
name: string;
|
|
23
|
-
description
|
|
24
|
-
parentCategoryId
|
|
25
|
-
productCount
|
|
23
|
+
description: string | null;
|
|
24
|
+
parentCategoryId: string | null;
|
|
25
|
+
productCount: number;
|
|
26
26
|
active: boolean;
|
|
27
|
-
childCategories
|
|
27
|
+
childCategories: Array<ChildCategories> | null;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
/** @internal */
|
|
@@ -33,12 +33,12 @@ export const ChildCategories$inboundSchema: z.ZodType<
|
|
|
33
33
|
z.ZodTypeDef,
|
|
34
34
|
unknown
|
|
35
35
|
> = z.object({
|
|
36
|
-
id: z.string()
|
|
37
|
-
name: z.string()
|
|
38
|
-
description: z.
|
|
39
|
-
parent_category_id: z.nullable(z.string())
|
|
40
|
-
product_count: z.number().int()
|
|
41
|
-
active: z.boolean()
|
|
36
|
+
id: z.string(),
|
|
37
|
+
name: z.string(),
|
|
38
|
+
description: z.nullable(z.string()),
|
|
39
|
+
parent_category_id: z.nullable(z.string()),
|
|
40
|
+
product_count: z.number().int(),
|
|
41
|
+
active: z.boolean(),
|
|
42
42
|
}).transform((v) => {
|
|
43
43
|
return remap$(v, {
|
|
44
44
|
"parent_category_id": "parentCategoryId",
|
|
@@ -48,12 +48,12 @@ export const ChildCategories$inboundSchema: z.ZodType<
|
|
|
48
48
|
|
|
49
49
|
/** @internal */
|
|
50
50
|
export type ChildCategories$Outbound = {
|
|
51
|
-
id
|
|
52
|
-
name
|
|
53
|
-
description
|
|
54
|
-
parent_category_id
|
|
55
|
-
product_count
|
|
56
|
-
active
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
description: string | null;
|
|
54
|
+
parent_category_id: string | null;
|
|
55
|
+
product_count: number;
|
|
56
|
+
active: boolean;
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
/** @internal */
|
|
@@ -62,12 +62,12 @@ export const ChildCategories$outboundSchema: z.ZodType<
|
|
|
62
62
|
z.ZodTypeDef,
|
|
63
63
|
ChildCategories
|
|
64
64
|
> = z.object({
|
|
65
|
-
id: z.string()
|
|
66
|
-
name: z.string()
|
|
67
|
-
description: z.
|
|
68
|
-
parentCategoryId: z.nullable(z.string())
|
|
69
|
-
productCount: z.number().int()
|
|
70
|
-
active: z.boolean()
|
|
65
|
+
id: z.string(),
|
|
66
|
+
name: z.string(),
|
|
67
|
+
description: z.nullable(z.string()),
|
|
68
|
+
parentCategoryId: z.nullable(z.string()),
|
|
69
|
+
productCount: z.number().int(),
|
|
70
|
+
active: z.boolean(),
|
|
71
71
|
}).transform((v) => {
|
|
72
72
|
return remap$(v, {
|
|
73
73
|
parentCategoryId: "parent_category_id",
|
|
@@ -112,13 +112,13 @@ export const ProductCategory$inboundSchema: z.ZodType<
|
|
|
112
112
|
> = z.object({
|
|
113
113
|
id: z.string(),
|
|
114
114
|
name: z.string(),
|
|
115
|
-
description: z.nullable(z.string())
|
|
116
|
-
parent_category_id: z.nullable(z.string())
|
|
117
|
-
product_count: z.number().int()
|
|
115
|
+
description: z.nullable(z.string()),
|
|
116
|
+
parent_category_id: z.nullable(z.string()),
|
|
117
|
+
product_count: z.number().int(),
|
|
118
118
|
active: z.boolean(),
|
|
119
119
|
child_categories: z.nullable(
|
|
120
120
|
z.array(z.lazy(() => ChildCategories$inboundSchema)),
|
|
121
|
-
)
|
|
121
|
+
),
|
|
122
122
|
}).transform((v) => {
|
|
123
123
|
return remap$(v, {
|
|
124
124
|
"parent_category_id": "parentCategoryId",
|
|
@@ -131,11 +131,11 @@ export const ProductCategory$inboundSchema: z.ZodType<
|
|
|
131
131
|
export type ProductCategory$Outbound = {
|
|
132
132
|
id: string;
|
|
133
133
|
name: string;
|
|
134
|
-
description
|
|
135
|
-
parent_category_id
|
|
136
|
-
product_count
|
|
134
|
+
description: string | null;
|
|
135
|
+
parent_category_id: string | null;
|
|
136
|
+
product_count: number;
|
|
137
137
|
active: boolean;
|
|
138
|
-
child_categories
|
|
138
|
+
child_categories: Array<ChildCategories$Outbound> | null;
|
|
139
139
|
};
|
|
140
140
|
|
|
141
141
|
/** @internal */
|
|
@@ -146,13 +146,13 @@ export const ProductCategory$outboundSchema: z.ZodType<
|
|
|
146
146
|
> = z.object({
|
|
147
147
|
id: z.string(),
|
|
148
148
|
name: z.string(),
|
|
149
|
-
description: z.nullable(z.string())
|
|
150
|
-
parentCategoryId: z.nullable(z.string())
|
|
151
|
-
productCount: z.number().int()
|
|
149
|
+
description: z.nullable(z.string()),
|
|
150
|
+
parentCategoryId: z.nullable(z.string()),
|
|
151
|
+
productCount: z.number().int(),
|
|
152
152
|
active: z.boolean(),
|
|
153
153
|
childCategories: z.nullable(
|
|
154
154
|
z.array(z.lazy(() => ChildCategories$outboundSchema)),
|
|
155
|
-
)
|
|
155
|
+
),
|
|
156
156
|
}).transform((v) => {
|
|
157
157
|
return remap$(v, {
|
|
158
158
|
parentCategoryId: "parent_category_id",
|
|
@@ -19,10 +19,7 @@ import {
|
|
|
19
19
|
SingleProductDetail$outboundSchema,
|
|
20
20
|
} from "./singleproductdetail.js";
|
|
21
21
|
|
|
22
|
-
export type ProductDetail =
|
|
23
|
-
| (SingleProductDetail & { productType: "physical" })
|
|
24
|
-
| (SingleProductDetail & { productType: "digital" })
|
|
25
|
-
| (BundleProductDetail & { productType: "bundle" });
|
|
22
|
+
export type ProductDetail = SingleProductDetail | BundleProductDetail;
|
|
26
23
|
|
|
27
24
|
/** @internal */
|
|
28
25
|
export const ProductDetail$inboundSchema: z.ZodType<
|
|
@@ -30,28 +27,14 @@ export const ProductDetail$inboundSchema: z.ZodType<
|
|
|
30
27
|
z.ZodTypeDef,
|
|
31
28
|
unknown
|
|
32
29
|
> = z.union([
|
|
33
|
-
SingleProductDetail$inboundSchema
|
|
34
|
-
|
|
35
|
-
productType: v.product_type,
|
|
36
|
-
})),
|
|
37
|
-
),
|
|
38
|
-
SingleProductDetail$inboundSchema.and(
|
|
39
|
-
z.object({ product_type: z.literal("digital") }).transform((v) => ({
|
|
40
|
-
productType: v.product_type,
|
|
41
|
-
})),
|
|
42
|
-
),
|
|
43
|
-
BundleProductDetail$inboundSchema.and(
|
|
44
|
-
z.object({ product_type: z.literal("bundle") }).transform((v) => ({
|
|
45
|
-
productType: v.product_type,
|
|
46
|
-
})),
|
|
47
|
-
),
|
|
30
|
+
SingleProductDetail$inboundSchema,
|
|
31
|
+
BundleProductDetail$inboundSchema,
|
|
48
32
|
]);
|
|
49
33
|
|
|
50
34
|
/** @internal */
|
|
51
35
|
export type ProductDetail$Outbound =
|
|
52
|
-
|
|
|
53
|
-
|
|
|
54
|
-
| (BundleProductDetail$Outbound & { product_type: "bundle" });
|
|
36
|
+
| SingleProductDetail$Outbound
|
|
37
|
+
| BundleProductDetail$Outbound;
|
|
55
38
|
|
|
56
39
|
/** @internal */
|
|
57
40
|
export const ProductDetail$outboundSchema: z.ZodType<
|
|
@@ -59,21 +42,8 @@ export const ProductDetail$outboundSchema: z.ZodType<
|
|
|
59
42
|
z.ZodTypeDef,
|
|
60
43
|
ProductDetail
|
|
61
44
|
> = z.union([
|
|
62
|
-
SingleProductDetail$outboundSchema
|
|
63
|
-
|
|
64
|
-
product_type: v.productType,
|
|
65
|
-
})),
|
|
66
|
-
),
|
|
67
|
-
SingleProductDetail$outboundSchema.and(
|
|
68
|
-
z.object({ productType: z.literal("digital") }).transform((v) => ({
|
|
69
|
-
product_type: v.productType,
|
|
70
|
-
})),
|
|
71
|
-
),
|
|
72
|
-
BundleProductDetail$outboundSchema.and(
|
|
73
|
-
z.object({ productType: z.literal("bundle") }).transform((v) => ({
|
|
74
|
-
product_type: v.productType,
|
|
75
|
-
})),
|
|
76
|
-
),
|
|
45
|
+
SingleProductDetail$outboundSchema,
|
|
46
|
+
BundleProductDetail$outboundSchema,
|
|
77
47
|
]);
|
|
78
48
|
|
|
79
49
|
/**
|
|
@@ -9,13 +9,13 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type ProductImage = {
|
|
12
|
-
title
|
|
13
|
-
alternateText
|
|
14
|
-
sortOrder
|
|
15
|
-
urlTiny
|
|
16
|
-
urlThumbnail
|
|
17
|
-
urlStandard
|
|
18
|
-
urlZoom
|
|
12
|
+
title: string | null;
|
|
13
|
+
alternateText: string | null;
|
|
14
|
+
sortOrder: number;
|
|
15
|
+
urlTiny: string;
|
|
16
|
+
urlThumbnail: string;
|
|
17
|
+
urlStandard: string;
|
|
18
|
+
urlZoom: string;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/** @internal */
|
|
@@ -24,13 +24,13 @@ export const ProductImage$inboundSchema: z.ZodType<
|
|
|
24
24
|
z.ZodTypeDef,
|
|
25
25
|
unknown
|
|
26
26
|
> = z.object({
|
|
27
|
-
title: z.nullable(z.string())
|
|
28
|
-
alternate_text: z.nullable(z.string())
|
|
29
|
-
sort_order: z.number().int()
|
|
30
|
-
url_tiny: z.string()
|
|
31
|
-
url_thumbnail: z.string()
|
|
32
|
-
url_standard: z.string()
|
|
33
|
-
url_zoom: z.string()
|
|
27
|
+
title: z.nullable(z.string()),
|
|
28
|
+
alternate_text: z.nullable(z.string()),
|
|
29
|
+
sort_order: z.number().int(),
|
|
30
|
+
url_tiny: z.string(),
|
|
31
|
+
url_thumbnail: z.string(),
|
|
32
|
+
url_standard: z.string(),
|
|
33
|
+
url_zoom: z.string(),
|
|
34
34
|
}).transform((v) => {
|
|
35
35
|
return remap$(v, {
|
|
36
36
|
"alternate_text": "alternateText",
|
|
@@ -44,13 +44,13 @@ export const ProductImage$inboundSchema: z.ZodType<
|
|
|
44
44
|
|
|
45
45
|
/** @internal */
|
|
46
46
|
export type ProductImage$Outbound = {
|
|
47
|
-
title
|
|
48
|
-
alternate_text
|
|
49
|
-
sort_order
|
|
50
|
-
url_tiny
|
|
51
|
-
url_thumbnail
|
|
52
|
-
url_standard
|
|
53
|
-
url_zoom
|
|
47
|
+
title: string | null;
|
|
48
|
+
alternate_text: string | null;
|
|
49
|
+
sort_order: number;
|
|
50
|
+
url_tiny: string;
|
|
51
|
+
url_thumbnail: string;
|
|
52
|
+
url_standard: string;
|
|
53
|
+
url_zoom: string;
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
/** @internal */
|
|
@@ -59,13 +59,13 @@ export const ProductImage$outboundSchema: z.ZodType<
|
|
|
59
59
|
z.ZodTypeDef,
|
|
60
60
|
ProductImage
|
|
61
61
|
> = z.object({
|
|
62
|
-
title: z.nullable(z.string())
|
|
63
|
-
alternateText: z.nullable(z.string())
|
|
64
|
-
sortOrder: z.number().int()
|
|
65
|
-
urlTiny: z.string()
|
|
66
|
-
urlThumbnail: z.string()
|
|
67
|
-
urlStandard: z.string()
|
|
68
|
-
urlZoom: z.string()
|
|
62
|
+
title: z.nullable(z.string()),
|
|
63
|
+
alternateText: z.nullable(z.string()),
|
|
64
|
+
sortOrder: z.number().int(),
|
|
65
|
+
urlTiny: z.string(),
|
|
66
|
+
urlThumbnail: z.string(),
|
|
67
|
+
urlStandard: z.string(),
|
|
68
|
+
urlZoom: z.string(),
|
|
69
69
|
}).transform((v) => {
|
|
70
70
|
return remap$(v, {
|
|
71
71
|
alternateText: "alternate_text",
|
|
@@ -22,9 +22,9 @@ export type ProductPricing = {
|
|
|
22
22
|
listingPrice: number;
|
|
23
23
|
sellingPrice: number;
|
|
24
24
|
minOrderQuantity?: number | undefined;
|
|
25
|
-
maxOrderQuantity
|
|
25
|
+
maxOrderQuantity: number | null;
|
|
26
26
|
incrementalQuantity?: number | undefined;
|
|
27
|
-
sellingPriceExcludingTax
|
|
27
|
+
sellingPriceExcludingTax: number;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
/** @internal */
|
|
@@ -59,9 +59,9 @@ export const ProductPricing$inboundSchema: z.ZodType<
|
|
|
59
59
|
listing_price: z.number(),
|
|
60
60
|
selling_price: z.number(),
|
|
61
61
|
min_order_quantity: z.number().int().default(1),
|
|
62
|
-
max_order_quantity: z.nullable(z.number().int())
|
|
62
|
+
max_order_quantity: z.nullable(z.number().int()),
|
|
63
63
|
incremental_quantity: z.number().int().default(1),
|
|
64
|
-
selling_price_excluding_tax: z.number()
|
|
64
|
+
selling_price_excluding_tax: z.number(),
|
|
65
65
|
}).transform((v) => {
|
|
66
66
|
return remap$(v, {
|
|
67
67
|
"tax_type": "taxType",
|
|
@@ -85,9 +85,9 @@ export type ProductPricing$Outbound = {
|
|
|
85
85
|
listing_price: number;
|
|
86
86
|
selling_price: number;
|
|
87
87
|
min_order_quantity: number;
|
|
88
|
-
max_order_quantity
|
|
88
|
+
max_order_quantity: number | null;
|
|
89
89
|
incremental_quantity: number;
|
|
90
|
-
selling_price_excluding_tax
|
|
90
|
+
selling_price_excluding_tax: number;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
/** @internal */
|
|
@@ -103,9 +103,9 @@ export const ProductPricing$outboundSchema: z.ZodType<
|
|
|
103
103
|
listingPrice: z.number(),
|
|
104
104
|
sellingPrice: z.number(),
|
|
105
105
|
minOrderQuantity: z.number().int().default(1),
|
|
106
|
-
maxOrderQuantity: z.nullable(z.number().int())
|
|
106
|
+
maxOrderQuantity: z.nullable(z.number().int()),
|
|
107
107
|
incrementalQuantity: z.number().int().default(1),
|
|
108
|
-
sellingPriceExcludingTax: z.number()
|
|
108
|
+
sellingPriceExcludingTax: z.number(),
|
|
109
109
|
}).transform((v) => {
|
|
110
110
|
return remap$(v, {
|
|
111
111
|
taxType: "tax_type",
|
|
@@ -9,14 +9,14 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type ProductShipping = {
|
|
12
|
-
additionalCost
|
|
13
|
-
shippingPriceIncludingTax
|
|
14
|
-
availabilityDescription
|
|
12
|
+
additionalCost: number | null;
|
|
13
|
+
shippingPriceIncludingTax: boolean;
|
|
14
|
+
availabilityDescription: string | null;
|
|
15
15
|
shipsInternationally?: boolean | undefined;
|
|
16
|
-
midCode
|
|
16
|
+
midCode: string | null;
|
|
17
17
|
countryOfOrigin?: string | null | undefined;
|
|
18
|
-
taxType
|
|
19
|
-
taxRate
|
|
18
|
+
taxType: string | null;
|
|
19
|
+
taxRate: number | null;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
/** @internal */
|
|
@@ -25,14 +25,14 @@ export const ProductShipping$inboundSchema: z.ZodType<
|
|
|
25
25
|
z.ZodTypeDef,
|
|
26
26
|
unknown
|
|
27
27
|
> = z.object({
|
|
28
|
-
additional_cost: z.nullable(z.number())
|
|
29
|
-
shipping_price_including_tax: z.boolean()
|
|
30
|
-
availability_description: z.nullable(z.string())
|
|
28
|
+
additional_cost: z.nullable(z.number()),
|
|
29
|
+
shipping_price_including_tax: z.boolean(),
|
|
30
|
+
availability_description: z.nullable(z.string()),
|
|
31
31
|
ships_internationally: z.boolean().default(false),
|
|
32
|
-
mid_code: z.nullable(z.string())
|
|
32
|
+
mid_code: z.nullable(z.string()),
|
|
33
33
|
country_of_origin: z.nullable(z.string().default("India")),
|
|
34
|
-
tax_type: z.nullable(z.string())
|
|
35
|
-
tax_rate: z.nullable(z.number())
|
|
34
|
+
tax_type: z.nullable(z.string()),
|
|
35
|
+
tax_rate: z.nullable(z.number()),
|
|
36
36
|
}).transform((v) => {
|
|
37
37
|
return remap$(v, {
|
|
38
38
|
"additional_cost": "additionalCost",
|
|
@@ -48,14 +48,14 @@ export const ProductShipping$inboundSchema: z.ZodType<
|
|
|
48
48
|
|
|
49
49
|
/** @internal */
|
|
50
50
|
export type ProductShipping$Outbound = {
|
|
51
|
-
additional_cost
|
|
52
|
-
shipping_price_including_tax
|
|
53
|
-
availability_description
|
|
51
|
+
additional_cost: number | null;
|
|
52
|
+
shipping_price_including_tax: boolean;
|
|
53
|
+
availability_description: string | null;
|
|
54
54
|
ships_internationally: boolean;
|
|
55
|
-
mid_code
|
|
55
|
+
mid_code: string | null;
|
|
56
56
|
country_of_origin: string | null;
|
|
57
|
-
tax_type
|
|
58
|
-
tax_rate
|
|
57
|
+
tax_type: string | null;
|
|
58
|
+
tax_rate: number | null;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/** @internal */
|
|
@@ -64,14 +64,14 @@ export const ProductShipping$outboundSchema: z.ZodType<
|
|
|
64
64
|
z.ZodTypeDef,
|
|
65
65
|
ProductShipping
|
|
66
66
|
> = z.object({
|
|
67
|
-
additionalCost: z.nullable(z.number())
|
|
68
|
-
shippingPriceIncludingTax: z.boolean()
|
|
69
|
-
availabilityDescription: z.nullable(z.string())
|
|
67
|
+
additionalCost: z.nullable(z.number()),
|
|
68
|
+
shippingPriceIncludingTax: z.boolean(),
|
|
69
|
+
availabilityDescription: z.nullable(z.string()),
|
|
70
70
|
shipsInternationally: z.boolean().default(false),
|
|
71
|
-
midCode: z.nullable(z.string())
|
|
71
|
+
midCode: z.nullable(z.string()),
|
|
72
72
|
countryOfOrigin: z.nullable(z.string().default("India")),
|
|
73
|
-
taxType: z.nullable(z.string())
|
|
74
|
-
taxRate: z.nullable(z.number())
|
|
73
|
+
taxType: z.nullable(z.string()),
|
|
74
|
+
taxRate: z.nullable(z.number()),
|
|
75
75
|
}).transform((v) => {
|
|
76
76
|
return remap$(v, {
|
|
77
77
|
additionalCost: "additional_cost",
|
|
@@ -9,17 +9,17 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type ProductVideo = {
|
|
12
|
-
title
|
|
13
|
-
alternateText
|
|
14
|
-
sortOrder
|
|
15
|
-
videoPreviewUrl
|
|
16
|
-
videoStreamHlsUrl
|
|
17
|
-
videoStreamDashUrl
|
|
18
|
-
imageThumbnailUrl
|
|
12
|
+
title: string | null;
|
|
13
|
+
alternateText: string | null;
|
|
14
|
+
sortOrder: number;
|
|
15
|
+
videoPreviewUrl: string;
|
|
16
|
+
videoStreamHlsUrl: string;
|
|
17
|
+
videoStreamDashUrl: string;
|
|
18
|
+
imageThumbnailUrl: string;
|
|
19
19
|
/**
|
|
20
20
|
* in seconds
|
|
21
21
|
*/
|
|
22
|
-
videoDuration
|
|
22
|
+
videoDuration: number;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
/** @internal */
|
|
@@ -28,14 +28,14 @@ export const ProductVideo$inboundSchema: z.ZodType<
|
|
|
28
28
|
z.ZodTypeDef,
|
|
29
29
|
unknown
|
|
30
30
|
> = z.object({
|
|
31
|
-
title: z.
|
|
32
|
-
alternate_text: z.
|
|
33
|
-
sort_order: z.number().int()
|
|
34
|
-
video_preview_url: z.string()
|
|
35
|
-
video_stream_hls_url: z.string()
|
|
36
|
-
video_stream_dash_url: z.string()
|
|
37
|
-
image_thumbnail_url: z.string()
|
|
38
|
-
video_duration: z.number().int()
|
|
31
|
+
title: z.nullable(z.string()),
|
|
32
|
+
alternate_text: z.nullable(z.string()),
|
|
33
|
+
sort_order: z.number().int(),
|
|
34
|
+
video_preview_url: z.string(),
|
|
35
|
+
video_stream_hls_url: z.string(),
|
|
36
|
+
video_stream_dash_url: z.string(),
|
|
37
|
+
image_thumbnail_url: z.string(),
|
|
38
|
+
video_duration: z.number().int(),
|
|
39
39
|
}).transform((v) => {
|
|
40
40
|
return remap$(v, {
|
|
41
41
|
"alternate_text": "alternateText",
|
|
@@ -50,14 +50,14 @@ export const ProductVideo$inboundSchema: z.ZodType<
|
|
|
50
50
|
|
|
51
51
|
/** @internal */
|
|
52
52
|
export type ProductVideo$Outbound = {
|
|
53
|
-
title
|
|
54
|
-
alternate_text
|
|
55
|
-
sort_order
|
|
56
|
-
video_preview_url
|
|
57
|
-
video_stream_hls_url
|
|
58
|
-
video_stream_dash_url
|
|
59
|
-
image_thumbnail_url
|
|
60
|
-
video_duration
|
|
53
|
+
title: string | null;
|
|
54
|
+
alternate_text: string | null;
|
|
55
|
+
sort_order: number;
|
|
56
|
+
video_preview_url: string;
|
|
57
|
+
video_stream_hls_url: string;
|
|
58
|
+
video_stream_dash_url: string;
|
|
59
|
+
image_thumbnail_url: string;
|
|
60
|
+
video_duration: number;
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
/** @internal */
|
|
@@ -66,14 +66,14 @@ export const ProductVideo$outboundSchema: z.ZodType<
|
|
|
66
66
|
z.ZodTypeDef,
|
|
67
67
|
ProductVideo
|
|
68
68
|
> = z.object({
|
|
69
|
-
title: z.
|
|
70
|
-
alternateText: z.
|
|
71
|
-
sortOrder: z.number().int()
|
|
72
|
-
videoPreviewUrl: z.string()
|
|
73
|
-
videoStreamHlsUrl: z.string()
|
|
74
|
-
videoStreamDashUrl: z.string()
|
|
75
|
-
imageThumbnailUrl: z.string()
|
|
76
|
-
videoDuration: z.number().int()
|
|
69
|
+
title: z.nullable(z.string()),
|
|
70
|
+
alternateText: z.nullable(z.string()),
|
|
71
|
+
sortOrder: z.number().int(),
|
|
72
|
+
videoPreviewUrl: z.string(),
|
|
73
|
+
videoStreamHlsUrl: z.string(),
|
|
74
|
+
videoStreamDashUrl: z.string(),
|
|
75
|
+
imageThumbnailUrl: z.string(),
|
|
76
|
+
videoDuration: z.number().int(),
|
|
77
77
|
}).transform((v) => {
|
|
78
78
|
return remap$(v, {
|
|
79
79
|
alternateText: "alternate_text",
|
|
@@ -8,36 +8,36 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type Seo = {
|
|
11
|
-
slug
|
|
12
|
-
title
|
|
13
|
-
description
|
|
14
|
-
keywords
|
|
11
|
+
slug: string | null;
|
|
12
|
+
title: string | null;
|
|
13
|
+
description: string | null;
|
|
14
|
+
keywords: Array<string> | null;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
/** @internal */
|
|
18
18
|
export const Seo$inboundSchema: z.ZodType<Seo, z.ZodTypeDef, unknown> = z
|
|
19
19
|
.object({
|
|
20
|
-
slug: z.
|
|
21
|
-
title: z.
|
|
22
|
-
description: z.
|
|
23
|
-
keywords: z.array(z.string())
|
|
20
|
+
slug: z.nullable(z.string()),
|
|
21
|
+
title: z.nullable(z.string()),
|
|
22
|
+
description: z.nullable(z.string()),
|
|
23
|
+
keywords: z.nullable(z.array(z.string())),
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
/** @internal */
|
|
27
27
|
export type Seo$Outbound = {
|
|
28
|
-
slug
|
|
29
|
-
title
|
|
30
|
-
description
|
|
31
|
-
keywords
|
|
28
|
+
slug: string | null;
|
|
29
|
+
title: string | null;
|
|
30
|
+
description: string | null;
|
|
31
|
+
keywords: Array<string> | null;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
/** @internal */
|
|
35
35
|
export const Seo$outboundSchema: z.ZodType<Seo$Outbound, z.ZodTypeDef, Seo> = z
|
|
36
36
|
.object({
|
|
37
|
-
slug: z.
|
|
38
|
-
title: z.
|
|
39
|
-
description: z.
|
|
40
|
-
keywords: z.array(z.string())
|
|
37
|
+
slug: z.nullable(z.string()),
|
|
38
|
+
title: z.nullable(z.string()),
|
|
39
|
+
description: z.nullable(z.string()),
|
|
40
|
+
keywords: z.nullable(z.array(z.string())),
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
/**
|