@evercam/api 1.0.0-be6bcacc3 → 1.0.0-bea443d8c
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 +3 -0
- package/dist/api/api/3dFirebaseApi.d.ts +170 -12
- package/dist/api/api/adminApi.d.ts +103 -81
- package/dist/api/api/aiApi.d.ts +63 -81
- package/dist/api/api/authzApi.d.ts +31 -15
- package/dist/api/api/client/axios.d.ts +2 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +122 -100
- package/dist/api/api/evercamLabsApi.d.ts +6 -4
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +109 -34
- package/dist/api/api/ptzApi.d.ts +12 -3
- package/dist/api/api/videoWallApi.d.ts +7 -7
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +190 -8
- package/dist/api/types/aconex.d.ts +104 -6
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +141 -43
- package/dist/api/types/anpr.d.ts +24 -13
- package/dist/api/types/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +61 -0
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +86 -1
- package/dist/api/types/axios.d.ts +11 -5
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +102 -98
- package/dist/api/types/comments.d.ts +8 -10
- package/dist/api/types/company.d.ts +42 -1
- package/dist/api/types/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +3 -5
- package/dist/api/types/coolify.d.ts +20 -2
- package/dist/api/types/copilot.d.ts +11 -6
- package/dist/api/types/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +20 -31
- package/dist/api/types/drone.d.ts +92 -3
- package/dist/api/types/errors.d.ts +1 -0
- package/dist/api/types/gateReport.d.ts +49 -158
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +9 -1
- package/dist/api/types/ingest.d.ts +103 -3
- package/dist/api/types/kit.d.ts +33 -5
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +32 -2
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +101 -1
- package/dist/api/types/posthog.d.ts +15 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +6 -32
- package/dist/api/types/project.d.ts +137 -19
- package/dist/api/types/recording.d.ts +6 -4
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +2 -2
- package/dist/api/types/routeParams.d.ts +2 -1
- package/dist/api/types/router.d.ts +20 -1
- package/dist/api/types/shared.d.ts +30 -4
- package/dist/api/types/shares.d.ts +6 -144
- package/dist/api/types/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +191 -46
- package/dist/api/types/siteView.d.ts +74 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +42 -1
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +3 -3
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +4 -18
- package/dist/api/types/timelapse.d.ts +8 -5
- package/dist/api/types/user.d.ts +105 -31
- package/dist/api/types/videoWall.d.ts +47 -14
- package/dist/api/types/weather.d.ts +77 -11
- package/dist/api/types/widget.d.ts +76 -15
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +1661 -954
- 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/types/components.d.ts +137 -18
- package/dist/shared/types/imagePlayer.d.ts +10 -3
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +4 -4
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -1,12 +1,50 @@
|
|
|
1
|
-
import { type _360Scene, type Media, type DroneModel, type MobileCaptureSnapshot, type TimelineDateInterval, type TimelinePrecision, type Comment, TaskStatus, Tag } from "@evercam/
|
|
1
|
+
import { type _360Scene, type Media, type DroneModel, type MobileCaptureSnapshot, type TimelineDateInterval, type TimelinePrecision, type Comment, type ProcoreUserProject, type ProcoreProjectAlbum, type ProcoreObservationType, type AconexUserProject, type AutodeskUserHub, type AutodeskProject, type AutodeskFolder, type ProcoreType, TaskStatus, Tag, TuplePoint2D } from "@evercam/shared/types";
|
|
2
2
|
import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
|
|
3
3
|
import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
|
|
4
|
+
import { SeriesOptionsType } from "highcharts";
|
|
5
|
+
export type SelectItem = {
|
|
6
|
+
text: string;
|
|
7
|
+
value: string | number;
|
|
8
|
+
};
|
|
9
|
+
export declare enum IframeMessageType {
|
|
10
|
+
LiveView = "liveView",
|
|
11
|
+
EditSnapshot = "editSnapshot",
|
|
12
|
+
Weather = "weather",
|
|
13
|
+
CameraInfo = "cameraInfo",
|
|
14
|
+
AnalyticsEvent = "analyticsEvent",
|
|
15
|
+
Ready = "ready",
|
|
16
|
+
Info = "info",
|
|
17
|
+
GateReport = "gateReport",
|
|
18
|
+
CreateCompare = "createCompare",
|
|
19
|
+
UploadDrone = "uploadDrone",
|
|
20
|
+
UploadBIM = "uploadBIM",
|
|
21
|
+
History = "history",
|
|
22
|
+
PerformanceScore = "performanceScore",
|
|
23
|
+
ShareLink = "shareLink",
|
|
24
|
+
LoadForgeModel = "loadForgeModel",
|
|
25
|
+
LoadPlannerList = "loadPlannerList",
|
|
26
|
+
SaveProjectBounds = "saveProjectBounds",
|
|
27
|
+
ArchiveComment = "archiveComment",
|
|
28
|
+
UnarchiveComment = "unarchiveComment",
|
|
29
|
+
DeleteComment = "deleteComment",
|
|
30
|
+
CreateComment = "createComment",
|
|
31
|
+
RefreshComments = "refreshComments",
|
|
32
|
+
CommentSyncFailed = "commentSyncFailed",
|
|
33
|
+
Load360Gallery = "load360Gallery",
|
|
34
|
+
Upload360 = "upload360",
|
|
35
|
+
FetchForgeToken = "FetchForgeToken",
|
|
36
|
+
ForgeTokenResponse = "ForgeTokenResponse",
|
|
37
|
+
ViewerLaunchFlags = "viewerLaunchFlags"
|
|
38
|
+
}
|
|
39
|
+
export declare enum NavigationArrow {
|
|
40
|
+
Previous = "previous",
|
|
41
|
+
Next = "next"
|
|
42
|
+
}
|
|
4
43
|
export declare enum WatermarkedImageDownloadOrigin {
|
|
5
44
|
Drone = "drone",
|
|
6
45
|
Bim = "BIM",
|
|
7
46
|
Snapshot = "snapshot",
|
|
8
47
|
The360 = "360",
|
|
9
|
-
The360Gallery = "360 Gallery",
|
|
10
48
|
Planner = "Planner"
|
|
11
49
|
}
|
|
12
50
|
export declare enum PlayerMode {
|
|
@@ -44,13 +82,6 @@ export type TimelinePlayerGroupConfig = {
|
|
|
44
82
|
export type TimelinePlayerConfig = {
|
|
45
83
|
[groupName: string]: TimelinePlayerGroupConfig;
|
|
46
84
|
};
|
|
47
|
-
export type TimelinePlayerTooltipItem = {
|
|
48
|
-
label?: string;
|
|
49
|
-
title?: string;
|
|
50
|
-
thumbnailUrl: string;
|
|
51
|
-
placeholderThumbnailUrl?: string;
|
|
52
|
-
fallbackThumbnailUrl?: string;
|
|
53
|
-
};
|
|
54
85
|
export declare enum TimelineGroupId {
|
|
55
86
|
ThreeSixty = "w360",
|
|
56
87
|
Drone = "drone",
|
|
@@ -120,8 +151,8 @@ export type LeaderLineOptions = {
|
|
|
120
151
|
startPlugSize?: number;
|
|
121
152
|
endPlugSize?: number;
|
|
122
153
|
path?: LeaderLinesPathType;
|
|
123
|
-
startSocketGravity?:
|
|
124
|
-
endSocketGravity?:
|
|
154
|
+
startSocketGravity?: TuplePoint2D;
|
|
155
|
+
endSocketGravity?: TuplePoint2D;
|
|
125
156
|
dash?: {
|
|
126
157
|
animation: boolean | {
|
|
127
158
|
duration: number;
|
|
@@ -138,10 +169,6 @@ export type LineConfig = {
|
|
|
138
169
|
end: CssSelector | CssSelector[];
|
|
139
170
|
options?: LeaderLineOptions;
|
|
140
171
|
};
|
|
141
|
-
export type Point = {
|
|
142
|
-
x: number;
|
|
143
|
-
y: number;
|
|
144
|
-
};
|
|
145
172
|
export declare enum ZohoDeskTicketStatus {
|
|
146
173
|
Closed = "Closed",
|
|
147
174
|
OnHold = "On Hold",
|
|
@@ -154,11 +181,14 @@ export declare enum FormSchemaComponents {
|
|
|
154
181
|
SelectField = "SelectField",
|
|
155
182
|
MultiOption = "MultiOption",
|
|
156
183
|
TextField = "TextField",
|
|
157
|
-
|
|
158
|
-
|
|
184
|
+
SwitchField = "SwitchField",
|
|
185
|
+
CheckBox = "CheckBoxField",
|
|
186
|
+
Date = "DatePickerInput",
|
|
187
|
+
DateTime = "DateTimeField",
|
|
159
188
|
TextArea = "Textarea",
|
|
160
189
|
Search = "Autocomplete",
|
|
161
|
-
ReadOnly = "ReadOnly"
|
|
190
|
+
ReadOnly = "ReadOnly",
|
|
191
|
+
Ratio = "RatioField"
|
|
162
192
|
}
|
|
163
193
|
export declare enum FormSchemaDataType {
|
|
164
194
|
String = "string",
|
|
@@ -183,6 +213,17 @@ export type FormSchemaField = {
|
|
|
183
213
|
columns?: number;
|
|
184
214
|
};
|
|
185
215
|
export type FormSchema = Record<string, FormSchemaField>;
|
|
216
|
+
export type DrawingStats = {
|
|
217
|
+
overlay: boolean;
|
|
218
|
+
geolocated: boolean;
|
|
219
|
+
isCalibrated: boolean;
|
|
220
|
+
walks: number;
|
|
221
|
+
markers: number;
|
|
222
|
+
minimodel: number;
|
|
223
|
+
bim: number;
|
|
224
|
+
comments: number;
|
|
225
|
+
lastCapturedDate: string | null;
|
|
226
|
+
};
|
|
186
227
|
export interface ScrollListener {
|
|
187
228
|
element: Element | Window;
|
|
188
229
|
handler: () => void;
|
|
@@ -191,3 +232,81 @@ export interface LeaderLineInstance {
|
|
|
191
232
|
remove(): void;
|
|
192
233
|
position(): void;
|
|
193
234
|
}
|
|
235
|
+
export type SnapshotCardItem = {
|
|
236
|
+
label?: string;
|
|
237
|
+
title?: string;
|
|
238
|
+
thumbnailUrl: string;
|
|
239
|
+
placeholderThumbnailUrl?: string;
|
|
240
|
+
fallbackThumbnailUrl?: string;
|
|
241
|
+
};
|
|
242
|
+
export type DocumentExtended = Document & {
|
|
243
|
+
webkitIsFullScreen?: boolean;
|
|
244
|
+
mozFullScreen?: boolean;
|
|
245
|
+
msFullscreenElement?: Element | null;
|
|
246
|
+
fullscreenElement?: Element;
|
|
247
|
+
webkitFullscreenElement?: Element;
|
|
248
|
+
mozFullScreenElement?: Element;
|
|
249
|
+
};
|
|
250
|
+
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
251
|
+
data: T[];
|
|
252
|
+
};
|
|
253
|
+
export type FormattedNotificationData = {
|
|
254
|
+
title: string;
|
|
255
|
+
link: string;
|
|
256
|
+
thumbnail?: string;
|
|
257
|
+
icon?: string;
|
|
258
|
+
drone?: boolean;
|
|
259
|
+
is360?: boolean;
|
|
260
|
+
};
|
|
261
|
+
export type FormattedNotification = FormattedNotificationData & {
|
|
262
|
+
date: string;
|
|
263
|
+
read: boolean;
|
|
264
|
+
id: number;
|
|
265
|
+
thumbnailError?: boolean;
|
|
266
|
+
};
|
|
267
|
+
export type ProcoreProjectStepData = {
|
|
268
|
+
project: ProcoreUserProject | null;
|
|
269
|
+
album: ProcoreProjectAlbum | null;
|
|
270
|
+
observationType: ProcoreObservationType | null;
|
|
271
|
+
};
|
|
272
|
+
export type ProcoreUploadFormData = {
|
|
273
|
+
procoreType: ProcoreType;
|
|
274
|
+
project: ProcoreUserProject | null;
|
|
275
|
+
album: ProcoreProjectAlbum | null;
|
|
276
|
+
observationType: ProcoreObservationType | null;
|
|
277
|
+
observationForm: Record<string, string | number | boolean | null>;
|
|
278
|
+
};
|
|
279
|
+
export type AconexUploadFormData = {
|
|
280
|
+
project: AconexUserProject | null;
|
|
281
|
+
form: Record<string, string | number | boolean | null>;
|
|
282
|
+
};
|
|
283
|
+
export type AutodeskUploadFormData = {
|
|
284
|
+
hub: AutodeskUserHub | null;
|
|
285
|
+
project: AutodeskProject | null;
|
|
286
|
+
folder: AutodeskFolder | null;
|
|
287
|
+
};
|
|
288
|
+
export interface MediaHubFilters {
|
|
289
|
+
title: string;
|
|
290
|
+
requesterEmail: string | undefined;
|
|
291
|
+
camera: string | undefined;
|
|
292
|
+
type: string;
|
|
293
|
+
fromDate: string;
|
|
294
|
+
toDate: string;
|
|
295
|
+
sortBy: string;
|
|
296
|
+
}
|
|
297
|
+
export interface MediaHubSortParameter {
|
|
298
|
+
label: string;
|
|
299
|
+
value: string;
|
|
300
|
+
}
|
|
301
|
+
export type TableHeaderParams<TItem = unknown> = {
|
|
302
|
+
value: string;
|
|
303
|
+
text: string;
|
|
304
|
+
cellClass?: string;
|
|
305
|
+
align?: string;
|
|
306
|
+
sortable?: boolean;
|
|
307
|
+
visible?: boolean;
|
|
308
|
+
width?: number | string;
|
|
309
|
+
copyable?: boolean;
|
|
310
|
+
toStringFn?: (item: TItem, key: string) => any;
|
|
311
|
+
sort?: (a: unknown, b: unknown) => number;
|
|
312
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Timestamp } from "@evercam/
|
|
1
|
+
import type { Timestamp } from "@evercam/shared/types";
|
|
2
2
|
export interface Frame {
|
|
3
3
|
label: string;
|
|
4
4
|
src: string;
|
|
@@ -13,7 +13,7 @@ export type EventMarker<T extends {}> = T & {
|
|
|
13
13
|
label: string;
|
|
14
14
|
thumbnailUrl: string;
|
|
15
15
|
isActive: boolean;
|
|
16
|
-
|
|
16
|
+
markerType?: RecordingsMarker;
|
|
17
17
|
};
|
|
18
18
|
export type SnapshotEvent<T extends {}> = T & {
|
|
19
19
|
eventTime: Timestamp;
|
|
@@ -22,8 +22,15 @@ export type MatchedSnapshotEvent<T extends {}> = SnapshotEvent<T> & {
|
|
|
22
22
|
frameIndex: number;
|
|
23
23
|
snapshotTimestamp: Timestamp;
|
|
24
24
|
};
|
|
25
|
+
export declare enum RecordingsMarker {
|
|
26
|
+
Comment = "comment",
|
|
27
|
+
GateReport = "gate-report",
|
|
28
|
+
Anpr = "anpr",
|
|
29
|
+
Detection = "detection",
|
|
30
|
+
SmartSearch = "smart-search"
|
|
31
|
+
}
|
|
25
32
|
export declare enum ImageQuality {
|
|
26
|
-
|
|
33
|
+
ThreeSixty = "360",
|
|
27
34
|
FourEighty = "480",
|
|
28
35
|
SevenTwenty = "720",
|
|
29
36
|
OneZeroEightZero = "1080",
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { ProjectMember, ProjectInvite, ProjectResourceRole } from "@evercam/api/types";
|
|
2
|
+
export type HasRoleChangedFn<T = ProjectMember | ProjectInvite> = (entity: T, baseRole: ProjectResourceRole) => boolean;
|
|
3
|
+
export type ProjectRoleData = {
|
|
4
|
+
id?: number;
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string | null;
|
|
7
|
+
permissions: string[];
|
|
8
|
+
subRoles?: Array<{
|
|
9
|
+
resourceId: string;
|
|
10
|
+
roleId: number | null;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
export type ProjectResourcePermission = {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
requires?: string;
|
|
18
|
+
};
|
|
19
|
+
export type ProjectResource = {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
permissions: ProjectResourcePermission[];
|
|
23
|
+
};
|
|
24
|
+
export type ProjectPermissionWarning = {
|
|
25
|
+
resourceId: string;
|
|
26
|
+
message: string;
|
|
27
|
+
type?: string;
|
|
28
|
+
cameraExids?: string[];
|
|
29
|
+
accessLevel?: string;
|
|
30
|
+
grantAllPermissions?: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type ProjectDisabledPermission = {
|
|
33
|
+
id: string;
|
|
34
|
+
reason: string;
|
|
35
|
+
};
|
|
36
|
+
export type CameraAccessFilters = {
|
|
37
|
+
memberName: string;
|
|
38
|
+
memberEmail: string;
|
|
39
|
+
cameraName: string;
|
|
40
|
+
};
|
|
41
|
+
export type CameraAccessLevelConfig = {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
description: string;
|
|
45
|
+
permissions: string[];
|
|
46
|
+
};
|
|
47
|
+
export declare enum CameraStatusGroup {
|
|
48
|
+
Active = "active",
|
|
49
|
+
Pending = "pending",
|
|
50
|
+
Archived = "archived"
|
|
51
|
+
}
|
|
52
|
+
export type CameraStatusGroupConfig = {
|
|
53
|
+
text: string;
|
|
54
|
+
icon: string;
|
|
55
|
+
color: string;
|
|
56
|
+
};
|
|
57
|
+
export type CameraFeatureIconConfig = {
|
|
58
|
+
icon: string;
|
|
59
|
+
tooltip: string;
|
|
60
|
+
};
|
|
61
|
+
export type RecipientRule = {
|
|
62
|
+
blocked: string[];
|
|
63
|
+
};
|
|
64
|
+
export type RecipientRules = {
|
|
65
|
+
notExistingRecipients?: RecipientRule;
|
|
66
|
+
notPendingInviteRecipients?: RecipientRule;
|
|
67
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TimelineGroupId, type TimelinePlayerGroupConfig } from "
|
|
1
|
+
import { TimelineGroupId, type TimelinePlayerGroupConfig } from "./components";
|
|
2
2
|
export interface TimelineGroup {
|
|
3
3
|
id: TimelineGroupId;
|
|
4
4
|
timelineConfig: TimelinePlayerGroupConfig | Record<string, TimelinePlayerGroupConfig>;
|
|
@@ -6,4 +6,5 @@ export interface TimelineGroup {
|
|
|
6
6
|
isDisabled: boolean;
|
|
7
7
|
isRestricted?: boolean;
|
|
8
8
|
hasMultipleGroups?: boolean;
|
|
9
|
+
isPersistent?: boolean;
|
|
9
10
|
}
|
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-bea443d8c",
|
|
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,7 +36,7 @@
|
|
|
36
36
|
"publish-api": "cd ../.. && yarn publish-api"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^
|
|
39
|
+
"@types/node": "^25.6.2",
|
|
40
40
|
"vite": "latest",
|
|
41
41
|
"vite-plugin-commonjs": "^0.10.3",
|
|
42
42
|
"vite-plugin-dts": "^4.5.4"
|
|
@@ -47,4 +47,4 @@
|
|
|
47
47
|
"idb-keyval": "^6.2.2",
|
|
48
48
|
"moment-timezone": "^0.5.46"
|
|
49
49
|
}
|
|
50
|
-
}
|
|
50
|
+
}
|