@evercam/api 1.0.0-f6f982c6c → 1.0.0-f74a37c7f

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.
@@ -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
+ }
@@ -110,8 +110,7 @@ export type ExNvrSystemStatus = {
110
110
  };
111
111
  export declare enum ExNvrMetricId {
112
112
  CpuLoad = "cpu_load",
113
- RamUsage = "ram_usage",
114
- SwapUsage = "swap_usage"
113
+ RamUsage = "ram_usage"
115
114
  }
116
115
  export type ExNvrMetric = KitMetricData & {
117
116
  metricId: ExNvrMetricId;
@@ -0,0 +1,12 @@
1
+ import { Kit } from "@/types/kit";
2
+ export type Tag<T = string> = {
3
+ id?: number;
4
+ name: T;
5
+ description?: string;
6
+ createdAt?: string;
7
+ updatedAt?: string;
8
+ };
9
+ export type KitTag = {
10
+ kit: Kit;
11
+ tag: Tag;
12
+ };
@@ -15,6 +15,13 @@ export type TimelapseVideoOptions = {
15
15
  removeTimestamp: boolean;
16
16
  smoothTransition: boolean;
17
17
  evercamWatermark: boolean;
18
+ timestampPosition?: TimestampPositionCoordinates;
19
+ };
20
+ export type TimestampPositionCoordinates = {
21
+ x: number;
22
+ y: number;
23
+ w: number;
24
+ h: number;
18
25
  };
19
26
  export type TimelapseLogoOptions = {
20
27
  id: number;
@@ -36,6 +43,14 @@ export declare enum TimelapsePeriod {
36
43
  WholeProject = "whole_project",
37
44
  Custom = "custom"
38
45
  }
46
+ export declare enum TimelapseType {
47
+ Hour = "hour",
48
+ Day = "day",
49
+ Week = "week",
50
+ Month = "month",
51
+ Year = "year",
52
+ FullProject = "full_project"
53
+ }
39
54
  export type TimelapseFilterQueryParams = {
40
55
  from?: DateType;
41
56
  to?: DateType;
@@ -1,9 +1,10 @@
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
- Minute = "minute",
5
- Hour = "hour",
6
- Day = "day"
5
+ Minute = "Minutes",
6
+ Hour = "Hours",
7
+ Day = "Days"
7
8
  }
8
9
  export declare enum CommonWidgetSettingsKeys {
9
10
  Width = "width",
@@ -17,6 +18,8 @@ export declare enum RecordingsWidgetSettingsKeys {
17
18
  HasDelay = "hasDelay",
18
19
  Delay = "delay",
19
20
  DelayUnit = "delayUnit",
21
+ HasRange = "hasRange",
22
+ DateRange = "dateRange",
20
23
  Width = "width",
21
24
  WidthResolution = "resolution",
22
25
  Height = "height",
@@ -35,6 +38,7 @@ export declare enum LiveViewWidgetSettingsKeys {
35
38
  }
36
39
  export declare enum BimCompareWidgetSettingsKeys {
37
40
  Timeline = "timeline",
41
+ Calendar = "calendar",
38
42
  DarkMode = "darkMode",
39
43
  Width = "width",
40
44
  WidthResolution = "resolution",
@@ -84,11 +88,11 @@ export declare enum WidgetType {
84
88
  BimCompare = "BIM Compare",
85
89
  VideoWall = "Video Wall"
86
90
  }
87
- export declare const RessourceByType: {
91
+ export declare const WidgetTypesByResource: {
88
92
  camera: WidgetType[];
89
93
  project: WidgetType[];
90
94
  };
91
- export type WidgetsListRequestPayload = {
95
+ export type WidgetsListRequestPayload = PaginationParams & {
92
96
  userId: number;
93
97
  projectId: number;
94
98
  cameraId: number;
@@ -120,6 +124,8 @@ export type Widget = {
120
124
  user: {
121
125
  id: number;
122
126
  email: string;
127
+ firstname: string;
128
+ lastname: string;
123
129
  };
124
130
  insertedAt: DateTime;
125
131
  updatedAt: DateTime;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/api",
3
- "version": "1.0.0-f6f982c6c",
3
+ "version": "1.0.0-f74a37c7f",
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,10 +36,10 @@
36
36
  "publish-api": "cd ../.. && yarn publish-api"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/node": "^22.13.8",
39
+ "@types/node": "^22.15.29",
40
40
  "vite": "latest",
41
41
  "vite-plugin-commonjs": "^0.10.3",
42
- "vite-plugin-dts": "^4.5.3"
42
+ "vite-plugin-dts": "^4.5.4"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "axios": "^1.7.7",