@evercam/api 1.0.0-213bdb2b3 → 1.0.0-44d59f453

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.
@@ -185,7 +185,8 @@ export declare enum CameraFeatureFlag {
185
185
  PTZ = "ptz",
186
186
  ObjectDetection = "object_detection",
187
187
  Segmentation = "segmentation",
188
- SegmentationAutoLabelling = "segmentation_auto_labelling"
188
+ SegmentationAutoLabelling = "segmentation_auto_labelling",
189
+ PpeMonitoring = "ppe_monitoring"
189
190
  }
190
191
  export type CameraLogsRequestPayload = {
191
192
  limit: number;
@@ -1,4 +1,4 @@
1
- import { type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
1
+ import { type BoundingBox, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
2
2
  export type DetectionsFilters = {
3
3
  cameraExid: CameraExid;
4
4
  fromDate: string | Date;
@@ -6,7 +6,7 @@ export type DetectionsFilters = {
6
6
  labels: DetectionLabel | DetectionLabel[];
7
7
  trackId?: number;
8
8
  };
9
- export type BBox = [number, number, number, number];
9
+ export type BBox = number[];
10
10
  export type SelectedObjectPath = {
11
11
  label: string;
12
12
  trackId: string;
@@ -32,9 +32,12 @@ export type SegmentsByLabel = Record<SegmentLabel, Segment[]>;
32
32
  export type SegmentPolygonCoords = number[][];
33
33
  export type Segment = {
34
34
  id: number;
35
- mask: SegmentPolygonCoords;
35
+ mask?: SegmentPolygonCoords;
36
36
  label: string;
37
37
  timestamp: string | Date;
38
+ cameraExid?: CameraExid;
39
+ bbox?: BoundingBox;
40
+ area?: number;
38
41
  };
39
42
  export type SegmentSimilarityResult = {
40
43
  distance: number;
@@ -56,7 +59,7 @@ export type CountsParams = {
56
59
  cameraExid: CameraExid;
57
60
  fromDate: string | Date;
58
61
  toDate: string | Date;
59
- precision: TimelinePrecision;
62
+ precision: keyof typeof TimelinePrecision;
60
63
  trackId: number;
61
64
  labels: DetectionLabel | DetectionLabel[];
62
65
  };
@@ -0,0 +1,63 @@
1
+ import { PaginationParams } from "@/types";
2
+ export declare enum HddFormat {
3
+ ExFat = "ExFAT",
4
+ HikFs = "HikFS"
5
+ }
6
+ export declare enum HddType {
7
+ Magnetic35 = "3.5\" Magnetic",
8
+ Magnetic25 = "2.5\" Magnetic",
9
+ Ssd25 = "2.5\" SSD"
10
+ }
11
+ export declare enum HddState {
12
+ Blank = "Blank",
13
+ InUse = "In Use",
14
+ ColdStorage = "Cold Storage"
15
+ }
16
+ export declare enum WarehouseLocationIndex {
17
+ IEWarehouse = 1,
18
+ Deployed = 2,
19
+ CustomerStorage = 3,
20
+ USWarehouse = 4,
21
+ AUWarehouse = 5,
22
+ UKWarehouse = 6
23
+ }
24
+ export declare enum WarehouseLocation {
25
+ IEWarehouse = "IE Warehouse",
26
+ Deployed = "Deployed",
27
+ CustomerStorage = "Customer Storage",
28
+ USWarehouse = "US Warehouse",
29
+ AUWarehouse = "AU Warehouse",
30
+ UKWarehouse = "UK Warehouse"
31
+ }
32
+ export declare enum HddSize {
33
+ TwoTB = "2 TB",
34
+ FourTB = "4 TB",
35
+ FiveTB = "5 TB",
36
+ SixTB = "6 TB",
37
+ EightTB = "8 TB",
38
+ TenTB = "10 TB"
39
+ }
40
+ export type FootageCreateUpdatePayload = {
41
+ cameraId: string;
42
+ startDate: string;
43
+ endDate: string;
44
+ };
45
+ export type HDDCreateUpdatePayload = {
46
+ size: string;
47
+ type: string;
48
+ format: string;
49
+ locationId: string;
50
+ serialNumber: string;
51
+ hddStatus: string;
52
+ shelfBlock: string;
53
+ };
54
+ export type HDDsQueryParams = PaginationParams & {
55
+ id: number;
56
+ location: string;
57
+ serialNumber: string;
58
+ shelfBlock: string;
59
+ format: string;
60
+ size: string;
61
+ type: string;
62
+ hddStatus: string;
63
+ };
@@ -13,6 +13,7 @@ export * from "./devices";
13
13
  export * from "./drone";
14
14
  export * from "./errors";
15
15
  export * from "./gateReport";
16
+ export * from "./hdd";
16
17
  export * from "./ingest";
17
18
  export * from "./map";
18
19
  export * from "./connector";
@@ -27,7 +27,9 @@ export declare enum KitAlarm {
27
27
  NvrOffline = "nvr_offline",
28
28
  UnknownCamera = "unknown_camera",
29
29
  NotRecordingCamera = "not_recording_camera",
30
- OfflineScheduled = "offline_scheduled"
30
+ OfflineScheduled = "offline_scheduled",
31
+ FullSD = "full_sd",
32
+ FullStorage = "full_storage"
31
33
  }
32
34
  export declare enum KitMetricId {
33
35
  BatteryStats = "battery",
@@ -14,7 +14,8 @@ export type Nvr = {
14
14
  export declare enum NvrDeviceType {
15
15
  Rpi4 = "rpi4",
16
16
  Rpi5 = "rpi5",
17
- OrinNano = "orin_nano"
17
+ OrinNano = "orin_nano",
18
+ Giraffe = "giraffe"
18
19
  }
19
20
  export declare enum NvrHddStatus {
20
21
  Error = "error",
@@ -194,7 +194,7 @@ export declare enum PtzDirection {
194
194
  export type MoveParams = {
195
195
  cameraExid: string;
196
196
  direction: PtzDirection;
197
- isRecordingFromNvr: boolean;
197
+ useContinuous: boolean;
198
198
  };
199
199
  export declare enum ZoomDirection {
200
200
  In = "in",
@@ -1,5 +1,84 @@
1
+ import type { BBox, BoundingBox, DetectionLabel } from "@evercam/api/types";
1
2
  export declare enum SiteAnalyticsMode {
2
- Cranes = "cranes",
3
3
  Detections = "detections",
4
4
  Segments = "segments"
5
5
  }
6
+ export type SmartSearchOptionData = {
7
+ id?: string;
8
+ type: SmartSearchQueryComponentType;
9
+ value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData;
10
+ };
11
+ export type SmartSearchQueryPart = SmartSearchOptionData | SmartSearchQueryPart[];
12
+ export declare enum SmartSearchQueryComponentType {
13
+ Condition = "condition",
14
+ Object = "object",
15
+ Area = "in_area",
16
+ Time = "time",
17
+ Operator = "operator"
18
+ }
19
+ export type SmartSearchQueryComponentData = {
20
+ id: string;
21
+ type: SmartSearchQueryComponentType;
22
+ parts: SmartSearchQueryPart[];
23
+ };
24
+ export declare enum SmartSearchCondition {
25
+ InArea = "in_area",
26
+ Intersects = "intersects",
27
+ Time = "time"
28
+ }
29
+ export type SmartSearchConditionData = {
30
+ condition: SmartSearchCondition;
31
+ value: string | BoundingBox | DetectionLabel | Date;
32
+ };
33
+ export type SmartSearchQuery = {
34
+ returnTargets: SmartSearchQueryTargets[];
35
+ rulesLogic: SmartSearchOperatorType;
36
+ rules: {
37
+ logic: SmartSearchOperatorType;
38
+ conditions: {
39
+ type: SmartSearchQueryConditionTypes;
40
+ target: SmartSearchQueryTargets;
41
+ operator?: SmartSearchQueryOperators;
42
+ attribute?: string;
43
+ value: string | number | string[];
44
+ reference?: {
45
+ target: SmartSearchQueryTargets;
46
+ attribute: string;
47
+ value: string | number | string[];
48
+ };
49
+ polygon?: BBox;
50
+ }[];
51
+ }[];
52
+ returnType: SmartSearchQueryReturnType;
53
+ };
54
+ export declare enum SmartSearchQueryTargets {
55
+ Tracking = "tracking",
56
+ Segments = "segments"
57
+ }
58
+ export declare enum SmartSearchQueryReturnType {
59
+ All = "all",
60
+ FirstLastSeen = "first_last_seen"
61
+ }
62
+ export declare enum SmartSearchOperatorType {
63
+ And = "AND",
64
+ Or = "OR"
65
+ }
66
+ export declare enum SmartSearchQueryOperators {
67
+ Near = "near",
68
+ Far = "far",
69
+ Intersects = "intersects",
70
+ DoesNotIntersect = "does_not_intersect",
71
+ Inside = "inside",
72
+ Outside = "outside",
73
+ DistanceBelow = "distance_below",
74
+ DistanceAbove = "distance_above",
75
+ Area = "in_area"
76
+ }
77
+ export declare enum SmartSearchQueryConditionTypes {
78
+ Selection = "selection",
79
+ Spatial = "spatial",
80
+ Area = "area",
81
+ Iou = "iou",
82
+ Near = "near",
83
+ Far = "far"
84
+ }
@@ -3,10 +3,12 @@ export declare enum EMapTypes {
3
3
  Satellite = "Satellite",
4
4
  Street = "Street",
5
5
  GoogleSatellite = "hybrid",
6
- GoogleStreet = "roadmap"
6
+ GoogleStreet = "roadmap",
7
+ GoogleTerrain = "terrain"
7
8
  }
8
9
  export declare enum EMarkers {
9
- CameraMarker = "cameraMarker"
10
+ CameraMarker = "cameraMarker",
11
+ ThreeSixtyMarker = "threeSixtyMarkers"
10
12
  }
11
13
  export declare enum EPageType {
12
14
  List = "list",
@@ -36,6 +36,14 @@ export declare enum TimelapsePeriod {
36
36
  WholeProject = "whole_project",
37
37
  Custom = "custom"
38
38
  }
39
+ export declare enum TimelapseType {
40
+ Hour = "hour",
41
+ Day = "day",
42
+ Week = "week",
43
+ Month = "month",
44
+ Year = "year",
45
+ FullProject = "full_project"
46
+ }
39
47
  export type TimelapseFilterQueryParams = {
40
48
  from?: DateType;
41
49
  to?: DateType;
@@ -1,4 +1,5 @@
1
1
  import type { DateTime } from "@evercam/api/types/time";
2
+ import { PaginationParams } from "@/types";
2
3
  import { VideoWallPresetItemConfig } from "@evercam/api/types/videoWall";
3
4
  export declare enum DelayUnit {
4
5
  Minute = "minute",
@@ -87,11 +88,11 @@ export declare enum WidgetType {
87
88
  BimCompare = "BIM Compare",
88
89
  VideoWall = "Video Wall"
89
90
  }
90
- export declare const RessourceByType: {
91
+ export declare const WidgetTypesByResource: {
91
92
  camera: WidgetType[];
92
93
  project: WidgetType[];
93
94
  };
94
- export type WidgetsListRequestPayload = {
95
+ export type WidgetsListRequestPayload = PaginationParams & {
95
96
  userId: number;
96
97
  projectId: number;
97
98
  cameraId: number;
@@ -123,6 +124,8 @@ export type Widget = {
123
124
  user: {
124
125
  id: number;
125
126
  email: string;
127
+ firstname: string;
128
+ lastname: string;
126
129
  };
127
130
  insertedAt: DateTime;
128
131
  updatedAt: DateTime;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/api",
3
- "version": "1.0.0-213bdb2b3",
3
+ "version": "1.0.0-44d59f453",
4
4
  "description": "Evercam API client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,11 +11,11 @@
11
11
  "private": false,
12
12
  "type": "module",
13
13
  "main": "dist/index.umd.js",
14
- "module": "dist/index.mjs",
14
+ "module": "dist/index.js",
15
15
  "types": "./dist/index.d.ts",
16
16
  "exports": {
17
17
  ".": {
18
- "import": "./dist/index.mjs",
18
+ "import": "./dist/index.js",
19
19
  "require": "./dist/index.umd.js"
20
20
  },
21
21
  "./types": "./dist/src/types.ts"
@@ -36,7 +36,7 @@
36
36
  "publish-api": "cd ../.. && yarn publish-api"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/node": "^22.13.10",
39
+ "@types/node": "^22.14.0",
40
40
  "vite": "latest",
41
41
  "vite-plugin-commonjs": "^0.10.3",
42
42
  "vite-plugin-dts": "^4.5.3"