@evercam/api 1.0.0-f74a37c7f → 1.0.0-f8cd95c6b
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} +43 -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} +66 -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/{types → api/types}/comments.d.ts +15 -8
- 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 +3 -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 -1
- package/dist/{types → api/types}/shares.d.ts +5 -0
- package/dist/api/types/siteAnalytics.d.ts +142 -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 +1151 -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/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, 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, KitStorageRequestPayload, CompanyUser, CompanyProject, Automation, KitStorage, KitFootageRequestPayload, KitFootageResponsePayload } 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[]>>;
|
|
@@ -112,6 +137,12 @@ export declare const AdminApi: {
|
|
|
112
137
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
113
138
|
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
114
139
|
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
140
|
+
getStorages(params: {
|
|
141
|
+
params: KitStorageRequestPayload;
|
|
142
|
+
}): Promise<PaginatedItems<KitStorage[]>>;
|
|
143
|
+
getFootage(id: number, params: {
|
|
144
|
+
params: KitFootageRequestPayload;
|
|
145
|
+
}): Promise<KitFootageResponsePayload[]>;
|
|
115
146
|
};
|
|
116
147
|
logs: {
|
|
117
148
|
getAllCamerasStatusLogs(params: {
|
|
@@ -145,26 +176,17 @@ export declare const AdminApi: {
|
|
|
145
176
|
cameraIds: number[];
|
|
146
177
|
}): Promise<OfflineCameraNoteResponse>;
|
|
147
178
|
};
|
|
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<{
|
|
179
|
+
projects: {
|
|
180
|
+
index(params: {
|
|
181
|
+
params: Partial<ProjectsQueryParams>;
|
|
182
|
+
}): Promise<PaginatedItems<Project>>;
|
|
183
|
+
show(exid: string, params?: Record<string, unknown>): Promise<{
|
|
157
184
|
data: Project;
|
|
158
185
|
}>;
|
|
159
|
-
|
|
186
|
+
getUsers(id: string): Promise<ProjectUsers>;
|
|
187
|
+
getCameras(id: string): Promise<{
|
|
160
188
|
data: ProjectCamera[];
|
|
161
189
|
}>;
|
|
162
|
-
};
|
|
163
|
-
projects: {
|
|
164
|
-
getAll(params: {
|
|
165
|
-
params: Partial<ProjectsQueryParams>;
|
|
166
|
-
}): Promise<PaginatedItems<Project>>;
|
|
167
|
-
getProject(exid: string): Promise<Project>;
|
|
168
190
|
getProjectsStats(): Promise<ProjectStatusStats>;
|
|
169
191
|
createProject(params: ProjectCreateRequestPayload): Promise<ProjectCreateResponse>;
|
|
170
192
|
updateProject(projectExid: string, params: Partial<ProjectUpdateRequestPayload>): Promise<ProjectCreateResponse>;
|
|
@@ -267,7 +289,7 @@ export declare const AdminApi: {
|
|
|
267
289
|
}): Promise<{
|
|
268
290
|
progressPhoto: string;
|
|
269
291
|
}>;
|
|
270
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
292
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
271
293
|
};
|
|
272
294
|
tags: {
|
|
273
295
|
index(): Promise<Tag[]>;
|
|
@@ -295,6 +317,9 @@ export declare const AdminApi: {
|
|
|
295
317
|
getUsers(params: {
|
|
296
318
|
params: Partial<AdminUserQueryParams>;
|
|
297
319
|
}): Promise<PaginatedItems<AdminUser>>;
|
|
320
|
+
show(id: number, params: Record<string, unknown>): Promise<UserStatsResponse>;
|
|
321
|
+
getProjects(id: number): Promise<UserProjectResponse>;
|
|
322
|
+
getCameras(id: number): Promise<UserCameraResponse>;
|
|
298
323
|
getUserPasswordResetLink(email: string): Promise<{
|
|
299
324
|
passwordResetLink: string;
|
|
300
325
|
}>;
|
|
@@ -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>>;
|
|
@@ -14,7 +14,7 @@ export declare const EvercamApi: {
|
|
|
14
14
|
loginWithApiCredentials(apiId: String, apiKey: String): Promise<LoginResponsePayload>;
|
|
15
15
|
loginWithWidgetCredentials(widgetId: String, widgetKey: String): Promise<LoginResponsePayload>;
|
|
16
16
|
loginWithProvider(provider: string, payload: GoogleAuthRequestPayload): Promise<LoginResponsePayload>;
|
|
17
|
-
|
|
17
|
+
show(email: string): Promise<{
|
|
18
18
|
users: LoginResponsePayload[];
|
|
19
19
|
}>;
|
|
20
20
|
logout(payload: LogoutParams, config?: Partial<AxiosRequestConfig>): Promise<void>;
|
|
@@ -55,7 +55,10 @@ export declare const EvercamApi: {
|
|
|
55
55
|
exportCompare(projectExid: string, payload: BimCompareExportRequestPayload): Promise<Compare>;
|
|
56
56
|
};
|
|
57
57
|
cameras: {
|
|
58
|
-
getCameras(
|
|
58
|
+
getCameras(params: {
|
|
59
|
+
params?: Partial<FetchCameraQueryParams>;
|
|
60
|
+
config?: AxiosRequestConfig;
|
|
61
|
+
}): Promise<CamerasResponsePayload>;
|
|
59
62
|
getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
|
|
60
63
|
getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
|
|
61
64
|
portCheck(payload: {
|
|
@@ -76,7 +79,10 @@ export declare const EvercamApi: {
|
|
|
76
79
|
updateCamera(exid: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
77
80
|
};
|
|
78
81
|
projects: {
|
|
79
|
-
index(params
|
|
82
|
+
index({ params, config, }: {
|
|
83
|
+
params?: ApiCredentials;
|
|
84
|
+
config: AxiosRequestConfig;
|
|
85
|
+
}): Promise<ProjectResponsePayload>;
|
|
80
86
|
getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
|
|
81
87
|
createLogo(projectId: string, formData: FormData): Promise<Logo & {
|
|
82
88
|
id: number;
|
|
@@ -90,6 +96,23 @@ export declare const EvercamApi: {
|
|
|
90
96
|
message: string;
|
|
91
97
|
}>;
|
|
92
98
|
getThumbnailData(projectExid: string): Promise<ThumbnailData>;
|
|
99
|
+
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
100
|
+
updatePlaceholderThumbnail(projectExid: string, params: {
|
|
101
|
+
placeholder?: string;
|
|
102
|
+
}): Promise<{
|
|
103
|
+
message: string;
|
|
104
|
+
}>;
|
|
105
|
+
getPlaceholderThumbnailData(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
106
|
+
transferOwnership(projectExid: string, newOwnerId: number): Promise<{
|
|
107
|
+
message: string;
|
|
108
|
+
}>;
|
|
109
|
+
getUsers(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
110
|
+
getCameras(projectExid: string): Promise<{
|
|
111
|
+
cameras: Camera[];
|
|
112
|
+
}>;
|
|
113
|
+
getCameraRefs(projectExid: string): Promise<{
|
|
114
|
+
cameras: Camera[];
|
|
115
|
+
}>;
|
|
93
116
|
};
|
|
94
117
|
timelapse: {
|
|
95
118
|
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
@@ -103,6 +126,9 @@ export declare const EvercamApi: {
|
|
|
103
126
|
cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Compare>;
|
|
104
127
|
cDelete(projectExid: string, id: string): Promise<void>;
|
|
105
128
|
};
|
|
129
|
+
projectConnectos: {
|
|
130
|
+
index(projectExid: string): Promise<Array<XWeatherResponse>>;
|
|
131
|
+
};
|
|
106
132
|
providers: {
|
|
107
133
|
getProviders(): Promise<ConnectorResponsePayload>;
|
|
108
134
|
};
|
|
@@ -115,10 +141,28 @@ export declare const EvercamApi: {
|
|
|
115
141
|
};
|
|
116
142
|
procore: {
|
|
117
143
|
getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
|
|
118
|
-
getUserProjects(payload:
|
|
119
|
-
|
|
144
|
+
getUserProjects(payload: ProcoreCompanyRequestPayload): Promise<ProcoreUserProjectsResponsePayload>;
|
|
145
|
+
getUserProjectPermissions(payload: ProcoreProjectRequestPayload): Promise<ProcoreUserProjectPermissionsResponsePayload>;
|
|
146
|
+
getProjectAlbums(payload: ProcoreProjectRequestPayload): Promise<ProcoreProjectsAlbumsPayload>;
|
|
120
147
|
uploadEditedSnapshot(payload: ProcoreEditedImageUploadRequestPayload): Promise<void>;
|
|
121
148
|
sendRevoke(): Promise<void>;
|
|
149
|
+
getObservationTypes(payload: ProcoreProjectRequestPayload): Promise<ProcoreObservationTypesResponsePayload>;
|
|
150
|
+
getObservationForm(payload: ProcoreObservationFormRequestPayload): Promise<ProcoreObservationForm>;
|
|
151
|
+
getNextAvailableObservationNumber(payload: ProcoreProjectRequestPayload): Promise<ProcoreNextObservationAvailableNumber>;
|
|
152
|
+
getAssignees(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationAssignee>>;
|
|
153
|
+
getDistributionMembers(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationDistributionMember>>;
|
|
154
|
+
createObservation(formData: FormData): Promise<void>;
|
|
155
|
+
getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
156
|
+
getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
157
|
+
getTrades(payload: ProcoreCompanyRequestPayload): Promise<Array<ProcoreObservationTrades>>;
|
|
158
|
+
getHazards(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
159
|
+
getLocations(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationLocation>>;
|
|
160
|
+
getSpecificationSections(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationSpecificationSection>>;
|
|
161
|
+
getCustomFieldOptions(payload: ProcoreProjectRequestPayload): Promise<{
|
|
162
|
+
options: {
|
|
163
|
+
[key: string]: string[];
|
|
164
|
+
};
|
|
165
|
+
}>;
|
|
122
166
|
};
|
|
123
167
|
autodesk: {
|
|
124
168
|
sendRevoke(): Promise<void>;
|
|
@@ -134,6 +178,10 @@ export declare const EvercamApi: {
|
|
|
134
178
|
connect(payload: VoyageControlConnectorPayload): Promise<unknown>;
|
|
135
179
|
sendRevoke(): Promise<null>;
|
|
136
180
|
};
|
|
181
|
+
xweather: {
|
|
182
|
+
connect(projectExid: string, payload: XWeatherCreatePayload): Promise<XWeatherResponse>;
|
|
183
|
+
revoke(projectExid: string): Promise<null>;
|
|
184
|
+
};
|
|
137
185
|
recordings: {
|
|
138
186
|
oldest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
139
187
|
latest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
@@ -159,14 +207,6 @@ export declare const EvercamApi: {
|
|
|
159
207
|
cUpdate(projectExid: number, id: number, payload: MediaUpdateRequestPayload): Promise<Media>;
|
|
160
208
|
cDelete(projectExid: number, id: number): Promise<void>;
|
|
161
209
|
};
|
|
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
210
|
shares: {
|
|
171
211
|
updateShareRights(cameraExid: CameraExid, payload: {
|
|
172
212
|
email: string;
|
|
@@ -193,28 +233,31 @@ export declare const EvercamApi: {
|
|
|
193
233
|
cCreate(cameraId: string, payload: ShareCreateRequestPayload): Promise<ShareCreateResponsePayload>;
|
|
194
234
|
shareProjectCameras(projectExid: ProjectExid, payload: ShareProjectCamerasRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
195
235
|
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
196
|
-
transferOwnership(cameraId: string, payload: {
|
|
197
|
-
userId: number;
|
|
198
|
-
}): Promise<void>;
|
|
199
236
|
resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
|
|
200
237
|
getProjectShares(exid: string): Promise<ProjectShareResponse>;
|
|
238
|
+
updateUserRestriction(projectExid: ProjectExid, payload: UpdateUserRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
201
239
|
};
|
|
202
|
-
|
|
203
|
-
|
|
240
|
+
company: {
|
|
241
|
+
show(companyId: string | undefined, params?: Record<string, string>): Promise<Company>;
|
|
242
|
+
getCompanyUsers(params: {
|
|
204
243
|
params: {
|
|
205
244
|
page: number;
|
|
206
245
|
limit: number;
|
|
207
246
|
};
|
|
208
247
|
}): Promise<PaginatedItems<CompanyUser>>;
|
|
209
|
-
getCompanyProjects(
|
|
248
|
+
getCompanyProjects(params: {
|
|
210
249
|
params: {
|
|
211
250
|
page: number;
|
|
212
251
|
limit: number;
|
|
213
252
|
};
|
|
214
253
|
}): Promise<PaginatedItems<CompanyProject>>;
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
254
|
+
getCompanyCameras(params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
255
|
+
getCompanyKits(params: {
|
|
256
|
+
params: {
|
|
257
|
+
page: number;
|
|
258
|
+
limit: number;
|
|
259
|
+
};
|
|
260
|
+
}): Promise<PaginatedItems<CompanyKit>>;
|
|
218
261
|
};
|
|
219
262
|
batteries: {
|
|
220
263
|
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
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CurrentWeatherRequestPayload, HistoryWeatherRequestPayload, WeatherDataResponse, WeatherResponsePayload } from "@evercam/api/types";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
|
+
export declare const WeatherApi: {
|
|
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;
|
|
9
|
+
};
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
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
|
+
export * from "./api";
|
|
2
|
+
export * from "./types";
|
|
3
|
+
export * from "./utils";
|