@solidstarters/solid-core 1.2.47 → 1.2.49
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/security-rule.controller.d.ts +41 -0
- package/dist/controllers/security-rule.controller.d.ts.map +1 -0
- package/dist/controllers/security-rule.controller.js +179 -0
- package/dist/controllers/security-rule.controller.js.map +1 -0
- 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-model-metadata.dto.d.ts +3 -0
- package/dist/dtos/create-model-metadata.dto.d.ts.map +1 -1
- package/dist/dtos/create-model-metadata.dto.js +18 -1
- package/dist/dtos/create-model-metadata.dto.js.map +1 -1
- package/dist/dtos/create-security-rule.dto.d.ts +10 -0
- package/dist/dtos/create-security-rule.dto.d.ts.map +1 -0
- package/dist/dtos/create-security-rule.dto.js +65 -0
- package/dist/dtos/create-security-rule.dto.js.map +1 -0
- 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/security-rule-config.dto.d.ts +4 -0
- package/dist/dtos/security-rule-config.dto.d.ts.map +1 -0
- package/dist/dtos/security-rule-config.dto.js +4 -0
- package/dist/dtos/security-rule-config.dto.js.map +1 -0
- 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-security-rule.dto.d.ts +11 -0
- package/dist/dtos/update-security-rule.dto.d.ts.map +1 -0
- package/dist/dtos/update-security-rule.dto.js +72 -0
- package/dist/dtos/update-security-rule.dto.js.map +1 -0
- 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/model-metadata.entity.d.ts +2 -0
- package/dist/entities/model-metadata.entity.d.ts.map +1 -1
- package/dist/entities/model-metadata.entity.js +9 -1
- package/dist/entities/model-metadata.entity.js.map +1 -1
- package/dist/entities/security-rule.entity.d.ts +11 -0
- package/dist/entities/security-rule.entity.d.ts.map +1 -0
- package/dist/entities/security-rule.entity.js +53 -0
- package/dist/entities/security-rule.entity.js.map +1 -0
- 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/entities/user.entity.d.ts.map +1 -1
- package/dist/entities/user.entity.js +2 -1
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/helpers/solid-registry.d.ts +22 -1
- package/dist/helpers/solid-registry.d.ts.map +1 -1
- package/dist/helpers/solid-registry.js +29 -0
- package/dist/helpers/solid-registry.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +2 -0
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/repository/security-rule.repository.d.ts +20 -0
- package/dist/repository/security-rule.repository.d.ts.map +1 -0
- package/dist/repository/security-rule.repository.js +128 -0
- package/dist/repository/security-rule.repository.js.map +1 -0
- package/dist/repository/solid-base.repository.d.ts +14 -0
- package/dist/repository/solid-base.repository.d.ts.map +1 -0
- package/dist/repository/solid-base.repository.js +26 -0
- package/dist/repository/solid-base.repository.js.map +1 -0
- package/dist/seeders/module-metadata-seeder.service.d.ts +5 -1
- package/dist/seeders/module-metadata-seeder.service.d.ts.map +1 -1
- package/dist/seeders/module-metadata-seeder.service.js +22 -2
- package/dist/seeders/module-metadata-seeder.service.js.map +1 -1
- package/dist/seeders/seed-data/solid-core-metadata.json +1184 -290
- 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/field-metadata.service.d.ts.map +1 -1
- package/dist/services/field-metadata.service.js +1 -0
- package/dist/services/field-metadata.service.js.map +1 -1
- package/dist/services/module-metadata.service.d.ts.map +1 -1
- package/dist/services/module-metadata.service.js +1 -0
- package/dist/services/module-metadata.service.js.map +1 -1
- package/dist/services/request-context.service.d.ts +7 -0
- package/dist/services/request-context.service.d.ts.map +1 -0
- package/dist/services/request-context.service.js +33 -0
- package/dist/services/request-context.service.js.map +1 -0
- package/dist/services/security-rule.service.d.ts +27 -0
- package/dist/services/security-rule.service.d.ts.map +1 -0
- package/dist/services/security-rule.service.js +71 -0
- package/dist/services/security-rule.service.js.map +1 -0
- 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 +2 -1
- package/dist/services/view-metadata.service.d.ts.map +1 -1
- package/dist/services/view-metadata.service.js +26 -11
- package/dist/services/view-metadata.service.js.map +1 -1
- package/dist/solid-core.module.d.ts.map +1 -1
- package/dist/solid-core.module.js +15 -1
- package/dist/solid-core.module.js.map +1 -1
- package/dist/subscribers/security-rule.subscriber.d.ts +16 -0
- package/dist/subscribers/security-rule.subscriber.d.ts.map +1 -0
- package/dist/subscribers/security-rule.subscriber.js +123 -0
- package/dist/subscribers/security-rule.subscriber.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/controllers/email-template.controller.ts +57 -38
- package/src/controllers/security-rule.controller.ts +93 -0
- 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-model-metadata.dto.ts +14 -0
- package/src/dtos/create-security-rule.dto.ts +34 -0
- package/src/dtos/create-sms-template.dto.ts +22 -8
- package/src/dtos/security-rule-config.dto.ts +5 -0
- package/src/dtos/update-email-attachment.dto.ts +36 -0
- package/src/dtos/update-email-template.dto.ts +40 -2
- package/src/dtos/update-security-rule.dto.ts +39 -0
- 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/model-metadata.entity.ts +6 -0
- package/src/entities/security-rule.entity.ts +25 -0
- package/src/entities/sms-template.entity.ts +11 -14
- package/src/entities/user.entity.ts +2 -1
- package/src/helpers/solid-registry.ts +34 -0
- package/src/index.ts +9 -0
- package/src/interfaces.ts +2 -0
- package/src/repository/security-rule.repository.ts +135 -0
- package/src/repository/solid-base.repository.ts +45 -0
- package/src/seeders/module-metadata-seeder.service.ts +28 -1
- package/src/seeders/seed-data/solid-core-metadata.json +1189 -294
- package/src/seeders/seed-data/solid-core-metadata.json.bkp +6638 -0
- package/src/services/authentication.service.ts +1 -1
- package/src/services/email-template.service.ts +27 -54
- package/src/services/field-metadata.service.ts +1 -0
- package/src/services/module-metadata.service.ts +1 -0
- package/src/services/request-context.service.ts +16 -0
- package/src/services/security-rule.service.ts +54 -0
- 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 +30 -11
- package/src/solid-core.module.ts +15 -1
- package/src/subscribers/security-rule.subscriber.ts +78 -0
|
@@ -0,0 +1,65 @@
|
|
|
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.CreateSecurityRuleDto = 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
|
+
class CreateSecurityRuleDto {
|
|
18
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
+
return { name: { required: true, type: () => String }, description: { required: true, type: () => String }, roleId: { required: true, type: () => Number }, roleUserKey: { required: true, type: () => String }, modelMetadataId: { required: true, type: () => Number }, modelMetadataUserKey: { required: true, type: () => String }, securityRuleConfig: { required: true, type: () => Object } };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.CreateSecurityRuleDto = CreateSecurityRuleDto;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, swagger_1.ApiProperty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateSecurityRuleDto.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, swagger_1.ApiProperty)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CreateSecurityRuleDto.prototype, "description", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_2.IsOptional)(),
|
|
37
|
+
(0, class_validator_2.IsInt)(),
|
|
38
|
+
(0, swagger_1.ApiProperty)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], CreateSecurityRuleDto.prototype, "roleId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
(0, class_validator_2.IsOptional)(),
|
|
44
|
+
(0, swagger_1.ApiProperty)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CreateSecurityRuleDto.prototype, "roleUserKey", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_2.IsOptional)(),
|
|
49
|
+
(0, class_validator_2.IsInt)(),
|
|
50
|
+
(0, swagger_1.ApiProperty)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], CreateSecurityRuleDto.prototype, "modelMetadataId", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
(0, class_validator_2.IsOptional)(),
|
|
56
|
+
(0, swagger_1.ApiProperty)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], CreateSecurityRuleDto.prototype, "modelMetadataUserKey", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
61
|
+
(0, class_validator_2.IsJSON)(),
|
|
62
|
+
(0, swagger_1.ApiProperty)(),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], CreateSecurityRuleDto.prototype, "securityRuleConfig", void 0);
|
|
65
|
+
//# sourceMappingURL=create-security-rule.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-security-rule.dto.js","sourceRoot":"","sources":["../../src/dtos/create-security-rule.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2C;AAC3C,qDAAwE;AAExE,MAAa,qBAAqB;;;;CA6BjC;AA7BD,sDA6BC;AAzBG;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;mDACD;AAIb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;0DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;qDACC;AAIf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;0DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;8DACU;AAIxB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;mEACe;AAI7B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;iEACU"}
|
|
@@ -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":"security-rule-config.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/security-rule-config.dto.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-rule-config.dto.js","sourceRoot":"","sources":["../../src/dtos/security-rule-config.dto.ts"],"names":[],"mappings":""}
|
|
@@ -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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class UpdateSecurityRuleDto {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
roleId: number;
|
|
6
|
+
roleUserKey: string;
|
|
7
|
+
modelMetadataId: number;
|
|
8
|
+
modelMetadataUserKey: string;
|
|
9
|
+
securityRuleConfig: any;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=update-security-rule.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-security-rule.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-security-rule.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,qBAAqB;IAG9B,EAAE,EAAE,MAAM,CAAC;IAKX,IAAI,EAAE,MAAM,CAAC;IAKb,WAAW,EAAE,MAAM,CAAC;IAIpB,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;IAIpB,eAAe,EAAE,MAAM,CAAC;IAIxB,oBAAoB,EAAE,MAAM,CAAC;IAK7B,kBAAkB,EAAE,GAAG,CAAC;CAC3B"}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.UpdateSecurityRuleDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
class UpdateSecurityRuleDto {
|
|
17
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
+
return { id: { required: true, type: () => Number }, name: { required: true, type: () => String }, description: { required: true, type: () => String }, roleId: { required: true, type: () => Number }, roleUserKey: { required: true, type: () => String }, modelMetadataId: { required: true, type: () => Number }, modelMetadataUserKey: { required: true, type: () => String }, securityRuleConfig: { required: true, type: () => Object } };
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.UpdateSecurityRuleDto = UpdateSecurityRuleDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsInt)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], UpdateSecurityRuleDto.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, swagger_1.ApiProperty)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UpdateSecurityRuleDto.prototype, "name", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, swagger_1.ApiProperty)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], UpdateSecurityRuleDto.prototype, "description", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
(0, class_validator_1.IsInt)(),
|
|
44
|
+
(0, swagger_1.ApiProperty)(),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], UpdateSecurityRuleDto.prototype, "roleId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, swagger_1.ApiProperty)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], UpdateSecurityRuleDto.prototype, "roleUserKey", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsInt)(),
|
|
56
|
+
(0, swagger_1.ApiProperty)(),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], UpdateSecurityRuleDto.prototype, "modelMetadataId", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, swagger_1.ApiProperty)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], UpdateSecurityRuleDto.prototype, "modelMetadataUserKey", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_validator_1.IsJSON)(),
|
|
69
|
+
(0, swagger_1.ApiProperty)(),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], UpdateSecurityRuleDto.prototype, "securityRuleConfig", void 0);
|
|
72
|
+
//# sourceMappingURL=update-security-rule.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-security-rule.dto.js","sourceRoot":"","sources":["../../src/dtos/update-security-rule.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAiF;AACjF,6CAA8C;AAE9C,MAAa,qBAAqB;;;;CAmCjC;AAnCD,sDAmCC;AAhCG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iDACG;AAKX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;mDACD;AAKb;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;0DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;qDACC;AAIf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;0DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;8DACU;AAIxB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;mEACe;AAK7B;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;iEACU"}
|
|
@@ -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"}
|