@escapenavigator/types 1.6.18 → 1.6.19

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.
@@ -1,6 +1,13 @@
1
- import { ResponseObject } from '../shared/ro';
2
- export declare type EmailRO = ResponseObject & {
3
- profileId?: number;
1
+ import { EmailStatusEnum } from './enum/email.status-enum';
2
+ export declare class EmailRO {
3
+ id: number;
4
+ identificator: string;
4
5
  to: string;
5
- delivered: boolean;
6
- };
6
+ from: string;
7
+ status: EmailStatusEnum;
8
+ subject: string;
9
+ link: string;
10
+ clicks: string[];
11
+ markedAsSapm: boolean;
12
+ profileId: number;
13
+ }
@@ -1,2 +1,57 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EmailRO = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const email_status_enum_1 = require("./enum/email.status-enum");
15
+ class EmailRO {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Expose)(),
19
+ __metadata("design:type", Number)
20
+ ], EmailRO.prototype, "id", void 0);
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], EmailRO.prototype, "identificator", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], EmailRO.prototype, "to", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", String)
32
+ ], EmailRO.prototype, "from", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", String)
36
+ ], EmailRO.prototype, "status", void 0);
37
+ __decorate([
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], EmailRO.prototype, "subject", void 0);
41
+ __decorate([
42
+ (0, class_transformer_1.Expose)(),
43
+ __metadata("design:type", String)
44
+ ], EmailRO.prototype, "link", void 0);
45
+ __decorate([
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", Array)
48
+ ], EmailRO.prototype, "clicks", void 0);
49
+ __decorate([
50
+ (0, class_transformer_1.Expose)(),
51
+ __metadata("design:type", Boolean)
52
+ ], EmailRO.prototype, "markedAsSapm", void 0);
53
+ __decorate([
54
+ (0, class_transformer_1.Expose)(),
55
+ __metadata("design:type", Number)
56
+ ], EmailRO.prototype, "profileId", void 0);
57
+ exports.EmailRO = EmailRO;
@@ -0,0 +1,7 @@
1
+ export declare enum EmailStatusEnum {
2
+ SENT = "sent",
3
+ OPENED = "opened",
4
+ BOUNCED = "bounced",
5
+ SOFT_BOUNCED = "soft_bounced",
6
+ REJECTED = "rejected"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmailStatusEnum = void 0;
4
+ var EmailStatusEnum;
5
+ (function (EmailStatusEnum) {
6
+ EmailStatusEnum["SENT"] = "sent";
7
+ EmailStatusEnum["OPENED"] = "opened";
8
+ EmailStatusEnum["BOUNCED"] = "bounced";
9
+ EmailStatusEnum["SOFT_BOUNCED"] = "soft_bounced";
10
+ EmailStatusEnum["REJECTED"] = "rejected";
11
+ })(EmailStatusEnum = exports.EmailStatusEnum || (exports.EmailStatusEnum = {}));
@@ -23,6 +23,7 @@ declare type Context = {
23
23
  sections: Array<Divider | Bitton | Paragraph | List>;
24
24
  };
25
25
  export declare type SendEmailRequestParams = {
26
+ from?: string;
26
27
  to: string;
27
28
  logo: string;
28
29
  subject: string;
@@ -0,0 +1,6 @@
1
+ export declare class SendEmailDto {
2
+ text: string;
3
+ to: string;
4
+ from: string;
5
+ profileId: number;
6
+ }
@@ -0,0 +1,37 @@
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.SendEmailDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class SendEmailDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsNotEmpty)(),
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", String)
21
+ ], SendEmailDto.prototype, "text", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNotEmpty)(),
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", String)
26
+ ], SendEmailDto.prototype, "to", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsNotEmpty)(),
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", String)
31
+ ], SendEmailDto.prototype, "from", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsPositive)(),
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", Number)
36
+ ], SendEmailDto.prototype, "profileId", void 0);
37
+ exports.SendEmailDto = SendEmailDto;