@evercam/api 1.0.0-a405572ff → 1.0.0-a99b6a77f
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 +1 -1
- package/dist/api/adminApi.d.ts +51 -24
- package/dist/api/aiApi.d.ts +38 -1
- package/dist/api/client/interceptors.d.ts +2 -1
- package/dist/api/evercamApi.d.ts +19 -14
- package/dist/api/evercamLabsApi.d.ts +7 -7
- package/dist/api/ingestApi.d.ts +2 -1
- package/dist/api/ptzApi.d.ts +1 -1
- package/dist/api/weatherApi.d.ts +7 -23
- package/dist/index.js +776 -638
- 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 +2 -2
- package/dist/types/analytics.d.ts +28 -59
- package/dist/types/anpr.d.ts +10 -7
- package/dist/types/axios.d.ts +0 -1
- package/dist/types/camera.d.ts +7 -3
- package/dist/types/connector.d.ts +2 -1
- package/dist/types/coolify.d.ts +18 -0
- package/dist/types/copilot.d.ts +11 -9
- package/dist/types/detections.d.ts +23 -9
- package/dist/types/gateReport.d.ts +50 -1
- package/dist/types/hdd.d.ts +63 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/kit.d.ts +41 -8
- package/dist/types/nvr.d.ts +2 -1
- package/dist/types/{sitePlanner.d.ts → planner.d.ts} +6 -1
- package/dist/types/project.d.ts +5 -2
- package/dist/types/shared.d.ts +2 -11
- package/dist/types/shares.d.ts +5 -1
- package/dist/types/siteAnalytics.d.ts +80 -1
- package/dist/types/streaming.d.ts +3 -5
- package/dist/types/tag.d.ts +12 -0
- package/dist/types/timelapse.d.ts +15 -0
- package/dist/types/weather.d.ts +6 -2
- package/dist/types/widget.d.ts +11 -5
- package/dist/types/xweather.d.ts +12 -0
- package/package.json +7 -6
package/README.md
CHANGED
package/dist/api/adminApi.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "@/types/hdd";
|
|
2
|
+
import type { CamerasResponsePayload, CameraUpdateRequestPayload, PaginatedItems, AdminCamera, Project, Hdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload, ProgressPhoto, 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 } from "@evercam/api/types";
|
|
3
|
+
import { KitMetricId } from "@evercam/api/types";
|
|
4
|
+
import { Tag } from "@/types/tag";
|
|
2
5
|
export declare const AdminApi: {
|
|
3
6
|
mediaHub: {
|
|
4
7
|
getAllMedia(params: {
|
|
@@ -32,6 +35,9 @@ export declare const AdminApi: {
|
|
|
32
35
|
cameras: [AdminCamera];
|
|
33
36
|
}>;
|
|
34
37
|
deleteCamera(exid: string, payload: CameraDeletePayload): Promise<void>;
|
|
38
|
+
restoreCamera(exid: string): Promise<{
|
|
39
|
+
message: string;
|
|
40
|
+
}>;
|
|
35
41
|
testSnapshot(payload: SnapshotTestPayload): Promise<SnapshotTestResponse>;
|
|
36
42
|
getDuplicateCameras(params: {
|
|
37
43
|
params: {
|
|
@@ -93,12 +99,6 @@ export declare const AdminApi: {
|
|
|
93
99
|
type: SnapshotExtractionType;
|
|
94
100
|
}): Promise<void>;
|
|
95
101
|
};
|
|
96
|
-
gateReport: {
|
|
97
|
-
getGateReportProjects(params: {
|
|
98
|
-
params: PaginationParams;
|
|
99
|
-
}): Promise<PaginatedItems<GateReportProject[]>>;
|
|
100
|
-
getGateReportProject(projectExid: string): Promise<Project>;
|
|
101
|
-
};
|
|
102
102
|
kits: {
|
|
103
103
|
getAllKits(params: {
|
|
104
104
|
params: KitQueryParams;
|
|
@@ -107,6 +107,14 @@ export declare const AdminApi: {
|
|
|
107
107
|
createKit(params: KitCreatePayload): Promise<AdminKit>;
|
|
108
108
|
updateKit(id: string, params: PatchPayload<Kit>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
109
109
|
deleteKit(id: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
110
|
+
getKitStats({ kitId, metric, fromDate, toDate, }: {
|
|
111
|
+
kitId: number;
|
|
112
|
+
metric: KitMetricId;
|
|
113
|
+
fromDate: string;
|
|
114
|
+
toDate: string;
|
|
115
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
116
|
+
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
117
|
+
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
110
118
|
};
|
|
111
119
|
logs: {
|
|
112
120
|
getAllCamerasStatusLogs(params: {
|
|
@@ -117,6 +125,7 @@ export declare const AdminApi: {
|
|
|
117
125
|
getCameraLogs(cameraId: string, payload: {
|
|
118
126
|
params: CameraAuditLogsQueryParams;
|
|
119
127
|
}): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
128
|
+
togglePinNote(id: string): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
120
129
|
};
|
|
121
130
|
nvrs: {
|
|
122
131
|
getNvrs(params: {
|
|
@@ -139,26 +148,15 @@ export declare const AdminApi: {
|
|
|
139
148
|
cameraIds: number[];
|
|
140
149
|
}): Promise<OfflineCameraNoteResponse>;
|
|
141
150
|
};
|
|
142
|
-
pa: {
|
|
143
|
-
getPAUser(id: number, params: Record<string, unknown>): Promise<UserStatsResponse>;
|
|
144
|
-
getPAProjectPeriodEvents(id: string | number, payload: EntityStatsQueryParams): Promise<EntityStat[]>;
|
|
145
|
-
getPAUserEvents(id: string | number): Promise<UserSession[]>;
|
|
146
|
-
getPAUserCameras(id: number): Promise<UserCameraResponse>;
|
|
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<{
|
|
151
|
-
data: Project;
|
|
152
|
-
}>;
|
|
153
|
-
getPAProjectCameras(id: string): Promise<{
|
|
154
|
-
data: ProjectCamera[];
|
|
155
|
-
}>;
|
|
156
|
-
};
|
|
157
151
|
projects: {
|
|
158
|
-
|
|
152
|
+
index(params: {
|
|
159
153
|
params: Partial<ProjectsQueryParams>;
|
|
160
154
|
}): Promise<PaginatedItems<Project>>;
|
|
161
|
-
|
|
155
|
+
show(exid: string, params?: Record<string, unknown>): Promise<Project>;
|
|
156
|
+
getUsers(id: string): Promise<ProjectUsers>;
|
|
157
|
+
getCameras(id: string): Promise<{
|
|
158
|
+
data: ProjectCamera[];
|
|
159
|
+
}>;
|
|
162
160
|
getProjectsStats(): Promise<ProjectStatusStats>;
|
|
163
161
|
createProject(params: ProjectCreateRequestPayload): Promise<ProjectCreateResponse>;
|
|
164
162
|
updateProject(projectExid: string, params: Partial<ProjectUpdateRequestPayload>): Promise<ProjectCreateResponse>;
|
|
@@ -193,6 +191,15 @@ export declare const AdminApi: {
|
|
|
193
191
|
projectId: string;
|
|
194
192
|
companyId: string;
|
|
195
193
|
}): Promise<Hdd[]>;
|
|
194
|
+
getAllHdds(params: {
|
|
195
|
+
params: Partial<HDDsQueryParams>;
|
|
196
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
197
|
+
deleteHdd(hddId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
198
|
+
saveHdd(params: HDDCreateUpdatePayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
199
|
+
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
200
|
+
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
201
|
+
deleteFootage(hddId: number, footageId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
202
|
+
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
196
203
|
};
|
|
197
204
|
shareRequests: {
|
|
198
205
|
getShareRequests(params: {
|
|
@@ -254,6 +261,12 @@ export declare const AdminApi: {
|
|
|
254
261
|
}>;
|
|
255
262
|
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhoto>;
|
|
256
263
|
};
|
|
264
|
+
tags: {
|
|
265
|
+
index(): Promise<Tag[]>;
|
|
266
|
+
create(tag: Tag): Promise<Tag>;
|
|
267
|
+
update(tag: Tag): Promise<Tag>;
|
|
268
|
+
delete(tag: Tag): Promise<void>;
|
|
269
|
+
};
|
|
257
270
|
users: {
|
|
258
271
|
updateUser(id: number, params: Partial<AdminUserUpdateRequestPayload>): Promise<AdminUser>;
|
|
259
272
|
getAdmins(params: {
|
|
@@ -274,8 +287,22 @@ export declare const AdminApi: {
|
|
|
274
287
|
getUsers(params: {
|
|
275
288
|
params: Partial<AdminUserQueryParams>;
|
|
276
289
|
}): Promise<PaginatedItems<AdminUser>>;
|
|
290
|
+
show(id: number, params: Record<string, unknown>): Promise<UserStatsResponse>;
|
|
291
|
+
getProjects(id: number): Promise<UserProjectResponse>;
|
|
292
|
+
getCameras(id: number): Promise<UserCameraResponse>;
|
|
277
293
|
getUserPasswordResetLink(email: string): Promise<{
|
|
278
294
|
passwordResetLink: string;
|
|
279
295
|
}>;
|
|
280
296
|
};
|
|
297
|
+
widgets: {
|
|
298
|
+
index(params: {
|
|
299
|
+
params: Partial<WidgetsListRequestPayload>;
|
|
300
|
+
}): Promise<PaginatedItems<Widget>>;
|
|
301
|
+
show(id: number): Promise<WidgetFull>;
|
|
302
|
+
update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
|
|
303
|
+
delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
304
|
+
};
|
|
305
|
+
zohoDesk: {
|
|
306
|
+
searchTickets(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
307
|
+
};
|
|
281
308
|
};
|
package/dist/api/aiApi.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { 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 } from "@evercam/api/types";
|
|
1
|
+
import type { 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, CountsParams, DetectionsPresenceByLabel } 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: {
|
|
@@ -52,6 +53,8 @@ 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>>;
|
|
@@ -70,4 +73,38 @@ export declare const AiApi: {
|
|
|
70
73
|
updatedBy: string;
|
|
71
74
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
72
75
|
};
|
|
76
|
+
detections: {
|
|
77
|
+
getSimilarSegmentsInTimeIntervals({ cameraExid, iouThreshold, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
78
|
+
getDetectionsTracking(cameraExid: CameraExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
|
|
79
|
+
getSegmentsMasks(cameraExid: CameraExid, params: DetectionsFilters): Promise<SegmentsByLabel>;
|
|
80
|
+
getDetectionsPresenceDateIntervals({ cameraExid, ...params }: CountsParams): Promise<DetectionsPresenceByLabel>;
|
|
81
|
+
};
|
|
82
|
+
siteAnalytics: {
|
|
83
|
+
smartSearch({ cameraExid, query, payload, }: {
|
|
84
|
+
cameraExid: CameraExid;
|
|
85
|
+
query: Record<string, unknown>;
|
|
86
|
+
payload: Record<string, unknown>;
|
|
87
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
88
|
+
};
|
|
89
|
+
coolify: {
|
|
90
|
+
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
91
|
+
createAppOnCoolify(payload: CreateCoolifyAppRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
92
|
+
saveAppOnCoolify(projectExid: string, cameraExid: string, payload: SaveCoolifyAppRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
93
|
+
updateApp({ appUuid, appId, payload, cameraExid, projectExid, }: {
|
|
94
|
+
projectExid: string;
|
|
95
|
+
cameraExid: string;
|
|
96
|
+
appId: string;
|
|
97
|
+
appUuid: string;
|
|
98
|
+
payload: Partial<SaveCoolifyAppRequestPayload>;
|
|
99
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
100
|
+
deleteApp({ appUuid, appId, cameraExid, projectExid, }: {
|
|
101
|
+
projectExid: string;
|
|
102
|
+
cameraExid: string;
|
|
103
|
+
appId: string;
|
|
104
|
+
appUuid: string;
|
|
105
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
106
|
+
startService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
107
|
+
pauseService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
108
|
+
restartService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
109
|
+
};
|
|
73
110
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AxiosError, type AxiosRequestConfig, type AxiosResponse } from "axios";
|
|
1
|
+
import { AxiosDefaults, type AxiosError, type AxiosRequestConfig, type AxiosResponse } from "axios";
|
|
2
2
|
import type { AxiosEnvironment } from "../../types";
|
|
3
3
|
export declare const onRequest: (request: AxiosRequestConfig, axiosEnv: AxiosEnvironment) => Promise<AxiosRequestConfig<any>>;
|
|
4
4
|
export declare const onResponse: (response: AxiosResponse) => any;
|
|
@@ -6,4 +6,5 @@ export declare const onError: (error: AxiosError, axiosEnv: AxiosEnvironment) =>
|
|
|
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>>;
|
package/dist/api/evercamApi.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from "axios";
|
|
2
|
-
import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProjectsResponsePayload,
|
|
2
|
+
import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProjectsResponsePayload, ApiCredentials, AutodeskFolderResponsePayload, AutodeskProjectsResponsePayload, AutodeskTokenResponsePayload, AutodeskUploadSnapshotPayload, AutodeskUserHubsResponsePayload, AvailableDaysRequestPayload, AvailableDaysResponsePayload, AvailableHoursRequestPayload, AvailableHoursResponsePayload, BatteryReading, BatteryVoltage, BimCompareExportRequestPayload, BimCreationPayload, BIMLayer, BIMLayerPostPayload, BimLayersQueryParams, BimModelRequestPayload, BimModelResponsePayload, BimPendingImage, BimSnapshotRequestPayload, BimSnapshotResponsePayload, BimUploadCameraParameters, CameraExid, CameraLogsResponsePayload, CamerasResponsePayload, CameraStatusLog, CameraUpdateRequestPayload, CheckCameraPortPayload, Comment, CommentCreationRequestPayload, CommentsRequestPayload, Company, CompanyProject, CompanyUser, Compare, CompareRequestPayload, ConnectorResponsePayload, Credentials, GoogleAuthRequestPayload, LoginRequestPayload, LoginResponsePayload, Logo, LogoutParams, Media, MediaCreateRequestPayload, MediaFilterQueryParams, MediaUpdateRequestPayload, MediaUsersResponsePayload, NearestSnapshotRequestPayload, NearestSnapshotResponsePayload, PaginatedItems, PendingBimImagesParams, ProcessPendingImagesBimParams, ProcoreEditedImageUploadRequestPayload, ProcoreProjectsAlbumsPayload, ProcoreProjectsAlbumsRequestPayload, ProcoreUserCompaniesResponsePayload, ProcoreUserProjectRequestPayload, ProcoreUserProjectsResponsePayload, ProgressPhotosCreateUpdateRequestPayload, ProgressPhotosResponsePayload, ProgressPhotosUnSubscribeParams, ProjectBatteryReading, ProjectExid, ProjectLogoResponsePayload, ProjectResponsePayload, ProjectShareResponse, RemotePasswordUpdateRequestPayload, ResendShareRequestPayload, SessionsListRequestPayload, Share, ShareCreateRequestPayload, ShareCreateResponsePayload, ShareDeletionRequestPayload, SharedUsersResponsePayload, ShareProjectCamerasRequestPayload, UpdateUserRestrictionPayload, UpdateCameraRestrictionPayload, ShareRequestsResponsePayload, SharesResponsePayload, SignupUserRequestPayload, Snapshot, SnapshotRangeRequestPayload, SnapshotRangeResponsePayload, ThumbnailData, TimelapseCreationRequestPayload, TimelapseCreationResponsePayload, TimelapseSnapshotRequestPayload, TimelapseSnapshotResponsePayload, UpdatePasswordRequestPayload, UserDeleteRequestPayload, UserSession, UserUpdateRequestPayload, VoyageControlConnectorPayload, XWeatherCreatePayload, XWeatherResponse, Widget, WidgetFull, WidgetPayload, WidgetsListRequestPayload } from "@evercam/api/types";
|
|
3
3
|
export declare const EvercamApi: {
|
|
4
4
|
apiStatus: {
|
|
5
5
|
getApiStatus(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -14,7 +14,7 @@ export declare const EvercamApi: {
|
|
|
14
14
|
loginWithApiCredentials(apiId: String, apiKey: String): Promise<LoginResponsePayload>;
|
|
15
15
|
loginWithWidgetCredentials(widgetId: String, widgetKey: String): Promise<LoginResponsePayload>;
|
|
16
16
|
loginWithProvider(provider: string, payload: GoogleAuthRequestPayload): Promise<LoginResponsePayload>;
|
|
17
|
-
|
|
17
|
+
show(email: string): Promise<{
|
|
18
18
|
users: LoginResponsePayload[];
|
|
19
19
|
}>;
|
|
20
20
|
logout(payload: LogoutParams, config?: Partial<AxiosRequestConfig>): Promise<void>;
|
|
@@ -31,7 +31,6 @@ export declare const EvercamApi: {
|
|
|
31
31
|
confirm(email: string, payload: any): Promise<LoginResponsePayload>;
|
|
32
32
|
deleteActiveSession(sessionId: string, payload?: any): Promise<void>;
|
|
33
33
|
getActiveSessions(payload: SessionsListRequestPayload): Promise<PaginatedItems<UserSession>>;
|
|
34
|
-
getSessionActivities(payload: SessionActivitiesListRequestPayload): Promise<PaginatedItems<SessionActivity>>;
|
|
35
34
|
update(email: string, params?: Partial<UserUpdateRequestPayload>): Promise<{
|
|
36
35
|
users: LoginResponsePayload[];
|
|
37
36
|
}>;
|
|
@@ -91,6 +90,13 @@ export declare const EvercamApi: {
|
|
|
91
90
|
message: string;
|
|
92
91
|
}>;
|
|
93
92
|
getThumbnailData(projectExid: string): Promise<ThumbnailData>;
|
|
93
|
+
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
94
|
+
updatePlaceholderThumbnail(projectExid: string, params: {
|
|
95
|
+
placeholder?: string;
|
|
96
|
+
}): Promise<{
|
|
97
|
+
message: string;
|
|
98
|
+
}>;
|
|
99
|
+
getPlaceholderThumbnailData(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
94
100
|
};
|
|
95
101
|
timelapse: {
|
|
96
102
|
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
@@ -104,6 +110,9 @@ export declare const EvercamApi: {
|
|
|
104
110
|
cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Compare>;
|
|
105
111
|
cDelete(projectExid: string, id: string): Promise<void>;
|
|
106
112
|
};
|
|
113
|
+
projectConnectos: {
|
|
114
|
+
index(projectExid: string): Promise<Array<XWeatherResponse>>;
|
|
115
|
+
};
|
|
107
116
|
providers: {
|
|
108
117
|
getProviders(): Promise<ConnectorResponsePayload>;
|
|
109
118
|
};
|
|
@@ -135,6 +144,10 @@ export declare const EvercamApi: {
|
|
|
135
144
|
connect(payload: VoyageControlConnectorPayload): Promise<unknown>;
|
|
136
145
|
sendRevoke(): Promise<null>;
|
|
137
146
|
};
|
|
147
|
+
xweather: {
|
|
148
|
+
connect(projectExid: string, payload: XWeatherCreatePayload): Promise<XWeatherResponse>;
|
|
149
|
+
revoke(projectExid: string): Promise<null>;
|
|
150
|
+
};
|
|
138
151
|
recordings: {
|
|
139
152
|
oldest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
140
153
|
latest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
@@ -160,14 +173,6 @@ export declare const EvercamApi: {
|
|
|
160
173
|
cUpdate(projectExid: number, id: number, payload: MediaUpdateRequestPayload): Promise<Media>;
|
|
161
174
|
cDelete(projectExid: number, id: number): Promise<void>;
|
|
162
175
|
};
|
|
163
|
-
analytics: {
|
|
164
|
-
sendAnalyticsEvent(params: AnalyticsRequestPayload, headers: object): Promise<null>;
|
|
165
|
-
getPACompanyPeriodEvents(id: string | number, payload: ProjectPAStatsRequestPayload): Promise<PaginatedItems<ProjectPAStatsResponsePayload>>;
|
|
166
|
-
getPAProjectPeriodEvents(projectId: string, payload: ProjectPAStatsRequestPayload): Promise<PaginatedItems<ProjectPAStatsResponsePayload>>;
|
|
167
|
-
getActiveUsers(params: {
|
|
168
|
-
params: ActiveUsersStatsRequestPayload;
|
|
169
|
-
}): Promise<ActiveUserStat>;
|
|
170
|
-
};
|
|
171
176
|
shares: {
|
|
172
177
|
updateShareRights(cameraExid: CameraExid, payload: {
|
|
173
178
|
email: string;
|
|
@@ -199,6 +204,7 @@ export declare const EvercamApi: {
|
|
|
199
204
|
}): Promise<void>;
|
|
200
205
|
resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
|
|
201
206
|
getProjectShares(exid: string): Promise<ProjectShareResponse>;
|
|
207
|
+
updateUserRestriction(projectExid: ProjectExid, payload: UpdateUserRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
202
208
|
};
|
|
203
209
|
companies: {
|
|
204
210
|
getCompanyUsers(companyExid: string, params: {
|
|
@@ -213,8 +219,7 @@ export declare const EvercamApi: {
|
|
|
213
219
|
limit: number;
|
|
214
220
|
};
|
|
215
221
|
}): Promise<PaginatedItems<CompanyProject>>;
|
|
216
|
-
|
|
217
|
-
getActiveUsers(params: ActiveUsersStatsRequestPayload): Promise<ActiveUserStat>;
|
|
222
|
+
show(companyId: string, params?: Record<string, string>): Promise<Company>;
|
|
218
223
|
getCompanyCameras(id: string, params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
219
224
|
};
|
|
220
225
|
batteries: {
|
|
@@ -254,7 +259,7 @@ export declare const EvercamApi: {
|
|
|
254
259
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
255
260
|
};
|
|
256
261
|
widgets: {
|
|
257
|
-
index(params: WidgetsListRequestPayload): Promise<PaginatedItems<Widget>>;
|
|
262
|
+
index(params: Partial<WidgetsListRequestPayload>): Promise<PaginatedItems<Widget>>;
|
|
258
263
|
show(id: number): Promise<WidgetFull>;
|
|
259
264
|
getByKeys(): Promise<WidgetFull>;
|
|
260
265
|
setSessionSettings(params: any): Promise<WidgetFull>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, CountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraVideoConfig, MilesightRequestParams, PaginatedItems, SegmentsPresenceByLabel } from "@evercam/api/types";
|
|
2
|
+
import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
|
|
2
3
|
export declare function getLabsBaseUrl(): string | null | undefined;
|
|
3
4
|
export declare const EvercamLabsApi: {
|
|
4
5
|
milesight: {
|
|
@@ -9,6 +10,10 @@ export declare const EvercamLabsApi: {
|
|
|
9
10
|
getOsdConfiguration({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraOsdConfiguration>;
|
|
10
11
|
getSdCardInfo({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSdCardInfo>;
|
|
11
12
|
};
|
|
13
|
+
posthog: {
|
|
14
|
+
getEvents(params: any): Promise<PaginatedItems<any>>;
|
|
15
|
+
getUsers(params: any): Promise<any>;
|
|
16
|
+
};
|
|
12
17
|
copilot: {
|
|
13
18
|
getAllConversations(params: LabsPaginationParams & {
|
|
14
19
|
cameraExid?: string;
|
|
@@ -21,12 +26,7 @@ export declare const EvercamLabsApi: {
|
|
|
21
26
|
submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
27
|
};
|
|
23
28
|
detections: {
|
|
24
|
-
getDetectionsTracking(cameraExid: CameraExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
|
|
25
|
-
getSegmentsMasks(cameraExid: CameraExid, params: DetectionsFilters): Promise<SegmentsByLabel>;
|
|
26
|
-
getDetectionsPresenceDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<DetectionsPresenceByLabel>;
|
|
27
29
|
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<SegmentsPresenceByLabel>;
|
|
28
|
-
getCranesMovement({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<CountByPeriod[]>;
|
|
29
|
-
getSimilarSegmentsInTimeIntervals({ cameraExid, segmentId, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
30
|
};
|
|
31
31
|
googleCloudStorage: {
|
|
32
32
|
listFiles(prefix?: string): Promise<{
|
|
@@ -45,6 +45,6 @@ export declare const EvercamLabsApi: {
|
|
|
45
45
|
}): Promise<LuminanceReading[]>;
|
|
46
46
|
};
|
|
47
47
|
kits: {
|
|
48
|
-
getMetrics(kitId: string, metrics: GrafanaMetricId[]): Promise<GrafanaKitMetrics>;
|
|
48
|
+
getMetrics(kitId: string, metrics: GrafanaMetricId[], period?: KitMetricPeriod): Promise<GrafanaKitMetrics>;
|
|
49
49
|
};
|
|
50
50
|
};
|
package/dist/api/ingestApi.d.ts
CHANGED
|
@@ -28,11 +28,13 @@ export declare const IngestApi: {
|
|
|
28
28
|
isInspectionEnabled(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
29
|
getDroneQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
30
|
getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
|
+
checkFlightAvailableFeatures(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
32
|
};
|
|
32
33
|
assets360: {
|
|
33
34
|
get360Assets(params: {
|
|
34
35
|
params: Partial<_360AssetsQueryParams>;
|
|
35
36
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
|
+
get360AssetLink(projectId: string, date: string, floor: string, assetType: string, marker: string | null): Promise<import("axios").AxiosResponse<any, any>>;
|
|
36
38
|
deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
39
|
getArchive(id: number, params: {
|
|
38
40
|
dateType: string;
|
|
@@ -61,5 +63,4 @@ export declare const IngestApi: {
|
|
|
61
63
|
getMobileAssetPhoto(assetId: string | number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
64
|
};
|
|
63
65
|
getTotalQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
64
|
-
checkFlightAvailableFeatures(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
65
66
|
};
|
package/dist/api/ptzApi.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const PtzApi: {
|
|
|
27
27
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
28
28
|
};
|
|
29
29
|
controls: {
|
|
30
|
-
move({ cameraExid, direction,
|
|
30
|
+
move({ cameraExid, direction, useContinuous }: MoveParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
31
|
zoom({ cameraExid, direction, isRecordingFromNvr }: ZoomParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
32
32
|
stop({ cameraExid }: {
|
|
33
33
|
cameraExid: string;
|
package/dist/api/weatherApi.d.ts
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
import { HistoryWeatherRequestPayload, WeatherDataResponse,
|
|
1
|
+
import { CurrentWeatherRequestPayload, HistoryWeatherRequestPayload, WeatherDataResponse, WeatherResponsePayload } from "@evercam/api/types";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
3
|
export declare const WeatherApi: {
|
|
3
|
-
current:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
historical: {
|
|
10
|
-
getWeatherBeforeDate({ projectExid, weatherProvider, payload, }: {
|
|
11
|
-
projectExid: string;
|
|
12
|
-
weatherProvider: WeatherProvider;
|
|
13
|
-
payload: HistoryWeatherRequestPayload;
|
|
14
|
-
}): Promise<WeatherResponsePayload> | undefined;
|
|
15
|
-
};
|
|
16
|
-
weather: {
|
|
17
|
-
getWeatherData({ projectExid, weatherProvider, payload, }: {
|
|
18
|
-
projectExid: string;
|
|
19
|
-
weatherProvider: WeatherProvider;
|
|
20
|
-
payload: HistoryWeatherRequestPayload;
|
|
21
|
-
}): Promise<{
|
|
22
|
-
data: WeatherDataResponse[];
|
|
23
|
-
}> | undefined;
|
|
24
|
-
};
|
|
4
|
+
current(projectExid: string, payload: CurrentWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
|
|
5
|
+
historical(projectExid: string, payload: HistoryWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
|
|
6
|
+
report(projectExid: string, payload: HistoryWeatherRequestPayload, config?: AxiosRequestConfig): Promise<{
|
|
7
|
+
data: WeatherDataResponse[];
|
|
8
|
+
}> | undefined;
|
|
25
9
|
};
|