mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-20 19:19:24 -06:00

- Added new fields `ownerJid`, `profileName`, and `profilePicUrl` to the Instance DTO for improved user identification and personalization. - Updated InstanceController to include the new profile information in instance data handling. - Enhanced WAMonitoringService to utilize the additional profile fields, improving the context of instance data during monitoring operations.
59 lines
1.4 KiB
TypeScript
59 lines
1.4 KiB
TypeScript
import { IntegrationDto } from '@api/integrations/integration.dto';
|
|
import { JsonValue } from '@prisma/client/runtime/library';
|
|
import { WAPresence } from 'baileys';
|
|
|
|
export class InstanceDto extends IntegrationDto {
|
|
instanceName: string;
|
|
instanceId?: string;
|
|
qrcode?: boolean;
|
|
businessId?: string;
|
|
number?: string;
|
|
integration?: string;
|
|
token?: string;
|
|
status?: string;
|
|
ownerJid?: string;
|
|
profileName?: string;
|
|
profilePicUrl?: string;
|
|
// settings
|
|
rejectCall?: boolean;
|
|
msgCall?: string;
|
|
groupsIgnore?: boolean;
|
|
alwaysOnline?: boolean;
|
|
readMessages?: boolean;
|
|
readStatus?: boolean;
|
|
syncFullHistory?: boolean;
|
|
wavoipToken?: string;
|
|
// proxy
|
|
proxyHost?: string;
|
|
proxyPort?: string;
|
|
proxyProtocol?: string;
|
|
proxyUsername?: string;
|
|
proxyPassword?: string;
|
|
webhook?: {
|
|
enabled?: boolean;
|
|
events?: string[];
|
|
headers?: JsonValue;
|
|
url?: string;
|
|
byEvents?: boolean;
|
|
base64?: boolean;
|
|
};
|
|
chatwootAccountId?: string;
|
|
chatwootConversationPending?: boolean;
|
|
chatwootAutoCreate?: boolean;
|
|
chatwootDaysLimitImportMessages?: number;
|
|
chatwootImportContacts?: boolean;
|
|
chatwootImportMessages?: boolean;
|
|
chatwootLogo?: string;
|
|
chatwootMergeBrazilContacts?: boolean;
|
|
chatwootNameInbox?: string;
|
|
chatwootOrganization?: string;
|
|
chatwootReopenConversation?: boolean;
|
|
chatwootSignMsg?: boolean;
|
|
chatwootToken?: string;
|
|
chatwootUrl?: string;
|
|
}
|
|
|
|
export class SetPresenceDto {
|
|
presence: WAPresence;
|
|
}
|