@adventurelabs/scout-core 1.0.33 → 1.0.35
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/events.d.ts +1 -5
- package/dist/helpers/events.js +1 -6
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/types/events.d.ts +5 -0
- package/dist/types/events.js +6 -0
- package/dist/types/herd_module.js +2 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/package.json +2 -2
package/dist/helpers/events.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { IEvent } from "../types/db";
|
|
2
2
|
import { IWebResponseCompatible } from "../types/requests";
|
|
3
|
-
|
|
4
|
-
Only = 0,
|
|
5
|
-
Exclude = 1,
|
|
6
|
-
Combine = 2
|
|
7
|
-
}
|
|
3
|
+
import { EnumSessionsVisibility } from "../types/events";
|
|
8
4
|
export declare function server_get_events_by_herd(herd_id: number, sessions_visibility: EnumSessionsVisibility): Promise<IWebResponseCompatible<IEvent[]>>;
|
|
9
5
|
export declare function server_get_more_events_by_herd(herd_id: number, offset: number, page_count: number | undefined, sessions_visibility: EnumSessionsVisibility): Promise<IWebResponseCompatible<IEvent[]>>;
|
|
10
6
|
export declare function server_get_total_events_by_herd(herd_id: number, sessions_visibility: EnumSessionsVisibility): Promise<IWebResponseCompatible<number>>;
|
package/dist/helpers/events.js
CHANGED
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
import { newServerClient } from "../supabase/server";
|
|
3
3
|
import { EnumWebResponse, IWebResponse, } from "../types/requests";
|
|
4
4
|
import { addSignedUrlsToEvents } from "./storage";
|
|
5
|
-
|
|
6
|
-
(function (EnumSessionsVisibility) {
|
|
7
|
-
EnumSessionsVisibility[EnumSessionsVisibility["Only"] = 0] = "Only";
|
|
8
|
-
EnumSessionsVisibility[EnumSessionsVisibility["Exclude"] = 1] = "Exclude";
|
|
9
|
-
EnumSessionsVisibility[EnumSessionsVisibility["Combine"] = 2] = "Combine";
|
|
10
|
-
})(EnumSessionsVisibility || (EnumSessionsVisibility = {}));
|
|
5
|
+
import { EnumSessionsVisibility } from "../types/events";
|
|
11
6
|
export async function server_get_events_by_herd(herd_id, sessions_visibility) {
|
|
12
7
|
const supabase = await newServerClient();
|
|
13
8
|
// fetch events and include devices
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from "./types/requests";
|
|
|
8
8
|
export * from "./types/gps";
|
|
9
9
|
export * from "./types/supabase";
|
|
10
10
|
export * from "./types/bounding_boxes";
|
|
11
|
+
export * from "./types/events";
|
|
11
12
|
export * from "./helpers/auth";
|
|
12
13
|
export * from "./helpers/bounding_boxes";
|
|
13
14
|
export * from "./helpers/db";
|
|
@@ -39,3 +40,4 @@ export * from "./api_keys/actions";
|
|
|
39
40
|
export type { Database } from "./types/supabase";
|
|
40
41
|
export type { HerdModule, IHerdModule } from "./types/herd_module";
|
|
41
42
|
export type { IDevice, IEvent, IUser, IHerd, IEventWithTags, IZoneWithActions, IUserAndRole, IApiKeyScout, } from "./types/db";
|
|
43
|
+
export { EnumSessionsVisibility } from "./types/events";
|
package/dist/index.js
CHANGED
|
@@ -10,6 +10,7 @@ export * from "./types/requests";
|
|
|
10
10
|
export * from "./types/gps";
|
|
11
11
|
export * from "./types/supabase";
|
|
12
12
|
export * from "./types/bounding_boxes";
|
|
13
|
+
export * from "./types/events";
|
|
13
14
|
// Helpers
|
|
14
15
|
export * from "./helpers/auth";
|
|
15
16
|
export * from "./helpers/bounding_boxes";
|
|
@@ -44,3 +45,4 @@ export * from "./supabase/middleware";
|
|
|
44
45
|
export * from "./supabase/server";
|
|
45
46
|
// API Keys
|
|
46
47
|
export * from "./api_keys/actions";
|
|
48
|
+
export { EnumSessionsVisibility } from "./types/events";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var EnumSessionsVisibility;
|
|
2
|
+
(function (EnumSessionsVisibility) {
|
|
3
|
+
EnumSessionsVisibility[EnumSessionsVisibility["Only"] = 0] = "Only";
|
|
4
|
+
EnumSessionsVisibility[EnumSessionsVisibility["Exclude"] = 1] = "Exclude";
|
|
5
|
+
EnumSessionsVisibility[EnumSessionsVisibility["Combine"] = 2] = "Combine";
|
|
6
|
+
})(EnumSessionsVisibility || (EnumSessionsVisibility = {}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LABELS } from "../constants/annotator";
|
|
2
2
|
import { get_devices_by_herd } from "../helpers/devices";
|
|
3
|
-
import {
|
|
3
|
+
import { server_get_total_events_by_herd } from "../helpers/events";
|
|
4
|
+
import { EnumSessionsVisibility } from "./events";
|
|
4
5
|
import { server_get_plans_by_herd } from "../helpers/plans";
|
|
5
6
|
import { server_get_events_and_tags_for_device } from "../helpers/tags";
|
|
6
7
|
import { server_get_users_with_herd_access } from "../helpers/users";
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adventurelabs/scout-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.35",
|
|
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",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"license": "GPL-3.0",
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
29
|
-
"url": "https://github.com/Adventurous-Bytes/scout.git"
|
|
29
|
+
"url": "git+https://github.com/Adventurous-Bytes/scout.git"
|
|
30
30
|
},
|
|
31
31
|
"bugs": {
|
|
32
32
|
"url": "https://github.com/Adventurous-Bytes/scout/issues"
|