@natrave/shared-entities 7.34.0 → 7.36.0

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.
@@ -0,0 +1,5 @@
1
+ export declare enum TournamentCreationFlow {
2
+ CONVERSATION = "conversation",
3
+ WIZARD = "wizard"
4
+ }
5
+ //# sourceMappingURL=tournament-creation-flow.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-creation-flow.enum.d.ts","sourceRoot":"","sources":["../../../../src/tournaments/tournament-category-groups/enums/tournament-creation-flow.enum.ts"],"names":[],"mappings":"AAcA,oBAAY,sBAAsB;IAEhC,YAAY,iBAAiB;IAG7B,MAAM,WAAW;CAClB"}
@@ -0,0 +1,8 @@
1
+ var TournamentCreationFlow = /* @__PURE__ */ ((TournamentCreationFlow2) => {
2
+ TournamentCreationFlow2["CONVERSATION"] = "conversation";
3
+ TournamentCreationFlow2["WIZARD"] = "wizard";
4
+ return TournamentCreationFlow2;
5
+ })(TournamentCreationFlow || {});
6
+ export {
7
+ TournamentCreationFlow
8
+ };
@@ -0,0 +1,12 @@
1
+ export declare enum TournamentType {
2
+ SCHOOL = "school",
3
+ LEAGUE = "league",
4
+ YOUTH = "youth",
5
+ CORPORATE = "corporate",
6
+ UNIVERSITY = "university",
7
+ INTERCLASS = "interclass",
8
+ MUNICIPAL = "municipal",
9
+ CHARITY = "charity",
10
+ OTHER = "other"
11
+ }
12
+ //# sourceMappingURL=tournament-type.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-type.enum.d.ts","sourceRoot":"","sources":["../../../../src/tournaments/tournament-category-groups/enums/tournament-type.enum.ts"],"names":[],"mappings":"AAaA,oBAAY,cAAc;IAExB,MAAM,WAAW;IAGjB,MAAM,WAAW;IAGjB,KAAK,UAAU;IAGf,SAAS,cAAc;IAGvB,UAAU,eAAe;IAGzB,UAAU,eAAe;IAGzB,SAAS,cAAc;IAGvB,OAAO,YAAY;IAMnB,KAAK,UAAU;CAChB"}
@@ -0,0 +1,15 @@
1
+ var TournamentType = /* @__PURE__ */ ((TournamentType2) => {
2
+ TournamentType2["SCHOOL"] = "school";
3
+ TournamentType2["LEAGUE"] = "league";
4
+ TournamentType2["YOUTH"] = "youth";
5
+ TournamentType2["CORPORATE"] = "corporate";
6
+ TournamentType2["UNIVERSITY"] = "university";
7
+ TournamentType2["INTERCLASS"] = "interclass";
8
+ TournamentType2["MUNICIPAL"] = "municipal";
9
+ TournamentType2["CHARITY"] = "charity";
10
+ TournamentType2["OTHER"] = "other";
11
+ return TournamentType2;
12
+ })(TournamentType || {});
13
+ export {
14
+ TournamentType
15
+ };
@@ -1,2 +1,4 @@
1
+ export { TournamentCreationFlow } from './enums/tournament-creation-flow.enum';
2
+ export { TournamentType } from './enums/tournament-type.enum';
1
3
  export { TournamentCategoryGroup } from './tournament-category-group.entity';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-category-groups/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-category-groups/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC"}
@@ -1,4 +1,8 @@
1
+ import { TournamentCreationFlow } from "./enums/tournament-creation-flow.enum.js";
2
+ import { TournamentType } from "./enums/tournament-type.enum.js";
1
3
  import { TournamentCategoryGroup } from "./tournament-category-group.entity.js";
2
4
  export {
3
- TournamentCategoryGroup
5
+ TournamentCategoryGroup,
6
+ TournamentCreationFlow,
7
+ TournamentType
4
8
  };
