@evercam/api 1.0.0-003a1ed80
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 +3 -0
- package/dist/api/api/3dFirebaseApi.d.ts +20 -0
- package/dist/api/api/adminApi.d.ts +355 -0
- package/dist/api/api/aiApi.d.ts +146 -0
- package/dist/api/api/authzApi.d.ts +21 -0
- package/dist/api/api/client/axios.d.ts +13 -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 +315 -0
- package/dist/api/api/evercamLabsApi.d.ts +43 -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 +73 -0
- package/dist/api/api/ptzApi.d.ts +36 -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 +99 -0
- package/dist/api/types/aconex.d.ts +45 -0
- package/dist/api/types/analytics.d.ts +489 -0
- package/dist/api/types/anpr.d.ts +103 -0
- package/dist/api/types/auditLogs.d.ts +99 -0
- package/dist/api/types/autodesk.d.ts +29 -0
- package/dist/api/types/automation.d.ts +10 -0
- package/dist/api/types/axios.d.ts +65 -0
- package/dist/api/types/bim.d.ts +147 -0
- package/dist/api/types/camera.d.ts +531 -0
- package/dist/api/types/comments.d.ts +59 -0
- package/dist/api/types/company.d.ts +74 -0
- package/dist/api/types/compare.d.ts +57 -0
- package/dist/api/types/connector.d.ts +21 -0
- package/dist/api/types/coolify.d.ts +18 -0
- package/dist/api/types/copilot.d.ts +157 -0
- package/dist/api/types/countries.d.ts +500 -0
- package/dist/api/types/credentials.d.ts +5 -0
- package/dist/api/types/detections.d.ts +126 -0
- package/dist/api/types/drone.d.ts +17 -0
- package/dist/api/types/errors.d.ts +48 -0
- package/dist/api/types/gateReport.d.ts +441 -0
- package/dist/api/types/hdd.d.ts +63 -0
- package/dist/api/types/index.d.ts +57 -0
- package/dist/api/types/ingest.d.ts +47 -0
- package/dist/api/types/kit.d.ts +355 -0
- package/dist/api/types/map.d.ts +4 -0
- package/dist/api/types/media.d.ts +114 -0
- package/dist/api/types/notification.d.ts +27 -0
- package/dist/api/types/nvr.d.ts +36 -0
- package/dist/api/types/planner.d.ts +32 -0
- package/dist/api/types/posthog.d.ts +18 -0
- package/dist/api/types/procore.d.ts +222 -0
- package/dist/api/types/progressPhoto.d.ts +104 -0
- package/dist/api/types/project.d.ts +129 -0
- package/dist/api/types/recording.d.ts +123 -0
- package/dist/api/types/roi.d.ts +27 -0
- package/dist/api/types/routeParams.d.ts +51 -0
- package/dist/api/types/router.d.ts +67 -0
- package/dist/api/types/shared.d.ts +194 -0
- package/dist/api/types/shares.d.ts +196 -0
- package/dist/api/types/sim.d.ts +114 -0
- package/dist/api/types/siteAnalytics.d.ts +142 -0
- package/dist/api/types/snapshots.d.ts +50 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageServers.d.ts +4 -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 +21 -0
- package/dist/api/types/timelapse.d.ts +99 -0
- package/dist/api/types/user.d.ts +271 -0
- package/dist/api/types/vendorModel.d.ts +15 -0
- package/dist/api/types/videoWall.d.ts +33 -0
- package/dist/api/types/voyageControl.d.ts +6 -0
- package/dist/api/types/weather.d.ts +87 -0
- package/dist/api/types/widget.d.ts +191 -0
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/api/utils.d.ts +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2971 -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 +193 -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 +9 -0
- package/package.json +50 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Date_YYYY_MM_DD, DateType } from "@/types/time";
|
|
2
|
+
export type HistoryWeatherRequestPayload = {
|
|
3
|
+
day: string;
|
|
4
|
+
provider: WeatherProvider;
|
|
5
|
+
};
|
|
6
|
+
export type CurrentWeatherRequestPayload = {
|
|
7
|
+
provider: WeatherProvider;
|
|
8
|
+
};
|
|
9
|
+
export type WeatherResponsePayload = Array<{
|
|
10
|
+
hour?: number;
|
|
11
|
+
temp?: number;
|
|
12
|
+
clouds?: number;
|
|
13
|
+
feelsLike?: number;
|
|
14
|
+
pressure?: number;
|
|
15
|
+
humidity?: number;
|
|
16
|
+
windSpeed?: number;
|
|
17
|
+
windDegree?: number;
|
|
18
|
+
weather?: [WeatherSummary];
|
|
19
|
+
rain?: HourlyReading;
|
|
20
|
+
snow?: HourlyReading;
|
|
21
|
+
}>;
|
|
22
|
+
export type WeatherSummary = {
|
|
23
|
+
id?: number;
|
|
24
|
+
main?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
icon?: string;
|
|
27
|
+
};
|
|
28
|
+
export type HourlyReading = {
|
|
29
|
+
"1h"?: number;
|
|
30
|
+
"3h"?: number;
|
|
31
|
+
};
|
|
32
|
+
export declare enum WeatherProvider {
|
|
33
|
+
WeatherStack = "weather_stack",
|
|
34
|
+
XWeather = "xweather"
|
|
35
|
+
}
|
|
36
|
+
export type Weatherstatus = {
|
|
37
|
+
description: string;
|
|
38
|
+
hour: DateType;
|
|
39
|
+
id: number;
|
|
40
|
+
temp: number;
|
|
41
|
+
};
|
|
42
|
+
export type WeatherDataResponse = {
|
|
43
|
+
minFeelsLike: number;
|
|
44
|
+
id: number;
|
|
45
|
+
sunhour: number;
|
|
46
|
+
maxFeelsLike: number;
|
|
47
|
+
minWindchill: number;
|
|
48
|
+
minPressure: number;
|
|
49
|
+
minWindDegree: number;
|
|
50
|
+
minDewpoint: number;
|
|
51
|
+
maxClouds: number;
|
|
52
|
+
maxWindgust: number;
|
|
53
|
+
minWindSpeed: number;
|
|
54
|
+
astro: {
|
|
55
|
+
moonIllumination: number;
|
|
56
|
+
moonPhase: string;
|
|
57
|
+
moonrise: string;
|
|
58
|
+
moonset: string;
|
|
59
|
+
sunrise: string;
|
|
60
|
+
sunset: string;
|
|
61
|
+
};
|
|
62
|
+
insertedAt: string;
|
|
63
|
+
maxDewpoint: number;
|
|
64
|
+
maxTemp: number;
|
|
65
|
+
minClouds: number;
|
|
66
|
+
weather: Weatherstatus[];
|
|
67
|
+
minHeatindex: number;
|
|
68
|
+
minPrecip: number;
|
|
69
|
+
maxWindDegree: number;
|
|
70
|
+
maxUvIndex: number;
|
|
71
|
+
minHumidity: number;
|
|
72
|
+
maxWindSpeed: number;
|
|
73
|
+
minWindgust: number;
|
|
74
|
+
updatedAt: DateType;
|
|
75
|
+
maxPrecip: number;
|
|
76
|
+
uvIndex: number;
|
|
77
|
+
maxHeatindex: number;
|
|
78
|
+
minTemp: number;
|
|
79
|
+
date: Date_YYYY_MM_DD;
|
|
80
|
+
totalsnow: number;
|
|
81
|
+
maxPressure: number;
|
|
82
|
+
maxWindchill: number;
|
|
83
|
+
maxHumidity: number;
|
|
84
|
+
avgtemp: number;
|
|
85
|
+
projectId: number;
|
|
86
|
+
minUvIndex: number;
|
|
87
|
+
};
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import type { DateTime } from "@evercam/api/types/time";
|
|
2
|
+
import { PaginationParams } from "@/types";
|
|
3
|
+
import { VideoWallPresetItemConfig } 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
|
+
};
|
|
82
|
+
export type LiveViewWidgetSettings = CommonWidgetSettings & {
|
|
83
|
+
fullscreen: boolean;
|
|
84
|
+
download: boolean;
|
|
85
|
+
zoom: boolean;
|
|
86
|
+
playpause: boolean;
|
|
87
|
+
refresh: number;
|
|
88
|
+
};
|
|
89
|
+
export type BimCompareWidgetSettings = CommonWidgetSettings & {
|
|
90
|
+
timeline: boolean;
|
|
91
|
+
darkMode: boolean;
|
|
92
|
+
};
|
|
93
|
+
export type VideoWallWidgetSettings = CommonWidgetSettings & {
|
|
94
|
+
preset: VideoWallPresetItemConfig;
|
|
95
|
+
refreshRate: number;
|
|
96
|
+
};
|
|
97
|
+
export type ThreeSixtyWidgetSettings = CommonWidgetSettings & {
|
|
98
|
+
dateId: string;
|
|
99
|
+
floorId: string;
|
|
100
|
+
markerId: string;
|
|
101
|
+
};
|
|
102
|
+
export type WidgetSettings = RecordingsWidgetSettings | LiveViewWidgetSettings | BimCompareWidgetSettings | VideoWallWidgetSettings | ThreeSixtyWidgetSettings;
|
|
103
|
+
export declare enum WidgetType {
|
|
104
|
+
LiveWidget = "Live View",
|
|
105
|
+
Recording = "Recordings",
|
|
106
|
+
BimCompare = "BIM Compare",
|
|
107
|
+
VideoWall = "Video Wall",
|
|
108
|
+
ThreeSixty = "360"
|
|
109
|
+
}
|
|
110
|
+
export declare const WidgetTypesByResource: {
|
|
111
|
+
camera: WidgetType[];
|
|
112
|
+
project: WidgetType[];
|
|
113
|
+
};
|
|
114
|
+
export type WidgetsListRequestPayload = PaginationParams & {
|
|
115
|
+
userId: number;
|
|
116
|
+
projectId: number;
|
|
117
|
+
cameraId: number;
|
|
118
|
+
active: boolean;
|
|
119
|
+
settings: WidgetSettings;
|
|
120
|
+
widgetType: WidgetType;
|
|
121
|
+
isPublic: boolean;
|
|
122
|
+
allowedOrigin: string;
|
|
123
|
+
};
|
|
124
|
+
export type Widget = {
|
|
125
|
+
id: number;
|
|
126
|
+
ressources: {
|
|
127
|
+
camera?: {
|
|
128
|
+
id: number;
|
|
129
|
+
exid: string;
|
|
130
|
+
name: string;
|
|
131
|
+
};
|
|
132
|
+
project?: {
|
|
133
|
+
id: number;
|
|
134
|
+
exid: string;
|
|
135
|
+
name: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
widgetType: WidgetType;
|
|
139
|
+
settings: WidgetSettings;
|
|
140
|
+
allowedOrigin: string;
|
|
141
|
+
isPublic: boolean;
|
|
142
|
+
active: boolean;
|
|
143
|
+
user: {
|
|
144
|
+
id: number;
|
|
145
|
+
email: string;
|
|
146
|
+
firstname: string;
|
|
147
|
+
lastname: string;
|
|
148
|
+
};
|
|
149
|
+
insertedAt: DateTime;
|
|
150
|
+
updatedAt: DateTime;
|
|
151
|
+
};
|
|
152
|
+
export type WidgetFull = {
|
|
153
|
+
id: number;
|
|
154
|
+
ressources: {
|
|
155
|
+
camera?: {
|
|
156
|
+
id: number;
|
|
157
|
+
exid: string;
|
|
158
|
+
name: string;
|
|
159
|
+
};
|
|
160
|
+
project?: {
|
|
161
|
+
id: number;
|
|
162
|
+
exid: string;
|
|
163
|
+
name: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
widgetType: WidgetType;
|
|
167
|
+
widgetKey: string;
|
|
168
|
+
widgetId: string;
|
|
169
|
+
active: boolean;
|
|
170
|
+
user: {
|
|
171
|
+
id: number;
|
|
172
|
+
email: string;
|
|
173
|
+
};
|
|
174
|
+
settings: WidgetSettings;
|
|
175
|
+
sessionSettings: any;
|
|
176
|
+
allowedOrigin: string;
|
|
177
|
+
isPublic: boolean;
|
|
178
|
+
insertedAt: DateTime;
|
|
179
|
+
updatedAt: DateTime;
|
|
180
|
+
};
|
|
181
|
+
export type WidgetPayload = {
|
|
182
|
+
ressources: {
|
|
183
|
+
cameraId?: number;
|
|
184
|
+
projectId?: number;
|
|
185
|
+
};
|
|
186
|
+
widgetType: WidgetType;
|
|
187
|
+
active: boolean;
|
|
188
|
+
settings: WidgetSettings;
|
|
189
|
+
isPublic: boolean;
|
|
190
|
+
allowedOrigin: string;
|
|
191
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
package/dist/index.d.ts
ADDED