@koloseum/types 0.3.2 → 0.3.4

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.
@@ -370,7 +370,7 @@ export type Database = {
370
370
  };
371
371
  payments: {
372
372
  Row: {
373
- amount: number;
373
+ amount_cents: number;
374
374
  created_at: string;
375
375
  currency_code: string;
376
376
  id: string;
@@ -382,7 +382,7 @@ export type Database = {
382
382
  user_id: string | null;
383
383
  };
384
384
  Insert: {
385
- amount: number;
385
+ amount_cents: number;
386
386
  created_at?: string;
387
387
  currency_code: string;
388
388
  id?: string;
@@ -394,7 +394,7 @@ export type Database = {
394
394
  user_id?: string | null;
395
395
  };
396
396
  Update: {
397
- amount?: number;
397
+ amount_cents?: number;
398
398
  created_at?: string;
399
399
  currency_code?: string;
400
400
  id?: string;
@@ -459,7 +459,7 @@ export type Database = {
459
459
  };
460
460
  prize_money_transactions: {
461
461
  Row: {
462
- amount: number;
462
+ amount_cents: number;
463
463
  created_at: string;
464
464
  credits_transaction_id: string | null;
465
465
  currency_code: string;
@@ -473,7 +473,7 @@ export type Database = {
473
473
  user_id: string | null;
474
474
  };
475
475
  Insert: {
476
- amount: number;
476
+ amount_cents: number;
477
477
  created_at?: string;
478
478
  credits_transaction_id?: string | null;
479
479
  currency_code: string;
@@ -487,7 +487,7 @@ export type Database = {
487
487
  user_id?: string | null;
488
488
  };
489
489
  Update: {
490
- amount?: number;
490
+ amount_cents?: number;
491
491
  created_at?: string;
492
492
  credits_transaction_id?: string | null;
493
493
  currency_code?: string;
@@ -2556,14 +2556,14 @@ export type Database = {
2556
2556
  };
2557
2557
  Relationships: [
2558
2558
  {
2559
- foreignKeyName: "compliance_app_role_permissions_permission_fkey";
2559
+ foreignKeyName: "app_role_permissions_permission_fkey";
2560
2560
  columns: ["permission"];
2561
2561
  isOneToOne: false;
2562
2562
  referencedRelation: "apps";
2563
2563
  referencedColumns: ["app"];
2564
2564
  },
2565
2565
  {
2566
- foreignKeyName: "compliance_app_role_permissions_role_fkey";
2566
+ foreignKeyName: "app_role_permissions_role_fkey";
2567
2567
  columns: ["role"];
2568
2568
  isOneToOne: false;
2569
2569
  referencedRelation: "app_roles";
@@ -2733,7 +2733,7 @@ export type Database = {
2733
2733
  };
2734
2734
  Relationships: [
2735
2735
  {
2736
- foreignKeyName: "compliance_data_updates_request_id_fkey";
2736
+ foreignKeyName: "data_updates_request_id_fkey";
2737
2737
  columns: ["request_id"];
2738
2738
  isOneToOne: true;
2739
2739
  referencedRelation: "data_update_requests";
@@ -2747,38 +2747,45 @@ export type Database = {
2747
2747
  created_at: string;
2748
2748
  end_time: string | null;
2749
2749
  id: string;
2750
+ lounge_id: string;
2750
2751
  metadata: Json | null;
2751
2752
  reason: string;
2752
2753
  start_time: string;
2753
- user_id: string | null;
2754
2754
  };
2755
2755
  Insert: {
2756
2756
  branch_id: string;
2757
2757
  created_at?: string;
2758
2758
  end_time?: string | null;
2759
2759
  id?: string;
2760
+ lounge_id: string;
2760
2761
  metadata?: Json | null;
2761
2762
  reason: string;
2762
2763
  start_time?: string;
2763
- user_id?: string | null;
2764
2764
  };
2765
2765
  Update: {
2766
2766
  branch_id?: string;
2767
2767
  created_at?: string;
2768
2768
  end_time?: string | null;
2769
2769
  id?: string;
2770
+ lounge_id?: string;
2770
2771
  metadata?: Json | null;
2771
2772
  reason?: string;
2772
2773
  start_time?: string;
2773
- user_id?: string | null;
2774
2774
  };
2775
2775
  Relationships: [
2776
2776
  {
2777
- foreignKeyName: "lounge_branch_bans_branch_id_fkey";
2777
+ foreignKeyName: "lounge_branch_sanctions_branch_id_fkey";
2778
2778
  columns: ["branch_id"];
2779
2779
  isOneToOne: false;
2780
2780
  referencedRelation: "lounge_branches";
2781
2781
  referencedColumns: ["id"];
2782
+ },
2783
+ {
2784
+ foreignKeyName: "lounge_branch_sanctions_lounge_id_fkey";
2785
+ columns: ["lounge_id"];
2786
+ isOneToOne: false;
2787
+ referencedRelation: "lounges";
2788
+ referencedColumns: ["id"];
2782
2789
  }
2783
2790
  ];
2784
2791
  };
@@ -2790,9 +2797,9 @@ export type Database = {
2790
2797
  deleted_at: string | null;
2791
2798
  email: string | null;
2792
2799
  id: string;
2800
+ lounge_id: string;
2793
2801
  name: string;
2794
2802
  phone: string;
2795
- user_id: string;
2796
2803
  };
2797
2804
  Insert: {
2798
2805
  address: Json;
@@ -2801,9 +2808,9 @@ export type Database = {
2801
2808
  deleted_at?: string | null;
2802
2809
  email?: string | null;
2803
2810
  id?: string;
2811
+ lounge_id?: string;
2804
2812
  name: string;
2805
2813
  phone: string;
2806
- user_id?: string;
2807
2814
  };
2808
2815
  Update: {
2809
2816
  address?: Json;
@@ -2812,11 +2819,19 @@ export type Database = {
2812
2819
  deleted_at?: string | null;
2813
2820
  email?: string | null;
2814
2821
  id?: string;
2822
+ lounge_id?: string;
2815
2823
  name?: string;
2816
2824
  phone?: string;
2817
- user_id?: string;
2818
2825
  };
2819
- Relationships: [];
2826
+ Relationships: [
2827
+ {
2828
+ foreignKeyName: "lounge_branches_lounge_id_fkey";
2829
+ columns: ["lounge_id"];
2830
+ isOneToOne: false;
2831
+ referencedRelation: "lounges";
2832
+ referencedColumns: ["id"];
2833
+ }
2834
+ ];
2820
2835
  };
2821
2836
  lounge_company_verification_attempts: {
2822
2837
  Row: {
@@ -2847,31 +2862,31 @@ export type Database = {
2847
2862
  };
2848
2863
  lounge_credits_transactions: {
2849
2864
  Row: {
2850
- amount: number;
2865
+ amount_cents: number;
2851
2866
  created_at: string;
2852
2867
  description: string;
2853
2868
  id: string;
2854
- lounge_id: string | null;
2869
+ lounge_id: string;
2855
2870
  metadata: Json | null;
2856
2871
  source_event_id: string | null;
2857
2872
  user_id: string | null;
2858
2873
  };
2859
2874
  Insert: {
2860
- amount: number;
2875
+ amount_cents: number;
2861
2876
  created_at?: string;
2862
2877
  description: string;
2863
2878
  id?: string;
2864
- lounge_id?: string | null;
2879
+ lounge_id?: string;
2865
2880
  metadata?: Json | null;
2866
2881
  source_event_id?: string | null;
2867
2882
  user_id?: string | null;
2868
2883
  };
2869
2884
  Update: {
2870
- amount?: number;
2885
+ amount_cents?: number;
2871
2886
  created_at?: string;
2872
2887
  description?: string;
2873
2888
  id?: string;
2874
- lounge_id?: string | null;
2889
+ lounge_id?: string;
2875
2890
  metadata?: Json | null;
2876
2891
  source_event_id?: string | null;
2877
2892
  user_id?: string | null;
@@ -2926,7 +2941,7 @@ export type Database = {
2926
2941
  };
2927
2942
  Relationships: [
2928
2943
  {
2929
- foreignKeyName: "lounge_bans_lounge_id_fkey";
2944
+ foreignKeyName: "lounge_sanctions_lounge_id_fkey";
2930
2945
  columns: ["lounge_id"];
2931
2946
  isOneToOne: false;
2932
2947
  referencedRelation: "lounges";
@@ -3136,7 +3151,7 @@ export type Database = {
3136
3151
  };
3137
3152
  player_credits_transactions: {
3138
3153
  Row: {
3139
- amount: number;
3154
+ amount_cents: number;
3140
3155
  created_at: string;
3141
3156
  description: string;
3142
3157
  id: string;
@@ -3146,7 +3161,7 @@ export type Database = {
3146
3161
  user_id: string | null;
3147
3162
  };
3148
3163
  Insert: {
3149
- amount: number;
3164
+ amount_cents: number;
3150
3165
  created_at?: string;
3151
3166
  description: string;
3152
3167
  id?: string;
@@ -3156,7 +3171,7 @@ export type Database = {
3156
3171
  user_id?: string | null;
3157
3172
  };
3158
3173
  Update: {
3159
- amount?: number;
3174
+ amount_cents?: number;
3160
3175
  created_at?: string;
3161
3176
  description?: string;
3162
3177
  id?: string;
@@ -3385,7 +3400,7 @@ export type Database = {
3385
3400
  };
3386
3401
  Relationships: [
3387
3402
  {
3388
- foreignKeyName: "compliance_player_minor_reps_non_platform_id_fkey";
3403
+ foreignKeyName: "player_minor_reps_non_platform_id_fkey";
3389
3404
  columns: ["non_platform_id"];
3390
3405
  isOneToOne: false;
3391
3406
  referencedRelation: "player_minor_rep_personal_details";
@@ -3417,7 +3432,7 @@ export type Database = {
3417
3432
  };
3418
3433
  Relationships: [
3419
3434
  {
3420
- foreignKeyName: "compliance_player_mobile_operating_systems_player_id_fkey";
3435
+ foreignKeyName: "player_mobile_operating_systems_player_id_fkey";
3421
3436
  columns: ["player_id"];
3422
3437
  isOneToOne: false;
3423
3438
  referencedRelation: "players";
@@ -3490,7 +3505,7 @@ export type Database = {
3490
3505
  };
3491
3506
  Relationships: [
3492
3507
  {
3493
- foreignKeyName: "player_bans_player_id_fkey";
3508
+ foreignKeyName: "player_sanctions_player_id_fkey";
3494
3509
  columns: ["player_id"];
3495
3510
  isOneToOne: false;
3496
3511
  referencedRelation: "players";
@@ -3558,7 +3573,7 @@ export type Database = {
3558
3573
  };
3559
3574
  Relationships: [
3560
3575
  {
3561
- foreignKeyName: "compliance_player_varsity_institutions_player_id_fkey";
3576
+ foreignKeyName: "player_varsity_institutions_player_id_fkey";
3562
3577
  columns: ["player_id"];
3563
3578
  isOneToOne: false;
3564
3579
  referencedRelation: "players";
@@ -4072,6 +4087,10 @@ export type Database = {
4072
4087
  };
4073
4088
  Returns: string;
4074
4089
  };
4090
+ current_player_id: {
4091
+ Args: never;
4092
+ Returns: string;
4093
+ };
4075
4094
  custom_access_token_hook: {
4076
4095
  Args: {
4077
4096
  event: Json;
@@ -4145,9 +4164,9 @@ export type Database = {
4145
4164
  deleted_at: string | null;
4146
4165
  email: string | null;
4147
4166
  id: string;
4167
+ lounge_id: string;
4148
4168
  name: string;
4149
4169
  phone: string;
4150
- user_id: string;
4151
4170
  }[];
4152
4171
  SetofOptions: {
4153
4172
  from: "*";
@@ -4170,6 +4189,10 @@ export type Database = {
4170
4189
  Args: never;
4171
4190
  Returns: string;
4172
4191
  };
4192
+ get_player_balances: {
4193
+ Args: never;
4194
+ Returns: Json;
4195
+ };
4173
4196
  get_player_ids: {
4174
4197
  Args: {
4175
4198
  search?: string;
@@ -4610,7 +4633,7 @@ export type Database = {
4610
4633
  };
4611
4634
  Relationships: [
4612
4635
  {
4613
- foreignKeyName: "compliance_players_nationality_fkey";
4636
+ foreignKeyName: "players_nationality_fkey";
4614
4637
  columns: ["nationality"];
4615
4638
  isOneToOne: false;
4616
4639
  referencedRelation: "countries";
@@ -4657,218 +4680,974 @@ export type Database = {
4657
4680
  [_ in never]: never;
4658
4681
  };
4659
4682
  };
4660
- storage: {
4683
+ sessions: {
4661
4684
  Tables: {
4662
- buckets: {
4685
+ lounge_branch_eatery_categories: {
4663
4686
  Row: {
4664
- allowed_mime_types: string[] | null;
4665
- avif_autodetection: boolean | null;
4666
- created_at: string | null;
4667
- file_size_limit: number | null;
4687
+ created_at: string;
4668
4688
  id: string;
4689
+ lounge_branch_id: string;
4669
4690
  name: string;
4670
- owner: string | null;
4671
- owner_id: string | null;
4672
- public: boolean | null;
4673
- type: Database["storage"]["Enums"]["buckettype"];
4674
- updated_at: string | null;
4691
+ sort_order: number;
4692
+ updated_at: string;
4675
4693
  };
4676
4694
  Insert: {
4677
- allowed_mime_types?: string[] | null;
4678
- avif_autodetection?: boolean | null;
4679
- created_at?: string | null;
4680
- file_size_limit?: number | null;
4681
- id: string;
4695
+ created_at?: string;
4696
+ id?: string;
4697
+ lounge_branch_id: string;
4682
4698
  name: string;
4683
- owner?: string | null;
4684
- owner_id?: string | null;
4685
- public?: boolean | null;
4686
- type?: Database["storage"]["Enums"]["buckettype"];
4687
- updated_at?: string | null;
4699
+ sort_order?: number;
4700
+ updated_at?: string;
4688
4701
  };
4689
4702
  Update: {
4690
- allowed_mime_types?: string[] | null;
4691
- avif_autodetection?: boolean | null;
4692
- created_at?: string | null;
4693
- file_size_limit?: number | null;
4703
+ created_at?: string;
4694
4704
  id?: string;
4705
+ lounge_branch_id?: string;
4695
4706
  name?: string;
4696
- owner?: string | null;
4697
- owner_id?: string | null;
4698
- public?: boolean | null;
4699
- type?: Database["storage"]["Enums"]["buckettype"];
4700
- updated_at?: string | null;
4707
+ sort_order?: number;
4708
+ updated_at?: string;
4701
4709
  };
4702
4710
  Relationships: [];
4703
4711
  };
4704
- buckets_analytics: {
4712
+ lounge_branch_eatery_items: {
4705
4713
  Row: {
4714
+ category_id: string | null;
4706
4715
  created_at: string;
4707
- deleted_at: string | null;
4708
- format: string;
4709
4716
  id: string;
4717
+ lounge_branch_id: string;
4710
4718
  name: string;
4711
- type: Database["storage"]["Enums"]["buckettype"];
4719
+ options: Json | null;
4712
4720
  updated_at: string;
4713
4721
  };
4714
4722
  Insert: {
4723
+ category_id?: string | null;
4715
4724
  created_at?: string;
4716
- deleted_at?: string | null;
4717
- format?: string;
4718
4725
  id?: string;
4726
+ lounge_branch_id: string;
4719
4727
  name: string;
4720
- type?: Database["storage"]["Enums"]["buckettype"];
4728
+ options?: Json | null;
4721
4729
  updated_at?: string;
4722
4730
  };
4723
4731
  Update: {
4732
+ category_id?: string | null;
4724
4733
  created_at?: string;
4725
- deleted_at?: string | null;
4726
- format?: string;
4727
4734
  id?: string;
4735
+ lounge_branch_id?: string;
4728
4736
  name?: string;
4729
- type?: Database["storage"]["Enums"]["buckettype"];
4737
+ options?: Json | null;
4730
4738
  updated_at?: string;
4731
4739
  };
4740
+ Relationships: [
4741
+ {
4742
+ foreignKeyName: "lounge_branch_eatery_items_category_id_fkey";
4743
+ columns: ["category_id"];
4744
+ isOneToOne: false;
4745
+ referencedRelation: "lounge_branch_eatery_categories";
4746
+ referencedColumns: ["id"];
4747
+ }
4748
+ ];
4749
+ };
4750
+ lounge_branch_games_consoles: {
4751
+ Row: {
4752
+ created_at: string;
4753
+ games_consoles_id: string;
4754
+ id: string;
4755
+ lounge_branch_id: string;
4756
+ };
4757
+ Insert: {
4758
+ created_at?: string;
4759
+ games_consoles_id: string;
4760
+ id?: string;
4761
+ lounge_branch_id: string;
4762
+ };
4763
+ Update: {
4764
+ created_at?: string;
4765
+ games_consoles_id?: string;
4766
+ id?: string;
4767
+ lounge_branch_id?: string;
4768
+ };
4732
4769
  Relationships: [];
4733
4770
  };
4734
- buckets_vectors: {
4771
+ lounge_branch_luggage_slots: {
4735
4772
  Row: {
4736
4773
  created_at: string;
4737
4774
  id: string;
4738
- type: Database["storage"]["Enums"]["buckettype"];
4775
+ in_use: boolean;
4776
+ lounge_branch_id: string;
4777
+ slot_label: string;
4778
+ };
4779
+ Insert: {
4780
+ created_at?: string;
4781
+ id?: string;
4782
+ in_use?: boolean;
4783
+ lounge_branch_id: string;
4784
+ slot_label: string;
4785
+ };
4786
+ Update: {
4787
+ created_at?: string;
4788
+ id?: string;
4789
+ in_use?: boolean;
4790
+ lounge_branch_id?: string;
4791
+ slot_label?: string;
4792
+ };
4793
+ Relationships: [];
4794
+ };
4795
+ lounge_branch_open_status: {
4796
+ Row: {
4797
+ closed_at: string | null;
4798
+ created_at: string;
4799
+ is_open: boolean;
4800
+ lounge_branch_id: string;
4801
+ opened_at: string | null;
4739
4802
  updated_at: string;
4803
+ updated_by: string | null;
4740
4804
  };
4741
4805
  Insert: {
4806
+ closed_at?: string | null;
4742
4807
  created_at?: string;
4743
- id: string;
4744
- type?: Database["storage"]["Enums"]["buckettype"];
4808
+ is_open: boolean;
4809
+ lounge_branch_id: string;
4810
+ opened_at?: string | null;
4745
4811
  updated_at?: string;
4812
+ updated_by?: string | null;
4746
4813
  };
4747
4814
  Update: {
4815
+ closed_at?: string | null;
4748
4816
  created_at?: string;
4749
- id?: string;
4750
- type?: Database["storage"]["Enums"]["buckettype"];
4817
+ is_open?: boolean;
4818
+ lounge_branch_id?: string;
4819
+ opened_at?: string | null;
4751
4820
  updated_at?: string;
4821
+ updated_by?: string | null;
4752
4822
  };
4753
4823
  Relationships: [];
4754
4824
  };
4755
- iceberg_namespaces: {
4825
+ lounge_branch_opening_times: {
4756
4826
  Row: {
4757
- bucket_name: string;
4758
- catalog_id: string;
4759
4827
  created_at: string;
4828
+ day_of_week: number;
4829
+ end_time: string;
4760
4830
  id: string;
4761
- metadata: Json;
4762
- name: string;
4831
+ lounge_branch_id: string;
4832
+ start_time: string;
4833
+ };
4834
+ Insert: {
4835
+ created_at?: string;
4836
+ day_of_week: number;
4837
+ end_time: string;
4838
+ id?: string;
4839
+ lounge_branch_id: string;
4840
+ start_time: string;
4841
+ };
4842
+ Update: {
4843
+ created_at?: string;
4844
+ day_of_week?: number;
4845
+ end_time?: string;
4846
+ id?: string;
4847
+ lounge_branch_id?: string;
4848
+ start_time?: string;
4849
+ };
4850
+ Relationships: [];
4851
+ };
4852
+ lounge_branch_payment_display: {
4853
+ Row: {
4854
+ created_at: string;
4855
+ details: Json | null;
4856
+ id: string;
4857
+ lounge_branch_id: string;
4858
+ name: string | null;
4763
4859
  updated_at: string;
4764
4860
  };
4765
4861
  Insert: {
4766
- bucket_name: string;
4767
- catalog_id: string;
4768
4862
  created_at?: string;
4863
+ details?: Json | null;
4769
4864
  id?: string;
4770
- metadata?: Json;
4771
- name: string;
4865
+ lounge_branch_id: string;
4866
+ name?: string | null;
4772
4867
  updated_at?: string;
4773
4868
  };
4774
4869
  Update: {
4775
- bucket_name?: string;
4776
- catalog_id?: string;
4777
4870
  created_at?: string;
4871
+ details?: Json | null;
4778
4872
  id?: string;
4779
- metadata?: Json;
4780
- name?: string;
4873
+ lounge_branch_id?: string;
4874
+ name?: string | null;
4781
4875
  updated_at?: string;
4782
4876
  };
4877
+ Relationships: [];
4878
+ };
4879
+ lounge_branch_session_discount_targets: {
4880
+ Row: {
4881
+ console_id: string | null;
4882
+ created_at: string;
4883
+ discount_id: string;
4884
+ games_consoles_id: string | null;
4885
+ genres: string[] | null;
4886
+ id: string;
4887
+ include_non_regulars: boolean;
4888
+ include_regulars: boolean;
4889
+ };
4890
+ Insert: {
4891
+ console_id?: string | null;
4892
+ created_at?: string;
4893
+ discount_id: string;
4894
+ games_consoles_id?: string | null;
4895
+ genres?: string[] | null;
4896
+ id?: string;
4897
+ include_non_regulars?: boolean;
4898
+ include_regulars?: boolean;
4899
+ };
4900
+ Update: {
4901
+ console_id?: string | null;
4902
+ created_at?: string;
4903
+ discount_id?: string;
4904
+ games_consoles_id?: string | null;
4905
+ genres?: string[] | null;
4906
+ id?: string;
4907
+ include_non_regulars?: boolean;
4908
+ include_regulars?: boolean;
4909
+ };
4783
4910
  Relationships: [
4784
4911
  {
4785
- foreignKeyName: "iceberg_namespaces_catalog_id_fkey";
4786
- columns: ["catalog_id"];
4912
+ foreignKeyName: "lounge_branch_session_discount_targets_discount_id_fkey";
4913
+ columns: ["discount_id"];
4787
4914
  isOneToOne: false;
4788
- referencedRelation: "buckets_analytics";
4915
+ referencedRelation: "lounge_branch_session_discounts";
4789
4916
  referencedColumns: ["id"];
4790
4917
  }
4791
4918
  ];
4792
4919
  };
4793
- iceberg_tables: {
4920
+ lounge_branch_session_discounts: {
4794
4921
  Row: {
4795
- bucket_name: string;
4796
- catalog_id: string;
4797
4922
  created_at: string;
4923
+ discount_type: Database["sessions"]["Enums"]["session_discount_type"];
4798
4924
  id: string;
4799
- location: string;
4800
- name: string;
4801
- namespace_id: string;
4802
- remote_table_id: string | null;
4803
- shard_id: string | null;
4804
- shard_key: string | null;
4925
+ incremental_discount_percentage: number | null;
4926
+ maximum_discount_percentage: number | null;
4927
+ option_id: string;
4805
4928
  updated_at: string;
4929
+ valid_from: string | null;
4930
+ valid_until: string | null;
4931
+ value: number | null;
4806
4932
  };
4807
4933
  Insert: {
4808
- bucket_name: string;
4809
- catalog_id: string;
4810
4934
  created_at?: string;
4935
+ discount_type: Database["sessions"]["Enums"]["session_discount_type"];
4811
4936
  id?: string;
4812
- location: string;
4813
- name: string;
4814
- namespace_id: string;
4815
- remote_table_id?: string | null;
4816
- shard_id?: string | null;
4817
- shard_key?: string | null;
4937
+ incremental_discount_percentage?: number | null;
4938
+ maximum_discount_percentage?: number | null;
4939
+ option_id: string;
4818
4940
  updated_at?: string;
4941
+ valid_from?: string | null;
4942
+ valid_until?: string | null;
4943
+ value?: number | null;
4819
4944
  };
4820
4945
  Update: {
4821
- bucket_name?: string;
4822
- catalog_id?: string;
4823
4946
  created_at?: string;
4947
+ discount_type?: Database["sessions"]["Enums"]["session_discount_type"];
4824
4948
  id?: string;
4825
- location?: string;
4826
- name?: string;
4827
- namespace_id?: string;
4828
- remote_table_id?: string | null;
4829
- shard_id?: string | null;
4830
- shard_key?: string | null;
4949
+ incremental_discount_percentage?: number | null;
4950
+ maximum_discount_percentage?: number | null;
4951
+ option_id?: string;
4831
4952
  updated_at?: string;
4953
+ valid_from?: string | null;
4954
+ valid_until?: string | null;
4955
+ value?: number | null;
4832
4956
  };
4833
4957
  Relationships: [
4834
4958
  {
4835
- foreignKeyName: "iceberg_tables_catalog_id_fkey";
4836
- columns: ["catalog_id"];
4837
- isOneToOne: false;
4838
- referencedRelation: "buckets_analytics";
4839
- referencedColumns: ["id"];
4840
- },
4841
- {
4842
- foreignKeyName: "iceberg_tables_namespace_id_fkey";
4843
- columns: ["namespace_id"];
4959
+ foreignKeyName: "lounge_branch_session_discounts_option_id_fkey";
4960
+ columns: ["option_id"];
4844
4961
  isOneToOne: false;
4845
- referencedRelation: "iceberg_namespaces";
4962
+ referencedRelation: "lounge_branch_session_options";
4846
4963
  referencedColumns: ["id"];
4847
4964
  }
4848
4965
  ];
4849
4966
  };
4850
- migrations: {
4967
+ lounge_branch_session_options: {
4851
4968
  Row: {
4852
- executed_at: string | null;
4853
- hash: string;
4854
- id: number;
4855
- name: string;
4969
+ amount_cents: number;
4970
+ created_at: string;
4971
+ games_consoles_id: string | null;
4972
+ id: string;
4973
+ lounge_branch_id: string;
4974
+ minimum_billing_minutes: number | null;
4975
+ pricing_type: Database["sessions"]["Enums"]["session_pricing_type"];
4976
+ unit_label: string | null;
4977
+ updated_at: string;
4856
4978
  };
4857
4979
  Insert: {
4858
- executed_at?: string | null;
4859
- hash: string;
4860
- id: number;
4861
- name: string;
4980
+ amount_cents: number;
4981
+ created_at?: string;
4982
+ games_consoles_id?: string | null;
4983
+ id?: string;
4984
+ lounge_branch_id: string;
4985
+ minimum_billing_minutes?: number | null;
4986
+ pricing_type: Database["sessions"]["Enums"]["session_pricing_type"];
4987
+ unit_label?: string | null;
4988
+ updated_at?: string;
4862
4989
  };
4863
4990
  Update: {
4864
- executed_at?: string | null;
4865
- hash?: string;
4866
- id?: number;
4867
- name?: string;
4991
+ amount_cents?: number;
4992
+ created_at?: string;
4993
+ games_consoles_id?: string | null;
4994
+ id?: string;
4995
+ lounge_branch_id?: string;
4996
+ minimum_billing_minutes?: number | null;
4997
+ pricing_type?: Database["sessions"]["Enums"]["session_pricing_type"];
4998
+ unit_label?: string | null;
4999
+ updated_at?: string;
4868
5000
  };
4869
- Relationships: [];
5001
+ Relationships: [
5002
+ {
5003
+ foreignKeyName: "lounge_branch_session_options_games_consoles_id_fkey";
5004
+ columns: ["games_consoles_id"];
5005
+ isOneToOne: false;
5006
+ referencedRelation: "lounge_branch_games_consoles";
5007
+ referencedColumns: ["id"];
5008
+ }
5009
+ ];
4870
5010
  };
4871
- objects: {
5011
+ lounge_branch_stations: {
5012
+ Row: {
5013
+ capacity: number;
5014
+ console_id: string;
5015
+ created_at: string;
5016
+ id: string;
5017
+ lounge_branch_id: string;
5018
+ name: string;
5019
+ number: string;
5020
+ online_play: boolean | null;
5021
+ special_controllers: string | null;
5022
+ status: Database["sessions"]["Enums"]["lounge_branch_station_status"];
5023
+ updated_at: string;
5024
+ updated_by: string | null;
5025
+ };
5026
+ Insert: {
5027
+ capacity: number;
5028
+ console_id: string;
5029
+ created_at?: string;
5030
+ id?: string;
5031
+ lounge_branch_id: string;
5032
+ name: string;
5033
+ number: string;
5034
+ online_play?: boolean | null;
5035
+ special_controllers?: string | null;
5036
+ status?: Database["sessions"]["Enums"]["lounge_branch_station_status"];
5037
+ updated_at?: string;
5038
+ updated_by?: string | null;
5039
+ };
5040
+ Update: {
5041
+ capacity?: number;
5042
+ console_id?: string;
5043
+ created_at?: string;
5044
+ id?: string;
5045
+ lounge_branch_id?: string;
5046
+ name?: string;
5047
+ number?: string;
5048
+ online_play?: boolean | null;
5049
+ special_controllers?: string | null;
5050
+ status?: Database["sessions"]["Enums"]["lounge_branch_station_status"];
5051
+ updated_at?: string;
5052
+ updated_by?: string | null;
5053
+ };
5054
+ Relationships: [];
5055
+ };
5056
+ player_session_assistance_requests: {
5057
+ Row: {
5058
+ acknowledged_at: string | null;
5059
+ acknowledged_by: string | null;
5060
+ created_at: string;
5061
+ id: string;
5062
+ requested_at: string;
5063
+ requested_by: string;
5064
+ session_id: string;
5065
+ };
5066
+ Insert: {
5067
+ acknowledged_at?: string | null;
5068
+ acknowledged_by?: string | null;
5069
+ created_at?: string;
5070
+ id?: string;
5071
+ requested_at?: string;
5072
+ requested_by: string;
5073
+ session_id: string;
5074
+ };
5075
+ Update: {
5076
+ acknowledged_at?: string | null;
5077
+ acknowledged_by?: string | null;
5078
+ created_at?: string;
5079
+ id?: string;
5080
+ requested_at?: string;
5081
+ requested_by?: string;
5082
+ session_id?: string;
5083
+ };
5084
+ Relationships: [
5085
+ {
5086
+ foreignKeyName: "player_session_assistance_requests_session_id_fkey";
5087
+ columns: ["session_id"];
5088
+ isOneToOne: false;
5089
+ referencedRelation: "player_sessions";
5090
+ referencedColumns: ["id"];
5091
+ }
5092
+ ];
5093
+ };
5094
+ player_session_billing: {
5095
+ Row: {
5096
+ created_at: string;
5097
+ discount_id: string | null;
5098
+ id: string;
5099
+ option_id: string;
5100
+ session_id: string;
5101
+ units: number | null;
5102
+ };
5103
+ Insert: {
5104
+ created_at?: string;
5105
+ discount_id?: string | null;
5106
+ id?: string;
5107
+ option_id: string;
5108
+ session_id: string;
5109
+ units?: number | null;
5110
+ };
5111
+ Update: {
5112
+ created_at?: string;
5113
+ discount_id?: string | null;
5114
+ id?: string;
5115
+ option_id?: string;
5116
+ session_id?: string;
5117
+ units?: number | null;
5118
+ };
5119
+ Relationships: [
5120
+ {
5121
+ foreignKeyName: "player_session_billing_discount_id_fkey";
5122
+ columns: ["discount_id"];
5123
+ isOneToOne: false;
5124
+ referencedRelation: "lounge_branch_session_discounts";
5125
+ referencedColumns: ["id"];
5126
+ },
5127
+ {
5128
+ foreignKeyName: "player_session_billing_option_id_fkey";
5129
+ columns: ["option_id"];
5130
+ isOneToOne: false;
5131
+ referencedRelation: "lounge_branch_session_options";
5132
+ referencedColumns: ["id"];
5133
+ },
5134
+ {
5135
+ foreignKeyName: "player_session_billing_session_id_fkey";
5136
+ columns: ["session_id"];
5137
+ isOneToOne: false;
5138
+ referencedRelation: "player_sessions";
5139
+ referencedColumns: ["id"];
5140
+ }
5141
+ ];
5142
+ };
5143
+ player_session_complaints: {
5144
+ Row: {
5145
+ complaint_type: Database["sessions"]["Enums"]["session_complaint_type"];
5146
+ created_at: string;
5147
+ id: string;
5148
+ message: string;
5149
+ player_id: string;
5150
+ subject: string;
5151
+ target_lounge_branch_id: string | null;
5152
+ target_lounge_id: string | null;
5153
+ target_session_id: string | null;
5154
+ user_id: string | null;
5155
+ };
5156
+ Insert: {
5157
+ complaint_type: Database["sessions"]["Enums"]["session_complaint_type"];
5158
+ created_at?: string;
5159
+ id?: string;
5160
+ message: string;
5161
+ player_id: string;
5162
+ subject: string;
5163
+ target_lounge_branch_id?: string | null;
5164
+ target_lounge_id?: string | null;
5165
+ target_session_id?: string | null;
5166
+ user_id?: string | null;
5167
+ };
5168
+ Update: {
5169
+ complaint_type?: Database["sessions"]["Enums"]["session_complaint_type"];
5170
+ created_at?: string;
5171
+ id?: string;
5172
+ message?: string;
5173
+ player_id?: string;
5174
+ subject?: string;
5175
+ target_lounge_branch_id?: string | null;
5176
+ target_lounge_id?: string | null;
5177
+ target_session_id?: string | null;
5178
+ user_id?: string | null;
5179
+ };
5180
+ Relationships: [
5181
+ {
5182
+ foreignKeyName: "player_session_complaints_target_session_id_fkey";
5183
+ columns: ["target_session_id"];
5184
+ isOneToOne: false;
5185
+ referencedRelation: "player_sessions";
5186
+ referencedColumns: ["id"];
5187
+ }
5188
+ ];
5189
+ };
5190
+ player_session_eatery_order_items: {
5191
+ Row: {
5192
+ created_at: string;
5193
+ id: string;
5194
+ item_id: string | null;
5195
+ item_snapshot: Json | null;
5196
+ order_id: string;
5197
+ quantity: number;
5198
+ unit_price_cents: number;
5199
+ };
5200
+ Insert: {
5201
+ created_at?: string;
5202
+ id?: string;
5203
+ item_id?: string | null;
5204
+ item_snapshot?: Json | null;
5205
+ order_id: string;
5206
+ quantity: number;
5207
+ unit_price_cents: number;
5208
+ };
5209
+ Update: {
5210
+ created_at?: string;
5211
+ id?: string;
5212
+ item_id?: string | null;
5213
+ item_snapshot?: Json | null;
5214
+ order_id?: string;
5215
+ quantity?: number;
5216
+ unit_price_cents?: number;
5217
+ };
5218
+ Relationships: [
5219
+ {
5220
+ foreignKeyName: "player_session_eatery_order_items_item_id_fkey";
5221
+ columns: ["item_id"];
5222
+ isOneToOne: false;
5223
+ referencedRelation: "lounge_branch_eatery_items";
5224
+ referencedColumns: ["id"];
5225
+ },
5226
+ {
5227
+ foreignKeyName: "player_session_eatery_order_items_order_id_fkey";
5228
+ columns: ["order_id"];
5229
+ isOneToOne: false;
5230
+ referencedRelation: "player_session_eatery_orders";
5231
+ referencedColumns: ["id"];
5232
+ }
5233
+ ];
5234
+ };
5235
+ player_session_eatery_orders: {
5236
+ Row: {
5237
+ cancellation_reason: string | null;
5238
+ created_at: string;
5239
+ id: string;
5240
+ session_id: string;
5241
+ status: string;
5242
+ updated_at: string;
5243
+ };
5244
+ Insert: {
5245
+ cancellation_reason?: string | null;
5246
+ created_at?: string;
5247
+ id?: string;
5248
+ session_id: string;
5249
+ status?: string;
5250
+ updated_at?: string;
5251
+ };
5252
+ Update: {
5253
+ cancellation_reason?: string | null;
5254
+ created_at?: string;
5255
+ id?: string;
5256
+ session_id?: string;
5257
+ status?: string;
5258
+ updated_at?: string;
5259
+ };
5260
+ Relationships: [
5261
+ {
5262
+ foreignKeyName: "player_session_eatery_orders_session_id_fkey";
5263
+ columns: ["session_id"];
5264
+ isOneToOne: false;
5265
+ referencedRelation: "player_sessions";
5266
+ referencedColumns: ["id"];
5267
+ }
5268
+ ];
5269
+ };
5270
+ player_session_members: {
5271
+ Row: {
5272
+ created_at: string;
5273
+ id: string;
5274
+ joined_at: string;
5275
+ left_at: string | null;
5276
+ player_id: string;
5277
+ role: string;
5278
+ session_id: string;
5279
+ status: Database["sessions"]["Enums"]["session_member_status"];
5280
+ updated_at: string;
5281
+ user_id: string | null;
5282
+ };
5283
+ Insert: {
5284
+ created_at?: string;
5285
+ id?: string;
5286
+ joined_at?: string;
5287
+ left_at?: string | null;
5288
+ player_id: string;
5289
+ role: string;
5290
+ session_id: string;
5291
+ status?: Database["sessions"]["Enums"]["session_member_status"];
5292
+ updated_at?: string;
5293
+ user_id?: string | null;
5294
+ };
5295
+ Update: {
5296
+ created_at?: string;
5297
+ id?: string;
5298
+ joined_at?: string;
5299
+ left_at?: string | null;
5300
+ player_id?: string;
5301
+ role?: string;
5302
+ session_id?: string;
5303
+ status?: Database["sessions"]["Enums"]["session_member_status"];
5304
+ updated_at?: string;
5305
+ user_id?: string | null;
5306
+ };
5307
+ Relationships: [
5308
+ {
5309
+ foreignKeyName: "player_session_members_session_id_fkey";
5310
+ columns: ["session_id"];
5311
+ isOneToOne: false;
5312
+ referencedRelation: "player_sessions";
5313
+ referencedColumns: ["id"];
5314
+ }
5315
+ ];
5316
+ };
5317
+ player_sessions: {
5318
+ Row: {
5319
+ checkout_requested_at: string | null;
5320
+ created_at: string;
5321
+ ended_at: string | null;
5322
+ games_consoles_id: string;
5323
+ id: string;
5324
+ is_reservation: boolean;
5325
+ lounge_branch_id: string;
5326
+ luggage_slot_id: string | null;
5327
+ minor_representative_consent_verified_at: string | null;
5328
+ player_id: string;
5329
+ requested_games_consoles_id: string | null;
5330
+ requested_station_id: string | null;
5331
+ reservation_requested_at: string | null;
5332
+ started_at: string | null;
5333
+ station_id: string;
5334
+ status: Database["sessions"]["Enums"]["session_status"];
5335
+ updated_at: string;
5336
+ user_id: string | null;
5337
+ };
5338
+ Insert: {
5339
+ checkout_requested_at?: string | null;
5340
+ created_at?: string;
5341
+ ended_at?: string | null;
5342
+ games_consoles_id: string;
5343
+ id?: string;
5344
+ is_reservation?: boolean;
5345
+ lounge_branch_id: string;
5346
+ luggage_slot_id?: string | null;
5347
+ minor_representative_consent_verified_at?: string | null;
5348
+ player_id: string;
5349
+ requested_games_consoles_id?: string | null;
5350
+ requested_station_id?: string | null;
5351
+ reservation_requested_at?: string | null;
5352
+ started_at?: string | null;
5353
+ station_id: string;
5354
+ status: Database["sessions"]["Enums"]["session_status"];
5355
+ updated_at?: string;
5356
+ user_id?: string | null;
5357
+ };
5358
+ Update: {
5359
+ checkout_requested_at?: string | null;
5360
+ created_at?: string;
5361
+ ended_at?: string | null;
5362
+ games_consoles_id?: string;
5363
+ id?: string;
5364
+ is_reservation?: boolean;
5365
+ lounge_branch_id?: string;
5366
+ luggage_slot_id?: string | null;
5367
+ minor_representative_consent_verified_at?: string | null;
5368
+ player_id?: string;
5369
+ requested_games_consoles_id?: string | null;
5370
+ requested_station_id?: string | null;
5371
+ reservation_requested_at?: string | null;
5372
+ started_at?: string | null;
5373
+ station_id?: string;
5374
+ status?: Database["sessions"]["Enums"]["session_status"];
5375
+ updated_at?: string;
5376
+ user_id?: string | null;
5377
+ };
5378
+ Relationships: [
5379
+ {
5380
+ foreignKeyName: "player_sessions_lounge_branch_id_station_id_fkey";
5381
+ columns: ["lounge_branch_id", "station_id"];
5382
+ isOneToOne: false;
5383
+ referencedRelation: "lounge_branch_stations";
5384
+ referencedColumns: ["lounge_branch_id", "id"];
5385
+ },
5386
+ {
5387
+ foreignKeyName: "player_sessions_luggage_slot_id_fkey";
5388
+ columns: ["luggage_slot_id"];
5389
+ isOneToOne: false;
5390
+ referencedRelation: "lounge_branch_luggage_slots";
5391
+ referencedColumns: ["id"];
5392
+ },
5393
+ {
5394
+ foreignKeyName: "player_sessions_requested_station_id_fkey";
5395
+ columns: ["requested_station_id"];
5396
+ isOneToOne: false;
5397
+ referencedRelation: "lounge_branch_stations";
5398
+ referencedColumns: ["id"];
5399
+ },
5400
+ {
5401
+ foreignKeyName: "player_sessions_station_id_fkey";
5402
+ columns: ["station_id"];
5403
+ isOneToOne: false;
5404
+ referencedRelation: "lounge_branch_stations";
5405
+ referencedColumns: ["id"];
5406
+ }
5407
+ ];
5408
+ };
5409
+ };
5410
+ Views: {
5411
+ [_ in never]: never;
5412
+ };
5413
+ Functions: {
5414
+ is_active_session_member: {
5415
+ Args: {
5416
+ p_session_id: string;
5417
+ };
5418
+ Returns: boolean;
5419
+ };
5420
+ is_session_owner: {
5421
+ Args: {
5422
+ p_session_id: string;
5423
+ };
5424
+ Returns: boolean;
5425
+ };
5426
+ };
5427
+ Enums: {
5428
+ lounge_branch_station_status: "available" | "occupied";
5429
+ session_complaint_type: "session" | "lounge_branch";
5430
+ session_discount_type: "regular" | "incremental_time";
5431
+ session_member_status: "pending" | "active" | "left";
5432
+ session_pricing_type: "time" | "unit";
5433
+ session_status: "pending" | "active" | "change_requested" | "checking_out" | "ended" | "cancelled";
5434
+ };
5435
+ CompositeTypes: {
5436
+ [_ in never]: never;
5437
+ };
5438
+ };
5439
+ storage: {
5440
+ Tables: {
5441
+ buckets: {
5442
+ Row: {
5443
+ allowed_mime_types: string[] | null;
5444
+ avif_autodetection: boolean | null;
5445
+ created_at: string | null;
5446
+ file_size_limit: number | null;
5447
+ id: string;
5448
+ name: string;
5449
+ owner: string | null;
5450
+ owner_id: string | null;
5451
+ public: boolean | null;
5452
+ type: Database["storage"]["Enums"]["buckettype"];
5453
+ updated_at: string | null;
5454
+ };
5455
+ Insert: {
5456
+ allowed_mime_types?: string[] | null;
5457
+ avif_autodetection?: boolean | null;
5458
+ created_at?: string | null;
5459
+ file_size_limit?: number | null;
5460
+ id: string;
5461
+ name: string;
5462
+ owner?: string | null;
5463
+ owner_id?: string | null;
5464
+ public?: boolean | null;
5465
+ type?: Database["storage"]["Enums"]["buckettype"];
5466
+ updated_at?: string | null;
5467
+ };
5468
+ Update: {
5469
+ allowed_mime_types?: string[] | null;
5470
+ avif_autodetection?: boolean | null;
5471
+ created_at?: string | null;
5472
+ file_size_limit?: number | null;
5473
+ id?: string;
5474
+ name?: string;
5475
+ owner?: string | null;
5476
+ owner_id?: string | null;
5477
+ public?: boolean | null;
5478
+ type?: Database["storage"]["Enums"]["buckettype"];
5479
+ updated_at?: string | null;
5480
+ };
5481
+ Relationships: [];
5482
+ };
5483
+ buckets_analytics: {
5484
+ Row: {
5485
+ created_at: string;
5486
+ deleted_at: string | null;
5487
+ format: string;
5488
+ id: string;
5489
+ name: string;
5490
+ type: Database["storage"]["Enums"]["buckettype"];
5491
+ updated_at: string;
5492
+ };
5493
+ Insert: {
5494
+ created_at?: string;
5495
+ deleted_at?: string | null;
5496
+ format?: string;
5497
+ id?: string;
5498
+ name: string;
5499
+ type?: Database["storage"]["Enums"]["buckettype"];
5500
+ updated_at?: string;
5501
+ };
5502
+ Update: {
5503
+ created_at?: string;
5504
+ deleted_at?: string | null;
5505
+ format?: string;
5506
+ id?: string;
5507
+ name?: string;
5508
+ type?: Database["storage"]["Enums"]["buckettype"];
5509
+ updated_at?: string;
5510
+ };
5511
+ Relationships: [];
5512
+ };
5513
+ buckets_vectors: {
5514
+ Row: {
5515
+ created_at: string;
5516
+ id: string;
5517
+ type: Database["storage"]["Enums"]["buckettype"];
5518
+ updated_at: string;
5519
+ };
5520
+ Insert: {
5521
+ created_at?: string;
5522
+ id: string;
5523
+ type?: Database["storage"]["Enums"]["buckettype"];
5524
+ updated_at?: string;
5525
+ };
5526
+ Update: {
5527
+ created_at?: string;
5528
+ id?: string;
5529
+ type?: Database["storage"]["Enums"]["buckettype"];
5530
+ updated_at?: string;
5531
+ };
5532
+ Relationships: [];
5533
+ };
5534
+ iceberg_namespaces: {
5535
+ Row: {
5536
+ bucket_name: string;
5537
+ catalog_id: string;
5538
+ created_at: string;
5539
+ id: string;
5540
+ metadata: Json;
5541
+ name: string;
5542
+ updated_at: string;
5543
+ };
5544
+ Insert: {
5545
+ bucket_name: string;
5546
+ catalog_id: string;
5547
+ created_at?: string;
5548
+ id?: string;
5549
+ metadata?: Json;
5550
+ name: string;
5551
+ updated_at?: string;
5552
+ };
5553
+ Update: {
5554
+ bucket_name?: string;
5555
+ catalog_id?: string;
5556
+ created_at?: string;
5557
+ id?: string;
5558
+ metadata?: Json;
5559
+ name?: string;
5560
+ updated_at?: string;
5561
+ };
5562
+ Relationships: [
5563
+ {
5564
+ foreignKeyName: "iceberg_namespaces_catalog_id_fkey";
5565
+ columns: ["catalog_id"];
5566
+ isOneToOne: false;
5567
+ referencedRelation: "buckets_analytics";
5568
+ referencedColumns: ["id"];
5569
+ }
5570
+ ];
5571
+ };
5572
+ iceberg_tables: {
5573
+ Row: {
5574
+ bucket_name: string;
5575
+ catalog_id: string;
5576
+ created_at: string;
5577
+ id: string;
5578
+ location: string;
5579
+ name: string;
5580
+ namespace_id: string;
5581
+ remote_table_id: string | null;
5582
+ shard_id: string | null;
5583
+ shard_key: string | null;
5584
+ updated_at: string;
5585
+ };
5586
+ Insert: {
5587
+ bucket_name: string;
5588
+ catalog_id: string;
5589
+ created_at?: string;
5590
+ id?: string;
5591
+ location: string;
5592
+ name: string;
5593
+ namespace_id: string;
5594
+ remote_table_id?: string | null;
5595
+ shard_id?: string | null;
5596
+ shard_key?: string | null;
5597
+ updated_at?: string;
5598
+ };
5599
+ Update: {
5600
+ bucket_name?: string;
5601
+ catalog_id?: string;
5602
+ created_at?: string;
5603
+ id?: string;
5604
+ location?: string;
5605
+ name?: string;
5606
+ namespace_id?: string;
5607
+ remote_table_id?: string | null;
5608
+ shard_id?: string | null;
5609
+ shard_key?: string | null;
5610
+ updated_at?: string;
5611
+ };
5612
+ Relationships: [
5613
+ {
5614
+ foreignKeyName: "iceberg_tables_catalog_id_fkey";
5615
+ columns: ["catalog_id"];
5616
+ isOneToOne: false;
5617
+ referencedRelation: "buckets_analytics";
5618
+ referencedColumns: ["id"];
5619
+ },
5620
+ {
5621
+ foreignKeyName: "iceberg_tables_namespace_id_fkey";
5622
+ columns: ["namespace_id"];
5623
+ isOneToOne: false;
5624
+ referencedRelation: "iceberg_namespaces";
5625
+ referencedColumns: ["id"];
5626
+ }
5627
+ ];
5628
+ };
5629
+ migrations: {
5630
+ Row: {
5631
+ executed_at: string | null;
5632
+ hash: string;
5633
+ id: number;
5634
+ name: string;
5635
+ };
5636
+ Insert: {
5637
+ executed_at?: string | null;
5638
+ hash: string;
5639
+ id: number;
5640
+ name: string;
5641
+ };
5642
+ Update: {
5643
+ executed_at?: string | null;
5644
+ hash?: string;
5645
+ id?: number;
5646
+ name?: string;
5647
+ };
5648
+ Relationships: [];
5649
+ };
5650
+ objects: {
4872
5651
  Row: {
4873
5652
  bucket_id: string | null;
4874
5653
  created_at: string | null;
@@ -5095,6 +5874,14 @@ export type Database = {
5095
5874
  };
5096
5875
  Returns: string[];
5097
5876
  };
5877
+ get_common_prefix: {
5878
+ Args: {
5879
+ p_delimiter: string;
5880
+ p_key: string;
5881
+ p_prefix: string;
5882
+ };
5883
+ Returns: string;
5884
+ };
5098
5885
  get_size_by_bucket: {
5099
5886
  Args: never;
5100
5887
  Returns: {
@@ -5119,15 +5906,18 @@ export type Database = {
5119
5906
  };
5120
5907
  list_objects_with_delimiter: {
5121
5908
  Args: {
5122
- bucket_id: string;
5909
+ _bucket_id: string;
5123
5910
  delimiter_param: string;
5124
5911
  max_keys?: number;
5125
5912
  next_token?: string;
5126
5913
  prefix_param: string;
5914
+ sort_order?: string;
5127
5915
  start_after?: string;
5128
5916
  };
5129
5917
  Returns: {
5918
+ created_at: string;
5130
5919
  id: string;
5920
+ last_accessed_at: string;
5131
5921
  metadata: Json;
5132
5922
  name: string;
5133
5923
  updated_at: string;
@@ -5144,6 +5934,9 @@ export type Database = {
5144
5934
  limits?: number;
5145
5935
  offsets?: number;
5146
5936
  prefix: string;
5937
+ search?: string;
5938
+ sortcolumn?: string;
5939
+ sortorder?: string;
5147
5940
  };
5148
5941
  Returns: {
5149
5942
  created_at: string;
@@ -5153,20 +5946,43 @@ export type Database = {
5153
5946
  name: string;
5154
5947
  updated_at: string;
5155
5948
  }[];
5156
- } | {
5949
+ };
5950
+ search_by_timestamp: {
5157
5951
  Args: {
5158
- bucketname: string;
5952
+ p_bucket_id: string;
5953
+ p_level: number;
5954
+ p_limit: number;
5955
+ p_prefix: string;
5956
+ p_sort_column: string;
5957
+ p_sort_column_after: string;
5958
+ p_sort_order: string;
5959
+ p_start_after: string;
5960
+ };
5961
+ Returns: {
5962
+ created_at: string;
5963
+ id: string;
5964
+ key: string;
5965
+ last_accessed_at: string;
5966
+ metadata: Json;
5967
+ name: string;
5968
+ updated_at: string;
5969
+ }[];
5970
+ };
5971
+ search_v2: {
5972
+ Args: {
5973
+ bucket_name: string;
5159
5974
  levels?: number;
5160
5975
  limits?: number;
5161
- offsets?: number;
5162
5976
  prefix: string;
5163
- search?: string;
5164
- sortcolumn?: string;
5165
- sortorder?: string;
5977
+ sort_column?: string;
5978
+ sort_column_after?: string;
5979
+ sort_order?: string;
5980
+ start_after?: string;
5166
5981
  };
5167
5982
  Returns: {
5168
5983
  created_at: string;
5169
5984
  id: string;
5985
+ key: string;
5170
5986
  last_accessed_at: string;
5171
5987
  metadata: Json;
5172
5988
  name: string;
@@ -5281,6 +6097,16 @@ export declare const Constants: {
5281
6097
  readonly social_media_platform: readonly ["facebook", "instagram", "kick", "tiktok", "twitch", "twitter", "youtube"];
5282
6098
  };
5283
6099
  };
6100
+ readonly sessions: {
6101
+ readonly Enums: {
6102
+ readonly lounge_branch_station_status: readonly ["available", "occupied"];
6103
+ readonly session_complaint_type: readonly ["session", "lounge_branch"];
6104
+ readonly session_discount_type: readonly ["regular", "incremental_time"];
6105
+ readonly session_member_status: readonly ["pending", "active", "left"];
6106
+ readonly session_pricing_type: readonly ["time", "unit"];
6107
+ readonly session_status: readonly ["pending", "active", "change_requested", "checking_out", "ended", "cancelled"];
6108
+ };
6109
+ };
5284
6110
  readonly storage: {
5285
6111
  readonly Enums: {
5286
6112
  readonly buckettype: readonly ["STANDARD", "ANALYTICS", "VECTOR"];