@rjromeoent/ein-supabase 0.1.7 → 0.1.8

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.
@@ -15650,7 +15650,27 @@ export type Database = {
15650
15650
  };
15651
15651
  public: {
15652
15652
  Tables: {
15653
- [_ in never]: never;
15653
+ rls_debug_log: {
15654
+ Row: {
15655
+ id: number;
15656
+ message: string | null;
15657
+ payload: Json | null;
15658
+ ts: string | null;
15659
+ };
15660
+ Insert: {
15661
+ id?: number;
15662
+ message?: string | null;
15663
+ payload?: Json | null;
15664
+ ts?: string | null;
15665
+ };
15666
+ Update: {
15667
+ id?: number;
15668
+ message?: string | null;
15669
+ payload?: Json | null;
15670
+ ts?: string | null;
15671
+ };
15672
+ Relationships: [];
15673
+ };
15654
15674
  };
15655
15675
  Views: {
15656
15676
  [_ in never]: never;
@@ -16768,6 +16788,75 @@ export type Database = {
16768
16788
  }
16769
16789
  ];
16770
16790
  };
16791
+ dashboard_search_overlay_warming_targets: {
16792
+ Row: {
16793
+ batch_limit: number;
16794
+ center_city: string;
16795
+ center_city_key: string;
16796
+ created_at: string;
16797
+ date_window_days: number;
16798
+ id: string;
16799
+ is_active: boolean;
16800
+ last_result: Json;
16801
+ last_run_at: string | null;
16802
+ last_status: string | null;
16803
+ max_batches_per_run: number;
16804
+ organization_id: string;
16805
+ priority: number;
16806
+ radius_miles: number;
16807
+ updated_at: string;
16808
+ };
16809
+ Insert: {
16810
+ batch_limit?: number;
16811
+ center_city: string;
16812
+ center_city_key: string;
16813
+ created_at?: string;
16814
+ date_window_days?: number;
16815
+ id?: string;
16816
+ is_active?: boolean;
16817
+ last_result?: Json;
16818
+ last_run_at?: string | null;
16819
+ last_status?: string | null;
16820
+ max_batches_per_run?: number;
16821
+ organization_id: string;
16822
+ priority?: number;
16823
+ radius_miles?: number;
16824
+ updated_at?: string;
16825
+ };
16826
+ Update: {
16827
+ batch_limit?: number;
16828
+ center_city?: string;
16829
+ center_city_key?: string;
16830
+ created_at?: string;
16831
+ date_window_days?: number;
16832
+ id?: string;
16833
+ is_active?: boolean;
16834
+ last_result?: Json;
16835
+ last_run_at?: string | null;
16836
+ last_status?: string | null;
16837
+ max_batches_per_run?: number;
16838
+ organization_id?: string;
16839
+ priority?: number;
16840
+ radius_miles?: number;
16841
+ updated_at?: string;
16842
+ };
16843
+ Relationships: [
16844
+ {
16845
+ foreignKeyName: "dashboard_search_overlay_warming_targets_organization_id_fkey";
16846
+ columns: ["organization_id"];
16847
+ isOneToOne: false;
16848
+ referencedRelation: "dashboard_health_view";
16849
+ referencedColumns: ["organization_id"];
16850
+ },
16851
+ {
16852
+ foreignKeyName: "dashboard_search_overlay_warming_targets_organization_id_fkey";
16853
+ columns: ["organization_id"];
16854
+ isOneToOne: false;
16855
+ referencedRelation: "system_health_overview";
16856
+ referencedColumns: ["organization_id"];
16857
+ }
16858
+ ];
16859
+ };
16771
16860
  dashboard_search_overlays: {
16772
16861
  Row: {
16773
16862
  availability_window_id: string;
@@ -16867,6 +16956,87 @@ export type Database = {
16867
16956
  }
16868
16957
  ];
16869
16958
  };
