File size: 688 Bytes
80d4bc1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
declare namespace API {
  type TaskType = "monitor" | "quickMessage" | "joinGroup" | "scrapeLinks";
  interface PersonalAccount {
    id?: string;
    apiKey: string;
    hash: string;
    session: string;
    phoneNumber: string;
    state: string;
    isActive: boolean;
    createdAt: string;
    updatedAt: string;
    name: string;
    userId: string;
  }


  interface TaskData {
    senderUsernames: string[];
    receiverUsernames: string[];
  }

  interface Task {
    id?: string;
    personalAccountId: string;
    taskType: TaskType;
    taskData: TaskData;
    state: string;
    isActive: boolean;
    lastRunAt?: string;
    createdAt: string;
    updatedAt: string;
  }
}