@evercam/api 1.0.0-e03adefb8 → 1.0.0-e13c64fc3
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 +17 -1
- package/dist/api/api/adminApi.d.ts +115 -62
- package/dist/api/api/aiApi.d.ts +65 -81
- package/dist/api/api/authzApi.d.ts +32 -15
- package/dist/api/api/client/axios.d.ts +2 -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 +125 -96
- package/dist/api/api/evercamLabsApi.d.ts +6 -3
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +112 -33
- package/dist/api/api/ptzApi.d.ts +12 -3
- package/dist/api/api/videoWallApi.d.ts +7 -7
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +192 -5
- package/dist/api/types/aconex.d.ts +104 -6
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +154 -40
- package/dist/api/types/anpr.d.ts +24 -13
- package/dist/api/types/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +60 -0
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +86 -1
- package/dist/api/types/axios.d.ts +21 -1
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +103 -75
- package/dist/api/types/comments.d.ts +21 -9
- package/dist/api/types/company.d.ts +71 -2
- 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 +20 -2
- package/dist/api/types/copilot.d.ts +11 -6
- package/dist/api/types/countries.d.ts +0 -7
- package/dist/api/types/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +18 -24
- package/dist/api/types/errors.d.ts +1 -0
- package/dist/api/types/gateReport.d.ts +46 -150
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +8 -0
- package/dist/api/types/ingest.d.ts +89 -2
- package/dist/api/types/kit.d.ts +64 -9
- 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 +4 -1
- package/dist/api/types/posthog.d.ts +15 -0
- package/dist/api/types/procore.d.ts +26 -16
- package/dist/api/types/progressPhoto.d.ts +10 -24
- package/dist/api/types/project.d.ts +131 -17
- package/dist/api/types/recording.d.ts +3 -3
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/routeParams.d.ts +2 -1
- package/dist/api/types/router.d.ts +20 -1
- package/dist/api/types/shared.d.ts +12 -10
- 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 +194 -48
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +10 -1
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +4 -5
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +4 -18
- package/dist/api/types/timelapse.d.ts +3 -4
- package/dist/api/types/user.d.ts +105 -30
- package/dist/api/types/videoWall.d.ts +47 -14
- package/dist/api/types/weather.d.ts +77 -11
- package/dist/api/types/widget.d.ts +96 -16
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +1416 -920
- 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 +98 -12
- package/dist/shared/types/imagePlayer.d.ts +2 -2
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +5 -4
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
3
|
export declare const getFirebaseDbApi: () => string | null | undefined;
|
|
4
|
+
export declare const getFirebaseStorageUrl: () => string | null | undefined;
|
|
5
|
+
export declare const getFirebaseStorageToken: () => string | null | undefined;
|
|
3
6
|
export declare const _3dFirebaseApi: {
|
|
4
7
|
drone: {
|
|
5
8
|
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
9
|
+
getProjectTags(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
6
10
|
};
|
|
7
11
|
_360: {
|
|
8
|
-
getProjectInfo(projectExid: ProjectExid
|
|
12
|
+
getProjectInfo(projectExid: ProjectExid, params?: {
|
|
13
|
+
config?: AxiosRequestConfig;
|
|
14
|
+
}): Promise<_360ProjectJsonResponse>;
|
|
15
|
+
getDateWalks(projectExid: ProjectExid, dateId: string): Promise<any>;
|
|
9
16
|
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<_360ProjectJsonResponse>;
|
|
17
|
+
getRoute(projectExid: ProjectExid, dateId: string, floorIndex: string): Promise<any>;
|
|
18
|
+
getGPXText(url: string): Promise<any>;
|
|
19
|
+
updateRoute(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<any>;
|
|
20
|
+
updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<any>;
|
|
21
|
+
saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<any>;
|
|
22
|
+
updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: any): Promise<any>;
|
|
23
|
+
};
|
|
24
|
+
forge: {
|
|
25
|
+
getProjectInfo(projectExid: ProjectExid): Promise<any>;
|
|
10
26
|
};
|
|
11
27
|
};
|
|
@@ -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, StorageServersResponsePayload, 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, CheckCameraPortPayload, CameraStatusLog, KitBox, KitBoxCreatePayload, KitBoxQueryParams, AdminInvite, AdminSearchItem, WithZohoParams, ZohoDeskTicketSearchResponse, JsonObject, ProjectStorageQueryParams, ProjectStorage } 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
|
};
|
|
@@ -27,8 +32,8 @@ export declare const AdminApi: {
|
|
|
27
32
|
message: string;
|
|
28
33
|
}>;
|
|
29
34
|
getStorageServers(): Promise<StorageServersResponsePayload>;
|
|
30
|
-
getStorageDetails(): Promise<
|
|
31
|
-
getSnapshotExtractions(params: {
|
|
35
|
+
getStorageDetails(): Promise<JsonObject>;
|
|
36
|
+
getSnapshotExtractions(params: AxiosRequestConfig & {
|
|
32
37
|
params: Partial<SnapshotExtractionQyeryParams>;
|
|
33
38
|
}): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
34
39
|
createCameras(payload: CameraCreateRequestPayload): Promise<{
|
|
@@ -50,23 +55,43 @@ export declare const AdminApi: {
|
|
|
50
55
|
}>;
|
|
51
56
|
getCameras(params: {
|
|
52
57
|
params: Partial<FetchCameraQueryParams>;
|
|
53
|
-
}): Promise<PaginatedItems<AdminCamera>>;
|
|
58
|
+
}, extraConfig?: AxiosRequestConfig): Promise<PaginatedItems<AdminCamera>>;
|
|
54
59
|
getCompares(params: {
|
|
55
60
|
params: AdminCompareQueryParams;
|
|
56
61
|
}): Promise<PaginatedItems<AdminCompare[]>>;
|
|
57
62
|
getCameraDetails(exid: string): Promise<AdminCamera>;
|
|
63
|
+
getCameraStatusLogs(exid: string, params: {
|
|
64
|
+
params: {
|
|
65
|
+
from: string;
|
|
66
|
+
to: string;
|
|
67
|
+
};
|
|
68
|
+
}): Promise<CameraStatusLog[]>;
|
|
58
69
|
deleteSnapshots(cameraId: string, params: DeleteSnapshotQueryParams): Promise<void>;
|
|
70
|
+
transferCloudRecordings(cameraId: string, params: TransferCloudRecordingsQueryParams): Promise<void>;
|
|
59
71
|
refreshDeviceSettings(cameraId: string): Promise<void>;
|
|
60
72
|
saveNote(cameraId: string, params: SaveNotePayload): Promise<CameraNote>;
|
|
61
73
|
saveCameraNote(cameraId: string, params: CreateCameraNotePayload): Promise<{
|
|
62
74
|
message: string;
|
|
63
75
|
}>;
|
|
64
76
|
update(cameraId: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
77
|
+
transferOwnership(cameraId: string, newOwnerId: number): Promise<void>;
|
|
78
|
+
portCheck(payload: {
|
|
79
|
+
params: CheckCameraPortPayload;
|
|
80
|
+
}): Promise<CheckCameraPortPayload & {
|
|
81
|
+
open: boolean;
|
|
82
|
+
}>;
|
|
65
83
|
};
|
|
66
84
|
companies: {
|
|
85
|
+
show(id: string, config?: AxiosRequestConfig & {
|
|
86
|
+
params?: WithZohoParams;
|
|
87
|
+
}): Promise<CompanySummary>;
|
|
88
|
+
getCompanyUsers(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminCompanyUser>>;
|
|
89
|
+
getCompanyProjects(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminCompanyProject>>;
|
|
90
|
+
getCompanyKits(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<CompanyKit>>;
|
|
91
|
+
getCompanyCameras(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<CompanyCameraSummary>>;
|
|
67
92
|
getCompanies(params: {
|
|
68
93
|
params: Partial<CompanyQueryParams>;
|
|
69
|
-
}): Promise<PaginatedItems<
|
|
94
|
+
}): Promise<PaginatedItems<CompanySummary>>;
|
|
70
95
|
updateCompany(id: string, params: CompanyUpdatePayload): Promise<Omit<CompanyUpdatePayload, "linkedinUrl">>;
|
|
71
96
|
deleteCompany(params: {
|
|
72
97
|
ids: string | string[];
|
|
@@ -79,15 +104,35 @@ export declare const AdminApi: {
|
|
|
79
104
|
success: true;
|
|
80
105
|
}>;
|
|
81
106
|
};
|
|
107
|
+
sso: {
|
|
108
|
+
getProviders(params: {
|
|
109
|
+
params: PaginationParams;
|
|
110
|
+
}): Promise<SsoProvider[]>;
|
|
111
|
+
updateProvider(id: string, params: SsoUpdatePayload): Promise<SsoProvider>;
|
|
112
|
+
createProvider(params: SsoCreatePayload): Promise<SsoProvider>;
|
|
113
|
+
deleteProviders(ids: string[]): Promise<{
|
|
114
|
+
success: true;
|
|
115
|
+
}>;
|
|
116
|
+
};
|
|
117
|
+
oauthClients: {
|
|
118
|
+
index(): Promise<{
|
|
119
|
+
items: OAuthClient[];
|
|
120
|
+
}>;
|
|
121
|
+
show(id: number): Promise<OAuthClient>;
|
|
122
|
+
create(payload: AdminCreateOAuthClientPayload): Promise<OAuthClientWithSecret>;
|
|
123
|
+
update(id: number, payload: UpdateOAuthClientPayload): Promise<OAuthClient>;
|
|
124
|
+
delete(id: number): Promise<void>;
|
|
125
|
+
regenerateSecret(id: number): Promise<OAuthClientWithSecret>;
|
|
126
|
+
};
|
|
82
127
|
emailing: {
|
|
83
|
-
performEmailing(template: string, params:
|
|
128
|
+
performEmailing(template: string, params: JsonObject): Promise<void>;
|
|
84
129
|
suppressions(params: {
|
|
85
130
|
params: SuppressionsQueryParams;
|
|
86
131
|
}): Promise<PaginatedItems<Suppression[]>>;
|
|
87
132
|
deleteSuppression(id: number): Promise<void>;
|
|
88
133
|
};
|
|
89
134
|
extractions: {
|
|
90
|
-
updateCloudRecordings(cameraId: string, params:
|
|
135
|
+
updateCloudRecordings(cameraId: string, params: JsonObject): Promise<void>;
|
|
91
136
|
addExtraction(cameraId: string, params: SnapshotExtractionQyeryParams): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
92
137
|
getExtractionStatus(cameraId: string, extractionId: number, params: {
|
|
93
138
|
type: SnapshotExtractionType;
|
|
@@ -100,24 +145,32 @@ export declare const AdminApi: {
|
|
|
100
145
|
}): Promise<void>;
|
|
101
146
|
};
|
|
102
147
|
kits: {
|
|
103
|
-
getAllKits(params: {
|
|
148
|
+
getAllKits(params: AxiosRequestConfig & {
|
|
104
149
|
params: KitQueryParams;
|
|
105
150
|
}): Promise<PaginatedItems<Kit[]>>;
|
|
106
151
|
getKit(kitId: number): Promise<Kit>;
|
|
107
152
|
createKit(params: KitCreatePayload): Promise<AdminKit>;
|
|
108
153
|
updateKit(id: string, params: PatchPayload<Kit>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
109
|
-
deleteKit(id: string, params:
|
|
154
|
+
deleteKit(id: string, params: JsonObject): Promise<void>;
|
|
110
155
|
getKitStats({ kitId, metric, fromDate, toDate, }: {
|
|
111
156
|
kitId: number;
|
|
112
157
|
metric: KitMetricId;
|
|
113
158
|
fromDate: string;
|
|
114
159
|
toDate: string;
|
|
115
|
-
}): Promise<
|
|
160
|
+
}): Promise<KitMetricStatsEntry[]>;
|
|
116
161
|
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
117
162
|
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
118
163
|
getStorages(params: {
|
|
119
164
|
params: KitStorageRequestPayload;
|
|
120
|
-
}): Promise<PaginatedItems<
|
|
165
|
+
}): Promise<PaginatedItems<KitStorage[]>>;
|
|
166
|
+
getFootage(id: number, params?: {
|
|
167
|
+
params?: KitFootageRequestPayload;
|
|
168
|
+
}): Promise<KitFootage[]>;
|
|
169
|
+
getAlarms(kitId: number): Promise<KitAlarmItem[]>;
|
|
170
|
+
getBoxes(params: {
|
|
171
|
+
params: Partial<KitBoxQueryParams>;
|
|
172
|
+
}): Promise<PaginatedItems<KitBox>>;
|
|
173
|
+
createBox(params: KitBoxCreatePayload): Promise<KitBox>;
|
|
121
174
|
};
|
|
122
175
|
logs: {
|
|
123
176
|
getAllCamerasStatusLogs(params: {
|
|
@@ -125,21 +178,29 @@ export declare const AdminApi: {
|
|
|
125
178
|
}): Promise<{
|
|
126
179
|
data: CameraLog[];
|
|
127
180
|
}>;
|
|
128
|
-
getCameraLogs(cameraId: string,
|
|
129
|
-
params: CameraAuditLogsQueryParams;
|
|
130
|
-
}): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
181
|
+
getCameraLogs(cameraId: string, params: CameraAuditLogsQueryParams): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
131
182
|
togglePinNote(id: string): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
132
183
|
};
|
|
133
184
|
nvrs: {
|
|
134
185
|
getNvrs(params: {
|
|
135
186
|
params: NvrQueryParams;
|
|
136
187
|
}): Promise<PaginatedItems<Nvr[]>>;
|
|
137
|
-
createNvr(params: NvrCreatePayload): Promise<
|
|
138
|
-
updateNvr(id: string, params: PatchPayload<Nvr>): Promise<
|
|
188
|
+
createNvr(params: NvrCreatePayload): Promise<Nvr>;
|
|
189
|
+
updateNvr(id: string, params: PatchPayload<Nvr>): Promise<Nvr>;
|
|
139
190
|
rebootNVR(cameraId: string): Promise<{
|
|
140
191
|
message: string;
|
|
141
192
|
}>;
|
|
142
193
|
};
|
|
194
|
+
recycleBin: {
|
|
195
|
+
getAllDeleted(params: {
|
|
196
|
+
params: RecycleBinQueryParams;
|
|
197
|
+
}): Promise<PaginatedItems<RecycleBin[]>>;
|
|
198
|
+
restore(params: {
|
|
199
|
+
type: string;
|
|
200
|
+
camera_ids: number[];
|
|
201
|
+
project_ids: number[];
|
|
202
|
+
}): Promise<void>;
|
|
203
|
+
};
|
|
143
204
|
offlineCameras: {
|
|
144
205
|
getSiteVisitCameras(params: {
|
|
145
206
|
params: Partial<SiteVisitCamerasQueryParams>;
|
|
@@ -154,9 +215,9 @@ export declare const AdminApi: {
|
|
|
154
215
|
projects: {
|
|
155
216
|
index(params: {
|
|
156
217
|
params: Partial<ProjectsQueryParams>;
|
|
157
|
-
}): Promise<PaginatedItems<
|
|
158
|
-
show(exid: string, params?:
|
|
159
|
-
data:
|
|
218
|
+
}): Promise<PaginatedItems<AdminProjectListItem>>;
|
|
219
|
+
show(exid: string, params?: WithZohoParams): Promise<{
|
|
220
|
+
data: AdminProjectDetail;
|
|
160
221
|
}>;
|
|
161
222
|
getUsers(id: string): Promise<ProjectUsers>;
|
|
162
223
|
getCameras(id: string): Promise<{
|
|
@@ -171,6 +232,12 @@ export declare const AdminApi: {
|
|
|
171
232
|
addToProject(projectExid: string, params: {
|
|
172
233
|
cameraExids: string[];
|
|
173
234
|
}): Promise<void>;
|
|
235
|
+
getProjectStorages(params: {
|
|
236
|
+
params: Partial<ProjectStorageQueryParams>;
|
|
237
|
+
}): Promise<PaginatedItems<ProjectStorage[]>>;
|
|
238
|
+
retryProjectStorage(id: number): Promise<{
|
|
239
|
+
message: string;
|
|
240
|
+
}>;
|
|
174
241
|
};
|
|
175
242
|
routers: {
|
|
176
243
|
getRouters(params: {
|
|
@@ -189,45 +256,25 @@ export declare const AdminApi: {
|
|
|
189
256
|
search: {
|
|
190
257
|
search(params: {
|
|
191
258
|
params: GlobalSearchQueryParams;
|
|
192
|
-
}): Promise<PaginatedItems<
|
|
259
|
+
}): Promise<PaginatedItems<AdminSearchItem>>;
|
|
193
260
|
};
|
|
194
261
|
hdds: {
|
|
195
262
|
getHdds(payload: {
|
|
196
263
|
projectId: string;
|
|
197
264
|
companyId: string;
|
|
198
|
-
}): Promise<
|
|
265
|
+
}): Promise<AdminHdd[]>;
|
|
199
266
|
getAllHdds(params: {
|
|
200
267
|
params: Partial<HDDsQueryParams>;
|
|
201
|
-
}): Promise<
|
|
202
|
-
deleteHdd(hddId: number): Promise<
|
|
203
|
-
saveHdd(params: HDDCreateUpdatePayload): Promise<
|
|
204
|
-
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<
|
|
205
|
-
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<
|
|
206
|
-
deleteFootage(hddId: number, footageId: number): Promise<
|
|
207
|
-
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<
|
|
208
|
-
};
|
|
209
|
-
shareRequests: {
|
|
210
|
-
getShareRequests(params: {
|
|
211
|
-
params: Partial<CameraShareRequestsQueryParams>;
|
|
212
|
-
}): Promise<PaginatedItems<CameraShareRequest[]>>;
|
|
213
|
-
deleteShareRequest(params: {
|
|
214
|
-
ids: number[];
|
|
215
|
-
}): Promise<{
|
|
216
|
-
success: boolean;
|
|
217
|
-
}>;
|
|
218
|
-
updateShareRequestStatus(params: {
|
|
219
|
-
ids: number[];
|
|
220
|
-
status: string;
|
|
221
|
-
}): Promise<{
|
|
222
|
-
success: boolean;
|
|
223
|
-
}>;
|
|
268
|
+
}): Promise<PaginatedItems<AdminHdd>>;
|
|
269
|
+
deleteHdd(hddId: number): Promise<void>;
|
|
270
|
+
saveHdd(params: HDDCreateUpdatePayload): Promise<void>;
|
|
271
|
+
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<void>;
|
|
272
|
+
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<void>;
|
|
273
|
+
deleteFootage(hddId: number, footageId: number): Promise<void>;
|
|
274
|
+
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<void>;
|
|
224
275
|
};
|
|
225
276
|
shares: {
|
|
226
|
-
|
|
227
|
-
getShares(params: {
|
|
228
|
-
params: Partial<ShareQueryParams>;
|
|
229
|
-
}): Promise<PaginatedItems<AdminShare[]>>;
|
|
230
|
-
deleteShares(ids: number[]): Promise<void>;
|
|
277
|
+
getInvites(params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminInvite>>;
|
|
231
278
|
};
|
|
232
279
|
sims: {
|
|
233
280
|
deleteSim(simId: number): Promise<{
|
|
@@ -236,18 +283,18 @@ export declare const AdminApi: {
|
|
|
236
283
|
createSim(params: Omit<SimCreateUpdatePayload, "cameraId">): Promise<{
|
|
237
284
|
success: boolean;
|
|
238
285
|
}>;
|
|
239
|
-
updateSim(simId: number, params:
|
|
286
|
+
updateSim(simId: number, params: SimCreateUpdatePayload): Promise<{
|
|
240
287
|
success: boolean;
|
|
241
288
|
}>;
|
|
242
289
|
getSims(params: {
|
|
243
290
|
params: Partial<SimsQueryParams>;
|
|
244
291
|
}): Promise<PaginatedItems<Sim[]>>;
|
|
245
|
-
getSimProviders(): Promise<
|
|
246
|
-
getBillPayers(): Promise<
|
|
292
|
+
getSimProviders(): Promise<string[]>;
|
|
293
|
+
getBillPayers(): Promise<string[]>;
|
|
247
294
|
};
|
|
248
295
|
sms: {
|
|
249
296
|
sendSms(number: string, params: SendSmsPayload): Promise<SendSmsResponse>;
|
|
250
|
-
getSimHistory(number: string): Promise<SmsHistoryResponse
|
|
297
|
+
getSimHistory(number: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<SmsHistoryResponse>>;
|
|
251
298
|
getSms(params: {
|
|
252
299
|
params: Partial<SmsQueryParams>;
|
|
253
300
|
}): Promise<PaginatedItems<Sms[]>>;
|
|
@@ -264,7 +311,7 @@ export declare const AdminApi: {
|
|
|
264
311
|
}): Promise<{
|
|
265
312
|
progressPhoto: string;
|
|
266
313
|
}>;
|
|
267
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
314
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
268
315
|
};
|
|
269
316
|
tags: {
|
|
270
317
|
index(): Promise<Tag[]>;
|
|
@@ -292,7 +339,7 @@ export declare const AdminApi: {
|
|
|
292
339
|
getUsers(params: {
|
|
293
340
|
params: Partial<AdminUserQueryParams>;
|
|
294
341
|
}): Promise<PaginatedItems<AdminUser>>;
|
|
295
|
-
show(id: number, params
|
|
342
|
+
show(id: number, params?: WithZohoParams): Promise<UserStatsResponse>;
|
|
296
343
|
getProjects(id: number): Promise<UserProjectResponse>;
|
|
297
344
|
getCameras(id: number): Promise<UserCameraResponse>;
|
|
298
345
|
getUserPasswordResetLink(email: string): Promise<{
|
|
@@ -302,12 +349,18 @@ export declare const AdminApi: {
|
|
|
302
349
|
widgets: {
|
|
303
350
|
index(params: {
|
|
304
351
|
params: Partial<WidgetsListRequestPayload>;
|
|
305
|
-
}): Promise<PaginatedItems<
|
|
306
|
-
show(id: number): Promise<
|
|
307
|
-
update(id: number, payload: WidgetPayload): Promise<
|
|
352
|
+
}): Promise<PaginatedItems<AdminWidget>>;
|
|
353
|
+
show(id: number): Promise<AdminWidgetFull>;
|
|
354
|
+
update(id: number, payload: WidgetPayload): Promise<AdminWidgetFull>;
|
|
308
355
|
delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
309
356
|
};
|
|
310
357
|
zohoDesk: {
|
|
311
|
-
searchTickets(params:
|
|
358
|
+
searchTickets(params: JsonObject): Promise<ZohoDeskTicketSearchResponse>;
|
|
359
|
+
};
|
|
360
|
+
comments: {
|
|
361
|
+
index(params: {
|
|
362
|
+
params: Partial<CommentsListRequestPayload>;
|
|
363
|
+
}): Promise<PaginatedItems<Comment>>;
|
|
312
364
|
};
|
|
313
365
|
};
|
|
366
|
+
export {};
|
package/dist/api/api/aiApi.d.ts
CHANGED
|
@@ -1,71 +1,39 @@
|
|
|
1
|
-
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters,
|
|
1
|
+
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, VerifiedDaysQueryParams, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, RoisQueryParams, GateReportRoiRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsCountsParams, DetectionsPresenceByLabel, SmartSearchBackendQueryPayload, SavedQuery, DateType, DetectionsRequestParams, DetectionsGroup, DetectionsCountsByPeriod, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchBackendQuery, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel, SmartSearchResponse, SmartSearchRequestPayload, LegacyAnprExportParams, AnprBulkUpdateRequestPayload, AnprUpdateRequestPayload, SmartSearchQueriesRequestPayload, _360FloorId, CreateCoolifyAppRequestPayload, RegisterCoolifyAppResponsePayload, SaveCoolifyAppRequestPayload } from "@evercam/api/types";
|
|
2
2
|
import type { AxiosPromise, AxiosRequestConfig } from "axios";
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
3
|
+
export declare const getAiApiUrl: () => string;
|
|
4
|
+
export declare const getAiApiUrlV2: () => string;
|
|
5
5
|
export declare const AiApi: {
|
|
6
|
-
analyticsParameters: {
|
|
7
|
-
getParameters(cameraId: CameraExid, params?: Record<string, unknown>): Promise<AnalyticsParameters>;
|
|
8
|
-
createParameters(params: Omit<AnalyticsParameters, "id">): Promise<AnalyticsParameters>;
|
|
9
|
-
updateParameters({ updatedBy, id, ...payload }: Partial<AnalyticsParameters> & {
|
|
10
|
-
updatedBy: string;
|
|
11
|
-
}): Promise<AnalyticsParameters>;
|
|
12
|
-
};
|
|
13
6
|
anpr: {
|
|
14
|
-
exportAnprLegacyEvents(projectExid: ProjectExid, params:
|
|
15
|
-
getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams): Promise<PaginatedItems<AnprEvent>>;
|
|
16
|
-
getAnprCounts(projectExid: ProjectExid, payload: AnprCountsQueryParams): Promise<AnprCount[]>;
|
|
17
|
-
updateAnprEvent(anprEventId: string,
|
|
18
|
-
bulkUpdateAnprRecords(
|
|
7
|
+
exportAnprLegacyEvents(projectExid: ProjectExid, params: LegacyAnprExportParams): AxiosPromise<any>;
|
|
8
|
+
getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<AnprEvent>>;
|
|
9
|
+
getAnprCounts(projectExid: ProjectExid, payload: AnprCountsQueryParams, extraParams?: AxiosRequestConfig): Promise<AnprCount[]>;
|
|
10
|
+
updateAnprEvent(anprEventId: string, payload: AnprUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
+
bulkUpdateAnprRecords(payload: AnprBulkUpdateRequestPayload): Promise<void>;
|
|
19
12
|
exportAnprEvents(projectExid: string, params: AnprBasedGateReportExportRequestParams): AxiosPromise<string>;
|
|
20
13
|
};
|
|
21
14
|
gateReport: {
|
|
22
|
-
getLastVerified(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
-
deleteEvent(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
|
-
dismissEvents(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
25
15
|
exportEvents(projectExid: string, params: EventsExportRequestParameters): AxiosPromise<any>;
|
|
26
16
|
exportEventsProgress(projectExid: string, params: {
|
|
27
17
|
exportDate: string;
|
|
28
18
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
-
generateAnprThumbnail(cameraExid: CameraExid, captureTime:
|
|
30
|
-
getAllEvents(projectExid: ProjectExid, params: EventsRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventsResponsePayload>;
|
|
31
|
-
getEventCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
19
|
+
generateAnprThumbnail(cameraExid: CameraExid, captureTime: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
32
20
|
getVerifiedDays(projectExid: ProjectExid, params: Partial<VerifiedDaysQueryParams>, extraParams?: {}): Promise<PaginatedItems<GateReportVerifiedDay>>;
|
|
33
|
-
updateEventById(eventId: number, { updatedBy, payload, }: {
|
|
34
|
-
updatedBy: string;
|
|
35
|
-
payload: Partial<EventUpdateRequestPayload>;
|
|
36
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
21
|
verifyDay(params: VerifyDayUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
|
-
|
|
39
|
-
cameraExid: string;
|
|
40
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
41
|
-
getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
42
|
-
getEventThumbnail({ cameraExid, eventType, eventTime, token, }: {
|
|
43
|
-
cameraExid: string;
|
|
44
|
-
eventType: GateReportEventType;
|
|
45
|
-
eventTime: DateTime;
|
|
46
|
-
token: string;
|
|
47
|
-
}): string;
|
|
48
|
-
getEventSnapshot({ cameraExid, eventType, eventTime, token, }: {
|
|
49
|
-
cameraExid: string;
|
|
50
|
-
eventType: GateReportEventType;
|
|
51
|
-
eventTime: DateTime;
|
|
52
|
-
token: string;
|
|
53
|
-
}): string;
|
|
22
|
+
getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<string[]>;
|
|
54
23
|
getEvents(projectExid: ProjectExid, params: GatReportRequestPayload, extraParams?: AxiosRequestConfig): Promise<GateReportResponsePayload>;
|
|
55
24
|
getCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
56
|
-
getGateReportApplications(projectExid: string, anprCameraExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
57
25
|
getGateReportProjectsInfos(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
58
26
|
};
|
|
59
27
|
brainTool: {
|
|
60
28
|
getObjectDetectionsResults(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
61
|
-
getSegments(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
29
|
};
|
|
63
30
|
roi: {
|
|
64
31
|
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
65
|
-
createROI(params:
|
|
66
|
-
|
|
32
|
+
createROI(params: Omit<GateReportRoiRequestPayload, "id"> & {
|
|
33
|
+
createdBy: string;
|
|
34
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
|
+
updateROI({ updatedBy, id, ...params }: Partial<GateReportRoiRequestPayload> & {
|
|
67
36
|
updatedBy: string;
|
|
68
|
-
roi: GateReportROICreateRequestPayload;
|
|
69
37
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
70
38
|
deleteROI({ id, updatedBy }: {
|
|
71
39
|
id: number;
|
|
@@ -73,56 +41,69 @@ export declare const AiApi: {
|
|
|
73
41
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
74
42
|
};
|
|
75
43
|
detections: {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
getDetectionsByTimestamp({ projectExid, ...params }: DetectionsRequestParams): Promise<PaginatedItems<DetectionsGroup>>;
|
|
44
|
+
getDetectionsCounts({ projectExid, ...params }: Partial<DetectionsRequestParams>, extraParams?: AxiosRequestConfig): Promise<DetectionsCountsByPeriod>;
|
|
45
|
+
getDetectionsByTimestamp({ projectExid, ...params }: DetectionsRequestParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<DetectionsGroup>>;
|
|
79
46
|
getSimilarSegmentsInTimeIntervals({ cameraExid, iouThreshold, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
80
|
-
|
|
81
|
-
getSegmentsMasks(cameraExid: CameraExid, params: SegmentsFilters): Promise<
|
|
47
|
+
getGroupedTrackings(projectExid: ProjectExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
|
|
48
|
+
getSegmentsMasks(cameraExid: CameraExid, params: SegmentsFilters): Promise<{
|
|
49
|
+
segments: SegmentsByLabel;
|
|
50
|
+
}>;
|
|
82
51
|
getDetectionsPresenceDateIntervals({ projectExid, ...params }: DetectionsCountsParams): Promise<DetectionsPresenceByLabel>;
|
|
83
52
|
requestExport({ projectExid, ...params }: DetectionsExportRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
84
53
|
};
|
|
85
54
|
siteAnalytics: {
|
|
86
|
-
|
|
55
|
+
smartSearchAll(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
56
|
+
smartSearchFirstLastSeen(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
57
|
+
saveQuery({ projectExid, cameraExid, payload, }: {
|
|
58
|
+
projectExid: ProjectExid;
|
|
59
|
+
cameraExid: CameraExid | _360FloorId;
|
|
60
|
+
payload: SmartSearchBackendQueryPayload;
|
|
61
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
|
+
getQueries(projectExid: ProjectExid, params: SmartSearchQueriesRequestPayload): Promise<SavedQuery[]>;
|
|
63
|
+
getQueryById(projectExid: ProjectExid, cameraExid: CameraExid, queryId: number): Promise<SmartSearchBackendQueryPayload>;
|
|
64
|
+
updateQuery({ projectExid, cameraExid, queryId, payload, }: {
|
|
65
|
+
projectExid: ProjectExid;
|
|
87
66
|
cameraExid: CameraExid;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
toDate?: string;
|
|
91
|
-
page?: number;
|
|
92
|
-
pageSize?: number;
|
|
67
|
+
queryId: number;
|
|
68
|
+
payload: Partial<SavedQuery>;
|
|
93
69
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
name?: string;
|
|
97
|
-
}): Promise<SavedQuery[]>;
|
|
98
|
-
getQueryById(cameraExid: CameraExid, queryId: number): Promise<SmartSearchQueryParams>;
|
|
99
|
-
updateQuery(cameraExid: CameraExid, queryId: number, payload: Partial<SavedQuery>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
100
|
-
deleteQuery(cameraExid: CameraExid, queryId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
101
|
-
getProcessedTimes({ projectExid, cameraExids, granularity, endDate, startDate, }: {
|
|
102
|
-
projectExid: string;
|
|
103
|
-
cameraExids: string[];
|
|
104
|
-
granularity?: "day" | "hour";
|
|
105
|
-
startDate?: DateType;
|
|
106
|
-
endDate?: DateType;
|
|
107
|
-
}): Promise<Record<string, string[]>>;
|
|
108
|
-
exportResultsData({ cameraExid, fromDate, toDate, query, fileType, directDownload, payload, }: {
|
|
70
|
+
deleteQuery({ projectExid, cameraExid, queryId, }: {
|
|
71
|
+
projectExid: ProjectExid;
|
|
109
72
|
cameraExid: CameraExid;
|
|
73
|
+
queryId: number;
|
|
74
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
75
|
+
exportResultsData({ projectExid, cameraExids, fromDate, toDate, query, fileType, directDownload, payload, limit, page, }: {
|
|
76
|
+
projectExid: ProjectExid;
|
|
77
|
+
cameraExids: CameraExid[];
|
|
110
78
|
fromDate?: DateType;
|
|
111
79
|
toDate?: DateType;
|
|
112
80
|
query: string;
|
|
113
|
-
fileType:
|
|
81
|
+
fileType: DownloadFileType;
|
|
114
82
|
directDownload?: boolean;
|
|
115
|
-
payload:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
83
|
+
payload: SmartSearchBackendQuery;
|
|
84
|
+
limit: number;
|
|
85
|
+
page: number;
|
|
86
|
+
}): Promise<any>;
|
|
87
|
+
getDetectionsHeatmapData(projectExid: ProjectExid, params: {
|
|
88
|
+
cameraExid: CameraExid;
|
|
89
|
+
fromDate: DateType | string | null;
|
|
90
|
+
toDate: DateType | string | null;
|
|
91
|
+
labels: DetectionLabel[];
|
|
92
|
+
operator?: SmartSearchOperatorType;
|
|
93
|
+
}): Promise<SmartSearchHeatmapData[]>;
|
|
121
94
|
};
|
|
122
95
|
coolify: {
|
|
123
96
|
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
124
|
-
createAppOnCoolify(payload
|
|
125
|
-
|
|
97
|
+
createAppOnCoolify({ projectExid, cameraExid, payload, }: {
|
|
98
|
+
projectExid: ProjectExid;
|
|
99
|
+
cameraExid: CameraExid;
|
|
100
|
+
payload: CreateCoolifyAppRequestPayload;
|
|
101
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
102
|
+
registerCoolifyApp({ projectExid, cameraExid, payload, }: {
|
|
103
|
+
projectExid: ProjectExid;
|
|
104
|
+
cameraExid: CameraExid;
|
|
105
|
+
payload: SaveCoolifyAppRequestPayload;
|
|
106
|
+
}): Promise<RegisterCoolifyAppResponsePayload>;
|
|
126
107
|
updateApp({ appUuid, appId, payload, cameraExid, projectExid, }: {
|
|
127
108
|
projectExid: string;
|
|
128
109
|
cameraExid: string;
|
|
@@ -140,4 +121,7 @@ export declare const AiApi: {
|
|
|
140
121
|
pauseService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
141
122
|
restartService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
142
123
|
};
|
|
124
|
+
fovChanges: {
|
|
125
|
+
getCameraFovChanges(cameraExid: string, extraConfig?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
126
|
+
};
|
|
143
127
|
};
|
|
@@ -1,21 +1,38 @@
|
|
|
1
|
+
import { AuthzRoleUser, AuthzScope, AuthzScopeCreatePayload, AuthzScopeUpdatePayload, AuthzUserRolesResponse, ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload, Role, RoleResourceType } from "@evercam/api/types";
|
|
2
|
+
import type { AxiosRequestConfig } from "axios";
|
|
1
3
|
export declare const AuthzApi: {
|
|
2
4
|
roles: {
|
|
3
|
-
get(params
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
get(params?: AxiosRequestConfig & {
|
|
6
|
+
params?: {
|
|
7
|
+
scope?: string;
|
|
8
|
+
};
|
|
9
|
+
}): Promise<{
|
|
10
|
+
total: number;
|
|
11
|
+
items: Role[];
|
|
12
|
+
}>;
|
|
13
|
+
getRoleDetails(id: number): Promise<Role>;
|
|
14
|
+
createRole(params: Partial<Role> & Pick<Role, "name">): Promise<Role>;
|
|
15
|
+
updateRole(id: number, params: Partial<Role>): Promise<Role>;
|
|
16
|
+
deleteRole(id: number): Promise<void>;
|
|
17
|
+
addPermission(id: number, action: string): Promise<void>;
|
|
18
|
+
deletePermission(id: number, action: string): Promise<void>;
|
|
19
|
+
getRoleUsers(id: number): Promise<AuthzRoleUser[]>;
|
|
20
|
+
assignUsers(id: number, emails: Array<string>, resourceId: string): Promise<void>;
|
|
21
|
+
unassignUsers(id: number, emails: Array<string>, resourceId: string): Promise<void>;
|
|
22
|
+
getUserRoles(projectExid?: ProjectExid, resourceType?: RoleResourceType): Promise<AuthzUserRolesResponse>;
|
|
23
|
+
};
|
|
24
|
+
projectRoles: {
|
|
25
|
+
get(projectExid: ProjectExid): Promise<{
|
|
26
|
+
roles: Role[];
|
|
27
|
+
}>;
|
|
28
|
+
create(projectExid: ProjectExid, params: ProjectRoleRequestPayload): Promise<ProjectResourceRole>;
|
|
29
|
+
update(projectExid: ProjectExid, roleId: number, params: ProjectRoleRequestPayload): Promise<ProjectResourceRole>;
|
|
30
|
+
delete(projectExid: ProjectExid, roleId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
31
|
};
|
|
15
32
|
scopes: {
|
|
16
|
-
get(): Promise<
|
|
17
|
-
create(params:
|
|
18
|
-
delete(id: number): Promise<
|
|
19
|
-
update(id: number, params:
|
|
33
|
+
get(): Promise<AuthzScope[]>;
|
|
34
|
+
create(params: AuthzScopeCreatePayload): Promise<AuthzScope>;
|
|
35
|
+
delete(id: number): Promise<void>;
|
|
36
|
+
update(id: number, params: AuthzScopeUpdatePayload): Promise<AuthzScope>;
|
|
20
37
|
};
|
|
21
38
|
};
|