@adventurelabs/scout-core 1.2.5 → 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.
@@ -583,8 +583,7 @@ export type Database = {
583
583
  description: string | null;
584
584
  herd_id: number;
585
585
  id: number;
586
- latitude: unknown;
587
- longitude: unknown;
586
+ location: unknown;
588
587
  name: string;
589
588
  };
590
589
  Insert: {
@@ -595,8 +594,7 @@ export type Database = {
595
594
  description?: string | null;
596
595
  herd_id: number;
597
596
  id?: number;
598
- latitude: unknown;
599
- longitude: unknown;
597
+ location?: unknown;
600
598
  name: string;
601
599
  };
602
600
  Update: {
@@ -607,8 +605,7 @@ export type Database = {
607
605
  description?: string | null;
608
606
  herd_id?: number;
609
607
  id?: number;
610
- latitude?: unknown;
611
- longitude?: unknown;
608
+ location?: unknown;
612
609
  name?: string;
613
610
  };
614
611
  Relationships: [
@@ -1220,6 +1217,56 @@ export type Database = {
1220
1217
  isSetofReturn: true;
1221
1218
  };
1222
1219
  };
1220
+ get_artifacts_infinite_by_device: {
1221
+ Args: {
1222
+ cursor_id?: number;
1223
+ cursor_timestamp?: string;
1224
+ device_id_caller: number;
1225
+ limit_caller?: number;
1226
+ };
1227
+ Returns: {
1228
+ created_at: string;
1229
+ device_id: number;
1230
+ file_path: string;
1231
+ id: number;
1232
+ modality: string | null;
1233
+ session_id: number | null;
1234
+ timestamp_observation: string | null;
1235
+ timestamp_observation_end: string;
1236
+ updated_at: string | null;
1237
+ }[];
1238
+ SetofOptions: {
1239
+ from: "*";
1240
+ to: "artifacts";
1241
+ isOneToOne: false;
1242
+ isSetofReturn: true;
1243
+ };
1244
+ };
1245
+ get_artifacts_infinite_by_herd: {
1246
+ Args: {
1247
+ cursor_id?: number;
1248
+ cursor_timestamp?: string;
1249
+ herd_id_caller: number;
1250
+ limit_caller?: number;
1251
+ };
1252
+ Returns: {
1253
+ created_at: string;
1254
+ device_id: number;
1255
+ file_path: string;
1256
+ id: number;
1257
+ modality: string | null;
1258
+ session_id: number | null;
1259
+ timestamp_observation: string | null;
1260
+ timestamp_observation_end: string;
1261
+ updated_at: string | null;
1262
+ }[];
1263
+ SetofOptions: {
1264
+ from: "*";
1265
+ to: "artifacts";
1266
+ isOneToOne: false;
1267
+ isSetofReturn: true;
1268
+ };
1269
+ };
1223
1270
  get_connectivity_with_coordinates: {
1224
1271
  Args: {
1225
1272
  session_id_caller: number;
@@ -1341,6 +1388,36 @@ export type Database = {
1341
1388
  isSetofReturn: true;
1342
1389
  };
1343
1390
  };
1391
+ get_events_infinite_by_device: {
1392
+ Args: {
1393
+ cursor_id?: number;
1394
+ cursor_timestamp?: string;
1395
+ device_id_caller: number;
1396
+ limit_caller?: number;
1397
+ };
1398
+ Returns: Database["public"]["CompositeTypes"]["event_and_tags_pretty_location"][];
1399
+ SetofOptions: {
1400
+ from: "*";
1401
+ to: "event_and_tags_pretty_location";
1402
+ isOneToOne: false;
1403
+ isSetofReturn: true;
1404
+ };
1405
+ };
1406
+ get_events_infinite_by_herd: {
1407
+ Args: {
1408
+ cursor_id?: number;
1409
+ cursor_timestamp?: string;
1410
+ herd_id_caller: number;
1411
+ limit_caller?: number;
1412
+ };
1413
+ Returns: Database["public"]["CompositeTypes"]["event_and_tags_pretty_location"][];
1414
+ SetofOptions: {
1415
+ from: "*";
1416
+ to: "event_and_tags_pretty_location";
1417
+ isOneToOne: false;
1418
+ isSetofReturn: true;
1419
+ };
1420
+ };
1344
1421
  get_events_with_tags_for_herd: {
1345
1422
  Args: {
1346
1423
  herd_id_caller: number;
@@ -1383,6 +1460,45 @@ export type Database = {
1383
1460
  isSetofReturn: true;
1384
1461
  };
1385
1462
  };
1463
+ get_session_summaries: {
1464
+ Args: {
1465
+ device_id_caller?: number;
1466
+ end_date_caller?: string;
1467
+ herd_id_caller?: number;
1468
+ start_date_caller?: string;
1469
+ };
1470
+ Returns: Json;
1471
+ };
1472
+ get_sessions_infinite_by_device: {
1473
+ Args: {
1474
+ cursor_id?: number;
1475
+ cursor_timestamp?: string;
1476
+ device_id_caller: number;
1477
+ limit_caller?: number;
1478
+ };
1479
+ Returns: Database["public"]["CompositeTypes"]["session_with_coordinates"][];
1480
+ SetofOptions: {
1481
+ from: "*";
1482
+ to: "session_with_coordinates";
1483
+ isOneToOne: false;
1484
+ isSetofReturn: true;
1485
+ };
1486
+ };
1487
+ get_sessions_infinite_by_herd: {
1488
+ Args: {
1489
+ cursor_id?: number;
1490
+ cursor_timestamp?: string;
1491
+ herd_id_caller: number;
1492
+ limit_caller?: number;
1493
+ };
1494
+ Returns: Database["public"]["CompositeTypes"]["session_with_coordinates"][];
1495
+ SetofOptions: {
1496
+ from: "*";
1497
+ to: "session_with_coordinates";
1498
+ isOneToOne: false;
1499
+ isSetofReturn: true;
1500
+ };
1501
+ };
1386
1502
  get_sessions_with_coordinates: {
1387
1503
  Args: {
1388
1504
  herd_id_caller: number;
@@ -1605,6 +1721,7 @@ export type Database = {
1605
1721
  pins_pretty_location: {
1606
1722
  id: number | null;
1607
1723
  created_at: string | null;
1724
+ location: unknown;
1608
1725
  altitude_relative_to_ground: number | null;
1609
1726
  color: string | null;
1610
1727
  name: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adventurelabs/scout-core",
3
- "version": "1.2.5",
3
+ "version": "1.3.1",
4
4
  "description": "Core utilities and helpers for Adventure Labs Scout applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",