@evercam/api 1.0.0-641518e8f → 1.0.0-68a5f1f7b

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,6 +1,10 @@
1
1
  import { Date_YYYY_MM_DD, DateType } from "@/types/time";
2
2
  export type HistoryWeatherRequestPayload = {
3
3
  day: string;
4
+ provider: WeatherProvider;
5
+ };
6
+ export type CurrentWeatherRequestPayload = {
7
+ provider: WeatherProvider;
4
8
  };
5
9
  export type WeatherResponsePayload = Array<{
6
10
  hour?: number;
@@ -26,8 +30,8 @@ export type HourlyReading = {
26
30
  "3h"?: number;
27
31
  };
28
32
  export declare enum WeatherProvider {
29
- WeatherStack = "WeatherStack",
30
- AerisWeather = "AerisWeather"
33
+ WeatherStack = "weather_stack",
34
+ XWeather = "xweather"
31
35
  }
32
36
  export type Weatherstatus = {
33
37
  description: string;
@@ -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",
@@ -85,11 +88,11 @@ export declare enum WidgetType {
85
88
  BimCompare = "BIM Compare",
86
89
  VideoWall = "Video Wall"
87
90
  }
88
- export declare const RessourceByType: {
91
+ export declare const WidgetTypesByResource: {
89
92
  camera: WidgetType[];
90
93
  project: WidgetType[];
91
94
  };
92
- export type WidgetsListRequestPayload = {
95
+ export type WidgetsListRequestPayload = PaginationParams & {
93
96
  userId: number;
94
97
  projectId: number;
95
98
  cameraId: number;
@@ -121,6 +124,8 @@ export type Widget = {
121
124
  user: {
122
125
  id: number;
123
126
  email: string;
127
+ firstname: string;
128
+ lastname: string;
124
129
  };
125
130
  insertedAt: DateTime;
126
131
  updatedAt: DateTime;
@@ -0,0 +1,12 @@
1
+ export type XWeatherCreatePayload = {
2
+ stationId: string;
3
+ clientId: string;
4
+ clientSecret: string;
5
+ };
6
+ export type XWeatherResponse = {
7
+ id: number;
8
+ provider: string;
9
+ config: object;
10
+ insertedAt: string;
11
+ updatedAt: string;
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/api",
3
- "version": "1.0.0-641518e8f",
3
+ "version": "1.0.0-68a5f1f7b",
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.10",
39
+ "@types/node": "^24.0.3",
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",