@evercam/api 1.0.0-ba2cdcb68 → 1.0.0-ba679d695
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 +12 -0
- package/dist/api/api/adminApi.d.ts +60 -8
- package/dist/api/api/aiApi.d.ts +18 -6
- package/dist/api/api/authzApi.d.ts +7 -0
- 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/api/evercamApi.d.ts +42 -21
- 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 +58 -0
- package/dist/api/types/aconex.d.ts +102 -4
- package/dist/api/types/analytics.d.ts +88 -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/axios.d.ts +14 -0
- package/dist/api/types/camera.d.ts +21 -5
- package/dist/api/types/comments.d.ts +18 -2
- package/dist/api/types/company.d.ts +29 -1
- package/dist/api/types/coolify.d.ts +2 -0
- package/dist/api/types/countries.d.ts +0 -7
- package/dist/api/types/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +5 -20
- 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 +36 -7
- package/dist/api/types/planner.d.ts +4 -1
- package/dist/api/types/procore.d.ts +13 -10
- package/dist/api/types/progressPhoto.d.ts +5 -23
- 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 +1 -6
- package/dist/api/types/siteAnalytics.d.ts +31 -9
- 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 +1163 -720
- 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 +18 -3
- package/package.json +5 -4
|
@@ -13,6 +13,34 @@ export type CompanyProject = {
|
|
|
13
13
|
status: string;
|
|
14
14
|
startedAt: DateType;
|
|
15
15
|
};
|
|
16
|
+
export type CompanyKit = {
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
serial: string;
|
|
20
|
+
status: string;
|
|
21
|
+
powerType: string;
|
|
22
|
+
countryName: string;
|
|
23
|
+
nvrId: string;
|
|
24
|
+
nvrSerial: string;
|
|
25
|
+
nvrVersion: string;
|
|
26
|
+
nvrNerves: boolean;
|
|
27
|
+
nvrModel: string;
|
|
28
|
+
nvrDeviceType: string;
|
|
29
|
+
routerId: string;
|
|
30
|
+
routerSerial: string;
|
|
31
|
+
projectExid: string;
|
|
32
|
+
projectName: string;
|
|
33
|
+
alarms: Array<string>;
|
|
34
|
+
sims: Array<{
|
|
35
|
+
id: number;
|
|
36
|
+
number: string;
|
|
37
|
+
}>;
|
|
38
|
+
cameras: Array<{
|
|
39
|
+
exid: string;
|
|
40
|
+
name: string;
|
|
41
|
+
status: string;
|
|
42
|
+
}>;
|
|
43
|
+
};
|
|
16
44
|
export type Company = {
|
|
17
45
|
id: number;
|
|
18
46
|
exid: string;
|
|
@@ -25,7 +53,7 @@ export type Company = {
|
|
|
25
53
|
cameras: number;
|
|
26
54
|
users: number;
|
|
27
55
|
activeUsers: number;
|
|
28
|
-
|
|
56
|
+
insertedAt: DateType;
|
|
29
57
|
};
|
|
30
58
|
export type CompanyQueryParams = PaginationParams & {
|
|
31
59
|
name: 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
|
};
|
|
@@ -490,13 +490,6 @@ export declare enum CountryCode {
|
|
|
490
490
|
Zambia = "zm",
|
|
491
491
|
Zimbabwe = "zw"
|
|
492
492
|
}
|
|
493
|
-
export declare enum Region {
|
|
494
|
-
Apac = "apac",
|
|
495
|
-
Emea = "emea",
|
|
496
|
-
Us = "us",
|
|
497
|
-
Latam = "latam",
|
|
498
|
-
Na = "na"
|
|
499
|
-
}
|
|
500
493
|
export declare enum CameraRegion {
|
|
501
494
|
APAC = "apac",
|
|
502
495
|
AU = "au",
|
|
@@ -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 = {
|
|
@@ -113,7 +99,6 @@ export declare enum PpeLabel {
|
|
|
113
99
|
Helmet = "helmet",
|
|
114
100
|
HighVisibilityVest = "high-visibility-vest",
|
|
115
101
|
SafetyGlasses = "safety-glasses",
|
|
116
|
-
Gloves = "gloves",
|
|
117
102
|
Person = "person",
|
|
118
103
|
Man = "man",
|
|
119
104
|
Woman = "woman"
|
|
@@ -121,7 +106,7 @@ export declare enum PpeLabel {
|
|
|
121
106
|
export declare enum DetectionModel {
|
|
122
107
|
Yolov10 = 1,
|
|
123
108
|
Yolov11 = 2,
|
|
124
|
-
|
|
109
|
+
Yolov112 = 3,
|
|
125
110
|
GroundingDino = 4,
|
|
126
111
|
Owlv2 = 5
|
|
127
112
|
}
|
|
@@ -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,10 +1,10 @@
|
|
|
1
|
-
import { CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project,
|
|
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;
|
|
5
5
|
countryId: CountryId;
|
|
6
6
|
countryName: string;
|
|
7
|
-
countryRegion:
|
|
7
|
+
countryRegion: KitRegion;
|
|
8
8
|
id?: number;
|
|
9
9
|
jobId: number;
|
|
10
10
|
name: string;
|
|
@@ -16,7 +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[];
|
|
22
|
+
storages: KitStorage[];
|
|
23
|
+
createdAt: string;
|
|
20
24
|
};
|
|
21
25
|
export declare enum KitStatus {
|
|
22
26
|
New = "new",
|
|
@@ -24,18 +28,24 @@ export declare enum KitStatus {
|
|
|
24
28
|
Deployed = "deployed",
|
|
25
29
|
Decommissioned = "decommissioned"
|
|
26
30
|
}
|
|
31
|
+
export declare enum KitRegion {
|
|
32
|
+
APAC = "apac",
|
|
33
|
+
EMEA = "emea",
|
|
34
|
+
LATAM = "latam",
|
|
35
|
+
US = "na"
|
|
36
|
+
}
|
|
27
37
|
export declare enum KitAlarm {
|
|
28
38
|
NvrOffline = "nvr_offline",
|
|
39
|
+
OfflineScheduled = "offline_scheduled",
|
|
29
40
|
UnknownCamera = "unknown_camera",
|
|
30
41
|
NotRecordingCamera = "not_recording_camera",
|
|
31
|
-
OfflineScheduled = "offline_scheduled",
|
|
32
42
|
FullSD = "full_sd",
|
|
33
43
|
FullStorage = "full_storage",
|
|
34
44
|
HddUnmounted = "hdd_unmounted",
|
|
35
45
|
NoHdd = "no_hdd",
|
|
36
46
|
MissingRouterInfo = "missing_router_info",
|
|
37
|
-
|
|
38
|
-
|
|
47
|
+
AcFailure = "ac_failure",
|
|
48
|
+
LowBattery = "low_battery"
|
|
39
49
|
}
|
|
40
50
|
export declare enum KitMetricId {
|
|
41
51
|
SolarCharger = "solar_charger",
|
|
@@ -292,7 +302,7 @@ export type KitCreatePayload = {
|
|
|
292
302
|
status: KitStatus;
|
|
293
303
|
powerType: PowerType;
|
|
294
304
|
config: {
|
|
295
|
-
region:
|
|
305
|
+
region: KitRegion;
|
|
296
306
|
};
|
|
297
307
|
};
|
|
298
308
|
export type KitUpdatePayload = {
|
|
@@ -310,7 +320,7 @@ export declare enum KitStorageTransport {
|
|
|
310
320
|
export type KitStorageRequestPayload = {
|
|
311
321
|
kitId: number;
|
|
312
322
|
};
|
|
313
|
-
export type
|
|
323
|
+
export type KitStorage = {
|
|
314
324
|
id: number;
|
|
315
325
|
serial: string;
|
|
316
326
|
status: string;
|
|
@@ -324,5 +334,24 @@ export type KitStorageResponsePayload = {
|
|
|
324
334
|
vendor: string;
|
|
325
335
|
kitId: number;
|
|
326
336
|
capacity: number;
|
|
337
|
+
freeSpace: number;
|
|
327
338
|
tran: KitStorageTransport;
|
|
328
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
|
+
};
|
|
@@ -176,11 +176,14 @@ export type ProcoreObservationCustomField = {
|
|
|
176
176
|
optionsUrl: string | null;
|
|
177
177
|
defaultValue: string | null;
|
|
178
178
|
};
|
|
179
|
+
export type ProcoreNextObservationAvailableNumber = {
|
|
180
|
+
nextAvailableNumber: number;
|
|
181
|
+
};
|
|
179
182
|
export declare enum ProcoreObservationCustomFieldDataType {
|
|
180
183
|
RichText = "rich_text",
|
|
181
184
|
Date = "date",
|
|
182
185
|
DateTime = "datetime",
|
|
183
|
-
|
|
186
|
+
LovEntry = "lov_entry",
|
|
184
187
|
LovEntries = "lov_entries",
|
|
185
188
|
Boolean = "boolean",
|
|
186
189
|
Vendor = "vendor",
|
|
@@ -194,17 +197,17 @@ export declare enum ProcoreObservationDefaultFieldNames {
|
|
|
194
197
|
Number = "number",
|
|
195
198
|
Name = "name",
|
|
196
199
|
Status = "status",
|
|
197
|
-
Trade = "
|
|
198
|
-
Assignee = "
|
|
199
|
-
DueDate = "
|
|
200
|
-
SpecificationSection = "
|
|
200
|
+
Trade = "tradeId",
|
|
201
|
+
Assignee = "assigneeId",
|
|
202
|
+
DueDate = "dueDate",
|
|
203
|
+
SpecificationSection = "specificationSectionId",
|
|
201
204
|
Priority = "priority",
|
|
202
|
-
Location = "
|
|
203
|
-
DistributionMembers = "
|
|
205
|
+
Location = "locationId",
|
|
206
|
+
DistributionMembers = "distributionMemberIds",
|
|
204
207
|
Personal = "personal",
|
|
205
|
-
Hazard = "
|
|
206
|
-
ContributingBehavior = "
|
|
207
|
-
ContributingCondition = "
|
|
208
|
+
Hazard = "hazardId",
|
|
209
|
+
ContributingBehavior = "contributingBehaviorId",
|
|
210
|
+
ContributingCondition = "contributingConditionId",
|
|
208
211
|
Description = "description"
|
|
209
212
|
}
|
|
210
213
|
export declare enum ProcoreTools {
|
|
@@ -1,31 +1,13 @@
|
|
|
1
|
-
import { DateTime, DateType, PaginationParams } from "@/types";
|
|
2
|
-
export type ProgressPhoto = {
|
|
3
|
-
cameraIds: string;
|
|
4
|
-
cameraNames: number;
|
|
5
|
-
createdAt: string;
|
|
6
|
-
id: number;
|
|
7
|
-
provider: string;
|
|
8
|
-
type: string;
|
|
9
|
-
config: Partial<{
|
|
10
|
-
recipients: string;
|
|
11
|
-
projectId: number;
|
|
12
|
-
companyId: number;
|
|
13
|
-
}>;
|
|
14
|
-
isPaused: boolean;
|
|
15
|
-
notifyDays: string;
|
|
16
|
-
notifyTime: string;
|
|
17
|
-
requesterEmail: string;
|
|
18
|
-
requesterName: string;
|
|
19
|
-
timezone: string;
|
|
20
|
-
title: string;
|
|
21
|
-
};
|
|
1
|
+
import { Automation, AutomationType, DateTime, DateType, PaginationParams } from "@/types";
|
|
22
2
|
export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
23
3
|
cameraExids?: string;
|
|
24
4
|
notifyDays?: string;
|
|
5
|
+
compareDelay?: AutomationType;
|
|
25
6
|
notifyTime?: string;
|
|
26
7
|
provider?: string;
|
|
27
8
|
type?: string;
|
|
28
9
|
config?: {
|
|
10
|
+
compareDelay?: AutomationType;
|
|
29
11
|
recipients?: string;
|
|
30
12
|
projectId?: number;
|
|
31
13
|
companyId?: number;
|
|
@@ -40,9 +22,9 @@ export type ProgressPhotosUnSubscribeParams = {
|
|
|
40
22
|
token?: string;
|
|
41
23
|
};
|
|
42
24
|
export type ProgressPhotosResponsePayload = {
|
|
43
|
-
progressPhotos:
|
|
25
|
+
progressPhotos: Automation[];
|
|
44
26
|
};
|
|
45
|
-
export declare enum
|
|
27
|
+
export declare enum AutomationDialogType {
|
|
46
28
|
Create = "create",
|
|
47
29
|
Edit = "edit",
|
|
48
30
|
Pause = "pause"
|
|
@@ -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>;
|
|
@@ -90,11 +90,6 @@ export declare enum _3dViewer {
|
|
|
90
90
|
Itwin = "itwin",
|
|
91
91
|
Cesium = "cesium"
|
|
92
92
|
}
|
|
93
|
-
export declare enum SsoProvider {
|
|
94
|
-
Microsoft = "microsoft",
|
|
95
|
-
Google = "google",
|
|
96
|
-
Evercam = "evercam"
|
|
97
|
-
}
|
|
98
93
|
export declare enum InfoPage {
|
|
99
94
|
ThreeSixtyView = "360",
|
|
100
95
|
BIMView = "bim",
|
|
@@ -105,7 +100,7 @@ export declare enum InfoPage {
|
|
|
105
100
|
Timeline = "timeline",
|
|
106
101
|
WeatherReport = "weather-report"
|
|
107
102
|
}
|
|
108
|
-
export declare enum
|
|
103
|
+
export declare enum DownloadFileType {
|
|
109
104
|
Jpeg = "jpeg",
|
|
110
105
|
Pdf = "pdf",
|
|
111
106
|
Csv = "csv"
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { BBox, BoundingBox, DateType, Schedule, CameraExid, DateTime, DetectionModel, PaginationParams, PpeLabel, ProjectExid } from "@evercam/api/types";
|
|
2
|
-
import { DetectionLabel,
|
|
1
|
+
import type { BBox, BoundingBox, DateType, Schedule, CameraExid, DateTime, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter } from "@evercam/api/types";
|
|
2
|
+
import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
|
|
3
3
|
export declare enum SiteAnalyticsMode {
|
|
4
4
|
Detections = "detections",
|
|
5
5
|
Segments = "segments"
|
|
6
6
|
}
|
|
7
|
-
export type
|
|
7
|
+
export type SmartSearchQueryPartData = {
|
|
8
8
|
id?: string;
|
|
9
|
-
type:
|
|
9
|
+
type: SmartSearchQueryPartType;
|
|
10
10
|
value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData | SmartSearchCondition | SmartSearchDateRange | string;
|
|
11
11
|
};
|
|
12
|
-
export type SmartSearchQueryPart =
|
|
12
|
+
export type SmartSearchQueryPart = SmartSearchQueryPartData | SmartSearchQueryPartData[];
|
|
13
13
|
export declare enum SmartSearchQueryComponentType {
|
|
14
14
|
Condition = "condition",
|
|
15
15
|
Object = "object",
|
|
@@ -17,8 +17,10 @@ export declare enum SmartSearchQueryComponentType {
|
|
|
17
17
|
Time = "time",
|
|
18
18
|
Operator = "operator",
|
|
19
19
|
Camera = "camera",
|
|
20
|
-
DateRange = "date_range"
|
|
20
|
+
DateRange = "date_range",
|
|
21
|
+
Heatmap = "heatmap"
|
|
21
22
|
}
|
|
23
|
+
export type SmartSearchQueryPartType = SmartSearchQueryComponentType | SmartSearchCondition;
|
|
22
24
|
export type SmartSearchDateRange = {
|
|
23
25
|
start: DateType;
|
|
24
26
|
end: DateType;
|
|
@@ -26,7 +28,7 @@ export type SmartSearchDateRange = {
|
|
|
26
28
|
export type SmartSearchQueryComponentData = {
|
|
27
29
|
id: string;
|
|
28
30
|
type: SmartSearchQueryComponentType;
|
|
29
|
-
parts:
|
|
31
|
+
parts: SmartSearchQueryPart;
|
|
30
32
|
};
|
|
31
33
|
export declare enum SmartSearchCondition {
|
|
32
34
|
InArea = "in_area",
|
|
@@ -114,7 +116,7 @@ export type SavedQuery = {
|
|
|
114
116
|
timeSchedule?: Schedule | undefined;
|
|
115
117
|
};
|
|
116
118
|
params: Record<string, string>;
|
|
117
|
-
components?: Omit<
|
|
119
|
+
components?: Omit<SmartSearchQueryPartData, "id">[];
|
|
118
120
|
toDate?: DateType;
|
|
119
121
|
createdAt?: DateType;
|
|
120
122
|
cameraExid: string;
|
|
@@ -132,10 +134,30 @@ export type DetectionsRequestParams = {
|
|
|
132
134
|
trackId?: number;
|
|
133
135
|
thresholds?: string[];
|
|
134
136
|
excludeLabels?: Array<DetectionLabel | PpeLabel>;
|
|
137
|
+
mergedClasses?: Array<string>;
|
|
135
138
|
confidenceThreshold?: number;
|
|
136
139
|
} & PaginationParams;
|
|
137
140
|
export type DetectionsExportRequestParams = DetectionsRequestParams & {
|
|
138
|
-
fileType:
|
|
141
|
+
fileType: DownloadFileType;
|
|
139
142
|
columns?: string[];
|
|
140
143
|
directDownload?: boolean;
|
|
141
144
|
};
|
|
145
|
+
export type SmartSearchHeatmapPoint = {
|
|
146
|
+
coordinates: [number, number];
|
|
147
|
+
detectionsCount: number;
|
|
148
|
+
};
|
|
149
|
+
export type SmartSearchHeatmapData = {
|
|
150
|
+
label: string;
|
|
151
|
+
points: SmartSearchHeatmapPoint[];
|
|
152
|
+
};
|
|
153
|
+
export type SmartSearchNearConfig = {
|
|
154
|
+
sourceLabels: DetectionLabel[];
|
|
155
|
+
targetLabel?: DetectionLabel;
|
|
156
|
+
};
|
|
157
|
+
export type HeatmapIntersectionsRequestParams = CameraDateRangeFilter & SmartSearchNearConfig;
|
|
158
|
+
export type SmartSearchSidebarItem = {
|
|
159
|
+
key: string;
|
|
160
|
+
displayLabel: string;
|
|
161
|
+
data: SmartSearchHeatmapData;
|
|
162
|
+
imagePath?: string;
|
|
163
|
+
};
|
|
@@ -48,3 +48,12 @@ export type DeleteSnapshotQueryParams = {
|
|
|
48
48
|
adminEmail: string;
|
|
49
49
|
adminFullname: string;
|
|
50
50
|
};
|
|
51
|
+
export type TransferCloudRecordingsQueryParams = {
|
|
52
|
+
targetCameraExid: CameraExid;
|
|
53
|
+
fromDate: DateType;
|
|
54
|
+
toDate: DateType;
|
|
55
|
+
overwriteExistingSnapshots?: boolean;
|
|
56
|
+
keepSourceSnapshots?: boolean;
|
|
57
|
+
adminEmail?: string;
|
|
58
|
+
adminFullname?: string;
|
|
59
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type SsoProvider = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
exid: string;
|
|
5
|
+
clientId: string;
|
|
6
|
+
clientSecret: string;
|
|
7
|
+
scope: string;
|
|
8
|
+
responseType: string;
|
|
9
|
+
loginUrl: string;
|
|
10
|
+
iconUrl: string;
|
|
11
|
+
options: {
|
|
12
|
+
showOnLogin: boolean;
|
|
13
|
+
showOnSignup: boolean;
|
|
14
|
+
};
|
|
15
|
+
tokenUri: string;
|
|
16
|
+
tokenIntrospectionUri: string;
|
|
17
|
+
userInfoUri: string;
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type SsoUpdatePayload = {
|
|
21
|
+
name: string;
|
|
22
|
+
exid: string;
|
|
23
|
+
clientId: string;
|
|
24
|
+
clientSecret: string;
|
|
25
|
+
scope: string;
|
|
26
|
+
responseType: string;
|
|
27
|
+
loginUrl: string;
|
|
28
|
+
iconUrl: string;
|
|
29
|
+
options: {
|
|
30
|
+
showOnLogin: boolean;
|
|
31
|
+
showOnSignup: boolean;
|
|
32
|
+
};
|
|
33
|
+
tokenUri: string;
|
|
34
|
+
tokenIntrospectionUri: string;
|
|
35
|
+
userInfoUri: string;
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
};
|
|
38
|
+
export type SsoCreatePayload = {
|
|
39
|
+
name: string;
|
|
40
|
+
exid: string;
|
|
41
|
+
clientId: string;
|
|
42
|
+
clientSecret: string;
|
|
43
|
+
scope: string;
|
|
44
|
+
responseType: string;
|
|
45
|
+
loginUrl: string;
|
|
46
|
+
iconUrl: string;
|
|
47
|
+
options: {
|
|
48
|
+
showOnLogin: boolean;
|
|
49
|
+
showOnSignup: boolean;
|
|
50
|
+
};
|
|
51
|
+
tokenUri: string;
|
|
52
|
+
tokenIntrospectionUri: string;
|
|
53
|
+
userInfoUri: string;
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
};
|
|
@@ -39,8 +39,7 @@ export type ExNvrDeviceConfig = {
|
|
|
39
39
|
timezone: string;
|
|
40
40
|
};
|
|
41
41
|
export declare enum ExNvrFootageAvailableStatus {
|
|
42
|
-
|
|
43
|
-
NotActive = "Not Active",
|
|
42
|
+
Available = "Available",
|
|
44
43
|
NotAvailable = "Not Available"
|
|
45
44
|
}
|
|
46
45
|
export declare enum ExNvrDeviceState {
|
package/dist/api/types/time.d.ts
CHANGED
|
@@ -18,4 +18,8 @@ export type DateTime_tz = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}${"+" | "-"}${HH}:
|
|
|
18
18
|
export type DateTime_Z = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}Z` | string;
|
|
19
19
|
export type DateTime_Z_micros = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}.${microS}Z` | string;
|
|
20
20
|
export type DateTimeSpaceSeparated = `${Date_YYYY_MM_DD} ${Time_HH_mm_ss}` | string;
|
|
21
|
+
export type DateRangeFilter = {
|
|
22
|
+
fromDate: DateType;
|
|
23
|
+
toDate: DateType;
|
|
24
|
+
};
|
|
21
25
|
export {};
|
package/dist/api/types/user.d.ts
CHANGED
|
@@ -59,6 +59,10 @@ export type ProjectUser = User & {
|
|
|
59
59
|
cameraExid: string;
|
|
60
60
|
cameraRights: string;
|
|
61
61
|
};
|
|
62
|
+
export declare enum ContactRole {
|
|
63
|
+
SalesExecutive = "Sales Executive",
|
|
64
|
+
CustomerSuccessManager = "Customer Success Manager"
|
|
65
|
+
}
|
|
62
66
|
export declare enum Persona {
|
|
63
67
|
HQ = "HQ",
|
|
64
68
|
PM = "PM",
|