@evercam/api 1.0.0-e1ad6ae1b → 1.0.0-e2b234f84
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 +3 -0
- package/dist/api/api/3dFirebaseApi.d.ts +176 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +101 -94
- package/dist/api/api/aiApi.d.ts +160 -0
- package/dist/api/api/authzApi.d.ts +37 -0
- package/dist/api/{client → api/client}/axios.d.ts +2 -1
- package/dist/api/{client → api/client}/swr/Swr.d.ts +1 -1
- package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +132 -99
- package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +6 -4
- package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +154 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +2 -2
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +292 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/{types → api/types}/analytics.d.ts +164 -50
- package/dist/{types → api/types}/anpr.d.ts +48 -2
- package/dist/{types → api/types}/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +61 -0
- package/dist/{types → api/types}/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +95 -0
- package/dist/{types → api/types}/axios.d.ts +17 -10
- package/dist/{types → api/types}/bim.d.ts +36 -5
- package/dist/{types → api/types}/camera.d.ts +103 -98
- package/dist/{types → api/types}/comments.d.ts +8 -10
- package/dist/{types → api/types}/company.d.ts +42 -1
- package/dist/{types → api/types}/compare.d.ts +20 -5
- package/dist/{types → api/types}/connector.d.ts +4 -5
- package/dist/{types → api/types}/coolify.d.ts +18 -2
- package/dist/{types → api/types}/copilot.d.ts +11 -6
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/{types → api/types}/detections.d.ts +22 -32
- package/dist/api/types/drone.d.ts +107 -0
- package/dist/{types → api/types}/errors.d.ts +11 -0
- package/dist/{types → api/types}/gateReport.d.ts +50 -158
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/{types → api/types}/hdd.d.ts +26 -1
- package/dist/{types → api/types}/index.d.ts +10 -1
- package/dist/api/types/ingest.d.ts +148 -0
- package/dist/{types → api/types}/kit.d.ts +33 -5
- package/dist/api/types/map.d.ts +16 -0
- package/dist/{types → api/types}/media.d.ts +8 -2
- package/dist/api/types/notification.d.ts +57 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +132 -0
- package/dist/api/types/posthog.d.ts +33 -0
- package/dist/{types → api/types}/procore.d.ts +13 -6
- package/dist/{types → api/types}/progressPhoto.d.ts +6 -32
- package/dist/api/types/project.d.ts +247 -0
- package/dist/{types → api/types}/recording.d.ts +9 -12
- package/dist/{types → api/types}/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/{types → api/types}/roi.d.ts +4 -3
- package/dist/{types → api/types}/router.d.ts +20 -1
- package/dist/{types → api/types}/shared.d.ts +30 -4
- package/dist/api/types/shares.d.ts +58 -0
- package/dist/{types → api/types}/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +287 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/{types → api/types}/snapshots.d.ts +49 -4
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/{types → api/types}/streaming.d.ts +3 -3
- package/dist/{types → api/types}/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +8 -5
- package/dist/{types → api/types}/user.d.ts +106 -32
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/{types → api/types}/weather.d.ts +75 -11
- package/dist/{types → api/types}/widget.d.ts +72 -11
- package/dist/{types → api/types}/xweather.d.ts +4 -4
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1801 -981
- 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/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 +329 -0
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +41 -0
- package/dist/shared/types/index.d.ts +6 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +6 -4
- package/dist/api/3dFirebaseApi.d.ts +0 -20
- package/dist/api/aiApi.d.ts +0 -146
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/ingestApi.d.ts +0 -88
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/types/360.d.ts +0 -139
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/automation.d.ts +0 -10
- package/dist/types/drone.d.ts +0 -17
- package/dist/types/ingest.d.ts +0 -47
- package/dist/types/map.d.ts +0 -4
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/planner.d.ts +0 -32
- package/dist/types/posthog.d.ts +0 -18
- package/dist/types/project.d.ts +0 -129
- package/dist/types/shares.d.ts +0 -196
- package/dist/types/siteAnalytics.d.ts +0 -142
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/time.d.ts +0 -21
- package/dist/types/videoWall.d.ts +0 -33
- /package/dist/api/{client → api/client}/customErrors.d.ts +0 -0
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{client → api/client}/interceptors.d.ts +0 -0
- /package/dist/api/{client → api/client}/swr/SwrStore.d.ts +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/countries.d.ts +0 -0
- /package/dist/{types → api/types}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/routeParams.d.ts +0 -0
- /package/dist/{types → api/types}/sso.d.ts +0 -0
- /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
- /package/dist/{utils.d.ts → api/utils.d.ts} +0 -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
|
+
}
|
|
@@ -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
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>;
|
|
@@ -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,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
|
+
};
|
|
@@ -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",
|
|
@@ -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;
|
|
@@ -108,11 +119,11 @@ export declare enum DownloadFileType {
|
|
|
108
119
|
export declare enum FeedbackContext {
|
|
109
120
|
CopilotMessage = "copilot_message"
|
|
110
121
|
}
|
|
111
|
-
export type FeedbackPayload
|
|
122
|
+
export type FeedbackPayload = {
|
|
112
123
|
id?: number;
|
|
113
124
|
user: string;
|
|
114
125
|
text: string;
|
|
115
|
-
type:
|
|
126
|
+
type: string;
|
|
116
127
|
context: FeedbackContext;
|
|
117
128
|
messageId?: number;
|
|
118
129
|
conversationId?: number;
|
|
@@ -126,6 +137,21 @@ export interface JSON {
|
|
|
126
137
|
stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
|
|
127
138
|
parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
|
|
128
139
|
}
|
|
140
|
+
export type TuplePoint2D = [number, number];
|
|
141
|
+
export type TuplePoint3D = [number, number, number];
|
|
142
|
+
export type Point2D = {
|
|
143
|
+
x: number;
|
|
144
|
+
y: number;
|
|
145
|
+
};
|
|
146
|
+
export type Point3D = {
|
|
147
|
+
x: number;
|
|
148
|
+
y: number;
|
|
149
|
+
z: number;
|
|
150
|
+
};
|
|
151
|
+
export type GeoPoint = {
|
|
152
|
+
lat: number;
|
|
153
|
+
lng: number;
|
|
154
|
+
};
|
|
129
155
|
export type Exid = string;
|
|
130
156
|
export type EntityByExid<Entity extends unknown> = Record<Exid, Entity>;
|
|
131
157
|
export type BatteryVoltage = {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { DateType } from "@evercam/api/types";
|
|
2
|
+
export type ShareRequest = {
|
|
3
|
+
cameraId: string;
|
|
4
|
+
createdAt: DateType | number;
|
|
5
|
+
email: string;
|
|
6
|
+
id: number;
|
|
7
|
+
rights: string;
|
|
8
|
+
sharerEmail: string;
|
|
9
|
+
sharerName: string;
|
|
10
|
+
userId: number;
|
|
11
|
+
};
|
|
12
|
+
export type Share = {
|
|
13
|
+
cameraId: string;
|
|
14
|
+
createdAt: DateType | number;
|
|
15
|
+
email: string;
|
|
16
|
+
fullname: string;
|
|
17
|
+
id: number;
|
|
18
|
+
lastSeenAt: DateType;
|
|
19
|
+
rights: string;
|
|
20
|
+
sessionCount: number;
|
|
21
|
+
sharerEmail: string;
|
|
22
|
+
sharerId: number;
|
|
23
|
+
sharerName: string;
|
|
24
|
+
userId: number;
|
|
25
|
+
isUserAccessRestricted: boolean;
|
|
26
|
+
};
|
|
27
|
+
export type ShareDeletionRequestPayload = {
|
|
28
|
+
email?: string;
|
|
29
|
+
key?: string;
|
|
30
|
+
origin?: string;
|
|
31
|
+
};
|
|
32
|
+
export type SharedUsersResponsePayload = Array<{
|
|
33
|
+
email: string;
|
|
34
|
+
name: string;
|
|
35
|
+
}>;
|
|
36
|
+
export type ShareCreateRequestPayload = {
|
|
37
|
+
email: string[] | string;
|
|
38
|
+
message?: string;
|
|
39
|
+
permission?: string;
|
|
40
|
+
rights: string;
|
|
41
|
+
apiId?: string;
|
|
42
|
+
apiKey?: string;
|
|
43
|
+
};
|
|
44
|
+
export type ShareCreateResponsePayload = {
|
|
45
|
+
shares: Share[];
|
|
46
|
+
shareRequests: ShareRequest[];
|
|
47
|
+
};
|
|
48
|
+
export declare enum InviteStatus {
|
|
49
|
+
Pending = 0,
|
|
50
|
+
Cancelled = -1,
|
|
51
|
+
Used = 1,
|
|
52
|
+
Failed = -2
|
|
53
|
+
}
|
|
54
|
+
export declare enum ShareVisibility {
|
|
55
|
+
PublicDiscoverable = "publicDiscoverable",
|
|
56
|
+
PublicUndiscoverable = "publicUndiscoverable",
|
|
57
|
+
Private = "private"
|
|
58
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export declare enum SmsCommands {
|
|
3
3
|
Cellular = "cellular",
|
|
4
4
|
Gpson = "gpson",
|
|
@@ -63,7 +63,7 @@ export type Sim = {
|
|
|
63
63
|
puk: string;
|
|
64
64
|
iccid: string;
|
|
65
65
|
description: string;
|
|
66
|
-
lastSmsAt:
|
|
66
|
+
lastSmsAt: string;
|
|
67
67
|
cameras: {
|
|
68
68
|
name: string;
|
|
69
69
|
exid: string;
|
|
@@ -79,11 +79,11 @@ export type SendSmsResponse = {
|
|
|
79
79
|
errorText: string;
|
|
80
80
|
};
|
|
81
81
|
export type SmsHistory = {
|
|
82
|
-
insertedAt:
|
|
82
|
+
insertedAt: string;
|
|
83
83
|
type: string;
|
|
84
84
|
status: string;
|
|
85
85
|
text: string;
|
|
86
|
-
deliveryDatetime:
|
|
86
|
+
deliveryDatetime: string;
|
|
87
87
|
};
|
|
88
88
|
export type SmsHistoryResponse = {
|
|
89
89
|
singleSimSms: SmsHistory[];
|
|
@@ -98,8 +98,8 @@ export type Sms = {
|
|
|
98
98
|
status: string;
|
|
99
99
|
text: string;
|
|
100
100
|
type: string;
|
|
101
|
-
insertedAt:
|
|
102
|
-
deliveryDatetime:
|
|
101
|
+
insertedAt: string;
|
|
102
|
+
deliveryDatetime: string;
|
|
103
103
|
};
|
|
104
104
|
export type SmsQueryParams = PaginationParams & {
|
|
105
105
|
dateRange: string;
|