@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,345 @@
|
|
|
1
|
+
import type { CameraExid, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
import { Role, RoleSubRole } from "@evercam/api/types/authz";
|
|
3
|
+
export type User = {
|
|
4
|
+
id?: number;
|
|
5
|
+
fullname?: string;
|
|
6
|
+
firstname: string;
|
|
7
|
+
lastname: string;
|
|
8
|
+
email: string;
|
|
9
|
+
telephone: string;
|
|
10
|
+
country: string;
|
|
11
|
+
isAdmin: boolean;
|
|
12
|
+
persona: Persona;
|
|
13
|
+
companyId?: string | number;
|
|
14
|
+
companyName?: string;
|
|
15
|
+
companyExid?: string;
|
|
16
|
+
features?: Array<UserFeatureFlag>;
|
|
17
|
+
confirmedAt?: string;
|
|
18
|
+
createdAt?: string;
|
|
19
|
+
lastLoginAt?: string;
|
|
20
|
+
token?: string;
|
|
21
|
+
updatedAt?: string;
|
|
22
|
+
evercamAccount?: boolean;
|
|
23
|
+
};
|
|
24
|
+
export type AdminUser = {
|
|
25
|
+
id: number;
|
|
26
|
+
fullname: string;
|
|
27
|
+
firstname: string;
|
|
28
|
+
email: string;
|
|
29
|
+
telephone: string;
|
|
30
|
+
country: string;
|
|
31
|
+
isAdmin: boolean;
|
|
32
|
+
companyId: string;
|
|
33
|
+
companyName: string;
|
|
34
|
+
companyExid: string;
|
|
35
|
+
features: Array<UserFeatureFlag>;
|
|
36
|
+
active: boolean;
|
|
37
|
+
cameraShares: number;
|
|
38
|
+
camerasCount: number;
|
|
39
|
+
camerasOwned: number;
|
|
40
|
+
countryId: number;
|
|
41
|
+
countryName: string;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
integrations: string[];
|
|
44
|
+
lastSeenAt: string;
|
|
45
|
+
lastLoginAt: string;
|
|
46
|
+
lastname: string;
|
|
47
|
+
persona: string;
|
|
48
|
+
projects: string[];
|
|
49
|
+
projectsCount: number;
|
|
50
|
+
referralUrl?: string;
|
|
51
|
+
snapmailCount: number;
|
|
52
|
+
zohoId: string;
|
|
53
|
+
};
|
|
54
|
+
export declare enum UserFeatureFlag {
|
|
55
|
+
CompanyAdmin = "company-admin",
|
|
56
|
+
VideoWalls = "video-walls",
|
|
57
|
+
MassCameraSharing = "mass-camera-sharing",
|
|
58
|
+
ProjectSharing = "project-sharing"
|
|
59
|
+
}
|
|
60
|
+
export type ProjectUser = User & {
|
|
61
|
+
lastSeenAt: string;
|
|
62
|
+
active: boolean;
|
|
63
|
+
activeOneMonth: boolean;
|
|
64
|
+
eventsCount: string;
|
|
65
|
+
cameraExid: string;
|
|
66
|
+
cameraRights: string;
|
|
67
|
+
};
|
|
68
|
+
export declare enum ContactRole {
|
|
69
|
+
SalesExecutive = "Sales Executive",
|
|
70
|
+
CustomerSuccessManager = "Customer Success Manager"
|
|
71
|
+
}
|
|
72
|
+
export declare enum Persona {
|
|
73
|
+
HQ = "HQ",
|
|
74
|
+
PM = "PM",
|
|
75
|
+
QS = "QS",
|
|
76
|
+
Marketing = "Marketing",
|
|
77
|
+
HS = "H&S",
|
|
78
|
+
DI = "DI",
|
|
79
|
+
Other = "Other"
|
|
80
|
+
}
|
|
81
|
+
export type UpdatePasswordRequestPayload = {
|
|
82
|
+
token: string;
|
|
83
|
+
password: string;
|
|
84
|
+
};
|
|
85
|
+
export type Credentials = {
|
|
86
|
+
apiKey: string;
|
|
87
|
+
apiId: string;
|
|
88
|
+
};
|
|
89
|
+
export type LoginRequestPayload = {
|
|
90
|
+
username: string;
|
|
91
|
+
password: string;
|
|
92
|
+
redirectToZoho?: boolean;
|
|
93
|
+
};
|
|
94
|
+
export type RemotePasswordUpdateRequestPayload = {
|
|
95
|
+
currentPassword: string;
|
|
96
|
+
newPassword: string;
|
|
97
|
+
};
|
|
98
|
+
export type AuthPasswordOption = {
|
|
99
|
+
type: "password";
|
|
100
|
+
};
|
|
101
|
+
export type AuthSsoOption = {
|
|
102
|
+
type: "sso";
|
|
103
|
+
name: string;
|
|
104
|
+
scope: string;
|
|
105
|
+
prompt: string | null;
|
|
106
|
+
exid: string;
|
|
107
|
+
clientId: string;
|
|
108
|
+
iconUrl: string;
|
|
109
|
+
loginUrl: string;
|
|
110
|
+
responseType: string;
|
|
111
|
+
};
|
|
112
|
+
export type AuthOption = AuthPasswordOption | AuthSsoOption;
|
|
113
|
+
export type AuthOptionsResponsePayload = {
|
|
114
|
+
options: AuthOption[];
|
|
115
|
+
};
|
|
116
|
+
export type AuthProviderConfigPayload = {
|
|
117
|
+
name: string;
|
|
118
|
+
scope: string;
|
|
119
|
+
prompt: string | null;
|
|
120
|
+
exid: string;
|
|
121
|
+
clientId: string;
|
|
122
|
+
iconUrl: string;
|
|
123
|
+
loginUrl: string;
|
|
124
|
+
responseType: string;
|
|
125
|
+
};
|
|
126
|
+
export type LogoutParams = {
|
|
127
|
+
token: string;
|
|
128
|
+
fromAdmin?: boolean;
|
|
129
|
+
};
|
|
130
|
+
export type ConfirmUserRequestPayload = {
|
|
131
|
+
c: string;
|
|
132
|
+
};
|
|
133
|
+
export type DeleteActiveSessionRequestPayload = {
|
|
134
|
+
authorization: string;
|
|
135
|
+
};
|
|
136
|
+
export type UserSession = {
|
|
137
|
+
browser: string;
|
|
138
|
+
createdAt: string;
|
|
139
|
+
id: number;
|
|
140
|
+
ipAddress: string;
|
|
141
|
+
isCurrent: boolean;
|
|
142
|
+
lastUsedAt: string;
|
|
143
|
+
os: string;
|
|
144
|
+
};
|
|
145
|
+
export type SessionsListRequestPayload = {
|
|
146
|
+
authorization: string;
|
|
147
|
+
browser?: string;
|
|
148
|
+
os?: string;
|
|
149
|
+
ipAddress?: string;
|
|
150
|
+
sort: string;
|
|
151
|
+
limit: number;
|
|
152
|
+
page: number;
|
|
153
|
+
};
|
|
154
|
+
export type SessionActivityCamSettingsDetail = {
|
|
155
|
+
new: any;
|
|
156
|
+
old: any;
|
|
157
|
+
};
|
|
158
|
+
export type SessionActivityDetail = {
|
|
159
|
+
agent: string;
|
|
160
|
+
camSettings: SessionActivityCamSettingsDetail;
|
|
161
|
+
country: string;
|
|
162
|
+
countryCode: string;
|
|
163
|
+
ip: string;
|
|
164
|
+
};
|
|
165
|
+
export type SessionActivity = {
|
|
166
|
+
cameraExid: string;
|
|
167
|
+
details: SessionActivityDetail;
|
|
168
|
+
insertedAt: string;
|
|
169
|
+
type: string;
|
|
170
|
+
who: string;
|
|
171
|
+
};
|
|
172
|
+
export type SessionActivitiesListRequestPayload = {
|
|
173
|
+
limit: number;
|
|
174
|
+
from: string;
|
|
175
|
+
to: string;
|
|
176
|
+
};
|
|
177
|
+
export type SignupUserRequestPayload = {
|
|
178
|
+
telephone: string;
|
|
179
|
+
token: string;
|
|
180
|
+
firstname: string;
|
|
181
|
+
lastname: string;
|
|
182
|
+
email: string;
|
|
183
|
+
password: string;
|
|
184
|
+
shareRequestKey: string;
|
|
185
|
+
referralUrl: string;
|
|
186
|
+
persona: string;
|
|
187
|
+
disablePassword: boolean;
|
|
188
|
+
};
|
|
189
|
+
export type UserUpdateRequestPayload = {
|
|
190
|
+
firstname: string;
|
|
191
|
+
lastname: string;
|
|
192
|
+
email: string;
|
|
193
|
+
telephone: string;
|
|
194
|
+
country: string;
|
|
195
|
+
persona: string;
|
|
196
|
+
};
|
|
197
|
+
export type UserDeleteRequestPayload = {
|
|
198
|
+
verifEmail: string;
|
|
199
|
+
};
|
|
200
|
+
export type GoogleAuthRequestPayload = {
|
|
201
|
+
code: string;
|
|
202
|
+
redirectUri: string;
|
|
203
|
+
};
|
|
204
|
+
export type ProjectContact = {
|
|
205
|
+
name: string;
|
|
206
|
+
role: ContactRole | string;
|
|
207
|
+
email?: string;
|
|
208
|
+
phone?: string;
|
|
209
|
+
photo?: string;
|
|
210
|
+
};
|
|
211
|
+
export type ProjectContactsResponsePayload = {
|
|
212
|
+
data: ProjectContact[];
|
|
213
|
+
};
|
|
214
|
+
export type UserStatsResponse = {
|
|
215
|
+
data: {
|
|
216
|
+
userStats: AdminUser;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
export type UserCamera = {
|
|
220
|
+
id: number;
|
|
221
|
+
exid: string;
|
|
222
|
+
ownerFullname: string;
|
|
223
|
+
ownerEmail: string;
|
|
224
|
+
apiId: string;
|
|
225
|
+
apiKey: string;
|
|
226
|
+
};
|
|
227
|
+
export type UserCameraResponse = {
|
|
228
|
+
data: UserCamera[];
|
|
229
|
+
};
|
|
230
|
+
export type UserProject = {
|
|
231
|
+
id: number;
|
|
232
|
+
exid: string;
|
|
233
|
+
name: string;
|
|
234
|
+
startedAt: string;
|
|
235
|
+
};
|
|
236
|
+
export type UserProjectResponse = {
|
|
237
|
+
data: UserProject[];
|
|
238
|
+
};
|
|
239
|
+
export type AdminUserUpdateRequestPayload = {
|
|
240
|
+
companyId: string;
|
|
241
|
+
email: string;
|
|
242
|
+
persona: Persona;
|
|
243
|
+
country: string;
|
|
244
|
+
features: UserFeatureFlag[];
|
|
245
|
+
};
|
|
246
|
+
export type AdminQueryParams = PaginationParams & {
|
|
247
|
+
email: string;
|
|
248
|
+
fullname: string;
|
|
249
|
+
};
|
|
250
|
+
export type Admin = {
|
|
251
|
+
id: number;
|
|
252
|
+
fullname: string;
|
|
253
|
+
email: string;
|
|
254
|
+
createdAt: string;
|
|
255
|
+
updatedAt: string;
|
|
256
|
+
lastSignInAt: string;
|
|
257
|
+
signInCount: number;
|
|
258
|
+
lastSignInIp: string;
|
|
259
|
+
apiId: string;
|
|
260
|
+
apiKey: string;
|
|
261
|
+
};
|
|
262
|
+
export type ImpersonateUserResponse = {
|
|
263
|
+
id: string;
|
|
264
|
+
firstname: string;
|
|
265
|
+
lastname: string;
|
|
266
|
+
telephone: string;
|
|
267
|
+
email: string;
|
|
268
|
+
isAdmin: boolean;
|
|
269
|
+
persona: Persona;
|
|
270
|
+
country: string;
|
|
271
|
+
companyId: number;
|
|
272
|
+
companyExid: string;
|
|
273
|
+
companyName: string;
|
|
274
|
+
evercamAccount: boolean;
|
|
275
|
+
createdAt: string;
|
|
276
|
+
updatedAt: string;
|
|
277
|
+
confirmedAt: string;
|
|
278
|
+
lastLoginAt: string;
|
|
279
|
+
features: UserFeatureFlag[];
|
|
280
|
+
token: string;
|
|
281
|
+
};
|
|
282
|
+
export type AdminUserQueryParams = PaginationParams & {
|
|
283
|
+
fullname: string;
|
|
284
|
+
email: string;
|
|
285
|
+
telephone: string;
|
|
286
|
+
persona: Persona;
|
|
287
|
+
companyName: string;
|
|
288
|
+
camerasCount: string;
|
|
289
|
+
projectsCount: string;
|
|
290
|
+
snapmailCount: string;
|
|
291
|
+
camerasOwned: string;
|
|
292
|
+
cameraShares: string;
|
|
293
|
+
createdAtDate: string;
|
|
294
|
+
lastLoginAtDate: string;
|
|
295
|
+
integrations: "procore" | "aconex" | "autodesk";
|
|
296
|
+
features: UserFeatureFlag.ProjectSharing | UserFeatureFlag.VideoWalls;
|
|
297
|
+
};
|
|
298
|
+
export type SuppressionsQueryParams = PaginationParams & {
|
|
299
|
+
id: number;
|
|
300
|
+
email: string;
|
|
301
|
+
source: string;
|
|
302
|
+
};
|
|
303
|
+
export type Suppression = {
|
|
304
|
+
id: number;
|
|
305
|
+
email: string;
|
|
306
|
+
source: string;
|
|
307
|
+
insertedAt: string;
|
|
308
|
+
updatedAt: string;
|
|
309
|
+
};
|
|
310
|
+
type Email = string;
|
|
311
|
+
export type WsAccessRestrictionUpdate = {
|
|
312
|
+
camera_id: CameraExid;
|
|
313
|
+
is_access_restricted: boolean;
|
|
314
|
+
};
|
|
315
|
+
export type WsUserRestrictionItem = {
|
|
316
|
+
user_id: number;
|
|
317
|
+
camera_id: CameraExid;
|
|
318
|
+
is_user_access_restricted: boolean;
|
|
319
|
+
};
|
|
320
|
+
export type WsUserRestrictionUpdate = WsUserRestrictionItem[];
|
|
321
|
+
/**
|
|
322
|
+
* Backend WebSocket event payload:
|
|
323
|
+
* {
|
|
324
|
+
* user: {
|
|
325
|
+
* "someone@domain.com": {camera_id, is_access_restricted} OR [{...}, {...}]
|
|
326
|
+
* }
|
|
327
|
+
* }
|
|
328
|
+
*/
|
|
329
|
+
export type WsRestrictionChangedPayload = {
|
|
330
|
+
user: Record<Email, WsAccessRestrictionUpdate | WsUserRestrictionUpdate>;
|
|
331
|
+
};
|
|
332
|
+
export type ProjectUserWithRole = {
|
|
333
|
+
id: number;
|
|
334
|
+
email: string;
|
|
335
|
+
fullname: string;
|
|
336
|
+
company: {
|
|
337
|
+
id: number;
|
|
338
|
+
name: string;
|
|
339
|
+
exid: string;
|
|
340
|
+
};
|
|
341
|
+
permissions: string[];
|
|
342
|
+
role: Role;
|
|
343
|
+
subRoles: RoleSubRole[];
|
|
344
|
+
};
|
|
345
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type VendorModel = {
|
|
2
|
+
cameraCount: number;
|
|
3
|
+
exid: string;
|
|
4
|
+
h264Url: string;
|
|
5
|
+
jpgUrl: string;
|
|
6
|
+
name: string;
|
|
7
|
+
online: number;
|
|
8
|
+
playbackUrl: string;
|
|
9
|
+
};
|
|
10
|
+
export type VendorModelRequestPayload = {
|
|
11
|
+
sort: string;
|
|
12
|
+
};
|
|
13
|
+
export type VendorModelResponsePayload = {
|
|
14
|
+
data: VendorModel[];
|
|
15
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Camera, Media, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
export declare enum VideoWallItemType {
|
|
3
|
+
LiveView = "live",
|
|
4
|
+
Video = "video",
|
|
5
|
+
Image = "image"
|
|
6
|
+
}
|
|
7
|
+
export type VideoWallItem<T extends Camera | Media = Camera> = {
|
|
8
|
+
value: T;
|
|
9
|
+
type: VideoWallItemType;
|
|
10
|
+
};
|
|
11
|
+
export type VideoWallPresetGridConfig = {
|
|
12
|
+
items: VideoWallPresetItem[];
|
|
13
|
+
meta?: VideoWallPresetMeta;
|
|
14
|
+
};
|
|
15
|
+
export type VideoWallPresetItem = {
|
|
16
|
+
i: string | number;
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
w: number;
|
|
20
|
+
h: number;
|
|
21
|
+
camera: Camera;
|
|
22
|
+
weather?: Record<string, unknown>;
|
|
23
|
+
media?: Media;
|
|
24
|
+
moved?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type VideoWallPresetMeta = {
|
|
27
|
+
colNum: number;
|
|
28
|
+
rowCount: number;
|
|
29
|
+
tile: number;
|
|
30
|
+
template: string;
|
|
31
|
+
gridSize: number;
|
|
32
|
+
};
|
|
33
|
+
export type VideoWallSource = "default" | "widget";
|
|
34
|
+
export interface VideoWall {
|
|
35
|
+
id: number;
|
|
36
|
+
exid: string;
|
|
37
|
+
name: string;
|
|
38
|
+
source: VideoWallSource;
|
|
39
|
+
config: Record<string, any>;
|
|
40
|
+
insertedAt: string;
|
|
41
|
+
updatedAt: string;
|
|
42
|
+
user: {
|
|
43
|
+
id: number;
|
|
44
|
+
firstname: string;
|
|
45
|
+
lastname: string;
|
|
46
|
+
email: string;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export interface VideoWallListParams extends PaginationParams {
|
|
50
|
+
projectExid?: string;
|
|
51
|
+
id?: number;
|
|
52
|
+
exid?: string;
|
|
53
|
+
projectId?: number;
|
|
54
|
+
userId?: number;
|
|
55
|
+
name?: string;
|
|
56
|
+
project?: string;
|
|
57
|
+
user?: string;
|
|
58
|
+
source?: VideoWallSource;
|
|
59
|
+
}
|
|
60
|
+
export type VideoWallCreateUpdatePayload = {
|
|
61
|
+
projectExid?: string;
|
|
62
|
+
name: string;
|
|
63
|
+
source?: VideoWallSource;
|
|
64
|
+
config: Record<string, unknown>;
|
|
65
|
+
scope?: string;
|
|
66
|
+
};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { DateType } from "@evercam/api/types/time";
|
|
2
|
+
export type HistoryWeatherRequestPayload = {
|
|
3
|
+
day: string;
|
|
4
|
+
provider: WeatherProvider;
|
|
5
|
+
};
|
|
6
|
+
export type WeatherReportParams = {
|
|
7
|
+
startDate: string;
|
|
8
|
+
endDate: string;
|
|
9
|
+
weatherConditionIds?: number[];
|
|
10
|
+
minMinTemp?: number;
|
|
11
|
+
maxMinTemp?: number;
|
|
12
|
+
minMaxTemp?: number;
|
|
13
|
+
maxMaxTemp?: number;
|
|
14
|
+
minMinPrecip?: number;
|
|
15
|
+
maxMinPrecip?: number;
|
|
16
|
+
minMaxPrecip?: number;
|
|
17
|
+
maxMaxPrecip?: number;
|
|
18
|
+
minMinWindSpeed?: number;
|
|
19
|
+
maxMinWindSpeed?: number;
|
|
20
|
+
minMaxWindSpeed?: number;
|
|
21
|
+
maxMaxWindSpeed?: number;
|
|
22
|
+
minMinHumidity?: number;
|
|
23
|
+
maxMinHumidity?: number;
|
|
24
|
+
minMaxHumidity?: number;
|
|
25
|
+
maxMaxHumidity?: number;
|
|
26
|
+
minMinPressure?: number;
|
|
27
|
+
maxMinPressure?: number;
|
|
28
|
+
minMaxPressure?: number;
|
|
29
|
+
maxMaxPressure?: number;
|
|
30
|
+
minMinClouds?: number;
|
|
31
|
+
maxMinClouds?: number;
|
|
32
|
+
minMaxClouds?: number;
|
|
33
|
+
maxMaxClouds?: number;
|
|
34
|
+
minMaxUvIndex?: number;
|
|
35
|
+
maxMaxUvIndex?: number;
|
|
36
|
+
};
|
|
37
|
+
export declare enum WeatherReportScope {
|
|
38
|
+
Daily = "daily"
|
|
39
|
+
}
|
|
40
|
+
export type WeatherReportRequestPayload = WeatherReportParams & {
|
|
41
|
+
scope: WeatherReportScope;
|
|
42
|
+
includeRecent: boolean;
|
|
43
|
+
};
|
|
44
|
+
export type CurrentWeatherRequestPayload = {
|
|
45
|
+
provider: WeatherProvider;
|
|
46
|
+
includeForecast?: boolean;
|
|
47
|
+
forecastDays?: number;
|
|
48
|
+
};
|
|
49
|
+
export type WeatherHourlyItem = {
|
|
50
|
+
chanceoffog: number;
|
|
51
|
+
chanceoffrost: number;
|
|
52
|
+
chanceofhightemp: number;
|
|
53
|
+
chanceofovercast: number;
|
|
54
|
+
chanceofrain: number;
|
|
55
|
+
chanceofremdry: number;
|
|
56
|
+
chanceofsnow: number;
|
|
57
|
+
chanceofsunshine: number;
|
|
58
|
+
chanceofthunder: number;
|
|
59
|
+
chanceofwindy: number;
|
|
60
|
+
clouds?: number;
|
|
61
|
+
dewpoint: number;
|
|
62
|
+
feelsLike?: number;
|
|
63
|
+
heatindex: number;
|
|
64
|
+
hour?: number;
|
|
65
|
+
humidity?: number;
|
|
66
|
+
isRequestedWeather?: boolean;
|
|
67
|
+
precip: number;
|
|
68
|
+
pressure?: number;
|
|
69
|
+
rain?: HourlyReading;
|
|
70
|
+
snow?: HourlyReading;
|
|
71
|
+
source: string;
|
|
72
|
+
temp?: number;
|
|
73
|
+
uvIndex: number;
|
|
74
|
+
weather?: WeatherSummary;
|
|
75
|
+
windchill: number;
|
|
76
|
+
windDegree?: number;
|
|
77
|
+
windDir: string;
|
|
78
|
+
windgust: number;
|
|
79
|
+
windSpeed?: number;
|
|
80
|
+
wind?: {
|
|
81
|
+
speed: number;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export type WeatherResponsePayload = Array<WeatherHourlyItem>;
|
|
85
|
+
export type WeatherSummary = {
|
|
86
|
+
id?: number;
|
|
87
|
+
main?: string;
|
|
88
|
+
description?: string;
|
|
89
|
+
temperature?: number;
|
|
90
|
+
icon?: string | string[];
|
|
91
|
+
weatherIndex?: number;
|
|
92
|
+
rain?: HourlyReading;
|
|
93
|
+
};
|
|
94
|
+
export type HourlyReading = {
|
|
95
|
+
"1h"?: number;
|
|
96
|
+
"3h"?: number;
|
|
97
|
+
};
|
|
98
|
+
export declare enum WeatherProvider {
|
|
99
|
+
WeatherStack = "weather_stack",
|
|
100
|
+
XWeather = "xweather"
|
|
101
|
+
}
|
|
102
|
+
export type Weatherstatus = {
|
|
103
|
+
description: string;
|
|
104
|
+
hour: DateType;
|
|
105
|
+
id: number;
|
|
106
|
+
temp: number;
|
|
107
|
+
};
|
|
108
|
+
export type WeatherDataResponse = {
|
|
109
|
+
minFeelsLike: number;
|
|
110
|
+
id: number;
|
|
111
|
+
sunhour: number;
|
|
112
|
+
maxFeelsLike: number;
|
|
113
|
+
minWindchill: number;
|
|
114
|
+
minPressure: number;
|
|
115
|
+
minWindDegree: number;
|
|
116
|
+
minDewpoint: number;
|
|
117
|
+
maxClouds: number;
|
|
118
|
+
maxWindgust: number;
|
|
119
|
+
minWindSpeed: number;
|
|
120
|
+
astro: {
|
|
121
|
+
moonIllumination: number;
|
|
122
|
+
moonPhase: string;
|
|
123
|
+
moonrise: string;
|
|
124
|
+
moonset: string;
|
|
125
|
+
sunrise: string;
|
|
126
|
+
sunset: string;
|
|
127
|
+
};
|
|
128
|
+
insertedAt: string;
|
|
129
|
+
maxDewpoint: number;
|
|
130
|
+
maxTemp: number;
|
|
131
|
+
minClouds: number;
|
|
132
|
+
weather: Weatherstatus[];
|
|
133
|
+
minHeatindex: number;
|
|
134
|
+
minPrecip: number;
|
|
135
|
+
maxWindDegree: number;
|
|
136
|
+
maxUvIndex: number;
|
|
137
|
+
minHumidity: number;
|
|
138
|
+
maxWindSpeed: number;
|
|
139
|
+
minWindgust: number;
|
|
140
|
+
updatedAt: DateType;
|
|
141
|
+
maxPrecip: number;
|
|
142
|
+
uvIndex: number;
|
|
143
|
+
maxHeatindex: number;
|
|
144
|
+
minTemp: number;
|
|
145
|
+
date: string;
|
|
146
|
+
totalsnow: number;
|
|
147
|
+
maxPressure: number;
|
|
148
|
+
maxWindchill: number;
|
|
149
|
+
maxHumidity: number;
|
|
150
|
+
avgtemp: number;
|
|
151
|
+
projectId: number;
|
|
152
|
+
minUvIndex: number;
|
|
153
|
+
};
|