@evercam/api 1.0.0-6ad33e216 → 1.0.0-6c17c517a

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.
@@ -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",
@@ -73,6 +77,7 @@ export type _360AssetsUploadPayload = {
73
77
  startPosition: string;
74
78
  endPosition: string;
75
79
  isTimelapse: boolean;
80
+ isImagesOnly: boolean;
76
81
  };
77
82
  export type Generate360MapRequestPayload = {
78
83
  dateId: string;
@@ -20,6 +20,7 @@ export declare enum AnalyticsEventPageId {
20
20
  ProjectSettingsCameraSettings = "ProjectSettings-CameraSettings",
21
21
  ProjectSettingsMembers = "ProjectSettings-Members",
22
22
  ProjectSettingsOverview = "ProjectSettings-Overview",
23
+ ProjectSettingsDangerZone = "ProjectSettings-DangerZone",
23
24
  Settings = "Settings",
24
25
  SettingsAccount = "Settings-Account",
25
26
  SettingsConnectors = "Settings-Connectors",
@@ -40,7 +41,8 @@ export declare enum AnalyticsEventPageId {
40
41
  DroneInfo = "DroneInfo",
41
42
  ThreeSixtyInfo = "360Info",
42
43
  BimCompareInfo = "BimCompareInfo",
43
- WeatherReport = "WeatherReport"
44
+ WeatherReport = "WeatherReport",
45
+ PpeReport = "PpeReport"
44
46
  }
45
47
  export declare enum AnalyticsEvent {
46
48
  PageView = "PageView",
@@ -256,6 +258,7 @@ export declare enum AnalyticsEvent {
256
258
  SharingTransferOwnership = "TransferOwnership",
257
259
  SharingSortBy = "SortBy",
258
260
  SharingChangeAccessRight = "ChangeAccessRight",
261
+ ThreeSixtyList = "360List",
259
262
  ThreeSixtyChangeDate = "ChangeDate",
260
263
  ThreeSixtyChangeFloor = "ChangeFloor",
261
264
  ThreeSixtyCloseCompare = "CloseCompare",
@@ -435,20 +438,21 @@ export declare enum AnalyticsEvent {
435
438
  MediaCopyMediaLink = "Media-CopyMediaLink",
436
439
  MediaGoToMediaHub = "Media-GoBackToMediaHub",
437
440
  GateReportCalendarTreeDateClick = "CalendarTree-DateClick",
438
- GateReportExportPdf = "ExportPdf",
439
- GateReportExportCsv = "ExportCsv",
440
441
  GateReportFilterEntryExit = "FilterEntryExit",
441
- GateReportFilterCameras = "FilterCameras",
442
442
  GateReportFilterPlateNumber = "FilterPlateNumber",
443
443
  GateReportFilterVehicleTypes = "FilterVehicleTypes",
444
444
  GateReportOpenVehicleTypeInfo = "OpenVehicleTypeInfo",
445
445
  GateReportTimelineDateClick = "Timeline-DateClick",
446
446
  GateReportToggleThumbnails = "ToggleThumbnails",
447
+ PpeTimelineDateClick = "PpeTimeline-DateClick",
447
448
  HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
448
449
  HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
449
450
  HelpMenuClickTutorialsLink = "HelpMenu-ClickTutorialsLink",
450
451
  HelpMenuClickWhatsNewLink = "HelpMenu-ClickWhatsNewLink",
451
452
  HelpMenuClickUserManuaLink = "HelpMenu-ClickUserManuaLink",
452
453
  HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink",
453
- HelpMenuClickSystemCheckLink = "HelpMenu-ClickSystemCheckLink"
454
+ HelpMenuClickSystemCheckLink = "HelpMenu-ClickSystemCheckLink",
455
+ ExportPdf = "ExportPdf",
456
+ ExportCsv = "ExportCsv",
457
+ FilterCameras = "FilterCameras"
454
458
  }
@@ -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 DetectionsFilters = {
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 CountsParams = {
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
+ }
@@ -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",
@@ -1,3 +1,7 @@
1
+ export declare enum EDistortImageModes {
2
+ FreeRotate = "freeRotate",
3
+ Lock = "lock"
4
+ }
1
5
  export declare enum EMapTypes {
2
6
  Blank = "Blank",
3
7
  Satellite = "Satellite",
@@ -10,11 +10,14 @@ export type Project = {
10
10
  startedAt?: string;
11
11
  timezone?: string;
12
12
  zohoId?: string;
13
+ userId?: number;
13
14
  cameras?: Array<Camera | AdminCamera>;
14
15
  featureFlags: Array<ProjectFeatureFlag>;
15
16
  owner?: {
16
17
  email?: string;
17
18
  };
19
+ ownerEmail?: string;
20
+ ownerName?: string;
18
21
  camerasRestrictionType?: string;
19
22
  };
20
23
  export declare enum ProjectStatus {
@@ -56,7 +59,8 @@ export declare enum ProjectFeatureFlag {
56
59
  GateReportAnprBased = "anpr_sourced",
57
60
  NoLicensePlate = "no_license_plate",
58
61
  DefaultToProjectApp = "default_to_project_app",
59
- SmartSearch = "smart_search"
62
+ SmartSearch = "smart_search",
63
+ PpeMonitoring = "ppe_monitoring"
60
64
  }
61
65
  export type ProjectBatteryReading = {
62
66
  exid: number;
@@ -1,4 +1,5 @@
1
- import type { BBox, BoundingBox, DateType, DetectionLabel, Schedule } from "@evercam/api/types";
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
+ };
@@ -1,4 +1,6 @@
1
+ import { Moment } from "moment-timezone";
1
2
  export type DateType = Date | string | number;
3
+ export type ExtendedDateType = Moment | DateType;
2
4
  type YYYY = number;
3
5
  type MM = number;
4
6
  type DD = number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/api",
3
- "version": "1.0.0-6ad33e216",
3
+ "version": "1.0.0-6c17c517a",
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.13",
39
+ "@types/node": "^24.2.1",
40
40
  "vite": "latest",
41
41
  "vite-plugin-commonjs": "^0.10.3",
42
42
  "vite-plugin-dts": "^4.5.4"