@evercam/api 1.0.0-0ddf6c628 → 1.0.0-112ba26f5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +212 -15
- package/dist/api/api/adminApi.d.ts +105 -96
- package/dist/api/api/aiApi.d.ts +131 -7
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +62 -35
- package/dist/api/api/evercamLabsApi.d.ts +9 -18
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +89 -66
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +178 -86
- package/dist/api/types/admin.d.ts +37 -3
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +66 -37
- package/dist/api/types/anpr.d.ts +36 -6
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +179 -21
- package/dist/api/types/authz.d.ts +72 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +12 -12
- package/dist/api/types/bim.d.ts +55 -12
- package/dist/api/types/camera.d.ts +238 -126
- package/dist/api/types/comments.d.ts +67 -26
- package/dist/api/types/company.d.ts +11 -5
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/detections.d.ts +9 -10
- package/dist/api/types/drone.d.ts +95 -6
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/api/types/errors.d.ts +19 -2
- package/dist/api/types/gateReport.d.ts +9 -23
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +1 -1
- package/dist/api/types/index.d.ts +11 -2
- package/dist/api/types/ingest.d.ts +200 -20
- package/dist/api/types/kit.d.ts +97 -117
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +31 -3
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/nvr.d.ts +39 -8
- package/dist/api/types/observationEvents.d.ts +167 -0
- package/dist/api/types/observations.d.ts +89 -0
- package/dist/api/types/planner.d.ts +98 -8
- package/dist/api/types/posthog.d.ts +56 -0
- package/dist/api/types/progressPhoto.d.ts +38 -25
- package/dist/api/types/project.d.ts +75 -24
- package/dist/api/types/recording.d.ts +8 -13
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +108 -0
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/router.d.ts +15 -10
- package/dist/api/types/shared.d.ts +39 -29
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/sim.d.ts +18 -6
- package/dist/api/types/siteAnalytics.d.ts +3 -5
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +79 -0
- package/dist/api/types/snapshots.d.ts +98 -13
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +11 -37
- package/dist/api/types/storageProvider.d.ts +16 -5
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +6 -9
- package/dist/api/types/user.d.ts +42 -32
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2331 -966
- 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 +530 -43
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/report.d.ts +107 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +4 -2
- package/dist/api/types/copilot.d.ts +0 -162
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from "axios";
|
|
2
|
-
import { Automation, 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,
|
|
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, CameraNoteResponsePayload, CamerasResponsePayload, CameraStatusLog, CameraUpdateRequestPayload, Comment, CommentCreationRequestPayload, CommentsRequestPayload, CommentsScope, CompanyCameraSummary, CompanyProject, CompanyKit, CompanySummary, CompanyUser, Compare, CompareRequestPayload, ConnectorResponsePayload, Credentials, FetchCameraQueryParams, GoogleAuthRequestPayload, LoginRequestPayload, User, Logo, LogoutParams, Media, MediaCreateRequestPayload, MediaFilterQueryParams, MediaUpdateRequestPayload, MediaUsersResponsePayload, 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, ProjectTransferOwnershipResponse, ProjectExid, ProjectLogoResponsePayload, ProjectMembersResponsePayload, ProjectMembersRequestPayload, ProjectInviteMembersResponsePayload, MentionableUser, RemotePasswordUpdateRequestPayload, SessionsListRequestPayload, ShareCreateResponsePayload, ShareDeletionRequestPayload, SharedUsersResponsePayload, UpdateCameraRestrictionPayload, ReorderCamerasPayload, SignupUserRequestPayload, Snapshot, SnapshotRequestPayload, SnapshotRangeRequestPayload, SnapshotRangeResponsePayload, ThumbnailData, TimelapseCreationRequestPayload, TimelapseCreationResponsePayload, TimelapseSnapshotRequestPayload, TimelapseSnapshotResponsePayload, UpdatePasswordRequestPayload, UserSession, UserUpdateRequestPayload, VoyageControlConnectorPayload, HammertechConnectPayload, HammertechProject, HammertechIssueType, HammertechLocation, HammertechCreateIssuePayload, HammertechIssueResponse, HammertechStoredFilePayload, HammertechStoredFileResponse, RingCompleteLinkingPayload, RingCompleteLinkingResponsePayload, RingDevicesResponsePayload, RingMoveDevicePayload, RingMoveDeviceResponsePayload, RingLiveViewPayload, RingLiveViewResponse, RingStopLiveViewResponse, AuthOptionsResponsePayload, AuthorizedApp, AuthorizedAppsListRequestPayload, 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, SnapshotEmailDeliveryRequestPayload, SnapshotEmailDeliveryResponsePayload, SocketAuthResponsePayload } from "@evercam/api/types";
|
|
4
4
|
export declare const EvercamApi: {
|
|
5
5
|
apiStatus: {
|
|
6
6
|
getApiStatus(): Promise<void>;
|
|
7
7
|
};
|
|
8
8
|
users: {
|
|
9
9
|
signup(payload: SignupUserRequestPayload): Promise<User>;
|
|
10
|
+
zohoAuthUrl(payload: {
|
|
11
|
+
firstname: string;
|
|
12
|
+
lastname: string;
|
|
13
|
+
}): Promise<{
|
|
14
|
+
url: string;
|
|
15
|
+
}>;
|
|
10
16
|
fetchAccessFeatures(email: string): Promise<{
|
|
11
17
|
features: UserFeatureFlag[];
|
|
12
18
|
}>;
|
|
@@ -37,10 +43,14 @@ export declare const EvercamApi: {
|
|
|
37
43
|
getActiveSessions(params: AxiosRequestConfig & {
|
|
38
44
|
params: SessionsListRequestPayload;
|
|
39
45
|
}): Promise<PaginatedItems<UserSession>>;
|
|
46
|
+
getAuthorizedApps(params: AxiosRequestConfig & {
|
|
47
|
+
params: AuthorizedAppsListRequestPayload;
|
|
48
|
+
}): Promise<PaginatedItems<AuthorizedApp>>;
|
|
49
|
+
revokeAuthorizedApp(id: number): Promise<void>;
|
|
40
50
|
update(email: string, params?: Partial<UserUpdateRequestPayload>): Promise<{
|
|
41
51
|
users: User[];
|
|
42
52
|
}>;
|
|
43
|
-
|
|
53
|
+
deleteAccount(): Promise<void>;
|
|
44
54
|
fetchPermissions(): Promise<{
|
|
45
55
|
permissions: string[];
|
|
46
56
|
}>;
|
|
@@ -59,7 +69,7 @@ export declare const EvercamApi: {
|
|
|
59
69
|
pendingBimImages(cameraId: string, params: PendingBimImagesParams): Promise<BimPendingImage[]>;
|
|
60
70
|
processPendingImages(cameraId: string, params: Partial<ProcessPendingImagesBimParams>): Promise<void>;
|
|
61
71
|
createBim(cameraId: string, params: BimCreationPayload): Promise<void>;
|
|
62
|
-
getCameraParameters(cameraId: string, params: ApiCredentials): Promise<
|
|
72
|
+
getCameraParameters(cameraId: string, params: ApiCredentials): Promise<string>;
|
|
63
73
|
uploadCameraParameters(cameraId: string, params: BimUploadCameraParameters): Promise<BimUploadCameraParameters>;
|
|
64
74
|
exportCompare(projectExid: string, payload: BimCompareExportRequestPayload): Promise<Compare>;
|
|
65
75
|
};
|
|
@@ -69,7 +79,7 @@ export declare const EvercamApi: {
|
|
|
69
79
|
config?: SwrRequestConfig<CamerasResponsePayload>;
|
|
70
80
|
}): Promise<CamerasResponsePayload>;
|
|
71
81
|
getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
|
|
72
|
-
getCameraLastPublicNote(cameraId: string): Promise<
|
|
82
|
+
getCameraLastPublicNote(cameraId: string): Promise<CameraNoteResponsePayload>;
|
|
73
83
|
getNvrStreamingToken({ cameraExid, token, }: {
|
|
74
84
|
cameraExid: string;
|
|
75
85
|
token: string;
|
|
@@ -87,11 +97,12 @@ export declare const EvercamApi: {
|
|
|
87
97
|
params?: ApiCredentials;
|
|
88
98
|
config?: SwrRequestConfig<Project[]>;
|
|
89
99
|
}): Promise<Project[]>;
|
|
100
|
+
show(projectExid: string): Promise<{
|
|
101
|
+
project: Project;
|
|
102
|
+
}>;
|
|
90
103
|
create(params: {
|
|
91
104
|
name: string;
|
|
92
|
-
}): Promise<
|
|
93
|
-
project: ProjectCreateResponse;
|
|
94
|
-
}>;
|
|
105
|
+
}): Promise<ProjectCreateResponse>;
|
|
95
106
|
getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
|
|
96
107
|
createLogo(projectId: string, formData: FormData): Promise<Logo>;
|
|
97
108
|
deleteLogo(projectId: string, id: number): Promise<void>;
|
|
@@ -104,15 +115,14 @@ export declare const EvercamApi: {
|
|
|
104
115
|
}>;
|
|
105
116
|
getThumbnailData(projectExid: string): Promise<ThumbnailData>;
|
|
106
117
|
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<void>;
|
|
118
|
+
reorderCameras(projectExid: ProjectExid, payload: ReorderCamerasPayload): Promise<void>;
|
|
107
119
|
updatePlaceholderThumbnail(projectExid: string, params: {
|
|
108
120
|
placeholder?: string;
|
|
109
121
|
}): Promise<{
|
|
110
122
|
message: string;
|
|
111
123
|
}>;
|
|
112
124
|
getPlaceholderThumbnailData(projectExid: string): Promise<PlaceholderThumbnailData>;
|
|
113
|
-
transferOwnership(projectExid: string, newOwnerId: number): Promise<
|
|
114
|
-
message: string;
|
|
115
|
-
}>;
|
|
125
|
+
transferOwnership(projectExid: string, newOwnerId: number): Promise<ProjectTransferOwnershipResponse>;
|
|
116
126
|
getUsers(projectExid: string): Promise<ProjectUsersResponsePayload>;
|
|
117
127
|
getCameras(projectExid: string): Promise<{
|
|
118
128
|
cameras: Camera[];
|
|
@@ -124,7 +134,13 @@ export declare const EvercamApi: {
|
|
|
124
134
|
getMembers(projectExid: string): Promise<ProjectMembersResponsePayload>;
|
|
125
135
|
inviteMembers(projectExid: string, payload: ProjectMembersRequestPayload): Promise<ProjectInviteMembersResponsePayload>;
|
|
126
136
|
removeMembers(projectExid: string, emails: string[]): Promise<void>;
|
|
137
|
+
resendInvite(projectExid: string, email: string): Promise<{
|
|
138
|
+
message: string;
|
|
139
|
+
}>;
|
|
140
|
+
cancelInvite(projectExid: string, inviteId: number): Promise<void>;
|
|
127
141
|
updateMembersRole(projectExid: string, payload: ProjectMembersRequestPayload): Promise<void>;
|
|
142
|
+
requestCameraInfo(projectExid: string): Promise<void>;
|
|
143
|
+
getMentionableUsers(projectExid: string, scope: CommentsScope): Promise<MentionableUser[]>;
|
|
128
144
|
};
|
|
129
145
|
timelapse: {
|
|
130
146
|
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
@@ -187,12 +203,18 @@ export declare const EvercamApi: {
|
|
|
187
203
|
connect(payload: VoyageControlConnectorPayload): Promise<void>;
|
|
188
204
|
sendRevoke(): Promise<void>;
|
|
189
205
|
};
|
|
206
|
+
hammertech: {
|
|
207
|
+
connect(payload: HammertechConnectPayload): Promise<void>;
|
|
208
|
+
revoke(): Promise<void>;
|
|
209
|
+
getProjects(): Promise<HammertechProject[]>;
|
|
210
|
+
getIssueTypes(projectId: string): Promise<HammertechIssueType[]>;
|
|
211
|
+
getLocations(projectId: string): Promise<HammertechLocation[]>;
|
|
212
|
+
createIssue(payload: HammertechCreateIssuePayload): Promise<HammertechIssueResponse>;
|
|
213
|
+
createStoredFile(payload: HammertechStoredFilePayload): Promise<HammertechStoredFileResponse>;
|
|
214
|
+
};
|
|
190
215
|
ring: {
|
|
191
|
-
|
|
192
|
-
code: string;
|
|
193
|
-
}): Promise<void>;
|
|
216
|
+
completeLinking(payload: RingCompleteLinkingPayload): Promise<RingCompleteLinkingResponsePayload>;
|
|
194
217
|
getDevices(): Promise<RingDevicesResponsePayload>;
|
|
195
|
-
importDevices(payload: RingImportDevicesPayload): Promise<RingImportResponsePayload>;
|
|
196
218
|
moveDevice(cameraExid: string, payload: RingMoveDevicePayload): Promise<RingMoveDeviceResponsePayload>;
|
|
197
219
|
deleteDevice(cameraExid: string): Promise<{
|
|
198
220
|
status: string;
|
|
@@ -207,13 +229,13 @@ export declare const EvercamApi: {
|
|
|
207
229
|
revoke(projectExid: string): Promise<void>;
|
|
208
230
|
};
|
|
209
231
|
recordings: {
|
|
210
|
-
oldest(cameraId: string, payload?:
|
|
211
|
-
latest(cameraId: string, payload?:
|
|
212
|
-
nearest(cameraId: string, timestamp: string, payload?:
|
|
213
|
-
availableDays({ cameraId, year, month, payload, }: AvailableDaysRequestPayload): Promise<AvailableDaysResponsePayload>;
|
|
232
|
+
oldest(cameraId: string, payload?: SnapshotRequestPayload): Promise<Snapshot>;
|
|
233
|
+
latest(cameraId: string, payload?: SnapshotRequestPayload): Promise<Snapshot>;
|
|
234
|
+
nearest(cameraId: string, timestamp: string, payload?: SnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<NearestSnapshotResponsePayload>;
|
|
235
|
+
availableDays({ cameraId, year, month, payload, cancelToken, }: AvailableDaysRequestPayload): Promise<AvailableDaysResponsePayload>;
|
|
214
236
|
availableHours({ cameraId, year, month, day, payload, cancelToken, }: AvailableHoursRequestPayload): Promise<AvailableHoursResponsePayload>;
|
|
215
237
|
getSnapshot(cameraId: string, dateTime: string): Promise<SnapshotRangeResponsePayload>;
|
|
216
|
-
getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload): Promise<SnapshotRangeResponsePayload>;
|
|
238
|
+
getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload, extraParams?: AxiosRequestConfig): Promise<SnapshotRangeResponsePayload>;
|
|
217
239
|
};
|
|
218
240
|
progressPhotos: {
|
|
219
241
|
index(projectId: string): Promise<ProgressPhotosResponsePayload>;
|
|
@@ -227,7 +249,7 @@ export declare const EvercamApi: {
|
|
|
227
249
|
getAllMedia(projectExid: string, params: MediaFilterQueryParams): Promise<PaginatedItems<Media>>;
|
|
228
250
|
getAllMediaUsers(projectExid: string): Promise<MediaUsersResponsePayload>;
|
|
229
251
|
cShow(projectExid: string, id: string): Promise<Media>;
|
|
230
|
-
cCreate(projectExid: string, payload: MediaCreateRequestPayload): Promise<Media>;
|
|
252
|
+
cCreate(projectExid: string, payload: FormData | MediaCreateRequestPayload, onUploadProgress?: (progressEvent: any) => void): Promise<Media>;
|
|
231
253
|
cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Media>;
|
|
232
254
|
cDelete(projectExid: string, id: string): Promise<void>;
|
|
233
255
|
};
|
|
@@ -239,34 +261,25 @@ export declare const EvercamApi: {
|
|
|
239
261
|
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
240
262
|
};
|
|
241
263
|
company: {
|
|
242
|
-
show(companyId
|
|
264
|
+
show(companyId?: string, params?: {
|
|
243
265
|
with_zoho?: boolean;
|
|
244
266
|
}): Promise<CompanySummary>;
|
|
245
267
|
getCompanyUsers(params: {
|
|
246
|
-
params:
|
|
247
|
-
page: number;
|
|
248
|
-
limit: number;
|
|
249
|
-
};
|
|
268
|
+
params: PaginationParams;
|
|
250
269
|
}): Promise<PaginatedItems<CompanyUser>>;
|
|
251
270
|
getCompanyProjects(params: {
|
|
252
|
-
params:
|
|
253
|
-
page: number;
|
|
254
|
-
limit: number;
|
|
255
|
-
};
|
|
271
|
+
params: PaginationParams;
|
|
256
272
|
}): Promise<PaginatedItems<CompanyProject>>;
|
|
257
273
|
getCompanyCameras(params: PaginationParams | {
|
|
258
274
|
params: PaginationParams;
|
|
259
275
|
}): Promise<PaginatedItems<CompanyCameraSummary>>;
|
|
260
276
|
getCompanyKits(params: {
|
|
261
|
-
params:
|
|
262
|
-
page: number;
|
|
263
|
-
limit: number;
|
|
264
|
-
};
|
|
277
|
+
params: PaginationParams;
|
|
265
278
|
}): Promise<PaginatedItems<CompanyKit>>;
|
|
266
279
|
};
|
|
267
280
|
batteries: {
|
|
268
281
|
ProjectBatteryReadings(projectExid: string): Promise<ProjectBatteryReading[]>;
|
|
269
|
-
batteryReadings(cameraExid: string, params: {
|
|
282
|
+
batteryReadings(cameraExid: string, params: PaginationParams & {
|
|
270
283
|
fromDate: string;
|
|
271
284
|
toDate: string;
|
|
272
285
|
}): Promise<PaginatedItems<BatteryReading>>;
|
|
@@ -295,6 +308,12 @@ export declare const EvercamApi: {
|
|
|
295
308
|
params: string;
|
|
296
309
|
}): Promise<StoryblokResponse>;
|
|
297
310
|
};
|
|
311
|
+
snapshots: {
|
|
312
|
+
deliverViaEmail(projectExid: string, payload: SnapshotEmailDeliveryRequestPayload): Promise<SnapshotEmailDeliveryResponsePayload>;
|
|
313
|
+
};
|
|
314
|
+
sockets: {
|
|
315
|
+
getWsToken(): Promise<SocketAuthResponsePayload>;
|
|
316
|
+
};
|
|
298
317
|
mailing: {
|
|
299
318
|
unsubscribe(params: {
|
|
300
319
|
key: string;
|
|
@@ -326,4 +345,12 @@ export declare const EvercamApi: {
|
|
|
326
345
|
getClientInfo(clientId: string, scope: string): Promise<OAuthConsentInfo>;
|
|
327
346
|
submitConsent(payload: OAuthConsentPayload): Promise<OAuthConsentResponse>;
|
|
328
347
|
};
|
|
348
|
+
zoho: {
|
|
349
|
+
getDealLocation(dealId: string): Promise<{
|
|
350
|
+
geographicBounds: GeoJSONPolygon | null;
|
|
351
|
+
}>;
|
|
352
|
+
updateDealLocation(dealId: string, payload: {
|
|
353
|
+
geographicBounds: GeoJSONPolygon;
|
|
354
|
+
}): Promise<void>;
|
|
355
|
+
};
|
|
329
356
|
};
|
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
|
|
3
|
-
import type { SwrRequestConfig } from "@evercam/api/types";
|
|
1
|
+
import type { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { CameraExid, GrafanaKitMetrics, LuminanceReading, ActiveUsersResponsePayload, ActiveUsersRequestPayload, PosthogUsersRequestParams, PosthogUsersResponse, PosthogEventsQueryParams, PosthogEventListItem, PosthogEventsResponse, HeatmapIntersectionsRequestParams, SmartSearchHeatmapPoint, SiteAnalyticsProcessingStatusPayload, SiteAnalyticsProcessingStatus, SwrRequestConfig, GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
|
|
4
3
|
export declare function getLabsBaseUrl(): string | null | undefined;
|
|
5
4
|
export declare const EvercamLabsApi: {
|
|
6
5
|
posthog: {
|
|
7
|
-
getEvents(params:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
projectExid?: string;
|
|
15
|
-
user?: string;
|
|
16
|
-
}): Promise<PaginatedItems<CopilotConversation>>;
|
|
17
|
-
getOneConversation(conversationId: number): Promise<PaginatedItems<CopilotConversation>>;
|
|
18
|
-
getConversationMessages(conversationId: number, params: LabsPaginationParams): Promise<PaginatedItems<CopilotMessage>>;
|
|
19
|
-
getMessageSteps(message: CopilotMessage): Promise<CopilotMessageStep[]>;
|
|
20
|
-
submitMessageFeedback({ conversationId, messageId, ...params }: FeedbackPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
+
getEvents(params: AxiosRequestConfig & {
|
|
7
|
+
params: PosthogEventsQueryParams;
|
|
8
|
+
}): Promise<PosthogEventsResponse<PosthogEventListItem>>;
|
|
9
|
+
getUsers(params: PosthogUsersRequestParams): Promise<PosthogUsersResponse>;
|
|
10
|
+
getActiveUsers(params: ActiveUsersRequestPayload): Promise<{
|
|
11
|
+
data: ActiveUsersResponsePayload;
|
|
12
|
+
}>;
|
|
21
13
|
};
|
|
22
14
|
siteAnalytics: {
|
|
23
15
|
getProcessingStatus(params?: SiteAnalyticsProcessingStatusPayload, config?: SwrRequestConfig<SiteAnalyticsProcessingStatus[]>): Promise<SiteAnalyticsProcessingStatus[]>;
|
|
24
|
-
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
|
|
25
16
|
getIntersectionsHeatmapData(params: HeatmapIntersectionsRequestParams): Promise<SmartSearchHeatmapPoint[]>;
|
|
26
17
|
};
|
|
27
18
|
googleCloudStorage: {
|
package/dist/api/api/index.d.ts
CHANGED
|
@@ -1,77 +1,91 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from "axios";
|
|
2
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,
|
|
4
|
-
import {
|
|
5
|
-
export declare const
|
|
3
|
+
import type { _360AssetsQueryParams, _360AssetsRequestPayload, _360QueueQueryParams, _360AssetsUploadPayload, _360AssetsResponse, _360AssetsCountsResponse, _360QueueResponse, _360FloorsResponse, DroneQueueResponse, DronePreviewImages, DronePreview, EmailMessage, EmailAcceptance, DroneUploadsResponse, IngestUploadInitResponse, BimUploadsResponse, MobileAssetsQueryParams, MobileCaptureAssetsResponse, BimUploadPayload, BimUploadsQueryParams, CalculateMeasuringOperationRequestPayload, DrawingsRequestPayload, DronesQueryParams, DroneCreation, DroneCreated, DroneProcessingTarget, DroneUploadItem, DroneFileAllocation, DroneFileStates, DroneCompletion, DroneDeletion, DroneReprocessResponse, AerialAllocation, AerialUploadStates, AerialShotPage, IngestProcessingProgress, FlightImagesQueryParams, Generate360MapRequestPayload, GenerateFloorPayload, InspectionToolRequestPayload, JsonObject, _360WalkV2, _360FloorV2 } from "@evercam/api/types";
|
|
4
|
+
import { IngestTypes } from "@evercam/api/types";
|
|
5
|
+
export declare const getIngestApiUrls: (type: string) => string[];
|
|
6
6
|
export declare const IngestApi: {
|
|
7
|
+
email: {
|
|
8
|
+
send(payload: EmailMessage): Promise<EmailAcceptance>;
|
|
9
|
+
};
|
|
7
10
|
drone: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
createProcessing(ingestUrl: string, payload: DroneCreation, signal?: AbortSignal): Promise<DroneCreated>;
|
|
12
|
+
getProcessing({ ingestUrl, id }: DroneProcessingTarget, signal?: AbortSignal): Promise<DroneUploadItem>;
|
|
13
|
+
getFlightProcessing(projectId: string, date: string): Promise<DroneUploadItem>;
|
|
14
|
+
allocateFiles({ ingestUrl, id }: DroneProcessingTarget, files: DroneFileAllocation[], signal?: AbortSignal): Promise<DroneFileStates>;
|
|
15
|
+
acknowledgeFiles({ ingestUrl, id }: DroneProcessingTarget, filenames: string[], signal?: AbortSignal): Promise<DroneCompletion>;
|
|
16
|
+
completeProcessing({ ingestUrl, id }: DroneProcessingTarget, signal?: AbortSignal): Promise<DroneCompletion>;
|
|
17
|
+
deleteFiles(id: number, filenames?: string[]): Promise<DroneDeletion>;
|
|
18
|
+
allocateAerialShots({ ingestUrl, id }: DroneProcessingTarget, aerialShots: AerialAllocation[], signal?: AbortSignal): Promise<AerialUploadStates>;
|
|
19
|
+
acknowledgeAerialShots({ ingestUrl, id }: DroneProcessingTarget, filenames: string[], signal?: AbortSignal): Promise<AerialUploadStates>;
|
|
20
|
+
getAerialShots(id: number, params?: {
|
|
21
|
+
cursor?: string;
|
|
22
|
+
limit?: number;
|
|
23
|
+
processingStatus?: string;
|
|
24
|
+
}): Promise<AerialShotPage>;
|
|
25
|
+
deleteAerialShots(id: number, filenames?: string[]): Promise<DroneDeletion>;
|
|
26
|
+
reprocessDrone(id: number, params?: JsonObject): Promise<DroneReprocessResponse>;
|
|
12
27
|
getDrones(params: {
|
|
13
28
|
params: Partial<DronesQueryParams>;
|
|
14
29
|
}): Promise<DroneUploadsResponse>;
|
|
30
|
+
getProcessingProgress(id: number): Promise<IngestProcessingProgress>;
|
|
15
31
|
getArchive(id: number, params: {
|
|
16
32
|
dataType: string;
|
|
17
|
-
}): Promise<
|
|
33
|
+
}): Promise<string>;
|
|
18
34
|
deleteUpload(id: number): Promise<void>;
|
|
19
|
-
|
|
20
|
-
uploadedBy: string;
|
|
21
|
-
token: string;
|
|
22
|
-
}): Promise<void>;
|
|
23
|
-
upload(projectId: string, params: {
|
|
24
|
-
uploadedBy: string;
|
|
25
|
-
token: string;
|
|
26
|
-
}, payload: DroneUploadUpdateRequestPayload): Promise<void>;
|
|
27
|
-
verifyToken(projectId: string, params: {
|
|
28
|
-
token: string;
|
|
29
|
-
}): Promise<JsonObject>;
|
|
30
|
-
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<JsonObject>;
|
|
35
|
+
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload, ingestUrl?: string): Promise<JsonObject>;
|
|
31
36
|
inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<JsonObject>;
|
|
32
|
-
|
|
33
|
-
getDroneQueueSize(
|
|
37
|
+
createPreview(payload: DronePreviewImages): Promise<DronePreview>;
|
|
38
|
+
getDroneQueueSize(droneUrl: string): Promise<DroneQueueResponse>;
|
|
34
39
|
getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<JsonObject>;
|
|
35
40
|
checkFlightAvailableFeatures(projectId: string, params: JsonObject): Promise<JsonObject>;
|
|
36
41
|
};
|
|
37
42
|
assets360: {
|
|
38
43
|
get360Assets(params: {
|
|
39
44
|
params: Partial<_360AssetsQueryParams>;
|
|
40
|
-
}
|
|
45
|
+
}): Promise<_360AssetsResponse>;
|
|
41
46
|
get360AssetsCounts(projectId: string, params: {
|
|
42
47
|
uploadedBy: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
}): Promise<_360AssetsCountsResponse>;
|
|
49
|
+
update360(id: number, payload: _360AssetsRequestPayload): Promise<_360WalkV2>;
|
|
50
|
+
update360ByProjectDateName(projectId: string, date: string, floor: string, payload: Partial<_360AssetsRequestPayload> & {
|
|
51
|
+
drawingId?: number;
|
|
52
|
+
}): Promise<_360WalkV2>;
|
|
53
|
+
deleteUpload(id: number): Promise<void>;
|
|
48
54
|
getArchive(id: number, params: {
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
dataType: string;
|
|
56
|
+
}): Promise<string>;
|
|
57
|
+
get360Progress(id: number): Promise<IngestProcessingProgress>;
|
|
58
|
+
createUpload(projectId: string, params: _360AssetsRequestPayload): Promise<IngestUploadInitResponse>;
|
|
59
|
+
upload(id: number, params: JsonObject, payload: _360AssetsUploadPayload, ingestUrlOverride?: string): Promise<_360WalkV2>;
|
|
60
|
+
reprocess360(id: number): Promise<void>;
|
|
54
61
|
drawingExists(payload: {
|
|
55
62
|
params: {
|
|
56
63
|
name: string;
|
|
57
64
|
project_id: string;
|
|
58
65
|
};
|
|
59
|
-
}
|
|
66
|
+
}): Promise<JsonObject>;
|
|
60
67
|
getDrawings(payload: {
|
|
61
68
|
params: DrawingsRequestPayload;
|
|
62
69
|
config?: SwrRequestConfig<_360FloorsResponse>;
|
|
63
|
-
}
|
|
64
|
-
getDrawingById(id: number, projectExid: string,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
}): Promise<_360FloorsResponse>;
|
|
71
|
+
getDrawingById(id: number, projectExid: string, { assetSummary }?: {
|
|
72
|
+
assetSummary?: boolean;
|
|
73
|
+
}): Promise<_360FloorV2>;
|
|
74
|
+
updateDrawing(id: number, projectExid: string, payload: GenerateFloorPayload): Promise<_360FloorV2>;
|
|
75
|
+
deleteDrawing(id: number): Promise<void>;
|
|
76
|
+
restoreDrawing(id: number): Promise<void>;
|
|
77
|
+
transferWalks(sourceId: number, targetId: number, projectExid: string): Promise<void>;
|
|
78
|
+
createDrawing(projectExid: string, payload: GenerateFloorPayload, createdBy: string): Promise<_360FloorV2>;
|
|
69
79
|
fetchDrawingOverlay(id: number, params: {
|
|
70
80
|
view: boolean;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
thumbnail?: boolean;
|
|
82
|
+
}, onDownloadProgress?: (progress: ProgressEvent) => void, extraConfig?: AxiosRequestConfig): Promise<string>;
|
|
83
|
+
fetchDrawingOverlayBlob(id: number, params?: {
|
|
84
|
+
thumbnail?: boolean;
|
|
85
|
+
}, extraConfig?: AxiosRequestConfig): Promise<Blob>;
|
|
86
|
+
getFloorArchive(id: number): Promise<string>;
|
|
87
|
+
generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<JsonObject>;
|
|
88
|
+
get360QueueSize(ingestUrl: string, params?: _360QueueQueryParams): Promise<_360QueueResponse>;
|
|
75
89
|
};
|
|
76
90
|
bim: {
|
|
77
91
|
createUpload(projectId: string, params: {
|
|
@@ -87,23 +101,44 @@ export declare const IngestApi: {
|
|
|
87
101
|
name: string;
|
|
88
102
|
}, payload: BimUploadPayload): Promise<void>;
|
|
89
103
|
};
|
|
104
|
+
webhook: {
|
|
105
|
+
notifyBimUpdated(projectId: string, bimIdentifier: string): Promise<void>;
|
|
106
|
+
};
|
|
90
107
|
mobileCapture: {
|
|
91
|
-
getProjectMobileAssets(params: MobileAssetsQueryParams, extraConfig?: AxiosRequestConfig
|
|
108
|
+
getProjectMobileAssets(params: MobileAssetsQueryParams, extraConfig?: AxiosRequestConfig): Promise<MobileCaptureAssetsResponse>;
|
|
92
109
|
getMobileAssetPhoto(assetId: string | number, params: {
|
|
93
110
|
projectId?: string;
|
|
94
111
|
project_id?: string;
|
|
95
112
|
isThumbnail?: boolean;
|
|
96
113
|
is_thumbnail?: boolean;
|
|
97
|
-
}
|
|
98
|
-
deleteAsset(assetId: string | number
|
|
114
|
+
}): Promise<string>;
|
|
115
|
+
deleteAsset(assetId: string | number): Promise<void>;
|
|
99
116
|
};
|
|
100
117
|
utils: {
|
|
101
118
|
loadAllAssetsInQueue(): Promise<({
|
|
119
|
+
ingestVersion: string;
|
|
120
|
+
id: number;
|
|
121
|
+
projectId: string;
|
|
122
|
+
flightDate: string;
|
|
123
|
+
flightGeolocation: string;
|
|
124
|
+
modelZip: string;
|
|
125
|
+
orthomosaicZip: string;
|
|
126
|
+
reportPdf: string;
|
|
127
|
+
processingLog: string;
|
|
128
|
+
uploadedBy: string;
|
|
129
|
+
processingStatus: import("@evercam/api/types").IngestProcessingStatus | string;
|
|
130
|
+
modelCesiumAssetId: string;
|
|
131
|
+
updatedAt: string;
|
|
132
|
+
canDelete: boolean;
|
|
133
|
+
canReprocess: boolean;
|
|
134
|
+
hasSteps: boolean;
|
|
135
|
+
aerialShotsCount: number;
|
|
136
|
+
} | {
|
|
102
137
|
ingestVersion: string;
|
|
103
138
|
archive: string;
|
|
104
139
|
date: string;
|
|
105
140
|
deviceSerial: string | null;
|
|
106
|
-
endPosition:
|
|
141
|
+
endPosition: string | null;
|
|
107
142
|
floor: string;
|
|
108
143
|
floorId: number;
|
|
109
144
|
id: number;
|
|
@@ -118,30 +153,18 @@ export declare const IngestApi: {
|
|
|
118
153
|
processingStatus: string;
|
|
119
154
|
projectId: string;
|
|
120
155
|
report: string;
|
|
156
|
+
processingLog: string;
|
|
157
|
+
hasSteps?: boolean;
|
|
121
158
|
route: unknown | null;
|
|
122
|
-
startPosition:
|
|
159
|
+
startPosition: string | null;
|
|
123
160
|
tusLinks: unknown | null;
|
|
124
161
|
updatedAt: string;
|
|
125
162
|
uploadedBy: string;
|
|
126
163
|
videoArchive: string;
|
|
127
164
|
videos: string[];
|
|
128
|
-
} | {
|
|
129
|
-
ingestVersion: string;
|
|
130
|
-
id: number;
|
|
131
|
-
projectId: string;
|
|
132
|
-
consumed: boolean;
|
|
133
|
-
token: string;
|
|
134
|
-
flightDate: string;
|
|
135
|
-
flightGeolocation: string;
|
|
136
|
-
modelZip: string;
|
|
137
|
-
orthomosaicZip: string;
|
|
138
|
-
reportPdf: string;
|
|
139
|
-
uploadedBy: string;
|
|
140
|
-
processingStatus: import("@evercam/api/types").IngestProcessingStatus | string;
|
|
141
|
-
modelCesiumAssetId: string;
|
|
142
|
-
updatedAt: string;
|
|
143
|
-
hasTusLinks: boolean;
|
|
144
165
|
})[]>;
|
|
145
|
-
|
|
166
|
+
getIngestNumber(ingestUrl: string): number;
|
|
167
|
+
getIngestVersion(ingestUrl: string): string;
|
|
168
|
+
chooseIngestApiUrl(type: IngestTypes, isTieToNewest?: boolean): Promise<string>;
|
|
146
169
|
};
|
|
147
170
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ChatListPage, type ChatListParams, type ChatSession } from "@evercam/api/types";
|
|
2
|
+
/**
|
|
3
|
+
* The Evercam Reports engine, for the admin Chat conversations viewer.
|
|
4
|
+
*
|
|
5
|
+
* The engine speaks camelCase natively, so every call preserves casing rather than
|
|
6
|
+
* running the snake conversion the media API needs. The admin's bearer is attached
|
|
7
|
+
* by the shared request interceptor — an admin resolves `is_admin` on the engine, so
|
|
8
|
+
* `scope=all` returns every user's conversations.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ReportsApi: {
|
|
11
|
+
chat: {
|
|
12
|
+
listConversations(params?: ChatListParams): Promise<ChatListPage>;
|
|
13
|
+
getConversation(id: string): Promise<ChatSession>;
|
|
14
|
+
};
|
|
15
|
+
};
|