@evercam/api 1.0.0-d52e7306c → 1.0.0-d7a4e6c9d
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 +5 -0
- package/dist/api/api/3dFirebaseApi.d.ts +21 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +92 -26
- package/dist/api/api/aiApi.d.ts +155 -0
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
- 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} +80 -32
- package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +8 -10
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +95 -0
- package/dist/api/api/videoWallApi.d.ts +9 -0
- 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 +60 -2
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/{types → api/types}/analytics.d.ts +123 -69
- package/dist/{types → api/types}/anpr.d.ts +16 -17
- package/dist/api/types/automation.d.ts +61 -0
- package/dist/{types → api/types}/axios.d.ts +15 -1
- package/dist/{types → api/types}/camera.d.ts +30 -57
- 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 +20 -0
- package/dist/{types → api/types}/copilot.d.ts +9 -8
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/api/types/detections.d.ts +112 -0
- package/dist/{types → api/types}/errors.d.ts +13 -0
- package/dist/{types → api/types}/index.d.ts +8 -2
- package/dist/{types → api/types}/ingest.d.ts +8 -0
- package/dist/{types → api/types}/kit.d.ts +67 -7
- package/dist/{types/sitePlanner.d.ts → api/types/planner.d.ts} +4 -0
- 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 +6 -22
- package/dist/{types → api/types}/project.d.ts +14 -2
- 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 +4 -2
- package/dist/{types → api/types}/shared.d.ts +2 -16
- package/dist/{types → api/types}/shares.d.ts +5 -1
- package/dist/api/types/siteAnalytics.d.ts +163 -0
- package/dist/{types → api/types}/snapshots.d.ts +9 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/{types → api/types}/streaming.d.ts +3 -25
- 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 +6 -0
- package/dist/{types → api/types}/timelapse.d.ts +15 -0
- package/dist/{types → api/types}/user.d.ts +1 -6
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/{types → api/types}/weather.d.ts +8 -2
- package/dist/{types → api/types}/widget.d.ts +31 -10
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1408 -778
- 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 +199 -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 +6 -5
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/aiApi.d.ts +0 -86
- package/dist/api/ingestApi.d.ts +0 -65
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/api/weatherApi.d.ts +0 -25
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/detections.d.ts +0 -73
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/siteAnalytics.d.ts +0 -84
- package/dist/types/videoWall.d.ts +0 -33
- /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/{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}/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}/storageServers.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.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,199 @@
|
|
|
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 NavigationArrow {
|
|
5
|
+
Previous = "previous",
|
|
6
|
+
Next = "next"
|
|
7
|
+
}
|
|
8
|
+
export declare enum WatermarkedImageDownloadOrigin {
|
|
9
|
+
Drone = "drone",
|
|
10
|
+
Bim = "BIM",
|
|
11
|
+
Snapshot = "snapshot",
|
|
12
|
+
The360 = "360",
|
|
13
|
+
The360Gallery = "360 Gallery",
|
|
14
|
+
Planner = "Planner"
|
|
15
|
+
}
|
|
16
|
+
export declare enum PlayerMode {
|
|
17
|
+
Video = "video",
|
|
18
|
+
Jpegs = "jpegs"
|
|
19
|
+
}
|
|
20
|
+
export type TasksStatusMap = {
|
|
21
|
+
[key: string]: TaskStatus;
|
|
22
|
+
};
|
|
23
|
+
export type TaskProgressItem = {
|
|
24
|
+
status: TaskStatus;
|
|
25
|
+
description: string;
|
|
26
|
+
percentDone?: number;
|
|
27
|
+
duration?: number;
|
|
28
|
+
};
|
|
29
|
+
export type GlobalSearchMatch = {
|
|
30
|
+
path: Array<string>;
|
|
31
|
+
value: string | number | boolean;
|
|
32
|
+
};
|
|
33
|
+
export type GlobalSearchResult = {
|
|
34
|
+
index: number;
|
|
35
|
+
matches: Array<GlobalSearchMatch>;
|
|
36
|
+
};
|
|
37
|
+
export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
|
|
38
|
+
export type TimelineProviderRequestParams = TimelineDateInterval & {
|
|
39
|
+
precision?: TimelinePrecision;
|
|
40
|
+
labels?: string[];
|
|
41
|
+
trackId?: number;
|
|
42
|
+
};
|
|
43
|
+
export type TimelinePlayerGroupConfig = {
|
|
44
|
+
provider?: TimelineDataProvider;
|
|
45
|
+
events?: Array<TimelineEvent>;
|
|
46
|
+
getChartType?: (precision: TimelinePrecision) => TimelineChartType;
|
|
47
|
+
} & Omit<TimelineEventsGroup, "events">;
|
|
48
|
+
export type TimelinePlayerConfig = {
|
|
49
|
+
[groupName: string]: TimelinePlayerGroupConfig;
|
|
50
|
+
};
|
|
51
|
+
export type TimelinePlayerTooltipItem = {
|
|
52
|
+
label?: string;
|
|
53
|
+
title?: string;
|
|
54
|
+
thumbnailUrl: string;
|
|
55
|
+
placeholderThumbnailUrl?: string;
|
|
56
|
+
fallbackThumbnailUrl?: string;
|
|
57
|
+
};
|
|
58
|
+
export declare enum TimelineGroupId {
|
|
59
|
+
ThreeSixty = "w360",
|
|
60
|
+
Drone = "drone",
|
|
61
|
+
Bim = "bim",
|
|
62
|
+
Media = "media",
|
|
63
|
+
Comments = "comments",
|
|
64
|
+
Anpr = "anpr",
|
|
65
|
+
MobileCapture = "mobileCapture",
|
|
66
|
+
ExNvrRecordings = "exNvrRecordings",
|
|
67
|
+
Luminance = "luminance",
|
|
68
|
+
ObjectInspector = "objectInspector"
|
|
69
|
+
}
|
|
70
|
+
export type TimelineOverlayType = TimelineGroupId.ThreeSixty | TimelineGroupId.Drone | TimelineGroupId.Media | TimelineGroupId.MobileCapture | TimelineGroupId.Bim | TimelineGroupId.Comments | "compare";
|
|
71
|
+
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;
|
|
72
|
+
export declare enum TimelineMarkerId {
|
|
73
|
+
Xray = "xray",
|
|
74
|
+
CurrentSnapshot = "current",
|
|
75
|
+
CompareBeforeSnapshot = "compareBefore",
|
|
76
|
+
CompareAfterSnapshot = "compareAfter",
|
|
77
|
+
ObjectInspectorFirstSeen = "firstSeen",
|
|
78
|
+
ObjectInspectorLastSeen = "lastSeen"
|
|
79
|
+
}
|
|
80
|
+
export type TimelineMediaHubItemsByType = {
|
|
81
|
+
clip?: Media[];
|
|
82
|
+
compare?: Media[];
|
|
83
|
+
edit?: Media[];
|
|
84
|
+
timelapse?: Media[];
|
|
85
|
+
xRay?: Media[];
|
|
86
|
+
};
|
|
87
|
+
export declare enum HighchartsStackingBehavior {
|
|
88
|
+
Overlap = "overlap",
|
|
89
|
+
Normal = "normal",
|
|
90
|
+
Percent = "percent",
|
|
91
|
+
Stream = "stream"
|
|
92
|
+
}
|
|
93
|
+
export declare enum LeaderLinePlugType {
|
|
94
|
+
Disc = "disc",
|
|
95
|
+
Square = "square",
|
|
96
|
+
Arrow1 = "arrow1",
|
|
97
|
+
Arrow2 = "arrow2",
|
|
98
|
+
Arrow3 = "arrow3",
|
|
99
|
+
Hand = "hand",
|
|
100
|
+
CrossHair = "crosshair",
|
|
101
|
+
Behind = "behind"
|
|
102
|
+
}
|
|
103
|
+
export declare enum LeaderLinesPathType {
|
|
104
|
+
Straight = "straight",
|
|
105
|
+
Arc = "arc",
|
|
106
|
+
Fluid = "fluid",
|
|
107
|
+
Magnet = "magnet",
|
|
108
|
+
Grid = "grid"
|
|
109
|
+
}
|
|
110
|
+
export declare enum LeaderLinesSocketPosition {
|
|
111
|
+
Top = "top",
|
|
112
|
+
Right = "right",
|
|
113
|
+
Bottom = "bottom",
|
|
114
|
+
Left = "left",
|
|
115
|
+
Auto = "auto"
|
|
116
|
+
}
|
|
117
|
+
export type LeaderLineOptions = {
|
|
118
|
+
startSocket?: LeaderLinesSocketPosition;
|
|
119
|
+
endSocket?: LeaderLinesSocketPosition;
|
|
120
|
+
color?: string | ((element: any) => string);
|
|
121
|
+
size?: number;
|
|
122
|
+
startPlug?: LeaderLinePlugType;
|
|
123
|
+
endPlug?: LeaderLinePlugType;
|
|
124
|
+
startPlugSize?: number;
|
|
125
|
+
endPlugSize?: number;
|
|
126
|
+
path?: LeaderLinesPathType;
|
|
127
|
+
startSocketGravity?: [number, number];
|
|
128
|
+
endSocketGravity?: [number, number];
|
|
129
|
+
dash?: {
|
|
130
|
+
animation: boolean | {
|
|
131
|
+
duration: number;
|
|
132
|
+
};
|
|
133
|
+
} | ((element: any) => {
|
|
134
|
+
animation: boolean | {
|
|
135
|
+
duration: number;
|
|
136
|
+
};
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
export type CssSelector = string;
|
|
140
|
+
export type LineConfig = {
|
|
141
|
+
start: CssSelector | CssSelector[];
|
|
142
|
+
end: CssSelector | CssSelector[];
|
|
143
|
+
options?: LeaderLineOptions;
|
|
144
|
+
};
|
|
145
|
+
export type Point = {
|
|
146
|
+
x: number;
|
|
147
|
+
y: number;
|
|
148
|
+
};
|
|
149
|
+
export declare enum ZohoDeskTicketStatus {
|
|
150
|
+
Closed = "Closed",
|
|
151
|
+
OnHold = "On Hold",
|
|
152
|
+
Open = "Open"
|
|
153
|
+
}
|
|
154
|
+
export type TagSelectorItem = Tag & {
|
|
155
|
+
isExcluded?: boolean;
|
|
156
|
+
};
|
|
157
|
+
export declare enum FormSchemaComponents {
|
|
158
|
+
SelectField = "SelectField",
|
|
159
|
+
MultiOption = "MultiOption",
|
|
160
|
+
TextField = "TextField",
|
|
161
|
+
CheckBox = "SwitchField",
|
|
162
|
+
Date = "DatePickerInput",
|
|
163
|
+
DateTime = "DateTimeField",
|
|
164
|
+
TextArea = "Textarea",
|
|
165
|
+
Search = "Autocomplete",
|
|
166
|
+
ReadOnly = "ReadOnly",
|
|
167
|
+
Ratio = "RatioField"
|
|
168
|
+
}
|
|
169
|
+
export declare enum FormSchemaDataType {
|
|
170
|
+
String = "string",
|
|
171
|
+
Number = "number",
|
|
172
|
+
Boolean = "boolean",
|
|
173
|
+
Date = "date"
|
|
174
|
+
}
|
|
175
|
+
export type FormSchemaOptions = {
|
|
176
|
+
title: string;
|
|
177
|
+
value: string;
|
|
178
|
+
};
|
|
179
|
+
export type FormSchemaField = {
|
|
180
|
+
id: string;
|
|
181
|
+
component: FormSchemaComponents;
|
|
182
|
+
required?: boolean;
|
|
183
|
+
name: string;
|
|
184
|
+
options?: FormSchemaOptions[];
|
|
185
|
+
disabled?: boolean;
|
|
186
|
+
dataType: FormSchemaDataType;
|
|
187
|
+
multiple?: boolean;
|
|
188
|
+
defaultValue?: any;
|
|
189
|
+
columns?: number;
|
|
190
|
+
};
|
|
191
|
+
export type FormSchema = Record<string, FormSchemaField>;
|
|
192
|
+
export interface ScrollListener {
|
|
193
|
+
element: Element | Window;
|
|
194
|
+
handler: () => void;
|
|
195
|
+
}
|
|
196
|
+
export interface LeaderLineInstance {
|
|
197
|
+
remove(): void;
|
|
198
|
+
position(): void;
|
|
199
|
+
}
|
|
@@ -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-d7a4e6c9d",
|
|
4
4
|
"description": "Evercam API client",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": "
|
|
27
|
+
"node": ">=22"
|
|
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": "^25.0.3",
|
|
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,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/ingestApi.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { _360AssetsQueryParams, _360AssetsRequestPayload, _360AssetsUploadPayload, BimUploadPayload, BimUploadsQueryParams, CalculateMeasuringOperationRequestPayload, DronesQueryParams, DroneUploadUpdateRequestPayload, FlightImagesQueryParams, Generate360MapRequestPayload, InspectionToolRequestPayload, MobileCaptureSnapshot } from "@evercam/api/types";
|
|
2
|
-
export declare const IngestApi: {
|
|
3
|
-
drone: {
|
|
4
|
-
createUpload(projectId: string, params: {
|
|
5
|
-
uploadedBy: string;
|
|
6
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
-
reprocessDrone(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
8
|
-
getDrones(params: {
|
|
9
|
-
params: Partial<DronesQueryParams>;
|
|
10
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
-
getArchive(id: number, params: {
|
|
12
|
-
dataType: string;
|
|
13
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
|
-
deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
15
|
-
prepareForUpload(projectId: string, params: {
|
|
16
|
-
uploadedBy: string;
|
|
17
|
-
token: string;
|
|
18
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
|
-
upload(projectId: string, params: {
|
|
20
|
-
uploadedBy: string;
|
|
21
|
-
token: string;
|
|
22
|
-
}, payload: DroneUploadUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
-
verifyToken(projectId: string, params: {
|
|
24
|
-
token: string;
|
|
25
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
26
|
-
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
27
|
-
inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
28
|
-
isInspectionEnabled(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
-
getDroneQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
|
-
getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
|
-
};
|
|
32
|
-
assets360: {
|
|
33
|
-
get360Assets(params: {
|
|
34
|
-
params: Partial<_360AssetsQueryParams>;
|
|
35
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
36
|
-
deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
|
-
getArchive(id: number, params: {
|
|
38
|
-
dateType: string;
|
|
39
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
40
|
-
createUpload(projectId: string, params: _360AssetsRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
41
|
-
upload(id: number, params: Record<string, unknown>, payload: _360AssetsUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
42
|
-
generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
43
|
-
get360QueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
44
|
-
};
|
|
45
|
-
bim: {
|
|
46
|
-
createUpload(projectId: string, params: {
|
|
47
|
-
uploadedBy: string;
|
|
48
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
49
|
-
getBIMs(params: {
|
|
50
|
-
params: Partial<BimUploadsQueryParams>;
|
|
51
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
52
|
-
getArchive(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
53
|
-
deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
54
|
-
upload(projectId: string, params: {
|
|
55
|
-
id: string;
|
|
56
|
-
name: string;
|
|
57
|
-
}, payload: BimUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
58
|
-
};
|
|
59
|
-
mobileCapture: {
|
|
60
|
-
getProjectMobileAssets(params: Record<string, unknown>): Promise<MobileCaptureSnapshot[]>;
|
|
61
|
-
getMobileAssetPhoto(assetId: string | number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
|
-
};
|
|
63
|
-
getTotalQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
64
|
-
checkFlightAvailableFeatures(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
65
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { VideoWallPreset } from "@evercam/api/types";
|
|
2
|
-
export declare const VideoWallApi: {
|
|
3
|
-
presets: {
|
|
4
|
-
getProjectPresets(email: string, projectId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
-
saveProjectPreset(email: string, projectId: string, payload: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
-
getGlobalPreset(email: string): Promise<VideoWallPreset>;
|
|
7
|
-
saveGlobalPreset(email: string, payload: VideoWallPreset): Promise<void>;
|
|
8
|
-
};
|
|
9
|
-
};
|
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/aconex.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export type AconexUserProjectsResponsePayload = Array<{
|
|
2
|
-
id: number;
|
|
3
|
-
name: string;
|
|
4
|
-
shortName: string;
|
|
5
|
-
startDate: string;
|
|
6
|
-
endDate: string;
|
|
7
|
-
}>;
|
|
8
|
-
export type AconexDocumentSchemaField = {
|
|
9
|
-
dataType: AconexDocumentDataType;
|
|
10
|
-
identifier: string;
|
|
11
|
-
schemaValues: Array<{
|
|
12
|
-
id: string;
|
|
13
|
-
value: string;
|
|
14
|
-
}>;
|
|
15
|
-
fieldName: string;
|
|
16
|
-
mandatoryStatus: AconexMandatoryStatus;
|
|
17
|
-
componentType?: AconexFormComponentType;
|
|
18
|
-
items?: Array<any>;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
};
|
|
21
|
-
export declare enum AconexDocumentDataType {
|
|
22
|
-
Long = "LONG",
|
|
23
|
-
Integer = "INTEGER",
|
|
24
|
-
String = "STRING",
|
|
25
|
-
Boolean = "BOOLEAN",
|
|
26
|
-
Date = "DATE"
|
|
27
|
-
}
|
|
28
|
-
export declare enum AconexFormComponentType {
|
|
29
|
-
Select = "SelectField",
|
|
30
|
-
Text = "TextField",
|
|
31
|
-
DateTime = "DateTimeField",
|
|
32
|
-
Switch = "SwitchField"
|
|
33
|
-
}
|
|
34
|
-
export declare enum AconexMandatoryStatus {
|
|
35
|
-
Mandatory = "MANDATORY",
|
|
36
|
-
NotMandatory = "NOT_MANDATORY"
|
|
37
|
-
}
|
|
38
|
-
export type AconexAuthCallbackParams = {
|
|
39
|
-
code: string;
|
|
40
|
-
location: string;
|
|
41
|
-
};
|
|
42
|
-
export type AconexEditedImageUploadRequestPayload = {
|
|
43
|
-
projectExid: string;
|
|
44
|
-
snapshot: string;
|
|
45
|
-
};
|
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
|
-
};
|