@evercam/api 1.0.0-92eee7184 → 1.0.0-a0da75d2b
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/dist/api/adminApi.d.ts +9 -0
- package/dist/api/evercamApi.d.ts +16 -2
- package/dist/api/evercamLabsApi.d.ts +4 -0
- package/dist/api/ingestApi.d.ts +2 -1
- package/dist/api/weatherApi.d.ts +6 -24
- package/dist/index.js +275 -244
- 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/analytics.d.ts +1 -3
- package/dist/types/anpr.d.ts +1 -0
- package/dist/types/camera.d.ts +2 -0
- package/dist/types/connector.d.ts +2 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/kit.d.ts +7 -2
- package/dist/types/project.d.ts +4 -0
- package/dist/types/shares.d.ts +5 -1
- package/dist/types/tag.d.ts +12 -0
- package/dist/types/weather.d.ts +6 -2
- package/dist/types/xweather.d.ts +12 -0
- package/package.json +2 -2
package/dist/api/adminApi.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "@/types/hdd";
|
|
2
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, EntityStatsQueryParams, EntityStat, UserSession, 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
3
|
import { KitMetricId } from "@evercam/api/types";
|
|
4
|
+
import { Tag } from "@/types/tag";
|
|
4
5
|
export declare const AdminApi: {
|
|
5
6
|
mediaHub: {
|
|
6
7
|
getAllMedia(params: {
|
|
@@ -109,6 +110,8 @@ export declare const AdminApi: {
|
|
|
109
110
|
fromDate: string;
|
|
110
111
|
toDate: string;
|
|
111
112
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
113
|
+
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
114
|
+
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
112
115
|
};
|
|
113
116
|
logs: {
|
|
114
117
|
getAllCamerasStatusLogs(params: {
|
|
@@ -266,6 +269,12 @@ export declare const AdminApi: {
|
|
|
266
269
|
}>;
|
|
267
270
|
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhoto>;
|
|
268
271
|
};
|
|
272
|
+
tags: {
|
|
273
|
+
index(): Promise<Tag[]>;
|
|
274
|
+
create(tag: Tag): Promise<Tag>;
|
|
275
|
+
update(tag: Tag): Promise<Tag>;
|
|
276
|
+
delete(tag: Tag): Promise<void>;
|
|
277
|
+
};
|
|
269
278
|
users: {
|
|
270
279
|
updateUser(id: number, params: Partial<AdminUserUpdateRequestPayload>): Promise<AdminUser>;
|
|
271
280
|
getAdmins(params: {
|
package/dist/api/evercamApi.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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,
|
|
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, 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>>;
|
|
@@ -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>;
|
|
@@ -199,6 +212,7 @@ export declare const EvercamApi: {
|
|
|
199
212
|
}): Promise<void>;
|
|
200
213
|
resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
|
|
201
214
|
getProjectShares(exid: string): Promise<ProjectShareResponse>;
|
|
215
|
+
updateUserRestriction(projectExid: ProjectExid, payload: UpdateUserRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
202
216
|
};
|
|
203
217
|
companies: {
|
|
204
218
|
getCompanyUsers(companyExid: string, params: {
|
|
@@ -10,6 +10,10 @@ export declare const EvercamLabsApi: {
|
|
|
10
10
|
getOsdConfiguration({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraOsdConfiguration>;
|
|
11
11
|
getSdCardInfo({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSdCardInfo>;
|
|
12
12
|
};
|
|
13
|
+
posthog: {
|
|
14
|
+
getEvents(params: any): Promise<PaginatedItems<any>>;
|
|
15
|
+
getUsers(params: any): Promise<any>;
|
|
16
|
+
};
|
|
13
17
|
copilot: {
|
|
14
18
|
getAllConversations(params: LabsPaginationParams & {
|
|
15
19
|
cameraExid?: string;
|
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/weatherApi.d.ts
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
import { HistoryWeatherRequestPayload, WeatherDataResponse,
|
|
1
|
+
import { CurrentWeatherRequestPayload, HistoryWeatherRequestPayload, WeatherDataResponse, WeatherResponsePayload } from "@evercam/api/types";
|
|
2
2
|
import { AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare const WeatherApi: {
|
|
4
|
-
current:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
historical: {
|
|
11
|
-
getWeatherBeforeDate({ projectExid, weatherProvider, payload, }: {
|
|
12
|
-
projectExid: string;
|
|
13
|
-
weatherProvider?: WeatherProvider;
|
|
14
|
-
payload: HistoryWeatherRequestPayload;
|
|
15
|
-
}): Promise<WeatherResponsePayload> | undefined;
|
|
16
|
-
};
|
|
17
|
-
weather: {
|
|
18
|
-
getWeatherData({ projectExid, weatherProvider, payload, config, }: {
|
|
19
|
-
projectExid: string;
|
|
20
|
-
weatherProvider?: WeatherProvider;
|
|
21
|
-
payload: HistoryWeatherRequestPayload;
|
|
22
|
-
config?: AxiosRequestConfig;
|
|
23
|
-
}): Promise<{
|
|
24
|
-
data: WeatherDataResponse[];
|
|
25
|
-
}> | undefined;
|
|
26
|
-
};
|
|
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;
|
|
27
9
|
};
|