cecon-interfaces 1.2.27 → 1.2.30
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/evolution/entities/chatwoot.entity.mjs +20 -0
- package/dist/esm2022/evolution/entities/index.mjs +4 -2
- package/dist/esm2022/evolution/entities/instance.entity.mjs +9 -4
- package/dist/esm2022/evolution/entities/typebot.entity.mjs +27 -0
- package/dist/esm2022/evolution/entities/webhook.entity.mjs +29 -0
- package/dist/esm2022/evolution/enums/events.enum.mjs +2 -1
- package/dist/esm2022/evolution/interfaces/i-instance.mjs +1 -1
- package/dist/esm2022/evolution/interfaces/i-typebot.mjs +2 -0
- package/dist/esm2022/evolution/interfaces/i-webhook.mjs +2 -0
- package/dist/esm2022/evolution/interfaces/index.mjs +2 -2
- package/dist/esm2022/evolution/interfaces/send-messages/i-message-key.mjs +2 -0
- package/dist/esm2022/evolution/interfaces/send-messages/i-message.mjs +2 -0
- package/dist/esm2022/evolution/interfaces/send-messages/index.mjs +2 -0
- package/dist/esm2022/global-settings/entities/global-setting-master.entity.mjs +5 -3
- package/dist/esm2022/global-settings/interfaces/i-global-setting-master.mjs +1 -1
- package/dist/evolution/entities/index.d.ts +3 -1
- package/dist/evolution/entities/index.js +7 -3
- package/dist/evolution/entities/instance.entity.d.ts +7 -2
- package/dist/evolution/entities/instance.entity.js +8 -3
- package/dist/evolution/entities/typebot.entity.d.ts +17 -0
- package/dist/evolution/entities/typebot.entity.js +34 -0
- package/dist/evolution/entities/webhook.entity.d.ts +10 -0
- package/dist/evolution/entities/webhook.entity.js +33 -0
- package/dist/evolution/enums/events.enum.d.ts +1 -0
- package/dist/evolution/enums/events.enum.js +1 -0
- package/dist/evolution/interfaces/i-instance.d.ts +7 -1
- package/dist/evolution/interfaces/i-typebot.d.ts +13 -0
- package/dist/evolution/interfaces/i-typebot.js +2 -0
- package/dist/evolution/interfaces/i-webhook.d.ts +8 -0
- package/dist/evolution/interfaces/i-webhook.js +2 -0
- package/dist/evolution/interfaces/index.d.ts +3 -0
- package/dist/evolution/interfaces/index.js +15 -0
- package/dist/evolution/interfaces/send-messages/i-message-key.d.ts +5 -0
- package/dist/evolution/interfaces/send-messages/i-message-key.js +2 -0
- package/dist/evolution/interfaces/send-messages/i-message.d.ts +7 -0
- package/dist/evolution/interfaces/send-messages/i-message.js +2 -0
- package/dist/evolution/interfaces/send-messages/index.d.ts +2 -0
- package/dist/evolution/interfaces/send-messages/index.js +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +69 -6
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/global-settings/entities/global-setting-master.entity.d.ts +2 -0
- package/dist/global-settings/entities/global-setting-master.entity.js +4 -2
- package/dist/global-settings/interfaces/i-global-setting-master.d.ts +5 -3
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/dist/esm2022/evolution/entities/chat-woot.entity.mjs +0 -20
- /package/dist/evolution/entities/{chat-woot.entity.d.ts → chatwoot.entity.d.ts} +0 -0
- /package/dist/evolution/entities/{chat-woot.entity.js → chatwoot.entity.js} +0 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
export class EvolutionChatWootEntity {
|
2
|
+
// #region Properties (7)
|
3
|
+
accountId = '';
|
4
|
+
enabled = false;
|
5
|
+
nameInbox = '';
|
6
|
+
signMsg = false;
|
7
|
+
token = '';
|
8
|
+
url = '';
|
9
|
+
webhookUrl = '';
|
10
|
+
constructor(data) {
|
11
|
+
if (data) {
|
12
|
+
for (let key in data) {
|
13
|
+
if (data.hasOwnProperty(key) && key in this) {
|
14
|
+
this[key] = data[key];
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdHdvb3QuZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2V2b2x1dGlvbi9lbnRpdGllcy9jaGF0d29vdC5lbnRpdHkudHMiX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ljIHRva2VuOiBzdHJpbmcgPSAnJztcbiAgcHVibGljIHVybDogc3RyaW5nID0gJyc7XG4gIHB1YmxpYyB3ZWJob29rVXJsOiBzdHJpbmcgPSAnJztcblxuICBjb25zdHJ1Y3RvcihkYXRhPzogUGFydGlhbDxFdm9sdXRpb25DaGF0V29vdEVudGl0eT4pIHtcbiAgICBpZiAoZGF0YSkge1xuICAgICAgZm9yIChsZXQga2V5IGluIGRhdGEpIHtcbiAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoa2V5KSAmJiBrZXkgaW4gdGhpcykge1xuICAgICAgICAgICh0aGlzIGFzIGFueSlba2V5XSA9IChkYXRhIGFzIGFueSlba2V5XTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDcpXG59XG4iXX0=
|
@@ -1,6 +1,8 @@
|
|
1
|
-
export { EvolutionChatWootEntity } from './
|
1
|
+
export { EvolutionChatWootEntity } from './chatwoot.entity';
|
2
2
|
export { EvolutionEntity } from './evolution.entity';
|
3
3
|
export { EvolutionHashEntity } from './hash.entity';
|
4
4
|
export { EvolutionInstanceEntity } from './instance.entity';
|
5
5
|
export { EvolutionQrcodeEntity } from './qrcode.entity';
|
6
|
-
|
6
|
+
export { EvolutionTypeBotEntity } from './typebot.entity';
|
7
|
+
export { EvolutionWebhookEntity } from './webhook.entity';
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZXZvbHV0aW9uL2VudGl0aWVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQzVELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDcEQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDNUQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDeEQsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDMUQsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBFdm9sdXRpb25DaGF0V29vdEVudGl0eSB9IGZyb20gJy4vY2hhdHdvb3QuZW50aXR5JztcclxuZXhwb3J0IHsgRXZvbHV0aW9uRW50aXR5IH0gZnJvbSAnLi9ldm9sdXRpb24uZW50aXR5JztcclxuZXhwb3J0IHsgRXZvbHV0aW9uSGFzaEVudGl0eSB9IGZyb20gJy4vaGFzaC5lbnRpdHknO1xyXG5leHBvcnQgeyBFdm9sdXRpb25JbnN0YW5jZUVudGl0eSB9IGZyb20gJy4vaW5zdGFuY2UuZW50aXR5JztcclxuZXhwb3J0IHsgRXZvbHV0aW9uUXJjb2RlRW50aXR5IH0gZnJvbSAnLi9xcmNvZGUuZW50aXR5JztcclxuZXhwb3J0IHsgRXZvbHV0aW9uVHlwZUJvdEVudGl0eSB9IGZyb20gJy4vdHlwZWJvdC5lbnRpdHknO1xyXG5leHBvcnQgeyBFdm9sdXRpb25XZWJob29rRW50aXR5IH0gZnJvbSAnLi93ZWJob29rLmVudGl0eSc7XHJcbiJdfQ==
|
@@ -1,11 +1,16 @@
|
|
1
1
|
export class EvolutionInstanceEntity {
|
2
|
-
// #region Properties (
|
2
|
+
// #region Properties (10)
|
3
3
|
apikey = '';
|
4
|
-
|
4
|
+
chatwoot = null;
|
5
5
|
instanceId = '';
|
6
|
+
instanceName = '';
|
7
|
+
owner = '';
|
8
|
+
profileName = '';
|
9
|
+
profilePictureUrl = '';
|
10
|
+
profileStatus = '';
|
6
11
|
serverUrl = '';
|
7
12
|
status = '';
|
8
|
-
// #endregion Properties (
|
13
|
+
// #endregion Properties (10)
|
9
14
|
// #region Constructors (1)
|
10
15
|
constructor(data) {
|
11
16
|
if (data) {
|
@@ -17,4 +22,4 @@ export class EvolutionInstanceEntity {
|
|
17
22
|
}
|
18
23
|
}
|
19
24
|
}
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5zdGFuY2UuZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2V2b2x1dGlvbi9lbnRpdGllcy9pbnN0YW5jZS5lbnRpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxPQUFPLHVCQUF1QjtJQUNsQywwQkFBMEI7SUFFbkIsTUFBTSxHQUFXLEVBQUUsQ0FBQztJQUNwQixRQUFRLEdBQThCLElBQUksQ0FBQztJQUMzQyxVQUFVLEdBQVcsRUFBRSxDQUFDO0lBQ3hCLFlBQVksR0FBVyxFQUFFLENBQUM7SUFDMUIsS0FBSyxHQUFrQixFQUFFLENBQUM7SUFDMUIsV0FBVyxHQUFrQixFQUFFLENBQUM7SUFDaEMsaUJBQWlCLEdBQWtCLEVBQUUsQ0FBQztJQUN0QyxhQUFhLEdBQWtCLEVBQUUsQ0FBQztJQUNsQyxTQUFTLEdBQVcsRUFBRSxDQUFDO0lBQ3ZCLE1BQU0sR0FBVyxFQUFFLENBQUM7SUFFM0IsNkJBQTZCO0lBRTdCLDJCQUEyQjtJQUUzQixZQUFZLElBQXVDO1FBQ2pELElBQUksSUFBSSxFQUFFO1lBQ1IsS0FBSyxJQUFJLEdBQUcsSUFBSSxJQUFJLEVBQUU7Z0JBQ3BCLElBQUksSU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ICBjb25zdHJ1Y3RvcihkYXRhPzogUGFydGlhbDxFdm9sdXRpb25JbnN0YW5jZUVudGl0eT4pIHtcbiAgICBpZiAoZGF0YSkge1xuICAgICAgZm9yIChsZXQga2V5IGluIGRhdGEpIHtcbiAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoa2V5KSAmJiBrZXkgaW4gdGhpcykge1xuICAgICAgICAgICh0aGlzIGFzIGFueSlba2V5XSA9IChkYXRhIGFzIGFueSlba2V5XTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC8vICNlbmRyZWdpb24gQ29uc3RydWN0b3JzICgxKVxufVxuIl19
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export class EvolutionTypeBotEntity {
|
2
|
+
// #region Properties (2)
|
3
|
+
instanceName = '';
|
4
|
+
typebot = new typeBot();
|
5
|
+
// #endregion Properties (2)
|
6
|
+
// #region Constructors (1)
|
7
|
+
constructor(data) {
|
8
|
+
if (data) {
|
9
|
+
for (let key in data) {
|
10
|
+
if (data.hasOwnProperty(key) && key in this) {
|
11
|
+
this[key] = data[key];
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
class typeBot {
|
18
|
+
enabled = true;
|
19
|
+
url = '';
|
20
|
+
typebot = '';
|
21
|
+
expire = 20;
|
22
|
+
keywordFinish = '#SAIR';
|
23
|
+
delayMessage = 1000;
|
24
|
+
unknownMessage = 'Mensagem não reconhecida';
|
25
|
+
listeningFromMe = false;
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZWJvdC5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZXZvbHV0aW9uL2VudGl0aWVzL3R5cGVib3QuZW50aXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1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uICBwdWJsaWMgdHlwZWJvdDogdHlwZUJvdCA9IG5ldyB0eXBlQm90KCk7XG5cbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICgyKVxuXG4gIC8vICNyZWdpb24gQ29uc3RydWN0b3JzICgxKVxuXG4gIGNvbnN0cnVjdG9yKGRhdGE/OiBQYXJ0aWFsPEV2b2x1dGlvblR5cGVCb3RFbnRpdHk+KSB7XG4gICAgaWYgKGRhdGEpIHtcbiAgICAgIGZvciAobGV0IGtleSBpbiBkYXRhKSB7XG4gICAgICAgIGlmIChkYXRhLmhhc093blByb3BlcnR5KGtleSkgJiYga2V5IGluIHRoaXMpIHtcbiAgICAgICAgICAodGhpcyBhcyBhbnkpW2tleV0gPSAoZGF0YSBhcyBhbnkpW2tleV07XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH1cbiAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG59XG5jbGFzcyB0eXBlQm90IHtcbiAgZW5hYmxlZDogYm9vbGVhbiA9IHRydWU7XG4gIHVybDogc3RyaW5nID0gJyc7XG4gIHR5cGVib3Q6IHN0cmluZyA9ICcnO1xuICBleHBpcmU6IG51bWJlciA9IDIwO1xuICBrZXl3b3JkRmluaXNoOiBzdHJpbmcgPSAnI1NBSVInO1xuICBkZWxheU1lc3NhZ2U6IG51bWJlciA9IDEwMDA7XG4gIHVua25vd25NZXNzYWdlOiBzdHJpbmcgPSAnTWVuc2FnZW0gbsOjbyByZWNvbmhlY2lkYSc7XG4gIGxpc3RlbmluZ0Zyb21NZTogYm9vbGVhbiA9IGZhbHNlO1xufVxuIl19
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { EEvolutionEvent } from '../enums';
|
2
|
+
export class EvolutionWebhookEntity {
|
3
|
+
// #region Properties (5)
|
4
|
+
enabled = true;
|
5
|
+
events = [
|
6
|
+
EEvolutionEvent.QRCODE_UPDATED,
|
7
|
+
EEvolutionEvent.MESSAGES_UPSERT,
|
8
|
+
EEvolutionEvent.MESSAGES_UPDATE,
|
9
|
+
EEvolutionEvent.MESSAGES_DELETE,
|
10
|
+
EEvolutionEvent.SEND_MESSAGE,
|
11
|
+
EEvolutionEvent.CONNECTION_UPDATE,
|
12
|
+
EEvolutionEvent.CALL,
|
13
|
+
];
|
14
|
+
url = '';
|
15
|
+
webhookBase64 = false;
|
16
|
+
webhookByEvents = false;
|
17
|
+
// #endregion Properties (5)
|
18
|
+
// #region Constructors (1)
|
19
|
+
constructor(data) {
|
20
|
+
if (data) {
|
21
|
+
for (let key in data) {
|
22
|
+
if (data.hasOwnProperty(key) && key in this) {
|
23
|
+
this[key] = data[key];
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2ViaG9vay5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZXZvbHV0aW9uL2VudGl0aWVzL3dlYmhvb2suZW50aXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFHM0MsTUFBTSxPQUFPLHNCQUFzQjtJQUNqQyx5QkFBeUI7SUFFbEIsT0FBTyxHQUFZLElBQUksQ0FBQztJQUN4QixNQUFNLEdBQXNCO1FBQ2pDLGVBQWUsQ0FBQyxjQUFjO1FBQzlCLGVBQWUsQ0FBQyxlQUFlO1FBQy9CLGVBQWUsQ0FBQyxlQUFlO1FBQy9CLGVBQWUsQ0FBQyxlQUFlO1FBQy9CLGVBQWUsQ0FBQyxZQUFZO1FBQzVCLGVBQWUsQ0FBQyxpQkFBaUI7UUFDakMsZUFBZSxDQUFDLElBQUk7S0FDckIsQ0FBQztJQUNLLEdBQUcsR0FBVyxFQUFFLENBQUM7SUFDakIsYU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RXZlbnQuQ09OTkVDVElPTl9VUERBVEUsXG4gICAgRUV2b2x1dGlvbkV2ZW50LkNBTEwsXG4gIF07XG4gIHB1YmxpYyB1cmw6IHN0cmluZyA9ICcnO1xuICBwdWJsaWMgd2ViaG9va0Jhc2U2NDogYm9vbGVhbiA9IGZhbHNlO1xuICBwdWJsaWMgd2ViaG9va0J5RXZlbnRzOiBib29sZWFuID0gZmFsc2U7XG5cbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICg1KVxuXG4gIC8vICNyZWdpb24gQ29uc3RydWN0b3JzICgxKVxuXG4gIGNvbnN0cnVjdG9yKGRhdGE/OiBQYXJ0aWFsPEV2b2x1dGlvbldlYmhvb2tFbnRpdHk+KSB7XG4gICAgaWYgKGRhdGEpIHtcbiAgICAgIGZvciAobGV0IGtleSBpbiBkYXRhKSB7XG4gICAgICAgIGlmIChkYXRhLmhhc093blByb3BlcnR5KGtleSkgJiYga2V5IGluIHRoaXMpIHtcbiAgICAgICAgICAodGhpcyBhcyBhbnkpW2tleV0gPSAoZGF0YSBhcyBhbnkpW2tleV07XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICAvLyAjZW5kcmVnaW9uIENvbnN0cnVjdG9ycyAoMSlcbn1cbiJdfQ==
|
@@ -10,6 +10,7 @@ export var EEvolutionEvent;
|
|
10
10
|
EEvolutionEvent["CONTACTS_SET"] = "CONTACTS_SET";
|
11
11
|
EEvolutionEvent["CONTACTS_UPSERT"] = "CONTACTS_UPSERT";
|
12
12
|
EEvolutionEvent["CONTACTS_UPDATE"] = "CONTACTS_UPDATE";
|
13
|
+
EEvolutionEvent["CALL"] = "CALL";
|
13
14
|
EEvolutionEvent["PRESENCE_UPDATE"] = "PRESENCE_UPDATE";
|
14
15
|
EEvolutionEvent["CHATS_SET"] = "CHATS_SET";
|
15
16
|
EEvolutionEvent["CHATS_UPSERT"] = "CHATS_UPSERT";
|
@@ -21,4 +22,4 @@ export var EEvolutionEvent;
|
|
21
22
|
EEvolutionEvent["CONNECTION_UPDATE"] = "CONNECTION_UPDATE";
|
22
23
|
EEvolutionEvent["NEW_JWT_TOKE"] = "NEW_JWT_TOKE";
|
23
24
|
})(EEvolutionEvent || (EEvolutionEvent = {}));
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRzLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZXZvbHV0aW9uL2VudW1zL2V2ZW50cy5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLGVBc0JYO0FBdEJELFdBQVksZUFBZTtJQUN6Qiw4REFBMkMsQ0FBQTtJQUMzQyxvREFBaUMsQ0FBQTtJQUNqQyxnREFBNkIsQ0FBQTtJQUM3QixzREFBbUMsQ0FBQTtJQUNuQyxzREFBbUMsQ0FBQTtJQUNuQyxzREFBbUMsQ0FBQTtJQUNuQyxnREFBNkIsQ0FBQTtJQUM3QixnREFBNkIsQ0FBQTtJQUM3QixzREFBbUMsQ0FBQTtJQUNuQyxzREFBbUMsQ0FBQTtJQUNuQyxnQ0FBYSxDQUFBO0lBQ2Isc0RBQW1DLENBQUE7SUFDbkMsMENBQXVCLENBQUE7SUFDdkIsZ0RBQTZCLENBQUE7SUFDN0IsZ0RBQTZCLENBQUE7SUFDN0IsZ0RBQTZCLENBQUE7SUFDN0Isa0RBQStCLENBQUE7SUFDL0IsZ0RBQTZCLENBQUE7SUFDN0IsMEVBQXVELENBQUE7SUFDdkQsMERBQXVDLENBQUE7SUFDdkMsZ0RBQTZCLENBQUE7QUFDL0IsQ0FBQyxFQXRCVyxlQUFlLEtBQWYsZUFBZSxRQXNCMUIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBFRXZvbHV0aW9uRXZlb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uICBORVdfSldUX1RPS0UgPSAnTkVXX0pXVF9UT0tFJyxcclxufVxyXG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1pbnN0YW5jZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9ldm9sdXRpb24vaW50ZXJmYWNlcy9pLWluc3RhbmNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJRXZvbHV0aW9uQ2hhdFdvb3QgfSBmcm9tICcuL2ktY2hhdHdvb3QnO1xuXG5leHBvcnQgaW50ZXJmYWNlIElFdm9sdXRpb25JbnN0YW5jZSB7XG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoNylcblxuICBpbnN0YW5jZU5hbWU6IHN0cmluZztcbiAgaW5zdGFuY2VJZDogc3RyaW5nO1xuICBzdGF0dXM6ICdvcGVuJyB8ICdjbG9zZScgfCAnY29ubmVjdGluZycgfCBzdHJpbmc7XG4gIHNlcnZlclVybDogc3RyaW5nO1xuICBhcGlrZXk6IHN0cmluZztcbiAgb3duZXI6IHN0cmluZyB8IG51bGw7XG4gIHByb2ZpbGVOYW1lOiBzdHJpbmcgfCBudWxsO1xuICBwcm9maWxlUGljdHVyZVVybDogc3RyaW5nIHwgbnVsbDtcbiAgcHJvZmlsZVN0YXR1czogc3RyaW5nIHwgbnVsbDtcbiAgY2hhdHdvb3Q6IElFdm9sdXRpb25DaGF0V29vdCB8IG51bGw7XG5cbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICg3KVxufVxuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS10eXBlYm90LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2V2b2x1dGlvbi9pbnRlcmZhY2VzL2ktdHlwZWJvdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJRXZvbHV0aW9uVHlwZWJvdCB7XG4gIGluc3RhbmNlTmFtZTogc3RyaW5nO1xuICB0eXBlYm90OiB7XG4gICAgZW5hYmxlZDogYm9vbGVhbjtcbiAgICB1cmw6IHN0cmluZztcbiAgICB0eXBlYm90OiBzdHJpbmc7XG4gICAgZXhwaXJlOiBudW1iZXI7XG4gICAga2V5d29yZEZpbmlzaDogc3RyaW5nO1xuICAgIGRlbGF5TWVzc2FnZTogbnVtYmVyO1xuICAgIHVua25vd25NZXNzYWdlOiBzdHJpbmc7XG4gICAgbGlzdGVuaW5nRnJvbU1lOiBib29sZWFuO1xuICB9O1xufVxuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS13ZWJob29rLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2V2b2x1dGlvbi9pbnRlcmZhY2VzL2ktd2ViaG9vay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRUV2b2x1dGlvbkV2ZW50IH0gZnJvbSAnLi4vZW51bXMnO1xuXG5leHBvcnQgaW50ZXJmYWNlIElFdm9sdXRpb25XZWJob29rIHtcbiAgZW5hYmxlZDogYm9vbGVhbjtcbiAgdXJsOiBzdHJpbmc7XG4gIGV2ZW50czogRUV2b2x1dGlvbkV2ZW50W107XG4gIHdlYmhvb2tCeUV2ZW50czogYm9vbGVhbjtcbiAgd2ViaG9va0Jhc2U2NDogYm9vbGVhbjtcbn1cbiJdfQ==
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
export * from './send-messages';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZXZvbHV0aW9uL2ludGVyZmFjZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT0EsY0FBYyxpQkFBaUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IElFdm9sdXRpb25DaGF0V29vdCB9IGZyb20gJy4vaS1jaGF0d29vdCc7XHJcbmV4cG9ydCB7IElFdm9sdXRpb24gfSBmcm9tICcuL2ktZXZvbHV0aW9uJztcclxuZXhwb3J0IHsgSUV2b2x1dGlvbkhhc2ggfSBmcm9tICcuL2ktaGFzaCc7XHJcbmV4cG9ydCB7IElFdm9sdXRpb25JbnN0YW5jZSB9IGZyb20gJy4vaS1pbnN0YW5jZSc7XHJcbmV4cG9ydCB7IElFdm9sdXRpb25RcmNvZGUgfSBmcm9tICcuL2ktcXJjb2RlJztcclxuZXhwb3J0IHsgSUV2b2x1dGlvblR5cGVib3QgfSBmcm9tICcuL2ktdHlwZWJvdCc7XHJcbmV4cG9ydCB7IElFdm9sdXRpb25XZWJob29rIH0gZnJvbSAnLi9pLXdlYmhvb2snO1xyXG5leHBvcnQgKiBmcm9tICcuL3NlbmQtbWVzc2FnZXMnO1xyXG4iXX0=
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1tZXNzYWdlLWtleS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy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IHN0YXR1czogc3RyaW5nIHwgbnVsbDtcclxuXHJcbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICg0KVxyXG59XHJcbiJdfQ==
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvZXZvbHV0aW9uL2ludGVyZmFjZXMvc2VuZC1tZXNzYWdlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgSUV2b2x1dGlvbk1lc3NhZ2VSZXNwb25zZSB9IGZyb20gJy4vaS1tZXNzYWdlJztcclxuZXhwb3J0IHsgSUV2b2x1dGlvbk1lc3NhZ2VLZXlSZXNwb25zZSB9IGZyb20gJy4vaS1tZXNzYWdlLWtleSc7XHJcbiJdfQ==
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export class GlobalSettingMasterEntity {
|
2
|
-
// #region Properties (
|
2
|
+
// #region Properties (14)
|
3
3
|
billingDays = 10;
|
4
4
|
deleteInvoicesPlacedDays = 10;
|
5
5
|
deleteSubscriptionsPlacedDays = 10;
|
@@ -9,10 +9,12 @@ export class GlobalSettingMasterEntity {
|
|
9
9
|
subscriptionsCustomerSuspendDays = 1;
|
10
10
|
subscriptionsExpireDays = 1;
|
11
11
|
subscriptionsSuspendDays = 1;
|
12
|
+
waServerApikey = '';
|
12
13
|
waServerBaseUrl = '';
|
13
14
|
waServerGlobalKey = '';
|
15
|
+
waServerInstanceName = '';
|
14
16
|
waServerNumber = '';
|
15
|
-
// #endregion Properties (
|
17
|
+
// #endregion Properties (14)
|
16
18
|
// #region Constructors (1)
|
17
19
|
constructor(data) {
|
18
20
|
if (data) {
|
@@ -24,4 +26,4 @@ export class GlobalSettingMasterE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Bpa2V5OiBzdHJpbmcgPSAnJztcbiAgcHVibGljIHdhU2VydmVyQmFzZVVybDogc3RyaW5nID0gJyc7XG4gIHB1YmxpYyB3YVNlcnZlckdsb2JhbEtleTogc3RyaW5nID0gJyc7XG4gIHB1YmxpYyB3YVNlcnZlckluc3RhbmNlTmFtZTogc3RyaW5nID0gJyc7XG4gIHB1YmxpYyB3YVNlcnZlck51bWJlcjogc3RyaW5nID0gJyc7XG5cbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICgxNClcblxuICAvLyAjcmVnaW9uIENvbnN0cnVjdG9ycyAoMSlcblxuICBjb25zdHJ1Y3RvcihkYXRhPzogUGFydGlhbDxHbG9iYWxTZXR0aW5nTWFzdGVyRW50aXR5Pikge1xuICAgIGlmIChkYXRhKSB7XG4gICAgICBmb3IgKGxldCBrZXkgaW4gZGF0YSkge1xuICAgICAgICBpZiAoZGF0YS5oYXNPd25Qcm9wZXJ0eShrZXkpICYmIGtleSBpbiB0aGlzKSB7XG4gICAgICAgICAgKHRoaXMgYXMgYW55KVtrZXldID0gKGRhdGEgYXMgYW55KVtrZXldO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG59XG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1nbG9iYWwtc2V0dGluZy1tYXN0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZ2xvYmFsLXNldHRpbmdzL2ludGVyZmFjZXMvaS1nbG9iYWwtc2V0dGluZy1tYXN0ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSUdsb2JhbFNldHRpbmdNYXN0ZXIge1xyXG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMTQpXHJcblxyXG4gIGJpbGxpbmdEYXlzOiBudW1iZXI7XHJcbiAgZGVsZXRlSW52b2ljZXNQbGFjZWREYXlzOiBudW1iZXI7XHJcbiAgZGVsZXRlU3Vic2NyaXB0aW9uc1BsYWNlZERheXM6IG51bWJlcjtcclxuICBzdWJzY3JpcHRpb25TdXNwZW5kZWRUaW1lczogbnVtYmVyO1xyXG4gIHN1YnNjcmlwdGlvbnNDYW5jZWxEYXlzOiBudW1iZXI7XHJcbiAgc3Vic2NyaXB0aW9uc0N1c3RvbWVyQmlsbGluZ0RheXM6IG51bWJlcjtcclxuICBzdWJzY3JpcHRpb25zQ3VzdG9tZXJTdXNwZW5kRGF5czogbnVtYmVyO1xyXG4gIHN1YnNjcmlwdGlvbnNFeHBpcmVEYXlzOiBudW1iZXI7XHJcbiAgc3Vic2NyaXB0aW9uc1N1c3BlbmREYXlzOiBudW1iZXI7XHJcbiAgd2FTZXJ2ZXJBcGlrZXk6IHN0cmluZztcclxuICB3YVNlcnZlckJhc2VVcmw6IHN0cmluZztcclxuICB3YVNlcnZlckdsb2JhbEtleTogc3RyaW5nO1xyXG4gIHdhU2VydmVySW5zdGFuY2VOYW1lOiBzdHJpbmc7XHJcbiAgd2FTZXJ2ZXJOdW1iZXI6IHN0cmluZztcclxuXHJcbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICgxNClcclxufVxyXG4iXX0=
|
@@ -1,5 +1,7 @@
|
|
1
|
-
export { EvolutionChatWootEntity } from './
|
1
|
+
export { EvolutionChatWootEntity } from './chatwoot.entity';
|
2
2
|
export { EvolutionEntity } from './evolution.entity';
|
3
3
|
export { EvolutionHashEntity } from './hash.entity';
|
4
4
|
export { EvolutionInstanceEntity } from './instance.entity';
|
5
5
|
export { EvolutionQrcodeEntity } from './qrcode.entity';
|
6
|
+
export { EvolutionTypeBotEntity } from './typebot.entity';
|
7
|
+
export { EvolutionWebhookEntity } from './webhook.entity';
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EvolutionQrcodeEntity = exports.EvolutionInstanceEntity = exports.EvolutionHashEntity = exports.EvolutionEntity = exports.EvolutionChatWootEntity = void 0;
|
4
|
-
var
|
5
|
-
Object.defineProperty(exports, "EvolutionChatWootEntity", { enumerable: true, get: function () { return
|
3
|
+
exports.EvolutionWebhookEntity = exports.EvolutionTypeBotEntity = exports.EvolutionQrcodeEntity = exports.EvolutionInstanceEntity = exports.EvolutionHashEntity = exports.EvolutionEntity = exports.EvolutionChatWootEntity = void 0;
|
4
|
+
var chatwoot_entity_1 = require("./chatwoot.entity");
|
5
|
+
Object.defineProperty(exports, "EvolutionChatWootEntity", { enumerable: true, get: function () { return chatwoot_entity_1.EvolutionChatWootEntity; } });
|
6
6
|
var evolution_entity_1 = require("./evolution.entity");
|
7
7
|
Object.defineProperty(exports, "EvolutionEntity", { enumerable: true, get: function () { return evolution_entity_1.EvolutionEntity; } });
|
8
8
|
var hash_entity_1 = require("./hash.entity");
|
@@ -11,3 +11,7 @@ var instance_entity_1 = require("./instance.entity");
|
|
11
11
|
Object.defineProperty(exports, "EvolutionInstanceEntity", { enumerable: true, get: function () { return instance_entity_1.EvolutionInstanceEntity; } });
|
12
12
|
var qrcode_entity_1 = require("./qrcode.entity");
|
13
13
|
Object.defineProperty(exports, "EvolutionQrcodeEntity", { enumerable: true, get: function () { return qrcode_entity_1.EvolutionQrcodeEntity; } });
|
14
|
+
var typebot_entity_1 = require("./typebot.entity");
|
15
|
+
Object.defineProperty(exports, "EvolutionTypeBotEntity", { enumerable: true, get: function () { return typebot_entity_1.EvolutionTypeBotEntity; } });
|
16
|
+
var webhook_entity_1 = require("./webhook.entity");
|
17
|
+
Object.defineProperty(exports, "EvolutionWebhookEntity", { enumerable: true, get: function () { return webhook_entity_1.EvolutionWebhookEntity; } });
|
@@ -1,8 +1,13 @@
|
|
1
|
-
import { IEvolutionInstance } from '../interfaces';
|
1
|
+
import { IEvolutionChatWoot, IEvolutionInstance } from '../interfaces';
|
2
2
|
export declare class EvolutionInstanceEntity implements IEvolutionInstance {
|
3
3
|
apikey: string;
|
4
|
-
|
4
|
+
chatwoot: IEvolutionChatWoot | null;
|
5
5
|
instanceId: string;
|
6
|
+
instanceName: string;
|
7
|
+
owner: string | null;
|
8
|
+
profileName: string | null;
|
9
|
+
profilePictureUrl: string | null;
|
10
|
+
profileStatus: string | null;
|
6
11
|
serverUrl: string;
|
7
12
|
status: string;
|
8
13
|
constructor(data?: Partial<EvolutionInstanceEntity>);
|
@@ -2,13 +2,18 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.EvolutionInstanceEntity = void 0;
|
4
4
|
var EvolutionInstanceEntity = /** @class */ (function () {
|
5
|
-
// #endregion Properties (
|
5
|
+
// #endregion Properties (10)
|
6
6
|
// #region Constructors (1)
|
7
7
|
function EvolutionInstanceEntity(data) {
|
8
|
-
// #region Properties (
|
8
|
+
// #region Properties (10)
|
9
9
|
this.apikey = '';
|
10
|
-
this.
|
10
|
+
this.chatwoot = null;
|
11
11
|
this.instanceId = '';
|
12
|
+
this.instanceName = '';
|
13
|
+
this.owner = '';
|
14
|
+
this.profileName = '';
|
15
|
+
this.profilePictureUrl = '';
|
16
|
+
this.profileStatus = '';
|
12
17
|
this.serverUrl = '';
|
13
18
|
this.status = '';
|
14
19
|
if (data) {
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { IEvolutionTypebot } from '../interfaces/i-typebot';
|
2
|
+
export declare class EvolutionTypeBotEntity implements IEvolutionTypebot {
|
3
|
+
instanceName: string;
|
4
|
+
typebot: typeBot;
|
5
|
+
constructor(data?: Partial<EvolutionTypeBotEntity>);
|
6
|
+
}
|
7
|
+
declare class typeBot {
|
8
|
+
enabled: boolean;
|
9
|
+
url: string;
|
10
|
+
typebot: string;
|
11
|
+
expire: number;
|
12
|
+
keywordFinish: string;
|
13
|
+
delayMessage: number;
|
14
|
+
unknownMessage: string;
|
15
|
+
listeningFromMe: boolean;
|
16
|
+
}
|
17
|
+
export {};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EvolutionTypeBotEntity = void 0;
|
4
|
+
var EvolutionTypeBotEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (2)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function EvolutionTypeBotEntity(data) {
|
8
|
+
// #region Properties (2)
|
9
|
+
this.instanceName = '';
|
10
|
+
this.typebot = new typeBot();
|
11
|
+
if (data) {
|
12
|
+
for (var key in data) {
|
13
|
+
if (data.hasOwnProperty(key) && key in this) {
|
14
|
+
this[key] = data[key];
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
return EvolutionTypeBotEntity;
|
20
|
+
}());
|
21
|
+
exports.EvolutionTypeBotEntity = EvolutionTypeBotEntity;
|
22
|
+
var typeBot = /** @class */ (function () {
|
23
|
+
function typeBot() {
|
24
|
+
this.enabled = true;
|
25
|
+
this.url = '';
|
26
|
+
this.typebot = '';
|
27
|
+
this.expire = 20;
|
28
|
+
this.keywordFinish = '#SAIR';
|
29
|
+
this.delayMessage = 1000;
|
30
|
+
this.unknownMessage = 'Mensagem não reconhecida';
|
31
|
+
this.listeningFromMe = false;
|
32
|
+
}
|
33
|
+
return typeBot;
|
34
|
+
}());
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { EEvolutionEvent } from '../enums';
|
2
|
+
import { IEvolutionWebhook } from '../interfaces/i-webhook';
|
3
|
+
export declare class EvolutionWebhookEntity implements IEvolutionWebhook {
|
4
|
+
enabled: boolean;
|
5
|
+
events: EEvolutionEvent[];
|
6
|
+
url: string;
|
7
|
+
webhookBase64: boolean;
|
8
|
+
webhookByEvents: boolean;
|
9
|
+
constructor(data?: Partial<EvolutionWebhookEntity>);
|
10
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EvolutionWebhookEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var EvolutionWebhookEntity = /** @class */ (function () {
|
6
|
+
// #endregion Properties (5)
|
7
|
+
// #region Constructors (1)
|
8
|
+
function EvolutionWebhookEntity(data) {
|
9
|
+
// #region Properties (5)
|
10
|
+
this.enabled = true;
|
11
|
+
this.events = [
|
12
|
+
enums_1.EEvolutionEvent.QRCODE_UPDATED,
|
13
|
+
enums_1.EEvolutionEvent.MESSAGES_UPSERT,
|
14
|
+
enums_1.EEvolutionEvent.MESSAGES_UPDATE,
|
15
|
+
enums_1.EEvolutionEvent.MESSAGES_DELETE,
|
16
|
+
enums_1.EEvolutionEvent.SEND_MESSAGE,
|
17
|
+
enums_1.EEvolutionEvent.CONNECTION_UPDATE,
|
18
|
+
enums_1.EEvolutionEvent.CALL,
|
19
|
+
];
|
20
|
+
this.url = '';
|
21
|
+
this.webhookBase64 = false;
|
22
|
+
this.webhookByEvents = false;
|
23
|
+
if (data) {
|
24
|
+
for (var key in data) {
|
25
|
+
if (data.hasOwnProperty(key) && key in this) {
|
26
|
+
this[key] = data[key];
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
return EvolutionWebhookEntity;
|
32
|
+
}());
|
33
|
+
exports.EvolutionWebhookEntity = EvolutionWebhookEntity;
|
@@ -9,6 +9,7 @@ export declare enum EEvolutionEvent {
|
|
9
9
|
CONTACTS_SET = "CONTACTS_SET",
|
10
10
|
CONTACTS_UPSERT = "CONTACTS_UPSERT",
|
11
11
|
CONTACTS_UPDATE = "CONTACTS_UPDATE",
|
12
|
+
CALL = "CALL",
|
12
13
|
PRESENCE_UPDATE = "PRESENCE_UPDATE",
|
13
14
|
CHATS_SET = "CHATS_SET",
|
14
15
|
CHATS_UPSERT = "CHATS_UPSERT",
|
@@ -13,6 +13,7 @@ var EEvolutionEvent;
|
|
13
13
|
EEvolutionEvent["CONTACTS_SET"] = "CONTACTS_SET";
|
14
14
|
EEvolutionEvent["CONTACTS_UPSERT"] = "CONTACTS_UPSERT";
|
15
15
|
EEvolutionEvent["CONTACTS_UPDATE"] = "CONTACTS_UPDATE";
|
16
|
+
EEvolutionEvent["CALL"] = "CALL";
|
16
17
|
EEvolutionEvent["PRESENCE_UPDATE"] = "PRESENCE_UPDATE";
|
17
18
|
EEvolutionEvent["CHATS_SET"] = "CHATS_SET";
|
18
19
|
EEvolutionEvent["CHATS_UPSERT"] = "CHATS_UPSERT";
|
@@ -1,7 +1,13 @@
|
|
1
|
+
import { IEvolutionChatWoot } from './i-chatwoot';
|
1
2
|
export interface IEvolutionInstance {
|
2
3
|
instanceName: string;
|
3
4
|
instanceId: string;
|
4
|
-
status: '
|
5
|
+
status: 'open' | 'close' | 'connecting' | string;
|
5
6
|
serverUrl: string;
|
6
7
|
apikey: string;
|
8
|
+
owner: string | null;
|
9
|
+
profileName: string | null;
|
10
|
+
profilePictureUrl: string | null;
|
11
|
+
profileStatus: string | null;
|
12
|
+
chatwoot: IEvolutionChatWoot | null;
|
7
13
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export interface IEvolutionTypebot {
|
2
|
+
instanceName: string;
|
3
|
+
typebot: {
|
4
|
+
enabled: boolean;
|
5
|
+
url: string;
|
6
|
+
typebot: string;
|
7
|
+
expire: number;
|
8
|
+
keywordFinish: string;
|
9
|
+
delayMessage: number;
|
10
|
+
unknownMessage: string;
|
11
|
+
listeningFromMe: boolean;
|
12
|
+
};
|
13
|
+
}
|
@@ -3,3 +3,6 @@ export { IEvolution } from './i-evolution';
|
|
3
3
|
export { IEvolutionHash } from './i-hash';
|
4
4
|
export { IEvolutionInstance } from './i-instance';
|
5
5
|
export { IEvolutionQrcode } from './i-qrcode';
|
6
|
+
export { IEvolutionTypebot } from './i-typebot';
|
7
|
+
export { IEvolutionWebhook } from './i-webhook';
|
8
|
+
export * from './send-messages';
|
@@ -1,2 +1,17 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./send-messages"), exports);
|