@evercam/api 1.0.0-ae97ae0a0 → 1.0.0-api-fixes-7de7fc3dd
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/dist/api/api/adminApi.d.ts +61 -57
- package/dist/api/api/aiApi.d.ts +1 -0
- package/dist/api/api/evercamApi.d.ts +26 -29
- package/dist/api/api/ingestApi.d.ts +3 -0
- package/dist/api/types/aconex.d.ts +2 -1
- package/dist/api/types/admin.d.ts +20 -4
- package/dist/api/types/analytics.d.ts +2 -1
- package/dist/api/types/anpr.d.ts +0 -1
- package/dist/api/types/auditLogs.d.ts +44 -37
- package/dist/api/types/bim.d.ts +48 -37
- package/dist/api/types/camera.d.ts +56 -43
- package/dist/api/types/comments.d.ts +24 -16
- package/dist/api/types/company.d.ts +23 -12
- package/dist/api/types/compare.d.ts +27 -23
- package/dist/api/types/hdd.d.ts +58 -24
- package/dist/api/types/kit.d.ts +19 -15
- package/dist/api/types/media.d.ts +13 -0
- package/dist/api/types/notification.d.ts +34 -28
- package/dist/api/types/nvr.d.ts +28 -0
- package/dist/api/types/oauth.d.ts +1 -0
- package/dist/api/types/progressPhoto.d.ts +24 -21
- package/dist/api/types/project.d.ts +57 -14
- package/dist/api/types/recording.d.ts +4 -3
- package/dist/api/types/roi.d.ts +2 -1
- package/dist/api/types/router.d.ts +23 -2
- package/dist/api/types/shared.d.ts +50 -43
- package/dist/api/types/sim.d.ts +1 -4
- package/dist/api/types/snapshots.d.ts +55 -8
- package/dist/api/types/storageProvider.d.ts +15 -3
- package/dist/api/types/timelapse.d.ts +38 -12
- package/dist/api/types/user.d.ts +76 -64
- package/dist/api/types/videoWall.d.ts +8 -8
- package/dist/api/types/weather.d.ts +90 -16
- package/dist/api/types/widget.d.ts +56 -47
- package/dist/index.js +259 -238
- 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 +6 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "@evercam/api/types/hdd";
|
|
1
|
+
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams, HddDetail, HddFootageItem } from "@evercam/api/types/hdd";
|
|
2
2
|
import type { OAuthClient, OAuthClientWithSecret, AdminCreateOAuthClientPayload, UpdateOAuthClientPayload } from "@evercam/api/types/oauth";
|
|
3
|
-
import type { CamerasResponsePayload, CameraUpdateRequestPayload, PaginatedItems, AdminCamera, AdminProjectDetail, AdminProjectListItem, AdminHdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload, Kit, PatchPayload,
|
|
3
|
+
import type { CamerasResponsePayload, CameraUpdateRequestPayload, PaginatedItems, AdminCamera, AdminProjectDetail, AdminProjectListItem, AdminHdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload, Kit, PatchPayload, MediaFilterQueryParams, Media, MediaDeleteRequestPayload, AuditLogsParams, AuditLog, SnapshotExtractionQyeryParams, SnapshotExtraction, SnapshotExtractionCreatePayload, SnapshotExtractionCreatedResponse, CameraCreateRequestPayload, CameraDeletePayload, SnapshotTestPayload, SnapshotTestResponse, DuplicatedCameraFields, DuplicatedCameraResponse, MergeDuplicatedCameraPayload, FetchCameraQueryParams, DeleteSnapshotQueryParams, SaveNotePayload, CameraNote, CreateCameraNotePayload, CompanyQueryParams, CompanySummary, CompanyUpdatePayload, CompanyUpdateResponse, SsoProvider, SsoUpdatePayload, SsoCreatePayload, SuppressionsQueryParams, Suppression, SnapshotExtractionType, KitQueryParams, KitCreatePayload, KitMetricStatsEntry, CameraLogsQueryParams, CameraLog, CameraAuditLogsQueryParams, CameraAuditLog, NvrQueryParams, Nvr, NvrSetting, SiteVisitCamerasQueryParams, OfflineCameraQueryParams, OfflineCamera, OfflineCameraNoteResponse, UserStatsResponse, UserCameraResponse, UserProjectResponse, ProjectMembersResponsePayload, ProjectCamera, ProjectsQueryParams, ProjectStatusStats, ProjectCreateRequestPayload, ProjectCreateResponse, ProjectUpdateRequestPayload, RouterQueryParams, Router, RouterCreatePayload, GlobalSearchQueryParams, SimCreateUpdatePayload, SimsQueryParams, Sim, SendSmsPayload, SendSmsResponse, SmsHistory, SmsQueryParams, Sms, ProgressPhotosQueryParams, ProgressPhotoItem, progressPhotosHistoryQueryParams, ProgressPhotosHistory, AdminUserUpdateRequestPayload, AdminQueryParams, Admin, ImpersonateUserResponse, AdminUserQueryParams, AdminCompareQueryParams, AdminCompare, NvrCreatePayload, WidgetsListRequestPayload, AdminWidget, AdminWidgetFull, WidgetPayload, PaginationParams, KitStorageRequestPayload, AdminCompanyUser, AdminCompanyProject, CompanyKit, CompanyCameraSummary, KitStorage, KitFootageRequestPayload, CommentsListRequestPayload, Comment, KitFootage, KitAlarmItem, RecycleBin, RecycleBinQueryParams, TransferCloudRecordingsQueryParams, SnapshotTransfer, SnapshotTransferIndexParams, CheckCameraPortPayload, CheckCameraPortResponse, CameraStatusLog, KitBox, KitBoxCreatePayload, KitBoxQueryParams, AdminInviteQueryParams, AdminInviteListResponse, AdminSearchItem, WithZohoParams, ZohoDeskTicketSearchResponse, JsonObject, ProjectStorageQueryParams, ProjectStorage, StorageProvider, AnprExtraction, AnprExtractionCreatePayload } from "@evercam/api/types";
|
|
4
4
|
import { KitMetricId } from "@evercam/api/types";
|
|
5
5
|
import { Tag } from "@evercam/api/types/tag";
|
|
6
6
|
import type { AxiosRequestConfig } from "axios";
|
|
@@ -17,7 +17,7 @@ export declare const AdminApi: {
|
|
|
17
17
|
auditLogs: {
|
|
18
18
|
getAuditLogs(params: AxiosRequestConfig & {
|
|
19
19
|
params: Partial<AuditLogsParams>;
|
|
20
|
-
}): Promise<PaginatedItems<AuditLog
|
|
20
|
+
}): Promise<PaginatedItems<AuditLog>>;
|
|
21
21
|
};
|
|
22
22
|
cameras: {
|
|
23
23
|
getCamerasStats(params: {
|
|
@@ -28,14 +28,14 @@ export declare const AdminApi: {
|
|
|
28
28
|
rebootCamera(cameraId: string): Promise<{
|
|
29
29
|
message: string;
|
|
30
30
|
}>;
|
|
31
|
-
focusCamera(cameraId: string, device: string): Promise<
|
|
32
|
-
message: string;
|
|
33
|
-
}>;
|
|
31
|
+
focusCamera(cameraId: string, device: string): Promise<void>;
|
|
34
32
|
getStorageProviders(cameraId: string, params?: AxiosRequestConfig & {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
params?: {
|
|
34
|
+
unmaskSecretKeys?: boolean;
|
|
35
|
+
};
|
|
36
|
+
}): Promise<StorageProvider[]>;
|
|
37
|
+
createStorageProvider(cameraId: string, payload: StorageProvider): Promise<StorageProvider>;
|
|
38
|
+
updateStorageProvider(cameraId: string, providerId: number, payload: StorageProvider): Promise<StorageProvider>;
|
|
39
39
|
getStorageDetails(): Promise<JsonObject>;
|
|
40
40
|
getSnapshotExtractions(params: AxiosRequestConfig & {
|
|
41
41
|
params: Partial<SnapshotExtractionQyeryParams>;
|
|
@@ -44,9 +44,7 @@ export declare const AdminApi: {
|
|
|
44
44
|
cameras: [AdminCamera];
|
|
45
45
|
}>;
|
|
46
46
|
deleteCamera(exid: string, payload: CameraDeletePayload): Promise<void>;
|
|
47
|
-
restoreCamera(exid: string): Promise<
|
|
48
|
-
message: string;
|
|
49
|
-
}>;
|
|
47
|
+
restoreCamera(exid: string): Promise<AdminCamera>;
|
|
50
48
|
testSnapshot(payload: SnapshotTestPayload): Promise<SnapshotTestResponse>;
|
|
51
49
|
getDuplicateCameras(params: {
|
|
52
50
|
params: {
|
|
@@ -62,28 +60,24 @@ export declare const AdminApi: {
|
|
|
62
60
|
}, extraConfig?: AxiosRequestConfig): Promise<PaginatedItems<AdminCamera>>;
|
|
63
61
|
getCompares(params: {
|
|
64
62
|
params: AdminCompareQueryParams;
|
|
65
|
-
}): Promise<PaginatedItems<AdminCompare
|
|
63
|
+
}): Promise<PaginatedItems<AdminCompare>>;
|
|
66
64
|
getCameraDetails(exid: string): Promise<AdminCamera>;
|
|
67
65
|
getCameraStatusLogs(exid: string, params: {
|
|
68
66
|
params: {
|
|
69
|
-
from
|
|
70
|
-
to
|
|
67
|
+
from?: string;
|
|
68
|
+
to?: string;
|
|
71
69
|
};
|
|
72
70
|
}): Promise<CameraStatusLog[]>;
|
|
73
71
|
deleteSnapshots(cameraId: string, params: DeleteSnapshotQueryParams): Promise<void>;
|
|
74
|
-
transferCloudRecordings(cameraId: string, params: TransferCloudRecordingsQueryParams): Promise<
|
|
72
|
+
transferCloudRecordings(cameraId: string, params: TransferCloudRecordingsQueryParams): Promise<SnapshotTransfer>;
|
|
75
73
|
refreshDeviceSettings(cameraId: string): Promise<void>;
|
|
76
74
|
saveNote(cameraId: string, params: SaveNotePayload): Promise<CameraNote>;
|
|
77
|
-
saveCameraNote(cameraId: string, params: CreateCameraNotePayload): Promise<
|
|
78
|
-
message: string;
|
|
79
|
-
}>;
|
|
75
|
+
saveCameraNote(cameraId: string, params: CreateCameraNotePayload): Promise<CameraNote>;
|
|
80
76
|
update(cameraId: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
81
77
|
transferOwnership(cameraId: string, newOwnerId: number): Promise<void>;
|
|
82
78
|
portCheck(payload: {
|
|
83
79
|
params: CheckCameraPortPayload;
|
|
84
|
-
}): Promise<
|
|
85
|
-
open: boolean;
|
|
86
|
-
}>;
|
|
80
|
+
}): Promise<CheckCameraPortResponse>;
|
|
87
81
|
};
|
|
88
82
|
companies: {
|
|
89
83
|
show(id: string, config?: AxiosRequestConfig & {
|
|
@@ -96,7 +90,7 @@ export declare const AdminApi: {
|
|
|
96
90
|
getCompanies(params: {
|
|
97
91
|
params: Partial<CompanyQueryParams>;
|
|
98
92
|
}): Promise<PaginatedItems<CompanySummary>>;
|
|
99
|
-
updateCompany(id: string, params: CompanyUpdatePayload): Promise<
|
|
93
|
+
updateCompany(id: string, params: CompanyUpdatePayload): Promise<CompanyUpdateResponse>;
|
|
100
94
|
deleteCompany(params: {
|
|
101
95
|
ids: string | string[];
|
|
102
96
|
}): Promise<{
|
|
@@ -127,18 +121,20 @@ export declare const AdminApi: {
|
|
|
127
121
|
performEmailing(template: string, params: JsonObject): Promise<void>;
|
|
128
122
|
suppressions(params: {
|
|
129
123
|
params: SuppressionsQueryParams;
|
|
130
|
-
}): Promise<PaginatedItems<Suppression
|
|
124
|
+
}): Promise<PaginatedItems<Suppression>>;
|
|
131
125
|
deleteSuppression(id: number): Promise<void>;
|
|
132
126
|
};
|
|
133
127
|
extractions: {
|
|
134
128
|
updateCloudRecordings(cameraId: string, params: JsonObject): Promise<void>;
|
|
135
|
-
addExtraction(cameraId: string, params:
|
|
129
|
+
addExtraction(cameraId: string, params: SnapshotExtractionCreatePayload): Promise<SnapshotExtractionCreatedResponse>;
|
|
136
130
|
deleteSnapshotExtraction(cameraId: string, extractionId: number, params: {
|
|
137
131
|
type: SnapshotExtractionType;
|
|
138
132
|
hardDelete?: boolean;
|
|
139
|
-
}): Promise<
|
|
140
|
-
|
|
141
|
-
|
|
133
|
+
}): Promise<{
|
|
134
|
+
message: string;
|
|
135
|
+
}>;
|
|
136
|
+
getExtraction(cameraExid: string, extractionId: number, type: SnapshotExtractionType): Promise<SnapshotExtraction>;
|
|
137
|
+
reprocessExtraction(cameraId: string, extractionId: number): Promise<SnapshotExtraction>;
|
|
142
138
|
};
|
|
143
139
|
anprExtractions: {
|
|
144
140
|
list(cameraExid: string): Promise<{
|
|
@@ -154,10 +150,10 @@ export declare const AdminApi: {
|
|
|
154
150
|
kits: {
|
|
155
151
|
getAllKits(params: AxiosRequestConfig & {
|
|
156
152
|
params: KitQueryParams;
|
|
157
|
-
}): Promise<PaginatedItems<Kit
|
|
153
|
+
}): Promise<PaginatedItems<Kit>>;
|
|
158
154
|
getKit(kitId: number): Promise<Kit>;
|
|
159
|
-
createKit(params: KitCreatePayload): Promise<
|
|
160
|
-
updateKit(id: string, params: PatchPayload<Kit>): Promise<
|
|
155
|
+
createKit(params: KitCreatePayload): Promise<Kit>;
|
|
156
|
+
updateKit(id: string, params: PatchPayload<Kit>): Promise<Kit>;
|
|
161
157
|
deleteKit(id: string, params: JsonObject): Promise<void>;
|
|
162
158
|
getKitStats({ kitId, metric, fromDate, toDate, }: {
|
|
163
159
|
kitId: number;
|
|
@@ -169,7 +165,7 @@ export declare const AdminApi: {
|
|
|
169
165
|
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
170
166
|
getStorages(params: {
|
|
171
167
|
params: KitStorageRequestPayload;
|
|
172
|
-
}): Promise<PaginatedItems<KitStorage
|
|
168
|
+
}): Promise<PaginatedItems<KitStorage>>;
|
|
173
169
|
getFootage(id: number, params?: {
|
|
174
170
|
params?: KitFootageRequestPayload;
|
|
175
171
|
}): Promise<KitFootage[]>;
|
|
@@ -186,13 +182,13 @@ export declare const AdminApi: {
|
|
|
186
182
|
}): Promise<{
|
|
187
183
|
data: CameraLog[];
|
|
188
184
|
}>;
|
|
189
|
-
getCameraLogs(cameraId: string, params: CameraAuditLogsQueryParams): Promise<PaginatedItems<CameraAuditLog
|
|
190
|
-
togglePinNote(id: string): Promise<PaginatedItems<CameraAuditLog
|
|
185
|
+
getCameraLogs(cameraId: string, params: CameraAuditLogsQueryParams): Promise<PaginatedItems<CameraAuditLog>>;
|
|
186
|
+
togglePinNote(id: string): Promise<PaginatedItems<CameraAuditLog>>;
|
|
191
187
|
};
|
|
192
188
|
nvrs: {
|
|
193
189
|
getNvrs(params: {
|
|
194
190
|
params: NvrQueryParams;
|
|
195
|
-
}): Promise<PaginatedItems<
|
|
191
|
+
}): Promise<PaginatedItems<NvrSetting>>;
|
|
196
192
|
createNvr(params: NvrCreatePayload): Promise<Nvr>;
|
|
197
193
|
updateNvr(id: string, params: PatchPayload<Nvr>): Promise<Nvr>;
|
|
198
194
|
rebootNVR(cameraId: string): Promise<{
|
|
@@ -202,11 +198,11 @@ export declare const AdminApi: {
|
|
|
202
198
|
recycleBin: {
|
|
203
199
|
getAllDeleted(params: {
|
|
204
200
|
params: RecycleBinQueryParams;
|
|
205
|
-
}): Promise<PaginatedItems<RecycleBin
|
|
201
|
+
}): Promise<PaginatedItems<RecycleBin>>;
|
|
206
202
|
restore(params: {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
203
|
+
camera_ids?: number[];
|
|
204
|
+
project_ids?: number[];
|
|
205
|
+
kit_ids?: number[];
|
|
210
206
|
}): Promise<void>;
|
|
211
207
|
};
|
|
212
208
|
offlineCameras: {
|
|
@@ -227,13 +223,17 @@ export declare const AdminApi: {
|
|
|
227
223
|
show(exid: string, params?: WithZohoParams): Promise<{
|
|
228
224
|
data: AdminProjectDetail;
|
|
229
225
|
}>;
|
|
230
|
-
getUsers(id: string): Promise<
|
|
226
|
+
getUsers(id: string): Promise<ProjectMembersResponsePayload>;
|
|
231
227
|
getCameras(id: string): Promise<{
|
|
232
228
|
data: ProjectCamera[];
|
|
233
229
|
}>;
|
|
234
230
|
getProjectsStats(): Promise<ProjectStatusStats>;
|
|
235
|
-
createProject(params: ProjectCreateRequestPayload): Promise<
|
|
236
|
-
|
|
231
|
+
createProject(params: ProjectCreateRequestPayload): Promise<{
|
|
232
|
+
project: ProjectCreateResponse;
|
|
233
|
+
}>;
|
|
234
|
+
updateProject(projectExid: string, params: Partial<ProjectUpdateRequestPayload>): Promise<{
|
|
235
|
+
project: ProjectCreateResponse;
|
|
236
|
+
}>;
|
|
237
237
|
deleteProject(projectExid: string): Promise<{
|
|
238
238
|
success: boolean;
|
|
239
239
|
}>;
|
|
@@ -242,7 +242,7 @@ export declare const AdminApi: {
|
|
|
242
242
|
}): Promise<void>;
|
|
243
243
|
getProjectStorages(params: {
|
|
244
244
|
params: Partial<ProjectStorageQueryParams>;
|
|
245
|
-
}): Promise<PaginatedItems<ProjectStorage
|
|
245
|
+
}): Promise<PaginatedItems<ProjectStorage>>;
|
|
246
246
|
retryProjectStorage(id: number): Promise<{
|
|
247
247
|
message: string;
|
|
248
248
|
}>;
|
|
@@ -250,7 +250,7 @@ export declare const AdminApi: {
|
|
|
250
250
|
routers: {
|
|
251
251
|
getRouters(params: {
|
|
252
252
|
params: Partial<RouterQueryParams>;
|
|
253
|
-
}): Promise<PaginatedItems<Router
|
|
253
|
+
}): Promise<PaginatedItems<Router>>;
|
|
254
254
|
getRouterTypes(): Promise<string[]>;
|
|
255
255
|
createRouter(params: RouterCreatePayload): Promise<{
|
|
256
256
|
routerId: number;
|
|
@@ -275,14 +275,16 @@ export declare const AdminApi: {
|
|
|
275
275
|
params: Partial<HDDsQueryParams>;
|
|
276
276
|
}): Promise<PaginatedItems<AdminHdd>>;
|
|
277
277
|
deleteHdd(hddId: number): Promise<void>;
|
|
278
|
-
saveHdd(params: HDDCreateUpdatePayload): Promise<
|
|
279
|
-
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<
|
|
280
|
-
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<
|
|
278
|
+
saveHdd(params: HDDCreateUpdatePayload): Promise<HddDetail>;
|
|
279
|
+
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<HddDetail>;
|
|
280
|
+
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<HddFootageItem>;
|
|
281
281
|
deleteFootage(hddId: number, footageId: number): Promise<void>;
|
|
282
|
-
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<
|
|
282
|
+
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<HddFootageItem>;
|
|
283
283
|
};
|
|
284
284
|
shares: {
|
|
285
|
-
getInvites(params:
|
|
285
|
+
getInvites(params: {
|
|
286
|
+
params: AdminInviteQueryParams;
|
|
287
|
+
}): Promise<AdminInviteListResponse>;
|
|
286
288
|
};
|
|
287
289
|
sims: {
|
|
288
290
|
deleteSim(simId: number): Promise<{
|
|
@@ -296,21 +298,21 @@ export declare const AdminApi: {
|
|
|
296
298
|
}>;
|
|
297
299
|
getSims(params: {
|
|
298
300
|
params: Partial<SimsQueryParams>;
|
|
299
|
-
}): Promise<PaginatedItems<Sim
|
|
301
|
+
}): Promise<PaginatedItems<Sim>>;
|
|
300
302
|
getSimProviders(): Promise<string[]>;
|
|
301
303
|
getBillPayers(): Promise<string[]>;
|
|
302
304
|
};
|
|
303
305
|
sms: {
|
|
304
306
|
sendSms(number: string, params: SendSmsPayload): Promise<SendSmsResponse>;
|
|
305
|
-
getSimHistory(number: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<
|
|
307
|
+
getSimHistory(number: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<SmsHistory>>;
|
|
306
308
|
getSms(params: {
|
|
307
309
|
params: Partial<SmsQueryParams>;
|
|
308
|
-
}): Promise<PaginatedItems<Sms
|
|
310
|
+
}): Promise<PaginatedItems<Sms>>;
|
|
309
311
|
};
|
|
310
312
|
progressPhotos: {
|
|
311
313
|
getProgressPhotos(params: {
|
|
312
314
|
params: Partial<ProgressPhotosQueryParams>;
|
|
313
|
-
}): Promise<PaginatedItems<ProgressPhotoItem
|
|
315
|
+
}): Promise<PaginatedItems<ProgressPhotoItem>>;
|
|
314
316
|
getProgressPhotosHistory(params: {
|
|
315
317
|
params: Partial<progressPhotosHistoryQueryParams>;
|
|
316
318
|
}): Promise<ProgressPhotosHistory>;
|
|
@@ -319,7 +321,9 @@ export declare const AdminApi: {
|
|
|
319
321
|
}): Promise<{
|
|
320
322
|
progressPhoto: string;
|
|
321
323
|
}>;
|
|
322
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
324
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<{
|
|
325
|
+
progressPhotos: ProgressPhotoItem[];
|
|
326
|
+
}>;
|
|
323
327
|
};
|
|
324
328
|
tags: {
|
|
325
329
|
index(): Promise<Tag[]>;
|
|
@@ -331,7 +335,7 @@ export declare const AdminApi: {
|
|
|
331
335
|
updateUser(id: number, params: Partial<AdminUserUpdateRequestPayload>): Promise<AdminUser>;
|
|
332
336
|
getAdmins(params: {
|
|
333
337
|
params: Partial<AdminQueryParams>;
|
|
334
|
-
}): Promise<PaginatedItems<Admin
|
|
338
|
+
}): Promise<PaginatedItems<Admin>>;
|
|
335
339
|
deleteAdmin(email: string): Promise<void | {
|
|
336
340
|
message: string;
|
|
337
341
|
}>;
|
|
@@ -372,7 +376,7 @@ export declare const AdminApi: {
|
|
|
372
376
|
};
|
|
373
377
|
snapshotTransfers: {
|
|
374
378
|
index(params: AxiosRequestConfig & {
|
|
375
|
-
params: Partial<
|
|
379
|
+
params: Partial<SnapshotTransferIndexParams>;
|
|
376
380
|
}): Promise<PaginatedItems<SnapshotTransfer>>;
|
|
377
381
|
cancel(id: number): Promise<SnapshotTransfer>;
|
|
378
382
|
};
|
package/dist/api/api/aiApi.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare const AiApi: {
|
|
|
29
29
|
};
|
|
30
30
|
roi: {
|
|
31
31
|
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
32
|
+
listROIs(params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
32
33
|
createROI(params: Omit<GateReportRoiRequestPayload, "id"> & {
|
|
33
34
|
createdBy?: string;
|
|
34
35
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from "axios";
|
|
2
|
-
import {
|
|
3
|
-
import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProject, AconexDocumentSchema, AconexDocumentTypeSchema, ApiCredentials, AutodeskFolder, AutodeskProject, AutodeskTokenResponsePayload, AutodeskSnapshot, AutodeskUserHub, AvailableDaysRequestPayload, AvailableDaysResponsePayload, AvailableHoursRequestPayload, AvailableHoursResponsePayload, BatteryReading, BatteryVoltage, BimCompareExportRequestPayload, BimCreationPayload, BIMLayer, BIMLayerPostPayload, BimLayersQueryParams, BimModelRequestPayload, BimModelResponsePayload, BimPendingImage, BimSnapshotRequestPayload, BimSnapshotResponsePayload, BimUploadCameraParameters, CameraLogsResponsePayload, CamerasResponsePayload, CameraStatusLog, CameraUpdateRequestPayload, Comment, CommentCreationRequestPayload, CommentsRequestPayload, CompanyCameraSummary, CompanyProject, CompanyKit, CompanySummary, CompanyUser, Compare, CompareRequestPayload, ConnectorResponsePayload, Credentials, FetchCameraQueryParams, GoogleAuthRequestPayload, LoginRequestPayload, User, Logo, LogoutParams, Media, MediaCreateRequestPayload, MediaFilterQueryParams, MediaUpdateRequestPayload, MediaUsersResponsePayload,
|
|
2
|
+
import { GeoJSONPolygon, ProgressPhotoItemResponsePayload, Project, SwrRequestConfig, UserFeatureFlag } from "@evercam/api/types";
|
|
3
|
+
import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProject, AconexDocumentSchema, AconexDocumentTypeSchema, ApiCredentials, AutodeskFolder, AutodeskProject, AutodeskTokenResponsePayload, AutodeskSnapshot, AutodeskUserHub, AvailableDaysRequestPayload, AvailableDaysResponsePayload, AvailableHoursRequestPayload, AvailableHoursResponsePayload, BatteryReading, BatteryReadingRequestPayload, BatteryVoltage, BimCompareExportRequestPayload, BimCreationPayload, BIMLayer, BIMLayerPostPayload, BimLayersQueryParams, BimModelRequestPayload, BimModelResponsePayload, BimPendingImage, BimSnapshotRequestPayload, BimSnapshotResponsePayload, BimUploadCameraParameters, CameraLogsResponsePayload, CamerasResponsePayload, CameraStatusLog, CameraUpdateRequestPayload, Comment, CommentCreationRequestPayload, CommentsRequestPayload, CompanyCameraSummary, CompanyProject, CompanyKit, CompanySummary, CompanyUser, Compare, CompareRequestPayload, ConnectorResponsePayload, Credentials, FetchCameraQueryParams, GoogleAuthRequestPayload, LoginRequestPayload, User, Logo, LogoutParams, Media, MediaCreateRequestPayload, MediaFilterQueryParams, MediaUpdateRequestPayload, MediaUsersResponsePayload, NearestSnapshotResponsePayload, PaginatedItems, PendingBimImagesParams, ProcessPendingImagesBimParams, ProcoreEditedImageUploadRequestPayload, ProcoreObservationFormRequestPayload, ProcoreObservationTypesResponsePayload, ProcoreProjectsAlbumsPayload, ProcoreProjectRequestPayload, ProcoreUserCompaniesResponsePayload, ProcoreCompanyRequestPayload, ProcoreUserProjectsResponsePayload, ProcoreUserProjectPermissionsResponsePayload, ProcoreObservationAssignee, ProcoreObservationDistributionMember, ProcoreObservationTrades, ProcoreObservationLocation, ProcoreObservationSpecificationSection, ProcoreObservationForm, ProcoreObservationDefaultList, ProcoreObservationListItem, ProcoreCustomFieldOptionsRequestPayload, ProgressPhotosCreateUpdateRequestPayload, ProgressPhotosResponsePayload, ProgressPhotosUnSubscribeParams, ProjectBatteryReading, ProjectCreateResponse, ProjectExid, ProjectLogoResponsePayload, ProjectMembersResponsePayload, ProjectMembersRequestPayload, RemotePasswordUpdateRequestPayload, SessionsListRequestPayload, ShareCreateResponsePayload, ShareDeletionRequestPayload, SharedUsersResponsePayload, UpdateCameraRestrictionPayload, SignupUserRequestPayload, Snapshot, SnapshotRequestPayload, SnapshotRangeRequestPayload, SnapshotRangeResponsePayload, ThumbnailData, TimelapseArchiveResponse, TimelapseCreationRequestPayload, TimelapseCreationResponsePayload, TimelapseSnapshotRequestPayload, TimelapseSnapshotResponsePayload, UpdatePasswordRequestPayload, UserDeleteRequestPayload, UserSession, UserUpdateRequestPayload, VoyageControlConnectorPayload, RingDevicesResponsePayload, RingImportDevicesPayload, RingImportResponsePayload, RingMoveDevicePayload, RingMoveDeviceResponsePayload, RingLiveViewPayload, RingLiveViewResponse, RingStopLiveViewResponse, AuthOptionsResponsePayload, AuthProviderConfigPayload, ConfirmUserRequestPayload, DeleteActiveSessionRequestPayload, ProjectContactsResponsePayload, XWeatherCreatePayload, XWeatherResponse, Widget, WidgetFull, WidgetPayload, WidgetSessionSettingsPayload, WidgetsListRequestPayload, Camera, ProcoreNextObservationAvailableNumber, OAuthClient, OAuthClientWithSecret, OAuthConsentInfo, OAuthConsentPayload, OAuthConsentResponse, CreateOAuthClientPayload, UpdateOAuthClientPayload, PaginationParams, StoryblokResponse, Notification, NotificationsListParams, PlaceholderThumbnailData, ProjectUsersResponsePayload, ProjectTransferOwnershipResponse, ProjectTeamMembersResponse, SnapshotEmailDeliveryRequestPayload, SnapshotEmailDeliveryResponsePayload } from "@evercam/api/types";
|
|
4
4
|
export declare const EvercamApi: {
|
|
5
5
|
apiStatus: {
|
|
6
6
|
getApiStatus(): Promise<void>;
|
|
@@ -53,7 +53,7 @@ export declare const EvercamApi: {
|
|
|
53
53
|
getProjectContacts(projectExid: ProjectExid): Promise<ProjectContactsResponsePayload>;
|
|
54
54
|
};
|
|
55
55
|
notifications: {
|
|
56
|
-
get(): Promise<PaginatedItems<Notification>>;
|
|
56
|
+
get(params?: NotificationsListParams): Promise<PaginatedItems<Notification>>;
|
|
57
57
|
markAllAsRead(): Promise<{
|
|
58
58
|
message: string;
|
|
59
59
|
}>;
|
|
@@ -111,14 +111,12 @@ export declare const EvercamApi: {
|
|
|
111
111
|
getThumbnailData(projectExid: string): Promise<ThumbnailData>;
|
|
112
112
|
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<void>;
|
|
113
113
|
updatePlaceholderThumbnail(projectExid: string, params: {
|
|
114
|
-
placeholder
|
|
114
|
+
placeholder: string;
|
|
115
115
|
}): Promise<{
|
|
116
116
|
message: string;
|
|
117
117
|
}>;
|
|
118
118
|
getPlaceholderThumbnailData(projectExid: string): Promise<PlaceholderThumbnailData>;
|
|
119
|
-
transferOwnership(projectExid: string, newOwnerId: number): Promise<
|
|
120
|
-
message: string;
|
|
121
|
-
}>;
|
|
119
|
+
transferOwnership(projectExid: string, newOwnerId: number): Promise<ProjectTransferOwnershipResponse>;
|
|
122
120
|
getUsers(projectExid: string): Promise<ProjectUsersResponsePayload>;
|
|
123
121
|
getCameras(projectExid: string): Promise<{
|
|
124
122
|
cameras: Camera[];
|
|
@@ -126,16 +124,16 @@ export declare const EvercamApi: {
|
|
|
126
124
|
getCameraRefs(projectExid: string): Promise<{
|
|
127
125
|
cameras: Camera[];
|
|
128
126
|
}>;
|
|
129
|
-
getTeamMembers(): Promise<
|
|
127
|
+
getTeamMembers(): Promise<ProjectTeamMembersResponse>;
|
|
130
128
|
getMembers(projectExid: string): Promise<ProjectMembersResponsePayload>;
|
|
131
|
-
inviteMembers(projectExid: string, payload: ProjectMembersRequestPayload): Promise<
|
|
129
|
+
inviteMembers(projectExid: string, payload: ProjectMembersRequestPayload): Promise<ProjectMembersResponsePayload>;
|
|
132
130
|
removeMembers(projectExid: string, emails: string[]): Promise<void>;
|
|
133
|
-
updateMembersRole(projectExid: string, payload: ProjectMembersRequestPayload): Promise<
|
|
131
|
+
updateMembersRole(projectExid: string, payload: ProjectMembersRequestPayload): Promise<ProjectMembersResponsePayload>;
|
|
134
132
|
};
|
|
135
133
|
timelapse: {
|
|
136
134
|
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
137
135
|
createTimelapse(projectExid: string, payload: TimelapseCreationRequestPayload): Promise<TimelapseCreationResponsePayload>;
|
|
138
|
-
cUpdate(projectExid: string, id: string | number, payload: MediaUpdateRequestPayload): Promise<
|
|
136
|
+
cUpdate(projectExid: string, id: string | number, payload: MediaUpdateRequestPayload): Promise<TimelapseArchiveResponse>;
|
|
139
137
|
cDelete(projectExid: string, id: number): Promise<void>;
|
|
140
138
|
};
|
|
141
139
|
compares: {
|
|
@@ -154,9 +152,9 @@ export declare const EvercamApi: {
|
|
|
154
152
|
authenticate(payload: AconexAuthCallbackParams): Promise<void>;
|
|
155
153
|
getUserProjects(): Promise<AconexUserProject[]>;
|
|
156
154
|
revoke(): Promise<void>;
|
|
157
|
-
uploadEditedSnapshot(projectId:
|
|
158
|
-
getDocumentSchema(projectId:
|
|
159
|
-
getDocumentTypeSchema(projectId:
|
|
155
|
+
uploadEditedSnapshot(projectId: string, payload: AconexEditedImageUploadRequestPayload): Promise<void>;
|
|
156
|
+
getDocumentSchema(projectId: string): Promise<AconexDocumentSchema[]>;
|
|
157
|
+
getDocumentTypeSchema(projectId: string, documentTypeId: string): Promise<AconexDocumentTypeSchema[]>;
|
|
160
158
|
};
|
|
161
159
|
procore: {
|
|
162
160
|
getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
|
|
@@ -213,9 +211,9 @@ export declare const EvercamApi: {
|
|
|
213
211
|
revoke(projectExid: string): Promise<void>;
|
|
214
212
|
};
|
|
215
213
|
recordings: {
|
|
216
|
-
oldest(cameraId: string, payload?:
|
|
217
|
-
latest(cameraId: string, payload?:
|
|
218
|
-
nearest(cameraId: string, timestamp: string, payload?:
|
|
214
|
+
oldest(cameraId: string, payload?: SnapshotRequestPayload): Promise<Snapshot>;
|
|
215
|
+
latest(cameraId: string, payload?: SnapshotRequestPayload): Promise<Snapshot>;
|
|
216
|
+
nearest(cameraId: string, timestamp: string, payload?: SnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<NearestSnapshotResponsePayload>;
|
|
219
217
|
availableDays({ cameraId, year, month, payload, cancelToken, }: AvailableDaysRequestPayload): Promise<AvailableDaysResponsePayload>;
|
|
220
218
|
availableHours({ cameraId, year, month, day, payload, cancelToken, }: AvailableHoursRequestPayload): Promise<AvailableHoursResponsePayload>;
|
|
221
219
|
getSnapshot(cameraId: string, dateTime: string): Promise<SnapshotRangeResponsePayload>;
|
|
@@ -225,8 +223,8 @@ export declare const EvercamApi: {
|
|
|
225
223
|
index(projectId: string): Promise<ProgressPhotosResponsePayload>;
|
|
226
224
|
show(id: string): Promise<ProgressPhotoItemResponsePayload>;
|
|
227
225
|
create(payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
|
|
228
|
-
update(id: string | number, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
229
|
-
unsubscribe(progressPhotoId: string, params: ProgressPhotosUnSubscribeParams): Promise<
|
|
226
|
+
update(id: string | number, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
|
|
227
|
+
unsubscribe(progressPhotoId: string, params: ProgressPhotosUnSubscribeParams): Promise<void>;
|
|
230
228
|
delete(id: string, params?: ApiCredentials): Promise<void>;
|
|
231
229
|
};
|
|
232
230
|
mediaHub: {
|
|
@@ -248,16 +246,18 @@ export declare const EvercamApi: {
|
|
|
248
246
|
show(companyId: string | undefined, params?: {
|
|
249
247
|
with_zoho?: boolean;
|
|
250
248
|
}): Promise<CompanySummary>;
|
|
251
|
-
getCompanyUsers(params
|
|
249
|
+
getCompanyUsers(params?: {
|
|
252
250
|
params: {
|
|
253
|
-
page
|
|
254
|
-
limit
|
|
251
|
+
page?: number;
|
|
252
|
+
limit?: number;
|
|
253
|
+
sort?: string;
|
|
255
254
|
};
|
|
256
255
|
}): Promise<PaginatedItems<CompanyUser>>;
|
|
257
|
-
getCompanyProjects(params
|
|
256
|
+
getCompanyProjects(params?: {
|
|
258
257
|
params: {
|
|
259
|
-
page
|
|
260
|
-
limit
|
|
258
|
+
page?: number;
|
|
259
|
+
limit?: number;
|
|
260
|
+
sort?: string;
|
|
261
261
|
};
|
|
262
262
|
}): Promise<PaginatedItems<CompanyProject>>;
|
|
263
263
|
getCompanyCameras(params: PaginationParams | {
|
|
@@ -272,10 +272,7 @@ export declare const EvercamApi: {
|
|
|
272
272
|
};
|
|
273
273
|
batteries: {
|
|
274
274
|
ProjectBatteryReadings(projectExid: string): Promise<ProjectBatteryReading[]>;
|
|
275
|
-
batteryReadings(cameraExid: string, params:
|
|
276
|
-
fromDate: string;
|
|
277
|
-
toDate: string;
|
|
278
|
-
}): Promise<PaginatedItems<BatteryReading>>;
|
|
275
|
+
batteryReadings(cameraExid: string, params: BatteryReadingRequestPayload): Promise<PaginatedItems<BatteryReading>>;
|
|
279
276
|
readingsVoltageSummary(cameraExid: string, params: {
|
|
280
277
|
fromDate: string;
|
|
281
278
|
toDate: string;
|
|
@@ -88,6 +88,9 @@ export declare const IngestApi: {
|
|
|
88
88
|
name: string;
|
|
89
89
|
}, payload: BimUploadPayload): Promise<void>;
|
|
90
90
|
};
|
|
91
|
+
webhook: {
|
|
92
|
+
notifyBimUpdated(projectId: string, bimIdentifier: string): Promise<void>;
|
|
93
|
+
};
|
|
91
94
|
mobileCapture: {
|
|
92
95
|
getProjectMobileAssets(params: MobileAssetsQueryParams, extraConfig?: AxiosRequestConfig): Promise<MobileCaptureAssetsResponse>;
|
|
93
96
|
getMobileAssetPhoto(assetId: string | number, params: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type AconexUserProject = {
|
|
2
|
-
id:
|
|
2
|
+
id: string;
|
|
3
3
|
name: string;
|
|
4
4
|
shortName: string;
|
|
5
5
|
startDate: string;
|
|
@@ -24,6 +24,7 @@ export type AconexDocumentTypeSchema = {
|
|
|
24
24
|
fieldName: string;
|
|
25
25
|
modifiedFieldName?: string;
|
|
26
26
|
mandatoryStatus: AconexMandatoryStatus;
|
|
27
|
+
hintText?: string;
|
|
27
28
|
specifications?: Array<AconexFieldSpecification>;
|
|
28
29
|
};
|
|
29
30
|
export type AconexDocumentSchemaField = {
|
|
@@ -29,6 +29,22 @@ export type AdminInviteAuthContext = {
|
|
|
29
29
|
subRoles: AdminInviteAuthContextSubRole[];
|
|
30
30
|
hasOverride: boolean;
|
|
31
31
|
};
|
|
32
|
+
export type AdminInviteQueryParams = {
|
|
33
|
+
page?: number;
|
|
34
|
+
limit?: number;
|
|
35
|
+
email?: string;
|
|
36
|
+
status?: number;
|
|
37
|
+
resourceId?: string;
|
|
38
|
+
resourceType?: "camera" | "project";
|
|
39
|
+
sort?: string;
|
|
40
|
+
};
|
|
41
|
+
export type AdminInviteListResponse = {
|
|
42
|
+
invites: AdminInvite[];
|
|
43
|
+
total: number;
|
|
44
|
+
page: number;
|
|
45
|
+
perPage: number;
|
|
46
|
+
totalPages: number;
|
|
47
|
+
};
|
|
32
48
|
export type AdminInvite = {
|
|
33
49
|
id: number;
|
|
34
50
|
message: string | null;
|
|
@@ -36,13 +52,13 @@ export type AdminInvite = {
|
|
|
36
52
|
email: string;
|
|
37
53
|
key: string;
|
|
38
54
|
updatedAt: string;
|
|
39
|
-
role: AdminInviteRole;
|
|
55
|
+
role: AdminInviteRole | null;
|
|
40
56
|
createdAt: string;
|
|
41
57
|
resourceId: string;
|
|
42
|
-
assigner: AdminInviteAssigner;
|
|
58
|
+
assigner: AdminInviteAssigner | null;
|
|
43
59
|
sentCount: number;
|
|
44
|
-
lastSentAt: string;
|
|
45
|
-
authContext: AdminInviteAuthContext;
|
|
60
|
+
lastSentAt: string | null;
|
|
61
|
+
authContext: AdminInviteAuthContext | null;
|
|
46
62
|
statusName: string;
|
|
47
63
|
};
|
|
48
64
|
export type ZohoDeskTicketSearchResponse = {
|
|
@@ -606,5 +606,6 @@ export declare enum AnalyticsEvent {
|
|
|
606
606
|
ForgeBimReplaceModelCancelled = "ForgeBim-ReplaceModelCancelled",
|
|
607
607
|
ForgeBimModelAdded = "ForgeBim-ModelAdded",
|
|
608
608
|
ForgeBimModelUpdated = "ForgeBim-ModelUpdated",
|
|
609
|
-
ForgeBimModelSaveFailed = "ForgeBim-ModelSaveFailed"
|
|
609
|
+
ForgeBimModelSaveFailed = "ForgeBim-ModelSaveFailed",
|
|
610
|
+
ForgeBimIngestNotificationFailed = "ForgeBim-IngestNotificationFailed"
|
|
610
611
|
}
|
package/dist/api/types/anpr.d.ts
CHANGED
|
@@ -51,30 +51,36 @@ export declare enum AuditLogEntity {
|
|
|
51
51
|
Oauth = "oauth",
|
|
52
52
|
StorageProviders = "storage_providers"
|
|
53
53
|
}
|
|
54
|
+
export type AuditLogUserDetails = {
|
|
55
|
+
agent?: string;
|
|
56
|
+
country?: string;
|
|
57
|
+
countryCode?: string;
|
|
58
|
+
ip?: string;
|
|
59
|
+
impersonatedBy?: string;
|
|
60
|
+
who?: string;
|
|
61
|
+
};
|
|
54
62
|
export type AuditLog = {
|
|
55
63
|
id: number;
|
|
56
64
|
action: AuditLogActionType;
|
|
57
|
-
details: Record<string,
|
|
65
|
+
details: Record<string, unknown>;
|
|
58
66
|
insertedAt: DateType;
|
|
59
67
|
entity: string;
|
|
60
|
-
|
|
61
|
-
browser: string;
|
|
62
|
-
country: string;
|
|
63
|
-
countryCode: string;
|
|
64
|
-
device: string | null;
|
|
65
|
-
ip: string;
|
|
66
|
-
os: string | null;
|
|
67
|
-
};
|
|
68
|
+
userDetails: AuditLogUserDetails;
|
|
68
69
|
who: string;
|
|
69
70
|
};
|
|
70
71
|
export type AuditLogsParams = PaginationParams & {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
from?: string;
|
|
73
|
+
to?: string;
|
|
74
|
+
action?: string[];
|
|
75
|
+
entity?: string[];
|
|
76
|
+
userId?: number;
|
|
77
|
+
userEmail?: string;
|
|
78
|
+
cameraId?: number;
|
|
79
|
+
routerId?: number;
|
|
80
|
+
byCamera?: string;
|
|
81
|
+
byRouter?: string;
|
|
82
|
+
byProject?: string;
|
|
83
|
+
byIp?: string;
|
|
78
84
|
};
|
|
79
85
|
export type CameraLogsQueryParams = {
|
|
80
86
|
historyDays: number;
|
|
@@ -83,35 +89,36 @@ export type CameraLogsQueryParams = {
|
|
|
83
89
|
};
|
|
84
90
|
export type CameraLogItem = {
|
|
85
91
|
start: DateType;
|
|
86
|
-
state: CameraStatus;
|
|
87
92
|
end: DateType;
|
|
93
|
+
state: CameraStatus;
|
|
94
|
+
status?: string;
|
|
88
95
|
};
|
|
89
96
|
export type CameraLog = {
|
|
90
97
|
data: CameraLogItem[];
|
|
91
98
|
measure: string;
|
|
92
99
|
};
|
|
93
100
|
export type CameraAuditLog = {
|
|
94
|
-
id: number;
|
|
95
|
-
action: AuditLogActionType;
|
|
96
|
-
details: {
|
|
97
|
-
error_body?: string;
|
|
98
|
-
exid: string;
|
|
99
|
-
id: number;
|
|
100
|
-
name: string;
|
|
101
|
-
reason?: string;
|
|
102
|
-
};
|
|
103
|
-
insertedAt: DateType;
|
|
104
|
-
entity: string;
|
|
105
|
-
user_details: {
|
|
106
|
-
ip: string;
|
|
107
|
-
country: string;
|
|
108
|
-
countryCode: string;
|
|
109
|
-
agent: string;
|
|
110
|
-
};
|
|
111
101
|
who: string;
|
|
102
|
+
action: string;
|
|
103
|
+
userDetails: {
|
|
104
|
+
agent?: string;
|
|
105
|
+
country?: string;
|
|
106
|
+
countryCode?: string;
|
|
107
|
+
ip?: string;
|
|
108
|
+
}[];
|
|
109
|
+
details: Record<string, unknown>[];
|
|
110
|
+
entity: string;
|
|
111
|
+
insertedAt: DateType;
|
|
112
112
|
};
|
|
113
113
|
export type CameraAuditLogsQueryParams = PaginationParams & {
|
|
114
|
-
from
|
|
115
|
-
to
|
|
116
|
-
action
|
|
114
|
+
from?: string;
|
|
115
|
+
to?: string;
|
|
116
|
+
action?: string[];
|
|
117
|
+
entity?: string[];
|
|
118
|
+
userId?: number;
|
|
119
|
+
cameraId?: number;
|
|
120
|
+
routerId?: number;
|
|
121
|
+
byCamera?: string;
|
|
122
|
+
byRouter?: string;
|
|
123
|
+
byProject?: string;
|
|
117
124
|
};
|