Complete S01 Gmail matching and import workflow
This commit is contained in:
@@ -125,8 +125,66 @@ export interface CorrespondenceMessage {
|
||||
subject?: string;
|
||||
channel?: string;
|
||||
date: string;
|
||||
externalMessageId?: string | null;
|
||||
externalThreadId?: string | null;
|
||||
externalFrom?: string | null;
|
||||
externalTo?: string | null;
|
||||
}
|
||||
|
||||
export interface GmailJobMatchReason {
|
||||
label: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface GmailJobMatchedMessage {
|
||||
id: string;
|
||||
threadId: string;
|
||||
subject: string;
|
||||
from: string;
|
||||
to: string;
|
||||
date?: string;
|
||||
snippet: string;
|
||||
score: number;
|
||||
confidence: string;
|
||||
alreadyImported: boolean;
|
||||
matchReasons: GmailJobMatchReason[];
|
||||
}
|
||||
|
||||
export interface GmailJobMatchedThread {
|
||||
threadId: string;
|
||||
subject: string;
|
||||
score: number;
|
||||
confidence: string;
|
||||
hasImportedMessages: boolean;
|
||||
messageCount: number;
|
||||
latestDate?: string;
|
||||
matchReasons: GmailJobMatchReason[];
|
||||
messages: GmailJobMatchedMessage[];
|
||||
}
|
||||
|
||||
export interface GmailJobMatchesResponse {
|
||||
jobApplicationId: number;
|
||||
jobTitle: string;
|
||||
companyName: string;
|
||||
recruiterName?: string | null;
|
||||
recruiterEmail?: string | null;
|
||||
queries: string[];
|
||||
threads: GmailJobMatchedThread[];
|
||||
}
|
||||
|
||||
export interface GmailImportMessageResult {
|
||||
imported: number;
|
||||
skipped: number;
|
||||
messageId: string;
|
||||
threadId?: string | null;
|
||||
message?: CorrespondenceMessage | null;
|
||||
}
|
||||
|
||||
export interface GmailImportThreadResult {
|
||||
imported: number;
|
||||
skipped: number;
|
||||
threadId?: string | null;
|
||||
}
|
||||
|
||||
export interface GmailStatus {
|
||||
connected: boolean;
|
||||
|
||||
Reference in New Issue
Block a user