@evercam/api 1.0.0-f8cd95c6b → 1.0.0-fba4c1b51

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 (96) hide show
  1. package/README.md +1 -0
  2. package/dist/api/{api/adminApi.d.ts → adminApi.d.ts} +41 -6
  3. package/dist/api/{api/aiApi.d.ts → aiApi.d.ts} +7 -4
  4. package/dist/api/{api/evercamApi.d.ts → evercamApi.d.ts} +13 -8
  5. package/dist/api/index.d.ts +13 -3
  6. package/dist/api/{api/ingestApi.d.ts → ingestApi.d.ts} +29 -9
  7. package/dist/index.d.ts +3 -2
  8. package/dist/index.js +561 -432
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.umd.cjs +1 -1
  11. package/dist/index.umd.cjs.map +1 -1
  12. package/dist/{api/types → types}/360.d.ts +47 -0
  13. package/dist/{api/types → types}/analytics.d.ts +11 -2
  14. package/dist/{api/types → types}/anpr.d.ts +5 -11
  15. package/dist/{api/types → types}/camera.d.ts +10 -2
  16. package/dist/{api/types → types}/comments.d.ts +18 -2
  17. package/dist/{api/types → types}/coolify.d.ts +2 -0
  18. package/dist/{api/types → types}/errors.d.ts +1 -0
  19. package/dist/{api/types → types}/index.d.ts +2 -0
  20. package/dist/{api/types → types}/kit.d.ts +12 -4
  21. package/dist/types/recycleBin.d.ts +14 -0
  22. package/dist/{api/types → types}/routeParams.d.ts +2 -1
  23. package/dist/{api/types → types}/shared.d.ts +0 -5
  24. package/dist/{api/types → types}/snapshots.d.ts +9 -0
  25. package/dist/types/sso.d.ts +55 -0
  26. package/dist/{api/types → types}/weather.d.ts +2 -0
  27. package/dist/{api/types → types}/widget.d.ts +25 -6
  28. package/package.json +3 -3
  29. package/dist/api/api/index.d.ts +0 -13
  30. package/dist/shared/api/index.d.ts +0 -3
  31. package/dist/shared/components/timelinePlayer/providers/index.d.ts +0 -3
  32. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +0 -17
  33. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +0 -13
  34. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +0 -16
  35. package/dist/shared/types/components.d.ts +0 -192
  36. package/dist/shared/types/imagePlayer.d.ts +0 -34
  37. package/dist/shared/types/index.d.ts +0 -4
  38. package/dist/shared/types/timeline.d.ts +0 -9
  39. /package/dist/api/{api/3dFirebaseApi.d.ts → 3dFirebaseApi.d.ts} +0 -0
  40. /package/dist/api/{api/authzApi.d.ts → authzApi.d.ts} +0 -0
  41. /package/dist/api/{api/client → client}/axios.d.ts +0 -0
  42. /package/dist/api/{api/client → client}/customErrors.d.ts +0 -0
  43. /package/dist/api/{api/client → client}/index.d.ts +0 -0
  44. /package/dist/api/{api/client → client}/interceptors.d.ts +0 -0
  45. /package/dist/api/{api/client → client}/swr/Swr.d.ts +0 -0
  46. /package/dist/api/{api/client → client}/swr/SwrStore.d.ts +0 -0
  47. /package/dist/api/{api/evercamLabsApi.d.ts → evercamLabsApi.d.ts} +0 -0
  48. /package/dist/api/{api/exNvrApi.d.ts → exNvrApi.d.ts} +0 -0
  49. /package/dist/api/{api/ptzApi.d.ts → ptzApi.d.ts} +0 -0
  50. /package/dist/api/{api/videoWallApi.d.ts → videoWallApi.d.ts} +0 -0
  51. /package/dist/api/{api/weatherApi.d.ts → weatherApi.d.ts} +0 -0
  52. /package/dist/api/{api/webRtcApi.d.ts → webRtcApi.d.ts} +0 -0
  53. /package/dist/{api/types → types}/aconex.d.ts +0 -0
  54. /package/dist/{api/types → types}/auditLogs.d.ts +0 -0
  55. /package/dist/{api/types → types}/autodesk.d.ts +0 -0
  56. /package/dist/{api/types → types}/automation.d.ts +0 -0
  57. /package/dist/{api/types → types}/axios.d.ts +0 -0
  58. /package/dist/{api/types → types}/bim.d.ts +0 -0
  59. /package/dist/{api/types → types}/company.d.ts +0 -0
  60. /package/dist/{api/types → types}/compare.d.ts +0 -0
  61. /package/dist/{api/types → types}/connector.d.ts +0 -0
  62. /package/dist/{api/types → types}/copilot.d.ts +0 -0
  63. /package/dist/{api/types → types}/countries.d.ts +0 -0
  64. /package/dist/{api/types → types}/credentials.d.ts +0 -0
  65. /package/dist/{api/types → types}/detections.d.ts +0 -0
  66. /package/dist/{api/types → types}/drone.d.ts +0 -0
  67. /package/dist/{api/types → types}/gateReport.d.ts +0 -0
  68. /package/dist/{api/types → types}/hdd.d.ts +0 -0
  69. /package/dist/{api/types → types}/ingest.d.ts +0 -0
  70. /package/dist/{api/types → types}/map.d.ts +0 -0
  71. /package/dist/{api/types → types}/media.d.ts +0 -0
  72. /package/dist/{api/types → types}/notification.d.ts +0 -0
  73. /package/dist/{api/types → types}/nvr.d.ts +0 -0
  74. /package/dist/{api/types → types}/planner.d.ts +0 -0
  75. /package/dist/{api/types → types}/posthog.d.ts +0 -0
  76. /package/dist/{api/types → types}/procore.d.ts +0 -0
  77. /package/dist/{api/types → types}/progressPhoto.d.ts +0 -0
  78. /package/dist/{api/types → types}/project.d.ts +0 -0
  79. /package/dist/{api/types → types}/recording.d.ts +0 -0
  80. /package/dist/{api/types → types}/roi.d.ts +0 -0
  81. /package/dist/{api/types → types}/router.d.ts +0 -0
  82. /package/dist/{api/types → types}/shares.d.ts +0 -0
  83. /package/dist/{api/types → types}/sim.d.ts +0 -0
  84. /package/dist/{api/types → types}/siteAnalytics.d.ts +0 -0
  85. /package/dist/{api/types → types}/storageServers.d.ts +0 -0
  86. /package/dist/{api/types → types}/streaming.d.ts +0 -0
  87. /package/dist/{api/types → types}/systemCheck.d.ts +0 -0
  88. /package/dist/{api/types → types}/tag.d.ts +0 -0
  89. /package/dist/{api/types → types}/time.d.ts +0 -0
  90. /package/dist/{api/types → types}/timelapse.d.ts +0 -0
  91. /package/dist/{api/types → types}/user.d.ts +0 -0
  92. /package/dist/{api/types → types}/vendorModel.d.ts +0 -0
  93. /package/dist/{api/types → types}/videoWall.d.ts +0 -0
  94. /package/dist/{api/types → types}/voyageControl.d.ts +0 -0
  95. /package/dist/{api/types → types}/xweather.d.ts +0 -0
  96. /package/dist/{api/utils.d.ts → utils.d.ts} +0 -0
