complete new audit system

This commit is contained in:
2026-03-21 18:23:54 +01:00
parent 4f359df161
commit 219e1930f7
159 changed files with 2841 additions and 736 deletions
+6 -6
View File
@@ -1,4 +1,5 @@
export declare function getEmailsByCustomerId(customerId: number, includeInactive?: boolean): Promise<{
emailPasswordEncrypted: string | null;
id: number;
email: string;
customerId: number;
@@ -11,7 +12,6 @@ export declare function getEmailsByCustomerId(customerId: number, includeInactiv
isProvisioned: boolean;
provisionedAt: Date | null;
provisionError: string | null;
emailPasswordEncrypted: string | null;
}[]>;
export declare function getEmailsWithMailboxByCustomerId(customerId: number): Promise<{
id: number;
@@ -23,6 +23,7 @@ export declare function getEmailsWithMailboxByCustomerId(customerId: number): Pr
hasMailbox: boolean;
}[]>;
export declare function getEmailById(id: number): Promise<{
emailPasswordEncrypted: string | null;
id: number;
email: string;
customerId: number;
@@ -35,9 +36,9 @@ export declare function getEmailById(id: number): Promise<{
isProvisioned: boolean;
provisionedAt: Date | null;
provisionError: string | null;
emailPasswordEncrypted: string | null;
} | null>;
export declare function getEmailWithMailboxById(id: number): Promise<{
emailPasswordEncrypted: string | null;
id: number;
email: string;
customerId: number;
@@ -47,7 +48,6 @@ export declare function getEmailWithMailboxById(id: number): Promise<{
notes: string | null;
hasMailbox: boolean;
platform: string | null;
emailPasswordEncrypted: string | null;
} | null>;
export interface CreateEmailData {
customerId: number;
@@ -58,6 +58,7 @@ export interface CreateEmailData {
createMailbox?: boolean;
}
export declare function createEmail(data: CreateEmailData): Promise<{
emailPasswordEncrypted: string | null;
id: number;
email: string;
customerId: number;
@@ -70,7 +71,6 @@ export declare function createEmail(data: CreateEmailData): Promise<{
isProvisioned: boolean;
provisionedAt: Date | null;
provisionError: string | null;
emailPasswordEncrypted: string | null;
}>;
export declare function updateEmail(id: number, data: {
email?: string;
@@ -78,6 +78,7 @@ export declare function updateEmail(id: number, data: {
notes?: string;
isActive?: boolean;
}): Promise<{
emailPasswordEncrypted: string | null;
id: number;
email: string;
customerId: number;
@@ -90,9 +91,9 @@ export declare function updateEmail(id: number, data: {
isProvisioned: boolean;
provisionedAt: Date | null;
provisionError: string | null;
emailPasswordEncrypted: string | null;
}>;
export declare function deleteEmail(id: number): Promise<{
emailPasswordEncrypted: string | null;
id: number;
email: string;
customerId: number;
@@ -105,7 +106,6 @@ export declare function deleteEmail(id: number): Promise<{
isProvisioned: boolean;
provisionedAt: Date | null;
provisionError: string | null;
emailPasswordEncrypted: string | null;
}>;
export declare function enableMailbox(id: number): Promise<{
success: boolean;