@evercam/api 1.0.0-94830523a → 1.0.0-95d4e9e69
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 +2 -0
- package/dist/api/api/3dFirebaseApi.d.ts +8 -1
- package/dist/api/api/adminApi.d.ts +69 -82
- package/dist/api/api/aiApi.d.ts +61 -80
- 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 -100
- 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 +105 -34
- 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 +184 -7
- 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 +99 -14
- package/dist/api/types/anpr.d.ts +24 -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 +10 -4
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +89 -76
- package/dist/api/types/comments.d.ts +4 -8
- 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 +2 -5
- package/dist/api/types/coolify.d.ts +20 -2
- 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 -22
- package/dist/api/types/gateReport.d.ts +46 -150
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/ingest.d.ts +89 -2
- package/dist/api/types/kit.d.ts +33 -5
- 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 +6 -32
- package/dist/api/types/project.d.ts +131 -18
- package/dist/api/types/recording.d.ts +3 -3
- package/dist/api/types/recycleBin.d.ts +1 -1
- package/dist/api/types/router.d.ts +20 -1
- package/dist/api/types/shared.d.ts +11 -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/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +1 -1
- 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 +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 +76 -15
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +1073 -980
- 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 +88 -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 { CameraExid, 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,6 +16,8 @@ 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[];
|
|
21
23
|
createdAt: string;
|
|
@@ -303,6 +305,13 @@ export type KitCreatePayload = {
|
|
|
303
305
|
region: KitRegion;
|
|
304
306
|
};
|
|
305
307
|
};
|
|
308
|
+
export type KitMetricStatsEntry = {
|
|
309
|
+
timestamp: string;
|
|
310
|
+
voltage: number;
|
|
311
|
+
current: number;
|
|
312
|
+
panelVoltage: number;
|
|
313
|
+
panelPower: number;
|
|
314
|
+
};
|
|
306
315
|
export type KitUpdatePayload = {
|
|
307
316
|
countryId: number;
|
|
308
317
|
name: string;
|
|
@@ -327,8 +336,8 @@ export type KitStorage = {
|
|
|
327
336
|
formFactor: string;
|
|
328
337
|
};
|
|
329
338
|
model: string;
|
|
330
|
-
insertedAt:
|
|
331
|
-
updatedAt:
|
|
339
|
+
insertedAt: string;
|
|
340
|
+
updatedAt: string;
|
|
332
341
|
vendor: string;
|
|
333
342
|
kitId: number;
|
|
334
343
|
capacity: number;
|
|
@@ -350,6 +359,25 @@ export type KitAlarmItem = {
|
|
|
350
359
|
id: number;
|
|
351
360
|
kitId: number;
|
|
352
361
|
alarm: KitAlarm;
|
|
353
|
-
startDate:
|
|
354
|
-
endDate:
|
|
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;
|
|
355
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,34 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type Automation = {
|
|
3
|
-
name?: string;
|
|
4
|
-
cameraIds: string;
|
|
5
|
-
cameraNames: number;
|
|
6
|
-
cameraExids?: string[];
|
|
7
|
-
createdAt: string;
|
|
8
|
-
id: number;
|
|
9
|
-
provider: string;
|
|
10
|
-
type: AutomationType;
|
|
11
|
-
config: Partial<{
|
|
12
|
-
recipients: string | Record<string, string>[];
|
|
13
|
-
companyId: number;
|
|
14
|
-
compareDelay: number;
|
|
15
|
-
categoryId: string;
|
|
16
|
-
hubId: string;
|
|
17
|
-
folderId: string;
|
|
18
|
-
projectId: number;
|
|
19
|
-
}>;
|
|
20
|
-
isPaused: boolean;
|
|
21
|
-
notifyDays: string | string[];
|
|
22
|
-
notifyTime: string;
|
|
23
|
-
requesterEmail: string;
|
|
24
|
-
requesterName: string;
|
|
25
|
-
timezone: string;
|
|
26
|
-
title: string;
|
|
27
|
-
compareDelay?: number;
|
|
28
|
-
selectedProvider?: string;
|
|
29
|
-
restrictedCameraExids?: string[];
|
|
30
|
-
recipients?: string | string[];
|
|
31
|
-
};
|
|
1
|
+
import { Automation, AutomationType, DateType, PaginationParams } from "@evercam/api/types";
|
|
32
2
|
export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
33
3
|
cameraExids?: string;
|
|
34
4
|
notifyDays?: string;
|
|
@@ -38,6 +8,7 @@ export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
|
38
8
|
type?: string;
|
|
39
9
|
config?: {
|
|
40
10
|
compareDelay?: AutomationType;
|
|
11
|
+
period?: number;
|
|
41
12
|
recipients?: string;
|
|
42
13
|
projectId?: number;
|
|
43
14
|
companyId?: number;
|
|
@@ -54,6 +25,9 @@ export type ProgressPhotosUnSubscribeParams = {
|
|
|
54
25
|
export type ProgressPhotosResponsePayload = {
|
|
55
26
|
progressPhotos: Automation[];
|
|
56
27
|
};
|
|
28
|
+
export type ProgressPhotoItemResponsePayload = {
|
|
29
|
+
progressPhotos: Automation;
|
|
30
|
+
};
|
|
57
31
|
export declare enum AutomationDialogType {
|
|
58
32
|
Create = "create",
|
|
59
33
|
Edit = "edit",
|
|
@@ -100,5 +74,5 @@ export type ProgressPhotosHistory = {
|
|
|
100
74
|
cameraIds: string;
|
|
101
75
|
failedCameraIds: string;
|
|
102
76
|
subject: string;
|
|
103
|
-
recipients:
|
|
77
|
+
recipients: string;
|
|
104
78
|
};
|
|
@@ -1,25 +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>;
|
|
15
|
-
|
|
7
|
+
camerasCount?: number;
|
|
8
|
+
camerasRestrictionType?: string;
|
|
9
|
+
companyId: number;
|
|
10
|
+
endDate: string;
|
|
11
|
+
exid: ProjectExid;
|
|
16
12
|
featureFlags: Array<ProjectFeatureFlag>;
|
|
13
|
+
geographicBounds?: unknown;
|
|
14
|
+
id: string | number;
|
|
15
|
+
insertedAt?: string;
|
|
16
|
+
name: string;
|
|
17
17
|
owner?: {
|
|
18
18
|
email?: string;
|
|
19
19
|
};
|
|
20
20
|
ownerEmail?: string;
|
|
21
21
|
ownerName?: string;
|
|
22
|
-
|
|
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;
|
|
23
54
|
};
|
|
24
55
|
export declare enum ProjectStatus {
|
|
25
56
|
ToStart = "To Start",
|
|
@@ -33,13 +64,12 @@ export declare enum ProjectArchiveTier {
|
|
|
33
64
|
Minimal = "Minimal",
|
|
34
65
|
ScheduledForDeletion = "Scheduled for Deletion"
|
|
35
66
|
}
|
|
36
|
-
export type ProjectResponsePayload = {
|
|
37
|
-
data?: Project[];
|
|
38
|
-
};
|
|
39
67
|
export type UpdateCameraRestrictionPayload = {
|
|
40
68
|
isAccessRestricted?: boolean;
|
|
41
69
|
};
|
|
42
70
|
export type Logo = {
|
|
71
|
+
id: number;
|
|
72
|
+
projectId: number;
|
|
43
73
|
name: string;
|
|
44
74
|
url: string;
|
|
45
75
|
};
|
|
@@ -53,7 +83,6 @@ export declare enum ProjectFeatureFlag {
|
|
|
53
83
|
ThreeSixtyView = "360_view",
|
|
54
84
|
NdaMc = "NDA/MC",
|
|
55
85
|
GateReport = "gate_report",
|
|
56
|
-
GateReportAutoVerify = "auto_publish",
|
|
57
86
|
GateReportMotionDetection = "motion_detection",
|
|
58
87
|
FullEmpty = "full_empty",
|
|
59
88
|
MediaHubSharing = "archives_sharing",
|
|
@@ -61,7 +90,9 @@ export declare enum ProjectFeatureFlag {
|
|
|
61
90
|
NoLicensePlate = "no_license_plate",
|
|
62
91
|
DefaultToProjectApp = "default_to_project_app",
|
|
63
92
|
SmartSearch = "smart_search",
|
|
64
|
-
PpeMonitoring = "ppe_monitoring"
|
|
93
|
+
PpeMonitoring = "ppe_monitoring",
|
|
94
|
+
NoGdpr = "no_gdpr",
|
|
95
|
+
NoLiveView = "no_live_view"
|
|
65
96
|
}
|
|
66
97
|
export type ProjectBatteryReading = {
|
|
67
98
|
exid: number;
|
|
@@ -117,7 +148,7 @@ export type ProjectUserProperty = {
|
|
|
117
148
|
eventsCount: number;
|
|
118
149
|
fullname: string;
|
|
119
150
|
id: number;
|
|
120
|
-
lastSeenAt:
|
|
151
|
+
lastSeenAt: string;
|
|
121
152
|
persona: string;
|
|
122
153
|
};
|
|
123
154
|
export type ProjectUsers = {
|
|
@@ -127,3 +158,85 @@ export type ProjectUsers = {
|
|
|
127
158
|
}[];
|
|
128
159
|
users: Record<string, ProjectUserProperty[]>;
|
|
129
160
|
};
|
|
161
|
+
export type ProjectRole = {
|
|
162
|
+
id: number;
|
|
163
|
+
name: string;
|
|
164
|
+
};
|
|
165
|
+
export type ProjectMember = {
|
|
166
|
+
id: string;
|
|
167
|
+
email: string;
|
|
168
|
+
fullname: string;
|
|
169
|
+
lastSeenAt?: string;
|
|
170
|
+
role: ProjectRole;
|
|
171
|
+
permissions?: string[];
|
|
172
|
+
subRoles?: Array<{
|
|
173
|
+
resourceId: string;
|
|
174
|
+
roleId: number;
|
|
175
|
+
}>;
|
|
176
|
+
company?: string | null;
|
|
177
|
+
};
|
|
178
|
+
export type ProjectInvite = {
|
|
179
|
+
id?: string;
|
|
180
|
+
email: string;
|
|
181
|
+
role?: ProjectRole;
|
|
182
|
+
permissions?: string[];
|
|
183
|
+
subRoles?: Array<{
|
|
184
|
+
resourceId: string;
|
|
185
|
+
roleId: number;
|
|
186
|
+
}>;
|
|
187
|
+
invitedAt?: string;
|
|
188
|
+
};
|
|
189
|
+
export type ProjectMembersResponsePayload = {
|
|
190
|
+
users: ProjectMember[];
|
|
191
|
+
invites: ProjectInvite[];
|
|
192
|
+
errors: ProjectUserError[];
|
|
193
|
+
};
|
|
194
|
+
export type ProjectMembersRequestPayload = {
|
|
195
|
+
roleId: number;
|
|
196
|
+
emails: string[];
|
|
197
|
+
overrideRole?: Partial<{
|
|
198
|
+
permissions?: string[];
|
|
199
|
+
subRoles?: Array<{
|
|
200
|
+
resourceId: string;
|
|
201
|
+
roleId: number;
|
|
202
|
+
}>;
|
|
203
|
+
}>;
|
|
204
|
+
};
|
|
205
|
+
export type ProjectInviteMembersResponsePayload = {
|
|
206
|
+
users: ProjectMember[];
|
|
207
|
+
invites: ProjectInvite[];
|
|
208
|
+
};
|
|
209
|
+
export type PlaceholderThumbnailData = {
|
|
210
|
+
placeholder: string;
|
|
211
|
+
};
|
|
212
|
+
export type ProjectUserError = {
|
|
213
|
+
email: string;
|
|
214
|
+
error: Record<string, string[]>;
|
|
215
|
+
};
|
|
216
|
+
export type ProjectUsersResponsePayload = {
|
|
217
|
+
users: ProjectMember[];
|
|
218
|
+
invites: ProjectInvite[];
|
|
219
|
+
errors: ProjectUserError[];
|
|
220
|
+
};
|
|
221
|
+
export type ProjectStorageQueryParams = PaginationParams & {
|
|
222
|
+
cameraName: string;
|
|
223
|
+
cameraExid: CameraExid;
|
|
224
|
+
status: ProjectStorageStatus;
|
|
225
|
+
};
|
|
226
|
+
export type ProjectStorage = {
|
|
227
|
+
id: number;
|
|
228
|
+
cameraExid: CameraExid;
|
|
229
|
+
cameraName: string;
|
|
230
|
+
projectExid: string;
|
|
231
|
+
projectName: string;
|
|
232
|
+
status: ProjectStorageStatus;
|
|
233
|
+
requestor: string;
|
|
234
|
+
created_at: DateType;
|
|
235
|
+
};
|
|
236
|
+
export declare enum ProjectStorageStatus {
|
|
237
|
+
New = "new",
|
|
238
|
+
Pending = "pending",
|
|
239
|
+
Processing = "processing",
|
|
240
|
+
Completed = "completed",
|
|
241
|
+
Failed = "failed"
|
|
242
|
+
}
|
|
@@ -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;
|
|
@@ -55,8 +56,7 @@ export type SnapshotRangeResponsePayload = {
|
|
|
55
56
|
snapshots: Array<SnapshotInstance>;
|
|
56
57
|
};
|
|
57
58
|
export declare enum BrainTool {
|
|
58
|
-
Detections = "detections"
|
|
59
|
-
Segmentation = "sam"
|
|
59
|
+
Detections = "detections"
|
|
60
60
|
}
|
|
61
61
|
export declare enum CloudRecordingFrequency {
|
|
62
62
|
EverySecond = 60,
|
|
@@ -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;
|
|
@@ -108,11 +115,11 @@ export declare enum DownloadFileType {
|
|
|
108
115
|
export declare enum FeedbackContext {
|
|
109
116
|
CopilotMessage = "copilot_message"
|
|
110
117
|
}
|
|
111
|
-
export type FeedbackPayload
|
|
118
|
+
export type FeedbackPayload = {
|
|
112
119
|
id?: number;
|
|
113
120
|
user: string;
|
|
114
121
|
text: string;
|
|
115
|
-
type:
|
|
122
|
+
type: string;
|
|
116
123
|
context: FeedbackContext;
|
|
117
124
|
messageId?: number;
|
|
118
125
|
conversationId?: number;
|