@evercam/api 1.0.0-40f7b211b → 1.0.0-41bb6af5a
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 +4 -0
- package/dist/api/api/3dFirebaseApi.d.ts +208 -12
- package/dist/api/api/adminApi.d.ts +122 -95
- package/dist/api/api/aiApi.d.ts +125 -82
- package/dist/api/api/authzApi.d.ts +34 -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 +150 -106
- package/dist/api/api/evercamLabsApi.d.ts +9 -7
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +123 -33
- 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 +334 -9
- package/dist/api/types/aconex.d.ts +104 -6
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +174 -42
- package/dist/api/types/anpr.d.ts +53 -13
- package/dist/api/types/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +107 -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 +19 -10
- package/dist/api/types/bim.d.ts +37 -6
- package/dist/api/types/camera.d.ts +106 -92
- package/dist/api/types/comments.d.ts +10 -11
- 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 +5 -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 +23 -32
- package/dist/api/types/drone.d.ts +96 -6
- package/dist/api/types/errors.d.ts +12 -0
- package/dist/api/types/gateReport.d.ts +50 -158
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +15 -1
- package/dist/api/types/ingest.d.ts +116 -4
- package/dist/api/types/kit.d.ts +71 -7
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +10 -3
- package/dist/api/types/notification.d.ts +43 -3
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/planner.d.ts +101 -1
- package/dist/api/types/posthog.d.ts +35 -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 +144 -19
- package/dist/api/types/recording.d.ts +9 -12
- 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 +4 -3
- package/dist/api/types/routeParams.d.ts +3 -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/siteAnalyticsManagement.d.ts +92 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +55 -1
- package/dist/api/types/socket.d.ts +4 -0
- 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 +106 -35
- 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 +96 -16
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/index.js +2279 -1045
- 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 +221 -17
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +10 -3
- package/dist/shared/types/index.d.ts +3 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +6 -4
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -1,6 +1,62 @@
|
|
|
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, type HammertechProject, type HammertechIssueType, type HammertechPriority, type HammertechClassification, type HammertechFileFieldValue, TaskStatus, Tag, TuplePoint2D, CameraStatus } from "@evercam/shared/types";
|
|
2
|
+
import type { AdminCamera, Camera, 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 ReorderableCamera = Camera & {
|
|
7
|
+
thumbnailSrc?: string;
|
|
8
|
+
batteryLevel?: {
|
|
9
|
+
voltage: number;
|
|
10
|
+
level: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
color: string;
|
|
13
|
+
} | null;
|
|
14
|
+
};
|
|
15
|
+
export type SelectItem = {
|
|
16
|
+
text: string;
|
|
17
|
+
value: string | number;
|
|
18
|
+
};
|
|
19
|
+
export type RoiProjectGroup = {
|
|
20
|
+
exid: string;
|
|
21
|
+
name: string;
|
|
22
|
+
cameras: AdminCamera[];
|
|
23
|
+
};
|
|
24
|
+
export declare enum IframeMessageType {
|
|
25
|
+
LiveView = "liveView",
|
|
26
|
+
EditSnapshot = "editSnapshot",
|
|
27
|
+
Weather = "weather",
|
|
28
|
+
CameraInfo = "cameraInfo",
|
|
29
|
+
AnalyticsEvent = "analyticsEvent",
|
|
30
|
+
Ready = "ready",
|
|
31
|
+
Info = "info",
|
|
32
|
+
GateReport = "gateReport",
|
|
33
|
+
CreateCompare = "createCompare",
|
|
34
|
+
UploadDrone = "uploadDrone",
|
|
35
|
+
UploadBIM = "uploadBIM",
|
|
36
|
+
History = "history",
|
|
37
|
+
PerformanceScore = "performanceScore",
|
|
38
|
+
ShareLink = "shareLink",
|
|
39
|
+
LoadForgeModel = "loadForgeModel",
|
|
40
|
+
LoadPlannerList = "loadPlannerList",
|
|
41
|
+
SaveProjectBounds = "saveProjectBounds",
|
|
42
|
+
ArchiveComment = "archiveComment",
|
|
43
|
+
UnarchiveComment = "unarchiveComment",
|
|
44
|
+
DeleteComment = "deleteComment",
|
|
45
|
+
CreateComment = "createComment",
|
|
46
|
+
RefreshComments = "refreshComments",
|
|
47
|
+
CommentSyncFailed = "commentSyncFailed",
|
|
48
|
+
Load360Gallery = "load360Gallery",
|
|
49
|
+
Upload360 = "upload360",
|
|
50
|
+
FetchForgeToken = "FetchForgeToken",
|
|
51
|
+
ForgeTokenResponse = "ForgeTokenResponse",
|
|
52
|
+
ShowBimUploadChoice = "showBimUploadChoice",
|
|
53
|
+
ViewerLaunchFlags = "viewerLaunchFlags",
|
|
54
|
+
CloseCameraMarkerPreview = "CloseCameraMarkerPreview"
|
|
55
|
+
}
|
|
56
|
+
export declare enum NavigationArrow {
|
|
57
|
+
Previous = "previous",
|
|
58
|
+
Next = "next"
|
|
59
|
+
}
|
|
4
60
|
export declare enum WatermarkedImageDownloadOrigin {
|
|
5
61
|
Drone = "drone",
|
|
6
62
|
Bim = "BIM",
|
|
@@ -43,13 +99,6 @@ export type TimelinePlayerGroupConfig = {
|
|
|
43
99
|
export type TimelinePlayerConfig = {
|
|
44
100
|
[groupName: string]: TimelinePlayerGroupConfig;
|
|
45
101
|
};
|
|
46
|
-
export type TimelinePlayerTooltipItem = {
|
|
47
|
-
label?: string;
|
|
48
|
-
title?: string;
|
|
49
|
-
thumbnailUrl: string;
|
|
50
|
-
placeholderThumbnailUrl?: string;
|
|
51
|
-
fallbackThumbnailUrl?: string;
|
|
52
|
-
};
|
|
53
102
|
export declare enum TimelineGroupId {
|
|
54
103
|
ThreeSixty = "w360",
|
|
55
104
|
Drone = "drone",
|
|
@@ -119,8 +168,8 @@ export type LeaderLineOptions = {
|
|
|
119
168
|
startPlugSize?: number;
|
|
120
169
|
endPlugSize?: number;
|
|
121
170
|
path?: LeaderLinesPathType;
|
|
122
|
-
startSocketGravity?:
|
|
123
|
-
endSocketGravity?:
|
|
171
|
+
startSocketGravity?: TuplePoint2D;
|
|
172
|
+
endSocketGravity?: TuplePoint2D;
|
|
124
173
|
dash?: {
|
|
125
174
|
animation: boolean | {
|
|
126
175
|
duration: number;
|
|
@@ -137,10 +186,6 @@ export type LineConfig = {
|
|
|
137
186
|
end: CssSelector | CssSelector[];
|
|
138
187
|
options?: LeaderLineOptions;
|
|
139
188
|
};
|
|
140
|
-
export type Point = {
|
|
141
|
-
x: number;
|
|
142
|
-
y: number;
|
|
143
|
-
};
|
|
144
189
|
export declare enum ZohoDeskTicketStatus {
|
|
145
190
|
Closed = "Closed",
|
|
146
191
|
OnHold = "On Hold",
|
|
@@ -151,13 +196,18 @@ export type TagSelectorItem = Tag & {
|
|
|
151
196
|
};
|
|
152
197
|
export declare enum FormSchemaComponents {
|
|
153
198
|
SelectField = "SelectField",
|
|
199
|
+
HierarchicalSelect = "HierarchicalSelectField",
|
|
154
200
|
MultiOption = "MultiOption",
|
|
155
201
|
TextField = "TextField",
|
|
156
|
-
|
|
157
|
-
|
|
202
|
+
SwitchField = "SwitchField",
|
|
203
|
+
CheckBox = "CheckBoxField",
|
|
204
|
+
Date = "DatePickerInput",
|
|
205
|
+
DateTime = "DateTimeField",
|
|
206
|
+
Time = "TimeField",
|
|
158
207
|
TextArea = "Textarea",
|
|
159
208
|
Search = "Autocomplete",
|
|
160
|
-
ReadOnly = "ReadOnly"
|
|
209
|
+
ReadOnly = "ReadOnly",
|
|
210
|
+
Ratio = "RatioField"
|
|
161
211
|
}
|
|
162
212
|
export declare enum FormSchemaDataType {
|
|
163
213
|
String = "string",
|
|
@@ -168,6 +218,7 @@ export declare enum FormSchemaDataType {
|
|
|
168
218
|
export type FormSchemaOptions = {
|
|
169
219
|
title: string;
|
|
170
220
|
value: string;
|
|
221
|
+
parentId?: string | null;
|
|
171
222
|
};
|
|
172
223
|
export type FormSchemaField = {
|
|
173
224
|
id: string;
|
|
@@ -182,11 +233,164 @@ export type FormSchemaField = {
|
|
|
182
233
|
columns?: number;
|
|
183
234
|
};
|
|
184
235
|
export type FormSchema = Record<string, FormSchemaField>;
|
|
236
|
+
export type DrawingStats = {
|
|
237
|
+
overlay: boolean;
|
|
238
|
+
geolocated: boolean;
|
|
239
|
+
isCalibrated: boolean;
|
|
240
|
+
walks: number;
|
|
241
|
+
markers: number;
|
|
242
|
+
minimodel: number;
|
|
243
|
+
bim: number;
|
|
244
|
+
comments: number;
|
|
245
|
+
lastCapturedDate: string | null;
|
|
246
|
+
};
|
|
185
247
|
export interface ScrollListener {
|
|
186
248
|
element: Element | Window;
|
|
249
|
+
event: "scroll" | "resize";
|
|
187
250
|
handler: () => void;
|
|
188
251
|
}
|
|
189
252
|
export interface LeaderLineInstance {
|
|
190
253
|
remove(): void;
|
|
191
254
|
position(): void;
|
|
192
255
|
}
|
|
256
|
+
export type SnapshotCardItem = {
|
|
257
|
+
label?: string;
|
|
258
|
+
title?: string;
|
|
259
|
+
thumbnailUrl: string;
|
|
260
|
+
placeholderThumbnailUrl?: string;
|
|
261
|
+
fallbackThumbnailUrl?: string;
|
|
262
|
+
};
|
|
263
|
+
export type DocumentExtended = Document & {
|
|
264
|
+
webkitIsFullScreen?: boolean;
|
|
265
|
+
mozFullScreen?: boolean;
|
|
266
|
+
msFullscreenElement?: Element | null;
|
|
267
|
+
fullscreenElement?: Element;
|
|
268
|
+
webkitFullscreenElement?: Element;
|
|
269
|
+
mozFullScreenElement?: Element;
|
|
270
|
+
};
|
|
271
|
+
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
272
|
+
data: T[];
|
|
273
|
+
};
|
|
274
|
+
export type NotificationTitleSegment = {
|
|
275
|
+
text: string;
|
|
276
|
+
isBold?: boolean;
|
|
277
|
+
};
|
|
278
|
+
export type FormattedNotificationData = {
|
|
279
|
+
title: string;
|
|
280
|
+
titleSegments?: NotificationTitleSegment[];
|
|
281
|
+
link: string;
|
|
282
|
+
thumbnail?: string;
|
|
283
|
+
icon?: string;
|
|
284
|
+
drone?: boolean;
|
|
285
|
+
is360?: boolean;
|
|
286
|
+
};
|
|
287
|
+
export type FormattedNotification = FormattedNotificationData & {
|
|
288
|
+
date: string;
|
|
289
|
+
read: boolean;
|
|
290
|
+
id: number;
|
|
291
|
+
thumbnailError?: boolean;
|
|
292
|
+
};
|
|
293
|
+
export type ProcoreProjectStepData = {
|
|
294
|
+
project: ProcoreUserProject | null;
|
|
295
|
+
album: ProcoreProjectAlbum | null;
|
|
296
|
+
observationType: ProcoreObservationType | null;
|
|
297
|
+
};
|
|
298
|
+
export type ProcoreUploadFormData = {
|
|
299
|
+
procoreType: ProcoreType;
|
|
300
|
+
project: ProcoreUserProject | null;
|
|
301
|
+
album: ProcoreProjectAlbum | null;
|
|
302
|
+
observationType: ProcoreObservationType | null;
|
|
303
|
+
observationForm: Record<string, string | number | boolean | null>;
|
|
304
|
+
};
|
|
305
|
+
export type AconexUploadFormData = {
|
|
306
|
+
project: AconexUserProject | null;
|
|
307
|
+
form: Record<string, string | number | boolean | null>;
|
|
308
|
+
};
|
|
309
|
+
export type AutodeskUploadFormData = {
|
|
310
|
+
hub: AutodeskUserHub | null;
|
|
311
|
+
project: AutodeskProject | null;
|
|
312
|
+
folder: AutodeskFolder | null;
|
|
313
|
+
};
|
|
314
|
+
export type HammertechUploadFormData = {
|
|
315
|
+
project: HammertechProject | null;
|
|
316
|
+
issueType: HammertechIssueType | null;
|
|
317
|
+
description: string;
|
|
318
|
+
priority: HammertechPriority | null;
|
|
319
|
+
dueDate: string | null;
|
|
320
|
+
classification: HammertechClassification | null;
|
|
321
|
+
locationId: string | null;
|
|
322
|
+
isPositiveObservation: boolean;
|
|
323
|
+
isPhotoForFixRequired: boolean;
|
|
324
|
+
customFieldFormId: string | null;
|
|
325
|
+
customFieldValues: Record<string, unknown>;
|
|
326
|
+
fileCustomFieldValues: Record<string, HammertechFileFieldValue>;
|
|
327
|
+
};
|
|
328
|
+
export interface MediaHubFilters {
|
|
329
|
+
title: string;
|
|
330
|
+
requesterEmail: string | undefined;
|
|
331
|
+
camera: string | undefined;
|
|
332
|
+
type: string;
|
|
333
|
+
fromDate: string;
|
|
334
|
+
toDate: string;
|
|
335
|
+
sortBy: string;
|
|
336
|
+
}
|
|
337
|
+
export interface MediaHubSortParameter {
|
|
338
|
+
label: string;
|
|
339
|
+
value: string;
|
|
340
|
+
}
|
|
341
|
+
export type TableHeaderParams<TItem = unknown> = {
|
|
342
|
+
value: string;
|
|
343
|
+
text: string;
|
|
344
|
+
cellClass?: string;
|
|
345
|
+
align?: string;
|
|
346
|
+
sortable?: boolean;
|
|
347
|
+
visible?: boolean;
|
|
348
|
+
width?: number | string;
|
|
349
|
+
copyable?: boolean;
|
|
350
|
+
toStringFn?: (item: TItem, key: string) => any;
|
|
351
|
+
sort?: (a: unknown, b: unknown) => number;
|
|
352
|
+
};
|
|
353
|
+
export type BimUploadObject = IngestUploadInitResponse & {
|
|
354
|
+
projectName: string;
|
|
355
|
+
};
|
|
356
|
+
export type BimUploadFileResult = {
|
|
357
|
+
url: string;
|
|
358
|
+
title: string;
|
|
359
|
+
fileExtension: string;
|
|
360
|
+
};
|
|
361
|
+
export type CameraCardItem = {
|
|
362
|
+
thumbnail: string;
|
|
363
|
+
title: string;
|
|
364
|
+
exid: string;
|
|
365
|
+
status: CameraStatus;
|
|
366
|
+
disabled: boolean;
|
|
367
|
+
to: string;
|
|
368
|
+
isOffline: boolean;
|
|
369
|
+
isWaiting: boolean;
|
|
370
|
+
isUnderNda: boolean;
|
|
371
|
+
isAdmin: boolean;
|
|
372
|
+
batteryVoltage: number | null;
|
|
373
|
+
};
|
|
374
|
+
export interface ThreeSixtyWalk {
|
|
375
|
+
id: string;
|
|
376
|
+
name: string;
|
|
377
|
+
date: string;
|
|
378
|
+
color: string;
|
|
379
|
+
dateId: string;
|
|
380
|
+
floorId: string;
|
|
381
|
+
}
|
|
382
|
+
export interface ThreeSixtyWalkGroup {
|
|
383
|
+
date: string;
|
|
384
|
+
walks: ThreeSixtyWalk[];
|
|
385
|
+
}
|
|
386
|
+
export type DatePresetContext = {
|
|
387
|
+
minDate?: string;
|
|
388
|
+
maxDate: string;
|
|
389
|
+
effectiveMinDate?: string;
|
|
390
|
+
effectiveMaxDate: string;
|
|
391
|
+
};
|
|
392
|
+
export type DatePreset = {
|
|
393
|
+
name: string;
|
|
394
|
+
resolveRange?: (ctx: DatePresetContext) => [string, string];
|
|
395
|
+
isHide?: (ctx: DatePresetContext) => boolean;
|
|
396
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum CustomDataTableFilterType {
|
|
2
|
+
Select = "SelectSearchFilter",
|
|
3
|
+
Text = "TextFieldSearchFilter"
|
|
4
|
+
}
|
|
5
|
+
export interface CustomDataTableFilterField<T = unknown> {
|
|
6
|
+
component: CustomDataTableFilterType;
|
|
7
|
+
attributes?: Record<string, unknown>;
|
|
8
|
+
customFilter?: (item: T, fieldName: string, search: unknown) => boolean;
|
|
9
|
+
}
|
|
10
|
+
export type CustomDataTableFilterFields<T = unknown> = Record<string, CustomDataTableFilterField<T>>;
|
|
@@ -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,21 @@
|
|
|
1
|
+
export type ObservationsTableHeader = {
|
|
2
|
+
isThumbnail?: boolean;
|
|
3
|
+
visible: boolean;
|
|
4
|
+
divider: boolean;
|
|
5
|
+
sortable: boolean;
|
|
6
|
+
text: string;
|
|
7
|
+
value: string;
|
|
8
|
+
class: string;
|
|
9
|
+
align: string;
|
|
10
|
+
};
|
|
11
|
+
export type ObservationsCountDay = {
|
|
12
|
+
day: string;
|
|
13
|
+
};
|
|
14
|
+
export type ObservationsTableOptionsUpdate = {
|
|
15
|
+
page: number;
|
|
16
|
+
sortBy: string[];
|
|
17
|
+
sortDesc: boolean[];
|
|
18
|
+
};
|
|
19
|
+
export type ObservationsEventsTableState = {
|
|
20
|
+
height: number | string;
|
|
21
|
+
};
|
|
@@ -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-41bb6af5a",
|
|
4
4
|
"description": "Evercam API client",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,10 +24,12 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": "
|
|
27
|
+
"node": ">=22"
|
|
28
28
|
},
|
|
29
29
|
"readme": "README.md",
|
|
30
30
|
"scripts": {
|
|
31
|
+
"preinstall": "node ../shared/ci-scripts/check-bootstrap.js",
|
|
32
|
+
"bootstrap": "node ../shared/ci-scripts/bootstrap.js",
|
|
31
33
|
"clean": "rimraf dist",
|
|
32
34
|
"typecheck": "tsc --noEmit",
|
|
33
35
|
"build:types": "tsc --declaration --emitDeclarationOnly",
|
|
@@ -36,7 +38,7 @@
|
|
|
36
38
|
"publish-api": "cd ../.. && yarn publish-api"
|
|
37
39
|
},
|
|
38
40
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^
|
|
41
|
+
"@types/node": "^25.9.1",
|
|
40
42
|
"vite": "latest",
|
|
41
43
|
"vite-plugin-commonjs": "^0.10.3",
|
|
42
44
|
"vite-plugin-dts": "^4.5.4"
|
|
@@ -47,4 +49,4 @@
|
|
|
47
49
|
"idb-keyval": "^6.2.2",
|
|
48
50
|
"moment-timezone": "^0.5.46"
|
|
49
51
|
}
|
|
50
|
-
}
|
|
52
|
+
}
|