@natrave/shared-entities 8.37.0 → 8.39.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.
- package/dist/backoffice/crm-message-templates/crm-message-template.entity.d.ts +8 -0
- package/dist/backoffice/crm-message-templates/crm-message-template.entity.d.ts.map +1 -0
- package/dist/backoffice/crm-message-templates/crm-message-template.entity.js +58 -0
- package/dist/backoffice/crm-message-templates/index.d.ts +2 -0
- package/dist/backoffice/crm-message-templates/index.d.ts.map +1 -0
- package/dist/backoffice/crm-message-templates/index.js +4 -0
- package/dist/backoffice/index.d.ts +1 -0
- package/dist/backoffice/index.d.ts.map +1 -1
- package/dist/backoffice/index.js +1 -0
- package/dist/tournaments/tournament-format-configs/enums/group-matchups.enum.d.ts +5 -0
- package/dist/tournaments/tournament-format-configs/enums/group-matchups.enum.d.ts.map +1 -0
- package/dist/tournaments/tournament-format-configs/enums/group-matchups.enum.js +8 -0
- package/dist/tournaments/tournament-format-configs/index.d.ts +1 -0
- package/dist/tournaments/tournament-format-configs/index.d.ts.map +1 -1
- package/dist/tournaments/tournament-format-configs/index.js +2 -0
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts +2 -0
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.js +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm-message-template.entity.d.ts","sourceRoot":"","sources":["../../../src/backoffice/crm-message-templates/crm-message-template.entity.ts"],"names":[],"mappings":"AA2BA,qBAEa,kBAAkB;IAM7B,GAAG,EAAE,MAAM,CAAC;IAOZ,IAAI,EAAE,MAAM,CAAC;IAQb,SAAS,EAAE,IAAI,CAAC;IAQhB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ/B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { Check, Column, Entity, PrimaryColumn } from "typeorm";
|
|
12
|
+
let CrmMessageTemplate = class {
|
|
13
|
+
};
|
|
14
|
+
__decorateClass([
|
|
15
|
+
PrimaryColumn({
|
|
16
|
+
name: "key",
|
|
17
|
+
type: "text",
|
|
18
|
+
comment: "Situa\xE7\xE3o da mensagem pronta (ex.: matches, payment_intent)."
|
|
19
|
+
})
|
|
20
|
+
], CrmMessageTemplate.prototype, "key", 2);
|
|
21
|
+
__decorateClass([
|
|
22
|
+
Column({
|
|
23
|
+
name: "body",
|
|
24
|
+
type: "text",
|
|
25
|
+
comment: "Texto da mensagem com as vari\xE1veis entre chaves, de 1 a 1000 caracteres."
|
|
26
|
+
})
|
|
27
|
+
], CrmMessageTemplate.prototype, "body", 2);
|
|
28
|
+
__decorateClass([
|
|
29
|
+
Column({
|
|
30
|
+
name: "updated_at",
|
|
31
|
+
type: "timestamptz",
|
|
32
|
+
default: () => "now()",
|
|
33
|
+
comment: "Quando o texto foi gravado pela \xFAltima vez."
|
|
34
|
+
})
|
|
35
|
+
], CrmMessageTemplate.prototype, "updatedAt", 2);
|
|
36
|
+
__decorateClass([
|
|
37
|
+
Column({
|
|
38
|
+
name: "updated_by_user_id",
|
|
39
|
+
type: "text",
|
|
40
|
+
nullable: true,
|
|
41
|
+
comment: "Id (Clerk) de quem gravou o texto."
|
|
42
|
+
})
|
|
43
|
+
], CrmMessageTemplate.prototype, "updatedByUserId", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
Column({
|
|
46
|
+
name: "updated_by_name",
|
|
47
|
+
type: "text",
|
|
48
|
+
nullable: true,
|
|
49
|
+
comment: "Nome de quem gravou o texto, copiado na hora da grava\xE7\xE3o."
|
|
50
|
+
})
|
|
51
|
+
], CrmMessageTemplate.prototype, "updatedByName", 2);
|
|
52
|
+
CrmMessageTemplate = __decorateClass([
|
|
53
|
+
Entity("crm_message_templates"),
|
|
54
|
+
Check("chk_crm_message_templates_body_length", `char_length(body) BETWEEN 1 AND 1000`)
|
|
55
|
+
], CrmMessageTemplate);
|
|
56
|
+
export {
|
|
57
|
+
CrmMessageTemplate
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/backoffice/crm-message-templates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/backoffice/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/backoffice/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/backoffice/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./app-downloads/index.js";
|
|
2
|
+
export * from "./crm-message-templates/index.js";
|
|
2
3
|
import { DownloadMetric } from "./enums/metric.enum.js";
|
|
3
4
|
import { DownloadPlatform } from "./enums/platform.enum.js";
|
|
4
5
|
import { DownloadSource } from "./enums/source.enum.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-matchups.enum.d.ts","sourceRoot":"","sources":["../../../../src/tournaments/tournament-format-configs/enums/group-matchups.enum.ts"],"names":[],"mappings":"AAaA,oBAAY,aAAa;IAEvB,MAAM,WAAW;IAGjB,MAAM,WAAW;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-format-configs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-format-configs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ITournamentFormatConfig, KnockoutPhase, MatchLegMode, TournamentFormat } from '@natrave/tournaments-service-types';
|
|
2
2
|
import { Tournament } from '../tournaments';
|
|
3
|
+
import { GroupMatchups } from './enums/group-matchups.enum';
|
|
3
4
|
export declare class TournamentFormatConfig implements ITournamentFormatConfig {
|
|
4
5
|
id: number;
|
|
5
6
|
tournamentId: number;
|
|
@@ -8,6 +9,7 @@ export declare class TournamentFormatConfig implements ITournamentFormatConfig {
|
|
|
8
9
|
initialPhaseMatchMode?: MatchLegMode | null;
|
|
9
10
|
knockoutStartPhase?: KnockoutPhase | null;
|
|
10
11
|
knockoutMatchMode?: MatchLegMode | null;
|
|
12
|
+
groupMatchups: GroupMatchups;
|
|
11
13
|
teamCount: number;
|
|
12
14
|
createdAt: Date;
|
|
13
15
|
updatedAt: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament-format-config.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-format-configs/tournament-format-config.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,aAAa,EACb,YAAY,EACZ,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAW5C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"tournament-format-config.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-format-configs/tournament-format-config.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,aAAa,EACb,YAAY,EACZ,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAW5C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAc5D,qBACa,sBAAuB,YAAW,uBAAuB;IAIpE,EAAE,EAAE,MAAM,CAAC;IAQX,YAAY,EAAE,MAAM,CAAC;IAOrB,MAAM,EAAE,gBAAgB,CAAC;IAQzB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAU/B,qBAAqB,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAU5C,kBAAkB,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAU1C,iBAAiB,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAWxC,aAAa,EAAE,aAAa,CAAC;IAG7B,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
UpdateDateColumn
|
|
24
24
|
} from "typeorm";
|
|
25
25
|
import { Tournament } from "../tournaments/index.js";
|
|
26
|
+
import { GroupMatchups } from "./enums/group-matchups.enum.js";
|
|
26
27
|
let TournamentFormatConfig = class {
|
|
27
28
|
};
|
|
28
29
|
__decorateClass([
|
|
@@ -83,6 +84,16 @@ __decorateClass([
|
|
|
83
84
|
comment: "Modo de disputa da fase knockout (ida \xFAnica ou ida e volta), se aplic\xE1vel."
|
|
84
85
|
})
|
|
85
86
|
], TournamentFormatConfig.prototype, "knockoutMatchMode", 2);
|
|
87
|
+
__decorateClass([
|
|
88
|
+
Column({
|
|
89
|
+
name: "group_matchups",
|
|
90
|
+
type: "enum",
|
|
91
|
+
enum: GroupMatchups,
|
|
92
|
+
enumName: "tournament_format_configs_group_matchups_enum",
|
|
93
|
+
default: GroupMatchups.WITHIN,
|
|
94
|
+
comment: "Contra quem cada time joga na fase de grupos: dentro do grupo ou contra os outros grupos."
|
|
95
|
+
})
|
|
96
|
+
], TournamentFormatConfig.prototype, "groupMatchups", 2);
|
|
86
97
|
__decorateClass([
|
|
87
98
|
Column({ name: "team_count", type: "int", comment: "N\xFAmero esperado de times no torneio." })
|
|
88
99
|
], TournamentFormatConfig.prototype, "teamCount", 2);
|