@evercam/api 1.0.0-e03a0c41b → 1.0.0-e13c64fc3
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 +5 -0
- package/dist/api/api/3dFirebaseApi.d.ts +27 -0
- package/dist/api/api/adminApi.d.ts +366 -0
- package/dist/api/api/aiApi.d.ts +127 -0
- package/dist/api/api/authzApi.d.ts +38 -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 +3 -2
- 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 +329 -0
- package/dist/api/api/evercamLabsApi.d.ts +46 -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 +147 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +13 -4
- 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 +276 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/{types → api/types}/analytics.d.ts +214 -103
- package/dist/{types → api/types}/anpr.d.ts +35 -19
- package/dist/{types → api/types}/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +60 -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 +22 -2
- package/dist/{types → api/types}/bim.d.ts +11 -5
- package/dist/{types → api/types}/camera.d.ts +110 -125
- package/dist/api/types/comments.d.ts +55 -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 +19 -13
- 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 +121 -0
- package/dist/{types → api/types}/errors.d.ts +13 -0
- package/dist/{types → api/types}/gateReport.d.ts +46 -150
- package/dist/api/types/hdd.d.ts +88 -0
- package/dist/{types → api/types}/index.d.ts +15 -2
- package/dist/api/types/ingest.d.ts +134 -0
- package/dist/{types → api/types}/kit.d.ts +94 -6
- package/dist/{types → api/types}/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +57 -0
- package/dist/{types → api/types}/nvr.d.ts +2 -1
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/{types/sitePlanner.d.ts → api/types/planner.d.ts} +11 -2
- 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 +242 -0
- package/dist/{types → api/types}/recording.d.ts +3 -4
- 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 +2 -1
- 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 +14 -21
- 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/smartSeach.d.ts +5 -0
- package/dist/{types → api/types}/snapshots.d.ts +10 -1
- package/dist/api/types/sso.d.ts +55 -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 +18 -4
- package/dist/{types → api/types}/user.d.ts +105 -35
- 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 +103 -20
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1741 -960
- 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 +270 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +8 -7
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/adminApi.d.ts +0 -289
- package/dist/api/aiApi.d.ts +0 -76
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -266
- package/dist/api/evercamLabsApi.d.ts +0 -50
- 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 -70
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/ingest.d.ts +0 -43
- 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 -5
- 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}/drone.d.ts +0 -0
- /package/dist/{types → api/types}/map.d.ts +0 -0
- /package/dist/{types → api/types}/storageServers.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.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,270 @@
|
|
|
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
|
+
import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
|
|
3
|
+
import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
|
|
4
|
+
import { SeriesOptionsType } from "highcharts";
|
|
5
|
+
export declare enum NavigationArrow {
|
|
6
|
+
Previous = "previous",
|
|
7
|
+
Next = "next"
|
|
8
|
+
}
|
|
9
|
+
export declare enum WatermarkedImageDownloadOrigin {
|
|
10
|
+
Drone = "drone",
|
|
11
|
+
Bim = "BIM",
|
|
12
|
+
Snapshot = "snapshot",
|
|
13
|
+
The360 = "360",
|
|
14
|
+
The360Gallery = "360 Gallery",
|
|
15
|
+
Planner = "Planner"
|
|
16
|
+
}
|
|
17
|
+
export declare enum PlayerMode {
|
|
18
|
+
Video = "video",
|
|
19
|
+
Jpegs = "jpegs"
|
|
20
|
+
}
|
|
21
|
+
export type TasksStatusMap = {
|
|
22
|
+
[key: string]: TaskStatus;
|
|
23
|
+
};
|
|
24
|
+
export type TaskProgressItem = {
|
|
25
|
+
status: TaskStatus;
|
|
26
|
+
description: string;
|
|
27
|
+
percentDone?: number;
|
|
28
|
+
duration?: number;
|
|
29
|
+
};
|
|
30
|
+
export type GlobalSearchMatch = {
|
|
31
|
+
path: Array<string>;
|
|
32
|
+
value: string | number | boolean;
|
|
33
|
+
};
|
|
34
|
+
export type GlobalSearchResult = {
|
|
35
|
+
index: number;
|
|
36
|
+
matches: Array<GlobalSearchMatch>;
|
|
37
|
+
};
|
|
38
|
+
export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
|
|
39
|
+
export type TimelineProviderRequestParams = TimelineDateInterval & {
|
|
40
|
+
precision?: TimelinePrecision;
|
|
41
|
+
labels?: string[];
|
|
42
|
+
trackId?: number;
|
|
43
|
+
};
|
|
44
|
+
export type TimelinePlayerGroupConfig = {
|
|
45
|
+
provider?: TimelineDataProvider;
|
|
46
|
+
events?: Array<TimelineEvent>;
|
|
47
|
+
getChartType?: (precision: TimelinePrecision) => TimelineChartType;
|
|
48
|
+
} & Omit<TimelineEventsGroup, "events">;
|
|
49
|
+
export type TimelinePlayerConfig = {
|
|
50
|
+
[groupName: string]: TimelinePlayerGroupConfig;
|
|
51
|
+
};
|
|
52
|
+
export declare enum TimelineGroupId {
|
|
53
|
+
ThreeSixty = "w360",
|
|
54
|
+
Drone = "drone",
|
|
55
|
+
Bim = "bim",
|
|
56
|
+
Media = "media",
|
|
57
|
+
Comments = "comments",
|
|
58
|
+
Anpr = "anpr",
|
|
59
|
+
MobileCapture = "mobileCapture",
|
|
60
|
+
ExNvrRecordings = "exNvrRecordings",
|
|
61
|
+
Luminance = "luminance",
|
|
62
|
+
ObjectInspector = "objectInspector"
|
|
63
|
+
}
|
|
64
|
+
export type TimelineOverlayType = TimelineGroupId.ThreeSixty | TimelineGroupId.Drone | TimelineGroupId.Media | TimelineGroupId.MobileCapture | TimelineGroupId.Bim | TimelineGroupId.Comments | "compare";
|
|
65
|
+
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;
|
|
66
|
+
export declare enum TimelineMarkerId {
|
|
67
|
+
Xray = "xray",
|
|
68
|
+
CurrentSnapshot = "current",
|
|
69
|
+
CompareBeforeSnapshot = "compareBefore",
|
|
70
|
+
CompareAfterSnapshot = "compareAfter",
|
|
71
|
+
ObjectInspectorFirstSeen = "firstSeen",
|
|
72
|
+
ObjectInspectorLastSeen = "lastSeen"
|
|
73
|
+
}
|
|
74
|
+
export type TimelineMediaHubItemsByType = {
|
|
75
|
+
clip?: Media[];
|
|
76
|
+
compare?: Media[];
|
|
77
|
+
edit?: Media[];
|
|
78
|
+
timelapse?: Media[];
|
|
79
|
+
xRay?: Media[];
|
|
80
|
+
};
|
|
81
|
+
export declare enum HighchartsStackingBehavior {
|
|
82
|
+
Overlap = "overlap",
|
|
83
|
+
Normal = "normal",
|
|
84
|
+
Percent = "percent",
|
|
85
|
+
Stream = "stream"
|
|
86
|
+
}
|
|
87
|
+
export declare enum LeaderLinePlugType {
|
|
88
|
+
Disc = "disc",
|
|
89
|
+
Square = "square",
|
|
90
|
+
Arrow1 = "arrow1",
|
|
91
|
+
Arrow2 = "arrow2",
|
|
92
|
+
Arrow3 = "arrow3",
|
|
93
|
+
Hand = "hand",
|
|
94
|
+
CrossHair = "crosshair",
|
|
95
|
+
Behind = "behind"
|
|
96
|
+
}
|
|
97
|
+
export declare enum LeaderLinesPathType {
|
|
98
|
+
Straight = "straight",
|
|
99
|
+
Arc = "arc",
|
|
100
|
+
Fluid = "fluid",
|
|
101
|
+
Magnet = "magnet",
|
|
102
|
+
Grid = "grid"
|
|
103
|
+
}
|
|
104
|
+
export declare enum LeaderLinesSocketPosition {
|
|
105
|
+
Top = "top",
|
|
106
|
+
Right = "right",
|
|
107
|
+
Bottom = "bottom",
|
|
108
|
+
Left = "left",
|
|
109
|
+
Auto = "auto"
|
|
110
|
+
}
|
|
111
|
+
export type LeaderLineOptions = {
|
|
112
|
+
startSocket?: LeaderLinesSocketPosition;
|
|
113
|
+
endSocket?: LeaderLinesSocketPosition;
|
|
114
|
+
color?: string | ((element: any) => string);
|
|
115
|
+
size?: number;
|
|
116
|
+
startPlug?: LeaderLinePlugType;
|
|
117
|
+
endPlug?: LeaderLinePlugType;
|
|
118
|
+
startPlugSize?: number;
|
|
119
|
+
endPlugSize?: number;
|
|
120
|
+
path?: LeaderLinesPathType;
|
|
121
|
+
startSocketGravity?: [number, number];
|
|
122
|
+
endSocketGravity?: [number, number];
|
|
123
|
+
dash?: {
|
|
124
|
+
animation: boolean | {
|
|
125
|
+
duration: number;
|
|
126
|
+
};
|
|
127
|
+
} | ((element: any) => {
|
|
128
|
+
animation: boolean | {
|
|
129
|
+
duration: number;
|
|
130
|
+
};
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
export type CssSelector = string;
|
|
134
|
+
export type LineConfig = {
|
|
135
|
+
start: CssSelector | CssSelector[];
|
|
136
|
+
end: CssSelector | CssSelector[];
|
|
137
|
+
options?: LeaderLineOptions;
|
|
138
|
+
};
|
|
139
|
+
export type Point = {
|
|
140
|
+
x: number;
|
|
141
|
+
y: number;
|
|
142
|
+
};
|
|
143
|
+
export declare enum ZohoDeskTicketStatus {
|
|
144
|
+
Closed = "Closed",
|
|
145
|
+
OnHold = "On Hold",
|
|
146
|
+
Open = "Open"
|
|
147
|
+
}
|
|
148
|
+
export type TagSelectorItem = Tag & {
|
|
149
|
+
isExcluded?: boolean;
|
|
150
|
+
};
|
|
151
|
+
export declare enum FormSchemaComponents {
|
|
152
|
+
SelectField = "SelectField",
|
|
153
|
+
MultiOption = "MultiOption",
|
|
154
|
+
TextField = "TextField",
|
|
155
|
+
SwitchField = "SwitchField",
|
|
156
|
+
CheckBox = "CheckBoxField",
|
|
157
|
+
Date = "DatePickerInput",
|
|
158
|
+
DateTime = "DateTimeField",
|
|
159
|
+
TextArea = "Textarea",
|
|
160
|
+
Search = "Autocomplete",
|
|
161
|
+
ReadOnly = "ReadOnly",
|
|
162
|
+
Ratio = "RatioField"
|
|
163
|
+
}
|
|
164
|
+
export declare enum FormSchemaDataType {
|
|
165
|
+
String = "string",
|
|
166
|
+
Number = "number",
|
|
167
|
+
Boolean = "boolean",
|
|
168
|
+
Date = "date"
|
|
169
|
+
}
|
|
170
|
+
export type FormSchemaOptions = {
|
|
171
|
+
title: string;
|
|
172
|
+
value: string;
|
|
173
|
+
};
|
|
174
|
+
export type FormSchemaField = {
|
|
175
|
+
id: string;
|
|
176
|
+
component: FormSchemaComponents;
|
|
177
|
+
required?: boolean;
|
|
178
|
+
name: string;
|
|
179
|
+
options?: FormSchemaOptions[];
|
|
180
|
+
disabled?: boolean;
|
|
181
|
+
dataType: FormSchemaDataType;
|
|
182
|
+
multiple?: boolean;
|
|
183
|
+
defaultValue?: any;
|
|
184
|
+
columns?: number;
|
|
185
|
+
};
|
|
186
|
+
export type FormSchema = Record<string, FormSchemaField>;
|
|
187
|
+
export interface ScrollListener {
|
|
188
|
+
element: Element | Window;
|
|
189
|
+
handler: () => void;
|
|
190
|
+
}
|
|
191
|
+
export interface LeaderLineInstance {
|
|
192
|
+
remove(): void;
|
|
193
|
+
position(): void;
|
|
194
|
+
}
|
|
195
|
+
export type SnapshotCardItem = {
|
|
196
|
+
label?: string;
|
|
197
|
+
title?: string;
|
|
198
|
+
thumbnailUrl: string;
|
|
199
|
+
placeholderThumbnailUrl?: string;
|
|
200
|
+
fallbackThumbnailUrl?: string;
|
|
201
|
+
};
|
|
202
|
+
export type DocumentExtended = Document & {
|
|
203
|
+
webkitIsFullScreen?: boolean;
|
|
204
|
+
mozFullScreen?: boolean;
|
|
205
|
+
msFullscreenElement?: Element | null;
|
|
206
|
+
fullscreenElement?: Element;
|
|
207
|
+
webkitFullscreenElement?: Element;
|
|
208
|
+
mozFullScreenElement?: Element;
|
|
209
|
+
};
|
|
210
|
+
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
211
|
+
data: T[];
|
|
212
|
+
};
|
|
213
|
+
export type FormattedNotificationData = {
|
|
214
|
+
title: string;
|
|
215
|
+
link: string;
|
|
216
|
+
thumbnail?: string;
|
|
217
|
+
icon?: string;
|
|
218
|
+
drone?: boolean;
|
|
219
|
+
is360?: boolean;
|
|
220
|
+
};
|
|
221
|
+
export type FormattedNotification = FormattedNotificationData & {
|
|
222
|
+
date: string;
|
|
223
|
+
read: boolean;
|
|
224
|
+
id: number;
|
|
225
|
+
thumbnailError?: boolean;
|
|
226
|
+
};
|
|
227
|
+
export type ProcoreProjectStepData = {
|
|
228
|
+
project: ProcoreUserProject | null;
|
|
229
|
+
album: ProcoreProjectAlbum | null;
|
|
230
|
+
observationType: ProcoreObservationType | null;
|
|
231
|
+
};
|
|
232
|
+
export type ProcoreUploadFormData = {
|
|
233
|
+
procoreType: ProcoreType;
|
|
234
|
+
project: ProcoreUserProject | null;
|
|
235
|
+
album: ProcoreProjectAlbum | null;
|
|
236
|
+
observationType: ProcoreObservationType | null;
|
|
237
|
+
observationForm: Record<string, string | number | boolean | null>;
|
|
238
|
+
};
|
|
239
|
+
export type AconexUploadFormData = {
|
|
240
|
+
project: AconexUserProject | null;
|
|
241
|
+
form: Record<string, string | number | boolean | null>;
|
|
242
|
+
};
|
|
243
|
+
export type AutodeskUploadFormData = {
|
|
244
|
+
hub: AutodeskUserHub | null;
|
|
245
|
+
project: AutodeskProject | null;
|
|
246
|
+
folder: AutodeskFolder | null;
|
|
247
|
+
};
|
|
248
|
+
export interface MediaHubFilters {
|
|
249
|
+
title: string;
|
|
250
|
+
requesterEmail: string | undefined;
|
|
251
|
+
camera: string | undefined;
|
|
252
|
+
type: string;
|
|
253
|
+
fromDate: string;
|
|
254
|
+
toDate: string;
|
|
255
|
+
sortBy: string;
|
|
256
|
+
}
|
|
257
|
+
export interface MediaHubSortParameter {
|
|
258
|
+
label: string;
|
|
259
|
+
value: string;
|
|
260
|
+
}
|
|
261
|
+
export type TableHeaderParams<TItem = unknown> = {
|
|
262
|
+
value: string;
|
|
263
|
+
text: string;
|
|
264
|
+
cellClass?: string;
|
|
265
|
+
align?: string;
|
|
266
|
+
sortable?: boolean;
|
|
267
|
+
visible?: boolean;
|
|
268
|
+
width?: number;
|
|
269
|
+
toStringFn?: (item: TItem, key: string) => any;
|
|
270
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
cssClass?: Object | string;
|
|
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 ImageQuality {
|
|
26
|
+
ThreeSixty = "360",
|
|
27
|
+
FourEighty = "480",
|
|
28
|
+
SevenTwenty = "720",
|
|
29
|
+
OneZeroEightZero = "1080",
|
|
30
|
+
Auto = "auto"
|
|
31
|
+
}
|
|
32
|
+
export type SrcSet = {
|
|
33
|
+
[q in ImageQuality]: string;
|
|
34
|
+
};
|
|
@@ -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-e13c64fc3",
|
|
4
4
|
"description": "Evercam API client",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"private": false,
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "dist/index.umd.js",
|
|
14
|
-
"module": "dist/index.
|
|
14
|
+
"module": "dist/index.js",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"import": "./dist/index.
|
|
18
|
+
"import": "./dist/index.js",
|
|
19
19
|
"require": "./dist/index.umd.js"
|
|
20
20
|
},
|
|
21
21
|
"./types": "./dist/src/types.ts"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": "
|
|
27
|
+
"node": ">=22"
|
|
28
28
|
},
|
|
29
29
|
"readme": "README.md",
|
|
30
30
|
"scripts": {
|
|
@@ -36,14 +36,15 @@
|
|
|
36
36
|
"publish-api": "cd ../.. && yarn publish-api"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^
|
|
39
|
+
"@types/node": "^25.3.5",
|
|
40
40
|
"vite": "latest",
|
|
41
41
|
"vite-plugin-commonjs": "^0.10.3",
|
|
42
|
-
"vite-plugin-dts": "^4.5.
|
|
42
|
+
"vite-plugin-dts": "^4.5.4"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"axios": "^1.7.7",
|
|
46
46
|
"humps": "^2.0.1",
|
|
47
|
+
"idb-keyval": "^6.2.2",
|
|
47
48
|
"moment-timezone": "^0.5.46"
|
|
48
49
|
}
|
|
49
|
-
}
|
|
50
|
+
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
|
|
2
|
-
export declare const _3dFirebaseApi: {
|
|
3
|
-
drone: {
|
|
4
|
-
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
5
|
-
};
|
|
6
|
-
_360: {
|
|
7
|
-
getProjectInfo(projectExid: ProjectExid): Promise<_360ProjectJsonResponse>;
|
|
8
|
-
};
|
|
9
|
-
};
|