mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-01-08 13:00:24 -06:00
Squashed commit of the following:
commitfb6e58b3c4Merge:1d3d55767e9845Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Wed Jul 26 09:39:37 2023 -0300 Merge branch 'release/1.4.5' commit67e98456bbAuthor: Davidson Gomes <davidsongviolao@gmail.com> Date: Wed Jul 26 09:39:27 2023 -0300 fix: Fix mids going duplicated in chatwoot commit3e47420534Merge:3f419741d3d557Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Wed Jul 26 09:38:44 2023 -0300 Merge tag '1.4.5' into develop * Fixed problems in localization template in chatwoot * Fix mids going duplicated in chatwoot commit1d3d557c43Merge:6b926dc3f41974Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Wed Jul 26 09:38:36 2023 -0300 Merge branch 'release/1.4.5' commit3f41974a75Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Wed Jul 26 09:38:22 2023 -0300 fix: Fix mids going duplicated in chatwoot commit3e3c7397a5Merge:de0c9a1dcb5170Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Wed Jul 26 09:36:10 2023 -0300 Merge branch 'develop' of github.com:EvolutionAPI/evolution-api into develop commitdcb51702e7Merge:4769d75dd0c1e2Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Wed Jul 26 09:36:01 2023 -0300 Merge pull request #30 from codephix/patch-1 Update whatsapp.service.ts commitde0c9a1effAuthor: Davidson Gomes <davidsongviolao@gmail.com> Date: Wed Jul 26 09:34:10 2023 -0300 fix: fixed problems in localization template commitdd0c1e20a7Author: CodePhix <contato@codephix.com> Date: Tue Jul 25 19:59:42 2023 -0300 Update whatsapp.service.ts commit4769d75dc3Merge:ecae0776b926dcAuthor: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 16:20:04 2023 -0300 Merge tag '1.4.4' into develop * Fixed chatwoot line wrap issue * Solved receive location in chatwoot * When requesting the pairing code, it also brings the qr code * Option reopen_conversation in chatwoot endpoint * Option conversation_pending in chatwoot endpoint commit6b926dc697Merge:2b6dbfdecae077Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 16:19:54 2023 -0300 Merge branch 'release/1.4.4' commitecae077c6dAuthor: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 16:16:49 2023 -0300 fix: Option conversation_pending in chatwoot endpoint commit78ab1bed35Merge:6bb1abd2b6dbfdAuthor: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 15:31:16 2023 -0300 Merge tag '1.4.4' into develop * Fixed chatwoot line wrap issue * Solved receive location in chatwoot * When requesting the pairing code, it also brings the qr code * Option reopen_conversation in chatwoot endpoint * Option conversation_pending in chatwoot endpoint commit2b6dbfde6bMerge:82b15676bb1abdAuthor: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 15:31:06 2023 -0300 Merge branch 'release/1.4.4' commit6bb1abd7f0Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 15:29:42 2023 -0300 fix: Option conversation_pending in chatwoot endpoint commitaef92240ccAuthor: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 15:20:21 2023 -0300 fix: Option conversation_pending in chatwoot endpoint commitf0d8c2d095Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 13:19:15 2023 -0300 fix: Solved receive location in chatwoot commit14529f2c35Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 12:47:35 2023 -0300 fix: When requesting the pairing code, it also brings the qr code commit89f40d54d9Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 12:41:54 2023 -0300 fix: Solved receive location in chatwoot commit4c006970a2Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 11:52:26 2023 -0300 fix: Fixed chatwoot line wrap issue commitde676041dfMerge:1cd729182b1567Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 10:51:53 2023 -0300 Merge tag '1.4.3' into develop * Adjusts in settings with options always_online, read_messages and read_status * Fixed send webhook for event CALL * Create instance with settings commit82b1567ae5Merge:f95f3121cd7291Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 10:51:42 2023 -0300 Merge branch 'release/1.4.3' commit1cd7291068Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 10:51:28 2023 -0300 version: 1.4.3 commitfdee1df5b3Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 10:42:45 2023 -0300 fix: Create instance with settings commitc314d00ccdAuthor: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 10:42:34 2023 -0300 fix: Create instance with settings commit62e2a8a6e3Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 10:23:18 2023 -0300 fix: Fixed send webhook for event CALL commita12231a0aaAuthor: Davidson Gomes <davidsongviolao@gmail.com> Date: Tue Jul 25 09:57:28 2023 -0300 fix: Adjusts in settings with options always_online, read_messages and read_status commit183efd427aMerge:4d9ca4bf95f312Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Mon Jul 24 20:52:58 2023 -0300 Merge tag '1.4.2' into develop * Fixed validation is set settings * Adjusts in group validations * Ajusts in sticker message to chatwoot commitf95f3126c3Merge:cc91f2e4d9ca4bAuthor: Davidson Gomes <davidsongviolao@gmail.com> Date: Mon Jul 24 20:52:46 2023 -0300 Merge branch 'release/1.4.2' commit4d9ca4b451Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Mon Jul 24 20:52:34 2023 -0300 version: 1.4.2 commitc76334a68aAuthor: Davidson Gomes <davidsongviolao@gmail.com> Date: Mon Jul 24 20:32:29 2023 -0300 fix: Ajusts in sticker message to chatwoot commitf475391ba6Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Mon Jul 24 20:32:15 2023 -0300 fix: Ajusts in sticker message to chatwoot commitb77f22790bAuthor: Davidson Gomes <davidsongviolao@gmail.com> Date: Mon Jul 24 20:13:18 2023 -0300 fix: Fixed validation is set settings commit757a578c6eMerge:c582476f8e1892Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Mon Jul 24 20:12:51 2023 -0300 Merge branch 'develop' of github.com:EvolutionAPI/evolution-api into develop commitc5824767c8Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Mon Jul 24 20:11:49 2023 -0300 fix: Fixed validation is set settings commit84f3f07279Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Mon Jul 24 20:11:15 2023 -0300 fix: Fixed validation is set settings commitf8e1892eeeMerge:036a8ed58ed6f3Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Mon Jul 24 20:08:24 2023 -0300 fix: group validation Group validation commit036a8edca0Merge:3d8e6f4ef4be6aAuthor: Davidson Gomes <davidsongviolao@gmail.com> Date: Mon Jul 24 20:07:05 2023 -0300 fix: Promote All Participants in Create Group Promote All Participants in Create Group commit58ed6f395fAuthor: Alan Mosko <moskoweb@gmail.com> Date: Mon Jul 24 19:59:09 2023 -0300 Validação de Grupo commitef4be6a612Author: Alan Mosko <moskoweb@gmail.com> Date: Mon Jul 24 19:53:03 2023 -0300 Start commit3d8e6f4394Merge:8b6e5770cc1f18Author: Davidson Gomes <davidsongviolao@gmail.com> Date: Mon Jul 24 19:08:39 2023 -0300 fix: Fixed mentions Fixed mentions commit0cc1f18a7eAuthor: Alan Mosko <moskoweb@gmail.com> Date: Mon Jul 24 19:05:32 2023 -0300 [BUG] Correção de mencionar Caso seja enviado everyOne como false sem passar nada no mentioned commit8b6e577b8fMerge:f9abd90cc91f2eAuthor: Davidson Gomes <davidsongviolao@gmail.com> Date: Mon Jul 24 18:28:57 2023 -0300 Merge tag '1.4.1' into develop * Fixed reconnect with pairing code or qrcode * Fixed problem in createJid
This commit is contained in:
@@ -1,84 +1,93 @@
|
||||
import { proto, WAPrivacyOnlineValue, WAPrivacyValue, WAReadReceiptsValue } from '@whiskeysockets/baileys';
|
||||
import {
|
||||
WAPrivacyOnlineValue,
|
||||
WAPrivacyValue,
|
||||
WAReadReceiptsValue,
|
||||
proto,
|
||||
} from '@whiskeysockets/baileys';
|
||||
|
||||
export class OnWhatsAppDto {
|
||||
constructor(public readonly jid: string, public readonly exists: boolean, public readonly name?: string) {}
|
||||
constructor(
|
||||
public readonly jid: string,
|
||||
public readonly exists: boolean,
|
||||
public readonly name?: string,
|
||||
) {}
|
||||
}
|
||||
|
||||
export class getBase64FromMediaMessageDto {
|
||||
message: proto.WebMessageInfo;
|
||||
convertToMp4?: boolean;
|
||||
message: proto.WebMessageInfo;
|
||||
convertToMp4?: boolean;
|
||||
}
|
||||
|
||||
export class WhatsAppNumberDto {
|
||||
numbers: string[];
|
||||
numbers: string[];
|
||||
}
|
||||
|
||||
export class NumberDto {
|
||||
number: string;
|
||||
number: string;
|
||||
}
|
||||
|
||||
export class NumberBusiness {
|
||||
wid?: string;
|
||||
jid?: string;
|
||||
exists?: boolean;
|
||||
isBusiness: boolean;
|
||||
name?: string;
|
||||
message?: string;
|
||||
description?: string;
|
||||
email?: string;
|
||||
website?: string[];
|
||||
address?: string;
|
||||
wid?: string;
|
||||
jid?: string;
|
||||
exists?: boolean;
|
||||
isBusiness: boolean;
|
||||
name?: string;
|
||||
message?: string;
|
||||
description?: string;
|
||||
email?: string;
|
||||
website?: string[];
|
||||
address?: string;
|
||||
}
|
||||
|
||||
export class ProfileNameDto {
|
||||
name: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export class ProfileStatusDto {
|
||||
status: string;
|
||||
status: string;
|
||||
}
|
||||
|
||||
export class ProfilePictureDto {
|
||||
number?: string;
|
||||
// url or base64
|
||||
picture?: string;
|
||||
number?: string;
|
||||
// url or base64
|
||||
picture?: string;
|
||||
}
|
||||
|
||||
class Key {
|
||||
id: string;
|
||||
fromMe: boolean;
|
||||
remoteJid: string;
|
||||
id: string;
|
||||
fromMe: boolean;
|
||||
remoteJid: string;
|
||||
}
|
||||
export class ReadMessageDto {
|
||||
readMessages: Key[];
|
||||
read_messages: Key[];
|
||||
}
|
||||
|
||||
class LastMessage {
|
||||
key: Key;
|
||||
messageTimestamp?: number;
|
||||
key: Key;
|
||||
messageTimestamp?: number;
|
||||
}
|
||||
|
||||
export class ArchiveChatDto {
|
||||
lastMessage: LastMessage;
|
||||
archive: boolean;
|
||||
lastMessage: LastMessage;
|
||||
archive: boolean;
|
||||
}
|
||||
|
||||
class PrivacySetting {
|
||||
readreceipts: WAReadReceiptsValue;
|
||||
profile: WAPrivacyValue;
|
||||
status: WAPrivacyValue;
|
||||
online: WAPrivacyOnlineValue;
|
||||
last: WAPrivacyValue;
|
||||
groupadd: WAPrivacyValue;
|
||||
readreceipts: WAReadReceiptsValue;
|
||||
profile: WAPrivacyValue;
|
||||
status: WAPrivacyValue;
|
||||
online: WAPrivacyOnlineValue;
|
||||
last: WAPrivacyValue;
|
||||
groupadd: WAPrivacyValue;
|
||||
}
|
||||
|
||||
export class PrivacySettingDto {
|
||||
privacySettings: PrivacySetting;
|
||||
privacySettings: PrivacySetting;
|
||||
}
|
||||
|
||||
export class DeleteMessage {
|
||||
id: string;
|
||||
fromMe: boolean;
|
||||
remoteJid: string;
|
||||
participant?: string;
|
||||
id: string;
|
||||
fromMe: boolean;
|
||||
remoteJid: string;
|
||||
participant?: string;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
export class ChatwootDto {
|
||||
enabled?: boolean;
|
||||
account_id?: string;
|
||||
token?: string;
|
||||
url?: string;
|
||||
name_inbox?: string;
|
||||
sign_msg?: boolean;
|
||||
number?: string;
|
||||
enabled?: boolean;
|
||||
account_id?: string;
|
||||
token?: string;
|
||||
url?: string;
|
||||
name_inbox?: string;
|
||||
sign_msg?: boolean;
|
||||
number?: string;
|
||||
reopen_conversation?: boolean;
|
||||
conversation_pending?: boolean;
|
||||
}
|
||||
|
||||
@@ -1,51 +1,52 @@
|
||||
export class CreateGroupDto {
|
||||
subject: string;
|
||||
description?: string;
|
||||
participants: string[];
|
||||
subject: string;
|
||||
participants: string[];
|
||||
description?: string;
|
||||
promoteParticipants?: boolean;
|
||||
}
|
||||
|
||||
export class GroupPictureDto {
|
||||
groupJid: string;
|
||||
image: string;
|
||||
groupJid: string;
|
||||
image: string;
|
||||
}
|
||||
|
||||
export class GroupSubjectDto {
|
||||
groupJid: string;
|
||||
subject: string;
|
||||
groupJid: string;
|
||||
subject: string;
|
||||
}
|
||||
|
||||
export class GroupDescriptionDto {
|
||||
groupJid: string;
|
||||
description: string;
|
||||
groupJid: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export class GroupJid {
|
||||
groupJid: string;
|
||||
groupJid: string;
|
||||
}
|
||||
|
||||
export class GetParticipant {
|
||||
getParticipants: string;
|
||||
getParticipants: string;
|
||||
}
|
||||
|
||||
export class GroupInvite {
|
||||
inviteCode: string;
|
||||
inviteCode: string;
|
||||
}
|
||||
|
||||
export class GroupSendInvite {
|
||||
groupJid: string;
|
||||
description: string;
|
||||
numbers: string[];
|
||||
groupJid: string;
|
||||
description: string;
|
||||
numbers: string[];
|
||||
}
|
||||
|
||||
export class GroupUpdateParticipantDto extends GroupJid {
|
||||
action: 'add' | 'remove' | 'promote' | 'demote';
|
||||
participants: string[];
|
||||
action: 'add' | 'remove' | 'promote' | 'demote';
|
||||
participants: string[];
|
||||
}
|
||||
|
||||
export class GroupUpdateSettingDto extends GroupJid {
|
||||
action: 'announcement' | 'not_announcement' | 'unlocked' | 'locked';
|
||||
action: 'announcement' | 'not_announcement' | 'unlocked' | 'locked';
|
||||
}
|
||||
|
||||
export class GroupToggleEphemeralDto extends GroupJid {
|
||||
expiration: 0 | 86400 | 604800 | 7776000;
|
||||
expiration: 0 | 86400 | 604800 | 7776000;
|
||||
}
|
||||
|
||||
@@ -1,13 +1,21 @@
|
||||
export class InstanceDto {
|
||||
instanceName: string;
|
||||
webhook?: string;
|
||||
webhook_by_events?: boolean;
|
||||
events?: string[];
|
||||
qrcode?: boolean;
|
||||
number?: string;
|
||||
token?: string;
|
||||
chatwoot_account_id?: string;
|
||||
chatwoot_token?: string;
|
||||
chatwoot_url?: string;
|
||||
chatwoot_sign_msg?: boolean;
|
||||
instanceName: string;
|
||||
qrcode?: boolean;
|
||||
number?: string;
|
||||
token?: string;
|
||||
webhook?: string;
|
||||
webhook_by_events?: boolean;
|
||||
events?: string[];
|
||||
reject_call?: boolean;
|
||||
msg_call?: string;
|
||||
groups_ignore?: boolean;
|
||||
always_online?: boolean;
|
||||
read_messages?: boolean;
|
||||
read_status?: boolean;
|
||||
chatwoot_account_id?: string;
|
||||
chatwoot_token?: string;
|
||||
chatwoot_url?: string;
|
||||
chatwoot_sign_msg?: boolean;
|
||||
chatwoot_reopen_conversation?: boolean;
|
||||
chatwoot_conversation_pending?: boolean;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
export class SettingsDto {
|
||||
reject_call?: boolean;
|
||||
msg_call?: string;
|
||||
groups_ignore?: boolean;
|
||||
reject_call?: boolean;
|
||||
msg_call?: string;
|
||||
groups_ignore?: boolean;
|
||||
always_online?: boolean;
|
||||
read_messages?: boolean;
|
||||
read_status?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user