@evercam/api 1.0.0-preview-fix-evercam-ui-publish-script-07a483d2b → 1.0.0-preview-bump-node-e24fde544
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 -1
- package/dist/api/api/3dFirebaseApi.d.ts +20 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +109 -25
- package/dist/api/api/aiApi.d.ts +146 -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/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +74 -25
- package/dist/api/api/evercamLabsApi.d.ts +43 -0
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/{ingestApi.d.ts → api/ingestApi.d.ts} +16 -8
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +1 -1
- 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 +18 -2
- package/dist/{types → api/types}/aconex.d.ts +1 -1
- package/dist/{types → api/types}/analytics.d.ts +79 -71
- 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 +15 -1
- package/dist/{types → api/types}/camera.d.ts +24 -56
- package/dist/api/types/comments.d.ts +59 -0
- package/dist/{types → api/types}/company.d.ts +29 -1
- 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 +11 -9
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/api/types/detections.d.ts +126 -0
- package/dist/{types → api/types}/errors.d.ts +12 -0
- package/dist/{types → api/types}/gateReport.d.ts +50 -1
- package/dist/api/types/hdd.d.ts +63 -0
- package/dist/{types → api/types}/index.d.ts +9 -2
- package/dist/{types → api/types}/ingest.d.ts +4 -0
- package/dist/{types → api/types}/kit.d.ts +94 -10
- package/dist/{types → api/types}/nvr.d.ts +2 -1
- package/dist/{types/sitePlanner.d.ts → api/types/planner.d.ts} +10 -1
- package/dist/api/types/posthog.d.ts +18 -0
- package/dist/api/types/procore.d.ts +222 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +21 -7
- package/dist/{types → api/types}/project.d.ts +10 -1
- package/dist/{types → api/types}/recording.d.ts +1 -2
- package/dist/api/types/recycleBin.d.ts +14 -0
- 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 +3 -17
- package/dist/{types → api/types}/shares.d.ts +5 -1
- package/dist/api/types/siteAnalytics.d.ts +142 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/{types → api/types}/streaming.d.ts +4 -27
- 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 +32 -7
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1384 -770
- 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 +193 -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 +7 -6
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/aiApi.d.ts +0 -73
- package/dist/api/evercamLabsApi.d.ts +0 -50
- package/dist/api/weatherApi.d.ts +0 -25
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/detections.d.ts +0 -62
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/siteAnalytics.d.ts +0 -5
- /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/{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}/compare.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}/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}/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,193 @@
|
|
|
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
|
+
The360Gallery = "360 Gallery",
|
|
10
|
+
Planner = "Planner"
|
|
11
|
+
}
|
|
12
|
+
export declare enum PlayerMode {
|
|
13
|
+
Video = "video",
|
|
14
|
+
Jpegs = "jpegs"
|
|
15
|
+
}
|
|
16
|
+
export type TasksStatusMap = {
|
|
17
|
+
[key: string]: TaskStatus;
|
|
18
|
+
};
|
|
19
|
+
export type TaskProgressItem = {
|
|
20
|
+
status: TaskStatus;
|
|
21
|
+
description: string;
|
|
22
|
+
percentDone?: number;
|
|
23
|
+
duration?: number;
|
|
24
|
+
};
|
|
25
|
+
export type GlobalSearchMatch = {
|
|
26
|
+
path: Array<string>;
|
|
27
|
+
value: string | number | boolean;
|
|
28
|
+
};
|
|
29
|
+
export type GlobalSearchResult = {
|
|
30
|
+
index: number;
|
|
31
|
+
matches: Array<GlobalSearchMatch>;
|
|
32
|
+
};
|
|
33
|
+
export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
|
|
34
|
+
export type TimelineProviderRequestParams = TimelineDateInterval & {
|
|
35
|
+
precision?: TimelinePrecision;
|
|
36
|
+
labels?: string[];
|
|
37
|
+
trackId?: number;
|
|
38
|
+
};
|
|
39
|
+
export type TimelinePlayerGroupConfig = {
|
|
40
|
+
provider?: TimelineDataProvider;
|
|
41
|
+
events?: Array<TimelineEvent>;
|
|
42
|
+
getChartType?: (precision: TimelinePrecision) => TimelineChartType;
|
|
43
|
+
} & Omit<TimelineEventsGroup, "events">;
|
|
44
|
+
export type TimelinePlayerConfig = {
|
|
45
|
+
[groupName: string]: TimelinePlayerGroupConfig;
|
|
46
|
+
};
|
|
47
|
+
export type TimelinePlayerTooltipItem = {
|
|
48
|
+
label?: string;
|
|
49
|
+
title?: string;
|
|
50
|
+
thumbnailUrl: string;
|
|
51
|
+
placeholderThumbnailUrl?: string;
|
|
52
|
+
fallbackThumbnailUrl?: string;
|
|
53
|
+
};
|
|
54
|
+
export declare enum TimelineGroupId {
|
|
55
|
+
ThreeSixty = "w360",
|
|
56
|
+
Drone = "drone",
|
|
57
|
+
Bim = "bim",
|
|
58
|
+
Media = "media",
|
|
59
|
+
Comments = "comments",
|
|
60
|
+
Anpr = "anpr",
|
|
61
|
+
MobileCapture = "mobileCapture",
|
|
62
|
+
ExNvrRecordings = "exNvrRecordings",
|
|
63
|
+
Luminance = "luminance",
|
|
64
|
+
ObjectInspector = "objectInspector"
|
|
65
|
+
}
|
|
66
|
+
export type TimelineOverlayType = TimelineGroupId.ThreeSixty | TimelineGroupId.Drone | TimelineGroupId.Media | TimelineGroupId.MobileCapture | TimelineGroupId.Bim | TimelineGroupId.Comments | "compare";
|
|
67
|
+
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;
|
|
68
|
+
export declare enum TimelineMarkerId {
|
|
69
|
+
Xray = "xray",
|
|
70
|
+
CurrentSnapshot = "current",
|
|
71
|
+
CompareBeforeSnapshot = "compareBefore",
|
|
72
|
+
CompareAfterSnapshot = "compareAfter",
|
|
73
|
+
ObjectInspectorFirstSeen = "firstSeen",
|
|
74
|
+
ObjectInspectorLastSeen = "lastSeen"
|
|
75
|
+
}
|
|
76
|
+
export type TimelineMediaHubItemsByType = {
|
|
77
|
+
clip?: Media[];
|
|
78
|
+
compare?: Media[];
|
|
79
|
+
edit?: Media[];
|
|
80
|
+
timelapse?: Media[];
|
|
81
|
+
xRay?: Media[];
|
|
82
|
+
};
|
|
83
|
+
export declare enum HighchartsStackingBehavior {
|
|
84
|
+
Overlap = "overlap",
|
|
85
|
+
Normal = "normal",
|
|
86
|
+
Percent = "percent",
|
|
87
|
+
Stream = "stream"
|
|
88
|
+
}
|
|
89
|
+
export declare enum LeaderLinePlugType {
|
|
90
|
+
Disc = "disc",
|
|
91
|
+
Square = "square",
|
|
92
|
+
Arrow1 = "arrow1",
|
|
93
|
+
Arrow2 = "arrow2",
|
|
94
|
+
Arrow3 = "arrow3",
|
|
95
|
+
Hand = "hand",
|
|
96
|
+
CrossHair = "crosshair",
|
|
97
|
+
Behind = "behind"
|
|
98
|
+
}
|
|
99
|
+
export declare enum LeaderLinesPathType {
|
|
100
|
+
Straight = "straight",
|
|
101
|
+
Arc = "arc",
|
|
102
|
+
Fluid = "fluid",
|
|
103
|
+
Magnet = "magnet",
|
|
104
|
+
Grid = "grid"
|
|
105
|
+
}
|
|
106
|
+
export declare enum LeaderLinesSocketPosition {
|
|
107
|
+
Top = "top",
|
|
108
|
+
Right = "right",
|
|
109
|
+
Bottom = "bottom",
|
|
110
|
+
Left = "left",
|
|
111
|
+
Auto = "auto"
|
|
112
|
+
}
|
|
113
|
+
export type LeaderLineOptions = {
|
|
114
|
+
startSocket?: LeaderLinesSocketPosition;
|
|
115
|
+
endSocket?: LeaderLinesSocketPosition;
|
|
116
|
+
color?: string | ((element: any) => string);
|
|
117
|
+
size?: number;
|
|
118
|
+
startPlug?: LeaderLinePlugType;
|
|
119
|
+
endPlug?: LeaderLinePlugType;
|
|
120
|
+
startPlugSize?: number;
|
|
121
|
+
endPlugSize?: number;
|
|
122
|
+
path?: LeaderLinesPathType;
|
|
123
|
+
startSocketGravity?: [number, number];
|
|
124
|
+
endSocketGravity?: [number, number];
|
|
125
|
+
dash?: {
|
|
126
|
+
animation: boolean | {
|
|
127
|
+
duration: number;
|
|
128
|
+
};
|
|
129
|
+
} | ((element: any) => {
|
|
130
|
+
animation: boolean | {
|
|
131
|
+
duration: number;
|
|
132
|
+
};
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
export type CssSelector = string;
|
|
136
|
+
export type LineConfig = {
|
|
137
|
+
start: CssSelector | CssSelector[];
|
|
138
|
+
end: CssSelector | CssSelector[];
|
|
139
|
+
options?: LeaderLineOptions;
|
|
140
|
+
};
|
|
141
|
+
export type Point = {
|
|
142
|
+
x: number;
|
|
143
|
+
y: number;
|
|
144
|
+
};
|
|
145
|
+
export declare enum ZohoDeskTicketStatus {
|
|
146
|
+
Closed = "Closed",
|
|
147
|
+
OnHold = "On Hold",
|
|
148
|
+
Open = "Open"
|
|
149
|
+
}
|
|
150
|
+
export type TagSelectorItem = Tag & {
|
|
151
|
+
isExcluded?: boolean;
|
|
152
|
+
};
|
|
153
|
+
export declare enum FormSchemaComponents {
|
|
154
|
+
SelectField = "SelectField",
|
|
155
|
+
MultiOption = "MultiOption",
|
|
156
|
+
TextField = "TextField",
|
|
157
|
+
CheckBox = "SwitchField",
|
|
158
|
+
DateTime = "DatePickerInput",
|
|
159
|
+
TextArea = "Textarea",
|
|
160
|
+
Search = "Autocomplete",
|
|
161
|
+
ReadOnly = "ReadOnly"
|
|
162
|
+
}
|
|
163
|
+
export declare enum FormSchemaDataType {
|
|
164
|
+
String = "string",
|
|
165
|
+
Number = "number",
|
|
166
|
+
Boolean = "boolean",
|
|
167
|
+
Date = "date"
|
|
168
|
+
}
|
|
169
|
+
export type FormSchemaOptions = {
|
|
170
|
+
title: string;
|
|
171
|
+
value: string;
|
|
172
|
+
};
|
|
173
|
+
export type FormSchemaField = {
|
|
174
|
+
id: string;
|
|
175
|
+
component: FormSchemaComponents;
|
|
176
|
+
required?: boolean;
|
|
177
|
+
name: string;
|
|
178
|
+
options?: FormSchemaOptions[];
|
|
179
|
+
disabled?: boolean;
|
|
180
|
+
dataType: FormSchemaDataType;
|
|
181
|
+
multiple?: boolean;
|
|
182
|
+
defaultValue?: any;
|
|
183
|
+
columns?: number;
|
|
184
|
+
};
|
|
185
|
+
export type FormSchema = Record<string, FormSchemaField>;
|
|
186
|
+
export interface ScrollListener {
|
|
187
|
+
element: Element | Window;
|
|
188
|
+
handler: () => void;
|
|
189
|
+
}
|
|
190
|
+
export interface LeaderLineInstance {
|
|
191
|
+
remove(): void;
|
|
192
|
+
position(): void;
|
|
193
|
+
}
|
|
@@ -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-preview-
|
|
3
|
+
"version": "1.0.0-preview-bump-node-e24fde544",
|
|
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"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": "20.
|
|
27
|
+
"node": ">=22.20.0"
|
|
28
28
|
},
|
|
29
29
|
"readme": "README.md",
|
|
30
30
|
"scripts": {
|
|
@@ -36,14 +36,15 @@
|
|
|
36
36
|
"publish-api": "cd ../.. && yarn publish-api"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^
|
|
39
|
+
"@types/node": "^24.7.2",
|
|
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",
|
|
46
46
|
"humps": "^2.0.1",
|
|
47
|
+
"idb-keyval": "^6.2.2",
|
|
47
48
|
"moment-timezone": "^0.5.46"
|
|
48
49
|
}
|
|
49
50
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
|
|
2
|
-
export declare const _3dFirebaseApi: {
|
|
3
|
-
drone: {
|
|
4
|
-
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
5
|
-
};
|
|
6
|
-
_360: {
|
|
7
|
-
getProjectInfo(projectExid: ProjectExid): Promise<_360ProjectJsonResponse>;
|
|
8
|
-
};
|
|
9
|
-
};
|
package/dist/api/aiApi.d.ts
DELETED
|
@@ -1,73 +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 } 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
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { MilesightCameraVideoConfig, MilesightRequestParams, MilesightCameraNetworkConfiguration, MilesightCameraSystemSettings, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, CopilotConversation, CopilotMessage, PaginatedItems, CopilotMessageStep, DetectionsFilters, TrackingsByLabel, CameraExid, CountsParams, CountByPeriod, DetectionsPresenceByLabel, FeedbackPayload, LabsPaginationParams, SegmentsPresenceByLabel, SegmentsByLabel, SegmentsSimilaritySearchParams, LuminanceReading, GrafanaKitMetrics, GrafanaMetricId } from "@evercam/api/types";
|
|
2
|
-
export declare function getLabsBaseUrl(): string | null | undefined;
|
|
3
|
-
export declare const EvercamLabsApi: {
|
|
4
|
-
milesight: {
|
|
5
|
-
getVideoConfig({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraVideoConfig>;
|
|
6
|
-
getNetworkConfiguration({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraNetworkConfiguration>;
|
|
7
|
-
getSystemSettings({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSystemSettings>;
|
|
8
|
-
getTimeSettings({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSystemSettings>;
|
|
9
|
-
getOsdConfiguration({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraOsdConfiguration>;
|
|
10
|
-
getSdCardInfo({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSdCardInfo>;
|
|
11
|
-
};
|
|
12
|
-
copilot: {
|
|
13
|
-
getAllConversations(params: LabsPaginationParams & {
|
|
14
|
-
cameraExid?: string;
|
|
15
|
-
projectExid?: string;
|
|
16
|
-
user?: string;
|
|
17
|
-
}): Promise<PaginatedItems<CopilotConversation>>;
|
|
18
|
-
getOneConversation(conversationId: number): Promise<PaginatedItems<CopilotConversation>>;
|
|
19
|
-
getConversationMessages(conversationId: number, params: LabsPaginationParams): Promise<PaginatedItems<CopilotMessage>>;
|
|
20
|
-
getMessageSteps(message: CopilotMessage): Promise<CopilotMessageStep[]>;
|
|
21
|
-
submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
|
-
};
|
|
23
|
-
detections: {
|
|
24
|
-
getDetectionsTracking(cameraExid: CameraExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
|
|
25
|
-
getSegmentsMasks(cameraExid: CameraExid, params: DetectionsFilters): Promise<SegmentsByLabel>;
|
|
26
|
-
getDetectionsPresenceDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<DetectionsPresenceByLabel>;
|
|
27
|
-
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<SegmentsPresenceByLabel>;
|
|
28
|
-
getCranesMovement({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<CountByPeriod[]>;
|
|
29
|
-
getSimilarSegmentsInTimeIntervals({ cameraExid, segmentId, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
|
-
};
|
|
31
|
-
googleCloudStorage: {
|
|
32
|
-
listFiles(prefix?: string): Promise<{
|
|
33
|
-
files: string[];
|
|
34
|
-
folders: string[];
|
|
35
|
-
}>;
|
|
36
|
-
getSignedUrl(fileName: string): Promise<{
|
|
37
|
-
url: string;
|
|
38
|
-
}>;
|
|
39
|
-
};
|
|
40
|
-
luminance: {
|
|
41
|
-
getReadings(params: {
|
|
42
|
-
cameraExid: CameraExid;
|
|
43
|
-
fromDate: string;
|
|
44
|
-
toDate: string;
|
|
45
|
-
}): Promise<LuminanceReading[]>;
|
|
46
|
-
};
|
|
47
|
-
kits: {
|
|
48
|
-
getMetrics(kitId: string, metrics: GrafanaMetricId[]): Promise<GrafanaKitMetrics>;
|
|
49
|
-
};
|
|
50
|
-
};
|
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/comments.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid } from "@/types";
|
|
2
|
-
export type CommentsRequestPayload = {
|
|
3
|
-
cameraExid: CameraExid;
|
|
4
|
-
fromDate: string;
|
|
5
|
-
toDate: string;
|
|
6
|
-
page?: number;
|
|
7
|
-
limit?: number;
|
|
8
|
-
};
|
|
9
|
-
export type CommentPosition = {
|
|
10
|
-
coordinates: Array<number>;
|
|
11
|
-
type: string;
|
|
12
|
-
};
|
|
13
|
-
export type Comment = {
|
|
14
|
-
fromDate?: string;
|
|
15
|
-
toDate?: string;
|
|
16
|
-
timestamp: string;
|
|
17
|
-
projectExid: ProjectExid;
|
|
18
|
-
updatedAt?: string;
|
|
19
|
-
id?: number;
|
|
20
|
-
cameraExid: CameraExid;
|
|
21
|
-
content: string;
|
|
22
|
-
createdAt?: string;
|
|
23
|
-
creatorEmail?: string;
|
|
24
|
-
creatorName?: string;
|
|
25
|
-
position2d: CommentPosition;
|
|
26
|
-
canDelete?: boolean;
|
|
27
|
-
};
|
|
28
|
-
export type CommentCreationRequestPayload = {
|
|
29
|
-
fromDate?: DateType;
|
|
30
|
-
toDate?: DateType;
|
|
31
|
-
timestamp: DateType;
|
|
32
|
-
projectExid: ProjectExid;
|
|
33
|
-
cameraExid: CameraExid;
|
|
34
|
-
content: string;
|
|
35
|
-
position2d: Array<number>;
|
|
36
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
|
|
2
|
-
export type DetectionsFilters = {
|
|
3
|
-
cameraExid: CameraExid;
|
|
4
|
-
fromDate: string | Date;
|
|
5
|
-
toDate: string | Date;
|
|
6
|
-
labels: DetectionLabel | DetectionLabel[];
|
|
7
|
-
};
|
|
8
|
-
export type BBox = [number, number, number, number];
|
|
9
|
-
export type Detection = {
|
|
10
|
-
bbox: BBox;
|
|
11
|
-
timestamp: string | Date;
|
|
12
|
-
};
|
|
13
|
-
export type Tracking = {
|
|
14
|
-
trackId: number;
|
|
15
|
-
fromDate: string | Date;
|
|
16
|
-
toDate: string | Date;
|
|
17
|
-
detections: Detection[];
|
|
18
|
-
};
|
|
19
|
-
export type TrackingLabel = string;
|
|
20
|
-
export type TrackingsByLabel = Record<TrackingLabel, Tracking[]>;
|
|
21
|
-
export type SegmentsByLabel = Record<SegmentLabel, Segment[]>;
|
|
22
|
-
export type SegmentPolygonCoords = number[][];
|
|
23
|
-
export type Segment = {
|
|
24
|
-
id: number;
|
|
25
|
-
mask: SegmentPolygonCoords;
|
|
26
|
-
label: string;
|
|
27
|
-
timestamp: string | Date;
|
|
28
|
-
};
|
|
29
|
-
export type SegmentSimilarityResult = {
|
|
30
|
-
distance: number;
|
|
31
|
-
segment: Segment;
|
|
32
|
-
};
|
|
33
|
-
export type SegmentsSimilaritySearchResult = {
|
|
34
|
-
firstSeen: DateType | null;
|
|
35
|
-
lastSeen: DateType | null;
|
|
36
|
-
similarSegments: SegmentSimilarityResult[];
|
|
37
|
-
};
|
|
38
|
-
export type SegmentsSimilaritySearchParams = {
|
|
39
|
-
cameraExid: CameraExid;
|
|
40
|
-
segmentId: number;
|
|
41
|
-
leftInterval: TimelineDateInterval;
|
|
42
|
-
rightInterval: TimelineDateInterval;
|
|
43
|
-
maxDistance: number;
|
|
44
|
-
areaTolerance: number;
|
|
45
|
-
};
|
|
46
|
-
export type CountsParams = {
|
|
47
|
-
cameraExid: CameraExid;
|
|
48
|
-
fromDate: string | Date;
|
|
49
|
-
toDate: string | Date;
|
|
50
|
-
precision: TimelinePrecision;
|
|
51
|
-
};
|
|
52
|
-
export type CountByPeriod = {
|
|
53
|
-
date: string | Date;
|
|
54
|
-
counts: Record<string, number>;
|
|
55
|
-
};
|
|
56
|
-
export type DetectionsPresenceByLabel = Record<DetectionLabel, TimelineDateInterval[]>;
|
|
57
|
-
export type SegmentsPresenceByLabel = Record<SegmentLabel, TimelineDateInterval[]>;
|
|
58
|
-
export type LuminanceReading = {
|
|
59
|
-
timestamp: string;
|
|
60
|
-
luminanceDelta: number;
|
|
61
|
-
luminanceAverage: number;
|
|
62
|
-
};
|