@evercam/api 1.0.0-58e7ec980 → 1.0.0-5c3022ccb

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.
@@ -84,6 +84,13 @@ export declare enum AnalyticsEvent {
84
84
  WidgetsSelect360Floor = "Select360Floor",
85
85
  WidgetsSelect360Marker = "Select360Marker",
86
86
  Widgets360LockMedia = "360LockMedia",
87
+ WidgetsPauseWidget = "PauseWidget",
88
+ WidgetsEditWidget = "EditWidget",
89
+ WidgetsOpenCredentials = "OpenCredentials",
90
+ WidgetsCopyEmbeddedCode = "CopyEmbeddedCode",
91
+ WidgetsCopyIFrameCode = "CopyIFrameCode",
92
+ WidgetsCopyURLCode = "CopyURLCode",
93
+ WidgetsDeleteWidget = "DeleteWidget",
87
94
  WidgetsAddWidgetClick = "AddWidget",
88
95
  WidgetsCancelClick = "Cancel",
89
96
  WidgetsEditHeight = "EditHeight",
@@ -178,6 +185,12 @@ export declare enum AnalyticsEvent {
178
185
  XarySelectLatestDate = "Xray-SelectLatestDate",
179
186
  XarySelectOldestDate = "Xray-SelectOldestDate",
180
187
  XraySendToConnector = "Xray-SendToConnector",
188
+ XraySendToConnectorSent = "Xray-SendToConnector-Sent",
189
+ XraySendToConnectorProcore = "Xray-SendToConnector-Procore",
190
+ XraySendToConnectorProcorePhotos = "Xray-SendToConnector-Procore-Photos",
191
+ XraySendToConnectorProcoreObservations = "Xray-SendToConnector-Procore-Observations",
192
+ XraySendToConnectorAconex = "Xray-SendToConnector-Aconex",
193
+ XraySendToConnectorAutodesk = "Xray-SendToConnector-Autodesk",
181
194
  WeatherGoBackDate = "Weather-GoBackDate",
182
195
  WeatherGoForwardDate = "Weather-GoForwardDate",
183
196
  WeatherReportExportFile = "ExportFile",
@@ -241,6 +254,12 @@ export declare enum AnalyticsEvent {
241
254
  MarkUpToolSaveToMediaHub = "MarkUpTool-SaveToMediaHub",
242
255
  MarkUpToolDownloadAs = "MarkUpTool-DownloadAs",
243
256
  MarkUpToolSendToConnector = "MarkUpTool-SendToConnector",
257
+ MarkUpToolSendToConnectorSent = "MarkUpTool-SendToConnector-Sent",
258
+ MarkUpToolSendToConnectorProcore = "MarkUpTool-SendToConnector-Procore",
259
+ MarkUpToolSendToConnectorProcorePhotos = "MarkUpTool-SendToConnector-Procore-Photos",
260
+ MarkUpToolSendToConnectorProcoreObservations = "MarkUpTool-SendToConnector-Procore-Observations",
261
+ MarkUpToolSendToConnectorAconex = "MarkUpTool-SendToConnector-Aconex",
262
+ MarkUpToolSendToConnectorAutodesk = "MarkUpTool-SendToConnector-Autodesk",
244
263
  AiToolToggleBrainToolsMenu = "AITool-ToggleBrainToolsMenu",
245
264
  AiToolSelectObjectDetection = "AITool-SelectObjectDetection",
246
265
  AiToolSelectAskChatGpt = "AITool-SelectAskChatGpt",
@@ -317,7 +336,7 @@ export declare enum AnalyticsEvent {
317
336
  ThreeSixtyUploadAssets = "UploadAssets",
318
337
  DroneAreaToolClick = "AreaTool-Click",
319
338
  DroneChangeDate = "ChangeDate",
320
- DroneChooseTagType = "ChooseTagType",
339
+ DroneChooseCommentType = "ChooseCommentType",
321
340
  DroneClickCameraLiveView = "ClickCameraLiveView",
322
341
  DroneClickCameraMarker = "ClickCameraMarker",
323
342
  DroneCompareToolClick = "CompareTool-Click",
@@ -332,13 +351,14 @@ export declare enum AnalyticsEvent {
332
351
  DroneOpenHelpPanel = "OpenHelpPanel",
333
352
  DroneOpenImageViewer = "OpenImageViewer",
334
353
  DroneResetView = "ResetView",
335
- DroneSaveTag = "SaveTag",
336
354
  DroneSettingsToggle360PathsVisibility = "Settings-Toggle360PathsVisibility",
337
355
  DroneSettingsToggleCameraMarkersVisibility = "Settings-ToggleCameraMarkersVisibility",
338
356
  DroneSettingsToggleSurroundingBuildingsTool = "Settings-ToggleSurroundingBuildingsTool",
339
- DroneSettingsToggleTagsVisibility = "Settings-ToggleTagsVisibility",
357
+ DroneSettingsToggleCommentsVisibility = "Settings-ToggleCommentsVisibility",
358
+ DroneSettingsToggleAerialShotsVisibility = "Settings-ToggleAerialShotsVisibility",
359
+ DroneSettingsOpenCommentsList = "Settings-OpenCommentsList",
340
360
  DroneShareLink = "ShareLink",
341
- DroneTagsToolClick = "TagsTool-Click",
361
+ DroneCommentsToolClick = "CommentsTool-Click",
342
362
  DroneToggleBimCompareTool = "ToggleBimCompareTool",
343
363
  DroneToggleFullScreen = "ToggleFullScreen",
344
364
  DroneToggleMapStyle = "ToggleMapStyle",
@@ -352,6 +372,10 @@ export declare enum AnalyticsEvent {
352
372
  DroneZoomIn = "ZoomIn",
353
373
  DroneZoomOut = "ZoomOut",
354
374
  DroneUploadSkipping = "SkipImageUpload",// To be removed later
375
+ DroneSaveComment = "SaveComment",
376
+ DroneUnarchiveComment = "UnarchiveComment",
377
+ DroneArchiveComment = "ArchiveComment",
378
+ DroneDeleteComment = "DeleteComment",
355
379
  PlannerAddCameraClick = "AddCameraClick",
356
380
  PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
357
381
  PlannerAddSitePlanClick = "AddSitePlanClick",
@@ -543,7 +567,7 @@ export declare enum AnalyticsEvent {
543
567
  SmartSearchFilterSavedQueries = "SmartSearch-FilterSavedQueries",
544
568
  SmartSearchThumbnailHover = "SmartSearch-ThumbnailHover",
545
569
  SmartSearchThumbnailError = "SmartSearch-ThumbnailError",
546
- SmartSearchCameraSelected = "SmartSearch-CameraSelected",
570
+ SmartSearchViewSelected = "SmartSearch-ViewSelected",
547
571
  SmartSearchOptionClicked = "SmartSearch-OptionClicked",
548
572
  SmartSearchEditQuery = "SmartSearch-EditQuery",
549
573
  SmartSearchDeleteQuery = "SmartSearch-DeleteQuery",
@@ -1,17 +1,23 @@
1
1
  export declare enum RoleResourceType {
2
+ App = "app",
2
3
  Camera = "camera",
3
4
  Project = "project"
4
5
  }
5
- export type Role = {
6
+ export type BaseRole = {
6
7
  id: number;
7
8
  name: string;
9
+ };
10
+ export type Role = BaseRole & {
8
11
  resource: string;
9
12
  resourceType: RoleResourceType;
10
13
  permissions: string[];
11
- subRoles?: Array<{
12
- resourceId: string;
13
- roleId: number;
14
- }>;
14
+ subRoles?: Array<SubRole>;
15
+ };
16
+ export type SubRole = {
17
+ resourceId: string;
18
+ roleId: number;
19
+ permissions: string[];
20
+ roleName: string;
15
21
  };
16
22
  export type ProjectResourceRole = Role & {
17
23
  resourceType: RoleResourceType.Project;
@@ -8,6 +8,7 @@ export type AxiosEnvironment = {
8
8
  baseUrl?: string | null;
9
9
  stagingAiApiUrl?: string | null;
10
10
  aiApiUrl?: string | null;
11
+ aiApiUrlV2?: string | null;
11
12
  ingestApiUrl?: string | null;
12
13
  ingestGpuApiUrl?: string | null;
13
14
  posthogApiUrl?: string | null;
@@ -73,7 +73,6 @@ export type Camera = {
73
73
  rtmp: string;
74
74
  };
75
75
  ptz: boolean;
76
- rights: string;
77
76
  roll: string | null;
78
77
  routerId: number;
79
78
  status: CameraStatus;
@@ -155,6 +154,7 @@ export type AdminCamera = {
155
154
  userId: number;
156
155
  zohoId: string;
157
156
  thumbnailUrl?: string;
157
+ sharedWithConstruction: boolean;
158
158
  };
159
159
  export type CameraMapMarker = {
160
160
  isOnline: boolean;
@@ -177,13 +177,14 @@ export declare enum CameraStatus {
177
177
  UnderMaintenance = "under_maintenance",
178
178
  WaitingForSiteVisit = "waiting_for_site_visit"
179
179
  }
180
- export declare enum IntensityChangeColors {
181
- High = "#FF5252",
182
- Moderate = "#FBC02D",
183
- Low = "#006400",
184
- NoChange = "#3ACF3A",
185
- Default = "black"
180
+ export declare enum IntensityChange {
181
+ High = "High",
182
+ Moderate = "Moderate",
183
+ Low = "Low",
184
+ NoChange = "No change",
185
+ Default = "Default"
186
186
  }
187
+ export declare const IntensityChangeColorMap: Record<IntensityChange, string>;
187
188
  export declare enum CameraFeatureFlag {
188
189
  EdgeVideo = "edge_video",
189
190
  BimCompare = "bim_compare",
@@ -10,12 +10,7 @@ export declare enum CommentsLabel {
10
10
  Restricted = "Restricted"
11
11
  }
12
12
  export type CommentsRequestPayload = {
13
- cameraExid: CameraExid;
14
- fromDate: string;
15
- toDate: string;
16
13
  scope: CommentsScope;
17
- page?: number;
18
- limit?: number;
19
14
  };
20
15
  export type CommentsListRequestPayload = PaginationParams & {
21
16
  projectExid?: ProjectExid;
@@ -44,6 +39,7 @@ export type Comment = {
44
39
  context?: Record<string, unknown>;
45
40
  canDelete?: boolean;
46
41
  archivedAt?: string;
42
+ label?: CommentsLabel;
47
43
  };
48
44
  export type CommentCreationRequestPayload = {
49
45
  fromDate?: DateType;
@@ -1,4 +1,4 @@
1
- import { AnprDirection, CameraExid, Date_HH, Date_YYYY, Date_YYYY_MM, Date_YYYY_MM_DD, DateTime, DateTimeSpaceSeparated, DateType, PaginatedItems, PaginationParams, ProjectExid, ProjectFeatureFlag, Timestamp } from "@/types";
1
+ import { AnprDirection, CameraExid, Date_HH, Date_YYYY, Date_YYYY_MM, Date_YYYY_MM_DD, DateTime, DateTimeSpaceSeparated, DateType, PaginatedItems, PaginationParams, ProjectExid, Timestamp } from "@/types";
2
2
  export declare enum GateReportDetectionType {
3
3
  Auto = "auto",
4
4
  Manual = "manual",
@@ -59,16 +59,19 @@ export declare enum DetectionLabel {
59
59
  ConcreteBlock = "concrete_block",
60
60
  ConcretePipe = "concrete_pipe",
61
61
  ConcreteSlab = "concrete_slab",
62
+ Door = "door",
62
63
  PlasticWrap = "plastic_wrap",
63
64
  ContainerOffice = "container_office",
64
65
  ElectricalPole = "electrical_pole",
65
66
  ElectricalBox = "electrical_box",
66
67
  FireHydrant = "fire_hydrant",
68
+ FireExtinguisher = "fire-extinguisher",
67
69
  HoseReel = "hose_reel",
68
70
  Ladder = "ladder",
69
71
  MetalBeam = "metal_beam",
70
72
  MetalPipe = "metal_pipe",
71
73
  Pallet = "pallet",
74
+ Person = "person",
72
75
  Pillar = "pillar",
73
76
  PlasticBin = "plastic_bin",
74
77
  PlasticBucket = "plastic_bucket",
@@ -214,24 +217,6 @@ export type EventCountResponsePayload = {
214
217
  months?: MonthlyEventCount[];
215
218
  years?: YearlyEventCount[];
216
219
  };
217
- export type ProcessedDaysRequestPayload = {
218
- apiId?: string;
219
- apiKey?: string;
220
- isPublic?: Boolean;
221
- };
222
- export type EventsRequestPayload = {
223
- apiId?: string;
224
- apiKey?: string;
225
- camerasExid?: CameraExid[];
226
- cameras?: string[];
227
- eventType?: GateReportEventType;
228
- fromDate?: DateTime;
229
- isPublic?: boolean;
230
- toDate?: DateTime;
231
- truckTypes?: GateReportVehicleType[];
232
- vehicleTypes?: string[];
233
- } & PaginationParams;
234
- export type EventsResponsePayload = PaginatedItems<GateReportEvent>;
235
220
  export declare enum GateReportDataSource {
236
221
  Anpr = "anpr",
237
222
  Events = "events"
@@ -311,52 +296,6 @@ export type GateReportCamera = {
311
296
  last_published_day: DateType;
312
297
  last_processed_day: DateType;
313
298
  };
314
- export type GateReportProject = {
315
- exid: string;
316
- name: string;
317
- status: string;
318
- featureFlags: ProjectFeatureFlag;
319
- cameras: GateReportCamera[];
320
- };
321
- export type AnalyticsParameters = {
322
- id: number;
323
- cameraex: string;
324
- processingType: string;
325
- startDate: DateTime;
326
- endDate: DateTime;
327
- skipWeekend: boolean;
328
- hourSiteOpening: number;
329
- hourSiteClosure: number;
330
- gateReportActive: boolean;
331
- countingActive: boolean;
332
- queueSystem: string;
333
- reprocess: boolean;
334
- framesToSkip: number;
335
- detection_model: string;
336
- detectionThreshold: number;
337
- printLogsFrame: number;
338
- crossingVectorAngleLimit: number;
339
- minTruckLife: number;
340
- insideMinTime: number;
341
- trackerMaxAge: number;
342
- trackerMinHit: number;
343
- snapshotUpload: boolean;
344
- snapshotPerSecond: number;
345
- detectionClasses: string;
346
- deepEventEndpointUrl: string;
347
- timestampCalculation: string;
348
- matchingEmbeddedDstCoeff: number;
349
- matchingTimeCoeff: number;
350
- matchingQueueOrderCoeff: number;
351
- rabbitmqServerUrl: string;
352
- rabbitmqEventsQueue: string;
353
- rabbitmqEventsExchange: string;
354
- rabbitmqCountingQueue: string;
355
- rabbitmqCountingExchange: string;
356
- dangerZones: boolean;
357
- workflows: boolean;
358
- linkedAnprCameras: Record<string, unknown>;
359
- };
360
299
  export type VerifiedDaysQueryParams = PaginationParams & {
361
300
  projectExid: ProjectExid;
362
301
  camerasExid: CameraExid[];
@@ -366,30 +305,6 @@ export type VerifiedDaysQueryParams = PaginationParams & {
366
305
  updatedAt: DateTime[];
367
306
  day: string;
368
307
  };
369
- export type EventUpdateRequestPayload = {
370
- cameraex: string;
371
- roiId: number;
372
- eventType: string;
373
- eventTime: "2024-12-13T14:25:58.066Z";
374
- truckType: string;
375
- isPublic: boolean;
376
- boundingBox: {
377
- additionalProp1: number;
378
- additionalProp2: number;
379
- additionalProp3: number;
380
- };
381
- valid: boolean;
382
- loadState: string;
383
- embeddingId: number;
384
- embedding: number[];
385
- similarityDst: number;
386
- detectionType: string;
387
- trackingId: number;
388
- deliveriesId: number;
389
- edited: boolean;
390
- isDeleted: boolean;
391
- modelVersion: string;
392
- };
393
308
  export type VerifyDayUpdateRequestPayload = {
394
309
  camerasExid: string[];
395
310
  projectExid: string;
@@ -402,18 +317,6 @@ export type ProcessedDaysQueryParams = {
402
317
  isPublic: boolean;
403
318
  eventType: GateReportEventType;
404
319
  };
405
- export type SecurityMeasurementQueryParams = {
406
- cameraex: string;
407
- timestamp: DateTime;
408
- prompt: string;
409
- snapshotUrl: string;
410
- };
411
- export type ObjectDetectionQueryParams = {
412
- cameraex: string;
413
- timestamp: DateTime;
414
- base64Img: string;
415
- snapshotUrl: string;
416
- };
417
320
  export type RoisQueryParams = {
418
321
  cameraExid: string;
419
322
  id: number;
@@ -355,3 +355,22 @@ export type KitAlarmItem = {
355
355
  startDate: DateTime;
356
356
  endDate: DateTime | null;
357
357
  };
358
+ export type KitBox = {
359
+ id: string;
360
+ gatewaySerial: string;
361
+ gatewayMac: string;
362
+ gatewayConfig: Record<string, unknown> | null;
363
+ insertedAt: DateTime;
364
+ updatedAt: DateTime;
365
+ };
366
+ export type KitBoxCreatePayload = {
367
+ id?: string;
368
+ gatewaySerial: string;
369
+ gatewayMac: string;
370
+ gatewayConfig?: Record<string, unknown>;
371
+ };
372
+ export type KitBoxQueryParams = PaginationParams & {
373
+ id: string;
374
+ gatewaySerial: string;
375
+ gatewayMac: string;
376
+ };
@@ -53,7 +53,6 @@ export declare enum ProjectFeatureFlag {
53
53
  ThreeSixtyView = "360_view",
54
54
  NdaMc = "NDA/MC",
55
55
  GateReport = "gate_report",
56
- GateReportAutoVerify = "auto_publish",
57
56
  GateReportMotionDetection = "motion_detection",
58
57
  FullEmpty = "full_empty",
59
58
  MediaHubSharing = "archives_sharing",
@@ -139,7 +138,13 @@ export type ProjectMember = {
139
138
  id: string;
140
139
  email: string;
141
140
  fullname: string;
141
+ lastSeenAt?: DateTime;
142
142
  role: ProjectRole;
143
+ permissions?: string[];
144
+ subRoles?: Array<{
145
+ resourceId: string;
146
+ roleId: number;
147
+ }>;
143
148
  };
144
149
  export type ProjectInvite = {
145
150
  id?: string;
@@ -47,6 +47,10 @@ export declare enum RouterStatus {
47
47
  Active = "active",
48
48
  Inactive = "inactive"
49
49
  }
50
+ export declare enum RouterScanInputMode {
51
+ Qr = "qr",
52
+ Manual = "manual"
53
+ }
50
54
  export type RouterQueryParams = PaginationParams & {
51
55
  routerType: string;
52
56
  vpnServer: string;
@@ -65,3 +69,18 @@ export type RouterCreatePayload = {
65
69
  vpnServer?: string;
66
70
  netbirdUrl?: string;
67
71
  };
72
+ export type RouterQRScanResult = {
73
+ raw: string;
74
+ timestamp: string;
75
+ sn?: string;
76
+ m?: string;
77
+ u?: string;
78
+ pw?: string;
79
+ t?: string;
80
+ s?: string;
81
+ p?: string;
82
+ i?: string;
83
+ b?: string;
84
+ boxId?: string;
85
+ isDuplicate?: boolean;
86
+ };
@@ -1,4 +1,4 @@
1
- import type { CameraExid, DateTime, DateType } from "@/types";
1
+ import type { DateType } from "@/types";
2
2
  export type ShareRequest = {
3
3
  cameraId: string;
4
4
  createdAt: DateType | number;
@@ -24,19 +24,6 @@ export type Share = {
24
24
  userId: number;
25
25
  isUserAccessRestricted: boolean;
26
26
  };
27
- export type ShareRequestsResponsePayload = {
28
- shareRequests: ShareRequest[];
29
- };
30
- export type ShareOwner = {
31
- email: string;
32
- fullname: string;
33
- lastSeenAt: DateType;
34
- sessionCount: number;
35
- };
36
- export type SharesResponsePayload = {
37
- owner: ShareOwner;
38
- shares: Share[];
39
- };
40
27
  export type ShareDeletionRequestPayload = {
41
28
  email?: string;
42
29
  key?: string;
@@ -54,143 +41,18 @@ export type ShareCreateRequestPayload = {
54
41
  apiId?: string;
55
42
  apiKey?: string;
56
43
  };
57
- export type ShareProjectCamerasRequestPayload = {
58
- email: string[];
59
- cameraExids: CameraExid[];
60
- message: string;
61
- permission?: string;
62
- rights: string;
63
- };
64
- export type UpdateUserRestrictionPayload = {
65
- email: string[];
66
- isUserAccessRestricted: boolean;
67
- };
68
44
  export type ShareCreateResponsePayload = {
69
45
  shares: Share[];
70
46
  shareRequests: ShareRequest[];
71
47
  };
72
- export type ShareRequestByKeyResponsePayload = {
73
- shareRequests: Array<{
74
- id: string;
75
- email: string;
76
- rights: string;
77
- cameraId: string;
78
- sharerName: string;
79
- userId: string;
80
- sharerEmail: string;
81
- createdAt: DateType;
82
- }>;
83
- };
84
- export type ResendShareRequestPayload = {
85
- email: string;
86
- apiId?: string;
87
- apiKey?: string;
88
- };
89
- export declare enum SharePermission {
90
- Minimum = "minimum",
91
- Share = "minimal+share",
92
- Full = "full",
93
- Custom = "custom"
94
- }
95
- export declare enum ShareType {
96
- Share = "share",
97
- Request = "request"
98
- }
99
- export declare enum ShareRequestStatus {
100
- Pending = -1,
101
- Cancelled = -2,
102
- Failed = -3,
103
- Used = 1
48
+ export declare enum InviteStatus {
49
+ Pending = 0,
50
+ Cancelled = -1,
51
+ Used = 1,
52
+ Failed = -2
104
53
  }
105
54
  export declare enum ShareVisibility {
106
55
  PublicDiscoverable = "publicDiscoverable",
107
56
  PublicUndiscoverable = "publicUndiscoverable",
108
57
  Private = "private"
109
58
  }
110
- export type ProjectShare = {
111
- id: number;
112
- projectId: string;
113
- userId: number;
114
- email: string;
115
- fullname: string;
116
- sharerId: number;
117
- sharerEmail: string;
118
- sharerName: string;
119
- role: "member" | "admin";
120
- cameras: Record<string, string>;
121
- message: string | null;
122
- updatedAt: DateType;
123
- insertedAt: DateType;
124
- };
125
- export type ProjectShareRequest = ProjectShare;
126
- export type ProjectShareResponse = {
127
- projectShares: ProjectShare[];
128
- projectShareRequests: ProjectShareRequest[];
129
- };
130
- export type AdminShare = {
131
- sharerId: number;
132
- sharerFullname: string;
133
- sharerApiId: string;
134
- sharerApiKey: string;
135
- shareeId: number;
136
- shareeFullname: string;
137
- shareeApiId: string;
138
- shareeApiKey: string;
139
- shareeEmail: string;
140
- cameraId: number;
141
- exid: string;
142
- projectId: string;
143
- name: string;
144
- id: number;
145
- message: string;
146
- createdAt: DateType;
147
- };
148
- export type CameraShareRequestPayload = {
149
- email: string[];
150
- rights: string;
151
- message?: string;
152
- };
153
- export type ShareQueryParams = {
154
- exid: string;
155
- sharerFullname: string;
156
- shareeFullname: string;
157
- shareeEmail: string;
158
- };
159
- export type CameraShare = {
160
- sharerId: number;
161
- sharerFullname: string;
162
- sharerApiId: string;
163
- sharerApiKey: string;
164
- shareeId: number;
165
- shareeFullname: string;
166
- shareeApiId: string;
167
- shareeApiKey: string;
168
- shareeEmail: string;
169
- cameraId: number;
170
- exid: string;
171
- projectId: string;
172
- name: string;
173
- id: number;
174
- message: string;
175
- createdAt: DateTime;
176
- };
177
- export type CameraShareRequestsQueryParams = {
178
- shareeEmail: string;
179
- camera: string;
180
- sharer: string;
181
- status: string;
182
- };
183
- export type CameraShareRequest = {
184
- id: number;
185
- shareeEmail: string;
186
- camera: string;
187
- sharer: string;
188
- message: number;
189
- rights: string;
190
- status: number;
191
- projectId: string;
192
- cameraExid: string;
193
- apiId: string;
194
- apiKey: number;
195
- createdAt: DateTime;
196
- };