This commit is contained in:
Leifer Mendez
2022-08-15 13:04:36 +02:00
parent 97226d78e0
commit 47f1ddfbb0
32 changed files with 2465 additions and 62 deletions

View File

@@ -0,0 +1,7 @@
export default interface DbRepository {
getAnswer(): Promise<string>;
findLastContact(phone: string): Promise<number>;
findLastMsg(phone: string): Promise<{ msg: string; step:string, contextId: string }>;
findGreetMessage(): Promise<string>;
saveRecord({msg, phone, contextId}:{msg:string, phone:string, contextId:string}):Promise<boolean>
}