@@ -40,6 +40,10 @@ export declare enum _360AssetType {
40
40
  MobilePhoto = "mobile_photos",
41
41
  MobileAudio = "mobile_audios"
42
42
  }
43
+ export declare enum _360AssetLabel {
44
+ Walks = "walks",
45
+ MobilePhotos = "mobilePhotos"
46
+ }
43
47
  export declare enum _360Feature {
44
48
  BIM = "BIM",
45
49
  Minimap = "Minimap",
@@ -71,6 +75,49 @@ export type _360AssetsRequestPayload = {
71
75
  floor: string;
72
76
  uploadedBy?: string;
73
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
+ };
74
121
  export type _360AssetsUploadPayload = {
75
122
  targetPointsCount: number;
76
123
  assetType: string;
@@ -259,7 +259,17 @@ export declare enum AnalyticsEvent {
259
259
  SharingSortBy = "SortBy",
260
260
  SharingChangeAccessRight = "ChangeAccessRight",
261
261
  ThreeSixtyGallery = "Gallery",
262
+ ThreeSixtyGalleryFilterAssetTypes = "Gallery-FilterAssetTypes",
263
+ ThreeSixtyGalleryFilterDateRange = "Gallery-FilterDateRange",
264
+ ThreeSixtyGalleryFilterFeatures = "Gallery-FilterFeatures",
265
+ ThreeSixtyGalleryFilterFloorName = "Gallery-FilterFloorName",
266
+ ThreeSixtyGalleryFilterUploadedBy = "Gallery-FilterUploadedBy",
267
+ ThreeSixtyGalleryTimelineSelectMilestoneItem = "Gallery-TimelineSelectMilestoneItem",
268
+ ThreeSixtyGalleryTimelineDateClick = "Gallery-TimelineDateClick",
262
269
  ThreeSixtyGalleryToggleUploadDialog = "Gallery-ToggleUploadDialog",
270
+ ThreeSixtyGalleryToggleFilters = "Gallery-ToggleFilters",
271
+ ThreeSixtyGalleryUpdateFloorName = "Gallery-UpdateFloorName",
272
+ ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
263
273
  ThreeSixtyChangeDate = "ChangeDate",
264
274
  ThreeSixtyChangeFloor = "ChangeFloor",
265
275
  ThreeSixtyCloseCompare = "CloseCompare",
@@ -296,7 +306,6 @@ export declare enum AnalyticsEvent {
296
306
  ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
297
307
  ThreeSixtyUnlockCompare = "UnlockCompare",
298
308
  ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
299
- ThreeSixtyUpdateFloorName = "UpdateFloorName",
300
309
  ThreeSixtyUploadAssets = "UploadAssets",
301
310
  DroneAreaToolClick = "AreaTool-Click",
302
311
  DroneChangeDate = "ChangeDate",
@@ -334,6 +343,7 @@ export declare enum AnalyticsEvent {
334
343
  DroneVolumeToolClick = "VolumeTool-Click",
335
344
  DroneZoomIn = "ZoomIn",
336
345
  DroneZoomOut = "ZoomOut",
346
+ DroneUploadSkipping = "SkipImageUpload",// To be removed later
337
347
  PlannerAddCameraClick = "AddCameraClick",
338
348
  PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
339
349
  PlannerAddSitePlanClick = "AddSitePlanClick",
@@ -358,7 +368,6 @@ export declare enum AnalyticsEvent {
358
368
  PlannerZoomIn = "ZoomIn",
359
369
  PlannerZoomOut = "ZoomOut",
360
370
  MarkerClicked = "MarkerClicked",
361
- TimelapseToggleHelpDialog = "ToggleHelpDialog",
362
371
  TimelapseSelectCustomPeriod = "SelectCustomPeriod",
363
372
  TimelapseToggleCustomScheduleDialog = "ToggleCustomScheduleDialog",
364
373
  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;
@@ -1,4 +1,4 @@
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
2
  export type CameraExid = string;
3
3
  export type CamerasByExid = EntityByExid<Camera>;
4
4
  export type Cartesian3 = {
@@ -135,7 +135,7 @@ export type AdminCamera = {
135
135
  pitch: null;
136
136
  powerSchedule: Schedule;
137
137
  projectExid: string;
138
- projectFeatureFlags: [];
138
+ projectFeatureFlags: ProjectFeatureFlag[];
139
139
  projectId: number;
140
140
  projectName: string;
141
141
  ptz: false;
@@ -176,6 +176,13 @@ export declare enum CameraStatus {
176
176
  UnderMaintenance = "under_maintenance",
177
177
  WaitingForSiteVisit = "waiting_for_site_visit"
178
178
  }
179
+ export declare enum IntensityChangeColors {
180
+ High = "#FF5252",
181
+ Moderate = "#FBC02D",
182
+ Low = "#006400",
183
+ NoChange = "#3ACF3A",
184
+ Default = "black"
185
+ }
179
186
  export declare enum CameraFeatureFlag {
180
187
  EdgeVideo = "edge_video",
181
188
  BimCompare = "bim_compare",
@@ -334,6 +341,7 @@ export type CameraPath = {
334
341
  export type CheckCameraPortPayload = {
335
342
  address: string;
336
343
  port: number;
344
+ open: boolean;
337
345
  };
338
346
  export type CameraCreateRequestPayload = {
339
347
  status: CameraStatus;
@@ -1,7 +1,13 @@
1
- import { CameraExid, DateType, ProjectExid } from "@/types";
1
+ import { CameraExid, DateType, ProjectExid, PaginationParams } from "@/types";
2
2
  export declare enum CommentsScope {
3
3
  Recordings = "recordings",
4
- ThreeSixty = "360"
4
+ ThreeSixty = "360",
5
+ Drone = "drone"
6
+ }
7
+ export declare enum CommentsLabel {
8
+ Info = "Info",
9
+ Danger = "Danger",
10
+ Restricted = "Restricted"
5
11
  }
6
12
  export type CommentsRequestPayload = {
7
13
  cameraExid: CameraExid;
@@ -11,6 +17,16 @@ export type CommentsRequestPayload = {
11
17
  page?: number;
12
18
  limit?: number;
13
19
  };
20
+ export type CommentsListRequestPayload = PaginationParams & {
21
+ projectExid?: ProjectExid;
22
+ cameraExid?: CameraExid;
23
+ fromDate?: string;
24
+ toDate?: string;
25
+ scope?: CommentsScope;
26
+ creatorEmail?: string;
27
+ content?: string;
28
+ includeArchived?: boolean;
29
+ };
14
30
  export type Comment = {
15
31
  fromDate?: string;
16
32
  toDate?: string;
@@ -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
  };
@@ -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",
@@ -50,7 +50,9 @@ export * from "./siteAnalytics";
50
50
  export * from "./widget";
51
51
  export * from "./countries";
52
52
  export * from "./automation";
53
+ export * from "./sso";
53
54
  export * from "./coolify";
54
55
  export * from "./tag";
55
56
  export * from "./xweather";
56
57
  export * from "./posthog";
58
+ export * from "./recycleBin";
@@ -18,6 +18,7 @@ export type Kit = {
18
18
  powerSchedule: Schedule;
19
19
  tags: Tag[];
20
20
  storages: KitStorage[];
21
+ createdAt: string;
21
22
  };
22
23
  export declare enum KitStatus {
23
24
  New = "new",
@@ -33,16 +34,16 @@ export declare enum KitRegion {
33
34
  }
34
35
  export declare enum KitAlarm {
35
36
  NvrOffline = "nvr_offline",
37
+ OfflineScheduled = "offline_scheduled",
36
38
  UnknownCamera = "unknown_camera",
37
39
  NotRecordingCamera = "not_recording_camera",
38
- OfflineScheduled = "offline_scheduled",
39
40
  FullSD = "full_sd",
40
41
  FullStorage = "full_storage",
41
42
  HddUnmounted = "hdd_unmounted",
42
43
  NoHdd = "no_hdd",
43
44
  MissingRouterInfo = "missing_router_info",
44
- PowerLost = "ac_failure",
45
- UpsLowBattery = "low_battery"
45
+ AcFailure = "ac_failure",
46
+ LowBattery = "low_battery"
46
47
  }
47
48
  export declare enum KitMetricId {
48
49
  SolarCharger = "solar_charger",
@@ -338,10 +339,17 @@ export type KitFootageRequestPayload = {
338
339
  cameraId: CameraExid;
339
340
  storageId: number;
340
341
  };
341
- export type KitFootageResponsePayload = {
342
+ export type KitFootage = {
342
343
  id: number;
343
344
  startDate: string;
344
345
  endDate: string;
345
346
  cameraId: number;
346
347
  storageId: number;
347
348
  };
349
+ export type KitAlarmItem = {
350
+ id: number;
351
+ kitId: number;
352
+ alarm: KitAlarm;
353
+ startDate: DateTime;
354
+ endDate: DateTime | null;
355
+ };
@@ -0,0 +1,14 @@
1
+ import type { DateType, PaginationParams } from "@/types";
2
+ export type RecycleBin = {
3
+ id?: number;
4
+ exid: string;
5
+ name: string;
6
+ type: string;
7
+ deletedBy: string;
8
+ deletedAt: DateType;
9
+ };
10
+ export type RecycleBinQueryParams = PaginationParams & {
11
+ name: string;
12
+ type: string;
13
+ deletedBy: string;
14
+ };
@@ -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>;
@@ -90,11 +90,6 @@ export declare enum _3dViewer {
90
90
  Itwin = "itwin",
91
91
  Cesium = "cesium"
92
92
  }
93
- export declare enum SsoProvider {
94
- Microsoft = "microsoft",
95
- Google = "google",
96
- Evercam = "evercam"
97
- }
98
93
  export declare enum InfoPage {
99
94
  ThreeSixtyView = "360",
100
95
  BIMView = "bim",
@@ -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
+ };
@@ -0,0 +1,55 @@
1
+ export type SsoProvider = {
2
+ id: number;
3
+ name: string;
4
+ exid: string;
5
+ clientId: string;
6
+ clientSecret: string;
7
+ scope: string;
8
+ responseType: string;
9
+ loginUrl: string;
10
+ iconUrl: string;
11
+ options: {
12
+ showOnLogin: boolean;
13
+ showOnSignup: boolean;
14
+ };
15
+ tokenUri: string;
16
+ tokenIntrospectionUri: string;
17
+ userInfoUri: string;
18
+ enabled: boolean;
19
+ };
20
+ export type SsoUpdatePayload = {
21
+ name: string;
22
+ exid: string;
23
+ clientId: string;
24
+ clientSecret: string;
25
+ scope: string;
26
+ responseType: string;
27
+ loginUrl: string;
28
+ iconUrl: string;
29
+ options: {
30
+ showOnLogin: boolean;
31
+ showOnSignup: boolean;
32
+ };
33
+ tokenUri: string;
34
+ tokenIntrospectionUri: string;
35
+ userInfoUri: string;
36
+ enabled: boolean;
37
+ };
38
+ export type SsoCreatePayload = {
39
+ name: string;
40
+ exid: string;
41
+ clientId: string;
42
+ clientSecret: string;
43
+ scope: string;
44
+ responseType: string;
45
+ loginUrl: string;
46
+ iconUrl: string;
47
+ options: {
48
+ showOnLogin: boolean;
49
+ showOnSignup: boolean;
50
+ };
51
+ tokenUri: string;
52
+ tokenIntrospectionUri: string;
53
+ userInfoUri: string;
54
+ enabled: boolean;
55
+ };
@@ -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;
@@ -53,6 +53,19 @@ export declare enum VideoWallWidgetSettingsKeys {
53
53
  Height = "height",
54
54
  HeightResolution = "heightResolution"
55
55
  }
56
+ export declare enum ThreeSixtyKeys {
57
+ DateId = "dateId",
58
+ DateLocked = "dateLocked",
59
+ FloorId = "floorId",
60
+ FloorLocked = "floorLocked",
61
+ Marker = "markerId",
62
+ MarkerLocked = "markerLocked",
63
+ MediaLocked = "mediaLocked",
64
+ Width = "width",
65
+ WidthResolution = "resolution",
66
+ Height = "height",
67
+ HeightResolution = "heightResolution"
68
+ }
56
69
  export type CommonWidgetSettings = {
57
70
  width: number;
58
71
  resolution: string;
@@ -81,12 +94,18 @@ export type VideoWallWidgetSettings = CommonWidgetSettings & {
81
94
  preset: VideoWallPresetItemConfig;
82
95
  refreshRate: number;
83
96
  };
84
- export type WidgetSettings = RecordingsWidgetSettings | LiveViewWidgetSettings | BimCompareWidgetSettings | VideoWallWidgetSettings;
97
+ export type ThreeSixtyWidgetSettings = CommonWidgetSettings & {
98
+ dateId: string;
99
+ floorId: string;
100
+ markerId: string;
101
+ };
102
+ export type WidgetSettings = RecordingsWidgetSettings | LiveViewWidgetSettings | BimCompareWidgetSettings | VideoWallWidgetSettings | ThreeSixtyWidgetSettings;
85
103
  export declare enum WidgetType {
86
104
  LiveWidget = "Live View",
87
105
  Recording = "Recordings",
88
106
  BimCompare = "BIM Compare",
89
- VideoWall = "Video Wall"
107
+ VideoWall = "Video Wall",
108
+ ThreeSixty = "360"
90
109
  }
91
110
  export declare const WidgetTypesByResource: {
92
111
  camera: WidgetType[];
@@ -99,7 +118,7 @@ export type WidgetsListRequestPayload = PaginationParams & {
99
118
  active: boolean;
100
119
  settings: WidgetSettings;
101
120
  widgetType: WidgetType;
102
- isPublic: boolean;
121
+ domainRestricted: boolean;
103
122
  allowedOrigin: string;
104
123
  };
105
124
  export type Widget = {
@@ -119,7 +138,7 @@ export type Widget = {
119
138
  widgetType: WidgetType;
120
139
  settings: WidgetSettings;
121
140
  allowedOrigin: string;
122
- isPublic: boolean;
141
+ domainRestricted: boolean;
123
142
  active: boolean;
124
143
  user: {
125
144
  id: number;
@@ -155,7 +174,7 @@ export type WidgetFull = {
155
174
  settings: WidgetSettings;
156
175
  sessionSettings: any;
157
176
  allowedOrigin: string;
158
- isPublic: boolean;
177
+ domainRestricted: boolean;
159
178
  insertedAt: DateTime;
160
179
  updatedAt: DateTime;
161
180
  };
@@ -167,6 +186,6 @@ export type WidgetPayload = {
167
186
  widgetType: WidgetType;
168
187
  active: boolean;
169
188
  settings: WidgetSettings;
170
- isPublic: boolean;
189
+ domainRestricted: boolean;
171
190
  allowedOrigin: string;
172
191
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/api",
3
- "version": "1.0.0-f8cd95c6b",
3
+ "version": "1.0.0-fba4c1b51",
4
4
  "description": "Evercam API client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,7 +24,7 @@
24
24
  "dist"
25
25
  ],
26
26
  "engines": {
27
- "node": "20.x"
27
+ "node": "22.x"
28
28
  },
29
29
  "readme": "README.md",
30
30
  "scripts": {
@@ -36,7 +36,7 @@
36
36
  "publish-api": "cd ../.. && yarn publish-api"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/node": "^24.6.0",
39
+ "@types/node": "^24.7.2",
40
40
  "vite": "latest",
41
41
  "vite-plugin-commonjs": "^0.10.3",
42
42
  "vite-plugin-dts": "^4.5.4"
@@ -1,13 +0,0 @@
1
- export * from "./client";
2
- export * from "./adminApi";
3
- export * from "./videoWallApi";
4
- export * from "./3dFirebaseApi";
5
- export * from "./aiApi";
6
- export * from "./webRtcApi";
7
- export * from "./weatherApi";
8
- export * from "./evercamLabsApi";
9
- export * from "./evercamApi";
10
- export * from "./ptzApi";
11
- export * from "./ingestApi";
12
- export * from "./exNvrApi";
13
- export * from "./authzApi";
@@ -1,3 +0,0 @@
1
- export * from "@evercam/api/api";
2
- import { axios } from "@evercam/api/api";
3
- export default axios;
@@ -1,3 +0,0 @@
1
- export * from "./timelineDataProvider";
2
- export * from "./timelineAnprProvider";
3
- export * from "./timelineLuminanceProvider";
@@ -1,17 +0,0 @@
1
- import { TimelineCountEvent, TimelineEvent } from "@evercam/ui";
2
- import { CameraExid, ProjectExid, TimelineDateInterval, TimelineProviderRequestParams } from "@evercam/shared/types";
3
- import { TimelineDataProvider } from "./timelineDataProvider";
4
- export declare class TimelineAnprProvider extends TimelineDataProvider {
5
- readonly projectExid: ProjectExid;
6
- readonly cameraExid: CameraExid;
7
- readonly token: string;
8
- constructor(params: {
9
- timezone: string;
10
- projectExid: ProjectExid;
11
- cameraExid: CameraExid;
12
- token: string;
13
- });
14
- fetchEvents({ fromDate, toDate, }: TimelineDateInterval): Promise<Array<TimelineEvent>>;
15
- fetchCounts({ fromDate, toDate, precision, }: TimelineProviderRequestParams): Promise<Array<TimelineCountEvent>>;
16
- private getFormattedPlateNumber;
17
- }
@@ -1,13 +0,0 @@
1
- import { type TimelineCountEvent, type TimelineEvent, type TimelineRangeEvent } from "@evercam/ui";
2
- import { type TimelineDateInterval, TimelinePrecision, type TimelineProviderRequestParams } from "@evercam/shared/types";
3
- export declare abstract class TimelineDataProvider {
4
- protected timezone: string;
5
- constructor(timezone: string);
6
- fetch(params: TimelineProviderRequestParams): Promise<Array<TimelineEvent>>;
7
- protected abstract fetchEvents(params: TimelineProviderRequestParams): Promise<Array<TimelineEvent>>;
8
- protected abstract fetchCounts(params: TimelineProviderRequestParams): Promise<Array<TimelineCountEvent | TimelineRangeEvent>>;
9
- formatTimestamp(date: string, format?: string): string;
10
- processResponseIntervals(intervals: TimelineDateInterval[], precision: TimelinePrecision): TimelineRangeEvent[];
11
- private convertAndRoundIntervals;
12
- private groupAdjacentIntervals;
13
- }
@@ -1,16 +0,0 @@
1
- import { type TimelineCountEvent, type TimelineEvent } from "@evercam/ui";
2
- import { type CameraExid, type ProjectExid, type TimelineDateInterval, type TimelineProviderRequestParams } from "@evercam/shared/types";
3
- import { TimelineDataProvider } from "./timelineDataProvider";
4
- export declare class TimelineLuminanceProvider extends TimelineDataProvider {
5
- readonly projectExid: ProjectExid;
6
- readonly cameraExid: CameraExid;
7
- readonly token: string;
8
- constructor(params: {
9
- timezone: string;
10
- projectExid: ProjectExid;
11
- cameraExid: CameraExid;
12
- token: string;
13
- });
14
- fetchEvents({ fromDate, toDate, }: TimelineDateInterval): Promise<Array<TimelineEvent>>;
15
- fetchCounts({ fromDate, toDate, }: TimelineProviderRequestParams): Promise<Array<TimelineCountEvent>>;
16
- }