@evercam/api 1.0.0-fce98b41d → 1.0.0-feccd27be
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 +4 -0
- package/dist/api/api/3dFirebaseApi.d.ts +176 -0
- package/dist/api/api/adminApi.d.ts +380 -0
- package/dist/api/api/aiApi.d.ts +159 -0
- package/dist/api/api/authzApi.d.ts +37 -0
- package/dist/api/{client → api/client}/axios.d.ts +2 -1
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/api/evercamApi.d.ts +346 -0
- package/dist/api/api/evercamLabsApi.d.ts +45 -0
- package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +149 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +281 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/{types → api/types}/analytics.d.ts +233 -104
- package/dist/{types → api/types}/anpr.d.ts +64 -19
- package/dist/{types → api/types}/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +61 -0
- package/dist/{types → api/types}/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +95 -0
- package/dist/{types → api/types}/axios.d.ts +23 -3
- package/dist/{types → api/types}/bim.d.ts +28 -5
- package/dist/{types → api/types}/camera.d.ts +116 -144
- package/dist/api/types/comments.d.ts +57 -0
- package/dist/api/types/company.d.ts +115 -0
- package/dist/{types → api/types}/compare.d.ts +20 -5
- package/dist/{types → api/types}/connector.d.ts +9 -6
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/{types → api/types}/copilot.d.ts +11 -6
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +116 -0
- package/dist/api/types/drone.d.ts +107 -0
- package/dist/{types → api/types}/errors.d.ts +13 -0
- package/dist/{types → api/types}/gateReport.d.ts +49 -158
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/{types → api/types}/hdd.d.ts +26 -1
- package/dist/{types → api/types}/index.d.ts +18 -3
- package/dist/api/types/ingest.d.ts +147 -0
- package/dist/{types → api/types}/kit.d.ts +93 -7
- package/dist/api/types/map.d.ts +16 -0
- package/dist/{types → api/types}/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +57 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +132 -0
- package/dist/api/types/posthog.d.ts +33 -0
- package/dist/api/types/procore.d.ts +229 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
- package/dist/api/types/project.d.ts +247 -0
- package/dist/{types → api/types}/recording.d.ts +6 -12
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/{types → api/types}/roi.d.ts +1 -0
- package/dist/{types → api/types}/routeParams.d.ts +4 -2
- package/dist/{types → api/types}/router.d.ts +20 -1
- package/dist/{types → api/types}/shared.d.ts +32 -20
- package/dist/api/types/shares.d.ts +58 -0
- package/dist/{types → api/types}/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +287 -0
- package/dist/api/types/siteView.d.ts +74 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +104 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +97 -0
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +15 -5
- package/dist/{types → api/types}/user.d.ts +105 -37
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/api/types/weather.d.ts +153 -0
- package/dist/{types → api/types}/widget.d.ts +99 -19
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2391 -1009
- 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/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +323 -0
- package/dist/shared/types/imagePlayer.d.ts +41 -0
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +6 -5
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/adminApi.d.ts +0 -310
- package/dist/api/aiApi.d.ts +0 -86
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -266
- package/dist/api/evercamLabsApi.d.ts +0 -46
- package/dist/api/ingestApi.d.ts +0 -65
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/api/weatherApi.d.ts +0 -25
- package/dist/types/360.d.ts +0 -83
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/company.d.ts +0 -46
- package/dist/types/detections.d.ts +0 -76
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/drone.d.ts +0 -17
- package/dist/types/ingest.d.ts +0 -43
- package/dist/types/map.d.ts +0 -4
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/project.d.ts +0 -120
- package/dist/types/shares.d.ts +0 -192
- package/dist/types/siteAnalytics.d.ts +0 -84
- package/dist/types/sitePlanner.d.ts +0 -28
- package/dist/types/snapshots.d.ts +0 -50
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/streaming.d.ts +0 -119
- package/dist/types/time.d.ts +0 -19
- package/dist/types/videoWall.d.ts +0 -33
- package/dist/types/weather.d.ts +0 -83
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
- /package/dist/{utils.d.ts → api/utils.d.ts} +0 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { DateType } from "@evercam/api/types/time";
|
|
2
|
+
import { GeoPoint, Point3D } from "@evercam/api/types/shared";
|
|
3
|
+
export type _360OverlayPosition = {
|
|
4
|
+
northEast: GeoPoint;
|
|
5
|
+
northWest: GeoPoint;
|
|
6
|
+
southEast: GeoPoint;
|
|
7
|
+
southWest: GeoPoint;
|
|
8
|
+
};
|
|
9
|
+
export type ForgeViewport = {
|
|
10
|
+
name: string;
|
|
11
|
+
eye: number[];
|
|
12
|
+
target: number[];
|
|
13
|
+
worldUpVector?: number[];
|
|
14
|
+
};
|
|
15
|
+
export type ForgeView = {
|
|
16
|
+
name: string;
|
|
17
|
+
viewport: ForgeViewport;
|
|
18
|
+
timestamp: string;
|
|
19
|
+
};
|
|
20
|
+
export type _360CameraRotation = {
|
|
21
|
+
azimuthAngle: number;
|
|
22
|
+
polarAngle: number;
|
|
23
|
+
};
|
|
24
|
+
export type _360Geolocation = {
|
|
25
|
+
latitude: number;
|
|
26
|
+
longitude: number;
|
|
27
|
+
};
|
|
28
|
+
export type _360Marker3D = {
|
|
29
|
+
cameraPosition: Point3D;
|
|
30
|
+
geolocation: _360Geolocation;
|
|
31
|
+
nextRoomId: _360MakerId;
|
|
32
|
+
position: Point3D;
|
|
33
|
+
rotation: {
|
|
34
|
+
_order: "XYZ" | string;
|
|
35
|
+
_x: number;
|
|
36
|
+
_y: number;
|
|
37
|
+
_z: number;
|
|
38
|
+
isEuler: boolean;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export type _360Tag = {
|
|
42
|
+
id: string;
|
|
43
|
+
tagType: string;
|
|
44
|
+
comment: string;
|
|
45
|
+
creationDate: number;
|
|
46
|
+
currentRoom: _360MakerId;
|
|
47
|
+
position: Point3D;
|
|
48
|
+
cameraRotation: _360CameraRotation;
|
|
49
|
+
};
|
|
50
|
+
export type _360FloorId = string | number;
|
|
51
|
+
export type _360Walk = Record<_360FloorId, _360Floor>;
|
|
52
|
+
export type _360MakerId = string;
|
|
53
|
+
export type _360Floor = {
|
|
54
|
+
_3DMarkers: _360Marker3D[];
|
|
55
|
+
cameraRotation: _360CameraRotation;
|
|
56
|
+
fbxModel: string;
|
|
57
|
+
fbxModelHQ?: string;
|
|
58
|
+
pointCloudModelHQ?: string;
|
|
59
|
+
initialMarker: _360MakerId;
|
|
60
|
+
modelViewerFeatureFlag: boolean;
|
|
61
|
+
imagesOnlyFeatureFlag?: boolean;
|
|
62
|
+
forgeBIMFeatureFlag?: boolean;
|
|
63
|
+
isForgeGravityEnabled?: boolean;
|
|
64
|
+
initialForgeView?: ForgeView | null;
|
|
65
|
+
enhancedLightFeatureFlag?: boolean;
|
|
66
|
+
calibrationDetails?: Record<string, unknown>;
|
|
67
|
+
route: {
|
|
68
|
+
cameraHeadingOffset: string;
|
|
69
|
+
overlayID: number;
|
|
70
|
+
track: string;
|
|
71
|
+
};
|
|
72
|
+
sceneScale: number;
|
|
73
|
+
steps: number;
|
|
74
|
+
tags?: Record<string, _360Tag>;
|
|
75
|
+
};
|
|
76
|
+
export type _360WalkV2 = {
|
|
77
|
+
archive: string;
|
|
78
|
+
date: string;
|
|
79
|
+
deviceSerial: string | null;
|
|
80
|
+
endPosition: unknown | null;
|
|
81
|
+
floor: string;
|
|
82
|
+
floorId: number;
|
|
83
|
+
id: number;
|
|
84
|
+
images: string[];
|
|
85
|
+
insertedAt: string;
|
|
86
|
+
mobileAudios: string[];
|
|
87
|
+
mobileAudiosArchive: string;
|
|
88
|
+
mobilePhotos: string[];
|
|
89
|
+
mobilePhotosArchive: string;
|
|
90
|
+
model: string;
|
|
91
|
+
name: string;
|
|
92
|
+
processingStatus: string;
|
|
93
|
+
projectId: string;
|
|
94
|
+
report: string;
|
|
95
|
+
route: unknown | null;
|
|
96
|
+
startPosition: unknown | null;
|
|
97
|
+
tusLinks: unknown | null;
|
|
98
|
+
updatedAt: string;
|
|
99
|
+
uploadedBy: string;
|
|
100
|
+
videoArchive: string;
|
|
101
|
+
videos: string[];
|
|
102
|
+
};
|
|
103
|
+
export type _360FloorV2 = {
|
|
104
|
+
id: _360FloorId;
|
|
105
|
+
assets: _360WalkV2[];
|
|
106
|
+
projectId: string;
|
|
107
|
+
name: string;
|
|
108
|
+
mapStyle: string;
|
|
109
|
+
hasOverlay: boolean;
|
|
110
|
+
isCalibrated: boolean;
|
|
111
|
+
createdBy: string | null;
|
|
112
|
+
overlayPosition: _360OverlayPosition;
|
|
113
|
+
insertedAt: string;
|
|
114
|
+
updatedAt: string;
|
|
115
|
+
};
|
|
116
|
+
export type _360Scene = {
|
|
117
|
+
date: string;
|
|
118
|
+
dateID: number;
|
|
119
|
+
floors: {
|
|
120
|
+
floorID: _360FloorId;
|
|
121
|
+
name: string;
|
|
122
|
+
}[];
|
|
123
|
+
polarAngle: number;
|
|
124
|
+
azimuthAngle: number;
|
|
125
|
+
};
|
|
126
|
+
export declare enum _360PinType {
|
|
127
|
+
Default = "Default"
|
|
128
|
+
}
|
|
129
|
+
export type _360Pin = {
|
|
130
|
+
position: Point3D;
|
|
131
|
+
pinType: _360PinType;
|
|
132
|
+
pinId?: string;
|
|
133
|
+
cameraExid?: string;
|
|
134
|
+
name: string;
|
|
135
|
+
currentRoom?: _360MakerId;
|
|
136
|
+
cameraRotation?: _360CameraRotation;
|
|
137
|
+
};
|
|
138
|
+
export type _360SceneRoute = {
|
|
139
|
+
cameraHeadingOffset?: number;
|
|
140
|
+
overlayID?: number;
|
|
141
|
+
track?: string;
|
|
142
|
+
};
|
|
143
|
+
export type _360ProjectListItem = {
|
|
144
|
+
integrationType: string;
|
|
145
|
+
projectId: string;
|
|
146
|
+
projectName: string;
|
|
147
|
+
providerID: string;
|
|
148
|
+
providerPrefix: string;
|
|
149
|
+
providerSuffix: string;
|
|
150
|
+
timeline: string;
|
|
151
|
+
uniqueId: string;
|
|
152
|
+
};
|
|
153
|
+
export type _360FullProject = {
|
|
154
|
+
dates: _360SceneWithFloors[];
|
|
155
|
+
integrationType: string;
|
|
156
|
+
projectId: string;
|
|
157
|
+
projectName: string;
|
|
158
|
+
providerID: string;
|
|
159
|
+
providerPrefix: string;
|
|
160
|
+
providerSuffix: string;
|
|
161
|
+
timeline: string;
|
|
162
|
+
uniqueId: string;
|
|
163
|
+
};
|
|
164
|
+
export type _360FullFloor = _360Floor & {
|
|
165
|
+
id: _360FloorId;
|
|
166
|
+
name: string;
|
|
167
|
+
};
|
|
168
|
+
export type _360SceneWithFloors = _360Scene & {
|
|
169
|
+
floors: _360FullFloor[];
|
|
170
|
+
};
|
|
171
|
+
export type _360ProjectJsonResponse = {
|
|
172
|
+
dates: _360Scene[];
|
|
173
|
+
[key: string]: any;
|
|
174
|
+
};
|
|
175
|
+
export type MobileCaptureSnapshot = {
|
|
176
|
+
id: string | number;
|
|
177
|
+
projectId?: string;
|
|
178
|
+
uploadedBy: string;
|
|
179
|
+
updatedAt: string;
|
|
180
|
+
assetType: string;
|
|
181
|
+
thumbnailUrl: string;
|
|
182
|
+
};
|
|
183
|
+
export declare enum _360UrlParams {
|
|
184
|
+
DateId = "date_id",
|
|
185
|
+
Date = "date",
|
|
186
|
+
Floor = "floor",
|
|
187
|
+
Marker = "marker",
|
|
188
|
+
PolarAngle = "polarAngle",
|
|
189
|
+
AzimuthAngle = "azimuthAngle"
|
|
190
|
+
}
|
|
191
|
+
export declare enum _360AssetType {
|
|
192
|
+
Video = "video",
|
|
193
|
+
Image = "image",
|
|
194
|
+
Model = "model",
|
|
195
|
+
Route = "route",
|
|
196
|
+
MobilePhoto = "mobile_photos",
|
|
197
|
+
MobileAudio = "mobile_audios"
|
|
198
|
+
}
|
|
199
|
+
export declare enum _360AssetLabel {
|
|
200
|
+
Walks = "walks",
|
|
201
|
+
MobilePhotos = "mobilePhotos"
|
|
202
|
+
}
|
|
203
|
+
export declare enum _360Feature {
|
|
204
|
+
BIM = "BIM",
|
|
205
|
+
Minimap = "Minimap",
|
|
206
|
+
Minimodel = "Minimodel"
|
|
207
|
+
}
|
|
208
|
+
export declare enum _360IntergrationType {
|
|
209
|
+
Evercam = "Evercam",
|
|
210
|
+
Matterport = "Matterport",
|
|
211
|
+
OpenSpace = "Openspace",
|
|
212
|
+
HoloBuilder = "Holobuilder",
|
|
213
|
+
DroneDeploy = "Dronedeploy"
|
|
214
|
+
}
|
|
215
|
+
export declare enum PathMarkerColor {
|
|
216
|
+
Start = "#00e74c",
|
|
217
|
+
End = "#fd7567",
|
|
218
|
+
Default = "#2196F3"
|
|
219
|
+
}
|
|
220
|
+
export type _360AssetsQueryParams = {
|
|
221
|
+
page: number;
|
|
222
|
+
limit: number;
|
|
223
|
+
projectId: string;
|
|
224
|
+
date: DateType;
|
|
225
|
+
floor: string;
|
|
226
|
+
id: string;
|
|
227
|
+
};
|
|
228
|
+
export type _360AssetsRequestPayload = {
|
|
229
|
+
projectId: string;
|
|
230
|
+
date: DateType;
|
|
231
|
+
floor: string;
|
|
232
|
+
uploadedBy?: string;
|
|
233
|
+
};
|
|
234
|
+
export type DrawingsRequestPayload = {
|
|
235
|
+
projectId?: string;
|
|
236
|
+
name?: string;
|
|
237
|
+
changedBy?: string;
|
|
238
|
+
mapStyle?: string;
|
|
239
|
+
startDate?: string;
|
|
240
|
+
endDate?: string;
|
|
241
|
+
id?: number;
|
|
242
|
+
page?: number;
|
|
243
|
+
limit?: number;
|
|
244
|
+
paginate?: boolean;
|
|
245
|
+
withAsset?: boolean;
|
|
246
|
+
};
|
|
247
|
+
export type GenerateFloorPayload = {
|
|
248
|
+
overlay?: {
|
|
249
|
+
url: string;
|
|
250
|
+
title: string;
|
|
251
|
+
fileExtension: string;
|
|
252
|
+
};
|
|
253
|
+
changedBy: string;
|
|
254
|
+
name?: string;
|
|
255
|
+
mapStyle?: string;
|
|
256
|
+
overlayPositionCorners: _360OverlayPosition;
|
|
257
|
+
};
|
|
258
|
+
export type _360QueueQueryParams = {
|
|
259
|
+
projectId?: string;
|
|
260
|
+
};
|
|
261
|
+
export type _360AssetsUploadPayload = {
|
|
262
|
+
targetPointsCount: number;
|
|
263
|
+
assetType: string;
|
|
264
|
+
upload: {
|
|
265
|
+
url: string;
|
|
266
|
+
title: string;
|
|
267
|
+
fileExtension: string;
|
|
268
|
+
}[];
|
|
269
|
+
deviceSerial: string;
|
|
270
|
+
startPosition: string;
|
|
271
|
+
endPosition: string;
|
|
272
|
+
isTimelapse: boolean;
|
|
273
|
+
isImagesOnly: boolean;
|
|
274
|
+
};
|
|
275
|
+
export type Generate360MapRequestPayload = {
|
|
276
|
+
dateId: string;
|
|
277
|
+
floorId: string;
|
|
278
|
+
cameraOffset: string;
|
|
279
|
+
startPoint: string;
|
|
280
|
+
endPoint: string;
|
|
281
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export type AconexUserProject = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
shortName: string;
|
|
5
|
+
startDate: string;
|
|
6
|
+
endDate: string;
|
|
7
|
+
active: boolean;
|
|
8
|
+
hidden: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type AconexDocumentSchema = {
|
|
11
|
+
dataType: AconexDocumentDataType;
|
|
12
|
+
identifier: AconexIdentifiers;
|
|
13
|
+
fieldName: string;
|
|
14
|
+
modifiedFieldName?: string;
|
|
15
|
+
mandatoryStatus: AconexMandatoryStatus;
|
|
16
|
+
schemaValues?: Array<{
|
|
17
|
+
id: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
export type AconexDocumentTypeSchema = {
|
|
22
|
+
dataType: AconexDocumentDataType;
|
|
23
|
+
identifier: AconexIdentifiers;
|
|
24
|
+
fieldName: string;
|
|
25
|
+
modifiedFieldName?: string;
|
|
26
|
+
mandatoryStatus: AconexMandatoryStatus;
|
|
27
|
+
specifications?: Array<AconexFieldSpecification>;
|
|
28
|
+
};
|
|
29
|
+
export type AconexDocumentSchemaField = {
|
|
30
|
+
dataType: AconexDocumentDataType;
|
|
31
|
+
identifier: AconexIdentifiers;
|
|
32
|
+
schemaValues?: Array<{
|
|
33
|
+
id: string;
|
|
34
|
+
value: string;
|
|
35
|
+
}>;
|
|
36
|
+
fieldName: string;
|
|
37
|
+
modifiedFieldName?: string;
|
|
38
|
+
mandatoryStatus: AconexMandatoryStatus;
|
|
39
|
+
componentType?: AconexFormComponentType;
|
|
40
|
+
items?: Array<any>;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
specifications?: Array<AconexFieldSpecification>;
|
|
43
|
+
};
|
|
44
|
+
export type AconexFormSchema = Record<AconexIdentifiers | string, AconexDocumentSchemaField>;
|
|
45
|
+
export type AconexFieldSpecification = {
|
|
46
|
+
name: string;
|
|
47
|
+
options: Array<string>;
|
|
48
|
+
};
|
|
49
|
+
export declare enum AconexDocumentDataType {
|
|
50
|
+
String = "STRING",
|
|
51
|
+
Boolean = "BOOLEAN",
|
|
52
|
+
Ratio = "RATIO",
|
|
53
|
+
Integer = "INTEGER",
|
|
54
|
+
Double = "DOUBLE",
|
|
55
|
+
Long = "LONG",
|
|
56
|
+
Date = "DATE",
|
|
57
|
+
Complex = "COMPLEX",
|
|
58
|
+
SingleLineText = "SINGLE_LINE_TEXT",
|
|
59
|
+
MultiLineText = "MULTI_LINE_TEXT",
|
|
60
|
+
SingleSelect = "SINGLE_SELECT",
|
|
61
|
+
MultiSelect = "MULTI_SELECT",
|
|
62
|
+
User = "USER",
|
|
63
|
+
Number = "NUMBER"
|
|
64
|
+
}
|
|
65
|
+
export declare enum AconexFormComponentType {
|
|
66
|
+
Select = "SelectField",
|
|
67
|
+
Text = "TextField",
|
|
68
|
+
DateTime = "DateTimeField",
|
|
69
|
+
Switch = "SwitchField"
|
|
70
|
+
}
|
|
71
|
+
export declare enum AconexMandatoryStatus {
|
|
72
|
+
Mandatory = "MANDATORY",
|
|
73
|
+
NotMandatory = "NOT_MANDATORY"
|
|
74
|
+
}
|
|
75
|
+
export type AconexAuthCallbackParams = {
|
|
76
|
+
code: string;
|
|
77
|
+
location: string;
|
|
78
|
+
};
|
|
79
|
+
export type AconexEditedImageUploadRequestPayload = {
|
|
80
|
+
projectExid: string;
|
|
81
|
+
snapshot: string;
|
|
82
|
+
};
|
|
83
|
+
export declare enum AconexIdentifiers {
|
|
84
|
+
DocumentNumber = "DocumentNumber",
|
|
85
|
+
DocumentTypeId = "DocumentTypeId",
|
|
86
|
+
Revision = "Revision",
|
|
87
|
+
HasFile = "HasFile",
|
|
88
|
+
AccessList = "AccessList",
|
|
89
|
+
AsBuiltRequired = "AsBuiltRequired",
|
|
90
|
+
Attribute1 = "Attribute1",
|
|
91
|
+
Attribute2 = "Attribute2",
|
|
92
|
+
Attribute3 = "Attribute3",
|
|
93
|
+
Attribute4 = "Attribute4",
|
|
94
|
+
Author = "Author",
|
|
95
|
+
AuthorisedBy = "AuthorisedBy",
|
|
96
|
+
Category = "Category",
|
|
97
|
+
Check1 = "Check1",
|
|
98
|
+
Check2 = "Check2",
|
|
99
|
+
Comments = "Comments",
|
|
100
|
+
Comments2 = "Comments2",
|
|
101
|
+
ContractNumber = "ContractNumber",
|
|
102
|
+
ContractDeliverable = "ContractDeliverable",
|
|
103
|
+
ContractorDocumentNumber = "ContractorDocumentNumber",
|
|
104
|
+
ContractorRev = "ContractorRev",
|
|
105
|
+
Date1 = "Date1",
|
|
106
|
+
Date2 = "Date2",
|
|
107
|
+
DateApproved = "DateApproved",
|
|
108
|
+
DateCreated = "DateCreated",
|
|
109
|
+
DateForReview = "DateForReview",
|
|
110
|
+
DateReviewed = "DateReviewed",
|
|
111
|
+
Discipline = "Discipline",
|
|
112
|
+
DocumentStatusId = "DocumentStatusId",
|
|
113
|
+
MilestoneDate = "MilestoneDate",
|
|
114
|
+
PackageNumber = "PackageNumber",
|
|
115
|
+
PercentageComplete = "PercentageComplete",
|
|
116
|
+
PlannedSubmissionDate = "PlannedSubmissionDate",
|
|
117
|
+
PrintSize = "PrintSize",
|
|
118
|
+
ProjectField1 = "ProjectField1",
|
|
119
|
+
ProjectField2 = "ProjectField2",
|
|
120
|
+
ProjectField3 = "ProjectField3",
|
|
121
|
+
Reference = "Reference",
|
|
122
|
+
RevisionDate = "RevisionDate",
|
|
123
|
+
Scale = "Scale",
|
|
124
|
+
SelectList1 = "SelectList1",
|
|
125
|
+
SelectList2 = "SelectList2",
|
|
126
|
+
SelectList3 = "SelectList3",
|
|
127
|
+
SelectList4 = "SelectList4",
|
|
128
|
+
SelectList5 = "SelectList5",
|
|
129
|
+
SelectList6 = "SelectList6",
|
|
130
|
+
SelectList7 = "SelectList7",
|
|
131
|
+
SelectList8 = "SelectList8",
|
|
132
|
+
SelectList9 = "SelectList9",
|
|
133
|
+
SelectList10 = "SelectList10",
|
|
134
|
+
TagNumber = "TagNumber",
|
|
135
|
+
Title = "Title",
|
|
136
|
+
ToClientDate = "ToClientDate",
|
|
137
|
+
UploadDate = "UploadDate",
|
|
138
|
+
UploadedBy = "UploadedBy",
|
|
139
|
+
Vdrcode = "Vdrcode",
|
|
140
|
+
VendorDocumentNumber = "VendorDocumentNumber",
|
|
141
|
+
VendorRev = "VendorRev",
|
|
142
|
+
AutoNumber = "AutoNumber"
|
|
143
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { JsonObject } from "@evercam/api/types";
|
|
2
|
+
export type WithZohoParams = {
|
|
3
|
+
with_zoho?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export type AdminSearchProjectItem = {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
status: string;
|
|
9
|
+
exid: string;
|
|
10
|
+
featureFlags: string[];
|
|
11
|
+
};
|
|
12
|
+
export type AdminSearchItem = AdminSearchProjectItem | JsonObject;
|
|
13
|
+
export type AdminInviteRole = {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
resourceType: string;
|
|
17
|
+
};
|
|
18
|
+
export type AdminInviteAssigner = {
|
|
19
|
+
id: number;
|
|
20
|
+
email: string;
|
|
21
|
+
fullname: string;
|
|
22
|
+
};
|
|
23
|
+
export type AdminInviteAuthContextSubRole = {
|
|
24
|
+
resourceId: string;
|
|
25
|
+
roleId: number;
|
|
26
|
+
};
|
|
27
|
+
export type AdminInviteAuthContext = {
|
|
28
|
+
permissions: string[] | null;
|
|
29
|
+
subRoles: AdminInviteAuthContextSubRole[];
|
|
30
|
+
hasOverride: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type AdminInvite = {
|
|
33
|
+
id: number;
|
|
34
|
+
message: string | null;
|
|
35
|
+
status: number;
|
|
36
|
+
email: string;
|
|
37
|
+
key: string;
|
|
38
|
+
updatedAt: string;
|
|
39
|
+
role: AdminInviteRole;
|
|
40
|
+
createdAt: string;
|
|
41
|
+
resourceId: string;
|
|
42
|
+
assigner: AdminInviteAssigner;
|
|
43
|
+
sentCount: number;
|
|
44
|
+
lastSentAt: string;
|
|
45
|
+
authContext: AdminInviteAuthContext;
|
|
46
|
+
statusName: string;
|
|
47
|
+
};
|
|
48
|
+
export type ZohoDeskTicketSearchResponse = {
|
|
49
|
+
data: JsonObject[];
|
|
50
|
+
count: number;
|
|
51
|
+
};
|
|
@@ -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
|
+
}
|