@koloseum/types 0.3.7 → 0.3.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.
@@ -5279,6 +5279,9 @@ export type Database = {
5279
5279
  Row: {
5280
5280
  acknowledged_at: string | null;
5281
5281
  acknowledged_by: string | null;
5282
+ cancelled_at: string | null;
5283
+ cancelled_by: string | null;
5284
+ cancelled_reason: string | null;
5282
5285
  created_at: string;
5283
5286
  id: string;
5284
5287
  requested_at: string;
@@ -5288,6 +5291,9 @@ export type Database = {
5288
5291
  Insert: {
5289
5292
  acknowledged_at?: string | null;
5290
5293
  acknowledged_by?: string | null;
5294
+ cancelled_at?: string | null;
5295
+ cancelled_by?: string | null;
5296
+ cancelled_reason?: string | null;
5291
5297
  created_at?: string;
5292
5298
  id?: string;
5293
5299
  requested_at?: string;
@@ -5297,6 +5303,9 @@ export type Database = {
5297
5303
  Update: {
5298
5304
  acknowledged_at?: string | null;
5299
5305
  acknowledged_by?: string | null;
5306
+ cancelled_at?: string | null;
5307
+ cancelled_by?: string | null;
5308
+ cancelled_reason?: string | null;
5300
5309
  created_at?: string;
5301
5310
  id?: string;
5302
5311
  requested_at?: string;
@@ -5540,9 +5549,9 @@ export type Database = {
5540
5549
  };
5541
5550
  player_session_eatery_orders: {
5542
5551
  Row: {
5543
- cancellation_reason: string | null;
5544
5552
  cancelled_at: string | null;
5545
5553
  cancelled_by: string | null;
5554
+ cancelled_reason: string | null;
5546
5555
  created_at: string;
5547
5556
  id: string;
5548
5557
  session_id: string;
@@ -5550,9 +5559,9 @@ export type Database = {
5550
5559
  updated_at: string;
5551
5560
  };
5552
5561
  Insert: {
5553
- cancellation_reason?: string | null;
5554
5562
  cancelled_at?: string | null;
5555
5563
  cancelled_by?: string | null;
5564
+ cancelled_reason?: string | null;
5556
5565
  created_at?: string;
5557
5566
  id?: string;
5558
5567
  session_id: string;
@@ -5560,9 +5569,9 @@ export type Database = {
5560
5569
  updated_at?: string;
5561
5570
  };
5562
5571
  Update: {
5563
- cancellation_reason?: string | null;
5564
5572
  cancelled_at?: string | null;
5565
5573
  cancelled_by?: string | null;
5574
+ cancelled_reason?: string | null;
5566
5575
  created_at?: string;
5567
5576
  id?: string;
5568
5577
  session_id?: string;
@@ -5700,6 +5709,7 @@ export type Database = {
5700
5709
  Row: {
5701
5710
  cancelled_at: string | null;
5702
5711
  cancelled_by: string | null;
5712
+ cancelled_reason: string | null;
5703
5713
  created_at: string;
5704
5714
  id: string;
5705
5715
  joined_at: string | null;
@@ -5716,6 +5726,7 @@ export type Database = {
5716
5726
  Insert: {
5717
5727
  cancelled_at?: string | null;
5718
5728
  cancelled_by?: string | null;
5729
+ cancelled_reason?: string | null;
5719
5730
  created_at?: string;
5720
5731
  id?: string;
5721
5732
  joined_at?: string | null;
@@ -5732,6 +5743,7 @@ export type Database = {
5732
5743
  Update: {
5733
5744
  cancelled_at?: string | null;
5734
5745
  cancelled_by?: string | null;
5746
+ cancelled_reason?: string | null;
5735
5747
  created_at?: string;
5736
5748
  id?: string;
5737
5749
  joined_at?: string | null;
@@ -20,7 +20,7 @@ export interface LuggageSlotParam {
20
20
  quantity: number;
21
21
  }
22
22
  export interface MinorRepSessionConsentContext {
23
- session_role: SessionRole;
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
- export interface LoungeBranchWithOpenStatus extends LoungeBranch {
228
- is_open: boolean;
229
- opening_times: LoungeBranchOpeningTime[];
229
+ branches: (LoungeBranchWithOpenStatus & {
230
+ average_rating: number | null;
231
+ })[];
230
232
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koloseum/types",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "author": "Koloseum Technologies Limited",
5
5
  "type": "module",
6
6
  "description": "Type definitions for use across web apps (TypeScript)",