@evercam/api 1.0.0-preview-bump-node-e24fde544 → 1.0.0-preview-test-on-pr-ff50e7c86

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.
Files changed (98) hide show
  1. package/README.md +2 -0
  2. package/dist/api/{api/3dFirebaseApi.d.ts → 3dFirebaseApi.d.ts} +1 -0
  3. package/dist/api/{api/adminApi.d.ts → adminApi.d.ts} +10 -2
  4. package/dist/api/{api/aiApi.d.ts → aiApi.d.ts} +14 -5
  5. package/dist/api/{api/evercamApi.d.ts → evercamApi.d.ts} +8 -9
  6. package/dist/api/{api/evercamLabsApi.d.ts → evercamLabsApi.d.ts} +3 -2
  7. package/dist/api/index.d.ts +13 -3
  8. package/dist/api/{api/ingestApi.d.ts → ingestApi.d.ts} +28 -6
  9. package/dist/index.d.ts +3 -2
  10. package/dist/index.js +518 -410
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.umd.cjs +1 -1
  13. package/dist/index.umd.cjs.map +1 -1
  14. package/dist/{api/types → types}/360.d.ts +44 -2
  15. package/dist/types/aconex.d.ts +143 -0
  16. package/dist/{api/types → types}/analytics.d.ts +22 -2
  17. package/dist/{api/types → types}/anpr.d.ts +5 -11
  18. package/dist/types/automation.d.ts +61 -0
  19. package/dist/{api/types → types}/camera.d.ts +7 -2
  20. package/dist/{api/types → types}/coolify.d.ts +2 -0
  21. package/dist/{api/types → types}/detections.d.ts +4 -18
  22. package/dist/{api/types → types}/errors.d.ts +1 -0
  23. package/dist/{api/types → types}/index.d.ts +1 -0
  24. package/dist/{api/types → types}/ingest.d.ts +4 -0
  25. package/dist/{api/types → types}/progressPhoto.d.ts +1 -31
  26. package/dist/{api/types → types}/project.d.ts +4 -1
  27. package/dist/{api/types → types}/routeParams.d.ts +2 -1
  28. package/dist/{api/types → types}/siteAnalytics.d.ts +28 -7
  29. package/dist/{api/types → types}/snapshots.d.ts +9 -0
  30. package/dist/{api/types → types}/time.d.ts +4 -0
  31. package/dist/{api/types → types}/weather.d.ts +2 -0
  32. package/dist/{api/types → types}/widget.d.ts +4 -4
  33. package/dist/{api/utils.d.ts → utils.d.ts} +1 -0
  34. package/package.json +4 -4
  35. package/dist/api/api/index.d.ts +0 -13
  36. package/dist/api/types/aconex.d.ts +0 -45
  37. package/dist/api/types/automation.d.ts +0 -10
  38. package/dist/shared/api/index.d.ts +0 -3
  39. package/dist/shared/components/timelinePlayer/providers/index.d.ts +0 -3
  40. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +0 -17
  41. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +0 -13
  42. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +0 -16
  43. package/dist/shared/types/components.d.ts +0 -193
  44. package/dist/shared/types/imagePlayer.d.ts +0 -34
  45. package/dist/shared/types/index.d.ts +0 -4
  46. package/dist/shared/types/timeline.d.ts +0 -9
  47. /package/dist/api/{api/authzApi.d.ts → authzApi.d.ts} +0 -0
  48. /package/dist/api/{api/client → client}/axios.d.ts +0 -0
  49. /package/dist/api/{api/client → client}/customErrors.d.ts +0 -0
  50. /package/dist/api/{api/client → client}/index.d.ts +0 -0
  51. /package/dist/api/{api/client → client}/interceptors.d.ts +0 -0
  52. /package/dist/api/{api/client → client}/swr/Swr.d.ts +0 -0
  53. /package/dist/api/{api/client → client}/swr/SwrStore.d.ts +0 -0
  54. /package/dist/api/{api/exNvrApi.d.ts → exNvrApi.d.ts} +0 -0
  55. /package/dist/api/{api/ptzApi.d.ts → ptzApi.d.ts} +0 -0
  56. /package/dist/api/{api/videoWallApi.d.ts → videoWallApi.d.ts} +0 -0
  57. /package/dist/api/{api/weatherApi.d.ts → weatherApi.d.ts} +0 -0
  58. /package/dist/api/{api/webRtcApi.d.ts → webRtcApi.d.ts} +0 -0
  59. /package/dist/{api/types → types}/auditLogs.d.ts +0 -0
  60. /package/dist/{api/types → types}/autodesk.d.ts +0 -0
  61. /package/dist/{api/types → types}/axios.d.ts +0 -0
  62. /package/dist/{api/types → types}/bim.d.ts +0 -0
  63. /package/dist/{api/types → types}/comments.d.ts +0 -0
  64. /package/dist/{api/types → types}/company.d.ts +0 -0
  65. /package/dist/{api/types → types}/compare.d.ts +0 -0
  66. /package/dist/{api/types → types}/connector.d.ts +0 -0
  67. /package/dist/{api/types → types}/copilot.d.ts +0 -0
  68. /package/dist/{api/types → types}/countries.d.ts +0 -0
  69. /package/dist/{api/types → types}/credentials.d.ts +0 -0
  70. /package/dist/{api/types → types}/drone.d.ts +0 -0
  71. /package/dist/{api/types → types}/gateReport.d.ts +0 -0
  72. /package/dist/{api/types → types}/hdd.d.ts +0 -0
  73. /package/dist/{api/types → types}/kit.d.ts +0 -0
  74. /package/dist/{api/types → types}/map.d.ts +0 -0
  75. /package/dist/{api/types → types}/media.d.ts +0 -0
  76. /package/dist/{api/types → types}/notification.d.ts +0 -0
  77. /package/dist/{api/types → types}/nvr.d.ts +0 -0
  78. /package/dist/{api/types → types}/planner.d.ts +0 -0
  79. /package/dist/{api/types → types}/posthog.d.ts +0 -0
  80. /package/dist/{api/types → types}/procore.d.ts +0 -0
  81. /package/dist/{api/types → types}/recording.d.ts +0 -0
  82. /package/dist/{api/types → types}/recycleBin.d.ts +0 -0
  83. /package/dist/{api/types → types}/roi.d.ts +0 -0
  84. /package/dist/{api/types → types}/router.d.ts +0 -0
  85. /package/dist/{api/types → types}/shared.d.ts +0 -0
  86. /package/dist/{api/types → types}/shares.d.ts +0 -0
  87. /package/dist/{api/types → types}/sim.d.ts +0 -0
  88. /package/dist/{api/types → types}/sso.d.ts +0 -0
  89. /package/dist/{api/types → types}/storageServers.d.ts +0 -0
  90. /package/dist/{api/types → types}/streaming.d.ts +0 -0
  91. /package/dist/{api/types → types}/systemCheck.d.ts +0 -0
  92. /package/dist/{api/types → types}/tag.d.ts +0 -0
  93. /package/dist/{api/types → types}/timelapse.d.ts +0 -0
  94. /package/dist/{api/types → types}/user.d.ts +0 -0
  95. /package/dist/{api/types → types}/vendorModel.d.ts +0 -0
  96. /package/dist/{api/types → types}/videoWall.d.ts +0 -0
  97. /package/dist/{api/types → types}/voyageControl.d.ts +0 -0
  98. /package/dist/{api/types → types}/xweather.d.ts +0 -0
