@evercam/api 1.0.0-d7a4e6c9d → 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/dist/api/api/3dFirebaseApi.d.ts +175 -13
- package/dist/api/api/adminApi.d.ts +87 -83
- package/dist/api/api/aiApi.d.ts +58 -85
- package/dist/api/api/authzApi.d.ts +31 -15
- package/dist/api/api/client/axios.d.ts +2 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +118 -95
- package/dist/api/api/evercamLabsApi.d.ts +4 -3
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +99 -46
- package/dist/api/api/ptzApi.d.ts +12 -3
- package/dist/api/api/videoWallApi.d.ts +2 -2
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +164 -24
- package/dist/api/types/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +112 -60
- package/dist/api/types/anpr.d.ts +19 -2
- package/dist/api/types/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +61 -0
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +37 -3
- package/dist/api/types/axios.d.ts +11 -5
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +97 -98
- package/dist/api/types/comments.d.ts +7 -9
- package/dist/api/types/company.d.ts +42 -1
- package/dist/api/types/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +3 -5
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/copilot.d.ts +11 -6
- package/dist/api/types/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +20 -8
- package/dist/api/types/drone.d.ts +92 -3
- package/dist/api/types/gateReport.d.ts +49 -158
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +8 -1
- package/dist/api/types/ingest.d.ts +98 -2
- package/dist/api/types/kit.d.ts +31 -5
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +32 -2
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +102 -1
- package/dist/api/types/posthog.d.ts +15 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +6 -2
- package/dist/api/types/project.d.ts +136 -21
- package/dist/api/types/recording.d.ts +6 -4
- package/dist/api/types/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +2 -2
- package/dist/api/types/router.d.ts +20 -1
- package/dist/api/types/shared.d.ts +29 -4
- package/dist/api/types/shares.d.ts +6 -144
- package/dist/api/types/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +170 -46
- package/dist/api/types/siteView.d.ts +74 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +36 -4
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +3 -3
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +0 -18
- package/dist/api/types/timelapse.d.ts +12 -5
- package/dist/api/types/user.d.ts +105 -31
- package/dist/api/types/videoWall.d.ts +21 -21
- package/dist/api/types/weather.d.ts +75 -11
- package/dist/api/types/widget.d.ts +71 -12
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/index.js +1580 -940
- 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/types/components.d.ts +127 -14
- package/dist/shared/types/imagePlayer.d.ts +10 -3
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +2 -2
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -1,21 +1,183 @@
|
|
|
1
|
-
import { _360ProjectJsonResponse,
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
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;
|
|
5
7
|
export declare const _3dFirebaseApi: {
|
|
6
8
|
drone: {
|
|
7
|
-
getProjectInfo(projectExid: ProjectExid): Promise<
|
|
8
|
-
|
|
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>;
|
|
9
65
|
};
|
|
10
66
|
_360: {
|
|
11
|
-
getProjectInfo(projectExid: ProjectExid
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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>>;
|
|
17
137
|
};
|
|
18
138
|
forge: {
|
|
19
|
-
|
|
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>;
|
|
20
182
|
};
|
|
21
183
|
};
|
|
@@ -1,8 +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";
|
|
5
6
|
import type { AxiosRequestConfig } from "axios";
|
|
7
|
+
type AxiosPaginationRequestParams = AxiosRequestConfig & {
|
|
8
|
+
params: PaginationParams;
|
|
9
|
+
};
|
|
6
10
|
export declare const AdminApi: {
|
|
7
11
|
mediaHub: {
|
|
8
12
|
getAllMedia(params: {
|
|
@@ -11,7 +15,7 @@ export declare const AdminApi: {
|
|
|
11
15
|
deleteMedia(params: Partial<MediaDeleteRequestPayload>): Promise<void>;
|
|
12
16
|
};
|
|
13
17
|
auditLogs: {
|
|
14
|
-
getAuditLogs(params: {
|
|
18
|
+
getAuditLogs(params: AxiosRequestConfig & {
|
|
15
19
|
params: Partial<AuditLogsParams>;
|
|
16
20
|
}): Promise<PaginatedItems<AuditLog>[]>;
|
|
17
21
|
};
|
|
@@ -27,9 +31,13 @@ export declare const AdminApi: {
|
|
|
27
31
|
focusCamera(cameraId: string, device: string): Promise<{
|
|
28
32
|
message: string;
|
|
29
33
|
}>;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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 & {
|
|
33
41
|
params: Partial<SnapshotExtractionQyeryParams>;
|
|
34
42
|
}): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
35
43
|
createCameras(payload: CameraCreateRequestPayload): Promise<{
|
|
@@ -56,6 +64,12 @@ export declare const AdminApi: {
|
|
|
56
64
|
params: AdminCompareQueryParams;
|
|
57
65
|
}): Promise<PaginatedItems<AdminCompare[]>>;
|
|
58
66
|
getCameraDetails(exid: string): Promise<AdminCamera>;
|
|
67
|
+
getCameraStatusLogs(exid: string, params: {
|
|
68
|
+
params: {
|
|
69
|
+
from: string;
|
|
70
|
+
to: string;
|
|
71
|
+
};
|
|
72
|
+
}): Promise<CameraStatusLog[]>;
|
|
59
73
|
deleteSnapshots(cameraId: string, params: DeleteSnapshotQueryParams): Promise<void>;
|
|
60
74
|
transferCloudRecordings(cameraId: string, params: TransferCloudRecordingsQueryParams): Promise<void>;
|
|
61
75
|
refreshDeviceSettings(cameraId: string): Promise<void>;
|
|
@@ -72,30 +86,16 @@ export declare const AdminApi: {
|
|
|
72
86
|
}>;
|
|
73
87
|
};
|
|
74
88
|
companies: {
|
|
75
|
-
show(id: string,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
getCompanyProjects(id: string, params: {
|
|
83
|
-
params: {
|
|
84
|
-
page: number;
|
|
85
|
-
limit: number;
|
|
86
|
-
};
|
|
87
|
-
}): Promise<PaginatedItems<CompanyProject>>;
|
|
88
|
-
getCompanyKits(id: string, params: {
|
|
89
|
-
params: {
|
|
90
|
-
page: number;
|
|
91
|
-
limit: number;
|
|
92
|
-
sort?: string;
|
|
93
|
-
};
|
|
94
|
-
}): Promise<PaginatedItems<Kit[]>>;
|
|
95
|
-
getCompanyCameras(id: string, params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
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>>;
|
|
96
96
|
getCompanies(params: {
|
|
97
97
|
params: Partial<CompanyQueryParams>;
|
|
98
|
-
}): Promise<PaginatedItems<
|
|
98
|
+
}): Promise<PaginatedItems<CompanySummary>>;
|
|
99
99
|
updateCompany(id: string, params: CompanyUpdatePayload): Promise<Omit<CompanyUpdatePayload, "linkedinUrl">>;
|
|
100
100
|
deleteCompany(params: {
|
|
101
101
|
ids: string | string[];
|
|
@@ -118,15 +118,25 @@ export declare const AdminApi: {
|
|
|
118
118
|
success: true;
|
|
119
119
|
}>;
|
|
120
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
|
+
};
|
|
121
131
|
emailing: {
|
|
122
|
-
performEmailing(template: string, params:
|
|
132
|
+
performEmailing(template: string, params: JsonObject): Promise<void>;
|
|
123
133
|
suppressions(params: {
|
|
124
134
|
params: SuppressionsQueryParams;
|
|
125
135
|
}): Promise<PaginatedItems<Suppression[]>>;
|
|
126
136
|
deleteSuppression(id: number): Promise<void>;
|
|
127
137
|
};
|
|
128
138
|
extractions: {
|
|
129
|
-
updateCloudRecordings(cameraId: string, params:
|
|
139
|
+
updateCloudRecordings(cameraId: string, params: JsonObject): Promise<void>;
|
|
130
140
|
addExtraction(cameraId: string, params: SnapshotExtractionQyeryParams): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
131
141
|
getExtractionStatus(cameraId: string, extractionId: number, params: {
|
|
132
142
|
type: SnapshotExtractionType;
|
|
@@ -139,19 +149,19 @@ export declare const AdminApi: {
|
|
|
139
149
|
}): Promise<void>;
|
|
140
150
|
};
|
|
141
151
|
kits: {
|
|
142
|
-
getAllKits(params: {
|
|
152
|
+
getAllKits(params: AxiosRequestConfig & {
|
|
143
153
|
params: KitQueryParams;
|
|
144
154
|
}): Promise<PaginatedItems<Kit[]>>;
|
|
145
155
|
getKit(kitId: number): Promise<Kit>;
|
|
146
156
|
createKit(params: KitCreatePayload): Promise<AdminKit>;
|
|
147
157
|
updateKit(id: string, params: PatchPayload<Kit>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
148
|
-
deleteKit(id: string, params:
|
|
158
|
+
deleteKit(id: string, params: JsonObject): Promise<void>;
|
|
149
159
|
getKitStats({ kitId, metric, fromDate, toDate, }: {
|
|
150
160
|
kitId: number;
|
|
151
161
|
metric: KitMetricId;
|
|
152
162
|
fromDate: string;
|
|
153
163
|
toDate: string;
|
|
154
|
-
}): Promise<
|
|
164
|
+
}): Promise<KitMetricStatsEntry[]>;
|
|
155
165
|
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
156
166
|
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
157
167
|
getStorages(params: {
|
|
@@ -161,6 +171,11 @@ export declare const AdminApi: {
|
|
|
161
171
|
params?: KitFootageRequestPayload;
|
|
162
172
|
}): Promise<KitFootage[]>;
|
|
163
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>;
|
|
164
179
|
};
|
|
165
180
|
logs: {
|
|
166
181
|
getAllCamerasStatusLogs(params: {
|
|
@@ -168,17 +183,15 @@ export declare const AdminApi: {
|
|
|
168
183
|
}): Promise<{
|
|
169
184
|
data: CameraLog[];
|
|
170
185
|
}>;
|
|
171
|
-
getCameraLogs(cameraId: string,
|
|
172
|
-
params: CameraAuditLogsQueryParams;
|
|
173
|
-
}): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
186
|
+
getCameraLogs(cameraId: string, params: CameraAuditLogsQueryParams): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
174
187
|
togglePinNote(id: string): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
175
188
|
};
|
|
176
189
|
nvrs: {
|
|
177
190
|
getNvrs(params: {
|
|
178
191
|
params: NvrQueryParams;
|
|
179
192
|
}): Promise<PaginatedItems<Nvr[]>>;
|
|
180
|
-
createNvr(params: NvrCreatePayload): Promise<
|
|
181
|
-
updateNvr(id: string, params: PatchPayload<Nvr>): Promise<
|
|
193
|
+
createNvr(params: NvrCreatePayload): Promise<Nvr>;
|
|
194
|
+
updateNvr(id: string, params: PatchPayload<Nvr>): Promise<Nvr>;
|
|
182
195
|
rebootNVR(cameraId: string): Promise<{
|
|
183
196
|
message: string;
|
|
184
197
|
}>;
|
|
@@ -207,9 +220,9 @@ export declare const AdminApi: {
|
|
|
207
220
|
projects: {
|
|
208
221
|
index(params: {
|
|
209
222
|
params: Partial<ProjectsQueryParams>;
|
|
210
|
-
}): Promise<PaginatedItems<
|
|
211
|
-
show(exid: string, params?:
|
|
212
|
-
data:
|
|
223
|
+
}): Promise<PaginatedItems<AdminProjectListItem>>;
|
|
224
|
+
show(exid: string, params?: WithZohoParams): Promise<{
|
|
225
|
+
data: AdminProjectDetail;
|
|
213
226
|
}>;
|
|
214
227
|
getUsers(id: string): Promise<ProjectUsers>;
|
|
215
228
|
getCameras(id: string): Promise<{
|
|
@@ -224,6 +237,12 @@ export declare const AdminApi: {
|
|
|
224
237
|
addToProject(projectExid: string, params: {
|
|
225
238
|
cameraExids: string[];
|
|
226
239
|
}): Promise<void>;
|
|
240
|
+
getProjectStorages(params: {
|
|
241
|
+
params: Partial<ProjectStorageQueryParams>;
|
|
242
|
+
}): Promise<PaginatedItems<ProjectStorage[]>>;
|
|
243
|
+
retryProjectStorage(id: number): Promise<{
|
|
244
|
+
message: string;
|
|
245
|
+
}>;
|
|
227
246
|
};
|
|
228
247
|
routers: {
|
|
229
248
|
getRouters(params: {
|
|
@@ -242,45 +261,25 @@ export declare const AdminApi: {
|
|
|
242
261
|
search: {
|
|
243
262
|
search(params: {
|
|
244
263
|
params: GlobalSearchQueryParams;
|
|
245
|
-
}): Promise<PaginatedItems<
|
|
264
|
+
}): Promise<PaginatedItems<AdminSearchItem>>;
|
|
246
265
|
};
|
|
247
266
|
hdds: {
|
|
248
267
|
getHdds(payload: {
|
|
249
268
|
projectId: string;
|
|
250
269
|
companyId: string;
|
|
251
|
-
}): Promise<
|
|
270
|
+
}): Promise<AdminHdd[]>;
|
|
252
271
|
getAllHdds(params: {
|
|
253
272
|
params: Partial<HDDsQueryParams>;
|
|
254
|
-
}): Promise<
|
|
255
|
-
deleteHdd(hddId: number): Promise<
|
|
256
|
-
saveHdd(params: HDDCreateUpdatePayload): Promise<
|
|
257
|
-
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<
|
|
258
|
-
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<
|
|
259
|
-
deleteFootage(hddId: number, footageId: number): Promise<
|
|
260
|
-
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<
|
|
261
|
-
};
|
|
262
|
-
shareRequests: {
|
|
263
|
-
getShareRequests(params: {
|
|
264
|
-
params: Partial<CameraShareRequestsQueryParams>;
|
|
265
|
-
}): Promise<PaginatedItems<CameraShareRequest[]>>;
|
|
266
|
-
deleteShareRequest(params: {
|
|
267
|
-
ids: number[];
|
|
268
|
-
}): Promise<{
|
|
269
|
-
success: boolean;
|
|
270
|
-
}>;
|
|
271
|
-
updateShareRequestStatus(params: {
|
|
272
|
-
ids: number[];
|
|
273
|
-
status: string;
|
|
274
|
-
}): Promise<{
|
|
275
|
-
success: boolean;
|
|
276
|
-
}>;
|
|
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>;
|
|
277
280
|
};
|
|
278
281
|
shares: {
|
|
279
|
-
|
|
280
|
-
getShares(params: {
|
|
281
|
-
params: Partial<ShareQueryParams>;
|
|
282
|
-
}): Promise<PaginatedItems<AdminShare[]>>;
|
|
283
|
-
deleteShares(ids: number[]): Promise<void>;
|
|
282
|
+
getInvites(params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminInvite>>;
|
|
284
283
|
};
|
|
285
284
|
sims: {
|
|
286
285
|
deleteSim(simId: number): Promise<{
|
|
@@ -289,20 +288,18 @@ export declare const AdminApi: {
|
|
|
289
288
|
createSim(params: Omit<SimCreateUpdatePayload, "cameraId">): Promise<{
|
|
290
289
|
success: boolean;
|
|
291
290
|
}>;
|
|
292
|
-
updateSim(simId: number, params:
|
|
291
|
+
updateSim(simId: number, params: SimCreateUpdatePayload): Promise<{
|
|
293
292
|
success: boolean;
|
|
294
293
|
}>;
|
|
295
294
|
getSims(params: {
|
|
296
295
|
params: Partial<SimsQueryParams>;
|
|
297
296
|
}): Promise<PaginatedItems<Sim[]>>;
|
|
298
|
-
getSimProviders(): Promise<
|
|
299
|
-
getBillPayers(): Promise<
|
|
297
|
+
getSimProviders(): Promise<string[]>;
|
|
298
|
+
getBillPayers(): Promise<string[]>;
|
|
300
299
|
};
|
|
301
300
|
sms: {
|
|
302
301
|
sendSms(number: string, params: SendSmsPayload): Promise<SendSmsResponse>;
|
|
303
|
-
getSimHistory(number: string, params:
|
|
304
|
-
params: PaginationParams;
|
|
305
|
-
}): Promise<PaginatedItems<SmsHistoryResponse>>;
|
|
302
|
+
getSimHistory(number: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<SmsHistoryResponse>>;
|
|
306
303
|
getSms(params: {
|
|
307
304
|
params: Partial<SmsQueryParams>;
|
|
308
305
|
}): Promise<PaginatedItems<Sms[]>>;
|
|
@@ -347,7 +344,7 @@ export declare const AdminApi: {
|
|
|
347
344
|
getUsers(params: {
|
|
348
345
|
params: Partial<AdminUserQueryParams>;
|
|
349
346
|
}): Promise<PaginatedItems<AdminUser>>;
|
|
350
|
-
show(id: number, params
|
|
347
|
+
show(id: number, params?: WithZohoParams): Promise<UserStatsResponse>;
|
|
351
348
|
getProjects(id: number): Promise<UserProjectResponse>;
|
|
352
349
|
getCameras(id: number): Promise<UserCameraResponse>;
|
|
353
350
|
getUserPasswordResetLink(email: string): Promise<{
|
|
@@ -357,17 +354,24 @@ export declare const AdminApi: {
|
|
|
357
354
|
widgets: {
|
|
358
355
|
index(params: {
|
|
359
356
|
params: Partial<WidgetsListRequestPayload>;
|
|
360
|
-
}): Promise<PaginatedItems<
|
|
361
|
-
show(id: number): Promise<
|
|
362
|
-
update(id: number, payload: WidgetPayload): Promise<
|
|
357
|
+
}): Promise<PaginatedItems<AdminWidget>>;
|
|
358
|
+
show(id: number): Promise<AdminWidgetFull>;
|
|
359
|
+
update(id: number, payload: WidgetPayload): Promise<AdminWidgetFull>;
|
|
363
360
|
delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
364
361
|
};
|
|
365
362
|
zohoDesk: {
|
|
366
|
-
searchTickets(params:
|
|
363
|
+
searchTickets(params: JsonObject): Promise<ZohoDeskTicketSearchResponse>;
|
|
367
364
|
};
|
|
368
365
|
comments: {
|
|
369
366
|
index(params: {
|
|
370
367
|
params: Partial<CommentsListRequestPayload>;
|
|
371
368
|
}): Promise<PaginatedItems<Comment>>;
|
|
372
369
|
};
|
|
370
|
+
snapshotTransfers: {
|
|
371
|
+
index(params: AxiosRequestConfig & {
|
|
372
|
+
params: Partial<TransferCloudRecordingsQueryParams>;
|
|
373
|
+
}): Promise<PaginatedItems<SnapshotTransfer>>;
|
|
374
|
+
cancel(id: number): Promise<SnapshotTransfer>;
|
|
375
|
+
};
|
|
373
376
|
};
|
|
377
|
+
export {};
|