@evercam/api 1.0.0-d861e8d9e → 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/README.md +3 -0
- package/dist/api/api/3dFirebaseApi.d.ts +27 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +123 -61
- package/dist/api/api/aiApi.d.ts +128 -0
- package/dist/api/api/authzApi.d.ts +38 -0
- package/dist/api/{client → api/client}/axios.d.ts +2 -1
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/api/evercamApi.d.ts +337 -0
- package/dist/api/api/evercamLabsApi.d.ts +45 -0
- package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +148 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +2 -2
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +276 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/{types → api/types}/analytics.d.ts +198 -48
- package/dist/{types → api/types}/anpr.d.ts +26 -13
- package/dist/{types → api/types}/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +61 -0
- package/dist/{types → api/types}/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +95 -0
- package/dist/{types → api/types}/axios.d.ts +22 -2
- package/dist/{types → api/types}/bim.d.ts +11 -5
- package/dist/{types → api/types}/camera.d.ts +108 -124
- package/dist/api/types/comments.d.ts +55 -0
- package/dist/api/types/company.d.ts +115 -0
- package/dist/{types → api/types}/compare.d.ts +20 -5
- package/dist/{types → api/types}/connector.d.ts +7 -5
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/{types → api/types}/copilot.d.ts +11 -6
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +124 -0
- package/dist/{types → api/types}/drone.d.ts +1 -0
- package/dist/{types → api/types}/errors.d.ts +13 -0
- package/dist/{types → api/types}/gateReport.d.ts +46 -150
- package/dist/{types → api/types}/hdd.d.ts +26 -1
- package/dist/{types → api/types}/index.d.ts +11 -2
- package/dist/api/types/ingest.d.ts +139 -0
- package/dist/{types → api/types}/kit.d.ts +85 -6
- package/dist/{types → api/types}/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +57 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +79 -0
- package/dist/api/types/posthog.d.ts +33 -0
- package/dist/api/types/procore.d.ts +229 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
- package/dist/api/types/project.d.ts +245 -0
- package/dist/{types → api/types}/recording.d.ts +3 -4
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/{types → api/types}/roi.d.ts +2 -1
- package/dist/{types → api/types}/routeParams.d.ts +4 -2
- package/dist/{types → api/types}/router.d.ts +20 -1
- package/dist/{types → api/types}/shared.d.ts +12 -10
- package/dist/api/types/shares.d.ts +58 -0
- package/dist/{types → api/types}/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +287 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/{types → api/types}/snapshots.d.ts +10 -1
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/{types → api/types}/streaming.d.ts +4 -25
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/{types → api/types}/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +3 -4
- package/dist/{types → api/types}/user.d.ts +105 -36
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/api/types/weather.d.ts +153 -0
- package/dist/{types → api/types}/widget.d.ts +96 -16
- package/dist/{types → api/types}/xweather.d.ts +4 -4
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1634 -927
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +302 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +5 -4
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/aiApi.d.ts +0 -110
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -271
- package/dist/api/evercamLabsApi.d.ts +0 -50
- package/dist/api/ingestApi.d.ts +0 -66
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/types/360.d.ts +0 -83
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/company.d.ts +0 -46
- package/dist/types/coolify.d.ts +0 -18
- package/dist/types/detections.d.ts +0 -76
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/ingest.d.ts +0 -43
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/planner.d.ts +0 -28
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/project.d.ts +0 -123
- package/dist/types/shares.d.ts +0 -196
- package/dist/types/siteAnalytics.d.ts +0 -84
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/time.d.ts +0 -19
- package/dist/types/videoWall.d.ts +0 -33
- package/dist/types/weather.d.ts +0 -87
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/map.d.ts +0 -0
- /package/dist/{types → api/types}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
|
+
export declare const getFirebaseDbApi: () => string | null | undefined;
|
|
4
|
+
export declare const getFirebaseStorageUrl: () => string | null | undefined;
|
|
5
|
+
export declare const getFirebaseStorageToken: () => string | null | undefined;
|
|
6
|
+
export declare const _3dFirebaseApi: {
|
|
7
|
+
drone: {
|
|
8
|
+
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
9
|
+
getProjectTags(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
10
|
+
};
|
|
11
|
+
_360: {
|
|
12
|
+
getProjectInfo(projectExid: ProjectExid, params?: {
|
|
13
|
+
config?: AxiosRequestConfig;
|
|
14
|
+
}): Promise<_360ProjectJsonResponse>;
|
|
15
|
+
getDateWalks(projectExid: ProjectExid, dateId: string): Promise<any>;
|
|
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>;
|
|
26
|
+
};
|
|
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, 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";
|
|
6
|
+
import type { AxiosRequestConfig } from "axios";
|
|
7
|
+
type AxiosPaginationRequestParams = AxiosRequestConfig & {
|
|
8
|
+
params: PaginationParams;
|
|
9
|
+
};
|
|
5
10
|
export declare const AdminApi: {
|
|
6
11
|
mediaHub: {
|
|
7
12
|
getAllMedia(params: {
|
|
@@ -10,7 +15,7 @@ export declare const AdminApi: {
|
|
|
10
15
|
deleteMedia(params: Partial<MediaDeleteRequestPayload>): Promise<void>;
|
|
11
16
|
};
|
|
12
17
|
auditLogs: {
|
|
13
|
-
getAuditLogs(params: {
|
|
18
|
+
getAuditLogs(params: AxiosRequestConfig & {
|
|
14
19
|
params: Partial<AuditLogsParams>;
|
|
15
20
|
}): Promise<PaginatedItems<AuditLog>[]>;
|
|
16
21
|
};
|
|
@@ -26,9 +31,13 @@ export declare const AdminApi: {
|
|
|
26
31
|
focusCamera(cameraId: string, device: string): Promise<{
|
|
27
32
|
message: string;
|
|
28
33
|
}>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
getStorageProviders(cameraId: string, params?: AxiosRequestConfig & {
|
|
35
|
+
unmaskSecretKeys: boolean;
|
|
36
|
+
}): Promise<StorageProvidersResponsePayload>;
|
|
37
|
+
createStorageProvider(cameraId: string, payload: StorageProvider): Promise<StorageProvidersResponsePayload>;
|
|
38
|
+
updateStorageProvider(cameraId: string, providerId: number, payload: StorageProvider): Promise<StorageProvidersResponsePayload>;
|
|
39
|
+
getStorageDetails(): Promise<JsonObject>;
|
|
40
|
+
getSnapshotExtractions(params: AxiosRequestConfig & {
|
|
32
41
|
params: Partial<SnapshotExtractionQyeryParams>;
|
|
33
42
|
}): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
34
43
|
createCameras(payload: CameraCreateRequestPayload): Promise<{
|
|
@@ -50,23 +59,43 @@ export declare const AdminApi: {
|
|
|
50
59
|
}>;
|
|
51
60
|
getCameras(params: {
|
|
52
61
|
params: Partial<FetchCameraQueryParams>;
|
|
53
|
-
}): Promise<PaginatedItems<AdminCamera>>;
|
|
62
|
+
}, extraConfig?: AxiosRequestConfig): Promise<PaginatedItems<AdminCamera>>;
|
|
54
63
|
getCompares(params: {
|
|
55
64
|
params: AdminCompareQueryParams;
|
|
56
65
|
}): Promise<PaginatedItems<AdminCompare[]>>;
|
|
57
66
|
getCameraDetails(exid: string): Promise<AdminCamera>;
|
|
67
|
+
getCameraStatusLogs(exid: string, params: {
|
|
68
|
+
params: {
|
|
69
|
+
from: string;
|
|
70
|
+
to: string;
|
|
71
|
+
};
|
|
72
|
+
}): Promise<CameraStatusLog[]>;
|
|
58
73
|
deleteSnapshots(cameraId: string, params: DeleteSnapshotQueryParams): Promise<void>;
|
|
74
|
+
transferCloudRecordings(cameraId: string, params: TransferCloudRecordingsQueryParams): Promise<void>;
|
|
59
75
|
refreshDeviceSettings(cameraId: string): Promise<void>;
|
|
60
76
|
saveNote(cameraId: string, params: SaveNotePayload): Promise<CameraNote>;
|
|
61
77
|
saveCameraNote(cameraId: string, params: CreateCameraNotePayload): Promise<{
|
|
62
78
|
message: string;
|
|
63
79
|
}>;
|
|
64
80
|
update(cameraId: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
81
|
+
transferOwnership(cameraId: string, newOwnerId: number): Promise<void>;
|
|
82
|
+
portCheck(payload: {
|
|
83
|
+
params: CheckCameraPortPayload;
|
|
84
|
+
}): Promise<CheckCameraPortPayload & {
|
|
85
|
+
open: boolean;
|
|
86
|
+
}>;
|
|
65
87
|
};
|
|
66
88
|
companies: {
|
|
89
|
+
show(id: string, config?: AxiosRequestConfig & {
|
|
90
|
+
params?: WithZohoParams;
|
|
91
|
+
}): Promise<CompanySummary>;
|
|
92
|
+
getCompanyUsers(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminCompanyUser>>;
|
|
93
|
+
getCompanyProjects(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminCompanyProject>>;
|
|
94
|
+
getCompanyKits(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<CompanyKit>>;
|
|
95
|
+
getCompanyCameras(id: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<CompanyCameraSummary>>;
|
|
67
96
|
getCompanies(params: {
|
|
68
97
|
params: Partial<CompanyQueryParams>;
|
|
69
|
-
}): Promise<PaginatedItems<
|
|
98
|
+
}): Promise<PaginatedItems<CompanySummary>>;
|
|
70
99
|
updateCompany(id: string, params: CompanyUpdatePayload): Promise<Omit<CompanyUpdatePayload, "linkedinUrl">>;
|
|
71
100
|
deleteCompany(params: {
|
|
72
101
|
ids: string | string[];
|
|
@@ -79,15 +108,35 @@ export declare const AdminApi: {
|
|
|
79
108
|
success: true;
|
|
80
109
|
}>;
|
|
81
110
|
};
|
|
111
|
+
sso: {
|
|
112
|
+
getProviders(params: {
|
|
113
|
+
params: PaginationParams;
|
|
114
|
+
}): Promise<SsoProvider[]>;
|
|
115
|
+
updateProvider(id: string, params: SsoUpdatePayload): Promise<SsoProvider>;
|
|
116
|
+
createProvider(params: SsoCreatePayload): Promise<SsoProvider>;
|
|
117
|
+
deleteProviders(ids: string[]): Promise<{
|
|
118
|
+
success: true;
|
|
119
|
+
}>;
|
|
120
|
+
};
|
|
121
|
+
oauthClients: {
|
|
122
|
+
index(): Promise<{
|
|
123
|
+
items: OAuthClient[];
|
|
124
|
+
}>;
|
|
125
|
+
show(id: number): Promise<OAuthClient>;
|
|
126
|
+
create(payload: AdminCreateOAuthClientPayload): Promise<OAuthClientWithSecret>;
|
|
127
|
+
update(id: number, payload: UpdateOAuthClientPayload): Promise<OAuthClient>;
|
|
128
|
+
delete(id: number): Promise<void>;
|
|
129
|
+
regenerateSecret(id: number): Promise<OAuthClientWithSecret>;
|
|
130
|
+
};
|
|
82
131
|
emailing: {
|
|
83
|
-
performEmailing(template: string, params:
|
|
132
|
+
performEmailing(template: string, params: JsonObject): Promise<void>;
|
|
84
133
|
suppressions(params: {
|
|
85
134
|
params: SuppressionsQueryParams;
|
|
86
135
|
}): Promise<PaginatedItems<Suppression[]>>;
|
|
87
136
|
deleteSuppression(id: number): Promise<void>;
|
|
88
137
|
};
|
|
89
138
|
extractions: {
|
|
90
|
-
updateCloudRecordings(cameraId: string, params:
|
|
139
|
+
updateCloudRecordings(cameraId: string, params: JsonObject): Promise<void>;
|
|
91
140
|
addExtraction(cameraId: string, params: SnapshotExtractionQyeryParams): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
92
141
|
getExtractionStatus(cameraId: string, extractionId: number, params: {
|
|
93
142
|
type: SnapshotExtractionType;
|
|
@@ -100,21 +149,32 @@ export declare const AdminApi: {
|
|
|
100
149
|
}): Promise<void>;
|
|
101
150
|
};
|
|
102
151
|
kits: {
|
|
103
|
-
getAllKits(params: {
|
|
152
|
+
getAllKits(params: AxiosRequestConfig & {
|
|
104
153
|
params: KitQueryParams;
|
|
105
154
|
}): Promise<PaginatedItems<Kit[]>>;
|
|
106
155
|
getKit(kitId: number): Promise<Kit>;
|
|
107
156
|
createKit(params: KitCreatePayload): Promise<AdminKit>;
|
|
108
157
|
updateKit(id: string, params: PatchPayload<Kit>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
109
|
-
deleteKit(id: string, params:
|
|
158
|
+
deleteKit(id: string, params: JsonObject): Promise<void>;
|
|
110
159
|
getKitStats({ kitId, metric, fromDate, toDate, }: {
|
|
111
160
|
kitId: number;
|
|
112
161
|
metric: KitMetricId;
|
|
113
162
|
fromDate: string;
|
|
114
163
|
toDate: string;
|
|
115
|
-
}): Promise<
|
|
164
|
+
}): Promise<KitMetricStatsEntry[]>;
|
|
116
165
|
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
117
166
|
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
167
|
+
getStorages(params: {
|
|
168
|
+
params: KitStorageRequestPayload;
|
|
169
|
+
}): Promise<PaginatedItems<KitStorage[]>>;
|
|
170
|
+
getFootage(id: number, params?: {
|
|
171
|
+
params?: KitFootageRequestPayload;
|
|
172
|
+
}): Promise<KitFootage[]>;
|
|
173
|
+
getAlarms(kitId: number): Promise<KitAlarmItem[]>;
|
|
174
|
+
getBoxes(params: {
|
|
175
|
+
params: Partial<KitBoxQueryParams>;
|
|
176
|
+
}): Promise<PaginatedItems<KitBox>>;
|
|
177
|
+
createBox(params: KitBoxCreatePayload): Promise<KitBox>;
|
|
118
178
|
};
|
|
119
179
|
logs: {
|
|
120
180
|
getAllCamerasStatusLogs(params: {
|
|
@@ -122,21 +182,29 @@ export declare const AdminApi: {
|
|
|
122
182
|
}): Promise<{
|
|
123
183
|
data: CameraLog[];
|
|
124
184
|
}>;
|
|
125
|
-
getCameraLogs(cameraId: string,
|
|
126
|
-
params: CameraAuditLogsQueryParams;
|
|
127
|
-
}): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
185
|
+
getCameraLogs(cameraId: string, params: CameraAuditLogsQueryParams): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
128
186
|
togglePinNote(id: string): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
129
187
|
};
|
|
130
188
|
nvrs: {
|
|
131
189
|
getNvrs(params: {
|
|
132
190
|
params: NvrQueryParams;
|
|
133
191
|
}): Promise<PaginatedItems<Nvr[]>>;
|
|
134
|
-
createNvr(params: NvrCreatePayload): Promise<
|
|
135
|
-
updateNvr(id: string, params: PatchPayload<Nvr>): Promise<
|
|
192
|
+
createNvr(params: NvrCreatePayload): Promise<Nvr>;
|
|
193
|
+
updateNvr(id: string, params: PatchPayload<Nvr>): Promise<Nvr>;
|
|
136
194
|
rebootNVR(cameraId: string): Promise<{
|
|
137
195
|
message: string;
|
|
138
196
|
}>;
|
|
139
197
|
};
|
|
198
|
+
recycleBin: {
|
|
199
|
+
getAllDeleted(params: {
|
|
200
|
+
params: RecycleBinQueryParams;
|
|
201
|
+
}): Promise<PaginatedItems<RecycleBin[]>>;
|
|
202
|
+
restore(params: {
|
|
203
|
+
type: string;
|
|
204
|
+
camera_ids: number[];
|
|
205
|
+
project_ids: number[];
|
|
206
|
+
}): Promise<void>;
|
|
207
|
+
};
|
|
140
208
|
offlineCameras: {
|
|
141
209
|
getSiteVisitCameras(params: {
|
|
142
210
|
params: Partial<SiteVisitCamerasQueryParams>;
|
|
@@ -151,8 +219,10 @@ export declare const AdminApi: {
|
|
|
151
219
|
projects: {
|
|
152
220
|
index(params: {
|
|
153
221
|
params: Partial<ProjectsQueryParams>;
|
|
154
|
-
}): Promise<PaginatedItems<
|
|
155
|
-
show(exid: string, params?:
|
|
222
|
+
}): Promise<PaginatedItems<AdminProjectListItem>>;
|
|
223
|
+
show(exid: string, params?: WithZohoParams): Promise<{
|
|
224
|
+
data: AdminProjectDetail;
|
|
225
|
+
}>;
|
|
156
226
|
getUsers(id: string): Promise<ProjectUsers>;
|
|
157
227
|
getCameras(id: string): Promise<{
|
|
158
228
|
data: ProjectCamera[];
|
|
@@ -166,6 +236,12 @@ export declare const AdminApi: {
|
|
|
166
236
|
addToProject(projectExid: string, params: {
|
|
167
237
|
cameraExids: string[];
|
|
168
238
|
}): Promise<void>;
|
|
239
|
+
getProjectStorages(params: {
|
|
240
|
+
params: Partial<ProjectStorageQueryParams>;
|
|
241
|
+
}): Promise<PaginatedItems<ProjectStorage[]>>;
|
|
242
|
+
retryProjectStorage(id: number): Promise<{
|
|
243
|
+
message: string;
|
|
244
|
+
}>;
|
|
169
245
|
};
|
|
170
246
|
routers: {
|
|
171
247
|
getRouters(params: {
|
|
@@ -184,45 +260,25 @@ export declare const AdminApi: {
|
|
|
184
260
|
search: {
|
|
185
261
|
search(params: {
|
|
186
262
|
params: GlobalSearchQueryParams;
|
|
187
|
-
}): Promise<PaginatedItems<
|
|
263
|
+
}): Promise<PaginatedItems<AdminSearchItem>>;
|
|
188
264
|
};
|
|
189
265
|
hdds: {
|
|
190
266
|
getHdds(payload: {
|
|
191
267
|
projectId: string;
|
|
192
268
|
companyId: string;
|
|
193
|
-
}): Promise<
|
|
269
|
+
}): Promise<AdminHdd[]>;
|
|
194
270
|
getAllHdds(params: {
|
|
195
271
|
params: Partial<HDDsQueryParams>;
|
|
196
|
-
}): Promise<
|
|
197
|
-
deleteHdd(hddId: number): Promise<
|
|
198
|
-
saveHdd(params: HDDCreateUpdatePayload): Promise<
|
|
199
|
-
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<
|
|
200
|
-
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<
|
|
201
|
-
deleteFootage(hddId: number, footageId: number): Promise<
|
|
202
|
-
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<
|
|
203
|
-
};
|
|
204
|
-
shareRequests: {
|
|
205
|
-
getShareRequests(params: {
|
|
206
|
-
params: Partial<CameraShareRequestsQueryParams>;
|
|
207
|
-
}): Promise<PaginatedItems<CameraShareRequest[]>>;
|
|
208
|
-
deleteShareRequest(params: {
|
|
209
|
-
ids: number[];
|
|
210
|
-
}): Promise<{
|
|
211
|
-
success: boolean;
|
|
212
|
-
}>;
|
|
213
|
-
updateShareRequestStatus(params: {
|
|
214
|
-
ids: number[];
|
|
215
|
-
status: string;
|
|
216
|
-
}): Promise<{
|
|
217
|
-
success: boolean;
|
|
218
|
-
}>;
|
|
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>;
|
|
219
279
|
};
|
|
220
280
|
shares: {
|
|
221
|
-
|
|
222
|
-
getShares(params: {
|
|
223
|
-
params: Partial<ShareQueryParams>;
|
|
224
|
-
}): Promise<PaginatedItems<AdminShare[]>>;
|
|
225
|
-
deleteShares(ids: number[]): Promise<void>;
|
|
281
|
+
getInvites(params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminInvite>>;
|
|
226
282
|
};
|
|
227
283
|
sims: {
|
|
228
284
|
deleteSim(simId: number): Promise<{
|
|
@@ -231,18 +287,18 @@ export declare const AdminApi: {
|
|
|
231
287
|
createSim(params: Omit<SimCreateUpdatePayload, "cameraId">): Promise<{
|
|
232
288
|
success: boolean;
|
|
233
289
|
}>;
|
|
234
|
-
updateSim(simId: number, params:
|
|
290
|
+
updateSim(simId: number, params: SimCreateUpdatePayload): Promise<{
|
|
235
291
|
success: boolean;
|
|
236
292
|
}>;
|
|
237
293
|
getSims(params: {
|
|
238
294
|
params: Partial<SimsQueryParams>;
|
|
239
295
|
}): Promise<PaginatedItems<Sim[]>>;
|
|
240
|
-
getSimProviders(): Promise<
|
|
241
|
-
getBillPayers(): Promise<
|
|
296
|
+
getSimProviders(): Promise<string[]>;
|
|
297
|
+
getBillPayers(): Promise<string[]>;
|
|
242
298
|
};
|
|
243
299
|
sms: {
|
|
244
300
|
sendSms(number: string, params: SendSmsPayload): Promise<SendSmsResponse>;
|
|
245
|
-
getSimHistory(number: string): Promise<SmsHistoryResponse
|
|
301
|
+
getSimHistory(number: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<SmsHistoryResponse>>;
|
|
246
302
|
getSms(params: {
|
|
247
303
|
params: Partial<SmsQueryParams>;
|
|
248
304
|
}): Promise<PaginatedItems<Sms[]>>;
|
|
@@ -259,7 +315,7 @@ export declare const AdminApi: {
|
|
|
259
315
|
}): Promise<{
|
|
260
316
|
progressPhoto: string;
|
|
261
317
|
}>;
|
|
262
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
318
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
263
319
|
};
|
|
264
320
|
tags: {
|
|
265
321
|
index(): Promise<Tag[]>;
|
|
@@ -287,7 +343,7 @@ export declare const AdminApi: {
|
|
|
287
343
|
getUsers(params: {
|
|
288
344
|
params: Partial<AdminUserQueryParams>;
|
|
289
345
|
}): Promise<PaginatedItems<AdminUser>>;
|
|
290
|
-
show(id: number, params
|
|
346
|
+
show(id: number, params?: WithZohoParams): Promise<UserStatsResponse>;
|
|
291
347
|
getProjects(id: number): Promise<UserProjectResponse>;
|
|
292
348
|
getCameras(id: number): Promise<UserCameraResponse>;
|
|
293
349
|
getUserPasswordResetLink(email: string): Promise<{
|
|
@@ -297,12 +353,18 @@ export declare const AdminApi: {
|
|
|
297
353
|
widgets: {
|
|
298
354
|
index(params: {
|
|
299
355
|
params: Partial<WidgetsListRequestPayload>;
|
|
300
|
-
}): Promise<PaginatedItems<
|
|
301
|
-
show(id: number): Promise<
|
|
302
|
-
update(id: number, payload: WidgetPayload): Promise<
|
|
356
|
+
}): Promise<PaginatedItems<AdminWidget>>;
|
|
357
|
+
show(id: number): Promise<AdminWidgetFull>;
|
|
358
|
+
update(id: number, payload: WidgetPayload): Promise<AdminWidgetFull>;
|
|
303
359
|
delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
304
360
|
};
|
|
305
361
|
zohoDesk: {
|
|
306
|
-
searchTickets(params:
|
|
362
|
+
searchTickets(params: JsonObject): Promise<ZohoDeskTicketSearchResponse>;
|
|
363
|
+
};
|
|
364
|
+
comments: {
|
|
365
|
+
index(params: {
|
|
366
|
+
params: Partial<CommentsListRequestPayload>;
|
|
367
|
+
}): Promise<PaginatedItems<Comment>>;
|
|
307
368
|
};
|
|
308
369
|
};
|
|
370
|
+
export {};
|
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
import type { AxiosPromise, AxiosRequestConfig } from "axios";
|
|
3
|
+
export declare const getAiApiUrl: () => string;
|
|
4
|
+
export declare const getAiApiUrlV2: () => string;
|
|
5
|
+
export declare const AiApi: {
|
|
6
|
+
anpr: {
|
|
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>;
|
|
12
|
+
exportAnprEvents(projectExid: string, params: AnprBasedGateReportExportRequestParams): AxiosPromise<string>;
|
|
13
|
+
};
|
|
14
|
+
gateReport: {
|
|
15
|
+
exportEvents(projectExid: string, params: EventsExportRequestParameters): AxiosPromise<any>;
|
|
16
|
+
exportEventsProgress(projectExid: string, params: {
|
|
17
|
+
exportDate: string;
|
|
18
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
|
+
generateAnprThumbnail(cameraExid: CameraExid, captureTime: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
20
|
+
getVerifiedDays(projectExid: ProjectExid, params: Partial<VerifiedDaysQueryParams>, extraParams?: {}): Promise<PaginatedItems<GateReportVerifiedDay>>;
|
|
21
|
+
verifyDay(params: VerifyDayUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
|
+
getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<string[]>;
|
|
23
|
+
getEvents(projectExid: ProjectExid, params: GatReportRequestPayload, extraParams?: AxiosRequestConfig): Promise<GateReportResponsePayload>;
|
|
24
|
+
getCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
25
|
+
getGateReportProjectsInfos(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
26
|
+
};
|
|
27
|
+
brainTool: {
|
|
28
|
+
getObjectDetectionsResults(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
+
};
|
|
30
|
+
roi: {
|
|
31
|
+
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
32
|
+
createROI(params: Omit<GateReportRoiRequestPayload, "id"> & {
|
|
33
|
+
createdBy: string;
|
|
34
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
|
+
updateROI({ updatedBy, id, ...params }: Partial<GateReportRoiRequestPayload> & {
|
|
36
|
+
updatedBy: string;
|
|
37
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
|
+
deleteROI({ id, updatedBy }: {
|
|
39
|
+
id: number;
|
|
40
|
+
updatedBy: string;
|
|
41
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
42
|
+
};
|
|
43
|
+
detections: {
|
|
44
|
+
getDetectionsCounts({ projectExid, ...params }: Partial<DetectionsRequestParams>, extraParams?: AxiosRequestConfig): Promise<DetectionsCountsByPeriod>;
|
|
45
|
+
getDetectionsByTimestamp({ projectExid, ...params }: DetectionsRequestParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<DetectionsGroup>>;
|
|
46
|
+
getSimilarSegmentsInTimeIntervals({ cameraExid, iouThreshold, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
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>;
|
|
52
|
+
getDetectionsPresenceDateIntervals({ projectExid, ...params }: DetectionsCountsParams): Promise<DetectionsPresenceByLabel>;
|
|
53
|
+
requestExport({ projectExid, ...params }: DetectionsExportRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
54
|
+
};
|
|
55
|
+
siteAnalytics: {
|
|
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;
|
|
67
|
+
cameraExid: CameraExid;
|
|
68
|
+
queryId: number;
|
|
69
|
+
payload: Partial<SavedQuery>;
|
|
70
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
71
|
+
deleteQuery({ projectExid, cameraExid, queryId, }: {
|
|
72
|
+
projectExid: ProjectExid;
|
|
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[];
|
|
79
|
+
fromDate?: DateType;
|
|
80
|
+
toDate?: DateType;
|
|
81
|
+
query: string;
|
|
82
|
+
fileType: DownloadFileType;
|
|
83
|
+
directDownload?: boolean;
|
|
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;
|
|
92
|
+
labels: DetectionLabel[];
|
|
93
|
+
operator?: SmartSearchOperatorType;
|
|
94
|
+
}): Promise<SmartSearchHeatmapData[]>;
|
|
95
|
+
};
|
|
96
|
+
coolify: {
|
|
97
|
+
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
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>;
|
|
108
|
+
updateApp({ appUuid, appId, payload, cameraExid, projectExid, }: {
|
|
109
|
+
projectExid: string;
|
|
110
|
+
cameraExid: string;
|
|
111
|
+
appId: string;
|
|
112
|
+
appUuid: string;
|
|
113
|
+
payload: Partial<SaveCoolifyAppRequestPayload>;
|
|
114
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
115
|
+
deleteApp({ appUuid, appId, cameraExid, projectExid, }: {
|
|
116
|
+
projectExid: string;
|
|
117
|
+
cameraExid: string;
|
|
118
|
+
appId: string;
|
|
119
|
+
appUuid: string;
|
|
120
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
121
|
+
startService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
122
|
+
pauseService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
123
|
+
restartService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
124
|
+
};
|
|
125
|
+
fovChanges: {
|
|
126
|
+
getCameraFovChanges(cameraExid: string, extraConfig?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AuthzRoleUser, AuthzScope, AuthzScopeCreatePayload, AuthzScopeUpdatePayload, AuthzUserRolesResponse, ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload, Role, RoleResourceType } from "@evercam/api/types";
|
|
2
|
+
import type { AxiosRequestConfig } from "axios";
|
|
3
|
+
export declare const AuthzApi: {
|
|
4
|
+
roles: {
|
|
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>>;
|
|
31
|
+
};
|
|
32
|
+
scopes: {
|
|
33
|
+
get(): Promise<AuthzScope[]>;
|
|
34
|
+
create(params: AuthzScopeCreatePayload): Promise<AuthzScope>;
|
|
35
|
+
delete(id: number): Promise<void>;
|
|
36
|
+
update(id: number, params: AuthzScopeUpdatePayload): Promise<AuthzScope>;
|
|
37
|
+
};
|
|
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
|
};
|
|
@@ -5,6 +5,7 @@ export declare const BadRequestError: {
|
|
|
5
5
|
stack?: string;
|
|
6
6
|
cause?: unknown;
|
|
7
7
|
};
|
|
8
|
+
isError(error: unknown): error is Error;
|
|
8
9
|
};
|
|
9
10
|
export declare const NotFoundError: {
|
|
10
11
|
new (error: unknown): {
|
|
@@ -13,6 +14,7 @@ export declare const NotFoundError: {
|
|
|
13
14
|
stack?: string;
|
|
14
15
|
cause?: unknown;
|
|
15
16
|
};
|
|
17
|
+
isError(error: unknown): error is Error;
|
|
16
18
|
};
|
|
17
19
|
export declare const UnauthorizedError: {
|
|
18
20
|
new (error: unknown): {
|
|
@@ -21,6 +23,7 @@ export declare const UnauthorizedError: {
|
|
|
21
23
|
stack?: string;
|
|
22
24
|
cause?: unknown;
|
|
23
25
|
};
|
|
26
|
+
isError(error: unknown): error is Error;
|
|
24
27
|
};
|
|
25
28
|
export declare const GatewayTimeoutError: {
|
|
26
29
|
new (error: unknown): {
|
|
@@ -29,6 +32,7 @@ export declare const GatewayTimeoutError: {
|
|
|
29
32
|
stack?: string;
|
|
30
33
|
cause?: unknown;
|
|
31
34
|
};
|
|
35
|
+
isError(error: unknown): error is Error;
|
|
32
36
|
};
|
|
33
37
|
export declare const BadGatewayError: {
|
|
34
38
|
new (error: unknown): {
|
|
@@ -37,6 +41,7 @@ export declare const BadGatewayError: {
|
|
|
37
41
|
stack?: string;
|
|
38
42
|
cause?: unknown;
|
|
39
43
|
};
|
|
44
|
+
isError(error: unknown): error is Error;
|
|
40
45
|
};
|
|
41
46
|
export declare const ForbiddenError: {
|
|
42
47
|
new (error: unknown): {
|
|
@@ -45,6 +50,7 @@ export declare const ForbiddenError: {
|
|
|
45
50
|
stack?: string;
|
|
46
51
|
cause?: unknown;
|
|
47
52
|
};
|
|
53
|
+
isError(error: unknown): error is Error;
|
|
48
54
|
};
|
|
49
55
|
export declare const HlsError: {
|
|
50
56
|
new (error: unknown): {
|
|
@@ -53,6 +59,7 @@ export declare const HlsError: {
|
|
|
53
59
|
stack?: string;
|
|
54
60
|
cause?: unknown;
|
|
55
61
|
};
|
|
62
|
+
isError(error: unknown): error is Error;
|
|
56
63
|
};
|
|
57
64
|
export declare const SnapshotError: {
|
|
58
65
|
new (error: unknown): {
|
|
@@ -61,6 +68,7 @@ export declare const SnapshotError: {
|
|
|
61
68
|
stack?: string;
|
|
62
69
|
cause?: unknown;
|
|
63
70
|
};
|
|
71
|
+
isError(error: unknown): error is Error;
|
|
64
72
|
};
|
|
65
73
|
export declare const ConflictError: {
|
|
66
74
|
new (error: unknown): {
|
|
@@ -69,6 +77,7 @@ export declare const ConflictError: {
|
|
|
69
77
|
stack?: string;
|
|
70
78
|
cause?: unknown;
|
|
71
79
|
};
|
|
80
|
+
isError(error: unknown): error is Error;
|
|
72
81
|
};
|
|
73
82
|
export declare const InternalServerError: {
|
|
74
83
|
new (error: unknown): {
|
|
@@ -77,4 +86,5 @@ export declare const InternalServerError: {
|
|
|
77
86
|
stack?: string;
|
|
78
87
|
cause?: unknown;
|
|
79
88
|
};
|
|
89
|
+
isError(error: unknown): error is Error;
|
|
80
90
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosDefaults, type AxiosError, type AxiosRequestConfig, type AxiosResponse } from "axios";
|
|
2
|
-
import type
|
|
2
|
+
import { type AxiosEnvironment } from "@evercam/api/types";
|
|
3
3
|
export declare const onRequest: (request: AxiosRequestConfig, axiosEnv: AxiosEnvironment) => Promise<AxiosRequestConfig<any>>;
|
|
4
4
|
export declare const onResponse: (response: AxiosResponse) => any;
|
|
5
5
|
export declare const onError: (error: AxiosError, axiosEnv: AxiosEnvironment) => Promise<{
|