@evercam/api 1.0.0-a59703ab2 → 1.0.0-a5bda6817
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/dist/api/api/3dFirebaseApi.d.ts +166 -15
- package/dist/api/api/adminApi.d.ts +67 -37
- package/dist/api/api/aiApi.d.ts +58 -54
- package/dist/api/api/authzApi.d.ts +23 -16
- package/dist/api/api/client/axios.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +113 -71
- package/dist/api/api/evercamLabsApi.d.ts +4 -5
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +99 -47
- package/dist/api/api/ptzApi.d.ts +9 -4
- package/dist/api/api/videoWallApi.d.ts +2 -2
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +59 -52
- package/dist/api/types/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +106 -58
- package/dist/api/types/anpr.d.ts +17 -2
- package/dist/api/types/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +45 -12
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +37 -3
- package/dist/api/types/axios.d.ts +11 -6
- package/dist/api/types/bim.d.ts +28 -5
- package/dist/api/types/camera.d.ts +91 -93
- 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 +18 -2
- package/dist/api/types/copilot.d.ts +11 -6
- package/dist/api/types/detections.d.ts +20 -17
- package/dist/api/types/drone.d.ts +92 -3
- package/dist/api/types/gateReport.d.ts +46 -58
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +7 -1
- package/dist/api/types/ingest.d.ts +99 -3
- package/dist/api/types/kit.d.ts +14 -7
- 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 +97 -0
- 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 -2
- package/dist/api/types/project.d.ts +96 -22
- package/dist/api/types/recording.d.ts +5 -4
- package/dist/api/types/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +2 -2
- package/dist/api/types/router.d.ts +1 -1
- package/dist/api/types/shared.d.ts +30 -4
- package/dist/api/types/shares.d.ts +1 -1
- package/dist/api/types/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +81 -41
- 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 +44 -4
- 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 +0 -18
- package/dist/api/types/timelapse.d.ts +8 -5
- package/dist/api/types/user.d.ts +90 -33
- package/dist/api/types/videoWall.d.ts +21 -21
- package/dist/api/types/weather.d.ts +75 -11
- package/dist/api/types/widget.d.ts +71 -12
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/index.js +1409 -761
- 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 +139 -16
- package/dist/shared/types/imagePlayer.d.ts +9 -2
- 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 +2 -2
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -1,6 +1,43 @@
|
|
|
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
|
+
import type { IngestUploadInitResponse } from "@evercam/api/types";
|
|
2
3
|
import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
|
|
3
4
|
import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
|
|
5
|
+
import { SeriesOptionsType } from "highcharts";
|
|
6
|
+
export type SelectItem = {
|
|
7
|
+
text: string;
|
|
8
|
+
value: string | number;
|
|
9
|
+
};
|
|
10
|
+
export declare enum IframeMessageType {
|
|
11
|
+
LiveView = "liveView",
|
|
12
|
+
EditSnapshot = "editSnapshot",
|
|
13
|
+
Weather = "weather",
|
|
14
|
+
CameraInfo = "cameraInfo",
|
|
15
|
+
AnalyticsEvent = "analyticsEvent",
|
|
16
|
+
Ready = "ready",
|
|
17
|
+
Info = "info",
|
|
18
|
+
GateReport = "gateReport",
|
|
19
|
+
CreateCompare = "createCompare",
|
|
20
|
+
UploadDrone = "uploadDrone",
|
|
21
|
+
UploadBIM = "uploadBIM",
|
|
22
|
+
History = "history",
|
|
23
|
+
PerformanceScore = "performanceScore",
|
|
24
|
+
ShareLink = "shareLink",
|
|
25
|
+
LoadForgeModel = "loadForgeModel",
|
|
26
|
+
LoadPlannerList = "loadPlannerList",
|
|
27
|
+
SaveProjectBounds = "saveProjectBounds",
|
|
28
|
+
ArchiveComment = "archiveComment",
|
|
29
|
+
UnarchiveComment = "unarchiveComment",
|
|
30
|
+
DeleteComment = "deleteComment",
|
|
31
|
+
CreateComment = "createComment",
|
|
32
|
+
RefreshComments = "refreshComments",
|
|
33
|
+
CommentSyncFailed = "commentSyncFailed",
|
|
34
|
+
Load360Gallery = "load360Gallery",
|
|
35
|
+
Upload360 = "upload360",
|
|
36
|
+
FetchForgeToken = "FetchForgeToken",
|
|
37
|
+
ForgeTokenResponse = "ForgeTokenResponse",
|
|
38
|
+
ShowBimUploadChoice = "showBimUploadChoice",
|
|
39
|
+
ViewerLaunchFlags = "viewerLaunchFlags"
|
|
40
|
+
}
|
|
4
41
|
export declare enum NavigationArrow {
|
|
5
42
|
Previous = "previous",
|
|
6
43
|
Next = "next"
|
|
@@ -10,7 +47,6 @@ export declare enum WatermarkedImageDownloadOrigin {
|
|
|
10
47
|
Bim = "BIM",
|
|
11
48
|
Snapshot = "snapshot",
|
|
12
49
|
The360 = "360",
|
|
13
|
-
The360Gallery = "360 Gallery",
|
|
14
50
|
Planner = "Planner"
|
|
15
51
|
}
|
|
16
52
|
export declare enum PlayerMode {
|
|
@@ -48,13 +84,6 @@ export type TimelinePlayerGroupConfig = {
|
|
|
48
84
|
export type TimelinePlayerConfig = {
|
|
49
85
|
[groupName: string]: TimelinePlayerGroupConfig;
|
|
50
86
|
};
|
|
51
|
-
export type TimelinePlayerTooltipItem = {
|
|
52
|
-
label?: string;
|
|
53
|
-
title?: string;
|
|
54
|
-
thumbnailUrl: string;
|
|
55
|
-
placeholderThumbnailUrl?: string;
|
|
56
|
-
fallbackThumbnailUrl?: string;
|
|
57
|
-
};
|
|
58
87
|
export declare enum TimelineGroupId {
|
|
59
88
|
ThreeSixty = "w360",
|
|
60
89
|
Drone = "drone",
|
|
@@ -124,8 +153,8 @@ export type LeaderLineOptions = {
|
|
|
124
153
|
startPlugSize?: number;
|
|
125
154
|
endPlugSize?: number;
|
|
126
155
|
path?: LeaderLinesPathType;
|
|
127
|
-
startSocketGravity?:
|
|
128
|
-
endSocketGravity?:
|
|
156
|
+
startSocketGravity?: TuplePoint2D;
|
|
157
|
+
endSocketGravity?: TuplePoint2D;
|
|
129
158
|
dash?: {
|
|
130
159
|
animation: boolean | {
|
|
131
160
|
duration: number;
|
|
@@ -142,10 +171,6 @@ export type LineConfig = {
|
|
|
142
171
|
end: CssSelector | CssSelector[];
|
|
143
172
|
options?: LeaderLineOptions;
|
|
144
173
|
};
|
|
145
|
-
export type Point = {
|
|
146
|
-
x: number;
|
|
147
|
-
y: number;
|
|
148
|
-
};
|
|
149
174
|
export declare enum ZohoDeskTicketStatus {
|
|
150
175
|
Closed = "Closed",
|
|
151
176
|
OnHold = "On Hold",
|
|
@@ -158,7 +183,8 @@ export declare enum FormSchemaComponents {
|
|
|
158
183
|
SelectField = "SelectField",
|
|
159
184
|
MultiOption = "MultiOption",
|
|
160
185
|
TextField = "TextField",
|
|
161
|
-
|
|
186
|
+
SwitchField = "SwitchField",
|
|
187
|
+
CheckBox = "CheckBoxField",
|
|
162
188
|
Date = "DatePickerInput",
|
|
163
189
|
DateTime = "DateTimeField",
|
|
164
190
|
TextArea = "Textarea",
|
|
@@ -189,6 +215,17 @@ export type FormSchemaField = {
|
|
|
189
215
|
columns?: number;
|
|
190
216
|
};
|
|
191
217
|
export type FormSchema = Record<string, FormSchemaField>;
|
|
218
|
+
export type DrawingStats = {
|
|
219
|
+
overlay: boolean;
|
|
220
|
+
geolocated: boolean;
|
|
221
|
+
isCalibrated: boolean;
|
|
222
|
+
walks: number;
|
|
223
|
+
markers: number;
|
|
224
|
+
minimodel: number;
|
|
225
|
+
bim: number;
|
|
226
|
+
comments: number;
|
|
227
|
+
lastCapturedDate: string | null;
|
|
228
|
+
};
|
|
192
229
|
export interface ScrollListener {
|
|
193
230
|
element: Element | Window;
|
|
194
231
|
handler: () => void;
|
|
@@ -197,3 +234,89 @@ export interface LeaderLineInstance {
|
|
|
197
234
|
remove(): void;
|
|
198
235
|
position(): void;
|
|
199
236
|
}
|
|
237
|
+
export type SnapshotCardItem = {
|
|
238
|
+
label?: string;
|
|
239
|
+
title?: string;
|
|
240
|
+
thumbnailUrl: string;
|
|
241
|
+
placeholderThumbnailUrl?: string;
|
|
242
|
+
fallbackThumbnailUrl?: string;
|
|
243
|
+
};
|
|
244
|
+
export type DocumentExtended = Document & {
|
|
245
|
+
webkitIsFullScreen?: boolean;
|
|
246
|
+
mozFullScreen?: boolean;
|
|
247
|
+
msFullscreenElement?: Element | null;
|
|
248
|
+
fullscreenElement?: Element;
|
|
249
|
+
webkitFullscreenElement?: Element;
|
|
250
|
+
mozFullScreenElement?: Element;
|
|
251
|
+
};
|
|
252
|
+
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
253
|
+
data: T[];
|
|
254
|
+
};
|
|
255
|
+
export type FormattedNotificationData = {
|
|
256
|
+
title: string;
|
|
257
|
+
link: string;
|
|
258
|
+
thumbnail?: string;
|
|
259
|
+
icon?: string;
|
|
260
|
+
drone?: boolean;
|
|
261
|
+
is360?: boolean;
|
|
262
|
+
};
|
|
263
|
+
export type FormattedNotification = FormattedNotificationData & {
|
|
264
|
+
date: string;
|
|
265
|
+
read: boolean;
|
|
266
|
+
id: number;
|
|
267
|
+
thumbnailError?: boolean;
|
|
268
|
+
};
|
|
269
|
+
export type ProcoreProjectStepData = {
|
|
270
|
+
project: ProcoreUserProject | null;
|
|
271
|
+
album: ProcoreProjectAlbum | null;
|
|
272
|
+
observationType: ProcoreObservationType | null;
|
|
273
|
+
};
|
|
274
|
+
export type ProcoreUploadFormData = {
|
|
275
|
+
procoreType: ProcoreType;
|
|
276
|
+
project: ProcoreUserProject | null;
|
|
277
|
+
album: ProcoreProjectAlbum | null;
|
|
278
|
+
observationType: ProcoreObservationType | null;
|
|
279
|
+
observationForm: Record<string, string | number | boolean | null>;
|
|
280
|
+
};
|
|
281
|
+
export type AconexUploadFormData = {
|
|
282
|
+
project: AconexUserProject | null;
|
|
283
|
+
form: Record<string, string | number | boolean | null>;
|
|
284
|
+
};
|
|
285
|
+
export type AutodeskUploadFormData = {
|
|
286
|
+
hub: AutodeskUserHub | null;
|
|
287
|
+
project: AutodeskProject | null;
|
|
288
|
+
folder: AutodeskFolder | null;
|
|
289
|
+
};
|
|
290
|
+
export interface MediaHubFilters {
|
|
291
|
+
title: string;
|
|
292
|
+
requesterEmail: string | undefined;
|
|
293
|
+
camera: string | undefined;
|
|
294
|
+
type: string;
|
|
295
|
+
fromDate: string;
|
|
296
|
+
toDate: string;
|
|
297
|
+
sortBy: string;
|
|
298
|
+
}
|
|
299
|
+
export interface MediaHubSortParameter {
|
|
300
|
+
label: string;
|
|
301
|
+
value: string;
|
|
302
|
+
}
|
|
303
|
+
export type TableHeaderParams<TItem = unknown> = {
|
|
304
|
+
value: string;
|
|
305
|
+
text: string;
|
|
306
|
+
cellClass?: string;
|
|
307
|
+
align?: string;
|
|
308
|
+
sortable?: boolean;
|
|
309
|
+
visible?: boolean;
|
|
310
|
+
width?: number | string;
|
|
311
|
+
copyable?: boolean;
|
|
312
|
+
toStringFn?: (item: TItem, key: string) => any;
|
|
313
|
+
sort?: (a: unknown, b: unknown) => number;
|
|
314
|
+
};
|
|
315
|
+
export type BimUploadObject = IngestUploadInitResponse & {
|
|
316
|
+
projectName: string;
|
|
317
|
+
};
|
|
318
|
+
export type BimUploadFileResult = {
|
|
319
|
+
url: string;
|
|
320
|
+
title: string;
|
|
321
|
+
fileExtension: string;
|
|
322
|
+
};
|
|
@@ -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,6 +22,13 @@ 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",
|
|
@@ -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-a5bda6817",
|
|
4
4
|
"description": "Evercam API client",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"publish-api": "cd ../.. && yarn publish-api"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^25.
|
|
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"
|