@koloseum/types 0.1.15 → 0.2.1

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.
@@ -47,17 +47,17 @@ export type Database = {
47
47
  Row: {
48
48
  created_at: string;
49
49
  id: number;
50
- name: string;
50
+ role: string;
51
51
  };
52
52
  Insert: {
53
53
  created_at?: string;
54
54
  id?: number;
55
- name: string;
55
+ role: string;
56
56
  };
57
57
  Update: {
58
58
  created_at?: string;
59
59
  id?: number;
60
- name?: string;
60
+ role?: string;
61
61
  };
62
62
  Relationships: [];
63
63
  };
@@ -66,7 +66,6 @@ export type Database = {
66
66
  account_type: Database["compliance"]["Enums"]["account_type"];
67
67
  created_at: string;
68
68
  id: string;
69
- is_for_minor_rep: boolean | null;
70
69
  rejection_reason: string | null;
71
70
  status: Database["compliance"]["Enums"]["data_update_request_status"];
72
71
  updated_at: string | null;
@@ -77,7 +76,6 @@ export type Database = {
77
76
  account_type: Database["compliance"]["Enums"]["account_type"];
78
77
  created_at?: string;
79
78
  id?: string;
80
- is_for_minor_rep?: boolean | null;
81
79
  rejection_reason?: string | null;
82
80
  status?: Database["compliance"]["Enums"]["data_update_request_status"];
83
81
  updated_at?: string | null;
@@ -88,7 +86,6 @@ export type Database = {
88
86
  account_type?: Database["compliance"]["Enums"]["account_type"];
89
87
  created_at?: string;
90
88
  id?: string;
91
- is_for_minor_rep?: boolean | null;
92
89
  rejection_reason?: string | null;
93
90
  status?: Database["compliance"]["Enums"]["data_update_request_status"];
94
91
  updated_at?: string | null;
@@ -102,7 +99,6 @@ export type Database = {
102
99
  account_type: Database["compliance"]["Enums"]["account_type"];
103
100
  created_at: string;
104
101
  id: string;
105
- is_for_minor_rep: boolean | null;
106
102
  request_id: string | null;
107
103
  updates: Json;
108
104
  user_id: string;
@@ -111,7 +107,6 @@ export type Database = {
111
107
  account_type: Database["compliance"]["Enums"]["account_type"];
112
108
  created_at?: string;
113
109
  id?: string;
114
- is_for_minor_rep?: boolean | null;
115
110
  request_id?: string | null;
116
111
  updates: Json;
117
112
  user_id?: string;
@@ -120,7 +115,6 @@ export type Database = {
120
115
  account_type?: Database["compliance"]["Enums"]["account_type"];
121
116
  created_at?: string;
122
117
  id?: string;
123
- is_for_minor_rep?: boolean | null;
124
118
  request_id?: string | null;
125
119
  updates?: Json;
126
120
  user_id?: string;
@@ -135,11 +129,53 @@ export type Database = {
135
129
  }
136
130
  ];
137
131
  };
132
+ lounge_branch_sanctions: {
133
+ Row: {
134
+ branch_id: string;
135
+ created_at: string;
136
+ end_time: string | null;
137
+ external_metadata: Json | null;
138
+ id: string;
139
+ reason: string;
140
+ start_time: string;
141
+ user_id: string | null;
142
+ };
143
+ Insert: {
144
+ branch_id: string;
145
+ created_at?: string;
146
+ end_time?: string | null;
147
+ external_metadata?: Json | null;
148
+ id?: string;
149
+ reason: string;
150
+ start_time?: string;
151
+ user_id?: string | null;
152
+ };
153
+ Update: {
154
+ branch_id?: string;
155
+ created_at?: string;
156
+ end_time?: string | null;
157
+ external_metadata?: Json | null;
158
+ id?: string;
159
+ reason?: string;
160
+ start_time?: string;
161
+ user_id?: string | null;
162
+ };
163
+ Relationships: [
164
+ {
165
+ foreignKeyName: "lounge_branch_bans_branch_id_fkey";
166
+ columns: ["branch_id"];
167
+ isOneToOne: false;
168
+ referencedRelation: "lounge_branches";
169
+ referencedColumns: ["id"];
170
+ }
171
+ ];
172
+ };
138
173
  lounge_branches: {
139
174
  Row: {
140
175
  address: Json;
141
176
  amenities: Json | null;
142
177
  created_at: string;
178
+ deleted_at: string | null;
143
179
  email: string | null;
144
180
  id: string;
145
181
  name: string;
@@ -150,6 +186,7 @@ export type Database = {
150
186
  address: Json;
151
187
  amenities?: Json | null;
152
188
  created_at?: string;
189
+ deleted_at?: string | null;
153
190
  email?: string | null;
154
191
  id?: string;
155
192
  name: string;
@@ -160,6 +197,7 @@ export type Database = {
160
197
  address?: Json;
161
198
  amenities?: Json | null;
162
199
  created_at?: string;
200
+ deleted_at?: string | null;
163
201
  email?: string | null;
164
202
  id?: string;
165
203
  name?: string;
@@ -195,139 +233,149 @@ export type Database = {
195
233
  };
196
234
  Relationships: [];
197
235
  };
198
- lounge_staff: {
236
+ lounge_credits_transactions: {
199
237
  Row: {
200
- birth_date: string;
238
+ amount: number;
239
+ branch_id: string | null;
201
240
  created_at: string;
202
- deleted: boolean;
203
- deleted_at: string | null;
204
- email: string | null;
205
- email_updated_at: string | null;
206
- first_name: string;
207
- gender_identity: Database["compliance"]["Enums"]["gender_identity"] | null;
241
+ description: string;
242
+ external_metadata: Json | null;
243
+ feature: string | null;
208
244
  id: string;
209
- last_name: string;
210
- lounge_id: string;
211
- middle_names: string | null;
212
- nationality: string;
213
- phone: string;
214
- phone_updated_at: string | null;
215
- pronouns: Database["compliance"]["Enums"]["pronouns"][] | null;
216
- sex: Database["compliance"]["Enums"]["sex"] | null;
217
- show_pronouns: boolean | null;
218
- user_id: string;
245
+ lounge_id: string | null;
246
+ microservice: string | null;
247
+ microservice_group: string | null;
248
+ staff_id: string | null;
249
+ user_id: string | null;
219
250
  };
220
251
  Insert: {
221
- birth_date: string;
252
+ amount: number;
253
+ branch_id?: string | null;
222
254
  created_at?: string;
223
- deleted?: boolean;
224
- deleted_at?: string | null;
225
- email?: string | null;
226
- email_updated_at?: string | null;
227
- first_name: string;
228
- gender_identity?: Database["compliance"]["Enums"]["gender_identity"] | null;
255
+ description: string;
256
+ external_metadata?: Json | null;
257
+ feature?: string | null;
229
258
  id?: string;
230
- last_name: string;
231
- lounge_id?: string;
232
- middle_names?: string | null;
233
- nationality: string;
234
- phone: string;
235
- phone_updated_at?: string | null;
236
- pronouns?: Database["compliance"]["Enums"]["pronouns"][] | null;
237
- sex?: Database["compliance"]["Enums"]["sex"] | null;
238
- show_pronouns?: boolean | null;
239
- user_id?: string;
259
+ lounge_id?: string | null;
260
+ microservice?: string | null;
261
+ microservice_group?: string | null;
262
+ staff_id?: string | null;
263
+ user_id?: string | null;
240
264
  };
241
265
  Update: {
242
- birth_date?: string;
266
+ amount?: number;
267
+ branch_id?: string | null;
243
268
  created_at?: string;
244
- deleted?: boolean;
245
- deleted_at?: string | null;
246
- email?: string | null;
247
- email_updated_at?: string | null;
248
- first_name?: string;
249
- gender_identity?: Database["compliance"]["Enums"]["gender_identity"] | null;
269
+ description?: string;
270
+ external_metadata?: Json | null;
271
+ feature?: string | null;
250
272
  id?: string;
251
- last_name?: string;
252
- lounge_id?: string;
253
- middle_names?: string | null;
254
- nationality?: string;
255
- phone?: string;
256
- phone_updated_at?: string | null;
257
- pronouns?: Database["compliance"]["Enums"]["pronouns"][] | null;
258
- sex?: Database["compliance"]["Enums"]["sex"] | null;
259
- show_pronouns?: boolean | null;
260
- user_id?: string;
273
+ lounge_id?: string | null;
274
+ microservice?: string | null;
275
+ microservice_group?: string | null;
276
+ staff_id?: string | null;
277
+ user_id?: string | null;
261
278
  };
262
279
  Relationships: [
263
280
  {
264
- foreignKeyName: "lounge_staff_lounge_id_fkey";
281
+ foreignKeyName: "lounge_credits_transactions_branch_id_fkey";
282
+ columns: ["branch_id"];
283
+ isOneToOne: false;
284
+ referencedRelation: "lounge_branches";
285
+ referencedColumns: ["id"];
286
+ },
287
+ {
288
+ foreignKeyName: "lounge_credits_transactions_lounge_id_fkey";
265
289
  columns: ["lounge_id"];
266
290
  isOneToOne: false;
267
291
  referencedRelation: "lounges";
268
292
  referencedColumns: ["id"];
293
+ },
294
+ {
295
+ foreignKeyName: "lounge_credits_transactions_staff_id_fkey";
296
+ columns: ["staff_id"];
297
+ isOneToOne: false;
298
+ referencedRelation: "players";
299
+ referencedColumns: ["id"];
269
300
  }
270
301
  ];
271
302
  };
272
- lounge_staff_id_verification_attempts: {
303
+ lounge_sanctions: {
273
304
  Row: {
274
305
  created_at: string;
306
+ end_time: string | null;
307
+ external_metadata: Json | null;
275
308
  id: string;
276
- id_country: string;
277
- id_number: string;
278
- id_type: Database["compliance"]["Enums"]["id_type"];
279
- person_data: Json | null;
280
- user_id: string;
309
+ lounge_id: string;
310
+ reason: string;
311
+ start_time: string;
312
+ user_id: string | null;
281
313
  };
282
314
  Insert: {
283
315
  created_at?: string;
316
+ end_time?: string | null;
317
+ external_metadata?: Json | null;
284
318
  id?: string;
285
- id_country: string;
286
- id_number: string;
287
- id_type: Database["compliance"]["Enums"]["id_type"];
288
- person_data?: Json | null;
289
- user_id?: string;
319
+ lounge_id: string;
320
+ reason: string;
321
+ start_time?: string;
322
+ user_id?: string | null;
290
323
  };
291
324
  Update: {
292
325
  created_at?: string;
326
+ end_time?: string | null;
327
+ external_metadata?: Json | null;
293
328
  id?: string;
294
- id_country?: string;
295
- id_number?: string;
296
- id_type?: Database["compliance"]["Enums"]["id_type"];
297
- person_data?: Json | null;
298
- user_id?: string;
329
+ lounge_id?: string;
330
+ reason?: string;
331
+ start_time?: string;
332
+ user_id?: string | null;
299
333
  };
300
- Relationships: [];
334
+ Relationships: [
335
+ {
336
+ foreignKeyName: "lounge_bans_lounge_id_fkey";
337
+ columns: ["lounge_id"];
338
+ isOneToOne: false;
339
+ referencedRelation: "lounges";
340
+ referencedColumns: ["id"];
341
+ }
342
+ ];
301
343
  };
302
- lounge_staff_verified_id_documents: {
344
+ lounge_staff: {
303
345
  Row: {
304
346
  created_at: string;
305
- id_country: string;
306
- id_number: string;
307
- id_type: Database["compliance"]["Enums"]["id_type"];
308
- issued_on: string;
347
+ lounge_id: string;
348
+ player_id: string;
309
349
  user_id: string;
310
- valid_until: string | null;
311
350
  };
312
351
  Insert: {
313
352
  created_at?: string;
314
- id_country: string;
315
- id_number: string;
316
- id_type: Database["compliance"]["Enums"]["id_type"];
317
- issued_on: string;
318
- user_id?: string;
319
- valid_until?: string | null;
353
+ lounge_id: string;
354
+ player_id: string;
355
+ user_id: string;
320
356
  };
321
357
  Update: {
322
358
  created_at?: string;
323
- id_country?: string;
324
- id_number?: string;
325
- id_type?: Database["compliance"]["Enums"]["id_type"];
326
- issued_on?: string;
359
+ lounge_id?: string;
360
+ player_id?: string;
327
361
  user_id?: string;
328
- valid_until?: string | null;
329
362
  };
330
- Relationships: [];
363
+ Relationships: [
364
+ {
365
+ foreignKeyName: "lounge_staff_lounge_id_fkey";
366
+ columns: ["lounge_id"];
367
+ isOneToOne: false;
368
+ referencedRelation: "lounges";
369
+ referencedColumns: ["id"];
370
+ },
371
+ {
372
+ foreignKeyName: "lounge_staff_player_id_fkey";
373
+ columns: ["player_id"];
374
+ isOneToOne: false;
375
+ referencedRelation: "players";
376
+ referencedColumns: ["id"];
377
+ }
378
+ ];
331
379
  };
332
380
  lounge_verified_company_documents: {
333
381
  Row: {
@@ -357,9 +405,10 @@ export type Database = {
357
405
  Row: {
358
406
  company_name: string;
359
407
  created_at: string;
360
- deleted: boolean;
361
408
  deleted_at: string | null;
409
+ email: string | null;
362
410
  id: string;
411
+ phone: string;
363
412
  registration_date: string;
364
413
  trade_name: string | null;
365
414
  user_id: string | null;
@@ -368,9 +417,10 @@ export type Database = {
368
417
  Insert: {
369
418
  company_name: string;
370
419
  created_at?: string;
371
- deleted?: boolean;
372
420
  deleted_at?: string | null;
421
+ email?: string | null;
373
422
  id?: string;
423
+ phone?: string;
374
424
  registration_date: string;
375
425
  trade_name?: string | null;
376
426
  user_id?: string | null;
@@ -379,9 +429,10 @@ export type Database = {
379
429
  Update: {
380
430
  company_name?: string;
381
431
  created_at?: string;
382
- deleted?: boolean;
383
432
  deleted_at?: string | null;
433
+ email?: string | null;
384
434
  id?: string;
435
+ phone?: string;
385
436
  registration_date?: string;
386
437
  trade_name?: string | null;
387
438
  user_id?: string | null;
@@ -389,6 +440,36 @@ export type Database = {
389
440
  };
390
441
  Relationships: [];
391
442
  };
443
+ phone_verification_attempts: {
444
+ Row: {
445
+ created_at: string;
446
+ phone: string;
447
+ send_code_attempts: Json;
448
+ status: Database["compliance"]["Enums"]["twilio_verification_status"];
449
+ twilio_sid: string;
450
+ updated_at: string;
451
+ user_id: string;
452
+ };
453
+ Insert: {
454
+ created_at: string;
455
+ phone: string;
456
+ send_code_attempts: Json;
457
+ status?: Database["compliance"]["Enums"]["twilio_verification_status"];
458
+ twilio_sid: string;
459
+ updated_at: string;
460
+ user_id?: string;
461
+ };
462
+ Update: {
463
+ created_at?: string;
464
+ phone?: string;
465
+ send_code_attempts?: Json;
466
+ status?: Database["compliance"]["Enums"]["twilio_verification_status"];
467
+ twilio_sid?: string;
468
+ updated_at?: string;
469
+ user_id?: string;
470
+ };
471
+ Relationships: [];
472
+ };
392
473
  player_addresses: {
393
474
  Row: {
394
475
  address1: string;
@@ -428,37 +509,31 @@ export type Database = {
428
509
  };
429
510
  Relationships: [];
430
511
  };
431
- player_bans: {
512
+ player_consoles: {
432
513
  Row: {
433
- created_at: string;
434
- end_time: string | null;
435
- id: string;
514
+ console_id: string;
515
+ is_primary: boolean;
436
516
  player_id: string;
437
- reason: string;
438
- start_time: string;
517
+ quantity: number;
439
518
  user_id: string | null;
440
519
  };
441
520
  Insert: {
442
- created_at?: string;
443
- end_time?: string | null;
444
- id?: string;
445
- player_id: string;
446
- reason: string;
447
- start_time?: string;
521
+ console_id: string;
522
+ is_primary?: boolean;
523
+ player_id?: string;
524
+ quantity?: number;
448
525
  user_id?: string | null;
449
526
  };
450
527
  Update: {
451
- created_at?: string;
452
- end_time?: string | null;
453
- id?: string;
528
+ console_id?: string;
529
+ is_primary?: boolean;
454
530
  player_id?: string;
455
- reason?: string;
456
- start_time?: string;
531
+ quantity?: number;
457
532
  user_id?: string | null;
458
533
  };
459
534
  Relationships: [
460
535
  {
461
- foreignKeyName: "player_bans_player_id_fkey";
536
+ foreignKeyName: "player_consoles_player_id_fkey";
462
537
  columns: ["player_id"];
463
538
  isOneToOne: false;
464
539
  referencedRelation: "players";
@@ -466,31 +541,46 @@ export type Database = {
466
541
  }
467
542
  ];
468
543
  };
469
- player_consoles: {
544
+ player_credits_transactions: {
470
545
  Row: {
471
- console_id: string;
472
- is_primary: boolean;
546
+ amount: number;
547
+ created_at: string;
548
+ description: string;
549
+ external_metadata: Json | null;
550
+ feature: string | null;
551
+ id: string;
552
+ microservice: string | null;
553
+ microservice_group: string | null;
473
554
  player_id: string;
474
- quantity: number;
475
555
  user_id: string | null;
476
556
  };
477
557
  Insert: {
478
- console_id: string;
479
- is_primary?: boolean;
558
+ amount: number;
559
+ created_at?: string;
560
+ description: string;
561
+ external_metadata?: Json | null;
562
+ feature?: string | null;
563
+ id?: string;
564
+ microservice?: string | null;
565
+ microservice_group?: string | null;
480
566
  player_id?: string;
481
- quantity?: number;
482
567
  user_id?: string | null;
483
568
  };
484
569
  Update: {
485
- console_id?: string;
486
- is_primary?: boolean;
570
+ amount?: number;
571
+ created_at?: string;
572
+ description?: string;
573
+ external_metadata?: Json | null;
574
+ feature?: string | null;
575
+ id?: string;
576
+ microservice?: string | null;
577
+ microservice_group?: string | null;
487
578
  player_id?: string;
488
- quantity?: number;
489
579
  user_id?: string | null;
490
580
  };
491
581
  Relationships: [
492
582
  {
493
- foreignKeyName: "player_consoles_player_id_fkey";
583
+ foreignKeyName: "player_credits_transactions_player_id_fkey";
494
584
  columns: ["player_id"];
495
585
  isOneToOne: false;
496
586
  referencedRelation: "players";
@@ -575,7 +665,6 @@ export type Database = {
575
665
  phone_updated_at: string | null;
576
666
  pronouns: Database["compliance"]["Enums"]["pronouns"][] | null;
577
667
  sex: Database["compliance"]["Enums"]["sex"] | null;
578
- show_pronouns: boolean | null;
579
668
  };
580
669
  Insert: {
581
670
  birth_date: string;
@@ -593,7 +682,6 @@ export type Database = {
593
682
  phone_updated_at?: string | null;
594
683
  pronouns?: Database["compliance"]["Enums"]["pronouns"][] | null;
595
684
  sex?: Database["compliance"]["Enums"]["sex"] | null;
596
- show_pronouns?: boolean | null;
597
685
  };
598
686
  Update: {
599
687
  birth_date?: string;
@@ -611,37 +699,6 @@ export type Database = {
611
699
  phone_updated_at?: string | null;
612
700
  pronouns?: Database["compliance"]["Enums"]["pronouns"][] | null;
613
701
  sex?: Database["compliance"]["Enums"]["sex"] | null;
614
- show_pronouns?: boolean | null;
615
- };
616
- Relationships: [];
617
- };
618
- player_minor_rep_phone_verification_attempts: {
619
- Row: {
620
- created_at: string;
621
- phone: string;
622
- send_code_attempts: Json;
623
- status: Database["compliance"]["Enums"]["twilio_verification_status"];
624
- twilio_sid: string;
625
- updated_at: string;
626
- user_id: string;
627
- };
628
- Insert: {
629
- created_at: string;
630
- phone: string;
631
- send_code_attempts: Json;
632
- status?: Database["compliance"]["Enums"]["twilio_verification_status"];
633
- twilio_sid: string;
634
- updated_at: string;
635
- user_id?: string;
636
- };
637
- Update: {
638
- created_at?: string;
639
- phone?: string;
640
- send_code_attempts?: Json;
641
- status?: Database["compliance"]["Enums"]["twilio_verification_status"];
642
- twilio_sid?: string;
643
- updated_at?: string;
644
- user_id?: string;
645
702
  };
646
703
  Relationships: [];
647
704
  };
@@ -774,6 +831,47 @@ export type Database = {
774
831
  }
775
832
  ];
776
833
  };
834
+ player_sanctions: {
835
+ Row: {
836
+ created_at: string;
837
+ end_time: string | null;
838
+ external_metadata: Json | null;
839
+ id: string;
840
+ player_id: string;
841
+ reason: string;
842
+ start_time: string;
843
+ user_id: string | null;
844
+ };
845
+ Insert: {
846
+ created_at?: string;
847
+ end_time?: string | null;
848
+ external_metadata?: Json | null;
849
+ id?: string;
850
+ player_id: string;
851
+ reason: string;
852
+ start_time?: string;
853
+ user_id?: string | null;
854
+ };
855
+ Update: {
856
+ created_at?: string;
857
+ end_time?: string | null;
858
+ external_metadata?: Json | null;
859
+ id?: string;
860
+ player_id?: string;
861
+ reason?: string;
862
+ start_time?: string;
863
+ user_id?: string | null;
864
+ };
865
+ Relationships: [
866
+ {
867
+ foreignKeyName: "player_bans_player_id_fkey";
868
+ columns: ["player_id"];
869
+ isOneToOne: false;
870
+ referencedRelation: "players";
871
+ referencedColumns: ["id"];
872
+ }
873
+ ];
874
+ };
777
875
  player_socials: {
778
876
  Row: {
779
877
  created_at: string;
@@ -799,8 +897,9 @@ export type Database = {
799
897
  Row: {
800
898
  created_at: string;
801
899
  enrollment_year: number;
900
+ exit_year: number;
802
901
  formatted_institution_name: string | null;
803
- graduation_year: number;
902
+ graduated: boolean;
804
903
  id: string;
805
904
  institution_code: string | null;
806
905
  institution_name_issue: Database["compliance"]["Enums"]["institution_name_issue"] | null;
@@ -810,8 +909,9 @@ export type Database = {
810
909
  Insert: {
811
910
  created_at?: string;
812
911
  enrollment_year: number;
912
+ exit_year: number;
813
913
  formatted_institution_name?: string | null;
814
- graduation_year: number;
914
+ graduated?: boolean;
815
915
  id?: string;
816
916
  institution_code?: string | null;
817
917
  institution_name_issue?: Database["compliance"]["Enums"]["institution_name_issue"] | null;
@@ -821,8 +921,9 @@ export type Database = {
821
921
  Update: {
822
922
  created_at?: string;
823
923
  enrollment_year?: number;
924
+ exit_year?: number;
824
925
  formatted_institution_name?: string | null;
825
- graduation_year?: number;
926
+ graduated?: boolean;
826
927
  id?: string;
827
928
  institution_code?: string | null;
828
929
  institution_name_issue?: Database["compliance"]["Enums"]["institution_name_issue"] | null;
@@ -872,32 +973,38 @@ export type Database = {
872
973
  player_xp_transactions: {
873
974
  Row: {
874
975
  amount: number;
875
- category: Database["public"]["Enums"]["category"];
876
976
  created_at: string;
877
977
  description: string;
978
+ external_metadata: Json | null;
979
+ feature: string | null;
878
980
  id: string;
981
+ microservice: string | null;
982
+ microservice_group: string | null;
879
983
  player_id: string;
880
- service: Database["public"]["Enums"]["service"] | null;
881
984
  user_id: string | null;
882
985
  };
883
986
  Insert: {
884
987
  amount: number;
885
- category: Database["public"]["Enums"]["category"];
886
988
  created_at?: string;
887
989
  description: string;
990
+ external_metadata?: Json | null;
991
+ feature?: string | null;
888
992
  id?: string;
993
+ microservice?: string | null;
994
+ microservice_group?: string | null;
889
995
  player_id?: string;
890
- service?: Database["public"]["Enums"]["service"] | null;
891
996
  user_id?: string | null;
892
997
  };
893
998
  Update: {
894
999
  amount?: number;
895
- category?: Database["public"]["Enums"]["category"];
896
1000
  created_at?: string;
897
1001
  description?: string;
1002
+ external_metadata?: Json | null;
1003
+ feature?: string | null;
898
1004
  id?: string;
1005
+ microservice?: string | null;
1006
+ microservice_group?: string | null;
899
1007
  player_id?: string;
900
- service?: Database["public"]["Enums"]["service"] | null;
901
1008
  user_id?: string | null;
902
1009
  };
903
1010
  Relationships: [
@@ -914,14 +1021,15 @@ export type Database = {
914
1021
  Row: {
915
1022
  birth_date: string;
916
1023
  created_at: string;
917
- deleted: boolean;
918
1024
  deleted_at: string | null;
1025
+ email: string | null;
919
1026
  first_name: string;
920
1027
  gender_identity: Database["compliance"]["Enums"]["gender_identity"] | null;
921
1028
  id: string;
922
1029
  last_name: string;
923
1030
  middle_names: string | null;
924
1031
  nationality: string;
1032
+ phone: string;
925
1033
  pronouns: Database["compliance"]["Enums"]["pronouns"][] | null;
926
1034
  pseudonym: string | null;
927
1035
  sex: Database["compliance"]["Enums"]["sex"] | null;
@@ -932,32 +1040,34 @@ export type Database = {
932
1040
  Insert: {
933
1041
  birth_date: string;
934
1042
  created_at?: string;
935
- deleted?: boolean;
936
1043
  deleted_at?: string | null;
1044
+ email?: string | null;
937
1045
  first_name: string;
938
1046
  gender_identity?: Database["compliance"]["Enums"]["gender_identity"] | null;
939
1047
  id?: string;
940
1048
  last_name: string;
941
1049
  middle_names?: string | null;
942
1050
  nationality: string;
1051
+ phone?: string;
943
1052
  pronouns?: Database["compliance"]["Enums"]["pronouns"][] | null;
944
1053
  pseudonym?: string | null;
945
1054
  sex?: Database["compliance"]["Enums"]["sex"] | null;
946
- show_birth_date: boolean;
1055
+ show_birth_date?: boolean;
947
1056
  show_pronouns?: boolean | null;
948
1057
  user_id?: string | null;
949
1058
  };
950
1059
  Update: {
951
1060
  birth_date?: string;
952
1061
  created_at?: string;
953
- deleted?: boolean;
954
1062
  deleted_at?: string | null;
1063
+ email?: string | null;
955
1064
  first_name?: string;
956
1065
  gender_identity?: Database["compliance"]["Enums"]["gender_identity"] | null;
957
1066
  id?: string;
958
1067
  last_name?: string;
959
1068
  middle_names?: string | null;
960
1069
  nationality?: string;
1070
+ phone?: string;
961
1071
  pronouns?: Database["compliance"]["Enums"]["pronouns"][] | null;
962
1072
  pseudonym?: string | null;
963
1073
  sex?: Database["compliance"]["Enums"]["sex"] | null;
@@ -1058,7 +1168,7 @@ export type Database = {
1058
1168
  columns: ["role"];
1059
1169
  isOneToOne: false;
1060
1170
  referencedRelation: "app_roles";
1061
- referencedColumns: ["name"];
1171
+ referencedColumns: ["role"];
1062
1172
  }
1063
1173
  ];
1064
1174
  };
@@ -1073,6 +1183,14 @@ export type Database = {
1073
1183
  };
1074
1184
  Returns: boolean;
1075
1185
  };
1186
+ check_annual_update_limit: {
1187
+ Args: {
1188
+ p_user_id: string;
1189
+ p_account_type: Database["compliance"]["Enums"]["account_type"];
1190
+ p_field: string;
1191
+ };
1192
+ Returns: boolean;
1193
+ };
1076
1194
  complete_registration: {
1077
1195
  Args: Record<PropertyKey, never>;
1078
1196
  Returns: undefined;
@@ -1083,20 +1201,8 @@ export type Database = {
1083
1201
  p_registration_date: string;
1084
1202
  p_trade_name?: string;
1085
1203
  p_website?: string;
1086
- };
1087
- Returns: string;
1088
- };
1089
- create_lounge_staff: {
1090
- Args: {
1091
- p_first_name: string;
1092
- p_last_name: string;
1093
- p_birth_date: string;
1094
- p_nationality: string;
1095
- p_sex: Database["compliance"]["Enums"]["sex"];
1096
- p_middle_names?: string;
1097
- p_gender_identity?: Database["compliance"]["Enums"]["gender_identity"];
1098
- p_pronouns?: Database["compliance"]["Enums"]["pronouns"][];
1099
- p_show_pronouns?: boolean;
1204
+ p_phone?: string;
1205
+ p_email?: string;
1100
1206
  };
1101
1207
  Returns: string;
1102
1208
  };
@@ -1128,7 +1234,6 @@ export type Database = {
1128
1234
  p_middle_names?: string;
1129
1235
  p_gender_identity?: Database["compliance"]["Enums"]["gender_identity"];
1130
1236
  p_pronouns?: Database["compliance"]["Enums"]["pronouns"][];
1131
- p_show_pronouns?: boolean;
1132
1237
  p_other_relation?: string;
1133
1238
  };
1134
1239
  Returns: string;
@@ -1137,7 +1242,7 @@ export type Database = {
1137
1242
  Args: {
1138
1243
  p_institution_code: string;
1139
1244
  p_enrollment_year: number;
1140
- p_graduation_year: number;
1245
+ p_exit_year: number;
1141
1246
  p_institution_name_issue?: Database["compliance"]["Enums"]["institution_name_issue"];
1142
1247
  p_formatted_institution_name?: string;
1143
1248
  };
@@ -1159,7 +1264,7 @@ export type Database = {
1159
1264
  last_name: string;
1160
1265
  }[];
1161
1266
  };
1162
- gen_platform_id: {
1267
+ generate_platform_id: {
1163
1268
  Args: {
1164
1269
  account_type: Database["compliance"]["Enums"]["account_type"];
1165
1270
  is_for_staff?: boolean;
@@ -1171,26 +1276,79 @@ export type Database = {
1171
1276
  Args: Record<PropertyKey, never>;
1172
1277
  Returns: Json;
1173
1278
  };
1174
- get_lounge_id: {
1175
- Args: Record<PropertyKey, never>;
1176
- Returns: string;
1279
+ get_data_update_requests: {
1280
+ Args: {
1281
+ search?: string;
1282
+ is_for_minor_rep?: boolean;
1283
+ };
1284
+ Returns: {
1285
+ id: string;
1286
+ account_type: Database["compliance"]["Enums"]["account_type"];
1287
+ updates: Json;
1288
+ status: Database["compliance"]["Enums"]["data_update_request_status"];
1289
+ rejection_reason: string;
1290
+ created_at: string;
1291
+ updated_at: string;
1292
+ }[];
1177
1293
  };
1178
- get_lounge_ids: {
1294
+ get_data_updates: {
1295
+ Args: {
1296
+ search?: string;
1297
+ is_for_minor_rep?: boolean;
1298
+ };
1299
+ Returns: {
1300
+ id: string;
1301
+ account_type: Database["compliance"]["Enums"]["account_type"];
1302
+ updates: Json;
1303
+ created_at: string;
1304
+ }[];
1305
+ };
1306
+ get_lounge_branches: {
1179
1307
  Args: {
1180
1308
  search?: string;
1181
1309
  };
1182
1310
  Returns: {
1183
- r_user_id: string;
1184
- r_lounge_id: string;
1311
+ address: Json;
1312
+ amenities: Json | null;
1313
+ created_at: string;
1314
+ deleted_at: string | null;
1315
+ email: string | null;
1316
+ id: string;
1317
+ name: string;
1318
+ phone: string;
1319
+ user_id: string;
1185
1320
  }[];
1186
1321
  };
1322
+ get_lounge_ids: {
1323
+ Args: {
1324
+ search?: string;
1325
+ };
1326
+ Returns: Json;
1327
+ };
1328
+ get_minor_rep_non_platform_id: {
1329
+ Args: Record<PropertyKey, never>;
1330
+ Returns: string;
1331
+ };
1332
+ get_minor_rep_phone: {
1333
+ Args: Record<PropertyKey, never>;
1334
+ Returns: string;
1335
+ };
1187
1336
  get_player_ids: {
1188
1337
  Args: {
1189
1338
  search?: string;
1190
1339
  };
1340
+ Returns: Json;
1341
+ };
1342
+ get_player_varsity_institutions: {
1343
+ Args: {
1344
+ p_player_id: string;
1345
+ };
1191
1346
  Returns: {
1192
- r_user_id: string;
1193
- r_player_id: string;
1347
+ institution_code: string;
1348
+ institution_name: string;
1349
+ enrollment_year: number;
1350
+ exit_year: number;
1351
+ graduated: boolean;
1194
1352
  }[];
1195
1353
  };
1196
1354
  get_user_phone: {
@@ -1199,6 +1357,13 @@ export type Database = {
1199
1357
  };
1200
1358
  Returns: string;
1201
1359
  };
1360
+ is_current_user_permanent: {
1361
+ Args: {
1362
+ user_id: string;
1363
+ user_is_anonymous?: boolean;
1364
+ };
1365
+ Returns: boolean;
1366
+ };
1202
1367
  is_user_permanent: {
1203
1368
  Args: {
1204
1369
  user_id: string;
@@ -1214,7 +1379,7 @@ export type Database = {
1214
1379
  };
1215
1380
  Returns: undefined;
1216
1381
  };
1217
- log_minor_rep_phone_verification: {
1382
+ log_phone_verification: {
1218
1383
  Args: {
1219
1384
  p_twilio_sid: string;
1220
1385
  p_status: Database["compliance"]["Enums"]["twilio_verification_status"];
@@ -1225,23 +1390,39 @@ export type Database = {
1225
1390
  };
1226
1391
  Returns: undefined;
1227
1392
  };
1228
- minor_rep_non_platform_id: {
1229
- Args: Record<PropertyKey, never>;
1230
- Returns: string;
1231
- };
1232
- minor_rep_phone: {
1233
- Args: Record<PropertyKey, never>;
1234
- Returns: string;
1235
- };
1236
- phone_is_in_auth: {
1393
+ search_lounges: {
1237
1394
  Args: {
1238
- p_phone: string;
1395
+ search_term: string;
1396
+ search_type?: string;
1239
1397
  };
1240
- Returns: boolean;
1398
+ Returns: {
1399
+ id: string;
1400
+ user_id: string;
1401
+ company_name: string;
1402
+ registration_date: string;
1403
+ trade_name: string;
1404
+ website: string;
1405
+ created_at: string;
1406
+ }[];
1241
1407
  };
1242
- player_id: {
1243
- Args: Record<PropertyKey, never>;
1244
- Returns: string;
1408
+ search_players: {
1409
+ Args: {
1410
+ search_term: string;
1411
+ search_type?: string;
1412
+ enforce_preferences?: boolean;
1413
+ };
1414
+ Returns: {
1415
+ id: string;
1416
+ user_id: string;
1417
+ first_name: string;
1418
+ middle_names: string;
1419
+ last_name: string;
1420
+ birth_date: string;
1421
+ nationality: string;
1422
+ pseudonym: string;
1423
+ pronouns: Database["compliance"]["Enums"]["pronouns"][];
1424
+ created_at: string;
1425
+ }[];
1245
1426
  };
1246
1427
  submit_gaming_and_socials_data: {
1247
1428
  Args: {
@@ -1251,6 +1432,17 @@ export type Database = {
1251
1432
  };
1252
1433
  Returns: undefined;
1253
1434
  };
1435
+ validate_data_update_log_fields: {
1436
+ Args: {
1437
+ p_account_type: Database["compliance"]["Enums"]["account_type"];
1438
+ p_is_for_minor_rep: boolean;
1439
+ p_is_for_branch: boolean;
1440
+ p_user_id?: string;
1441
+ p_old_record?: Record<string, unknown>;
1442
+ p_new_record?: Record<string, unknown>;
1443
+ };
1444
+ Returns: undefined;
1445
+ };
1254
1446
  validate_pronouns: {
1255
1447
  Args: {
1256
1448
  pronouns: Database["compliance"]["Enums"]["pronouns"][];
@@ -1466,18 +1658,6 @@ export type Database = {
1466
1658
  name: string | null;
1467
1659
  registration_date: string | null;
1468
1660
  };
1469
- Insert: {
1470
- created_at?: string | null;
1471
- id?: string | null;
1472
- name?: never;
1473
- registration_date?: string | null;
1474
- };
1475
- Update: {
1476
- created_at?: string | null;
1477
- id?: string | null;
1478
- name?: never;
1479
- registration_date?: string | null;
1480
- };
1481
1661
  Relationships: [];
1482
1662
  };
1483
1663
  active_player_socials: {
@@ -1500,28 +1680,6 @@ export type Database = {
1500
1680
  pronouns: Database["compliance"]["Enums"]["pronouns"][] | null;
1501
1681
  pseudonym: string | null;
1502
1682
  };
1503
- Insert: {
1504
- birth_date?: never;
1505
- created_at?: string | null;
1506
- first_name?: string | null;
1507
- id?: string | null;
1508
- last_name?: string | null;
1509
- middle_names?: string | null;
1510
- nationality?: string | null;
1511
- pronouns?: never;
1512
- pseudonym?: string | null;
1513
- };
1514
- Update: {
1515
- birth_date?: never;
1516
- created_at?: string | null;
1517
- first_name?: string | null;
1518
- id?: string | null;
1519
- last_name?: string | null;
1520
- middle_names?: string | null;
1521
- nationality?: string | null;
1522
- pronouns?: never;
1523
- pseudonym?: string | null;
1524
- };
1525
1683
  Relationships: [
1526
1684
  {
1527
1685
  foreignKeyName: "compliance_players_nationality_fkey";
@@ -1534,11 +1692,37 @@ export type Database = {
1534
1692
  };
1535
1693
  };
1536
1694
  Functions: {
1537
- [_ in never]: never;
1695
+ search_active_lounges: {
1696
+ Args: {
1697
+ search_term: string;
1698
+ search_type?: string;
1699
+ };
1700
+ Returns: {
1701
+ id: string;
1702
+ name: string;
1703
+ registration_date: string;
1704
+ created_at: string;
1705
+ }[];
1706
+ };
1707
+ search_active_players: {
1708
+ Args: {
1709
+ search_term: string;
1710
+ search_type?: string;
1711
+ };
1712
+ Returns: {
1713
+ id: string;
1714
+ first_name: string;
1715
+ middle_names: string;
1716
+ last_name: string;
1717
+ birth_date: string;
1718
+ nationality: string;
1719
+ pseudonym: string;
1720
+ pronouns: Database["compliance"]["Enums"]["pronouns"][];
1721
+ created_at: string;
1722
+ }[];
1723
+ };
1538
1724
  };
1539
1725
  Enums: {
1540
- category: "authentication" | "account" | "sessions" | "football" | "fighting" | "battle_royale";
1541
- service: "league" | "challenges" | "locals" | "sims" | "clip_of_the_week";
1542
1726
  social_media_platform: "facebook" | "instagram" | "kick" | "tiktok" | "twitch" | "twitter" | "youtube";
1543
1727
  };
1544
1728
  CompositeTypes: {
@@ -1930,8 +2114,6 @@ export declare const Constants: {
1930
2114
  };
1931
2115
  readonly public: {
1932
2116
  readonly Enums: {
1933
- readonly category: readonly ["authentication", "account", "sessions", "football", "fighting", "battle_royale"];
1934
- readonly service: readonly ["league", "challenges", "locals", "sims", "clip_of_the_week"];
1935
2117
  readonly social_media_platform: readonly ["facebook", "instagram", "kick", "tiktok", "twitch", "twitter", "youtube"];
1936
2118
  };
1937
2119
  };