76 lines
1.9 KiB
TypeScript
76 lines
1.9 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;
|
|
platform: string | null;
|
|
isProvisioned: boolean;
|
|
provisionedAt: Date | null;
|
|
provisionError: string | null;
|
|
}[]>;
|
|
export declare function getEmailById(id: number): Promise<{
|
|
id: number;
|
|
email: string;
|
|
customerId: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
notes: string | null;
|
|
platform: string | null;
|
|
isProvisioned: boolean;
|
|
provisionedAt: Date | null;
|
|
provisionError: string | null;
|
|
} | null>;
|
|
export declare function createEmail(data: {
|
|
customerId: number;
|
|
email: string;
|
|
platform?: string;
|
|
notes?: string;
|
|
}): Promise<{
|
|
id: number;
|
|
email: string;
|
|
customerId: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
notes: string | null;
|
|
platform: string | null;
|
|
isProvisioned: boolean;
|
|
provisionedAt: Date | null;
|
|
provisionError: 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;
|
|
platform: string | null;
|
|
isProvisioned: boolean;
|
|
provisionedAt: Date | null;
|
|
provisionError: string | null;
|
|
}>;
|
|
export declare function deleteEmail(id: number): Promise<{
|
|
id: number;
|
|
email: string;
|
|
customerId: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
notes: string | null;
|
|
platform: string | null;
|
|
isProvisioned: boolean;
|
|
provisionedAt: Date | null;
|
|
provisionError: string | null;
|
|
}>;
|
|
//# sourceMappingURL=stressfreiEmail.service.d.ts.map
|