@evercam/api 1.0.0-3bfceb83d → 1.0.0-3c7f69373
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 -10
- package/dist/api/api/adminApi.d.ts +6 -6
- package/dist/api/api/aiApi.d.ts +38 -1
- package/dist/api/api/evercamApi.d.ts +10 -2
- 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 +2 -3
- package/dist/api/api/workflowsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +5 -16
- package/dist/api/types/aiConfigs.d.ts +3 -1
- package/dist/api/types/analytics.d.ts +14 -16
- package/dist/api/types/auditLogs.d.ts +0 -1
- package/dist/api/types/automation.d.ts +9 -0
- package/dist/api/types/axios.d.ts +1 -0
- package/dist/api/types/camera.d.ts +24 -14
- package/dist/api/types/comments.d.ts +7 -1
- package/dist/api/types/company.d.ts +1 -2
- package/dist/api/types/drone.d.ts +0 -1
- package/dist/api/types/index.d.ts +1 -1
- package/dist/api/types/kit.d.ts +2 -0
- package/dist/api/types/media.d.ts +1 -2
- package/dist/api/types/notification.d.ts +12 -1
- package/dist/api/types/observationEvents.d.ts +81 -1
- package/dist/api/types/observations.d.ts +36 -37
- package/dist/api/types/planner.d.ts +1 -0
- package/dist/api/types/project.d.ts +7 -2
- package/dist/api/types/shared.d.ts +10 -12
- package/dist/api/types/siteAnalyticsManagement.d.ts +10 -0
- package/dist/api/types/siteView.d.ts +6 -1
- package/dist/api/types/user.d.ts +15 -0
- package/dist/api/types/workflows.d.ts +108 -0
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +582 -518
- 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 +149 -13
- package/dist/shared/types/observations.d.ts +4 -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,
|
|
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;
|
|
@@ -37,11 +37,6 @@ export declare const _3dFirebaseApi: {
|
|
|
37
37
|
projectId: ProjectExid;
|
|
38
38
|
plans: Record<string, DroneImageryPlan>;
|
|
39
39
|
}): Promise<void>;
|
|
40
|
-
getBlackListIds(projectId: ProjectExid): Promise<string | null>;
|
|
41
|
-
saveBlackListIds({ projectId, ids, }: {
|
|
42
|
-
projectId: ProjectExid;
|
|
43
|
-
ids: string;
|
|
44
|
-
}): Promise<void>;
|
|
45
40
|
saveModel({ projectId, model, }: {
|
|
46
41
|
projectId: ProjectExid;
|
|
47
42
|
model: DroneModel;
|
|
@@ -173,11 +168,14 @@ export declare const _3dFirebaseApi: {
|
|
|
173
168
|
access_token: string;
|
|
174
169
|
}>;
|
|
175
170
|
getProjectInfo(projectExid: ProjectExid): Promise<ForgeProjectData | null>;
|
|
176
|
-
|
|
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>;
|
|
177
178
|
saveMarkers(projectId: string, markers: ForgeMarker[]): Promise<void>;
|
|
178
|
-
getForgeProject({ projectID, }: {
|
|
179
|
-
projectID: string;
|
|
180
|
-
}): Promise<_360ForgeProject | null>;
|
|
181
179
|
};
|
|
182
180
|
itwin: {
|
|
183
181
|
getProjectInfo(projectId: string): Promise<ItwinProjectData | null>;
|
|
@@ -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,
|
|
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, KitCreatePayload, AdminKit, 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";
|
|
@@ -73,10 +73,6 @@ export declare const AdminApi: {
|
|
|
73
73
|
deleteSnapshots(cameraId: string, params: DeleteSnapshotQueryParams): Promise<void>;
|
|
74
74
|
transferCloudRecordings(cameraId: string, params: TransferCloudRecordingsQueryParams): Promise<void>;
|
|
75
75
|
refreshDeviceSettings(cameraId: string): Promise<void>;
|
|
76
|
-
saveNote(cameraId: string, params: SaveNotePayload): Promise<CameraNote>;
|
|
77
|
-
saveCameraNote(cameraId: string, params: CreateCameraNotePayload): Promise<{
|
|
78
|
-
message: string;
|
|
79
|
-
}>;
|
|
80
76
|
update(cameraId: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
81
77
|
transferOwnership(cameraId: string, newOwnerId: number): Promise<void>;
|
|
82
78
|
portCheck(payload: {
|
|
@@ -188,7 +184,11 @@ export declare const AdminApi: {
|
|
|
188
184
|
data: CameraLog[];
|
|
189
185
|
}>;
|
|
190
186
|
getCameraLogs(cameraId: string, params: CameraAuditLogsQueryParams): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
191
|
-
|
|
187
|
+
};
|
|
188
|
+
notes: {
|
|
189
|
+
togglePin(id: string | number): Promise<CameraNote>;
|
|
190
|
+
getNotes(cameraExid: string, params?: GetCameraNotesParams): Promise<PaginatedItems<CameraNote>>;
|
|
191
|
+
createNote(cameraExid: string, params: CreateCameraNotePayload): Promise<CameraNote>;
|
|
192
192
|
};
|
|
193
193
|
nvrs: {
|
|
194
194
|
getNvrs(params: {
|
package/dist/api/api/aiApi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, VerifiedDaysQueryParams, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, RoisQueryParams, GateReportRoiRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsCountsParams, DetectionsPresenceByLabel, SmartSearchBackendQueryPayload, SavedQuery, DateType, DetectionsRequestParams, DetectionsGroup, DetectionsCountsByPeriod, ObservationEvent, ObservationEventsQueryParams, ObservationEventsCountsQueryParams, ObservationEventsExportQueryParams, ObservationApprovalUpdateResponse, ObservationEventCount, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchBackendQuery, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel, SmartSearchResponse, SmartSearchRequestPayload, LegacyAnprExportParams, AnprBulkUpdateRequestPayload, AnprUpdateRequestPayload, SmartSearchQueriesRequestPayload, _360FloorId, CreateCoolifyAppRequestPayload, RegisterCoolifyAppResponsePayload, SaveCoolifyAppRequestPayload, SegmentsCountsParams, SegmentsPresenceResponse, AiPrompt, AiPromptCreatePayload, AiPromptCreateResponse, AiPromptDeleteResponse, AiPromptListResponse, AiPromptQueryParams, AiPromptUpdatePayload, AiPromptUpdateResponse, AiSubpromptCreatePayload, AiObservationType, AiObservationTypeCreatePayload, AiObservationTypeCreateResponse, AiObservationTypeDeleteResponse, AiObservationTypeListResponse, AiObservationTypeQueryParams, AiObservationTypeUpdatePayload, AiObservationTypeUpdateResponse, ObservationConfig, UpsertObservationConfigPayload, AiApiKey, AiApiKeyCreatePayload, AiApiKeyCreateResponse, AiApiKeyDeleteResponse, AiApiKeyQueryParams, AiApiKeyUpdatePayload, AiApiKeyUpdateResponse, APIEnvelope, AppActionResponse, AppRuntimeState, CoolifyProjectOption, CoolifyServerOption, CreateGateReportAppPayload, CreateGateReportAppResponse, GateReportAppEvents, GateReportAppsQueryParams, GateReportManagedApp, UpdateGateReportAppPayload, CreateSiteAnalyticsAppPayload, CreateSiteAnalyticsAppResponse, DeleteSiteAnalyticsAppResponse, ModelOption, SiteAnalyticsManagedApp, SiteAnalyticsManagementListParams, UpdateSiteAnalyticsAppPayload, ObservationEventQueryParams, ObservationEventListResponse, ObservationEventReviewPayload, ObservationEventReviewResponse } from "@evercam/api/types";
|
|
1
|
+
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, VerifiedDaysQueryParams, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, RoisQueryParams, GateReportRoiRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsCountsParams, DetectionsPresenceByLabel, SmartSearchBackendQueryPayload, SavedQuery, DateType, DetectionsRequestParams, DetectionsGroup, DetectionsCountsByPeriod, ObservationEvent, ObservationEventsQueryParams, ObservationEventsCountsQueryParams, ObservationEventsExportQueryParams, ObservationApprovalUpdateResponse, ObservationEventCount, ObservationType, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchBackendQuery, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel, SmartSearchResponse, SmartSearchRequestPayload, LegacyAnprExportParams, AnprBulkUpdateRequestPayload, AnprUpdateRequestPayload, SmartSearchQueriesRequestPayload, _360FloorId, CreateCoolifyAppRequestPayload, RegisterCoolifyAppResponsePayload, SaveCoolifyAppRequestPayload, SegmentsCountsParams, SegmentsPresenceResponse, AiPrompt, AiPromptCreatePayload, AiPromptCreateResponse, AiPromptDeleteResponse, AiPromptListResponse, AiPromptQueryParams, AiPromptUpdatePayload, AiPromptUpdateResponse, AiSubpromptCreatePayload, AiObservationType, AiObservationTypeCreatePayload, AiObservationTypeCreateResponse, AiObservationTypeDeleteResponse, AiObservationTypeListResponse, AiObservationTypeQueryParams, AiObservationTypeUpdatePayload, AiObservationTypeUpdateResponse, ObservationConfig, UpsertObservationConfigPayload, AiApiKey, AiApiKeyCreatePayload, AiApiKeyCreateResponse, AiApiKeyDeleteResponse, AiApiKeyQueryParams, AiApiKeyUpdatePayload, AiApiKeyUpdateResponse, APIEnvelope, AppActionResponse, AppRuntimeState, CoolifyProjectOption, CoolifyServerOption, CreateGateReportAppPayload, CreateGateReportAppResponse, GateReportAppEvents, GateReportAppsQueryParams, GateReportManagedApp, UpdateGateReportAppPayload, CreateSiteAnalyticsAppPayload, CreateSiteAnalyticsAppResponse, DeleteSiteAnalyticsAppResponse, ModelOption, SiteAnalyticsManagedApp, SiteAnalyticsManagementListParams, UpdateSiteAnalyticsAppPayload, ObservationEventQueryParams, ObservationEventListResponse, ObservationModelOption, ObservationEventReviewPayload, ObservationEventReviewResponse, Walk360Activity, Walk360Config, Walk360ConfigSummary, Walk360ProcessedSession, Walk360WorkerAction } from "@evercam/api/types";
|
|
2
2
|
import type { AxiosPromise, AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare const getAiApiUrl: () => string;
|
|
4
4
|
export declare const getAiApiUrlV2: () => string;
|
|
@@ -59,6 +59,7 @@ export declare const AiApi: {
|
|
|
59
59
|
getCounts({ projectExid, ...params }: {
|
|
60
60
|
projectExid: ProjectExid;
|
|
61
61
|
} & ObservationEventsCountsQueryParams, extraParams?: AxiosRequestConfig): Promise<APIEnvelope<ObservationEventCount[]>>;
|
|
62
|
+
getConfiguredTypes(projectExid: ProjectExid, extraParams?: AxiosRequestConfig): Promise<APIEnvelope<ObservationType[]>>;
|
|
62
63
|
exportEvents({ projectExid, ...params }: {
|
|
63
64
|
projectExid: ProjectExid;
|
|
64
65
|
} & ObservationEventsExportQueryParams, extraParams?: AxiosRequestConfig): Promise<Blob | {
|
|
@@ -114,6 +115,7 @@ export declare const AiApi: {
|
|
|
114
115
|
siteAnalyticsManagement: {
|
|
115
116
|
listApps(params?: SiteAnalyticsManagementListParams): Promise<PaginatedItems<SiteAnalyticsManagedApp>>;
|
|
116
117
|
createApp(payload: CreateSiteAnalyticsAppPayload): Promise<CreateSiteAnalyticsAppResponse>;
|
|
118
|
+
getApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<APIEnvelope<SiteAnalyticsManagedApp>>;
|
|
117
119
|
updateApp(projectExid: ProjectExid, cameraExid: CameraExid, payload: UpdateSiteAnalyticsAppPayload): Promise<APIEnvelope<SiteAnalyticsManagedApp>>;
|
|
118
120
|
deleteApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<DeleteSiteAnalyticsAppResponse>;
|
|
119
121
|
setAppState(projectExid: ProjectExid, cameraExid: CameraExid, state: AppRuntimeState): Promise<APIEnvelope<AppActionResponse>>;
|
|
@@ -161,6 +163,36 @@ export declare const AiApi: {
|
|
|
161
163
|
listSubprompts(promptId: number): Promise<AiPrompt[]>;
|
|
162
164
|
createSubprompt(promptId: number, payload: AiSubpromptCreatePayload): Promise<AiPromptCreateResponse>;
|
|
163
165
|
};
|
|
166
|
+
observations360: {
|
|
167
|
+
getWalkConfig(projectExid: string): Promise<{
|
|
168
|
+
data: Walk360Config;
|
|
169
|
+
}>;
|
|
170
|
+
saveWalkConfig(projectExid: string, payload: {
|
|
171
|
+
enabled: boolean;
|
|
172
|
+
startDate: string | null;
|
|
173
|
+
activities: Walk360Activity[];
|
|
174
|
+
maxParallelWalks?: number;
|
|
175
|
+
visionProvider?: string;
|
|
176
|
+
coolifyServerUuid?: string | null;
|
|
177
|
+
}): Promise<{
|
|
178
|
+
data: Walk360Config;
|
|
179
|
+
}>;
|
|
180
|
+
listProcessedWalks(projectExid: string): Promise<{
|
|
181
|
+
data: Walk360ProcessedSession[];
|
|
182
|
+
}>;
|
|
183
|
+
listWalkTypes(): Promise<{
|
|
184
|
+
data: AiObservationType[];
|
|
185
|
+
}>;
|
|
186
|
+
listConfigs(): Promise<{
|
|
187
|
+
data: Walk360ConfigSummary[];
|
|
188
|
+
}>;
|
|
189
|
+
deleteWalkConfig(projectExid: string): Promise<{
|
|
190
|
+
deleted: boolean;
|
|
191
|
+
}>;
|
|
192
|
+
setWorkerState(projectExid: string, state: AppRuntimeState): Promise<{
|
|
193
|
+
data: Walk360WorkerAction;
|
|
194
|
+
}>;
|
|
195
|
+
};
|
|
164
196
|
observationTypes: {
|
|
165
197
|
list(params?: AiObservationTypeQueryParams): Promise<AiObservationTypeListResponse>;
|
|
166
198
|
get(observationTypeId: number): Promise<AiObservationType>;
|
|
@@ -187,12 +219,17 @@ export declare const AiApi: {
|
|
|
187
219
|
};
|
|
188
220
|
observationEvents: {
|
|
189
221
|
list(params?: ObservationEventQueryParams): Promise<ObservationEventListResponse>;
|
|
222
|
+
frameUrl(eventId: number, options?: {
|
|
223
|
+
thumbnail?: boolean;
|
|
224
|
+
token?: string | null;
|
|
225
|
+
}): string;
|
|
190
226
|
projects(): Promise<{
|
|
191
227
|
data: Array<{
|
|
192
228
|
projectExid: string;
|
|
193
229
|
total: number;
|
|
194
230
|
}>;
|
|
195
231
|
}>;
|
|
232
|
+
models(): Promise<APIEnvelope<ObservationModelOption[]>>;
|
|
196
233
|
review(projectExid: string, eventId: number, payload: ObservationEventReviewPayload): Promise<ObservationEventReviewResponse>;
|
|
197
234
|
};
|
|
198
235
|
gateReportManagement: {
|
|
@@ -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,
|
|
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>;
|
|
@@ -43,6 +43,10 @@ export declare const EvercamApi: {
|
|
|
43
43
|
getActiveSessions(params: AxiosRequestConfig & {
|
|
44
44
|
params: SessionsListRequestPayload;
|
|
45
45
|
}): Promise<PaginatedItems<UserSession>>;
|
|
46
|
+
getAuthorizedApps(params: AxiosRequestConfig & {
|
|
47
|
+
params: AuthorizedAppsListRequestPayload;
|
|
48
|
+
}): Promise<PaginatedItems<AuthorizedApp>>;
|
|
49
|
+
revokeAuthorizedApp(id: number): Promise<void>;
|
|
46
50
|
update(email: string, params?: Partial<UserUpdateRequestPayload>): Promise<{
|
|
47
51
|
users: User[];
|
|
48
52
|
}>;
|
|
@@ -75,7 +79,7 @@ export declare const EvercamApi: {
|
|
|
75
79
|
config?: SwrRequestConfig<CamerasResponsePayload>;
|
|
76
80
|
}): Promise<CamerasResponsePayload>;
|
|
77
81
|
getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
|
|
78
|
-
getCameraLastPublicNote(cameraId: string): Promise<
|
|
82
|
+
getCameraLastPublicNote(cameraId: string): Promise<CameraNoteResponsePayload>;
|
|
79
83
|
getNvrStreamingToken({ cameraExid, token, }: {
|
|
80
84
|
cameraExid: string;
|
|
81
85
|
token: string;
|
|
@@ -93,6 +97,9 @@ export declare const EvercamApi: {
|
|
|
93
97
|
params?: ApiCredentials;
|
|
94
98
|
config?: SwrRequestConfig<Project[]>;
|
|
95
99
|
}): Promise<Project[]>;
|
|
100
|
+
show(projectExid: string): Promise<{
|
|
101
|
+
project: Project;
|
|
102
|
+
}>;
|
|
96
103
|
create(params: {
|
|
97
104
|
name: string;
|
|
98
105
|
}): Promise<{
|
|
@@ -133,6 +140,7 @@ export declare const EvercamApi: {
|
|
|
133
140
|
removeMembers(projectExid: string, emails: string[]): Promise<void>;
|
|
134
141
|
updateMembersRole(projectExid: string, payload: ProjectMembersRequestPayload): Promise<void>;
|
|
135
142
|
requestCameraInfo(projectExid: string): Promise<void>;
|
|
143
|
+
getMentionableUsers(projectExid: string, scope: CommentsScope): Promise<MentionableUser[]>;
|
|
136
144
|
};
|
|
137
145
|
timelapse: {
|
|
138
146
|
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
@@ -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
|
@@ -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>;
|
|
@@ -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;
|
|
@@ -358,18 +362,3 @@ export type _360PinData = {
|
|
|
358
362
|
azimuthAngle: number;
|
|
359
363
|
};
|
|
360
364
|
};
|
|
361
|
-
export type _360ForgeTimelineItem = {
|
|
362
|
-
taskNumber: number;
|
|
363
|
-
taskID: string;
|
|
364
|
-
actualStartDate: string;
|
|
365
|
-
actualEndDate: string;
|
|
366
|
-
plannedStartDate: string;
|
|
367
|
-
plannedEndDate: string;
|
|
368
|
-
objectIDs: number[];
|
|
369
|
-
};
|
|
370
|
-
export type _360ForgeProject = {
|
|
371
|
-
urns?: Array<{
|
|
372
|
-
urn: string;
|
|
373
|
-
}>;
|
|
374
|
-
timeline?: _360ForgeTimelineItem[];
|
|
375
|
-
};
|
|
@@ -2,7 +2,8 @@ import { PaginatedItems, PaginationParams } from "@evercam/api/types";
|
|
|
2
2
|
export declare enum AiApp {
|
|
3
3
|
GateReport = "gate_report",
|
|
4
4
|
Ppe = "ppe",
|
|
5
|
-
SiteAnalytics = "site_analytics"
|
|
5
|
+
SiteAnalytics = "site_analytics",
|
|
6
|
+
Observations360 = "observations_360"
|
|
6
7
|
}
|
|
7
8
|
export declare enum AiProvider {
|
|
8
9
|
Gemini = "gemini",
|
|
@@ -213,6 +214,7 @@ export type AiObservationTypeUpdatePayload = Partial<Omit<AiObservationTypeCreat
|
|
|
213
214
|
export type AiObservationTypeQueryParams = {
|
|
214
215
|
search?: string;
|
|
215
216
|
feasibilityStatus?: string;
|
|
217
|
+
sourceType?: string;
|
|
216
218
|
type?: string;
|
|
217
219
|
page?: number;
|
|
218
220
|
limit?: number;
|
|
@@ -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,12 +60,12 @@ 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",
|
|
67
66
|
SettingsAccountRevokeSession = "RevokeSession",
|
|
68
67
|
SettingsAccountCancelRevokeSession = "CancelRevokeSession",
|
|
68
|
+
SettingsAccountRevokeAuthorizedApp = "RevokeAuthorizedApp",
|
|
69
69
|
SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
|
|
70
70
|
SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
|
|
71
71
|
SettingsConnectorsConnectToProcore = "ConnectToProcore",
|
|
@@ -156,12 +156,6 @@ export declare enum AnalyticsEvent {
|
|
|
156
156
|
TimelineCompareSlide = "Compare-Slide",
|
|
157
157
|
TimelineSelectMilestoneItem = "Timeline-SelectMilestoneItem",
|
|
158
158
|
TimelineSelectTimestamp = "Timeline-SelectTimestamp",
|
|
159
|
-
CopilotSendMessage = "Copilot-SendMessage",
|
|
160
|
-
CopilotClickTimestamp = "Copilot-ClickTimestamp",
|
|
161
|
-
CopilotRegenerate = "Copilot-Regenerate",
|
|
162
|
-
CopilotError = "Copilot-Error",
|
|
163
|
-
CopilotNavigation = "Copilot-Navigation",
|
|
164
|
-
CopilotToggle = "Copilot-Toggle",
|
|
165
159
|
GroupsVisibilityMobileCapture = "GroupsVisibility-MobileCapture",
|
|
166
160
|
GroupsVisibilityAnpr = "GroupsVisibility-Anpr",
|
|
167
161
|
GroupsVisibilityComments = "GroupsVisibility-Comments",
|
|
@@ -341,7 +335,6 @@ export declare enum AnalyticsEvent {
|
|
|
341
335
|
DroneResetView = "ResetView",
|
|
342
336
|
DroneSettingsToggle360PathsVisibility = "Settings-Toggle360PathsVisibility",
|
|
343
337
|
DroneSettingsToggleCameraMarkersVisibility = "Settings-ToggleCameraMarkersVisibility",
|
|
344
|
-
DroneSettingsToggleSurroundingBuildingsTool = "Settings-ToggleSurroundingBuildingsTool",
|
|
345
338
|
DroneSettingsToggleCommentsVisibility = "Settings-ToggleCommentsVisibility",
|
|
346
339
|
DroneSettingsToggleAerialShotsVisibility = "Settings-ToggleAerialShotsVisibility",
|
|
347
340
|
DroneSettingsOpenCommentsList = "Settings-OpenCommentsList",
|
|
@@ -486,6 +479,7 @@ export declare enum AnalyticsEvent {
|
|
|
486
479
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
487
480
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
488
481
|
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
482
|
+
ObservationsFilterTypes = "Observations-FilterTypes",
|
|
489
483
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
490
484
|
HelpMenuOpenProjectContactsDialog = "HelpMenu-OpenProjectContactsDialog",
|
|
491
485
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
@@ -583,13 +577,17 @@ export declare enum AnalyticsEvent {
|
|
|
583
577
|
SmartSearchThumbnailPlay = "SmartSearch-ThumbnailPlay",
|
|
584
578
|
SmartSearchExportFile = "SmartSearch-ExportFile",
|
|
585
579
|
SmartSearchDownloadHeatmapImage = "SmartSearch-DownloadHeatmapImage",
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
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",
|
|
593
591
|
ForgeBimAddModelButtonClicked = "ForgeBim-AddModelButtonClicked",
|
|
594
592
|
ForgeBimUploadChoiceDialogOpened = "ForgeBim-UploadChoiceDialogOpened",
|
|
595
593
|
ForgeBimModelAddMethodSelected = "ForgeBim-ModelAddMethodSelected",
|
|
@@ -100,6 +100,15 @@ export type AutomationProviderOption = {
|
|
|
100
100
|
iconSize?: string;
|
|
101
101
|
requiresConnection: boolean;
|
|
102
102
|
};
|
|
103
|
+
export type AutomationTypeOption = {
|
|
104
|
+
labelTranslationKey: string;
|
|
105
|
+
descriptionTranslationKey: string;
|
|
106
|
+
label?: string;
|
|
107
|
+
description?: string;
|
|
108
|
+
value: AutomationType;
|
|
109
|
+
icon: string;
|
|
110
|
+
iconType?: string;
|
|
111
|
+
};
|
|
103
112
|
export type FormattedAutomation = {
|
|
104
113
|
cameraExids?: string;
|
|
105
114
|
name: string;
|
|
@@ -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;
|
|
@@ -247,13 +247,17 @@ export type CameraUpdateRequestPayload = {
|
|
|
247
247
|
export type CamerasResponsePayload = {
|
|
248
248
|
cameras?: Camera[];
|
|
249
249
|
};
|
|
250
|
-
export type
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
customMessage?: string;
|
|
250
|
+
export type CameraNoteResponsePayload = {
|
|
251
|
+
id: number;
|
|
252
|
+
camera: {
|
|
253
|
+
exid: string;
|
|
254
|
+
name: string;
|
|
256
255
|
};
|
|
256
|
+
who: string;
|
|
257
|
+
noteType: string;
|
|
258
|
+
content: string;
|
|
259
|
+
pinned: boolean;
|
|
260
|
+
insertedAt: string;
|
|
257
261
|
};
|
|
258
262
|
export type CameraStatusLog = {
|
|
259
263
|
start: string;
|
|
@@ -384,22 +388,26 @@ export type CameraDeletePayload = {
|
|
|
384
388
|
verify: string;
|
|
385
389
|
password: string;
|
|
386
390
|
};
|
|
387
|
-
export type SaveNotePayload = {
|
|
388
|
-
noteType: string;
|
|
389
|
-
content: string;
|
|
390
|
-
};
|
|
391
391
|
export type CameraNote = {
|
|
392
392
|
id: number;
|
|
393
393
|
cameraId: number;
|
|
394
|
+
who: string;
|
|
394
395
|
noteType: string;
|
|
395
396
|
content: string;
|
|
397
|
+
pinned: boolean;
|
|
396
398
|
insertedAt: DateType;
|
|
397
399
|
};
|
|
400
|
+
export type GetCameraNotesParams = {
|
|
401
|
+
noteType?: string;
|
|
402
|
+
pinned?: boolean;
|
|
403
|
+
sort?: string;
|
|
404
|
+
page?: number;
|
|
405
|
+
limit?: number;
|
|
406
|
+
};
|
|
398
407
|
export type CreateCameraNotePayload = {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
action: string;
|
|
408
|
+
noteType: string;
|
|
409
|
+
content: string;
|
|
410
|
+
pinned?: boolean;
|
|
403
411
|
};
|
|
404
412
|
export declare enum HddStatus {
|
|
405
413
|
Error = "error",
|
|
@@ -499,6 +507,8 @@ export type MergeDuplicatedCameraPayload = {
|
|
|
499
507
|
shareeCameras: Record<string, unknown>;
|
|
500
508
|
};
|
|
501
509
|
export type FetchCameraQueryParams = PaginationParams & {
|
|
510
|
+
/** Narrows the index to one project. Sent as `project_exid`. */
|
|
511
|
+
projectExid: ProjectExid;
|
|
502
512
|
status: CameraStatus;
|
|
503
513
|
isPublic: boolean;
|
|
504
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
|
+
};
|
|
@@ -19,7 +19,6 @@ export type DroneModel = {
|
|
|
19
19
|
export type DroneProjectTransform = {
|
|
20
20
|
initialCameraTransform?: DroneCameraTransform;
|
|
21
21
|
initial2DCameraTransform?: DroneCameraTransform;
|
|
22
|
-
blackListIds?: string;
|
|
23
22
|
markers?: Record<string, DroneMarker>;
|
|
24
23
|
imageryPlans?: Record<string, DroneImageryPlan>;
|
|
25
24
|
bimData?: DroneBimData;
|
|
@@ -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";
|
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -111,8 +111,7 @@ export declare enum ClipsCategory {
|
|
|
111
111
|
}
|
|
112
112
|
export declare enum MediaCategory {
|
|
113
113
|
Weather = "weather",
|
|
114
|
-
SmartSearch = "smart_search"
|
|
115
|
-
Copilot = "copilot"
|
|
114
|
+
SmartSearch = "smart_search"
|
|
116
115
|
}
|
|
117
116
|
export type MediaDeleteRequestPayload = {
|
|
118
117
|
timelapseIds: (string | number)[];
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { CommentsScope, CommentThreeSixtyContext } from "./comments";
|
|
1
2
|
export declare enum NotificationType {
|
|
2
3
|
CameraShare = "camera_share",
|
|
3
4
|
CameraStatusChange = "camera_status_changed",
|
|
4
5
|
Mention = "mention",
|
|
6
|
+
CommentMention = "comment_mention",
|
|
5
7
|
TimelapseCreated = "timelapse_created",
|
|
6
8
|
TimelapseFailed = "timelapse_failed",
|
|
7
9
|
DroneProcessing = "drone_processing_done",
|
|
@@ -80,7 +82,16 @@ export interface StorageWarningContext extends NotificationContextBase {
|
|
|
80
82
|
projectExid: string;
|
|
81
83
|
cameraName: string;
|
|
82
84
|
}
|
|
83
|
-
export
|
|
85
|
+
export interface CommentMentionContext extends NotificationContextBase {
|
|
86
|
+
projectExid: string;
|
|
87
|
+
commentId: number;
|
|
88
|
+
scope: CommentsScope;
|
|
89
|
+
commentContext: CommentThreeSixtyContext;
|
|
90
|
+
content?: string;
|
|
91
|
+
label?: string;
|
|
92
|
+
projectName?: string;
|
|
93
|
+
}
|
|
94
|
+
export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context | ExportNotificationContext | UploadNotificationContext | RingCamerasImportedContext | StorageWarningContext | CommentMentionContext;
|
|
84
95
|
export type Notification = {
|
|
85
96
|
id: number;
|
|
86
97
|
type: NotificationType;
|