evolution-api-sdk
Version:
Unofficial SDK for the Evolution Whatsapp API v2
55 lines (52 loc) • 1.37 kB
TypeScript
import { Jid } from '../../../types/tags.js';
interface Setting {
id: string;
rejectCall: boolean;
msgCall: string;
groupsIgnore: boolean;
alwaysOnline: boolean;
readMessages: boolean;
readStatus: boolean;
syncFullHistory: boolean;
wavoipToken: string;
createdAt: string;
updatedAt: string;
instanceId: string;
}
interface Count {
Message: number;
Contact: number;
Chat: number;
}
interface InstanceDetails {
id: string;
name: string;
connectionStatus: "open" | "close" | "connecting";
ownerJid: Jid;
profileName: string;
profilePicUrl: string | null;
profileStatus?: string;
integration: string;
number: string | null;
businessId: string | null;
token: string;
clientName: string;
disconnectionReasonCode: string | number | null;
disconnectionObject: unknown | null;
disconnectionAt: string | null;
createdAt: string;
updatedAt: string;
Chatwoot: unknown | null;
Proxy: unknown | null;
Rabbitmq: unknown | null;
Nats: unknown | null;
Sqs: unknown | null;
Websocket: unknown | null;
Setting: Setting | null;
_count: Count;
}
type FetchAllResponse = InstanceDetails[];
interface FetchAllRequest {
instanceName?: string;
}
export type { Count, FetchAllRequest, FetchAllResponse, InstanceDetails, Setting };