@evercam/api 1.0.0-f6f982c6c → 1.0.0-f8cd95c6b
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 +2 -0
- package/dist/api/api/3dFirebaseApi.d.ts +20 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +74 -24
- package/dist/api/api/aiApi.d.ts +143 -0
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +3 -2
- 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} +67 -25
- package/dist/api/api/evercamLabsApi.d.ts +43 -0
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/{ingestApi.d.ts → api/ingestApi.d.ts} +9 -6
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +1 -1
- 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 +13 -2
- package/dist/{types → api/types}/aconex.d.ts +1 -1
- package/dist/{types → api/types}/analytics.d.ts +78 -70
- package/dist/{types → api/types}/anpr.d.ts +11 -6
- package/dist/{types → api/types}/automation.d.ts +4 -0
- package/dist/{types → api/types}/axios.d.ts +15 -1
- package/dist/{types → api/types}/camera.d.ts +17 -56
- package/dist/{types → api/types}/comments.d.ts +15 -8
- package/dist/{types → api/types}/company.d.ts +29 -1
- package/dist/{types → api/types}/connector.d.ts +6 -1
- package/dist/api/types/coolify.d.ts +18 -0
- package/dist/{types → api/types}/copilot.d.ts +11 -9
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/api/types/detections.d.ts +126 -0
- package/dist/{types → api/types}/errors.d.ts +12 -0
- package/dist/{types → api/types}/gateReport.d.ts +50 -1
- package/dist/api/types/hdd.d.ts +63 -0
- package/dist/{types → api/types}/index.d.ts +7 -2
- package/dist/{types → api/types}/ingest.d.ts +4 -0
- package/dist/{types → api/types}/kit.d.ts +63 -12
- package/dist/{types → api/types}/nvr.d.ts +2 -1
- package/dist/{types/sitePlanner.d.ts → api/types/planner.d.ts} +10 -1
- 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 +21 -7
- package/dist/{types → api/types}/project.d.ts +10 -1
- package/dist/{types → api/types}/recording.d.ts +1 -2
- package/dist/{types → api/types}/roi.d.ts +2 -1
- package/dist/{types → api/types}/routeParams.d.ts +2 -1
- package/dist/{types → api/types}/shared.d.ts +3 -12
- package/dist/{types → api/types}/shares.d.ts +5 -1
- package/dist/api/types/siteAnalytics.d.ts +142 -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 +2 -0
- package/dist/{types → api/types}/timelapse.d.ts +15 -0
- package/dist/{types → api/types}/user.d.ts +1 -6
- package/dist/{types → api/types}/weather.d.ts +6 -2
- package/dist/{types → api/types}/widget.d.ts +11 -5
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1277 -748
- 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 +192 -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/aiApi.d.ts +0 -73
- package/dist/api/evercamLabsApi.d.ts +0 -51
- package/dist/api/weatherApi.d.ts +0 -25
- package/dist/types/detections.d.ts +0 -62
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/siteAnalytics.d.ts +0 -5
- /package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +0 -0
- /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/{videoWallApi.d.ts → api/videoWallApi.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}/credentials.d.ts +0 -0
- /package/dist/{types → api/types}/drone.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}/router.d.ts +0 -0
- /package/dist/{types → api/types}/sim.d.ts +0 -0
- /package/dist/{types → api/types}/snapshots.d.ts +0 -0
- /package/dist/{types → api/types}/storageServers.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/videoWall.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
- /package/dist/{utils.d.ts → api/utils.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
};
|
|
9
|
+
_360: {
|
|
10
|
+
getProjectInfo(projectExid: ProjectExid): Promise<_360ProjectJsonResponse>;
|
|
11
|
+
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<_360ProjectJsonResponse>;
|
|
12
|
+
updateRoute(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<any>;
|
|
13
|
+
updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<any>;
|
|
14
|
+
saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<any>;
|
|
15
|
+
updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: any): Promise<any>;
|
|
16
|
+
};
|
|
17
|
+
forge: {
|
|
18
|
+
getProjectInfo(projectExid: ProjectExid): Promise<any>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "@/types/hdd";
|
|
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, 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, KitStorageRequestPayload, CompanyUser, CompanyProject, Automation, KitStorage, KitFootageRequestPayload, KitFootageResponsePayload } from "@evercam/api/types";
|
|
2
3
|
import { KitMetricId } from "@evercam/api/types";
|
|
4
|
+
import { Tag } from "@/types/tag";
|
|
3
5
|
export declare const AdminApi: {
|
|
4
6
|
mediaHub: {
|
|
5
7
|
getAllMedia(params: {
|
|
@@ -33,6 +35,9 @@ export declare const AdminApi: {
|
|
|
33
35
|
cameras: [AdminCamera];
|
|
34
36
|
}>;
|
|
35
37
|
deleteCamera(exid: string, payload: CameraDeletePayload): Promise<void>;
|
|
38
|
+
restoreCamera(exid: string): Promise<{
|
|
39
|
+
message: string;
|
|
40
|
+
}>;
|
|
36
41
|
testSnapshot(payload: SnapshotTestPayload): Promise<SnapshotTestResponse>;
|
|
37
42
|
getDuplicateCameras(params: {
|
|
38
43
|
params: {
|
|
@@ -57,8 +62,30 @@ export declare const AdminApi: {
|
|
|
57
62
|
message: string;
|
|
58
63
|
}>;
|
|
59
64
|
update(cameraId: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
65
|
+
transferOwnership(cameraId: string, newOwnerId: number): Promise<void>;
|
|
60
66
|
};
|
|
61
67
|
companies: {
|
|
68
|
+
show(id: string, params: Object): Promise<Company>;
|
|
69
|
+
getCompanyUsers(id: string, params: {
|
|
70
|
+
params: {
|
|
71
|
+
page: number;
|
|
72
|
+
limit: number;
|
|
73
|
+
};
|
|
74
|
+
}): Promise<PaginatedItems<CompanyUser>>;
|
|
75
|
+
getCompanyProjects(id: string, params: {
|
|
76
|
+
params: {
|
|
77
|
+
page: number;
|
|
78
|
+
limit: number;
|
|
79
|
+
};
|
|
80
|
+
}): Promise<PaginatedItems<CompanyProject>>;
|
|
81
|
+
getCompanyKits(id: string, params: {
|
|
82
|
+
params: {
|
|
83
|
+
page: number;
|
|
84
|
+
limit: number;
|
|
85
|
+
sort?: string;
|
|
86
|
+
};
|
|
87
|
+
}): Promise<PaginatedItems<Kit[]>>;
|
|
88
|
+
getCompanyCameras(id: string, params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
89
|
getCompanies(params: {
|
|
63
90
|
params: Partial<CompanyQueryParams>;
|
|
64
91
|
}): Promise<PaginatedItems<Company[]>>;
|
|
@@ -94,12 +121,6 @@ export declare const AdminApi: {
|
|
|
94
121
|
type: SnapshotExtractionType;
|
|
95
122
|
}): Promise<void>;
|
|
96
123
|
};
|
|
97
|
-
gateReport: {
|
|
98
|
-
getGateReportProjects(params: {
|
|
99
|
-
params: PaginationParams;
|
|
100
|
-
}): Promise<PaginatedItems<GateReportProject[]>>;
|
|
101
|
-
getGateReportProject(projectExid: string): Promise<Project>;
|
|
102
|
-
};
|
|
103
124
|
kits: {
|
|
104
125
|
getAllKits(params: {
|
|
105
126
|
params: KitQueryParams;
|
|
@@ -114,6 +135,14 @@ export declare const AdminApi: {
|
|
|
114
135
|
fromDate: string;
|
|
115
136
|
toDate: string;
|
|
116
137
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
138
|
+
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
139
|
+
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
140
|
+
getStorages(params: {
|
|
141
|
+
params: KitStorageRequestPayload;
|
|
142
|
+
}): Promise<PaginatedItems<KitStorage[]>>;
|
|
143
|
+
getFootage(id: number, params: {
|
|
144
|
+
params: KitFootageRequestPayload;
|
|
145
|
+
}): Promise<KitFootageResponsePayload[]>;
|
|
117
146
|
};
|
|
118
147
|
logs: {
|
|
119
148
|
getAllCamerasStatusLogs(params: {
|
|
@@ -124,6 +153,7 @@ export declare const AdminApi: {
|
|
|
124
153
|
getCameraLogs(cameraId: string, payload: {
|
|
125
154
|
params: CameraAuditLogsQueryParams;
|
|
126
155
|
}): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
156
|
+
togglePinNote(id: string): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
127
157
|
};
|
|
128
158
|
nvrs: {
|
|
129
159
|
getNvrs(params: {
|
|
@@ -146,26 +176,17 @@ export declare const AdminApi: {
|
|
|
146
176
|
cameraIds: number[];
|
|
147
177
|
}): Promise<OfflineCameraNoteResponse>;
|
|
148
178
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
getPAUserProjects(id: number): Promise<UserProjectResponse>;
|
|
155
|
-
getPAUserPeriodEvents(id: number, payload: EntityStatsQueryParams): Promise<EntityStat[]>;
|
|
156
|
-
getProjectUsers(id: string): Promise<ProjectUsers>;
|
|
157
|
-
getPAProject(id: string, params: Record<string, unknown>): Promise<{
|
|
179
|
+
projects: {
|
|
180
|
+
index(params: {
|
|
181
|
+
params: Partial<ProjectsQueryParams>;
|
|
182
|
+
}): Promise<PaginatedItems<Project>>;
|
|
183
|
+
show(exid: string, params?: Record<string, unknown>): Promise<{
|
|
158
184
|
data: Project;
|
|
159
185
|
}>;
|
|
160
|
-
|
|
186
|
+
getUsers(id: string): Promise<ProjectUsers>;
|
|
187
|
+
getCameras(id: string): Promise<{
|
|
161
188
|
data: ProjectCamera[];
|
|
162
189
|
}>;
|
|
163
|
-
};
|
|
164
|
-
projects: {
|
|
165
|
-
getAll(params: {
|
|
166
|
-
params: Partial<ProjectsQueryParams>;
|
|
167
|
-
}): Promise<PaginatedItems<Project>>;
|
|
168
|
-
getProject(exid: string): Promise<Project>;
|
|
169
190
|
getProjectsStats(): Promise<ProjectStatusStats>;
|
|
170
191
|
createProject(params: ProjectCreateRequestPayload): Promise<ProjectCreateResponse>;
|
|
171
192
|
updateProject(projectExid: string, params: Partial<ProjectUpdateRequestPayload>): Promise<ProjectCreateResponse>;
|
|
@@ -200,6 +221,15 @@ export declare const AdminApi: {
|
|
|
200
221
|
projectId: string;
|
|
201
222
|
companyId: string;
|
|
202
223
|
}): Promise<Hdd[]>;
|
|
224
|
+
getAllHdds(params: {
|
|
225
|
+
params: Partial<HDDsQueryParams>;
|
|
226
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
227
|
+
deleteHdd(hddId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
228
|
+
saveHdd(params: HDDCreateUpdatePayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
229
|
+
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
230
|
+
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
231
|
+
deleteFootage(hddId: number, footageId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
232
|
+
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
203
233
|
};
|
|
204
234
|
shareRequests: {
|
|
205
235
|
getShareRequests(params: {
|
|
@@ -259,7 +289,13 @@ export declare const AdminApi: {
|
|
|
259
289
|
}): Promise<{
|
|
260
290
|
progressPhoto: string;
|
|
261
291
|
}>;
|
|
262
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
292
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
293
|
+
};
|
|
294
|
+
tags: {
|
|
295
|
+
index(): Promise<Tag[]>;
|
|
296
|
+
create(tag: Tag): Promise<Tag>;
|
|
297
|
+
update(tag: Tag): Promise<Tag>;
|
|
298
|
+
delete(tag: Tag): Promise<void>;
|
|
263
299
|
};
|
|
264
300
|
users: {
|
|
265
301
|
updateUser(id: number, params: Partial<AdminUserUpdateRequestPayload>): Promise<AdminUser>;
|
|
@@ -281,8 +317,22 @@ export declare const AdminApi: {
|
|
|
281
317
|
getUsers(params: {
|
|
282
318
|
params: Partial<AdminUserQueryParams>;
|
|
283
319
|
}): Promise<PaginatedItems<AdminUser>>;
|
|
320
|
+
show(id: number, params: Record<string, unknown>): Promise<UserStatsResponse>;
|
|
321
|
+
getProjects(id: number): Promise<UserProjectResponse>;
|
|
322
|
+
getCameras(id: number): Promise<UserCameraResponse>;
|
|
284
323
|
getUserPasswordResetLink(email: string): Promise<{
|
|
285
324
|
passwordResetLink: string;
|
|
286
325
|
}>;
|
|
287
326
|
};
|
|
327
|
+
widgets: {
|
|
328
|
+
index(params: {
|
|
329
|
+
params: Partial<WidgetsListRequestPayload>;
|
|
330
|
+
}): Promise<PaginatedItems<Widget>>;
|
|
331
|
+
show(id: number): Promise<WidgetFull>;
|
|
332
|
+
update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
|
|
333
|
+
delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
334
|
+
};
|
|
335
|
+
zohoDesk: {
|
|
336
|
+
searchTickets(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
337
|
+
};
|
|
288
338
|
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, EventsRequestPayload, EventsResponsePayload, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, AnalyticsParameters, VerifiedDaysQueryParams, EventUpdateRequestPayload, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, GateReportEventType, DateTime, RoisQueryParams, GateReportROICreateRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsCountsParams, DetectionsPresenceByLabel, SmartSearchQueryParams, SavedQuery, DateType, DetectionsRequestParams, DetectionsGroup, DetectionsCountsByPeriod, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchQuery, Schedule } from "@evercam/api/types";
|
|
2
|
+
import type { AxiosPromise, AxiosRequestConfig } from "axios";
|
|
3
|
+
import { CreateCoolifyAppRequestPayload, SaveCoolifyAppRequestPayload } from "@/types/coolify";
|
|
4
|
+
export declare const getAiApiUrl: () => string | null | undefined;
|
|
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
|
+
anpr: {
|
|
14
|
+
exportAnprLegacyEvents(projectExid: ProjectExid, params: AnprQueryParams): AxiosPromise<any>;
|
|
15
|
+
getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams): Promise<PaginatedItems<AnprEvent>>;
|
|
16
|
+
getAnprCounts(projectExid: ProjectExid, payload: AnprCountsQueryParams): Promise<AnprCount[]>;
|
|
17
|
+
updateAnprEvent(anprEventId: string, eventBody: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
18
|
+
bulkUpdateAnprRecords(anprEventsIds: number[], action: "is_plate" | "not_plate" | "is_duplicate" | "not_duplicate"): Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
|
+
exportAnprEvents(projectExid: string, params: AnprBasedGateReportExportRequestParams): AxiosPromise<string>;
|
|
20
|
+
};
|
|
21
|
+
gateReport: {
|
|
22
|
+
getLastVerified(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
+
deleteEvent(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
|
+
dismissEvents(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
25
|
+
exportEvents(projectExid: string, params: EventsExportRequestParameters): AxiosPromise<any>;
|
|
26
|
+
exportEventsProgress(projectExid: string, params: {
|
|
27
|
+
exportDate: string;
|
|
28
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
+
generateAnprThumbnail(cameraExid: CameraExid, captureTime: DateTime): Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
|
+
getAllEvents(projectExid: ProjectExid, params: EventsRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventsResponsePayload>;
|
|
31
|
+
getEventCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
32
|
+
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
|
+
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
|
+
getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
42
|
+
getEventThumbnail({ cameraExid, eventType, eventTime, token, }: {
|
|
43
|
+
cameraExid: string;
|
|
44
|
+
eventType: GateReportEventType;
|
|
45
|
+
eventTime: DateTime;
|
|
46
|
+
token: string;
|
|
47
|
+
}): string;
|
|
48
|
+
getEventSnapshot({ cameraExid, eventType, eventTime, token, }: {
|
|
49
|
+
cameraExid: string;
|
|
50
|
+
eventType: GateReportEventType;
|
|
51
|
+
eventTime: DateTime;
|
|
52
|
+
token: string;
|
|
53
|
+
}): string;
|
|
54
|
+
getEvents(projectExid: ProjectExid, params: GatReportRequestPayload, extraParams?: AxiosRequestConfig): Promise<GateReportResponsePayload>;
|
|
55
|
+
getCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
56
|
+
getGateReportApplications(projectExid: string, anprCameraExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
57
|
+
getGateReportProjectsInfos(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
58
|
+
};
|
|
59
|
+
brainTool: {
|
|
60
|
+
getObjectDetectionsResults(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
61
|
+
getSegments(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
|
+
};
|
|
63
|
+
roi: {
|
|
64
|
+
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
65
|
+
createROI(params: GateReportROICreateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
66
|
+
updateROI({ updatedBy, roi, }: {
|
|
67
|
+
updatedBy: string;
|
|
68
|
+
roi: GateReportROICreateRequestPayload;
|
|
69
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
70
|
+
deleteROI({ id, updatedBy }: {
|
|
71
|
+
id: number;
|
|
72
|
+
updatedBy: string;
|
|
73
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
74
|
+
};
|
|
75
|
+
detections: {
|
|
76
|
+
getDetections({ projectExid, ...params }: DetectionsRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
77
|
+
getDetectionsCounts({ projectExid, ...params }: DetectionsRequestParams): Promise<DetectionsCountsByPeriod>;
|
|
78
|
+
getDetectionsByTimestamp({ projectExid, ...params }: DetectionsRequestParams): Promise<PaginatedItems<DetectionsGroup>>;
|
|
79
|
+
getSimilarSegmentsInTimeIntervals({ cameraExid, iouThreshold, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
80
|
+
getDetectionsTracking(projectExid: ProjectExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
|
|
81
|
+
getSegmentsMasks(cameraExid: CameraExid, params: SegmentsFilters): Promise<SegmentsByLabel>;
|
|
82
|
+
getDetectionsPresenceDateIntervals({ projectExid, ...params }: DetectionsCountsParams): Promise<DetectionsPresenceByLabel>;
|
|
83
|
+
requestExport({ projectExid, ...params }: DetectionsExportRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
84
|
+
};
|
|
85
|
+
siteAnalytics: {
|
|
86
|
+
smartSearch({ cameraExid, payload, fromDate, toDate, page, pageSize, }: {
|
|
87
|
+
cameraExid: CameraExid;
|
|
88
|
+
payload: Record<string, unknown>;
|
|
89
|
+
fromDate?: string;
|
|
90
|
+
toDate?: string;
|
|
91
|
+
page?: number;
|
|
92
|
+
pageSize?: number;
|
|
93
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
94
|
+
saveQuery(payload: SmartSearchQueryParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
95
|
+
getQueries(cameraExid: CameraExid, params: {
|
|
96
|
+
name?: string;
|
|
97
|
+
}): Promise<SavedQuery[]>;
|
|
98
|
+
getQueryById(cameraExid: CameraExid, queryId: number): Promise<SmartSearchQueryParams>;
|
|
99
|
+
updateQuery(cameraExid: CameraExid, queryId: number, payload: Partial<SavedQuery>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
100
|
+
deleteQuery(cameraExid: CameraExid, queryId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
101
|
+
getProcessedTimes({ projectExid, cameraExids, granularity, endDate, startDate, }: {
|
|
102
|
+
projectExid: string;
|
|
103
|
+
cameraExids: string[];
|
|
104
|
+
granularity?: "day" | "hour";
|
|
105
|
+
startDate?: DateType;
|
|
106
|
+
endDate?: DateType;
|
|
107
|
+
}): Promise<Record<string, string[]>>;
|
|
108
|
+
exportResultsData({ cameraExid, fromDate, toDate, query, fileType, directDownload, payload, }: {
|
|
109
|
+
cameraExid: CameraExid;
|
|
110
|
+
fromDate?: DateType;
|
|
111
|
+
toDate?: DateType;
|
|
112
|
+
query: string;
|
|
113
|
+
fileType: DownloadFileType;
|
|
114
|
+
directDownload?: boolean;
|
|
115
|
+
payload: {
|
|
116
|
+
req: SmartSearchQuery;
|
|
117
|
+
timeSchedule?: Schedule;
|
|
118
|
+
columns?: string[];
|
|
119
|
+
};
|
|
120
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
121
|
+
};
|
|
122
|
+
coolify: {
|
|
123
|
+
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
124
|
+
createAppOnCoolify(payload: CreateCoolifyAppRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
125
|
+
saveAppOnCoolify(projectExid: string, cameraExid: string, payload: SaveCoolifyAppRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
126
|
+
updateApp({ appUuid, appId, payload, cameraExid, projectExid, }: {
|
|
127
|
+
projectExid: string;
|
|
128
|
+
cameraExid: string;
|
|
129
|
+
appId: string;
|
|
130
|
+
appUuid: string;
|
|
131
|
+
payload: Partial<SaveCoolifyAppRequestPayload>;
|
|
132
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
133
|
+
deleteApp({ appUuid, appId, cameraExid, projectExid, }: {
|
|
134
|
+
projectExid: string;
|
|
135
|
+
cameraExid: string;
|
|
136
|
+
appId: string;
|
|
137
|
+
appUuid: string;
|
|
138
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
139
|
+
startService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
140
|
+
pauseService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
141
|
+
restartService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
@@ -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,9 +1,10 @@
|
|
|
1
|
-
import { type AxiosError, type AxiosRequestConfig, type AxiosResponse } from "axios";
|
|
2
|
-
import type
|
|
1
|
+
import { AxiosDefaults, type AxiosError, type AxiosRequestConfig, type AxiosResponse } from "axios";
|
|
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<{
|
|
6
6
|
error: AxiosError<unknown, any>;
|
|
7
7
|
duration: number;
|
|
8
8
|
}>;
|
|
9
|
+
export declare const ensureCommonHeaders: (target: AxiosDefaults | AxiosRequestConfig) => void;
|
|
9
10
|
export declare const OnRequestExpiredTokenInterceptor: (request: AxiosRequestConfig, isTokenExpired: () => boolean, handler: () => Promise<void>) => Promise<AxiosRequestConfig<any>>;
|
|
@@ -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
|
+
}
|