@evercam/api 1.0.0-e405b2c39 → 1.0.0-e424632fd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/api/adminApi.d.ts +67 -37
- package/dist/api/api/aiApi.d.ts +57 -53
- package/dist/api/api/authzApi.d.ts +23 -16
- package/dist/api/api/client/axios.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +110 -71
- package/dist/api/api/evercamLabsApi.d.ts +4 -5
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +99 -47
- package/dist/api/api/ptzApi.d.ts +9 -4
- package/dist/api/api/videoWallApi.d.ts +2 -2
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +4 -2
- package/dist/api/types/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +84 -48
- package/dist/api/types/anpr.d.ts +19 -2
- package/dist/api/types/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +44 -6
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +37 -3
- package/dist/api/types/axios.d.ts +10 -6
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +87 -73
- package/dist/api/types/comments.d.ts +4 -8
- package/dist/api/types/company.d.ts +42 -1
- package/dist/api/types/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +3 -5
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/copilot.d.ts +11 -6
- package/dist/api/types/detections.d.ts +20 -8
- package/dist/api/types/drone.d.ts +1 -0
- package/dist/api/types/gateReport.d.ts +45 -57
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +6 -1
- package/dist/api/types/ingest.d.ts +98 -2
- package/dist/api/types/kit.d.ts +14 -7
- package/dist/api/types/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +32 -2
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +44 -0
- package/dist/api/types/posthog.d.ts +15 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +6 -2
- package/dist/api/types/project.d.ts +95 -21
- package/dist/api/types/recording.d.ts +3 -3
- package/dist/api/types/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/router.d.ts +1 -1
- package/dist/api/types/shared.d.ts +16 -4
- package/dist/api/types/shares.d.ts +1 -1
- package/dist/api/types/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +79 -39
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +36 -4
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +3 -3
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +0 -18
- package/dist/api/types/timelapse.d.ts +12 -5
- package/dist/api/types/user.d.ts +101 -31
- package/dist/api/types/videoWall.d.ts +21 -21
- package/dist/api/types/weather.d.ts +75 -11
- package/dist/api/types/widget.d.ts +71 -12
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/index.js +858 -668
- 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 +115 -13
- package/dist/shared/types/imagePlayer.d.ts +1 -1
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +2 -2
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from "axios";
|
|
2
|
-
import
|
|
2
|
+
import { Automation, GeoJSONPolygon, ProgressPhotoItemResponsePayload, Project, SwrRequestConfig, UserFeatureFlag } from "@evercam/api/types";
|
|
3
|
+
import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProject, AconexDocumentSchema, AconexDocumentTypeSchema, ApiCredentials, AutodeskFolder, AutodeskProject, AutodeskTokenResponsePayload, AutodeskSnapshot, AutodeskUserHub, AvailableDaysRequestPayload, AvailableDaysResponsePayload, AvailableHoursRequestPayload, AvailableHoursResponsePayload, BatteryReading, BatteryVoltage, BimCompareExportRequestPayload, BimCreationPayload, BIMLayer, BIMLayerPostPayload, BimLayersQueryParams, BimModelRequestPayload, BimModelResponsePayload, BimPendingImage, BimSnapshotRequestPayload, BimSnapshotResponsePayload, BimUploadCameraParameters, CameraLogsResponsePayload, CamerasResponsePayload, CameraStatusLog, CameraUpdateRequestPayload, Comment, CommentCreationRequestPayload, CommentsRequestPayload, CompanyCameraSummary, CompanyProject, CompanyKit, CompanySummary, CompanyUser, Compare, CompareRequestPayload, ConnectorResponsePayload, Credentials, FetchCameraQueryParams, GoogleAuthRequestPayload, LoginRequestPayload, User, Logo, LogoutParams, Media, MediaCreateRequestPayload, MediaFilterQueryParams, MediaUpdateRequestPayload, MediaUsersResponsePayload, NearestSnapshotRequestPayload, NearestSnapshotResponsePayload, PaginatedItems, PendingBimImagesParams, ProcessPendingImagesBimParams, ProcoreEditedImageUploadRequestPayload, ProcoreObservationFormRequestPayload, ProcoreObservationTypesResponsePayload, ProcoreProjectsAlbumsPayload, ProcoreProjectRequestPayload, ProcoreUserCompaniesResponsePayload, ProcoreCompanyRequestPayload, ProcoreUserProjectsResponsePayload, ProcoreUserProjectPermissionsResponsePayload, ProcoreObservationAssignee, ProcoreObservationDistributionMember, ProcoreObservationTrades, ProcoreObservationLocation, ProcoreObservationSpecificationSection, ProcoreObservationForm, ProcoreObservationDefaultList, ProcoreObservationListItem, ProcoreCustomFieldOptionsRequestPayload, ProgressPhotosCreateUpdateRequestPayload, ProgressPhotosResponsePayload, ProgressPhotosUnSubscribeParams, ProjectBatteryReading, ProjectCreateResponse, ProjectExid, ProjectLogoResponsePayload, ProjectMembersResponsePayload, ProjectMembersRequestPayload, ProjectInviteMembersResponsePayload, RemotePasswordUpdateRequestPayload, SessionsListRequestPayload, ShareCreateResponsePayload, ShareDeletionRequestPayload, SharedUsersResponsePayload, UpdateCameraRestrictionPayload, SignupUserRequestPayload, Snapshot, SnapshotRangeRequestPayload, SnapshotRangeResponsePayload, ThumbnailData, TimelapseCreationRequestPayload, TimelapseCreationResponsePayload, TimelapseSnapshotRequestPayload, TimelapseSnapshotResponsePayload, UpdatePasswordRequestPayload, UserDeleteRequestPayload, UserSession, UserUpdateRequestPayload, VoyageControlConnectorPayload, RingDevicesResponsePayload, RingImportDevicesPayload, RingImportResponsePayload, RingMoveDevicePayload, RingMoveDeviceResponsePayload, RingLiveViewPayload, RingLiveViewResponse, RingStopLiveViewResponse, AuthOptionsResponsePayload, AuthProviderConfigPayload, ConfirmUserRequestPayload, DeleteActiveSessionRequestPayload, ProjectContactsResponsePayload, XWeatherCreatePayload, XWeatherResponse, Widget, WidgetFull, WidgetPayload, WidgetSessionSettingsPayload, WidgetsListRequestPayload, Camera, ProcoreNextObservationAvailableNumber, OAuthClient, OAuthClientWithSecret, OAuthConsentInfo, OAuthConsentPayload, OAuthConsentResponse, CreateOAuthClientPayload, UpdateOAuthClientPayload, PaginationParams, StoryblokResponse, Notification, PlaceholderThumbnailData, ProjectUsersResponsePayload, ProjectMember } from "@evercam/api/types";
|
|
3
4
|
export declare const EvercamApi: {
|
|
4
5
|
apiStatus: {
|
|
5
|
-
getApiStatus(): Promise<
|
|
6
|
+
getApiStatus(): Promise<void>;
|
|
6
7
|
};
|
|
7
8
|
users: {
|
|
8
|
-
signup(payload: SignupUserRequestPayload): Promise<
|
|
9
|
+
signup(payload: SignupUserRequestPayload): Promise<User>;
|
|
9
10
|
fetchAccessFeatures(email: string): Promise<{
|
|
10
|
-
features:
|
|
11
|
+
features: UserFeatureFlag[];
|
|
11
12
|
}>;
|
|
12
|
-
impersonationLogin(token: string): Promise<
|
|
13
|
-
fetchLoginOptions(email: string): Promise<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
login(params: LoginRequestPayload): Promise<LoginResponsePayload>;
|
|
21
|
-
loginWithApiCredentials(apiId: String, apiKey: String): Promise<LoginResponsePayload>;
|
|
22
|
-
loginWithWidgetCredentials(widgetId: String, widgetKey: String): Promise<LoginResponsePayload>;
|
|
23
|
-
loginWithProvider(provider: string, payload: GoogleAuthRequestPayload): Promise<LoginResponsePayload>;
|
|
13
|
+
impersonationLogin(token: string): Promise<User>;
|
|
14
|
+
fetchLoginOptions(email: string): Promise<AuthOptionsResponsePayload>;
|
|
15
|
+
fetchSignupOptions(email: string): Promise<AuthOptionsResponsePayload>;
|
|
16
|
+
fetchProviderConfig(provider: string): Promise<AuthProviderConfigPayload>;
|
|
17
|
+
login(params: LoginRequestPayload): Promise<User>;
|
|
18
|
+
loginWithApiCredentials(apiId: string, apiKey: string): Promise<User>;
|
|
19
|
+
loginWithWidgetCredentials(widgetId: string, widgetKey: string): Promise<User>;
|
|
20
|
+
loginWithProvider(provider: string, payload: GoogleAuthRequestPayload): Promise<User>;
|
|
24
21
|
show(email: string): Promise<{
|
|
25
|
-
users:
|
|
22
|
+
users: User[];
|
|
26
23
|
}>;
|
|
27
24
|
logout(payload: LogoutParams, config?: Partial<AxiosRequestConfig>): Promise<void>;
|
|
28
25
|
resetPassword(email: string): Promise<{
|
|
@@ -35,24 +32,26 @@ export declare const EvercamApi: {
|
|
|
35
32
|
remotePasswordUpdate(email: string, payload: RemotePasswordUpdateRequestPayload): Promise<{
|
|
36
33
|
message: string;
|
|
37
34
|
}>;
|
|
38
|
-
confirm(email: string, payload:
|
|
39
|
-
deleteActiveSession(sessionId: string, payload
|
|
35
|
+
confirm(email: string, payload: ConfirmUserRequestPayload): Promise<User>;
|
|
36
|
+
deleteActiveSession(sessionId: string, payload: DeleteActiveSessionRequestPayload): Promise<void>;
|
|
40
37
|
getActiveSessions(params: AxiosRequestConfig & {
|
|
41
38
|
params: SessionsListRequestPayload;
|
|
42
39
|
}): Promise<PaginatedItems<UserSession>>;
|
|
43
40
|
update(email: string, params?: Partial<UserUpdateRequestPayload>): Promise<{
|
|
44
|
-
users:
|
|
41
|
+
users: User[];
|
|
45
42
|
}>;
|
|
46
43
|
delete(email: string, params: UserDeleteRequestPayload): Promise<void>;
|
|
47
44
|
fetchPermissions(): Promise<{
|
|
48
45
|
permissions: string[];
|
|
49
46
|
}>;
|
|
50
|
-
getProjectContacts(projectExid: ProjectExid): Promise<
|
|
47
|
+
getProjectContacts(projectExid: ProjectExid): Promise<ProjectContactsResponsePayload>;
|
|
51
48
|
};
|
|
52
49
|
notifications: {
|
|
53
|
-
get(): Promise<
|
|
54
|
-
markAllAsRead(
|
|
55
|
-
|
|
50
|
+
get(): Promise<PaginatedItems<Notification>>;
|
|
51
|
+
markAllAsRead(): Promise<{
|
|
52
|
+
message: string;
|
|
53
|
+
}>;
|
|
54
|
+
markAsRead(id: number): Promise<Notification>;
|
|
56
55
|
};
|
|
57
56
|
bim: {
|
|
58
57
|
getBimSnapshot(cameraId: string, dateTime: string, payload: Partial<BimSnapshotRequestPayload>, extraParams?: AxiosRequestConfig): Promise<BimSnapshotResponsePayload>;
|
|
@@ -67,7 +66,7 @@ export declare const EvercamApi: {
|
|
|
67
66
|
cameras: {
|
|
68
67
|
getCameras(params: {
|
|
69
68
|
params?: Partial<FetchCameraQueryParams>;
|
|
70
|
-
config?:
|
|
69
|
+
config?: SwrRequestConfig<CamerasResponsePayload>;
|
|
71
70
|
}): Promise<CamerasResponsePayload>;
|
|
72
71
|
getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
|
|
73
72
|
getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
|
|
@@ -81,19 +80,22 @@ export declare const EvercamApi: {
|
|
|
81
80
|
to: string;
|
|
82
81
|
};
|
|
83
82
|
}): Promise<CameraStatusLog[]>;
|
|
84
|
-
updateCamera(exid: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
83
|
+
updateCamera(exid: string, params: Partial<CameraUpdateRequestPayload>): Promise<CamerasResponsePayload>;
|
|
85
84
|
};
|
|
86
85
|
projects: {
|
|
87
|
-
index({ params, config, }
|
|
86
|
+
index({ params, config, }?: {
|
|
88
87
|
params?: ApiCredentials;
|
|
89
|
-
config
|
|
90
|
-
}): Promise<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
config?: SwrRequestConfig<Project[]>;
|
|
89
|
+
}): Promise<Project[]>;
|
|
90
|
+
create(params: {
|
|
91
|
+
name: string;
|
|
92
|
+
}): Promise<{
|
|
93
|
+
project: ProjectCreateResponse;
|
|
94
94
|
}>;
|
|
95
|
+
getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
|
|
96
|
+
createLogo(projectId: string, formData: FormData): Promise<Logo>;
|
|
95
97
|
deleteLogo(projectId: string, id: number): Promise<void>;
|
|
96
|
-
updateLogo(projectId: string, id: number, name: string): Promise<
|
|
98
|
+
updateLogo(projectId: string, id: number, name: string): Promise<Logo>;
|
|
97
99
|
updateThumbnail(projectExid: string, params: {
|
|
98
100
|
cameraExid?: string;
|
|
99
101
|
uploadedThumbnail?: string;
|
|
@@ -101,24 +103,24 @@ export declare const EvercamApi: {
|
|
|
101
103
|
message: string;
|
|
102
104
|
}>;
|
|
103
105
|
getThumbnailData(projectExid: string): Promise<ThumbnailData>;
|
|
104
|
-
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<
|
|
106
|
+
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<void>;
|
|
105
107
|
updatePlaceholderThumbnail(projectExid: string, params: {
|
|
106
108
|
placeholder?: string;
|
|
107
109
|
}): Promise<{
|
|
108
110
|
message: string;
|
|
109
111
|
}>;
|
|
110
|
-
getPlaceholderThumbnailData(projectExid: string): Promise<
|
|
112
|
+
getPlaceholderThumbnailData(projectExid: string): Promise<PlaceholderThumbnailData>;
|
|
111
113
|
transferOwnership(projectExid: string, newOwnerId: number): Promise<{
|
|
112
114
|
message: string;
|
|
113
115
|
}>;
|
|
114
|
-
getUsers(projectExid: string): Promise<
|
|
116
|
+
getUsers(projectExid: string): Promise<ProjectUsersResponsePayload>;
|
|
115
117
|
getCameras(projectExid: string): Promise<{
|
|
116
118
|
cameras: Camera[];
|
|
117
119
|
}>;
|
|
118
120
|
getCameraRefs(projectExid: string): Promise<{
|
|
119
121
|
cameras: Camera[];
|
|
120
122
|
}>;
|
|
121
|
-
getTeamMembers(): Promise<
|
|
123
|
+
getTeamMembers(): Promise<ProjectMember[]>;
|
|
122
124
|
getMembers(projectExid: string): Promise<ProjectMembersResponsePayload>;
|
|
123
125
|
inviteMembers(projectExid: string, payload: ProjectMembersRequestPayload): Promise<ProjectInviteMembersResponsePayload>;
|
|
124
126
|
removeMembers(projectExid: string, emails: string[]): Promise<void>;
|
|
@@ -144,11 +146,11 @@ export declare const EvercamApi: {
|
|
|
144
146
|
};
|
|
145
147
|
aconex: {
|
|
146
148
|
authenticate(payload: AconexAuthCallbackParams): Promise<void>;
|
|
147
|
-
getUserProjects(): Promise<
|
|
149
|
+
getUserProjects(): Promise<AconexUserProject[]>;
|
|
148
150
|
revoke(): Promise<void>;
|
|
149
151
|
uploadEditedSnapshot(projectId: number, payload: AconexEditedImageUploadRequestPayload): Promise<void>;
|
|
150
|
-
getDocumentSchema(projectId: number): Promise<
|
|
151
|
-
getDocumentTypeSchema(projectId: number, documentTypeId: string): Promise<
|
|
152
|
+
getDocumentSchema(projectId: number): Promise<AconexDocumentSchema[]>;
|
|
153
|
+
getDocumentTypeSchema(projectId: number, documentTypeId: string): Promise<AconexDocumentTypeSchema[]>;
|
|
152
154
|
};
|
|
153
155
|
procore: {
|
|
154
156
|
getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
|
|
@@ -163,35 +165,46 @@ export declare const EvercamApi: {
|
|
|
163
165
|
getAssignees(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationAssignee>>;
|
|
164
166
|
getDistributionMembers(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationDistributionMember>>;
|
|
165
167
|
createObservation(formData: FormData): Promise<void>;
|
|
166
|
-
getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<
|
|
167
|
-
getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<
|
|
168
|
+
getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
169
|
+
getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
168
170
|
getTrades(payload: ProcoreCompanyRequestPayload): Promise<Array<ProcoreObservationTrades>>;
|
|
169
|
-
getHazards(payload: ProcoreCompanyRequestPayload): Promise<
|
|
171
|
+
getHazards(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
170
172
|
getLocations(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationLocation>>;
|
|
171
173
|
getSpecificationSections(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationSpecificationSection>>;
|
|
172
|
-
getCustomFieldOptions(payload:
|
|
173
|
-
options: {
|
|
174
|
-
[key: string]: string[];
|
|
175
|
-
};
|
|
176
|
-
}>;
|
|
174
|
+
getCustomFieldOptions(payload: ProcoreCustomFieldOptionsRequestPayload): Promise<Array<ProcoreObservationListItem>>;
|
|
177
175
|
};
|
|
178
176
|
autodesk: {
|
|
179
177
|
sendRevoke(): Promise<void>;
|
|
180
|
-
getUserHubs(): Promise<
|
|
181
|
-
getProjects(hubId: string): Promise<
|
|
182
|
-
getFolders(hubId: string, projectId: string): Promise<Array<
|
|
183
|
-
getSubFolders(projectId: string, parentFolderId: string, getDerivatives:
|
|
184
|
-
getFolder(projectId: string, folderId: string): Promise<
|
|
185
|
-
uploadEditedSnapshot(payload:
|
|
178
|
+
getUserHubs(): Promise<AutodeskUserHub[]>;
|
|
179
|
+
getProjects(hubId: string): Promise<AutodeskProject[]>;
|
|
180
|
+
getFolders(hubId: string, projectId: string): Promise<Array<AutodeskFolder>>;
|
|
181
|
+
getSubFolders(projectId: string, parentFolderId: string, getDerivatives: boolean): Promise<Array<AutodeskFolder>>;
|
|
182
|
+
getFolder(projectId: string, folderId: string): Promise<AutodeskFolder>;
|
|
183
|
+
uploadEditedSnapshot(payload: AutodeskSnapshot): Promise<null>;
|
|
186
184
|
fetchViewerToken(exid: string): Promise<AutodeskTokenResponsePayload>;
|
|
187
185
|
};
|
|
188
186
|
voyageControl: {
|
|
189
|
-
connect(payload: VoyageControlConnectorPayload): Promise<
|
|
190
|
-
sendRevoke(): Promise<
|
|
187
|
+
connect(payload: VoyageControlConnectorPayload): Promise<void>;
|
|
188
|
+
sendRevoke(): Promise<void>;
|
|
189
|
+
};
|
|
190
|
+
ring: {
|
|
191
|
+
authenticate(payload: {
|
|
192
|
+
code: string;
|
|
193
|
+
}): Promise<void>;
|
|
194
|
+
getDevices(): Promise<RingDevicesResponsePayload>;
|
|
195
|
+
importDevices(payload: RingImportDevicesPayload): Promise<RingImportResponsePayload>;
|
|
196
|
+
moveDevice(cameraExid: string, payload: RingMoveDevicePayload): Promise<RingMoveDeviceResponsePayload>;
|
|
197
|
+
deleteDevice(cameraExid: string): Promise<{
|
|
198
|
+
status: string;
|
|
199
|
+
cameraExid: string;
|
|
200
|
+
}>;
|
|
201
|
+
disconnect(): Promise<void>;
|
|
202
|
+
startLiveView(cameraExid: string, payload: RingLiveViewPayload): Promise<RingLiveViewResponse>;
|
|
203
|
+
stopLiveView(cameraExid: string, sessionId: string): Promise<RingStopLiveViewResponse>;
|
|
191
204
|
};
|
|
192
205
|
xweather: {
|
|
193
206
|
connect(projectExid: string, payload: XWeatherCreatePayload): Promise<XWeatherResponse>;
|
|
194
|
-
revoke(projectExid: string): Promise<
|
|
207
|
+
revoke(projectExid: string): Promise<void>;
|
|
195
208
|
};
|
|
196
209
|
recordings: {
|
|
197
210
|
oldest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
@@ -204,9 +217,9 @@ export declare const EvercamApi: {
|
|
|
204
217
|
};
|
|
205
218
|
progressPhotos: {
|
|
206
219
|
index(projectId: string): Promise<ProgressPhotosResponsePayload>;
|
|
207
|
-
show(id: string): Promise<
|
|
220
|
+
show(id: string): Promise<ProgressPhotoItemResponsePayload>;
|
|
208
221
|
create(payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
|
|
209
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
222
|
+
update(id: string | number, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
210
223
|
unsubscribe(progressPhotoId: string, params: ProgressPhotosUnSubscribeParams): Promise<ProgressPhotosResponsePayload>;
|
|
211
224
|
delete(id: string, params?: ApiCredentials): Promise<void>;
|
|
212
225
|
};
|
|
@@ -214,9 +227,9 @@ export declare const EvercamApi: {
|
|
|
214
227
|
getAllMedia(projectExid: string, params: MediaFilterQueryParams): Promise<PaginatedItems<Media>>;
|
|
215
228
|
getAllMediaUsers(projectExid: string): Promise<MediaUsersResponsePayload>;
|
|
216
229
|
cShow(projectExid: string, id: string): Promise<Media>;
|
|
217
|
-
cCreate(projectExid: string, payload: MediaCreateRequestPayload): Promise<Media>;
|
|
218
|
-
cUpdate(projectExid:
|
|
219
|
-
cDelete(projectExid:
|
|
230
|
+
cCreate(projectExid: string, payload: FormData | MediaCreateRequestPayload, onUploadProgress?: (progressEvent: any) => void): Promise<Media>;
|
|
231
|
+
cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Media>;
|
|
232
|
+
cDelete(projectExid: string, id: string): Promise<void>;
|
|
220
233
|
};
|
|
221
234
|
shares: {
|
|
222
235
|
deleteShareRequest(payload: {
|
|
@@ -226,7 +239,9 @@ export declare const EvercamApi: {
|
|
|
226
239
|
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
227
240
|
};
|
|
228
241
|
company: {
|
|
229
|
-
show(companyId: string | undefined, params?:
|
|
242
|
+
show(companyId: string | undefined, params?: {
|
|
243
|
+
with_zoho?: boolean;
|
|
244
|
+
}): Promise<CompanySummary>;
|
|
230
245
|
getCompanyUsers(params: {
|
|
231
246
|
params: {
|
|
232
247
|
page: number;
|
|
@@ -239,7 +254,9 @@ export declare const EvercamApi: {
|
|
|
239
254
|
limit: number;
|
|
240
255
|
};
|
|
241
256
|
}): Promise<PaginatedItems<CompanyProject>>;
|
|
242
|
-
getCompanyCameras(params:
|
|
257
|
+
getCompanyCameras(params: PaginationParams | {
|
|
258
|
+
params: PaginationParams;
|
|
259
|
+
}): Promise<PaginatedItems<CompanyCameraSummary>>;
|
|
243
260
|
getCompanyKits(params: {
|
|
244
261
|
params: {
|
|
245
262
|
page: number;
|
|
@@ -259,11 +276,11 @@ export declare const EvercamApi: {
|
|
|
259
276
|
}): Promise<BatteryVoltage[]>;
|
|
260
277
|
};
|
|
261
278
|
layers: {
|
|
262
|
-
getLayer(cameraId: string, params: BimLayersQueryParams, extraParams?:
|
|
263
|
-
getLayersById(cameraId: string, id: number, params:
|
|
279
|
+
getLayer(cameraId: string, params: BimLayersQueryParams, extraParams?: AxiosRequestConfig): Promise<BIMLayer>;
|
|
280
|
+
getLayersById(cameraId: string, id: number, params: ApiCredentials): Promise<BIMLayer>;
|
|
264
281
|
getLayers(cameraId: string, params: BimLayersQueryParams): Promise<BIMLayer[]>;
|
|
265
282
|
createLayer(cameraId: string, params: BIMLayerPostPayload): Promise<BIMLayer>;
|
|
266
|
-
deleteLayer(cameraId: string, id: number, params
|
|
283
|
+
deleteLayer(cameraId: string, id: number, params?: ApiCredentials): Promise<void>;
|
|
267
284
|
updateLayer(cameraId: string, id: number, params: Partial<BIMLayerPostPayload>): Promise<BIMLayer>;
|
|
268
285
|
};
|
|
269
286
|
comments: {
|
|
@@ -276,23 +293,45 @@ export declare const EvercamApi: {
|
|
|
276
293
|
getStory(params: {
|
|
277
294
|
route: string;
|
|
278
295
|
params: string;
|
|
279
|
-
}): Promise<
|
|
296
|
+
}): Promise<StoryblokResponse>;
|
|
280
297
|
};
|
|
281
298
|
mailing: {
|
|
282
299
|
unsubscribe(params: {
|
|
283
300
|
key: string;
|
|
284
|
-
}): Promise<
|
|
301
|
+
}): Promise<void>;
|
|
285
302
|
};
|
|
286
303
|
widgets: {
|
|
287
304
|
index(params: Partial<WidgetsListRequestPayload>): Promise<PaginatedItems<Widget>>;
|
|
288
305
|
show(id: number): Promise<WidgetFull>;
|
|
289
306
|
getByKeys(): Promise<WidgetFull>;
|
|
290
|
-
setSessionSettings(params:
|
|
307
|
+
setSessionSettings(params: WidgetSessionSettingsPayload): Promise<WidgetFull>;
|
|
291
308
|
setStatus(id: number, params: {
|
|
292
309
|
active: boolean;
|
|
293
310
|
}): Promise<WidgetFull>;
|
|
294
311
|
create(payload: WidgetPayload): Promise<WidgetFull>;
|
|
295
312
|
update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
|
|
296
|
-
delete(id: number): Promise<
|
|
313
|
+
delete(id: number): Promise<void>;
|
|
314
|
+
};
|
|
315
|
+
developerApps: {
|
|
316
|
+
index(): Promise<{
|
|
317
|
+
items: OAuthClient[];
|
|
318
|
+
}>;
|
|
319
|
+
show(clientId: string): Promise<OAuthClient>;
|
|
320
|
+
create(payload: CreateOAuthClientPayload): Promise<OAuthClientWithSecret>;
|
|
321
|
+
update(clientId: string, payload: UpdateOAuthClientPayload): Promise<OAuthClient>;
|
|
322
|
+
delete(clientId: string): Promise<void>;
|
|
323
|
+
regenerateSecret(clientId: string): Promise<OAuthClientWithSecret>;
|
|
324
|
+
};
|
|
325
|
+
oauth: {
|
|
326
|
+
getClientInfo(clientId: string, scope: string): Promise<OAuthConsentInfo>;
|
|
327
|
+
submitConsent(payload: OAuthConsentPayload): Promise<OAuthConsentResponse>;
|
|
328
|
+
};
|
|
329
|
+
zoho: {
|
|
330
|
+
getDealLocation(dealId: string): Promise<{
|
|
331
|
+
geographicBounds: GeoJSONPolygon | null;
|
|
332
|
+
}>;
|
|
333
|
+
updateDealLocation(dealId: string, payload: {
|
|
334
|
+
geographicBounds: GeoJSONPolygon;
|
|
335
|
+
}): Promise<void>;
|
|
297
336
|
};
|
|
298
337
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep,
|
|
1
|
+
import { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, ActiveUsersResponsePayload, ActiveUsersRequestPayload, HeatmapIntersectionsRequestParams, SmartSearchHeatmapPoint, SiteAnalyticsProcessingStatusPayload, SiteAnalyticsProcessingStatus } from "@evercam/api/types";
|
|
2
2
|
import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
|
|
3
|
-
import {
|
|
3
|
+
import type { SwrRequestConfig } from "@evercam/api/types";
|
|
4
4
|
export declare function getLabsBaseUrl(): string | null | undefined;
|
|
5
5
|
export declare const EvercamLabsApi: {
|
|
6
6
|
posthog: {
|
|
@@ -17,11 +17,10 @@ export declare const EvercamLabsApi: {
|
|
|
17
17
|
getOneConversation(conversationId: number): Promise<PaginatedItems<CopilotConversation>>;
|
|
18
18
|
getConversationMessages(conversationId: number, params: LabsPaginationParams): Promise<PaginatedItems<CopilotMessage>>;
|
|
19
19
|
getMessageSteps(message: CopilotMessage): Promise<CopilotMessageStep[]>;
|
|
20
|
-
submitMessageFeedback
|
|
20
|
+
submitMessageFeedback({ conversationId, messageId, ...params }: FeedbackPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
21
21
|
};
|
|
22
22
|
siteAnalytics: {
|
|
23
|
-
getProcessingStatus(params?: SiteAnalyticsProcessingStatusPayload, config?:
|
|
24
|
-
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
|
|
23
|
+
getProcessingStatus(params?: SiteAnalyticsProcessingStatusPayload, config?: SwrRequestConfig<SiteAnalyticsProcessingStatus[]>): Promise<SiteAnalyticsProcessingStatus[]>;
|
|
25
24
|
getIntersectionsHeatmapData(params: HeatmapIntersectionsRequestParams): Promise<SmartSearchHeatmapPoint[]>;
|
|
26
25
|
};
|
|
27
26
|
googleCloudStorage: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExNvrDeviceConfig, ExNvrLoginResponse, ExNvrRecordingInterval, ExNvrSystemStatus } from "@evercam/api/types
|
|
1
|
+
import { ExNvrDeviceConfig, ExNvrLoginResponse, ExNvrRecordingInterval, ExNvrSystemStatus } from "@evercam/api/types";
|
|
2
2
|
export declare const ExNvrApi: {
|
|
3
3
|
users: {
|
|
4
4
|
login({ apiUrl, username, password, }: {
|
|
@@ -1,96 +1,148 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from "axios";
|
|
2
|
-
import type {
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import type { SwrRequestConfig } from "@evercam/api/types";
|
|
3
|
+
import type { _360AssetsQueryParams, _360AssetsRequestPayload, _360QueueQueryParams, _360AssetsUploadPayload, _360AssetsResponse, _360AssetsCountsResponse, _360QueueResponse, _360FloorsResponse, DroneQueueResponse, DroneUploadsResponse, IngestUploadInitResponse, BimUploadsResponse, MobileAssetsQueryParams, MobileCaptureAssetsResponse, BimUploadPayload, BimUploadsQueryParams, CalculateMeasuringOperationRequestPayload, DrawingsRequestPayload, DronesQueryParams, DroneUploadUpdateRequestPayload, FlightImagesQueryParams, Generate360MapRequestPayload, GenerateFloorPayload, InspectionToolRequestPayload, JsonObject, _360WalkV2, _360FloorV2 } from "@evercam/api/types";
|
|
4
|
+
import { IngestVersions, IngestTypes } from "@evercam/api/types";
|
|
5
|
+
export declare const getIngestApiUrls: (type: string) => string[];
|
|
5
6
|
export declare const IngestApi: {
|
|
6
7
|
drone: {
|
|
7
8
|
createUpload(projectId: string, params: {
|
|
8
9
|
uploadedBy: string;
|
|
9
|
-
}): Promise<
|
|
10
|
-
reprocessDrone(id: number, params
|
|
10
|
+
}): Promise<IngestUploadInitResponse>;
|
|
11
|
+
reprocessDrone(id: number, params?: JsonObject): Promise<void>;
|
|
11
12
|
getDrones(params: {
|
|
12
13
|
params: Partial<DronesQueryParams>;
|
|
13
|
-
}): Promise<
|
|
14
|
+
}): Promise<DroneUploadsResponse>;
|
|
14
15
|
getArchive(id: number, params: {
|
|
15
16
|
dataType: string;
|
|
16
|
-
}): Promise<
|
|
17
|
-
deleteUpload(id: number): Promise<
|
|
17
|
+
}): Promise<Blob>;
|
|
18
|
+
deleteUpload(id: number): Promise<void>;
|
|
18
19
|
prepareForUpload(projectId: string, params: {
|
|
19
20
|
uploadedBy: string;
|
|
20
21
|
token: string;
|
|
21
|
-
}): Promise<
|
|
22
|
+
}): Promise<void>;
|
|
22
23
|
upload(projectId: string, params: {
|
|
23
24
|
uploadedBy: string;
|
|
24
25
|
token: string;
|
|
25
|
-
}, payload: DroneUploadUpdateRequestPayload): Promise<
|
|
26
|
+
}, payload: DroneUploadUpdateRequestPayload): Promise<void>;
|
|
26
27
|
verifyToken(projectId: string, params: {
|
|
27
28
|
token: string;
|
|
28
|
-
}): Promise<
|
|
29
|
-
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<
|
|
30
|
-
inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<
|
|
31
|
-
isInspectionEnabled(projectId: string, params
|
|
32
|
-
getDroneQueueSize(
|
|
33
|
-
getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<
|
|
34
|
-
checkFlightAvailableFeatures(projectId: string, params:
|
|
29
|
+
}): Promise<JsonObject>;
|
|
30
|
+
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<JsonObject>;
|
|
31
|
+
inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<JsonObject>;
|
|
32
|
+
isInspectionEnabled(projectId: string, params?: JsonObject): Promise<JsonObject>;
|
|
33
|
+
getDroneQueueSize(droneUrl: string): Promise<DroneQueueResponse>;
|
|
34
|
+
getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<JsonObject>;
|
|
35
|
+
checkFlightAvailableFeatures(projectId: string, params: JsonObject): Promise<JsonObject>;
|
|
35
36
|
};
|
|
36
37
|
assets360: {
|
|
37
38
|
get360Assets(params: {
|
|
38
39
|
params: Partial<_360AssetsQueryParams>;
|
|
39
|
-
}
|
|
40
|
+
}): Promise<_360AssetsResponse>;
|
|
40
41
|
get360AssetsCounts(projectId: string, params: {
|
|
41
42
|
uploadedBy: string;
|
|
42
|
-
}
|
|
43
|
-
get360AssetLink(projectId: string, date: string, floor: string, assetType: string, drawingId: string, marker: string | null): Promise<
|
|
44
|
-
update360(id: number, payload: _360AssetsRequestPayload
|
|
45
|
-
update360ByProjectDateName(projectId: string, date: string, floor: string, payload: _360AssetsRequestPayload
|
|
46
|
-
deleteUpload(id: number
|
|
43
|
+
}): Promise<_360AssetsCountsResponse>;
|
|
44
|
+
get360AssetLink(projectId: string, date: string, floor: string, assetType: string, drawingId: string, marker: string | null): Promise<string>;
|
|
45
|
+
update360(id: number, payload: _360AssetsRequestPayload): Promise<_360WalkV2>;
|
|
46
|
+
update360ByProjectDateName(projectId: string, date: string, floor: string, payload: _360AssetsRequestPayload): Promise<_360WalkV2>;
|
|
47
|
+
deleteUpload(id: number): Promise<void>;
|
|
47
48
|
getArchive(id: number, params: {
|
|
48
49
|
dateType: string;
|
|
49
|
-
}
|
|
50
|
-
createUpload(projectId: string, params: _360AssetsRequestPayload
|
|
51
|
-
upload(id: number, params:
|
|
52
|
-
reprocess360(id: number
|
|
50
|
+
}): Promise<Blob>;
|
|
51
|
+
createUpload(projectId: string, params: _360AssetsRequestPayload): Promise<IngestUploadInitResponse>;
|
|
52
|
+
upload(id: number, params: JsonObject, payload: _360AssetsUploadPayload): Promise<_360WalkV2>;
|
|
53
|
+
reprocess360(id: number): Promise<void>;
|
|
53
54
|
drawingExists(payload: {
|
|
54
55
|
params: {
|
|
55
56
|
name: string;
|
|
56
57
|
project_id: string;
|
|
57
58
|
};
|
|
58
|
-
}
|
|
59
|
+
}): Promise<JsonObject>;
|
|
59
60
|
getDrawings(payload: {
|
|
60
61
|
params: DrawingsRequestPayload;
|
|
61
|
-
config
|
|
62
|
-
}
|
|
63
|
-
getDrawingById(id: number, projectExid: string
|
|
64
|
-
updateDrawing(id: number, projectExid: string, payload: GenerateFloorPayload
|
|
65
|
-
deleteDrawing(id: number
|
|
66
|
-
transferWalks(sourceId: number, targetId: number, projectExid: string
|
|
67
|
-
createDrawing(projectExid: string, payload: GenerateFloorPayload, createdBy: string
|
|
62
|
+
config?: SwrRequestConfig<_360FloorsResponse>;
|
|
63
|
+
}): Promise<_360FloorsResponse>;
|
|
64
|
+
getDrawingById(id: number, projectExid: string): Promise<_360FloorV2>;
|
|
65
|
+
updateDrawing(id: number, projectExid: string, payload: GenerateFloorPayload): Promise<_360FloorV2>;
|
|
66
|
+
deleteDrawing(id: number): Promise<void>;
|
|
67
|
+
transferWalks(sourceId: number, targetId: number, projectExid: string): Promise<void>;
|
|
68
|
+
createDrawing(projectExid: string, payload: GenerateFloorPayload, createdBy: string): Promise<_360FloorV2>;
|
|
68
69
|
fetchDrawingOverlay(id: number, params: {
|
|
69
70
|
view: boolean;
|
|
70
|
-
}, onDownloadProgress: (
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
}, onDownloadProgress: (progress: ProgressEvent) => void): Promise<Blob>;
|
|
72
|
+
getFloorArchive(id: number): Promise<string>;
|
|
73
|
+
generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<JsonObject>;
|
|
74
|
+
get360QueueSize(ingestUrl: string, params?: _360QueueQueryParams): Promise<_360QueueResponse>;
|
|
73
75
|
};
|
|
74
76
|
bim: {
|
|
75
77
|
createUpload(projectId: string, params: {
|
|
76
78
|
uploadedBy: string;
|
|
77
|
-
}): Promise<
|
|
79
|
+
}): Promise<IngestUploadInitResponse>;
|
|
78
80
|
getBIMs(params: {
|
|
79
81
|
params: Partial<BimUploadsQueryParams>;
|
|
80
|
-
}): Promise<
|
|
81
|
-
getArchive(id: number): Promise<
|
|
82
|
-
deleteUpload(id: number): Promise<
|
|
82
|
+
}): Promise<BimUploadsResponse>;
|
|
83
|
+
getArchive(id: number): Promise<Blob>;
|
|
84
|
+
deleteUpload(id: number): Promise<void>;
|
|
83
85
|
upload(projectId: string, params: {
|
|
84
86
|
id: string;
|
|
85
87
|
name: string;
|
|
86
|
-
}, payload: BimUploadPayload): Promise<
|
|
88
|
+
}, payload: BimUploadPayload): Promise<void>;
|
|
87
89
|
};
|
|
88
90
|
mobileCapture: {
|
|
89
|
-
getProjectMobileAssets(params:
|
|
90
|
-
getMobileAssetPhoto(assetId: string | number, params:
|
|
91
|
-
|
|
91
|
+
getProjectMobileAssets(params: MobileAssetsQueryParams, extraConfig?: AxiosRequestConfig): Promise<MobileCaptureAssetsResponse>;
|
|
92
|
+
getMobileAssetPhoto(assetId: string | number, params: {
|
|
93
|
+
projectId?: string;
|
|
94
|
+
project_id?: string;
|
|
95
|
+
isThumbnail?: boolean;
|
|
96
|
+
is_thumbnail?: boolean;
|
|
97
|
+
}): Promise<string>;
|
|
98
|
+
deleteAsset(assetId: string | number): Promise<void>;
|
|
92
99
|
};
|
|
93
100
|
utils: {
|
|
94
|
-
loadAllAssetsInQueue(): Promise<
|
|
101
|
+
loadAllAssetsInQueue(): Promise<({
|
|
102
|
+
ingestVersion: string;
|
|
103
|
+
id: number;
|
|
104
|
+
projectId: string;
|
|
105
|
+
consumed: boolean;
|
|
106
|
+
token: string;
|
|
107
|
+
flightDate: string;
|
|
108
|
+
flightGeolocation: string;
|
|
109
|
+
modelZip: string;
|
|
110
|
+
orthomosaicZip: string;
|
|
111
|
+
reportPdf: string;
|
|
112
|
+
uploadedBy: string;
|
|
113
|
+
processingStatus: import("@evercam/api/types").IngestProcessingStatus | string;
|
|
114
|
+
modelCesiumAssetId: string;
|
|
115
|
+
updatedAt: string;
|
|
116
|
+
hasTusLinks: boolean;
|
|
117
|
+
} | {
|
|
118
|
+
ingestVersion: string;
|
|
119
|
+
archive: string;
|
|
120
|
+
date: string;
|
|
121
|
+
deviceSerial: string | null;
|
|
122
|
+
endPosition: unknown | null;
|
|
123
|
+
floor: string;
|
|
124
|
+
floorId: number;
|
|
125
|
+
id: number;
|
|
126
|
+
images: string[];
|
|
127
|
+
insertedAt: string;
|
|
128
|
+
mobileAudios: string[];
|
|
129
|
+
mobileAudiosArchive: string;
|
|
130
|
+
mobilePhotos: string[];
|
|
131
|
+
mobilePhotosArchive: string;
|
|
132
|
+
model: string;
|
|
133
|
+
name: string;
|
|
134
|
+
processingStatus: string;
|
|
135
|
+
projectId: string;
|
|
136
|
+
report: string;
|
|
137
|
+
route: unknown | null;
|
|
138
|
+
startPosition: unknown | null;
|
|
139
|
+
tusLinks: unknown | null;
|
|
140
|
+
updatedAt: string;
|
|
141
|
+
uploadedBy: string;
|
|
142
|
+
videoArchive: string;
|
|
143
|
+
videos: string[];
|
|
144
|
+
})[]>;
|
|
145
|
+
getIngestVersion(ingestUrl: string): IngestVersions;
|
|
146
|
+
chooseIngestApiUrl(type: IngestTypes): Promise<string>;
|
|
95
147
|
};
|
|
96
148
|
};
|
package/dist/api/api/ptzApi.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { MoveParams, ZoomParams } from "
|
|
1
|
+
import { MoveParams, ZoomParams } from "@evercam/api/types";
|
|
2
2
|
export declare const PtzApi: {
|
|
3
3
|
presets: {
|
|
4
|
-
index({ cameraExid }: {
|
|
5
|
-
cameraExid: string;
|
|
6
|
-
}): Promise<
|
|
4
|
+
index({ cameraExid, }: {
|
|
5
|
+
cameraExid: string;
|
|
6
|
+
}): Promise<{
|
|
7
|
+
presets: Array<{
|
|
8
|
+
name: string;
|
|
9
|
+
token: string;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
7
12
|
go({ cameraExid, presetId, }: {
|
|
8
13
|
cameraExid: string;
|
|
9
14
|
presetId: string | number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PaginatedItems } from "@evercam/shared/types";
|
|
2
|
-
import { VideoWall,
|
|
2
|
+
import { VideoWall, VideoWallListParams, VideoWallCreateUpdatePayload } from "@evercam/api/types/videoWall";
|
|
3
3
|
export declare const VideoWallApi: {
|
|
4
|
-
list(params?:
|
|
4
|
+
list(params?: VideoWallListParams): Promise<import("axios").AxiosResponse<PaginatedItems<VideoWall>, any>>;
|
|
5
5
|
create(body: VideoWallCreateUpdatePayload): Promise<import("axios").AxiosResponse<VideoWall, any>>;
|
|
6
6
|
get(exid: string | number): Promise<import("axios").AxiosResponse<VideoWall, any>>;
|
|
7
7
|
update(exid: string | number, body: Partial<VideoWallCreateUpdatePayload>): Promise<import("axios").AxiosResponse<VideoWall, any>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CurrentWeatherRequestPayload, HistoryWeatherRequestPayload, WeatherDataResponse, WeatherResponsePayload } from "@evercam/api/types";
|
|
1
|
+
import { CurrentWeatherRequestPayload, HistoryWeatherRequestPayload, WeatherDataResponse, WeatherReportRequestPayload, WeatherResponsePayload } from "@evercam/api/types";
|
|
2
2
|
import { AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare const WeatherApi: {
|
|
4
4
|
current(projectExid: string, payload: CurrentWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
|
|
5
5
|
historical(projectExid: string, payload: HistoryWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
|
|
6
|
-
report(projectExid: string, payload:
|
|
6
|
+
report(projectExid: string, payload: WeatherReportRequestPayload, config?: AxiosRequestConfig): Promise<{
|
|
7
7
|
data: WeatherDataResponse[];
|
|
8
8
|
}> | undefined;
|
|
9
9
|
};
|