evolution-api-sdk
Version:
Unofficial SDK for the Evolution Whatsapp API v2
31 lines (28 loc) • 975 B
text/typescript
import { ChatId, GroupJid, Jid } from '../../../types/tags.mjs';
interface FindAllChatsResponseRaw {
id: string;
remoteJid: string;
name?: string | null;
labels?: string[] | null;
createdAt: string | Date;
updatedAt: string | Date;
pushName?: string | null;
profilePicUrl?: string | null;
}
interface FindAllChatsResponseItem {
id: ChatId;
jid: GroupJid | Jid;
phoneNumber: string;
name?: string;
labels?: string[];
createdAt: Date;
updatedAt: Date;
pushName?: string;
pictureUrl?: string;
}
type FindAllChatsResponse = FindAllChatsResponseItem[];
declare const FindAllChatsResponseTransform: (chats: FindAllChatsResponseRaw[]) => FindAllChatsResponse;
declare const ResponseSchema: {
parse: (chats: FindAllChatsResponseRaw[]) => FindAllChatsResponse;
};
export { type FindAllChatsResponse, type FindAllChatsResponseItem, type FindAllChatsResponseRaw, FindAllChatsResponseTransform, ResponseSchema };