@evercam/api 1.0.0-df20a9f5f → 1.0.0-e03adefb8
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/README.md +2 -0
- package/dist/api/{3dFirebaseApi.d.ts → api/3dFirebaseApi.d.ts} +2 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +29 -23
- package/dist/api/api/aiApi.d.ts +143 -0
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +3 -2
- package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +50 -16
- package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +6 -10
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/{ingestApi.d.ts → api/ingestApi.d.ts} +8 -5
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/{types → api/types}/360.d.ts +8 -2
- package/dist/{types → api/types}/aconex.d.ts +1 -1
- package/dist/{types → api/types}/analytics.d.ts +65 -68
- package/dist/{types → api/types}/anpr.d.ts +11 -6
- package/dist/{types → api/types}/automation.d.ts +4 -0
- package/dist/{types → api/types}/axios.d.ts +1 -1
- package/dist/{types → api/types}/camera.d.ts +10 -53
- package/dist/{types → api/types}/comments.d.ts +15 -8
- package/dist/{types → api/types}/connector.d.ts +6 -1
- package/dist/api/types/coolify.d.ts +18 -0
- package/dist/{types → api/types}/copilot.d.ts +9 -8
- package/dist/{types → api/types}/detections.d.ts +61 -7
- package/dist/{types → api/types}/errors.d.ts +12 -0
- package/dist/{types → api/types}/index.d.ts +6 -2
- package/dist/{types → api/types}/ingest.d.ts +4 -0
- package/dist/{types → api/types}/kit.d.ts +35 -4
- package/dist/{types/sitePlanner.d.ts → api/types/planner.d.ts} +8 -2
- package/dist/api/types/posthog.d.ts +18 -0
- package/dist/api/types/procore.d.ts +219 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +2 -0
- package/dist/{types → api/types}/project.d.ts +9 -1
- package/dist/{types → api/types}/recording.d.ts +1 -2
- package/dist/{types → api/types}/roi.d.ts +2 -1
- package/dist/{types → api/types}/routeParams.d.ts +2 -1
- package/dist/{types → api/types}/shared.d.ts +1 -10
- package/dist/{types → api/types}/shares.d.ts +5 -1
- package/dist/api/types/siteAnalytics.d.ts +141 -0
- package/dist/{types → api/types}/streaming.d.ts +2 -23
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/{types → api/types}/time.d.ts +2 -0
- package/dist/{types → api/types}/timelapse.d.ts +15 -0
- package/dist/{types → api/types}/user.d.ts +1 -6
- package/dist/{types → api/types}/weather.d.ts +6 -2
- package/dist/{types → api/types}/widget.d.ts +4 -4
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +966 -738
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +184 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/timeline.d.ts +9 -0
- package/package.json +5 -5
- package/dist/api/aiApi.d.ts +0 -86
- package/dist/api/weatherApi.d.ts +0 -25
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/siteAnalytics.d.ts +0 -85
- /package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +0 -0
- /package/dist/api/{client → api/client}/axios.d.ts +0 -0
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +0 -0
- /package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +0 -0
- /package/dist/api/{videoWallApi.d.ts → api/videoWallApi.d.ts} +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/auditLogs.d.ts +0 -0
- /package/dist/{types → api/types}/autodesk.d.ts +0 -0
- /package/dist/{types → api/types}/bim.d.ts +0 -0
- /package/dist/{types → api/types}/company.d.ts +0 -0
- /package/dist/{types → api/types}/compare.d.ts +0 -0
- /package/dist/{types → api/types}/countries.d.ts +0 -0
- /package/dist/{types → api/types}/credentials.d.ts +0 -0
- /package/dist/{types → api/types}/drone.d.ts +0 -0
- /package/dist/{types → api/types}/gateReport.d.ts +0 -0
- /package/dist/{types → api/types}/hdd.d.ts +0 -0
- /package/dist/{types → api/types}/map.d.ts +0 -0
- /package/dist/{types → api/types}/media.d.ts +0 -0
- /package/dist/{types → api/types}/notification.d.ts +0 -0
- /package/dist/{types → api/types}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/router.d.ts +0 -0
- /package/dist/{types → api/types}/sim.d.ts +0 -0
- /package/dist/{types → api/types}/snapshots.d.ts +0 -0
- /package/dist/{types → api/types}/storageServers.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/videoWall.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
- /package/dist/{utils.d.ts → api/utils.d.ts} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TimelineCountEvent, TimelineEvent } from "@evercam/ui";
|
|
2
|
+
import { CameraExid, ProjectExid, TimelineDateInterval, TimelineProviderRequestParams } from "@evercam/shared/types";
|
|
3
|
+
import { TimelineDataProvider } from "./timelineDataProvider";
|
|
4
|
+
export declare class TimelineAnprProvider extends TimelineDataProvider {
|
|
5
|
+
readonly projectExid: ProjectExid;
|
|
6
|
+
readonly cameraExid: CameraExid;
|
|
7
|
+
readonly token: string;
|
|
8
|
+
constructor(params: {
|
|
9
|
+
timezone: string;
|
|
10
|
+
projectExid: ProjectExid;
|
|
11
|
+
cameraExid: CameraExid;
|
|
12
|
+
token: string;
|
|
13
|
+
});
|
|
14
|
+
fetchEvents({ fromDate, toDate, }: TimelineDateInterval): Promise<Array<TimelineEvent>>;
|
|
15
|
+
fetchCounts({ fromDate, toDate, precision, }: TimelineProviderRequestParams): Promise<Array<TimelineCountEvent>>;
|
|
16
|
+
private getFormattedPlateNumber;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type TimelineCountEvent, type TimelineEvent, type TimelineRangeEvent } from "@evercam/ui";
|
|
2
|
+
import { type TimelineDateInterval, TimelinePrecision, type TimelineProviderRequestParams } from "@evercam/shared/types";
|
|
3
|
+
export declare abstract class TimelineDataProvider {
|
|
4
|
+
protected timezone: string;
|
|
5
|
+
constructor(timezone: string);
|
|
6
|
+
fetch(params: TimelineProviderRequestParams): Promise<Array<TimelineEvent>>;
|
|
7
|
+
protected abstract fetchEvents(params: TimelineProviderRequestParams): Promise<Array<TimelineEvent>>;
|
|
8
|
+
protected abstract fetchCounts(params: TimelineProviderRequestParams): Promise<Array<TimelineCountEvent | TimelineRangeEvent>>;
|
|
9
|
+
formatTimestamp(date: string, format?: string): string;
|
|
10
|
+
processResponseIntervals(intervals: TimelineDateInterval[], precision: TimelinePrecision): TimelineRangeEvent[];
|
|
11
|
+
private convertAndRoundIntervals;
|
|
12
|
+
private groupAdjacentIntervals;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type TimelineCountEvent, type TimelineEvent } from "@evercam/ui";
|
|
2
|
+
import { type CameraExid, type ProjectExid, type TimelineDateInterval, type TimelineProviderRequestParams } from "@evercam/shared/types";
|
|
3
|
+
import { TimelineDataProvider } from "./timelineDataProvider";
|
|
4
|
+
export declare class TimelineLuminanceProvider extends TimelineDataProvider {
|
|
5
|
+
readonly projectExid: ProjectExid;
|
|
6
|
+
readonly cameraExid: CameraExid;
|
|
7
|
+
readonly token: string;
|
|
8
|
+
constructor(params: {
|
|
9
|
+
timezone: string;
|
|
10
|
+
projectExid: ProjectExid;
|
|
11
|
+
cameraExid: CameraExid;
|
|
12
|
+
token: string;
|
|
13
|
+
});
|
|
14
|
+
fetchEvents({ fromDate, toDate, }: TimelineDateInterval): Promise<Array<TimelineEvent>>;
|
|
15
|
+
fetchCounts({ fromDate, toDate, }: TimelineProviderRequestParams): Promise<Array<TimelineCountEvent>>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { type _360Scene, type Media, type DroneModel, type MobileCaptureSnapshot, type TimelineDateInterval, type TimelinePrecision, type Comment, TaskStatus, Tag } from "@evercam/api/types";
|
|
2
|
+
import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
|
|
3
|
+
import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
|
|
4
|
+
export declare enum WatermarkedImageDownloadOrigin {
|
|
5
|
+
Drone = "drone",
|
|
6
|
+
Bim = "BIM",
|
|
7
|
+
Snapshot = "snapshot",
|
|
8
|
+
The360 = "360",
|
|
9
|
+
Planner = "Planner"
|
|
10
|
+
}
|
|
11
|
+
export declare enum PlayerMode {
|
|
12
|
+
Video = "video",
|
|
13
|
+
Jpegs = "jpegs"
|
|
14
|
+
}
|
|
15
|
+
export type TasksStatusMap = {
|
|
16
|
+
[key: string]: TaskStatus;
|
|
17
|
+
};
|
|
18
|
+
export type TaskProgressItem = {
|
|
19
|
+
status: TaskStatus;
|
|
20
|
+
description: string;
|
|
21
|
+
percentDone?: number;
|
|
22
|
+
duration?: number;
|
|
23
|
+
};
|
|
24
|
+
export type GlobalSearchMatch = {
|
|
25
|
+
path: Array<string>;
|
|
26
|
+
value: string | number | boolean;
|
|
27
|
+
};
|
|
28
|
+
export type GlobalSearchResult = {
|
|
29
|
+
index: number;
|
|
30
|
+
matches: Array<GlobalSearchMatch>;
|
|
31
|
+
};
|
|
32
|
+
export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
|
|
33
|
+
export type TimelineProviderRequestParams = TimelineDateInterval & {
|
|
34
|
+
precision?: TimelinePrecision;
|
|
35
|
+
labels?: string[];
|
|
36
|
+
trackId?: number;
|
|
37
|
+
};
|
|
38
|
+
export type TimelinePlayerGroupConfig = {
|
|
39
|
+
provider?: TimelineDataProvider;
|
|
40
|
+
events?: Array<TimelineEvent>;
|
|
41
|
+
getChartType?: (precision: TimelinePrecision) => TimelineChartType;
|
|
42
|
+
} & Omit<TimelineEventsGroup, "events">;
|
|
43
|
+
export type TimelinePlayerConfig = {
|
|
44
|
+
[groupName: string]: TimelinePlayerGroupConfig;
|
|
45
|
+
};
|
|
46
|
+
export type TimelinePlayerTooltipItem = {
|
|
47
|
+
label?: string;
|
|
48
|
+
title?: string;
|
|
49
|
+
thumbnailUrl: string;
|
|
50
|
+
placeholderThumbnailUrl?: string;
|
|
51
|
+
fallbackThumbnailUrl?: string;
|
|
52
|
+
};
|
|
53
|
+
export declare enum TimelineGroupId {
|
|
54
|
+
ThreeSixty = "w360",
|
|
55
|
+
Drone = "drone",
|
|
56
|
+
Bim = "bim",
|
|
57
|
+
Media = "media",
|
|
58
|
+
Comments = "comments",
|
|
59
|
+
Anpr = "anpr",
|
|
60
|
+
MobileCapture = "mobileCapture",
|
|
61
|
+
ExNvrRecordings = "exNvrRecordings",
|
|
62
|
+
Luminance = "luminance",
|
|
63
|
+
ObjectInspector = "objectInspector"
|
|
64
|
+
}
|
|
65
|
+
export type TimelineOverlayType = TimelineGroupId.ThreeSixty | TimelineGroupId.Drone | TimelineGroupId.Media | TimelineGroupId.MobileCapture | TimelineGroupId.Bim | TimelineGroupId.Comments | "compare";
|
|
66
|
+
export type TimelineOverlayData<T extends TimelineOverlayType> = T extends TimelineGroupId.ThreeSixty ? _360Scene : T extends TimelineGroupId.Drone ? DroneModel : T extends TimelineGroupId.Media ? Media : T extends TimelineGroupId.MobileCapture ? MobileCaptureSnapshot : T extends TimelineGroupId.Comments ? Comment : never;
|
|
67
|
+
export declare enum TimelineMarkerId {
|
|
68
|
+
Xray = "xray",
|
|
69
|
+
CurrentSnapshot = "current",
|
|
70
|
+
CompareBeforeSnapshot = "compareBefore",
|
|
71
|
+
CompareAfterSnapshot = "compareAfter",
|
|
72
|
+
ObjectInspectorFirstSeen = "firstSeen",
|
|
73
|
+
ObjectInspectorLastSeen = "lastSeen"
|
|
74
|
+
}
|
|
75
|
+
export type TimelineMediaHubItemsByType = {
|
|
76
|
+
clip?: Media[];
|
|
77
|
+
compare?: Media[];
|
|
78
|
+
edit?: Media[];
|
|
79
|
+
timelapse?: Media[];
|
|
80
|
+
xRay?: Media[];
|
|
81
|
+
};
|
|
82
|
+
export declare enum HighchartsStackingBehavior {
|
|
83
|
+
Overlap = "overlap",
|
|
84
|
+
Normal = "normal",
|
|
85
|
+
Percent = "percent",
|
|
86
|
+
Stream = "stream"
|
|
87
|
+
}
|
|
88
|
+
export declare enum LeaderLinePlugType {
|
|
89
|
+
Disc = "disc",
|
|
90
|
+
Square = "square",
|
|
91
|
+
Arrow1 = "arrow1",
|
|
92
|
+
Arrow2 = "arrow2",
|
|
93
|
+
Arrow3 = "arrow3",
|
|
94
|
+
Hand = "hand",
|
|
95
|
+
CrossHair = "crosshair",
|
|
96
|
+
Behind = "behind"
|
|
97
|
+
}
|
|
98
|
+
export declare enum LeaderLinesPathType {
|
|
99
|
+
Straight = "straight",
|
|
100
|
+
Arc = "arc",
|
|
101
|
+
Fluid = "fluid",
|
|
102
|
+
Magnet = "magnet",
|
|
103
|
+
Grid = "grid"
|
|
104
|
+
}
|
|
105
|
+
export declare enum LeaderLinesSocketPosition {
|
|
106
|
+
Top = "top",
|
|
107
|
+
Right = "right",
|
|
108
|
+
Bottom = "bottom",
|
|
109
|
+
Left = "left",
|
|
110
|
+
Auto = "auto"
|
|
111
|
+
}
|
|
112
|
+
export type LeaderLineOptions = {
|
|
113
|
+
startSocket?: LeaderLinesSocketPosition;
|
|
114
|
+
endSocket?: LeaderLinesSocketPosition;
|
|
115
|
+
color?: string | ((element: any) => string);
|
|
116
|
+
size?: number;
|
|
117
|
+
startPlug?: LeaderLinePlugType;
|
|
118
|
+
endPlug?: LeaderLinePlugType;
|
|
119
|
+
startPlugSize?: number;
|
|
120
|
+
endPlugSize?: number;
|
|
121
|
+
path?: LeaderLinesPathType;
|
|
122
|
+
startSocketGravity?: [number, number];
|
|
123
|
+
endSocketGravity?: [number, number];
|
|
124
|
+
dash?: {
|
|
125
|
+
animation: boolean | {
|
|
126
|
+
duration: number;
|
|
127
|
+
};
|
|
128
|
+
} | ((element: any) => {
|
|
129
|
+
animation: boolean | {
|
|
130
|
+
duration: number;
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
export type CssSelector = string;
|
|
135
|
+
export type LineConfig = {
|
|
136
|
+
start: CssSelector | CssSelector[];
|
|
137
|
+
end: CssSelector | CssSelector[];
|
|
138
|
+
options?: LeaderLineOptions;
|
|
139
|
+
};
|
|
140
|
+
export type Point = {
|
|
141
|
+
x: number;
|
|
142
|
+
y: number;
|
|
143
|
+
};
|
|
144
|
+
export declare enum ZohoDeskTicketStatus {
|
|
145
|
+
Closed = "Closed",
|
|
146
|
+
OnHold = "On Hold",
|
|
147
|
+
Open = "Open"
|
|
148
|
+
}
|
|
149
|
+
export type TagSelectorItem = Tag & {
|
|
150
|
+
isExcluded?: boolean;
|
|
151
|
+
};
|
|
152
|
+
export declare enum FormSchemaComponents {
|
|
153
|
+
SelectField = "SelectField",
|
|
154
|
+
MultiOption = "MultiOption",
|
|
155
|
+
TextField = "TextField",
|
|
156
|
+
CheckBox = "SwitchField",
|
|
157
|
+
DateTime = "DatePickerInput",
|
|
158
|
+
TextArea = "Textarea",
|
|
159
|
+
Search = "Autocomplete",
|
|
160
|
+
ReadOnly = "ReadOnly"
|
|
161
|
+
}
|
|
162
|
+
export declare enum FormSchemaDataType {
|
|
163
|
+
String = "string",
|
|
164
|
+
Number = "number",
|
|
165
|
+
Boolean = "boolean",
|
|
166
|
+
Date = "date"
|
|
167
|
+
}
|
|
168
|
+
export type FormSchemaOptions = {
|
|
169
|
+
title: string;
|
|
170
|
+
value: string;
|
|
171
|
+
};
|
|
172
|
+
export type FormSchemaField = {
|
|
173
|
+
id: string;
|
|
174
|
+
component: FormSchemaComponents;
|
|
175
|
+
required?: boolean;
|
|
176
|
+
name: string;
|
|
177
|
+
options?: FormSchemaOptions[];
|
|
178
|
+
disabled?: boolean;
|
|
179
|
+
dataType: FormSchemaDataType;
|
|
180
|
+
multiple?: boolean;
|
|
181
|
+
defaultValue?: any;
|
|
182
|
+
columns?: number;
|
|
183
|
+
};
|
|
184
|
+
export type FormSchema = Array<FormSchemaField>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Timestamp } from "@evercam/api/types";
|
|
2
|
+
export interface Frame {
|
|
3
|
+
label: string;
|
|
4
|
+
src: string;
|
|
5
|
+
srcSet?: SrcSet;
|
|
6
|
+
timestamp: Timestamp;
|
|
7
|
+
}
|
|
8
|
+
export interface InfoText {
|
|
9
|
+
index: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}
|
|
12
|
+
export type EventMarker<T extends {}> = T & {
|
|
13
|
+
label: string;
|
|
14
|
+
thumbnailUrl: string;
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
cssClass?: Object | string;
|
|
17
|
+
};
|
|
18
|
+
export type SnapshotEvent<T extends {}> = T & {
|
|
19
|
+
eventTime: Timestamp;
|
|
20
|
+
};
|
|
21
|
+
export type MatchedSnapshotEvent<T extends {}> = SnapshotEvent<T> & {
|
|
22
|
+
frameIndex: number;
|
|
23
|
+
snapshotTimestamp: Timestamp;
|
|
24
|
+
};
|
|
25
|
+
export declare enum ImageQuality {
|
|
26
|
+
ThureeSixty = "360",
|
|
27
|
+
FourEighty = "480",
|
|
28
|
+
SevenTwenty = "720",
|
|
29
|
+
OneZeroEightZero = "1080",
|
|
30
|
+
Auto = "auto"
|
|
31
|
+
}
|
|
32
|
+
export type SrcSet = {
|
|
33
|
+
[q in ImageQuality]: string;
|
|
34
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TimelineGroupId, type TimelinePlayerGroupConfig } from "@evercam/shared/types/components";
|
|
2
|
+
export interface TimelineGroup {
|
|
3
|
+
id: TimelineGroupId;
|
|
4
|
+
timelineConfig: TimelinePlayerGroupConfig | Record<string, TimelinePlayerGroupConfig>;
|
|
5
|
+
isVisible: boolean;
|
|
6
|
+
isDisabled: boolean;
|
|
7
|
+
isRestricted?: boolean;
|
|
8
|
+
hasMultipleGroups?: boolean;
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evercam/api",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-e03adefb8",
|
|
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.
|
|
14
|
+
"module": "dist/index.js",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"import": "./dist/index.
|
|
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": "^
|
|
39
|
+
"@types/node": "^24.2.1",
|
|
40
40
|
"vite": "latest",
|
|
41
41
|
"vite-plugin-commonjs": "^0.10.3",
|
|
42
|
-
"vite-plugin-dts": "^4.5.
|
|
42
|
+
"vite-plugin-dts": "^4.5.4"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"axios": "^1.7.7",
|
package/dist/api/aiApi.d.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import type { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, EventsRequestPayload, EventsResponsePayload, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, AnalyticsParameters, VerifiedDaysQueryParams, EventUpdateRequestPayload, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, GateReportEventType, DateTime, RoisQueryParams, GateReportROICreateRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, CountsParams, DetectionsPresenceByLabel } from "@evercam/api/types";
|
|
2
|
-
import type { AxiosPromise, AxiosRequestConfig } from "axios";
|
|
3
|
-
export declare const getAiApiUrl: () => string | null | undefined;
|
|
4
|
-
export declare const AiApi: {
|
|
5
|
-
analyticsParameters: {
|
|
6
|
-
getParameters(cameraId: CameraExid, params?: Record<string, unknown>): Promise<AnalyticsParameters>;
|
|
7
|
-
createParameters(params: Omit<AnalyticsParameters, "id">): Promise<AnalyticsParameters>;
|
|
8
|
-
updateParameters({ updatedBy, id, ...payload }: Partial<AnalyticsParameters> & {
|
|
9
|
-
updatedBy: string;
|
|
10
|
-
}): Promise<AnalyticsParameters>;
|
|
11
|
-
};
|
|
12
|
-
anpr: {
|
|
13
|
-
exportAnprLegacyEvents(projectExid: ProjectExid, params: AnprQueryParams): AxiosPromise<any>;
|
|
14
|
-
getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams): Promise<PaginatedItems<AnprEvent>>;
|
|
15
|
-
getAnprCounts(projectExid: ProjectExid, payload: AnprCountsQueryParams): Promise<AnprCount[]>;
|
|
16
|
-
updateAnprEvent(anprEventId: string, eventBody: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
17
|
-
bulkUpdateAnprRecords(anprEventsIds: number[], action: "is_plate" | "not_plate" | "is_duplicate" | "not_duplicate"): Promise<import("axios").AxiosResponse<any, any>>;
|
|
18
|
-
exportAnprEvents(projectExid: string, params: AnprBasedGateReportExportRequestParams): AxiosPromise<string>;
|
|
19
|
-
};
|
|
20
|
-
gateReport: {
|
|
21
|
-
getGateReportProjects(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
|
-
getLastVerified(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
-
deleteEvent(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
|
-
dismissEvents(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
25
|
-
exportEvents(projectExid: string, params: EventsExportRequestParameters): AxiosPromise<any>;
|
|
26
|
-
exportEventsProgress(projectExid: string, params: {
|
|
27
|
-
exportDate: string;
|
|
28
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
-
getAllEvents(projectExid: ProjectExid, params: EventsRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventsResponsePayload>;
|
|
30
|
-
getEventCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
31
|
-
getVerifiedDays(projectExid: ProjectExid, params: Partial<VerifiedDaysQueryParams>, extraParams?: {}): Promise<PaginatedItems<GateReportVerifiedDay>>;
|
|
32
|
-
updateEventById(eventId: number, { updatedBy, payload, }: {
|
|
33
|
-
updatedBy: string;
|
|
34
|
-
payload: Partial<EventUpdateRequestPayload>;
|
|
35
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
36
|
-
verifyDay(params: VerifyDayUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
|
-
regenerateThumbnail(id: number, params: {
|
|
38
|
-
cameraExid: string;
|
|
39
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
40
|
-
getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
41
|
-
getEventThumbnail({ cameraExid, eventType, eventTime, token, }: {
|
|
42
|
-
cameraExid: string;
|
|
43
|
-
eventType: GateReportEventType;
|
|
44
|
-
eventTime: DateTime;
|
|
45
|
-
token: string;
|
|
46
|
-
}): string;
|
|
47
|
-
getEventSnapshot({ cameraExid, eventType, eventTime, token, }: {
|
|
48
|
-
cameraExid: string;
|
|
49
|
-
eventType: GateReportEventType;
|
|
50
|
-
eventTime: DateTime;
|
|
51
|
-
token: string;
|
|
52
|
-
}): string;
|
|
53
|
-
getEvents(projectExid: ProjectExid, params: GatReportRequestPayload, extraParams?: AxiosRequestConfig): Promise<GateReportResponsePayload>;
|
|
54
|
-
getCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
55
|
-
};
|
|
56
|
-
brainTool: {
|
|
57
|
-
getObjectDetectionsResults(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
58
|
-
getSegments(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
59
|
-
getDepth(cameraExid: string, timestamp: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
60
|
-
};
|
|
61
|
-
roi: {
|
|
62
|
-
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
63
|
-
createROI(params: GateReportROICreateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
64
|
-
updateROI({ updatedBy, roi, }: {
|
|
65
|
-
updatedBy: string;
|
|
66
|
-
roi: GateReportROICreateRequestPayload;
|
|
67
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
68
|
-
deleteROI({ id, updatedBy }: {
|
|
69
|
-
id: number;
|
|
70
|
-
updatedBy: string;
|
|
71
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
72
|
-
};
|
|
73
|
-
detections: {
|
|
74
|
-
getSimilarSegmentsInTimeIntervals({ cameraExid, iouThreshold, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
75
|
-
getDetectionsTracking(cameraExid: CameraExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
|
|
76
|
-
getSegmentsMasks(cameraExid: CameraExid, params: DetectionsFilters): Promise<SegmentsByLabel>;
|
|
77
|
-
getDetectionsPresenceDateIntervals({ cameraExid, ...params }: CountsParams): Promise<DetectionsPresenceByLabel>;
|
|
78
|
-
};
|
|
79
|
-
siteAnalytics: {
|
|
80
|
-
smartSearch({ cameraExid, query, payload, }: {
|
|
81
|
-
cameraExid: CameraExid;
|
|
82
|
-
query: Record<string, unknown>;
|
|
83
|
-
payload: Record<string, unknown>;
|
|
84
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
85
|
-
};
|
|
86
|
-
};
|
package/dist/api/weatherApi.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HistoryWeatherRequestPayload, WeatherDataResponse, WeatherProvider, WeatherResponsePayload } from "@evercam/api/types";
|
|
2
|
-
export declare const WeatherApi: {
|
|
3
|
-
current: {
|
|
4
|
-
getCurrentWeather({ projectExid, weatherProvider, }: {
|
|
5
|
-
projectExid: string;
|
|
6
|
-
weatherProvider: WeatherProvider;
|
|
7
|
-
}): Promise<WeatherResponsePayload> | undefined;
|
|
8
|
-
};
|
|
9
|
-
historical: {
|
|
10
|
-
getWeatherBeforeDate({ projectExid, weatherProvider, payload, }: {
|
|
11
|
-
projectExid: string;
|
|
12
|
-
weatherProvider: WeatherProvider;
|
|
13
|
-
payload: HistoryWeatherRequestPayload;
|
|
14
|
-
}): Promise<WeatherResponsePayload> | undefined;
|
|
15
|
-
};
|
|
16
|
-
weather: {
|
|
17
|
-
getWeatherData({ projectExid, weatherProvider, payload, }: {
|
|
18
|
-
projectExid: string;
|
|
19
|
-
weatherProvider: WeatherProvider;
|
|
20
|
-
payload: HistoryWeatherRequestPayload;
|
|
21
|
-
}): Promise<{
|
|
22
|
-
data: WeatherDataResponse[];
|
|
23
|
-
}> | undefined;
|
|
24
|
-
};
|
|
25
|
-
};
|
package/dist/types/devices.d.ts
DELETED
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
export type MilesightRequestParams = {
|
|
2
|
-
host: string;
|
|
3
|
-
httpPort: number;
|
|
4
|
-
username: string;
|
|
5
|
-
password: string;
|
|
6
|
-
};
|
|
7
|
-
export type MilesightCameraNetworkConfiguration = {
|
|
8
|
-
httpEnable: number;
|
|
9
|
-
httpPort: number;
|
|
10
|
-
httpsEnable: number;
|
|
11
|
-
httpsPort: number;
|
|
12
|
-
certSubject: string;
|
|
13
|
-
certDate: string;
|
|
14
|
-
certResult: number;
|
|
15
|
-
requestSubject: string;
|
|
16
|
-
certUpdateFlag: number;
|
|
17
|
-
ipv4Ipaddress: string;
|
|
18
|
-
ipv6Ipaddress: string;
|
|
19
|
-
notBefore: string;
|
|
20
|
-
notAfter: string;
|
|
21
|
-
country: string;
|
|
22
|
-
ST: string;
|
|
23
|
-
O: string;
|
|
24
|
-
CN: string;
|
|
25
|
-
};
|
|
26
|
-
export type MilesightCameraSystemSettings = {
|
|
27
|
-
model: string;
|
|
28
|
-
mac: string;
|
|
29
|
-
firmwareVersion: string;
|
|
30
|
-
systemBootTime: string;
|
|
31
|
-
wireless: number;
|
|
32
|
-
dhcpEnable: number;
|
|
33
|
-
ipaddress: string;
|
|
34
|
-
netmask: string;
|
|
35
|
-
gateway: string;
|
|
36
|
-
pppoeEnable: number;
|
|
37
|
-
dns0: string;
|
|
38
|
-
dns1: string;
|
|
39
|
-
ddnsEnable: number;
|
|
40
|
-
ddnsHostName: string;
|
|
41
|
-
ddnsStatus: number;
|
|
42
|
-
wirelessEnable: number;
|
|
43
|
-
deviceName: string;
|
|
44
|
-
deviceLacation: string;
|
|
45
|
-
deviceInformation: string;
|
|
46
|
-
deviceVender: string;
|
|
47
|
-
hardwareVersion: string;
|
|
48
|
-
kernelVersion: string;
|
|
49
|
-
sdkVersion: string;
|
|
50
|
-
aiNnieStatus: number;
|
|
51
|
-
ioSupport: number;
|
|
52
|
-
audioSupport: number;
|
|
53
|
-
audioMode: number;
|
|
54
|
-
audioType: number;
|
|
55
|
-
audioLineInput: number;
|
|
56
|
-
alarmInputSupport: number;
|
|
57
|
-
alarmOutputSupport: number;
|
|
58
|
-
fisheyeSupport: number;
|
|
59
|
-
vcaSupport: number;
|
|
60
|
-
vcaType: number;
|
|
61
|
-
anrSupport: number;
|
|
62
|
-
speakerSupport: number;
|
|
63
|
-
lprSupport: number;
|
|
64
|
-
lprVersion: number;
|
|
65
|
-
lprLicense: number;
|
|
66
|
-
radarSupport: number;
|
|
67
|
-
upgrade: number;
|
|
68
|
-
faceSupport: number;
|
|
69
|
-
polygonFaceSupport: number;
|
|
70
|
-
irSensor: number;
|
|
71
|
-
dnSensitivitySupport: number;
|
|
72
|
-
croproiSupport: number;
|
|
73
|
-
dnRefocusSupport: number;
|
|
74
|
-
reduceStutteringSupport: number;
|
|
75
|
-
polygonSupport: number;
|
|
76
|
-
localDisplaySupport: number;
|
|
77
|
-
fanWorkingModeSupport: number;
|
|
78
|
-
smartIrLimitType: number;
|
|
79
|
-
smartIrLimitSum: number;
|
|
80
|
-
audioFileManagerSupport: number;
|
|
81
|
-
humanVehicleSupport: number;
|
|
82
|
-
manualSpeedSupport: number;
|
|
83
|
-
snCode: string;
|
|
84
|
-
mosaicSupport: number;
|
|
85
|
-
antiShakeSupport: number;
|
|
86
|
-
corridorModeSupport: number;
|
|
87
|
-
imageRotationSupport: number;
|
|
88
|
-
humanDetectionSupport: number;
|
|
89
|
-
regionalPeopleSupport: number;
|
|
90
|
-
heatMapSupport: number;
|
|
91
|
-
msChip: string;
|
|
92
|
-
runtime: number;
|
|
93
|
-
lprlicenStatus: number;
|
|
94
|
-
p2pSupport: number;
|
|
95
|
-
ptzSupport: number;
|
|
96
|
-
adminoptions: number;
|
|
97
|
-
adminuser: string;
|
|
98
|
-
miscAnonymous: number;
|
|
99
|
-
pwdStrengthType: number;
|
|
100
|
-
viewerdef: number;
|
|
101
|
-
viewerOptions: number;
|
|
102
|
-
oemIndex: number;
|
|
103
|
-
audioAlarmSupport: number;
|
|
104
|
-
ledSupport: number;
|
|
105
|
-
ledGroupSupport: number;
|
|
106
|
-
ptzMaxZoomTimes: number;
|
|
107
|
-
realPtzSupport: number;
|
|
108
|
-
iotSupport: number;
|
|
109
|
-
isSpeedDm: number;
|
|
110
|
-
supportOsdLarger: number;
|
|
111
|
-
isFaceCustomizeModeExists: number;
|
|
112
|
-
autoTrackSupport: number;
|
|
113
|
-
smartStreamSupportInOtherStream: number;
|
|
114
|
-
wiperSupport: number;
|
|
115
|
-
oemupdateonline: number;
|
|
116
|
-
whiteLedSupport: number;
|
|
117
|
-
defogSupport: number;
|
|
118
|
-
manualTrackingSupport: number;
|
|
119
|
-
manualTrackingDisable: number;
|
|
120
|
-
"3DPositionSupport": number;
|
|
121
|
-
rs485Support: number;
|
|
122
|
-
ptzStatusSupport: number;
|
|
123
|
-
heaterSupport: number;
|
|
124
|
-
};
|
|
125
|
-
export type MilesightCameraStreamConfig = {
|
|
126
|
-
enable?: number;
|
|
127
|
-
width?: number;
|
|
128
|
-
height?: number;
|
|
129
|
-
url?: string;
|
|
130
|
-
profileGop?: number;
|
|
131
|
-
rateMode?: MilesightCameraRateModeId;
|
|
132
|
-
framerate?: number;
|
|
133
|
-
bitrate?: number;
|
|
134
|
-
smartStreamEnable?: number;
|
|
135
|
-
smartStreamLevel?: number;
|
|
136
|
-
profile?: number;
|
|
137
|
-
profileCodec?: MilesightCameraCodecId;
|
|
138
|
-
rateQuality?: number;
|
|
139
|
-
vbrQuality?: MilesightCameraVbrQualityId;
|
|
140
|
-
};
|
|
141
|
-
export type MilesightCameraStreamConfigList = {
|
|
142
|
-
mainStream: MilesightCameraStreamConfig;
|
|
143
|
-
subStream: MilesightCameraStreamConfig;
|
|
144
|
-
thirdStream: MilesightCameraStreamConfig;
|
|
145
|
-
fourthStream?: {
|
|
146
|
-
enable: number;
|
|
147
|
-
};
|
|
148
|
-
fifthStream?: {
|
|
149
|
-
enable: number;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
export type MilesightCameraVideoConfig = {
|
|
153
|
-
deviceModel: string;
|
|
154
|
-
deviceSensor: string;
|
|
155
|
-
deviceTvStandards: number;
|
|
156
|
-
streamList: MilesightCameraStreamConfigList;
|
|
157
|
-
cTvStandards: number;
|
|
158
|
-
rtspPort: number;
|
|
159
|
-
eventStreamEnable: number;
|
|
160
|
-
eventStreamFramerate: number;
|
|
161
|
-
eventStreamBitrate: number;
|
|
162
|
-
eventStreamIframe: number;
|
|
163
|
-
fishDisplayModel: number;
|
|
164
|
-
fishInstallModel: number;
|
|
165
|
-
fishCorrectModel: number;
|
|
166
|
-
mainCodecres: number;
|
|
167
|
-
imageScheMode: number;
|
|
168
|
-
hlcMode: number;
|
|
169
|
-
exposurectrl: number;
|
|
170
|
-
wdrEnable: number;
|
|
171
|
-
};
|
|
172
|
-
export type MilesightCameraStreamOsdInfo = {
|
|
173
|
-
streamIndex: number;
|
|
174
|
-
osdEnable: number;
|
|
175
|
-
osdString: string;
|
|
176
|
-
osdDateTimeEnable: number;
|
|
177
|
-
osdFontSize: number;
|
|
178
|
-
osdFontColor: string;
|
|
179
|
-
osdBackgroundEnable: number;
|
|
180
|
-
osdBackgroundColor: string;
|
|
181
|
-
osdTextPosition: number;
|
|
182
|
-
osdDateTimePosition: number;
|
|
183
|
-
osdDateTimeFormat: number;
|
|
184
|
-
cropRoiEnable: number;
|
|
185
|
-
};
|
|
186
|
-
export type MilesightCameraOsdConfiguration = {
|
|
187
|
-
osdInfoList: MilesightCameraStreamOsdInfo[];
|
|
188
|
-
osdZoomTime: number;
|
|
189
|
-
};
|
|
190
|
-
export type MilesightCameraSdCardInfo = {
|
|
191
|
-
sdcardStatus: number;
|
|
192
|
-
sdcardDiskStatus: number;
|
|
193
|
-
sdcardFullStatus: number;
|
|
194
|
-
sdcardTotalSize: string;
|
|
195
|
-
sdcardFreeSize: string;
|
|
196
|
-
sdcardUseSize: string;
|
|
197
|
-
sdEncryptStatus: number;
|
|
198
|
-
};
|
|
199
|
-
export type MilesightCameraTimeInfo = {
|
|
200
|
-
year: number;
|
|
201
|
-
month: number;
|
|
202
|
-
day: number;
|
|
203
|
-
hour: number;
|
|
204
|
-
minute: number;
|
|
205
|
-
second: number;
|
|
206
|
-
timeZoneTz: string;
|
|
207
|
-
zoneNameTz: string;
|
|
208
|
-
dayLight: number;
|
|
209
|
-
timeType: number;
|
|
210
|
-
ntpServer: string;
|
|
211
|
-
ntpSyncEnable: number;
|
|
212
|
-
ntpInterval: number;
|
|
213
|
-
};
|
|
214
|
-
export declare enum MilesightCameraCodecId {
|
|
215
|
-
H264 = 0,
|
|
216
|
-
H265 = 3,
|
|
217
|
-
MJpeg1 = 1,
|
|
218
|
-
MJpeg2 = 2
|
|
219
|
-
}
|
|
220
|
-
export declare enum MilesightCameraVbrQualityId {
|
|
221
|
-
Low = 0,
|
|
222
|
-
Medium = 1,
|
|
223
|
-
High = 2
|
|
224
|
-
}
|
|
225
|
-
export declare enum MilesightCameraRateModeId {
|
|
226
|
-
CBR = 0,
|
|
227
|
-
VBR = 1
|
|
228
|
-
}
|