@evercam/api 1.0.0-336752725 → 1.0.0-39e7bbc90
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 +17 -1
- package/dist/api/api/adminApi.d.ts +104 -83
- package/dist/api/api/aiApi.d.ts +33 -52
- package/dist/api/api/authzApi.d.ts +32 -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 +79 -95
- package/dist/api/api/evercamLabsApi.d.ts +6 -3
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +110 -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 +192 -5
- package/dist/api/types/aconex.d.ts +104 -6
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +101 -9
- package/dist/api/types/anpr.d.ts +13 -13
- package/dist/api/types/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +60 -0
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +86 -1
- package/dist/api/types/axios.d.ts +11 -4
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +97 -73
- package/dist/api/types/comments.d.ts +21 -9
- package/dist/api/types/company.d.ts +43 -2
- package/dist/api/types/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +2 -5
- package/dist/api/types/coolify.d.ts +3 -1
- package/dist/api/types/copilot.d.ts +1 -1
- package/dist/api/types/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +17 -23
- package/dist/api/types/errors.d.ts +1 -0
- package/dist/api/types/gateReport.d.ts +32 -128
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +5 -0
- package/dist/api/types/ingest.d.ts +86 -1
- package/dist/api/types/kit.d.ts +56 -7
- package/dist/api/types/media.d.ts +1 -1
- package/dist/api/types/notification.d.ts +32 -2
- package/dist/api/types/planner.d.ts +4 -1
- package/dist/api/types/posthog.d.ts +15 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +10 -24
- package/dist/api/types/project.d.ts +130 -17
- package/dist/api/types/recording.d.ts +2 -1
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/routeParams.d.ts +2 -1
- package/dist/api/types/router.d.ts +20 -1
- package/dist/api/types/shared.d.ts +12 -10
- 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 +197 -41
- package/dist/api/types/snapshots.d.ts +10 -1
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +4 -5
- 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 +3 -4
- package/dist/api/types/user.d.ts +105 -30
- 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/api/utils.d.ts +1 -0
- package/dist/index.js +1141 -942
- 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 +97 -11
- package/dist/shared/types/imagePlayer.d.ts +2 -2
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +4 -4
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CountryCode, CountryId,
|
|
1
|
+
import { CameraExid, CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@evercam/api/types";
|
|
2
2
|
export type Kit = {
|
|
3
3
|
alarms: KitAlarm[];
|
|
4
4
|
countryCode: CountryCode;
|
|
@@ -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",
|
|
@@ -32,16 +36,16 @@ export declare enum KitRegion {
|
|
|
32
36
|
}
|
|
33
37
|
export declare enum KitAlarm {
|
|
34
38
|
NvrOffline = "nvr_offline",
|
|
39
|
+
OfflineScheduled = "offline_scheduled",
|
|
35
40
|
UnknownCamera = "unknown_camera",
|
|
36
41
|
NotRecordingCamera = "not_recording_camera",
|
|
37
|
-
OfflineScheduled = "offline_scheduled",
|
|
38
42
|
FullSD = "full_sd",
|
|
39
43
|
FullStorage = "full_storage",
|
|
40
44
|
HddUnmounted = "hdd_unmounted",
|
|
41
45
|
NoHdd = "no_hdd",
|
|
42
46
|
MissingRouterInfo = "missing_router_info",
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
AcFailure = "ac_failure",
|
|
48
|
+
LowBattery = "low_battery"
|
|
45
49
|
}
|
|
46
50
|
export declare enum KitMetricId {
|
|
47
51
|
SolarCharger = "solar_charger",
|
|
@@ -301,6 +305,13 @@ export type KitCreatePayload = {
|
|
|
301
305
|
region: KitRegion;
|
|
302
306
|
};
|
|
303
307
|
};
|
|
308
|
+
export type KitMetricStatsEntry = {
|
|
309
|
+
timestamp: string;
|
|
310
|
+
voltage: number;
|
|
311
|
+
current: number;
|
|
312
|
+
panelVoltage: number;
|
|
313
|
+
panelPower: number;
|
|
314
|
+
};
|
|
304
315
|
export type KitUpdatePayload = {
|
|
305
316
|
countryId: number;
|
|
306
317
|
name: string;
|
|
@@ -316,7 +327,7 @@ export declare enum KitStorageTransport {
|
|
|
316
327
|
export type KitStorageRequestPayload = {
|
|
317
328
|
kitId: number;
|
|
318
329
|
};
|
|
319
|
-
export type
|
|
330
|
+
export type KitStorage = {
|
|
320
331
|
id: number;
|
|
321
332
|
serial: string;
|
|
322
333
|
status: string;
|
|
@@ -325,10 +336,48 @@ export type KitStorageResponsePayload = {
|
|
|
325
336
|
formFactor: string;
|
|
326
337
|
};
|
|
327
338
|
model: string;
|
|
328
|
-
insertedAt:
|
|
329
|
-
updatedAt:
|
|
339
|
+
insertedAt: string;
|
|
340
|
+
updatedAt: string;
|
|
330
341
|
vendor: string;
|
|
331
342
|
kitId: number;
|
|
332
343
|
capacity: number;
|
|
344
|
+
freeSpace: number;
|
|
333
345
|
tran: KitStorageTransport;
|
|
334
346
|
};
|
|
347
|
+
export type KitFootageRequestPayload = {
|
|
348
|
+
cameraId: CameraExid;
|
|
349
|
+
storageId: number;
|
|
350
|
+
};
|
|
351
|
+
export type KitFootage = {
|
|
352
|
+
id: number;
|
|
353
|
+
startDate: string;
|
|
354
|
+
endDate: string;
|
|
355
|
+
cameraId: number;
|
|
356
|
+
storageId: number;
|
|
357
|
+
};
|
|
358
|
+
export type KitAlarmItem = {
|
|
359
|
+
id: number;
|
|
360
|
+
kitId: number;
|
|
361
|
+
alarm: KitAlarm;
|
|
362
|
+
startDate: string;
|
|
363
|
+
endDate: string | null;
|
|
364
|
+
};
|
|
365
|
+
export type KitBox = {
|
|
366
|
+
id: string;
|
|
367
|
+
gatewaySerial: string;
|
|
368
|
+
gatewayMac: string;
|
|
369
|
+
gatewayConfig: Record<string, unknown> | null;
|
|
370
|
+
insertedAt: string;
|
|
371
|
+
updatedAt: string;
|
|
372
|
+
};
|
|
373
|
+
export type KitBoxCreatePayload = {
|
|
374
|
+
id?: string;
|
|
375
|
+
gatewaySerial: string;
|
|
376
|
+
gatewayMac: string;
|
|
377
|
+
gatewayConfig?: Record<string, unknown>;
|
|
378
|
+
};
|
|
379
|
+
export type KitBoxQueryParams = PaginationParams & {
|
|
380
|
+
id: string;
|
|
381
|
+
gatewaySerial: string;
|
|
382
|
+
gatewayMac: string;
|
|
383
|
+
};
|
|
@@ -7,11 +7,41 @@ export declare enum NotificationType {
|
|
|
7
7
|
DroneProcessing = "drone_processing_done",
|
|
8
8
|
Processing360 = "three_sixty_done"
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface NotificationContextBase {
|
|
11
|
+
cameraExid?: string;
|
|
12
|
+
projectExid?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface CameraShareContext extends NotificationContextBase {
|
|
11
15
|
cameraExid: string;
|
|
12
16
|
projectExid: string;
|
|
13
17
|
shareId: number;
|
|
14
18
|
}
|
|
19
|
+
export interface CameraStatusChangeContext extends NotificationContextBase {
|
|
20
|
+
cameraExid: string;
|
|
21
|
+
projectExid: string;
|
|
22
|
+
newStatus: string;
|
|
23
|
+
}
|
|
24
|
+
export interface MentionContext extends NotificationContextBase {
|
|
25
|
+
}
|
|
26
|
+
export interface TimelapseCreatedContext extends NotificationContextBase {
|
|
27
|
+
cameraExid: string;
|
|
28
|
+
projectExid: string;
|
|
29
|
+
archiveExid: string;
|
|
30
|
+
}
|
|
31
|
+
export interface TimelapseFailedContext extends NotificationContextBase {
|
|
32
|
+
cameraExid: string;
|
|
33
|
+
projectExid: string;
|
|
34
|
+
}
|
|
35
|
+
export interface DroneProcessingContext extends NotificationContextBase {
|
|
36
|
+
projectExid: string;
|
|
37
|
+
droneDate: string;
|
|
38
|
+
}
|
|
39
|
+
export interface Processing360Context extends NotificationContextBase {
|
|
40
|
+
projectExid: string;
|
|
41
|
+
date: string;
|
|
42
|
+
floor: string;
|
|
43
|
+
}
|
|
44
|
+
export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context;
|
|
15
45
|
export type Notification = {
|
|
16
46
|
id: number;
|
|
17
47
|
type: NotificationType;
|
|
@@ -23,5 +53,5 @@ export type Notification = {
|
|
|
23
53
|
targetFullname: string;
|
|
24
54
|
targetEmail: string;
|
|
25
55
|
readTimestamp: string | null;
|
|
26
|
-
context:
|
|
56
|
+
context: NotificationContext;
|
|
27
57
|
};
|
|
@@ -16,3 +16,18 @@ export declare enum ActiveUsersMetric {
|
|
|
16
16
|
WAU = "wau",
|
|
17
17
|
MAU = "mau"
|
|
18
18
|
}
|
|
19
|
+
export type PosthogUserParams = {
|
|
20
|
+
firstname?: string;
|
|
21
|
+
lastname?: string;
|
|
22
|
+
email: string;
|
|
23
|
+
telephone?: string;
|
|
24
|
+
country?: string;
|
|
25
|
+
isAdmin?: boolean;
|
|
26
|
+
persona?: string;
|
|
27
|
+
companyExid: string;
|
|
28
|
+
companyName: string;
|
|
29
|
+
isImpersonationLogin: boolean;
|
|
30
|
+
ImpersonatedUserEmail?: string;
|
|
31
|
+
ImpersonatedUserFirstname?: string;
|
|
32
|
+
impersonatedUserLastname?: string;
|
|
33
|
+
};
|
|
@@ -44,7 +44,7 @@ export type ProcoreObservationSpecificationSection = {
|
|
|
44
44
|
label: string;
|
|
45
45
|
currentRevisionId: number;
|
|
46
46
|
};
|
|
47
|
-
export type
|
|
47
|
+
export type ProcoreUserProject = {
|
|
48
48
|
accountingProjectNumber?: number;
|
|
49
49
|
active: boolean;
|
|
50
50
|
address: string;
|
|
@@ -85,7 +85,8 @@ export type ProcoreUserProjectsResponsePayload = Array<{
|
|
|
85
85
|
totalValue: string;
|
|
86
86
|
updatedAt: string;
|
|
87
87
|
zip: number;
|
|
88
|
-
}
|
|
88
|
+
};
|
|
89
|
+
export type ProcoreUserProjectsResponsePayload = Array<ProcoreUserProject>;
|
|
89
90
|
export type ProcoreToolUserAccessLevel = {
|
|
90
91
|
id: ProcoreToolUserAccessLevelIds;
|
|
91
92
|
name: string;
|
|
@@ -120,7 +121,7 @@ export type ProcoreEditedImageUploadRequestPayload = {
|
|
|
120
121
|
snapshot: string;
|
|
121
122
|
categoryId?: number;
|
|
122
123
|
};
|
|
123
|
-
export type
|
|
124
|
+
export type ProcoreProjectAlbum = {
|
|
124
125
|
count: number;
|
|
125
126
|
coverPhoto: string | null;
|
|
126
127
|
createdAt: string;
|
|
@@ -134,8 +135,9 @@ export type ProcoreProjectsAlbumsPayload = Array<{
|
|
|
134
135
|
position: number;
|
|
135
136
|
private: boolean;
|
|
136
137
|
updatedAt: string;
|
|
137
|
-
}
|
|
138
|
-
export type
|
|
138
|
+
};
|
|
139
|
+
export type ProcoreProjectsAlbumsPayload = Array<ProcoreProjectAlbum>;
|
|
140
|
+
export type ProcoreObservationType = {
|
|
139
141
|
id: number;
|
|
140
142
|
name: string;
|
|
141
143
|
localizedName: string;
|
|
@@ -147,12 +149,17 @@ export type ProcoreObservationTypesResponsePayload = Array<{
|
|
|
147
149
|
parentInactive: boolean;
|
|
148
150
|
isUse: boolean;
|
|
149
151
|
nameTranslations: string;
|
|
150
|
-
}
|
|
152
|
+
};
|
|
153
|
+
export type ProcoreObservationTypesResponsePayload = Array<ProcoreObservationType>;
|
|
151
154
|
export type ProcoreObservationFormRequestPayload = {
|
|
152
155
|
projectId: number;
|
|
153
156
|
companyId: number;
|
|
154
157
|
observationType: string;
|
|
155
158
|
};
|
|
159
|
+
export type ProcoreCustomFieldOptionsRequestPayload = {
|
|
160
|
+
optionsUrl: string;
|
|
161
|
+
companyId: number;
|
|
162
|
+
};
|
|
156
163
|
export type ProcoreObservationForm = Record<string, ProcoreObservationField | ProcoreObservationCustomField>;
|
|
157
164
|
export type ProcoreObservationField = {
|
|
158
165
|
name: string;
|
|
@@ -1,31 +1,14 @@
|
|
|
1
|
-
import {
|
|
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, DateType, PaginationParams } from "@evercam/api/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;
|
|
11
|
+
period?: number;
|
|
29
12
|
recipients?: string;
|
|
30
13
|
projectId?: number;
|
|
31
14
|
companyId?: number;
|
|
@@ -40,9 +23,12 @@ export type ProgressPhotosUnSubscribeParams = {
|
|
|
40
23
|
token?: string;
|
|
41
24
|
};
|
|
42
25
|
export type ProgressPhotosResponsePayload = {
|
|
43
|
-
progressPhotos:
|
|
26
|
+
progressPhotos: Automation[];
|
|
44
27
|
};
|
|
45
|
-
export
|
|
28
|
+
export type ProgressPhotoItemResponsePayload = {
|
|
29
|
+
progressPhotos: Automation;
|
|
30
|
+
};
|
|
31
|
+
export declare enum AutomationDialogType {
|
|
46
32
|
Create = "create",
|
|
47
33
|
Edit = "edit",
|
|
48
34
|
Pause = "pause"
|
|
@@ -88,5 +74,5 @@ export type ProgressPhotosHistory = {
|
|
|
88
74
|
cameraIds: string;
|
|
89
75
|
failedCameraIds: string;
|
|
90
76
|
subject: string;
|
|
91
|
-
recipients:
|
|
77
|
+
recipients: string;
|
|
92
78
|
};
|
|
@@ -1,24 +1,56 @@
|
|
|
1
|
-
import { AdminCamera, Camera, CameraExid,
|
|
1
|
+
import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export type ProjectExid = Exid;
|
|
3
3
|
export type ProjectsByExid = EntityByExid<Project>;
|
|
4
4
|
export type Project = {
|
|
5
|
-
|
|
6
|
-
exid: ProjectExid;
|
|
7
|
-
name: string;
|
|
8
|
-
status?: ProjectStatus;
|
|
9
|
-
insertedAt?: string;
|
|
10
|
-
startedAt?: string;
|
|
11
|
-
timezone?: string;
|
|
12
|
-
zohoId?: string;
|
|
13
|
-
userId?: number;
|
|
5
|
+
archiveTier?: ProjectArchiveTier;
|
|
14
6
|
cameras?: Array<Camera | AdminCamera>;
|
|
7
|
+
camerasCount?: number;
|
|
8
|
+
camerasRestrictionType?: string;
|
|
9
|
+
companyId: number;
|
|
10
|
+
endDate: string;
|
|
11
|
+
exid: ProjectExid;
|
|
15
12
|
featureFlags: Array<ProjectFeatureFlag>;
|
|
13
|
+
geographicBounds?: unknown;
|
|
14
|
+
id: string | number;
|
|
15
|
+
insertedAt?: string;
|
|
16
|
+
name: string;
|
|
16
17
|
owner?: {
|
|
17
18
|
email?: string;
|
|
18
19
|
};
|
|
19
20
|
ownerEmail?: string;
|
|
20
21
|
ownerName?: string;
|
|
21
|
-
|
|
22
|
+
startedAt?: string;
|
|
23
|
+
status?: ProjectStatus;
|
|
24
|
+
timezone?: string;
|
|
25
|
+
unrestrictedCameras?: Camera[];
|
|
26
|
+
userId?: number;
|
|
27
|
+
zohoId?: string;
|
|
28
|
+
};
|
|
29
|
+
export type AdminProjectCameraRef = {
|
|
30
|
+
exid: string;
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
export type AdminProjectListItem = {
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
status: ProjectStatus | string;
|
|
37
|
+
insertedAt: string;
|
|
38
|
+
timezone: string | null;
|
|
39
|
+
exid: ProjectExid;
|
|
40
|
+
endDate: string | null;
|
|
41
|
+
startDate: string | null;
|
|
42
|
+
archiveTier: ProjectArchiveTier | null;
|
|
43
|
+
featureFlags: Array<ProjectFeatureFlag | string>;
|
|
44
|
+
zohoId: string | null;
|
|
45
|
+
ownerEmail: string | null;
|
|
46
|
+
companyId: number | null;
|
|
47
|
+
companyName: string | null;
|
|
48
|
+
ownerName: string | null;
|
|
49
|
+
archived: boolean;
|
|
50
|
+
cameras?: AdminProjectCameraRef[];
|
|
51
|
+
};
|
|
52
|
+
export type AdminProjectDetail = AdminProjectListItem & {
|
|
53
|
+
userId: number;
|
|
22
54
|
};
|
|
23
55
|
export declare enum ProjectStatus {
|
|
24
56
|
ToStart = "To Start",
|
|
@@ -32,13 +64,12 @@ export declare enum ProjectArchiveTier {
|
|
|
32
64
|
Minimal = "Minimal",
|
|
33
65
|
ScheduledForDeletion = "Scheduled for Deletion"
|
|
34
66
|
}
|
|
35
|
-
export type ProjectResponsePayload = {
|
|
36
|
-
data?: Project[];
|
|
37
|
-
};
|
|
38
67
|
export type UpdateCameraRestrictionPayload = {
|
|
39
68
|
isAccessRestricted?: boolean;
|
|
40
69
|
};
|
|
41
70
|
export type Logo = {
|
|
71
|
+
id: number;
|
|
72
|
+
projectId: number;
|
|
42
73
|
name: string;
|
|
43
74
|
url: string;
|
|
44
75
|
};
|
|
@@ -52,7 +83,6 @@ export declare enum ProjectFeatureFlag {
|
|
|
52
83
|
ThreeSixtyView = "360_view",
|
|
53
84
|
NdaMc = "NDA/MC",
|
|
54
85
|
GateReport = "gate_report",
|
|
55
|
-
GateReportAutoVerify = "auto_publish",
|
|
56
86
|
GateReportMotionDetection = "motion_detection",
|
|
57
87
|
FullEmpty = "full_empty",
|
|
58
88
|
MediaHubSharing = "archives_sharing",
|
|
@@ -60,7 +90,8 @@ export declare enum ProjectFeatureFlag {
|
|
|
60
90
|
NoLicensePlate = "no_license_plate",
|
|
61
91
|
DefaultToProjectApp = "default_to_project_app",
|
|
62
92
|
SmartSearch = "smart_search",
|
|
63
|
-
PpeMonitoring = "ppe_monitoring"
|
|
93
|
+
PpeMonitoring = "ppe_monitoring",
|
|
94
|
+
NoGdpr = "no_gdpr"
|
|
64
95
|
}
|
|
65
96
|
export type ProjectBatteryReading = {
|
|
66
97
|
exid: number;
|
|
@@ -116,7 +147,7 @@ export type ProjectUserProperty = {
|
|
|
116
147
|
eventsCount: number;
|
|
117
148
|
fullname: string;
|
|
118
149
|
id: number;
|
|
119
|
-
lastSeenAt:
|
|
150
|
+
lastSeenAt: string;
|
|
120
151
|
persona: string;
|
|
121
152
|
};
|
|
122
153
|
export type ProjectUsers = {
|
|
@@ -126,3 +157,85 @@ export type ProjectUsers = {
|
|
|
126
157
|
}[];
|
|
127
158
|
users: Record<string, ProjectUserProperty[]>;
|
|
128
159
|
};
|
|
160
|
+
export type ProjectRole = {
|
|
161
|
+
id: number;
|
|
162
|
+
name: string;
|
|
163
|
+
};
|
|
164
|
+
export type ProjectMember = {
|
|
165
|
+
id: string;
|
|
166
|
+
email: string;
|
|
167
|
+
fullname: string;
|
|
168
|
+
lastSeenAt?: string;
|
|
169
|
+
role: ProjectRole;
|
|
170
|
+
permissions?: string[];
|
|
171
|
+
subRoles?: Array<{
|
|
172
|
+
resourceId: string;
|
|
173
|
+
roleId: number;
|
|
174
|
+
}>;
|
|
175
|
+
company?: string | null;
|
|
176
|
+
};
|
|
177
|
+
export type ProjectInvite = {
|
|
178
|
+
id?: string;
|
|
179
|
+
email: string;
|
|
180
|
+
role?: ProjectRole;
|
|
181
|
+
permissions?: string[];
|
|
182
|
+
subRoles?: Array<{
|
|
183
|
+
resourceId: string;
|
|
184
|
+
roleId: number;
|
|
185
|
+
}>;
|
|
186
|
+
invitedAt?: string;
|
|
187
|
+
};
|
|
188
|
+
export type ProjectMembersResponsePayload = {
|
|
189
|
+
users: ProjectMember[];
|
|
190
|
+
invites: ProjectInvite[];
|
|
191
|
+
errors: ProjectUserError[];
|
|
192
|
+
};
|
|
193
|
+
export type ProjectMembersRequestPayload = {
|
|
194
|
+
roleId: number;
|
|
195
|
+
emails: string[];
|
|
196
|
+
overrideRole?: Partial<{
|
|
197
|
+
permissions?: string[];
|
|
198
|
+
subRoles?: Array<{
|
|
199
|
+
resourceId: string;
|
|
200
|
+
roleId: number;
|
|
201
|
+
}>;
|
|
202
|
+
}>;
|
|
203
|
+
};
|
|
204
|
+
export type ProjectInviteMembersResponsePayload = {
|
|
205
|
+
users: ProjectMember[];
|
|
206
|
+
invites: ProjectInvite[];
|
|
207
|
+
};
|
|
208
|
+
export type PlaceholderThumbnailData = {
|
|
209
|
+
placeholder: string;
|
|
210
|
+
};
|
|
211
|
+
export type ProjectUserError = {
|
|
212
|
+
email: string;
|
|
213
|
+
error: Record<string, string[]>;
|
|
214
|
+
};
|
|
215
|
+
export type ProjectUsersResponsePayload = {
|
|
216
|
+
users: ProjectMember[];
|
|
217
|
+
invites: ProjectInvite[];
|
|
218
|
+
errors: ProjectUserError[];
|
|
219
|
+
};
|
|
220
|
+
export type ProjectStorageQueryParams = PaginationParams & {
|
|
221
|
+
cameraName: string;
|
|
222
|
+
cameraExid: CameraExid;
|
|
223
|
+
status: ProjectStorageStatus;
|
|
224
|
+
};
|
|
225
|
+
export type ProjectStorage = {
|
|
226
|
+
id: number;
|
|
227
|
+
cameraExid: CameraExid;
|
|
228
|
+
cameraName: string;
|
|
229
|
+
projectExid: string;
|
|
230
|
+
projectName: string;
|
|
231
|
+
status: ProjectStorageStatus;
|
|
232
|
+
requestor: string;
|
|
233
|
+
created_at: DateType;
|
|
234
|
+
};
|
|
235
|
+
export declare enum ProjectStorageStatus {
|
|
236
|
+
New = "new",
|
|
237
|
+
Pending = "pending",
|
|
238
|
+
Processing = "processing",
|
|
239
|
+
Completed = "completed",
|
|
240
|
+
Failed = "failed"
|
|
241
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiCredentials } from "
|
|
1
|
+
import { ApiCredentials } from "@evercam/api/types";
|
|
2
2
|
import { CancelToken } from "axios";
|
|
3
3
|
export type Snapshot = {
|
|
4
4
|
createdAt: string;
|
|
@@ -10,6 +10,7 @@ export type NearestSnapshotRequestPayload = {
|
|
|
10
10
|
apiId?: string;
|
|
11
11
|
token?: string;
|
|
12
12
|
cancelToken?: object;
|
|
13
|
+
includeImage?: boolean;
|
|
13
14
|
};
|
|
14
15
|
export type AvailableDaysRequestPayload = {
|
|
15
16
|
cameraId: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DateType, PaginationParams } from "@evercam/api/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>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Camera, PaginationParams, Project, Sim } from "
|
|
1
|
+
import { Camera, PaginationParams, Project, Sim } from "@evercam/api/types";
|
|
2
2
|
export type RouterBillPayer = {
|
|
3
3
|
name: string;
|
|
4
4
|
};
|
|
@@ -47,6 +47,10 @@ export declare enum RouterStatus {
|
|
|
47
47
|
Active = "active",
|
|
48
48
|
Inactive = "inactive"
|
|
49
49
|
}
|
|
50
|
+
export declare enum RouterScanInputMode {
|
|
51
|
+
Qr = "qr",
|
|
52
|
+
Manual = "manual"
|
|
53
|
+
}
|
|
50
54
|
export type RouterQueryParams = PaginationParams & {
|
|
51
55
|
routerType: string;
|
|
52
56
|
vpnServer: string;
|
|
@@ -65,3 +69,18 @@ export type RouterCreatePayload = {
|
|
|
65
69
|
vpnServer?: string;
|
|
66
70
|
netbirdUrl?: string;
|
|
67
71
|
};
|
|
72
|
+
export type RouterQRScanResult = {
|
|
73
|
+
raw: string;
|
|
74
|
+
timestamp: string;
|
|
75
|
+
sn?: string;
|
|
76
|
+
m?: string;
|
|
77
|
+
u?: string;
|
|
78
|
+
pw?: string;
|
|
79
|
+
t?: string;
|
|
80
|
+
s?: string;
|
|
81
|
+
p?: string;
|
|
82
|
+
i?: string;
|
|
83
|
+
b?: string;
|
|
84
|
+
boxId?: string;
|
|
85
|
+
isDuplicate?: boolean;
|
|
86
|
+
};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { DateType } from "
|
|
1
|
+
import { DateType } from "@evercam/api/types";
|
|
2
2
|
type sortby = string;
|
|
3
3
|
type sortDirection = "asc" | "desc";
|
|
4
4
|
export type SortingUrlParam = `${sortby}|${sortDirection}`;
|
|
5
|
+
export type JsonPrimitive = string | number | boolean | null;
|
|
6
|
+
export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
7
|
+
export type JsonObject = {
|
|
8
|
+
[key: string]: JsonValue;
|
|
9
|
+
};
|
|
10
|
+
export type JsonArray = JsonValue[];
|
|
5
11
|
export type BatteryReading = {
|
|
6
12
|
id: number;
|
|
7
13
|
voltage: number;
|
|
@@ -53,7 +59,7 @@ export declare enum UnitSystem {
|
|
|
53
59
|
Metric = "metric"
|
|
54
60
|
}
|
|
55
61
|
export type Timestamp = string | number;
|
|
56
|
-
export type
|
|
62
|
+
export type ScheduleUppercase = {
|
|
57
63
|
Friday: string[];
|
|
58
64
|
Monday: string[];
|
|
59
65
|
Saturday: string[];
|
|
@@ -71,6 +77,7 @@ export type ScheduleLowercase = {
|
|
|
71
77
|
tuesday: string[];
|
|
72
78
|
wednesday: string[];
|
|
73
79
|
};
|
|
80
|
+
export type Schedule = ScheduleUppercase | ScheduleLowercase;
|
|
74
81
|
export type PaginationParams = {
|
|
75
82
|
sort?: SortingUrlParam;
|
|
76
83
|
page?: number;
|
|
@@ -90,11 +97,6 @@ export declare enum _3dViewer {
|
|
|
90
97
|
Itwin = "itwin",
|
|
91
98
|
Cesium = "cesium"
|
|
92
99
|
}
|
|
93
|
-
export declare enum SsoProvider {
|
|
94
|
-
Microsoft = "microsoft",
|
|
95
|
-
Google = "google",
|
|
96
|
-
Evercam = "evercam"
|
|
97
|
-
}
|
|
98
100
|
export declare enum InfoPage {
|
|
99
101
|
ThreeSixtyView = "360",
|
|
100
102
|
BIMView = "bim",
|
|
@@ -105,7 +107,7 @@ export declare enum InfoPage {
|
|
|
105
107
|
Timeline = "timeline",
|
|
106
108
|
WeatherReport = "weather-report"
|
|
107
109
|
}
|
|
108
|
-
export declare enum
|
|
110
|
+
export declare enum DownloadFileType {
|
|
109
111
|
Jpeg = "jpeg",
|
|
110
112
|
Pdf = "pdf",
|
|
111
113
|
Csv = "csv"
|
|
@@ -113,11 +115,11 @@ export declare enum DownloadTypes {
|
|
|
113
115
|
export declare enum FeedbackContext {
|
|
114
116
|
CopilotMessage = "copilot_message"
|
|
115
117
|
}
|
|
116
|
-
export type FeedbackPayload
|
|
118
|
+
export type FeedbackPayload = {
|
|
117
119
|
id?: number;
|
|
118
120
|
user: string;
|
|
119
121
|
text: string;
|
|
120
|
-
type:
|
|
122
|
+
type: string;
|
|
121
123
|
context: FeedbackContext;
|
|
122
124
|
messageId?: number;
|
|
123
125
|
conversationId?: number;
|