@escapenavigator/types 1.6.21 → 1.6.22
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/dist/emails/email.ro.d.ts +12 -4
- package/dist/emails/email.ro.js +32 -8
- package/dist/emails/enum/email.status-enum.d.ts +1 -0
- package/dist/emails/enum/email.status-enum.js +1 -0
- package/dist/emails/send-email.dto.d.ts +9 -0
- package/dist/emails/{send-profile-email.dto.js → send-email.dto.js} +16 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/emails/send-profile-email.dto.d.ts +0 -6
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { EmailStatusEnum } from './enum/email.status-enum';
|
|
2
|
+
declare class Profile {
|
|
3
|
+
id: number;
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
2
6
|
export declare class EmailRO {
|
|
3
7
|
id: number;
|
|
4
|
-
|
|
8
|
+
createdAt: Date;
|
|
5
9
|
to: string;
|
|
10
|
+
replied: boolean;
|
|
6
11
|
from: string;
|
|
12
|
+
identificator: string;
|
|
7
13
|
status: EmailStatusEnum;
|
|
8
14
|
subject: string;
|
|
9
|
-
|
|
15
|
+
text: string;
|
|
16
|
+
html: string;
|
|
17
|
+
opens: number[];
|
|
10
18
|
clicks: string[];
|
|
11
|
-
|
|
12
|
-
profileId: number;
|
|
19
|
+
profile: Profile;
|
|
13
20
|
}
|
|
21
|
+
export {};
|
package/dist/emails/email.ro.js
CHANGED
|
@@ -10,8 +10,19 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.EmailRO = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
13
14
|
const class_transformer_1 = require("class-transformer");
|
|
14
15
|
const email_status_enum_1 = require("./enum/email.status-enum");
|
|
16
|
+
class Profile {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], Profile.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Profile.prototype, "title", void 0);
|
|
15
26
|
class EmailRO {
|
|
16
27
|
}
|
|
17
28
|
__decorate([
|
|
@@ -20,16 +31,24 @@ __decorate([
|
|
|
20
31
|
], EmailRO.prototype, "id", void 0);
|
|
21
32
|
__decorate([
|
|
22
33
|
(0, class_transformer_1.Expose)(),
|
|
23
|
-
__metadata("design:type",
|
|
24
|
-
], EmailRO.prototype, "
|
|
34
|
+
__metadata("design:type", Date)
|
|
35
|
+
], EmailRO.prototype, "createdAt", void 0);
|
|
25
36
|
__decorate([
|
|
26
37
|
(0, class_transformer_1.Expose)(),
|
|
27
38
|
__metadata("design:type", String)
|
|
28
39
|
], EmailRO.prototype, "to", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], EmailRO.prototype, "replied", void 0);
|
|
29
44
|
__decorate([
|
|
30
45
|
(0, class_transformer_1.Expose)(),
|
|
31
46
|
__metadata("design:type", String)
|
|
32
47
|
], EmailRO.prototype, "from", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], EmailRO.prototype, "identificator", void 0);
|
|
33
52
|
__decorate([
|
|
34
53
|
(0, class_transformer_1.Expose)(),
|
|
35
54
|
__metadata("design:type", String)
|
|
@@ -41,17 +60,22 @@ __decorate([
|
|
|
41
60
|
__decorate([
|
|
42
61
|
(0, class_transformer_1.Expose)(),
|
|
43
62
|
__metadata("design:type", String)
|
|
44
|
-
], EmailRO.prototype, "
|
|
63
|
+
], EmailRO.prototype, "text", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], EmailRO.prototype, "html", void 0);
|
|
45
68
|
__decorate([
|
|
46
69
|
(0, class_transformer_1.Expose)(),
|
|
47
70
|
__metadata("design:type", Array)
|
|
48
|
-
], EmailRO.prototype, "
|
|
71
|
+
], EmailRO.prototype, "opens", void 0);
|
|
49
72
|
__decorate([
|
|
50
73
|
(0, class_transformer_1.Expose)(),
|
|
51
|
-
__metadata("design:type",
|
|
52
|
-
], EmailRO.prototype, "
|
|
74
|
+
__metadata("design:type", Array)
|
|
75
|
+
], EmailRO.prototype, "clicks", void 0);
|
|
53
76
|
__decorate([
|
|
54
77
|
(0, class_transformer_1.Expose)(),
|
|
55
|
-
|
|
56
|
-
|
|
78
|
+
(0, class_transformer_1.Type)(() => Profile),
|
|
79
|
+
__metadata("design:type", Profile)
|
|
80
|
+
], EmailRO.prototype, "profile", void 0);
|
|
57
81
|
exports.EmailRO = EmailRO;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EmailStatusEnum = void 0;
|
|
4
4
|
var EmailStatusEnum;
|
|
5
5
|
(function (EmailStatusEnum) {
|
|
6
|
+
EmailStatusEnum["PENDING"] = "pending";
|
|
6
7
|
EmailStatusEnum["SENT"] = "sent";
|
|
7
8
|
EmailStatusEnum["INBOX"] = "inbox";
|
|
8
9
|
EmailStatusEnum["OPENED"] = "opened";
|
|
@@ -12,24 +12,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.SendEmailDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
|
+
const email_senders_1 = require("./enum/email.senders");
|
|
15
17
|
class SendEmailDto {
|
|
16
18
|
}
|
|
17
19
|
__decorate([
|
|
18
|
-
(0,
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
19
21
|
(0, class_transformer_1.Expose)(),
|
|
20
22
|
__metadata("design:type", String)
|
|
21
23
|
], SendEmailDto.prototype, "text", void 0);
|
|
22
24
|
__decorate([
|
|
23
|
-
(0, class_validator_1.
|
|
25
|
+
(0, class_validator_1.IsEmail)(),
|
|
24
26
|
(0, class_transformer_1.Expose)(),
|
|
25
27
|
__metadata("design:type", String)
|
|
26
28
|
], SendEmailDto.prototype, "to", void 0);
|
|
27
29
|
__decorate([
|
|
28
|
-
(0, class_validator_1.
|
|
30
|
+
(0, class_validator_1.IsEnum)(email_senders_1.EmailSenderEnum),
|
|
29
31
|
(0, class_transformer_1.Expose)(),
|
|
30
32
|
__metadata("design:type", String)
|
|
31
33
|
], SendEmailDto.prototype, "from", void 0);
|
|
32
34
|
__decorate([
|
|
35
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], SendEmailDto.prototype, "subject", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], SendEmailDto.prototype, "prevIdentificator", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
46
|
(0, class_validator_1.IsPositive)(),
|
|
34
47
|
(0, class_transformer_1.Expose)(),
|
|
35
48
|
__metadata("design:type", Number)
|