@evercam/api 1.0.0-ae46ef99c → 1.0.0-api-fixes-bdf31a1d5
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 +170 -99
- package/dist/api/api/aiApi.d.ts +99 -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 +158 -116
- 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 +106 -7
- package/dist/api/types/admin.d.ts +67 -0
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +172 -41
- package/dist/api/types/anpr.d.ts +52 -13
- package/dist/api/types/auditLogs.d.ts +63 -38
- 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 +77 -43
- package/dist/api/types/camera.d.ts +165 -135
- package/dist/api/types/comments.d.ts +43 -21
- package/dist/api/types/company.d.ts +91 -11
- package/dist/api/types/compare.d.ts +40 -21
- 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 +76 -17
- 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 +71 -12
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +21 -2
- package/dist/api/types/notification.d.ts +50 -14
- package/dist/api/types/nvr.d.ts +28 -0
- package/dist/api/types/oauth.d.ts +63 -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 +23 -16
- package/dist/api/types/progressPhoto.d.ts +30 -41
- package/dist/api/types/project.d.ts +182 -20
- package/dist/api/types/recording.d.ts +11 -14
- 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 +4 -3
- package/dist/api/types/routeParams.d.ts +2 -1
- package/dist/api/types/router.d.ts +43 -3
- package/dist/api/types/shared.d.ts +81 -53
- package/dist/api/types/shares.d.ts +6 -144
- package/dist/api/types/sim.d.ts +6 -9
- 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 +108 -7
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageProvider.d.ts +31 -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 +46 -17
- package/dist/api/types/user.d.ts +174 -88
- package/dist/api/types/videoWall.d.ts +47 -14
- package/dist/api/types/weather.d.ts +151 -11
- package/dist/api/types/widget.d.ts +143 -54
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/index.js +2206 -1029
- 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 +163 -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
|
@@ -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;
|
|
@@ -183,7 +190,7 @@ export declare enum ProcoreObservationCustomFieldDataType {
|
|
|
183
190
|
RichText = "rich_text",
|
|
184
191
|
Date = "date",
|
|
185
192
|
DateTime = "datetime",
|
|
186
|
-
|
|
193
|
+
LovEntry = "lov_entry",
|
|
187
194
|
LovEntries = "lov_entries",
|
|
188
195
|
Boolean = "boolean",
|
|
189
196
|
Vendor = "vendor",
|
|
@@ -197,17 +204,17 @@ export declare enum ProcoreObservationDefaultFieldNames {
|
|
|
197
204
|
Number = "number",
|
|
198
205
|
Name = "name",
|
|
199
206
|
Status = "status",
|
|
200
|
-
Trade = "
|
|
201
|
-
Assignee = "
|
|
202
|
-
DueDate = "
|
|
203
|
-
SpecificationSection = "
|
|
207
|
+
Trade = "tradeId",
|
|
208
|
+
Assignee = "assigneeId",
|
|
209
|
+
DueDate = "dueDate",
|
|
210
|
+
SpecificationSection = "specificationSectionId",
|
|
204
211
|
Priority = "priority",
|
|
205
|
-
Location = "
|
|
206
|
-
DistributionMembers = "
|
|
212
|
+
Location = "locationId",
|
|
213
|
+
DistributionMembers = "distributionMemberIds",
|
|
207
214
|
Personal = "personal",
|
|
208
|
-
Hazard = "
|
|
209
|
-
ContributingBehavior = "
|
|
210
|
-
ContributingCondition = "
|
|
215
|
+
Hazard = "hazardId",
|
|
216
|
+
ContributingBehavior = "contributingBehaviorId",
|
|
217
|
+
ContributingCondition = "contributingConditionId",
|
|
211
218
|
Description = "description"
|
|
212
219
|
}
|
|
213
220
|
export declare enum ProcoreTools {
|
|
@@ -1,48 +1,31 @@
|
|
|
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, DateType, PaginationParams } from "@evercam/api/types";
|
|
22
2
|
export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
23
3
|
cameraExids?: string;
|
|
24
4
|
notifyDays?: string;
|
|
25
5
|
notifyTime?: string;
|
|
6
|
+
timezone?: string;
|
|
7
|
+
name?: string;
|
|
26
8
|
provider?: string;
|
|
27
9
|
type?: string;
|
|
28
10
|
config?: {
|
|
29
11
|
recipients?: string;
|
|
30
|
-
projectId?: number;
|
|
31
12
|
companyId?: number;
|
|
32
|
-
|
|
13
|
+
projectId?: number;
|
|
14
|
+
categoryId?: number;
|
|
33
15
|
};
|
|
34
|
-
subject?: string;
|
|
35
16
|
isPaused?: boolean;
|
|
36
|
-
timezone?: string;
|
|
37
17
|
};
|
|
38
18
|
export type ProgressPhotosUnSubscribeParams = {
|
|
39
19
|
email: string;
|
|
40
20
|
token?: string;
|
|
41
21
|
};
|
|
42
22
|
export type ProgressPhotosResponsePayload = {
|
|
43
|
-
progressPhotos:
|
|
23
|
+
progressPhotos: Automation[];
|
|
24
|
+
};
|
|
25
|
+
export type ProgressPhotoItemResponsePayload = {
|
|
26
|
+
progressPhotos: Automation;
|
|
44
27
|
};
|
|
45
|
-
export declare enum
|
|
28
|
+
export declare enum AutomationDialogType {
|
|
46
29
|
Create = "create",
|
|
47
30
|
Edit = "edit",
|
|
48
31
|
Pause = "pause"
|
|
@@ -51,30 +34,35 @@ export type CameraOption = {
|
|
|
51
34
|
exid: string;
|
|
52
35
|
name: string;
|
|
53
36
|
};
|
|
54
|
-
export
|
|
37
|
+
export type ProgressPhotoItemConfig = {
|
|
38
|
+
recipients?: string;
|
|
39
|
+
companyId?: number;
|
|
40
|
+
projectId?: number;
|
|
41
|
+
};
|
|
42
|
+
export type ProgressPhotoItem = {
|
|
55
43
|
id: number;
|
|
56
44
|
cameras: CameraOption[] | string[] | string;
|
|
57
45
|
insertedAt: string;
|
|
46
|
+
name: string;
|
|
58
47
|
provider: string;
|
|
59
|
-
config:
|
|
60
|
-
recipients: string | string[];
|
|
61
|
-
sendSnapshotAs: string;
|
|
62
|
-
};
|
|
48
|
+
config: ProgressPhotoItemConfig;
|
|
63
49
|
isPaused: boolean;
|
|
64
50
|
notifyDays: string | string[];
|
|
65
51
|
notifyTime: string;
|
|
66
|
-
|
|
67
|
-
|
|
52
|
+
apiId: string;
|
|
53
|
+
apiKey: string;
|
|
68
54
|
timezone: string;
|
|
69
55
|
exid: string;
|
|
70
56
|
fullname: string;
|
|
71
|
-
}
|
|
57
|
+
};
|
|
72
58
|
export type ProgressPhotosQueryParams = PaginationParams & {
|
|
73
|
-
fullname
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
59
|
+
fullname?: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
recipients?: string;
|
|
62
|
+
notifyTime?: string;
|
|
63
|
+
timezone?: string;
|
|
64
|
+
cameras?: string;
|
|
65
|
+
sort?: string;
|
|
78
66
|
};
|
|
79
67
|
export type progressPhotosHistoryQueryParams = {
|
|
80
68
|
insertedAt: DateType[];
|
|
@@ -88,5 +76,6 @@ export type ProgressPhotosHistory = {
|
|
|
88
76
|
cameraIds: string;
|
|
89
77
|
failedCameraIds: string;
|
|
90
78
|
subject: string;
|
|
91
|
-
recipients:
|
|
79
|
+
recipients: string;
|
|
80
|
+
insertedAt: string;
|
|
92
81
|
};
|
|
@@ -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
|
-
isAccessRestricted
|
|
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,10 +91,11 @@ 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
|
-
exid:
|
|
98
|
+
exid: string;
|
|
67
99
|
voltage: number;
|
|
68
100
|
lastSeen: DateType;
|
|
69
101
|
};
|
|
@@ -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,132 @@ 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: number;
|
|
168
|
+
key?: string;
|
|
169
|
+
email: string;
|
|
170
|
+
fullname: string;
|
|
171
|
+
lastSeenAt?: string | null;
|
|
172
|
+
role: ProjectRole;
|
|
173
|
+
permissions?: string[];
|
|
174
|
+
subRoles?: Array<{
|
|
175
|
+
resourceId: string;
|
|
176
|
+
roleId: number;
|
|
177
|
+
}>;
|
|
178
|
+
company?: {
|
|
179
|
+
name: string;
|
|
180
|
+
} | null;
|
|
181
|
+
telephone?: string | null;
|
|
182
|
+
persona?: string | null;
|
|
183
|
+
};
|
|
184
|
+
export type ProjectInvite = {
|
|
185
|
+
id?: number;
|
|
186
|
+
email: string;
|
|
187
|
+
role?: ProjectRole;
|
|
188
|
+
permissions?: string[];
|
|
189
|
+
subRoles?: Array<{
|
|
190
|
+
resourceId: string;
|
|
191
|
+
roleId: number;
|
|
192
|
+
}>;
|
|
193
|
+
invitedAt?: string;
|
|
194
|
+
};
|
|
195
|
+
export type ProjectMembersResponsePayload = {
|
|
196
|
+
users: ProjectMember[];
|
|
197
|
+
invites: ProjectInvite[];
|
|
198
|
+
errors: ProjectUserError[];
|
|
199
|
+
emailFailures?: string[];
|
|
200
|
+
};
|
|
201
|
+
export type ProjectMembersRequestPayload = {
|
|
202
|
+
roleId: number;
|
|
203
|
+
emails: string[];
|
|
204
|
+
message?: string;
|
|
205
|
+
overrideRole?: Partial<{
|
|
206
|
+
permissions?: string[];
|
|
207
|
+
subRoles?: Array<{
|
|
208
|
+
resourceId: string;
|
|
209
|
+
roleId: number;
|
|
210
|
+
}>;
|
|
211
|
+
}>;
|
|
212
|
+
};
|
|
213
|
+
export type ProjectInviteMembersResponsePayload = {
|
|
214
|
+
users: ProjectMember[];
|
|
215
|
+
invites: ProjectInvite[];
|
|
216
|
+
};
|
|
217
|
+
export type PlaceholderThumbnailData = {
|
|
218
|
+
placeholder: string;
|
|
219
|
+
};
|
|
220
|
+
export type ProjectUserError = {
|
|
221
|
+
email: string;
|
|
222
|
+
error: Record<string, string[]>;
|
|
223
|
+
};
|
|
224
|
+
export type ProjectUsersResponsePayload = {
|
|
225
|
+
users: ProjectMember[];
|
|
226
|
+
invites: ProjectInvite[];
|
|
227
|
+
errors: ProjectUserError[];
|
|
228
|
+
};
|
|
229
|
+
export type ProjectStorageQueryParams = PaginationParams & {
|
|
230
|
+
cameraName?: string;
|
|
231
|
+
cameraExid?: CameraExid;
|
|
232
|
+
projectName?: string;
|
|
233
|
+
projectExid?: string;
|
|
234
|
+
archiveTier?: string;
|
|
235
|
+
status?: ProjectStorageStatus;
|
|
236
|
+
requester?: string;
|
|
237
|
+
createdAtFrom?: string;
|
|
238
|
+
createdAtTo?: string;
|
|
239
|
+
scheduleAtFrom?: string;
|
|
240
|
+
scheduleAtTo?: string;
|
|
241
|
+
sort?: string;
|
|
242
|
+
};
|
|
243
|
+
export type ProjectStorageCamera = {
|
|
244
|
+
archiveId: number;
|
|
245
|
+
name: string;
|
|
246
|
+
exid: string;
|
|
247
|
+
errorMessage?: string;
|
|
248
|
+
status: ProjectStorageStatus;
|
|
249
|
+
};
|
|
250
|
+
export type ProjectStorage = {
|
|
251
|
+
id: number;
|
|
252
|
+
exid: string;
|
|
253
|
+
name: string;
|
|
254
|
+
requester: string;
|
|
255
|
+
archiveTier: string;
|
|
256
|
+
scheduleAt: string;
|
|
257
|
+
endDate: string;
|
|
258
|
+
insertedAt: string;
|
|
259
|
+
cameras: ProjectStorageCamera[];
|
|
260
|
+
};
|
|
261
|
+
export declare enum ProjectStorageStatus {
|
|
262
|
+
New = "new",
|
|
263
|
+
Pending = "pending",
|
|
264
|
+
Processing = "processing",
|
|
265
|
+
Completed = "completed",
|
|
266
|
+
Failed = "failed"
|
|
267
|
+
}
|
|
268
|
+
export type ProjectTransferOwnershipResponse = {
|
|
269
|
+
project: {
|
|
270
|
+
id: number;
|
|
271
|
+
exid: string;
|
|
272
|
+
name: string;
|
|
273
|
+
status: string;
|
|
274
|
+
userId: number;
|
|
275
|
+
zohoId: string | null;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
export type ProjectTeamMembersResponse = {
|
|
279
|
+
exid?: string;
|
|
280
|
+
name?: string;
|
|
281
|
+
cameras?: Array<{
|
|
282
|
+
exid?: string;
|
|
283
|
+
name?: string;
|
|
284
|
+
shares?: Array<{
|
|
285
|
+
email?: string;
|
|
286
|
+
fullname?: string;
|
|
287
|
+
rights?: string;
|
|
288
|
+
}>;
|
|
289
|
+
}>;
|
|
290
|
+
};
|
|
@@ -1,21 +1,24 @@
|
|
|
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;
|
|
5
|
-
data: string;
|
|
5
|
+
data: string | null;
|
|
6
6
|
status?: string;
|
|
7
7
|
};
|
|
8
|
-
export type
|
|
8
|
+
export type SnapshotRequestPayload = {
|
|
9
9
|
apiKey?: string;
|
|
10
10
|
apiId?: string;
|
|
11
11
|
token?: string;
|
|
12
12
|
cancelToken?: object;
|
|
13
|
+
includeImage?: boolean;
|
|
14
|
+
view?: boolean;
|
|
13
15
|
};
|
|
14
16
|
export type AvailableDaysRequestPayload = {
|
|
15
17
|
cameraId: string;
|
|
16
18
|
year: string;
|
|
17
19
|
month: string;
|
|
18
20
|
payload?: ApiCredentials;
|
|
21
|
+
cancelToken?: CancelToken;
|
|
19
22
|
};
|
|
20
23
|
export type AvailableDaysResponsePayload = {
|
|
21
24
|
days: Array<number>;
|
|
@@ -34,7 +37,7 @@ export type AvailableHoursResponsePayload = {
|
|
|
34
37
|
export type NearestSnapshotResponsePayload = {
|
|
35
38
|
snapshots: Array<{
|
|
36
39
|
createdAt: string;
|
|
37
|
-
data: string;
|
|
40
|
+
data: string | null;
|
|
38
41
|
notes?: string;
|
|
39
42
|
}>;
|
|
40
43
|
};
|
|
@@ -55,8 +58,7 @@ export type SnapshotRangeResponsePayload = {
|
|
|
55
58
|
snapshots: Array<SnapshotInstance>;
|
|
56
59
|
};
|
|
57
60
|
export declare enum BrainTool {
|
|
58
|
-
Detections = "detections"
|
|
59
|
-
Segmentation = "sam"
|
|
61
|
+
Detections = "detections"
|
|
60
62
|
}
|
|
61
63
|
export declare enum CloudRecordingFrequency {
|
|
62
64
|
EverySecond = 60,
|
|
@@ -76,6 +78,7 @@ export declare enum CloudRecordingDuration {
|
|
|
76
78
|
Month = 30,
|
|
77
79
|
ThreeMonths = 90
|
|
78
80
|
}
|
|
81
|
+
export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
|
|
79
82
|
export declare enum CloudRecordingStatus {
|
|
80
83
|
On = "on",
|
|
81
84
|
Off = "off",
|
|
@@ -103,13 +106,6 @@ export declare enum SnapshotExtractionInterval {
|
|
|
103
106
|
}
|
|
104
107
|
export declare enum VpnServer {
|
|
105
108
|
None = "None",
|
|
106
|
-
OpenVPN1 = "OpenVPN1",
|
|
107
|
-
OpenVPN2 = "OpenVPN2",
|
|
108
|
-
OpenVPN3 = "OpenVPN3",
|
|
109
|
-
OpenVPN4 = "OpenVPN4",
|
|
110
|
-
OpenVPN5 = "OpenVPN5",
|
|
111
|
-
PPTP1 = "PPTP1",
|
|
112
|
-
PPTP2 = "PPTP2",
|
|
113
109
|
WireGuard1 = "WireGuard1",
|
|
114
110
|
WireGuard2 = "WireGuard2",
|
|
115
111
|
WireGuard3 = "WireGuard3",
|
|
@@ -119,5 +115,6 @@ export declare enum VpnServer {
|
|
|
119
115
|
WireGuard7 = "WireGuard7",
|
|
120
116
|
WireGuard8 = "WireGuard8",
|
|
121
117
|
WireGuard9 = "WireGuard9",
|
|
122
|
-
WireGuard10 = "WireGuard10"
|
|
118
|
+
WireGuard10 = "WireGuard10",
|
|
119
|
+
WgHub = "WgHub"
|
|
123
120
|
}
|
|
@@ -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
|
@@ -3,14 +3,14 @@ export declare enum RoiType {
|
|
|
3
3
|
AnprContext = "anpr_context",
|
|
4
4
|
ExclusionZone = "exclusion_zone",
|
|
5
5
|
WorkflowArea = "workflow_area",
|
|
6
|
-
SiteAnalytics = "site_analytics"
|
|
6
|
+
SiteAnalytics = "site_analytics",
|
|
7
|
+
Ppe = "ppe_roi"
|
|
7
8
|
}
|
|
8
9
|
export declare enum RoiShapeType {
|
|
9
10
|
Polygon = "polygon",
|
|
10
11
|
Line = "line",
|
|
11
12
|
Direction = "direction",
|
|
12
|
-
Rectangle = "rectangle"
|
|
13
|
-
ROIBox = "ROIBox"
|
|
13
|
+
Rectangle = "rectangle"
|
|
14
14
|
}
|
|
15
15
|
export type RoiShape = {
|
|
16
16
|
id: number | null;
|
|
@@ -19,6 +19,7 @@ export type RoiShape = {
|
|
|
19
19
|
x2: number;
|
|
20
20
|
y1: number;
|
|
21
21
|
y2: number;
|
|
22
|
+
points?: [number, number][];
|
|
22
23
|
};
|
|
23
24
|
export declare enum RoiDirection {
|
|
24
25
|
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>;
|