126 lines
3.4 KiB
TypeScript
126 lines
3.4 KiB
TypeScript
export declare function getEmailsByCustomerId(customerId: number, includeInactive?: boolean): Promise<{
|
|
id: number;
|
|
email: string;
|
|
customerId: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
notes: string | null;
|
|
hasMailbox: boolean;
|
|
platform: string | null;
|
|
isProvisioned: boolean;
|
|
provisionedAt: Date | null;
|
|
provisionError: string | null;
|
|
emailPasswordEncrypted: string | null;
|
|
}[]>;
|
|
export declare function getEmailsWithMailboxByCustomerId(customerId: number): Promise<{
|
|
id: number;
|
|
email: string;
|
|
notes: string | null;
|
|
_count: {
|
|
cachedEmails: number;
|
|
};
|
|
hasMailbox: boolean;
|
|
}[]>;
|
|
export declare function getEmailById(id: number): Promise<{
|
|
id: number;
|
|
email: string;
|
|
customerId: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
notes: string | null;
|
|
hasMailbox: boolean;
|
|
platform: string | null;
|
|
isProvisioned: boolean;
|
|
provisionedAt: Date | null;
|
|
provisionError: string | null;
|
|
emailPasswordEncrypted: string | null;
|
|
} | null>;
|
|
export declare function getEmailWithMailboxById(id: number): Promise<{
|
|
id: number;
|
|
email: string;
|
|
customerId: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
notes: string | null;
|
|
hasMailbox: boolean;
|
|
platform: string | null;
|
|
emailPasswordEncrypted: string | null;
|
|
} | null>;
|
|
export interface CreateEmailData {
|
|
customerId: number;
|
|
email: string;
|
|
platform?: string;
|
|
notes?: string;
|
|
provisionAtProvider?: boolean;
|
|
createMailbox?: boolean;
|
|
}
|
|
export declare function createEmail(data: CreateEmailData): Promise<{
|
|
id: number;
|
|
email: string;
|
|
customerId: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
notes: string | null;
|
|
hasMailbox: boolean;
|
|
platform: string | null;
|
|
isProvisioned: boolean;
|
|
provisionedAt: Date | null;
|
|
provisionError: string | null;
|
|
emailPasswordEncrypted: string | null;
|
|
}>;
|
|
export declare function updateEmail(id: number, data: {
|
|
email?: string;
|
|
platform?: string;
|
|
notes?: string;
|
|
isActive?: boolean;
|
|
}): Promise<{
|
|
id: number;
|
|
email: string;
|
|
customerId: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
notes: string | null;
|
|
hasMailbox: boolean;
|
|
platform: string | null;
|
|
isProvisioned: boolean;
|
|
provisionedAt: Date | null;
|
|
provisionError: string | null;
|
|
emailPasswordEncrypted: string | null;
|
|
}>;
|
|
export declare function deleteEmail(id: number): Promise<{
|
|
id: number;
|
|
email: string;
|
|
customerId: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
notes: string | null;
|
|
hasMailbox: boolean;
|
|
platform: string | null;
|
|
isProvisioned: boolean;
|
|
provisionedAt: Date | null;
|
|
provisionError: string | null;
|
|
emailPasswordEncrypted: string | null;
|
|
}>;
|
|
export declare function enableMailbox(id: number): Promise<{
|
|
success: boolean;
|
|
error?: string;
|
|
}>;
|
|
export declare function syncMailboxStatus(id: number): Promise<{
|
|
success: boolean;
|
|
hasMailbox?: boolean;
|
|
wasUpdated?: boolean;
|
|
error?: string;
|
|
}>;
|
|
export declare function getDecryptedPassword(id: number): Promise<string | null>;
|
|
export declare function resetMailboxPassword(id: number): Promise<{
|
|
success: boolean;
|
|
password?: string;
|
|
error?: string;
|
|
}>;
|
|
//# sourceMappingURL=stressfreiEmail.service.d.ts.map
|