@natrave/shared-entities 1.2.45 → 1.2.47

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.
@@ -10,6 +10,7 @@ export declare class Organization implements IOrganization {
10
10
  type: OrganizationType;
11
11
  status: OrganizationStatus;
12
12
  externalId: string | null;
13
+ isActualOrganization: boolean;
13
14
  createdAt: Date;
14
15
  updatedAt: Date;
15
16
  users: OrganizationUser[];
@@ -1 +1 @@
1
- {"version":3,"file":"organization.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organizations/organization.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAYlG,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAUzD,qBAUa,YAAa,YAAW,aAAa;IAEhD,EAAE,EAAE,MAAM,CAAC;IAOX,IAAI,EAAE,MAAM,CAAC;IAQb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,EAAE,MAAM,CAAC;IAOd,IAAI,EAAE,gBAAgB,CAAC;IAOvB,MAAM,EAAE,kBAAkB,CAAC;IAU3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAO1B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAM1B,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B"}
1
+ {"version":3,"file":"organization.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organizations/organization.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAYlG,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAUzD,qBAUa,YAAa,YAAW,aAAa;IAEhD,EAAE,EAAE,MAAM,CAAC;IAOX,IAAI,EAAE,MAAM,CAAC;IAQb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,EAAE,MAAM,CAAC;IAOd,IAAI,EAAE,gBAAgB,CAAC;IAOvB,MAAM,EAAE,kBAAkB,CAAC;IAU3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ1B,oBAAoB,EAAE,OAAO,CAAC;IAO9B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAM1B,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B"}
@@ -70,6 +70,14 @@ __decorateClass([
70
70
  comment: "Identificador externo da organiza\xE7\xE3o, usado para integra\xE7\xE3o com provedores como Clerk."
71
71
  })
72
72
  ], Organization.prototype, "externalId", 2);
73
+ __decorateClass([
74
+ Column({
75
+ type: "boolean",
76
+ default: false,
77
+ nullable: false,
78
+ comment: "Indica se a organiza\xE7\xE3o \xE9 uma entidade real ou apenas pai de um usu\xE1rio."
79
+ })
80
+ ], Organization.prototype, "isActualOrganization", 2);
73
81
  __decorateClass([
74
82
  CreateDateColumn({
75
83
  name: "created_at",
@@ -1,10 +1,10 @@
1
- import { ITournamentPrizeRule } from '@natrave/tournaments-service-types';
1
+ import { ITournamentPrizeRule, TournamentRank } from '@natrave/tournaments-service-types';
2
2
  import { Tournament } from '../tournaments';
3
3
  export declare class TournamentPrizeRule implements ITournamentPrizeRule {
4
4
  id: number;
5
5
  tournamentId: number;
6
6
  amount: number;
7
- rank: number;
7
+ rank: TournamentRank;
8
8
  hasTrophy: boolean;
9
9
  hasMedal: boolean;
10
10
  hasOtherPrize: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-prize-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-prize-rules/tournament-prize-rule.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAa1E,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAGa,mBAAoB,YAAW,oBAAoB;IAI9D,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAMrB,MAAM,EAAE,MAAM,CAAC;IAMf,IAAI,EAAE,MAAM,CAAC;IAOb,SAAS,EAAE,OAAO,CAAC;IAOnB,QAAQ,EAAE,OAAO,CAAC;IAOlB,aAAa,EAAE,OAAO,CAAC;IAQvB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAO9B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
1
+ {"version":3,"file":"tournament-prize-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-prize-rules/tournament-prize-rule.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAa1F,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAGa,mBAAoB,YAAW,oBAAoB;IAI9D,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAMrB,MAAM,EAAE,MAAM,CAAC;IAOf,IAAI,EAAE,cAAc,CAAC;IAOrB,SAAS,EAAE,OAAO,CAAC;IAOnB,QAAQ,EAAE,OAAO,CAAC;IAOlB,aAAa,EAAE,OAAO,CAAC;IAQvB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAO9B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -8,6 +8,7 @@ var __decorateClass = (decorators, target, key, kind) => {
8
8
  if (kind && result) __defProp(target, key, result);
9
9
  return result;
10
10
  };
11
+ import { TournamentRank } from "@natrave/tournaments-service-types";
11
12
  import {
12
13
  Check,
13
14
  Column,
@@ -42,7 +43,8 @@ __decorateClass([
42
43
  ], TournamentPrizeRule.prototype, "amount", 2);
43
44
  __decorateClass([
44
45
  Column({
45
- type: "int",
46
+ type: "enum",
47
+ enum: TournamentRank,
46
48
  comment: "Classifica\xE7\xE3o correspondente \xE0 premia\xE7\xE3o (ex: 1 para campe\xE3o)."
47
49
  })
48
50
  ], TournamentPrizeRule.prototype, "rank", 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.2.45",
3
+ "version": "1.2.47",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -43,11 +43,11 @@
43
43
  "ts-node": "^10.9.2"
44
44
  },
45
45
  "dependencies": {
46
- "@natrave/auth-service-types": "^1.1.61",
46
+ "@natrave/auth-service-types": "^1.1.63",
47
47
  "@natrave/notification-service-types": "^1.1.65",
48
- "@natrave/tournaments-service-types": "^1.1.75",
48
+ "@natrave/tournaments-service-types": "^1.1.77",
49
49
  "reflect-metadata": "^0.2.2",
50
- "typeorm": "^0.3.23"
50
+ "typeorm": "^0.3.24"
51
51
  },
52
52
  "scripts": {
53
53
  "build:types": "tsc --emitDeclarationOnly",