ce-storefront 0.3.17 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +2 -2
- package/README.md +108 -129
- package/docs/sdks/addresses/README.md +363 -4
- package/docs/sdks/auth/README.md +0 -72
- package/docs/sdks/{cestorefrontaddresses → cestorefrontreviews}/README.md +34 -123
- package/docs/sdks/cestorefrontuser/README.md +735 -6
- package/docs/sdks/customers/README.md +18 -192
- package/docs/sdks/juspay/README.md +15 -15
- package/docs/sdks/loyalty/README.md +81 -0
- package/docs/sdks/notificationpreferences/README.md +162 -4
- package/docs/sdks/orders/README.md +5 -163
- package/docs/sdks/payments/README.md +95 -15
- package/docs/sdks/products/README.md +94 -15
- package/docs/sdks/{cards → refunds}/README.md +11 -12
- package/docs/sdks/reviews/README.md +13 -17
- package/docs/sdks/{catalogproducts → shipments}/README.md +12 -12
- package/docs/sdks/{shipment → shipping}/README.md +5 -5
- package/docs/sdks/{catalogskus → skus}/README.md +3 -3
- package/docs/sdks/user/README.md +0 -425
- package/docs/sdks/utils/README.md +72 -0
- package/docs/sdks/wishlist/README.md +5 -5
- package/esm/funcs/{authUsersAddProfileImage.d.ts → authUserAddProfileImage.d.ts} +2 -2
- package/esm/funcs/authUserAddProfileImage.d.ts.map +1 -0
- package/esm/funcs/{authUsersAddProfileImage.js → authUserAddProfileImage.js} +2 -2
- package/esm/funcs/authUserAddProfileImage.js.map +1 -0
- package/esm/funcs/{authUserDeactivate.d.ts → authUserDeactivateAccount.d.ts} +2 -2
- package/esm/funcs/authUserDeactivateAccount.d.ts.map +1 -0
- package/esm/funcs/{authUserDeactivate.js → authUserDeactivateAccount.js} +2 -2
- package/esm/funcs/authUserDeactivateAccount.js.map +1 -0
- package/esm/funcs/{userDeleteProfileImage.d.ts → authUserDeleteProfileImage.d.ts} +2 -2
- package/esm/funcs/authUserDeleteProfileImage.d.ts.map +1 -0
- package/esm/funcs/{userDeleteProfileImage.js → authUserDeleteProfileImage.js} +2 -2
- package/esm/funcs/authUserDeleteProfileImage.js.map +1 -0
- package/esm/funcs/{usersGet.d.ts → authUserGet.d.ts} +2 -2
- package/esm/funcs/authUserGet.d.ts.map +1 -0
- package/esm/funcs/{usersGet.js → authUserGet.js} +2 -2
- package/esm/funcs/authUserGet.js.map +1 -0
- package/esm/funcs/{usersGetProfileImage.d.ts → authUserGetProfileImage.d.ts} +2 -2
- package/esm/funcs/authUserGetProfileImage.d.ts.map +1 -0
- package/esm/funcs/{usersGetProfileImage.js → authUserGetProfileImage.js} +2 -2
- package/esm/funcs/authUserGetProfileImage.js.map +1 -0
- package/esm/funcs/{authLogout.d.ts → authUserLogout.d.ts} +2 -2
- package/esm/funcs/authUserLogout.d.ts.map +1 -0
- package/esm/funcs/{authLogout.js → authUserLogout.js} +2 -2
- package/esm/funcs/authUserLogout.js.map +1 -0
- package/esm/funcs/{userResetPassword.d.ts → authUserResetPassword.d.ts} +2 -2
- package/esm/funcs/authUserResetPassword.d.ts.map +1 -0
- package/esm/funcs/{userResetPassword.js → authUserResetPassword.js} +2 -2
- package/esm/funcs/authUserResetPassword.js.map +1 -0
- package/esm/funcs/{userUpdate.d.ts → authUserUpdate.d.ts} +2 -2
- package/esm/funcs/authUserUpdate.d.ts.map +1 -0
- package/esm/funcs/{userUpdate.js → authUserUpdate.js} +2 -2
- package/esm/funcs/authUserUpdate.js.map +1 -0
- package/esm/funcs/{userUpdateProfileImage.d.ts → authUserUpdateProfileImage.d.ts} +2 -2
- package/esm/funcs/authUserUpdateProfileImage.d.ts.map +1 -0
- package/esm/funcs/{userUpdateProfileImage.js → authUserUpdateProfileImage.js} +2 -2
- package/esm/funcs/authUserUpdateProfileImage.js.map +1 -0
- package/esm/funcs/{addressesGet.d.ts → catalogProductsGetCrossSells.d.ts} +4 -4
- package/esm/funcs/catalogProductsGetCrossSells.d.ts.map +1 -0
- package/esm/funcs/{productsListCrossSells.js → catalogProductsGetCrossSells.js} +2 -2
- package/esm/funcs/catalogProductsGetCrossSells.js.map +1 -0
- package/esm/funcs/{productsGetSimilar.d.ts → catalogProductsGetSimilar.d.ts} +2 -2
- package/esm/funcs/catalogProductsGetSimilar.d.ts.map +1 -0
- package/esm/funcs/{productsGetSimilar.js → catalogProductsGetSimilar.js} +2 -2
- package/esm/funcs/catalogProductsGetSimilar.js.map +1 -0
- package/esm/funcs/{productsGetUpsells.d.ts → catalogProductsGetUpsells.d.ts} +2 -2
- package/esm/funcs/catalogProductsGetUpsells.d.ts.map +1 -0
- package/esm/funcs/{productsGetUpsells.js → catalogProductsGetUpsells.js} +2 -2
- package/esm/funcs/catalogProductsGetUpsells.js.map +1 -0
- package/esm/funcs/{productsList.d.ts → catalogProductsList.d.ts} +2 -2
- package/esm/funcs/{customersAddAddress.d.ts.map → catalogProductsList.d.ts.map} +1 -1
- package/esm/funcs/{productsList.js → catalogProductsList.js} +2 -2
- package/esm/funcs/catalogProductsList.js.map +1 -0
- package/esm/funcs/{catalogProductReviewsCreate.d.ts → catalogProductsReviewsCreate.d.ts} +2 -2
- package/esm/funcs/catalogProductsReviewsCreate.d.ts.map +1 -0
- package/esm/funcs/{catalogProductReviewsCreate.js → catalogProductsReviewsCreate.js} +2 -2
- package/esm/funcs/catalogProductsReviewsCreate.js.map +1 -0
- package/esm/funcs/{customersUpdate.d.ts → customersAddressesAdd.d.ts} +4 -4
- package/esm/funcs/customersAddressesAdd.d.ts.map +1 -0
- package/esm/funcs/{customersAddAddress.js → customersAddressesAdd.js} +2 -2
- package/esm/funcs/customersAddressesAdd.js.map +1 -0
- package/esm/funcs/customersAddressesGet.d.ts +16 -0
- package/esm/funcs/customersAddressesGet.d.ts.map +1 -0
- package/esm/funcs/{addressesGet.js → customersAddressesGet.js} +2 -2
- package/esm/funcs/customersAddressesGet.js.map +1 -0
- package/esm/funcs/{customersGet.d.ts → customersGetCustomersId.d.ts} +2 -2
- package/esm/funcs/customersGetCustomersId.d.ts.map +1 -0
- package/esm/funcs/{customersGet.js → customersGetCustomersId.js} +2 -2
- package/esm/funcs/customersGetCustomersId.js.map +1 -0
- package/esm/funcs/{loyaltyPointsListActivities.d.ts → customersLoyaltyListActivities.d.ts} +2 -2
- package/esm/funcs/customersLoyaltyListActivities.d.ts.map +1 -0
- package/esm/funcs/{loyaltyPointsListActivities.js → customersLoyaltyListActivities.js} +2 -2
- package/esm/funcs/customersLoyaltyListActivities.js.map +1 -0
- package/esm/funcs/{customersCreate.d.ts → customersPostCustomers.d.ts} +2 -2
- package/esm/funcs/customersPostCustomers.d.ts.map +1 -0
- package/esm/funcs/{customersCreate.js → customersPostCustomers.js} +2 -2
- package/esm/funcs/customersPostCustomers.js.map +1 -0
- package/esm/funcs/customersPutCustomersId.d.ts +16 -0
- package/esm/funcs/customersPutCustomersId.d.ts.map +1 -0
- package/esm/funcs/{customersUpdate.js → customersPutCustomersId.js} +2 -2
- package/esm/funcs/customersPutCustomersId.js.map +1 -0
- package/esm/funcs/{ordersGetPaymentStatus.d.ts → customersReviewsList.d.ts} +4 -4
- package/esm/funcs/{usersGetProfileImage.d.ts.map → customersReviewsList.d.ts.map} +1 -1
- package/esm/funcs/{customersGetReviews.js → customersReviewsList.js} +2 -2
- package/esm/funcs/{usersGetProfileImage.js.map → customersReviewsList.js.map} +1 -1
- package/esm/funcs/{juspayGetCustomer.d.ts → juspayGetPaymentsJuspayCustomer.d.ts} +2 -2
- package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +1 -0
- package/esm/funcs/{juspayGetCustomer.js → juspayGetPaymentsJuspayCustomer.js} +2 -2
- package/esm/funcs/{juspayCreateOrder.js.map → juspayGetPaymentsJuspayCustomer.js.map} +1 -1
- package/esm/funcs/{wishlistRemoveItem.d.ts → juspayPostPaymentsJuspayCreateCustomer.d.ts} +5 -4
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +1 -0
- package/esm/funcs/{juspayCreateCustomer.js → juspayPostPaymentsJuspayCreateCustomer.js} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +1 -0
- package/esm/funcs/{juspayCreateOrder.d.ts → juspayPostPaymentsJuspayCreateOrder.d.ts} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +1 -0
- package/esm/funcs/{juspayCreateOrder.js → juspayPostPaymentsJuspayCreateOrder.js} +2 -2
- package/esm/funcs/{juspayGetCustomer.js.map → juspayPostPaymentsJuspayCreateOrder.js.map} +1 -1
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts +15 -0
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +1 -0
- package/esm/funcs/{ordersGetPaymentStatus.js → ordersGetOrdersIdPaymentStatus.js} +2 -2
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +1 -0
- package/esm/funcs/{ordersGetRefunds.d.ts → ordersRefundsList.d.ts} +2 -2
- package/esm/funcs/{userResetPassword.d.ts.map → ordersRefundsList.d.ts.map} +1 -1
- package/esm/funcs/{ordersGetRefunds.js → ordersRefundsList.js} +2 -2
- package/esm/funcs/ordersRefundsList.js.map +1 -0
- package/esm/funcs/{ordersGetShipments.d.ts → ordersShipmentsList.d.ts} +2 -2
- package/esm/funcs/ordersShipmentsList.d.ts.map +1 -0
- package/esm/funcs/{ordersGetShipments.js → ordersShipmentsList.js} +2 -2
- package/esm/funcs/ordersShipmentsList.js.map +1 -0
- package/esm/funcs/{paymentsListMethods.d.ts → paymentsGetMethods.d.ts} +2 -2
- package/esm/funcs/{authUserDeactivate.d.ts.map → paymentsGetMethods.d.ts.map} +1 -1
- package/esm/funcs/{paymentsListMethods.js → paymentsGetMethods.js} +2 -2
- package/esm/funcs/paymentsGetMethods.js.map +1 -0
- package/esm/funcs/{paymentsCardsList.d.ts → paymentsGetPaymentsCards.d.ts} +2 -2
- package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +1 -0
- package/esm/funcs/{paymentsCardsList.js → paymentsGetPaymentsCards.js} +2 -2
- package/esm/funcs/paymentsGetPaymentsCards.js.map +1 -0
- package/esm/funcs/{paymentsVerifyVpa.d.ts → paymentsGetPaymentsVerifyVpa.d.ts} +2 -2
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +1 -0
- package/esm/funcs/{paymentsVerifyVpa.js → paymentsGetPaymentsVerifyVpa.js} +2 -2
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +1 -0
- package/esm/funcs/{paymentsAddCard.d.ts → paymentsPostPaymentsCards.d.ts} +2 -2
- package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +1 -0
- package/esm/funcs/{paymentsAddCard.js → paymentsPostPaymentsCards.js} +2 -2
- package/esm/funcs/paymentsPostPaymentsCards.js.map +1 -0
- package/esm/funcs/{shipmentCheckPincodeServiceability.d.ts → shippingCheckPincodeServiceability.d.ts} +2 -2
- package/esm/funcs/{shipmentCheckPincodeServiceability.d.ts.map → shippingCheckPincodeServiceability.d.ts.map} +1 -1
- package/esm/funcs/{shipmentCheckPincodeServiceability.js → shippingCheckPincodeServiceability.js} +2 -2
- package/esm/funcs/{shipmentCheckPincodeServiceability.js.map → shippingCheckPincodeServiceability.js.map} +1 -1
- package/esm/funcs/{usersCreateNotificationPreferences.d.ts → userNotificationPreferencesCreate.d.ts} +2 -2
- package/esm/funcs/userNotificationPreferencesCreate.d.ts.map +1 -0
- package/esm/funcs/{usersCreateNotificationPreferences.js → userNotificationPreferencesCreate.js} +2 -2
- package/esm/funcs/userNotificationPreferencesCreate.js.map +1 -0
- package/esm/funcs/{authUserNotificationPreferencesGet.d.ts → userNotificationPreferencesGet.d.ts} +2 -2
- package/esm/funcs/userNotificationPreferencesGet.d.ts.map +1 -0
- package/esm/funcs/{authUserNotificationPreferencesGet.js → userNotificationPreferencesGet.js} +2 -2
- package/esm/funcs/userNotificationPreferencesGet.js.map +1 -0
- package/esm/funcs/{userUpdateNotificationPreferences.d.ts → userNotificationPreferencesUpdate.d.ts} +2 -2
- package/esm/funcs/{userUpdateNotificationPreferences.d.ts.map → userNotificationPreferencesUpdate.d.ts.map} +1 -1
- package/esm/funcs/{userUpdateNotificationPreferences.js → userNotificationPreferencesUpdate.js} +2 -2
- package/esm/funcs/{userUpdateNotificationPreferences.js.map → userNotificationPreferencesUpdate.js.map} +1 -1
- package/esm/funcs/{utilsCountriesGet.d.ts → utilsGetCountries.d.ts} +2 -2
- package/esm/funcs/{utilsCountriesGet.d.ts.map → utilsGetCountries.d.ts.map} +1 -1
- package/esm/funcs/{utilsCountriesGet.js → utilsGetCountries.js} +2 -2
- package/esm/funcs/{utilsCountriesGet.js.map → utilsGetCountries.js.map} +1 -1
- package/esm/funcs/{customersAddAddress.d.ts → wishlistDelete.d.ts} +4 -4
- package/esm/funcs/wishlistDelete.d.ts.map +1 -0
- package/esm/funcs/{wishlistRemoveItem.js → wishlistDelete.js} +2 -2
- package/esm/funcs/wishlistDelete.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/lib/config.js.map +1 -1
- package/esm/models/components/bundleproduct.d.ts +11 -11
- package/esm/models/components/bundleproduct.d.ts.map +1 -1
- package/esm/models/components/bundleproduct.js +22 -22
- package/esm/models/components/bundleproduct.js.map +1 -1
- package/esm/models/components/bundleproductdetail.d.ts +11 -11
- package/esm/models/components/bundleproductdetail.d.ts.map +1 -1
- package/esm/models/components/bundleproductdetail.js +22 -22
- package/esm/models/components/bundleproductdetail.js.map +1 -1
- package/esm/models/components/cartitem.d.ts +4 -4
- package/esm/models/components/cartitem.d.ts.map +1 -1
- package/esm/models/components/cartitem.js +8 -8
- package/esm/models/components/cartitem.js.map +1 -1
- package/esm/models/components/productimage.d.ts +2 -0
- package/esm/models/components/productimage.d.ts.map +1 -1
- package/esm/models/components/productimage.js +2 -0
- package/esm/models/components/productimage.js.map +1 -1
- package/esm/models/components/singleproduct.d.ts +6 -6
- package/esm/models/components/singleproduct.d.ts.map +1 -1
- package/esm/models/components/singleproduct.js +12 -12
- package/esm/models/components/singleproduct.js.map +1 -1
- package/esm/models/components/singleproductdetail.d.ts +6 -6
- package/esm/models/components/singleproductdetail.d.ts.map +1 -1
- package/esm/models/components/singleproductdetail.js +12 -12
- package/esm/models/components/singleproductdetail.js.map +1 -1
- package/esm/models/components/sku.d.ts +5 -5
- package/esm/models/components/sku.d.ts.map +1 -1
- package/esm/models/components/sku.js +10 -10
- package/esm/models/components/sku.js.map +1 -1
- package/esm/models/components/variant.d.ts +3 -3
- package/esm/models/components/variant.d.ts.map +1 -1
- package/esm/models/components/variant.js +6 -6
- package/esm/models/components/variant.js.map +1 -1
- package/esm/models/components/variantdetail.d.ts +3 -3
- package/esm/models/components/variantdetail.d.ts.map +1 -1
- package/esm/models/components/variantdetail.js +6 -6
- package/esm/models/components/variantdetail.js.map +1 -1
- package/esm/sdk/addresses.d.ts +28 -0
- package/esm/sdk/addresses.d.ts.map +1 -1
- package/esm/sdk/addresses.js +42 -2
- package/esm/sdk/addresses.js.map +1 -1
- package/esm/sdk/auth.d.ts +0 -10
- package/esm/sdk/auth.d.ts.map +1 -1
- package/esm/sdk/auth.js +0 -14
- package/esm/sdk/auth.js.map +1 -1
- package/esm/sdk/catalog.d.ts +5 -2
- package/esm/sdk/catalog.d.ts.map +1 -1
- package/esm/sdk/catalog.js +6 -2
- package/esm/sdk/catalog.js.map +1 -1
- package/esm/sdk/cestorefrontreviews.d.ts +19 -0
- package/esm/sdk/cestorefrontreviews.d.ts.map +1 -0
- package/esm/sdk/cestorefrontreviews.js +28 -0
- package/esm/sdk/cestorefrontreviews.js.map +1 -0
- package/esm/sdk/cestorefrontuser.d.ts +64 -4
- package/esm/sdk/cestorefrontuser.d.ts.map +1 -1
- package/esm/sdk/cestorefrontuser.js +92 -6
- package/esm/sdk/cestorefrontuser.js.map +1 -1
- package/esm/sdk/customers.d.ts +8 -19
- package/esm/sdk/customers.d.ts.map +1 -1
- package/esm/sdk/customers.js +15 -31
- 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 +7 -0
- package/esm/sdk/loyalty.d.ts.map +1 -1
- package/esm/sdk/loyalty.js +10 -0
- package/esm/sdk/loyalty.js.map +1 -1
- package/esm/sdk/notificationpreferences.d.ts +14 -0
- package/esm/sdk/notificationpreferences.d.ts.map +1 -1
- package/esm/sdk/notificationpreferences.js +22 -2
- package/esm/sdk/notificationpreferences.js.map +1 -1
- package/esm/sdk/orders.d.ts +7 -15
- package/esm/sdk/orders.d.ts.map +1 -1
- package/esm/sdk/orders.js +11 -23
- package/esm/sdk/orders.js.map +1 -1
- package/esm/sdk/payments.d.ts +10 -6
- package/esm/sdk/payments.d.ts.map +1 -1
- package/esm/sdk/payments.js +19 -13
- package/esm/sdk/payments.js.map +1 -1
- package/esm/sdk/products.d.ts +14 -1
- package/esm/sdk/products.d.ts.map +1 -1
- package/esm/sdk/products.js +27 -9
- package/esm/sdk/products.js.map +1 -1
- package/esm/sdk/refunds.d.ts +12 -0
- package/esm/sdk/refunds.d.ts.map +1 -0
- package/esm/sdk/refunds.js +18 -0
- package/esm/sdk/refunds.js.map +1 -0
- 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 +3 -27
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +3 -35
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/shipments.d.ts +12 -0
- package/esm/sdk/shipments.d.ts.map +1 -0
- package/esm/sdk/shipments.js +18 -0
- package/esm/sdk/shipments.js.map +1 -0
- package/esm/sdk/{shipment.d.ts → shipping.d.ts} +2 -2
- package/esm/sdk/{shipment.d.ts.map → shipping.d.ts.map} +1 -1
- package/esm/sdk/{shipment.js → shipping.js} +4 -4
- package/esm/sdk/{shipment.js.map → shipping.js.map} +1 -1
- package/esm/sdk/{catalogskus.d.ts → skus.d.ts} +2 -2
- package/esm/sdk/skus.d.ts.map +1 -0
- package/esm/sdk/{catalogskus.js → skus.js} +2 -2
- package/esm/sdk/skus.js.map +1 -0
- package/esm/sdk/user.d.ts +4 -37
- package/esm/sdk/user.d.ts.map +1 -1
- package/esm/sdk/user.js +3 -50
- package/esm/sdk/user.js.map +1 -1
- package/esm/sdk/utils.d.ts +7 -3
- package/esm/sdk/utils.d.ts.map +1 -1
- package/esm/sdk/utils.js +9 -3
- 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/{authUsersAddProfileImage.ts → authUserAddProfileImage.ts} +1 -1
- package/src/funcs/{authUserDeactivate.ts → authUserDeactivateAccount.ts} +1 -1
- package/src/funcs/{userDeleteProfileImage.ts → authUserDeleteProfileImage.ts} +1 -1
- package/src/funcs/{usersGet.ts → authUserGet.ts} +1 -1
- package/src/funcs/{usersGetProfileImage.ts → authUserGetProfileImage.ts} +1 -1
- package/src/funcs/{authLogout.ts → authUserLogout.ts} +1 -1
- package/src/funcs/{userResetPassword.ts → authUserResetPassword.ts} +1 -1
- package/src/funcs/{userUpdate.ts → authUserUpdate.ts} +1 -1
- package/src/funcs/{userUpdateProfileImage.ts → authUserUpdateProfileImage.ts} +1 -1
- package/src/funcs/{productsListCrossSells.ts → catalogProductsGetCrossSells.ts} +1 -1
- package/src/funcs/{productsGetSimilar.ts → catalogProductsGetSimilar.ts} +1 -1
- package/src/funcs/{productsGetUpsells.ts → catalogProductsGetUpsells.ts} +1 -1
- package/src/funcs/{productsList.ts → catalogProductsList.ts} +1 -1
- package/src/funcs/{catalogProductReviewsCreate.ts → catalogProductsReviewsCreate.ts} +1 -1
- package/src/funcs/{customersAddAddress.ts → customersAddressesAdd.ts} +1 -1
- package/src/funcs/{addressesGet.ts → customersAddressesGet.ts} +1 -1
- package/src/funcs/{customersGet.ts → customersGetCustomersId.ts} +1 -1
- package/src/funcs/{loyaltyPointsListActivities.ts → customersLoyaltyListActivities.ts} +1 -1
- package/src/funcs/{customersCreate.ts → customersPostCustomers.ts} +1 -1
- package/src/funcs/{customersUpdate.ts → customersPutCustomersId.ts} +1 -1
- package/src/funcs/{customersGetReviews.ts → customersReviewsList.ts} +1 -1
- package/src/funcs/{juspayGetCustomer.ts → juspayGetPaymentsJuspayCustomer.ts} +1 -1
- package/src/funcs/{juspayCreateCustomer.ts → juspayPostPaymentsJuspayCreateCustomer.ts} +1 -1
- package/src/funcs/{juspayCreateOrder.ts → juspayPostPaymentsJuspayCreateOrder.ts} +1 -1
- package/src/funcs/{ordersGetPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts} +1 -1
- package/src/funcs/{ordersGetRefunds.ts → ordersRefundsList.ts} +1 -1
- package/src/funcs/{ordersGetShipments.ts → ordersShipmentsList.ts} +1 -1
- package/src/funcs/{paymentsListMethods.ts → paymentsGetMethods.ts} +1 -1
- package/src/funcs/{paymentsCardsList.ts → paymentsGetPaymentsCards.ts} +1 -1
- package/src/funcs/{paymentsVerifyVpa.ts → paymentsGetPaymentsVerifyVpa.ts} +1 -1
- package/src/funcs/{paymentsAddCard.ts → paymentsPostPaymentsCards.ts} +1 -1
- package/src/funcs/{shipmentCheckPincodeServiceability.ts → shippingCheckPincodeServiceability.ts} +1 -1
- package/src/funcs/{usersCreateNotificationPreferences.ts → userNotificationPreferencesCreate.ts} +1 -1
- package/src/funcs/{authUserNotificationPreferencesGet.ts → userNotificationPreferencesGet.ts} +1 -1
- package/src/funcs/{userUpdateNotificationPreferences.ts → userNotificationPreferencesUpdate.ts} +1 -1
- package/src/funcs/{utilsCountriesGet.ts → utilsGetCountries.ts} +1 -1
- package/src/funcs/{wishlistRemoveItem.ts → wishlistDelete.ts} +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/bundleproduct.ts +33 -33
- package/src/models/components/bundleproductdetail.ts +33 -33
- package/src/models/components/cartitem.ts +12 -12
- package/src/models/components/productimage.ts +4 -0
- package/src/models/components/singleproduct.ts +18 -18
- package/src/models/components/singleproductdetail.ts +18 -18
- package/src/models/components/sku.ts +15 -15
- package/src/models/components/variant.ts +9 -9
- package/src/models/components/variantdetail.ts +9 -9
- package/src/sdk/addresses.ts +74 -2
- package/src/sdk/auth.ts +0 -22
- package/src/sdk/catalog.ts +10 -4
- package/src/sdk/cestorefrontreviews.ts +45 -0
- package/src/sdk/cestorefrontuser.ts +160 -8
- package/src/sdk/customers.ts +19 -49
- package/src/sdk/juspay.ts +9 -9
- package/src/sdk/loyalty.ts +18 -0
- package/src/sdk/notificationpreferences.ts +38 -2
- package/src/sdk/orders.ts +15 -39
- package/src/sdk/payments.ts +27 -15
- package/src/sdk/products.ts +39 -9
- package/src/sdk/{cards.ts → refunds.ts} +7 -7
- package/src/sdk/reviews.ts +6 -6
- package/src/sdk/sdk.ts +4 -54
- package/src/sdk/shipments.ts +27 -0
- package/src/sdk/{shipment.ts → shipping.ts} +3 -3
- package/src/sdk/{catalogskus.ts → skus.ts} +1 -1
- package/src/sdk/user.ts +6 -90
- package/src/sdk/utils.ts +14 -4
- package/src/sdk/wishlist.ts +3 -3
- package/docs/sdks/authuser/README.md +0 -80
- package/docs/sdks/catalogproductreviews/README.md +0 -97
- package/docs/sdks/cestorefrontproducts/README.md +0 -6
- package/docs/sdks/cestorefrontusers/README.md +0 -92
- package/docs/sdks/countries/README.md +0 -79
- package/docs/sdks/loyaltypoints/README.md +0 -88
- package/docs/sdks/users/README.md +0 -240
- package/esm/funcs/addressesGet.d.ts.map +0 -1
- package/esm/funcs/addressesGet.js.map +0 -1
- package/esm/funcs/authLogout.d.ts.map +0 -1
- package/esm/funcs/authLogout.js.map +0 -1
- package/esm/funcs/authUserDeactivate.js.map +0 -1
- package/esm/funcs/authUserNotificationPreferencesGet.d.ts.map +0 -1
- package/esm/funcs/authUserNotificationPreferencesGet.js.map +0 -1
- package/esm/funcs/authUsersAddProfileImage.d.ts.map +0 -1
- package/esm/funcs/authUsersAddProfileImage.js.map +0 -1
- package/esm/funcs/catalogProductReviewsCreate.d.ts.map +0 -1
- package/esm/funcs/catalogProductReviewsCreate.js.map +0 -1
- package/esm/funcs/customersAddAddress.js.map +0 -1
- package/esm/funcs/customersCreate.d.ts.map +0 -1
- package/esm/funcs/customersCreate.js.map +0 -1
- package/esm/funcs/customersGet.d.ts.map +0 -1
- package/esm/funcs/customersGet.js.map +0 -1
- package/esm/funcs/customersGetReviews.d.ts +0 -15
- package/esm/funcs/customersGetReviews.d.ts.map +0 -1
- package/esm/funcs/customersGetReviews.js.map +0 -1
- package/esm/funcs/customersUpdate.d.ts.map +0 -1
- package/esm/funcs/customersUpdate.js.map +0 -1
- package/esm/funcs/juspayCreateCustomer.d.ts +0 -17
- package/esm/funcs/juspayCreateCustomer.d.ts.map +0 -1
- package/esm/funcs/juspayCreateCustomer.js.map +0 -1
- package/esm/funcs/juspayCreateOrder.d.ts.map +0 -1
- package/esm/funcs/juspayGetCustomer.d.ts.map +0 -1
- package/esm/funcs/loyaltyPointsListActivities.d.ts.map +0 -1
- package/esm/funcs/loyaltyPointsListActivities.js.map +0 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts.map +0 -1
- package/esm/funcs/ordersGetPaymentStatus.js.map +0 -1
- package/esm/funcs/ordersGetRefunds.d.ts.map +0 -1
- package/esm/funcs/ordersGetRefunds.js.map +0 -1
- package/esm/funcs/ordersGetShipments.d.ts.map +0 -1
- package/esm/funcs/ordersGetShipments.js.map +0 -1
- package/esm/funcs/paymentsAddCard.d.ts.map +0 -1
- package/esm/funcs/paymentsAddCard.js.map +0 -1
- package/esm/funcs/paymentsCardsList.d.ts.map +0 -1
- package/esm/funcs/paymentsCardsList.js.map +0 -1
- package/esm/funcs/paymentsListMethods.d.ts.map +0 -1
- package/esm/funcs/paymentsListMethods.js.map +0 -1
- package/esm/funcs/paymentsVerifyVpa.d.ts.map +0 -1
- package/esm/funcs/paymentsVerifyVpa.js.map +0 -1
- package/esm/funcs/productsGetSimilar.d.ts.map +0 -1
- package/esm/funcs/productsGetSimilar.js.map +0 -1
- package/esm/funcs/productsGetUpsells.d.ts.map +0 -1
- package/esm/funcs/productsGetUpsells.js.map +0 -1
- package/esm/funcs/productsList.d.ts.map +0 -1
- package/esm/funcs/productsList.js.map +0 -1
- package/esm/funcs/productsListCrossSells.d.ts +0 -16
- package/esm/funcs/productsListCrossSells.d.ts.map +0 -1
- package/esm/funcs/productsListCrossSells.js.map +0 -1
- package/esm/funcs/userDeleteProfileImage.d.ts.map +0 -1
- package/esm/funcs/userDeleteProfileImage.js.map +0 -1
- package/esm/funcs/userResetPassword.js.map +0 -1
- package/esm/funcs/userUpdate.d.ts.map +0 -1
- package/esm/funcs/userUpdate.js.map +0 -1
- package/esm/funcs/userUpdateProfileImage.d.ts.map +0 -1
- package/esm/funcs/userUpdateProfileImage.js.map +0 -1
- package/esm/funcs/usersCreateNotificationPreferences.d.ts.map +0 -1
- package/esm/funcs/usersCreateNotificationPreferences.js.map +0 -1
- package/esm/funcs/usersGet.d.ts.map +0 -1
- package/esm/funcs/usersGet.js.map +0 -1
- package/esm/funcs/wishlistRemoveItem.d.ts.map +0 -1
- package/esm/funcs/wishlistRemoveItem.js.map +0 -1
- package/esm/sdk/authuser.d.ts +0 -12
- package/esm/sdk/authuser.d.ts.map +0 -1
- package/esm/sdk/authuser.js +0 -18
- package/esm/sdk/authuser.js.map +0 -1
- package/esm/sdk/cards.d.ts +0 -12
- package/esm/sdk/cards.d.ts.map +0 -1
- package/esm/sdk/cards.js +0 -18
- package/esm/sdk/cards.js.map +0 -1
- package/esm/sdk/catalogproductreviews.d.ts +0 -12
- package/esm/sdk/catalogproductreviews.d.ts.map +0 -1
- package/esm/sdk/catalogproductreviews.js +0 -18
- package/esm/sdk/catalogproductreviews.js.map +0 -1
- package/esm/sdk/catalogproducts.d.ts +0 -12
- package/esm/sdk/catalogproducts.d.ts.map +0 -1
- package/esm/sdk/catalogproducts.js +0 -18
- package/esm/sdk/catalogproducts.js.map +0 -1
- package/esm/sdk/catalogskus.d.ts.map +0 -1
- package/esm/sdk/catalogskus.js.map +0 -1
- package/esm/sdk/cestorefrontaddresses.d.ts +0 -26
- package/esm/sdk/cestorefrontaddresses.d.ts.map +0 -1
- package/esm/sdk/cestorefrontaddresses.js +0 -38
- package/esm/sdk/cestorefrontaddresses.js.map +0 -1
- package/esm/sdk/cestorefrontproducts.d.ts +0 -10
- package/esm/sdk/cestorefrontproducts.d.ts.map +0 -1
- package/esm/sdk/cestorefrontproducts.js +0 -15
- package/esm/sdk/cestorefrontproducts.js.map +0 -1
- package/esm/sdk/cestorefrontusers.d.ts +0 -12
- package/esm/sdk/cestorefrontusers.d.ts.map +0 -1
- package/esm/sdk/cestorefrontusers.js +0 -18
- package/esm/sdk/cestorefrontusers.js.map +0 -1
- package/esm/sdk/countries.d.ts +0 -12
- package/esm/sdk/countries.d.ts.map +0 -1
- package/esm/sdk/countries.js +0 -18
- package/esm/sdk/countries.js.map +0 -1
- package/esm/sdk/loyaltypoints.d.ts +0 -12
- package/esm/sdk/loyaltypoints.d.ts.map +0 -1
- package/esm/sdk/loyaltypoints.js +0 -18
- package/esm/sdk/loyaltypoints.js.map +0 -1
- package/esm/sdk/users.d.ts +0 -26
- package/esm/sdk/users.d.ts.map +0 -1
- package/esm/sdk/users.js +0 -38
- package/esm/sdk/users.js.map +0 -1
- package/src/sdk/authuser.ts +0 -27
- package/src/sdk/catalogproductreviews.ts +0 -27
- package/src/sdk/catalogproducts.ts +0 -27
- package/src/sdk/cestorefrontaddresses.ts +0 -63
- package/src/sdk/cestorefrontproducts.ts +0 -19
- package/src/sdk/cestorefrontusers.ts +0 -27
- package/src/sdk/countries.ts +0 -25
- package/src/sdk/loyaltypoints.ts +0 -27
- package/src/sdk/users.ts +0 -63
|
@@ -1,11 +1,189 @@
|
|
|
1
1
|
# Addresses
|
|
2
|
-
(*addresses*)
|
|
2
|
+
(*customers.addresses*)
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
+
* [list](#list) - Retrieve all addresses
|
|
9
|
+
* [add](#add) - Add address
|
|
8
10
|
* [get](#get) - Retrieve particular address
|
|
11
|
+
* [update](#update) - Update particular address
|
|
12
|
+
* [delete](#delete) - Remove particular address
|
|
13
|
+
|
|
14
|
+
## list
|
|
15
|
+
|
|
16
|
+
Retrieve billing and shipping address of particular customer
|
|
17
|
+
|
|
18
|
+
### Example Usage
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { CeStorefront } from "ce-storefront";
|
|
22
|
+
|
|
23
|
+
const ceStorefront = new CeStorefront({
|
|
24
|
+
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
async function run() {
|
|
28
|
+
const result = await ceStorefront.customers.addresses.list({
|
|
29
|
+
userId: "<id>",
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
// Handle the result
|
|
33
|
+
console.log(result);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
run();
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Standalone function
|
|
40
|
+
|
|
41
|
+
The standalone function version of this method:
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
45
|
+
import { customersAddressesList } from "ce-storefront/funcs/customersAddressesList.js";
|
|
46
|
+
|
|
47
|
+
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
48
|
+
// You can create one instance of it to use across an application.
|
|
49
|
+
const ceStorefront = new CeStorefrontCore({
|
|
50
|
+
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
async function run() {
|
|
54
|
+
const res = await customersAddressesList(ceStorefront, {
|
|
55
|
+
userId: "<id>",
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
if (!res.ok) {
|
|
59
|
+
throw res.error;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const { value: result } = res;
|
|
63
|
+
|
|
64
|
+
// Handle the result
|
|
65
|
+
console.log(result);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
run();
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Parameters
|
|
72
|
+
|
|
73
|
+
| Parameter | Type | Required | Description |
|
|
74
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
75
|
+
| `request` | [operations.GetAddressRequest](../../models/operations/getaddressrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
76
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
77
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
78
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
79
|
+
|
|
80
|
+
### Response
|
|
81
|
+
|
|
82
|
+
**Promise\<[operations.GetAddressResponseBody](../../models/operations/getaddressresponsebody.md)\>**
|
|
83
|
+
|
|
84
|
+
### Errors
|
|
85
|
+
|
|
86
|
+
| Error Type | Status Code | Content Type |
|
|
87
|
+
| -------------- | -------------- | -------------- |
|
|
88
|
+
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
89
|
+
|
|
90
|
+
## add
|
|
91
|
+
|
|
92
|
+
Add new address
|
|
93
|
+
|
|
94
|
+
### Example Usage
|
|
95
|
+
|
|
96
|
+
```typescript
|
|
97
|
+
import { CeStorefront } from "ce-storefront";
|
|
98
|
+
|
|
99
|
+
const ceStorefront = new CeStorefront({
|
|
100
|
+
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
async function run() {
|
|
104
|
+
const result = await ceStorefront.customers.addresses.add({
|
|
105
|
+
userId: "<id>",
|
|
106
|
+
requestBody: {
|
|
107
|
+
firstName: "Katlynn",
|
|
108
|
+
phone: "895-711-7545 x3085",
|
|
109
|
+
email: "Daphney.Balistreri@gmail.com",
|
|
110
|
+
addressLine1: "1207 Railway Street",
|
|
111
|
+
pincode: "<value>",
|
|
112
|
+
city: "Lake Isaacside",
|
|
113
|
+
state: "Iowa",
|
|
114
|
+
country: "India",
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
// Handle the result
|
|
119
|
+
console.log(result);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
run();
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Standalone function
|
|
126
|
+
|
|
127
|
+
The standalone function version of this method:
|
|
128
|
+
|
|
129
|
+
```typescript
|
|
130
|
+
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
131
|
+
import { customersAddressesAdd } from "ce-storefront/funcs/customersAddressesAdd.js";
|
|
132
|
+
|
|
133
|
+
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
134
|
+
// You can create one instance of it to use across an application.
|
|
135
|
+
const ceStorefront = new CeStorefrontCore({
|
|
136
|
+
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
async function run() {
|
|
140
|
+
const res = await customersAddressesAdd(ceStorefront, {
|
|
141
|
+
userId: "<id>",
|
|
142
|
+
requestBody: {
|
|
143
|
+
firstName: "Katlynn",
|
|
144
|
+
phone: "895-711-7545 x3085",
|
|
145
|
+
email: "Daphney.Balistreri@gmail.com",
|
|
146
|
+
addressLine1: "1207 Railway Street",
|
|
147
|
+
pincode: "<value>",
|
|
148
|
+
city: "Lake Isaacside",
|
|
149
|
+
state: "Iowa",
|
|
150
|
+
country: "India",
|
|
151
|
+
},
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
if (!res.ok) {
|
|
155
|
+
throw res.error;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
const { value: result } = res;
|
|
159
|
+
|
|
160
|
+
// Handle the result
|
|
161
|
+
console.log(result);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
run();
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### Parameters
|
|
168
|
+
|
|
169
|
+
| Parameter | Type | Required | Description |
|
|
170
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
171
|
+
| `request` | [operations.PostAddressRequest](../../models/operations/postaddressrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
172
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
173
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
174
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
175
|
+
|
|
176
|
+
### Response
|
|
177
|
+
|
|
178
|
+
**Promise\<[operations.PostAddressResponseBody](../../models/operations/postaddressresponsebody.md)\>**
|
|
179
|
+
|
|
180
|
+
### Errors
|
|
181
|
+
|
|
182
|
+
| Error Type | Status Code | Content Type |
|
|
183
|
+
| ------------------- | ------------------- | ------------------- |
|
|
184
|
+
| errors.BadRequest | 400 | application/json |
|
|
185
|
+
| errors.Unauthorized | 401 | application/json |
|
|
186
|
+
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
9
187
|
|
|
10
188
|
## get
|
|
11
189
|
|
|
@@ -21,7 +199,7 @@ const ceStorefront = new CeStorefront({
|
|
|
21
199
|
});
|
|
22
200
|
|
|
23
201
|
async function run() {
|
|
24
|
-
const result = await ceStorefront.addresses.get({
|
|
202
|
+
const result = await ceStorefront.customers.addresses.get({
|
|
25
203
|
userId: "<id>",
|
|
26
204
|
addressId: "<id>",
|
|
27
205
|
});
|
|
@@ -39,7 +217,7 @@ The standalone function version of this method:
|
|
|
39
217
|
|
|
40
218
|
```typescript
|
|
41
219
|
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
42
|
-
import {
|
|
220
|
+
import { customersAddressesGet } from "ce-storefront/funcs/customersAddressesGet.js";
|
|
43
221
|
|
|
44
222
|
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
45
223
|
// You can create one instance of it to use across an application.
|
|
@@ -48,7 +226,7 @@ const ceStorefront = new CeStorefrontCore({
|
|
|
48
226
|
});
|
|
49
227
|
|
|
50
228
|
async function run() {
|
|
51
|
-
const res = await
|
|
229
|
+
const res = await customersAddressesGet(ceStorefront, {
|
|
52
230
|
userId: "<id>",
|
|
53
231
|
addressId: "<id>",
|
|
54
232
|
});
|
|
@@ -81,6 +259,187 @@ run();
|
|
|
81
259
|
|
|
82
260
|
### Errors
|
|
83
261
|
|
|
262
|
+
| Error Type | Status Code | Content Type |
|
|
263
|
+
| ------------------- | ------------------- | ------------------- |
|
|
264
|
+
| errors.Unauthorized | 401 | application/json |
|
|
265
|
+
| errors.NotFound | 404 | application/json |
|
|
266
|
+
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
267
|
+
|
|
268
|
+
## update
|
|
269
|
+
|
|
270
|
+
Update address
|
|
271
|
+
|
|
272
|
+
### Example Usage
|
|
273
|
+
|
|
274
|
+
```typescript
|
|
275
|
+
import { CeStorefront } from "ce-storefront";
|
|
276
|
+
|
|
277
|
+
const ceStorefront = new CeStorefront({
|
|
278
|
+
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
async function run() {
|
|
282
|
+
const result = await ceStorefront.customers.addresses.update({
|
|
283
|
+
userId: "<id>",
|
|
284
|
+
addressId: "<id>",
|
|
285
|
+
requestBody: {
|
|
286
|
+
firstName: "Ruthe",
|
|
287
|
+
phone: "(496) 590-8432 x1783",
|
|
288
|
+
email: "Olen75@yahoo.com",
|
|
289
|
+
addressLine1: "5123 The Square",
|
|
290
|
+
pincode: "<value>",
|
|
291
|
+
city: "Port St. Lucie",
|
|
292
|
+
state: "Montana",
|
|
293
|
+
country: "India",
|
|
294
|
+
},
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
// Handle the result
|
|
298
|
+
console.log(result);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
run();
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
### Standalone function
|
|
305
|
+
|
|
306
|
+
The standalone function version of this method:
|
|
307
|
+
|
|
308
|
+
```typescript
|
|
309
|
+
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
310
|
+
import { customersAddressesUpdate } from "ce-storefront/funcs/customersAddressesUpdate.js";
|
|
311
|
+
|
|
312
|
+
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
313
|
+
// You can create one instance of it to use across an application.
|
|
314
|
+
const ceStorefront = new CeStorefrontCore({
|
|
315
|
+
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
async function run() {
|
|
319
|
+
const res = await customersAddressesUpdate(ceStorefront, {
|
|
320
|
+
userId: "<id>",
|
|
321
|
+
addressId: "<id>",
|
|
322
|
+
requestBody: {
|
|
323
|
+
firstName: "Ruthe",
|
|
324
|
+
phone: "(496) 590-8432 x1783",
|
|
325
|
+
email: "Olen75@yahoo.com",
|
|
326
|
+
addressLine1: "5123 The Square",
|
|
327
|
+
pincode: "<value>",
|
|
328
|
+
city: "Port St. Lucie",
|
|
329
|
+
state: "Montana",
|
|
330
|
+
country: "India",
|
|
331
|
+
},
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
if (!res.ok) {
|
|
335
|
+
throw res.error;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
const { value: result } = res;
|
|
339
|
+
|
|
340
|
+
// Handle the result
|
|
341
|
+
console.log(result);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
run();
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
### Parameters
|
|
348
|
+
|
|
349
|
+
| Parameter | Type | Required | Description |
|
|
350
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
351
|
+
| `request` | [operations.PutCustomerAddressIdRequest](../../models/operations/putcustomeraddressidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
352
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
353
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
354
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
355
|
+
|
|
356
|
+
### Response
|
|
357
|
+
|
|
358
|
+
**Promise\<[operations.PutCustomerAddressIdResponseBody](../../models/operations/putcustomeraddressidresponsebody.md)\>**
|
|
359
|
+
|
|
360
|
+
### Errors
|
|
361
|
+
|
|
362
|
+
| Error Type | Status Code | Content Type |
|
|
363
|
+
| ------------------- | ------------------- | ------------------- |
|
|
364
|
+
| errors.BadRequest | 400 | application/json |
|
|
365
|
+
| errors.Unauthorized | 401 | application/json |
|
|
366
|
+
| errors.NotFound | 404 | application/json |
|
|
367
|
+
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
368
|
+
|
|
369
|
+
## delete
|
|
370
|
+
|
|
371
|
+
Delete address
|
|
372
|
+
|
|
373
|
+
### Example Usage
|
|
374
|
+
|
|
375
|
+
```typescript
|
|
376
|
+
import { CeStorefront } from "ce-storefront";
|
|
377
|
+
|
|
378
|
+
const ceStorefront = new CeStorefront({
|
|
379
|
+
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
async function run() {
|
|
383
|
+
const result = await ceStorefront.customers.addresses.delete({
|
|
384
|
+
userId: "<id>",
|
|
385
|
+
addressId: "<id>",
|
|
386
|
+
});
|
|
387
|
+
|
|
388
|
+
// Handle the result
|
|
389
|
+
console.log(result);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
run();
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
### Standalone function
|
|
396
|
+
|
|
397
|
+
The standalone function version of this method:
|
|
398
|
+
|
|
399
|
+
```typescript
|
|
400
|
+
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
401
|
+
import { customersAddressesDelete } from "ce-storefront/funcs/customersAddressesDelete.js";
|
|
402
|
+
|
|
403
|
+
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
404
|
+
// You can create one instance of it to use across an application.
|
|
405
|
+
const ceStorefront = new CeStorefrontCore({
|
|
406
|
+
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
407
|
+
});
|
|
408
|
+
|
|
409
|
+
async function run() {
|
|
410
|
+
const res = await customersAddressesDelete(ceStorefront, {
|
|
411
|
+
userId: "<id>",
|
|
412
|
+
addressId: "<id>",
|
|
413
|
+
});
|
|
414
|
+
|
|
415
|
+
if (!res.ok) {
|
|
416
|
+
throw res.error;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
const { value: result } = res;
|
|
420
|
+
|
|
421
|
+
// Handle the result
|
|
422
|
+
console.log(result);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
run();
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
### Parameters
|
|
429
|
+
|
|
430
|
+
| Parameter | Type | Required | Description |
|
|
431
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
432
|
+
| `request` | [operations.DeleteCustomerAddressIdRequest](../../models/operations/deletecustomeraddressidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
433
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
434
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
435
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
436
|
+
|
|
437
|
+
### Response
|
|
438
|
+
|
|
439
|
+
**Promise\<[operations.DeleteCustomerAddressIdResponseBody](../../models/operations/deletecustomeraddressidresponsebody.md)\>**
|
|
440
|
+
|
|
441
|
+
### Errors
|
|
442
|
+
|
|
84
443
|
| Error Type | Status Code | Content Type |
|
|
85
444
|
| ------------------- | ------------------- | ------------------- |
|
|
86
445
|
| errors.Unauthorized | 401 | application/json |
|
package/docs/sdks/auth/README.md
CHANGED
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
* [registerWithPassword](#registerwithpassword) - Register with password
|
|
18
18
|
* [refreshToken](#refreshtoken) - Refresh access token
|
|
19
19
|
* [generateOtp](#generateotp) - Generate OTP
|
|
20
|
-
* [logout](#logout) - Logout user
|
|
21
20
|
* [verifyEmailPhone](#verifyemailphone) - Check verified email phone
|
|
22
21
|
|
|
23
22
|
## loginAnonymously
|
|
@@ -953,77 +952,6 @@ run();
|
|
|
953
952
|
| -------------- | -------------- | -------------- |
|
|
954
953
|
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
955
954
|
|
|
956
|
-
## logout
|
|
957
|
-
|
|
958
|
-
The Logout User API initiate the logout process for a user. Upon a successful request, the API responds with a confirmation message. If the user is not found or there's an issue with the request, an error response is returned with an appropriate message.
|
|
959
|
-
|
|
960
|
-
### Example Usage
|
|
961
|
-
|
|
962
|
-
```typescript
|
|
963
|
-
import { CeStorefront } from "ce-storefront";
|
|
964
|
-
|
|
965
|
-
const ceStorefront = new CeStorefront({
|
|
966
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
967
|
-
});
|
|
968
|
-
|
|
969
|
-
async function run() {
|
|
970
|
-
const result = await ceStorefront.auth.logout();
|
|
971
|
-
|
|
972
|
-
// Handle the result
|
|
973
|
-
console.log(result);
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
run();
|
|
977
|
-
```
|
|
978
|
-
|
|
979
|
-
### Standalone function
|
|
980
|
-
|
|
981
|
-
The standalone function version of this method:
|
|
982
|
-
|
|
983
|
-
```typescript
|
|
984
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
985
|
-
import { authLogout } from "ce-storefront/funcs/authLogout.js";
|
|
986
|
-
|
|
987
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
988
|
-
// You can create one instance of it to use across an application.
|
|
989
|
-
const ceStorefront = new CeStorefrontCore({
|
|
990
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
991
|
-
});
|
|
992
|
-
|
|
993
|
-
async function run() {
|
|
994
|
-
const res = await authLogout(ceStorefront);
|
|
995
|
-
|
|
996
|
-
if (!res.ok) {
|
|
997
|
-
throw res.error;
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
const { value: result } = res;
|
|
1001
|
-
|
|
1002
|
-
// Handle the result
|
|
1003
|
-
console.log(result);
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
run();
|
|
1007
|
-
```
|
|
1008
|
-
|
|
1009
|
-
### Parameters
|
|
1010
|
-
|
|
1011
|
-
| Parameter | Type | Required | Description |
|
|
1012
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1013
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1014
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1015
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1016
|
-
|
|
1017
|
-
### Response
|
|
1018
|
-
|
|
1019
|
-
**Promise\<[operations.PostAuthLogoutResponseBody](../../models/operations/postauthlogoutresponsebody.md)\>**
|
|
1020
|
-
|
|
1021
|
-
### Errors
|
|
1022
|
-
|
|
1023
|
-
| Error Type | Status Code | Content Type |
|
|
1024
|
-
| -------------- | -------------- | -------------- |
|
|
1025
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
1026
|
-
|
|
1027
955
|
## verifyEmailPhone
|
|
1028
956
|
|
|
1029
957
|
The Check Verification Status API allows to verify the status of email and phone number verification for a specific user. Upon a successful request, the API responds with the verification status of the provided email and phone number. If the user is not found or there's an issue with the request, an error response is returned with an appropriate message.
|