@evercam/api 1.0.0-8d64fdf7a → 1.0.0-8d6ccf4f8
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 +5 -0
- package/dist/api/api/3dFirebaseApi.d.ts +27 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +142 -79
- 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 +3 -2
- 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 +147 -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/api/weatherApi.d.ts +9 -0
- 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 +214 -103
- package/dist/{types → api/types}/anpr.d.ts +35 -19
- package/dist/{types → api/types}/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +60 -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 +110 -125
- 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 +9 -6
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/{types → api/types}/copilot.d.ts +19 -13
- 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}/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 +15 -3
- package/dist/api/types/ingest.d.ts +134 -0
- package/dist/{types → api/types}/kit.d.ts +93 -7
- 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 +242 -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 +13 -20
- 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/api/types/streaming.d.ts +97 -0
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +18 -4
- package/dist/{types → api/types}/user.d.ts +105 -35
- 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 +100 -20
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1707 -968
- 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 +270 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +6 -5
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/aiApi.d.ts +0 -86
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -266
- package/dist/api/evercamLabsApi.d.ts +0 -47
- package/dist/api/ingestApi.d.ts +0 -65
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/api/weatherApi.d.ts +0 -25
- 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/detections.d.ts +0 -73
- 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/procore.d.ts +0 -76
- package/dist/types/project.d.ts +0 -120
- package/dist/types/shares.d.ts +0 -192
- package/dist/types/siteAnalytics.d.ts +0 -85
- package/dist/types/sitePlanner.d.ts +0 -28
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/streaming.d.ts +0 -119
- package/dist/types/time.d.ts +0 -19
- package/dist/types/videoWall.d.ts +0 -33
- package/dist/types/weather.d.ts +0 -83
- /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}/drone.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,6 +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";
|
|
5
|
+
import { Tag } from "@evercam/api/types/tag";
|
|
6
|
+
import type { AxiosRequestConfig } from "axios";
|
|
7
|
+
type AxiosPaginationRequestParams = AxiosRequestConfig & {
|
|
8
|
+
params: PaginationParams;
|
|
9
|
+
};
|
|
4
10
|
export declare const AdminApi: {
|
|
5
11
|
mediaHub: {
|
|
6
12
|
getAllMedia(params: {
|
|
@@ -9,7 +15,7 @@ export declare const AdminApi: {
|
|
|
9
15
|
deleteMedia(params: Partial<MediaDeleteRequestPayload>): Promise<void>;
|
|
10
16
|
};
|
|
11
17
|
auditLogs: {
|
|
12
|
-
getAuditLogs(params: {
|
|
18
|
+
getAuditLogs(params: AxiosRequestConfig & {
|
|
13
19
|
params: Partial<AuditLogsParams>;
|
|
14
20
|
}): Promise<PaginatedItems<AuditLog>[]>;
|
|
15
21
|
};
|
|
@@ -25,15 +31,22 @@ export declare const AdminApi: {
|
|
|
25
31
|
focusCamera(cameraId: string, device: string): Promise<{
|
|
26
32
|
message: string;
|
|
27
33
|
}>;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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 & {
|
|
31
41
|
params: Partial<SnapshotExtractionQyeryParams>;
|
|
32
42
|
}): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
33
43
|
createCameras(payload: CameraCreateRequestPayload): Promise<{
|
|
34
44
|
cameras: [AdminCamera];
|
|
35
45
|
}>;
|
|
36
46
|
deleteCamera(exid: string, payload: CameraDeletePayload): Promise<void>;
|
|
47
|
+
restoreCamera(exid: string): Promise<{
|
|
48
|
+
message: string;
|
|
49
|
+
}>;
|
|
37
50
|
testSnapshot(payload: SnapshotTestPayload): Promise<SnapshotTestResponse>;
|
|
38
51
|
getDuplicateCameras(params: {
|
|
39
52
|
params: {
|
|
@@ -46,23 +59,43 @@ export declare const AdminApi: {
|
|
|
46
59
|
}>;
|
|
47
60
|
getCameras(params: {
|
|
48
61
|
params: Partial<FetchCameraQueryParams>;
|
|
49
|
-
}): Promise<PaginatedItems<AdminCamera>>;
|
|
62
|
+
}, extraConfig?: AxiosRequestConfig): Promise<PaginatedItems<AdminCamera>>;
|
|
50
63
|
getCompares(params: {
|
|
51
64
|
params: AdminCompareQueryParams;
|
|
52
65
|
}): Promise<PaginatedItems<AdminCompare[]>>;
|
|
53
66
|
getCameraDetails(exid: string): Promise<AdminCamera>;
|
|
67
|
+
getCameraStatusLogs(exid: string, params: {
|
|
68
|
+
params: {
|
|
69
|
+
from: string;
|
|
70
|
+
to: string;
|
|
71
|
+
};
|
|
72
|
+
}): Promise<CameraStatusLog[]>;
|
|
54
73
|
deleteSnapshots(cameraId: string, params: DeleteSnapshotQueryParams): Promise<void>;
|
|
74
|
+
transferCloudRecordings(cameraId: string, params: TransferCloudRecordingsQueryParams): Promise<void>;
|
|
55
75
|
refreshDeviceSettings(cameraId: string): Promise<void>;
|
|
56
76
|
saveNote(cameraId: string, params: SaveNotePayload): Promise<CameraNote>;
|
|
57
77
|
saveCameraNote(cameraId: string, params: CreateCameraNotePayload): Promise<{
|
|
58
78
|
message: string;
|
|
59
79
|
}>;
|
|
60
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
|
+
}>;
|
|
61
87
|
};
|
|
62
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>>;
|
|
63
96
|
getCompanies(params: {
|
|
64
97
|
params: Partial<CompanyQueryParams>;
|
|
65
|
-
}): Promise<PaginatedItems<
|
|
98
|
+
}): Promise<PaginatedItems<CompanySummary>>;
|
|
66
99
|
updateCompany(id: string, params: CompanyUpdatePayload): Promise<Omit<CompanyUpdatePayload, "linkedinUrl">>;
|
|
67
100
|
deleteCompany(params: {
|
|
68
101
|
ids: string | string[];
|
|
@@ -75,15 +108,35 @@ export declare const AdminApi: {
|
|
|
75
108
|
success: true;
|
|
76
109
|
}>;
|
|
77
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
|
+
};
|
|
78
131
|
emailing: {
|
|
79
|
-
performEmailing(template: string, params:
|
|
132
|
+
performEmailing(template: string, params: JsonObject): Promise<void>;
|
|
80
133
|
suppressions(params: {
|
|
81
134
|
params: SuppressionsQueryParams;
|
|
82
135
|
}): Promise<PaginatedItems<Suppression[]>>;
|
|
83
136
|
deleteSuppression(id: number): Promise<void>;
|
|
84
137
|
};
|
|
85
138
|
extractions: {
|
|
86
|
-
updateCloudRecordings(cameraId: string, params:
|
|
139
|
+
updateCloudRecordings(cameraId: string, params: JsonObject): Promise<void>;
|
|
87
140
|
addExtraction(cameraId: string, params: SnapshotExtractionQyeryParams): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
88
141
|
getExtractionStatus(cameraId: string, extractionId: number, params: {
|
|
89
142
|
type: SnapshotExtractionType;
|
|
@@ -95,26 +148,33 @@ export declare const AdminApi: {
|
|
|
95
148
|
type: SnapshotExtractionType;
|
|
96
149
|
}): Promise<void>;
|
|
97
150
|
};
|
|
98
|
-
gateReport: {
|
|
99
|
-
getGateReportProjects(params: {
|
|
100
|
-
params: PaginationParams;
|
|
101
|
-
}): Promise<PaginatedItems<GateReportProject[]>>;
|
|
102
|
-
getGateReportProject(projectExid: string): Promise<Project>;
|
|
103
|
-
};
|
|
104
151
|
kits: {
|
|
105
|
-
getAllKits(params: {
|
|
152
|
+
getAllKits(params: AxiosRequestConfig & {
|
|
106
153
|
params: KitQueryParams;
|
|
107
154
|
}): Promise<PaginatedItems<Kit[]>>;
|
|
108
155
|
getKit(kitId: number): Promise<Kit>;
|
|
109
156
|
createKit(params: KitCreatePayload): Promise<AdminKit>;
|
|
110
157
|
updateKit(id: string, params: PatchPayload<Kit>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
111
|
-
deleteKit(id: string, params:
|
|
158
|
+
deleteKit(id: string, params: JsonObject): Promise<void>;
|
|
112
159
|
getKitStats({ kitId, metric, fromDate, toDate, }: {
|
|
113
160
|
kitId: number;
|
|
114
161
|
metric: KitMetricId;
|
|
115
162
|
fromDate: string;
|
|
116
163
|
toDate: string;
|
|
117
|
-
}): Promise<
|
|
164
|
+
}): Promise<KitMetricStatsEntry[]>;
|
|
165
|
+
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
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>;
|
|
@@ -148,26 +216,17 @@ export declare const AdminApi: {
|
|
|
148
216
|
cameraIds: number[];
|
|
149
217
|
}): Promise<OfflineCameraNoteResponse>;
|
|
150
218
|
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
getPAUserPeriodEvents(id: number, payload: EntityStatsQueryParams): Promise<EntityStat[]>;
|
|
158
|
-
getProjectUsers(id: string): Promise<ProjectUsers>;
|
|
159
|
-
getPAProject(id: string, params: Record<string, unknown>): Promise<{
|
|
160
|
-
data: Project;
|
|
219
|
+
projects: {
|
|
220
|
+
index(params: {
|
|
221
|
+
params: Partial<ProjectsQueryParams>;
|
|
222
|
+
}): Promise<PaginatedItems<AdminProjectListItem>>;
|
|
223
|
+
show(exid: string, params?: WithZohoParams): Promise<{
|
|
224
|
+
data: AdminProjectDetail;
|
|
161
225
|
}>;
|
|
162
|
-
|
|
226
|
+
getUsers(id: string): Promise<ProjectUsers>;
|
|
227
|
+
getCameras(id: string): Promise<{
|
|
163
228
|
data: ProjectCamera[];
|
|
164
229
|
}>;
|
|
165
|
-
};
|
|
166
|
-
projects: {
|
|
167
|
-
getAll(params: {
|
|
168
|
-
params: Partial<ProjectsQueryParams>;
|
|
169
|
-
}): Promise<PaginatedItems<Project>>;
|
|
170
|
-
getProject(exid: string): Promise<Project>;
|
|
171
230
|
getProjectsStats(): Promise<ProjectStatusStats>;
|
|
172
231
|
createProject(params: ProjectCreateRequestPayload): Promise<ProjectCreateResponse>;
|
|
173
232
|
updateProject(projectExid: string, params: Partial<ProjectUpdateRequestPayload>): Promise<ProjectCreateResponse>;
|
|
@@ -177,6 +236,12 @@ export declare const AdminApi: {
|
|
|
177
236
|
addToProject(projectExid: string, params: {
|
|
178
237
|
cameraExids: string[];
|
|
179
238
|
}): Promise<void>;
|
|
239
|
+
getProjectStorages(params: {
|
|
240
|
+
params: Partial<ProjectStorageQueryParams>;
|
|
241
|
+
}): Promise<PaginatedItems<ProjectStorage[]>>;
|
|
242
|
+
retryProjectStorage(id: number): Promise<{
|
|
243
|
+
message: string;
|
|
244
|
+
}>;
|
|
180
245
|
};
|
|
181
246
|
routers: {
|
|
182
247
|
getRouters(params: {
|
|
@@ -195,45 +260,25 @@ export declare const AdminApi: {
|
|
|
195
260
|
search: {
|
|
196
261
|
search(params: {
|
|
197
262
|
params: GlobalSearchQueryParams;
|
|
198
|
-
}): Promise<PaginatedItems<
|
|
263
|
+
}): Promise<PaginatedItems<AdminSearchItem>>;
|
|
199
264
|
};
|
|
200
265
|
hdds: {
|
|
201
266
|
getHdds(payload: {
|
|
202
267
|
projectId: string;
|
|
203
268
|
companyId: string;
|
|
204
|
-
}): Promise<
|
|
269
|
+
}): Promise<AdminHdd[]>;
|
|
205
270
|
getAllHdds(params: {
|
|
206
271
|
params: Partial<HDDsQueryParams>;
|
|
207
|
-
}): Promise<
|
|
208
|
-
deleteHdd(hddId: number): Promise<
|
|
209
|
-
saveHdd(params: HDDCreateUpdatePayload): Promise<
|
|
210
|
-
updateHdd(hddId: number, params: HDDCreateUpdatePayload): Promise<
|
|
211
|
-
saveFootage(hddId: number, params: FootageCreateUpdatePayload): Promise<
|
|
212
|
-
deleteFootage(hddId: number, footageId: number): Promise<
|
|
213
|
-
updateFootage(hddId: number, footageId: number, params: FootageCreateUpdatePayload): Promise<
|
|
214
|
-
};
|
|
215
|
-
shareRequests: {
|
|
216
|
-
getShareRequests(params: {
|
|
217
|
-
params: Partial<CameraShareRequestsQueryParams>;
|
|
218
|
-
}): Promise<PaginatedItems<CameraShareRequest[]>>;
|
|
219
|
-
deleteShareRequest(params: {
|
|
220
|
-
ids: number[];
|
|
221
|
-
}): Promise<{
|
|
222
|
-
success: boolean;
|
|
223
|
-
}>;
|
|
224
|
-
updateShareRequestStatus(params: {
|
|
225
|
-
ids: number[];
|
|
226
|
-
status: string;
|
|
227
|
-
}): Promise<{
|
|
228
|
-
success: boolean;
|
|
229
|
-
}>;
|
|
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>;
|
|
230
279
|
};
|
|
231
280
|
shares: {
|
|
232
|
-
|
|
233
|
-
getShares(params: {
|
|
234
|
-
params: Partial<ShareQueryParams>;
|
|
235
|
-
}): Promise<PaginatedItems<AdminShare[]>>;
|
|
236
|
-
deleteShares(ids: number[]): Promise<void>;
|
|
281
|
+
getInvites(params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminInvite>>;
|
|
237
282
|
};
|
|
238
283
|
sims: {
|
|
239
284
|
deleteSim(simId: number): Promise<{
|
|
@@ -242,18 +287,18 @@ export declare const AdminApi: {
|
|
|
242
287
|
createSim(params: Omit<SimCreateUpdatePayload, "cameraId">): Promise<{
|
|
243
288
|
success: boolean;
|
|
244
289
|
}>;
|
|
245
|
-
updateSim(simId: number, params:
|
|
290
|
+
updateSim(simId: number, params: SimCreateUpdatePayload): Promise<{
|
|
246
291
|
success: boolean;
|
|
247
292
|
}>;
|
|
248
293
|
getSims(params: {
|
|
249
294
|
params: Partial<SimsQueryParams>;
|
|
250
295
|
}): Promise<PaginatedItems<Sim[]>>;
|
|
251
|
-
getSimProviders(): Promise<
|
|
252
|
-
getBillPayers(): Promise<
|
|
296
|
+
getSimProviders(): Promise<string[]>;
|
|
297
|
+
getBillPayers(): Promise<string[]>;
|
|
253
298
|
};
|
|
254
299
|
sms: {
|
|
255
300
|
sendSms(number: string, params: SendSmsPayload): Promise<SendSmsResponse>;
|
|
256
|
-
getSimHistory(number: string): Promise<SmsHistoryResponse
|
|
301
|
+
getSimHistory(number: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<SmsHistoryResponse>>;
|
|
257
302
|
getSms(params: {
|
|
258
303
|
params: Partial<SmsQueryParams>;
|
|
259
304
|
}): Promise<PaginatedItems<Sms[]>>;
|
|
@@ -270,7 +315,13 @@ export declare const AdminApi: {
|
|
|
270
315
|
}): Promise<{
|
|
271
316
|
progressPhoto: string;
|
|
272
317
|
}>;
|
|
273
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
318
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
319
|
+
};
|
|
320
|
+
tags: {
|
|
321
|
+
index(): Promise<Tag[]>;
|
|
322
|
+
create(tag: Tag): Promise<Tag>;
|
|
323
|
+
update(tag: Tag): Promise<Tag>;
|
|
324
|
+
delete(tag: Tag): Promise<void>;
|
|
274
325
|
};
|
|
275
326
|
users: {
|
|
276
327
|
updateUser(id: number, params: Partial<AdminUserUpdateRequestPayload>): Promise<AdminUser>;
|
|
@@ -292,6 +343,9 @@ export declare const AdminApi: {
|
|
|
292
343
|
getUsers(params: {
|
|
293
344
|
params: Partial<AdminUserQueryParams>;
|
|
294
345
|
}): Promise<PaginatedItems<AdminUser>>;
|
|
346
|
+
show(id: number, params?: WithZohoParams): Promise<UserStatsResponse>;
|
|
347
|
+
getProjects(id: number): Promise<UserProjectResponse>;
|
|
348
|
+
getCameras(id: number): Promise<UserCameraResponse>;
|
|
295
349
|
getUserPasswordResetLink(email: string): Promise<{
|
|
296
350
|
passwordResetLink: string;
|
|
297
351
|
}>;
|
|
@@ -299,9 +353,18 @@ export declare const AdminApi: {
|
|
|
299
353
|
widgets: {
|
|
300
354
|
index(params: {
|
|
301
355
|
params: Partial<WidgetsListRequestPayload>;
|
|
302
|
-
}): Promise<PaginatedItems<
|
|
303
|
-
show(id: number): Promise<
|
|
304
|
-
update(id: number, payload: WidgetPayload): Promise<
|
|
356
|
+
}): Promise<PaginatedItems<AdminWidget>>;
|
|
357
|
+
show(id: number): Promise<AdminWidgetFull>;
|
|
358
|
+
update(id: number, payload: WidgetPayload): Promise<AdminWidgetFull>;
|
|
305
359
|
delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
306
360
|
};
|
|
361
|
+
zohoDesk: {
|
|
362
|
+
searchTickets(params: JsonObject): Promise<ZohoDeskTicketSearchResponse>;
|
|
363
|
+
};
|
|
364
|
+
comments: {
|
|
365
|
+
index(params: {
|
|
366
|
+
params: Partial<CommentsListRequestPayload>;
|
|
367
|
+
}): Promise<PaginatedItems<Comment>>;
|
|
368
|
+
};
|
|
307
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
|
};
|