@evercam/api 1.0.0-5ccefe067 → 1.0.0-5d2895b13
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 +203 -10
- package/dist/api/api/adminApi.d.ts +145 -98
- package/dist/api/api/aiApi.d.ts +190 -82
- package/dist/api/api/authzApi.d.ts +34 -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 +154 -103
- package/dist/api/api/evercamLabsApi.d.ts +8 -17
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +127 -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/api/workflowsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +293 -23
- 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 +244 -0
- package/dist/api/types/analytics.d.ts +182 -59
- package/dist/api/types/anpr.d.ts +53 -13
- package/dist/api/types/auditLogs.d.ts +19 -2
- package/dist/api/types/authz.d.ts +132 -0
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +114 -1
- package/dist/api/types/axios.d.ts +20 -14
- package/dist/api/types/bim.d.ts +38 -9
- package/dist/api/types/camera.d.ts +135 -113
- package/dist/api/types/comments.d.ts +32 -11
- 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 +5 -5
- package/dist/api/types/coolify.d.ts +20 -2
- package/dist/api/types/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +23 -32
- package/dist/api/types/drone.d.ts +95 -6
- package/dist/api/types/errors.d.ts +14 -1
- package/dist/api/types/gateReport.d.ts +49 -168
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +18 -3
- package/dist/api/types/ingest.d.ts +191 -4
- package/dist/api/types/kit.d.ts +95 -56
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +9 -3
- package/dist/api/types/notification.d.ts +83 -3
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observationEvents.d.ts +141 -0
- package/dist/api/types/observations.d.ts +84 -0
- package/dist/api/types/planner.d.ts +102 -9
- package/dist/api/types/posthog.d.ts +35 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +6 -31
- package/dist/api/types/project.d.ts +150 -18
- package/dist/api/types/recording.d.ts +10 -15
- 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 +3 -11
- package/dist/api/types/routeParams.d.ts +3 -1
- package/dist/api/types/router.d.ts +20 -1
- package/dist/api/types/shared.d.ts +28 -29
- package/dist/api/types/shares.d.ts +6 -157
- package/dist/api/types/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +189 -46
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +78 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +55 -1
- package/dist/api/types/socket.d.ts +4 -0
- 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 +27 -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 +7 -11
- package/dist/api/types/user.d.ts +121 -35
- 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/workflows.d.ts +108 -0
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +2532 -1039
- 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 +355 -35
- 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 +3 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +6 -4
- package/dist/api/types/copilot.d.ts +0 -157
- package/dist/api/types/storageServers.d.ts +0 -4
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -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,22 @@ 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
|
};
|
|
71
|
+
export type CameraPosition = {
|
|
72
|
+
cameraExid: CameraExid;
|
|
73
|
+
position: number;
|
|
74
|
+
};
|
|
75
|
+
export type ReorderCamerasPayload = {
|
|
76
|
+
positions: CameraPosition[];
|
|
77
|
+
};
|
|
41
78
|
export type Logo = {
|
|
79
|
+
id: number;
|
|
80
|
+
projectId: number;
|
|
42
81
|
name: string;
|
|
43
82
|
url: string;
|
|
44
83
|
};
|
|
@@ -52,7 +91,6 @@ export declare enum ProjectFeatureFlag {
|
|
|
52
91
|
ThreeSixtyView = "360_view",
|
|
53
92
|
NdaMc = "NDA/MC",
|
|
54
93
|
GateReport = "gate_report",
|
|
55
|
-
GateReportAutoVerify = "auto_publish",
|
|
56
94
|
GateReportMotionDetection = "motion_detection",
|
|
57
95
|
FullEmpty = "full_empty",
|
|
58
96
|
MediaHubSharing = "archives_sharing",
|
|
@@ -60,7 +98,9 @@ export declare enum ProjectFeatureFlag {
|
|
|
60
98
|
NoLicensePlate = "no_license_plate",
|
|
61
99
|
DefaultToProjectApp = "default_to_project_app",
|
|
62
100
|
SmartSearch = "smart_search",
|
|
63
|
-
PpeMonitoring = "ppe_monitoring"
|
|
101
|
+
PpeMonitoring = "ppe_monitoring",
|
|
102
|
+
NoGdpr = "no_gdpr",
|
|
103
|
+
Chat = "chat"
|
|
64
104
|
}
|
|
65
105
|
export type ProjectBatteryReading = {
|
|
66
106
|
exid: number;
|
|
@@ -78,6 +118,7 @@ export type ProjectsQueryParams = PaginationParams & {
|
|
|
78
118
|
status: ProjectStatus;
|
|
79
119
|
cameras: string;
|
|
80
120
|
featureFlags: Array<ProjectFeatureFlag>;
|
|
121
|
+
featureFlagsOperator?: Operator;
|
|
81
122
|
archived: string;
|
|
82
123
|
};
|
|
83
124
|
export type ProjectCreateRequestPayload = {
|
|
@@ -116,7 +157,7 @@ export type ProjectUserProperty = {
|
|
|
116
157
|
eventsCount: number;
|
|
117
158
|
fullname: string;
|
|
118
159
|
id: number;
|
|
119
|
-
lastSeenAt:
|
|
160
|
+
lastSeenAt: string;
|
|
120
161
|
persona: string;
|
|
121
162
|
};
|
|
122
163
|
export type ProjectUsers = {
|
|
@@ -126,3 +167,94 @@ export type ProjectUsers = {
|
|
|
126
167
|
}[];
|
|
127
168
|
users: Record<string, ProjectUserProperty[]>;
|
|
128
169
|
};
|
|
170
|
+
export type ProjectRole = {
|
|
171
|
+
id: number;
|
|
172
|
+
name: string;
|
|
173
|
+
};
|
|
174
|
+
export type ProjectMember = {
|
|
175
|
+
id: string;
|
|
176
|
+
key?: string;
|
|
177
|
+
email: string;
|
|
178
|
+
fullname: string;
|
|
179
|
+
lastSeenAt?: string;
|
|
180
|
+
role: ProjectRole;
|
|
181
|
+
permissions?: string[];
|
|
182
|
+
subRoles?: Array<{
|
|
183
|
+
resourceId: string;
|
|
184
|
+
roleId: number;
|
|
185
|
+
}>;
|
|
186
|
+
company?: {
|
|
187
|
+
name: string;
|
|
188
|
+
} | null;
|
|
189
|
+
};
|
|
190
|
+
export type ProjectInvite = {
|
|
191
|
+
id?: string;
|
|
192
|
+
email: string;
|
|
193
|
+
role?: ProjectRole;
|
|
194
|
+
permissions?: string[];
|
|
195
|
+
subRoles?: Array<{
|
|
196
|
+
resourceId: string;
|
|
197
|
+
roleId: number;
|
|
198
|
+
}>;
|
|
199
|
+
invitedAt?: string;
|
|
200
|
+
};
|
|
201
|
+
export type ProjectMembersResponsePayload = {
|
|
202
|
+
users: ProjectMember[];
|
|
203
|
+
invites: ProjectInvite[];
|
|
204
|
+
errors: ProjectUserError[];
|
|
205
|
+
};
|
|
206
|
+
export type ProjectMembersRequestPayload = {
|
|
207
|
+
roleId: number;
|
|
208
|
+
emails: string[];
|
|
209
|
+
message?: string;
|
|
210
|
+
overrideRole?: Partial<{
|
|
211
|
+
permissions?: string[];
|
|
212
|
+
subRoles?: Array<{
|
|
213
|
+
resourceId: string;
|
|
214
|
+
roleId: number;
|
|
215
|
+
}>;
|
|
216
|
+
}>;
|
|
217
|
+
};
|
|
218
|
+
export type ProjectInviteMembersResponsePayload = {
|
|
219
|
+
users: ProjectMember[];
|
|
220
|
+
invites: ProjectInvite[];
|
|
221
|
+
};
|
|
222
|
+
export type PlaceholderThumbnailData = {
|
|
223
|
+
placeholder: string;
|
|
224
|
+
};
|
|
225
|
+
export type ProjectUserError = {
|
|
226
|
+
email: string;
|
|
227
|
+
error: Record<string, string[]>;
|
|
228
|
+
};
|
|
229
|
+
export type ProjectUsersResponsePayload = {
|
|
230
|
+
users: ProjectMember[];
|
|
231
|
+
invites: ProjectInvite[];
|
|
232
|
+
errors: ProjectUserError[];
|
|
233
|
+
};
|
|
234
|
+
export type MentionableUser = {
|
|
235
|
+
id: number;
|
|
236
|
+
fullname: string;
|
|
237
|
+
email: string;
|
|
238
|
+
};
|
|
239
|
+
export type ProjectStorageQueryParams = PaginationParams & {
|
|
240
|
+
cameraName: string;
|
|
241
|
+
cameraExid: CameraExid;
|
|
242
|
+
status: ProjectStorageStatus;
|
|
243
|
+
};
|
|
244
|
+
export type ProjectStorage = {
|
|
245
|
+
id: number;
|
|
246
|
+
cameraExid: CameraExid;
|
|
247
|
+
cameraName: string;
|
|
248
|
+
projectExid: string;
|
|
249
|
+
projectName: string;
|
|
250
|
+
status: ProjectStorageStatus;
|
|
251
|
+
requestor: string;
|
|
252
|
+
created_at: DateType;
|
|
253
|
+
};
|
|
254
|
+
export declare enum ProjectStorageStatus {
|
|
255
|
+
New = "new",
|
|
256
|
+
Pending = "pending",
|
|
257
|
+
Processing = "processing",
|
|
258
|
+
Completed = "completed",
|
|
259
|
+
Failed = "failed"
|
|
260
|
+
}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { ApiCredentials } from "
|
|
1
|
+
import { ApiCredentials, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
import { CancelToken } from "axios";
|
|
3
3
|
export type Snapshot = {
|
|
4
4
|
createdAt: string;
|
|
5
5
|
data: string;
|
|
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>;
|
|
@@ -38,11 +41,9 @@ export type NearestSnapshotResponsePayload = {
|
|
|
38
41
|
notes?: string;
|
|
39
42
|
}>;
|
|
40
43
|
};
|
|
41
|
-
export type SnapshotRangeRequestPayload = {
|
|
44
|
+
export type SnapshotRangeRequestPayload = PaginationParams & {
|
|
42
45
|
from: string;
|
|
43
46
|
to: string;
|
|
44
|
-
limit?: number;
|
|
45
|
-
page?: number;
|
|
46
47
|
schedule?: boolean;
|
|
47
48
|
count?: number;
|
|
48
49
|
};
|
|
@@ -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,
|
|
@@ -76,6 +76,7 @@ export declare enum CloudRecordingDuration {
|
|
|
76
76
|
Month = 30,
|
|
77
77
|
ThreeMonths = 90
|
|
78
78
|
}
|
|
79
|
+
export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
|
|
79
80
|
export declare enum CloudRecordingStatus {
|
|
80
81
|
On = "on",
|
|
81
82
|
Off = "off",
|
|
@@ -103,13 +104,6 @@ export declare enum SnapshotExtractionInterval {
|
|
|
103
104
|
}
|
|
104
105
|
export declare enum VpnServer {
|
|
105
106
|
None = "None",
|
|
106
|
-
OpenVPN1 = "OpenVPN1",
|
|
107
|
-
OpenVPN2 = "OpenVPN2",
|
|
108
|
-
OpenVPN3 = "OpenVPN3",
|
|
109
|
-
OpenVPN4 = "OpenVPN4",
|
|
110
|
-
OpenVPN5 = "OpenVPN5",
|
|
111
|
-
PPTP1 = "PPTP1",
|
|
112
|
-
PPTP2 = "PPTP2",
|
|
113
107
|
WireGuard1 = "WireGuard1",
|
|
114
108
|
WireGuard2 = "WireGuard2",
|
|
115
109
|
WireGuard3 = "WireGuard3",
|
|
@@ -119,5 +113,6 @@ export declare enum VpnServer {
|
|
|
119
113
|
WireGuard7 = "WireGuard7",
|
|
120
114
|
WireGuard8 = "WireGuard8",
|
|
121
115
|
WireGuard9 = "WireGuard9",
|
|
122
|
-
WireGuard10 = "WireGuard10"
|
|
116
|
+
WireGuard10 = "WireGuard10",
|
|
117
|
+
WgHub = "WgHub"
|
|
123
118
|
}
|
|
@@ -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 RingCompleteLinkingPayload = {
|
|
2
|
+
nonce: string;
|
|
3
|
+
time: string;
|
|
4
|
+
};
|
|
5
|
+
/** The only auto-import status complete-linking returns today. */
|
|
6
|
+
export declare const RING_AUTO_IMPORT_QUEUED = "queued";
|
|
7
|
+
export type RingAutoImportStatus = typeof RING_AUTO_IMPORT_QUEUED;
|
|
8
|
+
export type RingCompleteLinkingResponsePayload = {
|
|
9
|
+
status: string;
|
|
10
|
+
/** Absent when the API did not schedule an import. */
|
|
11
|
+
autoImport?: RingAutoImportStatus;
|
|
12
|
+
};
|
|
13
|
+
export type RingDevice = {
|
|
14
|
+
deviceId: string;
|
|
15
|
+
name: string;
|
|
16
|
+
/** Resolved from Ring's `device-status`; null when Ring did not return it. */
|
|
17
|
+
online: boolean | null;
|
|
18
|
+
deviceType: string | null;
|
|
19
|
+
firmwareVersion: string | null;
|
|
20
|
+
/** Always null — Ring's API does not expose device power level. */
|
|
21
|
+
batteryLife: number | null;
|
|
22
|
+
location: string | null;
|
|
23
|
+
imported: boolean;
|
|
24
|
+
cameraExid?: string;
|
|
25
|
+
projectExid?: string;
|
|
26
|
+
projectName?: string;
|
|
27
|
+
};
|
|
28
|
+
export type RingDevicesResponsePayload = {
|
|
29
|
+
devices: RingDevice[];
|
|
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,23 +3,15 @@ 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
|
-
export type RoiShape = {
|
|
16
|
-
id: number | null;
|
|
17
|
-
name: string;
|
|
18
|
-
x1: number;
|
|
19
|
-
x2: number;
|
|
20
|
-
y1: number;
|
|
21
|
-
y2: number;
|
|
22
|
-
};
|
|
23
15
|
export declare enum RoiDirection {
|
|
24
16
|
Arrived = "arrived",
|
|
25
17
|
Left = "left",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type RouteParams = {
|
|
2
2
|
projectExid?: string;
|
|
3
3
|
cameraExid?: string;
|
|
4
|
+
mediaExid?: string;
|
|
4
5
|
timestamp?: string;
|
|
5
6
|
fromDate?: string;
|
|
6
7
|
toDate?: string;
|
|
@@ -46,6 +47,7 @@ export declare enum TimelineMobileCaptureUrlParams {
|
|
|
46
47
|
ShowMobileCapture = "showMobileCapture"
|
|
47
48
|
}
|
|
48
49
|
export declare enum TimelineCommentsUrlParams {
|
|
49
|
-
ShowComments = "showComments"
|
|
50
|
+
ShowComments = "showComments",
|
|
51
|
+
SelectedCommentId = "selectedCommentId"
|
|
50
52
|
}
|
|
51
53
|
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,17 @@
|
|
|
1
|
-
import { DateType } from "
|
|
1
|
+
import { DateType } from "@evercam/api/types";
|
|
2
|
+
export declare enum Operator {
|
|
3
|
+
AND = "and",
|
|
4
|
+
OR = "or"
|
|
5
|
+
}
|
|
2
6
|
type sortby = string;
|
|
3
7
|
type sortDirection = "asc" | "desc";
|
|
4
8
|
export type SortingUrlParam = `${sortby}|${sortDirection}`;
|
|
9
|
+
export type JsonPrimitive = string | number | boolean | null;
|
|
10
|
+
export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
11
|
+
export type JsonObject = {
|
|
12
|
+
[key: string]: JsonValue;
|
|
13
|
+
};
|
|
14
|
+
export type JsonArray = JsonValue[];
|
|
5
15
|
export type BatteryReading = {
|
|
6
16
|
id: number;
|
|
7
17
|
voltage: number;
|
|
@@ -53,7 +63,7 @@ export declare enum UnitSystem {
|
|
|
53
63
|
Metric = "metric"
|
|
54
64
|
}
|
|
55
65
|
export type Timestamp = string | number;
|
|
56
|
-
export type
|
|
66
|
+
export type ScheduleUppercase = {
|
|
57
67
|
Friday: string[];
|
|
58
68
|
Monday: string[];
|
|
59
69
|
Saturday: string[];
|
|
@@ -71,6 +81,7 @@ export type ScheduleLowercase = {
|
|
|
71
81
|
tuesday: string[];
|
|
72
82
|
wednesday: string[];
|
|
73
83
|
};
|
|
84
|
+
export type Schedule = ScheduleUppercase | ScheduleLowercase;
|
|
74
85
|
export type PaginationParams = {
|
|
75
86
|
sort?: SortingUrlParam;
|
|
76
87
|
page?: number;
|
|
@@ -90,11 +101,6 @@ export declare enum _3dViewer {
|
|
|
90
101
|
Itwin = "itwin",
|
|
91
102
|
Cesium = "cesium"
|
|
92
103
|
}
|
|
93
|
-
export declare enum SsoProvider {
|
|
94
|
-
Microsoft = "microsoft",
|
|
95
|
-
Google = "google",
|
|
96
|
-
Evercam = "evercam"
|
|
97
|
-
}
|
|
98
104
|
export declare enum InfoPage {
|
|
99
105
|
ThreeSixtyView = "360",
|
|
100
106
|
BIMView = "bim",
|
|
@@ -110,18 +116,6 @@ export declare enum DownloadFileType {
|
|
|
110
116
|
Pdf = "pdf",
|
|
111
117
|
Csv = "csv"
|
|
112
118
|
}
|
|
113
|
-
export declare enum FeedbackContext {
|
|
114
|
-
CopilotMessage = "copilot_message"
|
|
115
|
-
}
|
|
116
|
-
export type FeedbackPayload<T> = {
|
|
117
|
-
id?: number;
|
|
118
|
-
user: string;
|
|
119
|
-
text: string;
|
|
120
|
-
type: T;
|
|
121
|
-
context: FeedbackContext;
|
|
122
|
-
messageId?: number;
|
|
123
|
-
conversationId?: number;
|
|
124
|
-
};
|
|
125
119
|
export type Stringified<T> = string & {
|
|
126
120
|
[P in keyof T]: {
|
|
127
121
|
"_ value": T[P];
|
|
@@ -131,6 +125,21 @@ export interface JSON {
|
|
|
131
125
|
stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
|
|
132
126
|
parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
|
|
133
127
|
}
|
|
128
|
+
export type TuplePoint2D = [number, number];
|
|
129
|
+
export type TuplePoint3D = [number, number, number];
|
|
130
|
+
export type Point2D = {
|
|
131
|
+
x: number;
|
|
132
|
+
y: number;
|
|
133
|
+
};
|
|
134
|
+
export type Point3D = {
|
|
135
|
+
x: number;
|
|
136
|
+
y: number;
|
|
137
|
+
z: number;
|
|
138
|
+
};
|
|
139
|
+
export type GeoPoint = {
|
|
140
|
+
lat: number;
|
|
141
|
+
lng: number;
|
|
142
|
+
};
|
|
134
143
|
export type Exid = string;
|
|
135
144
|
export type EntityByExid<Entity extends unknown> = Record<Exid, Entity>;
|
|
136
145
|
export type BatteryVoltage = {
|
|
@@ -157,16 +166,6 @@ export declare enum TimelinePrecision {
|
|
|
157
166
|
Minute = "minute",
|
|
158
167
|
Events = "events"
|
|
159
168
|
}
|
|
160
|
-
export type EntityStatsQueryParams = {
|
|
161
|
-
period: "day" | "week" | "month";
|
|
162
|
-
startDate: string;
|
|
163
|
-
endDate: string;
|
|
164
|
-
};
|
|
165
|
-
export type EntityStat = {
|
|
166
|
-
period: string;
|
|
167
|
-
name: string;
|
|
168
|
-
count: number;
|
|
169
|
-
};
|
|
170
169
|
export declare enum TaskStatus {
|
|
171
170
|
Idle = "idle",
|
|
172
171
|
Loading = "loading",
|