@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
|
@@ -15,39 +15,49 @@ const common_entity_1 = require("./common.entity");
|
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
const email_attachment_entity_1 = require("./email-attachment.entity");
|
|
17
17
|
let EmailTemplate = class EmailTemplate extends common_entity_1.CommonEntity {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
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 }, description: { required: true, type: () => String }, active: { required: true, type: () => Boolean }, attachments: { required: true, type: () => [require("./email-attachment.entity").EmailAttachment] } };
|
|
24
|
+
return { name: { required: true, type: () => String }, 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("./email-attachment.entity").EmailAttachment] }, type: { required: true, type: () => String } };
|
|
20
25
|
}
|
|
21
26
|
};
|
|
22
27
|
exports.EmailTemplate = EmailTemplate;
|
|
23
28
|
__decorate([
|
|
24
|
-
(0, typeorm_1.
|
|
29
|
+
(0, typeorm_1.Index)({ unique: true }),
|
|
30
|
+
(0, typeorm_1.Column)({ name: "name", type: "varchar", unique: true }),
|
|
25
31
|
__metadata("design:type", String)
|
|
26
32
|
], EmailTemplate.prototype, "name", void 0);
|
|
27
33
|
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)(),
|
|
34
|
+
(0, typeorm_1.Column)({ name: "display_name", type: "varchar" }),
|
|
29
35
|
__metadata("design:type", String)
|
|
30
36
|
], EmailTemplate.prototype, "displayName", void 0);
|
|
31
37
|
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ type:
|
|
38
|
+
(0, typeorm_1.Column)({ name: "body", type: "varchar" }),
|
|
33
39
|
__metadata("design:type", String)
|
|
34
40
|
], EmailTemplate.prototype, "body", void 0);
|
|
35
41
|
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({
|
|
42
|
+
(0, typeorm_1.Column)({ name: "subject", type: "varchar", default: "{}" }),
|
|
37
43
|
__metadata("design:type", String)
|
|
38
44
|
], EmailTemplate.prototype, "subject", void 0);
|
|
39
45
|
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type:
|
|
46
|
+
(0, typeorm_1.Column)({ name: "description", type: "text", nullable: true }),
|
|
41
47
|
__metadata("design:type", String)
|
|
42
48
|
], EmailTemplate.prototype, "description", void 0);
|
|
43
49
|
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ default:
|
|
50
|
+
(0, typeorm_1.Column)({ name: "active", type: "boolean", nullable: true, default: true }),
|
|
45
51
|
__metadata("design:type", Boolean)
|
|
46
52
|
], EmailTemplate.prototype, "active", void 0);
|
|
47
53
|
__decorate([
|
|
48
54
|
(0, typeorm_1.OneToMany)(() => email_attachment_entity_1.EmailAttachment, (attachment) => attachment.emailTemplate, { cascade: true }),
|
|
49
55
|
__metadata("design:type", Array)
|
|
50
56
|
], EmailTemplate.prototype, "attachments", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ name: "type", type: "varchar", nullable: true }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], EmailTemplate.prototype, "type", void 0);
|
|
51
61
|
exports.EmailTemplate = EmailTemplate = __decorate([
|
|
52
62
|
(0, typeorm_1.Entity)("ss_email_template")
|
|
53
63
|
], EmailTemplate);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-template.entity.js","sourceRoot":"","sources":["../../src/entities/email-template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"email-template.entity.js","sourceRoot":"","sources":["../../src/entities/email-template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,qCAA2D;AAC3D,uEAA4D;AAGrD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAY;IAAxC;;QASH,YAAO,GAAW,IAAI,CAAC;QAIvB,WAAM,GAAY,IAAI,CAAC;KAK1B;;+UALqB,IAAI;;CAKzB,CAAA;AAlBY,sCAAa;AAGtB;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;2CAC3C;AAEb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;kDAC9B;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2CAC7B;AAEb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;8CACrC;AAEvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC1C;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;6CACpD;AAEvB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yCAAe,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;kDAC/D;AAE/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC7C;wBAjBJ,aAAa;IADzB,IAAA,gBAAM,EAAC,mBAAmB,CAAC;GACf,aAAa,CAkBzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sms-template.entity.d.ts","sourceRoot":"","sources":["../../src/entities/sms-template.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"sms-template.entity.d.ts","sourceRoot":"","sources":["../../src/entities/sms-template.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,qBACa,WAAY,SAAQ,YAAY;IAGzC,IAAI,EAAE,MAAM,CAAC;IAEb,WAAW,EAAE,MAAM,CAAC;IAEpB,IAAI,EAAE,MAAM,CAAC;IAEb,qBAAqB,EAAE,MAAM,CAAC;IAE9B,WAAW,EAAE,MAAM,CAAC;IAEpB,MAAM,EAAE,OAAO,CAAQ;IAEvB,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -14,35 +14,44 @@ const openapi = require("@nestjs/swagger");
|
|
|
14
14
|
const common_entity_1 = require("./common.entity");
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
let SmsTemplate = class SmsTemplate extends common_entity_1.CommonEntity {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.active = true;
|
|
20
|
+
}
|
|
17
21
|
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
-
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 } };
|
|
22
|
+
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, default: true }, type: { required: true, type: () => String } };
|
|
19
23
|
}
|
|
20
24
|
};
|
|
21
25
|
exports.SmsTemplate = SmsTemplate;
|
|
22
26
|
__decorate([
|
|
23
|
-
(0, typeorm_1.
|
|
27
|
+
(0, typeorm_1.Index)({ unique: true }),
|
|
28
|
+
(0, typeorm_1.Column)({ name: "name", type: "varchar", unique: true }),
|
|
24
29
|
__metadata("design:type", String)
|
|
25
30
|
], SmsTemplate.prototype, "name", void 0);
|
|
26
31
|
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)(),
|
|
32
|
+
(0, typeorm_1.Column)({ name: "display_name", type: "varchar" }),
|
|
28
33
|
__metadata("design:type", String)
|
|
29
34
|
], SmsTemplate.prototype, "displayName", void 0);
|
|
30
35
|
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ type:
|
|
36
|
+
(0, typeorm_1.Column)({ name: "body", type: "varchar", nullable: true }),
|
|
32
37
|
__metadata("design:type", String)
|
|
33
38
|
], SmsTemplate.prototype, "body", void 0);
|
|
34
39
|
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
40
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
36
41
|
__metadata("design:type", String)
|
|
37
42
|
], SmsTemplate.prototype, "smsProviderTemplateId", void 0);
|
|
38
43
|
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
44
|
+
(0, typeorm_1.Column)({ name: "description", type: "text", nullable: true }),
|
|
40
45
|
__metadata("design:type", String)
|
|
41
46
|
], SmsTemplate.prototype, "description", void 0);
|
|
42
47
|
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ default:
|
|
48
|
+
(0, typeorm_1.Column)({ name: "active", type: "boolean", nullable: true, default: true }),
|
|
44
49
|
__metadata("design:type", Boolean)
|
|
45
50
|
], SmsTemplate.prototype, "active", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ name: "type", type: "varchar", nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], SmsTemplate.prototype, "type", void 0);
|
|
46
55
|
exports.SmsTemplate = SmsTemplate = __decorate([
|
|
47
56
|
(0, typeorm_1.Entity)("ss_sms_template")
|
|
48
57
|
], SmsTemplate);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sms-template.entity.js","sourceRoot":"","sources":["../../src/entities/sms-template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"sms-template.entity.js","sourceRoot":"","sources":["../../src/entities/sms-template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,qCAAgD;AAGzC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,4BAAY;IAAtC;;QAaH,WAAM,GAAY,IAAI,CAAC;KAG1B;;8UAHqB,IAAI;;CAGzB,CAAA;AAhBY,kCAAW;AAGpB;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;yCAC3C;AAEb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;gDAC9B;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAC7C;AAEb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACd;AAE9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC1C;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CACpD;AAEvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAC7C;sBAfJ,WAAW;IADvB,IAAA,gBAAM,EAAC,iBAAiB,CAAC;GACb,WAAW,CAgBvB"}
|