@koloseum/types 0.2.6 → 0.2.8
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/backroom/competitions.d.ts +69 -9
- package/dist/general.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,30 +1,90 @@
|
|
|
1
|
-
import type { Database } from "
|
|
1
|
+
import type { Database } from "../database.js";
|
|
2
|
+
import type { BranchAddressObject } from "../public/auth.js";
|
|
2
3
|
export type CompetitionMarket = "fbl" | "fgc" | "bryl";
|
|
4
|
+
export type EventParticipantType = Database["competitions"]["Enums"]["event_participant_type"];
|
|
3
5
|
export type EventStatus = Database["competitions"]["Enums"]["event_status"];
|
|
4
|
-
export interface
|
|
5
|
-
id
|
|
6
|
+
export interface Game {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
genres: string[];
|
|
10
|
+
initialReleaseDate: string;
|
|
11
|
+
coverUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface League {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
participantType: EventParticipantType;
|
|
18
|
+
createdAt?: string;
|
|
19
|
+
createdBy?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface Tier {
|
|
22
|
+
id: string;
|
|
23
|
+
leagueId?: string;
|
|
24
|
+
name: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
order: number;
|
|
27
|
+
createdAt?: string;
|
|
28
|
+
discontinuedAt?: string;
|
|
29
|
+
divisions?: Division[];
|
|
30
|
+
}
|
|
31
|
+
export interface Division {
|
|
32
|
+
id: string;
|
|
33
|
+
tierId?: string;
|
|
34
|
+
name: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
createdAt?: string;
|
|
37
|
+
discontinuedAt?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface Season {
|
|
40
|
+
id: string;
|
|
41
|
+
divisionId?: string;
|
|
6
42
|
name: string;
|
|
7
|
-
description
|
|
43
|
+
description?: string;
|
|
8
44
|
order: number;
|
|
9
45
|
startDate: string;
|
|
10
46
|
endDate: string;
|
|
47
|
+
createdAt?: string;
|
|
11
48
|
status?: EventStatus;
|
|
12
49
|
}
|
|
13
|
-
export interface
|
|
50
|
+
export interface Tournament {
|
|
14
51
|
id: string;
|
|
15
52
|
seasonId?: string;
|
|
16
53
|
name: string;
|
|
17
|
-
description
|
|
18
|
-
venue:
|
|
54
|
+
description?: string;
|
|
55
|
+
venue: BranchAddressObject;
|
|
19
56
|
startTime: string;
|
|
20
57
|
endTime: string;
|
|
21
|
-
metadata
|
|
22
|
-
createdAt
|
|
58
|
+
metadata?: TournamentMetadata;
|
|
59
|
+
createdAt?: string;
|
|
23
60
|
}
|
|
24
61
|
export interface TournamentMetadata {
|
|
25
62
|
[key: string]: unknown;
|
|
63
|
+
minimumAge?: number;
|
|
26
64
|
externalProvider?: {
|
|
27
65
|
provider: string;
|
|
28
66
|
providerId: string;
|
|
29
67
|
};
|
|
30
68
|
}
|
|
69
|
+
export interface CompetitionEvent {
|
|
70
|
+
id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
description?: string;
|
|
73
|
+
participantType: EventParticipantType;
|
|
74
|
+
challengesEditionId?: string;
|
|
75
|
+
leagueTournamentId?: string;
|
|
76
|
+
localsTournamentId?: string;
|
|
77
|
+
startTime?: string;
|
|
78
|
+
endTime?: string;
|
|
79
|
+
isOnline: boolean;
|
|
80
|
+
venue?: BranchAddressObject;
|
|
81
|
+
loungeBranchId?: string;
|
|
82
|
+
gameId?: string;
|
|
83
|
+
gameTitle?: string;
|
|
84
|
+
consoleId?: string;
|
|
85
|
+
checkInBuffer?: string;
|
|
86
|
+
checkInDuration?: string;
|
|
87
|
+
metadata?: TournamentMetadata;
|
|
88
|
+
createdAt?: string;
|
|
89
|
+
status?: EventStatus;
|
|
90
|
+
}
|
package/dist/general.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export interface AppMetadata {
|
|
|
6
6
|
provider: string;
|
|
7
7
|
roles: string[];
|
|
8
8
|
person_data?: {
|
|
9
|
+
player_id: string;
|
|
9
10
|
first_name: string;
|
|
10
11
|
last_name: string;
|
|
11
12
|
pseudonym?: string;
|
|
@@ -44,7 +45,7 @@ export interface IGDBPlatformsResponse {
|
|
|
44
45
|
platform_family: number;
|
|
45
46
|
}
|
|
46
47
|
export type MicroserviceGroup = "public" | "players" | "lounges" | "backroom";
|
|
47
|
-
export type Microservice<MicroserviceGroup> = (MicroserviceGroup extends "backroom" ? "compliance" | "competitions" | "commerce" | "staff" : never) | "account";
|
|
48
|
+
export type Microservice<MicroserviceGroup> = (MicroserviceGroup extends "backroom" ? "compliance" | "competitions" | "commerce" | "staff" : never) | (MicroserviceGroup extends "players" ? "sessions" | "game-exchange" | "fbl" | "fgc" | "bryl" : never) | "account";
|
|
48
49
|
export type MicroserviceFeature = {
|
|
49
50
|
name: string;
|
|
50
51
|
description: string;
|