@natrave/shared-entities 1.2.38 → 1.2.40

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/index.d.ts CHANGED
@@ -4,4 +4,5 @@ export * from './payments';
4
4
  export * from './facilities';
5
5
  export * from './coupons';
6
6
  export * from './central-auth';
7
+ export * from './notifications';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,cAAc,YAAY,CAAC;AAE3B,cAAc,YAAY,CAAC;AAE3B,cAAc,cAAc,CAAC;AAE7B,cAAc,WAAW,CAAC;AAE1B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,cAAc,YAAY,CAAC;AAE3B,cAAc,YAAY,CAAC;AAE3B,cAAc,cAAc,CAAC;AAE7B,cAAc,WAAW,CAAC;AAE1B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -4,3 +4,4 @@ export * from "./payments/index.js";
4
4
  export * from "./facilities/index.js";
5
5
  export * from "./coupons/index.js";
6
6
  export * from "./central-auth/index.js";
7
+ export * from "./notifications/index.js";
@@ -0,0 +1,11 @@
1
+ import { EmailTemplateName, IEmailTemplate } from '@natrave/notification-service-types';
2
+ export declare class EmailTemplate implements IEmailTemplate {
3
+ id: string;
4
+ createdAt: Date;
5
+ updatedAt: Date;
6
+ name: EmailTemplateName;
7
+ subject: string;
8
+ body: string;
9
+ isActive: boolean;
10
+ }
11
+ //# sourceMappingURL=email-template.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-template.entity.d.ts","sourceRoot":"","sources":["../../../src/notifications/email-templates/email-template.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAWxF,qBAGa,aAAc,YAAW,cAAc;IAElD,EAAE,EAAE,MAAM,CAAC;IAOX,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAOhB,IAAI,EAAE,iBAAiB,CAAC;IAGxB,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;IAQb,QAAQ,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,68 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result) __defProp(target, key, result);
9
+ return result;
10
+ };
11
+ import { EmailTemplateName } from "@natrave/notification-service-types";
12
+ import {
13
+ Column,
14
+ CreateDateColumn,
15
+ Entity,
16
+ Index,
17
+ PrimaryGeneratedColumn,
18
+ Unique,
19
+ UpdateDateColumn
20
+ } from "typeorm";
21
+ let EmailTemplate = class {
22
+ };
23
+ __decorateClass([
24
+ PrimaryGeneratedColumn("uuid")
25
+ ], EmailTemplate.prototype, "id", 2);
26
+ __decorateClass([
27
+ CreateDateColumn({
28
+ name: "created_at",
29
+ type: "timestamptz",
30
+ comment: "Data de cria\xE7\xE3o do template."
31
+ })
32
+ ], EmailTemplate.prototype, "createdAt", 2);
33
+ __decorateClass([
34
+ UpdateDateColumn({
35
+ name: "updated_at",
36
+ type: "timestamptz",
37
+ comment: "Data de atualiza\xE7\xE3o do template."
38
+ })
39
+ ], EmailTemplate.prototype, "updatedAt", 2);
40
+ __decorateClass([
41
+ Column({
42
+ type: "enum",
43
+ enum: EmailTemplateName,
44
+ comment: "Nome do template de e-mail."
45
+ })
46
+ ], EmailTemplate.prototype, "name", 2);
47
+ __decorateClass([
48
+ Column({ type: "varchar", length: 255, comment: "Assunto do e-mail." })
49
+ ], EmailTemplate.prototype, "subject", 2);
50
+ __decorateClass([
51
+ Column({ type: "text", comment: "Corpo do e-mail." })
52
+ ], EmailTemplate.prototype, "body", 2);
53
+ __decorateClass([
54
+ Column({
55
+ name: "is_active",
56
+ type: "boolean",
57
+ default: true,
58
+ comment: "Indica se o template est\xE1 ativo ou n\xE3o."
59
+ })
60
+ ], EmailTemplate.prototype, "isActive", 2);
61
+ EmailTemplate = __decorateClass([
62
+ Entity("email_templates"),
63
+ Unique(["name"]),
64
+ Index(["name"])
65
+ ], EmailTemplate);
66
+ export {
67
+ EmailTemplate
68
+ };
@@ -0,0 +1,2 @@
1
+ export { EmailTemplate } from './email-template.entity';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/notifications/email-templates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { EmailTemplate } from "./email-template.entity.js";
2
+ export {
3
+ EmailTemplate
4
+ };
@@ -0,0 +1,2 @@
1
+ export * from './email-templates';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notifications/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./email-templates/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.2.38",
3
+ "version": "1.2.40",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -44,6 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@natrave/auth-service-types": "^1.1.61",
47
+ "@natrave/notification-service-types": "^1.1.65",
47
48
  "@natrave/tournaments-service-types": "^1.1.63",
48
49
  "reflect-metadata": "^0.2.2",
49
50
  "typeorm": "^0.3.22"