@evercam/api 1.0.0-e405b2c39 → 1.0.0-e424632fd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/api/adminApi.d.ts +67 -37
- package/dist/api/api/aiApi.d.ts +57 -53
- package/dist/api/api/authzApi.d.ts +23 -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 +110 -71
- package/dist/api/api/evercamLabsApi.d.ts +4 -5
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +99 -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 +4 -2
- package/dist/api/types/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +84 -48
- package/dist/api/types/anpr.d.ts +19 -2
- package/dist/api/types/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +44 -6
- 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 +10 -6
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +87 -73
- package/dist/api/types/comments.d.ts +4 -8
- 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 +3 -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 +20 -8
- package/dist/api/types/drone.d.ts +1 -0
- package/dist/api/types/gateReport.d.ts +45 -57
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +6 -1
- package/dist/api/types/ingest.d.ts +98 -2
- package/dist/api/types/kit.d.ts +14 -7
- package/dist/api/types/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +32 -2
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +44 -0
- package/dist/api/types/posthog.d.ts +15 -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 +95 -21
- package/dist/api/types/recording.d.ts +3 -3
- package/dist/api/types/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/router.d.ts +1 -1
- package/dist/api/types/shared.d.ts +16 -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 +79 -39
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +36 -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 +12 -5
- package/dist/api/types/user.d.ts +101 -31
- 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/index.js +858 -668
- 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 +115 -13
- package/dist/shared/types/imagePlayer.d.ts +1 -1
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +2 -2
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -1,6 +1,40 @@
|
|
|
1
|
-
import { type _360Scene, type Media, type DroneModel, type MobileCaptureSnapshot, type TimelineDateInterval, type TimelinePrecision, type Comment, TaskStatus, Tag } from "@evercam/
|
|
1
|
+
import { type _360Scene, type Media, type DroneModel, type MobileCaptureSnapshot, type TimelineDateInterval, type TimelinePrecision, type Comment, type ProcoreUserProject, type ProcoreProjectAlbum, type ProcoreObservationType, type AconexUserProject, type AutodeskUserHub, type AutodeskProject, type AutodeskFolder, type ProcoreType, TaskStatus, Tag } from "@evercam/shared/types";
|
|
2
2
|
import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
|
|
3
3
|
import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
|
|
4
|
+
import { SeriesOptionsType } from "highcharts";
|
|
5
|
+
export type SelectItem = {
|
|
6
|
+
text: string;
|
|
7
|
+
value: string | number;
|
|
8
|
+
};
|
|
9
|
+
export declare enum IframeMessageType {
|
|
10
|
+
LiveView = "liveView",
|
|
11
|
+
EditSnapshot = "editSnapshot",
|
|
12
|
+
Weather = "weather",
|
|
13
|
+
CameraInfo = "cameraInfo",
|
|
14
|
+
AnalyticsEvent = "analyticsEvent",
|
|
15
|
+
Ready = "ready",
|
|
16
|
+
Info = "info",
|
|
17
|
+
GateReport = "gateReport",
|
|
18
|
+
CreateCompare = "createCompare",
|
|
19
|
+
UploadDrone = "uploadDrone",
|
|
20
|
+
UploadBIM = "uploadBIM",
|
|
21
|
+
History = "history",
|
|
22
|
+
PerformanceScore = "performanceScore",
|
|
23
|
+
ShareLink = "shareLink",
|
|
24
|
+
LoadForgeModel = "loadForgeModel",
|
|
25
|
+
LoadPlannerList = "loadPlannerList",
|
|
26
|
+
SaveProjectBounds = "saveProjectBounds",
|
|
27
|
+
ArchiveComment = "archiveComment",
|
|
28
|
+
UnarchiveComment = "unarchiveComment",
|
|
29
|
+
DeleteComment = "deleteComment",
|
|
30
|
+
CreateComment = "createComment",
|
|
31
|
+
RefreshComments = "refreshComments",
|
|
32
|
+
CommentSyncFailed = "commentSyncFailed",
|
|
33
|
+
Load360Gallery = "load360Gallery",
|
|
34
|
+
Upload360 = "upload360",
|
|
35
|
+
FetchForgeToken = "FetchForgeToken",
|
|
36
|
+
ForgeTokenResponse = "ForgeTokenResponse"
|
|
37
|
+
}
|
|
4
38
|
export declare enum NavigationArrow {
|
|
5
39
|
Previous = "previous",
|
|
6
40
|
Next = "next"
|
|
@@ -48,13 +82,6 @@ export type TimelinePlayerGroupConfig = {
|
|
|
48
82
|
export type TimelinePlayerConfig = {
|
|
49
83
|
[groupName: string]: TimelinePlayerGroupConfig;
|
|
50
84
|
};
|
|
51
|
-
export type TimelinePlayerTooltipItem = {
|
|
52
|
-
label?: string;
|
|
53
|
-
title?: string;
|
|
54
|
-
thumbnailUrl: string;
|
|
55
|
-
placeholderThumbnailUrl?: string;
|
|
56
|
-
fallbackThumbnailUrl?: string;
|
|
57
|
-
};
|
|
58
85
|
export declare enum TimelineGroupId {
|
|
59
86
|
ThreeSixty = "w360",
|
|
60
87
|
Drone = "drone",
|
|
@@ -142,10 +169,6 @@ export type LineConfig = {
|
|
|
142
169
|
end: CssSelector | CssSelector[];
|
|
143
170
|
options?: LeaderLineOptions;
|
|
144
171
|
};
|
|
145
|
-
export type Point = {
|
|
146
|
-
x: number;
|
|
147
|
-
y: number;
|
|
148
|
-
};
|
|
149
172
|
export declare enum ZohoDeskTicketStatus {
|
|
150
173
|
Closed = "Closed",
|
|
151
174
|
OnHold = "On Hold",
|
|
@@ -158,7 +181,8 @@ export declare enum FormSchemaComponents {
|
|
|
158
181
|
SelectField = "SelectField",
|
|
159
182
|
MultiOption = "MultiOption",
|
|
160
183
|
TextField = "TextField",
|
|
161
|
-
|
|
184
|
+
SwitchField = "SwitchField",
|
|
185
|
+
CheckBox = "CheckBoxField",
|
|
162
186
|
Date = "DatePickerInput",
|
|
163
187
|
DateTime = "DateTimeField",
|
|
164
188
|
TextArea = "Textarea",
|
|
@@ -197,3 +221,81 @@ export interface LeaderLineInstance {
|
|
|
197
221
|
remove(): void;
|
|
198
222
|
position(): void;
|
|
199
223
|
}
|
|
224
|
+
export type SnapshotCardItem = {
|
|
225
|
+
label?: string;
|
|
226
|
+
title?: string;
|
|
227
|
+
thumbnailUrl: string;
|
|
228
|
+
placeholderThumbnailUrl?: string;
|
|
229
|
+
fallbackThumbnailUrl?: string;
|
|
230
|
+
};
|
|
231
|
+
export type DocumentExtended = Document & {
|
|
232
|
+
webkitIsFullScreen?: boolean;
|
|
233
|
+
mozFullScreen?: boolean;
|
|
234
|
+
msFullscreenElement?: Element | null;
|
|
235
|
+
fullscreenElement?: Element;
|
|
236
|
+
webkitFullscreenElement?: Element;
|
|
237
|
+
mozFullScreenElement?: Element;
|
|
238
|
+
};
|
|
239
|
+
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
240
|
+
data: T[];
|
|
241
|
+
};
|
|
242
|
+
export type FormattedNotificationData = {
|
|
243
|
+
title: string;
|
|
244
|
+
link: string;
|
|
245
|
+
thumbnail?: string;
|
|
246
|
+
icon?: string;
|
|
247
|
+
drone?: boolean;
|
|
248
|
+
is360?: boolean;
|
|
249
|
+
};
|
|
250
|
+
export type FormattedNotification = FormattedNotificationData & {
|
|
251
|
+
date: string;
|
|
252
|
+
read: boolean;
|
|
253
|
+
id: number;
|
|
254
|
+
thumbnailError?: boolean;
|
|
255
|
+
};
|
|
256
|
+
export type ProcoreProjectStepData = {
|
|
257
|
+
project: ProcoreUserProject | null;
|
|
258
|
+
album: ProcoreProjectAlbum | null;
|
|
259
|
+
observationType: ProcoreObservationType | null;
|
|
260
|
+
};
|
|
261
|
+
export type ProcoreUploadFormData = {
|
|
262
|
+
procoreType: ProcoreType;
|
|
263
|
+
project: ProcoreUserProject | null;
|
|
264
|
+
album: ProcoreProjectAlbum | null;
|
|
265
|
+
observationType: ProcoreObservationType | null;
|
|
266
|
+
observationForm: Record<string, string | number | boolean | null>;
|
|
267
|
+
};
|
|
268
|
+
export type AconexUploadFormData = {
|
|
269
|
+
project: AconexUserProject | null;
|
|
270
|
+
form: Record<string, string | number | boolean | null>;
|
|
271
|
+
};
|
|
272
|
+
export type AutodeskUploadFormData = {
|
|
273
|
+
hub: AutodeskUserHub | null;
|
|
274
|
+
project: AutodeskProject | null;
|
|
275
|
+
folder: AutodeskFolder | null;
|
|
276
|
+
};
|
|
277
|
+
export interface MediaHubFilters {
|
|
278
|
+
title: string;
|
|
279
|
+
requesterEmail: string | undefined;
|
|
280
|
+
camera: string | undefined;
|
|
281
|
+
type: string;
|
|
282
|
+
fromDate: string;
|
|
283
|
+
toDate: string;
|
|
284
|
+
sortBy: string;
|
|
285
|
+
}
|
|
286
|
+
export interface MediaHubSortParameter {
|
|
287
|
+
label: string;
|
|
288
|
+
value: string;
|
|
289
|
+
}
|
|
290
|
+
export type TableHeaderParams<TItem = unknown> = {
|
|
291
|
+
value: string;
|
|
292
|
+
text: string;
|
|
293
|
+
cellClass?: string;
|
|
294
|
+
align?: string;
|
|
295
|
+
sortable?: boolean;
|
|
296
|
+
visible?: boolean;
|
|
297
|
+
width?: number | string;
|
|
298
|
+
copyable?: boolean;
|
|
299
|
+
toStringFn?: (item: TItem, key: string) => any;
|
|
300
|
+
sort?: (a: unknown, b: unknown) => number;
|
|
301
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { ProjectMember, ProjectInvite, ProjectResourceRole } from "@evercam/api/types";
|
|
2
|
+
export type HasRoleChangedFn<T = ProjectMember | ProjectInvite> = (entity: T, baseRole: ProjectResourceRole) => boolean;
|
|
3
|
+
export type ProjectRoleData = {
|
|
4
|
+
id?: number;
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string | null;
|
|
7
|
+
permissions: string[];
|
|
8
|
+
subRoles?: Array<{
|
|
9
|
+
resourceId: string;
|
|
10
|
+
roleId: number | null;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
export type ProjectResourcePermission = {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
requires?: string;
|
|
18
|
+
};
|
|
19
|
+
export type ProjectResource = {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
permissions: ProjectResourcePermission[];
|
|
23
|
+
};
|
|
24
|
+
export type ProjectPermissionWarning = {
|
|
25
|
+
resourceId: string;
|
|
26
|
+
message: string;
|
|
27
|
+
type?: string;
|
|
28
|
+
cameraExids?: string[];
|
|
29
|
+
accessLevel?: string;
|
|
30
|
+
grantAllPermissions?: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type ProjectDisabledPermission = {
|
|
33
|
+
id: string;
|
|
34
|
+
reason: string;
|
|
35
|
+
};
|
|
36
|
+
export type CameraAccessFilters = {
|
|
37
|
+
memberName: string;
|
|
38
|
+
memberEmail: string;
|
|
39
|
+
cameraName: string;
|
|
40
|
+
};
|
|
41
|
+
export type CameraAccessLevelConfig = {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
description: string;
|
|
45
|
+
permissions: string[];
|
|
46
|
+
};
|
|
47
|
+
export declare enum CameraStatusGroup {
|
|
48
|
+
Active = "active",
|
|
49
|
+
Pending = "pending",
|
|
50
|
+
Archived = "archived"
|
|
51
|
+
}
|
|
52
|
+
export type CameraStatusGroupConfig = {
|
|
53
|
+
text: string;
|
|
54
|
+
icon: string;
|
|
55
|
+
color: string;
|
|
56
|
+
};
|
|
57
|
+
export type CameraFeatureIconConfig = {
|
|
58
|
+
icon: string;
|
|
59
|
+
tooltip: string;
|
|
60
|
+
};
|
|
61
|
+
export type RecipientRule = {
|
|
62
|
+
blocked: string[];
|
|
63
|
+
};
|
|
64
|
+
export type RecipientRules = {
|
|
65
|
+
notExistingRecipients?: RecipientRule;
|
|
66
|
+
notPendingInviteRecipients?: RecipientRule;
|
|
67
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TimelineGroupId, type TimelinePlayerGroupConfig } from "
|
|
1
|
+
import { TimelineGroupId, type TimelinePlayerGroupConfig } from "./components";
|
|
2
2
|
export interface TimelineGroup {
|
|
3
3
|
id: TimelineGroupId;
|
|
4
4
|
timelineConfig: TimelinePlayerGroupConfig | Record<string, TimelinePlayerGroupConfig>;
|
|
@@ -6,4 +6,5 @@ export interface TimelineGroup {
|
|
|
6
6
|
isDisabled: boolean;
|
|
7
7
|
isRestricted?: boolean;
|
|
8
8
|
hasMultipleGroups?: boolean;
|
|
9
|
+
isPersistent?: boolean;
|
|
9
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evercam/api",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-e424632fd",
|
|
4
4
|
"description": "Evercam API client",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"publish-api": "cd ../.. && yarn publish-api"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^25.
|
|
39
|
+
"@types/node": "^25.6.0",
|
|
40
40
|
"vite": "latest",
|
|
41
41
|
"vite-plugin-commonjs": "^0.10.3",
|
|
42
42
|
"vite-plugin-dts": "^4.5.4"
|