@evercam/api 1.0.0-d7a4e6c9d → 1.0.0-db0fc93a0
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 +7 -1
- package/dist/api/api/adminApi.d.ts +80 -83
- package/dist/api/api/aiApi.d.ts +57 -84
- 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 +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 +140 -5
- 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 +113 -48
- 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 +10 -5
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +94 -79
- package/dist/api/types/comments.d.ts +4 -8
- 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 +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 +7 -1
- package/dist/api/types/ingest.d.ts +90 -2
- package/dist/api/types/kit.d.ts +31 -5
- 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 +48 -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 +133 -20
- package/dist/api/types/recording.d.ts +3 -3
- package/dist/api/types/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/router.d.ts +20 -1
- package/dist/api/types/shared.d.ts +11 -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/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +1 -1
- 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 +3 -4
- 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 +1010 -867
- 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 +112 -9
- package/dist/shared/types/imagePlayer.d.ts +2 -2
- 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,4 +1,5 @@
|
|
|
1
1
|
import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
3
|
export declare const getFirebaseDbApi: () => string | null | undefined;
|
|
3
4
|
export declare const getFirebaseStorageUrl: () => string | null | undefined;
|
|
4
5
|
export declare const getFirebaseStorageToken: () => string | null | undefined;
|
|
@@ -8,8 +9,13 @@ export declare const _3dFirebaseApi: {
|
|
|
8
9
|
getProjectTags(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
9
10
|
};
|
|
10
11
|
_360: {
|
|
11
|
-
getProjectInfo(projectExid: ProjectExid
|
|
12
|
+
getProjectInfo(projectExid: ProjectExid, params?: {
|
|
13
|
+
config?: AxiosRequestConfig;
|
|
14
|
+
}): Promise<_360ProjectJsonResponse>;
|
|
15
|
+
getDateWalks(projectExid: ProjectExid, dateId: string): Promise<any>;
|
|
12
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>;
|
|
13
19
|
updateRoute(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<any>;
|
|
14
20
|
updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<any>;
|
|
15
21
|
saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<any>;
|
|
@@ -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, 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,10 @@ 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>;
|
|
164
178
|
};
|
|
165
179
|
logs: {
|
|
166
180
|
getAllCamerasStatusLogs(params: {
|
|
@@ -168,17 +182,15 @@ export declare const AdminApi: {
|
|
|
168
182
|
}): Promise<{
|
|
169
183
|
data: CameraLog[];
|
|
170
184
|
}>;
|
|
171
|
-
getCameraLogs(cameraId: string,
|
|
172
|
-
params: CameraAuditLogsQueryParams;
|
|
173
|
-
}): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
185
|
+
getCameraLogs(cameraId: string, params: CameraAuditLogsQueryParams): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
174
186
|
togglePinNote(id: string): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
175
187
|
};
|
|
176
188
|
nvrs: {
|
|
177
189
|
getNvrs(params: {
|
|
178
190
|
params: NvrQueryParams;
|
|
179
191
|
}): Promise<PaginatedItems<Nvr[]>>;
|
|
180
|
-
createNvr(params: NvrCreatePayload): Promise<
|
|
181
|
-
updateNvr(id: string, params: PatchPayload<Nvr>): Promise<
|
|
192
|
+
createNvr(params: NvrCreatePayload): Promise<Nvr>;
|
|
193
|
+
updateNvr(id: string, params: PatchPayload<Nvr>): Promise<Nvr>;
|
|
182
194
|
rebootNVR(cameraId: string): Promise<{
|
|
183
195
|
message: string;
|
|
184
196
|
}>;
|
|
@@ -207,9 +219,9 @@ export declare const AdminApi: {
|
|
|
207
219
|
projects: {
|
|
208
220
|
index(params: {
|
|
209
221
|
params: Partial<ProjectsQueryParams>;
|
|
210
|
-
}): Promise<PaginatedItems<
|
|
211
|
-
show(exid: string, params?:
|
|
212
|
-
data:
|
|
222
|
+
}): Promise<PaginatedItems<AdminProjectListItem>>;
|
|
223
|
+
show(exid: string, params?: WithZohoParams): Promise<{
|
|
224
|
+
data: AdminProjectDetail;
|
|
213
225
|
}>;
|
|
214
226
|
getUsers(id: string): Promise<ProjectUsers>;
|
|
215
227
|
getCameras(id: string): Promise<{
|
|
@@ -224,6 +236,12 @@ export declare const AdminApi: {
|
|
|
224
236
|
addToProject(projectExid: string, params: {
|
|
225
237
|
cameraExids: string[];
|
|
226
238
|
}): Promise<void>;
|
|
239
|
+
getProjectStorages(params: {
|
|
240
|
+
params: Partial<ProjectStorageQueryParams>;
|
|
241
|
+
}): Promise<PaginatedItems<ProjectStorage[]>>;
|
|
242
|
+
retryProjectStorage(id: number): Promise<{
|
|
243
|
+
message: string;
|
|
244
|
+
}>;
|
|
227
245
|
};
|
|
228
246
|
routers: {
|
|
229
247
|
getRouters(params: {
|
|
@@ -242,45 +260,25 @@ export declare const AdminApi: {
|
|
|
242
260
|
search: {
|
|
243
261
|
search(params: {
|
|
244
262
|
params: GlobalSearchQueryParams;
|
|
245
|
-
}): Promise<PaginatedItems<
|
|
263
|
+
}): Promise<PaginatedItems<AdminSearchItem>>;
|
|
246
264
|
};
|
|
247
265
|
hdds: {
|
|
248
266
|
getHdds(payload: {
|
|
249
267
|
projectId: string;
|
|
250
268
|
companyId: string;
|
|
251
|
-
}): Promise<
|
|
269
|
+
}): Promise<AdminHdd[]>;
|
|
252
270
|
getAllHdds(params: {
|
|
253
271
|
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
|
-
}>;
|
|
272
|
+
}): Promise<PaginatedItems<AdminHdd>>;
|
|
273
|
+
deleteHdd(hddId: number): Promise<void>;
|
|
274
|
+
saveHdd(params: HDDCreateUpdatePayload): Promise<void>;
|
|
275
|
+
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<void>;
|
|
276
|
+
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<void>;
|
|
277
|
+
deleteFootage(hddId: number, footageId: number): Promise<void>;
|
|
278
|
+
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<void>;
|
|
277
279
|
};
|
|
278
280
|
shares: {
|
|
279
|
-
|
|
280
|
-
getShares(params: {
|
|
281
|
-
params: Partial<ShareQueryParams>;
|
|
282
|
-
}): Promise<PaginatedItems<AdminShare[]>>;
|
|
283
|
-
deleteShares(ids: number[]): Promise<void>;
|
|
281
|
+
getInvites(params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminInvite>>;
|
|
284
282
|
};
|
|
285
283
|
sims: {
|
|
286
284
|
deleteSim(simId: number): Promise<{
|
|
@@ -289,20 +287,18 @@ export declare const AdminApi: {
|
|
|
289
287
|
createSim(params: Omit<SimCreateUpdatePayload, "cameraId">): Promise<{
|
|
290
288
|
success: boolean;
|
|
291
289
|
}>;
|
|
292
|
-
updateSim(simId: number, params:
|
|
290
|
+
updateSim(simId: number, params: SimCreateUpdatePayload): Promise<{
|
|
293
291
|
success: boolean;
|
|
294
292
|
}>;
|
|
295
293
|
getSims(params: {
|
|
296
294
|
params: Partial<SimsQueryParams>;
|
|
297
295
|
}): Promise<PaginatedItems<Sim[]>>;
|
|
298
|
-
getSimProviders(): Promise<
|
|
299
|
-
getBillPayers(): Promise<
|
|
296
|
+
getSimProviders(): Promise<string[]>;
|
|
297
|
+
getBillPayers(): Promise<string[]>;
|
|
300
298
|
};
|
|
301
299
|
sms: {
|
|
302
300
|
sendSms(number: string, params: SendSmsPayload): Promise<SendSmsResponse>;
|
|
303
|
-
getSimHistory(number: string, params:
|
|
304
|
-
params: PaginationParams;
|
|
305
|
-
}): Promise<PaginatedItems<SmsHistoryResponse>>;
|
|
301
|
+
getSimHistory(number: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<SmsHistoryResponse>>;
|
|
306
302
|
getSms(params: {
|
|
307
303
|
params: Partial<SmsQueryParams>;
|
|
308
304
|
}): Promise<PaginatedItems<Sms[]>>;
|
|
@@ -347,7 +343,7 @@ export declare const AdminApi: {
|
|
|
347
343
|
getUsers(params: {
|
|
348
344
|
params: Partial<AdminUserQueryParams>;
|
|
349
345
|
}): Promise<PaginatedItems<AdminUser>>;
|
|
350
|
-
show(id: number, params
|
|
346
|
+
show(id: number, params?: WithZohoParams): Promise<UserStatsResponse>;
|
|
351
347
|
getProjects(id: number): Promise<UserProjectResponse>;
|
|
352
348
|
getCameras(id: number): Promise<UserCameraResponse>;
|
|
353
349
|
getUserPasswordResetLink(email: string): Promise<{
|
|
@@ -357,13 +353,13 @@ export declare const AdminApi: {
|
|
|
357
353
|
widgets: {
|
|
358
354
|
index(params: {
|
|
359
355
|
params: Partial<WidgetsListRequestPayload>;
|
|
360
|
-
}): Promise<PaginatedItems<
|
|
361
|
-
show(id: number): Promise<
|
|
362
|
-
update(id: number, payload: WidgetPayload): Promise<
|
|
356
|
+
}): Promise<PaginatedItems<AdminWidget>>;
|
|
357
|
+
show(id: number): Promise<AdminWidgetFull>;
|
|
358
|
+
update(id: number, payload: WidgetPayload): Promise<AdminWidgetFull>;
|
|
363
359
|
delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
364
360
|
};
|
|
365
361
|
zohoDesk: {
|
|
366
|
-
searchTickets(params:
|
|
362
|
+
searchTickets(params: JsonObject): Promise<ZohoDeskTicketSearchResponse>;
|
|
367
363
|
};
|
|
368
364
|
comments: {
|
|
369
365
|
index(params: {
|
|
@@ -371,3 +367,4 @@ export declare const AdminApi: {
|
|
|
371
367
|
}): Promise<PaginatedItems<Comment>>;
|
|
372
368
|
};
|
|
373
369
|
};
|
|
370
|
+
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, SegmentsCountsParams, SegmentsPresenceResponse } 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:
|
|
7
|
+
exportAnprLegacyEvents(projectExid: ProjectExid, params: LegacyAnprExportParams): AxiosPromise<any>;
|
|
15
8
|
getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<AnprEvent>>;
|
|
16
9
|
getAnprCounts(projectExid: ProjectExid, payload: AnprCountsQueryParams, extraParams?: AxiosRequestConfig): Promise<AnprCount[]>;
|
|
17
|
-
updateAnprEvent(anprEventId: string,
|
|
18
|
-
bulkUpdateAnprRecords(
|
|
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,65 +41,70 @@ export declare const AiApi: {
|
|
|
73
41
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
74
42
|
};
|
|
75
43
|
detections: {
|
|
76
|
-
|
|
77
|
-
getDetectionsCounts({ projectExid, ...params }: DetectionsRequestParams, extraParams?: AxiosRequestConfig): Promise<DetectionsCountsByPeriod>;
|
|
44
|
+
getDetectionsCounts({ projectExid, ...params }: Partial<DetectionsRequestParams>, extraParams?: AxiosRequestConfig): Promise<DetectionsCountsByPeriod>;
|
|
78
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
|
+
}>;
|
|
51
|
+
getSegmentsPresenceDateIntervals({ cameraExid, ...params }: SegmentsCountsParams): Promise<SegmentsPresenceResponse>;
|
|
82
52
|
getDetectionsPresenceDateIntervals({ projectExid, ...params }: DetectionsCountsParams): Promise<DetectionsPresenceByLabel>;
|
|
83
53
|
requestExport({ projectExid, ...params }: DetectionsExportRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
84
54
|
};
|
|
85
55
|
siteAnalytics: {
|
|
86
|
-
|
|
56
|
+
smartSearchAll(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
57
|
+
smartSearchFirstLastSeen(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
58
|
+
saveQuery({ projectExid, cameraExid, payload, }: {
|
|
59
|
+
projectExid: ProjectExid;
|
|
60
|
+
cameraExid: CameraExid | _360FloorId;
|
|
61
|
+
payload: SmartSearchBackendQueryPayload;
|
|
62
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
63
|
+
getQueries(projectExid: ProjectExid, params: SmartSearchQueriesRequestPayload): Promise<SavedQuery[]>;
|
|
64
|
+
getQueryById(projectExid: ProjectExid, cameraExid: CameraExid, queryId: number): Promise<SmartSearchBackendQueryPayload>;
|
|
65
|
+
updateQuery({ projectExid, cameraExid, queryId, payload, }: {
|
|
66
|
+
projectExid: ProjectExid;
|
|
87
67
|
cameraExid: CameraExid;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
toDate?: string;
|
|
91
|
-
page?: number;
|
|
92
|
-
pageSize?: number;
|
|
68
|
+
queryId: number;
|
|
69
|
+
payload: Partial<SavedQuery>;
|
|
93
70
|
}): 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, }: {
|
|
71
|
+
deleteQuery({ projectExid, cameraExid, queryId, }: {
|
|
72
|
+
projectExid: ProjectExid;
|
|
109
73
|
cameraExid: CameraExid;
|
|
74
|
+
queryId: number;
|
|
75
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
76
|
+
exportResultsData({ projectExid, cameraExids, fromDate, toDate, query, fileType, directDownload, payload, limit, page, }: {
|
|
77
|
+
projectExid: ProjectExid;
|
|
78
|
+
cameraExids: CameraExid[];
|
|
110
79
|
fromDate?: DateType;
|
|
111
80
|
toDate?: DateType;
|
|
112
81
|
query: string;
|
|
113
82
|
fileType: DownloadFileType;
|
|
114
83
|
directDownload?: boolean;
|
|
115
|
-
payload:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
toDate: DateType | string;
|
|
84
|
+
payload: SmartSearchBackendQuery;
|
|
85
|
+
limit: number;
|
|
86
|
+
page: number;
|
|
87
|
+
}): Promise<any>;
|
|
88
|
+
getDetectionsHeatmapData(projectExid: ProjectExid, params: {
|
|
89
|
+
cameraExid: CameraExid;
|
|
90
|
+
fromDate: DateType | string | null;
|
|
91
|
+
toDate: DateType | string | null;
|
|
124
92
|
labels: DetectionLabel[];
|
|
125
93
|
operator?: SmartSearchOperatorType;
|
|
126
|
-
}): Promise<
|
|
127
|
-
results: SmartSearchHeatmapData[];
|
|
128
|
-
sqlQuery: string;
|
|
129
|
-
}>;
|
|
94
|
+
}): Promise<SmartSearchHeatmapData[]>;
|
|
130
95
|
};
|
|
131
96
|
coolify: {
|
|
132
97
|
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
133
|
-
createAppOnCoolify(payload
|
|
134
|
-
|
|
98
|
+
createAppOnCoolify({ projectExid, cameraExid, payload, }: {
|
|
99
|
+
projectExid: ProjectExid;
|
|
100
|
+
cameraExid: CameraExid;
|
|
101
|
+
payload: CreateCoolifyAppRequestPayload;
|
|
102
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
103
|
+
registerCoolifyApp({ projectExid, cameraExid, payload, }: {
|
|
104
|
+
projectExid: ProjectExid;
|
|
105
|
+
cameraExid: CameraExid;
|
|
106
|
+
payload: SaveCoolifyAppRequestPayload;
|
|
107
|
+
}): Promise<RegisterCoolifyAppResponsePayload>;
|
|
135
108
|
updateApp({ appUuid, appId, payload, cameraExid, projectExid, }: {
|
|
136
109
|
projectExid: string;
|
|
137
110
|
cameraExid: string;
|
|
@@ -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
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { ExtendedAxiosInstance } from "
|
|
1
|
+
import type { ExtendedAxiosInstance } from "@evercam/api/types";
|
|
2
2
|
declare module "axios" {
|
|
3
3
|
interface AxiosRequestConfig {
|
|
4
4
|
raw?: boolean;
|
|
5
5
|
preserveCasing?: boolean;
|
|
6
6
|
timing?: boolean;
|
|
7
|
+
skipAuth?: boolean;
|
|
7
8
|
_metadata?: {
|
|
8
9
|
startTime: number;
|
|
9
10
|
};
|