@evercam/api 1.0.0-fa346266d → 1.0.0-fce98b41d

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.
@@ -41,11 +41,11 @@ export declare enum _360AssetType {
41
41
  MobileAudio = "mobile_audios"
42
42
  }
43
43
  export declare enum _360IntergrationType {
44
+ Evercam = "Evercam",
44
45
  Matterport = "Matterport",
45
46
  OpenSpace = "Openspace",
46
47
  HoloBuilder = "Holobuilder",
47
- DroneDeploy = "Dronedeploy",
48
- Evercam = "Evercam"
48
+ DroneDeploy = "Dronedeploy"
49
49
  }
50
50
  export type _360AssetsQueryParams = {
51
51
  page: number;
@@ -4,7 +4,6 @@ export type TimedRequest<T> = Promise<AxiosResponse<T> & {
4
4
  error?: AxiosError;
5
5
  }>;
6
6
  export type AxiosEnvironment = {
7
- isStaging?: boolean;
8
7
  baseUrl?: string | null;
9
8
  stagingAiApiUrl?: string | null;
10
9
  aiApiUrl?: string | null;
@@ -1,5 +1,5 @@
1
- import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, Exid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, Schedule } from "@/types";
2
- export type CameraExid = Exid;
1
+ import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, Schedule } from "@/types";
2
+ export type CameraExid = string;
3
3
  export type CamerasByExid = EntityByExid<Camera>;
