@koloseum/types 0.2.8 → 0.2.10

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.
@@ -356,7 +356,7 @@ export type Database = {
356
356
  challenges_id: string;
357
357
  created_at: string | null;
358
358
  description: string | null;
359
- folded_at: string | null;
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
- folded_at?: string | null;
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
- folded_at?: string | null;
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: [];
@@ -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
@@ -31,6 +31,15 @@ export interface AuthenticationJWT {
31
31
  session_id: string;
32
32
  is_anonymous: boolean;
33
33
  }
34
+ export interface BrowserInfo {
35
+ name: string;
36
+ version: number;
37
+ isOldSafari: boolean;
38
+ isIOS: boolean;
39
+ supportsOptionalChaining: boolean;
40
+ supportsNullishCoalescing: boolean;
41
+ supportsFetch: boolean;
42
+ }
34
43
  export interface CustomError {
35
44
  code: number;
36
45
  message: string;
@@ -45,7 +54,7 @@ export interface IGDBPlatformsResponse {
45
54
  platform_family: number;
46
55
  }
47
56
  export type MicroserviceGroup = "public" | "players" | "lounges" | "backroom";
48
- export type Microservice<MicroserviceGroup> = (MicroserviceGroup extends "backroom" ? "compliance" | "competitions" | "commerce" | "staff" : never) | (MicroserviceGroup extends "players" ? "sessions" | "game-exchange" | "fbl" | "fgc" | "bryl" : never) | "account";
57
+ 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";
49
58
  export type MicroserviceFeature = {
50
59
  name: string;
51
60
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koloseum/types",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "author": "Koloseum Technologies Limited",
5
5
  "type": "module",
6
6
  "description": "Type definitions for use across web apps (TypeScript)",