@evercam/api 1.0.0-cd4690ce8 → 1.0.0-d0847b9fa
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 +217 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +104 -96
- package/dist/api/api/aiApi.d.ts +214 -0
- package/dist/api/api/authzApi.d.ts +40 -0
- package/dist/api/{client → api/client}/axios.d.ts +2 -1
- package/dist/api/{client → api/client}/swr/Swr.d.ts +1 -1
- package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +144 -101
- package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +7 -6
- 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 +162 -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/{weatherApi.d.ts → api/weatherApi.d.ts} +2 -2
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +375 -0
- package/dist/{types → api/types}/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/aiConfigs.d.ts +242 -0
- package/dist/{types → api/types}/analytics.d.ts +149 -59
- package/dist/{types → api/types}/anpr.d.ts +48 -2
- package/dist/{types → api/types}/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +132 -0
- package/dist/{types → api/types}/autodesk.d.ts +7 -7
- package/dist/{types → api/types}/automation.d.ts +56 -3
- package/dist/{types → api/types}/axios.d.ts +19 -14
- package/dist/{types → api/types}/bim.d.ts +38 -9
- package/dist/{types → api/types}/camera.d.ts +102 -106
- package/dist/{types → api/types}/comments.d.ts +10 -11
- package/dist/{types → api/types}/company.d.ts +42 -1
- package/dist/{types → api/types}/compare.d.ts +20 -5
- package/dist/{types → api/types}/connector.d.ts +5 -5
- package/dist/{types → api/types}/coolify.d.ts +18 -2
- package/dist/{types → api/types}/copilot.d.ts +11 -9
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/{types → api/types}/detections.d.ts +23 -18
- package/dist/api/types/drone.d.ts +107 -0
- package/dist/{types → api/types}/errors.d.ts +13 -1
- package/dist/{types → api/types}/gateReport.d.ts +49 -168
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/{types → api/types}/hdd.d.ts +26 -1
- package/dist/{types → api/types}/index.d.ts +15 -2
- package/dist/api/types/ingest.d.ts +234 -0
- package/dist/{types → api/types}/kit.d.ts +74 -56
- package/dist/api/types/map.d.ts +16 -0
- package/dist/{types → api/types}/media.d.ts +10 -3
- package/dist/api/types/notification.d.ts +96 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observationEvents.d.ts +61 -0
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/planner.d.ts +124 -0
- package/dist/api/types/posthog.d.ts +53 -0
- package/dist/{types → api/types}/procore.d.ts +13 -6
- package/dist/{types → api/types}/progressPhoto.d.ts +6 -2
- package/dist/api/types/project.d.ts +254 -0
- package/dist/{types → api/types}/recording.d.ts +10 -15
- package/dist/{types → api/types}/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/{types → api/types}/roi.d.ts +3 -11
- package/dist/{types → api/types}/routeParams.d.ts +1 -0
- package/dist/{types → api/types}/router.d.ts +20 -1
- package/dist/{types → api/types}/shared.d.ts +29 -22
- package/dist/api/types/shares.d.ts +45 -0
- package/dist/{types → api/types}/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +285 -0
- package/dist/api/types/siteAnalyticsManagement.d.ts +117 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/{types → api/types}/snapshots.d.ts +49 -4
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +27 -0
- package/dist/{types → api/types}/streaming.d.ts +3 -3
- package/dist/{types → api/types}/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +7 -11
- package/dist/{types → api/types}/user.d.ts +106 -35
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/{types → api/types}/weather.d.ts +75 -11
- package/dist/{types → api/types}/widget.d.ts +72 -11
- package/dist/{types → api/types}/xweather.d.ts +4 -4
- package/dist/{utils.d.ts → api/utils.d.ts} +0 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2334 -1087
- 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 +374 -0
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +41 -0
- package/dist/shared/types/index.d.ts +7 -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 +10 -0
- package/package.json +4 -2
- package/dist/api/3dFirebaseApi.d.ts +0 -21
- package/dist/api/aiApi.d.ts +0 -155
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/ingestApi.d.ts +0 -95
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/types/360.d.ts +0 -141
- package/dist/types/drone.d.ts +0 -17
- package/dist/types/ingest.d.ts +0 -51
- package/dist/types/map.d.ts +0 -4
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/planner.d.ts +0 -32
- package/dist/types/posthog.d.ts +0 -18
- package/dist/types/project.d.ts +0 -132
- package/dist/types/shares.d.ts +0 -196
- package/dist/types/siteAnalytics.d.ts +0 -163
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/time.d.ts +0 -25
- package/dist/types/vendorModel.d.ts +0 -15
- package/dist/types/videoWall.d.ts +0 -33
- /package/dist/api/{client → api/client}/customErrors.d.ts +0 -0
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{client → api/client}/interceptors.d.ts +0 -0
- /package/dist/api/{client → api/client}/swr/SwrStore.d.ts +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/countries.d.ts +0 -0
- /package/dist/{types → api/types}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/sso.d.ts +0 -0
- /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TimelineCountEvent, TimelineEvent } from "@evercam/ui";
|
|
2
|
+
import { CameraExid, ProjectExid, TimelineDateInterval, TimelineProviderRequestParams } from "@evercam/shared/types";
|
|
3
|
+
import { TimelineDataProvider } from "./timelineDataProvider";
|
|
4
|
+
export declare class TimelineAnprProvider extends TimelineDataProvider {
|
|
5
|
+
readonly projectExid: ProjectExid;
|
|
6
|
+
readonly cameraExid: CameraExid;
|
|
7
|
+
readonly token: string;
|
|
8
|
+
constructor(params: {
|
|
9
|
+
timezone: string;
|
|
10
|
+
projectExid: ProjectExid;
|
|
11
|
+
cameraExid: CameraExid;
|
|
12
|
+
token: string;
|
|
13
|
+
});
|
|
14
|
+
fetchEvents({ fromDate, toDate, }: TimelineDateInterval): Promise<Array<TimelineEvent>>;
|
|
15
|
+
fetchCounts({ fromDate, toDate, precision, }: TimelineProviderRequestParams): Promise<Array<TimelineCountEvent>>;
|
|
16
|
+
private getFormattedPlateNumber;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type TimelineCountEvent, type TimelineEvent, type TimelineRangeEvent } from "@evercam/ui";
|
|
2
|
+
import { type TimelineDateInterval, TimelinePrecision, type TimelineProviderRequestParams } from "@evercam/shared/types";
|
|
3
|
+
export declare abstract class TimelineDataProvider {
|
|
4
|
+
protected timezone: string;
|
|
5
|
+
constructor(timezone: string);
|
|
6
|
+
fetch(params: TimelineProviderRequestParams): Promise<Array<TimelineEvent>>;
|
|
7
|
+
protected abstract fetchEvents(params: TimelineProviderRequestParams): Promise<Array<TimelineEvent>>;
|
|
8
|
+
protected abstract fetchCounts(params: TimelineProviderRequestParams): Promise<Array<TimelineCountEvent | TimelineRangeEvent>>;
|
|
9
|
+
formatTimestamp(date: string, format?: string): string;
|
|
10
|
+
processResponseIntervals(intervals: TimelineDateInterval[], precision: TimelinePrecision): TimelineRangeEvent[];
|
|
11
|
+
private convertAndRoundIntervals;
|
|
12
|
+
private groupAdjacentIntervals;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type TimelineCountEvent, type TimelineEvent } from "@evercam/ui";
|
|
2
|
+
import { type CameraExid, type ProjectExid, type TimelineDateInterval, type TimelineProviderRequestParams } from "@evercam/shared/types";
|
|
3
|
+
import { TimelineDataProvider } from "./timelineDataProvider";
|
|
4
|
+
export declare class TimelineLuminanceProvider extends TimelineDataProvider {
|
|
5
|
+
readonly projectExid: ProjectExid;
|
|
6
|
+
readonly cameraExid: CameraExid;
|
|
7
|
+
readonly token: string;
|
|
8
|
+
constructor(params: {
|
|
9
|
+
timezone: string;
|
|
10
|
+
projectExid: ProjectExid;
|
|
11
|
+
cameraExid: CameraExid;
|
|
12
|
+
token: string;
|
|
13
|
+
});
|
|
14
|
+
fetchEvents({ fromDate, toDate, }: TimelineDateInterval): Promise<Array<TimelineEvent>>;
|
|
15
|
+
fetchCounts({ fromDate, toDate, }: TimelineProviderRequestParams): Promise<Array<TimelineCountEvent>>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,374 @@
|
|
|
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, type HammertechProject, type HammertechIssueType, type HammertechPriority, type HammertechClassification, type HammertechFileFieldValue, Tag, TuplePoint2D, CameraStatus } from "@evercam/shared/types";
|
|
2
|
+
import type { AdminCamera, Camera, IngestUploadInitResponse } from "@evercam/api/types";
|
|
3
|
+
import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
|
|
4
|
+
import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
|
|
5
|
+
import { SeriesOptionsType } from "highcharts";
|
|
6
|
+
export type ReorderableCamera = Camera & {
|
|
7
|
+
thumbnailSrc?: string;
|
|
8
|
+
batteryLevel?: {
|
|
9
|
+
voltage: number;
|
|
10
|
+
level: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
color: string;
|
|
13
|
+
} | null;
|
|
14
|
+
};
|
|
15
|
+
export type SelectItem = {
|
|
16
|
+
text: string;
|
|
17
|
+
value: string | number;
|
|
18
|
+
};
|
|
19
|
+
export type RoiProjectGroup = {
|
|
20
|
+
exid: string;
|
|
21
|
+
name: string;
|
|
22
|
+
cameras: AdminCamera[];
|
|
23
|
+
};
|
|
24
|
+
export declare enum IframeMessageType {
|
|
25
|
+
LiveView = "liveView",
|
|
26
|
+
EditSnapshot = "editSnapshot",
|
|
27
|
+
Weather = "weather",
|
|
28
|
+
CameraInfo = "cameraInfo",
|
|
29
|
+
AnalyticsEvent = "analyticsEvent",
|
|
30
|
+
Ready = "ready",
|
|
31
|
+
Info = "info",
|
|
32
|
+
GateReport = "gateReport",
|
|
33
|
+
CreateCompare = "createCompare",
|
|
34
|
+
UploadDrone = "uploadDrone",
|
|
35
|
+
UploadBIM = "uploadBIM",
|
|
36
|
+
History = "history",
|
|
37
|
+
PerformanceScore = "performanceScore",
|
|
38
|
+
ShareLink = "shareLink",
|
|
39
|
+
LoadForgeModel = "loadForgeModel",
|
|
40
|
+
LoadPlannerList = "loadPlannerList",
|
|
41
|
+
SaveProjectBounds = "saveProjectBounds",
|
|
42
|
+
ArchiveComment = "archiveComment",
|
|
43
|
+
UnarchiveComment = "unarchiveComment",
|
|
44
|
+
DeleteComment = "deleteComment",
|
|
45
|
+
CreateComment = "createComment",
|
|
46
|
+
RefreshComments = "refreshComments",
|
|
47
|
+
CommentSyncFailed = "commentSyncFailed",
|
|
48
|
+
Load360Gallery = "load360Gallery",
|
|
49
|
+
Upload360 = "upload360",
|
|
50
|
+
FetchForgeToken = "FetchForgeToken",
|
|
51
|
+
ForgeTokenResponse = "ForgeTokenResponse",
|
|
52
|
+
ShowBimUploadChoice = "showBimUploadChoice",
|
|
53
|
+
ViewerLaunchFlags = "viewerLaunchFlags",
|
|
54
|
+
CloseCameraMarkerPreview = "CloseCameraMarkerPreview"
|
|
55
|
+
}
|
|
56
|
+
export declare enum NavigationArrow {
|
|
57
|
+
Previous = "previous",
|
|
58
|
+
Next = "next"
|
|
59
|
+
}
|
|
60
|
+
export declare enum WatermarkedImageDownloadOrigin {
|
|
61
|
+
Drone = "drone",
|
|
62
|
+
Bim = "BIM",
|
|
63
|
+
Snapshot = "snapshot",
|
|
64
|
+
The360 = "360",
|
|
65
|
+
Planner = "Planner"
|
|
66
|
+
}
|
|
67
|
+
export declare enum PlayerMode {
|
|
68
|
+
Video = "video",
|
|
69
|
+
Jpegs = "jpegs"
|
|
70
|
+
}
|
|
71
|
+
export type TimelineProviderRequestParams = TimelineDateInterval & {
|
|
72
|
+
precision?: TimelinePrecision;
|
|
73
|
+
labels?: string[];
|
|
74
|
+
trackId?: number;
|
|
75
|
+
};
|
|
76
|
+
export type TimelinePlayerGroupConfig = {
|
|
77
|
+
provider?: TimelineDataProvider;
|
|
78
|
+
events?: Array<TimelineEvent>;
|
|
79
|
+
getChartType?: (precision: TimelinePrecision) => TimelineChartType;
|
|
80
|
+
} & Omit<TimelineEventsGroup, "events">;
|
|
81
|
+
export type TimelinePlayerConfig = {
|
|
82
|
+
[groupName: string]: TimelinePlayerGroupConfig;
|
|
83
|
+
};
|
|
84
|
+
export declare enum TimelineGroupId {
|
|
85
|
+
ThreeSixty = "w360",
|
|
86
|
+
Drone = "drone",
|
|
87
|
+
Bim = "bim",
|
|
88
|
+
Media = "media",
|
|
89
|
+
Comments = "comments",
|
|
90
|
+
Anpr = "anpr",
|
|
91
|
+
MobileCapture = "mobileCapture",
|
|
92
|
+
ExNvrRecordings = "exNvrRecordings",
|
|
93
|
+
Luminance = "luminance",
|
|
94
|
+
ObjectInspector = "objectInspector"
|
|
95
|
+
}
|
|
96
|
+
export type TimelineOverlayType = TimelineGroupId.ThreeSixty | TimelineGroupId.Drone | TimelineGroupId.Media | TimelineGroupId.MobileCapture | TimelineGroupId.Bim | TimelineGroupId.Comments | "compare";
|
|
97
|
+
export type TimelineOverlayData<T extends TimelineOverlayType> = T extends TimelineGroupId.ThreeSixty ? _360Scene : T extends TimelineGroupId.Drone ? DroneModel : T extends TimelineGroupId.Media ? Media : T extends TimelineGroupId.MobileCapture ? MobileCaptureSnapshot : T extends TimelineGroupId.Comments ? Comment : never;
|
|
98
|
+
export declare enum TimelineMarkerId {
|
|
99
|
+
Xray = "xray",
|
|
100
|
+
CurrentSnapshot = "current",
|
|
101
|
+
CompareBeforeSnapshot = "compareBefore",
|
|
102
|
+
CompareAfterSnapshot = "compareAfter",
|
|
103
|
+
ObjectInspectorFirstSeen = "firstSeen",
|
|
104
|
+
ObjectInspectorLastSeen = "lastSeen"
|
|
105
|
+
}
|
|
106
|
+
export type TimelineMediaHubItemsByType = {
|
|
107
|
+
clip?: Media[];
|
|
108
|
+
compare?: Media[];
|
|
109
|
+
edit?: Media[];
|
|
110
|
+
timelapse?: Media[];
|
|
111
|
+
xRay?: Media[];
|
|
112
|
+
};
|
|
113
|
+
export declare enum HighchartsStackingBehavior {
|
|
114
|
+
Overlap = "overlap",
|
|
115
|
+
Normal = "normal",
|
|
116
|
+
Percent = "percent",
|
|
117
|
+
Stream = "stream"
|
|
118
|
+
}
|
|
119
|
+
export declare enum LeaderLinePlugType {
|
|
120
|
+
Disc = "disc",
|
|
121
|
+
Square = "square",
|
|
122
|
+
Arrow1 = "arrow1",
|
|
123
|
+
Arrow2 = "arrow2",
|
|
124
|
+
Arrow3 = "arrow3",
|
|
125
|
+
Hand = "hand",
|
|
126
|
+
CrossHair = "crosshair",
|
|
127
|
+
Behind = "behind"
|
|
128
|
+
}
|
|
129
|
+
export declare enum LeaderLinesPathType {
|
|
130
|
+
Straight = "straight",
|
|
131
|
+
Arc = "arc",
|
|
132
|
+
Fluid = "fluid",
|
|
133
|
+
Magnet = "magnet",
|
|
134
|
+
Grid = "grid"
|
|
135
|
+
}
|
|
136
|
+
export declare enum LeaderLinesSocketPosition {
|
|
137
|
+
Top = "top",
|
|
138
|
+
Right = "right",
|
|
139
|
+
Bottom = "bottom",
|
|
140
|
+
Left = "left",
|
|
141
|
+
Auto = "auto"
|
|
142
|
+
}
|
|
143
|
+
export type LeaderLineOptions = {
|
|
144
|
+
startSocket?: LeaderLinesSocketPosition;
|
|
145
|
+
endSocket?: LeaderLinesSocketPosition;
|
|
146
|
+
color?: string | ((element: any) => string);
|
|
147
|
+
size?: number;
|
|
148
|
+
startPlug?: LeaderLinePlugType;
|
|
149
|
+
endPlug?: LeaderLinePlugType;
|
|
150
|
+
startPlugSize?: number;
|
|
151
|
+
endPlugSize?: number;
|
|
152
|
+
path?: LeaderLinesPathType;
|
|
153
|
+
startSocketGravity?: TuplePoint2D;
|
|
154
|
+
endSocketGravity?: TuplePoint2D;
|
|
155
|
+
dash?: {
|
|
156
|
+
animation: boolean | {
|
|
157
|
+
duration: number;
|
|
158
|
+
};
|
|
159
|
+
} | ((element: any) => {
|
|
160
|
+
animation: boolean | {
|
|
161
|
+
duration: number;
|
|
162
|
+
};
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
export type CssSelector = string;
|
|
166
|
+
export type LineConfig = {
|
|
167
|
+
start: CssSelector | CssSelector[];
|
|
168
|
+
end: CssSelector | CssSelector[];
|
|
169
|
+
options?: LeaderLineOptions;
|
|
170
|
+
};
|
|
171
|
+
export declare enum ZohoDeskTicketStatus {
|
|
172
|
+
Closed = "Closed",
|
|
173
|
+
OnHold = "On Hold",
|
|
174
|
+
Open = "Open"
|
|
175
|
+
}
|
|
176
|
+
export type TagSelectorItem = Tag & {
|
|
177
|
+
isExcluded?: boolean;
|
|
178
|
+
};
|
|
179
|
+
export declare enum FormSchemaComponents {
|
|
180
|
+
SelectField = "SelectField",
|
|
181
|
+
HierarchicalSelect = "HierarchicalSelectField",
|
|
182
|
+
MultiOption = "MultiOption",
|
|
183
|
+
TextField = "TextField",
|
|
184
|
+
SwitchField = "SwitchField",
|
|
185
|
+
CheckBox = "CheckBoxField",
|
|
186
|
+
Date = "DatePickerInput",
|
|
187
|
+
DateTime = "DateTimeField",
|
|
188
|
+
Time = "TimeField",
|
|
189
|
+
TextArea = "Textarea",
|
|
190
|
+
Search = "Autocomplete",
|
|
191
|
+
ReadOnly = "ReadOnly",
|
|
192
|
+
Ratio = "RatioField"
|
|
193
|
+
}
|
|
194
|
+
export declare enum FormSchemaDataType {
|
|
195
|
+
String = "string",
|
|
196
|
+
Number = "number",
|
|
197
|
+
Boolean = "boolean",
|
|
198
|
+
Date = "date"
|
|
199
|
+
}
|
|
200
|
+
export type FormSchemaOptions = {
|
|
201
|
+
title: string;
|
|
202
|
+
value: string;
|
|
203
|
+
parentId?: string | null;
|
|
204
|
+
};
|
|
205
|
+
export type FormSchemaField = {
|
|
206
|
+
id: string;
|
|
207
|
+
component: FormSchemaComponents;
|
|
208
|
+
required?: boolean;
|
|
209
|
+
name: string;
|
|
210
|
+
options?: FormSchemaOptions[];
|
|
211
|
+
disabled?: boolean;
|
|
212
|
+
dataType: FormSchemaDataType;
|
|
213
|
+
multiple?: boolean;
|
|
214
|
+
defaultValue?: any;
|
|
215
|
+
columns?: number;
|
|
216
|
+
};
|
|
217
|
+
export type FormSchema = Record<string, FormSchemaField>;
|
|
218
|
+
export type DrawingStats = {
|
|
219
|
+
overlay: boolean;
|
|
220
|
+
geolocated: boolean;
|
|
221
|
+
isCalibrated: boolean;
|
|
222
|
+
walks: number;
|
|
223
|
+
markers: number;
|
|
224
|
+
minimodel: number;
|
|
225
|
+
bim: number;
|
|
226
|
+
comments: number;
|
|
227
|
+
lastCapturedDate: string | null;
|
|
228
|
+
};
|
|
229
|
+
export interface ScrollListener {
|
|
230
|
+
element: Element | Window;
|
|
231
|
+
event: "scroll" | "resize";
|
|
232
|
+
handler: () => void;
|
|
233
|
+
}
|
|
234
|
+
export interface LeaderLineInstance {
|
|
235
|
+
remove(): void;
|
|
236
|
+
position(): void;
|
|
237
|
+
}
|
|
238
|
+
export type SnapshotCardItem = {
|
|
239
|
+
label?: string;
|
|
240
|
+
title?: string;
|
|
241
|
+
thumbnailUrl: string;
|
|
242
|
+
placeholderThumbnailUrl?: string;
|
|
243
|
+
fallbackThumbnailUrl?: string;
|
|
244
|
+
};
|
|
245
|
+
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
246
|
+
data: T[];
|
|
247
|
+
};
|
|
248
|
+
export type NotificationTitleSegment = {
|
|
249
|
+
text: string;
|
|
250
|
+
isBold?: boolean;
|
|
251
|
+
};
|
|
252
|
+
export type FormattedNotificationData = {
|
|
253
|
+
title: string;
|
|
254
|
+
titleSegments?: NotificationTitleSegment[];
|
|
255
|
+
link: string;
|
|
256
|
+
thumbnail?: string;
|
|
257
|
+
icon: string;
|
|
258
|
+
};
|
|
259
|
+
export type FormattedNotification = FormattedNotificationData & {
|
|
260
|
+
date: string;
|
|
261
|
+
read: boolean;
|
|
262
|
+
id: number;
|
|
263
|
+
thumbnailError?: boolean;
|
|
264
|
+
};
|
|
265
|
+
export type ProcoreProjectStepData = {
|
|
266
|
+
project: ProcoreUserProject | null;
|
|
267
|
+
album: ProcoreProjectAlbum | null;
|
|
268
|
+
observationType: ProcoreObservationType | null;
|
|
269
|
+
};
|
|
270
|
+
export type ProcoreUploadFormData = {
|
|
271
|
+
procoreType: ProcoreType;
|
|
272
|
+
project: ProcoreUserProject | null;
|
|
273
|
+
album: ProcoreProjectAlbum | null;
|
|
274
|
+
observationType: ProcoreObservationType | null;
|
|
275
|
+
observationForm: Record<string, string | number | boolean | null>;
|
|
276
|
+
};
|
|
277
|
+
export type AconexUploadFormData = {
|
|
278
|
+
project: AconexUserProject | null;
|
|
279
|
+
form: Record<string, string | number | boolean | null>;
|
|
280
|
+
};
|
|
281
|
+
export type AutodeskUploadFormData = {
|
|
282
|
+
hub: AutodeskUserHub | null;
|
|
283
|
+
project: AutodeskProject | null;
|
|
284
|
+
folder: AutodeskFolder | null;
|
|
285
|
+
};
|
|
286
|
+
export type HammertechUploadFormData = {
|
|
287
|
+
project: HammertechProject | null;
|
|
288
|
+
issueType: HammertechIssueType | null;
|
|
289
|
+
description: string;
|
|
290
|
+
priority: HammertechPriority | null;
|
|
291
|
+
dueDate: string | null;
|
|
292
|
+
classification: HammertechClassification | null;
|
|
293
|
+
locationId: string | null;
|
|
294
|
+
isPositiveObservation: boolean;
|
|
295
|
+
isPhotoForFixRequired: boolean;
|
|
296
|
+
customFieldFormId: string | null;
|
|
297
|
+
customFieldValues: Record<string, unknown>;
|
|
298
|
+
fileCustomFieldValues: Record<string, HammertechFileFieldValue>;
|
|
299
|
+
};
|
|
300
|
+
export interface MediaHubFilters {
|
|
301
|
+
title: string;
|
|
302
|
+
requesterEmail: string | undefined;
|
|
303
|
+
camera: string | undefined;
|
|
304
|
+
type: string;
|
|
305
|
+
fromDate: string;
|
|
306
|
+
toDate: string;
|
|
307
|
+
sortBy: string;
|
|
308
|
+
}
|
|
309
|
+
export interface MediaHubSortParameter {
|
|
310
|
+
label: string;
|
|
311
|
+
value: string;
|
|
312
|
+
}
|
|
313
|
+
export type TableHeaderParams<TItem = unknown> = {
|
|
314
|
+
value: string;
|
|
315
|
+
text: string;
|
|
316
|
+
cellClass?: string;
|
|
317
|
+
align?: string;
|
|
318
|
+
sortable?: boolean;
|
|
319
|
+
visible?: boolean;
|
|
320
|
+
width?: number | string;
|
|
321
|
+
copyable?: boolean;
|
|
322
|
+
toStringFn?: (item: TItem, key: string) => any;
|
|
323
|
+
sort?: (a: unknown, b: unknown) => number;
|
|
324
|
+
};
|
|
325
|
+
export type BimUploadObject = IngestUploadInitResponse & {
|
|
326
|
+
projectName: string;
|
|
327
|
+
};
|
|
328
|
+
export type BimUploadFileResult = {
|
|
329
|
+
url: string;
|
|
330
|
+
title: string;
|
|
331
|
+
fileExtension: string;
|
|
332
|
+
};
|
|
333
|
+
export type CameraCardItem = {
|
|
334
|
+
thumbnail: string;
|
|
335
|
+
title: string;
|
|
336
|
+
exid: string;
|
|
337
|
+
status: CameraStatus;
|
|
338
|
+
disabled: boolean;
|
|
339
|
+
to: string;
|
|
340
|
+
isOffline: boolean;
|
|
341
|
+
isWaiting: boolean;
|
|
342
|
+
isUnderNda: boolean;
|
|
343
|
+
isAdmin: boolean;
|
|
344
|
+
batteryVoltage: number | null;
|
|
345
|
+
};
|
|
346
|
+
export interface ThreeSixtyWalk {
|
|
347
|
+
id: string;
|
|
348
|
+
name: string;
|
|
349
|
+
date: string;
|
|
350
|
+
color: string;
|
|
351
|
+
dateId: string;
|
|
352
|
+
floorId: string;
|
|
353
|
+
}
|
|
354
|
+
export interface ThreeSixtyWalkGroup {
|
|
355
|
+
date: string;
|
|
356
|
+
walks: ThreeSixtyWalk[];
|
|
357
|
+
}
|
|
358
|
+
export type DatePresetContext = {
|
|
359
|
+
minDate?: string;
|
|
360
|
+
maxDate: string;
|
|
361
|
+
effectiveMinDate?: string;
|
|
362
|
+
effectiveMaxDate: string;
|
|
363
|
+
};
|
|
364
|
+
export type DatePreset = {
|
|
365
|
+
name: string;
|
|
366
|
+
resolveRange?: (ctx: DatePresetContext) => [string, string];
|
|
367
|
+
isHide?: (ctx: DatePresetContext) => boolean;
|
|
368
|
+
};
|
|
369
|
+
export type DrawingSelection = {
|
|
370
|
+
pageNumber: number;
|
|
371
|
+
size: number;
|
|
372
|
+
thumbnail: string | null;
|
|
373
|
+
pageCount: number;
|
|
374
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum CustomDataTableFilterType {
|
|
2
|
+
Select = "SelectSearchFilter",
|
|
3
|
+
Text = "TextFieldSearchFilter"
|
|
4
|
+
}
|
|
5
|
+
export interface CustomDataTableFilterField<T = unknown> {
|
|
6
|
+
component: CustomDataTableFilterType;
|
|
7
|
+
attributes?: Record<string, unknown>;
|
|
8
|
+
customFilter?: (item: T, fieldName: string, search: unknown) => boolean;
|
|
9
|
+
}
|
|
10
|
+
export type CustomDataTableFilterFields<T = unknown> = Record<string, CustomDataTableFilterField<T>>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Timestamp } from "@evercam/shared/types";
|
|
2
|
+
export interface Frame {
|
|
3
|
+
label: string;
|
|
4
|
+
src: string;
|
|
5
|
+
srcSet?: SrcSet;
|
|
6
|
+
timestamp: Timestamp;
|
|
7
|
+
}
|
|
8
|
+
export interface InfoText {
|
|
9
|
+
index: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}
|
|
12
|
+
export type EventMarker<T extends {}> = T & {
|
|
13
|
+
label: string;
|
|
14
|
+
thumbnailUrl: string;
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
markerType?: RecordingsMarker;
|
|
17
|
+
};
|
|
18
|
+
export type SnapshotEvent<T extends {}> = T & {
|
|
19
|
+
eventTime: Timestamp;
|
|
20
|
+
};
|
|
21
|
+
export type MatchedSnapshotEvent<T extends {}> = SnapshotEvent<T> & {
|
|
22
|
+
frameIndex: number;
|
|
23
|
+
snapshotTimestamp: Timestamp;
|
|
24
|
+
};
|
|
25
|
+
export declare enum RecordingsMarker {
|
|
26
|
+
Comment = "comment",
|
|
27
|
+
GateReport = "gate-report",
|
|
28
|
+
Anpr = "anpr",
|
|
29
|
+
Detection = "detection",
|
|
30
|
+
SmartSearch = "smart-search"
|
|
31
|
+
}
|
|
32
|
+
export declare enum ImageQuality {
|
|
33
|
+
ThreeSixty = "360",
|
|
34
|
+
FourEighty = "480",
|
|
35
|
+
SevenTwenty = "720",
|
|
36
|
+
OneZeroEightZero = "1080",
|
|
37
|
+
Auto = "auto"
|
|
38
|
+
}
|
|
39
|
+
export type SrcSet = {
|
|
40
|
+
[q in ImageQuality]: string;
|
|
41
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type ObservationsTableHeader = {
|
|
2
|
+
isThumbnail?: boolean;
|
|
3
|
+
visible: boolean;
|
|
4
|
+
divider: boolean;
|
|
5
|
+
sortable: boolean;
|
|
6
|
+
text: string;
|
|
7
|
+
value: string;
|
|
8
|
+
class: string;
|
|
9
|
+
align: string;
|
|
10
|
+
};
|
|
11
|
+
export type ObservationsCountDay = {
|
|
12
|
+
day: string;
|
|
13
|
+
};
|
|
14
|
+
export type ObservationsTableOptionsUpdate = {
|
|
15
|
+
page: number;
|
|
16
|
+
sortBy: string[];
|
|
17
|
+
sortDesc: boolean[];
|
|
18
|
+
};
|
|
19
|
+
export type ObservationsEventsTableState = {
|
|
20
|
+
height: number | string;
|
|
21
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TimelineGroupId, type TimelinePlayerGroupConfig } from "./components";
|
|
2
|
+
export interface TimelineGroup {
|
|
3
|
+
id: TimelineGroupId;
|
|
4
|
+
timelineConfig: TimelinePlayerGroupConfig | Record<string, TimelinePlayerGroupConfig>;
|
|
5
|
+
isVisible: boolean;
|
|
6
|
+
isDisabled: boolean;
|
|
7
|
+
isRestricted?: boolean;
|
|
8
|
+
hasMultipleGroups?: boolean;
|
|
9
|
+
isPersistent?: boolean;
|
|
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-d0847b9fa",
|
|
4
4
|
"description": "Evercam API client",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"readme": "README.md",
|
|
30
30
|
"scripts": {
|
|
31
|
+
"preinstall": "node ../shared/ci-scripts/check-bootstrap.js",
|
|
32
|
+
"bootstrap": "node ../shared/ci-scripts/bootstrap.js",
|
|
31
33
|
"clean": "rimraf dist",
|
|
32
34
|
"typecheck": "tsc --noEmit",
|
|
33
35
|
"build:types": "tsc --declaration --emitDeclarationOnly",
|
|
@@ -36,7 +38,7 @@
|
|
|
36
38
|
"publish-api": "cd ../.. && yarn publish-api"
|
|
37
39
|
},
|
|
38
40
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^25.
|
|
41
|
+
"@types/node": "^25.9.1",
|
|
40
42
|
"vite": "latest",
|
|
41
43
|
"vite-plugin-commonjs": "^0.10.3",
|
|
42
44
|
"vite-plugin-dts": "^4.5.4"
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
|
|
2
|
-
export declare const getFirebaseDbApi: () => string | null | undefined;
|
|
3
|
-
export declare const getFirebaseStorageUrl: () => string | null | undefined;
|
|
4
|
-
export declare const getFirebaseStorageToken: () => string | null | undefined;
|
|
5
|
-
export declare const _3dFirebaseApi: {
|
|
6
|
-
drone: {
|
|
7
|
-
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
8
|
-
getProjectTags(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
9
|
-
};
|
|
10
|
-
_360: {
|
|
11
|
-
getProjectInfo(projectExid: ProjectExid): Promise<_360ProjectJsonResponse>;
|
|
12
|
-
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<_360ProjectJsonResponse>;
|
|
13
|
-
updateRoute(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<any>;
|
|
14
|
-
updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<any>;
|
|
15
|
-
saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<any>;
|
|
16
|
-
updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: any): Promise<any>;
|
|
17
|
-
};
|
|
18
|
-
forge: {
|
|
19
|
-
getProjectInfo(projectExid: ProjectExid): Promise<any>;
|
|
20
|
-
};
|
|
21
|
-
};
|