135 lines
4.2 KiB
TypeScript
135 lines
4.2 KiB
TypeScript
import { EmailExistsResult, EmailOperationResult } from './types.js';
|
|
export declare function getAllProviderConfigs(): Promise<{
|
|
id: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
type: import(".prisma/client").$Enums.EmailProviderType;
|
|
isDefault: boolean;
|
|
apiUrl: string;
|
|
apiKey: string | null;
|
|
username: string | null;
|
|
passwordEncrypted: string | null;
|
|
domain: string;
|
|
defaultForwardEmail: string | null;
|
|
}[]>;
|
|
export declare function getProviderConfigById(id: number): Promise<{
|
|
id: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
type: import(".prisma/client").$Enums.EmailProviderType;
|
|
isDefault: boolean;
|
|
apiUrl: string;
|
|
apiKey: string | null;
|
|
username: string | null;
|
|
passwordEncrypted: string | null;
|
|
domain: string;
|
|
defaultForwardEmail: string | null;
|
|
} | null>;
|
|
export declare function getDefaultProviderConfig(): Promise<{
|
|
id: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
type: import(".prisma/client").$Enums.EmailProviderType;
|
|
isDefault: boolean;
|
|
apiUrl: string;
|
|
apiKey: string | null;
|
|
username: string | null;
|
|
passwordEncrypted: string | null;
|
|
domain: string;
|
|
defaultForwardEmail: string | null;
|
|
} | null>;
|
|
export declare function getActiveProviderConfig(): Promise<{
|
|
id: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
type: import(".prisma/client").$Enums.EmailProviderType;
|
|
isDefault: boolean;
|
|
apiUrl: string;
|
|
apiKey: string | null;
|
|
username: string | null;
|
|
passwordEncrypted: string | null;
|
|
domain: string;
|
|
defaultForwardEmail: string | null;
|
|
} | null>;
|
|
export interface CreateProviderConfigData {
|
|
name: string;
|
|
type: 'PLESK' | 'CPANEL' | 'DIRECTADMIN';
|
|
apiUrl: string;
|
|
apiKey?: string;
|
|
username?: string;
|
|
password?: string;
|
|
domain: string;
|
|
defaultForwardEmail?: string;
|
|
isActive?: boolean;
|
|
isDefault?: boolean;
|
|
}
|
|
export declare function createProviderConfig(data: CreateProviderConfigData): Promise<{
|
|
id: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
type: import(".prisma/client").$Enums.EmailProviderType;
|
|
isDefault: boolean;
|
|
apiUrl: string;
|
|
apiKey: string | null;
|
|
username: string | null;
|
|
passwordEncrypted: string | null;
|
|
domain: string;
|
|
defaultForwardEmail: string | null;
|
|
}>;
|
|
export declare function updateProviderConfig(id: number, data: Partial<CreateProviderConfigData>): Promise<{
|
|
id: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
type: import(".prisma/client").$Enums.EmailProviderType;
|
|
isDefault: boolean;
|
|
apiUrl: string;
|
|
apiKey: string | null;
|
|
username: string | null;
|
|
passwordEncrypted: string | null;
|
|
domain: string;
|
|
defaultForwardEmail: string | null;
|
|
}>;
|
|
export declare function deleteProviderConfig(id: number): Promise<{
|
|
id: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
type: import(".prisma/client").$Enums.EmailProviderType;
|
|
isDefault: boolean;
|
|
apiUrl: string;
|
|
apiKey: string | null;
|
|
username: string | null;
|
|
passwordEncrypted: string | null;
|
|
domain: string;
|
|
defaultForwardEmail: string | null;
|
|
}>;
|
|
export declare function checkEmailExists(localPart: string): Promise<EmailExistsResult>;
|
|
export declare function provisionEmail(localPart: string, customerEmail: string): Promise<EmailOperationResult>;
|
|
export declare function deprovisionEmail(localPart: string): Promise<EmailOperationResult>;
|
|
export declare function renameProvisionedEmail(oldLocalPart: string, newLocalPart: string): Promise<EmailOperationResult>;
|
|
export declare function getProviderDomain(): Promise<string | null>;
|
|
export declare function testProviderConnection(options?: {
|
|
id?: number;
|
|
testData?: {
|
|
type: 'PLESK' | 'CPANEL' | 'DIRECTADMIN';
|
|
apiUrl: string;
|
|
apiKey?: string;
|
|
username?: string;
|
|
password?: string;
|
|
domain: string;
|
|
};
|
|
}): Promise<EmailOperationResult>;
|
|
//# sourceMappingURL=emailProviderService.d.ts.map
|