@evercam/api 1.0.0-1b85d13c0 → 1.0.0-1bc49e878
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 +49 -16
- package/dist/api/api/adminApi.d.ts +3 -6
- package/dist/api/api/aiApi.d.ts +60 -2
- package/dist/api/api/evercamApi.d.ts +7 -7
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +7 -1
- package/dist/api/types/360.d.ts +116 -4
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +4 -1
- package/dist/api/types/axios.d.ts +7 -4
- package/dist/api/types/bim.d.ts +8 -0
- package/dist/api/types/camera.d.ts +3 -1
- package/dist/api/types/comments.d.ts +2 -1
- package/dist/api/types/connector.d.ts +1 -0
- package/dist/api/types/detections.d.ts +3 -1
- package/dist/api/types/errors.d.ts +11 -0
- package/dist/api/types/gateReport.d.ts +1 -0
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/ingest.d.ts +1 -0
- package/dist/api/types/kit.d.ts +2 -1
- package/dist/api/types/media.d.ts +8 -2
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/recording.d.ts +3 -8
- package/dist/api/types/roi.d.ts +2 -1
- package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
- package/dist/api/types/siteView.d.ts +0 -1
- package/dist/api/types/snapshots.d.ts +5 -0
- package/dist/api/types/user.d.ts +1 -0
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +1035 -657
- 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 +16 -2
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _360Floor, _360FloorId, _360Marker3D, _360Pin, _360ProjectJsonResponse, _360ProjectListItem, _360Scene, _360SceneRoute, _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, _360ForgeProject, _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";
|
|
2
2
|
import { AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare const getFirebaseDbApi: () => string;
|
|
4
4
|
export declare const getFirebaseStorageUrl: () => string;
|
|
@@ -70,9 +70,7 @@ export declare const _3dFirebaseApi: {
|
|
|
70
70
|
updateProjectsListItem(index: number, data: _360ProjectListItem): Promise<void>;
|
|
71
71
|
deleteProject(projectId: string): Promise<void>;
|
|
72
72
|
updateProjectInfo(projectId: string, data: Partial<_360ProjectJsonResponse>): Promise<void>;
|
|
73
|
-
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: Partial<
|
|
74
|
-
getRoute(projectExid: ProjectExid, dateId: string, floorIndex: string): Promise<_360SceneRoute | null>;
|
|
75
|
-
getAerialShotDate(projectId: ProjectExid, dateId: number): Promise<string | null>;
|
|
73
|
+
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: Partial<_360Scene["floors"][number]>): Promise<_360ProjectJsonResponse>;
|
|
76
74
|
getFloor({ projectId, dateId, floorId, }: {
|
|
77
75
|
projectId: ProjectExid;
|
|
78
76
|
dateId: number;
|
|
@@ -89,12 +87,6 @@ export declare const _3dFirebaseApi: {
|
|
|
89
87
|
floorId: _360FloorId;
|
|
90
88
|
markers: Record<string, _360Marker3D>;
|
|
91
89
|
}): Promise<void>;
|
|
92
|
-
patchFloor({ projectId, dateId, floorId, data, }: {
|
|
93
|
-
projectId: ProjectExid;
|
|
94
|
-
dateId: number;
|
|
95
|
-
floorId: _360FloorId;
|
|
96
|
-
data: Partial<_360Floor>;
|
|
97
|
-
}): Promise<void>;
|
|
98
90
|
updateFloors({ projectId, dateId, floors, }: {
|
|
99
91
|
projectId: ProjectExid;
|
|
100
92
|
dateId: number;
|
|
@@ -106,12 +98,6 @@ export declare const _3dFirebaseApi: {
|
|
|
106
98
|
floorId: _360FloorId;
|
|
107
99
|
}): Promise<void>;
|
|
108
100
|
updateDates(projectId: ProjectExid, dates: _360Scene[]): Promise<void>;
|
|
109
|
-
deleteDate(projectId: ProjectExid, dateId: number): Promise<void>;
|
|
110
|
-
getPins({ projectId, dateId, floorId, }: {
|
|
111
|
-
projectId: ProjectExid;
|
|
112
|
-
dateId: number;
|
|
113
|
-
floorId: _360FloorId;
|
|
114
|
-
}): Promise<Record<string, _360Pin>>;
|
|
115
101
|
updatePins({ projectId, dateId, floorId, pins, }: {
|
|
116
102
|
projectId: ProjectExid;
|
|
117
103
|
dateId: number;
|
|
@@ -122,6 +108,50 @@ export declare const _3dFirebaseApi: {
|
|
|
122
108
|
updateRoute(projectExid: ProjectExid, dateId: string, floorIndex: string, body: Partial<_360SceneRoute>): Promise<void>;
|
|
123
109
|
updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<void>;
|
|
124
110
|
saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<void>;
|
|
111
|
+
getDates({ projectID, prefix, }: {
|
|
112
|
+
projectID: string;
|
|
113
|
+
prefix?: string;
|
|
114
|
+
}): Promise<_360Scene[] | null>;
|
|
115
|
+
getFloorData({ projectID, dateID, floorID, prefix, }: _360FloorRef & {
|
|
116
|
+
prefix?: string;
|
|
117
|
+
}): Promise<_360FloorData>;
|
|
118
|
+
patchFloor({ projectID, dateID, floorID, body, }: _360FloorRef & {
|
|
119
|
+
body: Record<string, unknown>;
|
|
120
|
+
}): Promise<Record<string, unknown>>;
|
|
121
|
+
deleteMarkers({ projectID, dateID, floorID }: _360FloorRef): Promise<void>;
|
|
122
|
+
patchMarkers({ projectID, dateID, floorID, markers, }: _360FloorRef & {
|
|
123
|
+
markers: Record<string, unknown>;
|
|
124
|
+
}): Promise<Record<string, unknown>>;
|
|
125
|
+
putMarkers({ projectID, dateID, floorID, markers, }: _360FloorRef & {
|
|
126
|
+
markers: Record<string, unknown>;
|
|
127
|
+
}): Promise<any>;
|
|
128
|
+
putFloors({ projectID, dateID, floors, }: {
|
|
129
|
+
projectID: string;
|
|
130
|
+
dateID: string;
|
|
131
|
+
floors: unknown[];
|
|
132
|
+
}): Promise<unknown[]>;
|
|
133
|
+
deleteFloorData({ projectID, dateID, floorID, }: _360FloorRef): Promise<void>;
|
|
134
|
+
putDates({ projectID, dates, }: {
|
|
135
|
+
projectID: string;
|
|
136
|
+
dates: _360Scene[];
|
|
137
|
+
}): Promise<_360Scene[]>;
|
|
138
|
+
deleteDate({ projectID, dateID, }: {
|
|
139
|
+
projectID: string;
|
|
140
|
+
dateID: string;
|
|
141
|
+
}): Promise<void>;
|
|
142
|
+
getPins({ projectID, dateID, floorID, }: _360FloorRef): Promise<Record<string, _360PinData> | null>;
|
|
143
|
+
putPins({ projectID, dateID, floorID, pins, }: _360FloorRef & {
|
|
144
|
+
pins: Record<string, _360PinData>;
|
|
145
|
+
}): Promise<Record<string, _360PinData> | null>;
|
|
146
|
+
patchCalibrationDetails({ projectID, dateID, floorID, details, }: _360FloorRef & {
|
|
147
|
+
details: Partial<_360CalibrationDetails>;
|
|
148
|
+
}): Promise<Partial<_360CalibrationDetails>>;
|
|
149
|
+
getDateWalks(projectExid: ProjectExid, dateId: string): Promise<Record<string, unknown> | null>;
|
|
150
|
+
getRoute({ projectID, dateID, floorID, }: _360FloorRef): Promise<_360Route | null>;
|
|
151
|
+
getAerialShotDate({ projectID, dateID, }: {
|
|
152
|
+
projectID: string;
|
|
153
|
+
dateID: string;
|
|
154
|
+
}): Promise<string>;
|
|
125
155
|
updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: string): Promise<void>;
|
|
126
156
|
getProjectDates(projectId: ProjectExid): Promise<_360Scene[]>;
|
|
127
157
|
getProjectAerialShotsDates(projectId: ProjectExid): Promise<_360Scene[]>;
|
|
@@ -137,6 +167,9 @@ export declare const _3dFirebaseApi: {
|
|
|
137
167
|
getProjectInfo(projectExid: ProjectExid): Promise<ForgeProjectData | null>;
|
|
138
168
|
saveSavedView(projectId: string, payload: ForgeView): Promise<void>;
|
|
139
169
|
saveMarkers(projectId: string, markers: ForgeMarker[]): Promise<void>;
|
|
170
|
+
getForgeProject({ projectID, }: {
|
|
171
|
+
projectID: string;
|
|
172
|
+
}): Promise<_360ForgeProject | null>;
|
|
140
173
|
};
|
|
141
174
|
itwin: {
|
|
142
175
|
getProjectInfo(projectId: string): Promise<ItwinProjectData | null>;
|
|
@@ -133,15 +133,12 @@ export declare const AdminApi: {
|
|
|
133
133
|
extractions: {
|
|
134
134
|
updateCloudRecordings(cameraId: string, params: JsonObject): Promise<void>;
|
|
135
135
|
addExtraction(cameraId: string, params: SnapshotExtractionQyeryParams): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
136
|
-
getExtractionStatus(cameraId: string, extractionId: number, params: {
|
|
137
|
-
type: SnapshotExtractionType;
|
|
138
|
-
}): Promise<{
|
|
139
|
-
status: string;
|
|
140
|
-
jpegs: number;
|
|
141
|
-
}>;
|
|
142
136
|
deleteSnapshotExtraction(cameraId: string, extractionId: number, params: {
|
|
143
137
|
type: SnapshotExtractionType;
|
|
138
|
+
hardDelete?: boolean;
|
|
144
139
|
}): Promise<void>;
|
|
140
|
+
getExtraction(cameraExid: string, extractionId: number): Promise<SnapshotExtraction>;
|
|
141
|
+
reprocessExtraction(cameraId: string, extractionId: number): Promise<void>;
|
|
145
142
|
};
|
|
146
143
|
anprExtractions: {
|
|
147
144
|
list(cameraExid: string): Promise<{
|
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, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchBackendQuery, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel, SmartSearchResponse, SmartSearchRequestPayload, LegacyAnprExportParams, AnprBulkUpdateRequestPayload, AnprUpdateRequestPayload, SmartSearchQueriesRequestPayload, _360FloorId, CreateCoolifyAppRequestPayload, RegisterCoolifyAppResponsePayload, SaveCoolifyAppRequestPayload, SegmentsCountsParams, SegmentsPresenceResponse } 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, 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, AiApiKey, AiApiKeyCreatePayload, AiApiKeyCreateResponse, AiApiKeyDeleteResponse, AiApiKeyQueryParams, AiApiKeyUpdatePayload, AiApiKeyUpdateResponse, APIEnvelope, AppActionResponse, AppRuntimeState, CoolifyProjectOption, CoolifyServerOption, CreateGateReportAppPayload, CreateGateReportAppResponse, GateReportAppEvents, GateReportManagedApp, GateReportManagementListParams, UpdateGateReportAppPayload, CreateSiteAnalyticsAppPayload, CreateSiteAnalyticsAppResponse, DeleteSiteAnalyticsAppResponse, ModelOption, SiteAnalyticsManagedApp, SiteAnalyticsManagementListParams, UpdateSiteAnalyticsAppPayload } 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;
|
|
@@ -22,13 +22,13 @@ export declare const AiApi: {
|
|
|
22
22
|
getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<string[]>;
|
|
23
23
|
getEvents(projectExid: ProjectExid, params: GatReportRequestPayload, extraParams?: AxiosRequestConfig): Promise<GateReportResponsePayload>;
|
|
24
24
|
getCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
25
|
-
getGateReportProjectsInfos(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
26
25
|
};
|
|
27
26
|
brainTool: {
|
|
28
27
|
getObjectDetectionsResults(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
28
|
};
|
|
30
29
|
roi: {
|
|
31
30
|
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
31
|
+
listROIs(params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
32
32
|
createROI(params: Omit<GateReportRoiRequestPayload, "id"> & {
|
|
33
33
|
createdBy?: string;
|
|
34
34
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -52,6 +52,24 @@ export declare const AiApi: {
|
|
|
52
52
|
getDetectionsPresenceDateIntervals({ projectExid, ...params }: DetectionsCountsParams): Promise<DetectionsPresenceByLabel>;
|
|
53
53
|
requestExport({ projectExid, ...params }: DetectionsExportRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
54
54
|
};
|
|
55
|
+
observations: {
|
|
56
|
+
getEvents({ projectExid, ...params }: {
|
|
57
|
+
projectExid: ProjectExid;
|
|
58
|
+
} & ObservationEventsQueryParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<ObservationEvent>>;
|
|
59
|
+
getCounts({ projectExid, ...params }: {
|
|
60
|
+
projectExid: ProjectExid;
|
|
61
|
+
} & ObservationEventsCountsQueryParams, extraParams?: AxiosRequestConfig): Promise<APIEnvelope<ObservationEventCount[]>>;
|
|
62
|
+
exportEvents({ projectExid, ...params }: {
|
|
63
|
+
projectExid: ProjectExid;
|
|
64
|
+
} & ObservationEventsExportQueryParams, extraParams?: AxiosRequestConfig): Promise<Blob | {
|
|
65
|
+
message: string;
|
|
66
|
+
}>;
|
|
67
|
+
updateEventApproval({ projectExid, eventId, isApproved, }: {
|
|
68
|
+
projectExid: ProjectExid;
|
|
69
|
+
eventId: number;
|
|
70
|
+
isApproved: boolean | null;
|
|
71
|
+
}): Promise<ObservationApprovalUpdateResponse>;
|
|
72
|
+
};
|
|
55
73
|
siteAnalytics: {
|
|
56
74
|
smartSearchAll(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
57
75
|
smartSearchFirstLastSeen(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
@@ -93,6 +111,15 @@ export declare const AiApi: {
|
|
|
93
111
|
operator?: SmartSearchOperatorType;
|
|
94
112
|
}): Promise<SmartSearchHeatmapData[]>;
|
|
95
113
|
};
|
|
114
|
+
siteAnalyticsManagement: {
|
|
115
|
+
listApps(params?: SiteAnalyticsManagementListParams): Promise<PaginatedItems<SiteAnalyticsManagedApp>>;
|
|
116
|
+
createApp(payload: CreateSiteAnalyticsAppPayload): Promise<CreateSiteAnalyticsAppResponse>;
|
|
117
|
+
updateApp(projectExid: ProjectExid, cameraExid: CameraExid, payload: UpdateSiteAnalyticsAppPayload): Promise<APIEnvelope<SiteAnalyticsManagedApp>>;
|
|
118
|
+
deleteApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<DeleteSiteAnalyticsAppResponse>;
|
|
119
|
+
setAppState(projectExid: ProjectExid, cameraExid: CameraExid, state: AppRuntimeState): Promise<APIEnvelope<AppActionResponse>>;
|
|
120
|
+
listCoolifyServers(): Promise<APIEnvelope<CoolifyServerOption[]>>;
|
|
121
|
+
listModelVersions(): Promise<APIEnvelope<ModelOption[]>>;
|
|
122
|
+
};
|
|
96
123
|
coolify: {
|
|
97
124
|
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
98
125
|
createAppOnCoolify({ projectExid, cameraExid, payload, }: {
|
|
@@ -125,4 +152,35 @@ export declare const AiApi: {
|
|
|
125
152
|
fovChanges: {
|
|
126
153
|
getCameraFovChanges(cameraExid: string, extraConfig?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
127
154
|
};
|
|
155
|
+
prompts: {
|
|
156
|
+
list(params?: AiPromptQueryParams): Promise<AiPromptListResponse>;
|
|
157
|
+
get(promptId: number): Promise<AiPrompt>;
|
|
158
|
+
create(payload: AiPromptCreatePayload): Promise<AiPromptCreateResponse>;
|
|
159
|
+
update(promptId: number, payload: AiPromptUpdatePayload): Promise<AiPromptUpdateResponse>;
|
|
160
|
+
delete(promptId: number): Promise<AiPromptDeleteResponse>;
|
|
161
|
+
};
|
|
162
|
+
apiKeys: {
|
|
163
|
+
list(params?: AiApiKeyQueryParams): Promise<AiApiKey[]>;
|
|
164
|
+
purposes(): Promise<string[]>;
|
|
165
|
+
get(keyId: number): Promise<AiApiKey>;
|
|
166
|
+
create(payload: AiApiKeyCreatePayload): Promise<AiApiKeyCreateResponse>;
|
|
167
|
+
update(keyId: number, payload: AiApiKeyUpdatePayload): Promise<AiApiKeyUpdateResponse>;
|
|
168
|
+
delete(keyId: number, revoke?: boolean): Promise<AiApiKeyDeleteResponse>;
|
|
169
|
+
};
|
|
170
|
+
gateReportManagement: {
|
|
171
|
+
listApps(params?: GateReportManagementListParams): Promise<PaginatedItems<GateReportManagedApp>>;
|
|
172
|
+
getApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<APIEnvelope<GateReportManagedApp>>;
|
|
173
|
+
listAppEvents(projectExid?: ProjectExid): Promise<APIEnvelope<GateReportAppEvents[]>>;
|
|
174
|
+
createApp(payload: CreateGateReportAppPayload): Promise<CreateGateReportAppResponse>;
|
|
175
|
+
updateApp(projectExid: ProjectExid, cameraExid: CameraExid, payload: UpdateGateReportAppPayload): Promise<APIEnvelope<GateReportManagedApp>>;
|
|
176
|
+
deleteApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<{
|
|
177
|
+
deleted: boolean;
|
|
178
|
+
count: number;
|
|
179
|
+
message: string;
|
|
180
|
+
}>;
|
|
181
|
+
setAppState(projectExid: ProjectExid, cameraExid: CameraExid, state: AppRuntimeState): Promise<APIEnvelope<AppActionResponse>>;
|
|
182
|
+
listCoolifyProjects(): Promise<APIEnvelope<CoolifyProjectOption[]>>;
|
|
183
|
+
listCoolifyServers(): Promise<APIEnvelope<CoolifyServerOption[]>>;
|
|
184
|
+
listImageTags(): Promise<APIEnvelope<string[]>>;
|
|
185
|
+
};
|
|
128
186
|
};
|
|
@@ -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, 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,
|
|
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, UserDeleteRequestPayload, UserSession, UserUpdateRequestPayload, VoyageControlConnectorPayload, 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>;
|
|
@@ -213,13 +213,13 @@ export declare const EvercamApi: {
|
|
|
213
213
|
revoke(projectExid: string): Promise<void>;
|
|
214
214
|
};
|
|
215
215
|
recordings: {
|
|
216
|
-
oldest(cameraId: string, payload?:
|
|
217
|
-
latest(cameraId: string, payload?:
|
|
218
|
-
nearest(cameraId: string, timestamp: string, payload?:
|
|
219
|
-
availableDays({ cameraId, year, month, payload, }: AvailableDaysRequestPayload): Promise<AvailableDaysResponsePayload>;
|
|
216
|
+
oldest(cameraId: string, payload?: SnapshotRequestPayload): Promise<Snapshot>;
|
|
217
|
+
latest(cameraId: string, payload?: SnapshotRequestPayload): Promise<Snapshot>;
|
|
218
|
+
nearest(cameraId: string, timestamp: string, payload?: SnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<NearestSnapshotResponsePayload>;
|
|
219
|
+
availableDays({ cameraId, year, month, payload, cancelToken, }: AvailableDaysRequestPayload): Promise<AvailableDaysResponsePayload>;
|
|
220
220
|
availableHours({ cameraId, year, month, day, payload, cancelToken, }: AvailableHoursRequestPayload): Promise<AvailableHoursResponsePayload>;
|
|
221
221
|
getSnapshot(cameraId: string, dateTime: string): Promise<SnapshotRangeResponsePayload>;
|
|
222
|
-
getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload): Promise<SnapshotRangeResponsePayload>;
|
|
222
|
+
getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload, extraParams?: AxiosRequestConfig): Promise<SnapshotRangeResponsePayload>;
|
|
223
223
|
};
|
|
224
224
|
progressPhotos: {
|
|
225
225
|
index(projectId: string): Promise<ProgressPhotosResponsePayload>;
|
|
@@ -245,7 +245,7 @@ export declare const EvercamApi: {
|
|
|
245
245
|
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
246
246
|
};
|
|
247
247
|
company: {
|
|
248
|
-
show(companyId
|
|
248
|
+
show(companyId?: string, params?: {
|
|
249
249
|
with_zoho?: boolean;
|
|
250
250
|
}): Promise<CompanySummary>;
|
|
251
251
|
getCompanyUsers(params: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, ActiveUsersResponsePayload, ActiveUsersRequestPayload, HeatmapIntersectionsRequestParams, SmartSearchHeatmapPoint, SiteAnalyticsProcessingStatusPayload, SiteAnalyticsProcessingStatus } from "@evercam/api/types";
|
|
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 & {
|
|
@@ -68,7 +68,8 @@ export declare const IngestApi: {
|
|
|
68
68
|
createDrawing(projectExid: string, payload: GenerateFloorPayload, createdBy: string): Promise<_360FloorV2>;
|
|
69
69
|
fetchDrawingOverlay(id: number, params: {
|
|
70
70
|
view: boolean;
|
|
71
|
-
|
|
71
|
+
thumbnail?: boolean;
|
|
72
|
+
}, onDownloadProgress?: (progress: ProgressEvent) => void): Promise<string>;
|
|
72
73
|
getFloorArchive(id: number): Promise<string>;
|
|
73
74
|
generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<JsonObject>;
|
|
74
75
|
get360QueueSize(ingestUrl: string, params?: _360QueueQueryParams): Promise<_360QueueResponse>;
|
|
@@ -87,6 +88,9 @@ export declare const IngestApi: {
|
|
|
87
88
|
name: string;
|
|
88
89
|
}, payload: BimUploadPayload): Promise<void>;
|
|
89
90
|
};
|
|
91
|
+
webhook: {
|
|
92
|
+
notifyBimUpdated(projectId: string, bimIdentifier: string): Promise<void>;
|
|
93
|
+
};
|
|
90
94
|
mobileCapture: {
|
|
91
95
|
getProjectMobileAssets(params: MobileAssetsQueryParams, extraConfig?: AxiosRequestConfig): Promise<MobileCaptureAssetsResponse>;
|
|
92
96
|
getMobileAssetPhoto(assetId: string | number, params: {
|
|
@@ -109,6 +113,7 @@ export declare const IngestApi: {
|
|
|
109
113
|
modelZip: string;
|
|
110
114
|
orthomosaicZip: string;
|
|
111
115
|
reportPdf: string;
|
|
116
|
+
processingLog: string;
|
|
112
117
|
uploadedBy: string;
|
|
113
118
|
processingStatus: import("@evercam/api/types").IngestProcessingStatus | string;
|
|
114
119
|
modelCesiumAssetId: string;
|
|
@@ -134,6 +139,7 @@ export declare const IngestApi: {
|
|
|
134
139
|
processingStatus: string;
|
|
135
140
|
projectId: string;
|
|
136
141
|
report: string;
|
|
142
|
+
processingLog: string;
|
|
137
143
|
route: unknown | null;
|
|
138
144
|
startPosition: unknown | null;
|
|
139
145
|
tusLinks: unknown | null;
|
package/dist/api/types/360.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export type _360WalkV2 = {
|
|
|
92
92
|
processingStatus: string;
|
|
93
93
|
projectId: string;
|
|
94
94
|
report: string;
|
|
95
|
+
processingLog: string;
|
|
95
96
|
route: unknown | null;
|
|
96
97
|
startPosition: unknown | null;
|
|
97
98
|
tusLinks: unknown | null;
|
|
@@ -115,7 +116,7 @@ export type _360FloorV2 = {
|
|
|
115
116
|
};
|
|
116
117
|
export type _360Scene = {
|
|
117
118
|
date: string;
|
|
118
|
-
dateID: number;
|
|
119
|
+
dateID: string | number;
|
|
119
120
|
floors: {
|
|
120
121
|
floorID: _360FloorId;
|
|
121
122
|
name: string;
|
|
@@ -181,12 +182,23 @@ export type MobileCaptureSnapshot = {
|
|
|
181
182
|
thumbnailUrl: string;
|
|
182
183
|
};
|
|
183
184
|
export declare enum _360UrlParams {
|
|
184
|
-
DateId = "
|
|
185
|
+
DateId = "dateId",
|
|
185
186
|
Date = "date",
|
|
186
187
|
Floor = "floor",
|
|
187
188
|
Marker = "marker",
|
|
188
189
|
PolarAngle = "polarAngle",
|
|
189
|
-
AzimuthAngle = "azimuthAngle"
|
|
190
|
+
AzimuthAngle = "azimuthAngle",
|
|
191
|
+
Zoom = "zoom",
|
|
192
|
+
User = "user",
|
|
193
|
+
ViewerMode = "viewer_mode",
|
|
194
|
+
ProjectId = "projectId",
|
|
195
|
+
Unit = "unit",
|
|
196
|
+
LockDate = "lockDate",
|
|
197
|
+
LockFloor = "lockFloor",
|
|
198
|
+
LockMarker = "lockMarker",
|
|
199
|
+
IsWidget = "isWidget",
|
|
200
|
+
MediaLocked = "mediaLocked",
|
|
201
|
+
Debug = "debug"
|
|
190
202
|
}
|
|
191
203
|
export declare enum _360AssetType {
|
|
192
204
|
Video = "video",
|
|
@@ -220,7 +232,7 @@ export declare enum PathMarkerColor {
|
|
|
220
232
|
export type _360AssetsQueryParams = {
|
|
221
233
|
page: number;
|
|
222
234
|
limit: number;
|
|
223
|
-
|
|
235
|
+
projectId: string;
|
|
224
236
|
date: DateType;
|
|
225
237
|
floor: string;
|
|
226
238
|
id: string;
|
|
@@ -278,4 +290,104 @@ export type Generate360MapRequestPayload = {
|
|
|
278
290
|
cameraOffset: string;
|
|
279
291
|
startPoint: string;
|
|
280
292
|
endPoint: string;
|
|
293
|
+
drawingId?: number;
|
|
294
|
+
markers?: Array<{
|
|
295
|
+
position: {
|
|
296
|
+
x: number;
|
|
297
|
+
y: number;
|
|
298
|
+
z: number;
|
|
299
|
+
};
|
|
300
|
+
}>;
|
|
301
|
+
startPointIndex?: number;
|
|
302
|
+
endPointIndex?: number;
|
|
303
|
+
};
|
|
304
|
+
export declare enum EModelsType {
|
|
305
|
+
FBX = "FBX",
|
|
306
|
+
PointCloud = "PLY"
|
|
307
|
+
}
|
|
308
|
+
export type _360FloorRef = {
|
|
309
|
+
projectID: string;
|
|
310
|
+
dateID: string;
|
|
311
|
+
floorID: string;
|
|
312
|
+
};
|
|
313
|
+
export type _360Vector3 = {
|
|
314
|
+
x: number;
|
|
315
|
+
y: number;
|
|
316
|
+
z: number;
|
|
317
|
+
};
|
|
318
|
+
export type _360MarkerData = {
|
|
319
|
+
cameraPosition: _360Vector3;
|
|
320
|
+
nextRoomId: string;
|
|
321
|
+
position: _360Vector3;
|
|
322
|
+
geolocation: {
|
|
323
|
+
latitude: number;
|
|
324
|
+
longitude: number;
|
|
325
|
+
};
|
|
326
|
+
rotation: {
|
|
327
|
+
_order: string;
|
|
328
|
+
_x: number;
|
|
329
|
+
_y: number;
|
|
330
|
+
_z: number;
|
|
331
|
+
isEuler: boolean;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
export type _360Route = {
|
|
335
|
+
overlayID?: number;
|
|
336
|
+
track?: string;
|
|
337
|
+
cameraHeadingOffset?: number;
|
|
338
|
+
};
|
|
339
|
+
export type _360CalibrationDetails = {
|
|
340
|
+
baseOriginOf360Viewer?: _360Vector3;
|
|
341
|
+
baseOriginOfForgeViewer?: _360Vector3;
|
|
342
|
+
rotationMatrix?: {
|
|
343
|
+
elements: number[];
|
|
344
|
+
};
|
|
345
|
+
scaleMatrix?: {
|
|
346
|
+
elements: number[];
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
export type _360FloorData = {
|
|
350
|
+
_3DMarkers: _360MarkerData[];
|
|
351
|
+
fbxModel: string | null;
|
|
352
|
+
fbxModelHQ: string | null;
|
|
353
|
+
pointCloudModelHQ: string | null;
|
|
354
|
+
initialMarker: string;
|
|
355
|
+
cameraRotation: _360CameraRotation;
|
|
356
|
+
steps: number;
|
|
357
|
+
route: _360Route | null;
|
|
358
|
+
sceneScale: number;
|
|
359
|
+
modelViewerFeatureFlag: boolean;
|
|
360
|
+
imagesOnlyFeatureFlag: boolean;
|
|
361
|
+
forgeBIMFeatureFlag: boolean;
|
|
362
|
+
isForgeGravityEnabled: boolean;
|
|
363
|
+
initialForgeView: Record<string, unknown> | null;
|
|
364
|
+
calibrationDetails: _360CalibrationDetails;
|
|
365
|
+
enhancedLightFeatureFlag: boolean;
|
|
366
|
+
};
|
|
367
|
+
export type _360PinData = {
|
|
368
|
+
position: _360Vector3;
|
|
369
|
+
pinType: string;
|
|
370
|
+
name: string;
|
|
371
|
+
pinId?: string;
|
|
372
|
+
cameraExid?: string;
|
|
373
|
+
currentRoom?: string;
|
|
374
|
+
cameraRotation?: {
|
|
375
|
+
polarAngle: number;
|
|
376
|
+
azimuthAngle: number;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
export type _360ForgeTimelineItem = {
|
|
380
|
+
taskNumber: number;
|
|
381
|
+
taskID: string;
|
|
382
|
+
actualStartDate: string;
|
|
383
|
+
actualEndDate: string;
|
|
384
|
+
plannedStartDate: string;
|
|
385
|
+
plannedEndDate: string;
|
|
386
|
+
objectIDs: number[];
|
|
387
|
+
};
|
|
388
|
+
export type _360ForgeProject = {
|
|
389
|
+
urns?: Array<{
|
|
390
|
+
urn: string;
|
|
391
|
+
}>;
|
|
392
|
+
timeline?: _360ForgeTimelineItem[];
|
|
281
393
|
};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
export declare enum AiApp {
|
|
2
|
+
GateReport = "gate_report",
|
|
3
|
+
Ppe = "ppe",
|
|
4
|
+
SiteAnalytics = "site_analytics"
|
|
5
|
+
}
|
|
6
|
+
export declare enum AiProvider {
|
|
7
|
+
Gemini = "gemini",
|
|
8
|
+
OpenAi = "openai",
|
|
9
|
+
Anthropic = "anthropic"
|
|
10
|
+
}
|
|
11
|
+
export declare enum AiConfigsPromptDialogMode {
|
|
12
|
+
Create = "create",
|
|
13
|
+
Edit = "edit",
|
|
14
|
+
View = "view"
|
|
15
|
+
}
|
|
16
|
+
export declare enum AiConfigsKeyDialogMode {
|
|
17
|
+
Create = "create",
|
|
18
|
+
Rotate = "rotate",
|
|
19
|
+
Rename = "rename"
|
|
20
|
+
}
|
|
21
|
+
export interface AiAppConfig {
|
|
22
|
+
bg: string;
|
|
23
|
+
fg: string;
|
|
24
|
+
border: string;
|
|
25
|
+
icon: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const AI_APP_CONFIGS: Record<AiApp | "generic", AiAppConfig>;
|
|
28
|
+
export interface AiProviderConfig {
|
|
29
|
+
bg: string;
|
|
30
|
+
fg: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const AI_PROVIDER_CONFIGS: Record<AiProvider, AiProviderConfig>;
|
|
34
|
+
export declare enum AiPromptModel {
|
|
35
|
+
Gemini3Pro = "gemini-3-pro",
|
|
36
|
+
Gemini3FlashPreview = "gemini-3-flash-preview",
|
|
37
|
+
Gemini25Pro = "gemini-2.5-pro",
|
|
38
|
+
Gemini25Flash = "gemini-2.5-flash",
|
|
39
|
+
Gemini20Flash = "gemini-2.0-flash",
|
|
40
|
+
Gpt5 = "gpt-5",
|
|
41
|
+
Gpt5Mini = "gpt-5-mini",
|
|
42
|
+
Gpt4o = "gpt-4o",
|
|
43
|
+
Gpt4oMini = "gpt-4o-mini",
|
|
44
|
+
ClaudeOpus45 = "claude-opus-4-5",
|
|
45
|
+
ClaudeSonnet46 = "claude-sonnet-4-6",
|
|
46
|
+
ClaudeHaiku45 = "claude-haiku-4-5"
|
|
47
|
+
}
|
|
48
|
+
export interface AiPrompt {
|
|
49
|
+
id: number;
|
|
50
|
+
title: string | null;
|
|
51
|
+
purpose: string | null;
|
|
52
|
+
app: string | null;
|
|
53
|
+
model: string | null;
|
|
54
|
+
prompt: string;
|
|
55
|
+
outputSchema: Record<string, unknown> | null;
|
|
56
|
+
createdBy: string;
|
|
57
|
+
createdAt: string;
|
|
58
|
+
updatedAt: string;
|
|
59
|
+
}
|
|
60
|
+
export interface AiPromptCreatePayload {
|
|
61
|
+
title?: string | null;
|
|
62
|
+
purpose: string;
|
|
63
|
+
app: string;
|
|
64
|
+
model?: string | null;
|
|
65
|
+
prompt: string;
|
|
66
|
+
outputSchema?: Record<string, unknown> | null;
|
|
67
|
+
}
|
|
68
|
+
export interface AiPromptUpdatePayload {
|
|
69
|
+
title?: string | null;
|
|
70
|
+
purpose?: string;
|
|
71
|
+
app?: string;
|
|
72
|
+
model?: string | null;
|
|
73
|
+
prompt?: string;
|
|
74
|
+
outputSchema?: Record<string, unknown> | null;
|
|
75
|
+
}
|
|
76
|
+
export type AiPromptQueryParams = {
|
|
77
|
+
app?: string;
|
|
78
|
+
purpose?: string;
|
|
79
|
+
model?: string;
|
|
80
|
+
search?: string;
|
|
81
|
+
createdBy?: string;
|
|
82
|
+
page?: number;
|
|
83
|
+
limit?: number;
|
|
84
|
+
};
|
|
85
|
+
export interface AiPromptListResponse {
|
|
86
|
+
items: AiPrompt[];
|
|
87
|
+
total: number;
|
|
88
|
+
page: number;
|
|
89
|
+
limit: number;
|
|
90
|
+
from: number;
|
|
91
|
+
to: number;
|
|
92
|
+
}
|
|
93
|
+
export interface AiPromptCreateResponse {
|
|
94
|
+
created: boolean;
|
|
95
|
+
data: AiPrompt;
|
|
96
|
+
message: string;
|
|
97
|
+
}
|
|
98
|
+
export interface AiPromptUpdateResponse {
|
|
99
|
+
updated: boolean;
|
|
100
|
+
id: number | string;
|
|
101
|
+
message: string;
|
|
102
|
+
}
|
|
103
|
+
export interface AiPromptDeleteResponse {
|
|
104
|
+
deleted: boolean;
|
|
105
|
+
count: number;
|
|
106
|
+
message: string;
|
|
107
|
+
}
|
|
108
|
+
export interface AiApiKey {
|
|
109
|
+
id: number;
|
|
110
|
+
projectExid: string;
|
|
111
|
+
provider: string;
|
|
112
|
+
name: string;
|
|
113
|
+
purpose: string;
|
|
114
|
+
enabled: boolean;
|
|
115
|
+
autoGenerated: boolean;
|
|
116
|
+
firstUsedAt: string | null;
|
|
117
|
+
lastUsedAt: string | null;
|
|
118
|
+
insertedAt: string;
|
|
119
|
+
updatedAt: string;
|
|
120
|
+
}
|
|
121
|
+
export interface AiApiKeyCreatePayload {
|
|
122
|
+
projectExid: string;
|
|
123
|
+
provider: string;
|
|
124
|
+
name?: string;
|
|
125
|
+
purpose?: string;
|
|
126
|
+
apiKey?: string;
|
|
127
|
+
enabled?: boolean;
|
|
128
|
+
}
|
|
129
|
+
export interface AiApiKeyUpdatePayload {
|
|
130
|
+
name?: string;
|
|
131
|
+
enabled?: boolean;
|
|
132
|
+
apiKey?: string;
|
|
133
|
+
}
|
|
134
|
+
export type AiApiKeyQueryParams = {
|
|
135
|
+
projectExid?: string;
|
|
136
|
+
provider?: string;
|
|
137
|
+
purpose?: string;
|
|
138
|
+
enabled?: boolean;
|
|
139
|
+
};
|
|
140
|
+
export interface AiApiKeyCreateResponse {
|
|
141
|
+
created: boolean;
|
|
142
|
+
data: AiApiKey;
|
|
143
|
+
message: string;
|
|
144
|
+
}
|
|
145
|
+
export interface AiApiKeyUpdateResponse {
|
|
146
|
+
updated: boolean;
|
|
147
|
+
id: number | string;
|
|
148
|
+
message: string;
|
|
149
|
+
}
|
|
150
|
+
export interface AiApiKeyDeleteResponse {
|
|
151
|
+
deleted: boolean;
|
|
152
|
+
count: number;
|
|
153
|
+
message: string;
|
|
154
|
+
}
|
|
@@ -292,6 +292,7 @@ export declare enum AnalyticsEvent {
|
|
|
292
292
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
293
293
|
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
294
294
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
295
|
+
ThreeSixtyMeasuringPerformed = "measuring_performed",
|
|
295
296
|
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
296
297
|
ThreeSixtyLockCompare = "LockCompare",
|
|
297
298
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
@@ -312,6 +313,7 @@ export declare enum AnalyticsEvent {
|
|
|
312
313
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
313
314
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
314
315
|
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
316
|
+
ThreeSixtyToggleCameraPinsVisibility = "toggle_camera_pins_visibility",
|
|
315
317
|
ThreeSixtyTourPause = "Tour-Pause",
|
|
316
318
|
ThreeSixtyTourPlay = "Tour-Play",
|
|
317
319
|
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
@@ -606,5 +608,6 @@ export declare enum AnalyticsEvent {
|
|
|
606
608
|
ForgeBimReplaceModelCancelled = "ForgeBim-ReplaceModelCancelled",
|
|
607
609
|
ForgeBimModelAdded = "ForgeBim-ModelAdded",
|
|
608
610
|
ForgeBimModelUpdated = "ForgeBim-ModelUpdated",
|
|
609
|
-
ForgeBimModelSaveFailed = "ForgeBim-ModelSaveFailed"
|
|
611
|
+
ForgeBimModelSaveFailed = "ForgeBim-ModelSaveFailed",
|
|
612
|
+
ForgeBimIngestNotificationFailed = "ForgeBim-IngestNotificationFailed"
|
|
610
613
|
}
|