@evercam/api 1.0.0-a5bda6817 → 1.0.0-a5ed7fc12
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 +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +73 -30
- package/dist/api/api/adminApi.d.ts +39 -22
- package/dist/api/api/aiApi.d.ts +125 -2
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +45 -25
- package/dist/api/api/evercamLabsApi.d.ts +5 -16
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +51 -33
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +127 -43
- package/dist/api/types/admin.d.ts +1 -1
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +36 -24
- package/dist/api/types/anpr.d.ts +31 -0
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +145 -20
- package/dist/api/types/authz.d.ts +71 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +9 -9
- package/dist/api/types/bim.d.ts +12 -6
- package/dist/api/types/camera.d.ts +37 -28
- package/dist/api/types/comments.d.ts +9 -2
- package/dist/api/types/company.d.ts +1 -2
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/detections.d.ts +3 -1
- package/dist/api/types/drone.d.ts +7 -7
- package/dist/api/types/errors.d.ts +18 -2
- package/dist/api/types/gateReport.d.ts +1 -11
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +9 -2
- package/dist/api/types/ingest.d.ts +179 -25
- package/dist/api/types/kit.d.ts +44 -101
- package/dist/api/types/media.d.ts +7 -2
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/nvr.d.ts +8 -8
- package/dist/api/types/observationEvents.d.ts +141 -0
- package/dist/api/types/observations.d.ts +80 -0
- package/dist/api/types/planner.d.ts +1 -8
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +15 -3
- package/dist/api/types/recording.d.ts +5 -12
- package/dist/api/types/reports.d.ts +108 -0
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +2 -10
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/shared.d.ts +14 -23
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/siteAnalytics.d.ts +1 -3
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +12 -8
- package/dist/api/types/snapshots.d.ts +5 -0
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +1 -8
- package/dist/api/types/user.d.ts +16 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +1853 -1010
- 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 +262 -44
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/report.d.ts +107 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +4 -2
- package/dist/api/types/copilot.d.ts +0 -162
- package/dist/api/types/vendorModel.d.ts +0 -15
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _360Floor, _360FloorId, _360Marker3D, _360Pin, _360ProjectJsonResponse, _360ProjectListItem, _360Scene, _360SceneRoute, _360Walk, Point3D, DroneBimData, DroneImageryPlan, DroneMarker, DroneModel, DroneProjectData, DroneProjectDataPatch,
|
|
1
|
+
import { _360Floor, _360FloorId, _360Marker3D, _360Pin, _360ProjectJsonResponse, _360ProjectListItem, _360Scene, _360SceneRoute, _360CalibrationDetails, _360FloorData, _360FloorRef, _360PinData, _360Route, _360Walk, Point3D, DroneBimData, DroneImageryPlan, DroneMarker, DroneModel, DroneProjectData, DroneProjectDataPatch, DroneTag, DroneTransformPatch, ForgeMarker, ForgeProjectData, ForgeUrn, ForgeView, ItwinProjectData, MapView, PlannerListItem, SitePlan, ProjectExid, SiteViewCameraListItem, SiteViewerType, DroneCameraTransform } from "@evercam/api/types";
|
|
2
2
|
import { AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare const getFirebaseDbApi: () => string;
|
|
4
4
|
export declare const getFirebaseStorageUrl: () => string;
|
|
@@ -7,7 +7,6 @@ export declare const getForgeTokenServerUrl: () => string;
|
|
|
7
7
|
export declare const _3dFirebaseApi: {
|
|
8
8
|
drone: {
|
|
9
9
|
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectData>;
|
|
10
|
-
getTransformInfo(projectExid: ProjectExid): Promise<DroneProjectTransform>;
|
|
11
10
|
getProjectTags(projectExid: ProjectExid): Promise<Record<string, DroneTag>>;
|
|
12
11
|
patchTags({ projectId, tags, }: {
|
|
13
12
|
projectId: ProjectExid;
|
|
@@ -38,11 +37,6 @@ export declare const _3dFirebaseApi: {
|
|
|
38
37
|
projectId: ProjectExid;
|
|
39
38
|
plans: Record<string, DroneImageryPlan>;
|
|
40
39
|
}): Promise<void>;
|
|
41
|
-
getBlackListIds(projectId: ProjectExid): Promise<string | null>;
|
|
42
|
-
saveBlackListIds({ projectId, ids, }: {
|
|
43
|
-
projectId: ProjectExid;
|
|
44
|
-
ids: string;
|
|
45
|
-
}): Promise<void>;
|
|
46
40
|
saveModel({ projectId, model, }: {
|
|
47
41
|
projectId: ProjectExid;
|
|
48
42
|
model: DroneModel;
|
|
@@ -71,9 +65,7 @@ export declare const _3dFirebaseApi: {
|
|
|
71
65
|
updateProjectsListItem(index: number, data: _360ProjectListItem): Promise<void>;
|
|
72
66
|
deleteProject(projectId: string): Promise<void>;
|
|
73
67
|
updateProjectInfo(projectId: string, data: Partial<_360ProjectJsonResponse>): Promise<void>;
|
|
74
|
-
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: Partial<
|
|
75
|
-
getRoute(projectExid: ProjectExid, dateId: string, floorIndex: string): Promise<_360SceneRoute | null>;
|
|
76
|
-
getAerialShotDate(projectId: ProjectExid, dateId: number): Promise<string | null>;
|
|
68
|
+
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: Partial<_360Scene["floors"][number]>): Promise<_360ProjectJsonResponse>;
|
|
77
69
|
getFloor({ projectId, dateId, floorId, }: {
|
|
78
70
|
projectId: ProjectExid;
|
|
79
71
|
dateId: number;
|
|
@@ -90,12 +82,6 @@ export declare const _3dFirebaseApi: {
|
|
|
90
82
|
floorId: _360FloorId;
|
|
91
83
|
markers: Record<string, _360Marker3D>;
|
|
92
84
|
}): Promise<void>;
|
|
93
|
-
patchFloor({ projectId, dateId, floorId, data, }: {
|
|
94
|
-
projectId: ProjectExid;
|
|
95
|
-
dateId: number;
|
|
96
|
-
floorId: _360FloorId;
|
|
97
|
-
data: Partial<_360Floor>;
|
|
98
|
-
}): Promise<void>;
|
|
99
85
|
updateFloors({ projectId, dateId, floors, }: {
|
|
100
86
|
projectId: ProjectExid;
|
|
101
87
|
dateId: number;
|
|
@@ -107,12 +93,6 @@ export declare const _3dFirebaseApi: {
|
|
|
107
93
|
floorId: _360FloorId;
|
|
108
94
|
}): Promise<void>;
|
|
109
95
|
updateDates(projectId: ProjectExid, dates: _360Scene[]): Promise<void>;
|
|
110
|
-
deleteDate(projectId: ProjectExid, dateId: number): Promise<void>;
|
|
111
|
-
getPins({ projectId, dateId, floorId, }: {
|
|
112
|
-
projectId: ProjectExid;
|
|
113
|
-
dateId: number;
|
|
114
|
-
floorId: _360FloorId;
|
|
115
|
-
}): Promise<Record<string, _360Pin>>;
|
|
116
96
|
updatePins({ projectId, dateId, floorId, pins, }: {
|
|
117
97
|
projectId: ProjectExid;
|
|
118
98
|
dateId: number;
|
|
@@ -120,24 +100,88 @@ export declare const _3dFirebaseApi: {
|
|
|
120
100
|
pins: Record<string, _360Pin>;
|
|
121
101
|
}): Promise<void>;
|
|
122
102
|
getGPXText(url: string): Promise<string>;
|
|
123
|
-
updateRoute(projectExid: ProjectExid, dateId: string, floorIndex: string, body: Partial<_360SceneRoute>): Promise<
|
|
124
|
-
updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<void>;
|
|
103
|
+
updateRoute(projectExid: ProjectExid, dateId: string | number, floorIndex: string, body: Partial<_360SceneRoute>): Promise<Partial<_360SceneRoute>>;
|
|
104
|
+
updateFeatureFlag(projectID: string, dateID: string | number, floorID: string, featureFlagName: string, value: boolean): Promise<void>;
|
|
125
105
|
saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<void>;
|
|
106
|
+
getDates({ projectID, prefix, }: {
|
|
107
|
+
projectID: string;
|
|
108
|
+
prefix?: string;
|
|
109
|
+
}): Promise<_360Scene[] | null>;
|
|
110
|
+
getFloorData({ projectID, dateID, floorID, prefix, }: _360FloorRef & {
|
|
111
|
+
prefix?: string;
|
|
112
|
+
}): Promise<_360FloorData>;
|
|
113
|
+
patchFloor({ projectID, dateID, floorID, body, }: _360FloorRef & {
|
|
114
|
+
body: Record<string, unknown>;
|
|
115
|
+
}): Promise<Record<string, unknown>>;
|
|
116
|
+
deleteMarkers({ projectID, dateID, floorID }: _360FloorRef): Promise<void>;
|
|
117
|
+
patchMarkers({ projectID, dateID, floorID, markers, }: _360FloorRef & {
|
|
118
|
+
markers: Record<string, unknown>;
|
|
119
|
+
}): Promise<Record<string, unknown>>;
|
|
120
|
+
putMarkers({ projectID, dateID, floorID, markers, }: _360FloorRef & {
|
|
121
|
+
markers: Record<string, unknown>;
|
|
122
|
+
}): Promise<any>;
|
|
123
|
+
putFloors({ projectID, dateID, floors, }: {
|
|
124
|
+
projectID: string;
|
|
125
|
+
dateID: string | number;
|
|
126
|
+
floors: unknown[];
|
|
127
|
+
}): Promise<unknown[]>;
|
|
128
|
+
deleteFloorData({ projectID, dateID, floorID, }: _360FloorRef): Promise<void>;
|
|
129
|
+
putDates({ projectID, dates, }: {
|
|
130
|
+
projectID: string;
|
|
131
|
+
dates: _360Scene[];
|
|
132
|
+
}): Promise<_360Scene[]>;
|
|
133
|
+
deleteDate({ projectID, dateID, }: {
|
|
134
|
+
projectID: string;
|
|
135
|
+
dateID: string | number;
|
|
136
|
+
}): Promise<void>;
|
|
137
|
+
getPins({ projectID, dateID, floorID, }: _360FloorRef): Promise<Record<string, _360PinData> | null>;
|
|
138
|
+
putPins({ projectID, dateID, floorID, pins, }: _360FloorRef & {
|
|
139
|
+
pins: Record<string, _360PinData>;
|
|
140
|
+
}): Promise<Record<string, _360PinData> | null>;
|
|
141
|
+
patchCalibrationDetails({ projectID, dateID, floorID, details, }: _360FloorRef & {
|
|
142
|
+
details: Partial<_360CalibrationDetails>;
|
|
143
|
+
}): Promise<Partial<_360CalibrationDetails>>;
|
|
144
|
+
getDateWalks(projectExid: ProjectExid, dateId: string): Promise<Record<string, unknown> | null>;
|
|
145
|
+
getRoute({ projectID, dateID, floorID, }: _360FloorRef): Promise<_360Route | null>;
|
|
146
|
+
deleteRoute({ projectID, dateID, floorID }: _360FloorRef): Promise<void>;
|
|
147
|
+
getAerialShotDate({ projectID, dateID, }: {
|
|
148
|
+
projectID: string;
|
|
149
|
+
dateID: string;
|
|
150
|
+
}): Promise<string>;
|
|
126
151
|
updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: string): Promise<void>;
|
|
127
152
|
getProjectDates(projectId: ProjectExid): Promise<_360Scene[]>;
|
|
128
153
|
getProjectAerialShotsDates(projectId: ProjectExid): Promise<_360Scene[]>;
|
|
129
|
-
getProjectDateFloors({ projectId, dateId, }: {
|
|
154
|
+
getProjectDateFloors({ projectId, dateId, prefix, }: {
|
|
130
155
|
projectId: ProjectExid;
|
|
131
156
|
dateId: string | number;
|
|
157
|
+
prefix?: string;
|
|
132
158
|
}): Promise<_360Walk>;
|
|
159
|
+
getFloorMarkers({ projectId, dateId, floorId, prefix, }: {
|
|
160
|
+
projectId: ProjectExid;
|
|
161
|
+
dateId: string | number;
|
|
162
|
+
floorId: _360FloorId;
|
|
163
|
+
prefix?: string;
|
|
164
|
+
}): Promise<_360Marker3D[] | Record<string, _360Marker3D> | null>;
|
|
133
165
|
};
|
|
134
166
|
forge: {
|
|
135
167
|
getAccessToken(): Promise<{
|
|
136
168
|
access_token: string;
|
|
137
169
|
}>;
|
|
138
170
|
getProjectInfo(projectExid: ProjectExid): Promise<ForgeProjectData | null>;
|
|
139
|
-
|
|
140
|
-
|
|
171
|
+
getUrns(projectExid: ProjectExid): Promise<ForgeUrn[] | null>;
|
|
172
|
+
saveModelView({ projectId, modelIndex, viewId, view, }: {
|
|
173
|
+
projectId: ProjectExid;
|
|
174
|
+
modelIndex: number;
|
|
175
|
+
viewId: string;
|
|
176
|
+
view: ForgeView;
|
|
177
|
+
}): Promise<void>;
|
|
178
|
+
saveModelId({ projectId, modelIndex, id, }: {
|
|
179
|
+
projectId: ProjectExid;
|
|
180
|
+
modelIndex: number;
|
|
181
|
+
id: string;
|
|
182
|
+
}): Promise<void>;
|
|
183
|
+
patchCameraMarkers(projectId: ProjectExid, markers: Record<string, ForgeMarker | null>): Promise<void>;
|
|
184
|
+
patchCameraMarkerNames(projectId: ProjectExid, names: Record<string, string>): Promise<void>;
|
|
141
185
|
};
|
|
142
186
|
itwin: {
|
|
143
187
|
getProjectInfo(projectId: string): Promise<ItwinProjectData | null>;
|
|
@@ -146,13 +190,12 @@ export declare const _3dFirebaseApi: {
|
|
|
146
190
|
};
|
|
147
191
|
siteView: {
|
|
148
192
|
getCamerasList(): Promise<SiteViewCameraListItem[]>;
|
|
149
|
-
updateCamerasList(items: Record<
|
|
193
|
+
updateCamerasList(items: Record<number, SiteViewCameraListItem>): Promise<void>;
|
|
150
194
|
updateCamerasListItem(trueIndex: number, item: SiteViewCameraListItem): Promise<void>;
|
|
151
|
-
updateProjectData({ viewerType, projectId, data,
|
|
195
|
+
updateProjectData({ viewerType, projectId, data, }: {
|
|
152
196
|
viewerType: SiteViewerType;
|
|
153
197
|
projectId: ProjectExid;
|
|
154
198
|
data: ForgeProjectData | ItwinProjectData | DroneProjectDataPatch;
|
|
155
|
-
subPath?: string;
|
|
156
199
|
}): Promise<void>;
|
|
157
200
|
deleteProjectData(viewerType: SiteViewerType, projectId: ProjectExid): Promise<void>;
|
|
158
201
|
readAllData(dbLink: string): Promise<Record<string, unknown>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "@evercam/api/types/hdd";
|
|
2
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,
|
|
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, CameraNote, GetCameraNotesParams, CreateCameraNotePayload, CompanyQueryParams, CompanySummary, CompanyUpdatePayload, SsoProvider, SsoUpdatePayload, SsoCreatePayload, SuppressionsQueryParams, Suppression, SnapshotExtractionType, KitQueryParams, 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, AdminApiKey, AdminApiKeysRequestParams, UpdateAdminApiKeyPayload, WidgetPayload, PaginationParams, KitStorageRequestPayload, AdminCompanyUser, AdminCompanyProject, CompanyKit, CompanyCameraSummary, Automation, KitStorage, KitFootageRequestPayload, CommentsListRequestPayload, Comment, KitFootage, KitAlarmItem, KitSupportChecklist, RecycleBin, RecycleBinQueryParams, TransferCloudRecordingsQueryParams, SnapshotTransfer, CheckCameraPortPayload, CameraStatusLog, KitBox, KitBoxCreatePayload, KitBoxQueryParams, AdminInvite, AdminSearchItem, WithZohoParams, ZohoDeskTicketSearchResponse, JsonObject, ProjectStorageQueryParams, ProjectStorage, StorageProvider, AnprExtraction, AnprExtractionCreatePayload } from "@evercam/api/types";
|
|
4
4
|
import { KitMetricId } from "@evercam/api/types";
|
|
5
5
|
import { Tag } from "@evercam/api/types/tag";
|
|
6
6
|
import type { AxiosRequestConfig } from "axios";
|
|
@@ -17,7 +17,7 @@ export declare const AdminApi: {
|
|
|
17
17
|
auditLogs: {
|
|
18
18
|
getAuditLogs(params: AxiosRequestConfig & {
|
|
19
19
|
params: Partial<AuditLogsParams>;
|
|
20
|
-
}): Promise<PaginatedItems<AuditLog
|
|
20
|
+
}): Promise<PaginatedItems<AuditLog>>;
|
|
21
21
|
};
|
|
22
22
|
cameras: {
|
|
23
23
|
getCamerasStats(params: {
|
|
@@ -73,10 +73,6 @@ export declare const AdminApi: {
|
|
|
73
73
|
deleteSnapshots(cameraId: string, params: DeleteSnapshotQueryParams): Promise<void>;
|
|
74
74
|
transferCloudRecordings(cameraId: string, params: TransferCloudRecordingsQueryParams): Promise<void>;
|
|
75
75
|
refreshDeviceSettings(cameraId: string): Promise<void>;
|
|
76
|
-
saveNote(cameraId: string, params: SaveNotePayload): Promise<CameraNote>;
|
|
77
|
-
saveCameraNote(cameraId: string, params: CreateCameraNotePayload): Promise<{
|
|
78
|
-
message: string;
|
|
79
|
-
}>;
|
|
80
76
|
update(cameraId: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
81
77
|
transferOwnership(cameraId: string, newOwnerId: number): Promise<void>;
|
|
82
78
|
portCheck(payload: {
|
|
@@ -102,11 +98,6 @@ export declare const AdminApi: {
|
|
|
102
98
|
}): Promise<{
|
|
103
99
|
success: true;
|
|
104
100
|
}>;
|
|
105
|
-
reSyncCompanies(params: {
|
|
106
|
-
companyIds: string[];
|
|
107
|
-
}): Promise<{
|
|
108
|
-
success: true;
|
|
109
|
-
}>;
|
|
110
101
|
};
|
|
111
102
|
sso: {
|
|
112
103
|
getProviders(params: {
|
|
@@ -138,30 +129,37 @@ export declare const AdminApi: {
|
|
|
138
129
|
extractions: {
|
|
139
130
|
updateCloudRecordings(cameraId: string, params: JsonObject): Promise<void>;
|
|
140
131
|
addExtraction(cameraId: string, params: SnapshotExtractionQyeryParams): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
141
|
-
getExtractionStatus(cameraId: string, extractionId: number, params: {
|
|
142
|
-
type: SnapshotExtractionType;
|
|
143
|
-
}): Promise<{
|
|
144
|
-
status: string;
|
|
145
|
-
jpegs: number;
|
|
146
|
-
}>;
|
|
147
132
|
deleteSnapshotExtraction(cameraId: string, extractionId: number, params: {
|
|
148
133
|
type: SnapshotExtractionType;
|
|
134
|
+
hardDelete?: boolean;
|
|
149
135
|
}): Promise<void>;
|
|
136
|
+
getExtraction(cameraExid: string, extractionId: number): Promise<SnapshotExtraction>;
|
|
137
|
+
reprocessExtraction(cameraId: string, extractionId: number): Promise<void>;
|
|
138
|
+
};
|
|
139
|
+
anprExtractions: {
|
|
140
|
+
list(cameraExid: string): Promise<{
|
|
141
|
+
data: AnprExtraction[];
|
|
142
|
+
}>;
|
|
143
|
+
create(cameraExid: string, payload: AnprExtractionCreatePayload): Promise<{
|
|
144
|
+
data: AnprExtraction;
|
|
145
|
+
}>;
|
|
146
|
+
delete(cameraExid: string, id: number): Promise<{
|
|
147
|
+
message: string;
|
|
148
|
+
}>;
|
|
150
149
|
};
|
|
151
150
|
kits: {
|
|
152
151
|
getAllKits(params: AxiosRequestConfig & {
|
|
153
152
|
params: KitQueryParams;
|
|
154
153
|
}): Promise<PaginatedItems<Kit[]>>;
|
|
155
154
|
getKit(kitId: number): Promise<Kit>;
|
|
156
|
-
createKit(params: KitCreatePayload): Promise<AdminKit>;
|
|
157
155
|
updateKit(id: string, params: PatchPayload<Kit>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
158
156
|
deleteKit(id: string, params: JsonObject): Promise<void>;
|
|
159
|
-
getKitStats({ kitId, metric, fromDate, toDate, }: {
|
|
157
|
+
getKitStats<T = KitMetricStatsEntry>({ kitId, metric, fromDate, toDate, }: {
|
|
160
158
|
kitId: number;
|
|
161
159
|
metric: KitMetricId;
|
|
162
160
|
fromDate: string;
|
|
163
161
|
toDate: string;
|
|
164
|
-
}): Promise<
|
|
162
|
+
}): Promise<T[]>;
|
|
165
163
|
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
166
164
|
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
167
165
|
getStorages(params: {
|
|
@@ -171,6 +169,8 @@ export declare const AdminApi: {
|
|
|
171
169
|
params?: KitFootageRequestPayload;
|
|
172
170
|
}): Promise<KitFootage[]>;
|
|
173
171
|
getAlarms(kitId: number): Promise<KitAlarmItem[]>;
|
|
172
|
+
runSupportChecklist(kitId: number): Promise<KitSupportChecklist>;
|
|
173
|
+
transferProject(kitId: number, projectExid: string): Promise<Kit>;
|
|
174
174
|
getBoxes(params: {
|
|
175
175
|
params: Partial<KitBoxQueryParams>;
|
|
176
176
|
}): Promise<PaginatedItems<KitBox>>;
|
|
@@ -184,7 +184,11 @@ export declare const AdminApi: {
|
|
|
184
184
|
data: CameraLog[];
|
|
185
185
|
}>;
|
|
186
186
|
getCameraLogs(cameraId: string, params: CameraAuditLogsQueryParams): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
187
|
-
|
|
187
|
+
};
|
|
188
|
+
notes: {
|
|
189
|
+
togglePin(id: string | number): Promise<CameraNote>;
|
|
190
|
+
getNotes(cameraExid: string, params?: GetCameraNotesParams): Promise<PaginatedItems<CameraNote>>;
|
|
191
|
+
createNote(cameraExid: string, params: CreateCameraNotePayload): Promise<CameraNote>;
|
|
188
192
|
};
|
|
189
193
|
nvrs: {
|
|
190
194
|
getNvrs(params: {
|
|
@@ -280,6 +284,12 @@ export declare const AdminApi: {
|
|
|
280
284
|
};
|
|
281
285
|
shares: {
|
|
282
286
|
getInvites(params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminInvite>>;
|
|
287
|
+
resendInvite(id: number): Promise<{
|
|
288
|
+
invite: AdminInvite;
|
|
289
|
+
}>;
|
|
290
|
+
cancelInvite(id: number): Promise<{
|
|
291
|
+
invite: AdminInvite;
|
|
292
|
+
}>;
|
|
283
293
|
};
|
|
284
294
|
sims: {
|
|
285
295
|
deleteSim(simId: number): Promise<{
|
|
@@ -336,7 +346,7 @@ export declare const AdminApi: {
|
|
|
336
346
|
message: string;
|
|
337
347
|
}>;
|
|
338
348
|
deleteUser(email: string, params: {
|
|
339
|
-
|
|
349
|
+
verifEmail: string;
|
|
340
350
|
}): Promise<void | {
|
|
341
351
|
message: string;
|
|
342
352
|
}>;
|
|
@@ -351,6 +361,13 @@ export declare const AdminApi: {
|
|
|
351
361
|
passwordResetLink: string;
|
|
352
362
|
}>;
|
|
353
363
|
};
|
|
364
|
+
apiKeys: {
|
|
365
|
+
index(params: {
|
|
366
|
+
params: Partial<AdminApiKeysRequestParams>;
|
|
367
|
+
}): Promise<PaginatedItems<AdminApiKey>>;
|
|
368
|
+
update(id: number, payload: UpdateAdminApiKeyPayload): Promise<AdminApiKey>;
|
|
369
|
+
delete(id: number): Promise<void>;
|
|
370
|
+
};
|
|
354
371
|
widgets: {
|
|
355
372
|
index(params: {
|
|
356
373
|
params: Partial<WidgetsListRequestPayload>;
|
package/dist/api/api/aiApi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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";
|
|
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, ObservationEvent, ObservationEventsQueryParams, ObservationEventsCountsQueryParams, ObservationEventsExportQueryParams, ObservationApprovalUpdateResponse, ObservationEventCount, ObservationType, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchBackendQuery, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel, SmartSearchResponse, SmartSearchRequestPayload, LegacyAnprExportParams, AnprBulkUpdateRequestPayload, AnprUpdateRequestPayload, SmartSearchQueriesRequestPayload, _360FloorId, CreateCoolifyAppRequestPayload, RegisterCoolifyAppResponsePayload, SaveCoolifyAppRequestPayload, SegmentsCountsParams, SegmentsPresenceResponse, AiPrompt, AiPromptCreatePayload, AiPromptCreateResponse, AiPromptDeleteResponse, AiPromptListResponse, AiPromptQueryParams, AiPromptUpdatePayload, AiPromptUpdateResponse, AiSubpromptCreatePayload, AiObservationType, AiObservationTypeCreatePayload, AiObservationTypeCreateResponse, AiObservationTypeDeleteResponse, AiObservationTypeListResponse, AiObservationTypeQueryParams, AiObservationTypeUpdatePayload, AiObservationTypeUpdateResponse, ObservationConfig, UpsertObservationConfigPayload, AiApiKey, AiApiKeyCreatePayload, AiApiKeyCreateResponse, AiApiKeyDeleteResponse, AiApiKeyQueryParams, AiApiKeyUpdatePayload, AiApiKeyUpdateResponse, APIEnvelope, AppActionResponse, AppRuntimeState, CoolifyProjectOption, CoolifyServerOption, CreateGateReportAppPayload, CreateGateReportAppResponse, GateReportAppEvents, GateReportAppsQueryParams, GateReportManagedApp, UpdateGateReportAppPayload, CreateSiteAnalyticsAppPayload, CreateSiteAnalyticsAppResponse, DeleteSiteAnalyticsAppResponse, ModelOption, SiteAnalyticsManagedApp, SiteAnalyticsManagementListParams, UpdateSiteAnalyticsAppPayload, ObservationEventQueryParams, ObservationEventListResponse, ObservationModelOption, ObservationEventReviewPayload, ObservationEventReviewResponse, Walk360Activity, Walk360Config, Walk360ConfigSummary, Walk360ProcessedSession, Walk360WorkerAction } from "@evercam/api/types";
|
|
2
2
|
import type { AxiosPromise, AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare const getAiApiUrl: () => string;
|
|
4
4
|
export declare const getAiApiUrlV2: () => string;
|
|
@@ -22,13 +22,13 @@ export declare const AiApi: {
|
|
|
22
22
|
getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<string[]>;
|
|
23
23
|
getEvents(projectExid: ProjectExid, params: GatReportRequestPayload, extraParams?: AxiosRequestConfig): Promise<GateReportResponsePayload>;
|
|
24
24
|
getCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
25
|
-
getGateReportProjectsInfos(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
26
25
|
};
|
|
27
26
|
brainTool: {
|
|
28
27
|
getObjectDetectionsResults(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
28
|
};
|
|
30
29
|
roi: {
|
|
31
30
|
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
31
|
+
listROIs(params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
32
32
|
createROI(params: Omit<GateReportRoiRequestPayload, "id"> & {
|
|
33
33
|
createdBy?: string;
|
|
34
34
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -52,6 +52,25 @@ export declare const AiApi: {
|
|
|
52
52
|
getDetectionsPresenceDateIntervals({ projectExid, ...params }: DetectionsCountsParams): Promise<DetectionsPresenceByLabel>;
|
|
53
53
|
requestExport({ projectExid, ...params }: DetectionsExportRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
54
54
|
};
|
|
55
|
+
observations: {
|
|
56
|
+
getEvents({ projectExid, ...params }: {
|
|
57
|
+
projectExid: ProjectExid;
|
|
58
|
+
} & ObservationEventsQueryParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<ObservationEvent>>;
|
|
59
|
+
getCounts({ projectExid, ...params }: {
|
|
60
|
+
projectExid: ProjectExid;
|
|
61
|
+
} & ObservationEventsCountsQueryParams, extraParams?: AxiosRequestConfig): Promise<APIEnvelope<ObservationEventCount[]>>;
|
|
62
|
+
getConfiguredTypes(projectExid: ProjectExid, extraParams?: AxiosRequestConfig): Promise<APIEnvelope<ObservationType[]>>;
|
|
63
|
+
exportEvents({ projectExid, ...params }: {
|
|
64
|
+
projectExid: ProjectExid;
|
|
65
|
+
} & ObservationEventsExportQueryParams, extraParams?: AxiosRequestConfig): Promise<Blob | {
|
|
66
|
+
message: string;
|
|
67
|
+
}>;
|
|
68
|
+
updateEventApproval({ projectExid, eventId, isApproved, }: {
|
|
69
|
+
projectExid: ProjectExid;
|
|
70
|
+
eventId: number;
|
|
71
|
+
isApproved: boolean | null;
|
|
72
|
+
}): Promise<ObservationApprovalUpdateResponse>;
|
|
73
|
+
};
|
|
55
74
|
siteAnalytics: {
|
|
56
75
|
smartSearchAll(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
57
76
|
smartSearchFirstLastSeen(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
@@ -93,6 +112,16 @@ export declare const AiApi: {
|
|
|
93
112
|
operator?: SmartSearchOperatorType;
|
|
94
113
|
}): Promise<SmartSearchHeatmapData[]>;
|
|
95
114
|
};
|
|
115
|
+
siteAnalyticsManagement: {
|
|
116
|
+
listApps(params?: SiteAnalyticsManagementListParams): Promise<PaginatedItems<SiteAnalyticsManagedApp>>;
|
|
117
|
+
createApp(payload: CreateSiteAnalyticsAppPayload): Promise<CreateSiteAnalyticsAppResponse>;
|
|
118
|
+
getApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<APIEnvelope<SiteAnalyticsManagedApp>>;
|
|
119
|
+
updateApp(projectExid: ProjectExid, cameraExid: CameraExid, payload: UpdateSiteAnalyticsAppPayload): Promise<APIEnvelope<SiteAnalyticsManagedApp>>;
|
|
120
|
+
deleteApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<DeleteSiteAnalyticsAppResponse>;
|
|
121
|
+
setAppState(projectExid: ProjectExid, cameraExid: CameraExid, state: AppRuntimeState): Promise<APIEnvelope<AppActionResponse>>;
|
|
122
|
+
listCoolifyServers(): Promise<APIEnvelope<CoolifyServerOption[]>>;
|
|
123
|
+
listModelVersions(): Promise<APIEnvelope<ModelOption[]>>;
|
|
124
|
+
};
|
|
96
125
|
coolify: {
|
|
97
126
|
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
98
127
|
createAppOnCoolify({ projectExid, cameraExid, payload, }: {
|
|
@@ -125,4 +154,98 @@ export declare const AiApi: {
|
|
|
125
154
|
fovChanges: {
|
|
126
155
|
getCameraFovChanges(cameraExid: string, extraConfig?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
127
156
|
};
|
|
157
|
+
prompts: {
|
|
158
|
+
list(params?: AiPromptQueryParams): Promise<AiPromptListResponse>;
|
|
159
|
+
get(promptId: number): Promise<AiPrompt>;
|
|
160
|
+
create(payload: AiPromptCreatePayload): Promise<AiPromptCreateResponse>;
|
|
161
|
+
update(promptId: number, payload: AiPromptUpdatePayload): Promise<AiPromptUpdateResponse>;
|
|
162
|
+
delete(promptId: number): Promise<AiPromptDeleteResponse>;
|
|
163
|
+
listSubprompts(promptId: number): Promise<AiPrompt[]>;
|
|
164
|
+
createSubprompt(promptId: number, payload: AiSubpromptCreatePayload): Promise<AiPromptCreateResponse>;
|
|
165
|
+
};
|
|
166
|
+
observations360: {
|
|
167
|
+
getWalkConfig(projectExid: string): Promise<{
|
|
168
|
+
data: Walk360Config;
|
|
169
|
+
}>;
|
|
170
|
+
saveWalkConfig(projectExid: string, payload: {
|
|
171
|
+
enabled: boolean;
|
|
172
|
+
startDate: string | null;
|
|
173
|
+
activities: Walk360Activity[];
|
|
174
|
+
maxParallelWalks?: number;
|
|
175
|
+
visionProvider?: string;
|
|
176
|
+
coolifyServerUuid?: string | null;
|
|
177
|
+
}): Promise<{
|
|
178
|
+
data: Walk360Config;
|
|
179
|
+
}>;
|
|
180
|
+
listProcessedWalks(projectExid: string): Promise<{
|
|
181
|
+
data: Walk360ProcessedSession[];
|
|
182
|
+
}>;
|
|
183
|
+
listWalkTypes(): Promise<{
|
|
184
|
+
data: AiObservationType[];
|
|
185
|
+
}>;
|
|
186
|
+
listConfigs(): Promise<{
|
|
187
|
+
data: Walk360ConfigSummary[];
|
|
188
|
+
}>;
|
|
189
|
+
deleteWalkConfig(projectExid: string): Promise<{
|
|
190
|
+
deleted: boolean;
|
|
191
|
+
}>;
|
|
192
|
+
setWorkerState(projectExid: string, state: AppRuntimeState): Promise<{
|
|
193
|
+
data: Walk360WorkerAction;
|
|
194
|
+
}>;
|
|
195
|
+
};
|
|
196
|
+
observationTypes: {
|
|
197
|
+
list(params?: AiObservationTypeQueryParams): Promise<AiObservationTypeListResponse>;
|
|
198
|
+
get(observationTypeId: number): Promise<AiObservationType>;
|
|
199
|
+
create(payload: AiObservationTypeCreatePayload): Promise<AiObservationTypeCreateResponse>;
|
|
200
|
+
update(observationTypeId: number, payload: AiObservationTypeUpdatePayload): Promise<AiObservationTypeUpdateResponse>;
|
|
201
|
+
delete(observationTypeId: number): Promise<AiObservationTypeDeleteResponse>;
|
|
202
|
+
};
|
|
203
|
+
siteAnalyticsObservations: {
|
|
204
|
+
getConfig(cameraExid: string): Promise<ObservationConfig>;
|
|
205
|
+
upsertConfig(cameraExid: string, payload: UpsertObservationConfigPayload): Promise<ObservationConfig>;
|
|
206
|
+
deleteConfig(cameraExid: string): Promise<{
|
|
207
|
+
deleted: boolean;
|
|
208
|
+
count: number;
|
|
209
|
+
message: string;
|
|
210
|
+
}>;
|
|
211
|
+
};
|
|
212
|
+
apiKeys: {
|
|
213
|
+
list(params?: AiApiKeyQueryParams): Promise<AiApiKey[]>;
|
|
214
|
+
purposes(): Promise<string[]>;
|
|
215
|
+
get(keyId: number): Promise<AiApiKey>;
|
|
216
|
+
create(payload: AiApiKeyCreatePayload): Promise<AiApiKeyCreateResponse>;
|
|
217
|
+
update(keyId: number, payload: AiApiKeyUpdatePayload): Promise<AiApiKeyUpdateResponse>;
|
|
218
|
+
delete(keyId: number, revoke?: boolean): Promise<AiApiKeyDeleteResponse>;
|
|
219
|
+
};
|
|
220
|
+
observationEvents: {
|
|
221
|
+
list(params?: ObservationEventQueryParams): Promise<ObservationEventListResponse>;
|
|
222
|
+
frameUrl(eventId: number, options?: {
|
|
223
|
+
thumbnail?: boolean;
|
|
224
|
+
token?: string | null;
|
|
225
|
+
}): string;
|
|
226
|
+
projects(): Promise<{
|
|
227
|
+
data: Array<{
|
|
228
|
+
projectExid: string;
|
|
229
|
+
total: number;
|
|
230
|
+
}>;
|
|
231
|
+
}>;
|
|
232
|
+
models(): Promise<APIEnvelope<ObservationModelOption[]>>;
|
|
233
|
+
review(projectExid: string, eventId: number, payload: ObservationEventReviewPayload): Promise<ObservationEventReviewResponse>;
|
|
234
|
+
};
|
|
235
|
+
gateReportManagement: {
|
|
236
|
+
listApps(params?: GateReportAppsQueryParams): Promise<PaginatedItems<GateReportManagedApp>>;
|
|
237
|
+
getApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<APIEnvelope<GateReportManagedApp>>;
|
|
238
|
+
listAppEvents(projectExid?: ProjectExid): Promise<APIEnvelope<GateReportAppEvents[]>>;
|
|
239
|
+
createApp(payload: CreateGateReportAppPayload): Promise<CreateGateReportAppResponse>;
|
|
240
|
+
updateApp(projectExid: ProjectExid, cameraExid: CameraExid, payload: UpdateGateReportAppPayload): Promise<APIEnvelope<GateReportManagedApp>>;
|
|
241
|
+
deleteApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<{
|
|
242
|
+
deleted: boolean;
|
|
243
|
+
count: number;
|
|
244
|
+
message: string;
|
|
245
|
+
}>;
|
|
246
|
+
setAppState(projectExid: ProjectExid, cameraExid: CameraExid, state: AppRuntimeState): Promise<APIEnvelope<AppActionResponse>>;
|
|
247
|
+
listCoolifyProjects(): Promise<APIEnvelope<CoolifyProjectOption[]>>;
|
|
248
|
+
listCoolifyServers(): Promise<APIEnvelope<CoolifyServerOption[]>>;
|
|
249
|
+
listImageTags(): Promise<APIEnvelope<string[]>>;
|
|
250
|
+
};
|
|
128
251
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthzRoleUser, AuthzScope, AuthzScopeCreatePayload, AuthzScopeUpdatePayload, AuthzUserRolesResponse, ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload, Role, RoleResourceType } from "@evercam/api/types";
|
|
1
|
+
import type { AuthzRoleUser, AuthzScope, AuthzScopeCreatePayload, AuthzScopeUpdatePayload, AuthzUserRolesResponse, PaginatedItems, ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload, Role, RoleAssignmentLogBatch, RoleAssignmentLogsParams, RoleResourceType } from "@evercam/api/types";
|
|
2
2
|
import type { AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare const AuthzApi: {
|
|
4
4
|
roles: {
|
|
@@ -18,6 +18,9 @@ export declare const AuthzApi: {
|
|
|
18
18
|
deletePermission(id: number, action: string): Promise<void>;
|
|
19
19
|
getRoleUsers(id: number): Promise<AuthzRoleUser[]>;
|
|
20
20
|
assignUsers(roleId: number, emails: Array<string>, resourceId?: string): Promise<void>;
|
|
21
|
+
getAssignments(params: AxiosRequestConfig & {
|
|
22
|
+
params: Partial<RoleAssignmentLogsParams>;
|
|
23
|
+
}): Promise<PaginatedItems<RoleAssignmentLogBatch>>;
|
|
21
24
|
getUserRoles(projectExid?: ProjectExid, resourceType?: RoleResourceType): Promise<AuthzUserRolesResponse>;
|
|
22
25
|
};
|
|
23
26
|
projectRoles: {
|