@evercam/api 1.0.0-e405b2c39 → 1.0.0-e424632fd
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 +67 -37
- package/dist/api/api/aiApi.d.ts +57 -53
- package/dist/api/api/authzApi.d.ts +23 -16
- package/dist/api/api/client/axios.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +110 -71
- package/dist/api/api/evercamLabsApi.d.ts +4 -5
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +99 -47
- package/dist/api/api/ptzApi.d.ts +9 -4
- package/dist/api/api/videoWallApi.d.ts +2 -2
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +4 -2
- package/dist/api/types/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +84 -48
- package/dist/api/types/anpr.d.ts +19 -2
- package/dist/api/types/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +44 -6
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +37 -3
- package/dist/api/types/axios.d.ts +10 -6
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +87 -73
- package/dist/api/types/comments.d.ts +4 -8
- package/dist/api/types/company.d.ts +42 -1
- package/dist/api/types/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +3 -5
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/copilot.d.ts +11 -6
- package/dist/api/types/detections.d.ts +20 -8
- package/dist/api/types/drone.d.ts +1 -0
- package/dist/api/types/gateReport.d.ts +45 -57
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +6 -1
- package/dist/api/types/ingest.d.ts +98 -2
- package/dist/api/types/kit.d.ts +14 -7
- package/dist/api/types/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +32 -2
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +44 -0
- package/dist/api/types/posthog.d.ts +15 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +6 -2
- package/dist/api/types/project.d.ts +95 -21
- package/dist/api/types/recording.d.ts +3 -3
- package/dist/api/types/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/router.d.ts +1 -1
- package/dist/api/types/shared.d.ts +16 -4
- package/dist/api/types/shares.d.ts +1 -1
- package/dist/api/types/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +79 -39
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +36 -4
- 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 +3 -3
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +0 -18
- package/dist/api/types/timelapse.d.ts +12 -5
- package/dist/api/types/user.d.ts +101 -31
- package/dist/api/types/videoWall.d.ts +21 -21
- package/dist/api/types/weather.d.ts +75 -11
- package/dist/api/types/widget.d.ts +71 -12
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/index.js +858 -668
- 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 +115 -13
- package/dist/shared/types/imagePlayer.d.ts +1 -1
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +2 -2
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "
|
|
2
|
-
import type {
|
|
1
|
+
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "@evercam/api/types/hdd";
|
|
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, StorageProvidersResponsePayload, MediaFilterQueryParams, Media, MediaDeleteRequestPayload, AuditLogsParams, AuditLog, SnapshotExtractionQyeryParams, SnapshotExtraction, CameraCreateRequestPayload, CameraDeletePayload, SnapshotTestPayload, SnapshotTestResponse, DuplicatedCameraFields, DuplicatedCameraResponse, MergeDuplicatedCameraPayload, FetchCameraQueryParams, DeleteSnapshotQueryParams, SaveNotePayload, CameraNote, CreateCameraNotePayload, CompanyQueryParams, CompanySummary, CompanyUpdatePayload, SsoProvider, SsoUpdatePayload, SsoCreatePayload, SuppressionsQueryParams, Suppression, SnapshotExtractionType, KitQueryParams, KitCreatePayload, AdminKit, KitMetricStatsEntry, CameraLogsQueryParams, CameraLog, CameraAuditLogsQueryParams, CameraAuditLog, NvrQueryParams, Nvr, SiteVisitCamerasQueryParams, OfflineCameraQueryParams, OfflineCamera, OfflineCameraNoteResponse, UserStatsResponse, UserCameraResponse, UserProjectResponse, ProjectUsers, ProjectCamera, ProjectsQueryParams, ProjectStatusStats, ProjectCreateRequestPayload, ProjectCreateResponse, ProjectUpdateRequestPayload, RouterQueryParams, Router, RouterCreatePayload, GlobalSearchQueryParams, SimCreateUpdatePayload, SimsQueryParams, Sim, SendSmsPayload, SendSmsResponse, SmsHistoryResponse, SmsQueryParams, Sms, ProgressPhotosQueryParams, ProgressPhotoItem, progressPhotosHistoryQueryParams, ProgressPhotosHistory, AdminUserUpdateRequestPayload, AdminQueryParams, Admin, ImpersonateUserResponse, AdminUserQueryParams, AdminCompareQueryParams, AdminCompare, NvrCreatePayload, WidgetsListRequestPayload, AdminWidget, AdminWidgetFull, WidgetPayload, PaginationParams, KitStorageRequestPayload, AdminCompanyUser, AdminCompanyProject, CompanyKit, CompanyCameraSummary, Automation, KitStorage, KitFootageRequestPayload, CommentsListRequestPayload, Comment, KitFootage, KitAlarmItem, RecycleBin, RecycleBinQueryParams, TransferCloudRecordingsQueryParams, SnapshotTransfer, CheckCameraPortPayload, CameraStatusLog, KitBox, KitBoxCreatePayload, KitBoxQueryParams, AdminInvite, AdminSearchItem, WithZohoParams, ZohoDeskTicketSearchResponse, JsonObject, ProjectStorageQueryParams, ProjectStorage, StorageProvider } from "@evercam/api/types";
|
|
3
4
|
import { KitMetricId } from "@evercam/api/types";
|
|
4
|
-
import { Tag } from "
|
|
5
|
+
import { Tag } from "@evercam/api/types/tag";
|
|
5
6
|
import type { AxiosRequestConfig } from "axios";
|
|
6
7
|
type AxiosPaginationRequestParams = AxiosRequestConfig & {
|
|
7
8
|
params: PaginationParams;
|
|
@@ -30,8 +31,12 @@ export declare const AdminApi: {
|
|
|
30
31
|
focusCamera(cameraId: string, device: string): Promise<{
|
|
31
32
|
message: string;
|
|
32
33
|
}>;
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
getStorageProviders(cameraId: string, params?: AxiosRequestConfig & {
|
|
35
|
+
unmaskSecretKeys: boolean;
|
|
36
|
+
}): Promise<StorageProvidersResponsePayload>;
|
|
37
|
+
createStorageProvider(cameraId: string, payload: StorageProvider): Promise<StorageProvidersResponsePayload>;
|
|
38
|
+
updateStorageProvider(cameraId: string, providerId: number, payload: StorageProvider): Promise<StorageProvidersResponsePayload>;
|
|
39
|
+
getStorageDetails(): Promise<JsonObject>;
|
|
35
40
|
getSnapshotExtractions(params: AxiosRequestConfig & {
|
|
36
41
|
params: Partial<SnapshotExtractionQyeryParams>;
|
|
37
42
|
}): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
@@ -81,14 +86,16 @@ export declare const AdminApi: {
|
|
|
81
86
|
}>;
|
|
82
87
|
};
|
|
83
88
|
companies: {
|
|
84
|
-
show(id: string,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
show(id: string, config?: AxiosRequestConfig & {
|
|
90
|
+
params?: WithZohoParams;
|
|
91
|
+
}): Promise<CompanySummary>;
|
|
92
|
+
getCompanyUsers(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminCompanyUser>>;
|
|
93
|
+
getCompanyProjects(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminCompanyProject>>;
|
|
94
|
+
getCompanyKits(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<CompanyKit>>;
|
|
95
|
+
getCompanyCameras(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<CompanyCameraSummary>>;
|
|
89
96
|
getCompanies(params: {
|
|
90
97
|
params: Partial<CompanyQueryParams>;
|
|
91
|
-
}): Promise<PaginatedItems<
|
|
98
|
+
}): Promise<PaginatedItems<CompanySummary>>;
|
|
92
99
|
updateCompany(id: string, params: CompanyUpdatePayload): Promise<Omit<CompanyUpdatePayload, "linkedinUrl">>;
|
|
93
100
|
deleteCompany(params: {
|
|
94
101
|
ids: string | string[];
|
|
@@ -111,15 +118,25 @@ export declare const AdminApi: {
|
|
|
111
118
|
success: true;
|
|
112
119
|
}>;
|
|
113
120
|
};
|
|
121
|
+
oauthClients: {
|
|
122
|
+
index(): Promise<{
|
|
123
|
+
items: OAuthClient[];
|
|
124
|
+
}>;
|
|
125
|
+
show(id: number): Promise<OAuthClient>;
|
|
126
|
+
create(payload: AdminCreateOAuthClientPayload): Promise<OAuthClientWithSecret>;
|
|
127
|
+
update(id: number, payload: UpdateOAuthClientPayload): Promise<OAuthClient>;
|
|
128
|
+
delete(id: number): Promise<void>;
|
|
129
|
+
regenerateSecret(id: number): Promise<OAuthClientWithSecret>;
|
|
130
|
+
};
|
|
114
131
|
emailing: {
|
|
115
|
-
performEmailing(template: string, params:
|
|
132
|
+
performEmailing(template: string, params: JsonObject): Promise<void>;
|
|
116
133
|
suppressions(params: {
|
|
117
134
|
params: SuppressionsQueryParams;
|
|
118
135
|
}): Promise<PaginatedItems<Suppression[]>>;
|
|
119
136
|
deleteSuppression(id: number): Promise<void>;
|
|
120
137
|
};
|
|
121
138
|
extractions: {
|
|
122
|
-
updateCloudRecordings(cameraId: string, params:
|
|
139
|
+
updateCloudRecordings(cameraId: string, params: JsonObject): Promise<void>;
|
|
123
140
|
addExtraction(cameraId: string, params: SnapshotExtractionQyeryParams): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
124
141
|
getExtractionStatus(cameraId: string, extractionId: number, params: {
|
|
125
142
|
type: SnapshotExtractionType;
|
|
@@ -138,13 +155,13 @@ export declare const AdminApi: {
|
|
|
138
155
|
getKit(kitId: number): Promise<Kit>;
|
|
139
156
|
createKit(params: KitCreatePayload): Promise<AdminKit>;
|
|
140
157
|
updateKit(id: string, params: PatchPayload<Kit>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
141
|
-
deleteKit(id: string, params:
|
|
158
|
+
deleteKit(id: string, params: JsonObject): Promise<void>;
|
|
142
159
|
getKitStats({ kitId, metric, fromDate, toDate, }: {
|
|
143
160
|
kitId: number;
|
|
144
161
|
metric: KitMetricId;
|
|
145
162
|
fromDate: string;
|
|
146
163
|
toDate: string;
|
|
147
|
-
}): Promise<
|
|
164
|
+
}): Promise<KitMetricStatsEntry[]>;
|
|
148
165
|
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
149
166
|
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
150
167
|
getStorages(params: {
|
|
@@ -158,6 +175,7 @@ export declare const AdminApi: {
|
|
|
158
175
|
params: Partial<KitBoxQueryParams>;
|
|
159
176
|
}): Promise<PaginatedItems<KitBox>>;
|
|
160
177
|
createBox(params: KitBoxCreatePayload): Promise<KitBox>;
|
|
178
|
+
updateBox(id: string, params: KitBoxCreatePayload): Promise<KitBox>;
|
|
161
179
|
};
|
|
162
180
|
logs: {
|
|
163
181
|
getAllCamerasStatusLogs(params: {
|
|
@@ -172,8 +190,8 @@ export declare const AdminApi: {
|
|
|
172
190
|
getNvrs(params: {
|
|
173
191
|
params: NvrQueryParams;
|
|
174
192
|
}): Promise<PaginatedItems<Nvr[]>>;
|
|
175
|
-
createNvr(params: NvrCreatePayload): Promise<
|
|
176
|
-
updateNvr(id: string, params: PatchPayload<Nvr>): Promise<
|
|
193
|
+
createNvr(params: NvrCreatePayload): Promise<Nvr>;
|
|
194
|
+
updateNvr(id: string, params: PatchPayload<Nvr>): Promise<Nvr>;
|
|
177
195
|
rebootNVR(cameraId: string): Promise<{
|
|
178
196
|
message: string;
|
|
179
197
|
}>;
|
|
@@ -202,9 +220,9 @@ export declare const AdminApi: {
|
|
|
202
220
|
projects: {
|
|
203
221
|
index(params: {
|
|
204
222
|
params: Partial<ProjectsQueryParams>;
|
|
205
|
-
}): Promise<PaginatedItems<
|
|
206
|
-
show(exid: string, params?:
|
|
207
|
-
data:
|
|
223
|
+
}): Promise<PaginatedItems<AdminProjectListItem>>;
|
|
224
|
+
show(exid: string, params?: WithZohoParams): Promise<{
|
|
225
|
+
data: AdminProjectDetail;
|
|
208
226
|
}>;
|
|
209
227
|
getUsers(id: string): Promise<ProjectUsers>;
|
|
210
228
|
getCameras(id: string): Promise<{
|
|
@@ -219,6 +237,12 @@ export declare const AdminApi: {
|
|
|
219
237
|
addToProject(projectExid: string, params: {
|
|
220
238
|
cameraExids: string[];
|
|
221
239
|
}): Promise<void>;
|
|
240
|
+
getProjectStorages(params: {
|
|
241
|
+
params: Partial<ProjectStorageQueryParams>;
|
|
242
|
+
}): Promise<PaginatedItems<ProjectStorage[]>>;
|
|
243
|
+
retryProjectStorage(id: number): Promise<{
|
|
244
|
+
message: string;
|
|
245
|
+
}>;
|
|
222
246
|
};
|
|
223
247
|
routers: {
|
|
224
248
|
getRouters(params: {
|
|
@@ -237,25 +261,25 @@ export declare const AdminApi: {
|
|
|
237
261
|
search: {
|
|
238
262
|
search(params: {
|
|
239
263
|
params: GlobalSearchQueryParams;
|
|
240
|
-
}): Promise<PaginatedItems<
|
|
264
|
+
}): Promise<PaginatedItems<AdminSearchItem>>;
|
|
241
265
|
};
|
|
242
266
|
hdds: {
|
|
243
267
|
getHdds(payload: {
|
|
244
268
|
projectId: string;
|
|
245
269
|
companyId: string;
|
|
246
|
-
}): Promise<
|
|
270
|
+
}): Promise<AdminHdd[]>;
|
|
247
271
|
getAllHdds(params: {
|
|
248
272
|
params: Partial<HDDsQueryParams>;
|
|
249
|
-
}): Promise<
|
|
250
|
-
deleteHdd(hddId: number): Promise<
|
|
251
|
-
saveHdd(params: HDDCreateUpdatePayload): Promise<
|
|
252
|
-
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<
|
|
253
|
-
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<
|
|
254
|
-
deleteFootage(hddId: number, footageId: number): Promise<
|
|
255
|
-
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<
|
|
273
|
+
}): Promise<PaginatedItems<AdminHdd>>;
|
|
274
|
+
deleteHdd(hddId: number): Promise<void>;
|
|
275
|
+
saveHdd(params: HDDCreateUpdatePayload): Promise<void>;
|
|
276
|
+
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<void>;
|
|
277
|
+
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<void>;
|
|
278
|
+
deleteFootage(hddId: number, footageId: number): Promise<void>;
|
|
279
|
+
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<void>;
|
|
256
280
|
};
|
|
257
281
|
shares: {
|
|
258
|
-
getInvites(params:
|
|
282
|
+
getInvites(params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminInvite>>;
|
|
259
283
|
};
|
|
260
284
|
sims: {
|
|
261
285
|
deleteSim(simId: number): Promise<{
|
|
@@ -270,8 +294,8 @@ export declare const AdminApi: {
|
|
|
270
294
|
getSims(params: {
|
|
271
295
|
params: Partial<SimsQueryParams>;
|
|
272
296
|
}): Promise<PaginatedItems<Sim[]>>;
|
|
273
|
-
getSimProviders(): Promise<
|
|
274
|
-
getBillPayers(): Promise<
|
|
297
|
+
getSimProviders(): Promise<string[]>;
|
|
298
|
+
getBillPayers(): Promise<string[]>;
|
|
275
299
|
};
|
|
276
300
|
sms: {
|
|
277
301
|
sendSms(number: string, params: SendSmsPayload): Promise<SendSmsResponse>;
|
|
@@ -320,7 +344,7 @@ export declare const AdminApi: {
|
|
|
320
344
|
getUsers(params: {
|
|
321
345
|
params: Partial<AdminUserQueryParams>;
|
|
322
346
|
}): Promise<PaginatedItems<AdminUser>>;
|
|
323
|
-
show(id: number, params
|
|
347
|
+
show(id: number, params?: WithZohoParams): Promise<UserStatsResponse>;
|
|
324
348
|
getProjects(id: number): Promise<UserProjectResponse>;
|
|
325
349
|
getCameras(id: number): Promise<UserCameraResponse>;
|
|
326
350
|
getUserPasswordResetLink(email: string): Promise<{
|
|
@@ -330,18 +354,24 @@ export declare const AdminApi: {
|
|
|
330
354
|
widgets: {
|
|
331
355
|
index(params: {
|
|
332
356
|
params: Partial<WidgetsListRequestPayload>;
|
|
333
|
-
}): Promise<PaginatedItems<
|
|
334
|
-
show(id: number): Promise<
|
|
335
|
-
update(id: number, payload: WidgetPayload): Promise<
|
|
357
|
+
}): Promise<PaginatedItems<AdminWidget>>;
|
|
358
|
+
show(id: number): Promise<AdminWidgetFull>;
|
|
359
|
+
update(id: number, payload: WidgetPayload): Promise<AdminWidgetFull>;
|
|
336
360
|
delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
337
361
|
};
|
|
338
362
|
zohoDesk: {
|
|
339
|
-
searchTickets(params:
|
|
363
|
+
searchTickets(params: JsonObject): Promise<ZohoDeskTicketSearchResponse>;
|
|
340
364
|
};
|
|
341
365
|
comments: {
|
|
342
366
|
index(params: {
|
|
343
367
|
params: Partial<CommentsListRequestPayload>;
|
|
344
368
|
}): Promise<PaginatedItems<Comment>>;
|
|
345
369
|
};
|
|
370
|
+
snapshotTransfers: {
|
|
371
|
+
index(params: AxiosRequestConfig & {
|
|
372
|
+
params: Partial<TransferCloudRecordingsQueryParams>;
|
|
373
|
+
}): Promise<PaginatedItems<SnapshotTransfer>>;
|
|
374
|
+
cancel(id: number): Promise<SnapshotTransfer>;
|
|
375
|
+
};
|
|
346
376
|
};
|
|
347
377
|
export {};
|
package/dist/api/api/aiApi.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, VerifiedDaysQueryParams, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams,
|
|
1
|
+
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, VerifiedDaysQueryParams, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, RoisQueryParams, GateReportRoiRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsCountsParams, DetectionsPresenceByLabel, SmartSearchBackendQueryPayload, SavedQuery, DateType, DetectionsRequestParams, DetectionsGroup, DetectionsCountsByPeriod, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchBackendQuery, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel, SmartSearchResponse, SmartSearchRequestPayload, LegacyAnprExportParams, AnprBulkUpdateRequestPayload, AnprUpdateRequestPayload, SmartSearchQueriesRequestPayload, _360FloorId, CreateCoolifyAppRequestPayload, RegisterCoolifyAppResponsePayload, SaveCoolifyAppRequestPayload, SegmentsCountsParams, SegmentsPresenceResponse } from "@evercam/api/types";
|
|
2
2
|
import type { AxiosPromise, AxiosRequestConfig } from "axios";
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
3
|
+
export declare const getAiApiUrl: () => string;
|
|
4
|
+
export declare const getAiApiUrlV2: () => string;
|
|
5
5
|
export declare const AiApi: {
|
|
6
6
|
anpr: {
|
|
7
|
-
exportAnprLegacyEvents(projectExid: ProjectExid, params:
|
|
7
|
+
exportAnprLegacyEvents(projectExid: ProjectExid, params: LegacyAnprExportParams): AxiosPromise<any>;
|
|
8
8
|
getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<AnprEvent>>;
|
|
9
9
|
getAnprCounts(projectExid: ProjectExid, payload: AnprCountsQueryParams, extraParams?: AxiosRequestConfig): Promise<AnprCount[]>;
|
|
10
|
-
updateAnprEvent(anprEventId: string,
|
|
11
|
-
bulkUpdateAnprRecords(
|
|
10
|
+
updateAnprEvent(anprEventId: string, payload: AnprUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
+
bulkUpdateAnprRecords(payload: AnprBulkUpdateRequestPayload): Promise<void>;
|
|
12
12
|
exportAnprEvents(projectExid: string, params: AnprBasedGateReportExportRequestParams): AxiosPromise<string>;
|
|
13
13
|
};
|
|
14
14
|
gateReport: {
|
|
@@ -16,30 +16,24 @@ export declare const AiApi: {
|
|
|
16
16
|
exportEventsProgress(projectExid: string, params: {
|
|
17
17
|
exportDate: string;
|
|
18
18
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
|
-
generateAnprThumbnail(cameraExid: CameraExid, captureTime:
|
|
19
|
+
generateAnprThumbnail(cameraExid: CameraExid, captureTime: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
20
20
|
getVerifiedDays(projectExid: ProjectExid, params: Partial<VerifiedDaysQueryParams>, extraParams?: {}): Promise<PaginatedItems<GateReportVerifiedDay>>;
|
|
21
21
|
verifyDay(params: VerifyDayUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
|
-
getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<
|
|
23
|
-
getEventThumbnail({ cameraExid, eventType, eventTime, token, }: {
|
|
24
|
-
cameraExid: string;
|
|
25
|
-
eventType: GateReportEventType;
|
|
26
|
-
eventTime: DateTime;
|
|
27
|
-
token: string;
|
|
28
|
-
}): string;
|
|
22
|
+
getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<string[]>;
|
|
29
23
|
getEvents(projectExid: ProjectExid, params: GatReportRequestPayload, extraParams?: AxiosRequestConfig): Promise<GateReportResponsePayload>;
|
|
30
24
|
getCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
31
25
|
getGateReportProjectsInfos(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
32
26
|
};
|
|
33
27
|
brainTool: {
|
|
34
28
|
getObjectDetectionsResults(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
|
-
getSegments(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
36
29
|
};
|
|
37
30
|
roi: {
|
|
38
31
|
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
39
|
-
createROI(params:
|
|
40
|
-
|
|
32
|
+
createROI(params: Omit<GateReportRoiRequestPayload, "id"> & {
|
|
33
|
+
createdBy: string;
|
|
34
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
|
+
updateROI({ updatedBy, id, ...params }: Partial<GateReportRoiRequestPayload> & {
|
|
41
36
|
updatedBy: string;
|
|
42
|
-
roi: GateReportROICreateRequestPayload;
|
|
43
37
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
44
38
|
deleteROI({ id, updatedBy }: {
|
|
45
39
|
id: number;
|
|
@@ -47,60 +41,70 @@ export declare const AiApi: {
|
|
|
47
41
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
48
42
|
};
|
|
49
43
|
detections: {
|
|
50
|
-
|
|
51
|
-
getDetectionsCounts({ projectExid, ...params }: DetectionsRequestParams, extraParams?: AxiosRequestConfig): Promise<DetectionsCountsByPeriod>;
|
|
44
|
+
getDetectionsCounts({ projectExid, ...params }: Partial<DetectionsRequestParams>, extraParams?: AxiosRequestConfig): Promise<DetectionsCountsByPeriod>;
|
|
52
45
|
getDetectionsByTimestamp({ projectExid, ...params }: DetectionsRequestParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<DetectionsGroup>>;
|
|
53
46
|
getSimilarSegmentsInTimeIntervals({ cameraExid, iouThreshold, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
54
|
-
|
|
55
|
-
getSegmentsMasks(cameraExid: CameraExid, params: SegmentsFilters): Promise<
|
|
47
|
+
getGroupedTrackings(projectExid: ProjectExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
|
|
48
|
+
getSegmentsMasks(cameraExid: CameraExid, params: SegmentsFilters): Promise<{
|
|
49
|
+
segments: SegmentsByLabel;
|
|
50
|
+
}>;
|
|
51
|
+
getSegmentsPresenceDateIntervals({ cameraExid, ...params }: SegmentsCountsParams): Promise<SegmentsPresenceResponse>;
|
|
56
52
|
getDetectionsPresenceDateIntervals({ projectExid, ...params }: DetectionsCountsParams): Promise<DetectionsPresenceByLabel>;
|
|
57
53
|
requestExport({ projectExid, ...params }: DetectionsExportRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
58
54
|
};
|
|
59
55
|
siteAnalytics: {
|
|
60
|
-
smartSearch({ cameraExid, payload, fromDate, toDate, page, pageSize, }: {
|
|
61
|
-
cameraExid: CameraExid;
|
|
62
|
-
payload: SmartSearchBackendQuery;
|
|
63
|
-
fromDate: string;
|
|
64
|
-
toDate: string;
|
|
65
|
-
page?: number;
|
|
66
|
-
pageSize?: number;
|
|
67
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
68
56
|
smartSearchAll(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
69
57
|
smartSearchFirstLastSeen(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
70
|
-
saveQuery(payload
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
58
|
+
saveQuery({ projectExid, cameraExid, payload, }: {
|
|
59
|
+
projectExid: ProjectExid;
|
|
60
|
+
cameraExid: CameraExid | _360FloorId;
|
|
61
|
+
payload: SmartSearchBackendQueryPayload;
|
|
62
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
63
|
+
getQueries(projectExid: ProjectExid, params: SmartSearchQueriesRequestPayload): Promise<SavedQuery[]>;
|
|
64
|
+
getQueryById(projectExid: ProjectExid, cameraExid: CameraExid, queryId: number): Promise<SmartSearchBackendQueryPayload>;
|
|
65
|
+
updateQuery({ projectExid, cameraExid, queryId, payload, }: {
|
|
66
|
+
projectExid: ProjectExid;
|
|
67
|
+
cameraExid: CameraExid;
|
|
68
|
+
queryId: number;
|
|
69
|
+
payload: Partial<SavedQuery>;
|
|
70
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
71
|
+
deleteQuery({ projectExid, cameraExid, queryId, }: {
|
|
72
|
+
projectExid: ProjectExid;
|
|
78
73
|
cameraExid: CameraExid;
|
|
74
|
+
queryId: number;
|
|
75
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
76
|
+
exportResultsData({ projectExid, cameraExids, fromDate, toDate, query, fileType, directDownload, payload, limit, page, }: {
|
|
77
|
+
projectExid: ProjectExid;
|
|
78
|
+
cameraExids: CameraExid[];
|
|
79
79
|
fromDate?: DateType;
|
|
80
80
|
toDate?: DateType;
|
|
81
81
|
query: string;
|
|
82
82
|
fileType: DownloadFileType;
|
|
83
83
|
directDownload?: boolean;
|
|
84
|
-
payload:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
toDate: DateType | string;
|
|
84
|
+
payload: SmartSearchBackendQuery;
|
|
85
|
+
limit: number;
|
|
86
|
+
page: number;
|
|
87
|
+
}): Promise<any>;
|
|
88
|
+
getDetectionsHeatmapData(projectExid: ProjectExid, params: {
|
|
89
|
+
cameraExid: CameraExid;
|
|
90
|
+
fromDate: DateType | string | null;
|
|
91
|
+
toDate: DateType | string | null;
|
|
93
92
|
labels: DetectionLabel[];
|
|
94
93
|
operator?: SmartSearchOperatorType;
|
|
95
|
-
}): Promise<
|
|
96
|
-
results: SmartSearchHeatmapData[];
|
|
97
|
-
sqlQuery: string;
|
|
98
|
-
}>;
|
|
94
|
+
}): Promise<SmartSearchHeatmapData[]>;
|
|
99
95
|
};
|
|
100
96
|
coolify: {
|
|
101
97
|
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
102
|
-
createAppOnCoolify(payload
|
|
103
|
-
|
|
98
|
+
createAppOnCoolify({ projectExid, cameraExid, payload, }: {
|
|
99
|
+
projectExid: ProjectExid;
|
|
100
|
+
cameraExid: CameraExid;
|
|
101
|
+
payload: CreateCoolifyAppRequestPayload;
|
|
102
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
103
|
+
registerCoolifyApp({ projectExid, cameraExid, payload, }: {
|
|
104
|
+
projectExid: ProjectExid;
|
|
105
|
+
cameraExid: CameraExid;
|
|
106
|
+
payload: SaveCoolifyAppRequestPayload;
|
|
107
|
+
}): Promise<RegisterCoolifyAppResponsePayload>;
|
|
104
108
|
updateApp({ appUuid, appId, payload, cameraExid, projectExid, }: {
|
|
105
109
|
projectExid: string;
|
|
106
110
|
cameraExid: string;
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
import { ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload, Role, RoleResourceType } from "
|
|
1
|
+
import { AuthzRoleUser, AuthzScope, AuthzScopeCreatePayload, AuthzScopeUpdatePayload, AuthzUserRolesResponse, ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload, Role, RoleResourceType } from "@evercam/api/types";
|
|
2
|
+
import type { AxiosRequestConfig } from "axios";
|
|
2
3
|
export declare const AuthzApi: {
|
|
3
4
|
roles: {
|
|
4
|
-
get(params
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
get(params?: AxiosRequestConfig & {
|
|
6
|
+
params?: {
|
|
7
|
+
scope?: string;
|
|
8
|
+
};
|
|
9
|
+
}): Promise<{
|
|
10
|
+
total: number;
|
|
11
|
+
items: Role[];
|
|
12
|
+
}>;
|
|
13
|
+
getRoleDetails(id: number): Promise<Role>;
|
|
14
|
+
createRole(params: Partial<Role> & Pick<Role, "name">): Promise<Role>;
|
|
15
|
+
updateRole(id: number, params: Partial<Role>): Promise<Role>;
|
|
16
|
+
deleteRole(id: number): Promise<void>;
|
|
17
|
+
addPermission(id: number, action: string): Promise<void>;
|
|
18
|
+
deletePermission(id: number, action: string): Promise<void>;
|
|
19
|
+
getRoleUsers(id: number): Promise<AuthzRoleUser[]>;
|
|
20
|
+
assignUsers(roleId: number, emails: Array<string>, resourceId?: string): Promise<void>;
|
|
21
|
+
getUserRoles(projectExid?: ProjectExid, resourceType?: RoleResourceType): Promise<AuthzUserRolesResponse>;
|
|
15
22
|
};
|
|
16
23
|
projectRoles: {
|
|
17
24
|
get(projectExid: ProjectExid): Promise<{
|
|
@@ -22,9 +29,9 @@ export declare const AuthzApi: {
|
|
|
22
29
|
delete(projectExid: ProjectExid, roleId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
30
|
};
|
|
24
31
|
scopes: {
|
|
25
|
-
get(): Promise<
|
|
26
|
-
create(params:
|
|
27
|
-
delete(id: number): Promise<
|
|
28
|
-
update(id: number, params:
|
|
32
|
+
get(): Promise<AuthzScope[]>;
|
|
33
|
+
create(params: AuthzScopeCreatePayload): Promise<AuthzScope>;
|
|
34
|
+
delete(id: number): Promise<void>;
|
|
35
|
+
update(id: number, params: AuthzScopeUpdatePayload): Promise<AuthzScope>;
|
|
29
36
|
};
|
|
30
37
|
};
|