@evercam/api 1.0.0-003291add
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 +6 -0
- package/dist/api/api/3dFirebaseApi.d.ts +183 -0
- package/dist/api/api/adminApi.d.ts +377 -0
- package/dist/api/api/aiApi.d.ts +128 -0
- package/dist/api/api/authzApi.d.ts +37 -0
- package/dist/api/api/client/axios.d.ts +14 -0
- package/dist/api/api/client/customErrors.d.ts +90 -0
- package/dist/api/api/client/index.d.ts +5 -0
- package/dist/api/api/client/interceptors.d.ts +10 -0
- 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 +337 -0
- package/dist/api/api/evercamLabsApi.d.ts +45 -0
- package/dist/api/api/exNvrApi.d.ts +43 -0
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +148 -0
- package/dist/api/api/ptzApi.d.ts +45 -0
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/api/webRtcApi.d.ts +22 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/types/360.d.ts +281 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +597 -0
- package/dist/api/types/anpr.d.ts +114 -0
- package/dist/api/types/auditLogs.d.ts +99 -0
- package/dist/api/types/authz.d.ts +61 -0
- package/dist/api/types/autodesk.d.ts +29 -0
- package/dist/api/types/automation.d.ts +95 -0
- package/dist/api/types/axios.d.ts +71 -0
- package/dist/api/types/bim.d.ts +153 -0
- package/dist/api/types/camera.d.ts +535 -0
- package/dist/api/types/comments.d.ts +55 -0
- package/dist/api/types/company.d.ts +115 -0
- package/dist/api/types/compare.d.ts +72 -0
- package/dist/api/types/connector.d.ts +19 -0
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/api/types/copilot.d.ts +162 -0
- package/dist/api/types/countries.d.ts +500 -0
- package/dist/api/types/credentials.d.ts +6 -0
- package/dist/api/types/detections.d.ts +124 -0
- package/dist/api/types/drone.d.ts +106 -0
- package/dist/api/types/errors.d.ts +49 -0
- package/dist/api/types/gateReport.d.ts +332 -0
- package/dist/api/types/hdd.d.ts +88 -0
- package/dist/api/types/index.d.ts +65 -0
- package/dist/api/types/ingest.d.ts +147 -0
- package/dist/api/types/kit.d.ts +383 -0
- package/dist/api/types/map.d.ts +16 -0
- package/dist/api/types/media.d.ts +115 -0
- package/dist/api/types/notification.d.ts +57 -0
- package/dist/api/types/nvr.d.ts +36 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +133 -0
- package/dist/api/types/posthog.d.ts +33 -0
- package/dist/api/types/procore.d.ts +229 -0
- package/dist/api/types/progressPhoto.d.ts +78 -0
- package/dist/api/types/project.d.ts +247 -0
- package/dist/api/types/recording.d.ts +125 -0
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +27 -0
- package/dist/api/types/routeParams.d.ts +52 -0
- package/dist/api/types/router.d.ts +86 -0
- package/dist/api/types/shared.d.ts +219 -0
- package/dist/api/types/shares.d.ts +58 -0
- package/dist/api/types/sim.d.ts +114 -0
- package/dist/api/types/siteAnalytics.d.ts +287 -0
- package/dist/api/types/siteView.d.ts +74 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +91 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +97 -0
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/api/types/time.d.ts +7 -0
- package/dist/api/types/timelapse.d.ts +106 -0
- package/dist/api/types/user.d.ts +345 -0
- package/dist/api/types/vendorModel.d.ts +15 -0
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/api/types/voyageControl.d.ts +6 -0
- package/dist/api/types/weather.d.ts +153 -0
- package/dist/api/types/widget.d.ts +252 -0
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/api/utils.d.ts +10 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3707 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +2 -0
- package/dist/index.umd.cjs.map +1 -0
- 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 +301 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +50 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { CameraExid, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
import type { JsonObject } from "@evercam/api/types";
|
|
3
|
+
import { VideoWallPresetGridConfig } from "@evercam/api/types/videoWall";
|
|
4
|
+
export declare enum DelayUnit {
|
|
5
|
+
Minute = "Minutes",
|
|
6
|
+
Hour = "Hours",
|
|
7
|
+
Day = "Days"
|
|
8
|
+
}
|
|
9
|
+
export declare enum CommonWidgetSettingsKeys {
|
|
10
|
+
Width = "width",
|
|
11
|
+
WidthResolution = "resolution",
|
|
12
|
+
Height = "height",
|
|
13
|
+
HeightResolution = "heightResolution"
|
|
14
|
+
}
|
|
15
|
+
export declare enum RecordingsWidgetSettingsKeys {
|
|
16
|
+
DarkMode = "darkMode",
|
|
17
|
+
Calendar = "calendar",
|
|
18
|
+
HasDelay = "hasDelay",
|
|
19
|
+
Delay = "delay",
|
|
20
|
+
DelayUnit = "delayUnit",
|
|
21
|
+
HasRange = "hasRange",
|
|
22
|
+
DateRange = "dateRange",
|
|
23
|
+
Width = "width",
|
|
24
|
+
WidthResolution = "resolution",
|
|
25
|
+
Height = "height",
|
|
26
|
+
HeightResolution = "heightResolution"
|
|
27
|
+
}
|
|
28
|
+
export declare enum LiveViewWidgetSettingsKeys {
|
|
29
|
+
Fullscreen = "fullscreen",
|
|
30
|
+
Download = "download",
|
|
31
|
+
Zoom = "zoom",
|
|
32
|
+
Playpause = "playpause",
|
|
33
|
+
Refresh = "refresh",
|
|
34
|
+
Width = "width",
|
|
35
|
+
WidthResolution = "resolution",
|
|
36
|
+
Height = "height",
|
|
37
|
+
HeightResolution = "heightResolution"
|
|
38
|
+
}
|
|
39
|
+
export declare enum BimCompareWidgetSettingsKeys {
|
|
40
|
+
Timeline = "timeline",
|
|
41
|
+
Calendar = "calendar",
|
|
42
|
+
DarkMode = "darkMode",
|
|
43
|
+
Width = "width",
|
|
44
|
+
WidthResolution = "resolution",
|
|
45
|
+
Height = "height",
|
|
46
|
+
HeightResolution = "heightResolution"
|
|
47
|
+
}
|
|
48
|
+
export declare enum VideoWallWidgetSettingsKeys {
|
|
49
|
+
Preset = "preset",
|
|
50
|
+
RefreshRate = "refreshRate",
|
|
51
|
+
Width = "width",
|
|
52
|
+
WidthResolution = "resolution",
|
|
53
|
+
Height = "height",
|
|
54
|
+
HeightResolution = "heightResolution"
|
|
55
|
+
}
|
|
56
|
+
export declare enum ThreeSixtyKeys {
|
|
57
|
+
DateId = "dateId",
|
|
58
|
+
DateLocked = "dateLocked",
|
|
59
|
+
FloorId = "floorId",
|
|
60
|
+
FloorLocked = "floorLocked",
|
|
61
|
+
Marker = "markerId",
|
|
62
|
+
MarkerLocked = "markerLocked",
|
|
63
|
+
MediaLocked = "mediaLocked",
|
|
64
|
+
Width = "width",
|
|
65
|
+
WidthResolution = "resolution",
|
|
66
|
+
Height = "height",
|
|
67
|
+
HeightResolution = "heightResolution"
|
|
68
|
+
}
|
|
69
|
+
export type CommonWidgetSettings = {
|
|
70
|
+
width: number;
|
|
71
|
+
resolution: string;
|
|
72
|
+
height: number;
|
|
73
|
+
heightResolution: string;
|
|
74
|
+
};
|
|
75
|
+
export type RecordingsWidgetSettings = CommonWidgetSettings & {
|
|
76
|
+
darkMode: boolean;
|
|
77
|
+
calendar: boolean;
|
|
78
|
+
hasDelay: boolean;
|
|
79
|
+
delay: number;
|
|
80
|
+
delayUnit: DelayUnit;
|
|
81
|
+
hasRange: boolean;
|
|
82
|
+
dateRange: [string, string] | null;
|
|
83
|
+
};
|
|
84
|
+
export type LiveViewWidgetSettings = CommonWidgetSettings & {
|
|
85
|
+
fullscreen: boolean;
|
|
86
|
+
download: boolean;
|
|
87
|
+
zoom: boolean;
|
|
88
|
+
playpause: boolean;
|
|
89
|
+
refresh: number;
|
|
90
|
+
};
|
|
91
|
+
export type BimCompareWidgetSettings = CommonWidgetSettings & {
|
|
92
|
+
timeline: boolean;
|
|
93
|
+
darkMode: boolean;
|
|
94
|
+
};
|
|
95
|
+
export type VideoWallWidgetSettingsObject = CommonWidgetSettings & {
|
|
96
|
+
preset: VideoWallPresetGridConfig;
|
|
97
|
+
refreshRate: number;
|
|
98
|
+
allowCellFullscreen: boolean;
|
|
99
|
+
allowFitContent: boolean;
|
|
100
|
+
allowForceAspectRatio: boolean;
|
|
101
|
+
allowFullscreen: boolean;
|
|
102
|
+
cameras: CameraExid[];
|
|
103
|
+
description: string;
|
|
104
|
+
global: boolean;
|
|
105
|
+
visibility: string;
|
|
106
|
+
};
|
|
107
|
+
export type ThreeSixtyWidgetSettings = CommonWidgetSettings & {
|
|
108
|
+
dateId: string;
|
|
109
|
+
floorId: string;
|
|
110
|
+
markerId: string;
|
|
111
|
+
};
|
|
112
|
+
export type WidgetSettings = RecordingsWidgetSettings | LiveViewWidgetSettings | BimCompareWidgetSettings | VideoWallWidgetSettingsObject | ThreeSixtyWidgetSettings;
|
|
113
|
+
export declare enum WidgetType {
|
|
114
|
+
LiveWidget = "Live View",
|
|
115
|
+
Recording = "Recordings",
|
|
116
|
+
BimCompare = "BIM Compare",
|
|
117
|
+
VideoWall = "Video Wall",
|
|
118
|
+
ThreeSixty = "360"
|
|
119
|
+
}
|
|
120
|
+
export declare const WidgetTypesByResource: {
|
|
121
|
+
camera: WidgetType[];
|
|
122
|
+
project: WidgetType[];
|
|
123
|
+
};
|
|
124
|
+
export type WidgetsListRequestPayload = PaginationParams & {
|
|
125
|
+
userId: number;
|
|
126
|
+
projectId: number;
|
|
127
|
+
cameraId: number;
|
|
128
|
+
active: boolean;
|
|
129
|
+
settings: WidgetSettings;
|
|
130
|
+
widgetType: WidgetType;
|
|
131
|
+
domainRestricted: boolean;
|
|
132
|
+
allowedOrigin: string;
|
|
133
|
+
};
|
|
134
|
+
export type Widget = {
|
|
135
|
+
id: number;
|
|
136
|
+
ressources: {
|
|
137
|
+
camera?: {
|
|
138
|
+
id: number;
|
|
139
|
+
exid: string;
|
|
140
|
+
name: string;
|
|
141
|
+
};
|
|
142
|
+
project?: {
|
|
143
|
+
id: number;
|
|
144
|
+
exid: string;
|
|
145
|
+
name: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
widgetType: WidgetType;
|
|
149
|
+
settings: WidgetSettings;
|
|
150
|
+
allowedOrigin: string;
|
|
151
|
+
domainRestricted: boolean;
|
|
152
|
+
active: boolean;
|
|
153
|
+
user: {
|
|
154
|
+
id: number;
|
|
155
|
+
email: string;
|
|
156
|
+
firstname: string;
|
|
157
|
+
lastname: string;
|
|
158
|
+
};
|
|
159
|
+
insertedAt: string;
|
|
160
|
+
updatedAt: string;
|
|
161
|
+
};
|
|
162
|
+
export type WidgetFull = {
|
|
163
|
+
id: number;
|
|
164
|
+
ressources: {
|
|
165
|
+
camera?: {
|
|
166
|
+
id: number;
|
|
167
|
+
exid: string;
|
|
168
|
+
name: string;
|
|
169
|
+
};
|
|
170
|
+
project?: {
|
|
171
|
+
id: number;
|
|
172
|
+
exid: string;
|
|
173
|
+
name: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
widgetType: WidgetType;
|
|
177
|
+
widgetKey: string;
|
|
178
|
+
widgetId: string;
|
|
179
|
+
active: boolean;
|
|
180
|
+
user: {
|
|
181
|
+
id: number;
|
|
182
|
+
email: string;
|
|
183
|
+
};
|
|
184
|
+
settings: WidgetSettings;
|
|
185
|
+
sessionSettings: JsonObject | null;
|
|
186
|
+
allowedOrigin: string;
|
|
187
|
+
domainRestricted: boolean;
|
|
188
|
+
insertedAt: string;
|
|
189
|
+
updatedAt: string;
|
|
190
|
+
};
|
|
191
|
+
export type WidgetSessionSettingsPayload = {
|
|
192
|
+
sessionSettings: JsonObject;
|
|
193
|
+
};
|
|
194
|
+
export type AdminWidgetResourceCamera = {
|
|
195
|
+
id: number;
|
|
196
|
+
exid: string;
|
|
197
|
+
name: string;
|
|
198
|
+
};
|
|
199
|
+
export type AdminWidgetResourceProject = {
|
|
200
|
+
id: number;
|
|
201
|
+
exid: string;
|
|
202
|
+
name: string;
|
|
203
|
+
featureFlags: string[];
|
|
204
|
+
};
|
|
205
|
+
export type AdminWidgetResourcePreset = {
|
|
206
|
+
id: number;
|
|
207
|
+
name: string;
|
|
208
|
+
exid: string;
|
|
209
|
+
config: JsonObject;
|
|
210
|
+
};
|
|
211
|
+
export type AdminWidgetResources = {
|
|
212
|
+
camera?: AdminWidgetResourceCamera | null;
|
|
213
|
+
project?: AdminWidgetResourceProject | null;
|
|
214
|
+
preset?: AdminWidgetResourcePreset | null;
|
|
215
|
+
};
|
|
216
|
+
export type AdminWidgetUser = {
|
|
217
|
+
id: number;
|
|
218
|
+
email: string;
|
|
219
|
+
firstname: string;
|
|
220
|
+
lastname: string;
|
|
221
|
+
};
|
|
222
|
+
export type AdminWidget = {
|
|
223
|
+
id: number;
|
|
224
|
+
active: boolean;
|
|
225
|
+
public: boolean;
|
|
226
|
+
user: AdminWidgetUser;
|
|
227
|
+
description: string | null;
|
|
228
|
+
insertedAt: string;
|
|
229
|
+
updatedAt: string;
|
|
230
|
+
settings: WidgetSettings;
|
|
231
|
+
ressources: AdminWidgetResources;
|
|
232
|
+
seenAt?: string;
|
|
233
|
+
showDashboardLink?: boolean;
|
|
234
|
+
domainRestricted: boolean;
|
|
235
|
+
widgetType: WidgetType;
|
|
236
|
+
allowedOrigin: string | null;
|
|
237
|
+
};
|
|
238
|
+
export type AdminWidgetFull = AdminWidget & {
|
|
239
|
+
widgetKey: string;
|
|
240
|
+
widgetId: string;
|
|
241
|
+
};
|
|
242
|
+
export type WidgetPayload = {
|
|
243
|
+
ressources: {
|
|
244
|
+
cameraId?: number;
|
|
245
|
+
projectId?: number;
|
|
246
|
+
};
|
|
247
|
+
widgetType: WidgetType;
|
|
248
|
+
active: boolean;
|
|
249
|
+
settings: WidgetSettings;
|
|
250
|
+
domainRestricted: boolean;
|
|
251
|
+
allowedOrigin: string;
|
|
252
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type Falsy = "" | null | undefined | false;
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
[k: string]: string | number | boolean | string[] | Falsy;
|
|
4
|
+
}
|
|
5
|
+
export declare const toQueryString: <T extends Record<string, unknown>>(paramsObject?: T | QueryParams, { forceSnakeCase, forceArrayBrackets }?: {
|
|
6
|
+
forceSnakeCase?: boolean | undefined;
|
|
7
|
+
forceArrayBrackets?: boolean | undefined;
|
|
8
|
+
}) => string | undefined;
|
|
9
|
+
export declare function queryStringToObject(queryString?: string): QueryParams;
|
|
10
|
+
export declare function capitalizeFirstLetter(inputString: string): string;
|
package/dist/index.d.ts
ADDED