@tudopz/model 2.27.36 → 2.27.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tudopz/model",
3
- "version": "2.27.36",
3
+ "version": "2.27.37",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -0,0 +1,20 @@
1
+ export declare enum WA_MESSAGE_TYPE {
2
+ TEXT = 1,
3
+ STICKER = 2,
4
+ ATTACHMENT = 3
5
+ }
6
+ export declare class WAMessage {
7
+ id: number;
8
+ messageId: string;
9
+ contactId: string;
10
+ channelId: string;
11
+ traffic: string;
12
+ timestamp: number;
13
+ fullName?: string;
14
+ phoneNumber?: string;
15
+ email?: string;
16
+ type: WA_MESSAGE_TYPE;
17
+ text?: string;
18
+ url?: string;
19
+ mimeType?: string;
20
+ }
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WAMessage = exports.WA_MESSAGE_TYPE = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const typeorm_1 = require("typeorm");
6
+ var WA_MESSAGE_TYPE;
7
+ (function (WA_MESSAGE_TYPE) {
8
+ WA_MESSAGE_TYPE[WA_MESSAGE_TYPE["TEXT"] = 1] = "TEXT";
9
+ WA_MESSAGE_TYPE[WA_MESSAGE_TYPE["STICKER"] = 2] = "STICKER";
10
+ WA_MESSAGE_TYPE[WA_MESSAGE_TYPE["ATTACHMENT"] = 3] = "ATTACHMENT";
11
+ })(WA_MESSAGE_TYPE = exports.WA_MESSAGE_TYPE || (exports.WA_MESSAGE_TYPE = {}));
12
+ let WAMessage = class WAMessage {
13
+ };
14
+ tslib_1.__decorate([
15
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
16
+ tslib_1.__metadata("design:type", Number)
17
+ ], WAMessage.prototype, "id", void 0);
18
+ tslib_1.__decorate([
19
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
20
+ tslib_1.__metadata("design:type", String)
21
+ ], WAMessage.prototype, "messageId", void 0);
22
+ tslib_1.__decorate([
23
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
24
+ tslib_1.__metadata("design:type", String)
25
+ ], WAMessage.prototype, "contactId", void 0);
26
+ tslib_1.__decorate([
27
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
28
+ tslib_1.__metadata("design:type", String)
29
+ ], WAMessage.prototype, "channelId", void 0);
30
+ tslib_1.__decorate([
31
+ (0, typeorm_1.Column)({ type: 'enum', enum: ['incoming', 'outgoing'] }),
32
+ tslib_1.__metadata("design:type", String)
33
+ ], WAMessage.prototype, "traffic", void 0);
34
+ tslib_1.__decorate([
35
+ (0, typeorm_1.Column)({ type: 'bigint' }),
36
+ tslib_1.__metadata("design:type", Number)
37
+ ], WAMessage.prototype, "timestamp", void 0);
38
+ tslib_1.__decorate([
39
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
40
+ tslib_1.__metadata("design:type", String)
41
+ ], WAMessage.prototype, "fullName", void 0);
42
+ tslib_1.__decorate([
43
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
44
+ tslib_1.__metadata("design:type", String)
45
+ ], WAMessage.prototype, "phoneNumber", void 0);
46
+ tslib_1.__decorate([
47
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
48
+ tslib_1.__metadata("design:type", String)
49
+ ], WAMessage.prototype, "email", void 0);
50
+ tslib_1.__decorate([
51
+ (0, typeorm_1.Column)({ type: 'int' }),
52
+ tslib_1.__metadata("design:type", Number)
53
+ ], WAMessage.prototype, "type", void 0);
54
+ tslib_1.__decorate([
55
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
56
+ tslib_1.__metadata("design:type", String)
57
+ ], WAMessage.prototype, "text", void 0);
58
+ tslib_1.__decorate([
59
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
60
+ tslib_1.__metadata("design:type", String)
61
+ ], WAMessage.prototype, "url", void 0);
62
+ tslib_1.__decorate([
63
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
64
+ tslib_1.__metadata("design:type", String)
65
+ ], WAMessage.prototype, "mimeType", void 0);
66
+ WAMessage = tslib_1.__decorate([
67
+ (0, typeorm_1.Entity)({ name: 'wa_messages' })
68
+ ], WAMessage);
69
+ exports.WAMessage = WAMessage;
70
+ //# sourceMappingURL=wa-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wa-message.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/wa-message.ts"],"names":[],"mappings":";;;;AAAA,qCAAiE;AAEjE,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,qDAAQ,CAAA;IACR,2DAAO,CAAA;IACP,iEAAU,CAAA;AACZ,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAGM,IAAM,SAAS,GAAf,MAAM,SAAS;CAuCrB,CAAA;AAtCC;IAAC,IAAA,gCAAsB,GAAE;;qCACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;4CACvB;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;4CACvB;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;4CACvB;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,EAAE,CAAC;;0CACzC;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;4CACT;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IA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