@evercam/api 1.0.0-fbf4f4d51 → 1.0.0-fe3b7bf1c
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 +204 -15
- package/dist/api/api/adminApi.d.ts +48 -16
- package/dist/api/api/aiApi.d.ts +113 -51
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +70 -10
- package/dist/api/api/evercamLabsApi.d.ts +5 -6
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +56 -43
- package/dist/api/types/360.d.ts +197 -54
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +95 -54
- package/dist/api/types/anpr.d.ts +40 -0
- package/dist/api/types/auditLogs.d.ts +18 -0
- package/dist/api/types/authz.d.ts +47 -0
- package/dist/api/types/automation.d.ts +11 -2
- package/dist/api/types/axios.d.ts +11 -7
- package/dist/api/types/bim.d.ts +26 -1
- package/dist/api/types/camera.d.ts +20 -27
- package/dist/api/types/comments.d.ts +10 -7
- package/dist/api/types/connector.d.ts +3 -0
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/copilot.d.ts +10 -5
- package/dist/api/types/detections.d.ts +7 -11
- package/dist/api/types/drone.d.ts +96 -6
- package/dist/api/types/errors.d.ts +11 -0
- package/dist/api/types/gateReport.d.ts +20 -32
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +10 -1
- package/dist/api/types/ingest.d.ts +31 -4
- package/dist/api/types/kit.d.ts +38 -2
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +9 -2
- package/dist/api/types/notification.d.ts +12 -2
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/planner.d.ts +97 -0
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/progressPhoto.d.ts +2 -1
- package/dist/api/types/project.d.ts +31 -3
- package/dist/api/types/recording.d.ts +7 -11
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +4 -3
- package/dist/api/types/shared.d.ts +19 -0
- package/dist/api/types/siteAnalytics.d.ts +7 -17
- package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +48 -3
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/timelapse.d.ts +6 -2
- package/dist/api/types/user.d.ts +1 -5
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +2093 -982
- 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 +113 -9
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +9 -2
- package/dist/shared/types/index.d.ts +3 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/package.json +4 -2
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -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, 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,
|
|
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, 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, SnapshotRequestPayload, SnapshotRangeRequestPayload, SnapshotRangeResponsePayload, ThumbnailData, TimelapseCreationRequestPayload, TimelapseCreationResponsePayload, TimelapseSnapshotRequestPayload, TimelapseSnapshotResponsePayload, UpdatePasswordRequestPayload, UserSession, UserUpdateRequestPayload, VoyageControlConnectorPayload, HammertechConnectPayload, HammertechProject, HammertechIssueType, HammertechLocation, HammertechCreateIssuePayload, HammertechIssueResponse, HammertechStoredFilePayload, HammertechStoredFileResponse, 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, SnapshotEmailDeliveryRequestPayload, SnapshotEmailDeliveryResponsePayload } 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
|
}>;
|
|
@@ -40,7 +46,7 @@ export declare const EvercamApi: {
|
|
|
40
46
|
update(email: string, params?: Partial<UserUpdateRequestPayload>): Promise<{
|
|
41
47
|
users: User[];
|
|
42
48
|
}>;
|
|
43
|
-
|
|
49
|
+
deleteAccount(): Promise<void>;
|
|
44
50
|
fetchPermissions(): Promise<{
|
|
45
51
|
permissions: string[];
|
|
46
52
|
}>;
|
|
@@ -87,6 +93,11 @@ export declare const EvercamApi: {
|
|
|
87
93
|
params?: ApiCredentials;
|
|
88
94
|
config?: SwrRequestConfig<Project[]>;
|
|
89
95
|
}): Promise<Project[]>;
|
|
96
|
+
create(params: {
|
|
97
|
+
name: string;
|
|
98
|
+
}): Promise<{
|
|
99
|
+
project: ProjectCreateResponse;
|
|
100
|
+
}>;
|
|
90
101
|
getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
|
|
91
102
|
createLogo(projectId: string, formData: FormData): Promise<Logo>;
|
|
92
103
|
deleteLogo(projectId: string, id: number): Promise<void>;
|
|
@@ -182,18 +193,42 @@ export declare const EvercamApi: {
|
|
|
182
193
|
connect(payload: VoyageControlConnectorPayload): Promise<void>;
|
|
183
194
|
sendRevoke(): Promise<void>;
|
|
184
195
|
};
|
|
196
|
+
hammertech: {
|
|
197
|
+
connect(payload: HammertechConnectPayload): Promise<void>;
|
|
198
|
+
revoke(): Promise<void>;
|
|
199
|
+
getProjects(): Promise<HammertechProject[]>;
|
|
200
|
+
getIssueTypes(projectId: string): Promise<HammertechIssueType[]>;
|
|
201
|
+
getLocations(projectId: string): Promise<HammertechLocation[]>;
|
|
202
|
+
createIssue(payload: HammertechCreateIssuePayload): Promise<HammertechIssueResponse>;
|
|
203
|
+
createStoredFile(payload: HammertechStoredFilePayload): Promise<HammertechStoredFileResponse>;
|
|
204
|
+
};
|
|
205
|
+
ring: {
|
|
206
|
+
authenticate(payload: {
|
|
207
|
+
code: string;
|
|
208
|
+
}): Promise<void>;
|
|
209
|
+
getDevices(): Promise<RingDevicesResponsePayload>;
|
|
210
|
+
importDevices(payload: RingImportDevicesPayload): Promise<RingImportResponsePayload>;
|
|
211
|
+
moveDevice(cameraExid: string, payload: RingMoveDevicePayload): Promise<RingMoveDeviceResponsePayload>;
|
|
212
|
+
deleteDevice(cameraExid: string): Promise<{
|
|
213
|
+
status: string;
|
|
214
|
+
cameraExid: string;
|
|
215
|
+
}>;
|
|
216
|
+
disconnect(): Promise<void>;
|
|
217
|
+
startLiveView(cameraExid: string, payload: RingLiveViewPayload): Promise<RingLiveViewResponse>;
|
|
218
|
+
stopLiveView(cameraExid: string, sessionId: string): Promise<RingStopLiveViewResponse>;
|
|
219
|
+
};
|
|
185
220
|
xweather: {
|
|
186
221
|
connect(projectExid: string, payload: XWeatherCreatePayload): Promise<XWeatherResponse>;
|
|
187
222
|
revoke(projectExid: string): Promise<void>;
|
|
188
223
|
};
|
|
189
224
|
recordings: {
|
|
190
|
-
oldest(cameraId: string, payload?:
|
|
191
|
-
latest(cameraId: string, payload?:
|
|
192
|
-
nearest(cameraId: string, timestamp: string, payload?:
|
|
193
|
-
availableDays({ cameraId, year, month, payload, }: AvailableDaysRequestPayload): Promise<AvailableDaysResponsePayload>;
|
|
225
|
+
oldest(cameraId: string, payload?: SnapshotRequestPayload): Promise<Snapshot>;
|
|
226
|
+
latest(cameraId: string, payload?: SnapshotRequestPayload): Promise<Snapshot>;
|
|
227
|
+
nearest(cameraId: string, timestamp: string, payload?: SnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<NearestSnapshotResponsePayload>;
|
|
228
|
+
availableDays({ cameraId, year, month, payload, cancelToken, }: AvailableDaysRequestPayload): Promise<AvailableDaysResponsePayload>;
|
|
194
229
|
availableHours({ cameraId, year, month, day, payload, cancelToken, }: AvailableHoursRequestPayload): Promise<AvailableHoursResponsePayload>;
|
|
195
230
|
getSnapshot(cameraId: string, dateTime: string): Promise<SnapshotRangeResponsePayload>;
|
|
196
|
-
getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload): Promise<SnapshotRangeResponsePayload>;
|
|
231
|
+
getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload, extraParams?: AxiosRequestConfig): Promise<SnapshotRangeResponsePayload>;
|
|
197
232
|
};
|
|
198
233
|
progressPhotos: {
|
|
199
234
|
index(projectId: string): Promise<ProgressPhotosResponsePayload>;
|
|
@@ -207,7 +242,7 @@ export declare const EvercamApi: {
|
|
|
207
242
|
getAllMedia(projectExid: string, params: MediaFilterQueryParams): Promise<PaginatedItems<Media>>;
|
|
208
243
|
getAllMediaUsers(projectExid: string): Promise<MediaUsersResponsePayload>;
|
|
209
244
|
cShow(projectExid: string, id: string): Promise<Media>;
|
|
210
|
-
cCreate(projectExid: string, payload: MediaCreateRequestPayload): Promise<Media>;
|
|
245
|
+
cCreate(projectExid: string, payload: FormData | MediaCreateRequestPayload, onUploadProgress?: (progressEvent: any) => void): Promise<Media>;
|
|
211
246
|
cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Media>;
|
|
212
247
|
cDelete(projectExid: string, id: string): Promise<void>;
|
|
213
248
|
};
|
|
@@ -219,7 +254,7 @@ export declare const EvercamApi: {
|
|
|
219
254
|
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
220
255
|
};
|
|
221
256
|
company: {
|
|
222
|
-
show(companyId
|
|
257
|
+
show(companyId?: string, params?: {
|
|
223
258
|
with_zoho?: boolean;
|
|
224
259
|
}): Promise<CompanySummary>;
|
|
225
260
|
getCompanyUsers(params: {
|
|
@@ -275,6 +310,9 @@ export declare const EvercamApi: {
|
|
|
275
310
|
params: string;
|
|
276
311
|
}): Promise<StoryblokResponse>;
|
|
277
312
|
};
|
|
313
|
+
snapshots: {
|
|
314
|
+
deliverViaEmail(projectExid: string, payload: SnapshotEmailDeliveryRequestPayload): Promise<SnapshotEmailDeliveryResponsePayload>;
|
|
315
|
+
};
|
|
278
316
|
mailing: {
|
|
279
317
|
unsubscribe(params: {
|
|
280
318
|
key: string;
|
|
@@ -292,4 +330,26 @@ export declare const EvercamApi: {
|
|
|
292
330
|
update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
|
|
293
331
|
delete(id: number): Promise<void>;
|
|
294
332
|
};
|
|
333
|
+
developerApps: {
|
|
334
|
+
index(): Promise<{
|
|
335
|
+
items: OAuthClient[];
|
|
336
|
+
}>;
|
|
337
|
+
show(clientId: string): Promise<OAuthClient>;
|
|
338
|
+
create(payload: CreateOAuthClientPayload): Promise<OAuthClientWithSecret>;
|
|
339
|
+
update(clientId: string, payload: UpdateOAuthClientPayload): Promise<OAuthClient>;
|
|
340
|
+
delete(clientId: string): Promise<void>;
|
|
341
|
+
regenerateSecret(clientId: string): Promise<OAuthClientWithSecret>;
|
|
342
|
+
};
|
|
343
|
+
oauth: {
|
|
344
|
+
getClientInfo(clientId: string, scope: string): Promise<OAuthConsentInfo>;
|
|
345
|
+
submitConsent(payload: OAuthConsentPayload): Promise<OAuthConsentResponse>;
|
|
346
|
+
};
|
|
347
|
+
zoho: {
|
|
348
|
+
getDealLocation(dealId: string): Promise<{
|
|
349
|
+
geographicBounds: GeoJSONPolygon | null;
|
|
350
|
+
}>;
|
|
351
|
+
updateDealLocation(dealId: string, payload: {
|
|
352
|
+
geographicBounds: GeoJSONPolygon;
|
|
353
|
+
}): Promise<void>;
|
|
354
|
+
};
|
|
295
355
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep,
|
|
2
|
-
import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
|
|
3
|
-
import type { SwrRequestConfig } from "@evercam/api/types";
|
|
1
|
+
import { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, ActiveUsersResponsePayload, ActiveUsersRequestPayload, PosthogUsersRequestParams, PosthogUsersResponse, HeatmapIntersectionsRequestParams, SmartSearchHeatmapPoint, SiteAnalyticsProcessingStatusPayload, SiteAnalyticsProcessingStatus, SwrRequestConfig, GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
|
|
4
2
|
export declare function getLabsBaseUrl(): string | null | undefined;
|
|
5
3
|
export declare const EvercamLabsApi: {
|
|
6
4
|
posthog: {
|
|
7
5
|
getEvents(params: any): Promise<PaginatedItems<any>>;
|
|
8
|
-
getUsers(params:
|
|
9
|
-
getActiveUsers(params: ActiveUsersRequestPayload): Promise<
|
|
6
|
+
getUsers(params: PosthogUsersRequestParams): Promise<PosthogUsersResponse>;
|
|
7
|
+
getActiveUsers(params: ActiveUsersRequestPayload): Promise<{
|
|
8
|
+
data: ActiveUsersResponsePayload;
|
|
9
|
+
}>;
|
|
10
10
|
};
|
|
11
11
|
copilot: {
|
|
12
12
|
getAllConversations(params: LabsPaginationParams & {
|
|
@@ -21,7 +21,6 @@ export declare const EvercamLabsApi: {
|
|
|
21
21
|
};
|
|
22
22
|
siteAnalytics: {
|
|
23
23
|
getProcessingStatus(params?: SiteAnalyticsProcessingStatusPayload, config?: SwrRequestConfig<SiteAnalyticsProcessingStatus[]>): Promise<SiteAnalyticsProcessingStatus[]>;
|
|
24
|
-
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
|
|
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,8 +1,8 @@
|
|
|
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, DroneUploadUpdateRequestPayload, FlightImagesQueryParams, Generate360MapRequestPayload, GenerateFloorPayload, InspectionToolRequestPayload, JsonObject, _360WalkV2, _360FloorV2 } from "@evercam/api/types";
|
|
4
|
-
import { IngestVersions } from "@evercam/api/types";
|
|
5
|
-
export declare const
|
|
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, _360ProgressResponse } from "@evercam/api/types";
|
|
4
|
+
import { IngestVersions, IngestTypes } from "@evercam/api/types";
|
|
5
|
+
export declare const getIngestApiUrls: (type: string) => string[];
|
|
6
6
|
export declare const IngestApi: {
|
|
7
7
|
drone: {
|
|
8
8
|
createUpload(projectId: string, params: {
|
|
@@ -27,50 +27,54 @@ export declare const IngestApi: {
|
|
|
27
27
|
verifyToken(projectId: string, params: {
|
|
28
28
|
token: string;
|
|
29
29
|
}): Promise<JsonObject>;
|
|
30
|
-
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<JsonObject>;
|
|
30
|
+
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload, ingestUrl?: string): Promise<JsonObject>;
|
|
31
31
|
inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<JsonObject>;
|
|
32
32
|
isInspectionEnabled(projectId: string, params?: JsonObject): Promise<JsonObject>;
|
|
33
|
-
getDroneQueueSize(
|
|
33
|
+
getDroneQueueSize(droneUrl: string): Promise<DroneQueueResponse>;
|
|
34
34
|
getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<JsonObject>;
|
|
35
35
|
checkFlightAvailableFeatures(projectId: string, params: JsonObject): Promise<JsonObject>;
|
|
36
36
|
};
|
|
37
37
|
assets360: {
|
|
38
38
|
get360Assets(params: {
|
|
39
39
|
params: Partial<_360AssetsQueryParams>;
|
|
40
|
-
}
|
|
40
|
+
}): Promise<_360AssetsResponse>;
|
|
41
41
|
get360AssetsCounts(projectId: string, params: {
|
|
42
42
|
uploadedBy: string;
|
|
43
|
-
}
|
|
43
|
+
}): Promise<_360AssetsCountsResponse>;
|
|
44
44
|
get360AssetLink(projectId: string, date: string, floor: string, assetType: string, drawingId: string, marker: string | null): Promise<string>;
|
|
45
|
-
update360(id: number, payload: _360AssetsRequestPayload
|
|
46
|
-
update360ByProjectDateName(projectId: string, date: string, floor: string, payload: _360AssetsRequestPayload
|
|
47
|
-
deleteUpload(id: number
|
|
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>;
|
|
48
48
|
getArchive(id: number, params: {
|
|
49
49
|
dateType: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
}): Promise<Blob>;
|
|
51
|
+
get360Progress(id: number): Promise<_360ProgressResponse>;
|
|
52
|
+
createUpload(projectId: string, params: _360AssetsRequestPayload): Promise<IngestUploadInitResponse>;
|
|
53
|
+
upload(id: number, params: JsonObject, payload: _360AssetsUploadPayload): Promise<_360WalkV2>;
|
|
54
|
+
reprocess360(id: number): Promise<void>;
|
|
54
55
|
drawingExists(payload: {
|
|
55
56
|
params: {
|
|
56
57
|
name: string;
|
|
57
58
|
project_id: string;
|
|
58
59
|
};
|
|
59
|
-
}
|
|
60
|
+
}): Promise<JsonObject>;
|
|
60
61
|
getDrawings(payload: {
|
|
61
62
|
params: DrawingsRequestPayload;
|
|
62
63
|
config?: SwrRequestConfig<_360FloorsResponse>;
|
|
63
|
-
}
|
|
64
|
-
getDrawingById(id: number, projectExid: string
|
|
65
|
-
updateDrawing(id: number, projectExid: string, payload: GenerateFloorPayload
|
|
66
|
-
deleteDrawing(id: number
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
}): Promise<_360FloorsResponse>;
|
|
65
|
+
getDrawingById(id: number, projectExid: string): Promise<_360FloorV2>;
|
|
66
|
+
updateDrawing(id: number, projectExid: string, payload: GenerateFloorPayload): Promise<_360FloorV2>;
|
|
67
|
+
deleteDrawing(id: number): Promise<void>;
|
|
68
|
+
restoreDrawing(id: number): Promise<void>;
|
|
69
|
+
transferWalks(sourceId: number, targetId: number, projectExid: string): Promise<void>;
|
|
70
|
+
createDrawing(projectExid: string, payload: GenerateFloorPayload, createdBy: string): Promise<_360FloorV2>;
|
|
69
71
|
fetchDrawingOverlay(id: number, params: {
|
|
70
72
|
view: boolean;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
thumbnail?: boolean;
|
|
74
|
+
}, onDownloadProgress?: (progress: ProgressEvent) => void, extraConfig?: AxiosRequestConfig): Promise<string>;
|
|
75
|
+
getFloorArchive(id: number): Promise<string>;
|
|
76
|
+
generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<JsonObject>;
|
|
77
|
+
get360QueueSize(ingestUrl: string, params?: _360QueueQueryParams): Promise<_360QueueResponse>;
|
|
74
78
|
};
|
|
75
79
|
bim: {
|
|
76
80
|
createUpload(projectId: string, params: {
|
|
@@ -86,18 +90,39 @@ export declare const IngestApi: {
|
|
|
86
90
|
name: string;
|
|
87
91
|
}, payload: BimUploadPayload): Promise<void>;
|
|
88
92
|
};
|
|
93
|
+
webhook: {
|
|
94
|
+
notifyBimUpdated(projectId: string, bimIdentifier: string): Promise<void>;
|
|
95
|
+
};
|
|
89
96
|
mobileCapture: {
|
|
90
|
-
getProjectMobileAssets(params: MobileAssetsQueryParams, extraConfig?: AxiosRequestConfig
|
|
97
|
+
getProjectMobileAssets(params: MobileAssetsQueryParams, extraConfig?: AxiosRequestConfig): Promise<MobileCaptureAssetsResponse>;
|
|
91
98
|
getMobileAssetPhoto(assetId: string | number, params: {
|
|
92
99
|
projectId?: string;
|
|
93
100
|
project_id?: string;
|
|
94
101
|
isThumbnail?: boolean;
|
|
95
102
|
is_thumbnail?: boolean;
|
|
96
|
-
}
|
|
97
|
-
deleteAsset(assetId: string | number
|
|
103
|
+
}): Promise<string>;
|
|
104
|
+
deleteAsset(assetId: string | number): Promise<void>;
|
|
98
105
|
};
|
|
99
106
|
utils: {
|
|
100
107
|
loadAllAssetsInQueue(): Promise<({
|
|
108
|
+
ingestVersion: string;
|
|
109
|
+
id: number;
|
|
110
|
+
projectId: string;
|
|
111
|
+
consumed: boolean;
|
|
112
|
+
token: string;
|
|
113
|
+
flightDate: string;
|
|
114
|
+
flightGeolocation: string;
|
|
115
|
+
modelZip: string;
|
|
116
|
+
orthomosaicZip: string;
|
|
117
|
+
reportPdf: string;
|
|
118
|
+
processingLog: string;
|
|
119
|
+
uploadedBy: string;
|
|
120
|
+
processingStatus: import("@evercam/api/types").IngestProcessingStatus | string;
|
|
121
|
+
modelCesiumAssetId: string;
|
|
122
|
+
updatedAt: string;
|
|
123
|
+
hasTusLinks: boolean;
|
|
124
|
+
aerialShots: import("@evercam/api/types").AerialShotItem[];
|
|
125
|
+
} | {
|
|
101
126
|
ingestVersion: string;
|
|
102
127
|
archive: string;
|
|
103
128
|
date: string;
|
|
@@ -117,6 +142,8 @@ export declare const IngestApi: {
|
|
|
117
142
|
processingStatus: string;
|
|
118
143
|
projectId: string;
|
|
119
144
|
report: string;
|
|
145
|
+
processingLog: string;
|
|
146
|
+
hasSteps?: boolean;
|
|
120
147
|
route: unknown | null;
|
|
121
148
|
startPosition: unknown | null;
|
|
122
149
|
tusLinks: unknown | null;
|
|
@@ -124,22 +151,8 @@ export declare const IngestApi: {
|
|
|
124
151
|
uploadedBy: string;
|
|
125
152
|
videoArchive: string;
|
|
126
153
|
videos: string[];
|
|
127
|
-
} | {
|
|
128
|
-
ingestVersion: string;
|
|
129
|
-
id: number;
|
|
130
|
-
projectId: string;
|
|
131
|
-
consumed: boolean;
|
|
132
|
-
token: string;
|
|
133
|
-
flightDate: string;
|
|
134
|
-
flightGeolocation: string;
|
|
135
|
-
modelZip: string;
|
|
136
|
-
orthomosaicZip: string;
|
|
137
|
-
reportPdf: string;
|
|
138
|
-
uploadedBy: string;
|
|
139
|
-
processingStatus: import("@evercam/api/types").IngestProcessingStatus | string;
|
|
140
|
-
modelCesiumAssetId: string;
|
|
141
|
-
updatedAt: string;
|
|
142
|
-
hasTusLinks: boolean;
|
|
143
154
|
})[]>;
|
|
155
|
+
getIngestVersion(ingestUrl: string): IngestVersions;
|
|
156
|
+
chooseIngestApiUrl(type: IngestTypes): Promise<string>;
|
|
144
157
|
};
|
|
145
158
|
};
|