@koloseum/types 0.3.8 → 0.3.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.
- package/dist/database-generated.d.ts +60 -20
- package/dist/database.d.ts +7 -2
- package/dist/players/sessions.d.ts +9 -7
- package/package.json +1 -1
|
@@ -570,16 +570,16 @@ export type Database = {
|
|
|
570
570
|
};
|
|
571
571
|
Returns: string;
|
|
572
572
|
};
|
|
573
|
-
kxp_order_reward_amount: {
|
|
574
|
-
Args: never;
|
|
575
|
-
Returns: number;
|
|
576
|
-
};
|
|
577
573
|
validate_prize_pool_splits: {
|
|
578
574
|
Args: {
|
|
579
575
|
p_prize_pool_id: string;
|
|
580
576
|
};
|
|
581
577
|
Returns: boolean;
|
|
582
578
|
};
|
|
579
|
+
xp_order_reward_amount: {
|
|
580
|
+
Args: never;
|
|
581
|
+
Returns: number;
|
|
582
|
+
};
|
|
583
583
|
};
|
|
584
584
|
Enums: {
|
|
585
585
|
fulfillment_status: "pending" | "shipped" | "delivered" | "returned";
|
|
@@ -2434,7 +2434,7 @@ export type Database = {
|
|
|
2434
2434
|
is_challenges_staff: {
|
|
2435
2435
|
Args: {
|
|
2436
2436
|
p_challenges_id: string;
|
|
2437
|
-
p_permission
|
|
2437
|
+
p_permission?: string;
|
|
2438
2438
|
p_user_id?: string;
|
|
2439
2439
|
};
|
|
2440
2440
|
Returns: boolean;
|
|
@@ -2449,7 +2449,7 @@ export type Database = {
|
|
|
2449
2449
|
is_league_staff: {
|
|
2450
2450
|
Args: {
|
|
2451
2451
|
p_league_id: string;
|
|
2452
|
-
p_permission
|
|
2452
|
+
p_permission?: string;
|
|
2453
2453
|
p_user_id?: string;
|
|
2454
2454
|
};
|
|
2455
2455
|
Returns: boolean;
|
|
@@ -2464,7 +2464,7 @@ export type Database = {
|
|
|
2464
2464
|
is_locals_staff: {
|
|
2465
2465
|
Args: {
|
|
2466
2466
|
p_locals_tournament_id: string;
|
|
2467
|
-
p_permission
|
|
2467
|
+
p_permission?: string;
|
|
2468
2468
|
p_user_id?: string;
|
|
2469
2469
|
};
|
|
2470
2470
|
Returns: boolean;
|
|
@@ -2479,7 +2479,6 @@ export type Database = {
|
|
|
2479
2479
|
is_prize_pool_organiser: {
|
|
2480
2480
|
Args: {
|
|
2481
2481
|
p_prize_pool_id: string;
|
|
2482
|
-
p_user_id?: string;
|
|
2483
2482
|
};
|
|
2484
2483
|
Returns: boolean;
|
|
2485
2484
|
};
|
|
@@ -4135,6 +4134,10 @@ export type Database = {
|
|
|
4135
4134
|
Args: never;
|
|
4136
4135
|
Returns: number;
|
|
4137
4136
|
};
|
|
4137
|
+
backfill_suprsend_subscribers: {
|
|
4138
|
+
Args: never;
|
|
4139
|
+
Returns: undefined;
|
|
4140
|
+
};
|
|
4138
4141
|
check_annual_update_limit: {
|
|
4139
4142
|
Args: {
|
|
4140
4143
|
p_account_type: Database["compliance"]["Enums"]["account_type"];
|
|
@@ -4298,6 +4301,10 @@ export type Database = {
|
|
|
4298
4301
|
isSetofReturn: true;
|
|
4299
4302
|
};
|
|
4300
4303
|
};
|
|
4304
|
+
get_lounge_credits_balance: {
|
|
4305
|
+
Args: never;
|
|
4306
|
+
Returns: Json;
|
|
4307
|
+
};
|
|
4301
4308
|
get_lounge_id_from_branch: {
|
|
4302
4309
|
Args: {
|
|
4303
4310
|
p_lounge_branch_id: string;
|
|
@@ -4352,7 +4359,7 @@ export type Database = {
|
|
|
4352
4359
|
};
|
|
4353
4360
|
Returns: string;
|
|
4354
4361
|
};
|
|
4355
|
-
|
|
4362
|
+
grant_daily_login_xp: {
|
|
4356
4363
|
Args: {
|
|
4357
4364
|
p_user_id: string;
|
|
4358
4365
|
};
|
|
@@ -4384,14 +4391,6 @@ export type Database = {
|
|
|
4384
4391
|
};
|
|
4385
4392
|
Returns: boolean;
|
|
4386
4393
|
};
|
|
4387
|
-
kxp_daily_login_grant_amount: {
|
|
4388
|
-
Args: never;
|
|
4389
|
-
Returns: number;
|
|
4390
|
-
};
|
|
4391
|
-
kxp_registration_grant_amount: {
|
|
4392
|
-
Args: never;
|
|
4393
|
-
Returns: number;
|
|
4394
|
-
};
|
|
4395
4394
|
link_existing_minor_rep: {
|
|
4396
4395
|
Args: {
|
|
4397
4396
|
p_minor_relation: Database["compliance"]["Enums"]["minor_relation"];
|
|
@@ -4423,6 +4422,13 @@ export type Database = {
|
|
|
4423
4422
|
};
|
|
4424
4423
|
Returns: string;
|
|
4425
4424
|
};
|
|
4425
|
+
mark_suprsend_backfill_welcome_sent: {
|
|
4426
|
+
Args: {
|
|
4427
|
+
p_scope: string;
|
|
4428
|
+
p_user_ids: string[];
|
|
4429
|
+
};
|
|
4430
|
+
Returns: undefined;
|
|
4431
|
+
};
|
|
4426
4432
|
render_pronouns: {
|
|
4427
4433
|
Args: {
|
|
4428
4434
|
p_pronouns: Database["compliance"]["Enums"]["pronouns"][];
|
|
@@ -4508,6 +4514,14 @@ export type Database = {
|
|
|
4508
4514
|
};
|
|
4509
4515
|
Returns: undefined;
|
|
4510
4516
|
};
|
|
4517
|
+
xp_daily_login_grant_amount: {
|
|
4518
|
+
Args: never;
|
|
4519
|
+
Returns: number;
|
|
4520
|
+
};
|
|
4521
|
+
xp_registration_grant_amount: {
|
|
4522
|
+
Args: never;
|
|
4523
|
+
Returns: number;
|
|
4524
|
+
};
|
|
4511
4525
|
};
|
|
4512
4526
|
Enums: {
|
|
4513
4527
|
account_type: "player" | "lounge";
|
|
@@ -5279,6 +5293,9 @@ export type Database = {
|
|
|
5279
5293
|
Row: {
|
|
5280
5294
|
acknowledged_at: string | null;
|
|
5281
5295
|
acknowledged_by: string | null;
|
|
5296
|
+
cancelled_at: string | null;
|
|
5297
|
+
cancelled_by: string | null;
|
|
5298
|
+
cancelled_reason: string | null;
|
|
5282
5299
|
created_at: string;
|
|
5283
5300
|
id: string;
|
|
5284
5301
|
requested_at: string;
|
|
@@ -5288,6 +5305,9 @@ export type Database = {
|
|
|
5288
5305
|
Insert: {
|
|
5289
5306
|
acknowledged_at?: string | null;
|
|
5290
5307
|
acknowledged_by?: string | null;
|
|
5308
|
+
cancelled_at?: string | null;
|
|
5309
|
+
cancelled_by?: string | null;
|
|
5310
|
+
cancelled_reason?: string | null;
|
|
5291
5311
|
created_at?: string;
|
|
5292
5312
|
id?: string;
|
|
5293
5313
|
requested_at?: string;
|
|
@@ -5297,6 +5317,9 @@ export type Database = {
|
|
|
5297
5317
|
Update: {
|
|
5298
5318
|
acknowledged_at?: string | null;
|
|
5299
5319
|
acknowledged_by?: string | null;
|
|
5320
|
+
cancelled_at?: string | null;
|
|
5321
|
+
cancelled_by?: string | null;
|
|
5322
|
+
cancelled_reason?: string | null;
|
|
5300
5323
|
created_at?: string;
|
|
5301
5324
|
id?: string;
|
|
5302
5325
|
requested_at?: string;
|
|
@@ -5540,9 +5563,9 @@ export type Database = {
|
|
|
5540
5563
|
};
|
|
5541
5564
|
player_session_eatery_orders: {
|
|
5542
5565
|
Row: {
|
|
5543
|
-
cancellation_reason: string | null;
|
|
5544
5566
|
cancelled_at: string | null;
|
|
5545
5567
|
cancelled_by: string | null;
|
|
5568
|
+
cancelled_reason: string | null;
|
|
5546
5569
|
created_at: string;
|
|
5547
5570
|
id: string;
|
|
5548
5571
|
session_id: string;
|
|
@@ -5550,9 +5573,9 @@ export type Database = {
|
|
|
5550
5573
|
updated_at: string;
|
|
5551
5574
|
};
|
|
5552
5575
|
Insert: {
|
|
5553
|
-
cancellation_reason?: string | null;
|
|
5554
5576
|
cancelled_at?: string | null;
|
|
5555
5577
|
cancelled_by?: string | null;
|
|
5578
|
+
cancelled_reason?: string | null;
|
|
5556
5579
|
created_at?: string;
|
|
5557
5580
|
id?: string;
|
|
5558
5581
|
session_id: string;
|
|
@@ -5560,9 +5583,9 @@ export type Database = {
|
|
|
5560
5583
|
updated_at?: string;
|
|
5561
5584
|
};
|
|
5562
5585
|
Update: {
|
|
5563
|
-
cancellation_reason?: string | null;
|
|
5564
5586
|
cancelled_at?: string | null;
|
|
5565
5587
|
cancelled_by?: string | null;
|
|
5588
|
+
cancelled_reason?: string | null;
|
|
5566
5589
|
created_at?: string;
|
|
5567
5590
|
id?: string;
|
|
5568
5591
|
session_id?: string;
|
|
@@ -5700,6 +5723,7 @@ export type Database = {
|
|
|
5700
5723
|
Row: {
|
|
5701
5724
|
cancelled_at: string | null;
|
|
5702
5725
|
cancelled_by: string | null;
|
|
5726
|
+
cancelled_reason: string | null;
|
|
5703
5727
|
created_at: string;
|
|
5704
5728
|
id: string;
|
|
5705
5729
|
joined_at: string | null;
|
|
@@ -5716,6 +5740,7 @@ export type Database = {
|
|
|
5716
5740
|
Insert: {
|
|
5717
5741
|
cancelled_at?: string | null;
|
|
5718
5742
|
cancelled_by?: string | null;
|
|
5743
|
+
cancelled_reason?: string | null;
|
|
5719
5744
|
created_at?: string;
|
|
5720
5745
|
id?: string;
|
|
5721
5746
|
joined_at?: string | null;
|
|
@@ -5732,6 +5757,7 @@ export type Database = {
|
|
|
5732
5757
|
Update: {
|
|
5733
5758
|
cancelled_at?: string | null;
|
|
5734
5759
|
cancelled_by?: string | null;
|
|
5760
|
+
cancelled_reason?: string | null;
|
|
5735
5761
|
created_at?: string;
|
|
5736
5762
|
id?: string;
|
|
5737
5763
|
joined_at?: string | null;
|
|
@@ -6055,6 +6081,12 @@ export type Database = {
|
|
|
6055
6081
|
};
|
|
6056
6082
|
Returns: Json;
|
|
6057
6083
|
};
|
|
6084
|
+
compute_undiscounted_session_total: {
|
|
6085
|
+
Args: {
|
|
6086
|
+
p_session_id: string;
|
|
6087
|
+
};
|
|
6088
|
+
Returns: number;
|
|
6089
|
+
};
|
|
6058
6090
|
create_eatery_order: {
|
|
6059
6091
|
Args: {
|
|
6060
6092
|
p_session_id: string;
|
|
@@ -6301,6 +6333,14 @@ export type Database = {
|
|
|
6301
6333
|
};
|
|
6302
6334
|
Returns: undefined;
|
|
6303
6335
|
};
|
|
6336
|
+
session_check_in_xp_grant_amount: {
|
|
6337
|
+
Args: never;
|
|
6338
|
+
Returns: number;
|
|
6339
|
+
};
|
|
6340
|
+
session_check_out_xp_grant_amount: {
|
|
6341
|
+
Args: never;
|
|
6342
|
+
Returns: number;
|
|
6343
|
+
};
|
|
6304
6344
|
terminate_luggage_and_eatery_for_session: {
|
|
6305
6345
|
Args: {
|
|
6306
6346
|
p_session_id: string;
|
package/dist/database.d.ts
CHANGED
|
@@ -278,6 +278,11 @@ export type Database = MergeDeep<DatabaseGenerated, {
|
|
|
278
278
|
deleted_at: string | null;
|
|
279
279
|
}[];
|
|
280
280
|
};
|
|
281
|
+
get_lounge_credits_balance: {
|
|
282
|
+
Returns: {
|
|
283
|
+
credits: number | null;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
281
286
|
get_lounge_ids: {
|
|
282
287
|
Returns: {
|
|
283
288
|
lounge_id: string | null;
|
|
@@ -289,8 +294,8 @@ export type Database = MergeDeep<DatabaseGenerated, {
|
|
|
289
294
|
};
|
|
290
295
|
get_player_balances: {
|
|
291
296
|
Returns: {
|
|
292
|
-
|
|
293
|
-
credits: number;
|
|
297
|
+
xp: number | null;
|
|
298
|
+
credits: number | null;
|
|
294
299
|
};
|
|
295
300
|
};
|
|
296
301
|
get_player_ids: {
|
|
@@ -20,7 +20,7 @@ export interface LuggageSlotParam {
|
|
|
20
20
|
quantity: number;
|
|
21
21
|
}
|
|
22
22
|
export interface MinorRepSessionConsentContext {
|
|
23
|
-
session_role:
|
|
23
|
+
session_role: SessionMemberRole;
|
|
24
24
|
session_created_at: string;
|
|
25
25
|
minor_rep_phone: string | null;
|
|
26
26
|
otp_sent_at: string | null;
|
|
@@ -128,8 +128,8 @@ export type SessionLuggageSlotStatus = Database["sessions"]["Enums"]["session_lu
|
|
|
128
128
|
export type SessionMemberLuggageSlot = Database["sessions"]["Tables"]["player_session_luggage_slots"]["Row"] & {
|
|
129
129
|
slot_label: string;
|
|
130
130
|
};
|
|
131
|
+
export type SessionMemberRole = "owner" | "invited";
|
|
131
132
|
export type SessionMemberStatus = Database["sessions"]["Enums"]["session_member_status"];
|
|
132
|
-
export type SessionRole = "owner" | "invited";
|
|
133
133
|
export interface SessionStartData {
|
|
134
134
|
branch: LoungeBranch;
|
|
135
135
|
open_status: LoungeBranchOpenStatus | null;
|
|
@@ -211,6 +211,10 @@ export type LoungeBranchStation = {
|
|
|
211
211
|
online_play: boolean;
|
|
212
212
|
special_controllers: string | null;
|
|
213
213
|
};
|
|
214
|
+
export interface LoungeBranchWithOpenStatus extends LoungeBranch {
|
|
215
|
+
is_open: boolean;
|
|
216
|
+
opening_times: LoungeBranchOpeningTime[];
|
|
217
|
+
}
|
|
214
218
|
export interface LoungeWithBranches {
|
|
215
219
|
lounge: {
|
|
216
220
|
id: string;
|
|
@@ -222,9 +226,7 @@ export interface LoungeWithBranches {
|
|
|
222
226
|
website: string | null;
|
|
223
227
|
created_at: string;
|
|
224
228
|
};
|
|
225
|
-
branches: LoungeBranchWithOpenStatus
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
is_open: boolean;
|
|
229
|
-
opening_times: LoungeBranchOpeningTime[];
|
|
229
|
+
branches: (LoungeBranchWithOpenStatus & {
|
|
230
|
+
average_rating: number | null;
|
|
231
|
+
})[];
|
|
230
232
|
}
|