@natrave/shared-entities 1.2.37 → 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";
@@ -4,7 +4,8 @@ export declare class TournamentBracket implements ITournamentBracket {
4
4
  id: number;
5
5
  tournamentId: number;
6
6
  knockoutPhase: KnockoutPhase;
7
- matchId?: number | null;
7
+ firstLegMatchId?: number | null;
8
+ secondLegMatchId?: number | null;
8
9
  parentId?: number | null;
9
10
  createdAt: Date;
10
11
  updatedAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-bracket.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-brackets/tournament-bracket.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAYvF,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAsB5C,qBACa,iBAAkB,YAAW,kBAAkB;IAE1D,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAOrB,aAAa,EAAE,aAAa,CAAC;IAQ7B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAOzB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAOhB,UAAU,EAAE,UAAU,CAAC;IAQvB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAI3B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B"}
1
+ {"version":3,"file":"tournament-bracket.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-brackets/tournament-bracket.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAYvF,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAqB5C,qBACa,iBAAkB,YAAW,kBAAkB;IAE1D,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAOrB,aAAa,EAAE,aAAa,CAAC;IAG7B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGhC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQjC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAOzB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAOhB,UAAU,EAAE,UAAU,CAAC;IAQvB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAI3B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B"}
@@ -40,13 +40,11 @@ __decorateClass([
40
40
  })
41
41
  ], TournamentBracket.prototype, "knockoutPhase", 2);
42
42
  __decorateClass([
43
- Column({
44
- name: "match_id",
45
- type: "int",
46
- nullable: true,
47
- comment: "Identificador da partida associada a este n\xF3 do bracket, se definida."
48
- })
49
- ], TournamentBracket.prototype, "matchId", 2);
43
+ Column({ name: "first_leg_match_id", type: "int", nullable: true })
44
+ ], TournamentBracket.prototype, "firstLegMatchId", 2);
45
+ __decorateClass([
46
+ Column({ name: "second_leg_match_id", type: "int", nullable: true })
47
+ ], TournamentBracket.prototype, "secondLegMatchId", 2);
50
48
  __decorateClass([
51
49
  Column({
52
50
  name: "parent_id",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.2.37",
3
+ "version": "1.2.39",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -26,15 +26,15 @@
26
26
  "private": false,
27
27
  "devDependencies": {
28
28
  "@changesets/cli": "^2.29.2",
29
- "@eslint/js": "^9.25.1",
29
+ "@eslint/js": "^9.26.0",
30
30
  "@typescript-eslint/eslint-plugin": "^8.31.1",
31
31
  "@typescript-eslint/parser": "^8.31.1",
32
32
  "esbuild": "^0.25.3",
33
- "eslint": "^9.25.1",
33
+ "eslint": "^9.26.0",
34
34
  "eslint-config-prettier": "^10.1.2",
35
35
  "eslint-import-resolver-typescript": "^4.3.4",
36
36
  "eslint-plugin-import": "^2.31.0",
37
- "eslint-plugin-prettier": "^5.2.6",
37
+ "eslint-plugin-prettier": "^5.3.1",
38
38
  "eslint-plugin-unused-imports": "^4.1.4",
39
39
  "glob": "^11.0.2",
40
40
  "husky": "^9.1.7",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@natrave/auth-service-types": "^1.1.61",
47
- "@natrave/tournaments-service-types": "^1.1.53",
47
+ "@natrave/tournaments-service-types": "^1.1.63",
48
48
  "reflect-metadata": "^0.2.2",
49
49
  "typeorm": "^0.3.22"
50
50
  },