@natrave/shared-entities 1.2.38 → 1.2.39

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
+ export declare class EmailTemplate {
2
+ id: string;
3
+ createdAt: Date;
4
+ updatedAt: Date;
5
+ name: string;
6
+ subject: string;
7
+ body: string;
8
+ isActive: boolean;
9
+ normalizeName(): void;
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":"AAYA,qBAGa,aAAa;IAExB,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,OAAO,CAAC;IAIlB,aAAa,IAAI,IAAI;CAGtB"}
@@ -0,0 +1,59 @@
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 {
12
+ BeforeInsert,
13
+ BeforeUpdate,
14
+ Column,
15
+ CreateDateColumn,
16
+ Entity,
17
+ Index,
18
+ PrimaryGeneratedColumn,
19
+ Unique,
20
+ UpdateDateColumn
21
+ } from "typeorm";
22
+ let EmailTemplate = class {
23
+ normalizeName() {
24
+ this.name = this.name.trim();
25
+ }
26
+ };
27
+ __decorateClass([
28
+ PrimaryGeneratedColumn("uuid")
29
+ ], EmailTemplate.prototype, "id", 2);
30
+ __decorateClass([
31
+ CreateDateColumn({ name: "created_at", type: "timestamptz" })
32
+ ], EmailTemplate.prototype, "createdAt", 2);
33
+ __decorateClass([
34
+ UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
35
+ ], EmailTemplate.prototype, "updatedAt", 2);
36
+ __decorateClass([
37
+ Column({ type: "varchar", length: 255 })
38
+ ], EmailTemplate.prototype, "name", 2);
39
+ __decorateClass([
40
+ Column({ type: "varchar", length: 255 })
41
+ ], EmailTemplate.prototype, "subject", 2);
42
+ __decorateClass([
43
+ Column({ type: "text" })
44
+ ], EmailTemplate.prototype, "body", 2);
45
+ __decorateClass([
46
+ Column({ name: "is_active", type: "boolean", default: true })
47
+ ], EmailTemplate.prototype, "isActive", 2);
48
+ __decorateClass([
49
+ BeforeInsert(),
50
+ BeforeUpdate()
51
+ ], EmailTemplate.prototype, "normalizeName", 1);
52
+ EmailTemplate = __decorateClass([
53
+ Entity("email_templates"),
54
+ Unique(["name"]),
55
+ Index(["name"])
56
+ ], EmailTemplate);
57
+ export {
58
+ EmailTemplate
59
+ };
@@ -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.39",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",