Rev 3736 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
import { api } from '@shared/libs';
export const getMyGroups = async (params) => {
return await api.get('/group/my-groups', { params });
};
export const saveGroup = async (group) => {
return await api.post('/group/my-groups/add', group);
};
export const deleteGroup = async (url) => {
return await api.post(url);
};
export const getGroup = async (uuid) => {
return await api.get(`/group/my-groups/edit/${uuid}`);
};
export const saveGroupType = async (uuid, data) => {
return await api.post(`/group/my-groups/type/${uuid}`, data);
};
export const saveGroupIndustry = async (uuid, data) => {
return await api.post(`/group/my-groups/industry/${uuid}`, data);
};
export const saveGroupPrivacy = async (uuid, data) => {
return await api.post(`/group/my-groups/privacy/${uuid}`, data);
};
export const inviteMember = async (url, uuid) => {
return await api.post(url, { user_uuid: uuid });
};
export const getGroupMembers = async (uuid) => {
return await api.get(`/helpers/group-members/${uuid}`);
};
export const approveMember = async (url) => {
return await api.post(url);
};
export const rejectMember = async (url) => {
return await api.post(url);
};
export const cancelInvitation = async (url) => {
return await api.post(url);
};
export const saveGroupOverview = async (uuid, data) => {
return await api.post(`/group/my-groups/extended/${uuid}`, data);
};
export const saveGroupAccessibility = async (uuid, data) => {
return await api.post(`/group/my-groups/accessibility/${uuid}`, data);
};
export const saveGroupWebsite = async (uuid, data) => {
return await api.post(`/group/my-groups/website/${uuid}`, data);
};
export const handleActionLink = async (url) => {
return await api.post(url);
};
export const saveGroupImage = async (uuid, data) => {
return await api.post(`group/my-groups/image/${uuid}/operation/upload`, data);
};