Rev 3736 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
import { api } from '@api';// Basic settings serviceexport const getBasicSettings = async () => {return await api.get('/account-settings/basic');};export const updateBasicSettings = async (data) => {return await api.post('/account-settings/basic', data);};// Notifications serviceexport const getNotificationSettings = async () => {return await api.get('/account-settings/notification');};export const updateNotificationSettings = async (data) => {return await api.post('/account-settings/notification', data);};// Location serviceexport const getLocationSettings = async () => {return await api.get('/account-settings/location');};export const updateLocationSettings = async (data) => {return await api.post('/account-settings/location', data);};// Privacy serviceexport const getPrivacySettings = async () => {return await api.get('/account-settings/privacy');};export const updatePrivacySettings = async (data) => {return await api.post('/account-settings/privacy', data);};// Password serviceexport const changePassword = async (data) => {return await api.post('/account-settings/password', data);};// Image serviceexport const updateProfileImage = async (imageFile) => {return await api.post('/account-settings/image', imageFile);};// Device and security servicesexport const getDevices = async () => {return await api.get('/account-settings/devices');};export const getBrowsers = async () => {return await api.get('/account-settings/browsers');};export const getIPs = async () => {return await api.get('/account-settings/ips');};export const getTransactions = async () => {return await api.get('/account-settings/transactions');};// Close account serviceexport const closeAccount = async (data) => {return await api.post('/account-settings/close-account', data);};