@evercam/api 1.0.0-ae97ae0a0 → 1.0.0-api-fixes-7de7fc3dd
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/dist/api/api/adminApi.d.ts +61 -57
- package/dist/api/api/aiApi.d.ts +1 -0
- package/dist/api/api/evercamApi.d.ts +26 -29
- package/dist/api/api/ingestApi.d.ts +3 -0
- package/dist/api/types/aconex.d.ts +2 -1
- package/dist/api/types/admin.d.ts +20 -4
- package/dist/api/types/analytics.d.ts +2 -1
- package/dist/api/types/anpr.d.ts +0 -1
- package/dist/api/types/auditLogs.d.ts +44 -37
- package/dist/api/types/bim.d.ts +48 -37
- package/dist/api/types/camera.d.ts +56 -43
- package/dist/api/types/comments.d.ts +24 -16
- package/dist/api/types/company.d.ts +23 -12
- package/dist/api/types/compare.d.ts +27 -23
- package/dist/api/types/hdd.d.ts +58 -24
- package/dist/api/types/kit.d.ts +19 -15
- package/dist/api/types/media.d.ts +13 -0
- package/dist/api/types/notification.d.ts +34 -28
- package/dist/api/types/nvr.d.ts +28 -0
- package/dist/api/types/oauth.d.ts +1 -0
- package/dist/api/types/progressPhoto.d.ts +24 -21
- package/dist/api/types/project.d.ts +57 -14
- package/dist/api/types/recording.d.ts +4 -3
- package/dist/api/types/roi.d.ts +2 -1
- package/dist/api/types/router.d.ts +23 -2
- package/dist/api/types/shared.d.ts +50 -43
- package/dist/api/types/sim.d.ts +1 -4
- package/dist/api/types/snapshots.d.ts +55 -8
- package/dist/api/types/storageProvider.d.ts +15 -3
- package/dist/api/types/timelapse.d.ts +38 -12
- package/dist/api/types/user.d.ts +76 -64
- package/dist/api/types/videoWall.d.ts +8 -8
- package/dist/api/types/weather.d.ts +90 -16
- package/dist/api/types/widget.d.ts +56 -47
- package/dist/index.js +259 -238
- 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/types/components.d.ts +6 -1
- package/package.json +1 -1
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@evercam/api/types";
|
|
2
2
|
export type Kit = {
|
|
3
3
|
alarms: KitAlarm[];
|
|
4
4
|
countryCode: CountryCode;
|
|
@@ -307,10 +307,16 @@ export type KitCreatePayload = {
|
|
|
307
307
|
};
|
|
308
308
|
export type KitMetricStatsEntry = {
|
|
309
309
|
timestamp: string;
|
|
310
|
-
voltage
|
|
311
|
-
current
|
|
312
|
-
panelVoltage
|
|
313
|
-
panelPower
|
|
310
|
+
voltage?: number;
|
|
311
|
+
current?: number;
|
|
312
|
+
panelVoltage?: number;
|
|
313
|
+
panelPower?: number;
|
|
314
|
+
yieldTotal?: number;
|
|
315
|
+
yieldToday?: number;
|
|
316
|
+
yieldYesterday?: number;
|
|
317
|
+
maxPowerToday?: number;
|
|
318
|
+
maxPowerYesterday?: number;
|
|
319
|
+
stateOfCharge?: number;
|
|
314
320
|
};
|
|
315
321
|
export type KitUpdatePayload = {
|
|
316
322
|
countryId: number;
|
|
@@ -332,12 +338,8 @@ export type KitStorage = {
|
|
|
332
338
|
serial: string;
|
|
333
339
|
status: string;
|
|
334
340
|
type: string;
|
|
335
|
-
metadata:
|
|
336
|
-
formFactor: string;
|
|
337
|
-
};
|
|
341
|
+
metadata: Record<string, string>;
|
|
338
342
|
model: string;
|
|
339
|
-
insertedAt: string;
|
|
340
|
-
updatedAt: string;
|
|
341
343
|
vendor: string;
|
|
342
344
|
kitId: number;
|
|
343
345
|
capacity: number;
|
|
@@ -345,8 +347,8 @@ export type KitStorage = {
|
|
|
345
347
|
tran: KitStorageTransport;
|
|
346
348
|
};
|
|
347
349
|
export type KitFootageRequestPayload = {
|
|
348
|
-
cameraId
|
|
349
|
-
storageId
|
|
350
|
+
cameraId?: number;
|
|
351
|
+
storageId?: number;
|
|
350
352
|
};
|
|
351
353
|
export type KitFootage = {
|
|
352
354
|
id: number;
|
|
@@ -367,6 +369,7 @@ export type KitBox = {
|
|
|
367
369
|
gatewaySerial: string;
|
|
368
370
|
gatewayMac: string;
|
|
369
371
|
gatewayConfig: Record<string, unknown> | null;
|
|
372
|
+
kitSerials?: string[];
|
|
370
373
|
insertedAt: string;
|
|
371
374
|
updatedAt: string;
|
|
372
375
|
};
|
|
@@ -377,7 +380,8 @@ export type KitBoxCreatePayload = {
|
|
|
377
380
|
gatewayConfig?: Record<string, unknown>;
|
|
378
381
|
};
|
|
379
382
|
export type KitBoxQueryParams = PaginationParams & {
|
|
380
|
-
id
|
|
381
|
-
gatewaySerial
|
|
382
|
-
gatewayMac
|
|
383
|
+
id?: string;
|
|
384
|
+
gatewaySerial?: string;
|
|
385
|
+
gatewayMac?: string;
|
|
386
|
+
hasKits?: boolean;
|
|
383
387
|
};
|
|
@@ -15,6 +15,7 @@ export type Media = {
|
|
|
15
15
|
url?: string;
|
|
16
16
|
exid?: MediaExid;
|
|
17
17
|
embedCode?: string;
|
|
18
|
+
embedTime?: boolean;
|
|
18
19
|
fileName?: string;
|
|
19
20
|
format?: string;
|
|
20
21
|
frames?: number;
|
|
@@ -26,6 +27,12 @@ export type Media = {
|
|
|
26
27
|
thumbnailUrl?: string;
|
|
27
28
|
mediaUrl?: string;
|
|
28
29
|
camera?: string;
|
|
30
|
+
notes?: string | null;
|
|
31
|
+
category?: string | null;
|
|
32
|
+
isUrgent?: boolean;
|
|
33
|
+
bucket?: string | null;
|
|
34
|
+
sourceProduct?: string | null;
|
|
35
|
+
featureType?: string | null;
|
|
29
36
|
};
|
|
30
37
|
export declare enum MediaType {
|
|
31
38
|
EditedImage = "edit",
|
|
@@ -70,8 +77,12 @@ export type MediaFilterQueryParams = {
|
|
|
70
77
|
toDate?: string;
|
|
71
78
|
cameraName?: string;
|
|
72
79
|
requesterEmail?: string;
|
|
80
|
+
requestorName?: string;
|
|
73
81
|
type?: MediaType;
|
|
82
|
+
status?: string;
|
|
74
83
|
cameraExid?: string;
|
|
84
|
+
projectExid?: string;
|
|
85
|
+
projectName?: string;
|
|
75
86
|
page?: number;
|
|
76
87
|
limit?: number;
|
|
77
88
|
camera?: string;
|
|
@@ -79,7 +90,9 @@ export type MediaFilterQueryParams = {
|
|
|
79
90
|
export type MediaUpdateRequestPayload = {
|
|
80
91
|
name?: string;
|
|
81
92
|
title?: string;
|
|
93
|
+
status?: number;
|
|
82
94
|
public?: boolean;
|
|
95
|
+
url?: string;
|
|
83
96
|
};
|
|
84
97
|
export type MediaCreateRequestPayload = {
|
|
85
98
|
fromDate: DateType;
|
|
@@ -5,53 +5,59 @@ export declare enum NotificationType {
|
|
|
5
5
|
TimelapseCreated = "timelapse_created",
|
|
6
6
|
TimelapseFailed = "timelapse_failed",
|
|
7
7
|
DroneProcessing = "drone_processing_done",
|
|
8
|
-
Processing360 = "three_sixty_done"
|
|
8
|
+
Processing360 = "three_sixty_done",
|
|
9
|
+
Other = "other"
|
|
9
10
|
}
|
|
10
|
-
export
|
|
11
|
+
export type NotificationContextBase = {
|
|
11
12
|
cameraExid?: string;
|
|
12
13
|
projectExid?: string;
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
cameraName?: string;
|
|
15
|
+
};
|
|
16
|
+
export type CameraShareContext = NotificationContextBase & {
|
|
15
17
|
cameraExid: string;
|
|
16
18
|
projectExid: string;
|
|
17
19
|
shareId: number;
|
|
18
|
-
}
|
|
19
|
-
export
|
|
20
|
+
};
|
|
21
|
+
export type CameraStatusChangeContext = NotificationContextBase & {
|
|
20
22
|
cameraExid: string;
|
|
21
23
|
projectExid: string;
|
|
22
24
|
newStatus: string;
|
|
23
|
-
}
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
export interface TimelapseCreatedContext extends NotificationContextBase {
|
|
25
|
+
};
|
|
26
|
+
export type MentionContext = NotificationContextBase;
|
|
27
|
+
export type TimelapseCreatedContext = NotificationContextBase & {
|
|
27
28
|
cameraExid: string;
|
|
28
29
|
projectExid: string;
|
|
29
30
|
archiveExid: string;
|
|
30
|
-
}
|
|
31
|
-
export
|
|
31
|
+
};
|
|
32
|
+
export type TimelapseFailedContext = NotificationContextBase & {
|
|
32
33
|
cameraExid: string;
|
|
33
34
|
projectExid: string;
|
|
34
|
-
}
|
|
35
|
-
export
|
|
35
|
+
};
|
|
36
|
+
export type DroneProcessingContext = NotificationContextBase & {
|
|
36
37
|
projectExid: string;
|
|
37
38
|
droneDate: string;
|
|
38
|
-
}
|
|
39
|
-
export
|
|
39
|
+
};
|
|
40
|
+
export type Processing360Context = NotificationContextBase & {
|
|
40
41
|
projectExid: string;
|
|
41
42
|
date: string;
|
|
42
43
|
floor: string;
|
|
43
|
-
}
|
|
44
|
+
};
|
|
44
45
|
export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context;
|
|
45
46
|
export type Notification = {
|
|
46
|
-
id
|
|
47
|
-
type
|
|
48
|
-
insertedAt
|
|
49
|
-
initiatorId
|
|
50
|
-
initiatorFullname
|
|
51
|
-
initiatorEmail
|
|
52
|
-
targetId
|
|
53
|
-
targetFullname
|
|
54
|
-
targetEmail
|
|
55
|
-
readTimestamp
|
|
56
|
-
context
|
|
47
|
+
id?: number;
|
|
48
|
+
type?: NotificationType;
|
|
49
|
+
insertedAt?: string;
|
|
50
|
+
initiatorId?: number;
|
|
51
|
+
initiatorFullname?: string;
|
|
52
|
+
initiatorEmail?: string;
|
|
53
|
+
targetId?: number;
|
|
54
|
+
targetFullname?: string;
|
|
55
|
+
targetEmail?: string;
|
|
56
|
+
readTimestamp?: string | null;
|
|
57
|
+
context?: NotificationContext;
|
|
58
|
+
};
|
|
59
|
+
export type NotificationsListParams = {
|
|
60
|
+
page?: number;
|
|
61
|
+
limit?: number;
|
|
62
|
+
sort?: string;
|
|
57
63
|
};
|
package/dist/api/types/nvr.d.ts
CHANGED
|
@@ -24,6 +24,34 @@ export declare enum NvrHddStatus {
|
|
|
24
24
|
Ok = "ok",
|
|
25
25
|
Unformatted = "unformatted"
|
|
26
26
|
}
|
|
27
|
+
export type NvrSetting = {
|
|
28
|
+
exid: string;
|
|
29
|
+
name: string;
|
|
30
|
+
externalHost: string;
|
|
31
|
+
model: string;
|
|
32
|
+
deviceName: string;
|
|
33
|
+
macAddress: string;
|
|
34
|
+
firmwareVersion: string;
|
|
35
|
+
resolution: string;
|
|
36
|
+
bitrateType: string;
|
|
37
|
+
videoQuality: string;
|
|
38
|
+
frameRate: number;
|
|
39
|
+
bitrate: number;
|
|
40
|
+
videoEncoding: string;
|
|
41
|
+
hddName: string;
|
|
42
|
+
hddCapacity: string;
|
|
43
|
+
freeSpace: string;
|
|
44
|
+
hddStatus: string;
|
|
45
|
+
hddProperty: string;
|
|
46
|
+
nvrStatus: string;
|
|
47
|
+
timeMode: string;
|
|
48
|
+
localTime: string;
|
|
49
|
+
timezone: string;
|
|
50
|
+
addressingFormatType: string;
|
|
51
|
+
hostName: string;
|
|
52
|
+
portNo: string;
|
|
53
|
+
synchronizeInterval: string;
|
|
54
|
+
};
|
|
27
55
|
export type NvrCreatePayload = {
|
|
28
56
|
serial?: string;
|
|
29
57
|
httpUrl: string;
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import { Automation,
|
|
1
|
+
import { Automation, DateType, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
3
3
|
cameraExids?: string;
|
|
4
4
|
notifyDays?: string;
|
|
5
|
-
compareDelay?: AutomationType;
|
|
6
5
|
notifyTime?: string;
|
|
6
|
+
timezone?: string;
|
|
7
|
+
name?: string;
|
|
7
8
|
provider?: string;
|
|
8
9
|
type?: string;
|
|
9
10
|
config?: {
|
|
10
|
-
compareDelay?: AutomationType;
|
|
11
|
-
period?: number;
|
|
12
11
|
recipients?: string;
|
|
13
|
-
projectId?: number;
|
|
14
12
|
companyId?: number;
|
|
15
|
-
|
|
13
|
+
projectId?: number;
|
|
14
|
+
categoryId?: number;
|
|
16
15
|
};
|
|
17
|
-
subject?: string;
|
|
18
16
|
isPaused?: boolean;
|
|
19
|
-
timezone?: string;
|
|
20
17
|
};
|
|
21
18
|
export type ProgressPhotosUnSubscribeParams = {
|
|
22
19
|
email: string;
|
|
@@ -37,30 +34,35 @@ export type CameraOption = {
|
|
|
37
34
|
exid: string;
|
|
38
35
|
name: string;
|
|
39
36
|
};
|
|
40
|
-
export
|
|
37
|
+
export type ProgressPhotoItemConfig = {
|
|
38
|
+
recipients?: string;
|
|
39
|
+
companyId?: number;
|
|
40
|
+
projectId?: number;
|
|
41
|
+
};
|
|
42
|
+
export type ProgressPhotoItem = {
|
|
41
43
|
id: number;
|
|
42
44
|
cameras: CameraOption[] | string[] | string;
|
|
43
45
|
insertedAt: string;
|
|
46
|
+
name: string;
|
|
44
47
|
provider: string;
|
|
45
|
-
config:
|
|
46
|
-
recipients: string | string[];
|
|
47
|
-
sendSnapshotAs: string;
|
|
48
|
-
};
|
|
48
|
+
config: ProgressPhotoItemConfig;
|
|
49
49
|
isPaused: boolean;
|
|
50
50
|
notifyDays: string | string[];
|
|
51
51
|
notifyTime: string;
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
apiId: string;
|
|
53
|
+
apiKey: string;
|
|
54
54
|
timezone: string;
|
|
55
55
|
exid: string;
|
|
56
56
|
fullname: string;
|
|
57
|
-
}
|
|
57
|
+
};
|
|
58
58
|
export type ProgressPhotosQueryParams = PaginationParams & {
|
|
59
|
-
fullname
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
fullname?: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
recipients?: string;
|
|
62
|
+
notifyTime?: string;
|
|
63
|
+
timezone?: string;
|
|
64
|
+
cameras?: string;
|
|
65
|
+
sort?: string;
|
|
64
66
|
};
|
|
65
67
|
export type progressPhotosHistoryQueryParams = {
|
|
66
68
|
insertedAt: DateType[];
|
|
@@ -75,4 +77,5 @@ export type ProgressPhotosHistory = {
|
|
|
75
77
|
failedCameraIds: string;
|
|
76
78
|
subject: string;
|
|
77
79
|
recipients: string;
|
|
80
|
+
insertedAt: string;
|
|
78
81
|
};
|
|
@@ -66,7 +66,7 @@ export declare enum ProjectArchiveTier {
|
|
|
66
66
|
No = "No"
|
|
67
67
|
}
|
|
68
68
|
export type UpdateCameraRestrictionPayload = {
|
|
69
|
-
isAccessRestricted
|
|
69
|
+
isAccessRestricted: boolean;
|
|
70
70
|
};
|
|
71
71
|
export type Logo = {
|
|
72
72
|
id: number;
|
|
@@ -95,7 +95,7 @@ export declare enum ProjectFeatureFlag {
|
|
|
95
95
|
NoGdpr = "no_gdpr"
|
|
96
96
|
}
|
|
97
97
|
export type ProjectBatteryReading = {
|
|
98
|
-
exid:
|
|
98
|
+
exid: string;
|
|
99
99
|
voltage: number;
|
|
100
100
|
lastSeen: DateType;
|
|
101
101
|
};
|
|
@@ -164,11 +164,11 @@ export type ProjectRole = {
|
|
|
164
164
|
name: string;
|
|
165
165
|
};
|
|
166
166
|
export type ProjectMember = {
|
|
167
|
-
id:
|
|
167
|
+
id: number;
|
|
168
168
|
key?: string;
|
|
169
169
|
email: string;
|
|
170
170
|
fullname: string;
|
|
171
|
-
lastSeenAt?: string;
|
|
171
|
+
lastSeenAt?: string | null;
|
|
172
172
|
role: ProjectRole;
|
|
173
173
|
permissions?: string[];
|
|
174
174
|
subRoles?: Array<{
|
|
@@ -178,9 +178,11 @@ export type ProjectMember = {
|
|
|
178
178
|
company?: {
|
|
179
179
|
name: string;
|
|
180
180
|
} | null;
|
|
181
|
+
telephone?: string | null;
|
|
182
|
+
persona?: string | null;
|
|
181
183
|
};
|
|
182
184
|
export type ProjectInvite = {
|
|
183
|
-
id?:
|
|
185
|
+
id?: number;
|
|
184
186
|
email: string;
|
|
185
187
|
role?: ProjectRole;
|
|
186
188
|
permissions?: string[];
|
|
@@ -194,6 +196,7 @@ export type ProjectMembersResponsePayload = {
|
|
|
194
196
|
users: ProjectMember[];
|
|
195
197
|
invites: ProjectInvite[];
|
|
196
198
|
errors: ProjectUserError[];
|
|
199
|
+
emailFailures?: string[];
|
|
197
200
|
};
|
|
198
201
|
export type ProjectMembersRequestPayload = {
|
|
199
202
|
roleId: number;
|
|
@@ -224,19 +227,36 @@ export type ProjectUsersResponsePayload = {
|
|
|
224
227
|
errors: ProjectUserError[];
|
|
225
228
|
};
|
|
226
229
|
export type ProjectStorageQueryParams = PaginationParams & {
|
|
227
|
-
cameraName
|
|
228
|
-
cameraExid
|
|
230
|
+
cameraName?: string;
|
|
231
|
+
cameraExid?: CameraExid;
|
|
232
|
+
projectName?: string;
|
|
233
|
+
projectExid?: string;
|
|
234
|
+
archiveTier?: string;
|
|
235
|
+
status?: ProjectStorageStatus;
|
|
236
|
+
requester?: string;
|
|
237
|
+
createdAtFrom?: string;
|
|
238
|
+
createdAtTo?: string;
|
|
239
|
+
scheduleAtFrom?: string;
|
|
240
|
+
scheduleAtTo?: string;
|
|
241
|
+
sort?: string;
|
|
242
|
+
};
|
|
243
|
+
export type ProjectStorageCamera = {
|
|
244
|
+
archiveId: number;
|
|
245
|
+
name: string;
|
|
246
|
+
exid: string;
|
|
247
|
+
errorMessage?: string;
|
|
229
248
|
status: ProjectStorageStatus;
|
|
230
249
|
};
|
|
231
250
|
export type ProjectStorage = {
|
|
232
251
|
id: number;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
252
|
+
exid: string;
|
|
253
|
+
name: string;
|
|
254
|
+
requester: string;
|
|
255
|
+
archiveTier: string;
|
|
256
|
+
scheduleAt: string;
|
|
257
|
+
endDate: string;
|
|
258
|
+
insertedAt: string;
|
|
259
|
+
cameras: ProjectStorageCamera[];
|
|
240
260
|
};
|
|
241
261
|
export declare enum ProjectStorageStatus {
|
|
242
262
|
New = "new",
|
|
@@ -245,3 +265,26 @@ export declare enum ProjectStorageStatus {
|
|
|
245
265
|
Completed = "completed",
|
|
246
266
|
Failed = "failed"
|
|
247
267
|
}
|
|
268
|
+
export type ProjectTransferOwnershipResponse = {
|
|
269
|
+
project: {
|
|
270
|
+
id: number;
|
|
271
|
+
exid: string;
|
|
272
|
+
name: string;
|
|
273
|
+
status: string;
|
|
274
|
+
userId: number;
|
|
275
|
+
zohoId: string | null;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
export type ProjectTeamMembersResponse = {
|
|
279
|
+
exid?: string;
|
|
280
|
+
name?: string;
|
|
281
|
+
cameras?: Array<{
|
|
282
|
+
exid?: string;
|
|
283
|
+
name?: string;
|
|
284
|
+
shares?: Array<{
|
|
285
|
+
email?: string;
|
|
286
|
+
fullname?: string;
|
|
287
|
+
rights?: string;
|
|
288
|
+
}>;
|
|
289
|
+
}>;
|
|
290
|
+
};
|
|
@@ -2,15 +2,16 @@ import { ApiCredentials } from "@evercam/api/types";
|
|
|
2
2
|
import { CancelToken } from "axios";
|
|
3
3
|
export type Snapshot = {
|
|
4
4
|
createdAt: string;
|
|
5
|
-
data: string;
|
|
5
|
+
data: string | null;
|
|
6
6
|
status?: string;
|
|
7
7
|
};
|
|
8
|
-
export type
|
|
8
|
+
export type SnapshotRequestPayload = {
|
|
9
9
|
apiKey?: string;
|
|
10
10
|
apiId?: string;
|
|
11
11
|
token?: string;
|
|
12
12
|
cancelToken?: object;
|
|
13
13
|
includeImage?: boolean;
|
|
14
|
+
view?: boolean;
|
|
14
15
|
};
|
|
15
16
|
export type AvailableDaysRequestPayload = {
|
|
16
17
|
cameraId: string;
|
|
@@ -36,7 +37,7 @@ export type AvailableHoursResponsePayload = {
|
|
|
36
37
|
export type NearestSnapshotResponsePayload = {
|
|
37
38
|
snapshots: Array<{
|
|
38
39
|
createdAt: string;
|
|
39
|
-
data: string;
|
|
40
|
+
data: string | null;
|
|
40
41
|
notes?: string;
|
|
41
42
|
}>;
|
|
42
43
|
};
|
package/dist/api/types/roi.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ export declare enum RoiType {
|
|
|
3
3
|
AnprContext = "anpr_context",
|
|
4
4
|
ExclusionZone = "exclusion_zone",
|
|
5
5
|
WorkflowArea = "workflow_area",
|
|
6
|
-
SiteAnalytics = "site_analytics"
|
|
6
|
+
SiteAnalytics = "site_analytics",
|
|
7
|
+
Ppe = "ppe_roi"
|
|
7
8
|
}
|
|
8
9
|
export declare enum RoiShapeType {
|
|
9
10
|
Polygon = "polygon",
|
|
@@ -8,11 +8,14 @@ export type SimProvider = {
|
|
|
8
8
|
export type Router = {
|
|
9
9
|
id?: number;
|
|
10
10
|
kitId: number | null;
|
|
11
|
+
kitSerial?: string;
|
|
12
|
+
kitName?: string;
|
|
11
13
|
routerType: string;
|
|
12
14
|
routerUserId: string;
|
|
13
15
|
routerPassword: string;
|
|
14
16
|
serialNumber: number | null;
|
|
15
17
|
rmsUrl?: string;
|
|
18
|
+
rmsId?: number;
|
|
16
19
|
externalHost?: string;
|
|
17
20
|
routerHttpPort: number | null;
|
|
18
21
|
vpnPassword: string;
|
|
@@ -29,8 +32,12 @@ export type Router = {
|
|
|
29
32
|
sims: Array<Pick<Sim, "id" | "number">>;
|
|
30
33
|
billPayers?: Array<RouterBillPayer>;
|
|
31
34
|
simProviders?: Array<SimProvider>;
|
|
32
|
-
projects?: Pick<Project, "exid" | "
|
|
33
|
-
cameras?: Pick<Camera, "id" | "name">
|
|
35
|
+
projects?: Pick<Project, "exid" | "name">[];
|
|
36
|
+
cameras?: Pick<Camera, "id" | "name"> & {
|
|
37
|
+
exid: string;
|
|
38
|
+
}[];
|
|
39
|
+
lastSms?: string;
|
|
40
|
+
lastSmsAt?: string;
|
|
34
41
|
};
|
|
35
42
|
export declare enum PowerType {
|
|
36
43
|
Mains = "mains",
|
|
@@ -55,6 +62,20 @@ export type RouterQueryParams = PaginationParams & {
|
|
|
55
62
|
routerType: string;
|
|
56
63
|
vpnServer: string;
|
|
57
64
|
serialNumber: string;
|
|
65
|
+
kitSerial: string;
|
|
66
|
+
kitName: string;
|
|
67
|
+
cameras: string;
|
|
68
|
+
projects: string;
|
|
69
|
+
sims: string;
|
|
70
|
+
billPayers: string;
|
|
71
|
+
lastSms: string;
|
|
72
|
+
lastSmsAt: string;
|
|
73
|
+
hasBattery: string;
|
|
74
|
+
powerType: PowerType;
|
|
75
|
+
powerSchedule: PowerSchedule;
|
|
76
|
+
status: RouterStatus;
|
|
77
|
+
routerHttpPort: string;
|
|
78
|
+
sort: string;
|
|
58
79
|
};
|
|
59
80
|
export type RouterCreatePayload = {
|
|
60
81
|
serialNumber: number;
|
|
@@ -13,51 +13,58 @@ export type JsonObject = {
|
|
|
13
13
|
};
|
|
14
14
|
export type JsonArray = JsonValue[];
|
|
15
15
|
export type BatteryReading = {
|
|
16
|
-
id
|
|
17
|
-
voltage
|
|
18
|
-
datetime
|
|
19
|
-
serialNo
|
|
20
|
-
iValue
|
|
21
|
-
vpvValue
|
|
22
|
-
ppvValue
|
|
23
|
-
csValue
|
|
24
|
-
errValue
|
|
25
|
-
h19Value
|
|
26
|
-
h20Value
|
|
27
|
-
h21Value
|
|
28
|
-
h22Value
|
|
29
|
-
h23Value
|
|
30
|
-
ilValue
|
|
31
|
-
mpptValue
|
|
32
|
-
loadValue
|
|
33
|
-
pValue
|
|
34
|
-
consumedAmphours
|
|
35
|
-
socValue
|
|
36
|
-
timeToGo
|
|
37
|
-
alarm
|
|
38
|
-
relay
|
|
39
|
-
arValue
|
|
40
|
-
bmvValue
|
|
41
|
-
h1Value
|
|
42
|
-
h2Value
|
|
43
|
-
h3Value
|
|
44
|
-
h4Value
|
|
45
|
-
h5Value
|
|
46
|
-
h6Value
|
|
47
|
-
h7Value
|
|
48
|
-
h8Value
|
|
49
|
-
h9Value
|
|
50
|
-
h10Value
|
|
51
|
-
h11Value
|
|
52
|
-
};
|
|
53
|
-
export
|
|
16
|
+
id?: number;
|
|
17
|
+
voltage?: number;
|
|
18
|
+
datetime?: DateType;
|
|
19
|
+
serialNo?: string;
|
|
20
|
+
iValue?: number;
|
|
21
|
+
vpvValue?: number;
|
|
22
|
+
ppvValue?: number;
|
|
23
|
+
csValue?: number;
|
|
24
|
+
errValue?: number;
|
|
25
|
+
h19Value?: number;
|
|
26
|
+
h20Value?: number;
|
|
27
|
+
h21Value?: number;
|
|
28
|
+
h22Value?: number;
|
|
29
|
+
h23Value?: number;
|
|
30
|
+
ilValue?: number;
|
|
31
|
+
mpptValue?: number;
|
|
32
|
+
loadValue?: number;
|
|
33
|
+
pValue?: number;
|
|
34
|
+
consumedAmphours?: number;
|
|
35
|
+
socValue?: number;
|
|
36
|
+
timeToGo?: number;
|
|
37
|
+
alarm?: string;
|
|
38
|
+
relay?: string;
|
|
39
|
+
arValue?: number;
|
|
40
|
+
bmvValue?: number;
|
|
41
|
+
h1Value?: number;
|
|
42
|
+
h2Value?: number;
|
|
43
|
+
h3Value?: number;
|
|
44
|
+
h4Value?: number;
|
|
45
|
+
h5Value?: number;
|
|
46
|
+
h6Value?: number;
|
|
47
|
+
h7Value?: number;
|
|
48
|
+
h8Value?: number;
|
|
49
|
+
h9Value?: number;
|
|
50
|
+
h10Value?: number;
|
|
51
|
+
h11Value?: number;
|
|
52
|
+
};
|
|
53
|
+
export type BatteryReadingRequestPayload = {
|
|
54
|
+
fromDate: string;
|
|
55
|
+
toDate: string;
|
|
56
|
+
sort?: string;
|
|
57
|
+
page?: number;
|
|
58
|
+
limit?: number;
|
|
59
|
+
};
|
|
60
|
+
export type PaginatedItems<T> = {
|
|
54
61
|
from: number;
|
|
55
62
|
items: Array<T>;
|
|
56
63
|
limit: number;
|
|
57
64
|
page: number;
|
|
58
65
|
to: number;
|
|
59
66
|
total: number;
|
|
60
|
-
}
|
|
67
|
+
};
|
|
61
68
|
export declare enum UnitSystem {
|
|
62
69
|
Imperial = "imperial",
|
|
63
70
|
Metric = "metric"
|
|
@@ -156,14 +163,14 @@ export type Exid = string;
|
|
|
156
163
|
export type EntityByExid<Entity extends unknown> = Record<Exid, Entity>;
|
|
157
164
|
export type BatteryVoltage = {
|
|
158
165
|
date: DateType;
|
|
159
|
-
|
|
160
|
-
|
|
166
|
+
maxValue: number;
|
|
167
|
+
minValue: number;
|
|
161
168
|
};
|
|
162
169
|
export type GlobalSearchQueryParams = PaginationParams & {
|
|
163
170
|
resource: "projects" | "users" | "cameras" | "companies" | "sims" | "routers";
|
|
164
171
|
term: string;
|
|
165
|
-
email
|
|
166
|
-
featureFlag
|
|
172
|
+
email?: string;
|
|
173
|
+
featureFlag?: string;
|
|
167
174
|
};
|
|
168
175
|
export type TimelineDateInterval = {
|
|
169
176
|
fromDate: string;
|
package/dist/api/types/sim.d.ts
CHANGED