@evercam/api 1.0.0-eea993f14 → 1.0.0-f1d191d6c
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 +198 -15
- package/dist/api/api/adminApi.d.ts +84 -50
- package/dist/api/api/aiApi.d.ts +117 -55
- package/dist/api/api/authzApi.d.ts +26 -16
- package/dist/api/api/client/axios.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +134 -77
- package/dist/api/api/evercamLabsApi.d.ts +7 -8
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +107 -47
- package/dist/api/api/ptzApi.d.ts +9 -4
- package/dist/api/api/videoWallApi.d.ts +2 -2
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +177 -56
- package/dist/api/types/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +117 -58
- package/dist/api/types/anpr.d.ts +48 -2
- package/dist/api/types/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +91 -12
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +37 -3
- package/dist/api/types/axios.d.ts +19 -11
- package/dist/api/types/bim.d.ts +37 -6
- package/dist/api/types/camera.d.ts +93 -93
- package/dist/api/types/comments.d.ts +10 -11
- package/dist/api/types/company.d.ts +42 -1
- package/dist/api/types/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +5 -5
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/copilot.d.ts +11 -6
- package/dist/api/types/detections.d.ts +23 -18
- package/dist/api/types/drone.d.ts +96 -6
- package/dist/api/types/errors.d.ts +11 -0
- package/dist/api/types/gateReport.d.ts +47 -58
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +12 -1
- package/dist/api/types/ingest.d.ts +110 -3
- package/dist/api/types/kit.d.ts +52 -9
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +10 -3
- package/dist/api/types/notification.d.ts +32 -2
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/planner.d.ts +97 -0
- package/dist/api/types/posthog.d.ts +35 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +6 -2
- package/dist/api/types/project.d.ts +96 -22
- package/dist/api/types/recording.d.ts +8 -12
- package/dist/api/types/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +4 -3
- package/dist/api/types/router.d.ts +1 -1
- package/dist/api/types/shared.d.ts +30 -4
- package/dist/api/types/shares.d.ts +1 -1
- package/dist/api/types/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +81 -41
- package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +49 -4
- 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 +3 -3
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +0 -18
- package/dist/api/types/timelapse.d.ts +8 -5
- package/dist/api/types/user.d.ts +91 -37
- package/dist/api/types/videoWall.d.ts +21 -21
- package/dist/api/types/weather.d.ts +75 -11
- package/dist/api/types/widget.d.ts +71 -12
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +1920 -808
- 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 +191 -16
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +9 -2
- package/dist/shared/types/index.d.ts +3 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +4 -2
- package/dist/api/types/storageServers.d.ts +0 -4
package/dist/api/api/ptzApi.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { MoveParams, ZoomParams } from "
|
|
1
|
+
import { MoveParams, ZoomParams } from "@evercam/api/types";
|
|
2
2
|
export declare const PtzApi: {
|
|
3
3
|
presets: {
|
|
4
|
-
index({ cameraExid }: {
|
|
5
|
-
cameraExid: string;
|
|
6
|
-
}): Promise<
|
|
4
|
+
index({ cameraExid, }: {
|
|
5
|
+
cameraExid: string;
|
|
6
|
+
}): Promise<{
|
|
7
|
+
presets: Array<{
|
|
8
|
+
name: string;
|
|
9
|
+
token: string;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
7
12
|
go({ cameraExid, presetId, }: {
|
|
8
13
|
cameraExid: string;
|
|
9
14
|
presetId: string | number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PaginatedItems } from "@evercam/shared/types";
|
|
2
|
-
import { VideoWall,
|
|
2
|
+
import { VideoWall, VideoWallListParams, VideoWallCreateUpdatePayload } from "@evercam/api/types/videoWall";
|
|
3
3
|
export declare const VideoWallApi: {
|
|
4
|
-
list(params?:
|
|
4
|
+
list(params?: VideoWallListParams): Promise<import("axios").AxiosResponse<PaginatedItems<VideoWall>, any>>;
|
|
5
5
|
create(body: VideoWallCreateUpdatePayload): Promise<import("axios").AxiosResponse<VideoWall, any>>;
|
|
6
6
|
get(exid: string | number): Promise<import("axios").AxiosResponse<VideoWall, any>>;
|
|
7
7
|
update(exid: string | number, body: Partial<VideoWallCreateUpdatePayload>): Promise<import("axios").AxiosResponse<VideoWall, any>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CurrentWeatherRequestPayload, HistoryWeatherRequestPayload, WeatherDataResponse, WeatherResponsePayload } from "@evercam/api/types";
|
|
1
|
+
import { CurrentWeatherRequestPayload, HistoryWeatherRequestPayload, WeatherDataResponse, WeatherReportRequestPayload, WeatherResponsePayload } from "@evercam/api/types";
|
|
2
2
|
import { AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare const WeatherApi: {
|
|
4
4
|
current(projectExid: string, payload: CurrentWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
|
|
5
5
|
historical(projectExid: string, payload: HistoryWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
|
|
6
|
-
report(projectExid: string, payload:
|
|
6
|
+
report(projectExid: string, payload: WeatherReportRequestPayload, config?: AxiosRequestConfig): Promise<{
|
|
7
7
|
data: WeatherDataResponse[];
|
|
8
8
|
}> | undefined;
|
|
9
9
|
};
|
package/dist/api/types/360.d.ts
CHANGED
|
@@ -1,26 +1,35 @@
|
|
|
1
|
-
import { DateType } from "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
|
5
8
|
};
|
|
6
|
-
export type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
export type ForgeViewport = {
|
|
10
|
+
name: string;
|
|
11
|
+
eye: number[];
|
|
12
|
+
target: number[];
|
|
13
|
+
worldUpVector?: number[];
|
|
10
14
|
};
|
|
11
|
-
export type
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
export type ForgeView = {
|
|
16
|
+
name: string;
|
|
17
|
+
viewport: ForgeViewport;
|
|
18
|
+
timestamp: string;
|
|
14
19
|
};
|
|
15
20
|
export type _360CameraRotation = {
|
|
16
21
|
azimuthAngle: number;
|
|
17
22
|
polarAngle: number;
|
|
18
23
|
};
|
|
24
|
+
export type _360Geolocation = {
|
|
25
|
+
latitude: number;
|
|
26
|
+
longitude: number;
|
|
27
|
+
};
|
|
19
28
|
export type _360Marker3D = {
|
|
20
|
-
cameraPosition:
|
|
29
|
+
cameraPosition: Point3D;
|
|
21
30
|
geolocation: _360Geolocation;
|
|
22
31
|
nextRoomId: _360MakerId;
|
|
23
|
-
position:
|
|
32
|
+
position: Point3D;
|
|
24
33
|
rotation: {
|
|
25
34
|
_order: "XYZ" | string;
|
|
26
35
|
_x: number;
|
|
@@ -35,7 +44,7 @@ export type _360Tag = {
|
|
|
35
44
|
comment: string;
|
|
36
45
|
creationDate: number;
|
|
37
46
|
currentRoom: _360MakerId;
|
|
38
|
-
position:
|
|
47
|
+
position: Point3D;
|
|
39
48
|
cameraRotation: _360CameraRotation;
|
|
40
49
|
};
|
|
41
50
|
export type _360FloorId = string | number;
|
|
@@ -45,8 +54,16 @@ export type _360Floor = {
|
|
|
45
54
|
_3DMarkers: _360Marker3D[];
|
|
46
55
|
cameraRotation: _360CameraRotation;
|
|
47
56
|
fbxModel: string;
|
|
57
|
+
fbxModelHQ?: string;
|
|
58
|
+
pointCloudModelHQ?: string;
|
|
48
59
|
initialMarker: _360MakerId;
|
|
49
60
|
modelViewerFeatureFlag: boolean;
|
|
61
|
+
imagesOnlyFeatureFlag?: boolean;
|
|
62
|
+
forgeBIMFeatureFlag?: boolean;
|
|
63
|
+
isForgeGravityEnabled?: boolean;
|
|
64
|
+
initialForgeView?: ForgeView | null;
|
|
65
|
+
enhancedLightFeatureFlag?: boolean;
|
|
66
|
+
calibrationDetails?: Record<string, unknown>;
|
|
50
67
|
route: {
|
|
51
68
|
cameraHeadingOffset: string;
|
|
52
69
|
overlayID: number;
|
|
@@ -54,7 +71,7 @@ export type _360Floor = {
|
|
|
54
71
|
};
|
|
55
72
|
sceneScale: number;
|
|
56
73
|
steps: number;
|
|
57
|
-
tags
|
|
74
|
+
tags?: Record<string, _360Tag>;
|
|
58
75
|
};
|
|
59
76
|
export type _360WalkV2 = {
|
|
60
77
|
archive: string;
|
|
@@ -75,6 +92,7 @@ export type _360WalkV2 = {
|
|
|
75
92
|
processingStatus: string;
|
|
76
93
|
projectId: string;
|
|
77
94
|
report: string;
|
|
95
|
+
processingLog: string;
|
|
78
96
|
route: unknown | null;
|
|
79
97
|
startPosition: unknown | null;
|
|
80
98
|
tusLinks: unknown | null;
|
|
@@ -92,30 +110,14 @@ export type _360FloorV2 = {
|
|
|
92
110
|
hasOverlay: boolean;
|
|
93
111
|
isCalibrated: boolean;
|
|
94
112
|
createdBy: string | null;
|
|
95
|
-
overlayPosition:
|
|
96
|
-
northEast: {
|
|
97
|
-
lat: number;
|
|
98
|
-
lng: number;
|
|
99
|
-
};
|
|
100
|
-
northWest: {
|
|
101
|
-
lat: number;
|
|
102
|
-
lng: number;
|
|
103
|
-
};
|
|
104
|
-
southEast: {
|
|
105
|
-
lat: number;
|
|
106
|
-
lng: number;
|
|
107
|
-
};
|
|
108
|
-
southWest: {
|
|
109
|
-
lat: number;
|
|
110
|
-
lng: number;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
+
overlayPosition: _360OverlayPosition;
|
|
113
114
|
insertedAt: string;
|
|
114
115
|
updatedAt: string;
|
|
116
|
+
deletedAt: string | null;
|
|
115
117
|
};
|
|
116
118
|
export type _360Scene = {
|
|
117
119
|
date: string;
|
|
118
|
-
dateID: number;
|
|
120
|
+
dateID: string | number;
|
|
119
121
|
floors: {
|
|
120
122
|
floorID: _360FloorId;
|
|
121
123
|
name: string;
|
|
@@ -123,11 +125,33 @@ export type _360Scene = {
|
|
|
123
125
|
polarAngle: number;
|
|
124
126
|
azimuthAngle: number;
|
|
125
127
|
};
|
|
128
|
+
export declare enum _360PinType {
|
|
129
|
+
Default = "Default"
|
|
130
|
+
}
|
|
131
|
+
export type _360Pin = {
|
|
132
|
+
position: Point3D;
|
|
133
|
+
pinType: _360PinType;
|
|
134
|
+
pinId?: string;
|
|
135
|
+
cameraExid?: string;
|
|
136
|
+
name: string;
|
|
137
|
+
currentRoom?: _360MakerId;
|
|
138
|
+
cameraRotation?: _360CameraRotation;
|
|
139
|
+
};
|
|
126
140
|
export type _360SceneRoute = {
|
|
127
141
|
cameraHeadingOffset?: number;
|
|
128
142
|
overlayID?: number;
|
|
129
143
|
track?: string;
|
|
130
144
|
};
|
|
145
|
+
export type _360ProjectListItem = {
|
|
146
|
+
integrationType: string;
|
|
147
|
+
projectId: string;
|
|
148
|
+
projectName: string;
|
|
149
|
+
providerID: string;
|
|
150
|
+
providerPrefix: string;
|
|
151
|
+
providerSuffix: string;
|
|
152
|
+
timeline: string;
|
|
153
|
+
uniqueId: string;
|
|
154
|
+
};
|
|
131
155
|
export type _360FullProject = {
|
|
132
156
|
dates: _360SceneWithFloors[];
|
|
133
157
|
integrationType: string;
|
|
@@ -151,19 +175,31 @@ export type _360ProjectJsonResponse = {
|
|
|
151
175
|
[key: string]: any;
|
|
152
176
|
};
|
|
153
177
|
export type MobileCaptureSnapshot = {
|
|
154
|
-
id: string;
|
|
178
|
+
id: string | number;
|
|
179
|
+
projectId?: string;
|
|
155
180
|
uploadedBy: string;
|
|
156
181
|
updatedAt: string;
|
|
157
182
|
assetType: string;
|
|
158
183
|
thumbnailUrl: string;
|
|
159
184
|
};
|
|
160
185
|
export declare enum _360UrlParams {
|
|
161
|
-
DateId = "
|
|
186
|
+
DateId = "dateId",
|
|
162
187
|
Date = "date",
|
|
163
188
|
Floor = "floor",
|
|
164
189
|
Marker = "marker",
|
|
165
190
|
PolarAngle = "polarAngle",
|
|
166
|
-
AzimuthAngle = "azimuthAngle"
|
|
191
|
+
AzimuthAngle = "azimuthAngle",
|
|
192
|
+
Zoom = "zoom",
|
|
193
|
+
User = "user",
|
|
194
|
+
ViewerMode = "viewer_mode",
|
|
195
|
+
ProjectId = "projectId",
|
|
196
|
+
Unit = "unit",
|
|
197
|
+
LockDate = "lockDate",
|
|
198
|
+
LockFloor = "lockFloor",
|
|
199
|
+
LockMarker = "lockMarker",
|
|
200
|
+
IsWidget = "isWidget",
|
|
201
|
+
MediaLocked = "mediaLocked",
|
|
202
|
+
Debug = "debug"
|
|
167
203
|
}
|
|
168
204
|
export declare enum _360AssetType {
|
|
169
205
|
Video = "video",
|
|
@@ -197,7 +233,7 @@ export declare enum PathMarkerColor {
|
|
|
197
233
|
export type _360AssetsQueryParams = {
|
|
198
234
|
page: number;
|
|
199
235
|
limit: number;
|
|
200
|
-
|
|
236
|
+
projectId: string;
|
|
201
237
|
date: DateType;
|
|
202
238
|
floor: string;
|
|
203
239
|
id: string;
|
|
@@ -219,6 +255,8 @@ export type DrawingsRequestPayload = {
|
|
|
219
255
|
page?: number;
|
|
220
256
|
limit?: number;
|
|
221
257
|
paginate?: boolean;
|
|
258
|
+
withAsset?: boolean;
|
|
259
|
+
includeDeleted?: boolean;
|
|
222
260
|
};
|
|
223
261
|
export type GenerateFloorPayload = {
|
|
224
262
|
overlay?: {
|
|
@@ -229,24 +267,7 @@ export type GenerateFloorPayload = {
|
|
|
229
267
|
changedBy: string;
|
|
230
268
|
name?: string;
|
|
231
269
|
mapStyle?: string;
|
|
232
|
-
overlayPositionCorners:
|
|
233
|
-
northEast: {
|
|
234
|
-
lat: number;
|
|
235
|
-
lng: number;
|
|
236
|
-
};
|
|
237
|
-
northWest: {
|
|
238
|
-
lat: number;
|
|
239
|
-
lng: number;
|
|
240
|
-
};
|
|
241
|
-
southWest: {
|
|
242
|
-
lat: number;
|
|
243
|
-
lng: number;
|
|
244
|
-
};
|
|
245
|
-
southEast: {
|
|
246
|
-
lat: number;
|
|
247
|
-
lng: number;
|
|
248
|
-
};
|
|
249
|
-
};
|
|
270
|
+
overlayPositionCorners: _360OverlayPosition;
|
|
250
271
|
};
|
|
251
272
|
export type _360QueueQueryParams = {
|
|
252
273
|
projectId?: string;
|
|
@@ -271,4 +292,104 @@ export type Generate360MapRequestPayload = {
|
|
|
271
292
|
cameraOffset: string;
|
|
272
293
|
startPoint: string;
|
|
273
294
|
endPoint: string;
|
|
295
|
+
drawingId?: number;
|
|
296
|
+
markers?: Array<{
|
|
297
|
+
position: {
|
|
298
|
+
x: number;
|
|
299
|
+
y: number;
|
|
300
|
+
z: number;
|
|
301
|
+
};
|
|
302
|
+
}>;
|
|
303
|
+
startPointIndex?: number;
|
|
304
|
+
endPointIndex?: number;
|
|
305
|
+
};
|
|
306
|
+
export declare enum EModelsType {
|
|
307
|
+
FBX = "FBX",
|
|
308
|
+
PointCloud = "PLY"
|
|
309
|
+
}
|
|
310
|
+
export type _360FloorRef = {
|
|
311
|
+
projectID: string;
|
|
312
|
+
dateID: string;
|
|
313
|
+
floorID: string;
|
|
314
|
+
};
|
|
315
|
+
export type _360Vector3 = {
|
|
316
|
+
x: number;
|
|
317
|
+
y: number;
|
|
318
|
+
z: number;
|
|
319
|
+
};
|
|
320
|
+
export type _360MarkerData = {
|
|
321
|
+
cameraPosition: _360Vector3;
|
|
322
|
+
nextRoomId: string;
|
|
323
|
+
position: _360Vector3;
|
|
324
|
+
geolocation: {
|
|
325
|
+
latitude: number;
|
|
326
|
+
longitude: number;
|
|
327
|
+
};
|
|
328
|
+
rotation: {
|
|
329
|
+
_order: string;
|
|
330
|
+
_x: number;
|
|
331
|
+
_y: number;
|
|
332
|
+
_z: number;
|
|
333
|
+
isEuler: boolean;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
export type _360Route = {
|
|
337
|
+
overlayID?: number;
|
|
338
|
+
track?: string;
|
|
339
|
+
cameraHeadingOffset?: number;
|
|
340
|
+
};
|
|
341
|
+
export type _360CalibrationDetails = {
|
|
342
|
+
baseOriginOf360Viewer?: _360Vector3;
|
|
343
|
+
baseOriginOfForgeViewer?: _360Vector3;
|
|
344
|
+
rotationMatrix?: {
|
|
345
|
+
elements: number[];
|
|
346
|
+
};
|
|
347
|
+
scaleMatrix?: {
|
|
348
|
+
elements: number[];
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
export type _360FloorData = {
|
|
352
|
+
_3DMarkers: _360MarkerData[];
|
|
353
|
+
fbxModel: string | null;
|
|
354
|
+
fbxModelHQ: string | null;
|
|
355
|
+
pointCloudModelHQ: string | null;
|
|
356
|
+
initialMarker: string;
|
|
357
|
+
cameraRotation: _360CameraRotation;
|
|
358
|
+
steps: number;
|
|
359
|
+
route: _360Route | null;
|
|
360
|
+
sceneScale: number;
|
|
361
|
+
modelViewerFeatureFlag: boolean;
|
|
362
|
+
imagesOnlyFeatureFlag: boolean;
|
|
363
|
+
forgeBIMFeatureFlag: boolean;
|
|
364
|
+
isForgeGravityEnabled: boolean;
|
|
365
|
+
initialForgeView: Record<string, unknown> | null;
|
|
366
|
+
calibrationDetails: _360CalibrationDetails;
|
|
367
|
+
enhancedLightFeatureFlag: boolean;
|
|
368
|
+
};
|
|
369
|
+
export type _360PinData = {
|
|
370
|
+
position: _360Vector3;
|
|
371
|
+
pinType: string;
|
|
372
|
+
name: string;
|
|
373
|
+
pinId?: string;
|
|
374
|
+
cameraExid?: string;
|
|
375
|
+
currentRoom?: string;
|
|
376
|
+
cameraRotation?: {
|
|
377
|
+
polarAngle: number;
|
|
378
|
+
azimuthAngle: number;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
export type _360ForgeTimelineItem = {
|
|
382
|
+
taskNumber: number;
|
|
383
|
+
taskID: string;
|
|
384
|
+
actualStartDate: string;
|
|
385
|
+
actualEndDate: string;
|
|
386
|
+
plannedStartDate: string;
|
|
387
|
+
plannedEndDate: string;
|
|
388
|
+
objectIDs: number[];
|
|
389
|
+
};
|
|
390
|
+
export type _360ForgeProject = {
|
|
391
|
+
urns?: Array<{
|
|
392
|
+
urn: string;
|
|
393
|
+
}>;
|
|
394
|
+
timeline?: _360ForgeTimelineItem[];
|
|
274
395
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type AconexUserProject = {
|
|
2
2
|
id: number;
|
|
3
3
|
name: string;
|
|
4
4
|
shortName: string;
|
|
@@ -6,8 +6,8 @@ export type AconexUserProjectsResponsePayload = Array<{
|
|
|
6
6
|
endDate: string;
|
|
7
7
|
active: boolean;
|
|
8
8
|
hidden: boolean;
|
|
9
|
-
}
|
|
10
|
-
export type
|
|
9
|
+
};
|
|
10
|
+
export type AconexDocumentSchema = {
|
|
11
11
|
dataType: AconexDocumentDataType;
|
|
12
12
|
identifier: AconexIdentifiers;
|
|
13
13
|
fieldName: string;
|
|
@@ -17,18 +17,18 @@ export type AconexDocumentSchemaResponsePayload = Array<{
|
|
|
17
17
|
id: string;
|
|
18
18
|
value: string;
|
|
19
19
|
}>;
|
|
20
|
-
}
|
|
21
|
-
export type
|
|
20
|
+
};
|
|
21
|
+
export type AconexDocumentTypeSchema = {
|
|
22
22
|
dataType: AconexDocumentDataType;
|
|
23
|
-
identifier:
|
|
23
|
+
identifier: AconexIdentifiers;
|
|
24
24
|
fieldName: string;
|
|
25
25
|
modifiedFieldName?: string;
|
|
26
|
-
mandatoryStatus:
|
|
26
|
+
mandatoryStatus: AconexMandatoryStatus;
|
|
27
27
|
specifications?: Array<AconexFieldSpecification>;
|
|
28
|
-
}
|
|
28
|
+
};
|
|
29
29
|
export type AconexDocumentSchemaField = {
|
|
30
30
|
dataType: AconexDocumentDataType;
|
|
31
|
-
identifier: AconexIdentifiers
|
|
31
|
+
identifier: AconexIdentifiers;
|
|
32
32
|
schemaValues?: Array<{
|
|
33
33
|
id: string;
|
|
34
34
|
value: string;
|
|
@@ -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
|
+
}
|