@evercam/api 1.0.0-f74a37c7f → 1.0.0-f7aa2107d
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/api/3dFirebaseApi.d.ts +20 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +58 -18
- package/dist/api/{aiApi.d.ts → api/aiApi.d.ts} +41 -8
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +73 -23
- package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +3 -10
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/{ingestApi.d.ts → api/ingestApi.d.ts} +7 -5
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/{types → api/types}/360.d.ts +11 -0
- package/dist/{types → api/types}/aconex.d.ts +1 -1
- package/dist/{types → api/types}/analytics.d.ts +52 -41
- package/dist/{types → api/types}/anpr.d.ts +3 -0
- package/dist/{types → api/types}/automation.d.ts +4 -0
- package/dist/{types → api/types}/axios.d.ts +15 -0
- package/dist/{types → api/types}/camera.d.ts +12 -53
- package/dist/api/types/comments.d.ts +59 -0
- package/dist/{types → api/types}/company.d.ts +29 -1
- package/dist/{types → api/types}/connector.d.ts +6 -1
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/detections.d.ts +55 -5
- package/dist/{types → api/types}/errors.d.ts +12 -0
- package/dist/{types → api/types}/index.d.ts +4 -1
- package/dist/{types → api/types}/ingest.d.ts +4 -0
- package/dist/{types → api/types}/kit.d.ts +52 -6
- package/dist/{types → api/types}/planner.d.ts +4 -0
- package/dist/api/types/posthog.d.ts +18 -0
- package/dist/api/types/procore.d.ts +222 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +21 -7
- package/dist/{types → api/types}/project.d.ts +11 -1
- package/dist/{types → api/types}/recording.d.ts +1 -2
- package/dist/{types → api/types}/roi.d.ts +2 -1
- package/dist/{types → api/types}/routeParams.d.ts +2 -1
- package/dist/{types → api/types}/shared.d.ts +1 -6
- package/dist/{types → api/types}/shares.d.ts +5 -0
- package/dist/api/types/siteAnalytics.d.ts +142 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/{types → api/types}/streaming.d.ts +2 -23
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/{types → api/types}/time.d.ts +2 -0
- package/dist/{types → api/types}/user.d.ts +1 -6
- package/dist/{types → api/types}/weather.d.ts +6 -2
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1180 -778
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +192 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/timeline.d.ts +9 -0
- package/package.json +3 -2
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/weatherApi.d.ts +0 -27
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/siteAnalytics.d.ts +0 -84
- /package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +0 -0
- /package/dist/api/{client → api/client}/axios.d.ts +0 -0
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +0 -0
- /package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +0 -0
- /package/dist/api/{videoWallApi.d.ts → api/videoWallApi.d.ts} +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/auditLogs.d.ts +0 -0
- /package/dist/{types → api/types}/autodesk.d.ts +0 -0
- /package/dist/{types → api/types}/bim.d.ts +0 -0
- /package/dist/{types → api/types}/compare.d.ts +0 -0
- /package/dist/{types → api/types}/coolify.d.ts +0 -0
- /package/dist/{types → api/types}/copilot.d.ts +0 -0
- /package/dist/{types → api/types}/credentials.d.ts +0 -0
- /package/dist/{types → api/types}/drone.d.ts +0 -0
- /package/dist/{types → api/types}/gateReport.d.ts +0 -0
- /package/dist/{types → api/types}/hdd.d.ts +0 -0
- /package/dist/{types → api/types}/map.d.ts +0 -0
- /package/dist/{types → api/types}/media.d.ts +0 -0
- /package/dist/{types → api/types}/notification.d.ts +0 -0
- /package/dist/{types → api/types}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/router.d.ts +0 -0
- /package/dist/{types → api/types}/sim.d.ts +0 -0
- /package/dist/{types → api/types}/snapshots.d.ts +0 -0
- /package/dist/{types → api/types}/storageServers.d.ts +0 -0
- /package/dist/{types → api/types}/tag.d.ts +0 -0
- /package/dist/{types → api/types}/timelapse.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/videoWall.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
- /package/dist/{types → api/types}/widget.d.ts +0 -0
- /package/dist/{utils.d.ts → api/utils.d.ts} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
export declare const getFirebaseDbApi: () => string | null | undefined;
|
|
3
|
+
export declare const getFirebaseStorageUrl: () => string | null | undefined;
|
|
4
|
+
export declare const getFirebaseStorageToken: () => string | null | undefined;
|
|
5
|
+
export declare const _3dFirebaseApi: {
|
|
6
|
+
drone: {
|
|
7
|
+
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
8
|
+
};
|
|
9
|
+
_360: {
|
|
10
|
+
getProjectInfo(projectExid: ProjectExid): Promise<_360ProjectJsonResponse>;
|
|
11
|
+
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<_360ProjectJsonResponse>;
|
|
12
|
+
updateRoute(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<any>;
|
|
13
|
+
updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<any>;
|
|
14
|
+
saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<any>;
|
|
15
|
+
updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: any): Promise<any>;
|
|
16
|
+
};
|
|
17
|
+
forge: {
|
|
18
|
+
getProjectInfo(projectExid: ProjectExid): Promise<any>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "@/types/hdd";
|
|
2
|
-
import type { CamerasResponsePayload, CameraUpdateRequestPayload, PaginatedItems, AdminCamera, Project, Hdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload,
|
|
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, KitFootageResponsePayload, CommentsListRequestPayload, Comment } from "@evercam/api/types";
|
|
3
3
|
import { KitMetricId } from "@evercam/api/types";
|
|
4
4
|
import { Tag } from "@/types/tag";
|
|
5
5
|
export declare const AdminApi: {
|
|
@@ -35,6 +35,9 @@ export declare const AdminApi: {
|
|
|
35
35
|
cameras: [AdminCamera];
|
|
36
36
|
}>;
|
|
37
37
|
deleteCamera(exid: string, payload: CameraDeletePayload): Promise<void>;
|
|
38
|
+
restoreCamera(exid: string): Promise<{
|
|
39
|
+
message: string;
|
|
40
|
+
}>;
|
|
38
41
|
testSnapshot(payload: SnapshotTestPayload): Promise<SnapshotTestResponse>;
|
|
39
42
|
getDuplicateCameras(params: {
|
|
40
43
|
params: {
|
|
@@ -59,8 +62,30 @@ export declare const AdminApi: {
|
|
|
59
62
|
message: string;
|
|
60
63
|
}>;
|
|
61
64
|
update(cameraId: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
65
|
+
transferOwnership(cameraId: string, newOwnerId: number): Promise<void>;
|
|
62
66
|
};
|
|
63
67
|
companies: {
|
|
68
|
+
show(id: string, params: Object): Promise<Company>;
|
|
69
|
+
getCompanyUsers(id: string, params: {
|
|
70
|
+
params: {
|
|
71
|
+
page: number;
|
|
72
|
+
limit: number;
|
|
73
|
+
};
|
|
74
|
+
}): Promise<PaginatedItems<CompanyUser>>;
|
|
75
|
+
getCompanyProjects(id: string, params: {
|
|
76
|
+
params: {
|
|
77
|
+
page: number;
|
|
78
|
+
limit: number;
|
|
79
|
+
};
|
|
80
|
+
}): Promise<PaginatedItems<CompanyProject>>;
|
|
81
|
+
getCompanyKits(id: string, params: {
|
|
82
|
+
params: {
|
|
83
|
+
page: number;
|
|
84
|
+
limit: number;
|
|
85
|
+
sort?: string;
|
|
86
|
+
};
|
|
87
|
+
}): Promise<PaginatedItems<Kit[]>>;
|
|
88
|
+
getCompanyCameras(id: string, params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
64
89
|
getCompanies(params: {
|
|
65
90
|
params: Partial<CompanyQueryParams>;
|
|
66
91
|
}): Promise<PaginatedItems<Company[]>>;
|
|
@@ -76,6 +101,16 @@ export declare const AdminApi: {
|
|
|
76
101
|
success: true;
|
|
77
102
|
}>;
|
|
78
103
|
};
|
|
104
|
+
sso: {
|
|
105
|
+
getProviders(params: {
|
|
106
|
+
params: PaginationParams;
|
|
107
|
+
}): Promise<SsoProvider[]>;
|
|
108
|
+
updateProvider(id: string, params: SsoUpdatePayload): Promise<SsoProvider>;
|
|
109
|
+
createProvider(params: SsoCreatePayload): Promise<SsoProvider>;
|
|
110
|
+
deleteProviders(ids: string[]): Promise<{
|
|
111
|
+
success: true;
|
|
112
|
+
}>;
|
|
113
|
+
};
|
|
79
114
|
emailing: {
|
|
80
115
|
performEmailing(template: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
81
116
|
suppressions(params: {
|
|
@@ -112,6 +147,12 @@ export declare const AdminApi: {
|
|
|
112
147
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
113
148
|
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
114
149
|
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
150
|
+
getStorages(params: {
|
|
151
|
+
params: KitStorageRequestPayload;
|
|
152
|
+
}): Promise<PaginatedItems<KitStorage[]>>;
|
|
153
|
+
getFootage(id: number, params: {
|
|
154
|
+
params: KitFootageRequestPayload;
|
|
155
|
+
}): Promise<KitFootageResponsePayload[]>;
|
|
115
156
|
};
|
|
116
157
|
logs: {
|
|
117
158
|
getAllCamerasStatusLogs(params: {
|
|
@@ -145,26 +186,17 @@ export declare const AdminApi: {
|
|
|
145
186
|
cameraIds: number[];
|
|
146
187
|
}): Promise<OfflineCameraNoteResponse>;
|
|
147
188
|
};
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
getPAUserProjects(id: number): Promise<UserProjectResponse>;
|
|
154
|
-
getPAUserPeriodEvents(id: number, payload: EntityStatsQueryParams): Promise<EntityStat[]>;
|
|
155
|
-
getProjectUsers(id: string): Promise<ProjectUsers>;
|
|
156
|
-
getPAProject(id: string, params: Record<string, unknown>): Promise<{
|
|
189
|
+
projects: {
|
|
190
|
+
index(params: {
|
|
191
|
+
params: Partial<ProjectsQueryParams>;
|
|
192
|
+
}): Promise<PaginatedItems<Project>>;
|
|
193
|
+
show(exid: string, params?: Record<string, unknown>): Promise<{
|
|
157
194
|
data: Project;
|
|
158
195
|
}>;
|
|
159
|
-
|
|
196
|
+
getUsers(id: string): Promise<ProjectUsers>;
|
|
197
|
+
getCameras(id: string): Promise<{
|
|
160
198
|
data: ProjectCamera[];
|
|
161
199
|
}>;
|
|
162
|
-
};
|
|
163
|
-
projects: {
|
|
164
|
-
getAll(params: {
|
|
165
|
-
params: Partial<ProjectsQueryParams>;
|
|
166
|
-
}): Promise<PaginatedItems<Project>>;
|
|
167
|
-
getProject(exid: string): Promise<Project>;
|
|
168
200
|
getProjectsStats(): Promise<ProjectStatusStats>;
|
|
169
201
|
createProject(params: ProjectCreateRequestPayload): Promise<ProjectCreateResponse>;
|
|
170
202
|
updateProject(projectExid: string, params: Partial<ProjectUpdateRequestPayload>): Promise<ProjectCreateResponse>;
|
|
@@ -267,7 +299,7 @@ export declare const AdminApi: {
|
|
|
267
299
|
}): Promise<{
|
|
268
300
|
progressPhoto: string;
|
|
269
301
|
}>;
|
|
270
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
302
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
271
303
|
};
|
|
272
304
|
tags: {
|
|
273
305
|
index(): Promise<Tag[]>;
|
|
@@ -295,6 +327,9 @@ export declare const AdminApi: {
|
|
|
295
327
|
getUsers(params: {
|
|
296
328
|
params: Partial<AdminUserQueryParams>;
|
|
297
329
|
}): Promise<PaginatedItems<AdminUser>>;
|
|
330
|
+
show(id: number, params: Record<string, unknown>): Promise<UserStatsResponse>;
|
|
331
|
+
getProjects(id: number): Promise<UserProjectResponse>;
|
|
332
|
+
getCameras(id: number): Promise<UserCameraResponse>;
|
|
298
333
|
getUserPasswordResetLink(email: string): Promise<{
|
|
299
334
|
passwordResetLink: string;
|
|
300
335
|
}>;
|
|
@@ -310,4 +345,9 @@ export declare const AdminApi: {
|
|
|
310
345
|
zohoDesk: {
|
|
311
346
|
searchTickets(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
312
347
|
};
|
|
348
|
+
comments: {
|
|
349
|
+
index(params: {
|
|
350
|
+
params: Partial<CommentsListRequestPayload>;
|
|
351
|
+
}): Promise<PaginatedItems<Comment>>;
|
|
352
|
+
};
|
|
313
353
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
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 } from "@evercam/api/types";
|
|
2
2
|
import type { AxiosPromise, AxiosRequestConfig } from "axios";
|
|
3
3
|
import { CreateCoolifyAppRequestPayload, SaveCoolifyAppRequestPayload } from "@/types/coolify";
|
|
4
4
|
export declare const getAiApiUrl: () => string | null | undefined;
|
|
@@ -19,7 +19,6 @@ export declare const AiApi: {
|
|
|
19
19
|
exportAnprEvents(projectExid: string, params: AnprBasedGateReportExportRequestParams): AxiosPromise<string>;
|
|
20
20
|
};
|
|
21
21
|
gateReport: {
|
|
22
|
-
getGateReportProjects(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
22
|
getLastVerified(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
23
|
deleteEvent(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
25
24
|
dismissEvents(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -27,6 +26,7 @@ export declare const AiApi: {
|
|
|
27
26
|
exportEventsProgress(projectExid: string, params: {
|
|
28
27
|
exportDate: string;
|
|
29
28
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
+
generateAnprThumbnail(cameraExid: CameraExid, captureTime: DateTime): Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
30
|
getAllEvents(projectExid: ProjectExid, params: EventsRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventsResponsePayload>;
|
|
31
31
|
getEventCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
32
32
|
getVerifiedDays(projectExid: ProjectExid, params: Partial<VerifiedDaysQueryParams>, extraParams?: {}): Promise<PaginatedItems<GateReportVerifiedDay>>;
|
|
@@ -59,7 +59,6 @@ export declare const AiApi: {
|
|
|
59
59
|
brainTool: {
|
|
60
60
|
getObjectDetectionsResults(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
61
61
|
getSegments(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
|
-
getDepth(cameraExid: string, timestamp: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
63
62
|
};
|
|
64
63
|
roi: {
|
|
65
64
|
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
@@ -74,16 +73,50 @@ export declare const AiApi: {
|
|
|
74
73
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
75
74
|
};
|
|
76
75
|
detections: {
|
|
76
|
+
getDetections({ projectExid, ...params }: DetectionsRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
77
|
+
getDetectionsCounts({ projectExid, ...params }: DetectionsRequestParams): Promise<DetectionsCountsByPeriod>;
|
|
78
|
+
getDetectionsByTimestamp({ projectExid, ...params }: DetectionsRequestParams): Promise<PaginatedItems<DetectionsGroup>>;
|
|
77
79
|
getSimilarSegmentsInTimeIntervals({ cameraExid, iouThreshold, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
78
|
-
getDetectionsTracking(
|
|
79
|
-
getSegmentsMasks(cameraExid: CameraExid, params:
|
|
80
|
-
getDetectionsPresenceDateIntervals({
|
|
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>>;
|
|
81
84
|
};
|
|
82
85
|
siteAnalytics: {
|
|
83
|
-
smartSearch({ cameraExid,
|
|
86
|
+
smartSearch({ cameraExid, payload, fromDate, toDate, page, pageSize, }: {
|
|
84
87
|
cameraExid: CameraExid;
|
|
85
|
-
query: Record<string, unknown>;
|
|
86
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
|
+
};
|
|
87
120
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
88
121
|
};
|
|
89
122
|
coolify: {
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import { AxiosDefaults, type AxiosError, type AxiosRequestConfig, type AxiosResponse } from "axios";
|
|
2
|
-
import type
|
|
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<{
|
|
@@ -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
|
+
}
|
|
@@ -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, CompanyKit, CompanyUser, Compare, CompareRequestPayload, ConnectorResponsePayload, Credentials, FetchCameraQueryParams, GoogleAuthRequestPayload, LoginRequestPayload, LoginResponsePayload, Logo, LogoutParams, Media, MediaCreateRequestPayload, MediaFilterQueryParams, MediaUpdateRequestPayload, MediaUsersResponsePayload, NearestSnapshotRequestPayload, NearestSnapshotResponsePayload, PaginatedItems, PendingBimImagesParams, ProcessPendingImagesBimParams, ProcoreEditedImageUploadRequestPayload, ProcoreObservationFormRequestPayload, ProcoreObservationTypesResponsePayload, ProcoreProjectsAlbumsPayload, ProcoreProjectRequestPayload, ProcoreUserCompaniesResponsePayload, ProcoreCompanyRequestPayload, ProcoreUserProjectsResponsePayload, ProcoreUserProjectPermissionsResponsePayload, ProcoreObservationAssignee, ProcoreObservationDistributionMember, ProcoreObservationTrades, ProcoreObservationLocation, ProcoreObservationSpecificationSection, ProcoreObservationForm, 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, Camera, ProcoreNextObservationAvailableNumber } from "@evercam/api/types";
|
|
3
3
|
export declare const EvercamApi: {
|
|
4
4
|
apiStatus: {
|
|
5
5
|
getApiStatus(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -10,11 +10,18 @@ export declare const EvercamApi: {
|
|
|
10
10
|
features: string[];
|
|
11
11
|
}>;
|
|
12
12
|
impersonationLogin(token: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
13
|
+
fetchLoginOptions(email: string): Promise<{
|
|
14
|
+
options: any[];
|
|
15
|
+
}>;
|
|
16
|
+
fetchSignupOptions(email: string): Promise<{
|
|
17
|
+
options: any[];
|
|
18
|
+
}>;
|
|
19
|
+
fetchProviderConfig(provider: string): Promise<any>;
|
|
13
20
|
login(params: LoginRequestPayload): Promise<LoginResponsePayload>;
|
|
14
21
|
loginWithApiCredentials(apiId: String, apiKey: String): Promise<LoginResponsePayload>;
|
|
15
22
|
loginWithWidgetCredentials(widgetId: String, widgetKey: String): Promise<LoginResponsePayload>;
|
|
16
23
|
loginWithProvider(provider: string, payload: GoogleAuthRequestPayload): Promise<LoginResponsePayload>;
|
|
17
|
-
|
|
24
|
+
show(email: string): Promise<{
|
|
18
25
|
users: LoginResponsePayload[];
|
|
19
26
|
}>;
|
|
20
27
|
logout(payload: LogoutParams, config?: Partial<AxiosRequestConfig>): Promise<void>;
|
|
@@ -55,7 +62,10 @@ export declare const EvercamApi: {
|
|
|
55
62
|
exportCompare(projectExid: string, payload: BimCompareExportRequestPayload): Promise<Compare>;
|
|
56
63
|
};
|
|
57
64
|
cameras: {
|
|
58
|
-
getCameras(
|
|
65
|
+
getCameras(params: {
|
|
66
|
+
params?: Partial<FetchCameraQueryParams>;
|
|
67
|
+
config?: AxiosRequestConfig;
|
|
68
|
+
}): Promise<CamerasResponsePayload>;
|
|
59
69
|
getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
|
|
60
70
|
getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
|
|
61
71
|
portCheck(payload: {
|
|
@@ -76,7 +86,10 @@ export declare const EvercamApi: {
|
|
|
76
86
|
updateCamera(exid: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
77
87
|
};
|
|
78
88
|
projects: {
|
|
79
|
-
index(params
|
|
89
|
+
index({ params, config, }: {
|
|
90
|
+
params?: ApiCredentials;
|
|
91
|
+
config: AxiosRequestConfig;
|
|
92
|
+
}): Promise<ProjectResponsePayload>;
|
|
80
93
|
getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
|
|
81
94
|
createLogo(projectId: string, formData: FormData): Promise<Logo & {
|
|
82
95
|
id: number;
|
|
@@ -90,6 +103,23 @@ export declare const EvercamApi: {
|
|
|
90
103
|
message: string;
|
|
91
104
|
}>;
|
|
92
105
|
getThumbnailData(projectExid: string): Promise<ThumbnailData>;
|
|
106
|
+
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
107
|
+
updatePlaceholderThumbnail(projectExid: string, params: {
|
|
108
|
+
placeholder?: string;
|
|
109
|
+
}): Promise<{
|
|
110
|
+
message: string;
|
|
111
|
+
}>;
|
|
112
|
+
getPlaceholderThumbnailData(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
113
|
+
transferOwnership(projectExid: string, newOwnerId: number): Promise<{
|
|
114
|
+
message: string;
|
|
115
|
+
}>;
|
|
116
|
+
getUsers(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
117
|
+
getCameras(projectExid: string): Promise<{
|
|
118
|
+
cameras: Camera[];
|
|
119
|
+
}>;
|
|
120
|
+
getCameraRefs(projectExid: string): Promise<{
|
|
121
|
+
cameras: Camera[];
|
|
122
|
+
}>;
|
|
93
123
|
};
|
|
94
124
|
timelapse: {
|
|
95
125
|
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
@@ -103,6 +133,9 @@ export declare const EvercamApi: {
|
|
|
103
133
|
cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Compare>;
|
|
104
134
|
cDelete(projectExid: string, id: string): Promise<void>;
|
|
105
135
|
};
|
|
136
|
+
projectConnectos: {
|
|
137
|
+
index(projectExid: string): Promise<Array<XWeatherResponse>>;
|
|
138
|
+
};
|
|
106
139
|
providers: {
|
|
107
140
|
getProviders(): Promise<ConnectorResponsePayload>;
|
|
108
141
|
};
|
|
@@ -115,10 +148,28 @@ export declare const EvercamApi: {
|
|
|
115
148
|
};
|
|
116
149
|
procore: {
|
|
117
150
|
getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
|
|
118
|
-
getUserProjects(payload:
|
|
119
|
-
|
|
151
|
+
getUserProjects(payload: ProcoreCompanyRequestPayload): Promise<ProcoreUserProjectsResponsePayload>;
|
|
152
|
+
getUserProjectPermissions(payload: ProcoreProjectRequestPayload): Promise<ProcoreUserProjectPermissionsResponsePayload>;
|
|
153
|
+
getProjectAlbums(payload: ProcoreProjectRequestPayload): Promise<ProcoreProjectsAlbumsPayload>;
|
|
120
154
|
uploadEditedSnapshot(payload: ProcoreEditedImageUploadRequestPayload): Promise<void>;
|
|
121
155
|
sendRevoke(): Promise<void>;
|
|
156
|
+
getObservationTypes(payload: ProcoreProjectRequestPayload): Promise<ProcoreObservationTypesResponsePayload>;
|
|
157
|
+
getObservationForm(payload: ProcoreObservationFormRequestPayload): Promise<ProcoreObservationForm>;
|
|
158
|
+
getNextAvailableObservationNumber(payload: ProcoreProjectRequestPayload): Promise<ProcoreNextObservationAvailableNumber>;
|
|
159
|
+
getAssignees(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationAssignee>>;
|
|
160
|
+
getDistributionMembers(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationDistributionMember>>;
|
|
161
|
+
createObservation(formData: FormData): Promise<void>;
|
|
162
|
+
getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
163
|
+
getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
164
|
+
getTrades(payload: ProcoreCompanyRequestPayload): Promise<Array<ProcoreObservationTrades>>;
|
|
165
|
+
getHazards(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
166
|
+
getLocations(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationLocation>>;
|
|
167
|
+
getSpecificationSections(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationSpecificationSection>>;
|
|
168
|
+
getCustomFieldOptions(payload: ProcoreProjectRequestPayload): Promise<{
|
|
169
|
+
options: {
|
|
170
|
+
[key: string]: string[];
|
|
171
|
+
};
|
|
172
|
+
}>;
|
|
122
173
|
};
|
|
123
174
|
autodesk: {
|
|
124
175
|
sendRevoke(): Promise<void>;
|
|
@@ -134,6 +185,10 @@ export declare const EvercamApi: {
|
|
|
134
185
|
connect(payload: VoyageControlConnectorPayload): Promise<unknown>;
|
|
135
186
|
sendRevoke(): Promise<null>;
|
|
136
187
|
};
|
|
188
|
+
xweather: {
|
|
189
|
+
connect(projectExid: string, payload: XWeatherCreatePayload): Promise<XWeatherResponse>;
|
|
190
|
+
revoke(projectExid: string): Promise<null>;
|
|
191
|
+
};
|
|
137
192
|
recordings: {
|
|
138
193
|
oldest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
139
194
|
latest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
@@ -159,14 +214,6 @@ export declare const EvercamApi: {
|
|
|
159
214
|
cUpdate(projectExid: number, id: number, payload: MediaUpdateRequestPayload): Promise<Media>;
|
|
160
215
|
cDelete(projectExid: number, id: number): Promise<void>;
|
|
161
216
|
};
|
|
162
|
-
analytics: {
|
|
163
|
-
sendAnalyticsEvent(params: AnalyticsRequestPayload, headers: object): Promise<null>;
|
|
164
|
-
getPACompanyPeriodEvents(id: string | number, payload: ProjectPAStatsRequestPayload): Promise<PaginatedItems<ProjectPAStatsResponsePayload>>;
|
|
165
|
-
getPAProjectPeriodEvents(projectId: string, payload: ProjectPAStatsRequestPayload): Promise<PaginatedItems<ProjectPAStatsResponsePayload>>;
|
|
166
|
-
getActiveUsers(params: {
|
|
167
|
-
params: ActiveUsersStatsRequestPayload;
|
|
168
|
-
}): Promise<ActiveUserStat>;
|
|
169
|
-
};
|
|
170
217
|
shares: {
|
|
171
218
|
updateShareRights(cameraExid: CameraExid, payload: {
|
|
172
219
|
email: string;
|
|
@@ -193,28 +240,31 @@ export declare const EvercamApi: {
|
|
|
193
240
|
cCreate(cameraId: string, payload: ShareCreateRequestPayload): Promise<ShareCreateResponsePayload>;
|
|
194
241
|
shareProjectCameras(projectExid: ProjectExid, payload: ShareProjectCamerasRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
195
242
|
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
196
|
-
transferOwnership(cameraId: string, payload: {
|
|
197
|
-
userId: number;
|
|
198
|
-
}): Promise<void>;
|
|
199
243
|
resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
|
|
200
244
|
getProjectShares(exid: string): Promise<ProjectShareResponse>;
|
|
245
|
+
updateUserRestriction(projectExid: ProjectExid, payload: UpdateUserRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
201
246
|
};
|
|
202
|
-
|
|
203
|
-
|
|
247
|
+
company: {
|
|
248
|
+
show(companyId: string | undefined, params?: Record<string, string>): Promise<Company>;
|
|
249
|
+
getCompanyUsers(params: {
|
|
204
250
|
params: {
|
|
205
251
|
page: number;
|
|
206
252
|
limit: number;
|
|
207
253
|
};
|
|
208
254
|
}): Promise<PaginatedItems<CompanyUser>>;
|
|
209
|
-
getCompanyProjects(
|
|
255
|
+
getCompanyProjects(params: {
|
|
210
256
|
params: {
|
|
211
257
|
page: number;
|
|
212
258
|
limit: number;
|
|
213
259
|
};
|
|
214
260
|
}): Promise<PaginatedItems<CompanyProject>>;
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
261
|
+
getCompanyCameras(params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
262
|
+
getCompanyKits(params: {
|
|
263
|
+
params: {
|
|
264
|
+
page: number;
|
|
265
|
+
limit: number;
|
|
266
|
+
};
|
|
267
|
+
}): Promise<PaginatedItems<CompanyKit>>;
|
|
218
268
|
};
|
|
219
269
|
batteries: {
|
|
220
270
|
ProjectBatteryReadings(projectExid: string): Promise<ProjectBatteryReading[]>;
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep,
|
|
1
|
+
import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, SegmentsCountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, SegmentsPresenceByLabel, ActiveUsersResponsePayload, ActiveUsersRequestPayload } from "@evercam/api/types";
|
|
2
2
|
import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
|
|
3
3
|
export declare function getLabsBaseUrl(): string | null | undefined;
|
|
4
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
5
|
posthog: {
|
|
14
6
|
getEvents(params: any): Promise<PaginatedItems<any>>;
|
|
15
7
|
getUsers(params: any): Promise<any>;
|
|
8
|
+
getActiveUsers(params: ActiveUsersRequestPayload): Promise<ActiveUsersResponsePayload>;
|
|
16
9
|
};
|
|
17
10
|
copilot: {
|
|
18
11
|
getAllConversations(params: LabsPaginationParams & {
|
|
@@ -26,7 +19,7 @@ export declare const EvercamLabsApi: {
|
|
|
26
19
|
submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
27
20
|
};
|
|
28
21
|
detections: {
|
|
29
|
-
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }:
|
|
22
|
+
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
|
|
30
23
|
};
|
|
31
24
|
googleCloudStorage: {
|
|
32
25
|
listFiles(prefix?: string): Promise<{
|
|
@@ -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";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { _360AssetsQueryParams, _360AssetsRequestPayload, _360AssetsUploadPayload, BimUploadPayload, BimUploadsQueryParams, CalculateMeasuringOperationRequestPayload, DronesQueryParams, DroneUploadUpdateRequestPayload, FlightImagesQueryParams, Generate360MapRequestPayload, InspectionToolRequestPayload, MobileCaptureSnapshot } from "@evercam/api/types";
|
|
2
|
+
import { IngestVersions } from "@evercam/shared/types";
|
|
2
3
|
export declare const IngestApi: {
|
|
3
4
|
drone: {
|
|
4
5
|
createUpload(projectId: string, params: {
|
|
@@ -26,23 +27,23 @@ export declare const IngestApi: {
|
|
|
26
27
|
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
27
28
|
inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
28
29
|
isInspectionEnabled(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
-
getDroneQueueSize(): Promise<
|
|
30
|
+
getDroneQueueSize(version?: IngestVersions): Promise<Record<string, any>>;
|
|
30
31
|
getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
32
|
checkFlightAvailableFeatures(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
32
33
|
};
|
|
33
34
|
assets360: {
|
|
34
35
|
get360Assets(params: {
|
|
35
36
|
params: Partial<_360AssetsQueryParams>;
|
|
36
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
|
+
}, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
38
|
get360AssetLink(projectId: string, date: string, floor: string, assetType: string, marker: string | null): Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
39
|
deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
39
40
|
getArchive(id: number, params: {
|
|
40
41
|
dateType: string;
|
|
41
42
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
42
|
-
createUpload(projectId: string, params: _360AssetsRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
43
|
-
upload(id: number, params: Record<string, unknown>, payload: _360AssetsUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
43
|
+
createUpload(projectId: string, params: _360AssetsRequestPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
44
|
+
upload(id: number, params: Record<string, unknown>, payload: _360AssetsUploadPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
44
45
|
generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
45
|
-
get360QueueSize(): Promise<
|
|
46
|
+
get360QueueSize(version?: IngestVersions): Promise<Record<string, any>>;
|
|
46
47
|
};
|
|
47
48
|
bim: {
|
|
48
49
|
createUpload(projectId: string, params: {
|
|
@@ -63,4 +64,5 @@ export declare const IngestApi: {
|
|
|
63
64
|
getMobileAssetPhoto(assetId: string | number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
64
65
|
};
|
|
65
66
|
getTotalQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
67
|
+
loadAllAssetsInQueue(): Promise<any[]>;
|
|
66
68
|
};
|