@evercam/api 1.0.0-d861e8d9e → 1.0.0-d9534755d
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 +183 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +130 -61
- package/dist/api/api/aiApi.d.ts +128 -0
- package/dist/api/api/authzApi.d.ts +37 -0
- package/dist/api/{client → api/client}/axios.d.ts +2 -1
- 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/api/evercamApi.d.ts +337 -0
- package/dist/api/api/evercamLabsApi.d.ts +45 -0
- package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +148 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +2 -2
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +281 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/{types → api/types}/analytics.d.ts +186 -49
- package/dist/{types → api/types}/anpr.d.ts +26 -13
- package/dist/{types → api/types}/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +61 -0
- package/dist/{types → api/types}/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +95 -0
- package/dist/{types → api/types}/axios.d.ts +23 -2
- package/dist/{types → api/types}/bim.d.ts +11 -5
- package/dist/{types → api/types}/camera.d.ts +111 -143
- package/dist/api/types/comments.d.ts +57 -0
- package/dist/api/types/company.d.ts +115 -0
- package/dist/{types → api/types}/compare.d.ts +20 -5
- package/dist/{types → api/types}/connector.d.ts +7 -5
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/{types → api/types}/copilot.d.ts +11 -6
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +124 -0
- package/dist/api/types/drone.d.ts +106 -0
- package/dist/{types → api/types}/errors.d.ts +13 -0
- package/dist/{types → api/types}/gateReport.d.ts +49 -158
- package/dist/{types → api/types}/hdd.d.ts +26 -1
- package/dist/{types → api/types}/index.d.ts +12 -2
- package/dist/api/types/ingest.d.ts +147 -0
- package/dist/{types → api/types}/kit.d.ts +85 -6
- package/dist/api/types/map.d.ts +16 -0
- package/dist/{types → api/types}/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +57 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +133 -0
- package/dist/api/types/posthog.d.ts +33 -0
- package/dist/api/types/procore.d.ts +229 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
- package/dist/api/types/project.d.ts +247 -0
- package/dist/{types → api/types}/recording.d.ts +6 -5
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/{types → api/types}/roi.d.ts +1 -0
- package/dist/{types → api/types}/routeParams.d.ts +4 -2
- package/dist/{types → api/types}/router.d.ts +20 -1
- package/dist/{types → api/types}/shared.d.ts +30 -10
- package/dist/api/types/shares.d.ts +58 -0
- package/dist/{types → api/types}/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +287 -0
- package/dist/api/types/siteView.d.ts +74 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/{types → api/types}/snapshots.d.ts +42 -1
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/{types → api/types}/streaming.d.ts +4 -25
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/{types → api/types}/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +12 -5
- package/dist/{types → api/types}/user.d.ts +105 -36
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/api/types/weather.d.ts +153 -0
- package/dist/{types → api/types}/widget.d.ts +96 -16
- package/dist/{types → api/types}/xweather.d.ts +4 -4
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2164 -960
- 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 +312 -0
- package/dist/shared/types/imagePlayer.d.ts +41 -0
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +5 -4
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/aiApi.d.ts +0 -110
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -271
- package/dist/api/evercamLabsApi.d.ts +0 -50
- package/dist/api/ingestApi.d.ts +0 -66
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/types/360.d.ts +0 -83
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/company.d.ts +0 -46
- package/dist/types/coolify.d.ts +0 -18
- package/dist/types/detections.d.ts +0 -76
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/drone.d.ts +0 -17
- package/dist/types/ingest.d.ts +0 -43
- package/dist/types/map.d.ts +0 -4
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/planner.d.ts +0 -28
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/project.d.ts +0 -123
- package/dist/types/shares.d.ts +0 -196
- package/dist/types/siteAnalytics.d.ts +0 -84
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/time.d.ts +0 -19
- package/dist/types/videoWall.d.ts +0 -33
- package/dist/types/weather.d.ts +0 -87
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { _360Floor, _360FloorId, _360Marker3D, _360Pin, _360ProjectJsonResponse, _360ProjectListItem, _360Scene, _360SceneRoute, _360Walk, Point3D, DroneBimData, DroneImageryPlan, DroneMarker, DroneModel, DroneProjectData, DroneProjectDataPatch, DroneProjectTransform, DroneTag, DroneTransformPatch, ForgeMarker, ForgeProjectData, ForgeView, ItwinProjectData, MapView, PlannerListItem, SitePlan, ProjectExid, SiteViewCameraListItem, SiteViewerType, DroneCameraTransform } from "@evercam/api/types";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
|
+
export declare const getFirebaseDbApi: () => string;
|
|
4
|
+
export declare const getFirebaseStorageUrl: () => string;
|
|
5
|
+
export declare const getFirebaseStorageToken: () => string;
|
|
6
|
+
export declare const getForgeTokenServerUrl: () => string;
|
|
7
|
+
export declare const _3dFirebaseApi: {
|
|
8
|
+
drone: {
|
|
9
|
+
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectData>;
|
|
10
|
+
getTransformInfo(projectExid: ProjectExid): Promise<DroneProjectTransform>;
|
|
11
|
+
getProjectTags(projectExid: ProjectExid): Promise<Record<string, DroneTag>>;
|
|
12
|
+
getTags(projectId: ProjectExid): Promise<Record<string, DroneTag>>;
|
|
13
|
+
patchTags({ projectId, tags, }: {
|
|
14
|
+
projectId: ProjectExid;
|
|
15
|
+
tags: Record<string, DroneTag | null>;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
saveMarkers({ projectId, markers, }: {
|
|
18
|
+
projectId: ProjectExid;
|
|
19
|
+
markers: Record<string, DroneMarker>;
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
patchTransform({ projectId, data, }: {
|
|
22
|
+
projectId: ProjectExid;
|
|
23
|
+
data: DroneTransformPatch;
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
saveTerrainPoints({ projectId, dateId, points, }: {
|
|
26
|
+
projectId: ProjectExid;
|
|
27
|
+
dateId: string;
|
|
28
|
+
points: Point3D[];
|
|
29
|
+
}): Promise<void>;
|
|
30
|
+
patchImageryPlan({ projectId, plan, }: {
|
|
31
|
+
projectId: ProjectExid;
|
|
32
|
+
plan: Record<string, DroneImageryPlan>;
|
|
33
|
+
}): Promise<void>;
|
|
34
|
+
deleteImageryPlan({ projectId, uuid, }: {
|
|
35
|
+
projectId: ProjectExid;
|
|
36
|
+
uuid: string;
|
|
37
|
+
}): Promise<void>;
|
|
38
|
+
saveImageryPlans({ projectId, plans, }: {
|
|
39
|
+
projectId: ProjectExid;
|
|
40
|
+
plans: Record<string, DroneImageryPlan>;
|
|
41
|
+
}): Promise<void>;
|
|
42
|
+
getBlackListIds(projectId: ProjectExid): Promise<string | null>;
|
|
43
|
+
saveBlackListIds({ projectId, ids, }: {
|
|
44
|
+
projectId: ProjectExid;
|
|
45
|
+
ids: string;
|
|
46
|
+
}): Promise<void>;
|
|
47
|
+
saveModel({ projectId, model, }: {
|
|
48
|
+
projectId: ProjectExid;
|
|
49
|
+
model: DroneModel;
|
|
50
|
+
}): Promise<void>;
|
|
51
|
+
saveModels({ projectId, models, }: {
|
|
52
|
+
projectId: ProjectExid;
|
|
53
|
+
models: DroneModel[];
|
|
54
|
+
}): Promise<void>;
|
|
55
|
+
saveBimData({ projectId, data, }: {
|
|
56
|
+
projectId: ProjectExid;
|
|
57
|
+
data: DroneBimData;
|
|
58
|
+
}): Promise<void>;
|
|
59
|
+
getBimTransparencyFlag(projectId: ProjectExid): Promise<boolean | null>;
|
|
60
|
+
saveCameraTransform({ projectId, isScene3D, transform, }: {
|
|
61
|
+
projectId: ProjectExid;
|
|
62
|
+
isScene3D: boolean;
|
|
63
|
+
transform: Record<string, DroneCameraTransform>;
|
|
64
|
+
}): Promise<void>;
|
|
65
|
+
};
|
|
66
|
+
_360: {
|
|
67
|
+
getProjectInfo(projectExid: ProjectExid, params?: {
|
|
68
|
+
config?: AxiosRequestConfig;
|
|
69
|
+
}): Promise<_360ProjectJsonResponse>;
|
|
70
|
+
getProjectsList(): Promise<_360ProjectListItem[]>;
|
|
71
|
+
updateProjectsList(items: Record<string, _360ProjectListItem>): Promise<void>;
|
|
72
|
+
updateProjectsListItem(index: number, data: _360ProjectListItem): Promise<void>;
|
|
73
|
+
deleteProject(projectId: string): Promise<void>;
|
|
74
|
+
updateProjectInfo(projectId: string, data: Partial<_360ProjectJsonResponse>): Promise<void>;
|
|
75
|
+
getDateWalks(projectExid: ProjectExid, dateId: string): Promise<_360Walk>;
|
|
76
|
+
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: Partial<_360Floor>): Promise<_360ProjectJsonResponse>;
|
|
77
|
+
getRoute(projectExid: ProjectExid, dateId: string, floorIndex: string): Promise<_360SceneRoute | null>;
|
|
78
|
+
getDates(projectId: ProjectExid): Promise<_360Scene[]>;
|
|
79
|
+
getAerialShotsDates(projectId: ProjectExid): Promise<_360Scene[]>;
|
|
80
|
+
getAerialShotDate(projectId: ProjectExid, dateId: number): Promise<string | null>;
|
|
81
|
+
getFloor({ projectId, dateId, floorId, }: {
|
|
82
|
+
projectId: ProjectExid;
|
|
83
|
+
dateId: number;
|
|
84
|
+
floorId: _360FloorId;
|
|
85
|
+
}): Promise<_360Floor>;
|
|
86
|
+
getAerialShotsFloor({ projectId, dateId, floorId, }: {
|
|
87
|
+
projectId: ProjectExid;
|
|
88
|
+
dateId: number;
|
|
89
|
+
floorId: _360FloorId;
|
|
90
|
+
}): Promise<_360Floor>;
|
|
91
|
+
update3DMarkers({ projectId, dateId, floorId, markers, }: {
|
|
92
|
+
projectId: ProjectExid;
|
|
93
|
+
dateId: number;
|
|
94
|
+
floorId: _360FloorId;
|
|
95
|
+
markers: Record<string, _360Marker3D>;
|
|
96
|
+
}): Promise<void>;
|
|
97
|
+
patchFloor({ projectId, dateId, floorId, data, }: {
|
|
98
|
+
projectId: ProjectExid;
|
|
99
|
+
dateId: number;
|
|
100
|
+
floorId: _360FloorId;
|
|
101
|
+
data: Partial<_360Floor>;
|
|
102
|
+
}): Promise<void>;
|
|
103
|
+
updateFloors({ projectId, dateId, floors, }: {
|
|
104
|
+
projectId: ProjectExid;
|
|
105
|
+
dateId: number;
|
|
106
|
+
floors: _360Scene["floors"];
|
|
107
|
+
}): Promise<void>;
|
|
108
|
+
deleteFloor({ projectId, dateId, floorId, }: {
|
|
109
|
+
projectId: ProjectExid;
|
|
110
|
+
dateId: number;
|
|
111
|
+
floorId: _360FloorId;
|
|
112
|
+
}): Promise<void>;
|
|
113
|
+
updateDates(projectId: ProjectExid, dates: _360Scene[]): Promise<void>;
|
|
114
|
+
deleteDate(projectId: ProjectExid, dateId: number): Promise<void>;
|
|
115
|
+
getPins({ projectId, dateId, floorId, }: {
|
|
116
|
+
projectId: ProjectExid;
|
|
117
|
+
dateId: number;
|
|
118
|
+
floorId: _360FloorId;
|
|
119
|
+
}): Promise<Record<string, _360Pin>>;
|
|
120
|
+
updatePins({ projectId, dateId, floorId, pins, }: {
|
|
121
|
+
projectId: ProjectExid;
|
|
122
|
+
dateId: number;
|
|
123
|
+
floorId: _360FloorId;
|
|
124
|
+
pins: Record<string, _360Pin>;
|
|
125
|
+
}): Promise<void>;
|
|
126
|
+
getGPXText(url: string): Promise<string>;
|
|
127
|
+
updateRoute(projectExid: ProjectExid, dateId: string, floorIndex: string, body: Partial<_360SceneRoute>): Promise<void>;
|
|
128
|
+
updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<void>;
|
|
129
|
+
saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<void>;
|
|
130
|
+
updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: string): Promise<void>;
|
|
131
|
+
getProjectDates(projectId: ProjectExid): Promise<_360Scene[]>;
|
|
132
|
+
getProjectAerialShotsDates(projectId: ProjectExid): Promise<_360Scene[]>;
|
|
133
|
+
getProjectDateFloors({ projectId, dateId, }: {
|
|
134
|
+
projectId: ProjectExid;
|
|
135
|
+
dateId: string | number;
|
|
136
|
+
}): Promise<Record<string, _360Floor>>;
|
|
137
|
+
};
|
|
138
|
+
forge: {
|
|
139
|
+
getAccessToken(): Promise<{
|
|
140
|
+
access_token: string;
|
|
141
|
+
}>;
|
|
142
|
+
getProjectInfo(projectExid: ProjectExid): Promise<ForgeProjectData | null>;
|
|
143
|
+
getForgeData(projectId: string): Promise<ForgeProjectData | null>;
|
|
144
|
+
saveSavedView(projectId: string, payload: ForgeView): Promise<void>;
|
|
145
|
+
saveMarkers(projectId: string, markers: ForgeMarker[]): Promise<void>;
|
|
146
|
+
};
|
|
147
|
+
itwin: {
|
|
148
|
+
getProjectInfo(projectId: string): Promise<ItwinProjectData | null>;
|
|
149
|
+
clearBimCompare(projectId: string): Promise<void>;
|
|
150
|
+
clearSiteView(projectId: string, modelIndex: number): Promise<void>;
|
|
151
|
+
};
|
|
152
|
+
siteView: {
|
|
153
|
+
getCamerasList(): Promise<SiteViewCameraListItem[]>;
|
|
154
|
+
updateCamerasList(items: Record<string, SiteViewCameraListItem>): Promise<void>;
|
|
155
|
+
updateCamerasListItem(trueIndex: number, item: SiteViewCameraListItem): Promise<void>;
|
|
156
|
+
updateProjectData({ viewerType, projectId, data, subPath, }: {
|
|
157
|
+
viewerType: SiteViewerType;
|
|
158
|
+
projectId: ProjectExid;
|
|
159
|
+
data: ForgeProjectData | ItwinProjectData | DroneProjectDataPatch;
|
|
160
|
+
subPath?: string;
|
|
161
|
+
}): Promise<void>;
|
|
162
|
+
deleteProjectData(viewerType: SiteViewerType, projectId: ProjectExid): Promise<void>;
|
|
163
|
+
readAllData(dbLink: string): Promise<Record<string, unknown>>;
|
|
164
|
+
writeAllData(dbLink: string, data: Record<string, unknown>): Promise<void>;
|
|
165
|
+
};
|
|
166
|
+
map: {
|
|
167
|
+
getMapViews(projectExid: ProjectExid): Promise<MapView[]>;
|
|
168
|
+
updateMapViews(projectExid: ProjectExid, mapViews: Record<string, MapView>): Promise<void>;
|
|
169
|
+
};
|
|
170
|
+
safety: {
|
|
171
|
+
getTPulseLink(projectExid: ProjectExid): Promise<{
|
|
172
|
+
link?: string;
|
|
173
|
+
} | null>;
|
|
174
|
+
updateTPulseLink(projectExid: ProjectExid, link: string): Promise<void>;
|
|
175
|
+
};
|
|
176
|
+
planner: {
|
|
177
|
+
getPlannerList(): Promise<Record<string, PlannerListItem>>;
|
|
178
|
+
getPlannerItem(sitePlanId: string): Promise<PlannerListItem | null>;
|
|
179
|
+
saveSitePlanMetaData(sitePlanId: string, payload: PlannerListItem): Promise<void>;
|
|
180
|
+
getSitePlan(sitePlanId: string): Promise<SitePlan | null>;
|
|
181
|
+
saveSitePlan(sitePlanId: string, payload: SitePlan): Promise<void>;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "
|
|
2
|
-
import type {
|
|
1
|
+
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "@evercam/api/types/hdd";
|
|
2
|
+
import type { OAuthClient, OAuthClientWithSecret, AdminCreateOAuthClientPayload, UpdateOAuthClientPayload } from "@evercam/api/types/oauth";
|
|
3
|
+
import type { CamerasResponsePayload, CameraUpdateRequestPayload, PaginatedItems, AdminCamera, AdminProjectDetail, AdminProjectListItem, AdminHdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload, Kit, PatchPayload, StorageProvidersResponsePayload, MediaFilterQueryParams, Media, MediaDeleteRequestPayload, AuditLogsParams, AuditLog, SnapshotExtractionQyeryParams, SnapshotExtraction, CameraCreateRequestPayload, CameraDeletePayload, SnapshotTestPayload, SnapshotTestResponse, DuplicatedCameraFields, DuplicatedCameraResponse, MergeDuplicatedCameraPayload, FetchCameraQueryParams, DeleteSnapshotQueryParams, SaveNotePayload, CameraNote, CreateCameraNotePayload, CompanyQueryParams, CompanySummary, CompanyUpdatePayload, SsoProvider, SsoUpdatePayload, SsoCreatePayload, SuppressionsQueryParams, Suppression, SnapshotExtractionType, KitQueryParams, KitCreatePayload, AdminKit, KitMetricStatsEntry, CameraLogsQueryParams, CameraLog, CameraAuditLogsQueryParams, CameraAuditLog, NvrQueryParams, Nvr, SiteVisitCamerasQueryParams, OfflineCameraQueryParams, OfflineCamera, OfflineCameraNoteResponse, UserStatsResponse, UserCameraResponse, UserProjectResponse, ProjectUsers, ProjectCamera, ProjectsQueryParams, ProjectStatusStats, ProjectCreateRequestPayload, ProjectCreateResponse, ProjectUpdateRequestPayload, RouterQueryParams, Router, RouterCreatePayload, GlobalSearchQueryParams, SimCreateUpdatePayload, SimsQueryParams, Sim, SendSmsPayload, SendSmsResponse, SmsHistoryResponse, SmsQueryParams, Sms, ProgressPhotosQueryParams, ProgressPhotoItem, progressPhotosHistoryQueryParams, ProgressPhotosHistory, AdminUserUpdateRequestPayload, AdminQueryParams, Admin, ImpersonateUserResponse, AdminUserQueryParams, AdminCompareQueryParams, AdminCompare, NvrCreatePayload, WidgetsListRequestPayload, AdminWidget, AdminWidgetFull, WidgetPayload, PaginationParams, KitStorageRequestPayload, AdminCompanyUser, AdminCompanyProject, CompanyKit, CompanyCameraSummary, Automation, KitStorage, KitFootageRequestPayload, CommentsListRequestPayload, Comment, KitFootage, KitAlarmItem, RecycleBin, RecycleBinQueryParams, TransferCloudRecordingsQueryParams, SnapshotTransfer, CheckCameraPortPayload, CameraStatusLog, KitBox, KitBoxCreatePayload, KitBoxQueryParams, AdminInvite, AdminSearchItem, WithZohoParams, ZohoDeskTicketSearchResponse, JsonObject, ProjectStorageQueryParams, ProjectStorage, StorageProvider } from "@evercam/api/types";
|
|
3
4
|
import { KitMetricId } from "@evercam/api/types";
|
|
4
|
-
import { Tag } from "
|
|
5
|
+
import { Tag } from "@evercam/api/types/tag";
|
|
6
|
+
import type { AxiosRequestConfig } from "axios";
|
|
7
|
+
type AxiosPaginationRequestParams = AxiosRequestConfig & {
|
|
8
|
+
params: PaginationParams;
|
|
9
|
+
};
|
|
5
10
|
export declare const AdminApi: {
|
|
6
11
|
mediaHub: {
|
|
7
12
|
getAllMedia(params: {
|
|
@@ -10,7 +15,7 @@ export declare const AdminApi: {
|
|
|
10
15
|
deleteMedia(params: Partial<MediaDeleteRequestPayload>): Promise<void>;
|
|
11
16
|
};
|
|
12
17
|
auditLogs: {
|
|
13
|
-
getAuditLogs(params: {
|
|
18
|
+
getAuditLogs(params: AxiosRequestConfig & {
|
|
14
19
|
params: Partial<AuditLogsParams>;
|
|
15
20
|
}): Promise<PaginatedItems<AuditLog>[]>;
|
|
16
21
|
};
|
|
@@ -26,9 +31,13 @@ export declare const AdminApi: {
|
|
|
26
31
|
focusCamera(cameraId: string, device: string): Promise<{
|
|
27
32
|
message: string;
|
|
28
33
|
}>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
getStorageProviders(cameraId: string, params?: AxiosRequestConfig & {
|
|
35
|
+
unmaskSecretKeys: boolean;
|
|
36
|
+
}): Promise<StorageProvidersResponsePayload>;
|
|
37
|
+
createStorageProvider(cameraId: string, payload: StorageProvider): Promise<StorageProvidersResponsePayload>;
|
|
38
|
+
updateStorageProvider(cameraId: string, providerId: number, payload: StorageProvider): Promise<StorageProvidersResponsePayload>;
|
|
39
|
+
getStorageDetails(): Promise<JsonObject>;
|
|
40
|
+
getSnapshotExtractions(params: AxiosRequestConfig & {
|
|
32
41
|
params: Partial<SnapshotExtractionQyeryParams>;
|
|
33
42
|
}): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
34
43
|
createCameras(payload: CameraCreateRequestPayload): Promise<{
|
|
@@ -50,23 +59,43 @@ export declare const AdminApi: {
|
|
|
50
59
|
}>;
|
|
51
60
|
getCameras(params: {
|
|
52
61
|
params: Partial<FetchCameraQueryParams>;
|
|
53
|
-
}): Promise<PaginatedItems<AdminCamera>>;
|
|
62
|
+
}, extraConfig?: AxiosRequestConfig): Promise<PaginatedItems<AdminCamera>>;
|
|
54
63
|
getCompares(params: {
|
|
55
64
|
params: AdminCompareQueryParams;
|
|
56
65
|
}): Promise<PaginatedItems<AdminCompare[]>>;
|
|
57
66
|
getCameraDetails(exid: string): Promise<AdminCamera>;
|
|
67
|
+
getCameraStatusLogs(exid: string, params: {
|
|
68
|
+
params: {
|
|
69
|
+
from: string;
|
|
70
|
+
to: string;
|
|
71
|
+
};
|
|
72
|
+
}): Promise<CameraStatusLog[]>;
|
|
58
73
|
deleteSnapshots(cameraId: string, params: DeleteSnapshotQueryParams): Promise<void>;
|
|
74
|
+
transferCloudRecordings(cameraId: string, params: TransferCloudRecordingsQueryParams): Promise<void>;
|
|
59
75
|
refreshDeviceSettings(cameraId: string): Promise<void>;
|
|
60
76
|
saveNote(cameraId: string, params: SaveNotePayload): Promise<CameraNote>;
|
|
61
77
|
saveCameraNote(cameraId: string, params: CreateCameraNotePayload): Promise<{
|
|
62
78
|
message: string;
|
|
63
79
|
}>;
|
|
64
80
|
update(cameraId: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
81
|
+
transferOwnership(cameraId: string, newOwnerId: number): Promise<void>;
|
|
82
|
+
portCheck(payload: {
|
|
83
|
+
params: CheckCameraPortPayload;
|
|
84
|
+
}): Promise<CheckCameraPortPayload & {
|
|
85
|
+
open: boolean;
|
|
86
|
+
}>;
|
|
65
87
|
};
|
|
66
88
|
companies: {
|
|
89
|
+
show(id: string, config?: AxiosRequestConfig & {
|
|
90
|
+
params?: WithZohoParams;
|
|
91
|
+
}): Promise<CompanySummary>;
|
|
92
|
+
getCompanyUsers(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminCompanyUser>>;
|
|
93
|
+
getCompanyProjects(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminCompanyProject>>;
|
|
94
|
+
getCompanyKits(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<CompanyKit>>;
|
|
95
|
+
getCompanyCameras(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<CompanyCameraSummary>>;
|
|
67
96
|
getCompanies(params: {
|
|
68
97
|
params: Partial<CompanyQueryParams>;
|
|
69
|
-
}): Promise<PaginatedItems<
|
|
98
|
+
}): Promise<PaginatedItems<CompanySummary>>;
|
|
70
99
|
updateCompany(id: string, params: CompanyUpdatePayload): Promise<Omit<CompanyUpdatePayload, "linkedinUrl">>;
|
|
71
100
|
deleteCompany(params: {
|
|
72
101
|
ids: string | string[];
|
|
@@ -79,15 +108,35 @@ export declare const AdminApi: {
|
|
|
79
108
|
success: true;
|
|
80
109
|
}>;
|
|
81
110
|
};
|
|
111
|
+
sso: {
|
|
112
|
+
getProviders(params: {
|
|
113
|
+
params: PaginationParams;
|
|
114
|
+
}): Promise<SsoProvider[]>;
|
|
115
|
+
updateProvider(id: string, params: SsoUpdatePayload): Promise<SsoProvider>;
|
|
116
|
+
createProvider(params: SsoCreatePayload): Promise<SsoProvider>;
|
|
117
|
+
deleteProviders(ids: string[]): Promise<{
|
|
118
|
+
success: true;
|
|
119
|
+
}>;
|
|
120
|
+
};
|
|
121
|
+
oauthClients: {
|
|
122
|
+
index(): Promise<{
|
|
123
|
+
items: OAuthClient[];
|
|
124
|
+
}>;
|
|
125
|
+
show(id: number): Promise<OAuthClient>;
|
|
126
|
+
create(payload: AdminCreateOAuthClientPayload): Promise<OAuthClientWithSecret>;
|
|
127
|
+
update(id: number, payload: UpdateOAuthClientPayload): Promise<OAuthClient>;
|
|
128
|
+
delete(id: number): Promise<void>;
|
|
129
|
+
regenerateSecret(id: number): Promise<OAuthClientWithSecret>;
|
|
130
|
+
};
|
|
82
131
|
emailing: {
|
|
83
|
-
performEmailing(template: string, params:
|
|
132
|
+
performEmailing(template: string, params: JsonObject): Promise<void>;
|
|
84
133
|
suppressions(params: {
|
|
85
134
|
params: SuppressionsQueryParams;
|
|
86
135
|
}): Promise<PaginatedItems<Suppression[]>>;
|
|
87
136
|
deleteSuppression(id: number): Promise<void>;
|
|
88
137
|
};
|
|
89
138
|
extractions: {
|
|
90
|
-
updateCloudRecordings(cameraId: string, params:
|
|
139
|
+
updateCloudRecordings(cameraId: string, params: JsonObject): Promise<void>;
|
|
91
140
|
addExtraction(cameraId: string, params: SnapshotExtractionQyeryParams): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
92
141
|
getExtractionStatus(cameraId: string, extractionId: number, params: {
|
|
93
142
|
type: SnapshotExtractionType;
|
|
@@ -100,21 +149,33 @@ export declare const AdminApi: {
|
|
|
100
149
|
}): Promise<void>;
|
|
101
150
|
};
|
|
102
151
|
kits: {
|
|
103
|
-
getAllKits(params: {
|
|
152
|
+
getAllKits(params: AxiosRequestConfig & {
|
|
104
153
|
params: KitQueryParams;
|
|
105
154
|
}): Promise<PaginatedItems<Kit[]>>;
|
|
106
155
|
getKit(kitId: number): Promise<Kit>;
|
|
107
156
|
createKit(params: KitCreatePayload): Promise<AdminKit>;
|
|
108
157
|
updateKit(id: string, params: PatchPayload<Kit>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
109
|
-
deleteKit(id: string, params:
|
|
158
|
+
deleteKit(id: string, params: JsonObject): Promise<void>;
|
|
110
159
|
getKitStats({ kitId, metric, fromDate, toDate, }: {
|
|
111
160
|
kitId: number;
|
|
112
161
|
metric: KitMetricId;
|
|
113
162
|
fromDate: string;
|
|
114
163
|
toDate: string;
|
|
115
|
-
}): Promise<
|
|
164
|
+
}): Promise<KitMetricStatsEntry[]>;
|
|
116
165
|
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
117
166
|
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
167
|
+
getStorages(params: {
|
|
168
|
+
params: KitStorageRequestPayload;
|
|
169
|
+
}): Promise<PaginatedItems<KitStorage[]>>;
|
|
170
|
+
getFootage(id: number, params?: {
|
|
171
|
+
params?: KitFootageRequestPayload;
|
|
172
|
+
}): Promise<KitFootage[]>;
|
|
173
|
+
getAlarms(kitId: number): Promise<KitAlarmItem[]>;
|
|
174
|
+
getBoxes(params: {
|
|
175
|
+
params: Partial<KitBoxQueryParams>;
|
|
176
|
+
}): Promise<PaginatedItems<KitBox>>;
|
|
177
|
+
createBox(params: KitBoxCreatePayload): Promise<KitBox>;
|
|
178
|
+
updateBox(id: string, params: KitBoxCreatePayload): Promise<KitBox>;
|
|
118
179
|
};
|
|
119
180
|
logs: {
|
|
120
181
|
getAllCamerasStatusLogs(params: {
|
|
@@ -122,21 +183,29 @@ export declare const AdminApi: {
|
|
|
122
183
|
}): Promise<{
|
|
123
184
|
data: CameraLog[];
|
|
124
185
|
}>;
|
|
125
|
-
getCameraLogs(cameraId: string,
|
|
126
|
-
params: CameraAuditLogsQueryParams;
|
|
127
|
-
}): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
186
|
+
getCameraLogs(cameraId: string, params: CameraAuditLogsQueryParams): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
128
187
|
togglePinNote(id: string): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
129
188
|
};
|
|
130
189
|
nvrs: {
|
|
131
190
|
getNvrs(params: {
|
|
132
191
|
params: NvrQueryParams;
|
|
133
192
|
}): Promise<PaginatedItems<Nvr[]>>;
|
|
134
|
-
createNvr(params: NvrCreatePayload): Promise<
|
|
135
|
-
updateNvr(id: string, params: PatchPayload<Nvr>): Promise<
|
|
193
|
+
createNvr(params: NvrCreatePayload): Promise<Nvr>;
|
|
194
|
+
updateNvr(id: string, params: PatchPayload<Nvr>): Promise<Nvr>;
|
|
136
195
|
rebootNVR(cameraId: string): Promise<{
|
|
137
196
|
message: string;
|
|
138
197
|
}>;
|
|
139
198
|
};
|
|
199
|
+
recycleBin: {
|
|
200
|
+
getAllDeleted(params: {
|
|
201
|
+
params: RecycleBinQueryParams;
|
|
202
|
+
}): Promise<PaginatedItems<RecycleBin[]>>;
|
|
203
|
+
restore(params: {
|
|
204
|
+
type: string;
|
|
205
|
+
camera_ids: number[];
|
|
206
|
+
project_ids: number[];
|
|
207
|
+
}): Promise<void>;
|
|
208
|
+
};
|
|
140
209
|
offlineCameras: {
|
|
141
210
|
getSiteVisitCameras(params: {
|
|
142
211
|
params: Partial<SiteVisitCamerasQueryParams>;
|
|
@@ -151,8 +220,10 @@ export declare const AdminApi: {
|
|
|
151
220
|
projects: {
|
|
152
221
|
index(params: {
|
|
153
222
|
params: Partial<ProjectsQueryParams>;
|
|
154
|
-
}): Promise<PaginatedItems<
|
|
155
|
-
show(exid: string, params?:
|
|
223
|
+
}): Promise<PaginatedItems<AdminProjectListItem>>;
|
|
224
|
+
show(exid: string, params?: WithZohoParams): Promise<{
|
|
225
|
+
data: AdminProjectDetail;
|
|
226
|
+
}>;
|
|
156
227
|
getUsers(id: string): Promise<ProjectUsers>;
|
|
157
228
|
getCameras(id: string): Promise<{
|
|
158
229
|
data: ProjectCamera[];
|
|
@@ -166,6 +237,12 @@ export declare const AdminApi: {
|
|
|
166
237
|
addToProject(projectExid: string, params: {
|
|
167
238
|
cameraExids: string[];
|
|
168
239
|
}): Promise<void>;
|
|
240
|
+
getProjectStorages(params: {
|
|
241
|
+
params: Partial<ProjectStorageQueryParams>;
|
|
242
|
+
}): Promise<PaginatedItems<ProjectStorage[]>>;
|
|
243
|
+
retryProjectStorage(id: number): Promise<{
|
|
244
|
+
message: string;
|
|
245
|
+
}>;
|
|
169
246
|
};
|
|
170
247
|
routers: {
|
|
171
248
|
getRouters(params: {
|
|
@@ -184,45 +261,25 @@ export declare const AdminApi: {
|
|
|
184
261
|
search: {
|
|
185
262
|
search(params: {
|
|
186
263
|
params: GlobalSearchQueryParams;
|
|
187
|
-
}): Promise<PaginatedItems<
|
|
264
|
+
}): Promise<PaginatedItems<AdminSearchItem>>;
|
|
188
265
|
};
|
|
189
266
|
hdds: {
|
|
190
267
|
getHdds(payload: {
|
|
191
268
|
projectId: string;
|
|
192
269
|
companyId: string;
|
|
193
|
-
}): Promise<
|
|
270
|
+
}): Promise<AdminHdd[]>;
|
|
194
271
|
getAllHdds(params: {
|
|
195
272
|
params: Partial<HDDsQueryParams>;
|
|
196
|
-
}): Promise<
|
|
197
|
-
deleteHdd(hddId: number): Promise<
|
|
198
|
-
saveHdd(params: HDDCreateUpdatePayload): Promise<
|
|
199
|
-
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<
|
|
200
|
-
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<
|
|
201
|
-
deleteFootage(hddId: number, footageId: number): Promise<
|
|
202
|
-
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<
|
|
203
|
-
};
|
|
204
|
-
shareRequests: {
|
|
205
|
-
getShareRequests(params: {
|
|
206
|
-
params: Partial<CameraShareRequestsQueryParams>;
|
|
207
|
-
}): Promise<PaginatedItems<CameraShareRequest[]>>;
|
|
208
|
-
deleteShareRequest(params: {
|
|
209
|
-
ids: number[];
|
|
210
|
-
}): Promise<{
|
|
211
|
-
success: boolean;
|
|
212
|
-
}>;
|
|
213
|
-
updateShareRequestStatus(params: {
|
|
214
|
-
ids: number[];
|
|
215
|
-
status: string;
|
|
216
|
-
}): Promise<{
|
|
217
|
-
success: boolean;
|
|
218
|
-
}>;
|
|
273
|
+
}): Promise<PaginatedItems<AdminHdd>>;
|
|
274
|
+
deleteHdd(hddId: number): Promise<void>;
|
|
275
|
+
saveHdd(params: HDDCreateUpdatePayload): Promise<void>;
|
|
276
|
+
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<void>;
|
|
277
|
+
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<void>;
|
|
278
|
+
deleteFootage(hddId: number, footageId: number): Promise<void>;
|
|
279
|
+
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<void>;
|
|
219
280
|
};
|
|
220
281
|
shares: {
|
|
221
|
-
|
|
222
|
-
getShares(params: {
|
|
223
|
-
params: Partial<ShareQueryParams>;
|
|
224
|
-
}): Promise<PaginatedItems<AdminShare[]>>;
|
|
225
|
-
deleteShares(ids: number[]): Promise<void>;
|
|
282
|
+
getInvites(params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminInvite>>;
|
|
226
283
|
};
|
|
227
284
|
sims: {
|
|
228
285
|
deleteSim(simId: number): Promise<{
|
|
@@ -231,18 +288,18 @@ export declare const AdminApi: {
|
|
|
231
288
|
createSim(params: Omit<SimCreateUpdatePayload, "cameraId">): Promise<{
|
|
232
289
|
success: boolean;
|
|
233
290
|
}>;
|
|
234
|
-
updateSim(simId: number, params:
|
|
291
|
+
updateSim(simId: number, params: SimCreateUpdatePayload): Promise<{
|
|
235
292
|
success: boolean;
|
|
236
293
|
}>;
|
|
237
294
|
getSims(params: {
|
|
238
295
|
params: Partial<SimsQueryParams>;
|
|
239
296
|
}): Promise<PaginatedItems<Sim[]>>;
|
|
240
|
-
getSimProviders(): Promise<
|
|
241
|
-
getBillPayers(): Promise<
|
|
297
|
+
getSimProviders(): Promise<string[]>;
|
|
298
|
+
getBillPayers(): Promise<string[]>;
|
|
242
299
|
};
|
|
243
300
|
sms: {
|
|
244
301
|
sendSms(number: string, params: SendSmsPayload): Promise<SendSmsResponse>;
|
|
245
|
-
getSimHistory(number: string): Promise<SmsHistoryResponse
|
|
302
|
+
getSimHistory(number: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<SmsHistoryResponse>>;
|
|
246
303
|
getSms(params: {
|
|
247
304
|
params: Partial<SmsQueryParams>;
|
|
248
305
|
}): Promise<PaginatedItems<Sms[]>>;
|
|
@@ -259,7 +316,7 @@ export declare const AdminApi: {
|
|
|
259
316
|
}): Promise<{
|
|
260
317
|
progressPhoto: string;
|
|
261
318
|
}>;
|
|
262
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
319
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
263
320
|
};
|
|
264
321
|
tags: {
|
|
265
322
|
index(): Promise<Tag[]>;
|
|
@@ -287,7 +344,7 @@ export declare const AdminApi: {
|
|
|
287
344
|
getUsers(params: {
|
|
288
345
|
params: Partial<AdminUserQueryParams>;
|
|
289
346
|
}): Promise<PaginatedItems<AdminUser>>;
|
|
290
|
-
show(id: number, params
|
|
347
|
+
show(id: number, params?: WithZohoParams): Promise<UserStatsResponse>;
|
|
291
348
|
getProjects(id: number): Promise<UserProjectResponse>;
|
|
292
349
|
getCameras(id: number): Promise<UserCameraResponse>;
|
|
293
350
|
getUserPasswordResetLink(email: string): Promise<{
|
|
@@ -297,12 +354,24 @@ export declare const AdminApi: {
|
|
|
297
354
|
widgets: {
|
|
298
355
|
index(params: {
|
|
299
356
|
params: Partial<WidgetsListRequestPayload>;
|
|
300
|
-
}): Promise<PaginatedItems<
|
|
301
|
-
show(id: number): Promise<
|
|
302
|
-
update(id: number, payload: WidgetPayload): Promise<
|
|
357
|
+
}): Promise<PaginatedItems<AdminWidget>>;
|
|
358
|
+
show(id: number): Promise<AdminWidgetFull>;
|
|
359
|
+
update(id: number, payload: WidgetPayload): Promise<AdminWidgetFull>;
|
|
303
360
|
delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
304
361
|
};
|
|
305
362
|
zohoDesk: {
|
|
306
|
-
searchTickets(params:
|
|
363
|
+
searchTickets(params: JsonObject): Promise<ZohoDeskTicketSearchResponse>;
|
|
364
|
+
};
|
|
365
|
+
comments: {
|
|
366
|
+
index(params: {
|
|
367
|
+
params: Partial<CommentsListRequestPayload>;
|
|
368
|
+
}): Promise<PaginatedItems<Comment>>;
|
|
369
|
+
};
|
|
370
|
+
snapshotTransfers: {
|
|
371
|
+
index(params: AxiosRequestConfig & {
|
|
372
|
+
params: Partial<TransferCloudRecordingsQueryParams>;
|
|
373
|
+
}): Promise<PaginatedItems<SnapshotTransfer>>;
|
|
374
|
+
cancel(id: number): Promise<SnapshotTransfer>;
|
|
307
375
|
};
|
|
308
376
|
};
|
|
377
|
+
export {};
|