@koloseum/types 0.2.7 → 0.2.9
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.
|
@@ -11,7 +11,7 @@ export interface Game {
|
|
|
11
11
|
coverUrl?: string;
|
|
12
12
|
}
|
|
13
13
|
export interface League {
|
|
14
|
-
id
|
|
14
|
+
id: string;
|
|
15
15
|
name: string;
|
|
16
16
|
description?: string;
|
|
17
17
|
participantType: EventParticipantType;
|
|
@@ -19,7 +19,7 @@ export interface League {
|
|
|
19
19
|
createdBy?: string;
|
|
20
20
|
}
|
|
21
21
|
export interface Tier {
|
|
22
|
-
id
|
|
22
|
+
id: string;
|
|
23
23
|
leagueId?: string;
|
|
24
24
|
name: string;
|
|
25
25
|
description?: string;
|
|
@@ -29,7 +29,7 @@ export interface Tier {
|
|
|
29
29
|
divisions?: Division[];
|
|
30
30
|
}
|
|
31
31
|
export interface Division {
|
|
32
|
-
id
|
|
32
|
+
id: string;
|
|
33
33
|
tierId?: string;
|
|
34
34
|
name: string;
|
|
35
35
|
description?: string;
|
|
@@ -37,7 +37,7 @@ export interface Division {
|
|
|
37
37
|
discontinuedAt?: string;
|
|
38
38
|
}
|
|
39
39
|
export interface Season {
|
|
40
|
-
id
|
|
40
|
+
id: string;
|
|
41
41
|
divisionId?: string;
|
|
42
42
|
name: string;
|
|
43
43
|
description?: string;
|
|
@@ -48,7 +48,7 @@ export interface Season {
|
|
|
48
48
|
status?: EventStatus;
|
|
49
49
|
}
|
|
50
50
|
export interface Tournament {
|
|
51
|
-
id
|
|
51
|
+
id: string;
|
|
52
52
|
seasonId?: string;
|
|
53
53
|
name: string;
|
|
54
54
|
description?: string;
|
|
@@ -67,7 +67,7 @@ export interface TournamentMetadata {
|
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
export interface CompetitionEvent {
|
|
70
|
-
id
|
|
70
|
+
id: string;
|
|
71
71
|
name: string;
|
|
72
72
|
description?: string;
|
|
73
73
|
participantType: EventParticipantType;
|
|
@@ -356,7 +356,7 @@ export type Database = {
|
|
|
356
356
|
challenges_id: string;
|
|
357
357
|
created_at: string | null;
|
|
358
358
|
description: string | null;
|
|
359
|
-
|
|
359
|
+
discontinued_at: string | null;
|
|
360
360
|
id: string;
|
|
361
361
|
metadata: Json | null;
|
|
362
362
|
name: string;
|
|
@@ -366,7 +366,7 @@ export type Database = {
|
|
|
366
366
|
challenges_id: string;
|
|
367
367
|
created_at?: string | null;
|
|
368
368
|
description?: string | null;
|
|
369
|
-
|
|
369
|
+
discontinued_at?: string | null;
|
|
370
370
|
id?: string;
|
|
371
371
|
metadata?: Json | null;
|
|
372
372
|
name: string;
|
|
@@ -376,7 +376,7 @@ export type Database = {
|
|
|
376
376
|
challenges_id?: string;
|
|
377
377
|
created_at?: string | null;
|
|
378
378
|
description?: string | null;
|
|
379
|
-
|
|
379
|
+
discontinued_at?: string | null;
|
|
380
380
|
id?: string;
|
|
381
381
|
metadata?: Json | null;
|
|
382
382
|
name?: string;
|
|
@@ -2395,6 +2395,38 @@ export type Database = {
|
|
|
2395
2395
|
}
|
|
2396
2396
|
];
|
|
2397
2397
|
};
|
|
2398
|
+
player_games_consoles: {
|
|
2399
|
+
Row: {
|
|
2400
|
+
console_id: string;
|
|
2401
|
+
game_id: string;
|
|
2402
|
+
player_id: string;
|
|
2403
|
+
quantity: number;
|
|
2404
|
+
user_id: string | null;
|
|
2405
|
+
};
|
|
2406
|
+
Insert: {
|
|
2407
|
+
console_id: string;
|
|
2408
|
+
game_id: string;
|
|
2409
|
+
player_id?: string;
|
|
2410
|
+
quantity?: number;
|
|
2411
|
+
user_id?: string | null;
|
|
2412
|
+
};
|
|
2413
|
+
Update: {
|
|
2414
|
+
console_id?: string;
|
|
2415
|
+
game_id?: string;
|
|
2416
|
+
player_id?: string;
|
|
2417
|
+
quantity?: number;
|
|
2418
|
+
user_id?: string | null;
|
|
2419
|
+
};
|
|
2420
|
+
Relationships: [
|
|
2421
|
+
{
|
|
2422
|
+
foreignKeyName: "player_games_consoles_player_id_fkey";
|
|
2423
|
+
columns: ["player_id"];
|
|
2424
|
+
isOneToOne: false;
|
|
2425
|
+
referencedRelation: "players";
|
|
2426
|
+
referencedColumns: ["id"];
|
|
2427
|
+
}
|
|
2428
|
+
];
|
|
2429
|
+
};
|
|
2398
2430
|
player_id_verification_attempts: {
|
|
2399
2431
|
Row: {
|
|
2400
2432
|
created_at: string;
|
|
@@ -3595,6 +3627,7 @@ export type Database = {
|
|
|
3595
3627
|
generation: number;
|
|
3596
3628
|
id: string;
|
|
3597
3629
|
is_handheld: boolean;
|
|
3630
|
+
metadata: Json | null;
|
|
3598
3631
|
name: string;
|
|
3599
3632
|
platform_shorthand: string;
|
|
3600
3633
|
};
|
|
@@ -3603,6 +3636,7 @@ export type Database = {
|
|
|
3603
3636
|
generation: number;
|
|
3604
3637
|
id?: string;
|
|
3605
3638
|
is_handheld: boolean;
|
|
3639
|
+
metadata?: Json | null;
|
|
3606
3640
|
name: string;
|
|
3607
3641
|
platform_shorthand: string;
|
|
3608
3642
|
};
|
|
@@ -3611,6 +3645,7 @@ export type Database = {
|
|
|
3611
3645
|
generation?: number;
|
|
3612
3646
|
id?: string;
|
|
3613
3647
|
is_handheld?: boolean;
|
|
3648
|
+
metadata?: Json | null;
|
|
3614
3649
|
name?: string;
|
|
3615
3650
|
platform_shorthand?: string;
|
|
3616
3651
|
};
|
|
@@ -3648,6 +3683,7 @@ export type Database = {
|
|
|
3648
3683
|
genres: string[];
|
|
3649
3684
|
id: string;
|
|
3650
3685
|
initial_release_date: string;
|
|
3686
|
+
metadata: Json | null;
|
|
3651
3687
|
name: string;
|
|
3652
3688
|
};
|
|
3653
3689
|
Insert: {
|
|
@@ -3655,6 +3691,7 @@ export type Database = {
|
|
|
3655
3691
|
genres: string[];
|
|
3656
3692
|
id?: string;
|
|
3657
3693
|
initial_release_date: string;
|
|
3694
|
+
metadata?: Json | null;
|
|
3658
3695
|
name: string;
|
|
3659
3696
|
};
|
|
3660
3697
|
Update: {
|
|
@@ -3662,6 +3699,7 @@ export type Database = {
|
|
|
3662
3699
|
genres?: string[];
|
|
3663
3700
|
id?: string;
|
|
3664
3701
|
initial_release_date?: string;
|
|
3702
|
+
metadata?: Json | null;
|
|
3665
3703
|
name?: string;
|
|
3666
3704
|
};
|
|
3667
3705
|
Relationships: [];
|
package/dist/database.d.ts
CHANGED
|
@@ -279,7 +279,7 @@ export type Database = MergeDeep<DatabaseGenerated, {
|
|
|
279
279
|
};
|
|
280
280
|
get_lounge_ids: {
|
|
281
281
|
Returns: {
|
|
282
|
-
lounge_id: string;
|
|
282
|
+
lounge_id: string | null;
|
|
283
283
|
user_id: string | null;
|
|
284
284
|
};
|
|
285
285
|
};
|
|
@@ -288,7 +288,7 @@ export type Database = MergeDeep<DatabaseGenerated, {
|
|
|
288
288
|
};
|
|
289
289
|
get_player_ids: {
|
|
290
290
|
Returns: {
|
|
291
|
-
player_id: string;
|
|
291
|
+
player_id: string | null;
|
|
292
292
|
user_id: string | null;
|
|
293
293
|
};
|
|
294
294
|
};
|
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 "
|
|
48
|
+
export type Microservice<MicroserviceGroup> = (MicroserviceGroup extends "players" ? "sessions" | "commerce" | "fgc" : never) | (MicroserviceGroup extends "lounges" ? "branches" | "staff" : never) | (MicroserviceGroup extends "backroom" ? "compliance" | "commerce" | "staff" : never) | "account";
|
|
48
49
|
export type MicroserviceFeature = {
|
|
49
50
|
name: string;
|
|
50
51
|
description: string;
|