@evercam/api 1.0.0-preview-fix-evercam-ui-publish-script-07a483d2b → 1.0.0-preview-test-on-pr-ff50e7c86
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 +4 -1
- package/dist/api/3dFirebaseApi.d.ts +12 -0
- package/dist/api/adminApi.d.ts +118 -26
- package/dist/api/aiApi.d.ts +87 -5
- package/dist/api/client/customErrors.d.ts +10 -0
- package/dist/api/client/interceptors.d.ts +3 -2
- package/dist/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/evercamApi.d.ts +81 -33
- package/dist/api/evercamLabsApi.d.ts +10 -16
- package/dist/api/ingestApi.d.ts +41 -11
- package/dist/api/ptzApi.d.ts +1 -1
- package/dist/api/weatherApi.d.ts +7 -23
- package/dist/index.js +1485 -763
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/360.d.ts +60 -2
- package/dist/types/aconex.d.ts +103 -5
- package/dist/types/analytics.d.ts +99 -71
- package/dist/types/anpr.d.ts +16 -17
- package/dist/types/automation.d.ts +55 -0
- package/dist/types/axios.d.ts +15 -1
- package/dist/types/camera.d.ts +30 -57
- package/dist/types/comments.d.ts +31 -8
- package/dist/types/company.d.ts +29 -1
- package/dist/types/connector.d.ts +6 -1
- package/dist/types/coolify.d.ts +20 -0
- package/dist/types/copilot.d.ts +11 -9
- package/dist/types/countries.d.ts +0 -7
- package/dist/types/detections.d.ts +73 -23
- package/dist/types/errors.d.ts +13 -0
- package/dist/types/gateReport.d.ts +50 -1
- package/dist/types/hdd.d.ts +63 -0
- package/dist/types/index.d.ts +10 -2
- package/dist/types/ingest.d.ts +8 -0
- package/dist/types/kit.d.ts +94 -10
- package/dist/types/nvr.d.ts +2 -1
- package/dist/types/{sitePlanner.d.ts → planner.d.ts} +10 -1
- package/dist/types/posthog.d.ts +18 -0
- package/dist/types/procore.d.ts +149 -3
- package/dist/types/progressPhoto.d.ts +6 -22
- package/dist/types/project.d.ts +14 -2
- package/dist/types/recording.d.ts +1 -2
- package/dist/types/recycleBin.d.ts +14 -0
- package/dist/types/roi.d.ts +2 -1
- package/dist/types/routeParams.d.ts +4 -2
- package/dist/types/shared.d.ts +3 -17
- package/dist/types/shares.d.ts +5 -1
- package/dist/types/siteAnalytics.d.ts +159 -1
- package/dist/types/snapshots.d.ts +9 -0
- package/dist/types/sso.d.ts +55 -0
- package/dist/types/streaming.d.ts +4 -27
- package/dist/types/systemCheck.d.ts +11 -0
- package/dist/types/tag.d.ts +12 -0
- package/dist/types/time.d.ts +6 -0
- package/dist/types/timelapse.d.ts +15 -0
- package/dist/types/user.d.ts +1 -6
- package/dist/types/weather.d.ts +8 -2
- package/dist/types/widget.d.ts +36 -11
- package/dist/types/xweather.d.ts +12 -0
- package/dist/utils.d.ts +1 -0
- package/package.json +8 -7
- package/dist/types/devices.d.ts +0 -228
|
@@ -1,9 +1,21 @@
|
|
|
1
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;
|
|
2
5
|
export declare const _3dFirebaseApi: {
|
|
3
6
|
drone: {
|
|
4
7
|
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
8
|
+
getProjectTags(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
5
9
|
};
|
|
6
10
|
_360: {
|
|
7
11
|
getProjectInfo(projectExid: ProjectExid): Promise<_360ProjectJsonResponse>;
|
|
12
|
+
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<_360ProjectJsonResponse>;
|
|
13
|
+
updateRoute(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<any>;
|
|
14
|
+
updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<any>;
|
|
15
|
+
saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<any>;
|
|
16
|
+
updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: any): Promise<any>;
|
|
17
|
+
};
|
|
18
|
+
forge: {
|
|
19
|
+
getProjectInfo(projectExid: ProjectExid): Promise<any>;
|
|
8
20
|
};
|
|
9
21
|
};
|
package/dist/api/adminApi.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
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, 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 } from "@evercam/api/types";
|
|
3
|
+
import { KitMetricId } from "@evercam/api/types";
|
|
4
|
+
import { Tag } from "@/types/tag";
|
|
5
|
+
import type { AxiosRequestConfig } from "axios";
|
|
2
6
|
export declare const AdminApi: {
|
|
3
7
|
mediaHub: {
|
|
4
8
|
getAllMedia(params: {
|
|
@@ -32,6 +36,9 @@ export declare const AdminApi: {
|
|
|
32
36
|
cameras: [AdminCamera];
|
|
33
37
|
}>;
|
|
34
38
|
deleteCamera(exid: string, payload: CameraDeletePayload): Promise<void>;
|
|
39
|
+
restoreCamera(exid: string): Promise<{
|
|
40
|
+
message: string;
|
|
41
|
+
}>;
|
|
35
42
|
testSnapshot(payload: SnapshotTestPayload): Promise<SnapshotTestResponse>;
|
|
36
43
|
getDuplicateCameras(params: {
|
|
37
44
|
params: {
|
|
@@ -44,20 +51,48 @@ export declare const AdminApi: {
|
|
|
44
51
|
}>;
|
|
45
52
|
getCameras(params: {
|
|
46
53
|
params: Partial<FetchCameraQueryParams>;
|
|
47
|
-
}): Promise<PaginatedItems<AdminCamera>>;
|
|
54
|
+
}, extraConfig?: AxiosRequestConfig): Promise<PaginatedItems<AdminCamera>>;
|
|
48
55
|
getCompares(params: {
|
|
49
56
|
params: AdminCompareQueryParams;
|
|
50
57
|
}): Promise<PaginatedItems<AdminCompare[]>>;
|
|
51
58
|
getCameraDetails(exid: string): Promise<AdminCamera>;
|
|
52
59
|
deleteSnapshots(cameraId: string, params: DeleteSnapshotQueryParams): Promise<void>;
|
|
60
|
+
transferCloudRecordings(cameraId: string, params: TransferCloudRecordingsQueryParams): Promise<void>;
|
|
53
61
|
refreshDeviceSettings(cameraId: string): Promise<void>;
|
|
54
62
|
saveNote(cameraId: string, params: SaveNotePayload): Promise<CameraNote>;
|
|
55
63
|
saveCameraNote(cameraId: string, params: CreateCameraNotePayload): Promise<{
|
|
56
64
|
message: string;
|
|
57
65
|
}>;
|
|
58
66
|
update(cameraId: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
67
|
+
transferOwnership(cameraId: string, newOwnerId: number): Promise<void>;
|
|
68
|
+
portCheck(payload: {
|
|
69
|
+
params: CheckCameraPortPayload;
|
|
70
|
+
}): Promise<CheckCameraPortPayload & {
|
|
71
|
+
open: boolean;
|
|
72
|
+
}>;
|
|
59
73
|
};
|
|
60
74
|
companies: {
|
|
75
|
+
show(id: string, params: Object): Promise<Company>;
|
|
76
|
+
getCompanyUsers(id: string, params: {
|
|
77
|
+
params: {
|
|
78
|
+
page: number;
|
|
79
|
+
limit: number;
|
|
80
|
+
};
|
|
81
|
+
}): Promise<PaginatedItems<CompanyUser>>;
|
|
82
|
+
getCompanyProjects(id: string, params: {
|
|
83
|
+
params: {
|
|
84
|
+
page: number;
|
|
85
|
+
limit: number;
|
|
86
|
+
};
|
|
87
|
+
}): Promise<PaginatedItems<CompanyProject>>;
|
|
88
|
+
getCompanyKits(id: string, params: {
|
|
89
|
+
params: {
|
|
90
|
+
page: number;
|
|
91
|
+
limit: number;
|
|
92
|
+
sort?: string;
|
|
93
|
+
};
|
|
94
|
+
}): Promise<PaginatedItems<Kit[]>>;
|
|
95
|
+
getCompanyCameras(id: string, params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
61
96
|
getCompanies(params: {
|
|
62
97
|
params: Partial<CompanyQueryParams>;
|
|
63
98
|
}): Promise<PaginatedItems<Company[]>>;
|
|
@@ -73,6 +108,16 @@ export declare const AdminApi: {
|
|
|
73
108
|
success: true;
|
|
74
109
|
}>;
|
|
75
110
|
};
|
|
111
|
+
sso: {
|
|
112
|
+
getProviders(params: {
|
|
113
|
+
params: PaginationParams;
|
|
114
|
+
}): Promise<SsoProvider[]>;
|
|
115
|
+
updateProvider(id: string, params: SsoUpdatePayload): Promise<SsoProvider>;
|
|
116
|
+
createProvider(params: SsoCreatePayload): Promise<SsoProvider>;
|
|
117
|
+
deleteProviders(ids: string[]): Promise<{
|
|
118
|
+
success: true;
|
|
119
|
+
}>;
|
|
120
|
+
};
|
|
76
121
|
emailing: {
|
|
77
122
|
performEmailing(template: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
78
123
|
suppressions(params: {
|
|
@@ -93,12 +138,6 @@ export declare const AdminApi: {
|
|
|
93
138
|
type: SnapshotExtractionType;
|
|
94
139
|
}): Promise<void>;
|
|
95
140
|
};
|
|
96
|
-
gateReport: {
|
|
97
|
-
getGateReportProjects(params: {
|
|
98
|
-
params: PaginationParams;
|
|
99
|
-
}): Promise<PaginatedItems<GateReportProject[]>>;
|
|
100
|
-
getGateReportProject(projectExid: string): Promise<Project>;
|
|
101
|
-
};
|
|
102
141
|
kits: {
|
|
103
142
|
getAllKits(params: {
|
|
104
143
|
params: KitQueryParams;
|
|
@@ -107,6 +146,21 @@ export declare const AdminApi: {
|
|
|
107
146
|
createKit(params: KitCreatePayload): Promise<AdminKit>;
|
|
108
147
|
updateKit(id: string, params: PatchPayload<Kit>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
109
148
|
deleteKit(id: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
149
|
+
getKitStats({ kitId, metric, fromDate, toDate, }: {
|
|
150
|
+
kitId: number;
|
|
151
|
+
metric: KitMetricId;
|
|
152
|
+
fromDate: string;
|
|
153
|
+
toDate: string;
|
|
154
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
155
|
+
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
156
|
+
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
157
|
+
getStorages(params: {
|
|
158
|
+
params: KitStorageRequestPayload;
|
|
159
|
+
}): Promise<PaginatedItems<KitStorage[]>>;
|
|
160
|
+
getFootage(id: number, params?: {
|
|
161
|
+
params?: KitFootageRequestPayload;
|
|
162
|
+
}): Promise<KitFootage[]>;
|
|
163
|
+
getAlarms(kitId: number): Promise<KitAlarmItem[]>;
|
|
110
164
|
};
|
|
111
165
|
logs: {
|
|
112
166
|
getAllCamerasStatusLogs(params: {
|
|
@@ -117,6 +171,7 @@ export declare const AdminApi: {
|
|
|
117
171
|
getCameraLogs(cameraId: string, payload: {
|
|
118
172
|
params: CameraAuditLogsQueryParams;
|
|
119
173
|
}): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
174
|
+
togglePinNote(id: string): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
120
175
|
};
|
|
121
176
|
nvrs: {
|
|
122
177
|
getNvrs(params: {
|
|
@@ -128,6 +183,16 @@ export declare const AdminApi: {
|
|
|
128
183
|
message: string;
|
|
129
184
|
}>;
|
|
130
185
|
};
|
|
186
|
+
recycleBin: {
|
|
187
|
+
getAllDeleted(params: {
|
|
188
|
+
params: RecycleBinQueryParams;
|
|
189
|
+
}): Promise<PaginatedItems<RecycleBin[]>>;
|
|
190
|
+
restore(params: {
|
|
191
|
+
type: string;
|
|
192
|
+
camera_ids: number[];
|
|
193
|
+
project_ids: number[];
|
|
194
|
+
}): Promise<void>;
|
|
195
|
+
};
|
|
131
196
|
offlineCameras: {
|
|
132
197
|
getSiteVisitCameras(params: {
|
|
133
198
|
params: Partial<SiteVisitCamerasQueryParams>;
|
|
@@ -139,26 +204,17 @@ export declare const AdminApi: {
|
|
|
139
204
|
cameraIds: number[];
|
|
140
205
|
}): Promise<OfflineCameraNoteResponse>;
|
|
141
206
|
};
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
getPAUserProjects(id: number): Promise<UserProjectResponse>;
|
|
148
|
-
getPAUserPeriodEvents(id: number, payload: EntityStatsQueryParams): Promise<EntityStat[]>;
|
|
149
|
-
getProjectUsers(id: string): Promise<ProjectUsers>;
|
|
150
|
-
getPAProject(id: string, params: Record<string, unknown>): Promise<{
|
|
207
|
+
projects: {
|
|
208
|
+
index(params: {
|
|
209
|
+
params: Partial<ProjectsQueryParams>;
|
|
210
|
+
}): Promise<PaginatedItems<Project>>;
|
|
211
|
+
show(exid: string, params?: Record<string, unknown>): Promise<{
|
|
151
212
|
data: Project;
|
|
152
213
|
}>;
|
|
153
|
-
|
|
214
|
+
getUsers(id: string): Promise<ProjectUsers>;
|
|
215
|
+
getCameras(id: string): Promise<{
|
|
154
216
|
data: ProjectCamera[];
|
|
155
217
|
}>;
|
|
156
|
-
};
|
|
157
|
-
projects: {
|
|
158
|
-
getAll(params: {
|
|
159
|
-
params: Partial<ProjectsQueryParams>;
|
|
160
|
-
}): Promise<PaginatedItems<Project>>;
|
|
161
|
-
getProject(exid: string): Promise<Project>;
|
|
162
218
|
getProjectsStats(): Promise<ProjectStatusStats>;
|
|
163
219
|
createProject(params: ProjectCreateRequestPayload): Promise<ProjectCreateResponse>;
|
|
164
220
|
updateProject(projectExid: string, params: Partial<ProjectUpdateRequestPayload>): Promise<ProjectCreateResponse>;
|
|
@@ -193,6 +249,15 @@ export declare const AdminApi: {
|
|
|
193
249
|
projectId: string;
|
|
194
250
|
companyId: string;
|
|
195
251
|
}): Promise<Hdd[]>;
|
|
252
|
+
getAllHdds(params: {
|
|
253
|
+
params: Partial<HDDsQueryParams>;
|
|
254
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
255
|
+
deleteHdd(hddId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
256
|
+
saveHdd(params: HDDCreateUpdatePayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
257
|
+
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
258
|
+
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
259
|
+
deleteFootage(hddId: number, footageId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
260
|
+
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
196
261
|
};
|
|
197
262
|
shareRequests: {
|
|
198
263
|
getShareRequests(params: {
|
|
@@ -235,7 +300,9 @@ export declare const AdminApi: {
|
|
|
235
300
|
};
|
|
236
301
|
sms: {
|
|
237
302
|
sendSms(number: string, params: SendSmsPayload): Promise<SendSmsResponse>;
|
|
238
|
-
getSimHistory(number: string
|
|
303
|
+
getSimHistory(number: string, params: {
|
|
304
|
+
params: PaginationParams;
|
|
305
|
+
}): Promise<PaginatedItems<SmsHistoryResponse>>;
|
|
239
306
|
getSms(params: {
|
|
240
307
|
params: Partial<SmsQueryParams>;
|
|
241
308
|
}): Promise<PaginatedItems<Sms[]>>;
|
|
@@ -252,7 +319,13 @@ export declare const AdminApi: {
|
|
|
252
319
|
}): Promise<{
|
|
253
320
|
progressPhoto: string;
|
|
254
321
|
}>;
|
|
255
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
322
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
323
|
+
};
|
|
324
|
+
tags: {
|
|
325
|
+
index(): Promise<Tag[]>;
|
|
326
|
+
create(tag: Tag): Promise<Tag>;
|
|
327
|
+
update(tag: Tag): Promise<Tag>;
|
|
328
|
+
delete(tag: Tag): Promise<void>;
|
|
256
329
|
};
|
|
257
330
|
users: {
|
|
258
331
|
updateUser(id: number, params: Partial<AdminUserUpdateRequestPayload>): Promise<AdminUser>;
|
|
@@ -274,8 +347,27 @@ export declare const AdminApi: {
|
|
|
274
347
|
getUsers(params: {
|
|
275
348
|
params: Partial<AdminUserQueryParams>;
|
|
276
349
|
}): Promise<PaginatedItems<AdminUser>>;
|
|
350
|
+
show(id: number, params: Record<string, unknown>): Promise<UserStatsResponse>;
|
|
351
|
+
getProjects(id: number): Promise<UserProjectResponse>;
|
|
352
|
+
getCameras(id: number): Promise<UserCameraResponse>;
|
|
277
353
|
getUserPasswordResetLink(email: string): Promise<{
|
|
278
354
|
passwordResetLink: string;
|
|
279
355
|
}>;
|
|
280
356
|
};
|
|
357
|
+
widgets: {
|
|
358
|
+
index(params: {
|
|
359
|
+
params: Partial<WidgetsListRequestPayload>;
|
|
360
|
+
}): Promise<PaginatedItems<Widget>>;
|
|
361
|
+
show(id: number): Promise<WidgetFull>;
|
|
362
|
+
update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
|
|
363
|
+
delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
364
|
+
};
|
|
365
|
+
zohoDesk: {
|
|
366
|
+
searchTickets(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
367
|
+
};
|
|
368
|
+
comments: {
|
|
369
|
+
index(params: {
|
|
370
|
+
params: Partial<CommentsListRequestPayload>;
|
|
371
|
+
}): Promise<PaginatedItems<Comment>>;
|
|
372
|
+
};
|
|
281
373
|
};
|
package/dist/api/aiApi.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
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, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel } from "@evercam/api/types";
|
|
2
2
|
import type { AxiosPromise, AxiosRequestConfig } from "axios";
|
|
3
|
+
import { CreateCoolifyAppRequestPayload, SaveCoolifyAppRequestPayload } from "@/types/coolify";
|
|
3
4
|
export declare const getAiApiUrl: () => string | null | undefined;
|
|
4
5
|
export declare const AiApi: {
|
|
5
6
|
analyticsParameters: {
|
|
@@ -11,14 +12,13 @@ export declare const AiApi: {
|
|
|
11
12
|
};
|
|
12
13
|
anpr: {
|
|
13
14
|
exportAnprLegacyEvents(projectExid: ProjectExid, params: AnprQueryParams): AxiosPromise<any>;
|
|
14
|
-
getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams): Promise<PaginatedItems<AnprEvent>>;
|
|
15
|
-
getAnprCounts(projectExid: ProjectExid, payload: AnprCountsQueryParams): Promise<AnprCount[]>;
|
|
15
|
+
getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<AnprEvent>>;
|
|
16
|
+
getAnprCounts(projectExid: ProjectExid, payload: AnprCountsQueryParams, extraParams?: AxiosRequestConfig): Promise<AnprCount[]>;
|
|
16
17
|
updateAnprEvent(anprEventId: string, eventBody: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
17
18
|
bulkUpdateAnprRecords(anprEventsIds: number[], action: "is_plate" | "not_plate" | "is_duplicate" | "not_duplicate"): Promise<import("axios").AxiosResponse<any, any>>;
|
|
18
19
|
exportAnprEvents(projectExid: string, params: AnprBasedGateReportExportRequestParams): AxiosPromise<string>;
|
|
19
20
|
};
|
|
20
21
|
gateReport: {
|
|
21
|
-
getGateReportProjects(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
22
|
getLastVerified(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
23
|
deleteEvent(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
24
|
dismissEvents(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -26,6 +26,7 @@ export declare const AiApi: {
|
|
|
26
26
|
exportEventsProgress(projectExid: string, params: {
|
|
27
27
|
exportDate: string;
|
|
28
28
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
+
generateAnprThumbnail(cameraExid: CameraExid, captureTime: DateTime): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
30
|
getAllEvents(projectExid: ProjectExid, params: EventsRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventsResponsePayload>;
|
|
30
31
|
getEventCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
31
32
|
getVerifiedDays(projectExid: ProjectExid, params: Partial<VerifiedDaysQueryParams>, extraParams?: {}): Promise<PaginatedItems<GateReportVerifiedDay>>;
|
|
@@ -52,11 +53,12 @@ export declare const AiApi: {
|
|
|
52
53
|
}): string;
|
|
53
54
|
getEvents(projectExid: ProjectExid, params: GatReportRequestPayload, extraParams?: AxiosRequestConfig): Promise<GateReportResponsePayload>;
|
|
54
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>>;
|
|
55
58
|
};
|
|
56
59
|
brainTool: {
|
|
57
60
|
getObjectDetectionsResults(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
58
61
|
getSegments(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
59
|
-
getDepth(cameraExid: string, timestamp: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
60
62
|
};
|
|
61
63
|
roi: {
|
|
62
64
|
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
@@ -70,4 +72,84 @@ export declare const AiApi: {
|
|
|
70
72
|
updatedBy: string;
|
|
71
73
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
72
74
|
};
|
|
75
|
+
detections: {
|
|
76
|
+
getDetections({ projectExid, ...params }: DetectionsRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
77
|
+
getDetectionsCounts({ projectExid, ...params }: DetectionsRequestParams, extraParams?: AxiosRequestConfig): Promise<DetectionsCountsByPeriod>;
|
|
78
|
+
getDetectionsByTimestamp({ projectExid, ...params }: DetectionsRequestParams, extraParams?: AxiosRequestConfig): 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
|
+
getDetectionsHeatmapData(cameraExid: CameraExid, params: {
|
|
122
|
+
fromDate: DateType | string;
|
|
123
|
+
toDate: DateType | string;
|
|
124
|
+
labels: DetectionLabel[];
|
|
125
|
+
operator?: SmartSearchOperatorType;
|
|
126
|
+
}): Promise<{
|
|
127
|
+
results: SmartSearchHeatmapData[];
|
|
128
|
+
sqlQuery: string;
|
|
129
|
+
}>;
|
|
130
|
+
};
|
|
131
|
+
coolify: {
|
|
132
|
+
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
133
|
+
createAppOnCoolify(payload: CreateCoolifyAppRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
134
|
+
saveAppOnCoolify(projectExid: string, cameraExid: string, payload: SaveCoolifyAppRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
135
|
+
updateApp({ appUuid, appId, payload, cameraExid, projectExid, }: {
|
|
136
|
+
projectExid: string;
|
|
137
|
+
cameraExid: string;
|
|
138
|
+
appId: string;
|
|
139
|
+
appUuid: string;
|
|
140
|
+
payload: Partial<SaveCoolifyAppRequestPayload>;
|
|
141
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
142
|
+
deleteApp({ appUuid, appId, cameraExid, projectExid, }: {
|
|
143
|
+
projectExid: string;
|
|
144
|
+
cameraExid: string;
|
|
145
|
+
appId: string;
|
|
146
|
+
appUuid: string;
|
|
147
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
148
|
+
startService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
149
|
+
pauseService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
150
|
+
restartService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
151
|
+
};
|
|
152
|
+
fovChanges: {
|
|
153
|
+
getCameraFovChanges(cameraExid: string, extraConfig?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
154
|
+
};
|
|
73
155
|
};
|
|
@@ -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
|
+
}
|