@adventurelabs/scout-core 1.4.40 → 1.4.42
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/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +1 -0
- package/dist/helpers/observations.d.ts +9 -0
- package/dist/helpers/observations.js +73 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useInfiniteQuery.d.ts +8 -1
- package/dist/hooks/useInfiniteQuery.js +143 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/providers/ScoutRefreshProvider.d.ts +139 -0
- package/dist/store/api.d.ts +45 -132
- package/dist/store/api.js +28 -8
- package/dist/store/configureStore.d.ts +8 -48
- package/dist/types/db.d.ts +3 -0
- package/dist/types/supabase.d.ts +139 -0
- package/package.json +1 -1
package/dist/types/supabase.d.ts
CHANGED
|
@@ -736,6 +736,7 @@ export type Database = {
|
|
|
736
736
|
id: number;
|
|
737
737
|
inserted_at: string;
|
|
738
738
|
session_id: number;
|
|
739
|
+
timestamp: string | null;
|
|
739
740
|
updated_at: string | null;
|
|
740
741
|
};
|
|
741
742
|
Insert: {
|
|
@@ -745,6 +746,7 @@ export type Database = {
|
|
|
745
746
|
id?: number;
|
|
746
747
|
inserted_at?: string;
|
|
747
748
|
session_id: number;
|
|
749
|
+
timestamp?: string | null;
|
|
748
750
|
updated_at?: string | null;
|
|
749
751
|
};
|
|
750
752
|
Update: {
|
|
@@ -754,6 +756,7 @@ export type Database = {
|
|
|
754
756
|
id?: number;
|
|
755
757
|
inserted_at?: string;
|
|
756
758
|
session_id?: number;
|
|
759
|
+
timestamp?: string | null;
|
|
757
760
|
updated_at?: string | null;
|
|
758
761
|
};
|
|
759
762
|
Relationships: [
|
|
@@ -1804,6 +1807,37 @@ export type Database = {
|
|
|
1804
1807
|
isOneToOne: false;
|
|
1805
1808
|
isSetofReturn: true;
|
|
1806
1809
|
};
|
|
1810
|
+
} | {
|
|
1811
|
+
Args: {
|
|
1812
|
+
cursor_id?: number;
|
|
1813
|
+
cursor_timestamp?: string;
|
|
1814
|
+
device_id_caller: number;
|
|
1815
|
+
limit_caller?: number;
|
|
1816
|
+
range_end?: string;
|
|
1817
|
+
range_start?: string;
|
|
1818
|
+
};
|
|
1819
|
+
Returns: {
|
|
1820
|
+
created_at: string;
|
|
1821
|
+
device_id: number;
|
|
1822
|
+
embedded_at: string | null;
|
|
1823
|
+
file_path: string;
|
|
1824
|
+
file_size_bytes: number | null;
|
|
1825
|
+
id: number;
|
|
1826
|
+
modality: string | null;
|
|
1827
|
+
segmented_at: string | null;
|
|
1828
|
+
session_id: number | null;
|
|
1829
|
+
tagged_at: string | null;
|
|
1830
|
+
timestamp_observation: string | null;
|
|
1831
|
+
timestamp_observation_end: string;
|
|
1832
|
+
tracked_at: string | null;
|
|
1833
|
+
updated_at: string | null;
|
|
1834
|
+
}[];
|
|
1835
|
+
SetofOptions: {
|
|
1836
|
+
from: "*";
|
|
1837
|
+
to: "artifacts";
|
|
1838
|
+
isOneToOne: false;
|
|
1839
|
+
isSetofReturn: true;
|
|
1840
|
+
};
|
|
1807
1841
|
};
|
|
1808
1842
|
get_artifacts_infinite_by_herd: {
|
|
1809
1843
|
Args: {
|
|
@@ -1834,6 +1868,37 @@ export type Database = {
|
|
|
1834
1868
|
isOneToOne: false;
|
|
1835
1869
|
isSetofReturn: true;
|
|
1836
1870
|
};
|
|
1871
|
+
} | {
|
|
1872
|
+
Args: {
|
|
1873
|
+
cursor_id?: number;
|
|
1874
|
+
cursor_timestamp?: string;
|
|
1875
|
+
herd_id_caller: number;
|
|
1876
|
+
limit_caller?: number;
|
|
1877
|
+
range_end?: string;
|
|
1878
|
+
range_start?: string;
|
|
1879
|
+
};
|
|
1880
|
+
Returns: {
|
|
1881
|
+
created_at: string;
|
|
1882
|
+
device_id: number;
|
|
1883
|
+
embedded_at: string | null;
|
|
1884
|
+
file_path: string;
|
|
1885
|
+
file_size_bytes: number | null;
|
|
1886
|
+
id: number;
|
|
1887
|
+
modality: string | null;
|
|
1888
|
+
segmented_at: string | null;
|
|
1889
|
+
session_id: number | null;
|
|
1890
|
+
tagged_at: string | null;
|
|
1891
|
+
timestamp_observation: string | null;
|
|
1892
|
+
timestamp_observation_end: string;
|
|
1893
|
+
tracked_at: string | null;
|
|
1894
|
+
updated_at: string | null;
|
|
1895
|
+
}[];
|
|
1896
|
+
SetofOptions: {
|
|
1897
|
+
from: "*";
|
|
1898
|
+
to: "artifacts";
|
|
1899
|
+
isOneToOne: false;
|
|
1900
|
+
isSetofReturn: true;
|
|
1901
|
+
};
|
|
1837
1902
|
};
|
|
1838
1903
|
get_connectivity_for_artifact: {
|
|
1839
1904
|
Args: {
|
|
@@ -2041,6 +2106,22 @@ export type Database = {
|
|
|
2041
2106
|
isOneToOne: false;
|
|
2042
2107
|
isSetofReturn: true;
|
|
2043
2108
|
};
|
|
2109
|
+
} | {
|
|
2110
|
+
Args: {
|
|
2111
|
+
cursor_id?: number;
|
|
2112
|
+
cursor_timestamp?: string;
|
|
2113
|
+
device_id_caller: number;
|
|
2114
|
+
limit_caller?: number;
|
|
2115
|
+
range_end?: string;
|
|
2116
|
+
range_start?: string;
|
|
2117
|
+
};
|
|
2118
|
+
Returns: Database["public"]["CompositeTypes"]["event_and_tags_pretty_location"][];
|
|
2119
|
+
SetofOptions: {
|
|
2120
|
+
from: "*";
|
|
2121
|
+
to: "event_and_tags_pretty_location";
|
|
2122
|
+
isOneToOne: false;
|
|
2123
|
+
isSetofReturn: true;
|
|
2124
|
+
};
|
|
2044
2125
|
};
|
|
2045
2126
|
get_events_infinite_by_herd: {
|
|
2046
2127
|
Args: {
|
|
@@ -2056,6 +2137,22 @@ export type Database = {
|
|
|
2056
2137
|
isOneToOne: false;
|
|
2057
2138
|
isSetofReturn: true;
|
|
2058
2139
|
};
|
|
2140
|
+
} | {
|
|
2141
|
+
Args: {
|
|
2142
|
+
cursor_id?: number;
|
|
2143
|
+
cursor_timestamp?: string;
|
|
2144
|
+
herd_id_caller: number;
|
|
2145
|
+
limit_caller?: number;
|
|
2146
|
+
range_end?: string;
|
|
2147
|
+
range_start?: string;
|
|
2148
|
+
};
|
|
2149
|
+
Returns: Database["public"]["CompositeTypes"]["event_and_tags_pretty_location"][];
|
|
2150
|
+
SetofOptions: {
|
|
2151
|
+
from: "*";
|
|
2152
|
+
to: "event_and_tags_pretty_location";
|
|
2153
|
+
isOneToOne: false;
|
|
2154
|
+
isSetofReturn: true;
|
|
2155
|
+
};
|
|
2059
2156
|
};
|
|
2060
2157
|
get_events_with_tags_for_herd: {
|
|
2061
2158
|
Args: {
|
|
@@ -2086,6 +2183,23 @@ export type Database = {
|
|
|
2086
2183
|
isOneToOne: false;
|
|
2087
2184
|
isSetofReturn: true;
|
|
2088
2185
|
};
|
|
2186
|
+
} | {
|
|
2187
|
+
Args: {
|
|
2188
|
+
cursor_feed_type?: string;
|
|
2189
|
+
cursor_id?: number;
|
|
2190
|
+
cursor_timestamp?: string;
|
|
2191
|
+
device_id_caller: number;
|
|
2192
|
+
limit_caller?: number;
|
|
2193
|
+
range_end?: string;
|
|
2194
|
+
range_start?: string;
|
|
2195
|
+
};
|
|
2196
|
+
Returns: Database["public"]["CompositeTypes"]["feed_item"][];
|
|
2197
|
+
SetofOptions: {
|
|
2198
|
+
from: "*";
|
|
2199
|
+
to: "feed_item";
|
|
2200
|
+
isOneToOne: false;
|
|
2201
|
+
isSetofReturn: true;
|
|
2202
|
+
};
|
|
2089
2203
|
};
|
|
2090
2204
|
get_feed_infinite_by_herd: {
|
|
2091
2205
|
Args: {
|
|
@@ -2102,6 +2216,23 @@ export type Database = {
|
|
|
2102
2216
|
isOneToOne: false;
|
|
2103
2217
|
isSetofReturn: true;
|
|
2104
2218
|
};
|
|
2219
|
+
} | {
|
|
2220
|
+
Args: {
|
|
2221
|
+
cursor_feed_type?: string;
|
|
2222
|
+
cursor_id?: number;
|
|
2223
|
+
cursor_timestamp?: string;
|
|
2224
|
+
herd_id_caller: number;
|
|
2225
|
+
limit_caller?: number;
|
|
2226
|
+
range_end?: string;
|
|
2227
|
+
range_start?: string;
|
|
2228
|
+
};
|
|
2229
|
+
Returns: Database["public"]["CompositeTypes"]["feed_item"][];
|
|
2230
|
+
SetofOptions: {
|
|
2231
|
+
from: "*";
|
|
2232
|
+
to: "feed_item";
|
|
2233
|
+
isOneToOne: false;
|
|
2234
|
+
isSetofReturn: true;
|
|
2235
|
+
};
|
|
2105
2236
|
};
|
|
2106
2237
|
get_health_metrics_summary: {
|
|
2107
2238
|
Args: {
|
|
@@ -2190,6 +2321,10 @@ export type Database = {
|
|
|
2190
2321
|
cursor_timestamp?: string;
|
|
2191
2322
|
device_id_caller: number;
|
|
2192
2323
|
limit_caller?: number;
|
|
2324
|
+
min_flight_distance_meters?: number;
|
|
2325
|
+
min_flight_time_minutes?: number;
|
|
2326
|
+
range_end?: string;
|
|
2327
|
+
range_start?: string;
|
|
2193
2328
|
};
|
|
2194
2329
|
Returns: Database["public"]["CompositeTypes"]["session_with_coordinates"][];
|
|
2195
2330
|
SetofOptions: {
|
|
@@ -2205,6 +2340,10 @@ export type Database = {
|
|
|
2205
2340
|
cursor_timestamp?: string;
|
|
2206
2341
|
herd_id_caller: number;
|
|
2207
2342
|
limit_caller?: number;
|
|
2343
|
+
min_flight_distance_meters?: number;
|
|
2344
|
+
min_flight_time_minutes?: number;
|
|
2345
|
+
range_end?: string;
|
|
2346
|
+
range_start?: string;
|
|
2208
2347
|
};
|
|
2209
2348
|
Returns: Database["public"]["CompositeTypes"]["session_with_coordinates"][];
|
|
2210
2349
|
SetofOptions: {
|