@@ -47,8 +47,7 @@ export declare enum _360AssetLabel {
47
47
  export declare enum _360Feature {
48
48
  BIM = "BIM",
49
49
  Minimap = "Minimap",
50
- Minimodel = "Minimodel",
51
- MobilePhoto = "MobilePhoto"
50
+ Minimodel = "Minimodel"
52
51
  }
53
52
  export declare enum _360IntergrationType {
54
53
  Evercam = "Evercam",
@@ -76,6 +75,49 @@ export type _360AssetsRequestPayload = {
76
75
  floor: string;
77
76
  uploadedBy?: string;
78
77
  };
78
+ export type DrawingsRequestPayload = {
79
+ projectId?: string;
80
+ name?: string;
81
+ changedBy?: string;
82
+ mapStyle?: string;
83
+ startDate?: string;
84
+ endDate?: string;
85
+ id?: number;
86
+ page?: number;
87
+ limit?: number;
88
+ paginate?: boolean;
89
+ };
90
+ export type GenerateFloorPayload = {
91
+ overlay?: {
92
+ url: string;
93
+ title: string;
94
+ fileExtension: string;
95
+ };
96
+ changedBy: string;
97
+ name?: string;
98
+ mapStyle?: string;
99
+ overlayPositionCorners: {
100
+ northEast: {
101
+ lat: number;
102
+ lng: number;
103
+ };
104
+ northWest: {
105
+ lat: number;
106
+ lng: number;
107
+ };
108
+ southWest: {
109
+ lat: number;
110
+ lng: number;
111
+ };
112
+ southEast: {
113
+ lat: number;
114
+ lng: number;
115
+ };
116
+ };
117
+ };
118
+ export type _360QueueQueryParams = {
119
+ projectId?: string;
120
+ };
79
121
  export type _360AssetsUploadPayload = {
80
122
  targetPointsCount: number;
81
123
  assetType: string;
@@ -0,0 +1,143 @@
1
+ export type AconexUserProjectsResponsePayload = Array<{
2
+ id: number;
3
+ name: string;
4
+ shortName: string;
5
+ startDate: string;
6
+ endDate: string;
7
+ active: boolean;
8
+ hidden: boolean;
9
+ }>;
10
+ export type AconexDocumentSchemaResponsePayload = Array<{
11
+ dataType: AconexDocumentDataType;
12
+ identifier: AconexIdentifiers;
13
+ fieldName: string;
14
+ modifiedFieldName?: string;
15
+ mandatoryStatus: AconexMandatoryStatus;
16
+ schemaValues?: Array<{
17
+ id: string;
18
+ value: string;
19
+ }>;
20
+ }>;
21
+ export type AconexDocumentTypeSchemaResponsePayload = Array<{
22
+ dataType: AconexDocumentDataType;
23
+ identifier: string;
24
+ fieldName: string;
25
+ modifiedFieldName?: string;
26
+ mandatoryStatus: string;
27
+ specifications?: Array<AconexFieldSpecification>;
28
+ }>;
29
+ export type AconexDocumentSchemaField = {
30
+ dataType: AconexDocumentDataType;
31
+ identifier: AconexIdentifiers | string;
32
+ schemaValues?: Array<{
33
+ id: string;
34
+ value: string;
35
+ }>;
36
+ fieldName: string;
37
+ modifiedFieldName?: string;
38
+ mandatoryStatus: AconexMandatoryStatus;
39
+ componentType?: AconexFormComponentType;
40
+ items?: Array<any>;
41
+ disabled?: boolean;
42
+ specifications?: Array<AconexFieldSpecification>;
43
+ };
44
+ export type AconexFormSchema = Record<AconexIdentifiers | string, AconexDocumentSchemaField>;
45
+ export type AconexFieldSpecification = {
46
+ name: string;
47
+ options: Array<string>;
48
+ };
49
+ export declare enum AconexDocumentDataType {
50
+ String = "STRING",
51
+ Boolean = "BOOLEAN",
52
+ Ratio = "RATIO",
53
+ Integer = "INTEGER",
54
+ Double = "DOUBLE",
55
+ Long = "LONG",
56
+ Date = "DATE",
57
+ Complex = "COMPLEX",
58
+ SingleLineText = "SINGLE_LINE_TEXT",
59
+ MultiLineText = "MULTI_LINE_TEXT",
60
+ SingleSelect = "SINGLE_SELECT",
61
+ MultiSelect = "MULTI_SELECT",
62
+ User = "USER",
63
+ Number = "NUMBER"
64
+ }
65
+ export declare enum AconexFormComponentType {
66
+ Select = "SelectField",
67
+ Text = "TextField",
68
+ DateTime = "DateTimeField",
69
+ Switch = "SwitchField"
70
+ }
71
+ export declare enum AconexMandatoryStatus {
72
+ Mandatory = "MANDATORY",
73
+ NotMandatory = "NOT_MANDATORY"
74
+ }
75
+ export type AconexAuthCallbackParams = {
76
+ code: string;
77
+ location: string;
78
+ };
79
+ export type AconexEditedImageUploadRequestPayload = {
80
+ projectExid: string;
81
+ snapshot: string;
82
+ };
83
+ export declare enum AconexIdentifiers {
84
+ DocumentNumber = "DocumentNumber",
85
+ DocumentTypeId = "DocumentTypeId",
86
+ Revision = "Revision",
87
+ HasFile = "HasFile",
88
+ AccessList = "AccessList",
89
+ AsBuiltRequired = "AsBuiltRequired",
90
+ Attribute1 = "Attribute1",
91
+ Attribute2 = "Attribute2",
92
+ Attribute3 = "Attribute3",
93
+ Attribute4 = "Attribute4",
94
+ Author = "Author",
95
+ AuthorisedBy = "AuthorisedBy",
96
+ Category = "Category",
97
+ Check1 = "Check1",
98
+ Check2 = "Check2",
99
+ Comments = "Comments",
100
+ Comments2 = "Comments2",
101
+ ContractNumber = "ContractNumber",
102
+ ContractDeliverable = "ContractDeliverable",
103
+ ContractorDocumentNumber = "ContractorDocumentNumber",
104
+ ContractorRev = "ContractorRev",
105
+ Date1 = "Date1",
106
+ Date2 = "Date2",
107
+ DateApproved = "DateApproved",
108
+ DateCreated = "DateCreated",
109
+ DateForReview = "DateForReview",
110
+ DateReviewed = "DateReviewed",
111
+ Discipline = "Discipline",
112
+ DocumentStatusId = "DocumentStatusId",
113
+ MilestoneDate = "MilestoneDate",
114
+ PackageNumber = "PackageNumber",
115
+ PercentageComplete = "PercentageComplete",
116
+ PlannedSubmissionDate = "PlannedSubmissionDate",
117
+ PrintSize = "PrintSize",
118
+ ProjectField1 = "ProjectField1",
119
+ ProjectField2 = "ProjectField2",
120
+ ProjectField3 = "ProjectField3",
121
+ Reference = "Reference",
122
+ RevisionDate = "RevisionDate",
123
+ Scale = "Scale",
124
+ SelectList1 = "SelectList1",
125
+ SelectList2 = "SelectList2",
126
+ SelectList3 = "SelectList3",
127
+ SelectList4 = "SelectList4",
128
+ SelectList5 = "SelectList5",
129
+ SelectList6 = "SelectList6",
130
+ SelectList7 = "SelectList7",
131
+ SelectList8 = "SelectList8",
132
+ SelectList9 = "SelectList9",
133
+ SelectList10 = "SelectList10",
134
+ TagNumber = "TagNumber",
135
+ Title = "Title",
136
+ ToClientDate = "ToClientDate",
137
+ UploadDate = "UploadDate",
138
+ UploadedBy = "UploadedBy",
139
+ Vdrcode = "Vdrcode",
140
+ VendorDocumentNumber = "VendorDocumentNumber",
141
+ VendorRev = "VendorRev",
142
+ AutoNumber = "AutoNumber"
143
+ }
@@ -43,7 +43,8 @@ export declare enum AnalyticsEventPageId {
43
43
  BimCompareInfo = "BimCompareInfo",
44
44
  WeatherReport = "WeatherReport",
45
45
  PpeReport = "PpeReport",
46
- SmartSearch = "SmartSearch"
46
+ SmartSearch = "SmartSearch",
47
+ Drawings = "Drawings"
47
48
  }
48
49
  export declare enum AnalyticsEvent {
49
50
  PageView = "PageView",
@@ -77,6 +78,12 @@ export declare enum AnalyticsEvent {
77
78
  SettingsConnectorsRemoveVoyageControlConnection = "RemoveVoyageControl",
78
79
  SettingsConnectorsToggleConnectorPromptDialog = "ToggleConnectorPromptDialog",
79
80
  SettingsConnectorsToggleVoyageControlDialog = "ToggleVoyageControlDialog",
81
+ WidgetsSelectTypeThreeSixty = "Widgets-SelectType360",
82
+ WidgetsSelectProject = "SelectProject",
83
+ WidgetsSelect360Date = "Select360Date",
84
+ WidgetsSelect360Floor = "Select360Floor",
85
+ WidgetsSelect360Marker = "Select360Marker",
86
+ Widgets360LockMedia = "360LockMedia",
80
87
  WidgetsAddWidgetClick = "AddWidget",
81
88
  WidgetsCancelClick = "Cancel",
82
89
  WidgetsEditHeight = "EditHeight",
@@ -103,6 +110,7 @@ export declare enum AnalyticsEvent {
103
110
  WidgetsSettingToggleRestrictRecentImages = "ToggleRestrictRecentImages",
104
111
  WidgetsSettingToggleZoom = "ToggleZoom",
105
112
  WidgetsTogglePublicWidget = "TogglePublicWidget",
113
+ WidgetsToggleRestrictRecordingsRange = "ToggleRestrictRecordingsRange",
106
114
  PlayerSelectCamera = "Player-SelectCamera",
107
115
  PlayerDownload = "Player-Download",
108
116
  PlayerToggleFullscreen = "Player-ToggleFullscreen",
@@ -259,8 +267,17 @@ export declare enum AnalyticsEvent {
259
267
  SharingSortBy = "SortBy",
260
268
  SharingChangeAccessRight = "ChangeAccessRight",
261
269
  ThreeSixtyGallery = "Gallery",
270
+ ThreeSixtyGalleryFilterAssetTypes = "Gallery-FilterAssetTypes",
271
+ ThreeSixtyGalleryFilterDateRange = "Gallery-FilterDateRange",
272
+ ThreeSixtyGalleryFilterFeatures = "Gallery-FilterFeatures",
273
+ ThreeSixtyGalleryFilterFloorName = "Gallery-FilterFloorName",
274
+ ThreeSixtyGalleryFilterUploadedBy = "Gallery-FilterUploadedBy",
275
+ ThreeSixtyGalleryTimelineSelectMilestoneItem = "Gallery-TimelineSelectMilestoneItem",
262
276
  ThreeSixtyGalleryTimelineDateClick = "Gallery-TimelineDateClick",
263
277
  ThreeSixtyGalleryToggleUploadDialog = "Gallery-ToggleUploadDialog",
278
+ ThreeSixtyGalleryToggleFilters = "Gallery-ToggleFilters",
279
+ ThreeSixtyGalleryUpdateFloorName = "Gallery-UpdateFloorName",
280
+ ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
264
281
  ThreeSixtyChangeDate = "ChangeDate",
265
282
  ThreeSixtyChangeFloor = "ChangeFloor",
266
283
  ThreeSixtyCloseCompare = "CloseCompare",
@@ -297,7 +314,6 @@ export declare enum AnalyticsEvent {
297
314
  ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
298
315
  ThreeSixtyUnlockCompare = "UnlockCompare",
299
316
  ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
300
- ThreeSixtyUpdateFloorName = "UpdateFloorName",
301
317
  ThreeSixtyUploadAssets = "UploadAssets",
302
318
  DroneAreaToolClick = "AreaTool-Click",
303
319
  DroneChangeDate = "ChangeDate",
@@ -335,6 +351,7 @@ export declare enum AnalyticsEvent {
335
351
  DroneVolumeToolClick = "VolumeTool-Click",
336
352
  DroneZoomIn = "ZoomIn",
337
353
  DroneZoomOut = "ZoomOut",
354
+ DroneUploadSkipping = "SkipImageUpload",// To be removed later
338
355
  PlannerAddCameraClick = "AddCameraClick",
339
356
  PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
340
357
  PlannerAddSitePlanClick = "AddSitePlanClick",
@@ -358,7 +375,10 @@ export declare enum AnalyticsEvent {
358
375
  PlannerUploadSitePlanDrawing = "UploadSitePlanDrawing",
359
376
  PlannerZoomIn = "ZoomIn",
360
377
  PlannerZoomOut = "ZoomOut",
378
+ DrawingUpdateName = "UpdateName",
379
+ DrawingEditName = "EditName",
361
380
  MarkerClicked = "MarkerClicked",
381
+ MarkerSelected = "MarkerSelected",
362
382
  TimelapseSelectCustomPeriod = "SelectCustomPeriod",
363
383
  TimelapseToggleCustomScheduleDialog = "ToggleCustomScheduleDialog",
364
384
  TimelapseSaveCustomSchedule = "SaveCustomSchedule",
@@ -2,16 +2,6 @@ import { BoundingBox, CameraExid, DateType, GateReportVehicleType, TimelinePreci
2
2
  export type AnprQueryParams = {
3
3
  page?: number;
4
4
  limit?: number;
5
- firstSeen?: {
6
- gte: DateType;
7
- };
8
- lastSeen?: {
9
- lte: DateType;
10
- };
11
- captureTime?: {
12
- gte?: DateType;
13
- lt?: DateType;
14
- };
15
5
  direction?: {
16
6
  eq?: string;
17
7
  } | string;
@@ -21,7 +11,11 @@ export type AnprQueryParams = {
21
11
  sort?: string;
22
12
  fromDate?: DateType;
23
13
  toDate?: DateType;
24
- tab?: string;
14
+ camerasExid?: CameraExid[];
15
+ vehicleTypes?: GateReportVehicleType[];
16
+ isDuplicate?: boolean;
17
+ isPostprocessed?: boolean;
18
+ isPlate?: boolean;
25
19
  };
26
20
  export type AnprCountsQueryParams = {
27
21
  precision: TimelinePrecision;
@@ -0,0 +1,61 @@
1
+ import { AconexIdentifiers, CameraExid } from "@evercam/api/types";
2
+ export declare enum AutomationProvider {
3
+ Aconex = "aconex",
4
+ Procore = "procore",
5
+ Autodesk = "autodesk",
6
+ Email = "email"
7
+ }
8
+ export declare enum AutomationType {
9
+ Photo = "photo",
10
+ Compare = "compare"
11
+ }
12
+ export type AutomationCompareConfig = {
13
+ compareDelay: number;
14
+ };
15
+ export type AutomationEmailProviderConfig = {
16
+ recipients: string | string[];
17
+ };
18
+ export type AutomationProcoreProviderConfig = {
19
+ companyId: number;
20
+ companyName: string;
21
+ projectId: number;
22
+ projectName: string;
23
+ categoryId: number;
24
+ categoryName: string;
25
+ };
26
+ export type AutomationAconexProviderConfig = {
27
+ projectId: number;
28
+ projectName: string;
29
+ } & Partial<Record<AconexIdentifiers, string | number | boolean>>;
30
+ export type AutomationAutodeskProviderConfig = {
31
+ hubId: number;
32
+ hubName: string;
33
+ projectId: number;
34
+ projectName: string;
35
+ folderId: number;
36
+ accFileType: string;
37
+ accFolderType: string;
38
+ folderName: string;
39
+ };
40
+ export type AutomationProviderConfig = AutomationEmailProviderConfig | AutomationProcoreProviderConfig | AutomationAconexProviderConfig | AutomationAutodeskProviderConfig;
41
+ export type AutomationOptionsConfig = AutomationCompareConfig | {};
42
+ export type AutomationConfig = AutomationProviderConfig & AutomationOptionsConfig;
43
+ export type Automation = {
44
+ cameraExids: CameraExid[];
45
+ name: string;
46
+ subject?: string;
47
+ provider: AutomationProvider;
48
+ type: AutomationType;
49
+ config: AutomationConfig;
50
+ notifyDays: string[];
51
+ notifyTime: string;
52
+ timezone: string;
53
+ isPaused: boolean;
54
+ restrictedCameraExids?: string[];
55
+ };
56
+ export declare enum AutomationConfigStep {
57
+ Type = "type",
58
+ Cameras = "cameras",
59
+ Settings = "settings",
60
+ Destination = "destination"
61
+ }
@@ -1,4 +1,5 @@
1
- import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, Schedule } from "@/types";
1
+ import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule } from "@/types";
2
+ import { DateRangeFilter } from "@/types/time";
2
3
  export type CameraExid = string;
3
4
  export type CamerasByExid = EntityByExid<Camera>;
4
5
  export type Cartesian3 = {
@@ -135,7 +136,7 @@ export type AdminCamera = {
135
136
  pitch: null;
136
137
  powerSchedule: Schedule;
137
138
  projectExid: string;
138
- projectFeatureFlags: [];
139
+ projectFeatureFlags: ProjectFeatureFlag[];
139
140
  projectId: number;
140
141
  projectName: string;
141
142
  ptz: false;
@@ -341,6 +342,7 @@ export type CameraPath = {
341
342
  export type CheckCameraPortPayload = {
342
343
  address: string;
343
344
  port: number;
345
+ open: boolean;
344
346
  };
345
347
  export type CameraCreateRequestPayload = {
346
348
  status: CameraStatus;
@@ -529,3 +531,6 @@ export declare enum BimType {
529
531
  TwoD = "2D",
530
532
  Forge = "Forge"
531
533
  }
534
+ export type CameraDateRangeFilter = DateRangeFilter & {
535
+ cameraExid: CameraExid;
536
+ };
@@ -6,6 +6,7 @@ export type CreateCoolifyAppRequestPayload = {
6
6
  snapshotRequestTimeout: string | number;
7
7
  serverUuid: string;
8
8
  branch: string;
9
+ useThirdParty: boolean;
9
10
  };
10
11
  export type SaveCoolifyAppRequestPayload = {
11
12
  contextCameraExid: string;
@@ -15,4 +16,5 @@ export type SaveCoolifyAppRequestPayload = {
15
16
  branchName: string;
16
17
  snapshotRequestTimeout: string | number;
17
18
  serverUuid: string;
19
+ useThirdParty: boolean;
18
20
  };
@@ -1,4 +1,4 @@
1
- import { type BoundingBox, type ProjectExid, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
1
+ import { type BoundingBox, type ProjectExid, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision, DateRangeFilter, ProjectDateRangeFilter, CameraDateRangeFilter } from "@/types";
2
2
  export type BaseDetectionsFilters = {
3
3
  fromDate: string | Date;
4
4
  toDate: string | Date;
@@ -72,11 +72,6 @@ export type SegmentSimilarityResult = {
72
72
  distance: number;
73
73
  segment: Segment;
74
74
  };
75
- export type SegmentsSimilaritySearchResult = {
76
- firstSeen: DateType | null;
77
- lastSeen: DateType | null;
78
- similarSegments: SegmentSimilarityResult[];
79
- };
80
75
  export type SegmentsSimilaritySearchParams = {
81
76
  cameraExid: CameraExid;
82
77
  referenceId: string;
@@ -84,24 +79,15 @@ export type SegmentsSimilaritySearchParams = {
84
79
  fromDate: string;
85
80
  toDate: string;
86
81
  };
87
- export type BaseCountsParams = {
88
- fromDate: string | Date;
89
- toDate: string | Date;
82
+ export type BaseCountsParams = DateRangeFilter & {
90
83
  precision: keyof typeof TimelinePrecision;
91
84
  trackId: number;
92
85
  labels: DetectionLabel | DetectionLabel[];
93
86
  };
94
- export type DetectionsCountsParams = BaseCountsParams & {
95
- projectExid: ProjectExid;
87
+ export type DetectionsCountsParams = ProjectDateRangeFilter & BaseCountsParams & {
96
88
  cameraExids?: CameraExid[];
97
89
  };
98
- export type SegmentsCountsParams = BaseCountsParams & {
99
- cameraExid: CameraExid;
100
- };
101
- export type CountByPeriod = {
102
- date: string | Date;
103
- counts: Record<string, number>;
104
- };
90
+ export type SegmentsCountsParams = CameraDateRangeFilter & BaseCountsParams;
105
91
  export type DetectionsPresenceByLabel = Record<DetectionLabel, TimelineDateInterval[]>;
106
92
  export type SegmentsPresenceByLabel = Record<SegmentLabel, TimelineDateInterval[]>;
107
93
  export type LuminanceReading = {
@@ -26,6 +26,7 @@ export declare enum ErrorCode {
26
26
  ConflictError = 409
27
27
  }
28
28
  export declare enum EvercamApiErrorCode {
29
+ IntegrationError = "INTEGRATION_ERROR",
29
30
  BadArgument = "BAD_ARGUMENT",
30
31
  DeviceError = "DEVICE_ERROR",
31
32
  UnsupportedOperation = "UNSUPPORTED_OPERATION",
@@ -56,3 +56,4 @@ export * from "./tag";
56
56
  export * from "./xweather";
57
57
  export * from "./posthog";
58
58
  export * from "./recycleBin";
59
+ export declare const Foo = "bar...";
@@ -9,6 +9,10 @@ export declare enum IngestProcessingStatus {
9
9
  InProgress = "inprogress",
10
10
  Pending = "pending"
11
11
  }
12
+ export declare enum MobileAssetsType {
13
+ Audio = "mobile_audios",
14
+ Photo = "mobile_photos"
15
+ }
12
16
  export declare enum IngestVersions {
13
17
  V1 = "v1",
14
18
  V2 = "v2"
@@ -1,34 +1,4 @@
1
- import { AutomationType, DateTime, DateType, PaginationParams } from "@/types";
2
- export type Automation = {
3
- name?: string;
4
- cameraIds: string;
5
- cameraNames: number;
6
- cameraExids?: string[];
7
- createdAt: string;
8
- id: number;
9
- provider: string;
10
- type: AutomationType;
11
- config: Partial<{
12
- recipients: string | Record<string, string>[];
13
- companyId: number;
14
- compareDelay: number;
15
- categoryId: string;
16
- hubId: string;
17
- folderId: string;
18
- projectId: number;
19
- }>;
20
- isPaused: boolean;
21
- notifyDays: string | string[];
22
- notifyTime: string;
23
- requesterEmail: string;
24
- requesterName: string;
25
- timezone: string;
26
- title: string;
27
- compareDelay?: number;
28
- selectedProvider?: string;
29
- restrictedCameraExids?: string[];
30
- recipients?: string | string[];
31
- };
1
+ import { Automation, AutomationType, DateTime, DateType, PaginationParams } from "@/types";
32
2
  export type ProgressPhotosCreateUpdateRequestPayload = {
33
3
  cameraExids?: string;
34
4
  notifyDays?: string;
@@ -1,4 +1,4 @@
1
- import { AdminCamera, Camera, CameraExid, DateTime, DateType, EntityByExid, Exid, PaginationParams } from "@/types";
1
+ import { AdminCamera, Camera, CameraExid, DateRangeFilter, DateTime, DateType, EntityByExid, Exid, PaginationParams } from "@/types";
2
2
  export type ProjectExid = Exid;
3
3
  export type ProjectsByExid = EntityByExid<Project>;
4
4
  export type Project = {
@@ -127,3 +127,6 @@ export type ProjectUsers = {
127
127
  }[];
128
128
  users: Record<string, ProjectUserProperty[]>;
129
129
  };
130
+ export type ProjectDateRangeFilter = DateRangeFilter & {
131
+ projectExid: ProjectExid;
132
+ };
@@ -46,6 +46,7 @@ export declare enum TimelineMobileCaptureUrlParams {
46
46
  ShowMobileCapture = "showMobileCapture"
47
47
  }
48
48
  export declare enum TimelineCommentsUrlParams {
49
- ShowComments = "showComments"
49
+ ShowComments = "showComments",
50
+ SelectedCommentId = "selectedCommentId"
50
51
  }
51
52
  export type TimelineUrlParams = Record<TimelineUrlParam | TimelineMediaUrlParams | TimelineBimUrlParams | TimelineExNvrRecordingsUrlParams | TimelineAnprUrlParams | TimelineMobileCaptureUrlParams | TimelineCommentsUrlParams, string | null>;
@@ -1,15 +1,15 @@
1
- import type { BBox, BoundingBox, DateType, Schedule, CameraExid, DateTime, DetectionModel, PaginationParams, PpeLabel, ProjectExid } from "@evercam/api/types";
1
+ import type { BBox, BoundingBox, DateType, Schedule, CameraExid, DateTime, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter } from "@evercam/api/types";
2
2
  import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
3
3
  export declare enum SiteAnalyticsMode {
4
4
  Detections = "detections",
5
5
  Segments = "segments"
6
6
  }
7
- export type SmartSearchOptionData = {
7
+ export type SmartSearchQueryPartData = {
8
8
  id?: string;
9
- type: SmartSearchQueryComponentType;
9
+ type: SmartSearchQueryPartType;
10
10
  value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData | SmartSearchCondition | SmartSearchDateRange | string;
11
11
  };
12
- export type SmartSearchQueryPart = SmartSearchOptionData | [SmartSearchQueryPart] | SmartSearchQueryPart[];
12
+ export type SmartSearchQueryPart = SmartSearchQueryPartData | SmartSearchQueryPartData[];
13
13
  export declare enum SmartSearchQueryComponentType {
14
14
  Condition = "condition",
15
15
  Object = "object",
@@ -17,8 +17,10 @@ export declare enum SmartSearchQueryComponentType {
17
17
  Time = "time",
18
18
  Operator = "operator",
19
19
  Camera = "camera",
20
- DateRange = "date_range"
20
+ DateRange = "date_range",
21
+ Heatmap = "heatmap"
21
22
  }
23
+ export type SmartSearchQueryPartType = SmartSearchQueryComponentType | SmartSearchCondition;
22
24
  export type SmartSearchDateRange = {
23
25
  start: DateType;
24
26
  end: DateType;
@@ -26,7 +28,7 @@ export type SmartSearchDateRange = {
26
28
  export type SmartSearchQueryComponentData = {
27
29
  id: string;
28
30
  type: SmartSearchQueryComponentType;
29
- parts: [SmartSearchQueryPart];
31
+ parts: SmartSearchQueryPart;
30
32
  };
31
33
  export declare enum SmartSearchCondition {
32
34
  InArea = "in_area",
@@ -114,7 +116,7 @@ export type SavedQuery = {
114
116
  timeSchedule?: Schedule | undefined;
115
117
  };
116
118
  params: Record<string, string>;
117
- components?: Omit<SmartSearchOptionData, "id">[];
119
+ components?: Omit<SmartSearchQueryPartData, "id">[];
118
120
  toDate?: DateType;
119
121
  createdAt?: DateType;
120
122
  cameraExid: string;
@@ -140,3 +142,22 @@ export type DetectionsExportRequestParams = DetectionsRequestParams & {
140
142
  columns?: string[];
141
143
  directDownload?: boolean;
142
144
  };
145
+ export type SmartSearchHeatmapPoint = {
146
+ coordinates: [number, number];
147
+ detectionsCount: number;
148
+ };
149
+ export type SmartSearchHeatmapData = {
150
+ label: string;
151
+ points: SmartSearchHeatmapPoint[];
152
+ };
153
+ export type SmartSearchNearConfig = {
154
+ sourceLabels: DetectionLabel[];
155
+ targetLabel?: DetectionLabel;
156
+ };
157
+ export type HeatmapIntersectionsRequestParams = CameraDateRangeFilter & SmartSearchNearConfig;
158
+ export type SmartSearchSidebarItem = {
159
+ key: string;
160
+ displayLabel: string;
161
+ data: SmartSearchHeatmapData;
162
+ imagePath?: string;
163
+ };
@@ -48,3 +48,12 @@ export type DeleteSnapshotQueryParams = {
48
48
  adminEmail: string;
49
49
  adminFullname: string;
50
50
  };
51
+ export type TransferCloudRecordingsQueryParams = {
52
+ targetCameraExid: CameraExid;
53
+ fromDate: DateType;
54
+ toDate: DateType;
55
+ overwriteExistingSnapshots?: boolean;
56
+ keepSourceSnapshots?: boolean;
57
+ adminEmail?: string;
58
+ adminFullname?: string;
59
+ };
@@ -18,4 +18,8 @@ export type DateTime_tz = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}${"+" | "-"}${HH}:
18
18
  export type DateTime_Z = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}Z` | string;
19
19
  export type DateTime_Z_micros = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}.${microS}Z` | string;
20
20
  export type DateTimeSpaceSeparated = `${Date_YYYY_MM_DD} ${Time_HH_mm_ss}` | string;
21
+ export type DateRangeFilter = {
22
+ fromDate: DateType;
23
+ toDate: DateType;
24
+ };
21
25
  export {};
@@ -5,6 +5,8 @@ export type HistoryWeatherRequestPayload = {
5
5
  };
6
6
  export type CurrentWeatherRequestPayload = {
7
7
  provider: WeatherProvider;
8
+ includeForecast?: boolean;
9
+ forecastDays?: number;
8
10
  };
9
11
  export type WeatherResponsePayload = Array<{
10
12
  hour?: number;