init: scripts diversos (crawlers, conversores, scrapers)

This commit is contained in:
2026-03-05 20:38:36 +00:00
commit 6ac6f4be2a
925 changed files with 850330 additions and 0 deletions

50
email-cleaner/types.ts Executable file
View File

@@ -0,0 +1,50 @@
/**
* types.ts
*
* @author Descomplicar® Crescimento Digital
* @link https://descomplicar.pt
* @copyright 2025 Descomplicar®
*/
export interface Email {
id: number;
sender: string;
subject: string;
snippet: string;
timestamp: string;
}
export enum EmailCategory {
PROMOTIONS = 'PROMOÇÕES',
NOTIFICATIONS = 'NOTIFICAÇÕES',
IMPORTANT = 'IMPORTANTE',
NEWSLETTERS = 'NEWSLETTERS',
SPAM = 'SPAM',
UNKNOWN = 'DESCONHECIDO'
}
export interface ClassifiedCategory {
category: EmailCategory | string;
summary: string;
email_ids: number[];
}
export interface CategorizedEmails {
[key: string]: {
summary: string;
emails: Email[];
};
}
export interface Account {
id: number;
email: string;
provider: 'gmail' | 'outlook' | 'yahoo' | 'imap';
avatar: string;
}
export interface CrmSettings {
url: string;
token: string;
autoDeleteTickets: boolean;
}