@adventurelabs/scout-core 1.2.6 → 1.3.1
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/cache.js +3 -1
- package/dist/helpers/session_summaries.d.ts +6 -0
- package/dist/helpers/session_summaries.js +51 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/useHerdData.d.ts +167 -0
- package/dist/hooks/useHerdData.js +153 -0
- package/dist/hooks/useInfiniteQuery.d.ts +24 -0
- package/dist/hooks/useInfiniteQuery.js +360 -0
- package/dist/hooks/useScoutRealtimeEvents.d.ts +1 -1
- package/dist/hooks/useScoutRealtimeEvents.js +18 -23
- package/dist/hooks/useScoutRealtimeSessions.d.ts +1 -1
- package/dist/hooks/useScoutRealtimeSessions.js +20 -12
- package/dist/hooks/useScoutRealtimeTags.d.ts +1 -1
- package/dist/hooks/useScoutRealtimeTags.js +15 -12
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/providers/ScoutRefreshProvider.d.ts +119 -0
- package/dist/store/api.d.ts +968 -0
- package/dist/store/api.js +377 -0
- package/dist/store/configureStore.d.ts +96 -0
- package/dist/store/configureStore.js +40 -0
- package/dist/store/hooks.d.ts +5 -0
- package/dist/store/hooks.js +21 -3
- package/dist/store/index.d.ts +1 -0
- package/dist/store/index.js +1 -0
- package/dist/store/scout.d.ts +13 -50
- package/dist/store/scout.js +33 -141
- package/dist/types/db.d.ts +18 -0
- package/dist/types/herd_module.d.ts +4 -16
- package/dist/types/herd_module.js +17 -23
- package/dist/types/supabase.d.ts +119 -0
- package/package.json +1 -1
|
@@ -1162,6 +1162,56 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1162
1162
|
isSetofReturn: true;
|
|
1163
1163
|
};
|
|
1164
1164
|
};
|
|
1165
|
+
get_artifacts_infinite_by_device: {
|
|
1166
|
+
Args: {
|
|
1167
|
+
cursor_id?: number;
|
|
1168
|
+
cursor_timestamp?: string;
|
|
1169
|
+
device_id_caller: number;
|
|
1170
|
+
limit_caller?: number;
|
|
1171
|
+
};
|
|
1172
|
+
Returns: {
|
|
1173
|
+
created_at: string;
|
|
1174
|
+
device_id: number;
|
|
1175
|
+
file_path: string;
|
|
1176
|
+
id: number;
|
|
1177
|
+
modality: string | null;
|
|
1178
|
+
session_id: number | null;
|
|
1179
|
+
timestamp_observation: string | null;
|
|
1180
|
+
timestamp_observation_end: string;
|
|
1181
|
+
updated_at: string | null;
|
|
1182
|
+
}[];
|
|
1183
|
+
SetofOptions: {
|
|
1184
|
+
from: "*";
|
|
1185
|
+
to: "artifacts";
|
|
1186
|
+
isOneToOne: false;
|
|
1187
|
+
isSetofReturn: true;
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
get_artifacts_infinite_by_herd: {
|
|
1191
|
+
Args: {
|
|
1192
|
+
cursor_id?: number;
|
|
1193
|
+
cursor_timestamp?: string;
|
|
1194
|
+
herd_id_caller: number;
|
|
1195
|
+
limit_caller?: number;
|
|
1196
|
+
};
|
|
1197
|
+
Returns: {
|
|
1198
|
+
created_at: string;
|
|
1199
|
+
device_id: number;
|
|
1200
|
+
file_path: string;
|
|
1201
|
+
id: number;
|
|
1202
|
+
modality: string | null;
|
|
1203
|
+
session_id: number | null;
|
|
1204
|
+
timestamp_observation: string | null;
|
|
1205
|
+
timestamp_observation_end: string;
|
|
1206
|
+
updated_at: string | null;
|
|
1207
|
+
}[];
|
|
1208
|
+
SetofOptions: {
|
|
1209
|
+
from: "*";
|
|
1210
|
+
to: "artifacts";
|
|
1211
|
+
isOneToOne: false;
|
|
1212
|
+
isSetofReturn: true;
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1165
1215
|
get_connectivity_with_coordinates: {
|
|
1166
1216
|
Args: {
|
|
1167
1217
|
session_id_caller: number;
|
|
@@ -1283,6 +1333,36 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1283
1333
|
isSetofReturn: true;
|
|
1284
1334
|
};
|
|
1285
1335
|
};
|
|
1336
|
+
get_events_infinite_by_device: {
|
|
1337
|
+
Args: {
|
|
1338
|
+
cursor_id?: number;
|
|
1339
|
+
cursor_timestamp?: string;
|
|
1340
|
+
device_id_caller: number;
|
|
1341
|
+
limit_caller?: number;
|
|
1342
|
+
};
|
|
1343
|
+
Returns: Database["public"]["CompositeTypes"]["event_and_tags_pretty_location"][];
|
|
1344
|
+
SetofOptions: {
|
|
1345
|
+
from: "*";
|
|
1346
|
+
to: "event_and_tags_pretty_location";
|
|
1347
|
+
isOneToOne: false;
|
|
1348
|
+
isSetofReturn: true;
|
|
1349
|
+
};
|
|
1350
|
+
};
|
|
1351
|
+
get_events_infinite_by_herd: {
|
|
1352
|
+
Args: {
|
|
1353
|
+
cursor_id?: number;
|
|
1354
|
+
cursor_timestamp?: string;
|
|
1355
|
+
herd_id_caller: number;
|
|
1356
|
+
limit_caller?: number;
|
|
1357
|
+
};
|
|
1358
|
+
Returns: Database["public"]["CompositeTypes"]["event_and_tags_pretty_location"][];
|
|
1359
|
+
SetofOptions: {
|
|
1360
|
+
from: "*";
|
|
1361
|
+
to: "event_and_tags_pretty_location";
|
|
1362
|
+
isOneToOne: false;
|
|
1363
|
+
isSetofReturn: true;
|
|
1364
|
+
};
|
|
1365
|
+
};
|
|
1286
1366
|
get_events_with_tags_for_herd: {
|
|
1287
1367
|
Args: {
|
|
1288
1368
|
herd_id_caller: number;
|
|
@@ -1325,6 +1405,45 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1325
1405
|
isSetofReturn: true;
|
|
1326
1406
|
};
|
|
1327
1407
|
};
|
|
1408
|
+
get_session_summaries: {
|
|
1409
|
+
Args: {
|
|
1410
|
+
device_id_caller?: number;
|
|
1411
|
+
end_date_caller?: string;
|
|
1412
|
+
herd_id_caller?: number;
|
|
1413
|
+
start_date_caller?: string;
|
|
1414
|
+
};
|
|
1415
|
+
Returns: import("../types/supabase").Json;
|
|
1416
|
+
};
|
|
1417
|
+
get_sessions_infinite_by_device: {
|
|
1418
|
+
Args: {
|
|
1419
|
+
cursor_id?: number;
|
|
1420
|
+
cursor_timestamp?: string;
|
|
1421
|
+
device_id_caller: number;
|
|
1422
|
+
limit_caller?: number;
|
|
1423
|
+
};
|
|
1424
|
+
Returns: Database["public"]["CompositeTypes"]["session_with_coordinates"][];
|
|
1425
|
+
SetofOptions: {
|
|
1426
|
+
from: "*";
|
|
1427
|
+
to: "session_with_coordinates";
|
|
1428
|
+
isOneToOne: false;
|
|
1429
|
+
isSetofReturn: true;
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1432
|
+
get_sessions_infinite_by_herd: {
|
|
1433
|
+
Args: {
|
|
1434
|
+
cursor_id?: number;
|
|
1435
|
+
cursor_timestamp?: string;
|
|
1436
|
+
herd_id_caller: number;
|
|
1437
|
+
limit_caller?: number;
|
|
1438
|
+
};
|
|
1439
|
+
Returns: Database["public"]["CompositeTypes"]["session_with_coordinates"][];
|
|
1440
|
+
SetofOptions: {
|
|
1441
|
+
from: "*";
|
|
1442
|
+
to: "session_with_coordinates";
|
|
1443
|
+
isOneToOne: false;
|
|
1444
|
+
isSetofReturn: true;
|
|
1445
|
+
};
|
|
1446
|
+
};
|
|
1328
1447
|
get_sessions_with_coordinates: {
|
|
1329
1448
|
Args: {
|
|
1330
1449
|
herd_id_caller: number;
|