easywork-common-lib 1.0.958 → 1.0.960
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +2 -1
- package/dist/entities/thirdparty/wati/index.d.ts +3 -2
- package/dist/entities/thirdparty/wati/index.js +3 -2
- package/dist/entities/thirdparty/wati/index.js.map +1 -1
- package/dist/entities/thirdparty/wati/wati-chat.entity.d.ts +5 -5
- package/dist/entities/thirdparty/wati/wati-chat.entity.js +58 -18
- package/dist/entities/thirdparty/wati/wati-chat.entity.js.map +1 -1
- package/dist/entities/thirdparty/wati/wati-configuration.entity.d.ts +9 -6
- package/dist/entities/thirdparty/wati/wati-configuration.entity.js +63 -20
- package/dist/entities/thirdparty/wati/wati-configuration.entity.js.map +1 -1
- package/dist/entities/thirdparty/wati/wati-events.entity.d.ts +9 -0
- package/dist/entities/thirdparty/wati/wati-events.entity.js +63 -0
- package/dist/entities/thirdparty/wati/wati-events.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati-message.entity.d.ts +2 -3
- package/dist/entities/thirdparty/wati/wati-message.entity.js +42 -20
- package/dist/entities/thirdparty/wati/wati-message.entity.js.map +1 -1
- package/dist/entities/thirdparty/wati/wati.enum.d.ts +8 -0
- package/dist/entities/thirdparty/wati/wati.enum.js +10 -1
- package/dist/entities/thirdparty/wati/wati.enum.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/.vscode/settings.json
CHANGED
|
@@ -14,8 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./wati.enum"), exports);
|
|
18
|
-
__exportStar(require("./wati-message.entity"), exports);
|
|
19
17
|
__exportStar(require("./wati-chat.entity"), exports);
|
|
20
18
|
__exportStar(require("./wati-configuration.entity"), exports);
|
|
19
|
+
__exportStar(require("./wati-events.entity"), exports);
|
|
20
|
+
__exportStar(require("./wati-message.entity"), exports);
|
|
21
|
+
__exportStar(require("./wati.enum"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/thirdparty/wati/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/thirdparty/wati/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,8DAA4C;AAC5C,uDAAqC;AACrC,wDAAsC;AACtC,8CAA4B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Lead } from "../../sales/lead.entity";
|
|
2
2
|
import { Contact } from "../../sales/contact.entity";
|
|
3
|
-
import { BaseEntityOnlyEssential } from "common";
|
|
4
|
-
import { WatiMessage } from "
|
|
5
|
-
import { WatiConfiguration } from "
|
|
6
|
-
import { User } from "
|
|
7
|
-
import { WhatsAppConversationStatusEnum } from "
|
|
3
|
+
import { BaseEntityOnlyEssential } from "../../../common";
|
|
4
|
+
import { WatiMessage } from "../wati/wati-message.entity";
|
|
5
|
+
import { WatiConfiguration } from "../wati/wati-configuration.entity";
|
|
6
|
+
import { User } from "../../user.entity";
|
|
7
|
+
import { WhatsAppConversationStatusEnum } from "../wati/wati.enum";
|
|
8
8
|
export declare class WatiChat extends BaseEntityOnlyEssential {
|
|
9
9
|
watiConfigurationId: string;
|
|
10
10
|
watiConfiguration: WatiConfiguration;
|
|
@@ -15,11 +15,11 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const lead_entity_1 = require("../../sales/lead.entity");
|
|
17
17
|
const contact_entity_1 = require("../../sales/contact.entity");
|
|
18
|
-
const common_1 = require("common");
|
|
19
|
-
const wati_message_entity_1 = require("
|
|
20
|
-
const wati_configuration_entity_1 = require("
|
|
21
|
-
const user_entity_1 = require("
|
|
22
|
-
const wati_enum_1 = require("
|
|
18
|
+
const common_1 = require("../../../common");
|
|
19
|
+
const wati_message_entity_1 = require("../wati/wati-message.entity");
|
|
20
|
+
const wati_configuration_entity_1 = require("../wati/wati-configuration.entity");
|
|
21
|
+
const user_entity_1 = require("../../user.entity");
|
|
22
|
+
const wati_enum_1 = require("../wati/wati.enum");
|
|
23
23
|
let WatiChat = class WatiChat extends common_1.BaseEntityOnlyEssential {
|
|
24
24
|
watiConfigurationId;
|
|
25
25
|
watiConfiguration;
|
|
@@ -54,14 +54,18 @@ __decorate([
|
|
|
54
54
|
__metadata("design:type", wati_configuration_entity_1.WatiConfiguration)
|
|
55
55
|
], WatiChat.prototype, "watiConfiguration", void 0);
|
|
56
56
|
__decorate([
|
|
57
|
-
(0, swagger_1.ApiProperty)({
|
|
57
|
+
(0, swagger_1.ApiProperty)({
|
|
58
|
+
description: "ID único de la conversación en Wati (puede ser el número de teléfono del contacto)",
|
|
59
|
+
}),
|
|
58
60
|
(0, class_validator_1.IsString)(),
|
|
59
61
|
(0, class_validator_1.MaxLength)(255),
|
|
60
62
|
(0, typeorm_1.Column)({ type: "varchar", length: 255 }),
|
|
61
63
|
__metadata("design:type", String)
|
|
62
64
|
], WatiChat.prototype, "watiConversationId", void 0);
|
|
63
65
|
__decorate([
|
|
64
|
-
(0, swagger_1.ApiProperty)({
|
|
66
|
+
(0, swagger_1.ApiProperty)({
|
|
67
|
+
description: "Número de teléfono del contacto externo (cliente/prospecto)",
|
|
68
|
+
}),
|
|
65
69
|
(0, class_validator_1.IsString)(),
|
|
66
70
|
(0, class_validator_1.MaxLength)(50),
|
|
67
71
|
(0, typeorm_1.Index)(),
|
|
@@ -69,7 +73,10 @@ __decorate([
|
|
|
69
73
|
__metadata("design:type", String)
|
|
70
74
|
], WatiChat.prototype, "phoneNumber", void 0);
|
|
71
75
|
__decorate([
|
|
72
|
-
(0, swagger_1.ApiProperty)({
|
|
76
|
+
(0, swagger_1.ApiProperty)({
|
|
77
|
+
description: "Nombre del contacto tal como aparece en Wati",
|
|
78
|
+
required: false,
|
|
79
|
+
}),
|
|
73
80
|
(0, class_validator_1.IsString)(),
|
|
74
81
|
(0, class_validator_1.MaxLength)(255),
|
|
75
82
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -77,27 +84,41 @@ __decorate([
|
|
|
77
84
|
__metadata("design:type", String)
|
|
78
85
|
], WatiChat.prototype, "fullName", void 0);
|
|
79
86
|
__decorate([
|
|
80
|
-
(0, swagger_1.ApiProperty)({
|
|
87
|
+
(0, swagger_1.ApiProperty)({
|
|
88
|
+
description: "Indica si hay una sesión de WhatsApp activa con este contacto",
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: false,
|
|
91
|
+
}),
|
|
81
92
|
(0, class_validator_1.IsBoolean)(),
|
|
82
93
|
(0, typeorm_1.Column)({ type: "boolean", default: false }),
|
|
83
94
|
__metadata("design:type", Boolean)
|
|
84
95
|
], WatiChat.prototype, "sessionActive", void 0);
|
|
85
96
|
__decorate([
|
|
86
|
-
(0, swagger_1.ApiProperty)({
|
|
97
|
+
(0, swagger_1.ApiProperty)({
|
|
98
|
+
description: "Fecha y hora de expiración de la sesión activa de WhatsApp",
|
|
99
|
+
required: false,
|
|
100
|
+
}),
|
|
87
101
|
(0, class_validator_1.IsDate)(),
|
|
88
102
|
(0, class_validator_1.IsOptional)(),
|
|
89
103
|
(0, typeorm_1.Column)({ type: "timestamp with time zone", nullable: true }),
|
|
90
104
|
__metadata("design:type", Date)
|
|
91
105
|
], WatiChat.prototype, "sessionExpiresAt", void 0);
|
|
92
106
|
__decorate([
|
|
93
|
-
(0, swagger_1.ApiProperty)({
|
|
107
|
+
(0, swagger_1.ApiProperty)({
|
|
108
|
+
description: "Atributos personalizados de Wati asociados al chat",
|
|
109
|
+
type: "object",
|
|
110
|
+
required: false,
|
|
111
|
+
}),
|
|
94
112
|
(0, class_validator_1.IsJSON)(),
|
|
95
113
|
(0, class_validator_1.IsOptional)(),
|
|
96
114
|
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
97
115
|
__metadata("design:type", Object)
|
|
98
116
|
], WatiChat.prototype, "watiCustomAttributes", void 0);
|
|
99
117
|
__decorate([
|
|
100
|
-
(0, swagger_1.ApiProperty)({
|
|
118
|
+
(0, swagger_1.ApiProperty)({
|
|
119
|
+
description: "Timestamp del último mensaje en esta conversación",
|
|
120
|
+
required: false,
|
|
121
|
+
}),
|
|
101
122
|
(0, class_validator_1.IsDate)(),
|
|
102
123
|
(0, class_validator_1.IsOptional)(),
|
|
103
124
|
(0, typeorm_1.Index)(),
|
|
@@ -105,20 +126,33 @@ __decorate([
|
|
|
105
126
|
__metadata("design:type", Date)
|
|
106
127
|
], WatiChat.prototype, "lastMessageTimestamp", void 0);
|
|
107
128
|
__decorate([
|
|
108
|
-
(0, swagger_1.ApiProperty)({
|
|
129
|
+
(0, swagger_1.ApiProperty)({
|
|
130
|
+
enum: wati_enum_1.WhatsAppConversationStatusEnum,
|
|
131
|
+
description: "Estado de la conversación en Easywork",
|
|
132
|
+
}),
|
|
109
133
|
(0, class_validator_1.IsEnum)(wati_enum_1.WhatsAppConversationStatusEnum),
|
|
110
|
-
(0, typeorm_1.Column)({
|
|
134
|
+
(0, typeorm_1.Column)({
|
|
135
|
+
type: "enum",
|
|
136
|
+
enum: wati_enum_1.WhatsAppConversationStatusEnum,
|
|
137
|
+
default: wati_enum_1.WhatsAppConversationStatusEnum.OPEN,
|
|
138
|
+
}),
|
|
111
139
|
__metadata("design:type", String)
|
|
112
140
|
], WatiChat.prototype, "status", void 0);
|
|
113
141
|
__decorate([
|
|
114
|
-
(0, swagger_1.ApiProperty)({
|
|
142
|
+
(0, swagger_1.ApiProperty)({
|
|
143
|
+
description: "Número de mensajes no leídos para el agente",
|
|
144
|
+
default: 0,
|
|
145
|
+
}),
|
|
115
146
|
(0, class_validator_1.IsInt)(),
|
|
116
147
|
(0, class_validator_1.Min)(0),
|
|
117
148
|
(0, typeorm_1.Column)({ type: "integer", default: 0 }),
|
|
118
149
|
__metadata("design:type", Number)
|
|
119
150
|
], WatiChat.prototype, "unreadCountForAgent", void 0);
|
|
120
151
|
__decorate([
|
|
121
|
-
(0, swagger_1.ApiProperty)({
|
|
152
|
+
(0, swagger_1.ApiProperty)({
|
|
153
|
+
description: "ID del usuario del CRM asignado a este chat",
|
|
154
|
+
required: false,
|
|
155
|
+
}),
|
|
122
156
|
(0, class_validator_1.IsString)(),
|
|
123
157
|
(0, class_validator_1.IsOptional)(),
|
|
124
158
|
(0, typeorm_1.Index)(),
|
|
@@ -131,7 +165,10 @@ __decorate([
|
|
|
131
165
|
__metadata("design:type", user_entity_1.User)
|
|
132
166
|
], WatiChat.prototype, "assignedToUser", void 0);
|
|
133
167
|
__decorate([
|
|
134
|
-
(0, swagger_1.ApiProperty)({
|
|
168
|
+
(0, swagger_1.ApiProperty)({
|
|
169
|
+
description: "ID del Lead en el CRM asociado a este chat",
|
|
170
|
+
required: false,
|
|
171
|
+
}),
|
|
135
172
|
(0, class_validator_1.IsString)(),
|
|
136
173
|
(0, class_validator_1.IsOptional)(),
|
|
137
174
|
(0, typeorm_1.Index)(),
|
|
@@ -144,7 +181,10 @@ __decorate([
|
|
|
144
181
|
__metadata("design:type", lead_entity_1.Lead)
|
|
145
182
|
], WatiChat.prototype, "crmLead", void 0);
|
|
146
183
|
__decorate([
|
|
147
|
-
(0, swagger_1.ApiProperty)({
|
|
184
|
+
(0, swagger_1.ApiProperty)({
|
|
185
|
+
description: "ID del Contact en el CRM asociado a este chat",
|
|
186
|
+
required: false,
|
|
187
|
+
}),
|
|
148
188
|
(0, class_validator_1.IsString)(),
|
|
149
189
|
(0, class_validator_1.IsOptional)(),
|
|
150
190
|
(0, typeorm_1.Index)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wati-chat.entity.js","sourceRoot":"","sources":["../../../../src/entities/thirdparty/wati/wati-chat.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkF;AAClF,6CAA8C;AAC9C,qDAAiH;AACjH,yDAA+C;AAC/C,+DAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"wati-chat.entity.js","sourceRoot":"","sources":["../../../../src/entities/thirdparty/wati/wati-chat.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkF;AAClF,6CAA8C;AAC9C,qDAAiH;AACjH,yDAA+C;AAC/C,+DAAqD;AACrD,4CAA0D;AAC1D,qEAA0D;AAC1D,iFAAsE;AACtE,mDAAyC;AACzC,iDAAmE;AAI5D,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,gCAAuB;IAKnD,mBAAmB,CAAS;IAI5B,iBAAiB,CAAoB;IAQrC,kBAAkB,CAAS;IAS3B,WAAW,CAAS;IAUpB,QAAQ,CAAU;IASlB,aAAa,CAAU;IASvB,gBAAgB,CAAQ;IAUxB,oBAAoB,CAAU;IAU9B,oBAAoB,CAAQ;IAY5B,MAAM,CAAiC;IASvC,mBAAmB,CAAS;IAU5B,gBAAgB,CAAU;IAI1B,cAAc,CAAQ;IAUtB,SAAS,CAAU;IAInB,OAAO,CAAQ;IAUf,YAAY,CAAU;IAItB,UAAU,CAAW;IAGrB,QAAQ,CAAgB;CACzB,CAAA;AA7IY,4BAAQ;AAKnB;IAJC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;IACnE,IAAA,0BAAQ,GAAE;IACV,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACG;AAI5B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAiB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;IAC5D,IAAA,oBAAU,EAAC,EAAE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,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BACxB,wBAAO;4CAAC;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAW,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;;0CACpC;mBA5Ib,QAAQ;IAFpB,IAAA,gBAAM,EAAC,WAAW,CAAC;IACnB,IAAA,eAAK,EAAC,CAAC,qBAAqB,EAAE,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC1D,QAAQ,CA6IpB"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { Group } from "../../group.entity";
|
|
2
|
-
import {
|
|
3
|
-
import { WatiChat } from "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { EntityBase } from "../../../common";
|
|
3
|
+
import { WatiChat } from "./wati-chat.entity";
|
|
4
|
+
import { WatiIntegrationStatusEnum } from "./wati.enum";
|
|
5
|
+
export declare class WatiConfiguration extends EntityBase {
|
|
6
|
+
baseWebhookUrl: string;
|
|
7
|
+
generatedWebhookSecret: string;
|
|
7
8
|
apiEndpoint: string;
|
|
8
9
|
apiToken: string;
|
|
9
10
|
watiClientID: string;
|
|
10
|
-
isFunctional: boolean;
|
|
11
11
|
associatedPhoneNumber: string;
|
|
12
|
+
status: WatiIntegrationStatusEnum;
|
|
13
|
+
lastErrorDetails?: string;
|
|
14
|
+
lastSuccessfulConnectionAt?: Date;
|
|
12
15
|
groupId: string;
|
|
13
16
|
group: Group;
|
|
14
17
|
chats: WatiChat[];
|
|
@@ -14,33 +14,40 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const group_entity_1 = require("../../group.entity");
|
|
17
|
-
const common_1 = require("common");
|
|
18
|
-
const wati_chat_entity_1 = require("
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
const common_1 = require("../../../common");
|
|
18
|
+
const wati_chat_entity_1 = require("./wati-chat.entity");
|
|
19
|
+
const wati_enum_1 = require("./wati.enum");
|
|
20
|
+
let WatiConfiguration = class WatiConfiguration extends common_1.EntityBase {
|
|
21
|
+
baseWebhookUrl;
|
|
22
|
+
generatedWebhookSecret;
|
|
22
23
|
apiEndpoint;
|
|
23
24
|
apiToken;
|
|
24
25
|
watiClientID;
|
|
25
|
-
isFunctional;
|
|
26
26
|
associatedPhoneNumber;
|
|
27
|
+
status;
|
|
28
|
+
lastErrorDetails;
|
|
29
|
+
lastSuccessfulConnectionAt;
|
|
27
30
|
groupId;
|
|
28
31
|
group;
|
|
29
32
|
chats;
|
|
30
33
|
};
|
|
31
34
|
exports.WatiConfiguration = WatiConfiguration;
|
|
32
35
|
__decorate([
|
|
33
|
-
(0, swagger_1.ApiProperty)({
|
|
36
|
+
(0, swagger_1.ApiProperty)({
|
|
37
|
+
description: "URL base del endpoint de webhooks de Easywork para esta integración. La URL completa se construye con identificadores y el secreto.",
|
|
38
|
+
}),
|
|
34
39
|
(0, class_validator_1.IsUrl)(),
|
|
35
40
|
(0, typeorm_1.Column)({ type: "varchar", length: 512 }),
|
|
36
41
|
__metadata("design:type", String)
|
|
37
|
-
], WatiConfiguration.prototype, "
|
|
42
|
+
], WatiConfiguration.prototype, "baseWebhookUrl", void 0);
|
|
38
43
|
__decorate([
|
|
39
|
-
(0, swagger_1.ApiProperty)({
|
|
44
|
+
(0, swagger_1.ApiProperty)({
|
|
45
|
+
description: "Secreto generado por Easywork para validar los webhooks de Wati. Este secreto se añade a la URL que el usuario configura en Wati.",
|
|
46
|
+
}),
|
|
40
47
|
(0, class_validator_1.IsString)(),
|
|
41
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255,
|
|
48
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, select: false }),
|
|
42
49
|
__metadata("design:type", String)
|
|
43
|
-
], WatiConfiguration.prototype, "
|
|
50
|
+
], WatiConfiguration.prototype, "generatedWebhookSecret", void 0);
|
|
44
51
|
__decorate([
|
|
45
52
|
(0, swagger_1.ApiProperty)({ description: "URL base de la API de Wati" }),
|
|
46
53
|
(0, class_validator_1.IsUrl)(),
|
|
@@ -54,29 +61,65 @@ __decorate([
|
|
|
54
61
|
__metadata("design:type", String)
|
|
55
62
|
], WatiConfiguration.prototype, "apiToken", void 0);
|
|
56
63
|
__decorate([
|
|
57
|
-
(0, swagger_1.ApiProperty)({
|
|
64
|
+
(0, swagger_1.ApiProperty)({
|
|
65
|
+
description: "ID de cliente de Wati, identificador único de la cuenta de Wati",
|
|
66
|
+
example: "513892",
|
|
67
|
+
}),
|
|
58
68
|
(0, class_validator_1.IsString)(),
|
|
59
69
|
(0, typeorm_1.Index)(),
|
|
60
70
|
(0, typeorm_1.Column)({ type: "varchar", length: 255 }),
|
|
61
71
|
__metadata("design:type", String)
|
|
62
72
|
], WatiConfiguration.prototype, "watiClientID", void 0);
|
|
63
73
|
__decorate([
|
|
64
|
-
(0, swagger_1.ApiProperty)({
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
], WatiConfiguration.prototype, "isFunctional", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, swagger_1.ApiProperty)({ description: "Número de WhatsApp asociado a esta configuración de Wati" }),
|
|
74
|
+
(0, swagger_1.ApiProperty)({
|
|
75
|
+
description: "Número de WhatsApp asociado a esta configuración de Wati",
|
|
76
|
+
}),
|
|
70
77
|
(0, class_validator_1.IsString)(),
|
|
71
78
|
(0, typeorm_1.Index)(),
|
|
72
79
|
(0, typeorm_1.Column)({ type: "varchar", length: 50 }),
|
|
73
80
|
__metadata("design:type", String)
|
|
74
81
|
], WatiConfiguration.prototype, "associatedPhoneNumber", void 0);
|
|
75
82
|
__decorate([
|
|
76
|
-
(0, swagger_1.ApiProperty)({
|
|
83
|
+
(0, swagger_1.ApiProperty)({
|
|
84
|
+
enum: wati_enum_1.WatiIntegrationStatusEnum,
|
|
85
|
+
description: "Estado actual de la integración con Wati",
|
|
86
|
+
default: wati_enum_1.WatiIntegrationStatusEnum.PENDING_SETUP,
|
|
87
|
+
}),
|
|
88
|
+
(0, class_validator_1.IsEnum)(wati_enum_1.WatiIntegrationStatusEnum),
|
|
89
|
+
(0, typeorm_1.Column)({
|
|
90
|
+
type: "enum",
|
|
91
|
+
enum: wati_enum_1.WatiIntegrationStatusEnum,
|
|
92
|
+
default: wati_enum_1.WatiIntegrationStatusEnum.PENDING_SETUP,
|
|
93
|
+
}),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], WatiConfiguration.prototype, "status", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, swagger_1.ApiProperty)({
|
|
98
|
+
description: "Detalles del último error de configuración/conexión",
|
|
99
|
+
required: false,
|
|
100
|
+
}),
|
|
101
|
+
(0, class_validator_1.IsString)(),
|
|
102
|
+
(0, class_validator_1.IsOptional)(),
|
|
103
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], WatiConfiguration.prototype, "lastErrorDetails", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, swagger_1.ApiProperty)({
|
|
108
|
+
description: "Fecha del último intento de conexión exitoso",
|
|
109
|
+
required: false,
|
|
110
|
+
}),
|
|
111
|
+
(0, class_validator_1.IsDate)(),
|
|
112
|
+
(0, class_validator_1.IsOptional)(),
|
|
113
|
+
(0, typeorm_1.Column)({ type: "timestamp with time zone", nullable: true }),
|
|
114
|
+
__metadata("design:type", Date)
|
|
115
|
+
], WatiConfiguration.prototype, "lastSuccessfulConnectionAt", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, swagger_1.ApiProperty)({
|
|
118
|
+
description: "ID del Group (tenant) al que pertenece esta configuración",
|
|
119
|
+
}),
|
|
77
120
|
(0, class_validator_1.IsString)(),
|
|
78
121
|
(0, typeorm_1.Index)(),
|
|
79
|
-
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
122
|
+
(0, typeorm_1.Column)({ type: "uuid", unique: true }),
|
|
80
123
|
__metadata("design:type", String)
|
|
81
124
|
], WatiConfiguration.prototype, "groupId", void 0);
|
|
82
125
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wati-configuration.entity.js","sourceRoot":"","sources":["../../../../src/entities/thirdparty/wati/wati-configuration.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkF;AAClF,6CAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"wati-configuration.entity.js","sourceRoot":"","sources":["../../../../src/entities/thirdparty/wati/wati-configuration.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkF;AAClF,6CAA8C;AAC9C,qDAA8E;AAC9E,qDAA2C;AAC3C,4CAA6C;AAC7C,yDAA8C;AAC9C,2CAAwD;AAGjD,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,mBAAU;IAO/C,cAAc,CAAS;IAQvB,sBAAsB,CAAS;IAK/B,WAAW,CAAS;IAKpB,QAAQ,CAAS;IASjB,YAAY,CAAS;IAQrB,qBAAqB,CAAS;IAa9B,MAAM,CAA4B;IASlC,gBAAgB,CAAU;IAS1B,0BAA0B,CAAQ;IAQlC,OAAO,CAAS;IAIhB,KAAK,CAAQ;IAGb,KAAK,CAAa;CACnB,CAAA;AAzFY,8CAAiB;AAO5B;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EACT,qIAAqI;KACxI,CAAC;IACD,IAAA,uBAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;yDAClB;AAQvB;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EACT,mIAAmI;KACtI,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,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WAAW,EAAE,qDAAqD;QAClE,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACf;AAS1B;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,8CAA8C;QAC3D,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAChC,IAAI;qEAAC;AAQlC;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,2DAA2D;KACzE,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kDACvB;AAIhB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC/C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BACzB,oBAAK;gDAAC;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2BAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC;;gDAC1C;4BAxFP,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,qBAAqB,CAAC;GACjB,iBAAiB,CAyF7B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseEntityOnlyEssential } from "../../../common";
|
|
2
|
+
import { WatiEventType } from "./wati.enum";
|
|
3
|
+
import { WatiConfiguration } from "./wati-configuration.entity";
|
|
4
|
+
export declare class WatiEvents extends BaseEntityOnlyEssential {
|
|
5
|
+
watiConfigurationId: string;
|
|
6
|
+
watiConfiguration: WatiConfiguration;
|
|
7
|
+
watiEventType: WatiEventType;
|
|
8
|
+
rawPayload?: object;
|
|
9
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.WatiEvents = void 0;
|
|
13
|
+
const common_1 = require("../../../common");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const wati_enum_1 = require("./wati.enum");
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
const wati_configuration_entity_1 = require("./wati-configuration.entity");
|
|
19
|
+
let WatiEvents = class WatiEvents extends common_1.BaseEntityOnlyEssential {
|
|
20
|
+
watiConfigurationId;
|
|
21
|
+
watiConfiguration;
|
|
22
|
+
watiEventType;
|
|
23
|
+
rawPayload;
|
|
24
|
+
};
|
|
25
|
+
exports.WatiEvents = WatiEvents;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
|
+
description: "ID de la WatiConfiguration que originó este evento",
|
|
29
|
+
}),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, typeorm_1.Index)(),
|
|
32
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], WatiEvents.prototype, "watiConfigurationId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.ManyToOne)(() => wati_configuration_entity_1.WatiConfiguration, { onDelete: "CASCADE" }),
|
|
37
|
+
(0, typeorm_1.JoinColumn)({ name: "watiConfigurationId" }),
|
|
38
|
+
__metadata("design:type", wati_configuration_entity_1.WatiConfiguration)
|
|
39
|
+
], WatiEvents.prototype, "watiConfiguration", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({
|
|
42
|
+
enum: wati_enum_1.WatiEventType,
|
|
43
|
+
description: "Tipo de evento de Wati",
|
|
44
|
+
}),
|
|
45
|
+
(0, class_validator_1.IsEnum)(wati_enum_1.WatiEventType),
|
|
46
|
+
(0, typeorm_1.Column)({ type: "enum", enum: wati_enum_1.WatiEventType, nullable: false }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], WatiEvents.prototype, "watiEventType", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({
|
|
51
|
+
description: "Payload crudo del evento de Wati",
|
|
52
|
+
type: "object",
|
|
53
|
+
required: false,
|
|
54
|
+
}),
|
|
55
|
+
(0, class_validator_1.IsJSON)(),
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true, select: false }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], WatiEvents.prototype, "rawPayload", void 0);
|
|
60
|
+
exports.WatiEvents = WatiEvents = __decorate([
|
|
61
|
+
(0, typeorm_1.Entity)("wati_events")
|
|
62
|
+
], WatiEvents);
|
|
63
|
+
//# sourceMappingURL=wati-events.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wati-events.entity.js","sourceRoot":"","sources":["../../../../src/entities/thirdparty/wati/wati-events.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA0D;AAC1D,qDAAuE;AACvE,2CAA4C;AAC5C,qCAAuE;AACvE,6CAA8C;AAC9C,2EAAgE;AAGzD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,gCAAuB;IAOrD,mBAAmB,CAAS;IAI5B,iBAAiB,CAAoB;IAQrC,aAAa,CAAgB;IAU7B,UAAU,CAAU;CACrB,CAAA;AA9BY,gCAAU;AAOrB;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,oDAAoD;KAClE,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACG;AAI5B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAiB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC3D,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;8BACzB,6CAAiB;qDAAC;AAQrC;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,yBAAa;QACnB,WAAW,EAAE,wBAAwB;KACtC,CAAC;IACD,IAAA,wBAAM,EAAC,yBAAa,CAAC;IACrB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iDAClC;AAU7B;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,kCAAkC;QAC/C,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;8CACrC;qBA7BT,UAAU;IADtB,IAAA,gBAAM,EAAC,aAAa,CAAC;GACT,UAAU,CA8BtB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WatiChat } from "./wati-chat.entity";
|
|
2
2
|
import { User } from "../../user.entity";
|
|
3
3
|
import { WatiMessageDirection, WatiMessageType, WatiMessageStatus, WatiEventType } from "./wati.enum";
|
|
4
|
-
import {
|
|
5
|
-
export declare class WatiMessage extends
|
|
4
|
+
import { BaseEntitySimple } from "../../../common";
|
|
5
|
+
export declare class WatiMessage extends BaseEntitySimple {
|
|
6
6
|
watiChatId: string;
|
|
7
7
|
watiChat: WatiChat;
|
|
8
8
|
watiMessageId?: string;
|
|
@@ -15,7 +15,6 @@ export declare class WatiMessage extends BaseEntityOnlyEssential {
|
|
|
15
15
|
watiEventType?: WatiEventType;
|
|
16
16
|
watiMessageTemplateName?: string;
|
|
17
17
|
templateParametersUsed?: object;
|
|
18
|
-
rawPayload?: object;
|
|
19
18
|
status: WatiMessageStatus;
|
|
20
19
|
sentByCrmUserId?: string;
|
|
21
20
|
sentByCrmUser?: User;
|