@evercam/api 1.0.0-preview-fix-evercam-ui-publish-script-58a674953 → 1.0.0-preview-bump-node-e24fde544
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 +20 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +109 -25
- package/dist/api/api/aiApi.d.ts +146 -0
- 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/{evercamApi.d.ts → api/evercamApi.d.ts} +74 -25
- package/dist/api/api/evercamLabsApi.d.ts +43 -0
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/{ingestApi.d.ts → api/ingestApi.d.ts} +16 -8
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +1 -1
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/{types → api/types}/360.d.ts +18 -2
- package/dist/{types → api/types}/aconex.d.ts +1 -1
- package/dist/{types → api/types}/analytics.d.ts +79 -71
- package/dist/{types → api/types}/anpr.d.ts +11 -6
- package/dist/{types → api/types}/automation.d.ts +4 -0
- package/dist/{types → api/types}/axios.d.ts +15 -1
- package/dist/{types → api/types}/camera.d.ts +24 -56
- package/dist/api/types/comments.d.ts +59 -0
- package/dist/{types → api/types}/company.d.ts +29 -1
- package/dist/{types → api/types}/connector.d.ts +6 -1
- package/dist/api/types/coolify.d.ts +18 -0
- package/dist/{types → api/types}/copilot.d.ts +11 -9
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/api/types/detections.d.ts +126 -0
- package/dist/{types → api/types}/errors.d.ts +12 -0
- package/dist/{types → api/types}/gateReport.d.ts +50 -1
- package/dist/api/types/hdd.d.ts +63 -0
- package/dist/{types → api/types}/index.d.ts +9 -2
- package/dist/{types → api/types}/ingest.d.ts +4 -0
- package/dist/{types → api/types}/kit.d.ts +94 -10
- package/dist/{types → api/types}/nvr.d.ts +2 -1
- package/dist/{types/sitePlanner.d.ts → api/types/planner.d.ts} +10 -1
- package/dist/api/types/posthog.d.ts +18 -0
- package/dist/api/types/procore.d.ts +222 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +21 -7
- package/dist/{types → api/types}/project.d.ts +10 -1
- package/dist/{types → api/types}/recording.d.ts +1 -2
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/{types → api/types}/roi.d.ts +2 -1
- package/dist/{types → api/types}/routeParams.d.ts +2 -1
- package/dist/{types → api/types}/shared.d.ts +3 -17
- package/dist/{types → api/types}/shares.d.ts +5 -1
- package/dist/api/types/siteAnalytics.d.ts +142 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/{types → api/types}/streaming.d.ts +4 -27
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/{types → api/types}/time.d.ts +2 -0
- package/dist/{types → api/types}/timelapse.d.ts +15 -0
- package/dist/{types → api/types}/user.d.ts +1 -6
- package/dist/{types → api/types}/weather.d.ts +6 -2
- package/dist/{types → api/types}/widget.d.ts +32 -7
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1384 -770
- 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 +193 -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 +9 -0
- package/package.json +7 -6
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/aiApi.d.ts +0 -73
- package/dist/api/evercamLabsApi.d.ts +0 -50
- package/dist/api/weatherApi.d.ts +0 -25
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/detections.d.ts +0 -62
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/siteAnalytics.d.ts +0 -5
- /package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +0 -0
- /package/dist/api/{client → api/client}/axios.d.ts +0 -0
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +0 -0
- /package/dist/api/{videoWallApi.d.ts → api/videoWallApi.d.ts} +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/auditLogs.d.ts +0 -0
- /package/dist/{types → api/types}/autodesk.d.ts +0 -0
- /package/dist/{types → api/types}/bim.d.ts +0 -0
- /package/dist/{types → api/types}/compare.d.ts +0 -0
- /package/dist/{types → api/types}/credentials.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}/media.d.ts +0 -0
- /package/dist/{types → api/types}/notification.d.ts +0 -0
- /package/dist/{types → api/types}/router.d.ts +0 -0
- /package/dist/{types → api/types}/sim.d.ts +0 -0
- /package/dist/{types → api/types}/snapshots.d.ts +0 -0
- /package/dist/{types → api/types}/storageServers.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/videoWall.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
- /package/dist/{utils.d.ts → api/utils.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from "axios";
|
|
2
|
-
import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProjectsResponsePayload,
|
|
2
|
+
import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProjectsResponsePayload, ApiCredentials, AutodeskFolderResponsePayload, AutodeskProjectsResponsePayload, AutodeskTokenResponsePayload, AutodeskUploadSnapshotPayload, AutodeskUserHubsResponsePayload, AvailableDaysRequestPayload, AvailableDaysResponsePayload, AvailableHoursRequestPayload, AvailableHoursResponsePayload, BatteryReading, BatteryVoltage, BimCompareExportRequestPayload, BimCreationPayload, BIMLayer, BIMLayerPostPayload, BimLayersQueryParams, BimModelRequestPayload, BimModelResponsePayload, BimPendingImage, BimSnapshotRequestPayload, BimSnapshotResponsePayload, BimUploadCameraParameters, CameraExid, CameraLogsResponsePayload, CamerasResponsePayload, CameraStatusLog, CameraUpdateRequestPayload, CheckCameraPortPayload, Comment, CommentCreationRequestPayload, CommentsRequestPayload, Company, CompanyProject, CompanyKit, CompanyUser, Compare, CompareRequestPayload, ConnectorResponsePayload, Credentials, FetchCameraQueryParams, GoogleAuthRequestPayload, LoginRequestPayload, LoginResponsePayload, 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, ProgressPhotosCreateUpdateRequestPayload, ProgressPhotosResponsePayload, ProgressPhotosUnSubscribeParams, ProjectBatteryReading, ProjectExid, ProjectLogoResponsePayload, ProjectResponsePayload, ProjectShareResponse, RemotePasswordUpdateRequestPayload, ResendShareRequestPayload, SessionsListRequestPayload, Share, ShareCreateRequestPayload, ShareCreateResponsePayload, ShareDeletionRequestPayload, SharedUsersResponsePayload, ShareProjectCamerasRequestPayload, UpdateUserRestrictionPayload, UpdateCameraRestrictionPayload, ShareRequestsResponsePayload, SharesResponsePayload, SignupUserRequestPayload, Snapshot, SnapshotRangeRequestPayload, SnapshotRangeResponsePayload, ThumbnailData, TimelapseCreationRequestPayload, TimelapseCreationResponsePayload, TimelapseSnapshotRequestPayload, TimelapseSnapshotResponsePayload, UpdatePasswordRequestPayload, UserDeleteRequestPayload, UserSession, UserUpdateRequestPayload, VoyageControlConnectorPayload, XWeatherCreatePayload, XWeatherResponse, Widget, WidgetFull, WidgetPayload, WidgetsListRequestPayload, Camera, ProcoreNextObservationAvailableNumber } from "@evercam/api/types";
|
|
3
3
|
export declare const EvercamApi: {
|
|
4
4
|
apiStatus: {
|
|
5
5
|
getApiStatus(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -10,11 +10,18 @@ export declare const EvercamApi: {
|
|
|
10
10
|
features: string[];
|
|
11
11
|
}>;
|
|
12
12
|
impersonationLogin(token: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
13
|
+
fetchLoginOptions(email: string): Promise<{
|
|
14
|
+
options: any[];
|
|
15
|
+
}>;
|
|
16
|
+
fetchSignupOptions(email: string): Promise<{
|
|
17
|
+
options: any[];
|
|
18
|
+
}>;
|
|
19
|
+
fetchProviderConfig(provider: string): Promise<any>;
|
|
13
20
|
login(params: LoginRequestPayload): Promise<LoginResponsePayload>;
|
|
14
21
|
loginWithApiCredentials(apiId: String, apiKey: String): Promise<LoginResponsePayload>;
|
|
15
22
|
loginWithWidgetCredentials(widgetId: String, widgetKey: String): Promise<LoginResponsePayload>;
|
|
16
23
|
loginWithProvider(provider: string, payload: GoogleAuthRequestPayload): Promise<LoginResponsePayload>;
|
|
17
|
-
|
|
24
|
+
show(email: string): Promise<{
|
|
18
25
|
users: LoginResponsePayload[];
|
|
19
26
|
}>;
|
|
20
27
|
logout(payload: LogoutParams, config?: Partial<AxiosRequestConfig>): Promise<void>;
|
|
@@ -31,7 +38,6 @@ export declare const EvercamApi: {
|
|
|
31
38
|
confirm(email: string, payload: any): Promise<LoginResponsePayload>;
|
|
32
39
|
deleteActiveSession(sessionId: string, payload?: any): Promise<void>;
|
|
33
40
|
getActiveSessions(payload: SessionsListRequestPayload): Promise<PaginatedItems<UserSession>>;
|
|
34
|
-
getSessionActivities(payload: SessionActivitiesListRequestPayload): Promise<PaginatedItems<SessionActivity>>;
|
|
35
41
|
update(email: string, params?: Partial<UserUpdateRequestPayload>): Promise<{
|
|
36
42
|
users: LoginResponsePayload[];
|
|
37
43
|
}>;
|
|
@@ -56,7 +62,10 @@ export declare const EvercamApi: {
|
|
|
56
62
|
exportCompare(projectExid: string, payload: BimCompareExportRequestPayload): Promise<Compare>;
|
|
57
63
|
};
|
|
58
64
|
cameras: {
|
|
59
|
-
getCameras(
|
|
65
|
+
getCameras(params: {
|
|
66
|
+
params?: Partial<FetchCameraQueryParams>;
|
|
67
|
+
config?: AxiosRequestConfig;
|
|
68
|
+
}): Promise<CamerasResponsePayload>;
|
|
60
69
|
getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
|
|
61
70
|
getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
|
|
62
71
|
portCheck(payload: {
|
|
@@ -77,7 +86,10 @@ export declare const EvercamApi: {
|
|
|
77
86
|
updateCamera(exid: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
78
87
|
};
|
|
79
88
|
projects: {
|
|
80
|
-
index(params
|
|
89
|
+
index({ params, config, }: {
|
|
90
|
+
params?: ApiCredentials;
|
|
91
|
+
config: AxiosRequestConfig;
|
|
92
|
+
}): Promise<ProjectResponsePayload>;
|
|
81
93
|
getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
|
|
82
94
|
createLogo(projectId: string, formData: FormData): Promise<Logo & {
|
|
83
95
|
id: number;
|
|
@@ -91,6 +103,23 @@ export declare const EvercamApi: {
|
|
|
91
103
|
message: string;
|
|
92
104
|
}>;
|
|
93
105
|
getThumbnailData(projectExid: string): Promise<ThumbnailData>;
|
|
106
|
+
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
107
|
+
updatePlaceholderThumbnail(projectExid: string, params: {
|
|
108
|
+
placeholder?: string;
|
|
109
|
+
}): Promise<{
|
|
110
|
+
message: string;
|
|
111
|
+
}>;
|
|
112
|
+
getPlaceholderThumbnailData(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
113
|
+
transferOwnership(projectExid: string, newOwnerId: number): Promise<{
|
|
114
|
+
message: string;
|
|
115
|
+
}>;
|
|
116
|
+
getUsers(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
117
|
+
getCameras(projectExid: string): Promise<{
|
|
118
|
+
cameras: Camera[];
|
|
119
|
+
}>;
|
|
120
|
+
getCameraRefs(projectExid: string): Promise<{
|
|
121
|
+
cameras: Camera[];
|
|
122
|
+
}>;
|
|
94
123
|
};
|
|
95
124
|
timelapse: {
|
|
96
125
|
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
@@ -104,6 +133,9 @@ export declare const EvercamApi: {
|
|
|
104
133
|
cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Compare>;
|
|
105
134
|
cDelete(projectExid: string, id: string): Promise<void>;
|
|
106
135
|
};
|
|
136
|
+
projectConnectos: {
|
|
137
|
+
index(projectExid: string): Promise<Array<XWeatherResponse>>;
|
|
138
|
+
};
|
|
107
139
|
providers: {
|
|
108
140
|
getProviders(): Promise<ConnectorResponsePayload>;
|
|
109
141
|
};
|
|
@@ -116,10 +148,28 @@ export declare const EvercamApi: {
|
|
|
116
148
|
};
|
|
117
149
|
procore: {
|
|
118
150
|
getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
|
|
119
|
-
getUserProjects(payload:
|
|
120
|
-
|
|
151
|
+
getUserProjects(payload: ProcoreCompanyRequestPayload): Promise<ProcoreUserProjectsResponsePayload>;
|
|
152
|
+
getUserProjectPermissions(payload: ProcoreProjectRequestPayload): Promise<ProcoreUserProjectPermissionsResponsePayload>;
|
|
153
|
+
getProjectAlbums(payload: ProcoreProjectRequestPayload): Promise<ProcoreProjectsAlbumsPayload>;
|
|
121
154
|
uploadEditedSnapshot(payload: ProcoreEditedImageUploadRequestPayload): Promise<void>;
|
|
122
155
|
sendRevoke(): Promise<void>;
|
|
156
|
+
getObservationTypes(payload: ProcoreProjectRequestPayload): Promise<ProcoreObservationTypesResponsePayload>;
|
|
157
|
+
getObservationForm(payload: ProcoreObservationFormRequestPayload): Promise<ProcoreObservationForm>;
|
|
158
|
+
getNextAvailableObservationNumber(payload: ProcoreProjectRequestPayload): Promise<ProcoreNextObservationAvailableNumber>;
|
|
159
|
+
getAssignees(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationAssignee>>;
|
|
160
|
+
getDistributionMembers(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationDistributionMember>>;
|
|
161
|
+
createObservation(formData: FormData): Promise<void>;
|
|
162
|
+
getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
163
|
+
getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
164
|
+
getTrades(payload: ProcoreCompanyRequestPayload): Promise<Array<ProcoreObservationTrades>>;
|
|
165
|
+
getHazards(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
166
|
+
getLocations(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationLocation>>;
|
|
167
|
+
getSpecificationSections(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationSpecificationSection>>;
|
|
168
|
+
getCustomFieldOptions(payload: ProcoreProjectRequestPayload): Promise<{
|
|
169
|
+
options: {
|
|
170
|
+
[key: string]: string[];
|
|
171
|
+
};
|
|
172
|
+
}>;
|
|
123
173
|
};
|
|
124
174
|
autodesk: {
|
|
125
175
|
sendRevoke(): Promise<void>;
|
|
@@ -135,6 +185,10 @@ export declare const EvercamApi: {
|
|
|
135
185
|
connect(payload: VoyageControlConnectorPayload): Promise<unknown>;
|
|
136
186
|
sendRevoke(): Promise<null>;
|
|
137
187
|
};
|
|
188
|
+
xweather: {
|
|
189
|
+
connect(projectExid: string, payload: XWeatherCreatePayload): Promise<XWeatherResponse>;
|
|
190
|
+
revoke(projectExid: string): Promise<null>;
|
|
191
|
+
};
|
|
138
192
|
recordings: {
|
|
139
193
|
oldest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
140
194
|
latest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
@@ -160,14 +214,6 @@ export declare const EvercamApi: {
|
|
|
160
214
|
cUpdate(projectExid: number, id: number, payload: MediaUpdateRequestPayload): Promise<Media>;
|
|
161
215
|
cDelete(projectExid: number, id: number): Promise<void>;
|
|
162
216
|
};
|
|
163
|
-
analytics: {
|
|
164
|
-
sendAnalyticsEvent(params: AnalyticsRequestPayload, headers: object): Promise<null>;
|
|
165
|
-
getPACompanyPeriodEvents(id: string | number, payload: ProjectPAStatsRequestPayload): Promise<PaginatedItems<ProjectPAStatsResponsePayload>>;
|
|
166
|
-
getPAProjectPeriodEvents(projectId: string, payload: ProjectPAStatsRequestPayload): Promise<PaginatedItems<ProjectPAStatsResponsePayload>>;
|
|
167
|
-
getActiveUsers(params: {
|
|
168
|
-
params: ActiveUsersStatsRequestPayload;
|
|
169
|
-
}): Promise<ActiveUserStat>;
|
|
170
|
-
};
|
|
171
217
|
shares: {
|
|
172
218
|
updateShareRights(cameraExid: CameraExid, payload: {
|
|
173
219
|
email: string;
|
|
@@ -194,28 +240,31 @@ export declare const EvercamApi: {
|
|
|
194
240
|
cCreate(cameraId: string, payload: ShareCreateRequestPayload): Promise<ShareCreateResponsePayload>;
|
|
195
241
|
shareProjectCameras(projectExid: ProjectExid, payload: ShareProjectCamerasRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
196
242
|
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
197
|
-
transferOwnership(cameraId: string, payload: {
|
|
198
|
-
userId: number;
|
|
199
|
-
}): Promise<void>;
|
|
200
243
|
resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
|
|
201
244
|
getProjectShares(exid: string): Promise<ProjectShareResponse>;
|
|
245
|
+
updateUserRestriction(projectExid: ProjectExid, payload: UpdateUserRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
202
246
|
};
|
|
203
|
-
|
|
204
|
-
|
|
247
|
+
company: {
|
|
248
|
+
show(companyId: string | undefined, params?: Record<string, string>): Promise<Company>;
|
|
249
|
+
getCompanyUsers(params: {
|
|
205
250
|
params: {
|
|
206
251
|
page: number;
|
|
207
252
|
limit: number;
|
|
208
253
|
};
|
|
209
254
|
}): Promise<PaginatedItems<CompanyUser>>;
|
|
210
|
-
getCompanyProjects(
|
|
255
|
+
getCompanyProjects(params: {
|
|
211
256
|
params: {
|
|
212
257
|
page: number;
|
|
213
258
|
limit: number;
|
|
214
259
|
};
|
|
215
260
|
}): Promise<PaginatedItems<CompanyProject>>;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
261
|
+
getCompanyCameras(params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
262
|
+
getCompanyKits(params: {
|
|
263
|
+
params: {
|
|
264
|
+
page: number;
|
|
265
|
+
limit: number;
|
|
266
|
+
};
|
|
267
|
+
}): Promise<PaginatedItems<CompanyKit>>;
|
|
219
268
|
};
|
|
220
269
|
batteries: {
|
|
221
270
|
ProjectBatteryReadings(projectExid: string): Promise<ProjectBatteryReading[]>;
|
|
@@ -254,7 +303,7 @@ export declare const EvercamApi: {
|
|
|
254
303
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
255
304
|
};
|
|
256
305
|
widgets: {
|
|
257
|
-
index(params: WidgetsListRequestPayload): Promise<PaginatedItems<Widget>>;
|
|
306
|
+
index(params: Partial<WidgetsListRequestPayload>): Promise<PaginatedItems<Widget>>;
|
|
258
307
|
show(id: number): Promise<WidgetFull>;
|
|
259
308
|
getByKeys(): Promise<WidgetFull>;
|
|
260
309
|
setSessionSettings(params: any): Promise<WidgetFull>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, SegmentsCountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, SegmentsPresenceByLabel, ActiveUsersResponsePayload, ActiveUsersRequestPayload } from "@evercam/api/types";
|
|
2
|
+
import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
|
|
3
|
+
export declare function getLabsBaseUrl(): string | null | undefined;
|
|
4
|
+
export declare const EvercamLabsApi: {
|
|
5
|
+
posthog: {
|
|
6
|
+
getEvents(params: any): Promise<PaginatedItems<any>>;
|
|
7
|
+
getUsers(params: any): Promise<any>;
|
|
8
|
+
getActiveUsers(params: ActiveUsersRequestPayload): Promise<ActiveUsersResponsePayload>;
|
|
9
|
+
};
|
|
10
|
+
copilot: {
|
|
11
|
+
getAllConversations(params: LabsPaginationParams & {
|
|
12
|
+
cameraExid?: string;
|
|
13
|
+
projectExid?: string;
|
|
14
|
+
user?: string;
|
|
15
|
+
}): Promise<PaginatedItems<CopilotConversation>>;
|
|
16
|
+
getOneConversation(conversationId: number): Promise<PaginatedItems<CopilotConversation>>;
|
|
17
|
+
getConversationMessages(conversationId: number, params: LabsPaginationParams): Promise<PaginatedItems<CopilotMessage>>;
|
|
18
|
+
getMessageSteps(message: CopilotMessage): Promise<CopilotMessageStep[]>;
|
|
19
|
+
submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
20
|
+
};
|
|
21
|
+
detections: {
|
|
22
|
+
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
|
|
23
|
+
};
|
|
24
|
+
googleCloudStorage: {
|
|
25
|
+
listFiles(prefix?: string): Promise<{
|
|
26
|
+
files: string[];
|
|
27
|
+
folders: string[];
|
|
28
|
+
}>;
|
|
29
|
+
getSignedUrl(fileName: string): Promise<{
|
|
30
|
+
url: string;
|
|
31
|
+
}>;
|
|
32
|
+
};
|
|
33
|
+
luminance: {
|
|
34
|
+
getReadings(params: {
|
|
35
|
+
cameraExid: CameraExid;
|
|
36
|
+
fromDate: string;
|
|
37
|
+
toDate: string;
|
|
38
|
+
}): Promise<LuminanceReading[]>;
|
|
39
|
+
};
|
|
40
|
+
kits: {
|
|
41
|
+
getMetrics(kitId: string, metrics: GrafanaMetricId[], period?: KitMetricPeriod): Promise<GrafanaKitMetrics>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./client";
|
|
2
|
+
export * from "./adminApi";
|
|
3
|
+
export * from "./videoWallApi";
|
|
4
|
+
export * from "./3dFirebaseApi";
|
|
5
|
+
export * from "./aiApi";
|
|
6
|
+
export * from "./webRtcApi";
|
|
7
|
+
export * from "./weatherApi";
|
|
8
|
+
export * from "./evercamLabsApi";
|
|
9
|
+
export * from "./evercamApi";
|
|
10
|
+
export * from "./ptzApi";
|
|
11
|
+
export * from "./ingestApi";
|
|
12
|
+
export * from "./exNvrApi";
|
|
13
|
+
export * from "./authzApi";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { _360AssetsQueryParams, _360AssetsRequestPayload, _360AssetsUploadPayload, BimUploadPayload, BimUploadsQueryParams, CalculateMeasuringOperationRequestPayload, DronesQueryParams, DroneUploadUpdateRequestPayload, FlightImagesQueryParams, Generate360MapRequestPayload, InspectionToolRequestPayload, MobileCaptureSnapshot } from "@evercam/api/types";
|
|
2
|
+
import { IngestVersions } from "@evercam/shared/types";
|
|
3
|
+
export declare const getIngestApiUrl: (version: string) => string | undefined | null;
|
|
2
4
|
export declare const IngestApi: {
|
|
3
5
|
drone: {
|
|
4
6
|
createUpload(projectId: string, params: {
|
|
@@ -26,21 +28,26 @@ export declare const IngestApi: {
|
|
|
26
28
|
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
27
29
|
inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
28
30
|
isInspectionEnabled(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
-
getDroneQueueSize(): Promise<
|
|
31
|
+
getDroneQueueSize(version?: IngestVersions): Promise<Record<string, any>>;
|
|
30
32
|
getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
33
|
+
checkFlightAvailableFeatures(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
34
|
};
|
|
32
35
|
assets360: {
|
|
33
36
|
get360Assets(params: {
|
|
34
37
|
params: Partial<_360AssetsQueryParams>;
|
|
35
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
|
+
}, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
39
|
+
get360AssetsCounts(projectId: string, params: {
|
|
40
|
+
uploadedBy: string;
|
|
41
|
+
}, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
42
|
+
get360AssetLink(projectId: string, date: string, floor: string, assetType: string, marker: string | null): Promise<import("axios").AxiosResponse<any, any>>;
|
|
36
43
|
deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
44
|
getArchive(id: number, params: {
|
|
38
45
|
dateType: string;
|
|
39
46
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
40
|
-
createUpload(projectId: string, params: _360AssetsRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
41
|
-
upload(id: number, params: Record<string, unknown>, payload: _360AssetsUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
42
|
-
generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
43
|
-
get360QueueSize(): Promise<
|
|
47
|
+
createUpload(projectId: string, params: _360AssetsRequestPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
48
|
+
upload(id: number, params: Record<string, unknown>, payload: _360AssetsUploadPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
49
|
+
generate360map(projectId: string, params: Generate360MapRequestPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
50
|
+
get360QueueSize(version?: IngestVersions): Promise<Record<string, any>>;
|
|
44
51
|
};
|
|
45
52
|
bim: {
|
|
46
53
|
createUpload(projectId: string, params: {
|
|
@@ -60,6 +67,7 @@ export declare const IngestApi: {
|
|
|
60
67
|
getProjectMobileAssets(params: Record<string, unknown>): Promise<MobileCaptureSnapshot[]>;
|
|
61
68
|
getMobileAssetPhoto(assetId: string | number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
69
|
};
|
|
63
|
-
|
|
64
|
-
|
|
70
|
+
utils: {
|
|
71
|
+
loadAllAssetsInQueue(): Promise<any[]>;
|
|
72
|
+
};
|
|
65
73
|
};
|
|
@@ -27,7 +27,7 @@ export declare const PtzApi: {
|
|
|
27
27
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
28
28
|
};
|
|
29
29
|
controls: {
|
|
30
|
-
move({ cameraExid, direction,
|
|
30
|
+
move({ cameraExid, direction, useContinuous }: MoveParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
31
|
zoom({ cameraExid, direction, isRecordingFromNvr }: ZoomParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
32
32
|
stop({ cameraExid }: {
|
|
33
33
|
cameraExid: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CurrentWeatherRequestPayload, HistoryWeatherRequestPayload, WeatherDataResponse, WeatherResponsePayload } from "@evercam/api/types";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
|
+
export declare const WeatherApi: {
|
|
4
|
+
current(projectExid: string, payload: CurrentWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
|
|
5
|
+
historical(projectExid: string, payload: HistoryWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
|
|
6
|
+
report(projectExid: string, payload: HistoryWeatherRequestPayload, config?: AxiosRequestConfig): Promise<{
|
|
7
|
+
data: WeatherDataResponse[];
|
|
8
|
+
}> | undefined;
|
|
9
|
+
};
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./3dFirebaseApi";
|
|
5
|
-
export * from "./aiApi";
|
|
6
|
-
export * from "./webRtcApi";
|
|
7
|
-
export * from "./weatherApi";
|
|
8
|
-
export * from "./evercamLabsApi";
|
|
9
|
-
export * from "./evercamApi";
|
|
10
|
-
export * from "./ptzApi";
|
|
11
|
-
export * from "./ingestApi";
|
|
12
|
-
export * from "./exNvrApi";
|
|
13
|
-
export * from "./authzApi";
|
|
1
|
+
export * from "./api";
|
|
2
|
+
export * from "./types";
|
|
3
|
+
export * from "./utils";
|
|
@@ -40,12 +40,27 @@ export declare enum _360AssetType {
|
|
|
40
40
|
MobilePhoto = "mobile_photos",
|
|
41
41
|
MobileAudio = "mobile_audios"
|
|
42
42
|
}
|
|
43
|
+
export declare enum _360AssetLabel {
|
|
44
|
+
Walks = "walks",
|
|
45
|
+
MobilePhotos = "mobilePhotos"
|
|
46
|
+
}
|
|
47
|
+
export declare enum _360Feature {
|
|
48
|
+
BIM = "BIM",
|
|
49
|
+
Minimap = "Minimap",
|
|
50
|
+
Minimodel = "Minimodel",
|
|
51
|
+
MobilePhoto = "MobilePhoto"
|
|
52
|
+
}
|
|
43
53
|
export declare enum _360IntergrationType {
|
|
54
|
+
Evercam = "Evercam",
|
|
44
55
|
Matterport = "Matterport",
|
|
45
56
|
OpenSpace = "Openspace",
|
|
46
57
|
HoloBuilder = "Holobuilder",
|
|
47
|
-
DroneDeploy = "Dronedeploy"
|
|
48
|
-
|
|
58
|
+
DroneDeploy = "Dronedeploy"
|
|
59
|
+
}
|
|
60
|
+
export declare enum PathMarkerColor {
|
|
61
|
+
Start = "#00e74c",
|
|
62
|
+
End = "#fd7567",
|
|
63
|
+
Default = "#2196F3"
|
|
49
64
|
}
|
|
50
65
|
export type _360AssetsQueryParams = {
|
|
51
66
|
page: number;
|
|
@@ -73,6 +88,7 @@ export type _360AssetsUploadPayload = {
|
|
|
73
88
|
startPosition: string;
|
|
74
89
|
endPosition: string;
|
|
75
90
|
isTimelapse: boolean;
|
|
91
|
+
isImagesOnly: boolean;
|
|
76
92
|
};
|
|
77
93
|
export type Generate360MapRequestPayload = {
|
|
78
94
|
dateId: string;
|