@evercam/api 1.0.0-97ed1b3dd → 1.0.0-98c24a63e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/api/3dFirebaseApi.d.ts +8 -2
- package/dist/api/api/adminApi.d.ts +2 -2
- package/dist/api/api/evercamApi.d.ts +8 -13
- package/dist/api/api/evercamLabsApi.d.ts +1 -12
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +23 -25
- package/dist/api/api/workflowsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +5 -1
- package/dist/api/types/analytics.d.ts +12 -15
- package/dist/api/types/auditLogs.d.ts +1 -3
- package/dist/api/types/axios.d.ts +1 -0
- package/dist/api/types/bim.d.ts +1 -1
- package/dist/api/types/camera.d.ts +2 -0
- package/dist/api/types/comments.d.ts +7 -1
- package/dist/api/types/company.d.ts +1 -2
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/errors.d.ts +4 -1
- package/dist/api/types/index.d.ts +1 -1
- package/dist/api/types/ingest.d.ts +88 -25
- package/dist/api/types/kit.d.ts +1 -50
- package/dist/api/types/media.d.ts +1 -2
- package/dist/api/types/notification.d.ts +12 -1
- package/dist/api/types/project.d.ts +7 -2
- package/dist/api/types/shared.d.ts +10 -12
- package/dist/api/types/siteView.d.ts +6 -1
- package/dist/api/types/workflows.d.ts +108 -0
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +718 -661
- 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 +144 -12
- package/dist/shared/types/droneUpload.d.ts +66 -0
- package/dist/shared/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/api/types/copilot.d.ts +0 -159
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _360Floor, _360FloorId, _360Marker3D, _360Pin, _360ProjectJsonResponse, _360ProjectListItem, _360Scene, _360SceneRoute, _360CalibrationDetails, _360FloorData, _360FloorRef, _360PinData, _360Route, _360Walk, Point3D, DroneBimData, DroneImageryPlan, DroneMarker, DroneModel, DroneProjectData, DroneProjectDataPatch, DroneTag, DroneTransformPatch, ForgeMarker, ForgeProjectData, ForgeView, ItwinProjectData, MapView, PlannerListItem, SitePlan, ProjectExid, SiteViewCameraListItem, SiteViewerType, DroneCameraTransform } from "@evercam/api/types";
|
|
1
|
+
import { _360Floor, _360FloorId, _360Marker3D, _360Pin, _360ProjectJsonResponse, _360ProjectListItem, _360Scene, _360SceneRoute, _360CalibrationDetails, _360FloorData, _360FloorRef, _360PinData, _360Route, _360Walk, Point3D, DroneBimData, DroneImageryPlan, DroneMarker, DroneModel, DroneProjectData, DroneProjectDataPatch, DroneTag, DroneTransformPatch, ForgeMarker, ForgeProjectData, ForgeUrn, ForgeView, ItwinProjectData, MapView, PlannerListItem, SitePlan, ProjectExid, SiteViewCameraListItem, SiteViewerType, DroneCameraTransform } from "@evercam/api/types";
|
|
2
2
|
import { AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare const getFirebaseDbApi: () => string;
|
|
4
4
|
export declare const getFirebaseStorageUrl: () => string;
|
|
@@ -168,7 +168,13 @@ export declare const _3dFirebaseApi: {
|
|
|
168
168
|
access_token: string;
|
|
169
169
|
}>;
|
|
170
170
|
getProjectInfo(projectExid: ProjectExid): Promise<ForgeProjectData | null>;
|
|
171
|
-
|
|
171
|
+
getUrns(projectExid: ProjectExid): Promise<ForgeUrn[] | null>;
|
|
172
|
+
saveModelView({ projectId, modelIndex, viewId, view, }: {
|
|
173
|
+
projectId: ProjectExid;
|
|
174
|
+
modelIndex: number;
|
|
175
|
+
viewId: string;
|
|
176
|
+
view: ForgeView;
|
|
177
|
+
}): Promise<void>;
|
|
172
178
|
saveMarkers(projectId: string, markers: ForgeMarker[]): Promise<void>;
|
|
173
179
|
};
|
|
174
180
|
itwin: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "@evercam/api/types/hdd";
|
|
2
2
|
import type { OAuthClient, OAuthClientWithSecret, AdminCreateOAuthClientPayload, UpdateOAuthClientPayload } from "@evercam/api/types/oauth";
|
|
3
|
-
import type { CamerasResponsePayload, CameraUpdateRequestPayload, PaginatedItems, AdminCamera, AdminProjectDetail, AdminProjectListItem, AdminHdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload, Kit, PatchPayload, StorageProvidersResponsePayload, MediaFilterQueryParams, Media, MediaDeleteRequestPayload, AuditLogsParams, AuditLog, SnapshotExtractionQyeryParams, SnapshotExtraction, CameraCreateRequestPayload, CameraDeletePayload, SnapshotTestPayload, SnapshotTestResponse, DuplicatedCameraFields, DuplicatedCameraResponse, MergeDuplicatedCameraPayload, FetchCameraQueryParams, DeleteSnapshotQueryParams, CameraNote, GetCameraNotesParams, CreateCameraNotePayload, CompanyQueryParams, CompanySummary, CompanyUpdatePayload, SsoProvider, SsoUpdatePayload, SsoCreatePayload, SuppressionsQueryParams, Suppression, SnapshotExtractionType, KitQueryParams,
|
|
3
|
+
import type { CamerasResponsePayload, CameraUpdateRequestPayload, PaginatedItems, AdminCamera, AdminProjectDetail, AdminProjectListItem, AdminHdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload, Kit, PatchPayload, StorageProvidersResponsePayload, MediaFilterQueryParams, Media, MediaDeleteRequestPayload, AuditLogsParams, AuditLog, SnapshotExtractionQyeryParams, SnapshotExtraction, CameraCreateRequestPayload, CameraDeletePayload, SnapshotTestPayload, SnapshotTestResponse, DuplicatedCameraFields, DuplicatedCameraResponse, MergeDuplicatedCameraPayload, FetchCameraQueryParams, DeleteSnapshotQueryParams, CameraNote, GetCameraNotesParams, CreateCameraNotePayload, CompanyQueryParams, CompanySummary, CompanyUpdatePayload, SsoProvider, SsoUpdatePayload, SsoCreatePayload, SuppressionsQueryParams, Suppression, SnapshotExtractionType, KitQueryParams, KitMetricStatsEntry, CameraLogsQueryParams, CameraLog, CameraAuditLogsQueryParams, CameraAuditLog, NvrQueryParams, Nvr, SiteVisitCamerasQueryParams, OfflineCameraQueryParams, OfflineCamera, OfflineCameraNoteResponse, UserStatsResponse, UserCameraResponse, UserProjectResponse, ProjectUsers, ProjectCamera, ProjectsQueryParams, ProjectStatusStats, ProjectCreateRequestPayload, ProjectCreateResponse, ProjectUpdateRequestPayload, RouterQueryParams, Router, RouterCreatePayload, GlobalSearchQueryParams, SimCreateUpdatePayload, SimsQueryParams, Sim, SendSmsPayload, SendSmsResponse, SmsHistoryResponse, SmsQueryParams, Sms, ProgressPhotosQueryParams, ProgressPhotoItem, progressPhotosHistoryQueryParams, ProgressPhotosHistory, AdminUserUpdateRequestPayload, AdminQueryParams, Admin, ImpersonateUserResponse, AdminUserQueryParams, AdminCompareQueryParams, AdminCompare, NvrCreatePayload, WidgetsListRequestPayload, AdminWidget, AdminWidgetFull, WidgetPayload, PaginationParams, KitStorageRequestPayload, AdminCompanyUser, AdminCompanyProject, CompanyKit, CompanyCameraSummary, Automation, KitStorage, KitFootageRequestPayload, CommentsListRequestPayload, Comment, KitFootage, KitAlarmItem, KitSupportChecklist, RecycleBin, RecycleBinQueryParams, TransferCloudRecordingsQueryParams, SnapshotTransfer, CheckCameraPortPayload, CameraStatusLog, KitBox, KitBoxCreatePayload, KitBoxQueryParams, AdminInvite, AdminSearchItem, WithZohoParams, ZohoDeskTicketSearchResponse, JsonObject, ProjectStorageQueryParams, ProjectStorage, StorageProvider, AnprExtraction, AnprExtractionCreatePayload } from "@evercam/api/types";
|
|
4
4
|
import { KitMetricId } from "@evercam/api/types";
|
|
5
5
|
import { Tag } from "@evercam/api/types/tag";
|
|
6
6
|
import type { AxiosRequestConfig } from "axios";
|
|
@@ -152,7 +152,6 @@ export declare const AdminApi: {
|
|
|
152
152
|
params: KitQueryParams;
|
|
153
153
|
}): Promise<PaginatedItems<Kit[]>>;
|
|
154
154
|
getKit(kitId: number): Promise<Kit>;
|
|
155
|
-
createKit(params: KitCreatePayload): Promise<AdminKit>;
|
|
156
155
|
updateKit(id: string, params: PatchPayload<Kit>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
157
156
|
deleteKit(id: string, params: JsonObject): Promise<void>;
|
|
158
157
|
getKitStats<T = KitMetricStatsEntry>({ kitId, metric, fromDate, toDate, }: {
|
|
@@ -171,6 +170,7 @@ export declare const AdminApi: {
|
|
|
171
170
|
}): Promise<KitFootage[]>;
|
|
172
171
|
getAlarms(kitId: number): Promise<KitAlarmItem[]>;
|
|
173
172
|
runSupportChecklist(kitId: number): Promise<KitSupportChecklist>;
|
|
173
|
+
transferProject(kitId: number, projectExid: string): Promise<Kit>;
|
|
174
174
|
getBoxes(params: {
|
|
175
175
|
params: Partial<KitBoxQueryParams>;
|
|
176
176
|
}): Promise<PaginatedItems<KitBox>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from "axios";
|
|
2
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, 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, 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";
|
|
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, 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>;
|
|
@@ -97,6 +97,9 @@ export declare const EvercamApi: {
|
|
|
97
97
|
params?: ApiCredentials;
|
|
98
98
|
config?: SwrRequestConfig<Project[]>;
|
|
99
99
|
}): Promise<Project[]>;
|
|
100
|
+
show(projectExid: string): Promise<{
|
|
101
|
+
project: Project;
|
|
102
|
+
}>;
|
|
100
103
|
create(params: {
|
|
101
104
|
name: string;
|
|
102
105
|
}): Promise<{
|
|
@@ -137,6 +140,7 @@ export declare const EvercamApi: {
|
|
|
137
140
|
removeMembers(projectExid: string, emails: string[]): Promise<void>;
|
|
138
141
|
updateMembersRole(projectExid: string, payload: ProjectMembersRequestPayload): Promise<void>;
|
|
139
142
|
requestCameraInfo(projectExid: string): Promise<void>;
|
|
143
|
+
getMentionableUsers(projectExid: string, scope: CommentsScope): Promise<MentionableUser[]>;
|
|
140
144
|
};
|
|
141
145
|
timelapse: {
|
|
142
146
|
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
@@ -261,25 +265,16 @@ export declare const EvercamApi: {
|
|
|
261
265
|
with_zoho?: boolean;
|
|
262
266
|
}): Promise<CompanySummary>;
|
|
263
267
|
getCompanyUsers(params: {
|
|
264
|
-
params:
|
|
265
|
-
page: number;
|
|
266
|
-
limit: number;
|
|
267
|
-
};
|
|
268
|
+
params: PaginationParams;
|
|
268
269
|
}): Promise<PaginatedItems<CompanyUser>>;
|
|
269
270
|
getCompanyProjects(params: {
|
|
270
|
-
params:
|
|
271
|
-
page: number;
|
|
272
|
-
limit: number;
|
|
273
|
-
};
|
|
271
|
+
params: PaginationParams;
|
|
274
272
|
}): Promise<PaginatedItems<CompanyProject>>;
|
|
275
273
|
getCompanyCameras(params: PaginationParams | {
|
|
276
274
|
params: PaginationParams;
|
|
277
275
|
}): Promise<PaginatedItems<CompanyCameraSummary>>;
|
|
278
276
|
getCompanyKits(params: {
|
|
279
|
-
params:
|
|
280
|
-
page: number;
|
|
281
|
-
limit: number;
|
|
282
|
-
};
|
|
277
|
+
params: PaginationParams;
|
|
283
278
|
}): Promise<PaginatedItems<CompanyKit>>;
|
|
284
279
|
};
|
|
285
280
|
batteries: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CameraExid,
|
|
1
|
+
import { CameraExid, GrafanaKitMetrics, LuminanceReading, PaginatedItems, ActiveUsersResponsePayload, ActiveUsersRequestPayload, PosthogUsersRequestParams, PosthogUsersResponse, HeatmapIntersectionsRequestParams, SmartSearchHeatmapPoint, SiteAnalyticsProcessingStatusPayload, SiteAnalyticsProcessingStatus, SwrRequestConfig, GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
|
|
2
2
|
export declare function getLabsBaseUrl(): string | null | undefined;
|
|
3
3
|
export declare const EvercamLabsApi: {
|
|
4
4
|
posthog: {
|
|
@@ -8,17 +8,6 @@ export declare const EvercamLabsApi: {
|
|
|
8
8
|
data: ActiveUsersResponsePayload;
|
|
9
9
|
}>;
|
|
10
10
|
};
|
|
11
|
-
copilot: {
|
|
12
|
-
getAllConversations(params: LabsPaginationParams & {
|
|
13
|
-
cameraExid?: string;
|
|
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>>;
|
|
21
|
-
};
|
|
22
11
|
siteAnalytics: {
|
|
23
12
|
getProcessingStatus(params?: SiteAnalyticsProcessingStatusPayload, config?: SwrRequestConfig<SiteAnalyticsProcessingStatus[]>): Promise<SiteAnalyticsProcessingStatus[]>;
|
|
24
13
|
getIntersectionsHeatmapData(params: HeatmapIntersectionsRequestParams): Promise<SmartSearchHeatmapPoint[]>;
|
package/dist/api/api/index.d.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
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,
|
|
3
|
+
import type { _360AssetsQueryParams, _360AssetsRequestPayload, _360QueueQueryParams, _360AssetsUploadPayload, _360AssetsResponse, _360AssetsCountsResponse, _360QueueResponse, _360FloorsResponse, DroneQueueResponse, DroneUploadsResponse, IngestUploadInitResponse, BimUploadsResponse, MobileAssetsQueryParams, MobileCaptureAssetsResponse, BimUploadPayload, BimUploadsQueryParams, CalculateMeasuringOperationRequestPayload, DrawingsRequestPayload, DronesQueryParams, DroneCreation, DroneCreated, DroneUploadItem, DroneFileAllocation, DroneFileStates, DroneCompletion, DroneDeletion, DroneReprocessResponse, AerialAllocation, AerialUploadStates, AerialShotPage, IngestProcessingProgress, FlightImagesQueryParams, Generate360MapRequestPayload, GenerateFloorPayload, InspectionToolRequestPayload, JsonObject, _360WalkV2, _360FloorV2 } from "@evercam/api/types";
|
|
4
4
|
import { IngestVersions, IngestTypes } from "@evercam/api/types";
|
|
5
5
|
export declare const getIngestApiUrls: (type: string) => string[];
|
|
6
6
|
export declare const IngestApi: {
|
|
7
7
|
drone: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
createProcessing(payload: DroneCreation, signal?: AbortSignal): Promise<DroneCreated>;
|
|
9
|
+
getProcessing(id: number, signal?: AbortSignal): Promise<DroneUploadItem>;
|
|
10
|
+
getFlightProcessing(projectId: string, date: string): Promise<DroneUploadItem>;
|
|
11
|
+
allocateFiles(id: number, files: DroneFileAllocation[], signal?: AbortSignal): Promise<DroneFileStates>;
|
|
12
|
+
acknowledgeFiles(id: number, filenames: string[], signal?: AbortSignal): Promise<DroneCompletion>;
|
|
13
|
+
completeProcessing(id: number, signal?: AbortSignal): Promise<DroneCompletion>;
|
|
14
|
+
deleteFiles(id: number, filenames?: string[]): Promise<DroneDeletion>;
|
|
15
|
+
allocateAerialShots(id: number, aerialShots: AerialAllocation[], signal?: AbortSignal): Promise<AerialUploadStates>;
|
|
16
|
+
acknowledgeAerialShots(id: number, filenames: string[], signal?: AbortSignal): Promise<AerialUploadStates>;
|
|
17
|
+
getAerialShots(id: number, params?: {
|
|
18
|
+
cursor?: string;
|
|
19
|
+
limit?: number;
|
|
20
|
+
processingStatus?: string;
|
|
21
|
+
}): Promise<AerialShotPage>;
|
|
22
|
+
deleteAerialShots(id: number, filenames?: string[]): Promise<DroneDeletion>;
|
|
23
|
+
reprocessDrone(id: number, params?: JsonObject): Promise<DroneReprocessResponse>;
|
|
12
24
|
getDrones(params: {
|
|
13
25
|
params: Partial<DronesQueryParams>;
|
|
14
26
|
}): Promise<DroneUploadsResponse>;
|
|
15
27
|
getProcessingProgress(id: number): Promise<IngestProcessingProgress>;
|
|
16
28
|
getArchive(id: number, params: {
|
|
17
29
|
dataType: string;
|
|
18
|
-
}): Promise<
|
|
30
|
+
}): Promise<string>;
|
|
19
31
|
deleteUpload(id: number): Promise<void>;
|
|
20
|
-
prepareForUpload(projectId: string, params: {
|
|
21
|
-
uploadedBy: string;
|
|
22
|
-
token: string;
|
|
23
|
-
}): Promise<void>;
|
|
24
|
-
upload(projectId: string, params: {
|
|
25
|
-
uploadedBy: string;
|
|
26
|
-
token: string;
|
|
27
|
-
}, payload: DroneUploadUpdateRequestPayload): Promise<void>;
|
|
28
|
-
verifyToken(projectId: string, params: {
|
|
29
|
-
token: string;
|
|
30
|
-
}): Promise<JsonObject>;
|
|
31
32
|
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload, ingestUrl?: string): Promise<JsonObject>;
|
|
32
33
|
inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<JsonObject>;
|
|
33
|
-
isInspectionEnabled(projectId: string, params?: JsonObject): Promise<JsonObject>;
|
|
34
34
|
getDroneQueueSize(droneUrl: string): Promise<DroneQueueResponse>;
|
|
35
35
|
getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<JsonObject>;
|
|
36
36
|
checkFlightAvailableFeatures(projectId: string, params: JsonObject): Promise<JsonObject>;
|
|
@@ -42,15 +42,14 @@ export declare const IngestApi: {
|
|
|
42
42
|
get360AssetsCounts(projectId: string, params: {
|
|
43
43
|
uploadedBy: string;
|
|
44
44
|
}): Promise<_360AssetsCountsResponse>;
|
|
45
|
-
get360AssetLink(projectId: string, date: string, floor: string | number, assetType: string, drawingId: string | number, marker: string | null): Promise<string | string[]>;
|
|
46
45
|
update360(id: number, payload: _360AssetsRequestPayload): Promise<_360WalkV2>;
|
|
47
46
|
update360ByProjectDateName(projectId: string, date: string, floor: string, payload: Partial<_360AssetsRequestPayload> & {
|
|
48
47
|
drawingId?: number;
|
|
49
48
|
}): Promise<_360WalkV2>;
|
|
50
49
|
deleteUpload(id: number): Promise<void>;
|
|
51
50
|
getArchive(id: number, params: {
|
|
52
|
-
|
|
53
|
-
}): Promise<
|
|
51
|
+
dataType: string;
|
|
52
|
+
}): Promise<string>;
|
|
54
53
|
get360Progress(id: number): Promise<IngestProcessingProgress>;
|
|
55
54
|
createUpload(projectId: string, params: _360AssetsRequestPayload): Promise<IngestUploadInitResponse>;
|
|
56
55
|
upload(id: number, params: JsonObject, payload: _360AssetsUploadPayload): Promise<_360WalkV2>;
|
|
@@ -111,8 +110,6 @@ export declare const IngestApi: {
|
|
|
111
110
|
ingestVersion: string;
|
|
112
111
|
id: number;
|
|
113
112
|
projectId: string;
|
|
114
|
-
consumed: boolean;
|
|
115
|
-
token: string;
|
|
116
113
|
flightDate: string;
|
|
117
114
|
flightGeolocation: string;
|
|
118
115
|
modelZip: string;
|
|
@@ -123,9 +120,10 @@ export declare const IngestApi: {
|
|
|
123
120
|
processingStatus: import("@evercam/api/types").IngestProcessingStatus | string;
|
|
124
121
|
modelCesiumAssetId: string;
|
|
125
122
|
updatedAt: string;
|
|
126
|
-
|
|
123
|
+
canDelete: boolean;
|
|
124
|
+
canReprocess: boolean;
|
|
127
125
|
hasSteps: boolean;
|
|
128
|
-
|
|
126
|
+
aerialShotsCount: number;
|
|
129
127
|
} | {
|
|
130
128
|
ingestVersion: string;
|
|
131
129
|
archive: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ChatListPage, type ChatListParams, type ChatSession } from "@evercam/api/types";
|
|
2
|
+
/**
|
|
3
|
+
* The Evercam Workflows 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 WorkflowsApi: {
|
|
11
|
+
chat: {
|
|
12
|
+
listConversations(params?: ChatListParams): Promise<ChatListPage>;
|
|
13
|
+
getConversation(id: string): Promise<ChatSession>;
|
|
14
|
+
};
|
|
15
|
+
};
|
package/dist/api/types/360.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export type _360Floor = {
|
|
|
61
61
|
imagesOnlyFeatureFlag?: boolean;
|
|
62
62
|
forgeBIMFeatureFlag?: boolean;
|
|
63
63
|
isForgeGravityEnabled?: boolean;
|
|
64
|
+
bimHeight?: number;
|
|
64
65
|
initialForgeView?: ForgeView | null;
|
|
65
66
|
enhancedLightFeatureFlag?: boolean;
|
|
66
67
|
calibrationDetails?: Record<string, unknown>;
|
|
@@ -185,7 +186,8 @@ export declare enum _360UrlParams {
|
|
|
185
186
|
IsWidget = "isWidget",
|
|
186
187
|
MediaLocked = "mediaLocked",
|
|
187
188
|
Debug = "debug",
|
|
188
|
-
RequiresValidation = "requires_validation"
|
|
189
|
+
RequiresValidation = "requires_validation",
|
|
190
|
+
CommentId = "comment_id"
|
|
189
191
|
}
|
|
190
192
|
export declare enum _360AssetType {
|
|
191
193
|
Video = "video",
|
|
@@ -215,6 +217,7 @@ export type _360AssetsQueryParams = PaginationParams & {
|
|
|
215
217
|
projectId: string;
|
|
216
218
|
date: DateType;
|
|
217
219
|
floor: string;
|
|
220
|
+
name: string;
|
|
218
221
|
id: string;
|
|
219
222
|
};
|
|
220
223
|
export type _360AssetsRequestPayload = {
|
|
@@ -342,6 +345,7 @@ export type _360FloorData = {
|
|
|
342
345
|
imagesOnlyFeatureFlag: boolean;
|
|
343
346
|
forgeBIMFeatureFlag: boolean;
|
|
344
347
|
isForgeGravityEnabled: boolean;
|
|
348
|
+
bimHeight?: number | null;
|
|
345
349
|
initialForgeView: ForgeView | null;
|
|
346
350
|
calibrationDetails: _360CalibrationDetails;
|
|
347
351
|
enhancedLightFeatureFlag: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare enum AnalyticsEventPageId {
|
|
2
2
|
Timeline = "Timeline",
|
|
3
|
-
|
|
3
|
+
Chat = "Chat",
|
|
4
4
|
Recordings = "Recordings",
|
|
5
5
|
Liveview = "LiveView",
|
|
6
6
|
Compare = "Compare",
|
|
@@ -60,7 +60,6 @@ export declare enum AnalyticsEvent {
|
|
|
60
60
|
MarkUpTool = "MarkUpTool-Toggle",
|
|
61
61
|
Comment = "Comment-Toggle",
|
|
62
62
|
Compare = "Compare-Toggle",
|
|
63
|
-
Copilot = "Copilot-Toggle",
|
|
64
63
|
DownloadMediaOpen = "DownloadMedia-Open",
|
|
65
64
|
SettingsAccountUpdatePassword = "UpdatePassword",
|
|
66
65
|
SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
|
|
@@ -157,12 +156,6 @@ export declare enum AnalyticsEvent {
|
|
|
157
156
|
TimelineCompareSlide = "Compare-Slide",
|
|
158
157
|
TimelineSelectMilestoneItem = "Timeline-SelectMilestoneItem",
|
|
159
158
|
TimelineSelectTimestamp = "Timeline-SelectTimestamp",
|
|
160
|
-
CopilotSendMessage = "Copilot-SendMessage",
|
|
161
|
-
CopilotClickTimestamp = "Copilot-ClickTimestamp",
|
|
162
|
-
CopilotRegenerate = "Copilot-Regenerate",
|
|
163
|
-
CopilotError = "Copilot-Error",
|
|
164
|
-
CopilotNavigation = "Copilot-Navigation",
|
|
165
|
-
CopilotToggle = "Copilot-Toggle",
|
|
166
159
|
GroupsVisibilityMobileCapture = "GroupsVisibility-MobileCapture",
|
|
167
160
|
GroupsVisibilityAnpr = "GroupsVisibility-Anpr",
|
|
168
161
|
GroupsVisibilityComments = "GroupsVisibility-Comments",
|
|
@@ -584,13 +577,17 @@ export declare enum AnalyticsEvent {
|
|
|
584
577
|
SmartSearchThumbnailPlay = "SmartSearch-ThumbnailPlay",
|
|
585
578
|
SmartSearchExportFile = "SmartSearch-ExportFile",
|
|
586
579
|
SmartSearchDownloadHeatmapImage = "SmartSearch-DownloadHeatmapImage",
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
580
|
+
ChatToggleSidebarMode = "Chat-ToggleSidebarMode",
|
|
581
|
+
ChatSendMessage = "Chat-SendMessage",
|
|
582
|
+
ChatClickStarter = "Chat-ClickStarter",
|
|
583
|
+
ChatStopResponse = "Chat-StopResponse",
|
|
584
|
+
ChatCopyAnswer = "Chat-CopyAnswer",
|
|
585
|
+
ChatDownloadPdf = "Chat-DownloadPdf",
|
|
586
|
+
ChatOpenCamera = "Chat-OpenCamera",
|
|
587
|
+
ChatNewConversation = "Chat-NewConversation",
|
|
588
|
+
ChatOpenConversation = "Chat-OpenConversation",
|
|
589
|
+
ChatRenameConversation = "Chat-RenameConversation",
|
|
590
|
+
ChatDeleteConversation = "Chat-DeleteConversation",
|
|
594
591
|
ForgeBimAddModelButtonClicked = "ForgeBim-AddModelButtonClicked",
|
|
595
592
|
ForgeBimUploadChoiceDialogOpened = "ForgeBim-UploadChoiceDialogOpened",
|
|
596
593
|
ForgeBimModelAddMethodSelected = "ForgeBim-ModelAddMethodSelected",
|
|
@@ -28,9 +28,7 @@ export declare enum AuditLogActionType {
|
|
|
28
28
|
DELETE_SHARE = "delete_share",
|
|
29
29
|
SHARE_REQUEST = "share_request",
|
|
30
30
|
DELETE_SHARE_REQUEST = "delete_share_request",
|
|
31
|
-
TRANSFER_OWNERSHIP = "transfer_ownership"
|
|
32
|
-
BIM_NOTE = "bim_note",
|
|
33
|
-
GATE_REPORT_NOTE = "gate_report_note"
|
|
31
|
+
TRANSFER_OWNERSHIP = "transfer_ownership"
|
|
34
32
|
}
|
|
35
33
|
export declare enum AuditLogEntity {
|
|
36
34
|
Cameras = "cameras",
|
|
@@ -13,6 +13,7 @@ export type AxiosEnvironment = {
|
|
|
13
13
|
weatherApiBaseUrl?: string | null;
|
|
14
14
|
evercamLabsUrl?: string | null;
|
|
15
15
|
isLabsStaging?: boolean;
|
|
16
|
+
workflowsApiUrl?: string | null;
|
|
16
17
|
firebaseDbLink?: string | null;
|
|
17
18
|
firebaseStorageUrl?: string | null;
|
|
18
19
|
firebaseStorageToken?: string | null;
|
package/dist/api/types/bim.d.ts
CHANGED
|
@@ -507,6 +507,8 @@ export type MergeDuplicatedCameraPayload = {
|
|
|
507
507
|
shareeCameras: Record<string, unknown>;
|
|
508
508
|
};
|
|
509
509
|
export type FetchCameraQueryParams = PaginationParams & {
|
|
510
|
+
/** Narrows the index to one project. Sent as `project_exid`. */
|
|
511
|
+
projectExid: ProjectExid;
|
|
510
512
|
status: CameraStatus;
|
|
511
513
|
isPublic: boolean;
|
|
512
514
|
featureFlags: CameraFeatureFlag[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D } from "@evercam/api/types";
|
|
1
|
+
import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D, _360CameraRotation } from "@evercam/api/types";
|
|
2
2
|
export declare enum CommentsScope {
|
|
3
3
|
Recordings = "recordings",
|
|
4
4
|
ThreeSixty = "360",
|
|
@@ -56,3 +56,9 @@ export type CommentCreationRequestPayload = {
|
|
|
56
56
|
position3d?: [number, number, number];
|
|
57
57
|
context?: Record<string, unknown>;
|
|
58
58
|
};
|
|
59
|
+
export type CommentThreeSixtyContext = {
|
|
60
|
+
floorId: string;
|
|
61
|
+
dateId: string;
|
|
62
|
+
currentRoom: string;
|
|
63
|
+
cameraRotation: _360CameraRotation;
|
|
64
|
+
};
|
|
@@ -38,7 +38,8 @@ export declare enum EvercamApiErrorCode {
|
|
|
38
38
|
ProviderEmailRequired = "PROVIDER_EMAIL_REQUIRED",
|
|
39
39
|
PasswordReset = "PASSWORD_RESET",
|
|
40
40
|
RequireShareRequest = "REQUIRE_SHARE_REQUEST",
|
|
41
|
-
Generic = "GENERIC"
|
|
41
|
+
Generic = "GENERIC",
|
|
42
|
+
VideoWallInUse = "VIDEO_WALL_IN_USE"
|
|
42
43
|
}
|
|
43
44
|
type _EvercamApiError = {
|
|
44
45
|
code: EvercamApiErrorCode;
|
|
@@ -47,6 +48,8 @@ type _EvercamApiError = {
|
|
|
47
48
|
innerError?: _EvercamApiError;
|
|
48
49
|
};
|
|
49
50
|
export type EvercamApiError = AxiosError<_EvercamApiError>;
|
|
51
|
+
export declare function isEvercamApiError(error: unknown): error is EvercamApiError;
|
|
52
|
+
export declare function getEvercamApiErrorCode(error: unknown): EvercamApiErrorCode | undefined;
|
|
50
53
|
export type AppError = {
|
|
51
54
|
statusCode?: number;
|
|
52
55
|
message?: string;
|
|
@@ -8,7 +8,6 @@ export * from "./autodesk";
|
|
|
8
8
|
export * from "./bim";
|
|
9
9
|
export * from "./camera";
|
|
10
10
|
export * from "./compare";
|
|
11
|
-
export * from "./copilot";
|
|
12
11
|
export * from "./credentials";
|
|
13
12
|
export * from "./drone";
|
|
14
13
|
export * from "./errors";
|
|
@@ -68,4 +67,5 @@ export * from "./siteView";
|
|
|
68
67
|
export * from "./aiConfigs";
|
|
69
68
|
export * from "./gateReportManagement";
|
|
70
69
|
export * from "./socket";
|
|
70
|
+
export * from "./workflows";
|
|
71
71
|
export * from "./observationEvents";
|
|
@@ -28,8 +28,6 @@ export declare enum IngestTypes {
|
|
|
28
28
|
}
|
|
29
29
|
export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
|
|
30
30
|
projectId: string;
|
|
31
|
-
consumed: string;
|
|
32
|
-
token: string;
|
|
33
31
|
processingStatus: IngestProcessingStatus;
|
|
34
32
|
};
|
|
35
33
|
export type IngestPaginatedResponse<T> = {
|
|
@@ -116,8 +114,6 @@ export type IngestTrackedAsset = {
|
|
|
116
114
|
export type DroneUploadItem = {
|
|
117
115
|
id: number;
|
|
118
116
|
projectId: string;
|
|
119
|
-
consumed: boolean;
|
|
120
|
-
token: string;
|
|
121
117
|
flightDate: string;
|
|
122
118
|
flightGeolocation: string;
|
|
123
119
|
modelZip: string;
|
|
@@ -128,35 +124,102 @@ export type DroneUploadItem = {
|
|
|
128
124
|
processingStatus: IngestProcessingStatus | string;
|
|
129
125
|
modelCesiumAssetId: string;
|
|
130
126
|
updatedAt: string;
|
|
131
|
-
|
|
127
|
+
canDelete: boolean;
|
|
128
|
+
canReprocess: boolean;
|
|
132
129
|
hasSteps: boolean;
|
|
133
|
-
|
|
130
|
+
aerialShotsCount: number;
|
|
134
131
|
};
|
|
135
132
|
export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
|
|
136
133
|
export type DroneQueueResponse = {
|
|
137
134
|
size: number;
|
|
138
135
|
assetsDrone: DroneUploadItem[];
|
|
139
136
|
};
|
|
140
|
-
export type
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
137
|
+
export type DroneFlightMetadata = {
|
|
138
|
+
dateTime: string;
|
|
139
|
+
gpsAltitude: string;
|
|
140
|
+
gpsCoordinates: string;
|
|
141
|
+
};
|
|
142
|
+
export type DroneFileAllocation = {
|
|
143
|
+
filename: string;
|
|
144
|
+
contentType: string;
|
|
145
|
+
};
|
|
146
|
+
export declare enum UploadFileStatus {
|
|
147
|
+
Allocated = "allocated",
|
|
148
|
+
Acknowledged = "acknowledged"
|
|
149
|
+
}
|
|
150
|
+
export type DroneFileState = DroneFileAllocation & {
|
|
151
|
+
status: UploadFileStatus;
|
|
152
|
+
uploadUrl?: string;
|
|
153
|
+
};
|
|
154
|
+
export type DroneFileError = {
|
|
155
|
+
filename?: string;
|
|
156
|
+
id?: number;
|
|
157
|
+
code: string;
|
|
158
|
+
detail: string;
|
|
159
|
+
retryable: boolean;
|
|
160
|
+
};
|
|
161
|
+
export type DroneFileStates = {
|
|
162
|
+
files: DroneFileState[];
|
|
163
|
+
errors: DroneFileError[];
|
|
164
|
+
nextCursor?: string | null;
|
|
165
|
+
};
|
|
166
|
+
export type DroneCompletion = DroneFileStates & {
|
|
167
|
+
processingId: number;
|
|
168
|
+
processingStatus: IngestProcessingStatus;
|
|
169
|
+
};
|
|
170
|
+
export type DroneReprocessResponse = Pick<DroneCompletion, "processingId" | "processingStatus">;
|
|
171
|
+
export type AerialAllocation = DroneFileAllocation & {
|
|
172
|
+
gpsLatitude: string;
|
|
173
|
+
gpsLongitude: string;
|
|
174
|
+
gpsAltitude: string;
|
|
175
|
+
};
|
|
176
|
+
export type AerialUploadState = AerialAllocation & {
|
|
177
|
+
id: number;
|
|
178
|
+
status: UploadFileStatus;
|
|
179
|
+
processingStatus: IngestProcessingStatus;
|
|
180
|
+
uploadUrl?: string;
|
|
181
|
+
fileLink?: string;
|
|
182
|
+
thumbnailLink?: string;
|
|
183
|
+
};
|
|
184
|
+
export type AerialUploadStates = {
|
|
185
|
+
aerialShots: AerialUploadState[];
|
|
186
|
+
errors: DroneFileError[];
|
|
187
|
+
nextCursor?: string | null;
|
|
188
|
+
complete: boolean;
|
|
189
|
+
};
|
|
190
|
+
export type AerialShotState = {
|
|
191
|
+
id: number;
|
|
192
|
+
filename?: string | null;
|
|
193
|
+
status?: UploadFileStatus | null;
|
|
194
|
+
contentType?: string | null;
|
|
195
|
+
processingStatus?: AerialUploadState["processingStatus"] | null;
|
|
196
|
+
gpsLatitude: string;
|
|
197
|
+
gpsLongitude: string;
|
|
198
|
+
gpsAltitude: string;
|
|
199
|
+
fileLink?: string | null;
|
|
200
|
+
thumbnailLink?: string | null;
|
|
201
|
+
};
|
|
202
|
+
export type AerialShotPage = Omit<AerialUploadStates, "aerialShots"> & {
|
|
203
|
+
aerialShots: AerialShotState[];
|
|
204
|
+
};
|
|
205
|
+
export type DroneCreation = {
|
|
206
|
+
projectId: string;
|
|
207
|
+
flightMetadata: DroneFlightMetadata;
|
|
208
|
+
aerialShots?: AerialAllocation[];
|
|
209
|
+
};
|
|
210
|
+
export type DroneCreated = {
|
|
211
|
+
id: number;
|
|
212
|
+
projectId: string;
|
|
213
|
+
processingStatus: IngestProcessingStatus;
|
|
214
|
+
aerialShots: AerialUploadState[];
|
|
215
|
+
errors: DroneFileError[];
|
|
216
|
+
};
|
|
217
|
+
export type DroneDeletion = {
|
|
218
|
+
deleted: {
|
|
219
|
+
filename: string;
|
|
220
|
+
id?: number;
|
|
158
221
|
}[];
|
|
159
|
-
|
|
222
|
+
errors: DroneFileError[];
|
|
160
223
|
};
|
|
161
224
|
export type CalculateMeasuringOperationRequestPayload = {
|
|
162
225
|
date: DateType;
|