@@ -1,11 +1,15 @@
1
1
  import { Organization } from '../../central-auth';
2
2
  import { TournamentGroupContact } from '../tournament-group-contacts';
3
3
  import { Tournament } from '../tournaments';
4
+ import { TournamentCreationFlow } from './enums/tournament-creation-flow.enum';
5
+ import { TournamentType } from './enums/tournament-type.enum';
4
6
  export declare class TournamentCategoryGroup {
5
7
  id: number;
6
8
  name: string;
7
9
  tournamentGroupImage?: string | null;
8
10
  tournamentPrimaryColor: string;
11
+ type?: TournamentType | null;
12
+ creationFlow?: TournamentCreationFlow | null;
9
13
  organizationId?: number | null;
10
14
  createdAt: Date;
11
15
  updatedAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-category-group.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-category-groups/tournament-category-group.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAiB5C,qBAGa,uBAAuB;IAIlC,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAQb,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IASrC,sBAAsB,EAAE,MAAM,CAAC;IAQ/B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO/B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,SAAS,EAAE,YAAY,CAAC;IAIxB,UAAU,EAAE,UAAU,EAAE,CAAC;IAIzB,QAAQ,EAAE,sBAAsB,EAAE,CAAC;CACpC"}
1
+ {"version":3,"file":"tournament-category-group.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-category-groups/tournament-category-group.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAiB9D,qBAGa,uBAAuB;IAIlC,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAQb,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IASrC,sBAAsB,EAAE,MAAM,CAAC;IAW/B,IAAI,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IAY7B,YAAY,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAQ7C,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO/B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,SAAS,EAAE,YAAY,CAAC;IAIxB,UAAU,EAAE,UAAU,EAAE,CAAC;IAIzB,QAAQ,EAAE,sBAAsB,EAAE,CAAC;CACpC"}
@@ -23,6 +23,8 @@ import {
23
23
  import { Organization } from "../../central-auth/index.js";
24
24
  import { TournamentGroupContact } from "../tournament-group-contacts/index.js";
25
25
  import { Tournament } from "../tournaments/index.js";
26
+ import { TournamentCreationFlow } from "./enums/tournament-creation-flow.enum.js";
27
+ import { TournamentType } from "./enums/tournament-type.enum.js";
26
28
  let TournamentCategoryGroup = class {
27
29
  };
28
30
  __decorateClass([
@@ -50,6 +52,23 @@ __decorateClass([
50
52
  comment: "Cor prim\xE1ria do campeonato agrupador em formato HEX (ex: #RRGGBB)."
51
53
  })
52
54
  ], TournamentCategoryGroup.prototype, "tournamentPrimaryColor", 2);
55
+ __decorateClass([
56
+ Column({
57
+ type: "enum",
58
+ enum: TournamentType,
59
+ nullable: true,
60
+ comment: "Tipo do campeonato: o contexto de quem organiza (escolinha, liga, empresarial...), n\xE3o a modalidade nem o formato. Nulo nos agrupadores criados antes do campo existir \u2014 que \xE9 diferente de `other`, onde o organizador viu a lista e nenhuma op\xE7\xE3o serviu."
61
+ })
62
+ ], TournamentCategoryGroup.prototype, "type", 2);
63
+ __decorateClass([
64
+ Column({
65
+ name: "creation_flow",
66
+ type: "enum",
67
+ enum: TournamentCreationFlow,
68
+ nullable: true,
69
+ comment: "Fluxo pelo qual o campeonato foi criado: a conversa guiada ou o wizard em steps. Nulo nos agrupadores criados antes do campo existir, ou quando o cliente n\xE3o informou. Fato hist\xF3rico da cria\xE7\xE3o: n\xE3o \xE9 editado depois."
70
+ })
71
+ ], TournamentCategoryGroup.prototype, "creationFlow", 2);
53
72
  __decorateClass([
54
73
  Column({
55
74
  name: "organization_id",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "7.34.0",
3
+ "version": "7.36.0",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",