@evercam/api 1.0.0-003291add
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 +6 -0
- package/dist/api/api/3dFirebaseApi.d.ts +183 -0
- package/dist/api/api/adminApi.d.ts +377 -0
- package/dist/api/api/aiApi.d.ts +128 -0
- package/dist/api/api/authzApi.d.ts +37 -0
- package/dist/api/api/client/axios.d.ts +14 -0
- package/dist/api/api/client/customErrors.d.ts +90 -0
- package/dist/api/api/client/index.d.ts +5 -0
- package/dist/api/api/client/interceptors.d.ts +10 -0
- 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 +337 -0
- package/dist/api/api/evercamLabsApi.d.ts +45 -0
- package/dist/api/api/exNvrApi.d.ts +43 -0
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +148 -0
- package/dist/api/api/ptzApi.d.ts +45 -0
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/api/webRtcApi.d.ts +22 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/types/360.d.ts +281 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +597 -0
- package/dist/api/types/anpr.d.ts +114 -0
- package/dist/api/types/auditLogs.d.ts +99 -0
- package/dist/api/types/authz.d.ts +61 -0
- package/dist/api/types/autodesk.d.ts +29 -0
- package/dist/api/types/automation.d.ts +95 -0
- package/dist/api/types/axios.d.ts +71 -0
- package/dist/api/types/bim.d.ts +153 -0
- package/dist/api/types/camera.d.ts +535 -0
- package/dist/api/types/comments.d.ts +55 -0
- package/dist/api/types/company.d.ts +115 -0
- package/dist/api/types/compare.d.ts +72 -0
- package/dist/api/types/connector.d.ts +19 -0
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/api/types/copilot.d.ts +162 -0
- package/dist/api/types/countries.d.ts +500 -0
- package/dist/api/types/credentials.d.ts +6 -0
- package/dist/api/types/detections.d.ts +124 -0
- package/dist/api/types/drone.d.ts +106 -0
- package/dist/api/types/errors.d.ts +49 -0
- package/dist/api/types/gateReport.d.ts +332 -0
- package/dist/api/types/hdd.d.ts +88 -0
- package/dist/api/types/index.d.ts +65 -0
- package/dist/api/types/ingest.d.ts +147 -0
- package/dist/api/types/kit.d.ts +383 -0
- package/dist/api/types/map.d.ts +16 -0
- package/dist/api/types/media.d.ts +115 -0
- package/dist/api/types/notification.d.ts +57 -0
- package/dist/api/types/nvr.d.ts +36 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +133 -0
- package/dist/api/types/posthog.d.ts +33 -0
- package/dist/api/types/procore.d.ts +229 -0
- package/dist/api/types/progressPhoto.d.ts +78 -0
- package/dist/api/types/project.d.ts +247 -0
- package/dist/api/types/recording.d.ts +125 -0
- 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 +27 -0
- package/dist/api/types/routeParams.d.ts +52 -0
- package/dist/api/types/router.d.ts +86 -0
- package/dist/api/types/shared.d.ts +219 -0
- package/dist/api/types/shares.d.ts +58 -0
- package/dist/api/types/sim.d.ts +114 -0
- package/dist/api/types/siteAnalytics.d.ts +287 -0
- package/dist/api/types/siteView.d.ts +74 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +91 -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 +40 -0
- package/dist/api/types/streaming.d.ts +97 -0
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/api/types/time.d.ts +7 -0
- package/dist/api/types/timelapse.d.ts +106 -0
- package/dist/api/types/user.d.ts +345 -0
- package/dist/api/types/vendorModel.d.ts +15 -0
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/api/types/voyageControl.d.ts +6 -0
- package/dist/api/types/weather.d.ts +153 -0
- package/dist/api/types/widget.d.ts +252 -0
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/api/utils.d.ts +10 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3707 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +2 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/shared/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +301 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +50 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, Operator, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
export type ProjectExid = Exid;
|
|
3
|
+
export type ProjectsByExid = EntityByExid<Project>;
|
|
4
|
+
export type Project = {
|
|
5
|
+
archiveTier?: ProjectArchiveTier;
|
|
6
|
+
cameras?: Array<Camera | AdminCamera>;
|
|
7
|
+
camerasCount?: number;
|
|
8
|
+
camerasRestrictionType?: string;
|
|
9
|
+
companyId: number;
|
|
10
|
+
endDate: string;
|
|
11
|
+
exid: ProjectExid;
|
|
12
|
+
featureFlags: Array<ProjectFeatureFlag>;
|
|
13
|
+
geographicBounds?: unknown;
|
|
14
|
+
id: string | number;
|
|
15
|
+
insertedAt?: string;
|
|
16
|
+
name: string;
|
|
17
|
+
owner?: {
|
|
18
|
+
email?: string;
|
|
19
|
+
};
|
|
20
|
+
ownerEmail?: string;
|
|
21
|
+
ownerName?: string;
|
|
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;
|
|
54
|
+
};
|
|
55
|
+
export declare enum ProjectStatus {
|
|
56
|
+
ToStart = "To Start",
|
|
57
|
+
InProgress = "In Progress",
|
|
58
|
+
Completed = "Completed",
|
|
59
|
+
NotAplicable = "Not Applicable"
|
|
60
|
+
}
|
|
61
|
+
export declare enum ProjectArchiveTier {
|
|
62
|
+
Full = "Full",
|
|
63
|
+
Partial = "Partial",
|
|
64
|
+
Minimal = "Minimal",
|
|
65
|
+
ScheduledForDeletion = "Scheduled for Deletion",
|
|
66
|
+
No = "No"
|
|
67
|
+
}
|
|
68
|
+
export type UpdateCameraRestrictionPayload = {
|
|
69
|
+
isAccessRestricted?: boolean;
|
|
70
|
+
};
|
|
71
|
+
export type Logo = {
|
|
72
|
+
id: number;
|
|
73
|
+
projectId: number;
|
|
74
|
+
name: string;
|
|
75
|
+
url: string;
|
|
76
|
+
};
|
|
77
|
+
export type ProjectLogoResponsePayload = Logo[];
|
|
78
|
+
export declare enum ProjectFeatureFlag {
|
|
79
|
+
AnprLegacy = "anpr_legacy",
|
|
80
|
+
DroneView = "drone_view",
|
|
81
|
+
Bim = "4d_bim",
|
|
82
|
+
BimItwin = "4d_bim_itwin",
|
|
83
|
+
BimForge = "4d_bim_forge",
|
|
84
|
+
ThreeSixtyView = "360_view",
|
|
85
|
+
NdaMc = "NDA/MC",
|
|
86
|
+
GateReport = "gate_report",
|
|
87
|
+
GateReportMotionDetection = "motion_detection",
|
|
88
|
+
FullEmpty = "full_empty",
|
|
89
|
+
MediaHubSharing = "archives_sharing",
|
|
90
|
+
GateReportAnprBased = "anpr_sourced",
|
|
91
|
+
NoLicensePlate = "no_license_plate",
|
|
92
|
+
DefaultToProjectApp = "default_to_project_app",
|
|
93
|
+
SmartSearch = "smart_search",
|
|
94
|
+
PpeMonitoring = "ppe_monitoring",
|
|
95
|
+
NoGdpr = "no_gdpr"
|
|
96
|
+
}
|
|
97
|
+
export type ProjectBatteryReading = {
|
|
98
|
+
exid: number;
|
|
99
|
+
voltage: number;
|
|
100
|
+
lastSeen: DateType;
|
|
101
|
+
};
|
|
102
|
+
export type ThumbnailData = {
|
|
103
|
+
cameraExid: CameraExid;
|
|
104
|
+
custom: boolean;
|
|
105
|
+
image: string;
|
|
106
|
+
};
|
|
107
|
+
export type ProjectsQueryParams = PaginationParams & {
|
|
108
|
+
name: string;
|
|
109
|
+
exid: string;
|
|
110
|
+
status: ProjectStatus;
|
|
111
|
+
cameras: string;
|
|
112
|
+
featureFlags: Array<ProjectFeatureFlag>;
|
|
113
|
+
featureFlagsOperator?: Operator;
|
|
114
|
+
archived: string;
|
|
115
|
+
};
|
|
116
|
+
export type ProjectCreateRequestPayload = {
|
|
117
|
+
projectExid?: string;
|
|
118
|
+
projectName: string;
|
|
119
|
+
ownerId: number;
|
|
120
|
+
cameras: string[];
|
|
121
|
+
};
|
|
122
|
+
export type ProjectCreateResponse = {
|
|
123
|
+
name: string;
|
|
124
|
+
exid: string;
|
|
125
|
+
id: number;
|
|
126
|
+
userId: number;
|
|
127
|
+
zohoId: string;
|
|
128
|
+
};
|
|
129
|
+
export type ProjectUpdateRequestPayload = {
|
|
130
|
+
name: string;
|
|
131
|
+
timezone: string;
|
|
132
|
+
featureFlags: ProjectFeatureFlag[];
|
|
133
|
+
cameras: string[];
|
|
134
|
+
};
|
|
135
|
+
export type ProjectStatusStats = {
|
|
136
|
+
nil: number;
|
|
137
|
+
Completed: number;
|
|
138
|
+
"In Progress": number;
|
|
139
|
+
"Not Applicable": number;
|
|
140
|
+
"To Start": number;
|
|
141
|
+
};
|
|
142
|
+
export type ProjectUserProperty = {
|
|
143
|
+
active: boolean;
|
|
144
|
+
activeOneMonth: boolean;
|
|
145
|
+
cameraExid: string;
|
|
146
|
+
cameraName: string;
|
|
147
|
+
cameraRights: string;
|
|
148
|
+
email: string;
|
|
149
|
+
eventsCount: number;
|
|
150
|
+
fullname: string;
|
|
151
|
+
id: number;
|
|
152
|
+
lastSeenAt: string;
|
|
153
|
+
persona: string;
|
|
154
|
+
};
|
|
155
|
+
export type ProjectUsers = {
|
|
156
|
+
cameras: {
|
|
157
|
+
exid: string;
|
|
158
|
+
name: string;
|
|
159
|
+
}[];
|
|
160
|
+
users: Record<string, ProjectUserProperty[]>;
|
|
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
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { ApiCredentials } from "@evercam/api/types";
|
|
2
|
+
import { CancelToken } from "axios";
|
|
3
|
+
export type Snapshot = {
|
|
4
|
+
createdAt: string;
|
|
5
|
+
data: string;
|
|
6
|
+
status?: string;
|
|
7
|
+
};
|
|
8
|
+
export type NearestSnapshotRequestPayload = {
|
|
9
|
+
apiKey?: string;
|
|
10
|
+
apiId?: string;
|
|
11
|
+
token?: string;
|
|
12
|
+
cancelToken?: object;
|
|
13
|
+
includeImage?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type AvailableDaysRequestPayload = {
|
|
16
|
+
cameraId: string;
|
|
17
|
+
year: string;
|
|
18
|
+
month: string;
|
|
19
|
+
payload?: ApiCredentials;
|
|
20
|
+
};
|
|
21
|
+
export type AvailableDaysResponsePayload = {
|
|
22
|
+
days: Array<number>;
|
|
23
|
+
};
|
|
24
|
+
export type AvailableHoursRequestPayload = {
|
|
25
|
+
cameraId: string;
|
|
26
|
+
year: string;
|
|
27
|
+
month: string;
|
|
28
|
+
day: string;
|
|
29
|
+
payload?: ApiCredentials;
|
|
30
|
+
cancelToken?: CancelToken;
|
|
31
|
+
};
|
|
32
|
+
export type AvailableHoursResponsePayload = {
|
|
33
|
+
hours: Array<number>;
|
|
34
|
+
};
|
|
35
|
+
export type NearestSnapshotResponsePayload = {
|
|
36
|
+
snapshots: Array<{
|
|
37
|
+
createdAt: string;
|
|
38
|
+
data: string;
|
|
39
|
+
notes?: string;
|
|
40
|
+
}>;
|
|
41
|
+
};
|
|
42
|
+
export type SnapshotRangeRequestPayload = {
|
|
43
|
+
from: string;
|
|
44
|
+
to: string;
|
|
45
|
+
limit?: number;
|
|
46
|
+
page?: number;
|
|
47
|
+
schedule?: boolean;
|
|
48
|
+
count?: number;
|
|
49
|
+
};
|
|
50
|
+
export type SnapshotInstance = {
|
|
51
|
+
createdAt: string;
|
|
52
|
+
notes?: string;
|
|
53
|
+
data?: string;
|
|
54
|
+
};
|
|
55
|
+
export type SnapshotRangeResponsePayload = {
|
|
56
|
+
snapshots: Array<SnapshotInstance>;
|
|
57
|
+
};
|
|
58
|
+
export declare enum BrainTool {
|
|
59
|
+
Detections = "detections"
|
|
60
|
+
}
|
|
61
|
+
export declare enum CloudRecordingFrequency {
|
|
62
|
+
EverySecond = 60,
|
|
63
|
+
Every2Seconds = 30,
|
|
64
|
+
Every5Seconds = 12,
|
|
65
|
+
Every10Seconds = 6,
|
|
66
|
+
Every15Seconds = 4,
|
|
67
|
+
Every30Seconds = 2,
|
|
68
|
+
Every60Seconds = 1,
|
|
69
|
+
Every5Minutes = 5,
|
|
70
|
+
Every10Minutes = 10
|
|
71
|
+
}
|
|
72
|
+
export declare enum CloudRecordingDuration {
|
|
73
|
+
Infinity = -1,
|
|
74
|
+
Day = 1,
|
|
75
|
+
Week = 7,
|
|
76
|
+
Month = 30,
|
|
77
|
+
ThreeMonths = 90
|
|
78
|
+
}
|
|
79
|
+
export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
|
|
80
|
+
export declare enum CloudRecordingStatus {
|
|
81
|
+
On = "on",
|
|
82
|
+
Off = "off",
|
|
83
|
+
Paused = "paused",
|
|
84
|
+
OnScheduled = "on-scheduled"
|
|
85
|
+
}
|
|
86
|
+
export declare enum SnapshotExtractionInterval {
|
|
87
|
+
EverySecond = 1,
|
|
88
|
+
Every5Seconds = 5,
|
|
89
|
+
Every10Seconds = 10,
|
|
90
|
+
Every15Seconds = 15,
|
|
91
|
+
Every20Seconds = 20,
|
|
92
|
+
Every30Second = 30,
|
|
93
|
+
EveryMinute = 60,
|
|
94
|
+
Every5Minutes = 300,
|
|
95
|
+
Every10Minutes = 600,
|
|
96
|
+
Every15Minutes = 900,
|
|
97
|
+
Every20Minutes = 1200,
|
|
98
|
+
Every30Minutes = 1800,
|
|
99
|
+
EveryHour = 3600,
|
|
100
|
+
Every2Hours = 7200,
|
|
101
|
+
Every6Hours = 21600,
|
|
102
|
+
Every12Hours = 43200,
|
|
103
|
+
Every24Hours = 86400
|
|
104
|
+
}
|
|
105
|
+
export declare enum VpnServer {
|
|
106
|
+
None = "None",
|
|
107
|
+
OpenVPN1 = "OpenVPN1",
|
|
108
|
+
OpenVPN2 = "OpenVPN2",
|
|
109
|
+
OpenVPN3 = "OpenVPN3",
|
|
110
|
+
OpenVPN4 = "OpenVPN4",
|
|
111
|
+
OpenVPN5 = "OpenVPN5",
|
|
112
|
+
PPTP1 = "PPTP1",
|
|
113
|
+
PPTP2 = "PPTP2",
|
|
114
|
+
WireGuard1 = "WireGuard1",
|
|
115
|
+
WireGuard2 = "WireGuard2",
|
|
116
|
+
WireGuard3 = "WireGuard3",
|
|
117
|
+
WireGuard4 = "WireGuard4",
|
|
118
|
+
WireGuard5 = "WireGuard5",
|
|
119
|
+
WireGuard6 = "WireGuard6",
|
|
120
|
+
WireGuard7 = "WireGuard7",
|
|
121
|
+
WireGuard8 = "WireGuard8",
|
|
122
|
+
WireGuard9 = "WireGuard9",
|
|
123
|
+
WireGuard10 = "WireGuard10",
|
|
124
|
+
WgHub = "WgHub"
|
|
125
|
+
}
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare enum RoiType {
|
|
2
|
+
Gate = "gate",
|
|
3
|
+
AnprContext = "anpr_context",
|
|
4
|
+
ExclusionZone = "exclusion_zone",
|
|
5
|
+
WorkflowArea = "workflow_area",
|
|
6
|
+
SiteAnalytics = "site_analytics"
|
|
7
|
+
}
|
|
8
|
+
export declare enum RoiShapeType {
|
|
9
|
+
Polygon = "polygon",
|
|
10
|
+
Line = "line",
|
|
11
|
+
Direction = "direction",
|
|
12
|
+
Rectangle = "rectangle"
|
|
13
|
+
}
|
|
14
|
+
export type RoiShape = {
|
|
15
|
+
id: number | null;
|
|
16
|
+
name: string;
|
|
17
|
+
x1: number;
|
|
18
|
+
x2: number;
|
|
19
|
+
y1: number;
|
|
20
|
+
y2: number;
|
|
21
|
+
points?: [number, number][];
|
|
22
|
+
};
|
|
23
|
+
export declare enum RoiDirection {
|
|
24
|
+
Arrived = "arrived",
|
|
25
|
+
Left = "left",
|
|
26
|
+
Bidirectional = "arrived,left"
|
|
27
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export type RouteParams = {
|
|
2
|
+
projectExid?: string;
|
|
3
|
+
cameraExid?: string;
|
|
4
|
+
timestamp?: string;
|
|
5
|
+
fromDate?: string;
|
|
6
|
+
toDate?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare enum UrlParamValue {
|
|
9
|
+
True = "true",
|
|
10
|
+
False = "false"
|
|
11
|
+
}
|
|
12
|
+
export declare enum TimelineUrlParam {
|
|
13
|
+
CameraExid = "cameraExid",
|
|
14
|
+
Timestamp = "timestamp",
|
|
15
|
+
FromDate = "fromDate",
|
|
16
|
+
ToDate = "toDate",
|
|
17
|
+
Live = "live",
|
|
18
|
+
Video = "video",
|
|
19
|
+
OverlayType = "overlayType",
|
|
20
|
+
ShowOverlay = "showOverlay",
|
|
21
|
+
ShowCompare = "showCompare",
|
|
22
|
+
Sidebar = "sidebar",
|
|
23
|
+
ThreeSixtyId = "_360Id",
|
|
24
|
+
DroneId = "droneId",
|
|
25
|
+
MediaId = "mediaId"
|
|
26
|
+
}
|
|
27
|
+
export declare enum Timeline360UrlParams {
|
|
28
|
+
Show360 = "show360"
|
|
29
|
+
}
|
|
30
|
+
export declare enum TimelineDroneUrlParams {
|
|
31
|
+
ShowDrone = "showDrone"
|
|
32
|
+
}
|
|
33
|
+
export declare enum TimelineMediaUrlParams {
|
|
34
|
+
ShowMedia = "showMedia"
|
|
35
|
+
}
|
|
36
|
+
export declare enum TimelineBimUrlParams {
|
|
37
|
+
ShowBim = "showBim"
|
|
38
|
+
}
|
|
39
|
+
export declare enum TimelineExNvrRecordingsUrlParams {
|
|
40
|
+
ShowExNvrRecordings = "showExNvrRecordings"
|
|
41
|
+
}
|
|
42
|
+
export declare enum TimelineAnprUrlParams {
|
|
43
|
+
ShowAnpr = "showAnpr"
|
|
44
|
+
}
|
|
45
|
+
export declare enum TimelineMobileCaptureUrlParams {
|
|
46
|
+
ShowMobileCapture = "showMobileCapture"
|
|
47
|
+
}
|
|
48
|
+
export declare enum TimelineCommentsUrlParams {
|
|
49
|
+
ShowComments = "showComments",
|
|
50
|
+
SelectedCommentId = "selectedCommentId"
|
|
51
|
+
}
|
|
52
|
+
export type TimelineUrlParams = Record<TimelineUrlParam | TimelineMediaUrlParams | TimelineBimUrlParams | TimelineExNvrRecordingsUrlParams | TimelineAnprUrlParams | TimelineMobileCaptureUrlParams | TimelineCommentsUrlParams, string | null>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Camera, PaginationParams, Project, Sim } from "@evercam/api/types";
|
|
2
|
+
export type RouterBillPayer = {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
export type SimProvider = {
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
export type Router = {
|
|
9
|
+
id?: number;
|
|
10
|
+
kitId: number | null;
|
|
11
|
+
routerType: string;
|
|
12
|
+
routerUserId: string;
|
|
13
|
+
routerPassword: string;
|
|
14
|
+
serialNumber: number | null;
|
|
15
|
+
rmsUrl?: string;
|
|
16
|
+
externalHost?: string;
|
|
17
|
+
routerHttpPort: number | null;
|
|
18
|
+
vpnPassword: string;
|
|
19
|
+
vpnUserId: string;
|
|
20
|
+
vpnServer: string;
|
|
21
|
+
netbirdUrl: string;
|
|
22
|
+
status: RouterStatus;
|
|
23
|
+
powerType: PowerType;
|
|
24
|
+
powerSchedule: string;
|
|
25
|
+
battery?: {
|
|
26
|
+
lastVoltage: number;
|
|
27
|
+
lastSeen: string;
|
|
28
|
+
};
|
|
29
|
+
sims: Array<Pick<Sim, "id" | "number">>;
|
|
30
|
+
billPayers?: Array<RouterBillPayer>;
|
|
31
|
+
simProviders?: Array<SimProvider>;
|
|
32
|
+
projects?: Pick<Project, "exid" | "id" | "name">[];
|
|
33
|
+
cameras?: Pick<Camera, "id" | "name">[];
|
|
34
|
+
};
|
|
35
|
+
export declare enum PowerType {
|
|
36
|
+
Mains = "mains",
|
|
37
|
+
Battery = "battery",
|
|
38
|
+
Solar = "solar",
|
|
39
|
+
Generator = "generator",
|
|
40
|
+
Other = "other"
|
|
41
|
+
}
|
|
42
|
+
export declare enum PowerSchedule {
|
|
43
|
+
Schedule = "schedule",
|
|
44
|
+
FullTime = "24/7"
|
|
45
|
+
}
|
|
46
|
+
export declare enum RouterStatus {
|
|
47
|
+
Active = "active",
|
|
48
|
+
Inactive = "inactive"
|
|
49
|
+
}
|
|
50
|
+
export declare enum RouterScanInputMode {
|
|
51
|
+
Qr = "qr",
|
|
52
|
+
Manual = "manual"
|
|
53
|
+
}
|
|
54
|
+
export type RouterQueryParams = PaginationParams & {
|
|
55
|
+
routerType: string;
|
|
56
|
+
vpnServer: string;
|
|
57
|
+
serialNumber: string;
|
|
58
|
+
};
|
|
59
|
+
export type RouterCreatePayload = {
|
|
60
|
+
serialNumber: number;
|
|
61
|
+
vpnUserId?: string;
|
|
62
|
+
vpnPassword?: string;
|
|
63
|
+
routerType: string;
|
|
64
|
+
routerUserId?: string;
|
|
65
|
+
routerPassword?: string;
|
|
66
|
+
routerHttpPort: number;
|
|
67
|
+
powerType: PowerType;
|
|
68
|
+
powerSchedule: PowerSchedule;
|
|
69
|
+
vpnServer?: string;
|
|
70
|
+
netbirdUrl?: string;
|
|
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
|
+
};
|