@evercam/api 1.0.0-5ccefe067 → 1.0.0-5f834eeac
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 +5 -0
- package/dist/api/api/adminApi.d.ts +49 -4
- package/dist/api/api/aiApi.d.ts +17 -5
- package/dist/api/api/authzApi.d.ts +7 -0
- package/dist/api/api/evercamApi.d.ts +20 -12
- package/dist/api/api/evercamLabsApi.d.ts +3 -2
- package/dist/api/api/ingestApi.d.ts +38 -11
- package/dist/api/api/videoWallApi.d.ts +7 -7
- package/dist/api/types/360.d.ts +47 -0
- package/dist/api/types/aconex.d.ts +102 -4
- package/dist/api/types/analytics.d.ts +70 -5
- package/dist/api/types/anpr.d.ts +5 -11
- package/dist/api/types/authz.d.ts +22 -0
- package/dist/api/types/automation.d.ts +51 -0
- package/dist/api/types/camera.d.ts +18 -2
- package/dist/api/types/comments.d.ts +18 -2
- package/dist/api/types/company.d.ts +1 -1
- package/dist/api/types/coolify.d.ts +2 -0
- package/dist/api/types/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +4 -18
- package/dist/api/types/errors.d.ts +1 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/ingest.d.ts +4 -0
- package/dist/api/types/kit.d.ts +25 -4
- package/dist/api/types/planner.d.ts +4 -1
- package/dist/api/types/progressPhoto.d.ts +1 -30
- package/dist/api/types/project.d.ts +42 -2
- package/dist/api/types/recording.d.ts +1 -0
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/routeParams.d.ts +2 -1
- package/dist/api/types/shared.d.ts +0 -5
- package/dist/api/types/siteAnalytics.d.ts +28 -7
- package/dist/api/types/snapshots.d.ts +9 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/streaming.d.ts +1 -2
- package/dist/api/types/time.d.ts +4 -0
- package/dist/api/types/user.d.ts +4 -0
- package/dist/api/types/videoWall.d.ts +34 -1
- package/dist/api/types/weather.d.ts +2 -0
- package/dist/api/types/widget.d.ts +27 -6
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +828 -610
- 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 +9 -2
- package/package.json +4 -4
|
@@ -43,7 +43,8 @@ export declare enum AnalyticsEventPageId {
|
|
|
43
43
|
BimCompareInfo = "BimCompareInfo",
|
|
44
44
|
WeatherReport = "WeatherReport",
|
|
45
45
|
PpeReport = "PpeReport",
|
|
46
|
-
SmartSearch = "SmartSearch"
|
|
46
|
+
SmartSearch = "SmartSearch",
|
|
47
|
+
Drawings = "Drawings"
|
|
47
48
|
}
|
|
48
49
|
export declare enum AnalyticsEvent {
|
|
49
50
|
PageView = "PageView",
|
|
@@ -77,6 +78,12 @@ export declare enum AnalyticsEvent {
|
|
|
77
78
|
SettingsConnectorsRemoveVoyageControlConnection = "RemoveVoyageControl",
|
|
78
79
|
SettingsConnectorsToggleConnectorPromptDialog = "ToggleConnectorPromptDialog",
|
|
79
80
|
SettingsConnectorsToggleVoyageControlDialog = "ToggleVoyageControlDialog",
|
|
81
|
+
WidgetsSelectTypeThreeSixty = "Widgets-SelectType360",
|
|
82
|
+
WidgetsSelectProject = "SelectProject",
|
|
83
|
+
WidgetsSelect360Date = "Select360Date",
|
|
84
|
+
WidgetsSelect360Floor = "Select360Floor",
|
|
85
|
+
WidgetsSelect360Marker = "Select360Marker",
|
|
86
|
+
Widgets360LockMedia = "360LockMedia",
|
|
80
87
|
WidgetsAddWidgetClick = "AddWidget",
|
|
81
88
|
WidgetsCancelClick = "Cancel",
|
|
82
89
|
WidgetsEditHeight = "EditHeight",
|
|
@@ -103,6 +110,7 @@ export declare enum AnalyticsEvent {
|
|
|
103
110
|
WidgetsSettingToggleRestrictRecentImages = "ToggleRestrictRecentImages",
|
|
104
111
|
WidgetsSettingToggleZoom = "ToggleZoom",
|
|
105
112
|
WidgetsTogglePublicWidget = "TogglePublicWidget",
|
|
113
|
+
WidgetsToggleRestrictRecordingsRange = "ToggleRestrictRecordingsRange",
|
|
106
114
|
PlayerSelectCamera = "Player-SelectCamera",
|
|
107
115
|
PlayerDownload = "Player-Download",
|
|
108
116
|
PlayerToggleFullscreen = "Player-ToggleFullscreen",
|
|
@@ -259,7 +267,17 @@ export declare enum AnalyticsEvent {
|
|
|
259
267
|
SharingSortBy = "SortBy",
|
|
260
268
|
SharingChangeAccessRight = "ChangeAccessRight",
|
|
261
269
|
ThreeSixtyGallery = "Gallery",
|
|
270
|
+
ThreeSixtyGalleryFilterAssetTypes = "Gallery-FilterAssetTypes",
|
|
271
|
+
ThreeSixtyGalleryFilterDateRange = "Gallery-FilterDateRange",
|
|
272
|
+
ThreeSixtyGalleryFilterFeatures = "Gallery-FilterFeatures",
|
|
273
|
+
ThreeSixtyGalleryFilterFloorName = "Gallery-FilterFloorName",
|
|
274
|
+
ThreeSixtyGalleryFilterUploadedBy = "Gallery-FilterUploadedBy",
|
|
275
|
+
ThreeSixtyGalleryTimelineSelectMilestoneItem = "Gallery-TimelineSelectMilestoneItem",
|
|
276
|
+
ThreeSixtyGalleryTimelineDateClick = "Gallery-TimelineDateClick",
|
|
262
277
|
ThreeSixtyGalleryToggleUploadDialog = "Gallery-ToggleUploadDialog",
|
|
278
|
+
ThreeSixtyGalleryToggleFilters = "Gallery-ToggleFilters",
|
|
279
|
+
ThreeSixtyGalleryUpdateFloorName = "Gallery-UpdateFloorName",
|
|
280
|
+
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
263
281
|
ThreeSixtyChangeDate = "ChangeDate",
|
|
264
282
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
265
283
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
@@ -296,7 +314,6 @@ export declare enum AnalyticsEvent {
|
|
|
296
314
|
ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
|
|
297
315
|
ThreeSixtyUnlockCompare = "UnlockCompare",
|
|
298
316
|
ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
|
|
299
|
-
ThreeSixtyUpdateFloorName = "UpdateFloorName",
|
|
300
317
|
ThreeSixtyUploadAssets = "UploadAssets",
|
|
301
318
|
DroneAreaToolClick = "AreaTool-Click",
|
|
302
319
|
DroneChangeDate = "ChangeDate",
|
|
@@ -334,6 +351,7 @@ export declare enum AnalyticsEvent {
|
|
|
334
351
|
DroneVolumeToolClick = "VolumeTool-Click",
|
|
335
352
|
DroneZoomIn = "ZoomIn",
|
|
336
353
|
DroneZoomOut = "ZoomOut",
|
|
354
|
+
DroneUploadSkipping = "SkipImageUpload",// To be removed later
|
|
337
355
|
PlannerAddCameraClick = "AddCameraClick",
|
|
338
356
|
PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
|
|
339
357
|
PlannerAddSitePlanClick = "AddSitePlanClick",
|
|
@@ -357,8 +375,31 @@ export declare enum AnalyticsEvent {
|
|
|
357
375
|
PlannerUploadSitePlanDrawing = "UploadSitePlanDrawing",
|
|
358
376
|
PlannerZoomIn = "ZoomIn",
|
|
359
377
|
PlannerZoomOut = "ZoomOut",
|
|
378
|
+
DrawingCreateSave = "CreateSave",
|
|
379
|
+
DrawingUpdateSave = "UpdateSave",
|
|
380
|
+
DrawingEditName = "EditName",
|
|
381
|
+
DrawingUpdateName = "UpdateName",
|
|
382
|
+
DrawingToggleSaveDialog = "ToggleSaveDialog",
|
|
383
|
+
DrawingClickHome = "ClickHome",
|
|
384
|
+
DrawingsUploadDrawing = "UploadDrawing",
|
|
385
|
+
DrawingsCreateDrawing = "CreateDrawing",
|
|
386
|
+
DrawingToggleFilter = "ToggleFilter",
|
|
387
|
+
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
388
|
+
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
389
|
+
DrawingToggleCamerasLabels = "ToggleCamerasLabels",
|
|
390
|
+
DrawingToggleCamerasVisibility = "ToggleCamerasVisibility",
|
|
391
|
+
DrawingToggleTransparencyMode = "ToggleTransparencyMode",
|
|
392
|
+
DrawingChooseDrawing = "ChooseDrawing",
|
|
393
|
+
DrawingChangeLocation = "ChangeLocation",
|
|
394
|
+
DrawingFilterDateRange = "FilterDateRange",
|
|
395
|
+
DrawingFilterDrawingName = "FilterDrawingName",
|
|
396
|
+
DrawingFilterCreatedBy = "FilterCreatedBy",
|
|
397
|
+
DrawingFilterMapStyle = "FilterMapStyle",
|
|
398
|
+
DrawingToggleRotate = "ToggleRotate",
|
|
399
|
+
DrawingToggleScale = "ToggleScale",
|
|
400
|
+
DrawingOpenExistingDrawing = "OpenExistingDrawing",
|
|
360
401
|
MarkerClicked = "MarkerClicked",
|
|
361
|
-
|
|
402
|
+
MarkerSelected = "MarkerSelected",
|
|
362
403
|
TimelapseSelectCustomPeriod = "SelectCustomPeriod",
|
|
363
404
|
TimelapseToggleCustomScheduleDialog = "ToggleCustomScheduleDialog",
|
|
364
405
|
TimelapseSaveCustomSchedule = "SaveCustomSchedule",
|
|
@@ -388,12 +429,16 @@ export declare enum AnalyticsEvent {
|
|
|
388
429
|
ProgressPhotoResumeDelete = "ProgressPhoto-ResumeDelete",
|
|
389
430
|
ProgressPhotoSelectType = "ProgressPhoto-SelectType",
|
|
390
431
|
ProgressPhotoSelectCameras = "ProgressPhoto-SelectCameras",
|
|
432
|
+
ProgressPhotoToggleSelectAllOnlineCameras = "ProgressPhoto-ToggleSelectAllOnlineCameras",
|
|
433
|
+
ProgressPhotoToggleSelectAllCameras = "ProgressPhoto-ToggleSelectAllCameras",
|
|
434
|
+
ProgressPhotoClearAllCameras = "ProgressPhoto-ClearAllCameras",
|
|
435
|
+
ProgressPhotoEditCamerasSearchFilter = "ProgressPhoto-EditCamerasSearchFilter",
|
|
391
436
|
ProgressPhotoSelectDays = "ProgressPhoto-SelectDays",
|
|
392
437
|
ProgressPhotoSelectMember = "ProgressPhoto-SelectMember",
|
|
393
438
|
ProgressPhotoSelectProvider = "ProgressPhoto-SelectProvider",
|
|
394
439
|
ProgressPhotoSelectTime = "ProgressPhoto-SelectTime",
|
|
395
440
|
ProgressPhotoSelectTimezone = "ProgressPhoto-SelectTimezone",
|
|
396
|
-
|
|
441
|
+
ProgressPhotoEditSelectedCameras = "ProgressPhoto-EditSelectedCameras",
|
|
397
442
|
ProgressPhotoToggleCreateDialog = "ProgressPhoto-ToggleCreateDialog",
|
|
398
443
|
ProgressPhotoToggleEditDialog = "ProgressPhoto-ToggleEditDialog",
|
|
399
444
|
ProgressPhotoUnsubscribeUser = "ProgressPhoto-UnsubscribeUser",
|
|
@@ -451,6 +496,7 @@ export declare enum AnalyticsEvent {
|
|
|
451
496
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
452
497
|
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
453
498
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
499
|
+
HelpMenuOpenProjectContactsDialog = "HelpMenu-OpenProjectContactsDialog",
|
|
454
500
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
455
501
|
HelpMenuClickTutorialsLink = "HelpMenu-ClickTutorialsLink",
|
|
456
502
|
HelpMenuClickWhatsNewLink = "HelpMenu-ClickWhatsNewLink",
|
|
@@ -467,6 +513,24 @@ export declare enum AnalyticsEvent {
|
|
|
467
513
|
ExportPdf = "ExportPdf",
|
|
468
514
|
ExportCsv = "ExportCsv",
|
|
469
515
|
FilterCameras = "FilterCameras",
|
|
516
|
+
CompareSelectProvider = "Compare-SelectProvider",
|
|
517
|
+
CompareEditSelectedCameras = "Compare-EditSelectedCameras",
|
|
518
|
+
CompareEdit = "Compare-Edit",
|
|
519
|
+
CompareSelectTimezone = "Compare-SelectTimezone",
|
|
520
|
+
CompareSelectMember = "Compare-SelectMember",
|
|
521
|
+
CompareToggleSelectAllOnlineCameras = "Compare-ToggleSelectAllOnlineCameras",
|
|
522
|
+
CompareToggleSelectAllCameras = "Compare-ToggleSelectAllCameras",
|
|
523
|
+
CompareClearAllCameras = "Compare-ClearAllCameras",
|
|
524
|
+
CompareEditCamerasSearchFilter = "Compare-EditCamerasSearchFilter",
|
|
525
|
+
AutomationsSelectProgressPhoto = "SelectProgressPhoto",
|
|
526
|
+
AutomationsSelectCompare = "SelectCompare",
|
|
527
|
+
AutomationsCreateCompare = "CreateCompare",
|
|
528
|
+
AutomationToggleEditDialog = "ToggleEditDialog",
|
|
529
|
+
AutomationToggleCreateDialog = "ToggleCreateDialog",
|
|
530
|
+
AutomationTypeName = "TypeName",
|
|
531
|
+
CompareSelectDays = "Compare-SelectDays",
|
|
532
|
+
CompareSelectDelay = "Compare-SelectDelay",
|
|
533
|
+
CompareSelectTime = "Compare-SelectTime",
|
|
470
534
|
SmartSearchToggleQueryBuilder = "SmartSearch-ToggleQueryBuilder",
|
|
471
535
|
SmartSearchToggleQuerySelector = "SmartSearch-ToggleQuerySelector",
|
|
472
536
|
SmartSearchDeleteComponent = "SmartSearch-DeleteComponent",
|
|
@@ -485,5 +549,6 @@ export declare enum AnalyticsEvent {
|
|
|
485
549
|
SmartSearchDeleteQuery = "SmartSearch-DeleteQuery",
|
|
486
550
|
SmartSearchSaveQuery = "SmartSearch-SaveQuery",
|
|
487
551
|
SmartSearchThumbnailPlay = "SmartSearch-ThumbnailPlay",
|
|
488
|
-
SmartSearchExportFile = "SmartSearch-ExportFile"
|
|
552
|
+
SmartSearchExportFile = "SmartSearch-ExportFile",
|
|
553
|
+
SmartSearchDownloadHeatmapImage = "SmartSearch-DownloadHeatmapImage"
|
|
489
554
|
}
|
package/dist/api/types/anpr.d.ts
CHANGED
|
@@ -2,16 +2,6 @@ import { BoundingBox, CameraExid, DateType, GateReportVehicleType, TimelinePreci
|
|
|
2
2
|
export type AnprQueryParams = {
|
|
3
3
|
page?: number;
|
|
4
4
|
limit?: number;
|
|
5
|
-
firstSeen?: {
|
|
6
|
-
gte: DateType;
|
|
7
|
-
};
|
|
8
|
-
lastSeen?: {
|
|
9
|
-
lte: DateType;
|
|
10
|
-
};
|
|
11
|
-
captureTime?: {
|
|
12
|
-
gte?: DateType;
|
|
13
|
-
lt?: DateType;
|
|
14
|
-
};
|
|
15
5
|
direction?: {
|
|
16
6
|
eq?: string;
|
|
17
7
|
} | string;
|
|
@@ -21,7 +11,11 @@ export type AnprQueryParams = {
|
|
|
21
11
|
sort?: string;
|
|
22
12
|
fromDate?: DateType;
|
|
23
13
|
toDate?: DateType;
|
|
24
|
-
|
|
14
|
+
camerasExid?: CameraExid[];
|
|
15
|
+
vehicleTypes?: GateReportVehicleType[];
|
|
16
|
+
isDuplicate?: boolean;
|
|
17
|
+
isPostprocessed?: boolean;
|
|
18
|
+
isPlate?: boolean;
|
|
25
19
|
};
|
|
26
20
|
export type AnprCountsQueryParams = {
|
|
27
21
|
precision: TimelinePrecision;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum RoleResourceType {
|
|
2
|
+
Camera = "camera",
|
|
3
|
+
Project = "project"
|
|
4
|
+
}
|
|
5
|
+
export type Role = {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
resource: string;
|
|
9
|
+
resourceType: RoleResourceType;
|
|
10
|
+
permissions: string[];
|
|
11
|
+
subRoles?: Array<{
|
|
12
|
+
resourceId: string;
|
|
13
|
+
roleId: number;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
export type ProjectResourceRole = Role & {
|
|
17
|
+
resourceType: RoleResourceType.Project;
|
|
18
|
+
};
|
|
19
|
+
export type CameraResourceRole = Omit<Role, "subRoles"> & {
|
|
20
|
+
resourceType: RoleResourceType.Camera;
|
|
21
|
+
};
|
|
22
|
+
export type ProjectRoleRequestPayload = Omit<Role, "id" | "resource" | "resourceType">;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AconexIdentifiers, CameraExid } from "@evercam/api/types";
|
|
1
2
|
export declare enum AutomationProvider {
|
|
2
3
|
Aconex = "aconex",
|
|
3
4
|
Procore = "procore",
|
|
@@ -8,3 +9,53 @@ export declare enum AutomationType {
|
|
|
8
9
|
Photo = "photo",
|
|
9
10
|
Compare = "compare"
|
|
10
11
|
}
|
|
12
|
+
export type AutomationCompareConfig = {
|
|
13
|
+
compareDelay: number;
|
|
14
|
+
};
|
|
15
|
+
export type AutomationEmailProviderConfig = {
|
|
16
|
+
recipients: string | string[];
|
|
17
|
+
};
|
|
18
|
+
export type AutomationProcoreProviderConfig = {
|
|
19
|
+
companyId: number;
|
|
20
|
+
companyName: string;
|
|
21
|
+
projectId: number;
|
|
22
|
+
projectName: string;
|
|
23
|
+
categoryId: number;
|
|
24
|
+
categoryName: string;
|
|
25
|
+
};
|
|
26
|
+
export type AutomationAconexProviderConfig = {
|
|
27
|
+
projectId: number;
|
|
28
|
+
projectName: string;
|
|
29
|
+
} & Partial<Record<AconexIdentifiers, string | number | boolean>>;
|
|
30
|
+
export type AutomationAutodeskProviderConfig = {
|
|
31
|
+
hubId: number;
|
|
32
|
+
hubName: string;
|
|
33
|
+
projectId: number;
|
|
34
|
+
projectName: string;
|
|
35
|
+
folderId: number;
|
|
36
|
+
accFileType: string;
|
|
37
|
+
accFolderType: string;
|
|
38
|
+
folderName: string;
|
|
39
|
+
};
|
|
40
|
+
export type AutomationProviderConfig = AutomationEmailProviderConfig | AutomationProcoreProviderConfig | AutomationAconexProviderConfig | AutomationAutodeskProviderConfig;
|
|
41
|
+
export type AutomationOptionsConfig = AutomationCompareConfig | {};
|
|
42
|
+
export type AutomationConfig = AutomationProviderConfig & AutomationOptionsConfig;
|
|
43
|
+
export type Automation = {
|
|
44
|
+
cameraExids: CameraExid[];
|
|
45
|
+
name: string;
|
|
46
|
+
subject?: string;
|
|
47
|
+
provider: AutomationProvider;
|
|
48
|
+
type: AutomationType;
|
|
49
|
+
config: AutomationConfig;
|
|
50
|
+
notifyDays: string[];
|
|
51
|
+
notifyTime: string;
|
|
52
|
+
timezone: string;
|
|
53
|
+
isPaused: boolean;
|
|
54
|
+
restrictedCameraExids?: string[];
|
|
55
|
+
};
|
|
56
|
+
export declare enum AutomationConfigStep {
|
|
57
|
+
Type = "type",
|
|
58
|
+
Cameras = "cameras",
|
|
59
|
+
Settings = "settings",
|
|
60
|
+
Destination = "destination"
|
|
61
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, Schedule } from "@/types";
|
|
1
|
+
import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule } from "@/types";
|
|
2
|
+
import { DateRangeFilter } from "@/types/time";
|
|
2
3
|
export type CameraExid = string;
|
|
3
4
|
export type CamerasByExid = EntityByExid<Camera>;
|
|
4
5
|
export type Cartesian3 = {
|
|
@@ -135,7 +136,7 @@ export type AdminCamera = {
|
|
|
135
136
|
pitch: null;
|
|
136
137
|
powerSchedule: Schedule;
|
|
137
138
|
projectExid: string;
|
|
138
|
-
projectFeatureFlags: [];
|
|
139
|
+
projectFeatureFlags: ProjectFeatureFlag[];
|
|
139
140
|
projectId: number;
|
|
140
141
|
projectName: string;
|
|
141
142
|
ptz: false;
|
|
@@ -176,6 +177,13 @@ export declare enum CameraStatus {
|
|
|
176
177
|
UnderMaintenance = "under_maintenance",
|
|
177
178
|
WaitingForSiteVisit = "waiting_for_site_visit"
|
|
178
179
|
}
|
|
180
|
+
export declare enum IntensityChangeColors {
|
|
181
|
+
High = "#FF5252",
|
|
182
|
+
Moderate = "#FBC02D",
|
|
183
|
+
Low = "#006400",
|
|
184
|
+
NoChange = "#3ACF3A",
|
|
185
|
+
Default = "black"
|
|
186
|
+
}
|
|
179
187
|
export declare enum CameraFeatureFlag {
|
|
180
188
|
EdgeVideo = "edge_video",
|
|
181
189
|
BimCompare = "bim_compare",
|
|
@@ -334,6 +342,7 @@ export type CameraPath = {
|
|
|
334
342
|
export type CheckCameraPortPayload = {
|
|
335
343
|
address: string;
|
|
336
344
|
port: number;
|
|
345
|
+
open: boolean;
|
|
337
346
|
};
|
|
338
347
|
export type CameraCreateRequestPayload = {
|
|
339
348
|
status: CameraStatus;
|
|
@@ -518,3 +527,10 @@ export type FetchCameraQueryParams = PaginationParams & {
|
|
|
518
527
|
externalRsptPort: string;
|
|
519
528
|
nvrHttpPort: string;
|
|
520
529
|
};
|
|
530
|
+
export declare enum BimType {
|
|
531
|
+
TwoD = "2D",
|
|
532
|
+
Forge = "Forge"
|
|
533
|
+
}
|
|
534
|
+
export type CameraDateRangeFilter = DateRangeFilter & {
|
|
535
|
+
cameraExid: CameraExid;
|
|
536
|
+
};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid } from "@/types";
|
|
1
|
+
import { CameraExid, DateType, ProjectExid, PaginationParams } from "@/types";
|
|
2
2
|
export declare enum CommentsScope {
|
|
3
3
|
Recordings = "recordings",
|
|
4
|
-
ThreeSixty = "360"
|
|
4
|
+
ThreeSixty = "360",
|
|
5
|
+
Drone = "drone"
|
|
6
|
+
}
|
|
7
|
+
export declare enum CommentsLabel {
|
|
8
|
+
Info = "Info",
|
|
9
|
+
Danger = "Danger",
|
|
10
|
+
Restricted = "Restricted"
|
|
5
11
|
}
|
|
6
12
|
export type CommentsRequestPayload = {
|
|
7
13
|
cameraExid: CameraExid;
|
|
@@ -11,6 +17,16 @@ export type CommentsRequestPayload = {
|
|
|
11
17
|
page?: number;
|
|
12
18
|
limit?: number;
|
|
13
19
|
};
|
|
20
|
+
export type CommentsListRequestPayload = PaginationParams & {
|
|
21
|
+
projectExid?: ProjectExid;
|
|
22
|
+
cameraExid?: CameraExid;
|
|
23
|
+
fromDate?: string;
|
|
24
|
+
toDate?: string;
|
|
25
|
+
scope?: CommentsScope;
|
|
26
|
+
creatorEmail?: string;
|
|
27
|
+
content?: string;
|
|
28
|
+
includeArchived?: boolean;
|
|
29
|
+
};
|
|
14
30
|
export type Comment = {
|
|
15
31
|
fromDate?: string;
|
|
16
32
|
toDate?: string;
|
|
@@ -6,6 +6,7 @@ export type CreateCoolifyAppRequestPayload = {
|
|
|
6
6
|
snapshotRequestTimeout: string | number;
|
|
7
7
|
serverUuid: string;
|
|
8
8
|
branch: string;
|
|
9
|
+
useThirdParty: boolean;
|
|
9
10
|
};
|
|
10
11
|
export type SaveCoolifyAppRequestPayload = {
|
|
11
12
|
contextCameraExid: string;
|
|
@@ -15,4 +16,5 @@ export type SaveCoolifyAppRequestPayload = {
|
|
|
15
16
|
branchName: string;
|
|
16
17
|
snapshotRequestTimeout: string | number;
|
|
17
18
|
serverUuid: string;
|
|
19
|
+
useThirdParty: boolean;
|
|
18
20
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BoundingBox, type ProjectExid, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
|
|
1
|
+
import { type BoundingBox, type ProjectExid, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision, DateRangeFilter, ProjectDateRangeFilter, CameraDateRangeFilter } from "@/types";
|
|
2
2
|
export type BaseDetectionsFilters = {
|
|
3
3
|
fromDate: string | Date;
|
|
4
4
|
toDate: string | Date;
|
|
@@ -72,11 +72,6 @@ export type SegmentSimilarityResult = {
|
|
|
72
72
|
distance: number;
|
|
73
73
|
segment: Segment;
|
|
74
74
|
};
|
|
75
|
-
export type SegmentsSimilaritySearchResult = {
|
|
76
|
-
firstSeen: DateType | null;
|
|
77
|
-
lastSeen: DateType | null;
|
|
78
|
-
similarSegments: SegmentSimilarityResult[];
|
|
79
|
-
};
|
|
80
75
|
export type SegmentsSimilaritySearchParams = {
|
|
81
76
|
cameraExid: CameraExid;
|
|
82
77
|
referenceId: string;
|
|
@@ -84,24 +79,15 @@ export type SegmentsSimilaritySearchParams = {
|
|
|
84
79
|
fromDate: string;
|
|
85
80
|
toDate: string;
|
|
86
81
|
};
|
|
87
|
-
export type BaseCountsParams = {
|
|
88
|
-
fromDate: string | Date;
|
|
89
|
-
toDate: string | Date;
|
|
82
|
+
export type BaseCountsParams = DateRangeFilter & {
|
|
90
83
|
precision: keyof typeof TimelinePrecision;
|
|
91
84
|
trackId: number;
|
|
92
85
|
labels: DetectionLabel | DetectionLabel[];
|
|
93
86
|
};
|
|
94
|
-
export type DetectionsCountsParams = BaseCountsParams & {
|
|
95
|
-
projectExid: ProjectExid;
|
|
87
|
+
export type DetectionsCountsParams = ProjectDateRangeFilter & BaseCountsParams & {
|
|
96
88
|
cameraExids?: CameraExid[];
|
|
97
89
|
};
|
|
98
|
-
export type SegmentsCountsParams =
|
|
99
|
-
cameraExid: CameraExid;
|
|
100
|
-
};
|
|
101
|
-
export type CountByPeriod = {
|
|
102
|
-
date: string | Date;
|
|
103
|
-
counts: Record<string, number>;
|
|
104
|
-
};
|
|
90
|
+
export type SegmentsCountsParams = CameraDateRangeFilter & BaseCountsParams;
|
|
105
91
|
export type DetectionsPresenceByLabel = Record<DetectionLabel, TimelineDateInterval[]>;
|
|
106
92
|
export type SegmentsPresenceByLabel = Record<SegmentLabel, TimelineDateInterval[]>;
|
|
107
93
|
export type LuminanceReading = {
|
|
@@ -26,6 +26,7 @@ export declare enum ErrorCode {
|
|
|
26
26
|
ConflictError = 409
|
|
27
27
|
}
|
|
28
28
|
export declare enum EvercamApiErrorCode {
|
|
29
|
+
IntegrationError = "INTEGRATION_ERROR",
|
|
29
30
|
BadArgument = "BAD_ARGUMENT",
|
|
30
31
|
DeviceError = "DEVICE_ERROR",
|
|
31
32
|
UnsupportedOperation = "UNSUPPORTED_OPERATION",
|
|
@@ -50,7 +50,10 @@ export * from "./siteAnalytics";
|
|
|
50
50
|
export * from "./widget";
|
|
51
51
|
export * from "./countries";
|
|
52
52
|
export * from "./automation";
|
|
53
|
+
export * from "./sso";
|
|
53
54
|
export * from "./coolify";
|
|
54
55
|
export * from "./tag";
|
|
55
56
|
export * from "./xweather";
|
|
56
57
|
export * from "./posthog";
|
|
58
|
+
export * from "./recycleBin";
|
|
59
|
+
export * from "./authz";
|
|
@@ -9,6 +9,10 @@ export declare enum IngestProcessingStatus {
|
|
|
9
9
|
InProgress = "inprogress",
|
|
10
10
|
Pending = "pending"
|
|
11
11
|
}
|
|
12
|
+
export declare enum MobileAssetsType {
|
|
13
|
+
Audio = "mobile_audios",
|
|
14
|
+
Photo = "mobile_photos"
|
|
15
|
+
}
|
|
12
16
|
export declare enum IngestVersions {
|
|
13
17
|
V1 = "v1",
|
|
14
18
|
V2 = "v2"
|
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@/types";
|
|
1
|
+
import { CameraExid, CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@/types";
|
|
2
2
|
export type Kit = {
|
|
3
3
|
alarms: KitAlarm[];
|
|
4
4
|
countryCode: CountryCode;
|
|
@@ -16,8 +16,11 @@ export type Kit = {
|
|
|
16
16
|
serial: string;
|
|
17
17
|
status: KitStatus;
|
|
18
18
|
powerSchedule: Schedule;
|
|
19
|
+
ups: boolean;
|
|
20
|
+
boxId: string;
|
|
19
21
|
tags: Tag[];
|
|
20
22
|
storages: KitStorage[];
|
|
23
|
+
createdAt: string;
|
|
21
24
|
};
|
|
22
25
|
export declare enum KitStatus {
|
|
23
26
|
New = "new",
|
|
@@ -33,16 +36,16 @@ export declare enum KitRegion {
|
|
|
33
36
|
}
|
|
34
37
|
export declare enum KitAlarm {
|
|
35
38
|
NvrOffline = "nvr_offline",
|
|
39
|
+
OfflineScheduled = "offline_scheduled",
|
|
36
40
|
UnknownCamera = "unknown_camera",
|
|
37
41
|
NotRecordingCamera = "not_recording_camera",
|
|
38
|
-
OfflineScheduled = "offline_scheduled",
|
|
39
42
|
FullSD = "full_sd",
|
|
40
43
|
FullStorage = "full_storage",
|
|
41
44
|
HddUnmounted = "hdd_unmounted",
|
|
42
45
|
NoHdd = "no_hdd",
|
|
43
46
|
MissingRouterInfo = "missing_router_info",
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
AcFailure = "ac_failure",
|
|
48
|
+
LowBattery = "low_battery"
|
|
46
49
|
}
|
|
47
50
|
export declare enum KitMetricId {
|
|
48
51
|
SolarCharger = "solar_charger",
|
|
@@ -334,3 +337,21 @@ export type KitStorage = {
|
|
|
334
337
|
freeSpace: number;
|
|
335
338
|
tran: KitStorageTransport;
|
|
336
339
|
};
|
|
340
|
+
export type KitFootageRequestPayload = {
|
|
341
|
+
cameraId: CameraExid;
|
|
342
|
+
storageId: number;
|
|
343
|
+
};
|
|
344
|
+
export type KitFootage = {
|
|
345
|
+
id: number;
|
|
346
|
+
startDate: string;
|
|
347
|
+
endDate: string;
|
|
348
|
+
cameraId: number;
|
|
349
|
+
storageId: number;
|
|
350
|
+
};
|
|
351
|
+
export type KitAlarmItem = {
|
|
352
|
+
id: number;
|
|
353
|
+
kitId: number;
|
|
354
|
+
alarm: KitAlarm;
|
|
355
|
+
startDate: DateTime;
|
|
356
|
+
endDate: DateTime | null;
|
|
357
|
+
};
|
|
@@ -1,33 +1,4 @@
|
|
|
1
|
-
import { AutomationType, DateTime, DateType, PaginationParams } from "@/types";
|
|
2
|
-
export type Automation = {
|
|
3
|
-
cameraIds: string;
|
|
4
|
-
cameraNames: number;
|
|
5
|
-
cameraExids?: string[];
|
|
6
|
-
createdAt: string;
|
|
7
|
-
id: number;
|
|
8
|
-
provider: string;
|
|
9
|
-
type: AutomationType;
|
|
10
|
-
config: Partial<{
|
|
11
|
-
recipients: string | Record<string, string>[];
|
|
12
|
-
companyId: number;
|
|
13
|
-
compareDelay: number;
|
|
14
|
-
categoryId: string;
|
|
15
|
-
hubId: string;
|
|
16
|
-
folderId: string;
|
|
17
|
-
projectId: number;
|
|
18
|
-
}>;
|
|
19
|
-
isPaused: boolean;
|
|
20
|
-
notifyDays: string | string[];
|
|
21
|
-
notifyTime: string;
|
|
22
|
-
requesterEmail: string;
|
|
23
|
-
requesterName: string;
|
|
24
|
-
timezone: string;
|
|
25
|
-
title: string;
|
|
26
|
-
compareDelay?: number;
|
|
27
|
-
selectedProvider?: string;
|
|
28
|
-
restrictedCameraExids?: string[];
|
|
29
|
-
recipients?: string | string[];
|
|
30
|
-
};
|
|
1
|
+
import { Automation, AutomationType, DateTime, DateType, PaginationParams } from "@/types";
|
|
31
2
|
export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
32
3
|
cameraExids?: string;
|
|
33
4
|
notifyDays?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdminCamera, Camera, CameraExid, DateTime, DateType, EntityByExid, Exid, PaginationParams } from "@/types";
|
|
1
|
+
import { AdminCamera, Camera, CameraExid, DateRangeFilter, DateTime, DateType, EntityByExid, Exid, PaginationParams } from "@/types";
|
|
2
2
|
export type ProjectExid = Exid;
|
|
3
3
|
export type ProjectsByExid = EntityByExid<Project>;
|
|
4
4
|
export type Project = {
|
|
@@ -12,6 +12,7 @@ export type Project = {
|
|
|
12
12
|
zohoId?: string;
|
|
13
13
|
userId?: number;
|
|
14
14
|
cameras?: Array<Camera | AdminCamera>;
|
|
15
|
+
unrestrictedCameras?: Array<Camera | AdminCamera>;
|
|
15
16
|
featureFlags: Array<ProjectFeatureFlag>;
|
|
16
17
|
owner?: {
|
|
17
18
|
email?: string;
|
|
@@ -60,7 +61,8 @@ export declare enum ProjectFeatureFlag {
|
|
|
60
61
|
NoLicensePlate = "no_license_plate",
|
|
61
62
|
DefaultToProjectApp = "default_to_project_app",
|
|
62
63
|
SmartSearch = "smart_search",
|
|
63
|
-
PpeMonitoring = "ppe_monitoring"
|
|
64
|
+
PpeMonitoring = "ppe_monitoring",
|
|
65
|
+
NoGdpr = "no_gdpr"
|
|
64
66
|
}
|
|
65
67
|
export type ProjectBatteryReading = {
|
|
66
68
|
exid: number;
|
|
@@ -126,3 +128,41 @@ export type ProjectUsers = {
|
|
|
126
128
|
}[];
|
|
127
129
|
users: Record<string, ProjectUserProperty[]>;
|
|
128
130
|
};
|
|
131
|
+
export type ProjectDateRangeFilter = DateRangeFilter & {
|
|
132
|
+
projectExid: ProjectExid;
|
|
133
|
+
};
|
|
134
|
+
export type ProjectRole = {
|
|
135
|
+
id: string;
|
|
136
|
+
name: string;
|
|
137
|
+
};
|
|
138
|
+
export type ProjectMember = {
|
|
139
|
+
id: string;
|
|
140
|
+
email: string;
|
|
141
|
+
fullname: string;
|
|
142
|
+
role: ProjectRole;
|
|
143
|
+
};
|
|
144
|
+
export type ProjectInvite = {
|
|
145
|
+
id?: string;
|
|
146
|
+
email: string;
|
|
147
|
+
role?: ProjectRole;
|
|
148
|
+
invitedAt?: string;
|
|
149
|
+
};
|
|
150
|
+
export type ProjectMembersResponsePayload = {
|
|
151
|
+
users: ProjectMember[];
|
|
152
|
+
invites: ProjectInvite[];
|
|
153
|
+
};
|
|
154
|
+
export type ProjectMembersRequestPayload = {
|
|
155
|
+
roleId: number;
|
|
156
|
+
emails: string[];
|
|
157
|
+
overrideRole?: Partial<{
|
|
158
|
+
permissions?: string[];
|
|
159
|
+
subRoles?: Array<{
|
|
160
|
+
resourceId: string;
|
|
161
|
+
roleId: number;
|
|
162
|
+
}>;
|
|
163
|
+
}>;
|
|
164
|
+
};
|
|
165
|
+
export type ProjectInviteMembersResponsePayload = {
|
|
166
|
+
users: ProjectMember[];
|
|
167
|
+
invites: ProjectInvite[];
|
|
168
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DateType, PaginationParams } from "@/types";
|
|
2
|
+
export type RecycleBin = {
|
|
3
|
+
id?: number;
|
|
4
|
+
exid: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: string;
|
|
7
|
+
deletedBy: string;
|
|
8
|
+
deletedAt: DateType;
|
|
9
|
+
};
|
|
10
|
+
export type RecycleBinQueryParams = PaginationParams & {
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
deletedBy: string;
|
|
14
|
+
};
|
|
@@ -46,6 +46,7 @@ export declare enum TimelineMobileCaptureUrlParams {
|
|
|
46
46
|
ShowMobileCapture = "showMobileCapture"
|
|
47
47
|
}
|
|
48
48
|
export declare enum TimelineCommentsUrlParams {
|
|
49
|
-
ShowComments = "showComments"
|
|
49
|
+
ShowComments = "showComments",
|
|
50
|
+
SelectedCommentId = "selectedCommentId"
|
|
50
51
|
}
|
|
51
52
|
export type TimelineUrlParams = Record<TimelineUrlParam | TimelineMediaUrlParams | TimelineBimUrlParams | TimelineExNvrRecordingsUrlParams | TimelineAnprUrlParams | TimelineMobileCaptureUrlParams | TimelineCommentsUrlParams, string | null>;
|