40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
import { BulkSyncResult } from './listmonk.client';
|
|
export declare const SUPPORT_LEVEL_LIST_MAP: Record<string, string>;
|
|
declare class ListmonkSyncService {
|
|
private listIds;
|
|
private initialized;
|
|
private lastSyncAt;
|
|
private lastError;
|
|
initializeLists(): Promise<void>;
|
|
ensureInitialized(): Promise<void>;
|
|
getListId(name: string): number | undefined;
|
|
syncCampaignParticipants(): Promise<BulkSyncResult>;
|
|
syncLocations(): Promise<BulkSyncResult>;
|
|
syncUsers(): Promise<BulkSyncResult>;
|
|
syncCrmTags(): Promise<BulkSyncResult>;
|
|
syncAll(): Promise<{
|
|
participants: BulkSyncResult;
|
|
locations: BulkSyncResult;
|
|
users: BulkSyncResult;
|
|
crmTags: BulkSyncResult;
|
|
}>;
|
|
getStatus(): {
|
|
enabled: boolean;
|
|
connected: boolean;
|
|
initialized: boolean;
|
|
lastSyncAt: string | null;
|
|
lastError: string | null;
|
|
};
|
|
getStats(): Promise<{
|
|
lists: Array<{
|
|
name: string;
|
|
subscriberCount: number;
|
|
}>;
|
|
}>;
|
|
reinitialize(): Promise<void>;
|
|
setLastSyncAt(date: Date): void;
|
|
setLastError(error: string | null): void;
|
|
}
|
|
export declare const listmonkSyncService: ListmonkSyncService;
|
|
export {};
|
|
//# sourceMappingURL=listmonk-sync.service.d.ts.map
|