@solidstarters/solid-core 1.2.47 → 1.2.48
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/controllers/email-template.controller.d.ts +25 -7
- package/dist/controllers/email-template.controller.d.ts.map +1 -1
- package/dist/controllers/email-template.controller.js +70 -36
- package/dist/controllers/email-template.controller.js.map +1 -1
- package/dist/controllers/google-authentication.controller.d.ts +0 -1
- package/dist/controllers/google-authentication.controller.d.ts.map +1 -1
- package/dist/controllers/sms-template.controller.d.ts +25 -7
- package/dist/controllers/sms-template.controller.d.ts.map +1 -1
- package/dist/controllers/sms-template.controller.js +71 -36
- package/dist/controllers/sms-template.controller.js.map +1 -1
- package/dist/controllers/user-view-metadata.controller.d.ts +2 -1
- package/dist/controllers/user-view-metadata.controller.d.ts.map +1 -1
- package/dist/controllers/user-view-metadata.controller.js +5 -3
- package/dist/controllers/user-view-metadata.controller.js.map +1 -1
- package/dist/controllers/view-metadata.controller.d.ts +2 -1
- package/dist/controllers/view-metadata.controller.d.ts.map +1 -1
- package/dist/controllers/view-metadata.controller.js +5 -3
- package/dist/controllers/view-metadata.controller.js.map +1 -1
- package/dist/dtos/create-email-attachment.dto.d.ts.map +1 -1
- package/dist/dtos/create-email-attachment.dto.js +8 -1
- package/dist/dtos/create-email-attachment.dto.js.map +1 -1
- package/dist/dtos/create-email-template.dto.d.ts +1 -0
- package/dist/dtos/create-email-template.dto.d.ts.map +1 -1
- package/dist/dtos/create-email-template.dto.js +26 -3
- package/dist/dtos/create-email-template.dto.js.map +1 -1
- package/dist/dtos/create-sms-template.dto.d.ts +1 -0
- package/dist/dtos/create-sms-template.dto.d.ts.map +1 -1
- package/dist/dtos/create-sms-template.dto.js +29 -2
- package/dist/dtos/create-sms-template.dto.js.map +1 -1
- package/dist/dtos/update-email-attachment.dto.d.ts +8 -0
- package/dist/dtos/update-email-attachment.dto.d.ts.map +1 -0
- package/dist/dtos/update-email-attachment.dto.js +58 -0
- package/dist/dtos/update-email-attachment.dto.js.map +1 -0
- package/dist/dtos/update-email-template.dto.d.ts +7 -0
- package/dist/dtos/update-email-template.dto.d.ts.map +1 -1
- package/dist/dtos/update-email-template.dto.js +61 -1
- package/dist/dtos/update-email-template.dto.js.map +1 -1
- package/dist/dtos/update-sms-template.dto.d.ts +7 -0
- package/dist/dtos/update-sms-template.dto.d.ts.map +1 -1
- package/dist/dtos/update-sms-template.dto.js +57 -1
- package/dist/dtos/update-sms-template.dto.js.map +1 -1
- package/dist/entities/email-attachment.entity.d.ts.map +1 -1
- package/dist/entities/email-attachment.entity.js +6 -5
- package/dist/entities/email-attachment.entity.js.map +1 -1
- package/dist/entities/email-template.entity.d.ts +1 -0
- package/dist/entities/email-template.entity.d.ts.map +1 -1
- package/dist/entities/email-template.entity.js +17 -7
- package/dist/entities/email-template.entity.js.map +1 -1
- package/dist/entities/sms-template.entity.d.ts +1 -0
- package/dist/entities/sms-template.entity.d.ts.map +1 -1
- package/dist/entities/sms-template.entity.js +16 -7
- package/dist/entities/sms-template.entity.js.map +1 -1
- package/dist/seeders/seed-data/solid-core-metadata.json +640 -9
- package/dist/services/authentication.service.d.ts +0 -1
- package/dist/services/authentication.service.d.ts.map +1 -1
- package/dist/services/authentication.service.js +0 -1
- package/dist/services/authentication.service.js.map +1 -1
- package/dist/services/email-template.service.d.ts +22 -12
- package/dist/services/email-template.service.d.ts.map +1 -1
- package/dist/services/email-template.service.js +37 -46
- package/dist/services/email-template.service.js.map +1 -1
- package/dist/services/sms-template.service.d.ts +23 -13
- package/dist/services/sms-template.service.d.ts.map +1 -1
- package/dist/services/sms-template.service.js +41 -49
- package/dist/services/sms-template.service.js.map +1 -1
- package/dist/services/user-view-metadata.service.d.ts +2 -1
- package/dist/services/user-view-metadata.service.d.ts.map +1 -1
- package/dist/services/user-view-metadata.service.js +3 -3
- package/dist/services/user-view-metadata.service.js.map +1 -1
- package/dist/services/view-metadata.service.d.ts +1 -1
- package/dist/services/view-metadata.service.d.ts.map +1 -1
- package/dist/services/view-metadata.service.js +4 -4
- package/dist/services/view-metadata.service.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/controllers/email-template.controller.ts +57 -38
- package/src/controllers/sms-template.controller.ts +58 -37
- package/src/controllers/user-view-metadata.controller.ts +4 -2
- package/src/controllers/view-metadata.controller.ts +18 -16
- package/src/dtos/create-email-attachment.dto.ts +8 -6
- package/src/dtos/create-email-template.dto.ts +22 -11
- package/src/dtos/create-sms-template.dto.ts +22 -8
- package/src/dtos/update-email-attachment.dto.ts +36 -0
- package/src/dtos/update-email-template.dto.ts +40 -2
- package/src/dtos/update-sms-template.dto.ts +42 -2
- package/src/entities/email-attachment.entity.ts +6 -10
- package/src/entities/email-template.entity.ts +12 -16
- package/src/entities/sms-template.entity.ts +11 -14
- package/src/seeders/seed-data/solid-core-metadata.json +640 -9
- package/src/services/authentication.service.ts +1 -1
- package/src/services/email-template.service.ts +27 -54
- package/src/services/sms-template.service.ts +32 -55
- package/src/services/user-view-metadata.service.ts +4 -3
- package/src/services/view-metadata.service.ts +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-metadata.controller.js","sourceRoot":"","sources":["../../src/controllers/view-metadata.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwH;AACxH,+DAA+D;AAC/D,6CAAmE;AACnE,6EAAwE;AACxE,+EAAyE;AACzE,+EAAyE;AACzE,mGAA8F;AAC9F,iFAA4E;
|
|
1
|
+
{"version":3,"file":"view-metadata.controller.js","sourceRoot":"","sources":["../../src/controllers/view-metadata.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwH;AACxH,+DAA+D;AAC/D,6CAAmE;AACnE,6EAAwE;AACxE,+EAAyE;AACzE,+EAAyE;AACzE,mGAA8F;AAC9F,iFAA4E;AAC5E,+EAAkE;AAK3D,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAA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AK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,cAAK,GAAE,CAAA;IAAc,WAAA,IAAA,8DAA4B,GAAE,CAAA;;qDAAsB,kDAAsB;;qDAEtI;AAGK;IADL,IAAA,eAAM,EAAC,OAAO,CAAC;;IACE,WAAA,IAAA,aAAI,GAAE,CAAA;IAAiB,WAAA,IAAA,8DAA4B,GAAE,CAAA;;4CAAsB,kDAAsB;;wDAElH;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,eAAM,EAAC,KAAK,CAAC;;IACA,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,8DAA4B,GAAE,CAAA;;6CAAsB,kDAAsB;;oDAEhH;AAID;IAFC,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,YAAG,EAAC,gBAAgB,CAAC;;IACX,WAAA,IAAA,cAAK,GAAE,CAAA;IAAc,WAAA,IAAA,kCAAU,GAAE,CAAA;;;;uDAE3C;iCA9DU,sBAAsB;IAFlC,IAAA,iBAAO,EAAC,KAAK,CAAC;IACd,IAAA,mBAAU,EAAC,eAAe,CAAC;qCAEY,2CAAmB;GAD9C,sBAAsB,CAgElC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-email-attachment.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-email-attachment.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-email-attachment.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-email-attachment.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,wBAAwB;IAKjC,IAAI,EAAE,MAAM,CAAC;IAIb,WAAW,EAAE,MAAM,CAAC;IAIpB,YAAY,EAAE,MAAM,CAAC;IAIrB,GAAG,EAAE,MAAM,CAAC;IAIZ,QAAQ,EAAE,MAAM,CAAC;IAGjB,eAAe,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -12,35 +12,42 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateEmailAttachmentDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
16
|
class CreateEmailAttachmentDto {
|
|
16
17
|
static _OPENAPI_METADATA_FACTORY() {
|
|
17
|
-
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, relativePath: { required: true, type: () => String }, url: { required: true, type: () => String }, template: { required: true, type: () => String }, emailTemplateId: { required: true, type: () => Number } };
|
|
18
|
+
return { name: { required: true, type: () => String, pattern: "/[a-z]+(-[a-z]+)*/" }, displayName: { required: true, type: () => String }, relativePath: { required: true, type: () => String }, url: { required: true, type: () => String }, template: { required: true, type: () => String }, emailTemplateId: { required: true, type: () => Number } };
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
exports.CreateEmailAttachmentDto = CreateEmailAttachmentDto;
|
|
21
22
|
__decorate([
|
|
22
23
|
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.Matches)(/[a-z]+(-[a-z]+)*/),
|
|
23
25
|
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, swagger_1.ApiProperty)(),
|
|
24
27
|
__metadata("design:type", String)
|
|
25
28
|
], CreateEmailAttachmentDto.prototype, "name", void 0);
|
|
26
29
|
__decorate([
|
|
27
30
|
(0, class_validator_1.IsNotEmpty)(),
|
|
28
31
|
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, swagger_1.ApiProperty)(),
|
|
29
33
|
__metadata("design:type", String)
|
|
30
34
|
], CreateEmailAttachmentDto.prototype, "displayName", void 0);
|
|
31
35
|
__decorate([
|
|
32
36
|
(0, class_validator_1.IsOptional)(),
|
|
33
37
|
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, swagger_1.ApiProperty)(),
|
|
34
39
|
__metadata("design:type", String)
|
|
35
40
|
], CreateEmailAttachmentDto.prototype, "relativePath", void 0);
|
|
36
41
|
__decorate([
|
|
37
42
|
(0, class_validator_1.IsOptional)(),
|
|
38
43
|
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, swagger_1.ApiProperty)(),
|
|
39
45
|
__metadata("design:type", String)
|
|
40
46
|
], CreateEmailAttachmentDto.prototype, "url", void 0);
|
|
41
47
|
__decorate([
|
|
42
48
|
(0, class_validator_1.IsOptional)(),
|
|
43
49
|
(0, class_validator_1.IsString)(),
|
|
50
|
+
(0, swagger_1.ApiProperty)(),
|
|
44
51
|
__metadata("design:type", String)
|
|
45
52
|
], CreateEmailAttachmentDto.prototype, "template", void 0);
|
|
46
53
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-email-attachment.dto.js","sourceRoot":"","sources":["../../src/dtos/create-email-attachment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"create-email-attachment.dto.js","sourceRoot":"","sources":["../../src/dtos/create-email-attachment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAmF;AACnF,6CAA8C;AAE9C,MAAa,wBAAwB;;;;CAyBpC;AAzBD,4DAyBC;AApBG;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EAAC,kBAAkB,CAAC;IAC3B,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;sDACD;AAIb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;6DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;8DACO;AAIrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;qDACF;AAIZ;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;0DACG;AAGjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iEACgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-email-template.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-email-template.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"create-email-template.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-email-template.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAIzE,qBAAa,sBAAsB;IAK/B,IAAI,EAAE,MAAM,CAAC;IAIb,WAAW,EAAE,MAAM,CAAC;IAIpB,IAAI,EAAE,MAAM,CAAC;IAIb,OAAO,EAAE,MAAM,CAAQ;IAIvB,WAAW,EAAE,MAAM,CAAC;IAIpB,MAAM,EAAE,OAAO,CAAQ;IAKvB,WAAW,EAAE,wBAAwB,EAAE,CAAC;IAIxC,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -14,35 +14,52 @@ const openapi = require("@nestjs/swagger");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const create_email_attachment_dto_1 = require("./create-email-attachment.dto");
|
|
16
16
|
const class_transformer_1 = require("class-transformer");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
17
18
|
class CreateEmailTemplateDto {
|
|
19
|
+
constructor() {
|
|
20
|
+
this.subject = "{}";
|
|
21
|
+
this.active = true;
|
|
22
|
+
}
|
|
18
23
|
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
-
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, body: { required: true, type: () => String }, subject: { required: true, type: () => String,
|
|
24
|
+
return { name: { required: true, type: () => String, pattern: "/[a-z]+(-[a-z]+)*/" }, displayName: { required: true, type: () => String }, body: { required: true, type: () => String }, subject: { required: true, type: () => String, default: "{}" }, description: { required: true, type: () => String }, active: { required: true, type: () => Boolean, default: true }, attachments: { required: true, type: () => [require("./create-email-attachment.dto").CreateEmailAttachmentDto] }, type: { required: true, type: () => String } };
|
|
20
25
|
}
|
|
21
26
|
}
|
|
22
27
|
exports.CreateEmailTemplateDto = CreateEmailTemplateDto;
|
|
23
28
|
__decorate([
|
|
24
29
|
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
+
(0, class_validator_1.Matches)(/[a-z]+(-[a-z]+)*/),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, swagger_1.ApiProperty)(),
|
|
25
33
|
__metadata("design:type", String)
|
|
26
34
|
], CreateEmailTemplateDto.prototype, "name", void 0);
|
|
27
35
|
__decorate([
|
|
28
36
|
(0, class_validator_1.IsNotEmpty)(),
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, swagger_1.ApiProperty)(),
|
|
29
39
|
__metadata("design:type", String)
|
|
30
40
|
], CreateEmailTemplateDto.prototype, "displayName", void 0);
|
|
31
41
|
__decorate([
|
|
32
42
|
(0, class_validator_1.IsNotEmpty)(),
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, swagger_1.ApiProperty)(),
|
|
33
45
|
__metadata("design:type", String)
|
|
34
46
|
], CreateEmailTemplateDto.prototype, "body", void 0);
|
|
35
47
|
__decorate([
|
|
36
48
|
(0, class_validator_1.IsNotEmpty)(),
|
|
37
|
-
(0, class_validator_1.
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
(0, swagger_1.ApiProperty)(),
|
|
38
51
|
__metadata("design:type", String)
|
|
39
52
|
], CreateEmailTemplateDto.prototype, "subject", void 0);
|
|
40
53
|
__decorate([
|
|
41
|
-
(0, class_validator_1.
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsString)(),
|
|
56
|
+
(0, swagger_1.ApiProperty)(),
|
|
42
57
|
__metadata("design:type", String)
|
|
43
58
|
], CreateEmailTemplateDto.prototype, "description", void 0);
|
|
44
59
|
__decorate([
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
61
|
(0, class_validator_1.IsBoolean)(),
|
|
62
|
+
(0, swagger_1.ApiProperty)(),
|
|
46
63
|
__metadata("design:type", Boolean)
|
|
47
64
|
], CreateEmailTemplateDto.prototype, "active", void 0);
|
|
48
65
|
__decorate([
|
|
@@ -52,4 +69,10 @@ __decorate([
|
|
|
52
69
|
(0, class_transformer_1.Type)(() => create_email_attachment_dto_1.CreateEmailAttachmentDto),
|
|
53
70
|
__metadata("design:type", Array)
|
|
54
71
|
], CreateEmailTemplateDto.prototype, "attachments", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
(0, class_validator_1.IsString)(),
|
|
75
|
+
(0, swagger_1.ApiProperty)(),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], CreateEmailTemplateDto.prototype, "type", void 0);
|
|
55
78
|
//# sourceMappingURL=create-email-template.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-email-template.dto.js","sourceRoot":"","sources":["../../src/dtos/create-email-template.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"create-email-template.dto.js","sourceRoot":"","sources":["../../src/dtos/create-email-template.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA+I;AAC/I,+EAAyE;AACzE,yDAAyC;AACzC,6CAA8C;AAE9C,MAAa,sBAAsB;IAAnC;QAiBI,YAAO,GAAW,IAAI,CAAC;QAQvB,WAAM,GAAY,IAAI,CAAC;KAU1B;;8WAVqB,IAAI;;CAUzB;AAnCD,wDAmCC;AA9BG;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EAAC,kBAAkB,CAAC;IAC3B,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACD;AAIb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;2DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACD;AAIb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;uDACS;AAIvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;2DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;sDACS;AAKvB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sDAAwB,CAAC;;2DACG;AAIxC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-sms-template.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-sms-template.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-sms-template.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-sms-template.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,oBAAoB;IAK7B,IAAI,EAAE,MAAM,CAAC;IAIb,WAAW,EAAE,MAAM,CAAC;IAIpB,IAAI,EAAE,MAAM,CAAC;IAIb,qBAAqB,EAAE,MAAM,CAAC;IAI9B,WAAW,EAAE,MAAM,CAAC;IAIpB,MAAM,EAAE,OAAO,CAAQ;IAIvB,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -12,30 +12,57 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateSmsTemplateDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
16
|
class CreateSmsTemplateDto {
|
|
17
|
+
constructor() {
|
|
18
|
+
this.active = true;
|
|
19
|
+
}
|
|
16
20
|
static _OPENAPI_METADATA_FACTORY() {
|
|
17
|
-
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, body: { required: true, type: () => String }, smsProviderTemplateId: { required: true, type: () => String }, description: { required: true, type: () => String }, active: { required: true, type: () => Boolean } };
|
|
21
|
+
return { name: { required: true, type: () => String, pattern: "/[a-z]+(-[a-z]+)*/" }, displayName: { required: true, type: () => String }, body: { required: true, type: () => String }, smsProviderTemplateId: { required: true, type: () => String }, description: { required: true, type: () => String }, active: { required: true, type: () => Boolean, default: true }, type: { required: true, type: () => String } };
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
exports.CreateSmsTemplateDto = CreateSmsTemplateDto;
|
|
21
25
|
__decorate([
|
|
22
26
|
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
(0, class_validator_1.Matches)(/[a-z]+(-[a-z]+)*/),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, swagger_1.ApiProperty)(),
|
|
23
30
|
__metadata("design:type", String)
|
|
24
31
|
], CreateSmsTemplateDto.prototype, "name", void 0);
|
|
25
32
|
__decorate([
|
|
26
33
|
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, swagger_1.ApiProperty)(),
|
|
27
36
|
__metadata("design:type", String)
|
|
28
37
|
], CreateSmsTemplateDto.prototype, "displayName", void 0);
|
|
29
38
|
__decorate([
|
|
30
39
|
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
(0, swagger_1.ApiProperty)(),
|
|
31
42
|
__metadata("design:type", String)
|
|
32
43
|
], CreateSmsTemplateDto.prototype, "body", void 0);
|
|
33
44
|
__decorate([
|
|
34
45
|
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, swagger_1.ApiProperty)(),
|
|
35
48
|
__metadata("design:type", String)
|
|
36
49
|
], CreateSmsTemplateDto.prototype, "smsProviderTemplateId", void 0);
|
|
37
50
|
__decorate([
|
|
38
|
-
(0, class_validator_1.
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_validator_1.IsString)(),
|
|
53
|
+
(0, swagger_1.ApiProperty)(),
|
|
39
54
|
__metadata("design:type", String)
|
|
40
55
|
], CreateSmsTemplateDto.prototype, "description", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsBoolean)(),
|
|
59
|
+
(0, swagger_1.ApiProperty)(),
|
|
60
|
+
__metadata("design:type", Boolean)
|
|
61
|
+
], CreateSmsTemplateDto.prototype, "active", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
(0, swagger_1.ApiProperty)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], CreateSmsTemplateDto.prototype, "type", void 0);
|
|
41
68
|
//# sourceMappingURL=create-sms-template.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-sms-template.dto.js","sourceRoot":"","sources":["../../src/dtos/create-sms-template.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"create-sms-template.dto.js","sourceRoot":"","sources":["../../src/dtos/create-sms-template.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAsH;AACtH,6CAA8C;AAE9C,MAAa,oBAAoB;IAAjC;QAyBI,WAAM,GAAY,IAAI,CAAC;KAK1B;;6WALqB,IAAI;;CAKzB;AA9BD,oDA8BC;AAzBG;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EAAC,kBAAkB,CAAC;IAC3B,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;kDACD;AAIb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;yDACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;kDACD;AAIb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;mEACgB;AAI9B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;yDACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;oDACS;AAIvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;kDACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-email-attachment.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-email-attachment.dto.ts"],"names":[],"mappings":"AAKA,qBAAa,wBAAwB;IAQrC,IAAI,EAAE,MAAM,CAAC;IAMb,WAAW,EAAE,MAAM,CAAC;IAKpB,YAAY,EAAE,MAAM,CAAC;IAKrB,GAAG,EAAE,MAAM,CAAC;IAKZ,QAAQ,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.UpdateEmailAttachmentDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const class_validator_2 = require("class-validator");
|
|
17
|
+
const class_validator_3 = require("class-validator");
|
|
18
|
+
const class_validator_4 = require("class-validator");
|
|
19
|
+
class UpdateEmailAttachmentDto {
|
|
20
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
21
|
+
return { name: { required: true, type: () => String, pattern: "/[a-z]+(-[a-z]+)*/" }, displayName: { required: true, type: () => String }, relativePath: { required: true, type: () => String }, url: { required: true, type: () => String }, template: { required: true, type: () => String } };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.UpdateEmailAttachmentDto = UpdateEmailAttachmentDto;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_4.IsNotEmpty)(),
|
|
27
|
+
(0, class_validator_3.IsOptional)(),
|
|
28
|
+
(0, class_validator_2.Matches)(/[a-z]+(-[a-z]+)*/),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, swagger_1.ApiProperty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], UpdateEmailAttachmentDto.prototype, "name", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_4.IsNotEmpty)(),
|
|
35
|
+
(0, class_validator_3.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, swagger_1.ApiProperty)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], UpdateEmailAttachmentDto.prototype, "displayName", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_3.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
(0, swagger_1.ApiProperty)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], UpdateEmailAttachmentDto.prototype, "relativePath", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_3.IsOptional)(),
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, swagger_1.ApiProperty)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], UpdateEmailAttachmentDto.prototype, "url", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_3.IsOptional)(),
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
(0, swagger_1.ApiProperty)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], UpdateEmailAttachmentDto.prototype, "template", void 0);
|
|
58
|
+
//# sourceMappingURL=update-email-attachment.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-email-attachment.dto.js","sourceRoot":"","sources":["../../src/dtos/update-email-attachment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2C;AAC3C,qDAA0C;AAC1C,qDAA6C;AAC7C,qDAA6C;AAC7C,MAAa,wBAAwB;;;;CA8BpC;AA9BD,4DA8BC;AAtBD;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EAAC,kBAAkB,CAAC;IAC3B,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;sDACD;AAMb;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;6DACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;8DACO;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;qDACF;AAKZ;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;0DACG"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { CreateEmailTemplateDto } from './create-email-template.dto';
|
|
2
2
|
declare const UpdateEmailTemplateDto_base: import("@nestjs/common").Type<Partial<CreateEmailTemplateDto>>;
|
|
3
3
|
export declare class UpdateEmailTemplateDto extends UpdateEmailTemplateDto_base {
|
|
4
|
+
name: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
body: string;
|
|
7
|
+
type: string;
|
|
8
|
+
subject: string;
|
|
9
|
+
description: string;
|
|
10
|
+
active: boolean;
|
|
4
11
|
}
|
|
5
12
|
export {};
|
|
6
13
|
//# sourceMappingURL=update-email-template.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-email-template.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-email-template.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;;
|
|
1
|
+
{"version":3,"file":"update-email-template.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-email-template.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;;AAMrE,qBAAa,sBAAuB,SAAQ,2BAAmC;IAM3E,IAAI,EAAE,MAAM,CAAC;IAKb,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,EAAE,MAAM,CAAC;IAIb,IAAI,EAAE,MAAM,CAAC;IAKb,OAAO,EAAE,MAAM,CAAC;IAIhB,WAAW,EAAE,MAAM,CAAC;IAIpB,MAAM,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -1,14 +1,74 @@
|
|
|
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 });
|
|
3
12
|
exports.UpdateEmailTemplateDto = void 0;
|
|
4
13
|
const openapi = require("@nestjs/swagger");
|
|
5
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
6
15
|
const create_email_template_dto_1 = require("./create-email-template.dto");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
const class_validator_2 = require("class-validator");
|
|
18
|
+
const class_validator_3 = require("class-validator");
|
|
19
|
+
const class_validator_4 = require("class-validator");
|
|
7
20
|
class UpdateEmailTemplateDto extends (0, swagger_1.PartialType)(create_email_template_dto_1.CreateEmailTemplateDto) {
|
|
8
21
|
static _OPENAPI_METADATA_FACTORY() {
|
|
9
|
-
return {};
|
|
22
|
+
return { name: { required: true, type: () => String, pattern: "/[a-z]+(-[a-z]+)*/" }, displayName: { required: true, type: () => String }, body: { required: true, type: () => String }, type: { required: true, type: () => String }, subject: { required: true, type: () => String }, description: { required: true, type: () => String }, active: { required: true, type: () => Boolean } };
|
|
10
23
|
}
|
|
11
24
|
}
|
|
12
25
|
exports.UpdateEmailTemplateDto = UpdateEmailTemplateDto;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_4.IsNotEmpty)(),
|
|
28
|
+
(0, class_validator_3.IsOptional)(),
|
|
29
|
+
(0, class_validator_2.Matches)(/[a-z]+(-[a-z]+)*/),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, swagger_1.ApiProperty)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UpdateEmailTemplateDto.prototype, "name", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_4.IsNotEmpty)(),
|
|
36
|
+
(0, class_validator_3.IsOptional)(),
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, swagger_1.ApiProperty)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], UpdateEmailTemplateDto.prototype, "displayName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_4.IsNotEmpty)(),
|
|
43
|
+
(0, class_validator_3.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, swagger_1.ApiProperty)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], UpdateEmailTemplateDto.prototype, "body", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_3.IsOptional)(),
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
(0, swagger_1.ApiProperty)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], UpdateEmailTemplateDto.prototype, "type", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_4.IsNotEmpty)(),
|
|
56
|
+
(0, class_validator_3.IsOptional)(),
|
|
57
|
+
(0, class_validator_1.IsString)(),
|
|
58
|
+
(0, swagger_1.ApiProperty)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], UpdateEmailTemplateDto.prototype, "subject", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_3.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsString)(),
|
|
64
|
+
(0, swagger_1.ApiProperty)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UpdateEmailTemplateDto.prototype, "description", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_3.IsOptional)(),
|
|
69
|
+
(0, class_validator_4.IsBoolean)(),
|
|
70
|
+
(0, swagger_1.ApiProperty)(),
|
|
71
|
+
__metadata("design:type", Boolean)
|
|
72
|
+
], UpdateEmailTemplateDto.prototype, "active", void 0);
|
|
13
73
|
{ }
|
|
14
74
|
//# sourceMappingURL=update-email-template.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-email-template.dto.js","sourceRoot":"","sources":["../../src/dtos/update-email-template.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-email-template.dto.js","sourceRoot":"","sources":["../../src/dtos/update-email-template.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA2D;AAC3D,2EAAqE;AACrE,qDAA2C;AAC3C,qDAA0C;AAC1C,qDAA6C;AAC7C,qDAAwD;AAExD,MAAa,sBAAuB,SAAQ,IAAA,qBAAW,EAAC,kDAAsB,CAAC;;;;CAkC9E;AAlCD,wDAkCC;AA5BG;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EAAC,kBAAkB,CAAC;IAC3B,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACD;AAKb;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;2DACM;AAKpB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACD;AAIb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACD;AAKb;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;uDACE;AAIhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;2DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;sDACE;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { CreateSmsTemplateDto } from './create-sms-template.dto';
|
|
2
2
|
declare const UpdateSmsTemplateDto_base: import("@nestjs/common").Type<Partial<CreateSmsTemplateDto>>;
|
|
3
3
|
export declare class UpdateSmsTemplateDto extends UpdateSmsTemplateDto_base {
|
|
4
|
+
type: string;
|
|
5
|
+
name: string;
|
|
6
|
+
smsProviderTemplateId: string;
|
|
7
|
+
displayName: string;
|
|
8
|
+
body: string;
|
|
9
|
+
description: string;
|
|
10
|
+
active: boolean;
|
|
4
11
|
}
|
|
5
12
|
export {};
|
|
6
13
|
//# sourceMappingURL=update-sms-template.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-sms-template.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-sms-template.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;;
|
|
1
|
+
{"version":3,"file":"update-sms-template.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-sms-template.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;;AAIjE,qBAAa,oBAAqB,SAAQ,yBAAiC;IAI3E,IAAI,EAAE,MAAM,CAAC;IAOb,IAAI,EAAE,MAAM,CAAC;IAKb,qBAAqB,EAAE,MAAM,CAAC;IAM9B,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,EAAE,MAAM,CAAC;IAKb,WAAW,EAAE,MAAM,CAAC;IAKpB,MAAM,EAAE,OAAO,CAAC;CACf"}
|
|
@@ -1,14 +1,70 @@
|
|
|
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 });
|
|
3
12
|
exports.UpdateSmsTemplateDto = void 0;
|
|
4
13
|
const openapi = require("@nestjs/swagger");
|
|
5
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
6
15
|
const create_sms_template_dto_1 = require("./create-sms-template.dto");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
const class_validator_2 = require("class-validator");
|
|
7
18
|
class UpdateSmsTemplateDto extends (0, swagger_1.PartialType)(create_sms_template_dto_1.CreateSmsTemplateDto) {
|
|
8
19
|
static _OPENAPI_METADATA_FACTORY() {
|
|
9
|
-
return {};
|
|
20
|
+
return { type: { required: true, type: () => String }, name: { required: true, type: () => String, pattern: "/[a-z]+(-[a-z]+)*/" }, smsProviderTemplateId: { required: true, type: () => String }, displayName: { required: true, type: () => String }, body: { required: true, type: () => String }, description: { required: true, type: () => String }, active: { required: true, type: () => Boolean } };
|
|
10
21
|
}
|
|
11
22
|
}
|
|
12
23
|
exports.UpdateSmsTemplateDto = UpdateSmsTemplateDto;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_2.IsOptional)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, swagger_1.ApiProperty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], UpdateSmsTemplateDto.prototype, "type", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
32
|
+
(0, class_validator_2.IsOptional)(),
|
|
33
|
+
(0, class_validator_2.Matches)(/[a-z]+(-[a-z]+)*/),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, swagger_1.ApiProperty)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], UpdateSmsTemplateDto.prototype, "name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_2.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
(0, swagger_1.ApiProperty)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], UpdateSmsTemplateDto.prototype, "smsProviderTemplateId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
46
|
+
(0, class_validator_2.IsOptional)(),
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
(0, swagger_1.ApiProperty)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], UpdateSmsTemplateDto.prototype, "displayName", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_2.IsOptional)(),
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, swagger_1.ApiProperty)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], UpdateSmsTemplateDto.prototype, "body", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_2.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsString)(),
|
|
60
|
+
(0, swagger_1.ApiProperty)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], UpdateSmsTemplateDto.prototype, "description", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_2.IsOptional)(),
|
|
65
|
+
(0, class_validator_2.IsBoolean)(),
|
|
66
|
+
(0, swagger_1.ApiProperty)(),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], UpdateSmsTemplateDto.prototype, "active", void 0);
|
|
13
69
|
{ }
|
|
14
70
|
//# sourceMappingURL=update-sms-template.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-sms-template.dto.js","sourceRoot":"","sources":["../../src/dtos/update-sms-template.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-sms-template.dto.js","sourceRoot":"","sources":["../../src/dtos/update-sms-template.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA2D;AAC3D,uEAAiE;AACjE,qDAA2C;AAC3C,qDAA6E;AAE7E,MAAa,oBAAqB,SAAQ,IAAA,qBAAW,EAAC,8CAAoB,CAAC;;;;CAsC1E;AAtCD,oDAsCC;AAlCD;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;kDACD;AAOb;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EAAC,kBAAkB,CAAC;IAC3B,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;kDACD;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;mEACgB;AAM9B;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;yDACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;kDACD;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;yDACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;oDACE;AACd,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-attachment.entity.d.ts","sourceRoot":"","sources":["../../src/entities/email-attachment.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,qBACa,eAAgB,SAAQ,YAAY;
|
|
1
|
+
{"version":3,"file":"email-attachment.entity.d.ts","sourceRoot":"","sources":["../../src/entities/email-attachment.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,qBACa,eAAgB,SAAQ,YAAY;IAG7C,IAAI,EAAE,MAAM,CAAC;IAEb,WAAW,EAAE,MAAM,CAAC;IAEpB,YAAY,EAAE,MAAM,CAAC;IAErB,GAAG,EAAE,MAAM,CAAC;IAEZ,QAAQ,EAAE,MAAM,CAAC;IAIjB,aAAa,EAAE,aAAa,CAAC;CAChC"}
|
|
@@ -21,23 +21,24 @@ let EmailAttachment = class EmailAttachment extends common_entity_1.CommonEntity
|
|
|
21
21
|
};
|
|
22
22
|
exports.EmailAttachment = EmailAttachment;
|
|
23
23
|
__decorate([
|
|
24
|
-
(0, typeorm_1.
|
|
24
|
+
(0, typeorm_1.Index)({ unique: true }),
|
|
25
|
+
(0, typeorm_1.Column)({ name: "name", type: "varchar" }),
|
|
25
26
|
__metadata("design:type", String)
|
|
26
27
|
], EmailAttachment.prototype, "name", void 0);
|
|
27
28
|
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)(),
|
|
29
|
+
(0, typeorm_1.Column)({ name: "display_name", type: "varchar" }),
|
|
29
30
|
__metadata("design:type", String)
|
|
30
31
|
], EmailAttachment.prototype, "displayName", void 0);
|
|
31
32
|
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
33
|
+
(0, typeorm_1.Column)({ name: "relativePath", type: "varchar", nullable: true }),
|
|
33
34
|
__metadata("design:type", String)
|
|
34
35
|
], EmailAttachment.prototype, "relativePath", void 0);
|
|
35
36
|
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
37
|
+
(0, typeorm_1.Column)({ name: "url", type: "varchar", nullable: true }),
|
|
37
38
|
__metadata("design:type", String)
|
|
38
39
|
], EmailAttachment.prototype, "url", void 0);
|
|
39
40
|
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
41
|
+
(0, typeorm_1.Column)({ name: "template", type: "text", nullable: true }),
|
|
41
42
|
__metadata("design:type", String)
|
|
42
43
|
], EmailAttachment.prototype, "template", void 0);
|
|
43
44
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-attachment.entity.js","sourceRoot":"","sources":["../../src/entities/email-attachment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAuE;AACvE,mDAA+C;AAC/C,mEAAwD;AAIjD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,4BAAY;;;;
|
|
1
|
+
{"version":3,"file":"email-attachment.entity.js","sourceRoot":"","sources":["../../src/entities/email-attachment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAuE;AACvE,mDAA+C;AAC/C,mEAAwD;AAIjD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,4BAAY;;;;CAgBhD,CAAA;AAhBY,0CAAe;AAGxB;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;6CAC7B;AAEb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;oDAC9B;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAC7C;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC7C;AAEZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC1C;AAIjB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qCAAa,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC3F,IAAA,oBAAU,GAAE;8BACE,qCAAa;sDAAC;0BAfpB,eAAe;IAD3B,IAAA,gBAAM,EAAC,qBAAqB,CAAC;GACjB,eAAe,CAgB3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-template.entity.d.ts","sourceRoot":"","sources":["../../src/entities/email-template.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"email-template.entity.d.ts","sourceRoot":"","sources":["../../src/entities/email-template.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,qBACa,aAAc,SAAQ,YAAY;IAG3C,IAAI,EAAE,MAAM,CAAC;IAEb,WAAW,EAAE,MAAM,CAAC;IAEpB,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAQ;IAEvB,WAAW,EAAE,MAAM,CAAC;IAEpB,MAAM,EAAE,OAAO,CAAQ;IAEvB,WAAW,EAAE,eAAe,EAAE,CAAC;IAE/B,IAAI,EAAE,MAAM,CAAC;CAChB"}
|