mirror of
https://github.com/cheveguerra/api-whatsapp-ts.git
synced 2026-04-17 19:36:18 +00:00
8 lines
352 B
TypeScript
8 lines
352 B
TypeScript
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>
|
|
}
|