@evercam/api 1.0.0-9f953b64f → 1.0.0-9fea602cf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/api/api/3dFirebaseApi.d.ts +170 -5
- package/dist/api/api/adminApi.d.ts +139 -72
- package/dist/api/api/aiApi.d.ts +98 -82
- package/dist/api/api/authzApi.d.ts +31 -15
- package/dist/api/api/client/axios.d.ts +2 -1
- 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 +145 -99
- package/dist/api/api/evercamLabsApi.d.ts +6 -4
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +119 -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 +208 -7
- package/dist/api/types/aconex.d.ts +104 -6
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +174 -41
- package/dist/api/types/anpr.d.ts +53 -13
- package/dist/api/types/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +61 -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 +28 -7
- package/dist/api/types/bim.d.ts +36 -5
- package/dist/api/types/camera.d.ts +112 -95
- package/dist/api/types/comments.d.ts +24 -10
- package/dist/api/types/company.d.ts +71 -2
- package/dist/api/types/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +4 -5
- package/dist/api/types/coolify.d.ts +20 -2
- package/dist/api/types/copilot.d.ts +11 -6
- 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 +23 -34
- package/dist/api/types/drone.d.ts +96 -6
- package/dist/api/types/errors.d.ts +12 -0
- package/dist/api/types/gateReport.d.ts +50 -158
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +12 -1
- package/dist/api/types/ingest.d.ts +104 -3
- package/dist/api/types/kit.d.ts +64 -9
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +8 -2
- package/dist/api/types/notification.d.ts +32 -2
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +101 -1
- package/dist/api/types/posthog.d.ts +15 -0
- package/dist/api/types/procore.d.ts +26 -16
- package/dist/api/types/progressPhoto.d.ts +10 -24
- package/dist/api/types/project.d.ts +137 -18
- package/dist/api/types/recording.d.ts +7 -11
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +2 -2
- 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 +31 -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 +194 -48
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +55 -1
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +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 +8 -5
- package/dist/api/types/user.d.ts +106 -32
- package/dist/api/types/videoWall.d.ts +47 -14
- package/dist/api/types/weather.d.ts +77 -11
- package/dist/api/types/widget.d.ts +96 -16
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/index.js +2201 -1020
- 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 +158 -18
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +10 -3
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +7 -4
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -1,6 +1,39 @@
|
|
|
1
|
+
import { GeoPoint, TuplePoint2D } from "./shared";
|
|
2
|
+
import { MapType } from "./map";
|
|
3
|
+
export type PlannerListItem = {
|
|
4
|
+
id: string;
|
|
5
|
+
projectId: string;
|
|
6
|
+
projectName: string;
|
|
7
|
+
projectLocation: string;
|
|
8
|
+
createdDate: string;
|
|
9
|
+
updatedDate: string;
|
|
10
|
+
owner?: string;
|
|
11
|
+
lastUpdatedBy?: string;
|
|
12
|
+
camerasCount?: number;
|
|
13
|
+
hasPlan?: boolean;
|
|
14
|
+
thumbnailUrl?: string;
|
|
15
|
+
projectMapType?: MapType;
|
|
16
|
+
sessionId?: string;
|
|
17
|
+
};
|
|
18
|
+
export type PolygonPath = TuplePoint2D[];
|
|
19
|
+
export type PolygonCoordinates = PolygonPath[];
|
|
20
|
+
export interface GeoJSONPolygon {
|
|
21
|
+
type: "Polygon";
|
|
22
|
+
coordinates: PolygonCoordinates;
|
|
23
|
+
}
|
|
24
|
+
export declare enum PlannerUrlParams {
|
|
25
|
+
SitePlanId = "site_plan_id",
|
|
26
|
+
IsNewSitePlan = "is_new_site_plan",
|
|
27
|
+
IsBoundsMode = "is_bounds_mode",
|
|
28
|
+
ProjectPosition = "project_position",
|
|
29
|
+
DealId = "deal_id"
|
|
30
|
+
}
|
|
1
31
|
export declare enum EDistortImageModes {
|
|
2
32
|
FreeRotate = "freeRotate",
|
|
3
|
-
Lock = "lock"
|
|
33
|
+
Lock = "lock",
|
|
34
|
+
Rotate = "rotate",
|
|
35
|
+
Scale = "scale",
|
|
36
|
+
Pan = "drag"
|
|
4
37
|
}
|
|
5
38
|
export declare enum EMapTypes {
|
|
6
39
|
Blank = "Blank",
|
|
@@ -30,3 +63,70 @@ export declare enum ERoles {
|
|
|
30
63
|
Admin = "admin",
|
|
31
64
|
User = "user"
|
|
32
65
|
}
|
|
66
|
+
export type PlannerOverlay = {
|
|
67
|
+
imageUrl?: string;
|
|
68
|
+
corners?: {
|
|
69
|
+
topLeft: GeoPoint;
|
|
70
|
+
topRight: GeoPoint;
|
|
71
|
+
bottomLeft: GeoPoint;
|
|
72
|
+
bottomRight: GeoPoint;
|
|
73
|
+
} | null;
|
|
74
|
+
};
|
|
75
|
+
export type PlannerCameraMarker = {
|
|
76
|
+
name?: string;
|
|
77
|
+
location?: GeoPoint;
|
|
78
|
+
heading?: number;
|
|
79
|
+
fovAngle?: number;
|
|
80
|
+
fovRadius?: number;
|
|
81
|
+
isVisible?: boolean;
|
|
82
|
+
color?: string;
|
|
83
|
+
};
|
|
84
|
+
export type SitePlanBounds = {
|
|
85
|
+
northEast: GeoPoint;
|
|
86
|
+
southWest: GeoPoint;
|
|
87
|
+
};
|
|
88
|
+
export type SitePlan = {
|
|
89
|
+
id?: string;
|
|
90
|
+
projectId?: string;
|
|
91
|
+
owner?: string;
|
|
92
|
+
lastUpdatedBy?: string;
|
|
93
|
+
projectName?: string;
|
|
94
|
+
projectLocation?: string;
|
|
95
|
+
projectMapType?: EMapTypes;
|
|
96
|
+
projectBounds?: SitePlanBounds;
|
|
97
|
+
overlay?: PlannerOverlay;
|
|
98
|
+
markers?: PlannerCameraMarker[];
|
|
99
|
+
thumbnailUrl?: string;
|
|
100
|
+
createdDate?: string;
|
|
101
|
+
updatedDate?: string;
|
|
102
|
+
};
|
|
103
|
+
export interface IDrawControl {
|
|
104
|
+
_toolbars: {
|
|
105
|
+
draw: {
|
|
106
|
+
_activeMode: {
|
|
107
|
+
handler: {
|
|
108
|
+
disable(): void;
|
|
109
|
+
completeShape(): void;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
_modes: {
|
|
113
|
+
polygon: {
|
|
114
|
+
handler: {
|
|
115
|
+
enable(): void;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
edit: {
|
|
121
|
+
_modes: {
|
|
122
|
+
edit: {
|
|
123
|
+
handler: {
|
|
124
|
+
enable(): void;
|
|
125
|
+
disable(): void;
|
|
126
|
+
save(): void;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
}
|
|
@@ -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;
|
|
@@ -176,11 +183,14 @@ export type ProcoreObservationCustomField = {
|
|
|
176
183
|
optionsUrl: string | null;
|
|
177
184
|
defaultValue: string | null;
|
|
178
185
|
};
|
|
186
|
+
export type ProcoreNextObservationAvailableNumber = {
|
|
187
|
+
nextAvailableNumber: number;
|
|
188
|
+
};
|
|
179
189
|
export declare enum ProcoreObservationCustomFieldDataType {
|
|
180
190
|
RichText = "rich_text",
|
|
181
191
|
Date = "date",
|
|
182
192
|
DateTime = "datetime",
|
|
183
|
-
|
|
193
|
+
LovEntry = "lov_entry",
|
|
184
194
|
LovEntries = "lov_entries",
|
|
185
195
|
Boolean = "boolean",
|
|
186
196
|
Vendor = "vendor",
|
|
@@ -194,17 +204,17 @@ export declare enum ProcoreObservationDefaultFieldNames {
|
|
|
194
204
|
Number = "number",
|
|
195
205
|
Name = "name",
|
|
196
206
|
Status = "status",
|
|
197
|
-
Trade = "
|
|
198
|
-
Assignee = "
|
|
199
|
-
DueDate = "
|
|
200
|
-
SpecificationSection = "
|
|
207
|
+
Trade = "tradeId",
|
|
208
|
+
Assignee = "assigneeId",
|
|
209
|
+
DueDate = "dueDate",
|
|
210
|
+
SpecificationSection = "specificationSectionId",
|
|
201
211
|
Priority = "priority",
|
|
202
|
-
Location = "
|
|
203
|
-
DistributionMembers = "
|
|
212
|
+
Location = "locationId",
|
|
213
|
+
DistributionMembers = "distributionMemberIds",
|
|
204
214
|
Personal = "personal",
|
|
205
|
-
Hazard = "
|
|
206
|
-
ContributingBehavior = "
|
|
207
|
-
ContributingCondition = "
|
|
215
|
+
Hazard = "hazardId",
|
|
216
|
+
ContributingBehavior = "contributingBehaviorId",
|
|
217
|
+
ContributingCondition = "contributingConditionId",
|
|
208
218
|
Description = "description"
|
|
209
219
|
}
|
|
210
220
|
export declare enum ProcoreTools {
|
|
@@ -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, Operator, 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",
|
|
@@ -30,15 +62,15 @@ export declare enum ProjectArchiveTier {
|
|
|
30
62
|
Full = "Full",
|
|
31
63
|
Partial = "Partial",
|
|
32
64
|
Minimal = "Minimal",
|
|
33
|
-
ScheduledForDeletion = "Scheduled for Deletion"
|
|
65
|
+
ScheduledForDeletion = "Scheduled for Deletion",
|
|
66
|
+
No = "No"
|
|
34
67
|
}
|
|
35
|
-
export type ProjectResponsePayload = {
|
|
36
|
-
data?: Project[];
|
|
37
|
-
};
|
|
38
68
|
export type UpdateCameraRestrictionPayload = {
|
|
39
69
|
isAccessRestricted?: boolean;
|
|
40
70
|
};
|
|
41
71
|
export type Logo = {
|
|
72
|
+
id: number;
|
|
73
|
+
projectId: number;
|
|
42
74
|
name: string;
|
|
43
75
|
url: string;
|
|
44
76
|
};
|
|
@@ -52,7 +84,6 @@ export declare enum ProjectFeatureFlag {
|
|
|
52
84
|
ThreeSixtyView = "360_view",
|
|
53
85
|
NdaMc = "NDA/MC",
|
|
54
86
|
GateReport = "gate_report",
|
|
55
|
-
GateReportAutoVerify = "auto_publish",
|
|
56
87
|
GateReportMotionDetection = "motion_detection",
|
|
57
88
|
FullEmpty = "full_empty",
|
|
58
89
|
MediaHubSharing = "archives_sharing",
|
|
@@ -60,7 +91,8 @@ export declare enum ProjectFeatureFlag {
|
|
|
60
91
|
NoLicensePlate = "no_license_plate",
|
|
61
92
|
DefaultToProjectApp = "default_to_project_app",
|
|
62
93
|
SmartSearch = "smart_search",
|
|
63
|
-
PpeMonitoring = "ppe_monitoring"
|
|
94
|
+
PpeMonitoring = "ppe_monitoring",
|
|
95
|
+
NoGdpr = "no_gdpr"
|
|
64
96
|
}
|
|
65
97
|
export type ProjectBatteryReading = {
|
|
66
98
|
exid: number;
|
|
@@ -78,6 +110,7 @@ export type ProjectsQueryParams = PaginationParams & {
|
|
|
78
110
|
status: ProjectStatus;
|
|
79
111
|
cameras: string;
|
|
80
112
|
featureFlags: Array<ProjectFeatureFlag>;
|
|
113
|
+
featureFlagsOperator?: Operator;
|
|
81
114
|
archived: string;
|
|
82
115
|
};
|
|
83
116
|
export type ProjectCreateRequestPayload = {
|
|
@@ -116,7 +149,7 @@ export type ProjectUserProperty = {
|
|
|
116
149
|
eventsCount: number;
|
|
117
150
|
fullname: string;
|
|
118
151
|
id: number;
|
|
119
|
-
lastSeenAt:
|
|
152
|
+
lastSeenAt: string;
|
|
120
153
|
persona: string;
|
|
121
154
|
};
|
|
122
155
|
export type ProjectUsers = {
|
|
@@ -126,3 +159,89 @@ export type ProjectUsers = {
|
|
|
126
159
|
}[];
|
|
127
160
|
users: Record<string, ProjectUserProperty[]>;
|
|
128
161
|
};
|
|
162
|
+
export type ProjectRole = {
|
|
163
|
+
id: number;
|
|
164
|
+
name: string;
|
|
165
|
+
};
|
|
166
|
+
export type ProjectMember = {
|
|
167
|
+
id: string;
|
|
168
|
+
key?: string;
|
|
169
|
+
email: string;
|
|
170
|
+
fullname: string;
|
|
171
|
+
lastSeenAt?: string;
|
|
172
|
+
role: ProjectRole;
|
|
173
|
+
permissions?: string[];
|
|
174
|
+
subRoles?: Array<{
|
|
175
|
+
resourceId: string;
|
|
176
|
+
roleId: number;
|
|
177
|
+
}>;
|
|
178
|
+
company?: {
|
|
179
|
+
name: string;
|
|
180
|
+
} | null;
|
|
181
|
+
};
|
|
182
|
+
export type ProjectInvite = {
|
|
183
|
+
id?: string;
|
|
184
|
+
email: string;
|
|
185
|
+
role?: ProjectRole;
|
|
186
|
+
permissions?: string[];
|
|
187
|
+
subRoles?: Array<{
|
|
188
|
+
resourceId: string;
|
|
189
|
+
roleId: number;
|
|
190
|
+
}>;
|
|
191
|
+
invitedAt?: string;
|
|
192
|
+
};
|
|
193
|
+
export type ProjectMembersResponsePayload = {
|
|
194
|
+
users: ProjectMember[];
|
|
195
|
+
invites: ProjectInvite[];
|
|
196
|
+
errors: ProjectUserError[];
|
|
197
|
+
};
|
|
198
|
+
export type ProjectMembersRequestPayload = {
|
|
199
|
+
roleId: number;
|
|
200
|
+
emails: string[];
|
|
201
|
+
message?: string;
|
|
202
|
+
overrideRole?: Partial<{
|
|
203
|
+
permissions?: string[];
|
|
204
|
+
subRoles?: Array<{
|
|
205
|
+
resourceId: string;
|
|
206
|
+
roleId: number;
|
|
207
|
+
}>;
|
|
208
|
+
}>;
|
|
209
|
+
};
|
|
210
|
+
export type ProjectInviteMembersResponsePayload = {
|
|
211
|
+
users: ProjectMember[];
|
|
212
|
+
invites: ProjectInvite[];
|
|
213
|
+
};
|
|
214
|
+
export type PlaceholderThumbnailData = {
|
|
215
|
+
placeholder: string;
|
|
216
|
+
};
|
|
217
|
+
export type ProjectUserError = {
|
|
218
|
+
email: string;
|
|
219
|
+
error: Record<string, string[]>;
|
|
220
|
+
};
|
|
221
|
+
export type ProjectUsersResponsePayload = {
|
|
222
|
+
users: ProjectMember[];
|
|
223
|
+
invites: ProjectInvite[];
|
|
224
|
+
errors: ProjectUserError[];
|
|
225
|
+
};
|
|
226
|
+
export type ProjectStorageQueryParams = PaginationParams & {
|
|
227
|
+
cameraName: string;
|
|
228
|
+
cameraExid: CameraExid;
|
|
229
|
+
status: ProjectStorageStatus;
|
|
230
|
+
};
|
|
231
|
+
export type ProjectStorage = {
|
|
232
|
+
id: number;
|
|
233
|
+
cameraExid: CameraExid;
|
|
234
|
+
cameraName: string;
|
|
235
|
+
projectExid: string;
|
|
236
|
+
projectName: string;
|
|
237
|
+
status: ProjectStorageStatus;
|
|
238
|
+
requestor: string;
|
|
239
|
+
created_at: DateType;
|
|
240
|
+
};
|
|
241
|
+
export declare enum ProjectStorageStatus {
|
|
242
|
+
New = "new",
|
|
243
|
+
Pending = "pending",
|
|
244
|
+
Processing = "processing",
|
|
245
|
+
Completed = "completed",
|
|
246
|
+
Failed = "failed"
|
|
247
|
+
}
|
|
@@ -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,12 +10,14 @@ 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;
|
|
16
17
|
year: string;
|
|
17
18
|
month: string;
|
|
18
19
|
payload?: ApiCredentials;
|
|
20
|
+
cancelToken?: CancelToken;
|
|
19
21
|
};
|
|
20
22
|
export type AvailableDaysResponsePayload = {
|
|
21
23
|
days: Array<number>;
|
|
@@ -55,8 +57,7 @@ export type SnapshotRangeResponsePayload = {
|
|
|
55
57
|
snapshots: Array<SnapshotInstance>;
|
|
56
58
|
};
|
|
57
59
|
export declare enum BrainTool {
|
|
58
|
-
Detections = "detections"
|
|
59
|
-
Segmentation = "sam"
|
|
60
|
+
Detections = "detections"
|
|
60
61
|
}
|
|
61
62
|
export declare enum CloudRecordingFrequency {
|
|
62
63
|
EverySecond = 60,
|
|
@@ -76,6 +77,7 @@ export declare enum CloudRecordingDuration {
|
|
|
76
77
|
Month = 30,
|
|
77
78
|
ThreeMonths = 90
|
|
78
79
|
}
|
|
80
|
+
export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
|
|
79
81
|
export declare enum CloudRecordingStatus {
|
|
80
82
|
On = "on",
|
|
81
83
|
Off = "off",
|
|
@@ -103,13 +105,6 @@ export declare enum SnapshotExtractionInterval {
|
|
|
103
105
|
}
|
|
104
106
|
export declare enum VpnServer {
|
|
105
107
|
None = "None",
|
|
106
|
-
OpenVPN1 = "OpenVPN1",
|
|
107
|
-
OpenVPN2 = "OpenVPN2",
|
|
108
|
-
OpenVPN3 = "OpenVPN3",
|
|
109
|
-
OpenVPN4 = "OpenVPN4",
|
|
110
|
-
OpenVPN5 = "OpenVPN5",
|
|
111
|
-
PPTP1 = "PPTP1",
|
|
112
|
-
PPTP2 = "PPTP2",
|
|
113
108
|
WireGuard1 = "WireGuard1",
|
|
114
109
|
WireGuard2 = "WireGuard2",
|
|
115
110
|
WireGuard3 = "WireGuard3",
|
|
@@ -119,5 +114,6 @@ export declare enum VpnServer {
|
|
|
119
114
|
WireGuard7 = "WireGuard7",
|
|
120
115
|
WireGuard8 = "WireGuard8",
|
|
121
116
|
WireGuard9 = "WireGuard9",
|
|
122
|
-
WireGuard10 = "WireGuard10"
|
|
117
|
+
WireGuard10 = "WireGuard10",
|
|
118
|
+
WgHub = "WgHub"
|
|
123
119
|
}
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type RingDevice = {
|
|
2
|
+
deviceId: string;
|
|
3
|
+
name: string;
|
|
4
|
+
deviceType: string;
|
|
5
|
+
firmwareVersion: string | null;
|
|
6
|
+
batteryLife: number | null;
|
|
7
|
+
location: string | null;
|
|
8
|
+
imported: boolean;
|
|
9
|
+
cameraExid?: string;
|
|
10
|
+
projectExid?: string;
|
|
11
|
+
projectName?: string;
|
|
12
|
+
};
|
|
13
|
+
export type RingDevicesResponsePayload = {
|
|
14
|
+
devices: RingDevice[];
|
|
15
|
+
};
|
|
16
|
+
export type RingImportDevicesPayload = {
|
|
17
|
+
deviceIds: string[];
|
|
18
|
+
projectExid: string;
|
|
19
|
+
deviceNames?: Record<string, string>;
|
|
20
|
+
};
|
|
21
|
+
export type RingImportResponsePayload = {
|
|
22
|
+
cameras: Array<{
|
|
23
|
+
exid: string;
|
|
24
|
+
name: string;
|
|
25
|
+
}>;
|
|
26
|
+
project: {
|
|
27
|
+
exid: string;
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type RingMoveDevicePayload = {
|
|
32
|
+
projectExid: string;
|
|
33
|
+
};
|
|
34
|
+
export type RingMoveDeviceResponsePayload = {
|
|
35
|
+
status: string;
|
|
36
|
+
cameraExid: string;
|
|
37
|
+
projectExid: string;
|
|
38
|
+
};
|
|
39
|
+
export type RingLiveViewPayload = {
|
|
40
|
+
sdpOffer: string;
|
|
41
|
+
};
|
|
42
|
+
export type RingLiveViewResponse = {
|
|
43
|
+
sdpAnswer: string;
|
|
44
|
+
sessionUrl: string;
|
|
45
|
+
iceServers: Array<{
|
|
46
|
+
urls: string;
|
|
47
|
+
username?: string;
|
|
48
|
+
credential?: string;
|
|
49
|
+
}>;
|
|
50
|
+
};
|
|
51
|
+
export type RingStopLiveViewResponse = {
|
|
52
|
+
status: string;
|
|
53
|
+
};
|
package/dist/api/types/roi.d.ts
CHANGED
|
@@ -9,8 +9,7 @@ export declare enum RoiShapeType {
|
|
|
9
9
|
Polygon = "polygon",
|
|
10
10
|
Line = "line",
|
|
11
11
|
Direction = "direction",
|
|
12
|
-
Rectangle = "rectangle"
|
|
13
|
-
ROIBox = "ROIBox"
|
|
12
|
+
Rectangle = "rectangle"
|
|
14
13
|
}
|
|
15
14
|
export type RoiShape = {
|
|
16
15
|
id: number | null;
|
|
@@ -19,6 +18,7 @@ export type RoiShape = {
|
|
|
19
18
|
x2: number;
|
|
20
19
|
y1: number;
|
|
21
20
|
y2: number;
|
|
21
|
+
points?: [number, number][];
|
|
22
22
|
};
|
|
23
23
|
export declare enum RoiDirection {
|
|
24
24
|
Arrived = "arrived",
|
|
@@ -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
|
+
};
|