4
4
  export type Cartesian3 = {
5
5
  x: number;
@@ -185,7 +185,8 @@ export declare enum CameraFeatureFlag {
185
185
  PTZ = "ptz",
186
186
  ObjectDetection = "object_detection",
187
187
  Segmentation = "segmentation",
188
- SegmentationAutoLabelling = "segmentation_auto_labelling"
188
+ SegmentationAutoLabelling = "segmentation_auto_labelling",
189
+ PpeMonitoring = "ppe_monitoring"
189
190
  }
190
191
  export type CameraLogsRequestPayload = {
191
192
  limit: number;
@@ -1,7 +1,8 @@
1
1
  import type { AnalyticsEventPageId, CameraExid, CameraFeatureFlag, CameraStatus, ProjectExid, ProjectFeatureFlag, ProjectStatus } from "@/types";
2
2
  export declare enum CopilotMessageAuthor {
3
3
  Copilot = "copilot",
4
- User = "user"
4
+ User = "user",
5
+ System = "system"
5
6
  }
6
7
  export declare enum CopilotMessageType {
7
8
  Text = "text",
@@ -33,12 +34,13 @@ export declare enum CopilotMissingFieldsLabels {
33
34
  FromDate = "Start date",
34
35
  ToDate = "End date"
35
36
  }
36
- export type CopilotMissingField = {
37
+ export type CopilotMissingField<T = any> = {
37
38
  name: string;
38
39
  label: string;
39
40
  value: any;
40
41
  type: string;
41
42
  toolId: string;
43
+ error?: T;
42
44
  };
43
45
  export type CopilotMissingFields = Record<number, CopilotMissingField[]>;
44
46
  export type UserConversations = CopilotConversation & {
@@ -57,7 +59,8 @@ export declare enum CopilotSocketEvent {
57
59
  ChatError = "chat:chatError",
58
60
  MissingFields = "chat:missingFields",
59
61
  MissingFieldsCompleted = "chat:missingFields:completed",
60
- SystemToolCallResponse = "system:toolCall:response"
62
+ SystemToolCallResponse = "system:toolCall:response",
63
+ ChangeProvider = "chat:changeProvider"
61
64
  }
62
65
  export type CopilotConversation = {
63
66
  id: number;
@@ -118,9 +121,6 @@ export type CopilotProject = {
118
121
  featureFlags?: ProjectFeatureFlag[];
119
122
  cameras?: CopilotCamera[];
120
123
  };
121
- export type CopilotConversationContext = {
122
- availableProjects: CopilotProject[];
123
- };
124
124
  export type CopilotMessageContext = {
125
125
  pageId?: AnalyticsEventPageId;
126
126
  selectedCamera?: CopilotCamera;
@@ -129,8 +129,8 @@ export type CopilotMessageContext = {
129
129
  export type CopilotMessageStep = {
130
130
  args: string[];
131
131
  depth: number;
132
- id: number;
133
- message_id: number;
132
+ id?: number;
133
+ message_id?: number;
134
134
  step: CopilotStepId;
135
135
  timestamp: string;
136
136
  };
@@ -154,3 +154,4 @@ export declare enum CopilotMissingFieldType {
154
154
  String = "string",
155
155
  Number = "number"
156
156
  }
157
+ export type CopilotCompletedFields = Record<string, unknown>;
@@ -1,4 +1,4 @@
1
- import { type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
1
+ import { type BoundingBox, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
2
2
  export type DetectionsFilters = {
3
3
  cameraExid: CameraExid;
4
4
  fromDate: string | Date;
@@ -32,9 +32,12 @@ export type SegmentsByLabel = Record<SegmentLabel, Segment[]>;
32
32
  export type SegmentPolygonCoords = number[][];
33
33
  export type Segment = {
34
34
  id: number;
35
- mask: SegmentPolygonCoords;
35
+ mask?: SegmentPolygonCoords;
36
36
  label: string;
37
37
  timestamp: string | Date;
38
+ cameraExid?: CameraExid;
39
+ bbox?: BoundingBox;
40
+ area?: number;
38
41
  };
39
42
  export type SegmentSimilarityResult = {
40
43
  distance: number;
@@ -56,7 +59,7 @@ export type CountsParams = {
56
59
  cameraExid: CameraExid;
57
60
  fromDate: string | Date;
58
61
  toDate: string | Date;
59
- precision: TimelinePrecision;
62
+ precision: keyof typeof TimelinePrecision;
60
63
  trackId: number;
61
64
  labels: DetectionLabel | DetectionLabel[];
62
65
  };
@@ -1,6 +1,5 @@
1
1
  import type { BBox, BoundingBox, DetectionLabel } from "@evercam/api/types";
2
2
  export declare enum SiteAnalyticsMode {
3
- Cranes = "cranes",
4
3
  Detections = "detections",
5
4
  Segments = "segments"
6
5
  }
@@ -3,10 +3,12 @@ export declare enum EMapTypes {
3
3
  Satellite = "Satellite",
4
4
  Street = "Street",
5
5
  GoogleSatellite = "hybrid",
6
- GoogleStreet = "roadmap"
6
+ GoogleStreet = "roadmap",
7
+ GoogleTerrain = "terrain"
7
8
  }
8
9
  export declare enum EMarkers {
9
- CameraMarker = "cameraMarker"
10
+ CameraMarker = "cameraMarker",
11
+ ThreeSixtyMarker = "threeSixtyMarkers"
10
12
  }
11
13
  export declare enum EPageType {
12
14
  List = "list",
@@ -36,6 +36,14 @@ export declare enum TimelapsePeriod {
36
36
  WholeProject = "whole_project",
37
37
  Custom = "custom"
38
38
  }
39
+ export declare enum TimelapseType {
40
+ Hour = "hour",
41
+ Day = "day",
42
+ Week = "week",
43
+ Month = "month",
44
+ Year = "year",
45
+ FullProject = "full_project"
46
+ }
39
47
  export type TimelapseFilterQueryParams = {
40
48
  from?: DateType;
41
49
  to?: DateType;
@@ -88,7 +88,7 @@ export declare enum WidgetType {
88
88
  BimCompare = "BIM Compare",
89
89
  VideoWall = "Video Wall"
90
90
  }
91
- export declare const RessourceByType: {
91
+ export declare const WidgetTypesByResource: {
92
92
  camera: WidgetType[];
93
93
  project: WidgetType[];
94
94
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/api",
3
- "version": "1.0.0-fa346266d",
3
+ "version": "1.0.0-fce98b41d",
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": "^22.13.14",
39
+ "@types/node": "^22.14.1",
40
40
  "vite": "latest",
41
41
  "vite-plugin-commonjs": "^0.10.3",
42
42
  "vite-plugin-dts": "^4.5.3"