@evercam/api 1.0.0-bc5229297 → 1.0.0-bea443d8c

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.
@@ -9,7 +9,6 @@ export declare const _3dFirebaseApi: {
9
9
  getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectData>;
10
10
  getTransformInfo(projectExid: ProjectExid): Promise<DroneProjectTransform>;
11
11
  getProjectTags(projectExid: ProjectExid): Promise<Record<string, DroneTag>>;
12
- getTags(projectId: ProjectExid): Promise<Record<string, DroneTag>>;
13
12
  patchTags({ projectId, tags, }: {
14
13
  projectId: ProjectExid;
15
14
  tags: Record<string, DroneTag | null>;
@@ -72,11 +71,8 @@ export declare const _3dFirebaseApi: {
72
71
  updateProjectsListItem(index: number, data: _360ProjectListItem): Promise<void>;
73
72
  deleteProject(projectId: string): Promise<void>;
74
73
  updateProjectInfo(projectId: string, data: Partial<_360ProjectJsonResponse>): Promise<void>;
75
- getDateWalks(projectExid: ProjectExid, dateId: string): Promise<_360Walk>;
76
74
  updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: Partial<_360Floor>): Promise<_360ProjectJsonResponse>;
77
75
  getRoute(projectExid: ProjectExid, dateId: string, floorIndex: string): Promise<_360SceneRoute | null>;
78
- getDates(projectId: ProjectExid): Promise<_360Scene[]>;
79
- getAerialShotsDates(projectId: ProjectExid): Promise<_360Scene[]>;
80
76
  getAerialShotDate(projectId: ProjectExid, dateId: number): Promise<string | null>;
81
77
  getFloor({ projectId, dateId, floorId, }: {
82
78
  projectId: ProjectExid;
@@ -133,14 +129,13 @@ export declare const _3dFirebaseApi: {
133
129
  getProjectDateFloors({ projectId, dateId, }: {
134
130
  projectId: ProjectExid;
135
131
  dateId: string | number;
136
- }): Promise<Record<string, _360Floor>>;
132
+ }): Promise<_360Walk>;
137
133
  };
138
134
  forge: {
139
135
  getAccessToken(): Promise<{
140
136
  access_token: string;
141
137
  }>;
142
138
  getProjectInfo(projectExid: ProjectExid): Promise<ForgeProjectData | null>;
143
- getForgeData(projectId: string): Promise<ForgeProjectData | null>;
144
139
  saveSavedView(projectId: string, payload: ForgeView): Promise<void>;
145
140
  saveMarkers(projectId: string, markers: ForgeMarker[]): Promise<void>;
146
141
  };
@@ -33,6 +33,24 @@ export declare enum AuditLogActionType {
33
33
  BIM_NOTE = "bim_note",
34
34
  GATE_REPORT_NOTE = "gate_report_note"
35
35
  }
36
+ export declare enum AuditLogEntity {
37
+ Cameras = "cameras",
38
+ Projects = "projects",
39
+ Layers = "layers",
40
+ Routers = "routers",
41
+ Sims = "sims",
42
+ Hdds = "hdds",
43
+ Nvr = "nvr",
44
+ Archives = "archives",
45
+ Users = "users",
46
+ Rois = "rois",
47
+ Kits = "kits",
48
+ Roles = "roles",
49
+ Tags = "tags",
50
+ KitsTags = "kits_tags",
51
+ Oauth = "oauth",
52
+ StorageProviders = "storage_providers"
53
+ }
36
54
  export type AuditLog = {
37
55
  id: number;
38
56
  action: AuditLogActionType;
@@ -1,6 +1,6 @@
1
1
  import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase } from "@evercam/api/types";
2
2
  import { DateRangeFilter } from "@evercam/api/types/time";
3
- import { GeoPoint } from "@evercam/api/types/shared";
3
+ import { GeoPoint, TuplePoint2D } from "@evercam/api/types/shared";
4
4
  export type CameraExid = string;
5
5
  export type CamerasByExid = EntityByExid<Camera>;
6
6
  export type Camera = {
@@ -350,7 +350,7 @@ export type CameraCreateRequestPayload = {
350
350
  isPowerScheduleActive?: boolean;
351
351
  ptz?: boolean;
352
352
  name: string;
353
- coordinates?: [number, number];
353
+ coordinates?: TuplePoint2D;
354
354
  recordingFromNvr?: boolean;
355
355
  CameraConfig: {
356
356
  model: CameraModel;
@@ -1,8 +1,9 @@
1
- import { CameraExid, DateType, ProjectExid, PaginationParams } from "@evercam/api/types";
1
+ import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D } from "@evercam/api/types";
2
2
  export declare enum CommentsScope {
3
3
  Recordings = "recordings",
4
4
  ThreeSixty = "360",
5
- Drone = "drone"
5
+ Drone = "drone",
6
+ Timeline = "timeline"
6
7
  }
7
8
  export declare enum CommentsLabel {
8
9
  Info = "Info",
@@ -11,6 +12,7 @@ export declare enum CommentsLabel {
11
12
  }
12
13
  export type CommentsRequestPayload = {
13
14
  scope: CommentsScope;
15
+ cameraExid?: CameraExid;
14
16
  };
15
17
  export type CommentsListRequestPayload = PaginationParams & {
16
18
  projectExid?: ProjectExid;
@@ -34,8 +36,8 @@ export type Comment = {
34
36
  createdAt?: string;
35
37
  creatorEmail?: string;
36
38
  creatorName?: string;
37
- position2d?: [number, number];
38
- position3d?: [number, number, number];
39
+ position2d?: TuplePoint2D;
40
+ position3d?: TuplePoint3D;
39
41
  context?: Record<string, unknown>;
40
42
  canDelete?: boolean;
41
43
  archivedAt?: string;
@@ -49,7 +51,7 @@ export type CommentCreationRequestPayload = {
49
51
  projectExid: ProjectExid;
50
52
  cameraExid?: CameraExid;
51
53
  content: string;
52
- position2d?: number[];
53
- position3d?: number[];
54
+ position2d?: TuplePoint2D;
55
+ position3d?: [number, number, number];
54
56
  context?: Record<string, unknown>;
55
57
  };
@@ -13,15 +13,6 @@ export type SegmentsFilters = BaseDetectionsFilters & {
13
13
  cameraExid: CameraExid;
14
14
  };
15
15
  export type BBox = number[];
16
- export type SelectedObjectPath = {
17
- label: string;
18
- trackId: string;
19
- paths: Array<{
20
- timestamp: number;
21
- center: [number, number];
22
- bbox: BBox;
23
- }>;
24
- };
25
16
  export type Label = DetectionLabel | PpeLabel;
26
17
  export type Detection = {
27
18
  bbox: BBox;
@@ -1,4 +1,4 @@
1
- import { PaginationParams, DateType, JsonValue } from "@evercam/api/types";
1
+ import { PaginationParams, DateType, JsonValue, TuplePoint2D } from "@evercam/api/types";
2
2
  import type { _360FloorV2, _360WalkV2 } from "@evercam/api/types/360";
3
3
  export declare enum IngestProcessingStatus {
4
4
  Completed = "completed",
@@ -82,7 +82,7 @@ export type DroneUploadUpdateRequestPayload = {
82
82
  };
83
83
  export type CalculateMeasuringOperationRequestPayload = {
84
84
  date: DateType;
85
- points: [number, number][];
85
+ points: TuplePoint2D[];
86
86
  operation: string;
87
87
  };
88
88
  export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
@@ -1,4 +1,4 @@
1
- import { GeoPoint } from "./shared";
1
+ import { GeoPoint, TuplePoint2D } from "./shared";
2
2
  import { MapType } from "./map";
3
3
  export type PlannerListItem = {
4
4
  id: string;
@@ -15,8 +15,7 @@ export type PlannerListItem = {
15
15
  projectMapType?: MapType;
16
16
  sessionId?: string;
17
17
  };
18
- export type Coordinate = [number, number];
19
- export type PolygonPath = Coordinate[];
18
+ export type PolygonPath = TuplePoint2D[];
20
19
  export type PolygonCoordinates = PolygonPath[];
21
20
  export interface GeoJSONPolygon {
22
21
  type: "Polygon";
@@ -138,6 +138,7 @@ export interface JSON {
138
138
  parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
139
139
  }
140
140
  export type TuplePoint2D = [number, number];
141
+ export type TuplePoint3D = [number, number, number];
141
142
  export type Point2D = {
142
143
  x: number;
143
144
  y: number;
@@ -1,4 +1,4 @@
1
- import { BBox, BoundingBox, DateType, Schedule, ScheduleLowercase, CameraExid, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter, CameraFeatureFlag, TimelineDateInterval, Camera, AdminCamera, _360FloorV2, _360FloorId, PaginatedItems, DateRangeFilter } from "@evercam/api/types";
1
+ import { BBox, BoundingBox, DateType, Schedule, ScheduleLowercase, CameraExid, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter, CameraFeatureFlag, TimelineDateInterval, Camera, AdminCamera, _360FloorV2, _360FloorId, PaginatedItems, DateRangeFilter, TuplePoint2D } from "@evercam/api/types";
2
2
  import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
3
3
  export declare enum SiteAnalyticsMode {
4
4
  Detections = "detections",
@@ -184,7 +184,7 @@ export type DetectionsExportRequestParams = DetectionsRequestParams & {
184
184
  directDownload?: boolean;
185
185
  };
186
186
  export type SmartSearchHeatmapPoint = {
187
- coordinates: [number, number];
187
+ coordinates: TuplePoint2D;
188
188
  detectionsCount: number;
189
189
  };
190
190
  export type SmartSearchHeatmapData = {
@@ -1,4 +1,4 @@
1
- import { DateType, Schedule } from "@evercam/api/types";
1
+ import { DateType, Point2D, Schedule } from "@evercam/api/types";
2
2
  export declare enum TimelapseStatus {
3
3
  Pending = 11,
4
4
  Completed = 5,
@@ -26,11 +26,7 @@ export type TimestampPositionCoordinates = {
26
26
  w: number;
27
27
  h: number;
28
28
  };
29
- export type BlurRegionPoint = {
30
- x: number;
31
- y: number;
32
- };
33
- export type BlurRegionCoordinates = BlurRegionPoint[];
29
+ export type BlurRegionCoordinates = Point2D[];
34
30
  export type TimelapseLogoOptions = {
35
31
  id?: number;
36
32
  x: number;