@natrave/shared-entities 1.4.21 → 1.4.23
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/central-auth/index.d.ts +1 -0
- package/dist/central-auth/index.d.ts.map +1 -1
- package/dist/central-auth/index.js +1 -0
- package/dist/central-auth/organizations/organization.entity.d.ts +2 -0
- package/dist/central-auth/organizations/organization.entity.d.ts.map +1 -1
- package/dist/central-auth/organizations/organization.entity.js +4 -0
- package/dist/central-auth/phone-numbers/index.d.ts +2 -0
- package/dist/central-auth/phone-numbers/index.d.ts.map +1 -0
- package/dist/central-auth/phone-numbers/index.js +4 -0
- package/dist/central-auth/phone-numbers/phone-number.entity.d.ts +13 -0
- package/dist/central-auth/phone-numbers/phone-number.entity.d.ts.map +1 -0
- package/dist/central-auth/phone-numbers/phone-number.entity.js +74 -0
- package/dist/tournaments/index.d.ts +1 -0
- package/dist/tournaments/index.d.ts.map +1 -1
- package/dist/tournaments/index.js +1 -0
- package/dist/tournaments/tournament-allowed-phone/index.d.ts +2 -0
- package/dist/tournaments/tournament-allowed-phone/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-allowed-phone/index.js +4 -0
- package/dist/tournaments/tournament-allowed-phone/tournament-allowed-phone.entity.d.ts +13 -0
- package/dist/tournaments/tournament-allowed-phone/tournament-allowed-phone.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-allowed-phone/tournament-allowed-phone.entity.js +86 -0
- package/dist/tournaments/tournaments/tournament.entity.d.ts +2 -0
- package/dist/tournaments/tournaments/tournament.entity.d.ts.map +1 -1
- package/dist/tournaments/tournaments/tournament.entity.js +15 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/central-auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAEhC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/central-auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAEhC,cAAc,sBAAsB,CAAC;AAErC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IOrganization, OrganizationStatus, OrganizationType } from '@natrave/auth-service-types';
|
|
2
2
|
import { Tournament } from '../../tournaments';
|
|
3
3
|
import { OrganizationUser } from '../organization-users';
|
|
4
|
+
import { PhoneNumber } from '../phone-numbers';
|
|
4
5
|
export declare class Organization implements IOrganization {
|
|
5
6
|
id: number;
|
|
6
7
|
name: string;
|
|
@@ -15,5 +16,6 @@ export declare class Organization implements IOrganization {
|
|
|
15
16
|
updatedAt: Date;
|
|
16
17
|
users: OrganizationUser[];
|
|
17
18
|
tournaments: Tournament[];
|
|
19
|
+
phoneNumbers: PhoneNumber[];
|
|
18
20
|
}
|
|
19
21
|
//# sourceMappingURL=organization.entity.d.ts.map
|
|
@@ -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;
|
|
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;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAU/C,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;IAM1B,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B"}
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
} from "typeorm";
|
|
22
22
|
import { Tournament } from "../../tournaments/index.js";
|
|
23
23
|
import { OrganizationUser } from "../organization-users/index.js";
|
|
24
|
+
import { PhoneNumber } from "../phone-numbers/index.js";
|
|
24
25
|
let Organization = class {
|
|
25
26
|
};
|
|
26
27
|
__decorateClass([
|
|
@@ -98,6 +99,9 @@ __decorateClass([
|
|
|
98
99
|
__decorateClass([
|
|
99
100
|
OneToMany(() => Tournament, (tournament) => tournament.organizer)
|
|
100
101
|
], Organization.prototype, "tournaments", 2);
|
|
102
|
+
__decorateClass([
|
|
103
|
+
OneToMany(() => PhoneNumber, (phone) => phone.organization)
|
|
104
|
+
], Organization.prototype, "phoneNumbers", 2);
|
|
101
105
|
Organization = __decorateClass([
|
|
102
106
|
Unique("UQ_organization_document", ["document"]),
|
|
103
107
|
Unique("UQ_organization_email", ["email"]),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/central-auth/phone-numbers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TournamentAllowedPhone } from '../../tournaments';
|
|
2
|
+
import { Organization } from '../organizations';
|
|
3
|
+
export declare class PhoneNumber {
|
|
4
|
+
id: number;
|
|
5
|
+
organizationId: string;
|
|
6
|
+
phone: string;
|
|
7
|
+
displayName?: string;
|
|
8
|
+
organization: Organization;
|
|
9
|
+
tournamentLinks: TournamentAllowedPhone[];
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=phone-number.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone-number.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/phone-numbers/phone-number.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,qBAEa,WAAW;IAEtB,EAAE,EAAE,MAAM,CAAC;IAOX,cAAc,EAAE,MAAM,CAAC;IAQvB,KAAK,EAAE,MAAM,CAAC;IASd,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,YAAY,EAAE,YAAY,CAAC;IAG3B,eAAe,EAAE,sBAAsB,EAAE,CAAC;IAG1C,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
Column,
|
|
13
|
+
CreateDateColumn,
|
|
14
|
+
Entity,
|
|
15
|
+
Index,
|
|
16
|
+
JoinColumn,
|
|
17
|
+
ManyToOne,
|
|
18
|
+
OneToMany,
|
|
19
|
+
PrimaryGeneratedColumn,
|
|
20
|
+
UpdateDateColumn
|
|
21
|
+
} from "typeorm";
|
|
22
|
+
import { TournamentAllowedPhone } from "../../tournaments/index.js";
|
|
23
|
+
import { Organization } from "../organizations/index.js";
|
|
24
|
+
let PhoneNumber = class {
|
|
25
|
+
};
|
|
26
|
+
__decorateClass([
|
|
27
|
+
PrimaryGeneratedColumn()
|
|
28
|
+
], PhoneNumber.prototype, "id", 2);
|
|
29
|
+
__decorateClass([
|
|
30
|
+
Column({
|
|
31
|
+
name: "organization_id",
|
|
32
|
+
type: "uuid",
|
|
33
|
+
comment: "ID da organiza\xE7\xE3o \xE0 qual este n\xFAmero pertence."
|
|
34
|
+
})
|
|
35
|
+
], PhoneNumber.prototype, "organizationId", 2);
|
|
36
|
+
__decorateClass([
|
|
37
|
+
Column({
|
|
38
|
+
name: "phone",
|
|
39
|
+
type: "varchar",
|
|
40
|
+
length: 20,
|
|
41
|
+
comment: "N\xFAmero no formato E.164: +5511999998888."
|
|
42
|
+
})
|
|
43
|
+
], PhoneNumber.prototype, "phone", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
Column({
|
|
46
|
+
name: "display_name",
|
|
47
|
+
type: "varchar",
|
|
48
|
+
length: 255,
|
|
49
|
+
nullable: true,
|
|
50
|
+
comment: "Nome amig\xE1vel para identificar a pessoa que usa este n\xFAmero."
|
|
51
|
+
})
|
|
52
|
+
], PhoneNumber.prototype, "displayName", 2);
|
|
53
|
+
__decorateClass([
|
|
54
|
+
ManyToOne(() => Organization, (org) => org.phoneNumbers, {
|
|
55
|
+
onDelete: "CASCADE"
|
|
56
|
+
}),
|
|
57
|
+
JoinColumn({ name: "organization_id" })
|
|
58
|
+
], PhoneNumber.prototype, "organization", 2);
|
|
59
|
+
__decorateClass([
|
|
60
|
+
OneToMany(() => TournamentAllowedPhone, (tap) => tap.phone)
|
|
61
|
+
], PhoneNumber.prototype, "tournamentLinks", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
64
|
+
], PhoneNumber.prototype, "createdAt", 2);
|
|
65
|
+
__decorateClass([
|
|
66
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
67
|
+
], PhoneNumber.prototype, "updatedAt", 2);
|
|
68
|
+
PhoneNumber = __decorateClass([
|
|
69
|
+
Entity("phone_numbers"),
|
|
70
|
+
Index(["organizationId", "phone"], { unique: true })
|
|
71
|
+
], PhoneNumber);
|
|
72
|
+
export {
|
|
73
|
+
PhoneNumber
|
|
74
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-allowed-phone/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PhoneNumber } from '../../central-auth';
|
|
2
|
+
import { Tournament } from '../../tournaments';
|
|
3
|
+
export declare class TournamentAllowedPhone {
|
|
4
|
+
id: number;
|
|
5
|
+
tournamentId: number;
|
|
6
|
+
phoneId: number;
|
|
7
|
+
expiresAt?: Date;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
tournament: Tournament;
|
|
11
|
+
phone: PhoneNumber;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=tournament-allowed-phone.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-allowed-phone.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-allowed-phone/tournament-allowed-phone.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAM/C,qBAGa,sBAAsB;IAIjC,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAOrB,OAAO,EAAE,MAAM,CAAC;IAQhB,SAAS,CAAC,EAAE,IAAI,CAAC;IAOjB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,UAAU,EAAE,UAAU,CAAC;IAMvB,KAAK,EAAE,WAAW,CAAC;CACpB"}
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
Column,
|
|
13
|
+
CreateDateColumn,
|
|
14
|
+
Entity,
|
|
15
|
+
Index,
|
|
16
|
+
JoinColumn,
|
|
17
|
+
ManyToOne,
|
|
18
|
+
PrimaryGeneratedColumn,
|
|
19
|
+
Unique,
|
|
20
|
+
UpdateDateColumn
|
|
21
|
+
} from "typeorm";
|
|
22
|
+
import { PhoneNumber } from "../../central-auth/index.js";
|
|
23
|
+
import { Tournament } from "../../tournaments/index.js";
|
|
24
|
+
let TournamentAllowedPhone = class {
|
|
25
|
+
};
|
|
26
|
+
__decorateClass([
|
|
27
|
+
PrimaryGeneratedColumn({
|
|
28
|
+
comment: "Identificador \xFAnico do v\xEDnculo entre torneio e telefone autorizado."
|
|
29
|
+
})
|
|
30
|
+
], TournamentAllowedPhone.prototype, "id", 2);
|
|
31
|
+
__decorateClass([
|
|
32
|
+
Column({
|
|
33
|
+
name: "tournament_id",
|
|
34
|
+
type: "int",
|
|
35
|
+
comment: "ID do torneio ao qual o n\xFAmero tem acesso."
|
|
36
|
+
})
|
|
37
|
+
], TournamentAllowedPhone.prototype, "tournamentId", 2);
|
|
38
|
+
__decorateClass([
|
|
39
|
+
Column({
|
|
40
|
+
name: "phone_id",
|
|
41
|
+
type: "int",
|
|
42
|
+
comment: "ID do n\xFAmero de telefone autorizado."
|
|
43
|
+
})
|
|
44
|
+
], TournamentAllowedPhone.prototype, "phoneId", 2);
|
|
45
|
+
__decorateClass([
|
|
46
|
+
Column({
|
|
47
|
+
name: "expires_at",
|
|
48
|
+
type: "timestamptz",
|
|
49
|
+
nullable: true,
|
|
50
|
+
comment: "Data de expira\xE7\xE3o da autoriza\xE7\xE3o, se aplic\xE1vel."
|
|
51
|
+
})
|
|
52
|
+
], TournamentAllowedPhone.prototype, "expiresAt", 2);
|
|
53
|
+
__decorateClass([
|
|
54
|
+
CreateDateColumn({
|
|
55
|
+
name: "created_at",
|
|
56
|
+
type: "timestamptz",
|
|
57
|
+
comment: "Data de cria\xE7\xE3o do registro."
|
|
58
|
+
})
|
|
59
|
+
], TournamentAllowedPhone.prototype, "createdAt", 2);
|
|
60
|
+
__decorateClass([
|
|
61
|
+
UpdateDateColumn({
|
|
62
|
+
name: "updated_at",
|
|
63
|
+
type: "timestamptz",
|
|
64
|
+
comment: "Data da \xFAltima atualiza\xE7\xE3o do registro."
|
|
65
|
+
})
|
|
66
|
+
], TournamentAllowedPhone.prototype, "updatedAt", 2);
|
|
67
|
+
__decorateClass([
|
|
68
|
+
ManyToOne(() => Tournament, (tournament) => tournament.allowedPhones, {
|
|
69
|
+
onDelete: "CASCADE"
|
|
70
|
+
}),
|
|
71
|
+
JoinColumn({ name: "tournament_id" })
|
|
72
|
+
], TournamentAllowedPhone.prototype, "tournament", 2);
|
|
73
|
+
__decorateClass([
|
|
74
|
+
ManyToOne(() => PhoneNumber, (phone) => phone.tournamentLinks, {
|
|
75
|
+
onDelete: "CASCADE"
|
|
76
|
+
}),
|
|
77
|
+
JoinColumn({ name: "phone_id" })
|
|
78
|
+
], TournamentAllowedPhone.prototype, "phone", 2);
|
|
79
|
+
TournamentAllowedPhone = __decorateClass([
|
|
80
|
+
Entity("tournament_allowed_phones"),
|
|
81
|
+
Unique("UQ_tournament_phone", ["tournamentId", "phoneId"]),
|
|
82
|
+
Index("idx_tournament_allowed_phones_tournament", ["tournamentId"])
|
|
83
|
+
], TournamentAllowedPhone);
|
|
84
|
+
export {
|
|
85
|
+
TournamentAllowedPhone
|
|
86
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BrazilianState, ITournament, TournamentGender, TournamentModality, TournamentPublicationStatus } from '@natrave/tournaments-service-types';
|
|
2
2
|
import { Organization } from '../../central-auth';
|
|
3
|
+
import { TournamentAllowedPhone } from '../tournament-allowed-phone';
|
|
3
4
|
import { TournamentBracket } from '../tournament-brackets';
|
|
4
5
|
import { TournamentContact } from '../tournament-contacts';
|
|
5
6
|
import { TournamentCoupon } from '../tournament-coupons';
|
|
@@ -55,5 +56,6 @@ export declare class Tournament implements ITournament {
|
|
|
55
56
|
matchRules: TournamentMatchRule[];
|
|
56
57
|
contacts: TournamentContact[];
|
|
57
58
|
contactAttempts: TournamentTeamContactAttempt[];
|
|
59
|
+
allowedPhones: TournamentAllowedPhone[];
|
|
58
60
|
}
|
|
59
61
|
//# sourceMappingURL=tournament.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournaments/tournament.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"tournament.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournaments/tournament.entity.ts"],"names":[],"mappings":"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"}
|
|
@@ -17,7 +17,9 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
Column,
|
|
19
19
|
CreateDateColumn,
|
|
20
|
+
DeleteDateColumn,
|
|
20
21
|
Entity,
|
|
22
|
+
Index,
|
|
21
23
|
JoinColumn,
|
|
22
24
|
ManyToOne,
|
|
23
25
|
OneToMany,
|
|
@@ -26,6 +28,7 @@ import {
|
|
|
26
28
|
UpdateDateColumn
|
|
27
29
|
} from "typeorm";
|
|
28
30
|
import { Organization } from "../../central-auth/index.js";
|
|
31
|
+
import { TournamentAllowedPhone } from "../tournament-allowed-phone/index.js";
|
|
29
32
|
import { TournamentBracket } from "../tournament-brackets/index.js";
|
|
30
33
|
import { TournamentContact } from "../tournament-contacts/index.js";
|
|
31
34
|
import { TournamentCoupon } from "../tournament-coupons/index.js";
|
|
@@ -180,7 +183,7 @@ __decorateClass([
|
|
|
180
183
|
})
|
|
181
184
|
], Tournament.prototype, "defaultRegulationUrl", 2);
|
|
182
185
|
__decorateClass([
|
|
183
|
-
|
|
186
|
+
DeleteDateColumn({
|
|
184
187
|
name: "deleted_at",
|
|
185
188
|
type: "timestamptz",
|
|
186
189
|
nullable: true,
|
|
@@ -258,8 +261,18 @@ __decorateClass([
|
|
|
258
261
|
__decorateClass([
|
|
259
262
|
OneToMany(() => TournamentTeamContactAttempt, (attempt) => attempt.tournament)
|
|
260
263
|
], Tournament.prototype, "contactAttempts", 2);
|
|
264
|
+
__decorateClass([
|
|
265
|
+
OneToMany(() => TournamentAllowedPhone, (allowed) => allowed.tournament)
|
|
266
|
+
], Tournament.prototype, "allowedPhones", 2);
|
|
261
267
|
Tournament = __decorateClass([
|
|
262
|
-
Entity("tournaments")
|
|
268
|
+
Entity("tournaments"),
|
|
269
|
+
Index("idx_tournaments_organization", ["organizationId"]),
|
|
270
|
+
Index("idx_tournaments_publication_status", ["publicationStatus"]),
|
|
271
|
+
Index("idx_tournaments_initial_date", ["initialDate"]),
|
|
272
|
+
Index("idx_tournaments_end_date", ["endDate"]),
|
|
273
|
+
Index("idx_tournaments_state_city", ["state", "city"]),
|
|
274
|
+
Index("idx_tournaments_deleted_at", ["deletedAt"]),
|
|
275
|
+
Index("idx_tournaments_org_status_active", ["organizationId", "publicationStatus", "deletedAt"])
|
|
263
276
|
], Tournament);
|
|
264
277
|
export {
|
|
265
278
|
Tournament
|