@evercam/api 1.0.0-7e1c6b521 → 1.0.0-7fa1a601b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/api/api/3dFirebaseApi.d.ts +21 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +73 -4
- package/dist/api/{aiApi.d.ts → api/aiApi.d.ts} +43 -9
- package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +7 -0
- 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} +67 -21
- package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +5 -3
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +95 -0
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/{types → api/types}/360.d.ts +58 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/{types → api/types}/analytics.d.ts +89 -7
- package/dist/{types → api/types}/anpr.d.ts +7 -11
- package/dist/api/types/authz.d.ts +22 -0
- package/dist/api/types/automation.d.ts +61 -0
- package/dist/{types → api/types}/axios.d.ts +15 -0
- package/dist/{types → api/types}/camera.d.ts +24 -5
- package/dist/{types → api/types}/comments.d.ts +18 -2
- package/dist/{types → api/types}/company.d.ts +29 -1
- package/dist/{types → api/types}/connector.d.ts +4 -0
- package/dist/{types → api/types}/coolify.d.ts +2 -0
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/{types → api/types}/detections.d.ts +51 -15
- package/dist/{types → api/types}/errors.d.ts +13 -0
- package/dist/{types → api/types}/index.d.ts +4 -0
- package/dist/{types → api/types}/ingest.d.ts +8 -0
- package/dist/{types → api/types}/kit.d.ts +59 -6
- package/dist/{types → api/types}/planner.d.ts +7 -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 +6 -22
- package/dist/{types → api/types}/project.d.ts +47 -2
- package/dist/{types → api/types}/recording.d.ts +2 -2
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/{types → api/types}/routeParams.d.ts +4 -2
- package/dist/{types → api/types}/shared.d.ts +1 -6
- package/dist/{types → api/types}/siteAnalytics.d.ts +47 -7
- package/dist/{types → api/types}/snapshots.d.ts +9 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/{types → api/types}/streaming.d.ts +1 -2
- package/dist/{types → api/types}/time.d.ts +6 -0
- package/dist/{types → api/types}/user.d.ts +5 -6
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/{types → api/types}/weather.d.ts +2 -0
- package/dist/{types → api/types}/widget.d.ts +27 -6
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1292 -688
- 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 +199 -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 +5 -4
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/ingestApi.d.ts +0 -68
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/videoWall.d.ts +0 -33
- /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/{weatherApi.d.ts → api/weatherApi.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}/copilot.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}/roi.d.ts +0 -0
- /package/dist/{types → api/types}/router.d.ts +0 -0
- /package/dist/{types → api/types}/shares.d.ts +0 -0
- /package/dist/{types → api/types}/sim.d.ts +0 -0
- /package/dist/{types → api/types}/storageServers.d.ts +0 -0
- /package/dist/{types → api/types}/systemCheck.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}/voyageControl.d.ts +0 -0
- /package/dist/{types → api/types}/xweather.d.ts +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
getProjectTags(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
9
|
+
};
|
|
10
|
+
_360: {
|
|
11
|
+
getProjectInfo(projectExid: ProjectExid): Promise<_360ProjectJsonResponse>;
|
|
12
|
+
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<_360ProjectJsonResponse>;
|
|
13
|
+
updateRoute(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<any>;
|
|
14
|
+
updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<any>;
|
|
15
|
+
saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<any>;
|
|
16
|
+
updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: any): Promise<any>;
|
|
17
|
+
};
|
|
18
|
+
forge: {
|
|
19
|
+
getProjectInfo(projectExid: ProjectExid): Promise<any>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
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, CommentsListRequestPayload, Comment, KitFootage, KitAlarmItem, RecycleBin, RecycleBinQueryParams, TransferCloudRecordingsQueryParams, CheckCameraPortPayload, CameraStatusLog } from "@evercam/api/types";
|
|
3
3
|
import { KitMetricId } from "@evercam/api/types";
|
|
4
4
|
import { Tag } from "@/types/tag";
|
|
5
|
+
import type { AxiosRequestConfig } from "axios";
|
|
5
6
|
export declare const AdminApi: {
|
|
6
7
|
mediaHub: {
|
|
7
8
|
getAllMedia(params: {
|
|
@@ -50,20 +51,54 @@ export declare const AdminApi: {
|
|
|
50
51
|
}>;
|
|
51
52
|
getCameras(params: {
|
|
52
53
|
params: Partial<FetchCameraQueryParams>;
|
|
53
|
-
}): Promise<PaginatedItems<AdminCamera>>;
|
|
54
|
+
}, extraConfig?: AxiosRequestConfig): Promise<PaginatedItems<AdminCamera>>;
|
|
54
55
|
getCompares(params: {
|
|
55
56
|
params: AdminCompareQueryParams;
|
|
56
57
|
}): Promise<PaginatedItems<AdminCompare[]>>;
|
|
57
58
|
getCameraDetails(exid: string): Promise<AdminCamera>;
|
|
59
|
+
getCameraStatusLogs(exid: string, params: {
|
|
60
|
+
params: {
|
|
61
|
+
from: string;
|
|
62
|
+
to: string;
|
|
63
|
+
};
|
|
64
|
+
}): Promise<CameraStatusLog[]>;
|
|
58
65
|
deleteSnapshots(cameraId: string, params: DeleteSnapshotQueryParams): Promise<void>;
|
|
66
|
+
transferCloudRecordings(cameraId: string, params: TransferCloudRecordingsQueryParams): Promise<void>;
|
|
59
67
|
refreshDeviceSettings(cameraId: string): Promise<void>;
|
|
60
68
|
saveNote(cameraId: string, params: SaveNotePayload): Promise<CameraNote>;
|
|
61
69
|
saveCameraNote(cameraId: string, params: CreateCameraNotePayload): Promise<{
|
|
62
70
|
message: string;
|
|
63
71
|
}>;
|
|
64
72
|
update(cameraId: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
73
|
+
transferOwnership(cameraId: string, newOwnerId: number): Promise<void>;
|
|
74
|
+
portCheck(payload: {
|
|
75
|
+
params: CheckCameraPortPayload;
|
|
76
|
+
}): Promise<CheckCameraPortPayload & {
|
|
77
|
+
open: boolean;
|
|
78
|
+
}>;
|
|
65
79
|
};
|
|
66
80
|
companies: {
|
|
81
|
+
show(id: string, params: Object): Promise<Company>;
|
|
82
|
+
getCompanyUsers(id: string, params: {
|
|
83
|
+
params: {
|
|
84
|
+
page: number;
|
|
85
|
+
limit: number;
|
|
86
|
+
};
|
|
87
|
+
}): Promise<PaginatedItems<CompanyUser>>;
|
|
88
|
+
getCompanyProjects(id: string, params: {
|
|
89
|
+
params: {
|
|
90
|
+
page: number;
|
|
91
|
+
limit: number;
|
|
92
|
+
};
|
|
93
|
+
}): Promise<PaginatedItems<CompanyProject>>;
|
|
94
|
+
getCompanyKits(id: string, params: {
|
|
95
|
+
params: {
|
|
96
|
+
page: number;
|
|
97
|
+
limit: number;
|
|
98
|
+
sort?: string;
|
|
99
|
+
};
|
|
100
|
+
}): Promise<PaginatedItems<Kit[]>>;
|
|
101
|
+
getCompanyCameras(id: string, params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
67
102
|
getCompanies(params: {
|
|
68
103
|
params: Partial<CompanyQueryParams>;
|
|
69
104
|
}): Promise<PaginatedItems<Company[]>>;
|
|
@@ -79,6 +114,16 @@ export declare const AdminApi: {
|
|
|
79
114
|
success: true;
|
|
80
115
|
}>;
|
|
81
116
|
};
|
|
117
|
+
sso: {
|
|
118
|
+
getProviders(params: {
|
|
119
|
+
params: PaginationParams;
|
|
120
|
+
}): Promise<SsoProvider[]>;
|
|
121
|
+
updateProvider(id: string, params: SsoUpdatePayload): Promise<SsoProvider>;
|
|
122
|
+
createProvider(params: SsoCreatePayload): Promise<SsoProvider>;
|
|
123
|
+
deleteProviders(ids: string[]): Promise<{
|
|
124
|
+
success: true;
|
|
125
|
+
}>;
|
|
126
|
+
};
|
|
82
127
|
emailing: {
|
|
83
128
|
performEmailing(template: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
84
129
|
suppressions(params: {
|
|
@@ -115,6 +160,13 @@ export declare const AdminApi: {
|
|
|
115
160
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
116
161
|
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
117
162
|
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
163
|
+
getStorages(params: {
|
|
164
|
+
params: KitStorageRequestPayload;
|
|
165
|
+
}): Promise<PaginatedItems<KitStorage[]>>;
|
|
166
|
+
getFootage(id: number, params?: {
|
|
167
|
+
params?: KitFootageRequestPayload;
|
|
168
|
+
}): Promise<KitFootage[]>;
|
|
169
|
+
getAlarms(kitId: number): Promise<KitAlarmItem[]>;
|
|
118
170
|
};
|
|
119
171
|
logs: {
|
|
120
172
|
getAllCamerasStatusLogs(params: {
|
|
@@ -137,6 +189,16 @@ export declare const AdminApi: {
|
|
|
137
189
|
message: string;
|
|
138
190
|
}>;
|
|
139
191
|
};
|
|
192
|
+
recycleBin: {
|
|
193
|
+
getAllDeleted(params: {
|
|
194
|
+
params: RecycleBinQueryParams;
|
|
195
|
+
}): Promise<PaginatedItems<RecycleBin[]>>;
|
|
196
|
+
restore(params: {
|
|
197
|
+
type: string;
|
|
198
|
+
camera_ids: number[];
|
|
199
|
+
project_ids: number[];
|
|
200
|
+
}): Promise<void>;
|
|
201
|
+
};
|
|
140
202
|
offlineCameras: {
|
|
141
203
|
getSiteVisitCameras(params: {
|
|
142
204
|
params: Partial<SiteVisitCamerasQueryParams>;
|
|
@@ -244,7 +306,9 @@ export declare const AdminApi: {
|
|
|
244
306
|
};
|
|
245
307
|
sms: {
|
|
246
308
|
sendSms(number: string, params: SendSmsPayload): Promise<SendSmsResponse>;
|
|
247
|
-
getSimHistory(number: string
|
|
309
|
+
getSimHistory(number: string, params: {
|
|
310
|
+
params: PaginationParams;
|
|
311
|
+
}): Promise<PaginatedItems<SmsHistoryResponse>>;
|
|
248
312
|
getSms(params: {
|
|
249
313
|
params: Partial<SmsQueryParams>;
|
|
250
314
|
}): Promise<PaginatedItems<Sms[]>>;
|
|
@@ -261,7 +325,7 @@ export declare const AdminApi: {
|
|
|
261
325
|
}): Promise<{
|
|
262
326
|
progressPhoto: string;
|
|
263
327
|
}>;
|
|
264
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
328
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
265
329
|
};
|
|
266
330
|
tags: {
|
|
267
331
|
index(): Promise<Tag[]>;
|
|
@@ -307,4 +371,9 @@ export declare const AdminApi: {
|
|
|
307
371
|
zohoDesk: {
|
|
308
372
|
searchTickets(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
309
373
|
};
|
|
374
|
+
comments: {
|
|
375
|
+
index(params: {
|
|
376
|
+
params: Partial<CommentsListRequestPayload>;
|
|
377
|
+
}): Promise<PaginatedItems<Comment>>;
|
|
378
|
+
};
|
|
310
379
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
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,
|
|
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, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel } 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;
|
|
@@ -12,14 +12,13 @@ export declare const AiApi: {
|
|
|
12
12
|
};
|
|
13
13
|
anpr: {
|
|
14
14
|
exportAnprLegacyEvents(projectExid: ProjectExid, params: AnprQueryParams): AxiosPromise<any>;
|
|
15
|
-
getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams): Promise<PaginatedItems<AnprEvent>>;
|
|
16
|
-
getAnprCounts(projectExid: ProjectExid, payload: AnprCountsQueryParams): Promise<AnprCount[]>;
|
|
15
|
+
getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<AnprEvent>>;
|
|
16
|
+
getAnprCounts(projectExid: ProjectExid, payload: AnprCountsQueryParams, extraParams?: AxiosRequestConfig): Promise<AnprCount[]>;
|
|
17
17
|
updateAnprEvent(anprEventId: string, eventBody: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
18
18
|
bulkUpdateAnprRecords(anprEventsIds: number[], action: "is_plate" | "not_plate" | "is_duplicate" | "not_duplicate"): Promise<import("axios").AxiosResponse<any, any>>;
|
|
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,10 +73,14 @@ 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, extraParams?: AxiosRequestConfig): Promise<DetectionsCountsByPeriod>;
|
|
78
|
+
getDetectionsByTimestamp({ projectExid, ...params }: DetectionsRequestParams, extraParams?: AxiosRequestConfig): 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
86
|
smartSearch({ cameraExid, payload, fromDate, toDate, page, pageSize, }: {
|
|
@@ -95,7 +98,35 @@ export declare const AiApi: {
|
|
|
95
98
|
getQueryById(cameraExid: CameraExid, queryId: number): Promise<SmartSearchQueryParams>;
|
|
96
99
|
updateQuery(cameraExid: CameraExid, queryId: number, payload: Partial<SavedQuery>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
97
100
|
deleteQuery(cameraExid: CameraExid, queryId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
98
|
-
getProcessedTimes(
|
|
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
|
+
};
|
|
120
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
121
|
+
getDetectionsHeatmapData(cameraExid: CameraExid, params: {
|
|
122
|
+
fromDate: DateType | string;
|
|
123
|
+
toDate: DateType | string;
|
|
124
|
+
labels: DetectionLabel[];
|
|
125
|
+
operator?: SmartSearchOperatorType;
|
|
126
|
+
}): Promise<{
|
|
127
|
+
results: SmartSearchHeatmapData[];
|
|
128
|
+
sqlQuery: string;
|
|
129
|
+
}>;
|
|
99
130
|
};
|
|
100
131
|
coolify: {
|
|
101
132
|
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -118,4 +149,7 @@ export declare const AiApi: {
|
|
|
118
149
|
pauseService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
119
150
|
restartService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
120
151
|
};
|
|
152
|
+
fovChanges: {
|
|
153
|
+
getCameraFovChanges(cameraExid: string, extraConfig?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
154
|
+
};
|
|
121
155
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload } from "@/types";
|
|
1
2
|
export declare const AuthzApi: {
|
|
2
3
|
roles: {
|
|
3
4
|
get(params: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -12,6 +13,12 @@ export declare const AuthzApi: {
|
|
|
12
13
|
unassignUsers(id: number, emails: Array<string>, resource_id: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
13
14
|
getUserRoles(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
15
|
};
|
|
16
|
+
projectRoles: {
|
|
17
|
+
get(projectExid: ProjectExid): Promise<import("axios").AxiosResponse<any, any>>;
|
|
18
|
+
create(projectExid: ProjectExid, params: ProjectRoleRequestPayload): Promise<ProjectResourceRole>;
|
|
19
|
+
update(projectExid: ProjectExid, roleId: number, params: ProjectRoleRequestPayload): Promise<ProjectResourceRole>;
|
|
20
|
+
delete(projectExid: ProjectExid, roleId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
21
|
+
};
|
|
15
22
|
scopes: {
|
|
16
23
|
get(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
17
24
|
create(params: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -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, 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,
|
|
2
|
+
import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProjectsResponsePayload, AconexDocumentSchemaResponsePayload, AconexDocumentTypeSchemaResponsePayload, 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, 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, ProjectMembersResponsePayload, ProjectMembersRequestPayload, ProjectInviteMembersResponsePayload, 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,6 +10,13 @@ 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>;
|
|
@@ -38,6 +45,7 @@ export declare const EvercamApi: {
|
|
|
38
45
|
fetchPermissions(): Promise<{
|
|
39
46
|
permissions: string[];
|
|
40
47
|
}>;
|
|
48
|
+
getProjectContacts(projectExid: ProjectExid): Promise<import("axios").AxiosResponse<any, any>>;
|
|
41
49
|
};
|
|
42
50
|
notifications: {
|
|
43
51
|
get(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -56,15 +64,11 @@ export declare const EvercamApi: {
|
|
|
56
64
|
};
|
|
57
65
|
cameras: {
|
|
58
66
|
getCameras(params: {
|
|
59
|
-
params
|
|
67
|
+
params?: Partial<FetchCameraQueryParams>;
|
|
68
|
+
config?: AxiosRequestConfig;
|
|
60
69
|
}): Promise<CamerasResponsePayload>;
|
|
61
70
|
getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
|
|
62
71
|
getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
|
|
63
|
-
portCheck(payload: {
|
|
64
|
-
params: CheckCameraPortPayload;
|
|
65
|
-
}): Promise<CheckCameraPortPayload & {
|
|
66
|
-
open: boolean;
|
|
67
|
-
}>;
|
|
68
72
|
getNvrStreamingToken({ cameraExid, token, }: {
|
|
69
73
|
cameraExid: string;
|
|
70
74
|
token: string;
|
|
@@ -78,7 +82,10 @@ export declare const EvercamApi: {
|
|
|
78
82
|
updateCamera(exid: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
79
83
|
};
|
|
80
84
|
projects: {
|
|
81
|
-
index(params
|
|
85
|
+
index({ params, config, }: {
|
|
86
|
+
params?: ApiCredentials;
|
|
87
|
+
config: AxiosRequestConfig;
|
|
88
|
+
}): Promise<ProjectResponsePayload>;
|
|
82
89
|
getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
|
|
83
90
|
createLogo(projectId: string, formData: FormData): Promise<Logo & {
|
|
84
91
|
id: number;
|
|
@@ -99,6 +106,21 @@ export declare const EvercamApi: {
|
|
|
99
106
|
message: string;
|
|
100
107
|
}>;
|
|
101
108
|
getPlaceholderThumbnailData(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
109
|
+
transferOwnership(projectExid: string, newOwnerId: number): Promise<{
|
|
110
|
+
message: string;
|
|
111
|
+
}>;
|
|
112
|
+
getUsers(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
113
|
+
getCameras(projectExid: string): Promise<{
|
|
114
|
+
cameras: Camera[];
|
|
115
|
+
}>;
|
|
116
|
+
getCameraRefs(projectExid: string): Promise<{
|
|
117
|
+
cameras: Camera[];
|
|
118
|
+
}>;
|
|
119
|
+
getTeamMembers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
120
|
+
getMembers(projectExid: string): Promise<ProjectMembersResponsePayload>;
|
|
121
|
+
inviteMembers(projectExid: string, payload: ProjectMembersRequestPayload): Promise<ProjectInviteMembersResponsePayload>;
|
|
122
|
+
removeMembers(projectExid: string, emails: string[]): Promise<void>;
|
|
123
|
+
updateMembersRole(projectExid: string, payload: ProjectMembersRequestPayload): Promise<void>;
|
|
102
124
|
};
|
|
103
125
|
timelapse: {
|
|
104
126
|
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
@@ -123,14 +145,33 @@ export declare const EvercamApi: {
|
|
|
123
145
|
getUserProjects(): Promise<AconexUserProjectsResponsePayload>;
|
|
124
146
|
revoke(): Promise<void>;
|
|
125
147
|
uploadEditedSnapshot(projectId: number, payload: AconexEditedImageUploadRequestPayload): Promise<void>;
|
|
126
|
-
getDocumentSchema(projectId: number): Promise<
|
|
148
|
+
getDocumentSchema(projectId: number): Promise<AconexDocumentSchemaResponsePayload>;
|
|
149
|
+
getDocumentTypeSchema(projectId: number, documentTypeId: string): Promise<AconexDocumentTypeSchemaResponsePayload>;
|
|
127
150
|
};
|
|
128
151
|
procore: {
|
|
129
152
|
getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
|
|
130
|
-
getUserProjects(payload:
|
|
131
|
-
|
|
153
|
+
getUserProjects(payload: ProcoreCompanyRequestPayload): Promise<ProcoreUserProjectsResponsePayload>;
|
|
154
|
+
getUserProjectPermissions(payload: ProcoreProjectRequestPayload): Promise<ProcoreUserProjectPermissionsResponsePayload>;
|
|
155
|
+
getProjectAlbums(payload: ProcoreProjectRequestPayload): Promise<ProcoreProjectsAlbumsPayload>;
|
|
132
156
|
uploadEditedSnapshot(payload: ProcoreEditedImageUploadRequestPayload): Promise<void>;
|
|
133
157
|
sendRevoke(): Promise<void>;
|
|
158
|
+
getObservationTypes(payload: ProcoreProjectRequestPayload): Promise<ProcoreObservationTypesResponsePayload>;
|
|
159
|
+
getObservationForm(payload: ProcoreObservationFormRequestPayload): Promise<ProcoreObservationForm>;
|
|
160
|
+
getNextAvailableObservationNumber(payload: ProcoreProjectRequestPayload): Promise<ProcoreNextObservationAvailableNumber>;
|
|
161
|
+
getAssignees(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationAssignee>>;
|
|
162
|
+
getDistributionMembers(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationDistributionMember>>;
|
|
163
|
+
createObservation(formData: FormData): Promise<void>;
|
|
164
|
+
getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
165
|
+
getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
166
|
+
getTrades(payload: ProcoreCompanyRequestPayload): Promise<Array<ProcoreObservationTrades>>;
|
|
167
|
+
getHazards(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
168
|
+
getLocations(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationLocation>>;
|
|
169
|
+
getSpecificationSections(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationSpecificationSection>>;
|
|
170
|
+
getCustomFieldOptions(payload: ProcoreProjectRequestPayload): Promise<{
|
|
171
|
+
options: {
|
|
172
|
+
[key: string]: string[];
|
|
173
|
+
};
|
|
174
|
+
}>;
|
|
134
175
|
};
|
|
135
176
|
autodesk: {
|
|
136
177
|
sendRevoke(): Promise<void>;
|
|
@@ -201,28 +242,31 @@ export declare const EvercamApi: {
|
|
|
201
242
|
cCreate(cameraId: string, payload: ShareCreateRequestPayload): Promise<ShareCreateResponsePayload>;
|
|
202
243
|
shareProjectCameras(projectExid: ProjectExid, payload: ShareProjectCamerasRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
203
244
|
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
204
|
-
transferOwnership(cameraId: string, payload: {
|
|
205
|
-
userId: number;
|
|
206
|
-
}): Promise<void>;
|
|
207
245
|
resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
|
|
208
246
|
getProjectShares(exid: string): Promise<ProjectShareResponse>;
|
|
209
247
|
updateUserRestriction(projectExid: ProjectExid, payload: UpdateUserRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
210
248
|
};
|
|
211
|
-
|
|
212
|
-
|
|
249
|
+
company: {
|
|
250
|
+
show(companyId: string | undefined, params?: Record<string, string>): Promise<Company>;
|
|
251
|
+
getCompanyUsers(params: {
|
|
213
252
|
params: {
|
|
214
253
|
page: number;
|
|
215
254
|
limit: number;
|
|
216
255
|
};
|
|
217
256
|
}): Promise<PaginatedItems<CompanyUser>>;
|
|
218
|
-
getCompanyProjects(
|
|
257
|
+
getCompanyProjects(params: {
|
|
219
258
|
params: {
|
|
220
259
|
page: number;
|
|
221
260
|
limit: number;
|
|
222
261
|
};
|
|
223
262
|
}): Promise<PaginatedItems<CompanyProject>>;
|
|
224
|
-
|
|
225
|
-
|
|
263
|
+
getCompanyCameras(params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
264
|
+
getCompanyKits(params: {
|
|
265
|
+
params: {
|
|
266
|
+
page: number;
|
|
267
|
+
limit: number;
|
|
268
|
+
};
|
|
269
|
+
}): Promise<PaginatedItems<CompanyKit>>;
|
|
226
270
|
};
|
|
227
271
|
batteries: {
|
|
228
272
|
ProjectBatteryReadings(projectExid: string): Promise<ProjectBatteryReading[]>;
|
|
@@ -265,8 +309,10 @@ export declare const EvercamApi: {
|
|
|
265
309
|
show(id: number): Promise<WidgetFull>;
|
|
266
310
|
getByKeys(): Promise<WidgetFull>;
|
|
267
311
|
setSessionSettings(params: any): Promise<WidgetFull>;
|
|
268
|
-
|
|
269
|
-
|
|
312
|
+
setStatus(id: number, params: {
|
|
313
|
+
active: boolean;
|
|
314
|
+
}): Promise<WidgetFull>;
|
|
315
|
+
create(payload: WidgetPayload): Promise<WidgetFull>;
|
|
270
316
|
update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
|
|
271
317
|
delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
272
318
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, SegmentsCountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, SegmentsPresenceByLabel, ActiveUsersResponsePayload, ActiveUsersRequestPayload, HeatmapIntersectionsRequestParams, SmartSearchHeatmapPoint } 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
5
|
posthog: {
|
|
6
6
|
getEvents(params: any): Promise<PaginatedItems<any>>;
|
|
7
7
|
getUsers(params: any): Promise<any>;
|
|
8
|
+
getActiveUsers(params: ActiveUsersRequestPayload): Promise<ActiveUsersResponsePayload>;
|
|
8
9
|
};
|
|
9
10
|
copilot: {
|
|
10
11
|
getAllConversations(params: LabsPaginationParams & {
|
|
@@ -17,8 +18,9 @@ export declare const EvercamLabsApi: {
|
|
|
17
18
|
getMessageSteps(message: CopilotMessage): Promise<CopilotMessageStep[]>;
|
|
18
19
|
submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
20
|
};
|
|
20
|
-
|
|
21
|
-
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }:
|
|
21
|
+
siteAnalytics: {
|
|
22
|
+
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
|
|
23
|
+
getIntersectionsHeatmapData(params: HeatmapIntersectionsRequestParams): Promise<SmartSearchHeatmapPoint[]>;
|
|
22
24
|
};
|
|
23
25
|
googleCloudStorage: {
|
|
24
26
|
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";
|