@evercam/api 1.0.0-805a76c03 → 1.0.0-85ac1f348
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/aiApi.d.ts +22 -5
- package/dist/api/client/customErrors.d.ts +10 -0
- package/dist/api/client/interceptors.d.ts +1 -1
- package/dist/api/evercamLabsApi.d.ts +2 -2
- package/dist/api/ingestApi.d.ts +0 -1
- package/dist/index.js +420 -367
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/360.d.ts +4 -0
- package/dist/types/analytics.d.ts +8 -5
- package/dist/types/camera.d.ts +2 -0
- package/dist/types/detections.d.ts +56 -5
- package/dist/types/errors.d.ts +12 -0
- package/dist/types/project.d.ts +4 -1
- package/dist/types/siteAnalytics.d.ts +19 -1
- package/dist/types/time.d.ts +2 -0
- package/package.json +2 -2
package/dist/types/360.d.ts
CHANGED
|
@@ -40,6 +40,10 @@ export declare enum _360AssetType {
|
|
|
40
40
|
MobilePhoto = "mobile_photos",
|
|
41
41
|
MobileAudio = "mobile_audios"
|
|
42
42
|
}
|
|
43
|
+
export declare enum _360Feature {
|
|
44
|
+
Minimap = "Minimap",
|
|
45
|
+
BIM = "BIM"
|
|
46
|
+
}
|
|
43
47
|
export declare enum _360IntergrationType {
|
|
44
48
|
Evercam = "Evercam",
|
|
45
49
|
Matterport = "Matterport",
|
|
@@ -41,7 +41,8 @@ export declare enum AnalyticsEventPageId {
|
|
|
41
41
|
DroneInfo = "DroneInfo",
|
|
42
42
|
ThreeSixtyInfo = "360Info",
|
|
43
43
|
BimCompareInfo = "BimCompareInfo",
|
|
44
|
-
WeatherReport = "WeatherReport"
|
|
44
|
+
WeatherReport = "WeatherReport",
|
|
45
|
+
PpeReport = "PpeReport"
|
|
45
46
|
}
|
|
46
47
|
export declare enum AnalyticsEvent {
|
|
47
48
|
PageView = "PageView",
|
|
@@ -257,6 +258,7 @@ export declare enum AnalyticsEvent {
|
|
|
257
258
|
SharingTransferOwnership = "TransferOwnership",
|
|
258
259
|
SharingSortBy = "SortBy",
|
|
259
260
|
SharingChangeAccessRight = "ChangeAccessRight",
|
|
261
|
+
ThreeSixtyList = "360List",
|
|
260
262
|
ThreeSixtyChangeDate = "ChangeDate",
|
|
261
263
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
262
264
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
@@ -436,20 +438,21 @@ export declare enum AnalyticsEvent {
|
|
|
436
438
|
MediaCopyMediaLink = "Media-CopyMediaLink",
|
|
437
439
|
MediaGoToMediaHub = "Media-GoBackToMediaHub",
|
|
438
440
|
GateReportCalendarTreeDateClick = "CalendarTree-DateClick",
|
|
439
|
-
GateReportExportPdf = "ExportPdf",
|
|
440
|
-
GateReportExportCsv = "ExportCsv",
|
|
441
441
|
GateReportFilterEntryExit = "FilterEntryExit",
|
|
442
|
-
GateReportFilterCameras = "FilterCameras",
|
|
443
442
|
GateReportFilterPlateNumber = "FilterPlateNumber",
|
|
444
443
|
GateReportFilterVehicleTypes = "FilterVehicleTypes",
|
|
445
444
|
GateReportOpenVehicleTypeInfo = "OpenVehicleTypeInfo",
|
|
446
445
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
447
446
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
447
|
+
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
448
448
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
449
449
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
450
450
|
HelpMenuClickTutorialsLink = "HelpMenu-ClickTutorialsLink",
|
|
451
451
|
HelpMenuClickWhatsNewLink = "HelpMenu-ClickWhatsNewLink",
|
|
452
452
|
HelpMenuClickUserManuaLink = "HelpMenu-ClickUserManuaLink",
|
|
453
453
|
HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink",
|
|
454
|
-
HelpMenuClickSystemCheckLink = "HelpMenu-ClickSystemCheckLink"
|
|
454
|
+
HelpMenuClickSystemCheckLink = "HelpMenu-ClickSystemCheckLink",
|
|
455
|
+
ExportPdf = "ExportPdf",
|
|
456
|
+
ExportCsv = "ExportCsv",
|
|
457
|
+
FilterCameras = "FilterCameras"
|
|
455
458
|
}
|
package/dist/types/camera.d.ts
CHANGED
|
@@ -178,6 +178,8 @@ export declare enum CameraStatus {
|
|
|
178
178
|
export declare enum CameraFeatureFlag {
|
|
179
179
|
EdgeVideo = "edge_video",
|
|
180
180
|
BimCompare = "bim_compare",
|
|
181
|
+
TwoDBimCompare = "2d_bim_compare",
|
|
182
|
+
ForgeBIMCompare = "forge_bim_compare",
|
|
181
183
|
GateReport = "gate_report",
|
|
182
184
|
VideoStream = "video_stream",
|
|
183
185
|
WebRTC = "webrtc",
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { type BoundingBox, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
|
|
2
|
-
export type
|
|
3
|
-
cameraExid: CameraExid;
|
|
1
|
+
import { type BoundingBox, type ProjectExid, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
|
|
2
|
+
export type BaseDetectionsFilters = {
|
|
4
3
|
fromDate: string | Date;
|
|
5
4
|
toDate: string | Date;
|
|
6
5
|
labels: DetectionLabel | DetectionLabel[];
|
|
7
6
|
trackId?: number;
|
|
8
7
|
};
|
|
8
|
+
export type DetectionsFilters = BaseDetectionsFilters & {
|
|
9
|
+
projectExid: ProjectExid;
|
|
10
|
+
cameraExids?: CameraExid[];
|
|
11
|
+
};
|
|
12
|
+
export type SegmentsFilters = BaseDetectionsFilters & {
|
|
13
|
+
cameraExid: CameraExid;
|
|
14
|
+
};
|
|
9
15
|
export type BBox = number[];
|
|
10
16
|
export type SelectedObjectPath = {
|
|
11
17
|
label: string;
|
|
@@ -16,9 +22,32 @@ export type SelectedObjectPath = {
|
|
|
16
22
|
bbox: BBox;
|
|
17
23
|
}>;
|
|
18
24
|
};
|
|
25
|
+
export type Label = DetectionLabel | PpeLabel;
|
|
19
26
|
export type Detection = {
|
|
20
27
|
bbox: BBox;
|
|
21
28
|
timestamp: string | Date;
|
|
29
|
+
label: DetectionLabel;
|
|
30
|
+
confidenceScore: number;
|
|
31
|
+
};
|
|
32
|
+
export type DetectionsGroup = {
|
|
33
|
+
timestamp: DateType;
|
|
34
|
+
detections: Detection[];
|
|
35
|
+
};
|
|
36
|
+
export type DetectionsCounts = {
|
|
37
|
+
timestamps: number;
|
|
38
|
+
} & {
|
|
39
|
+
[label in Label]: number;
|
|
40
|
+
};
|
|
41
|
+
export type DetectionsCountsByPeriod = {
|
|
42
|
+
days: Array<{
|
|
43
|
+
day: string;
|
|
44
|
+
} & DetectionsCounts>;
|
|
45
|
+
months: Array<{
|
|
46
|
+
month: string;
|
|
47
|
+
} & DetectionsCounts>;
|
|
48
|
+
years: Array<{
|
|
49
|
+
year: string;
|
|
50
|
+
} & DetectionsCounts>;
|
|
22
51
|
};
|
|
23
52
|
export type Tracking = {
|
|
24
53
|
trackId: number;
|
|
@@ -55,14 +84,20 @@ export type SegmentsSimilaritySearchParams = {
|
|
|
55
84
|
fromDate: string;
|
|
56
85
|
toDate: string;
|
|
57
86
|
};
|
|
58
|
-
export type
|
|
59
|
-
cameraExid: CameraExid;
|
|
87
|
+
export type BaseCountsParams = {
|
|
60
88
|
fromDate: string | Date;
|
|
61
89
|
toDate: string | Date;
|
|
62
90
|
precision: keyof typeof TimelinePrecision;
|
|
63
91
|
trackId: number;
|
|
64
92
|
labels: DetectionLabel | DetectionLabel[];
|
|
65
93
|
};
|
|
94
|
+
export type DetectionsCountsParams = BaseCountsParams & {
|
|
95
|
+
projectExid: ProjectExid;
|
|
96
|
+
cameraExids?: CameraExid[];
|
|
97
|
+
};
|
|
98
|
+
export type SegmentsCountsParams = BaseCountsParams & {
|
|
99
|
+
cameraExid: CameraExid;
|
|
100
|
+
};
|
|
66
101
|
export type CountByPeriod = {
|
|
67
102
|
date: string | Date;
|
|
68
103
|
counts: Record<string, number>;
|
|
@@ -74,3 +109,19 @@ export type LuminanceReading = {
|
|
|
74
109
|
luminanceDelta: number;
|
|
75
110
|
luminanceAverage: number;
|
|
76
111
|
};
|
|
112
|
+
export declare enum PpeLabel {
|
|
113
|
+
Helmet = "helmet",
|
|
114
|
+
HighVisibilityVest = "high-visibility-vest",
|
|
115
|
+
SafetyGlasses = "safety-glasses",
|
|
116
|
+
Gloves = "gloves",
|
|
117
|
+
Person = "person",
|
|
118
|
+
Man = "man",
|
|
119
|
+
Woman = "woman"
|
|
120
|
+
}
|
|
121
|
+
export declare enum DetectionModel {
|
|
122
|
+
Yolov10 = 1,
|
|
123
|
+
Yolov11 = 2,
|
|
124
|
+
Yolov11_2 = 3,
|
|
125
|
+
GroundingDino = 4,
|
|
126
|
+
Owlv2 = 5
|
|
127
|
+
}
|
package/dist/types/errors.d.ts
CHANGED
|
@@ -14,12 +14,24 @@ export declare enum ErrorType {
|
|
|
14
14
|
UnhandledRejection = "UnhandledRejection",
|
|
15
15
|
TypeError = "TypeError"
|
|
16
16
|
}
|
|
17
|
+
export declare enum ErrorCode {
|
|
18
|
+
InternalServerError = 500,
|
|
19
|
+
BadGatewayError = 502,
|
|
20
|
+
ServiceUnavailableError = 503,
|
|
21
|
+
GatewayTimeoutError = 504,
|
|
22
|
+
BadRequestError = 400,
|
|
23
|
+
UnauthorizedError = 401,
|
|
24
|
+
ForbiddenError = 403,
|
|
25
|
+
NotFoundError = 404,
|
|
26
|
+
ConflictError = 409
|
|
27
|
+
}
|
|
17
28
|
export declare enum EvercamApiErrorCode {
|
|
18
29
|
BadArgument = "BAD_ARGUMENT",
|
|
19
30
|
DeviceError = "DEVICE_ERROR",
|
|
20
31
|
UnsupportedOperation = "UNSUPPORTED_OPERATION",
|
|
21
32
|
QuotaExceeded = "QUOTA_EXCEEDED",
|
|
22
33
|
InvalidCredentials = "INVALID_CREDENTIALS",
|
|
34
|
+
InvalidToken = "INVALID_TOKEN",
|
|
23
35
|
ProviderAuthFailure = "PROVIDER_AUTH_FAILURE",
|
|
24
36
|
ProviderEmailRequired = "PROVIDER_EMAIL_REQUIRED",
|
|
25
37
|
PasswordReset = "PASSWORD_RESET",
|
package/dist/types/project.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export type Project = {
|
|
|
15
15
|
owner?: {
|
|
16
16
|
email?: string;
|
|
17
17
|
};
|
|
18
|
+
ownerEmail?: string;
|
|
19
|
+
ownerName?: string;
|
|
18
20
|
camerasRestrictionType?: string;
|
|
19
21
|
};
|
|
20
22
|
export declare enum ProjectStatus {
|
|
@@ -56,7 +58,8 @@ export declare enum ProjectFeatureFlag {
|
|
|
56
58
|
GateReportAnprBased = "anpr_sourced",
|
|
57
59
|
NoLicensePlate = "no_license_plate",
|
|
58
60
|
DefaultToProjectApp = "default_to_project_app",
|
|
59
|
-
SmartSearch = "smart_search"
|
|
61
|
+
SmartSearch = "smart_search",
|
|
62
|
+
PpeMonitoring = "ppe_monitoring"
|
|
60
63
|
}
|
|
61
64
|
export type ProjectBatteryReading = {
|
|
62
65
|
exid: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { BBox, BoundingBox, DateType,
|
|
1
|
+
import type { BBox, BoundingBox, DateType, Schedule, CameraExid, DateTime, DetectionModel, PaginationParams, PpeLabel, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
import { DetectionLabel, DownloadTypes } from "@evercam/api/types";
|
|
2
3
|
export declare enum SiteAnalyticsMode {
|
|
3
4
|
Detections = "detections",
|
|
4
5
|
Segments = "segments"
|
|
@@ -121,3 +122,20 @@ export type SavedQuery = {
|
|
|
121
122
|
fromDate?: DateType;
|
|
122
123
|
author?: string;
|
|
123
124
|
};
|
|
125
|
+
export type DetectionsRequestParams = {
|
|
126
|
+
projectExid: ProjectExid;
|
|
127
|
+
cameraExids: CameraExid[];
|
|
128
|
+
fromDate?: DateTime;
|
|
129
|
+
toDate?: DateTime;
|
|
130
|
+
labels?: Array<DetectionLabel | PpeLabel>;
|
|
131
|
+
modelId?: DetectionModel;
|
|
132
|
+
trackId?: number;
|
|
133
|
+
thresholds?: string[];
|
|
134
|
+
excludeLabels?: Array<DetectionLabel | PpeLabel>;
|
|
135
|
+
confidenceThreshold?: number;
|
|
136
|
+
} & PaginationParams;
|
|
137
|
+
export type DetectionsExportRequestParams = DetectionsRequestParams & {
|
|
138
|
+
fileType: DownloadTypes;
|
|
139
|
+
columns?: string[];
|
|
140
|
+
directDownload?: boolean;
|
|
141
|
+
};
|
package/dist/types/time.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evercam/api",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-85ac1f348",
|
|
4
4
|
"description": "Evercam API client",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"publish-api": "cd ../.. && yarn publish-api"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^24.0
|
|
39
|
+
"@types/node": "^24.2.0",
|
|
40
40
|
"vite": "latest",
|
|
41
41
|
"vite-plugin-commonjs": "^0.10.3",
|
|
42
42
|
"vite-plugin-dts": "^4.5.4"
|