@evercam/api 1.0.0-213bdb2b3
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 -0
- package/dist/api/3dFirebaseApi.d.ts +9 -0
- package/dist/api/adminApi.d.ts +289 -0
- package/dist/api/aiApi.d.ts +79 -0
- package/dist/api/authzApi.d.ts +21 -0
- package/dist/api/client/axios.d.ts +13 -0
- package/dist/api/client/customErrors.d.ts +80 -0
- package/dist/api/client/index.d.ts +5 -0
- package/dist/api/client/interceptors.d.ts +9 -0
- package/dist/api/evercamApi.d.ts +266 -0
- package/dist/api/evercamLabsApi.d.ts +47 -0
- package/dist/api/exNvrApi.d.ts +43 -0
- package/dist/api/index.d.ts +13 -0
- package/dist/api/ingestApi.d.ts +65 -0
- package/dist/api/ptzApi.d.ts +36 -0
- package/dist/api/videoWallApi.d.ts +9 -0
- package/dist/api/weatherApi.d.ts +25 -0
- package/dist/api/webRtcApi.d.ts +22 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2385 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +2 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/types/360.d.ts +83 -0
- package/dist/types/aconex.d.ts +45 -0
- package/dist/types/analytics.d.ts +481 -0
- package/dist/types/anpr.d.ts +98 -0
- package/dist/types/auditLogs.d.ts +99 -0
- package/dist/types/autodesk.d.ts +29 -0
- package/dist/types/automation.d.ts +6 -0
- package/dist/types/axios.d.ts +51 -0
- package/dist/types/bim.d.ts +147 -0
- package/dist/types/camera.d.ts +563 -0
- package/dist/types/comments.d.ts +36 -0
- package/dist/types/company.d.ts +46 -0
- package/dist/types/compare.d.ts +57 -0
- package/dist/types/connector.d.ts +16 -0
- package/dist/types/copilot.d.ts +156 -0
- package/dist/types/countries.d.ts +507 -0
- package/dist/types/credentials.d.ts +5 -0
- package/dist/types/detections.d.ts +73 -0
- package/dist/types/devices.d.ts +228 -0
- package/dist/types/drone.d.ts +17 -0
- package/dist/types/errors.d.ts +36 -0
- package/dist/types/gateReport.d.ts +441 -0
- package/dist/types/index.d.ts +51 -0
- package/dist/types/ingest.d.ts +43 -0
- package/dist/types/kit.d.ts +295 -0
- package/dist/types/map.d.ts +4 -0
- package/dist/types/media.d.ts +114 -0
- package/dist/types/notification.d.ts +27 -0
- package/dist/types/nvr.d.ts +35 -0
- package/dist/types/procore.d.ts +76 -0
- package/dist/types/progressPhoto.d.ts +90 -0
- package/dist/types/project.d.ts +120 -0
- package/dist/types/recording.d.ts +124 -0
- package/dist/types/roi.d.ts +26 -0
- package/dist/types/routeParams.d.ts +50 -0
- package/dist/types/router.d.ts +67 -0
- package/dist/types/shared.d.ts +208 -0
- package/dist/types/shares.d.ts +192 -0
- package/dist/types/sim.d.ts +114 -0
- package/dist/types/siteAnalytics.d.ts +5 -0
- package/dist/types/sitePlanner.d.ts +26 -0
- package/dist/types/snapshots.d.ts +50 -0
- package/dist/types/storageServers.d.ts +4 -0
- package/dist/types/streaming.d.ts +119 -0
- package/dist/types/time.d.ts +19 -0
- package/dist/types/timelapse.d.ts +84 -0
- package/dist/types/user.d.ts +276 -0
- package/dist/types/vendorModel.d.ts +15 -0
- package/dist/types/videoWall.d.ts +33 -0
- package/dist/types/voyageControl.d.ts +6 -0
- package/dist/types/weather.d.ts +83 -0
- package/dist/types/widget.d.ts +169 -0
- package/dist/utils.d.ts +9 -0
- package/package.json +49 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from "axios";
|
|
2
|
+
import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProjectsResponsePayload, ActiveUsersStatsRequestPayload, ActiveUserStat, AnalyticsRequestPayload, 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, ProjectPAStatsRequestPayload, ProjectPAStatsResponsePayload, ProjectResponsePayload, ProjectShareResponse, RemotePasswordUpdateRequestPayload, ResendShareRequestPayload, SessionActivitiesListRequestPayload, SessionActivity, SessionsListRequestPayload, Share, ShareCreateRequestPayload, ShareCreateResponsePayload, ShareDeletionRequestPayload, SharedUsersResponsePayload, ShareProjectCamerasRequestPayload, ShareRequestsResponsePayload, SharesResponsePayload, SignupUserRequestPayload, Snapshot, SnapshotRangeRequestPayload, SnapshotRangeResponsePayload, ThumbnailData, TimelapseCreationRequestPayload, TimelapseCreationResponsePayload, TimelapseSnapshotRequestPayload, TimelapseSnapshotResponsePayload, UpdatePasswordRequestPayload, UserDeleteRequestPayload, UserSession, UserUpdateRequestPayload, VoyageControlConnectorPayload, Widget, WidgetFull, WidgetPayload, WidgetsListRequestPayload } from "@evercam/api/types";
|
|
3
|
+
export declare const EvercamApi: {
|
|
4
|
+
apiStatus: {
|
|
5
|
+
getApiStatus(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
+
};
|
|
7
|
+
users: {
|
|
8
|
+
signup(payload: SignupUserRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
+
fetchAccessFeatures(email: string): Promise<{
|
|
10
|
+
features: string[];
|
|
11
|
+
}>;
|
|
12
|
+
impersonationLogin(token: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
13
|
+
login(params: LoginRequestPayload): Promise<LoginResponsePayload>;
|
|
14
|
+
loginWithApiCredentials(apiId: String, apiKey: String): Promise<LoginResponsePayload>;
|
|
15
|
+
loginWithWidgetCredentials(widgetId: String, widgetKey: String): Promise<LoginResponsePayload>;
|
|
16
|
+
loginWithProvider(provider: string, payload: GoogleAuthRequestPayload): Promise<LoginResponsePayload>;
|
|
17
|
+
getUser(email: string): Promise<{
|
|
18
|
+
users: LoginResponsePayload[];
|
|
19
|
+
}>;
|
|
20
|
+
logout(payload: LogoutParams, config?: Partial<AxiosRequestConfig>): Promise<void>;
|
|
21
|
+
resetPassword(email: string): Promise<{
|
|
22
|
+
message: string;
|
|
23
|
+
}>;
|
|
24
|
+
getCredentials(): Promise<Credentials>;
|
|
25
|
+
updatePassword(user: string, payload: UpdatePasswordRequestPayload): Promise<{
|
|
26
|
+
message: string;
|
|
27
|
+
}>;
|
|
28
|
+
remotePasswordUpdate(email: string, payload: RemotePasswordUpdateRequestPayload): Promise<{
|
|
29
|
+
message: string;
|
|
30
|
+
}>;
|
|
31
|
+
confirm(email: string, payload: any): Promise<LoginResponsePayload>;
|
|
32
|
+
deleteActiveSession(sessionId: string, payload?: any): Promise<void>;
|
|
33
|
+
getActiveSessions(payload: SessionsListRequestPayload): Promise<PaginatedItems<UserSession>>;
|
|
34
|
+
getSessionActivities(payload: SessionActivitiesListRequestPayload): Promise<PaginatedItems<SessionActivity>>;
|
|
35
|
+
update(email: string, params?: Partial<UserUpdateRequestPayload>): Promise<{
|
|
36
|
+
users: LoginResponsePayload[];
|
|
37
|
+
}>;
|
|
38
|
+
delete(email: string, params: UserDeleteRequestPayload): Promise<void>;
|
|
39
|
+
fetchPermissions(): Promise<{
|
|
40
|
+
permissions: string[];
|
|
41
|
+
}>;
|
|
42
|
+
};
|
|
43
|
+
notifications: {
|
|
44
|
+
get(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
45
|
+
markAllAsRead(id: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
46
|
+
markAsRead(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
47
|
+
};
|
|
48
|
+
bim: {
|
|
49
|
+
getBimSnapshot(cameraId: string, dateTime: string, payload: Partial<BimSnapshotRequestPayload>, extraParams?: AxiosRequestConfig): Promise<BimSnapshotResponsePayload>;
|
|
50
|
+
getBimModel(cameraId: string, payload: BimModelRequestPayload, extraParams?: AxiosRequestConfig): Promise<BimModelResponsePayload>;
|
|
51
|
+
pendingBimImages(cameraId: string, params: PendingBimImagesParams): Promise<BimPendingImage[]>;
|
|
52
|
+
processPendingImages(cameraId: string, params: Partial<ProcessPendingImagesBimParams>): Promise<void>;
|
|
53
|
+
createBim(cameraId: string, params: BimCreationPayload): Promise<void>;
|
|
54
|
+
getCameraParameters(cameraId: string, params: ApiCredentials): Promise<BimUploadCameraParameters>;
|
|
55
|
+
uploadCameraParameters(cameraId: string, params: BimUploadCameraParameters): Promise<BimUploadCameraParameters>;
|
|
56
|
+
exportCompare(projectExid: string, payload: BimCompareExportRequestPayload): Promise<Compare>;
|
|
57
|
+
};
|
|
58
|
+
cameras: {
|
|
59
|
+
getCameras(): Promise<CamerasResponsePayload>;
|
|
60
|
+
getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
|
|
61
|
+
getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
|
|
62
|
+
portCheck(payload: {
|
|
63
|
+
params: CheckCameraPortPayload;
|
|
64
|
+
}): Promise<CheckCameraPortPayload & {
|
|
65
|
+
open: boolean;
|
|
66
|
+
}>;
|
|
67
|
+
getNvrStreamingToken({ cameraExid, token, }: {
|
|
68
|
+
cameraExid: string;
|
|
69
|
+
token: string;
|
|
70
|
+
}): Promise<string>;
|
|
71
|
+
getCameraStatusLogs(exid: string, params: {
|
|
72
|
+
params: {
|
|
73
|
+
from: string;
|
|
74
|
+
to: string;
|
|
75
|
+
};
|
|
76
|
+
}): Promise<CameraStatusLog[]>;
|
|
77
|
+
updateCamera(exid: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
78
|
+
};
|
|
79
|
+
projects: {
|
|
80
|
+
index(params?: ApiCredentials): Promise<ProjectResponsePayload>;
|
|
81
|
+
getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
|
|
82
|
+
createLogo(projectId: string, formData: FormData): Promise<Logo & {
|
|
83
|
+
id: number;
|
|
84
|
+
}>;
|
|
85
|
+
deleteLogo(projectId: string, id: number): Promise<void>;
|
|
86
|
+
updateLogo(projectId: string, id: number, name: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
87
|
+
updateThumbnail(projectExid: string, params: {
|
|
88
|
+
cameraExid?: string;
|
|
89
|
+
uploadedThumbnail?: string;
|
|
90
|
+
}): Promise<{
|
|
91
|
+
message: string;
|
|
92
|
+
}>;
|
|
93
|
+
getThumbnailData(projectExid: string): Promise<ThumbnailData>;
|
|
94
|
+
};
|
|
95
|
+
timelapse: {
|
|
96
|
+
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
97
|
+
createTimelapse(projectExid: string, payload: TimelapseCreationRequestPayload): Promise<TimelapseCreationResponsePayload>;
|
|
98
|
+
cUpdate(projectExid: string, id: string | number, payload: MediaUpdateRequestPayload): Promise<TimelapseCreationResponsePayload>;
|
|
99
|
+
cDelete(projectExid: string, id: number): Promise<void>;
|
|
100
|
+
};
|
|
101
|
+
compares: {
|
|
102
|
+
cCreate(projectExid: string, payload: CompareRequestPayload): Promise<Compare>;
|
|
103
|
+
cShow(projectExid: string, id: string): Promise<Compare>;
|
|
104
|
+
cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Compare>;
|
|
105
|
+
cDelete(projectExid: string, id: string): Promise<void>;
|
|
106
|
+
};
|
|
107
|
+
providers: {
|
|
108
|
+
getProviders(): Promise<ConnectorResponsePayload>;
|
|
109
|
+
};
|
|
110
|
+
aconex: {
|
|
111
|
+
authenticate(payload: AconexAuthCallbackParams): Promise<void>;
|
|
112
|
+
getUserProjects(): Promise<AconexUserProjectsResponsePayload>;
|
|
113
|
+
revoke(): Promise<void>;
|
|
114
|
+
uploadEditedSnapshot(projectId: number, payload: AconexEditedImageUploadRequestPayload): Promise<void>;
|
|
115
|
+
getDocumentSchema(projectId: number): Promise<void>;
|
|
116
|
+
};
|
|
117
|
+
procore: {
|
|
118
|
+
getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
|
|
119
|
+
getUserProjects(payload: ProcoreUserProjectRequestPayload): Promise<ProcoreUserProjectsResponsePayload>;
|
|
120
|
+
getProjectAlbums(payload: ProcoreProjectsAlbumsRequestPayload): Promise<ProcoreProjectsAlbumsPayload>;
|
|
121
|
+
uploadEditedSnapshot(payload: ProcoreEditedImageUploadRequestPayload): Promise<void>;
|
|
122
|
+
sendRevoke(): Promise<void>;
|
|
123
|
+
};
|
|
124
|
+
autodesk: {
|
|
125
|
+
sendRevoke(): Promise<void>;
|
|
126
|
+
getUserHubs(): Promise<AutodeskUserHubsResponsePayload>;
|
|
127
|
+
getProjects(hubId: string): Promise<AutodeskProjectsResponsePayload>;
|
|
128
|
+
getFolders(hubId: string, projectId: string): Promise<Array<AutodeskFolderResponsePayload>>;
|
|
129
|
+
getSubFolders(projectId: string, parentFolderId: string, getDerivatives: Boolean): Promise<Array<AutodeskFolderResponsePayload>>;
|
|
130
|
+
getFolder(projectId: string, folderId: string): Promise<AutodeskFolderResponsePayload>;
|
|
131
|
+
uploadEditedSnapshot(payload: AutodeskUploadSnapshotPayload): Promise<null>;
|
|
132
|
+
fetchViewerToken(exid: string): Promise<AutodeskTokenResponsePayload>;
|
|
133
|
+
};
|
|
134
|
+
voyageControl: {
|
|
135
|
+
connect(payload: VoyageControlConnectorPayload): Promise<unknown>;
|
|
136
|
+
sendRevoke(): Promise<null>;
|
|
137
|
+
};
|
|
138
|
+
recordings: {
|
|
139
|
+
oldest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
140
|
+
latest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
141
|
+
nearest(cameraId: string, timestamp: string, payload?: NearestSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<NearestSnapshotResponsePayload>;
|
|
142
|
+
availableDays({ cameraId, year, month, payload, }: AvailableDaysRequestPayload): Promise<AvailableDaysResponsePayload>;
|
|
143
|
+
availableHours({ cameraId, year, month, day, payload, cancelToken, }: AvailableHoursRequestPayload): Promise<AvailableHoursResponsePayload>;
|
|
144
|
+
getSnapshot(cameraId: string, dateTime: string): Promise<SnapshotRangeResponsePayload>;
|
|
145
|
+
getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload): Promise<SnapshotRangeResponsePayload>;
|
|
146
|
+
};
|
|
147
|
+
progressPhotos: {
|
|
148
|
+
index(): Promise<ProgressPhotosResponsePayload>;
|
|
149
|
+
show(id: string): Promise<ProgressPhotosResponsePayload>;
|
|
150
|
+
create(payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
|
|
151
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
|
|
152
|
+
unsubscribe(progressPhotoId: string, params: ProgressPhotosUnSubscribeParams): Promise<ProgressPhotosResponsePayload>;
|
|
153
|
+
delete(id: string, params?: ApiCredentials): Promise<void>;
|
|
154
|
+
};
|
|
155
|
+
mediaHub: {
|
|
156
|
+
getAllMedia(projectExid: string, params: MediaFilterQueryParams): Promise<PaginatedItems<Media>>;
|
|
157
|
+
getAllMediaUsers(projectExid: string): Promise<MediaUsersResponsePayload>;
|
|
158
|
+
cShow(projectExid: string, id: string): Promise<Media>;
|
|
159
|
+
cCreate(projectExid: string, payload: MediaCreateRequestPayload): Promise<Media>;
|
|
160
|
+
cUpdate(projectExid: number, id: number, payload: MediaUpdateRequestPayload): Promise<Media>;
|
|
161
|
+
cDelete(projectExid: number, id: number): Promise<void>;
|
|
162
|
+
};
|
|
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
|
+
shares: {
|
|
172
|
+
updateShareRights(cameraExid: CameraExid, payload: {
|
|
173
|
+
email: string;
|
|
174
|
+
rights: string;
|
|
175
|
+
}): Promise<Share>;
|
|
176
|
+
updateShareRequestRights(cameraExid: CameraExid, payload: {
|
|
177
|
+
email: string;
|
|
178
|
+
rights: string;
|
|
179
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
180
|
+
cIndex(cameraId: string): Promise<SharesResponsePayload>;
|
|
181
|
+
getShareRequest(cameraId: string, payload: {
|
|
182
|
+
status: string;
|
|
183
|
+
}): Promise<ShareRequestsResponsePayload>;
|
|
184
|
+
deleteShare(cameraId: string, payload: {
|
|
185
|
+
[key: string]: ShareDeletionRequestPayload;
|
|
186
|
+
}): Promise<void>;
|
|
187
|
+
deleteRequest(cameraId: string, payload: {
|
|
188
|
+
[key: string]: ShareDeletionRequestPayload;
|
|
189
|
+
}): Promise<void>;
|
|
190
|
+
deleteShareRequest(payload: {
|
|
191
|
+
params: ShareDeletionRequestPayload;
|
|
192
|
+
}): Promise<void>;
|
|
193
|
+
getSharedUsers(cameraId: string): Promise<SharedUsersResponsePayload>;
|
|
194
|
+
cCreate(cameraId: string, payload: ShareCreateRequestPayload): Promise<ShareCreateResponsePayload>;
|
|
195
|
+
shareProjectCameras(projectExid: ProjectExid, payload: ShareProjectCamerasRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
196
|
+
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
197
|
+
transferOwnership(cameraId: string, payload: {
|
|
198
|
+
userId: number;
|
|
199
|
+
}): Promise<void>;
|
|
200
|
+
resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
|
|
201
|
+
getProjectShares(exid: string): Promise<ProjectShareResponse>;
|
|
202
|
+
};
|
|
203
|
+
companies: {
|
|
204
|
+
getCompanyUsers(companyExid: string, params: {
|
|
205
|
+
params: {
|
|
206
|
+
page: number;
|
|
207
|
+
limit: number;
|
|
208
|
+
};
|
|
209
|
+
}): Promise<PaginatedItems<CompanyUser>>;
|
|
210
|
+
getCompanyProjects(companyId: string, params: {
|
|
211
|
+
params: {
|
|
212
|
+
page: number;
|
|
213
|
+
limit: number;
|
|
214
|
+
};
|
|
215
|
+
}): Promise<PaginatedItems<CompanyProject>>;
|
|
216
|
+
getPACompanyDetails(companyId: string, params?: Record<string, string>): Promise<Company>;
|
|
217
|
+
getActiveUsers(params: ActiveUsersStatsRequestPayload): Promise<ActiveUserStat>;
|
|
218
|
+
getCompanyCameras(id: string, params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
219
|
+
};
|
|
220
|
+
batteries: {
|
|
221
|
+
ProjectBatteryReadings(projectExid: string): Promise<ProjectBatteryReading[]>;
|
|
222
|
+
batteryReadings(cameraExid: string, params: {
|
|
223
|
+
fromDate: string;
|
|
224
|
+
toDate: string;
|
|
225
|
+
}): Promise<PaginatedItems<BatteryReading>>;
|
|
226
|
+
readingsVoltageSummary(cameraExid: string, params: {
|
|
227
|
+
fromDate: string;
|
|
228
|
+
toDate: string;
|
|
229
|
+
}): Promise<BatteryVoltage[]>;
|
|
230
|
+
};
|
|
231
|
+
layers: {
|
|
232
|
+
getLayer(cameraId: string, params: BimLayersQueryParams, extraParams?: Record<string, string>): Promise<BIMLayer[]>;
|
|
233
|
+
getLayersById(cameraId: string, id: number, params: Record<string, string>): Promise<BIMLayer>;
|
|
234
|
+
getLayers(cameraId: string, params: BimLayersQueryParams): Promise<BIMLayer[]>;
|
|
235
|
+
createLayer(cameraId: string, params: BIMLayerPostPayload): Promise<BIMLayer>;
|
|
236
|
+
deleteLayer(cameraId: string, id: number, params: Record<string, unknown>): Promise<void>;
|
|
237
|
+
updateLayer(cameraId: string, id: number, params: Partial<BIMLayerPostPayload>): Promise<BIMLayer>;
|
|
238
|
+
};
|
|
239
|
+
comments: {
|
|
240
|
+
fetchComments(projectExid: string, params: CommentsRequestPayload): Promise<PaginatedItems<Comment>>;
|
|
241
|
+
addComment(projectId: string, params: CommentCreationRequestPayload): Promise<Comment>;
|
|
242
|
+
archiveOrUnarchiveComment(projectId: string, id: number, archive: boolean): Promise<Comment>;
|
|
243
|
+
deleteComment(projectId: string, id: number): Promise<void>;
|
|
244
|
+
};
|
|
245
|
+
storyblock: {
|
|
246
|
+
getStory(params: {
|
|
247
|
+
route: string;
|
|
248
|
+
params: string;
|
|
249
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
250
|
+
};
|
|
251
|
+
mailing: {
|
|
252
|
+
unsubscribe(params: {
|
|
253
|
+
key: string;
|
|
254
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
255
|
+
};
|
|
256
|
+
widgets: {
|
|
257
|
+
index(params: WidgetsListRequestPayload): Promise<PaginatedItems<Widget>>;
|
|
258
|
+
show(id: number): Promise<WidgetFull>;
|
|
259
|
+
getByKeys(): Promise<WidgetFull>;
|
|
260
|
+
setSessionSettings(params: any): Promise<WidgetFull>;
|
|
261
|
+
createProjectWidget(projectId: string, payload: WidgetPayload): Promise<WidgetFull>;
|
|
262
|
+
createCameraWidget(cameraId: string, payload: WidgetPayload): Promise<WidgetFull>;
|
|
263
|
+
update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
|
|
264
|
+
delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, CountByPeriod, 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";
|
|
3
|
+
export declare function getLabsBaseUrl(): string | null | undefined;
|
|
4
|
+
export declare const EvercamLabsApi: {
|
|
5
|
+
milesight: {
|
|
6
|
+
getVideoConfig({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraVideoConfig>;
|
|
7
|
+
getNetworkConfiguration({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraNetworkConfiguration>;
|
|
8
|
+
getSystemSettings({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSystemSettings>;
|
|
9
|
+
getTimeSettings({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSystemSettings>;
|
|
10
|
+
getOsdConfiguration({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraOsdConfiguration>;
|
|
11
|
+
getSdCardInfo({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSdCardInfo>;
|
|
12
|
+
};
|
|
13
|
+
copilot: {
|
|
14
|
+
getAllConversations(params: LabsPaginationParams & {
|
|
15
|
+
cameraExid?: string;
|
|
16
|
+
projectExid?: string;
|
|
17
|
+
user?: string;
|
|
18
|
+
}): Promise<PaginatedItems<CopilotConversation>>;
|
|
19
|
+
getOneConversation(conversationId: number): Promise<PaginatedItems<CopilotConversation>>;
|
|
20
|
+
getConversationMessages(conversationId: number, params: LabsPaginationParams): Promise<PaginatedItems<CopilotMessage>>;
|
|
21
|
+
getMessageSteps(message: CopilotMessage): Promise<CopilotMessageStep[]>;
|
|
22
|
+
submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
+
};
|
|
24
|
+
detections: {
|
|
25
|
+
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<SegmentsPresenceByLabel>;
|
|
26
|
+
getCranesMovement({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<CountByPeriod[]>;
|
|
27
|
+
};
|
|
28
|
+
googleCloudStorage: {
|
|
29
|
+
listFiles(prefix?: string): Promise<{
|
|
30
|
+
files: string[];
|
|
31
|
+
folders: string[];
|
|
32
|
+
}>;
|
|
33
|
+
getSignedUrl(fileName: string): Promise<{
|
|
34
|
+
url: string;
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
37
|
+
luminance: {
|
|
38
|
+
getReadings(params: {
|
|
39
|
+
cameraExid: CameraExid;
|
|
40
|
+
fromDate: string;
|
|
41
|
+
toDate: string;
|
|
42
|
+
}): Promise<LuminanceReading[]>;
|
|
43
|
+
};
|
|
44
|
+
kits: {
|
|
45
|
+
getMetrics(kitId: string, metrics: GrafanaMetricId[], period?: KitMetricPeriod): Promise<GrafanaKitMetrics>;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ExNvrDeviceConfig, ExNvrLoginResponse, ExNvrRecordingInterval, ExNvrSystemStatus } from "@evercam/api/types/";
|
|
2
|
+
export declare const ExNvrApi: {
|
|
3
|
+
users: {
|
|
4
|
+
login({ apiUrl, username, password, }: {
|
|
5
|
+
apiUrl: string;
|
|
6
|
+
username: string;
|
|
7
|
+
password: string;
|
|
8
|
+
}, config?: {
|
|
9
|
+
timing?: boolean;
|
|
10
|
+
}): Promise<ExNvrLoginResponse>;
|
|
11
|
+
};
|
|
12
|
+
devices: {
|
|
13
|
+
getDevices({ apiUrl, token, }: {
|
|
14
|
+
apiUrl: string;
|
|
15
|
+
token: string;
|
|
16
|
+
}): Promise<ExNvrDeviceConfig>;
|
|
17
|
+
getSystemStatus({ apiUrl, token }: {
|
|
18
|
+
apiUrl: string;
|
|
19
|
+
token: string;
|
|
20
|
+
}, config?: Record<string, string>): Promise<ExNvrSystemStatus>;
|
|
21
|
+
getDeviceConfig({ apiUrl, deviceId, token, }: {
|
|
22
|
+
apiUrl: string;
|
|
23
|
+
deviceId: string;
|
|
24
|
+
token: string;
|
|
25
|
+
}, config?: {
|
|
26
|
+
timing?: boolean;
|
|
27
|
+
}): Promise<ExNvrDeviceConfig>;
|
|
28
|
+
getAvailableRecordings({ apiUrl, deviceId, token, }: {
|
|
29
|
+
apiUrl: string;
|
|
30
|
+
deviceId: string;
|
|
31
|
+
token: string;
|
|
32
|
+
}, config?: {
|
|
33
|
+
timing?: boolean;
|
|
34
|
+
}): Promise<ExNvrRecordingInterval[]>;
|
|
35
|
+
downloadFootage({ apiUrl, deviceId, token, startDate, duration, }: {
|
|
36
|
+
apiUrl: string;
|
|
37
|
+
deviceId: string;
|
|
38
|
+
token: string;
|
|
39
|
+
startDate: string;
|
|
40
|
+
duration: number;
|
|
41
|
+
}): Promise<Blob>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./client";
|
|
2
|
+
export * from "./adminApi";
|
|
3
|
+
export * from "./videoWallApi";
|
|
4
|
+
export * from "./3dFirebaseApi";
|
|
5
|
+
export * from "./aiApi";
|
|
6
|
+
export * from "./webRtcApi";
|
|
7
|
+
export * from "./weatherApi";
|
|
8
|
+
export * from "./evercamLabsApi";
|
|
9
|
+
export * from "./evercamApi";
|
|
10
|
+
export * from "./ptzApi";
|
|
11
|
+
export * from "./ingestApi";
|
|
12
|
+
export * from "./exNvrApi";
|
|
13
|
+
export * from "./authzApi";
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { _360AssetsQueryParams, _360AssetsRequestPayload, _360AssetsUploadPayload, BimUploadPayload, BimUploadsQueryParams, CalculateMeasuringOperationRequestPayload, DronesQueryParams, DroneUploadUpdateRequestPayload, FlightImagesQueryParams, Generate360MapRequestPayload, InspectionToolRequestPayload, MobileCaptureSnapshot } from "@evercam/api/types";
|
|
2
|
+
export declare const IngestApi: {
|
|
3
|
+
drone: {
|
|
4
|
+
createUpload(projectId: string, params: {
|
|
5
|
+
uploadedBy: string;
|
|
6
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
+
reprocessDrone(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
8
|
+
getDrones(params: {
|
|
9
|
+
params: Partial<DronesQueryParams>;
|
|
10
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
+
getArchive(id: number, params: {
|
|
12
|
+
dataType: string;
|
|
13
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
|
+
deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
15
|
+
prepareForUpload(projectId: string, params: {
|
|
16
|
+
uploadedBy: string;
|
|
17
|
+
token: string;
|
|
18
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
|
+
upload(projectId: string, params: {
|
|
20
|
+
uploadedBy: string;
|
|
21
|
+
token: string;
|
|
22
|
+
}, payload: DroneUploadUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
+
verifyToken(projectId: string, params: {
|
|
24
|
+
token: string;
|
|
25
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
26
|
+
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
27
|
+
inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
28
|
+
isInspectionEnabled(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
+
getDroneQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
|
+
getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
|
+
};
|
|
32
|
+
assets360: {
|
|
33
|
+
get360Assets(params: {
|
|
34
|
+
params: Partial<_360AssetsQueryParams>;
|
|
35
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
36
|
+
deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
|
+
getArchive(id: number, params: {
|
|
38
|
+
dateType: string;
|
|
39
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
40
|
+
createUpload(projectId: string, params: _360AssetsRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
41
|
+
upload(id: number, params: Record<string, unknown>, payload: _360AssetsUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
42
|
+
generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
43
|
+
get360QueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
44
|
+
};
|
|
45
|
+
bim: {
|
|
46
|
+
createUpload(projectId: string, params: {
|
|
47
|
+
uploadedBy: string;
|
|
48
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
49
|
+
getBIMs(params: {
|
|
50
|
+
params: Partial<BimUploadsQueryParams>;
|
|
51
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
52
|
+
getArchive(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
53
|
+
deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
54
|
+
upload(projectId: string, params: {
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
}, payload: BimUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
58
|
+
};
|
|
59
|
+
mobileCapture: {
|
|
60
|
+
getProjectMobileAssets(params: Record<string, unknown>): Promise<MobileCaptureSnapshot[]>;
|
|
61
|
+
getMobileAssetPhoto(assetId: string | number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
|
+
};
|
|
63
|
+
getTotalQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
64
|
+
checkFlightAvailableFeatures(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
65
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MoveParams, ZoomParams } from "@/types";
|
|
2
|
+
export declare const PtzApi: {
|
|
3
|
+
presets: {
|
|
4
|
+
index({ cameraExid }: {
|
|
5
|
+
cameraExid: string;
|
|
6
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
+
go({ cameraExid, presetId, }: {
|
|
8
|
+
cameraExid: string;
|
|
9
|
+
presetId: string | number;
|
|
10
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
+
home({ cameraExid, isRecordingFromNvr, }: {
|
|
12
|
+
cameraExid: string;
|
|
13
|
+
isRecordingFromNvr: boolean;
|
|
14
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
15
|
+
create({ cameraExid, presetName, }: {
|
|
16
|
+
cameraExid: string;
|
|
17
|
+
presetName: string;
|
|
18
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
|
+
update({ cameraExid, presetId, presetName, }: {
|
|
20
|
+
cameraExid: string;
|
|
21
|
+
presetId: string | number;
|
|
22
|
+
presetName: string;
|
|
23
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
|
+
delete({ cameraExid, presetId, }: {
|
|
25
|
+
cameraExid: string;
|
|
26
|
+
presetId: string | number;
|
|
27
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
28
|
+
};
|
|
29
|
+
controls: {
|
|
30
|
+
move({ cameraExid, direction, isRecordingFromNvr }: MoveParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
|
+
zoom({ cameraExid, direction, isRecordingFromNvr }: ZoomParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
32
|
+
stop({ cameraExid }: {
|
|
33
|
+
cameraExid: string;
|
|
34
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VideoWallPreset } from "@evercam/api/types";
|
|
2
|
+
export declare const VideoWallApi: {
|
|
3
|
+
presets: {
|
|
4
|
+
getProjectPresets(email: string, projectId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
+
saveProjectPreset(email: string, projectId: string, payload: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
+
getGlobalPreset(email: string): Promise<VideoWallPreset>;
|
|
7
|
+
saveGlobalPreset(email: string, payload: VideoWallPreset): Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HistoryWeatherRequestPayload, WeatherDataResponse, WeatherProvider, WeatherResponsePayload } from "@evercam/api/types";
|
|
2
|
+
export declare const WeatherApi: {
|
|
3
|
+
current: {
|
|
4
|
+
getCurrentWeather({ projectExid, weatherProvider, }: {
|
|
5
|
+
projectExid: string;
|
|
6
|
+
weatherProvider: WeatherProvider;
|
|
7
|
+
}): Promise<WeatherResponsePayload> | undefined;
|
|
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
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const WebRtcApi: {
|
|
2
|
+
webRtc: {
|
|
3
|
+
requestIceServers({ url, token }: {
|
|
4
|
+
url: string;
|
|
5
|
+
token: string;
|
|
6
|
+
}): import("axios").AxiosPromise<any>;
|
|
7
|
+
sendLocalOffer({ url, token, data, }: {
|
|
8
|
+
url: string;
|
|
9
|
+
token: string;
|
|
10
|
+
data: {
|
|
11
|
+
sdp: string;
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
}): import("axios").AxiosPromise<any>;
|
|
15
|
+
sendLocalCandidates({ url, token, data, tag, }: {
|
|
16
|
+
url: string;
|
|
17
|
+
token: string;
|
|
18
|
+
data: Record<string, unknown>;
|
|
19
|
+
tag: string;
|
|
20
|
+
}): import("axios").AxiosPromise<any>;
|
|
21
|
+
};
|
|
22
|
+
};
|
package/dist/index.d.ts
ADDED