@evercam/api 1.0.0-624ff9012 → 1.0.0-62d228551
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 +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +9 -0
- package/dist/api/api/adminApi.d.ts +56 -4
- package/dist/api/api/aiApi.d.ts +5 -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 +32 -11
- package/dist/api/api/ingestApi.d.ts +9 -4
- package/dist/api/types/360.d.ts +11 -1
- package/dist/api/types/analytics.d.ts +13 -2
- package/dist/api/types/axios.d.ts +14 -0
- package/dist/api/types/camera.d.ts +14 -3
- package/dist/api/types/comments.d.ts +18 -2
- package/dist/api/types/company.d.ts +29 -1
- package/dist/api/types/countries.d.ts +0 -7
- package/dist/api/types/detections.d.ts +1 -2
- package/dist/api/types/errors.d.ts +1 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/kit.d.ts +34 -7
- package/dist/api/types/procore.d.ts +13 -10
- package/dist/api/types/progressPhoto.d.ts +20 -8
- package/dist/api/types/project.d.ts +1 -0
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/shared.d.ts +1 -6
- package/dist/api/types/siteAnalytics.d.ts +3 -2
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/streaming.d.ts +1 -2
- package/dist/api/types/user.d.ts +1 -6
- package/dist/api/types/widget.d.ts +21 -2
- package/dist/index.js +954 -644
- 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 +10 -1
- package/package.json +4 -3
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project,
|
|
1
|
+
import { CameraExid, CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@/types";
|
|
2
2
|
export type Kit = {
|
|
3
3
|
alarms: KitAlarm[];
|
|
4
4
|
countryCode: CountryCode;
|
|
5
5
|
countryId: CountryId;
|
|
6
6
|
countryName: string;
|
|
7
|
-
countryRegion:
|
|
7
|
+
countryRegion: KitRegion;
|
|
8
8
|
id?: number;
|
|
9
9
|
jobId: number;
|
|
10
10
|
name: string;
|
|
@@ -17,6 +17,8 @@ export type Kit = {
|
|
|
17
17
|
status: KitStatus;
|
|
18
18
|
powerSchedule: Schedule;
|
|
19
19
|
tags: Tag[];
|
|
20
|
+
storages: KitStorage[];
|
|
21
|
+
createdAt: string;
|
|
20
22
|
};
|
|
21
23
|
export declare enum KitStatus {
|
|
22
24
|
New = "new",
|
|
@@ -24,18 +26,24 @@ export declare enum KitStatus {
|
|
|
24
26
|
Deployed = "deployed",
|
|
25
27
|
Decommissioned = "decommissioned"
|
|
26
28
|
}
|
|
29
|
+
export declare enum KitRegion {
|
|
30
|
+
APAC = "apac",
|
|
31
|
+
EMEA = "emea",
|
|
32
|
+
LATAM = "latam",
|
|
33
|
+
US = "na"
|
|
34
|
+
}
|
|
27
35
|
export declare enum KitAlarm {
|
|
28
36
|
NvrOffline = "nvr_offline",
|
|
37
|
+
OfflineScheduled = "offline_scheduled",
|
|
29
38
|
UnknownCamera = "unknown_camera",
|
|
30
39
|
NotRecordingCamera = "not_recording_camera",
|
|
31
|
-
OfflineScheduled = "offline_scheduled",
|
|
32
40
|
FullSD = "full_sd",
|
|
33
41
|
FullStorage = "full_storage",
|
|
34
42
|
HddUnmounted = "hdd_unmounted",
|
|
35
43
|
NoHdd = "no_hdd",
|
|
36
44
|
MissingRouterInfo = "missing_router_info",
|
|
37
|
-
|
|
38
|
-
|
|
45
|
+
AcFailure = "ac_failure",
|
|
46
|
+
LowBattery = "low_battery"
|
|
39
47
|
}
|
|
40
48
|
export declare enum KitMetricId {
|
|
41
49
|
SolarCharger = "solar_charger",
|
|
@@ -292,7 +300,7 @@ export type KitCreatePayload = {
|
|
|
292
300
|
status: KitStatus;
|
|
293
301
|
powerType: PowerType;
|
|
294
302
|
config: {
|
|
295
|
-
region:
|
|
303
|
+
region: KitRegion;
|
|
296
304
|
};
|
|
297
305
|
};
|
|
298
306
|
export type KitUpdatePayload = {
|
|
@@ -310,7 +318,7 @@ export declare enum KitStorageTransport {
|
|
|
310
318
|
export type KitStorageRequestPayload = {
|
|
311
319
|
kitId: number;
|
|
312
320
|
};
|
|
313
|
-
export type
|
|
321
|
+
export type KitStorage = {
|
|
314
322
|
id: number;
|
|
315
323
|
serial: string;
|
|
316
324
|
status: string;
|
|
@@ -324,5 +332,24 @@ export type KitStorageResponsePayload = {
|
|
|
324
332
|
vendor: string;
|
|
325
333
|
kitId: number;
|
|
326
334
|
capacity: number;
|
|
335
|
+
freeSpace: number;
|
|
327
336
|
tran: KitStorageTransport;
|
|
328
337
|
};
|
|
338
|
+
export type KitFootageRequestPayload = {
|
|
339
|
+
cameraId: CameraExid;
|
|
340
|
+
storageId: number;
|
|
341
|
+
};
|
|
342
|
+
export type KitFootage = {
|
|
343
|
+
id: number;
|
|
344
|
+
startDate: string;
|
|
345
|
+
endDate: string;
|
|
346
|
+
cameraId: number;
|
|
347
|
+
storageId: number;
|
|
348
|
+
};
|
|
349
|
+
export type KitAlarmItem = {
|
|
350
|
+
id: number;
|
|
351
|
+
kitId: number;
|
|
352
|
+
alarm: KitAlarm;
|
|
353
|
+
startDate: DateTime;
|
|
354
|
+
endDate: DateTime | null;
|
|
355
|
+
};
|
|
@@ -176,11 +176,14 @@ export type ProcoreObservationCustomField = {
|
|
|
176
176
|
optionsUrl: string | null;
|
|
177
177
|
defaultValue: string | null;
|
|
178
178
|
};
|
|
179
|
+
export type ProcoreNextObservationAvailableNumber = {
|
|
180
|
+
nextAvailableNumber: number;
|
|
181
|
+
};
|
|
179
182
|
export declare enum ProcoreObservationCustomFieldDataType {
|
|
180
183
|
RichText = "rich_text",
|
|
181
184
|
Date = "date",
|
|
182
185
|
DateTime = "datetime",
|
|
183
|
-
|
|
186
|
+
LovEntry = "lov_entry",
|
|
184
187
|
LovEntries = "lov_entries",
|
|
185
188
|
Boolean = "boolean",
|
|
186
189
|
Vendor = "vendor",
|
|
@@ -194,17 +197,17 @@ export declare enum ProcoreObservationDefaultFieldNames {
|
|
|
194
197
|
Number = "number",
|
|
195
198
|
Name = "name",
|
|
196
199
|
Status = "status",
|
|
197
|
-
Trade = "
|
|
198
|
-
Assignee = "
|
|
199
|
-
DueDate = "
|
|
200
|
-
SpecificationSection = "
|
|
200
|
+
Trade = "tradeId",
|
|
201
|
+
Assignee = "assigneeId",
|
|
202
|
+
DueDate = "dueDate",
|
|
203
|
+
SpecificationSection = "specificationSectionId",
|
|
201
204
|
Priority = "priority",
|
|
202
|
-
Location = "
|
|
203
|
-
DistributionMembers = "
|
|
205
|
+
Location = "locationId",
|
|
206
|
+
DistributionMembers = "distributionMemberIds",
|
|
204
207
|
Personal = "personal",
|
|
205
|
-
Hazard = "
|
|
206
|
-
ContributingBehavior = "
|
|
207
|
-
ContributingCondition = "
|
|
208
|
+
Hazard = "hazardId",
|
|
209
|
+
ContributingBehavior = "contributingBehaviorId",
|
|
210
|
+
ContributingCondition = "contributingConditionId",
|
|
208
211
|
Description = "description"
|
|
209
212
|
}
|
|
210
213
|
export declare enum ProcoreTools {
|
|
@@ -1,31 +1,43 @@
|
|
|
1
|
-
import { DateTime, DateType, PaginationParams } from "@/types";
|
|
2
|
-
export type
|
|
1
|
+
import { AutomationType, DateTime, DateType, PaginationParams } from "@/types";
|
|
2
|
+
export type Automation = {
|
|
3
|
+
name?: string;
|
|
3
4
|
cameraIds: string;
|
|
4
5
|
cameraNames: number;
|
|
6
|
+
cameraExids?: string[];
|
|
5
7
|
createdAt: string;
|
|
6
8
|
id: number;
|
|
7
9
|
provider: string;
|
|
8
|
-
type:
|
|
10
|
+
type: AutomationType;
|
|
9
11
|
config: Partial<{
|
|
10
|
-
recipients: string;
|
|
11
|
-
projectId: number;
|
|
12
|
+
recipients: string | Record<string, string>[];
|
|
12
13
|
companyId: number;
|
|
14
|
+
compareDelay: number;
|
|
15
|
+
categoryId: string;
|
|
16
|
+
hubId: string;
|
|
17
|
+
folderId: string;
|
|
18
|
+
projectId: number;
|
|
13
19
|
}>;
|
|
14
20
|
isPaused: boolean;
|
|
15
|
-
notifyDays: string;
|
|
21
|
+
notifyDays: string | string[];
|
|
16
22
|
notifyTime: string;
|
|
17
23
|
requesterEmail: string;
|
|
18
24
|
requesterName: string;
|
|
19
25
|
timezone: string;
|
|
20
26
|
title: string;
|
|
27
|
+
compareDelay?: number;
|
|
28
|
+
selectedProvider?: string;
|
|
29
|
+
restrictedCameraExids?: string[];
|
|
30
|
+
recipients?: string | string[];
|
|
21
31
|
};
|
|
22
32
|
export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
23
33
|
cameraExids?: string;
|
|
24
34
|
notifyDays?: string;
|
|
35
|
+
compareDelay?: AutomationType;
|
|
25
36
|
notifyTime?: string;
|
|
26
37
|
provider?: string;
|
|
27
38
|
type?: string;
|
|
28
39
|
config?: {
|
|
40
|
+
compareDelay?: AutomationType;
|
|
29
41
|
recipients?: string;
|
|
30
42
|
projectId?: number;
|
|
31
43
|
companyId?: number;
|
|
@@ -40,9 +52,9 @@ export type ProgressPhotosUnSubscribeParams = {
|
|
|
40
52
|
token?: string;
|
|
41
53
|
};
|
|
42
54
|
export type ProgressPhotosResponsePayload = {
|
|
43
|
-
progressPhotos:
|
|
55
|
+
progressPhotos: Automation[];
|
|
44
56
|
};
|
|
45
|
-
export declare enum
|
|
57
|
+
export declare enum AutomationDialogType {
|
|
46
58
|
Create = "create",
|
|
47
59
|
Edit = "edit",
|
|
48
60
|
Pause = "pause"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DateType, PaginationParams } from "@/types";
|
|
2
|
+
export type RecycleBin = {
|
|
3
|
+
id?: number;
|
|
4
|
+
exid: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: string;
|
|
7
|
+
deletedBy: string;
|
|
8
|
+
deletedAt: DateType;
|
|
9
|
+
};
|
|
10
|
+
export type RecycleBinQueryParams = PaginationParams & {
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
deletedBy: string;
|
|
14
|
+
};
|
|
@@ -90,11 +90,6 @@ export declare enum _3dViewer {
|
|
|
90
90
|
Itwin = "itwin",
|
|
91
91
|
Cesium = "cesium"
|
|
92
92
|
}
|
|
93
|
-
export declare enum SsoProvider {
|
|
94
|
-
Microsoft = "microsoft",
|
|
95
|
-
Google = "google",
|
|
96
|
-
Evercam = "evercam"
|
|
97
|
-
}
|
|
98
93
|
export declare enum InfoPage {
|
|
99
94
|
ThreeSixtyView = "360",
|
|
100
95
|
BIMView = "bim",
|
|
@@ -105,7 +100,7 @@ export declare enum InfoPage {
|
|
|
105
100
|
Timeline = "timeline",
|
|
106
101
|
WeatherReport = "weather-report"
|
|
107
102
|
}
|
|
108
|
-
export declare enum
|
|
103
|
+
export declare enum DownloadFileType {
|
|
109
104
|
Jpeg = "jpeg",
|
|
110
105
|
Pdf = "pdf",
|
|
111
106
|
Csv = "csv"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BBox, BoundingBox, DateType, Schedule, CameraExid, DateTime, DetectionModel, PaginationParams, PpeLabel, ProjectExid } from "@evercam/api/types";
|
|
2
|
-
import { DetectionLabel,
|
|
2
|
+
import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
|
|
3
3
|
export declare enum SiteAnalyticsMode {
|
|
4
4
|
Detections = "detections",
|
|
5
5
|
Segments = "segments"
|
|
@@ -132,10 +132,11 @@ export type DetectionsRequestParams = {
|
|
|
132
132
|
trackId?: number;
|
|
133
133
|
thresholds?: string[];
|
|
134
134
|
excludeLabels?: Array<DetectionLabel | PpeLabel>;
|
|
135
|
+
mergedClasses?: Array<string>;
|
|
135
136
|
confidenceThreshold?: number;
|
|
136
137
|
} & PaginationParams;
|
|
137
138
|
export type DetectionsExportRequestParams = DetectionsRequestParams & {
|
|
138
|
-
fileType:
|
|
139
|
+
fileType: DownloadFileType;
|
|
139
140
|
columns?: string[];
|
|
140
141
|
directDownload?: boolean;
|
|
141
142
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type SsoProvider = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
exid: string;
|
|
5
|
+
clientId: string;
|
|
6
|
+
clientSecret: string;
|
|
7
|
+
scope: string;
|
|
8
|
+
responseType: string;
|
|
9
|
+
loginUrl: string;
|
|
10
|
+
iconUrl: string;
|
|
11
|
+
options: {
|
|
12
|
+
showOnLogin: boolean;
|
|
13
|
+
showOnSignup: boolean;
|
|
14
|
+
};
|
|
15
|
+
tokenUri: string;
|
|
16
|
+
tokenIntrospectionUri: string;
|
|
17
|
+
userInfoUri: string;
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type SsoUpdatePayload = {
|
|
21
|
+
name: string;
|
|
22
|
+
exid: string;
|
|
23
|
+
clientId: string;
|
|
24
|
+
clientSecret: string;
|
|
25
|
+
scope: string;
|
|
26
|
+
responseType: string;
|
|
27
|
+
loginUrl: string;
|
|
28
|
+
iconUrl: string;
|
|
29
|
+
options: {
|
|
30
|
+
showOnLogin: boolean;
|
|
31
|
+
showOnSignup: boolean;
|
|
32
|
+
};
|
|
33
|
+
tokenUri: string;
|
|
34
|
+
tokenIntrospectionUri: string;
|
|
35
|
+
userInfoUri: string;
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
};
|
|
38
|
+
export type SsoCreatePayload = {
|
|
39
|
+
name: string;
|
|
40
|
+
exid: string;
|
|
41
|
+
clientId: string;
|
|
42
|
+
clientSecret: string;
|
|
43
|
+
scope: string;
|
|
44
|
+
responseType: string;
|
|
45
|
+
loginUrl: string;
|
|
46
|
+
iconUrl: string;
|
|
47
|
+
options: {
|
|
48
|
+
showOnLogin: boolean;
|
|
49
|
+
showOnSignup: boolean;
|
|
50
|
+
};
|
|
51
|
+
tokenUri: string;
|
|
52
|
+
tokenIntrospectionUri: string;
|
|
53
|
+
userInfoUri: string;
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
};
|
|
@@ -39,8 +39,7 @@ export type ExNvrDeviceConfig = {
|
|
|
39
39
|
timezone: string;
|
|
40
40
|
};
|
|
41
41
|
export declare enum ExNvrFootageAvailableStatus {
|
|
42
|
-
|
|
43
|
-
NotActive = "Not Active",
|
|
42
|
+
Available = "Available",
|
|
44
43
|
NotAvailable = "Not Available"
|
|
45
44
|
}
|
|
46
45
|
export declare enum ExNvrDeviceState {
|
package/dist/api/types/user.d.ts
CHANGED
|
@@ -34,12 +34,7 @@ export type AdminUser = {
|
|
|
34
34
|
countryName: string;
|
|
35
35
|
createdAt: DateTime;
|
|
36
36
|
integrations: string[];
|
|
37
|
-
|
|
38
|
-
lastEvenCreatedAt: DateTime;
|
|
39
|
-
lastEventId: number;
|
|
40
|
-
lastEventIpAddress: string;
|
|
41
|
-
lastEventName: string;
|
|
42
|
-
lastEventOs: string;
|
|
37
|
+
lastSeenAt: DateTime;
|
|
43
38
|
lastLoginAt: string;
|
|
44
39
|
lastname: string;
|
|
45
40
|
persona: string;
|
|
@@ -53,6 +53,19 @@ export declare enum VideoWallWidgetSettingsKeys {
|
|
|
53
53
|
Height = "height",
|
|
54
54
|
HeightResolution = "heightResolution"
|
|
55
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
|
+
}
|
|
56
69
|
export type CommonWidgetSettings = {
|
|
57
70
|
width: number;
|
|
58
71
|
resolution: string;
|
|
@@ -81,12 +94,18 @@ export type VideoWallWidgetSettings = CommonWidgetSettings & {
|
|
|
81
94
|
preset: VideoWallPresetItemConfig;
|
|
82
95
|
refreshRate: number;
|
|
83
96
|
};
|
|
84
|
-
export type
|
|
97
|
+
export type ThreeSixtyWidgetSettings = CommonWidgetSettings & {
|
|
98
|
+
dateId: string;
|
|
99
|
+
floorId: string;
|
|
100
|
+
markerId: string;
|
|
101
|
+
};
|
|
102
|
+
export type WidgetSettings = RecordingsWidgetSettings | LiveViewWidgetSettings | BimCompareWidgetSettings | VideoWallWidgetSettings | ThreeSixtyWidgetSettings;
|
|
85
103
|
export declare enum WidgetType {
|
|
86
104
|
LiveWidget = "Live View",
|
|
87
105
|
Recording = "Recordings",
|
|
88
106
|
BimCompare = "BIM Compare",
|
|
89
|
-
VideoWall = "Video Wall"
|
|
107
|
+
VideoWall = "Video Wall",
|
|
108
|
+
ThreeSixty = "360"
|
|
90
109
|
}
|
|
91
110
|
export declare const WidgetTypesByResource: {
|
|
92
111
|
camera: WidgetType[];
|