16959
+ dashboard_search_refresh_queue: {
16960
+ Row: {
16961
+ attempts: number;
16962
+ availability_window_id: string;
16963
+ error_message: string | null;
16964
+ id: string;
16965
+ last_attempt_at: string | null;
16966
+ metadata: Json;
16967
+ organization_id: string;
16968
+ processed_at: string | null;
16969
+ queued_at: string;
16970
+ reason: string;
16971
+ source_row_id: string | null;
16972
+ source_table: string | null;
16973
+ };
16974
+ Insert: {
16975
+ attempts?: number;
16976
+ availability_window_id: string;
16977
+ error_message?: string | null;
16978
+ id?: string;
16979
+ last_attempt_at?: string | null;
16980
+ metadata?: Json;
16981
+ organization_id: string;
16982
+ processed_at?: string | null;
16983
+ queued_at?: string;
16984
+ reason: string;
16985
+ source_row_id?: string | null;
16986
+ source_table?: string | null;
16987
+ };
16988
+ Update: {
16989
+ attempts?: number;
16990
+ availability_window_id?: string;
16991
+ error_message?: string | null;
16992
+ id?: string;
16993
+ last_attempt_at?: string | null;
16994
+ metadata?: Json;
16995
+ organization_id?: string;
16996
+ processed_at?: string | null;
16997
+ queued_at?: string;
16998
+ reason?: string;
16999
+ source_row_id?: string | null;
17000
+ source_table?: string | null;
17001
+ };
17002
+ Relationships: [
17003
+ {
17004
+ foreignKeyName: "dashboard_search_refresh_queue_availability_window_id_fkey";
17005
+ columns: ["availability_window_id"];
17006
+ isOneToOne: false;
17007
+ referencedRelation: "artist_availability_windows";
17008
+ referencedColumns: ["id"];
17009
+ },
17010
+ {
17011
+ foreignKeyName: "dashboard_search_refresh_queue_availability_window_id_fkey";
17012
+ columns: ["availability_window_id"];
17013
+ isOneToOne: false;
17014
+ referencedRelation: "availability_search_base";
17015
+ referencedColumns: ["id"];
17016
+ },
17017
+ {
17018
+ foreignKeyName: "dashboard_search_refresh_queue_availability_window_id_fkey";
17019
+ columns: ["availability_window_id"];
17020
+ isOneToOne: false;
17021
+ referencedRelation: "event_edition_live_grid";
17022
+ referencedColumns: ["live_availability_window_id"];
17023
+ },
17024
+ {
17025
+ foreignKeyName: "dashboard_search_refresh_queue_organization_id_fkey";
17026
+ columns: ["organization_id"];
17027
+ isOneToOne: false;
17028
+ referencedRelation: "dashboard_health_view";
17029
+ referencedColumns: ["organization_id"];
17030
+ },
17031
+ {
17032
+ foreignKeyName: "dashboard_search_refresh_queue_organization_id_fkey";
17033
+ columns: ["organization_id"];
17034
+ isOneToOne: false;
17035
+ referencedRelation: "system_health_overview";
17036
+ referencedColumns: ["organization_id"];
17037
+ }
17038
+ ];
17039
+ };
16870
17040
  dashboard_search_refresh_runs: {
16871
17041
  Row: {
16872
17042
  error_message: string | null;
@@ -19738,6 +19908,25 @@ export type Database = {
19738
19908
  venue_type: string;
19739
19909
  }[];
19740
19910
  };
19911
+ enqueue_dashboard_search_read_model_repair: {
19912
+ Args: {
19913
+ p_date_from?: string;
19914
+ p_date_to?: string;
19915
+ p_limit?: number;
19916
+ p_organization_id: string;
19917
+ };
19918
+ Returns: Json;
19919
+ };
19920
+ enqueue_dashboard_search_refresh_windows: {
19921
+ Args: {
19922
+ p_availability_window_ids: string[];
19923
+ p_metadata?: Json;
19924
+ p_reason: string;
19925
+ p_source_row_id?: string;
19926
+ p_source_table?: string;
19927
+ };
19928
+ Returns: number;
19929
+ };
19741
19930
  filtered_availability_search_rows: {
19742
19931
  Args: {
19743
19932
  p_active_only?: boolean;
@@ -20025,6 +20214,23 @@ export type Database = {
20025
20214
  tracked_artist_count: number;
20026
20215
  }[];
20027
20216
  };
20217
+ get_dashboard_search_overlay_warming_status: {
20218
+ Args: never;
20219
+ Returns: Json;
20220
+ };
20221
+ get_dashboard_search_read_model_health: {
20222
+ Args: {
20223
+ p_date_from?: string;
20224
+ p_date_to?: string;
20225
+ p_organization_id: string;
20226
+ p_sample_limit?: number;
20227
+ };
20228
+ Returns: Json;
20229
+ };
20230
+ get_dashboard_search_refresh_queue_status: {
20231
+ Args: never;
20232
+ Returns: Json;
20233
+ };
20028
20234
  get_duplicate_avail_groups: {
20029
20235
  Args: {
20030
20236
  p_max_groups?: number;
@@ -20536,6 +20742,12 @@ export type Database = {
20536
20742
  venue_type: string;
20537
20743
  }[];
20538
20744
  };
20745
+ invalidate_dashboard_search_overlays_for_windows: {
20746
+ Args: {
20747
+ p_availability_window_ids: string[];
20748
+ };
20749
+ Returns: number;
20750
+ };
20539
20751
  log_search_unknown_cities: {
20540
20752
  Args: {
20541
20753
  p_availability_window_ids: string[];
@@ -20544,6 +20756,18 @@ export type Database = {
20544
20756
  };
20545
20757
  Returns: number;
20546
20758
  };
20759
+ process_dashboard_search_overlay_warming_targets: {
20760
+ Args: {
20761
+ p_limit?: number;
20762
+ };
20763
+ Returns: Json;
20764
+ };
20765
+ process_dashboard_search_refresh_queue: {
20766
+ Args: {
20767
+ p_limit?: number;
20768
+ };
20769
+ Returns: Json;
20770
+ };
20547
20771
  refresh_artist_availability_stats: {
20548
20772
  Args: {
20549
20773
  p_organization_id: string;
@@ -20941,6 +21165,19 @@ export type Database = {
20941
21165
  tracked_artist_id: string;
20942
21166
  }[];
20943
21167
  };
21168
+ upsert_dashboard_search_overlay_warming_target: {
21169
+ Args: {
21170
+ p_batch_limit?: number;
21171
+ p_center_city: string;
21172
+ p_date_window_days?: number;
21173
+ p_is_active?: boolean;
21174
+ p_max_batches_per_run?: number;
21175
+ p_organization_id: string;
21176
+ p_priority?: number;
21177
+ p_radius_miles?: number;
21178
+ };
21179
+ Returns: string;
21180
+ };
20944
21181
  upsert_dashboard_search_windows_from_source: {
20945
21182
  Args: {
20946
21183
  p_availability_window_id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rjromeoent/ein-supabase",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Shared Supabase types, app context, and contract helpers for EIN-connected apps.",
5
5
  "type": "module",
6
6
  "sideEffects": false,