feat: correo grupal por departamento para avisos de ticket nuevo (IT al grupo)
This commit is contained in:
1 parent
8b59680588
commit
f9dc520f65
2 files changed
+52
-5
No files matched your search
+12
-2
@@ -244,6 +244,7 @@ export interface Group {
|
||||
name: string;
|
||||
description?: string;
|
||||
isActive: boolean;
|
||||
notificationEmail?: string | null;
|
||||
}
|
||||
|
||||
export interface KBArticle {
|
||||
@@ -288,7 +289,11 @@ export interface DashboardStats {
|
||||
}
|
||||
|
||||
// ==================== Departamentos ====================
|
||||
export async function createGroup(data: { name: string; description?: string }) {
|
||||
export async function createGroup(data: {
|
||||
name: string;
|
||||
description?: string;
|
||||
notificationEmail?: string | null;
|
||||
}) {
|
||||
return fetchApi<Group>("/api/helpdesk/groups", {
|
||||
method: "POST",
|
||||
body: JSON.stringify(data),
|
||||
@@ -297,7 +302,12 @@ export async function createGroup(data: { name: string; description?: string })
|
||||
|
||||
export async function updateGroup(
|
||||
id: number,
|
||||
data: { name?: string; description?: string; isActive?: boolean }
|
||||
data: {
|
||||
name?: string;
|
||||
description?: string;
|
||||
isActive?: boolean;
|
||||
notificationEmail?: string | null;
|
||||
}
|
||||
) {
|
||||
return fetchApi<void>(`/api/helpdesk/groups/${id}`, {
|
||||
method: "PUT",
|
||||
|
||||
Reference in new issue
Block a user