@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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/notifications/email-templates/email-template.entity.d.ts +11 -0
- package/dist/notifications/email-templates/email-template.entity.d.ts.map +1 -0
- package/dist/notifications/email-templates/email-template.entity.js +59 -0
- package/dist/notifications/email-templates/index.d.ts +2 -0
- package/dist/notifications/email-templates/index.d.ts.map +1 -0
- package/dist/notifications/email-templates/index.js +4 -0
- package/dist/notifications/index.d.ts +2 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -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
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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";
|