@evercam/api 1.0.0-ee9739480 → 1.0.0-eea993f14
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 +27 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +67 -33
- package/dist/api/{aiApi.d.ts → api/aiApi.d.ts} +40 -37
- package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +10 -1
- package/dist/api/{client → api/client}/axios.d.ts +1 -0
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +48 -44
- package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +6 -2
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +96 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +4 -0
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +274 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/{types → api/types}/analytics.d.ts +113 -7
- package/dist/{types → api/types}/anpr.d.ts +7 -11
- package/dist/api/types/authz.d.ts +28 -0
- package/dist/api/types/automation.d.ts +61 -0
- package/dist/{types → api/types}/axios.d.ts +16 -0
- package/dist/{types → api/types}/camera.d.ts +24 -6
- package/dist/{types → api/types}/comments.d.ts +18 -2
- package/dist/{types → api/types}/company.d.ts +29 -1
- package/dist/{types → api/types}/coolify.d.ts +2 -0
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/{types → api/types}/detections.d.ts +42 -18
- package/dist/{types → api/types}/errors.d.ts +13 -0
- package/dist/{types → api/types}/gateReport.d.ts +4 -101
- package/dist/{types → api/types}/index.d.ts +4 -0
- package/dist/{types → api/types}/ingest.d.ts +8 -0
- package/dist/{types → api/types}/kit.d.ts +55 -7
- package/dist/{types → api/types}/planner.d.ts +7 -0
- package/dist/api/types/posthog.d.ts +18 -0
- package/dist/{types → api/types}/procore.d.ts +13 -10
- package/dist/{types → api/types}/progressPhoto.d.ts +6 -22
- package/dist/{types → api/types}/project.d.ts +50 -3
- package/dist/{types → api/types}/recording.d.ts +2 -2
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/{types → api/types}/routeParams.d.ts +4 -2
- package/dist/{types → api/types}/router.d.ts +19 -0
- package/dist/{types → api/types}/shared.d.ts +1 -6
- package/dist/api/types/shares.d.ts +58 -0
- package/dist/api/types/siteAnalytics.d.ts +247 -0
- package/dist/{types → api/types}/snapshots.d.ts +9 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/{types → api/types}/streaming.d.ts +1 -2
- package/dist/{types → api/types}/time.d.ts +6 -0
- package/dist/{types → api/types}/user.d.ts +19 -7
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/{types → api/types}/weather.d.ts +2 -0
- package/dist/{types → api/types}/widget.d.ts +27 -6
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1275 -823
- 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 +199 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/timeline.d.ts +9 -0
- package/package.json +5 -4
- package/dist/api/3dFirebaseApi.d.ts +0 -10
- package/dist/api/ingestApi.d.ts +0 -68
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/types/360.d.ts +0 -83
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/shares.d.ts +0 -196
- package/dist/types/siteAnalytics.d.ts +0 -123
- package/dist/types/videoWall.d.ts +0 -33
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +0 -0
- /package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/auditLogs.d.ts +0 -0
- /package/dist/{types → api/types}/autodesk.d.ts +0 -0
- /package/dist/{types → api/types}/bim.d.ts +0 -0
- /package/dist/{types → api/types}/compare.d.ts +0 -0
- /package/dist/{types → api/types}/connector.d.ts +0 -0
- /package/dist/{types → api/types}/copilot.d.ts +0 -0
- /package/dist/{types → api/types}/drone.d.ts +0 -0
- /package/dist/{types → api/types}/hdd.d.ts +0 -0
- /package/dist/{types → api/types}/map.d.ts +0 -0
- /package/dist/{types → api/types}/media.d.ts +0 -0
- /package/dist/{types → api/types}/notification.d.ts +0 -0
- /package/dist/{types → api/types}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/roi.d.ts +0 -0
- /package/dist/{types → api/types}/sim.d.ts +0 -0
- /package/dist/{types → api/types}/storageServers.d.ts +0 -0
- /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
- /package/dist/{types → api/types}/tag.d.ts +0 -0
- /package/dist/{types → api/types}/timelapse.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/{types → api/types}/xweather.d.ts +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
|
+
export declare const getFirebaseDbApi: () => string | null | undefined;
|
|
4
|
+
export declare const getFirebaseStorageUrl: () => string | null | undefined;
|
|
5
|
+
export declare const getFirebaseStorageToken: () => string | null | undefined;
|
|
6
|
+
export declare const _3dFirebaseApi: {
|
|
7
|
+
drone: {
|
|
8
|
+
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
9
|
+
getProjectTags(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
10
|
+
};
|
|
11
|
+
_360: {
|
|
12
|
+
getProjectInfo(projectExid: ProjectExid, params?: {
|
|
13
|
+
config?: AxiosRequestConfig;
|
|
14
|
+
}): Promise<_360ProjectJsonResponse>;
|
|
15
|
+
getDateWalks(projectExid: ProjectExid, dateId: string): Promise<any>;
|
|
16
|
+
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<_360ProjectJsonResponse>;
|
|
17
|
+
getRoute(projectExid: ProjectExid, dateId: string, floorIndex: string): Promise<any>;
|
|
18
|
+
getGPXText(url: string): Promise<any>;
|
|
19
|
+
updateRoute(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<any>;
|
|
20
|
+
updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<any>;
|
|
21
|
+
saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<any>;
|
|
22
|
+
updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: any): Promise<any>;
|
|
23
|
+
};
|
|
24
|
+
forge: {
|
|
25
|
+
getProjectInfo(projectExid: ProjectExid): Promise<any>;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "@/types/hdd";
|
|
2
|
-
import type { CamerasResponsePayload, CameraUpdateRequestPayload, PaginatedItems, AdminCamera, Project, Hdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload,
|
|
2
|
+
import type { CamerasResponsePayload, CameraUpdateRequestPayload, PaginatedItems, AdminCamera, Project, Hdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload, Kit, PatchPayload, StorageServersResponsePayload, MediaFilterQueryParams, Media, MediaDeleteRequestPayload, AuditLogsParams, AuditLog, SnapshotExtractionQyeryParams, SnapshotExtraction, CameraCreateRequestPayload, CameraDeletePayload, SnapshotTestPayload, SnapshotTestResponse, DuplicatedCameraFields, DuplicatedCameraResponse, MergeDuplicatedCameraPayload, FetchCameraQueryParams, DeleteSnapshotQueryParams, SaveNotePayload, CameraNote, CreateCameraNotePayload, CompanyQueryParams, Company, CompanyUpdatePayload, SsoProvider, SsoUpdatePayload, SsoCreatePayload, SuppressionsQueryParams, Suppression, SnapshotExtractionType, KitQueryParams, KitCreatePayload, AdminKit, 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, Widget, WidgetFull, WidgetPayload, PaginationParams, KitStorageRequestPayload, CompanyUser, CompanyProject, Automation, KitStorage, KitFootageRequestPayload, CommentsListRequestPayload, Comment, KitFootage, KitAlarmItem, RecycleBin, RecycleBinQueryParams, TransferCloudRecordingsQueryParams, CheckCameraPortPayload, CameraStatusLog, KitBox, KitBoxCreatePayload, KitBoxQueryParams } from "@evercam/api/types";
|
|
3
3
|
import { KitMetricId } from "@evercam/api/types";
|
|
4
4
|
import { Tag } from "@/types/tag";
|
|
5
|
+
import type { AxiosRequestConfig } from "axios";
|
|
6
|
+
type AxiosPaginationRequestParams = AxiosRequestConfig & {
|
|
7
|
+
params: PaginationParams;
|
|
8
|
+
};
|
|
5
9
|
export declare const AdminApi: {
|
|
6
10
|
mediaHub: {
|
|
7
11
|
getAllMedia(params: {
|
|
@@ -10,7 +14,7 @@ export declare const AdminApi: {
|
|
|
10
14
|
deleteMedia(params: Partial<MediaDeleteRequestPayload>): Promise<void>;
|
|
11
15
|
};
|
|
12
16
|
auditLogs: {
|
|
13
|
-
getAuditLogs(params: {
|
|
17
|
+
getAuditLogs(params: AxiosRequestConfig & {
|
|
14
18
|
params: Partial<AuditLogsParams>;
|
|
15
19
|
}): Promise<PaginatedItems<AuditLog>[]>;
|
|
16
20
|
};
|
|
@@ -28,7 +32,7 @@ export declare const AdminApi: {
|
|
|
28
32
|
}>;
|
|
29
33
|
getStorageServers(): Promise<StorageServersResponsePayload>;
|
|
30
34
|
getStorageDetails(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
|
-
getSnapshotExtractions(params: {
|
|
35
|
+
getSnapshotExtractions(params: AxiosRequestConfig & {
|
|
32
36
|
params: Partial<SnapshotExtractionQyeryParams>;
|
|
33
37
|
}): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
34
38
|
createCameras(payload: CameraCreateRequestPayload): Promise<{
|
|
@@ -50,20 +54,38 @@ export declare const AdminApi: {
|
|
|
50
54
|
}>;
|
|
51
55
|
getCameras(params: {
|
|
52
56
|
params: Partial<FetchCameraQueryParams>;
|
|
53
|
-
}): Promise<PaginatedItems<AdminCamera>>;
|
|
57
|
+
}, extraConfig?: AxiosRequestConfig): Promise<PaginatedItems<AdminCamera>>;
|
|
54
58
|
getCompares(params: {
|
|
55
59
|
params: AdminCompareQueryParams;
|
|
56
60
|
}): Promise<PaginatedItems<AdminCompare[]>>;
|
|
57
61
|
getCameraDetails(exid: string): Promise<AdminCamera>;
|
|
62
|
+
getCameraStatusLogs(exid: string, params: {
|
|
63
|
+
params: {
|
|
64
|
+
from: string;
|
|
65
|
+
to: string;
|
|
66
|
+
};
|
|
67
|
+
}): Promise<CameraStatusLog[]>;
|
|
58
68
|
deleteSnapshots(cameraId: string, params: DeleteSnapshotQueryParams): Promise<void>;
|
|
69
|
+
transferCloudRecordings(cameraId: string, params: TransferCloudRecordingsQueryParams): Promise<void>;
|
|
59
70
|
refreshDeviceSettings(cameraId: string): Promise<void>;
|
|
60
71
|
saveNote(cameraId: string, params: SaveNotePayload): Promise<CameraNote>;
|
|
61
72
|
saveCameraNote(cameraId: string, params: CreateCameraNotePayload): Promise<{
|
|
62
73
|
message: string;
|
|
63
74
|
}>;
|
|
64
75
|
update(cameraId: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
76
|
+
transferOwnership(cameraId: string, newOwnerId: number): Promise<void>;
|
|
77
|
+
portCheck(payload: {
|
|
78
|
+
params: CheckCameraPortPayload;
|
|
79
|
+
}): Promise<CheckCameraPortPayload & {
|
|
80
|
+
open: boolean;
|
|
81
|
+
}>;
|
|
65
82
|
};
|
|
66
83
|
companies: {
|
|
84
|
+
show(id: string, params: Object): Promise<Company>;
|
|
85
|
+
getCompanyUsers(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<CompanyUser>>;
|
|
86
|
+
getCompanyProjects(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<CompanyProject>>;
|
|
87
|
+
getCompanyKits(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<Kit[]>>;
|
|
88
|
+
getCompanyCameras(id: string, params: AxiosPaginationRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
67
89
|
getCompanies(params: {
|
|
68
90
|
params: Partial<CompanyQueryParams>;
|
|
69
91
|
}): Promise<PaginatedItems<Company[]>>;
|
|
@@ -79,6 +101,16 @@ export declare const AdminApi: {
|
|
|
79
101
|
success: true;
|
|
80
102
|
}>;
|
|
81
103
|
};
|
|
104
|
+
sso: {
|
|
105
|
+
getProviders(params: {
|
|
106
|
+
params: PaginationParams;
|
|
107
|
+
}): Promise<SsoProvider[]>;
|
|
108
|
+
updateProvider(id: string, params: SsoUpdatePayload): Promise<SsoProvider>;
|
|
109
|
+
createProvider(params: SsoCreatePayload): Promise<SsoProvider>;
|
|
110
|
+
deleteProviders(ids: string[]): Promise<{
|
|
111
|
+
success: true;
|
|
112
|
+
}>;
|
|
113
|
+
};
|
|
82
114
|
emailing: {
|
|
83
115
|
performEmailing(template: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
84
116
|
suppressions(params: {
|
|
@@ -100,7 +132,7 @@ export declare const AdminApi: {
|
|
|
100
132
|
}): Promise<void>;
|
|
101
133
|
};
|
|
102
134
|
kits: {
|
|
103
|
-
getAllKits(params: {
|
|
135
|
+
getAllKits(params: AxiosRequestConfig & {
|
|
104
136
|
params: KitQueryParams;
|
|
105
137
|
}): Promise<PaginatedItems<Kit[]>>;
|
|
106
138
|
getKit(kitId: number): Promise<Kit>;
|
|
@@ -117,7 +149,15 @@ export declare const AdminApi: {
|
|
|
117
149
|
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
118
150
|
getStorages(params: {
|
|
119
151
|
params: KitStorageRequestPayload;
|
|
120
|
-
}): Promise<PaginatedItems<
|
|
152
|
+
}): Promise<PaginatedItems<KitStorage[]>>;
|
|
153
|
+
getFootage(id: number, params?: {
|
|
154
|
+
params?: KitFootageRequestPayload;
|
|
155
|
+
}): Promise<KitFootage[]>;
|
|
156
|
+
getAlarms(kitId: number): Promise<KitAlarmItem[]>;
|
|
157
|
+
getBoxes(params: {
|
|
158
|
+
params: Partial<KitBoxQueryParams>;
|
|
159
|
+
}): Promise<PaginatedItems<KitBox>>;
|
|
160
|
+
createBox(params: KitBoxCreatePayload): Promise<KitBox>;
|
|
121
161
|
};
|
|
122
162
|
logs: {
|
|
123
163
|
getAllCamerasStatusLogs(params: {
|
|
@@ -125,9 +165,7 @@ export declare const AdminApi: {
|
|
|
125
165
|
}): Promise<{
|
|
126
166
|
data: CameraLog[];
|
|
127
167
|
}>;
|
|
128
|
-
getCameraLogs(cameraId: string,
|
|
129
|
-
params: CameraAuditLogsQueryParams;
|
|
130
|
-
}): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
168
|
+
getCameraLogs(cameraId: string, params: CameraAuditLogsQueryParams): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
131
169
|
togglePinNote(id: string): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
132
170
|
};
|
|
133
171
|
nvrs: {
|
|
@@ -140,6 +178,16 @@ export declare const AdminApi: {
|
|
|
140
178
|
message: string;
|
|
141
179
|
}>;
|
|
142
180
|
};
|
|
181
|
+
recycleBin: {
|
|
182
|
+
getAllDeleted(params: {
|
|
183
|
+
params: RecycleBinQueryParams;
|
|
184
|
+
}): Promise<PaginatedItems<RecycleBin[]>>;
|
|
185
|
+
restore(params: {
|
|
186
|
+
type: string;
|
|
187
|
+
camera_ids: number[];
|
|
188
|
+
project_ids: number[];
|
|
189
|
+
}): Promise<void>;
|
|
190
|
+
};
|
|
143
191
|
offlineCameras: {
|
|
144
192
|
getSiteVisitCameras(params: {
|
|
145
193
|
params: Partial<SiteVisitCamerasQueryParams>;
|
|
@@ -206,28 +254,8 @@ export declare const AdminApi: {
|
|
|
206
254
|
deleteFootage(hddId: number, footageId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
207
255
|
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
208
256
|
};
|
|
209
|
-
shareRequests: {
|
|
210
|
-
getShareRequests(params: {
|
|
211
|
-
params: Partial<CameraShareRequestsQueryParams>;
|
|
212
|
-
}): Promise<PaginatedItems<CameraShareRequest[]>>;
|
|
213
|
-
deleteShareRequest(params: {
|
|
214
|
-
ids: number[];
|
|
215
|
-
}): Promise<{
|
|
216
|
-
success: boolean;
|
|
217
|
-
}>;
|
|
218
|
-
updateShareRequestStatus(params: {
|
|
219
|
-
ids: number[];
|
|
220
|
-
status: string;
|
|
221
|
-
}): Promise<{
|
|
222
|
-
success: boolean;
|
|
223
|
-
}>;
|
|
224
|
-
};
|
|
225
257
|
shares: {
|
|
226
|
-
|
|
227
|
-
getShares(params: {
|
|
228
|
-
params: Partial<ShareQueryParams>;
|
|
229
|
-
}): Promise<PaginatedItems<AdminShare[]>>;
|
|
230
|
-
deleteShares(ids: number[]): Promise<void>;
|
|
258
|
+
getInvites(params: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
231
259
|
};
|
|
232
260
|
sims: {
|
|
233
261
|
deleteSim(simId: number): Promise<{
|
|
@@ -236,7 +264,7 @@ export declare const AdminApi: {
|
|
|
236
264
|
createSim(params: Omit<SimCreateUpdatePayload, "cameraId">): Promise<{
|
|
237
265
|
success: boolean;
|
|
238
266
|
}>;
|
|
239
|
-
updateSim(simId: number, params:
|
|
267
|
+
updateSim(simId: number, params: SimCreateUpdatePayload): Promise<{
|
|
240
268
|
success: boolean;
|
|
241
269
|
}>;
|
|
242
270
|
getSims(params: {
|
|
@@ -247,7 +275,7 @@ export declare const AdminApi: {
|
|
|
247
275
|
};
|
|
248
276
|
sms: {
|
|
249
277
|
sendSms(number: string, params: SendSmsPayload): Promise<SendSmsResponse>;
|
|
250
|
-
getSimHistory(number: string): Promise<SmsHistoryResponse
|
|
278
|
+
getSimHistory(number: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<SmsHistoryResponse>>;
|
|
251
279
|
getSms(params: {
|
|
252
280
|
params: Partial<SmsQueryParams>;
|
|
253
281
|
}): Promise<PaginatedItems<Sms[]>>;
|
|
@@ -264,7 +292,7 @@ export declare const AdminApi: {
|
|
|
264
292
|
}): Promise<{
|
|
265
293
|
progressPhoto: string;
|
|
266
294
|
}>;
|
|
267
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
295
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
268
296
|
};
|
|
269
297
|
tags: {
|
|
270
298
|
index(): Promise<Tag[]>;
|
|
@@ -310,4 +338,10 @@ export declare const AdminApi: {
|
|
|
310
338
|
zohoDesk: {
|
|
311
339
|
searchTickets(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
312
340
|
};
|
|
341
|
+
comments: {
|
|
342
|
+
index(params: {
|
|
343
|
+
params: Partial<CommentsListRequestPayload>;
|
|
344
|
+
}): Promise<PaginatedItems<Comment>>;
|
|
345
|
+
};
|
|
313
346
|
};
|
|
347
|
+
export {};
|
|
@@ -1,43 +1,24 @@
|
|
|
1
|
-
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters,
|
|
1
|
+
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, VerifiedDaysQueryParams, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, GateReportEventType, DateTime, RoisQueryParams, GateReportROICreateRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsCountsParams, DetectionsPresenceByLabel, SmartSearchBackendQueryPayload, SavedQuery, DateType, DetectionsRequestParams, DetectionsGroup, DetectionsCountsByPeriod, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchBackendQuery, Schedule, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel, SmartSearchResponse, SmartSearchRequestPayload } from "@evercam/api/types";
|
|
2
2
|
import type { AxiosPromise, AxiosRequestConfig } from "axios";
|
|
3
3
|
import { CreateCoolifyAppRequestPayload, SaveCoolifyAppRequestPayload } from "@/types/coolify";
|
|
4
4
|
export declare const getAiApiUrl: () => string | null | undefined;
|
|
5
5
|
export declare const AiApi: {
|
|
6
|
-
analyticsParameters: {
|
|
7
|
-
getParameters(cameraId: CameraExid, params?: Record<string, unknown>): Promise<AnalyticsParameters>;
|
|
8
|
-
createParameters(params: Omit<AnalyticsParameters, "id">): Promise<AnalyticsParameters>;
|
|
9
|
-
updateParameters({ updatedBy, id, ...payload }: Partial<AnalyticsParameters> & {
|
|
10
|
-
updatedBy: string;
|
|
11
|
-
}): Promise<AnalyticsParameters>;
|
|
12
|
-
};
|
|
13
6
|
anpr: {
|
|
14
7
|
exportAnprLegacyEvents(projectExid: ProjectExid, params: AnprQueryParams): AxiosPromise<any>;
|
|
15
|
-
getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams): Promise<PaginatedItems<AnprEvent>>;
|
|
16
|
-
getAnprCounts(projectExid: ProjectExid, payload: AnprCountsQueryParams): Promise<AnprCount[]>;
|
|
8
|
+
getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<AnprEvent>>;
|
|
9
|
+
getAnprCounts(projectExid: ProjectExid, payload: AnprCountsQueryParams, extraParams?: AxiosRequestConfig): Promise<AnprCount[]>;
|
|
17
10
|
updateAnprEvent(anprEventId: string, eventBody: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
18
11
|
bulkUpdateAnprRecords(anprEventsIds: number[], action: "is_plate" | "not_plate" | "is_duplicate" | "not_duplicate"): Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
12
|
exportAnprEvents(projectExid: string, params: AnprBasedGateReportExportRequestParams): AxiosPromise<string>;
|
|
20
13
|
};
|
|
21
14
|
gateReport: {
|
|
22
|
-
getGateReportProjects(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
-
getLastVerified(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
|
-
deleteEvent(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
25
|
-
dismissEvents(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
26
15
|
exportEvents(projectExid: string, params: EventsExportRequestParameters): AxiosPromise<any>;
|
|
27
16
|
exportEventsProgress(projectExid: string, params: {
|
|
28
17
|
exportDate: string;
|
|
29
18
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
|
-
|
|
31
|
-
getEventCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
19
|
+
generateAnprThumbnail(cameraExid: CameraExid, captureTime: DateTime): Promise<import("axios").AxiosResponse<any, any>>;
|
|
32
20
|
getVerifiedDays(projectExid: ProjectExid, params: Partial<VerifiedDaysQueryParams>, extraParams?: {}): Promise<PaginatedItems<GateReportVerifiedDay>>;
|
|
33
|
-
updateEventById(eventId: number, { updatedBy, payload, }: {
|
|
34
|
-
updatedBy: string;
|
|
35
|
-
payload: Partial<EventUpdateRequestPayload>;
|
|
36
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
21
|
verifyDay(params: VerifyDayUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
|
-
regenerateThumbnail(id: number, params: {
|
|
39
|
-
cameraExid: string;
|
|
40
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
41
22
|
getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
42
23
|
getEventThumbnail({ cameraExid, eventType, eventTime, token, }: {
|
|
43
24
|
cameraExid: string;
|
|
@@ -45,21 +26,13 @@ export declare const AiApi: {
|
|
|
45
26
|
eventTime: DateTime;
|
|
46
27
|
token: string;
|
|
47
28
|
}): string;
|
|
48
|
-
getEventSnapshot({ cameraExid, eventType, eventTime, token, }: {
|
|
49
|
-
cameraExid: string;
|
|
50
|
-
eventType: GateReportEventType;
|
|
51
|
-
eventTime: DateTime;
|
|
52
|
-
token: string;
|
|
53
|
-
}): string;
|
|
54
29
|
getEvents(projectExid: ProjectExid, params: GatReportRequestPayload, extraParams?: AxiosRequestConfig): Promise<GateReportResponsePayload>;
|
|
55
30
|
getCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
56
|
-
getGateReportApplications(projectExid: string, anprCameraExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
57
31
|
getGateReportProjectsInfos(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
58
32
|
};
|
|
59
33
|
brainTool: {
|
|
60
34
|
getObjectDetectionsResults(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
61
35
|
getSegments(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
|
-
getDepth(cameraExid: string, timestamp: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
63
36
|
};
|
|
64
37
|
roi: {
|
|
65
38
|
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
@@ -74,28 +47,55 @@ export declare const AiApi: {
|
|
|
74
47
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
75
48
|
};
|
|
76
49
|
detections: {
|
|
50
|
+
getDetections({ projectExid, ...params }: DetectionsRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
51
|
+
getDetectionsCounts({ projectExid, ...params }: DetectionsRequestParams, extraParams?: AxiosRequestConfig): Promise<DetectionsCountsByPeriod>;
|
|
52
|
+
getDetectionsByTimestamp({ projectExid, ...params }: DetectionsRequestParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<DetectionsGroup>>;
|
|
77
53
|
getSimilarSegmentsInTimeIntervals({ cameraExid, iouThreshold, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
78
54
|
getDetectionsTracking(projectExid: ProjectExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
|
|
79
55
|
getSegmentsMasks(cameraExid: CameraExid, params: SegmentsFilters): Promise<SegmentsByLabel>;
|
|
80
56
|
getDetectionsPresenceDateIntervals({ projectExid, ...params }: DetectionsCountsParams): Promise<DetectionsPresenceByLabel>;
|
|
57
|
+
requestExport({ projectExid, ...params }: DetectionsExportRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
81
58
|
};
|
|
82
59
|
siteAnalytics: {
|
|
83
60
|
smartSearch({ cameraExid, payload, fromDate, toDate, page, pageSize, }: {
|
|
84
61
|
cameraExid: CameraExid;
|
|
85
|
-
payload:
|
|
86
|
-
fromDate
|
|
87
|
-
toDate
|
|
62
|
+
payload: SmartSearchBackendQuery;
|
|
63
|
+
fromDate: string;
|
|
64
|
+
toDate: string;
|
|
88
65
|
page?: number;
|
|
89
66
|
pageSize?: number;
|
|
90
67
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
91
|
-
|
|
68
|
+
smartSearchAll(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
69
|
+
smartSearchFirstLastSeen(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
70
|
+
saveQuery(payload: SmartSearchBackendQueryPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
92
71
|
getQueries(cameraExid: CameraExid, params: {
|
|
93
72
|
name?: string;
|
|
94
73
|
}): Promise<SavedQuery[]>;
|
|
95
|
-
getQueryById(cameraExid: CameraExid, queryId: number): Promise<
|
|
74
|
+
getQueryById(cameraExid: CameraExid, queryId: number): Promise<SmartSearchBackendQueryPayload>;
|
|
96
75
|
updateQuery(cameraExid: CameraExid, queryId: number, payload: Partial<SavedQuery>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
97
76
|
deleteQuery(cameraExid: CameraExid, queryId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
98
|
-
|
|
77
|
+
exportResultsData({ cameraExid, fromDate, toDate, query, fileType, directDownload, payload, }: {
|
|
78
|
+
cameraExid: CameraExid;
|
|
79
|
+
fromDate?: DateType;
|
|
80
|
+
toDate?: DateType;
|
|
81
|
+
query: string;
|
|
82
|
+
fileType: DownloadFileType;
|
|
83
|
+
directDownload?: boolean;
|
|
84
|
+
payload: {
|
|
85
|
+
req: SmartSearchBackendQuery;
|
|
86
|
+
timeSchedule?: Schedule;
|
|
87
|
+
columns?: string[];
|
|
88
|
+
};
|
|
89
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
90
|
+
getDetectionsHeatmapData(cameraExid: CameraExid, params: {
|
|
91
|
+
fromDate: DateType | string;
|
|
92
|
+
toDate: DateType | string;
|
|
93
|
+
labels: DetectionLabel[];
|
|
94
|
+
operator?: SmartSearchOperatorType;
|
|
95
|
+
}): Promise<{
|
|
96
|
+
results: SmartSearchHeatmapData[];
|
|
97
|
+
sqlQuery: string;
|
|
98
|
+
}>;
|
|
99
99
|
};
|
|
100
100
|
coolify: {
|
|
101
101
|
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -118,4 +118,7 @@ export declare const AiApi: {
|
|
|
118
118
|
pauseService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
119
119
|
restartService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
120
120
|
};
|
|
121
|
+
fovChanges: {
|
|
122
|
+
getCameraFovChanges(cameraExid: string, extraConfig?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
123
|
+
};
|
|
121
124
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload, Role, RoleResourceType } from "@/types";
|
|
1
2
|
export declare const AuthzApi: {
|
|
2
3
|
roles: {
|
|
3
4
|
get(params: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -10,7 +11,15 @@ export declare const AuthzApi: {
|
|
|
10
11
|
getRoleUsers(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
12
|
assignUsers(id: number, emails: Array<string>, resource_id: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
12
13
|
unassignUsers(id: number, emails: Array<string>, resource_id: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
13
|
-
getUserRoles(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
|
+
getUserRoles(projectExid?: ProjectExid, resourceType?: RoleResourceType): Promise<import("axios").AxiosResponse<any, any>>;
|
|
15
|
+
};
|
|
16
|
+
projectRoles: {
|
|
17
|
+
get(projectExid: ProjectExid): Promise<{
|
|
18
|
+
roles: Role[];
|
|
19
|
+
}>;
|
|
20
|
+
create(projectExid: ProjectExid, params: ProjectRoleRequestPayload): Promise<ProjectResourceRole>;
|
|
21
|
+
update(projectExid: ProjectExid, roleId: number, params: ProjectRoleRequestPayload): Promise<ProjectResourceRole>;
|
|
22
|
+
delete(projectExid: ProjectExid, roleId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
23
|
};
|
|
15
24
|
scopes: {
|
|
16
25
|
get(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -5,6 +5,7 @@ export declare const BadRequestError: {
|
|
|
5
5
|
stack?: string;
|
|
6
6
|
cause?: unknown;
|
|
7
7
|
};
|
|
8
|
+
isError(error: unknown): error is Error;
|
|
8
9
|
};
|
|
9
10
|
export declare const NotFoundError: {
|
|
10
11
|
new (error: unknown): {
|
|
@@ -13,6 +14,7 @@ export declare const NotFoundError: {
|
|
|
13
14
|
stack?: string;
|
|
14
15
|
cause?: unknown;
|
|
15
16
|
};
|
|
17
|
+
isError(error: unknown): error is Error;
|
|
16
18
|
};
|
|
17
19
|
export declare const UnauthorizedError: {
|
|
18
20
|
new (error: unknown): {
|
|
@@ -21,6 +23,7 @@ export declare const UnauthorizedError: {
|
|
|
21
23
|
stack?: string;
|
|
22
24
|
cause?: unknown;
|
|
23
25
|
};
|
|
26
|
+
isError(error: unknown): error is Error;
|
|
24
27
|
};
|
|
25
28
|
export declare const GatewayTimeoutError: {
|
|
26
29
|
new (error: unknown): {
|
|
@@ -29,6 +32,7 @@ export declare const GatewayTimeoutError: {
|
|
|
29
32
|
stack?: string;
|
|
30
33
|
cause?: unknown;
|
|
31
34
|
};
|
|
35
|
+
isError(error: unknown): error is Error;
|
|
32
36
|
};
|
|
33
37
|
export declare const BadGatewayError: {
|
|
34
38
|
new (error: unknown): {
|
|
@@ -37,6 +41,7 @@ export declare const BadGatewayError: {
|
|
|
37
41
|
stack?: string;
|
|
38
42
|
cause?: unknown;
|
|
39
43
|
};
|
|
44
|
+
isError(error: unknown): error is Error;
|
|
40
45
|
};
|
|
41
46
|
export declare const ForbiddenError: {
|
|
42
47
|
new (error: unknown): {
|
|
@@ -45,6 +50,7 @@ export declare const ForbiddenError: {
|
|
|
45
50
|
stack?: string;
|
|
46
51
|
cause?: unknown;
|
|
47
52
|
};
|
|
53
|
+
isError(error: unknown): error is Error;
|
|
48
54
|
};
|
|
49
55
|
export declare const HlsError: {
|
|
50
56
|
new (error: unknown): {
|
|
@@ -53,6 +59,7 @@ export declare const HlsError: {
|
|
|
53
59
|
stack?: string;
|
|
54
60
|
cause?: unknown;
|
|
55
61
|
};
|
|
62
|
+
isError(error: unknown): error is Error;
|
|
56
63
|
};
|
|
57
64
|
export declare const SnapshotError: {
|
|
58
65
|
new (error: unknown): {
|
|
@@ -61,6 +68,7 @@ export declare const SnapshotError: {
|
|
|
61
68
|
stack?: string;
|
|
62
69
|
cause?: unknown;
|
|
63
70
|
};
|
|
71
|
+
isError(error: unknown): error is Error;
|
|
64
72
|
};
|
|
65
73
|
export declare const ConflictError: {
|
|
66
74
|
new (error: unknown): {
|
|
@@ -69,6 +77,7 @@ export declare const ConflictError: {
|
|
|
69
77
|
stack?: string;
|
|
70
78
|
cause?: unknown;
|
|
71
79
|
};
|
|
80
|
+
isError(error: unknown): error is Error;
|
|
72
81
|
};
|
|
73
82
|
export declare const InternalServerError: {
|
|
74
83
|
new (error: unknown): {
|
|
@@ -77,4 +86,5 @@ export declare const InternalServerError: {
|
|
|
77
86
|
stack?: string;
|
|
78
87
|
cause?: unknown;
|
|
79
88
|
};
|
|
89
|
+
isError(error: unknown): error is Error;
|
|
80
90
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosDefaults, type AxiosError, type AxiosRequestConfig, type AxiosResponse } from "axios";
|
|
2
|
-
import type
|
|
2
|
+
import { type AxiosEnvironment } from "@evercam/api/types";
|
|
3
3
|
export declare const onRequest: (request: AxiosRequestConfig, axiosEnv: AxiosEnvironment) => Promise<AxiosRequestConfig<any>>;
|
|
4
4
|
export declare const onResponse: (response: AxiosResponse) => any;
|
|
5
5
|
export declare const onError: (error: AxiosError, axiosEnv: AxiosEnvironment) => Promise<{
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { ExtendedAxiosInstance, ResponseValue } from "@/types";
|
|
3
|
+
export declare class Swr {
|
|
4
|
+
private axiosInstance;
|
|
5
|
+
private store;
|
|
6
|
+
constructor({ key, axiosInstance, }: {
|
|
7
|
+
key: string;
|
|
8
|
+
axiosInstance: ExtendedAxiosInstance;
|
|
9
|
+
});
|
|
10
|
+
get<T = any>(url: string, config?: AxiosRequestConfig): Promise<ResponseValue<T>>;
|
|
11
|
+
private getCachedValue;
|
|
12
|
+
private getFreshValue;
|
|
13
|
+
clear(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
export declare class SwrStore {
|
|
3
|
+
private prefix;
|
|
4
|
+
constructor(prefix: string);
|
|
5
|
+
generateKey(config: AxiosRequestConfig): string;
|
|
6
|
+
get(key: string): Promise<any>;
|
|
7
|
+
set(key: string, value: unknown): Promise<void>;
|
|
8
|
+
delete(key: string): Promise<void>;
|
|
9
|
+
clear(): Promise<void>;
|
|
10
|
+
}
|