@adventurelabs/scout-core 1.0.28 → 1.0.29
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.
|
@@ -91,6 +91,12 @@ export function useScoutDbListener(scoutSupabase) {
|
|
|
91
91
|
.on("postgres_changes", { event: "INSERT", schema: "public", table: "tags" }, handleTagInserts)
|
|
92
92
|
.on("postgres_changes", { event: "DELETE", schema: "public", table: "tags" }, handleTagDeletes)
|
|
93
93
|
.on("postgres_changes", { event: "UPDATE", schema: "public", table: "tags" }, handleTagUpdates)
|
|
94
|
+
.on("postgres_changes", { event: "INSERT", schema: "public", table: "connectivity" }, handleTagUpdates)
|
|
95
|
+
.on("postgres_changes", { event: "DELETE", schema: "public", table: "connectivity" }, handleTagUpdates)
|
|
96
|
+
.on("postgres_changes", { event: "UPDATE", schema: "public", table: "connectivity" }, handleTagUpdates)
|
|
97
|
+
.on("postgres_changes", { event: "INSERT", schema: "public", table: "sessions" }, handleTagUpdates)
|
|
98
|
+
.on("postgres_changes", { event: "DELETE", schema: "public", table: "sessions" }, handleTagUpdates)
|
|
99
|
+
.on("postgres_changes", { event: "UPDATE", schema: "public", table: "sessions" }, handleTagUpdates)
|
|
94
100
|
.subscribe((status) => {
|
|
95
101
|
console.log("[DB Listener] Subscription status:", status);
|
|
96
102
|
if (status === "SUBSCRIBED") {
|
|
@@ -42,10 +42,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", {
|
|
|
42
42
|
connectivity: {
|
|
43
43
|
Row: {
|
|
44
44
|
altitude: number;
|
|
45
|
-
h11_index:
|
|
46
|
-
h12_index:
|
|
47
|
-
h13_index:
|
|
48
|
-
h14_index:
|
|
45
|
+
h11_index: string;
|
|
46
|
+
h12_index: string;
|
|
47
|
+
h13_index: string;
|
|
48
|
+
h14_index: string;
|
|
49
49
|
heading: number;
|
|
50
50
|
id: number;
|
|
51
51
|
inserted_at: string;
|
|
@@ -57,10 +57,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", {
|
|
|
57
57
|
};
|
|
58
58
|
Insert: {
|
|
59
59
|
altitude: number;
|
|
60
|
-
h11_index:
|
|
61
|
-
h12_index:
|
|
62
|
-
h13_index:
|
|
63
|
-
h14_index:
|
|
60
|
+
h11_index: string;
|
|
61
|
+
h12_index: string;
|
|
62
|
+
h13_index: string;
|
|
63
|
+
h14_index: string;
|
|
64
64
|
heading: number;
|
|
65
65
|
id?: number;
|
|
66
66
|
inserted_at?: string;
|
|
@@ -72,10 +72,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", {
|
|
|
72
72
|
};
|
|
73
73
|
Update: {
|
|
74
74
|
altitude?: number;
|
|
75
|
-
h11_index?:
|
|
76
|
-
h12_index?:
|
|
77
|
-
h13_index?:
|
|
78
|
-
h14_index?:
|
|
75
|
+
h11_index?: string;
|
|
76
|
+
h12_index?: string;
|
|
77
|
+
h13_index?: string;
|
|
78
|
+
h14_index?: string;
|
|
79
79
|
heading?: number;
|
|
80
80
|
id?: number;
|
|
81
81
|
inserted_at?: string;
|
|
@@ -706,10 +706,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", {
|
|
|
706
706
|
heading: number | null;
|
|
707
707
|
latitude: number | null;
|
|
708
708
|
longitude: number | null;
|
|
709
|
-
h14_index:
|
|
710
|
-
h13_index:
|
|
711
|
-
h12_index:
|
|
712
|
-
h11_index:
|
|
709
|
+
h14_index: string | null;
|
|
710
|
+
h13_index: string | null;
|
|
711
|
+
h12_index: string | null;
|
|
712
|
+
h11_index: string | null;
|
|
713
713
|
};
|
|
714
714
|
device_pretty_location: {
|
|
715
715
|
id: number | null;
|
|
@@ -40,10 +40,10 @@ export declare function newServerClient(): Promise<import("@supabase/supabase-js
|
|
|
40
40
|
connectivity: {
|
|
41
41
|
Row: {
|
|
42
42
|
altitude: number;
|
|
43
|
-
h11_index:
|
|
44
|
-
h12_index:
|
|
45
|
-
h13_index:
|
|
46
|
-
h14_index:
|
|
43
|
+
h11_index: string;
|
|
44
|
+
h12_index: string;
|
|
45
|
+
h13_index: string;
|
|
46
|
+
h14_index: string;
|
|
47
47
|
heading: number;
|
|
48
48
|
id: number;
|
|
49
49
|
inserted_at: string;
|
|
@@ -55,10 +55,10 @@ export declare function newServerClient(): Promise<import("@supabase/supabase-js
|
|
|
55
55
|
};
|
|
56
56
|
Insert: {
|
|
57
57
|
altitude: number;
|
|
58
|
-
h11_index:
|
|
59
|
-
h12_index:
|
|
60
|
-
h13_index:
|
|
61
|
-
h14_index:
|
|
58
|
+
h11_index: string;
|
|
59
|
+
h12_index: string;
|
|
60
|
+
h13_index: string;
|
|
61
|
+
h14_index: string;
|
|
62
62
|
heading: number;
|
|
63
63
|
id?: number;
|
|
64
64
|
inserted_at?: string;
|
|
@@ -70,10 +70,10 @@ export declare function newServerClient(): Promise<import("@supabase/supabase-js
|
|
|
70
70
|
};
|
|
71
71
|
Update: {
|
|
72
72
|
altitude?: number;
|
|
73
|
-
h11_index?:
|
|
74
|
-
h12_index?:
|
|
75
|
-
h13_index?:
|
|
76
|
-
h14_index?:
|
|
73
|
+
h11_index?: string;
|
|
74
|
+
h12_index?: string;
|
|
75
|
+
h13_index?: string;
|
|
76
|
+
h14_index?: string;
|
|
77
77
|
heading?: number;
|
|
78
78
|
id?: number;
|
|
79
79
|
inserted_at?: string;
|
|
@@ -704,10 +704,10 @@ export declare function newServerClient(): Promise<import("@supabase/supabase-js
|
|
|
704
704
|
heading: number | null;
|
|
705
705
|
latitude: number | null;
|
|
706
706
|
longitude: number | null;
|
|
707
|
-
h14_index:
|
|
708
|
-
h13_index:
|
|
709
|
-
h12_index:
|
|
710
|
-
h11_index:
|
|
707
|
+
h14_index: string | null;
|
|
708
|
+
h13_index: string | null;
|
|
709
|
+
h12_index: string | null;
|
|
710
|
+
h11_index: string | null;
|
|
711
711
|
};
|
|
712
712
|
device_pretty_location: {
|
|
713
713
|
id: number | null;
|
package/dist/types/supabase.d.ts
CHANGED
|
@@ -74,10 +74,10 @@ export type Database = {
|
|
|
74
74
|
connectivity: {
|
|
75
75
|
Row: {
|
|
76
76
|
altitude: number;
|
|
77
|
-
h11_index:
|
|
78
|
-
h12_index:
|
|
79
|
-
h13_index:
|
|
80
|
-
h14_index:
|
|
77
|
+
h11_index: string;
|
|
78
|
+
h12_index: string;
|
|
79
|
+
h13_index: string;
|
|
80
|
+
h14_index: string;
|
|
81
81
|
heading: number;
|
|
82
82
|
id: number;
|
|
83
83
|
inserted_at: string;
|
|
@@ -89,10 +89,10 @@ export type Database = {
|
|
|
89
89
|
};
|
|
90
90
|
Insert: {
|
|
91
91
|
altitude: number;
|
|
92
|
-
h11_index:
|
|
93
|
-
h12_index:
|
|
94
|
-
h13_index:
|
|
95
|
-
h14_index:
|
|
92
|
+
h11_index: string;
|
|
93
|
+
h12_index: string;
|
|
94
|
+
h13_index: string;
|
|
95
|
+
h14_index: string;
|
|
96
96
|
heading: number;
|
|
97
97
|
id?: number;
|
|
98
98
|
inserted_at?: string;
|
|
@@ -104,10 +104,10 @@ export type Database = {
|
|
|
104
104
|
};
|
|
105
105
|
Update: {
|
|
106
106
|
altitude?: number;
|
|
107
|
-
h11_index?:
|
|
108
|
-
h12_index?:
|
|
109
|
-
h13_index?:
|
|
110
|
-
h14_index?:
|
|
107
|
+
h11_index?: string;
|
|
108
|
+
h12_index?: string;
|
|
109
|
+
h13_index?: string;
|
|
110
|
+
h14_index?: string;
|
|
111
111
|
heading?: number;
|
|
112
112
|
id?: number;
|
|
113
113
|
inserted_at?: string;
|
|
@@ -765,10 +765,10 @@ export type Database = {
|
|
|
765
765
|
heading: number | null;
|
|
766
766
|
latitude: number | null;
|
|
767
767
|
longitude: number | null;
|
|
768
|
-
h14_index:
|
|
769
|
-
h13_index:
|
|
770
|
-
h12_index:
|
|
771
|
-
h11_index:
|
|
768
|
+
h14_index: string | null;
|
|
769
|
+
h13_index: string | null;
|
|
770
|
+
h12_index: string | null;
|
|
771
|
+
h11_index: string | null;
|
|
772
772
|
};
|
|
773
773
|
device_pretty_location: {
|
|
774
774
|
id: number | null;
|