ce-storefront 0.3.17 → 0.3.19
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/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/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
package/docs/sdks/user/README.md
CHANGED
|
@@ -4,428 +4,3 @@
|
|
|
4
4
|
## Overview
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [update](#update) - Update a user
|
|
9
|
-
* [updateProfileImage](#updateprofileimage) - Update profile image
|
|
10
|
-
* [deleteProfileImage](#deleteprofileimage) - Delete profile image
|
|
11
|
-
* [resetPassword](#resetpassword) - Reset password
|
|
12
|
-
* [updateNotificationPreferences](#updatenotificationpreferences) - Update user notification preferences
|
|
13
|
-
|
|
14
|
-
## update
|
|
15
|
-
|
|
16
|
-
The Update User API helps to efficiently modify and enhance user information within the system, ensuring that user profiles remain accurate and up-to-date. This API provides a secure and flexible mechanism for updating specific details while maintaining adherence to established conventions.
|
|
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.user.update({
|
|
29
|
-
id: "<id>",
|
|
30
|
-
user: {
|
|
31
|
-
firstName: "Ruthe",
|
|
32
|
-
lastName: "Hegmann",
|
|
33
|
-
email: "Lizzie.Wyman@hotmail.com",
|
|
34
|
-
phone: "317-934-7640 x784",
|
|
35
|
-
countryCode: "KZ",
|
|
36
|
-
loginMethods: [
|
|
37
|
-
"email",
|
|
38
|
-
],
|
|
39
|
-
notificationPreferences: {
|
|
40
|
-
transactional: {},
|
|
41
|
-
promotional: {},
|
|
42
|
-
newsletter: {},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
// Handle the result
|
|
48
|
-
console.log(result);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
run();
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### Standalone function
|
|
55
|
-
|
|
56
|
-
The standalone function version of this method:
|
|
57
|
-
|
|
58
|
-
```typescript
|
|
59
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
60
|
-
import { userUpdate } from "ce-storefront/funcs/userUpdate.js";
|
|
61
|
-
|
|
62
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
63
|
-
// You can create one instance of it to use across an application.
|
|
64
|
-
const ceStorefront = new CeStorefrontCore({
|
|
65
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
async function run() {
|
|
69
|
-
const res = await userUpdate(ceStorefront, {
|
|
70
|
-
id: "<id>",
|
|
71
|
-
user: {
|
|
72
|
-
firstName: "Zelma",
|
|
73
|
-
lastName: "Huel",
|
|
74
|
-
email: "Houston_OHara69@gmail.com",
|
|
75
|
-
phone: "1-321-461-2304 x0484",
|
|
76
|
-
countryCode: "PE",
|
|
77
|
-
loginMethods: [
|
|
78
|
-
"whatsapp",
|
|
79
|
-
],
|
|
80
|
-
notificationPreferences: {
|
|
81
|
-
transactional: {},
|
|
82
|
-
promotional: {},
|
|
83
|
-
newsletter: {},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
if (!res.ok) {
|
|
89
|
-
throw res.error;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
const { value: result } = res;
|
|
93
|
-
|
|
94
|
-
// Handle the result
|
|
95
|
-
console.log(result);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
run();
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
### Parameters
|
|
102
|
-
|
|
103
|
-
| Parameter | Type | Required | Description |
|
|
104
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
105
|
-
| `request` | [operations.PutAuthUserIdRequest](../../models/operations/putauthuseridrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
106
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
107
|
-
| `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. |
|
|
108
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
109
|
-
|
|
110
|
-
### Response
|
|
111
|
-
|
|
112
|
-
**Promise\<[operations.PutAuthUserIdResponseBody](../../models/operations/putauthuseridresponsebody.md)\>**
|
|
113
|
-
|
|
114
|
-
### Errors
|
|
115
|
-
|
|
116
|
-
| Error Type | Status Code | Content Type |
|
|
117
|
-
| -------------- | -------------- | -------------- |
|
|
118
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
119
|
-
|
|
120
|
-
## updateProfileImage
|
|
121
|
-
|
|
122
|
-
The Profile Image API streamlines the process of updating profile images associating with user accounts, offering a user-centric approach to visual identity customization. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution. Overall, the Profile Image API enhances user engagement by seamlessly integrating personalized visual elements into digital platforms.
|
|
123
|
-
|
|
124
|
-
### Example Usage
|
|
125
|
-
|
|
126
|
-
```typescript
|
|
127
|
-
import { CeStorefront } from "ce-storefront";
|
|
128
|
-
|
|
129
|
-
const ceStorefront = new CeStorefront({
|
|
130
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
async function run() {
|
|
134
|
-
const result = await ceStorefront.user.updateProfileImage({
|
|
135
|
-
id: "<id>",
|
|
136
|
-
requestBody: {},
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
// Handle the result
|
|
140
|
-
console.log(result);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
run();
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### Standalone function
|
|
147
|
-
|
|
148
|
-
The standalone function version of this method:
|
|
149
|
-
|
|
150
|
-
```typescript
|
|
151
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
152
|
-
import { userUpdateProfileImage } from "ce-storefront/funcs/userUpdateProfileImage.js";
|
|
153
|
-
|
|
154
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
155
|
-
// You can create one instance of it to use across an application.
|
|
156
|
-
const ceStorefront = new CeStorefrontCore({
|
|
157
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
async function run() {
|
|
161
|
-
const res = await userUpdateProfileImage(ceStorefront, {
|
|
162
|
-
id: "<id>",
|
|
163
|
-
requestBody: {},
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
if (!res.ok) {
|
|
167
|
-
throw res.error;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
const { value: result } = res;
|
|
171
|
-
|
|
172
|
-
// Handle the result
|
|
173
|
-
console.log(result);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
run();
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
### Parameters
|
|
180
|
-
|
|
181
|
-
| Parameter | Type | Required | Description |
|
|
182
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
183
|
-
| `request` | [operations.PutAuthUserIdProfileImageRequest](../../models/operations/putauthuseridprofileimagerequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
184
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
185
|
-
| `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. |
|
|
186
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
187
|
-
|
|
188
|
-
### Response
|
|
189
|
-
|
|
190
|
-
**Promise\<[operations.PutAuthUserIdProfileImageResponseBody](../../models/operations/putauthuseridprofileimageresponsebody.md)\>**
|
|
191
|
-
|
|
192
|
-
### Errors
|
|
193
|
-
|
|
194
|
-
| Error Type | Status Code | Content Type |
|
|
195
|
-
| -------------- | -------------- | -------------- |
|
|
196
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
197
|
-
|
|
198
|
-
## deleteProfileImage
|
|
199
|
-
|
|
200
|
-
Delete profile image API streamlines the process of removing profile images associating with user accounts. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution.
|
|
201
|
-
|
|
202
|
-
### Example Usage
|
|
203
|
-
|
|
204
|
-
```typescript
|
|
205
|
-
import { CeStorefront } from "ce-storefront";
|
|
206
|
-
|
|
207
|
-
const ceStorefront = new CeStorefront({
|
|
208
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
async function run() {
|
|
212
|
-
const result = await ceStorefront.user.deleteProfileImage({
|
|
213
|
-
id: "<id>",
|
|
214
|
-
});
|
|
215
|
-
|
|
216
|
-
// Handle the result
|
|
217
|
-
console.log(result);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
run();
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
### Standalone function
|
|
224
|
-
|
|
225
|
-
The standalone function version of this method:
|
|
226
|
-
|
|
227
|
-
```typescript
|
|
228
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
229
|
-
import { userDeleteProfileImage } from "ce-storefront/funcs/userDeleteProfileImage.js";
|
|
230
|
-
|
|
231
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
232
|
-
// You can create one instance of it to use across an application.
|
|
233
|
-
const ceStorefront = new CeStorefrontCore({
|
|
234
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
235
|
-
});
|
|
236
|
-
|
|
237
|
-
async function run() {
|
|
238
|
-
const res = await userDeleteProfileImage(ceStorefront, {
|
|
239
|
-
id: "<id>",
|
|
240
|
-
});
|
|
241
|
-
|
|
242
|
-
if (!res.ok) {
|
|
243
|
-
throw res.error;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
const { value: result } = res;
|
|
247
|
-
|
|
248
|
-
// Handle the result
|
|
249
|
-
console.log(result);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
run();
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
### Parameters
|
|
256
|
-
|
|
257
|
-
| Parameter | Type | Required | Description |
|
|
258
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
259
|
-
| `request` | [operations.DeleteAuthUserIdProfileImageRequest](../../models/operations/deleteauthuseridprofileimagerequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
260
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
261
|
-
| `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. |
|
|
262
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
263
|
-
|
|
264
|
-
### Response
|
|
265
|
-
|
|
266
|
-
**Promise\<[operations.DeleteAuthUserIdProfileImageResponseBody](../../models/operations/deleteauthuseridprofileimageresponsebody.md)\>**
|
|
267
|
-
|
|
268
|
-
### Errors
|
|
269
|
-
|
|
270
|
-
| Error Type | Status Code | Content Type |
|
|
271
|
-
| -------------- | -------------- | -------------- |
|
|
272
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
273
|
-
|
|
274
|
-
## resetPassword
|
|
275
|
-
|
|
276
|
-
Reset password
|
|
277
|
-
|
|
278
|
-
### Example Usage
|
|
279
|
-
|
|
280
|
-
```typescript
|
|
281
|
-
import { CeStorefront } from "ce-storefront";
|
|
282
|
-
|
|
283
|
-
const ceStorefront = new CeStorefront({
|
|
284
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
285
|
-
});
|
|
286
|
-
|
|
287
|
-
async function run() {
|
|
288
|
-
const result = await ceStorefront.user.resetPassword({
|
|
289
|
-
newPassword: "<value>",
|
|
290
|
-
confirmPassword: "<value>",
|
|
291
|
-
otpToken: "<value>",
|
|
292
|
-
});
|
|
293
|
-
|
|
294
|
-
// Handle the result
|
|
295
|
-
console.log(result);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
run();
|
|
299
|
-
```
|
|
300
|
-
|
|
301
|
-
### Standalone function
|
|
302
|
-
|
|
303
|
-
The standalone function version of this method:
|
|
304
|
-
|
|
305
|
-
```typescript
|
|
306
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
307
|
-
import { userResetPassword } from "ce-storefront/funcs/userResetPassword.js";
|
|
308
|
-
|
|
309
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
310
|
-
// You can create one instance of it to use across an application.
|
|
311
|
-
const ceStorefront = new CeStorefrontCore({
|
|
312
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
313
|
-
});
|
|
314
|
-
|
|
315
|
-
async function run() {
|
|
316
|
-
const res = await userResetPassword(ceStorefront, {
|
|
317
|
-
newPassword: "<value>",
|
|
318
|
-
confirmPassword: "<value>",
|
|
319
|
-
otpToken: "<value>",
|
|
320
|
-
});
|
|
321
|
-
|
|
322
|
-
if (!res.ok) {
|
|
323
|
-
throw res.error;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
const { value: result } = res;
|
|
327
|
-
|
|
328
|
-
// Handle the result
|
|
329
|
-
console.log(result);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
run();
|
|
333
|
-
```
|
|
334
|
-
|
|
335
|
-
### Parameters
|
|
336
|
-
|
|
337
|
-
| Parameter | Type | Required | Description |
|
|
338
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
339
|
-
| `request` | [operations.PostAuthResetPasswordRequestBody](../../models/operations/postauthresetpasswordrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
340
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
341
|
-
| `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. |
|
|
342
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
343
|
-
|
|
344
|
-
### Response
|
|
345
|
-
|
|
346
|
-
**Promise\<[operations.PostAuthResetPasswordResponseBody](../../models/operations/postauthresetpasswordresponsebody.md)\>**
|
|
347
|
-
|
|
348
|
-
### Errors
|
|
349
|
-
|
|
350
|
-
| Error Type | Status Code | Content Type |
|
|
351
|
-
| ----------------- | ----------------- | ----------------- |
|
|
352
|
-
| errors.BadRequest | 400 | application/json |
|
|
353
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
354
|
-
|
|
355
|
-
## updateNotificationPreferences
|
|
356
|
-
|
|
357
|
-
Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
|
|
358
|
-
|
|
359
|
-
### Example Usage
|
|
360
|
-
|
|
361
|
-
```typescript
|
|
362
|
-
import { CeStorefront } from "ce-storefront";
|
|
363
|
-
|
|
364
|
-
const ceStorefront = new CeStorefront({
|
|
365
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
366
|
-
});
|
|
367
|
-
|
|
368
|
-
async function run() {
|
|
369
|
-
const result = await ceStorefront.user.updateNotificationPreferences({
|
|
370
|
-
id: "<id>",
|
|
371
|
-
requestBody: {},
|
|
372
|
-
});
|
|
373
|
-
|
|
374
|
-
// Handle the result
|
|
375
|
-
console.log(result);
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
run();
|
|
379
|
-
```
|
|
380
|
-
|
|
381
|
-
### Standalone function
|
|
382
|
-
|
|
383
|
-
The standalone function version of this method:
|
|
384
|
-
|
|
385
|
-
```typescript
|
|
386
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
387
|
-
import { userUpdateNotificationPreferences } from "ce-storefront/funcs/userUpdateNotificationPreferences.js";
|
|
388
|
-
|
|
389
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
390
|
-
// You can create one instance of it to use across an application.
|
|
391
|
-
const ceStorefront = new CeStorefrontCore({
|
|
392
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
393
|
-
});
|
|
394
|
-
|
|
395
|
-
async function run() {
|
|
396
|
-
const res = await userUpdateNotificationPreferences(ceStorefront, {
|
|
397
|
-
id: "<id>",
|
|
398
|
-
requestBody: {},
|
|
399
|
-
});
|
|
400
|
-
|
|
401
|
-
if (!res.ok) {
|
|
402
|
-
throw res.error;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
const { value: result } = res;
|
|
406
|
-
|
|
407
|
-
// Handle the result
|
|
408
|
-
console.log(result);
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
run();
|
|
412
|
-
```
|
|
413
|
-
|
|
414
|
-
### Parameters
|
|
415
|
-
|
|
416
|
-
| Parameter | Type | Required | Description |
|
|
417
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
418
|
-
| `request` | [operations.PutAuthUserIdNotificationPreferencesRequest](../../models/operations/putauthuseridnotificationpreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
419
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
420
|
-
| `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. |
|
|
421
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
422
|
-
|
|
423
|
-
### Response
|
|
424
|
-
|
|
425
|
-
**Promise\<[operations.PutAuthUserIdNotificationPreferencesResponseBody](../../models/operations/putauthuseridnotificationpreferencesresponsebody.md)\>**
|
|
426
|
-
|
|
427
|
-
### Errors
|
|
428
|
-
|
|
429
|
-
| Error Type | Status Code | Content Type |
|
|
430
|
-
| -------------- | -------------- | -------------- |
|
|
431
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
@@ -5,9 +5,81 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
+
* [getCountries](#getcountries) - Retrieve all countries
|
|
8
9
|
* [getStates](#getstates) - Retrieve country wise states
|
|
9
10
|
* [getPincodes](#getpincodes) - Retrieve pincodes
|
|
10
11
|
|
|
12
|
+
## getCountries
|
|
13
|
+
|
|
14
|
+
Retrieve all countries
|
|
15
|
+
|
|
16
|
+
### Example Usage
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { CeStorefront } from "ce-storefront";
|
|
20
|
+
|
|
21
|
+
const ceStorefront = new CeStorefront({
|
|
22
|
+
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
async function run() {
|
|
26
|
+
const result = await ceStorefront.utils.getCountries();
|
|
27
|
+
|
|
28
|
+
// Handle the result
|
|
29
|
+
console.log(result);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
run();
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Standalone function
|
|
36
|
+
|
|
37
|
+
The standalone function version of this method:
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
41
|
+
import { utilsGetCountries } from "ce-storefront/funcs/utilsGetCountries.js";
|
|
42
|
+
|
|
43
|
+
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
44
|
+
// You can create one instance of it to use across an application.
|
|
45
|
+
const ceStorefront = new CeStorefrontCore({
|
|
46
|
+
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
async function run() {
|
|
50
|
+
const res = await utilsGetCountries(ceStorefront);
|
|
51
|
+
|
|
52
|
+
if (!res.ok) {
|
|
53
|
+
throw res.error;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const { value: result } = res;
|
|
57
|
+
|
|
58
|
+
// Handle the result
|
|
59
|
+
console.log(result);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
run();
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Parameters
|
|
66
|
+
|
|
67
|
+
| Parameter | Type | Required | Description |
|
|
68
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
69
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
70
|
+
| `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. |
|
|
71
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
72
|
+
|
|
73
|
+
### Response
|
|
74
|
+
|
|
75
|
+
**Promise\<[operations.GetCommonCountriesResponseBody](../../models/operations/getcommoncountriesresponsebody.md)\>**
|
|
76
|
+
|
|
77
|
+
### Errors
|
|
78
|
+
|
|
79
|
+
| Error Type | Status Code | Content Type |
|
|
80
|
+
| -------------- | -------------- | -------------- |
|
|
81
|
+
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
82
|
+
|
|
11
83
|
## getStates
|
|
12
84
|
|
|
13
85
|
Retrieve country wise states
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
* [get](#get) - Retrieve wishlist
|
|
9
9
|
* [add](#add) - Add product to wishlist
|
|
10
|
-
* [
|
|
10
|
+
* [delete](#delete) - Delete product from wishlist
|
|
11
11
|
|
|
12
12
|
## get
|
|
13
13
|
|
|
@@ -171,7 +171,7 @@ run();
|
|
|
171
171
|
| errors.NotFound | 404 | application/json |
|
|
172
172
|
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
173
173
|
|
|
174
|
-
##
|
|
174
|
+
## delete
|
|
175
175
|
|
|
176
176
|
Remove product from wishlist
|
|
177
177
|
|
|
@@ -185,7 +185,7 @@ const ceStorefront = new CeStorefront({
|
|
|
185
185
|
});
|
|
186
186
|
|
|
187
187
|
async function run() {
|
|
188
|
-
const result = await ceStorefront.wishlist.
|
|
188
|
+
const result = await ceStorefront.wishlist.delete({
|
|
189
189
|
userId: "<id>",
|
|
190
190
|
requestBody: {
|
|
191
191
|
productId: "01F3Z7KG06J4ACWH1C4926KJEC",
|
|
@@ -206,7 +206,7 @@ The standalone function version of this method:
|
|
|
206
206
|
|
|
207
207
|
```typescript
|
|
208
208
|
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
209
|
-
import {
|
|
209
|
+
import { wishlistDelete } from "ce-storefront/funcs/wishlistDelete.js";
|
|
210
210
|
|
|
211
211
|
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
212
212
|
// You can create one instance of it to use across an application.
|
|
@@ -215,7 +215,7 @@ const ceStorefront = new CeStorefrontCore({
|
|
|
215
215
|
});
|
|
216
216
|
|
|
217
217
|
async function run() {
|
|
218
|
-
const res = await
|
|
218
|
+
const res = await wishlistDelete(ceStorefront, {
|
|
219
219
|
userId: "<id>",
|
|
220
220
|
requestBody: {
|
|
221
221
|
productId: "01F3Z7KG06J4ACWH1C4926KJEC",
|
|
@@ -11,5 +11,5 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* @remarks
|
|
12
12
|
* The Profile Image API streamlines the process of uploading profile images associating with user accounts, offering a user-centric approach to visual identity customization. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution. Overall, the Profile Image API enhances user engagement by seamlessly integrating personalized visual elements into digital platforms.
|
|
13
13
|
*/
|
|
14
|
-
export declare function
|
|
15
|
-
//# sourceMappingURL=
|
|
14
|
+
export declare function authUserAddProfileImage(client: CeStorefrontCore, request: operations.PostAuthUserIdProfileImageRequest, options?: RequestOptions): Promise<Result<operations.PostAuthUserIdProfileImageResponseBody, CeError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
15
|
+
//# sourceMappingURL=authUserAddProfileImage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authUserAddProfileImage.d.ts","sourceRoot":"","sources":["../../src/funcs/authUserAddProfileImage.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAM9C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,sCAAsC,EAC/C,OAAO,GACP,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA6GA"}
|
|
@@ -17,7 +17,7 @@ import { isReadableStream } from "../types/streams.js";
|
|
|
17
17
|
* @remarks
|
|
18
18
|
* The Profile Image API streamlines the process of uploading profile images associating with user accounts, offering a user-centric approach to visual identity customization. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution. Overall, the Profile Image API enhances user engagement by seamlessly integrating personalized visual elements into digital platforms.
|
|
19
19
|
*/
|
|
20
|
-
export async function
|
|
20
|
+
export async function authUserAddProfileImage(client, request, options) {
|
|
21
21
|
const parsed = safeParse(request, (value) => operations.PostAuthUserIdProfileImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
22
22
|
if (!parsed.ok) {
|
|
23
23
|
return parsed;
|
|
@@ -89,4 +89,4 @@ export async function authUsersAddProfileImage(client, request, options) {
|
|
|
89
89
|
}
|
|
90
90
|
return result;
|
|
91
91
|
}
|
|
92
|
-
//# sourceMappingURL=
|
|
92
|
+
//# sourceMappingURL=authUserAddProfileImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authUserAddProfileImage.js","sourceRoot":"","sources":["../../src/funcs/authUserAddProfileImage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAU3C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,MAAwB,EACxB,OAAqD,EACrD,OAAwB;IAaxB,MAAM,MAAM,GAAG,SAAS,CACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,gDAAgD,CAAC,KAAK,CAAC,KAAK,CAAC,EAC1E,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAC;IAE5B,IAAI,U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AAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAU5B,CAAC,CAAC,IAAI,CACJ,GAAG,EACH,UAAU,CAAC,oDAAoD,CAChE,EACD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,CAAC,CAAC;IACZ,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -11,5 +11,5 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* @remarks
|
|
12
12
|
* The Deactivate Account API providing users with a straightforward method to deactivate their accounts. Upon successful deactivation, the API responds with a confirmation message. Error responses are detailed, aiding developers in addressing issues promptly.
|
|
13
13
|
*/
|
|
14
|
-
export declare function
|
|
15
|
-
//# sourceMappingURL=
|
|
14
|
+
export declare function authUserDeactivateAccount(client: CeStorefrontCore, request: operations.PutAuthUserIdDeactivateRequest, options?: RequestOptions): Promise<Result<operations.PutAuthUserIdDeactivateResponseBody, CeError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
15
|
+
//# sourceMappingURL=authUserDeactivateAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authUserDeactivateAccount.d.ts","sourceRoot":"","sources":["../../src/funcs/authUserDeactivateAccount.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAK9C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,mCAAmC,EAC5C,OAAO,GACP,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAuFA"}
|
|
@@ -14,7 +14,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
14
14
|
* @remarks
|
|
15
15
|
* The Deactivate Account API providing users with a straightforward method to deactivate their accounts. Upon successful deactivation, the API responds with a confirmation message. Error responses are detailed, aiding developers in addressing issues promptly.
|
|
16
16
|
*/
|
|
17
|
-
export async function
|
|
17
|
+
export async function authUserDeactivateAccount(client, request, options) {
|
|
18
18
|
const parsed = safeParse(request, (value) => operations.PutAuthUserIdDeactivateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
19
19
|
if (!parsed.ok) {
|
|
20
20
|
return parsed;
|
|
@@ -73,4 +73,4 @@ export async function authUserDeactivate(client, request, options) {
|
|
|
73
73
|
}
|
|
74
74
|
return result;
|
|
75
75
|
}
|
|
76
|
-
//# sourceMappingURL=
|
|
76
|
+
//# sourceMappingURL=authUserDeactivateAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authUserDeactivateAccount.js","sourceRoot":"","sources":["../../src/funcs/authUserDeactivateAccount.ts"],"names":[],"mappings":"AAAA;;GAEG;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