@evercam/api 1.0.0-eabc633d1 → 1.0.0-ecc20ba32
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 +23 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +89 -26
- package/dist/api/{aiApi.d.ts → api/aiApi.d.ts} +56 -37
- package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +7 -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} +89 -34
- package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +8 -10
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +95 -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/api/weatherApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/{types → api/types}/360.d.ts +64 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/{types → api/types}/analytics.d.ts +149 -69
- package/dist/{types → api/types}/anpr.d.ts +16 -17
- package/dist/api/types/authz.d.ts +22 -0
- package/dist/api/types/automation.d.ts +61 -0
- package/dist/{types → api/types}/axios.d.ts +15 -0
- package/dist/{types → api/types}/camera.d.ts +27 -55
- package/dist/api/types/comments.d.ts +59 -0
- package/dist/{types → api/types}/company.d.ts +29 -1
- package/dist/{types → api/types}/connector.d.ts +6 -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 +51 -15
- package/dist/{types → api/types}/errors.d.ts +13 -0
- package/dist/{types → api/types}/gateReport.d.ts +1 -101
- package/dist/{types → api/types}/index.d.ts +8 -2
- package/dist/{types → api/types}/ingest.d.ts +8 -0
- package/dist/{types → api/types}/kit.d.ts +84 -7
- package/dist/{types/sitePlanner.d.ts → api/types/planner.d.ts} +7 -0
- package/dist/api/types/posthog.d.ts +18 -0
- package/dist/api/types/procore.d.ts +222 -0
- 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}/roi.d.ts +2 -1
- 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 +2 -16
- package/dist/{types → api/types}/shares.d.ts +5 -1
- package/dist/api/types/siteAnalytics.d.ts +163 -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 +3 -25
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/{types → api/types}/time.d.ts +6 -0
- package/dist/{types → api/types}/user.d.ts +5 -6
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/{types → api/types}/weather.d.ts +8 -2
- package/dist/{types → api/types}/widget.d.ts +27 -6
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1439 -881
- 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 +6 -5
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/ingestApi.d.ts +0 -65
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/api/weatherApi.d.ts +0 -25
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/siteAnalytics.d.ts +0 -84
- package/dist/types/videoWall.d.ts +0 -33
- /package/dist/api/{client → api/client}/axios.d.ts +0 -0
- /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/{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}/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}/sim.d.ts +0 -0
- /package/dist/{types → api/types}/storageServers.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
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
export declare const getFirebaseDbApi: () => string | null | undefined;
|
|
3
|
+
export declare const getFirebaseStorageUrl: () => string | null | undefined;
|
|
4
|
+
export declare const getFirebaseStorageToken: () => string | null | undefined;
|
|
5
|
+
export declare const _3dFirebaseApi: {
|
|
6
|
+
drone: {
|
|
7
|
+
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
8
|
+
getProjectTags(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
9
|
+
};
|
|
10
|
+
_360: {
|
|
11
|
+
getProjectInfo(projectExid: ProjectExid): Promise<_360ProjectJsonResponse>;
|
|
12
|
+
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<_360ProjectJsonResponse>;
|
|
13
|
+
getRoute(projectExid: ProjectExid, dateId: string, floorIndex: string): Promise<any>;
|
|
14
|
+
getGPXText(url: string): Promise<any>;
|
|
15
|
+
updateRoute(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<any>;
|
|
16
|
+
updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<any>;
|
|
17
|
+
saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<any>;
|
|
18
|
+
updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: any): Promise<any>;
|
|
19
|
+
};
|
|
20
|
+
forge: {
|
|
21
|
+
getProjectInfo(projectExid: ProjectExid): Promise<any>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -1,6 +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, CameraShareRequestsQueryParams, CameraShareRequest, CameraShareRequestPayload, ShareCreateResponsePayload, ShareQueryParams, AdminShare, 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
|
+
import { Tag } from "@/types/tag";
|
|
5
|
+
import type { AxiosRequestConfig } from "axios";
|
|
6
|
+
type AxiosPaginationRequestParams = AxiosRequestConfig & {
|
|
7
|
+
params: PaginationParams;
|
|
8
|
+
};
|
|
4
9
|
export declare const AdminApi: {
|
|
5
10
|
mediaHub: {
|
|
6
11
|
getAllMedia(params: {
|
|
@@ -9,7 +14,7 @@ export declare const AdminApi: {
|
|
|
9
14
|
deleteMedia(params: Partial<MediaDeleteRequestPayload>): Promise<void>;
|
|
10
15
|
};
|
|
11
16
|
auditLogs: {
|
|
12
|
-
getAuditLogs(params: {
|
|
17
|
+
getAuditLogs(params: AxiosRequestConfig & {
|
|
13
18
|
params: Partial<AuditLogsParams>;
|
|
14
19
|
}): Promise<PaginatedItems<AuditLog>[]>;
|
|
15
20
|
};
|
|
@@ -27,13 +32,16 @@ export declare const AdminApi: {
|
|
|
27
32
|
}>;
|
|
28
33
|
getStorageServers(): Promise<StorageServersResponsePayload>;
|
|
29
34
|
getStorageDetails(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
|
-
getSnapshotExtractions(params: {
|
|
35
|
+
getSnapshotExtractions(params: AxiosRequestConfig & {
|
|
31
36
|
params: Partial<SnapshotExtractionQyeryParams>;
|
|
32
37
|
}): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
33
38
|
createCameras(payload: CameraCreateRequestPayload): Promise<{
|
|
34
39
|
cameras: [AdminCamera];
|
|
35
40
|
}>;
|
|
36
41
|
deleteCamera(exid: string, payload: CameraDeletePayload): Promise<void>;
|
|
42
|
+
restoreCamera(exid: string): Promise<{
|
|
43
|
+
message: string;
|
|
44
|
+
}>;
|
|
37
45
|
testSnapshot(payload: SnapshotTestPayload): Promise<SnapshotTestResponse>;
|
|
38
46
|
getDuplicateCameras(params: {
|
|
39
47
|
params: {
|
|
@@ -46,20 +54,38 @@ export declare const AdminApi: {
|
|
|
46
54
|
}>;
|
|
47
55
|
getCameras(params: {
|
|
48
56
|
params: Partial<FetchCameraQueryParams>;
|
|
49
|
-
}): Promise<PaginatedItems<AdminCamera>>;
|
|
57
|
+
}, extraConfig?: AxiosRequestConfig): Promise<PaginatedItems<AdminCamera>>;
|
|
50
58
|
getCompares(params: {
|
|
51
59
|
params: AdminCompareQueryParams;
|
|
52
60
|
}): Promise<PaginatedItems<AdminCompare[]>>;
|
|
53
61
|
getCameraDetails(exid: string): Promise<AdminCamera>;
|
|
62
|
+
getCameraStatusLogs(exid: string, params: {
|
|
63
|
+
params: {
|
|
64
|
+
from: string;
|
|
65
|
+
to: string;
|
|
66
|
+
};
|
|
67
|
+
}): Promise<CameraStatusLog[]>;
|
|
54
68
|
deleteSnapshots(cameraId: string, params: DeleteSnapshotQueryParams): Promise<void>;
|
|
69
|
+
transferCloudRecordings(cameraId: string, params: TransferCloudRecordingsQueryParams): Promise<void>;
|
|
55
70
|
refreshDeviceSettings(cameraId: string): Promise<void>;
|
|
56
71
|
saveNote(cameraId: string, params: SaveNotePayload): Promise<CameraNote>;
|
|
57
72
|
saveCameraNote(cameraId: string, params: CreateCameraNotePayload): Promise<{
|
|
58
73
|
message: string;
|
|
59
74
|
}>;
|
|
60
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
|
+
}>;
|
|
61
82
|
};
|
|
62
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>>;
|
|
63
89
|
getCompanies(params: {
|
|
64
90
|
params: Partial<CompanyQueryParams>;
|
|
65
91
|
}): Promise<PaginatedItems<Company[]>>;
|
|
@@ -75,6 +101,16 @@ export declare const AdminApi: {
|
|
|
75
101
|
success: true;
|
|
76
102
|
}>;
|
|
77
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
|
+
};
|
|
78
114
|
emailing: {
|
|
79
115
|
performEmailing(template: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
80
116
|
suppressions(params: {
|
|
@@ -96,7 +132,7 @@ export declare const AdminApi: {
|
|
|
96
132
|
}): Promise<void>;
|
|
97
133
|
};
|
|
98
134
|
kits: {
|
|
99
|
-
getAllKits(params: {
|
|
135
|
+
getAllKits(params: AxiosRequestConfig & {
|
|
100
136
|
params: KitQueryParams;
|
|
101
137
|
}): Promise<PaginatedItems<Kit[]>>;
|
|
102
138
|
getKit(kitId: number): Promise<Kit>;
|
|
@@ -109,6 +145,19 @@ export declare const AdminApi: {
|
|
|
109
145
|
fromDate: string;
|
|
110
146
|
toDate: string;
|
|
111
147
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
148
|
+
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
149
|
+
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
150
|
+
getStorages(params: {
|
|
151
|
+
params: KitStorageRequestPayload;
|
|
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>;
|
|
112
161
|
};
|
|
113
162
|
logs: {
|
|
114
163
|
getAllCamerasStatusLogs(params: {
|
|
@@ -116,9 +165,7 @@ export declare const AdminApi: {
|
|
|
116
165
|
}): Promise<{
|
|
117
166
|
data: CameraLog[];
|
|
118
167
|
}>;
|
|
119
|
-
getCameraLogs(cameraId: string,
|
|
120
|
-
params: CameraAuditLogsQueryParams;
|
|
121
|
-
}): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
168
|
+
getCameraLogs(cameraId: string, params: CameraAuditLogsQueryParams): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
122
169
|
togglePinNote(id: string): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
123
170
|
};
|
|
124
171
|
nvrs: {
|
|
@@ -131,6 +178,16 @@ export declare const AdminApi: {
|
|
|
131
178
|
message: string;
|
|
132
179
|
}>;
|
|
133
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
|
+
};
|
|
134
191
|
offlineCameras: {
|
|
135
192
|
getSiteVisitCameras(params: {
|
|
136
193
|
params: Partial<SiteVisitCamerasQueryParams>;
|
|
@@ -142,26 +199,17 @@ export declare const AdminApi: {
|
|
|
142
199
|
cameraIds: number[];
|
|
143
200
|
}): Promise<OfflineCameraNoteResponse>;
|
|
144
201
|
};
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
getPAUserProjects(id: number): Promise<UserProjectResponse>;
|
|
151
|
-
getPAUserPeriodEvents(id: number, payload: EntityStatsQueryParams): Promise<EntityStat[]>;
|
|
152
|
-
getProjectUsers(id: string): Promise<ProjectUsers>;
|
|
153
|
-
getPAProject(id: string, params: Record<string, unknown>): Promise<{
|
|
202
|
+
projects: {
|
|
203
|
+
index(params: {
|
|
204
|
+
params: Partial<ProjectsQueryParams>;
|
|
205
|
+
}): Promise<PaginatedItems<Project>>;
|
|
206
|
+
show(exid: string, params?: Record<string, unknown>): Promise<{
|
|
154
207
|
data: Project;
|
|
155
208
|
}>;
|
|
156
|
-
|
|
209
|
+
getUsers(id: string): Promise<ProjectUsers>;
|
|
210
|
+
getCameras(id: string): Promise<{
|
|
157
211
|
data: ProjectCamera[];
|
|
158
212
|
}>;
|
|
159
|
-
};
|
|
160
|
-
projects: {
|
|
161
|
-
getAll(params: {
|
|
162
|
-
params: Partial<ProjectsQueryParams>;
|
|
163
|
-
}): Promise<PaginatedItems<Project>>;
|
|
164
|
-
getProject(exid: string): Promise<Project>;
|
|
165
213
|
getProjectsStats(): Promise<ProjectStatusStats>;
|
|
166
214
|
createProject(params: ProjectCreateRequestPayload): Promise<ProjectCreateResponse>;
|
|
167
215
|
updateProject(projectExid: string, params: Partial<ProjectUpdateRequestPayload>): Promise<ProjectCreateResponse>;
|
|
@@ -247,7 +295,7 @@ export declare const AdminApi: {
|
|
|
247
295
|
};
|
|
248
296
|
sms: {
|
|
249
297
|
sendSms(number: string, params: SendSmsPayload): Promise<SendSmsResponse>;
|
|
250
|
-
getSimHistory(number: string): Promise<SmsHistoryResponse
|
|
298
|
+
getSimHistory(number: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<SmsHistoryResponse>>;
|
|
251
299
|
getSms(params: {
|
|
252
300
|
params: Partial<SmsQueryParams>;
|
|
253
301
|
}): Promise<PaginatedItems<Sms[]>>;
|
|
@@ -264,7 +312,13 @@ export declare const AdminApi: {
|
|
|
264
312
|
}): Promise<{
|
|
265
313
|
progressPhoto: string;
|
|
266
314
|
}>;
|
|
267
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
315
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
316
|
+
};
|
|
317
|
+
tags: {
|
|
318
|
+
index(): Promise<Tag[]>;
|
|
319
|
+
create(tag: Tag): Promise<Tag>;
|
|
320
|
+
update(tag: Tag): Promise<Tag>;
|
|
321
|
+
delete(tag: Tag): Promise<void>;
|
|
268
322
|
};
|
|
269
323
|
users: {
|
|
270
324
|
updateUser(id: number, params: Partial<AdminUserUpdateRequestPayload>): Promise<AdminUser>;
|
|
@@ -286,6 +340,9 @@ export declare const AdminApi: {
|
|
|
286
340
|
getUsers(params: {
|
|
287
341
|
params: Partial<AdminUserQueryParams>;
|
|
288
342
|
}): Promise<PaginatedItems<AdminUser>>;
|
|
343
|
+
show(id: number, params: Record<string, unknown>): Promise<UserStatsResponse>;
|
|
344
|
+
getProjects(id: number): Promise<UserProjectResponse>;
|
|
345
|
+
getCameras(id: number): Promise<UserCameraResponse>;
|
|
289
346
|
getUserPasswordResetLink(email: string): Promise<{
|
|
290
347
|
passwordResetLink: string;
|
|
291
348
|
}>;
|
|
@@ -301,4 +358,10 @@ export declare const AdminApi: {
|
|
|
301
358
|
zohoDesk: {
|
|
302
359
|
searchTickets(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
303
360
|
};
|
|
361
|
+
comments: {
|
|
362
|
+
index(params: {
|
|
363
|
+
params: Partial<CommentsListRequestPayload>;
|
|
364
|
+
}): Promise<PaginatedItems<Comment>>;
|
|
365
|
+
};
|
|
304
366
|
};
|
|
367
|
+
export {};
|
|
@@ -1,43 +1,24 @@
|
|
|
1
|
-
import
|
|
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, SmartSearchQueryParams, SavedQuery, DateType, DetectionsRequestParams, DetectionsGroup, DetectionsCountsByPeriod, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchQuery, Schedule, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel } 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
|
-
|
|
57
|
-
getGateReportProjectsInfos(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
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,17 +47,60 @@ 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
|
-
getDetectionsTracking(
|
|
79
|
-
getSegmentsMasks(cameraExid: CameraExid, params:
|
|
80
|
-
getDetectionsPresenceDateIntervals({
|
|
54
|
+
getDetectionsTracking(projectExid: ProjectExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
|
|
55
|
+
getSegmentsMasks(cameraExid: CameraExid, params: SegmentsFilters): Promise<SegmentsByLabel>;
|
|
56
|
+
getDetectionsPresenceDateIntervals({ projectExid, ...params }: DetectionsCountsParams): Promise<DetectionsPresenceByLabel>;
|
|
57
|
+
requestExport({ projectExid, ...params }: DetectionsExportRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
81
58
|
};
|
|
82
59
|
siteAnalytics: {
|
|
83
|
-
smartSearch({ cameraExid,
|
|
60
|
+
smartSearch({ cameraExid, payload, fromDate, toDate, page, pageSize, }: {
|
|
84
61
|
cameraExid: CameraExid;
|
|
85
|
-
query: Record<string, unknown>;
|
|
86
62
|
payload: Record<string, unknown>;
|
|
63
|
+
fromDate?: string;
|
|
64
|
+
toDate?: string;
|
|
65
|
+
page?: number;
|
|
66
|
+
pageSize?: number;
|
|
87
67
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
68
|
+
saveQuery(payload: SmartSearchQueryParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
69
|
+
getQueries(cameraExid: CameraExid, params: {
|
|
70
|
+
name?: string;
|
|
71
|
+
}): Promise<SavedQuery[]>;
|
|
72
|
+
getQueryById(cameraExid: CameraExid, queryId: number): Promise<SmartSearchQueryParams>;
|
|
73
|
+
updateQuery(cameraExid: CameraExid, queryId: number, payload: Partial<SavedQuery>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
74
|
+
deleteQuery(cameraExid: CameraExid, queryId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
75
|
+
getProcessedTimes({ projectExid, cameraExids, granularity, endDate, startDate, }: {
|
|
76
|
+
projectExid: string;
|
|
77
|
+
cameraExids: string[];
|
|
78
|
+
granularity?: "day" | "hour";
|
|
79
|
+
startDate?: DateType;
|
|
80
|
+
endDate?: DateType;
|
|
81
|
+
}): Promise<Record<string, string[]>>;
|
|
82
|
+
exportResultsData({ cameraExid, fromDate, toDate, query, fileType, directDownload, payload, }: {
|
|
83
|
+
cameraExid: CameraExid;
|
|
84
|
+
fromDate?: DateType;
|
|
85
|
+
toDate?: DateType;
|
|
86
|
+
query: string;
|
|
87
|
+
fileType: DownloadFileType;
|
|
88
|
+
directDownload?: boolean;
|
|
89
|
+
payload: {
|
|
90
|
+
req: SmartSearchQuery;
|
|
91
|
+
timeSchedule?: Schedule;
|
|
92
|
+
columns?: string[];
|
|
93
|
+
};
|
|
94
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
95
|
+
getDetectionsHeatmapData(cameraExid: CameraExid, params: {
|
|
96
|
+
fromDate: DateType | string;
|
|
97
|
+
toDate: DateType | string;
|
|
98
|
+
labels: DetectionLabel[];
|
|
99
|
+
operator?: SmartSearchOperatorType;
|
|
100
|
+
}): Promise<{
|
|
101
|
+
results: SmartSearchHeatmapData[];
|
|
102
|
+
sqlQuery: string;
|
|
103
|
+
}>;
|
|
88
104
|
};
|
|
89
105
|
coolify: {
|
|
90
106
|
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -107,4 +123,7 @@ export declare const AiApi: {
|
|
|
107
123
|
pauseService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
108
124
|
restartService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
109
125
|
};
|
|
126
|
+
fovChanges: {
|
|
127
|
+
getCameraFovChanges(cameraExid: string, extraConfig?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
128
|
+
};
|
|
110
129
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload } from "@/types";
|
|
1
2
|
export declare const AuthzApi: {
|
|
2
3
|
roles: {
|
|
3
4
|
get(params: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -12,6 +13,12 @@ export declare const AuthzApi: {
|
|
|
12
13
|
unassignUsers(id: number, emails: Array<string>, resource_id: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
13
14
|
getUserRoles(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
15
|
};
|
|
16
|
+
projectRoles: {
|
|
17
|
+
get(projectExid: ProjectExid): Promise<import("axios").AxiosResponse<any, any>>;
|
|
18
|
+
create(projectExid: ProjectExid, params: ProjectRoleRequestPayload): Promise<ProjectResourceRole>;
|
|
19
|
+
update(projectExid: ProjectExid, roleId: number, params: ProjectRoleRequestPayload): Promise<ProjectResourceRole>;
|
|
20
|
+
delete(projectExid: ProjectExid, roleId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
21
|
+
};
|
|
15
22
|
scopes: {
|
|
16
23
|
get(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
17
24
|
create(params: any): 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
|
+
}
|