@evercam/api 1.0.0-e03adefb8 → 1.0.0-e1ad6ae1b

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 (97) hide show
  1. package/README.md +1 -0
  2. package/dist/api/3dFirebaseApi.d.ts +20 -0
  3. package/dist/api/{api/adminApi.d.ts → adminApi.d.ts} +65 -5
  4. package/dist/api/{api/aiApi.d.ts → aiApi.d.ts} +9 -6
  5. package/dist/api/client/swr/Swr.d.ts +14 -0
  6. package/dist/api/client/swr/SwrStore.d.ts +10 -0
  7. package/dist/api/{api/evercamApi.d.ts → evercamApi.d.ts} +31 -18
  8. package/dist/api/index.d.ts +13 -3
  9. package/dist/api/{api/ingestApi.d.ts → ingestApi.d.ts} +29 -9
  10. package/dist/index.d.ts +3 -2
  11. package/dist/index.js +1052 -688
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.umd.cjs +1 -1
  14. package/dist/index.umd.cjs.map +1 -1
  15. package/dist/{api/types → types}/360.d.ts +51 -1
  16. package/dist/{api/types → types}/analytics.d.ts +22 -3
  17. package/dist/{api/types → types}/anpr.d.ts +5 -11
  18. package/dist/{api/types → types}/axios.d.ts +14 -0
  19. package/dist/{api/types → types}/camera.d.ts +17 -5
  20. package/dist/{api/types → types}/comments.d.ts +18 -2
  21. package/dist/{api/types → types}/company.d.ts +29 -1
  22. package/dist/{api/types → types}/coolify.d.ts +2 -0
  23. package/dist/{api/types → types}/countries.d.ts +0 -7
  24. package/dist/{api/types → types}/detections.d.ts +1 -2
  25. package/dist/{api/types → types}/errors.d.ts +1 -0
  26. package/dist/{api/types → types}/index.d.ts +2 -0
  27. package/dist/{api/types → types}/kit.d.ts +34 -7
  28. package/dist/{api/types → types}/procore.d.ts +13 -10
  29. package/dist/{api/types → types}/progressPhoto.d.ts +20 -8
  30. package/dist/{api/types → types}/project.d.ts +1 -0
  31. package/dist/types/recycleBin.d.ts +14 -0
  32. package/dist/{api/types → types}/routeParams.d.ts +2 -1
  33. package/dist/{api/types → types}/shared.d.ts +1 -6
  34. package/dist/{api/types → types}/siteAnalytics.d.ts +3 -2
  35. package/dist/{api/types → types}/snapshots.d.ts +9 -0
  36. package/dist/types/sso.d.ts +55 -0
  37. package/dist/{api/types → types}/streaming.d.ts +1 -2
  38. package/dist/{api/types → types}/weather.d.ts +2 -0
  39. package/dist/{api/types → types}/widget.d.ts +25 -6
  40. package/package.json +4 -3
  41. package/dist/api/api/3dFirebaseApi.d.ts +0 -11
  42. package/dist/api/api/index.d.ts +0 -13
  43. package/dist/shared/api/index.d.ts +0 -3
  44. package/dist/shared/components/timelinePlayer/providers/index.d.ts +0 -3
  45. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +0 -17
  46. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +0 -13
  47. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +0 -16
  48. package/dist/shared/types/components.d.ts +0 -184
  49. package/dist/shared/types/imagePlayer.d.ts +0 -34
  50. package/dist/shared/types/index.d.ts +0 -4
  51. package/dist/shared/types/timeline.d.ts +0 -9
  52. /package/dist/api/{api/authzApi.d.ts → authzApi.d.ts} +0 -0
  53. /package/dist/api/{api/client → client}/axios.d.ts +0 -0
  54. /package/dist/api/{api/client → client}/customErrors.d.ts +0 -0
  55. /package/dist/api/{api/client → client}/index.d.ts +0 -0
  56. /package/dist/api/{api/client → client}/interceptors.d.ts +0 -0
  57. /package/dist/api/{api/evercamLabsApi.d.ts → evercamLabsApi.d.ts} +0 -0
  58. /package/dist/api/{api/exNvrApi.d.ts → exNvrApi.d.ts} +0 -0
  59. /package/dist/api/{api/ptzApi.d.ts → ptzApi.d.ts} +0 -0
  60. /package/dist/api/{api/videoWallApi.d.ts → videoWallApi.d.ts} +0 -0
  61. /package/dist/api/{api/weatherApi.d.ts → weatherApi.d.ts} +0 -0
  62. /package/dist/api/{api/webRtcApi.d.ts → webRtcApi.d.ts} +0 -0
  63. /package/dist/{api/types → types}/aconex.d.ts +0 -0
  64. /package/dist/{api/types → types}/auditLogs.d.ts +0 -0
  65. /package/dist/{api/types → types}/autodesk.d.ts +0 -0
  66. /package/dist/{api/types → types}/automation.d.ts +0 -0
  67. /package/dist/{api/types → types}/bim.d.ts +0 -0
  68. /package/dist/{api/types → types}/compare.d.ts +0 -0
  69. /package/dist/{api/types → types}/connector.d.ts +0 -0
  70. /package/dist/{api/types → types}/copilot.d.ts +0 -0
  71. /package/dist/{api/types → types}/credentials.d.ts +0 -0
  72. /package/dist/{api/types → types}/drone.d.ts +0 -0
  73. /package/dist/{api/types → types}/gateReport.d.ts +0 -0
  74. /package/dist/{api/types → types}/hdd.d.ts +0 -0
  75. /package/dist/{api/types → types}/ingest.d.ts +0 -0
  76. /package/dist/{api/types → types}/map.d.ts +0 -0
  77. /package/dist/{api/types → types}/media.d.ts +0 -0
  78. /package/dist/{api/types → types}/notification.d.ts +0 -0
  79. /package/dist/{api/types → types}/nvr.d.ts +0 -0
  80. /package/dist/{api/types → types}/planner.d.ts +0 -0
  81. /package/dist/{api/types → types}/posthog.d.ts +0 -0
  82. /package/dist/{api/types → types}/recording.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}/shares.d.ts +0 -0
  86. /package/dist/{api/types → types}/sim.d.ts +0 -0
  87. /package/dist/{api/types → types}/storageServers.d.ts +0 -0
  88. /package/dist/{api/types → types}/systemCheck.d.ts +0 -0
  89. /package/dist/{api/types → types}/tag.d.ts +0 -0
  90. /package/dist/{api/types → types}/time.d.ts +0 -0
  91. /package/dist/{api/types → types}/timelapse.d.ts +0 -0
  92. /package/dist/{api/types → types}/user.d.ts +0 -0
  93. /package/dist/{api/types → types}/vendorModel.d.ts +0 -0
  94. /package/dist/{api/types → types}/videoWall.d.ts +0 -0
  95. /package/dist/{api/types → types}/voyageControl.d.ts +0 -0
  96. /package/dist/{api/types → types}/xweather.d.ts +0 -0
  97. /package/dist/{api/utils.d.ts → utils.d.ts} +0 -0
@@ -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",
@@ -105,7 +100,7 @@ export declare enum InfoPage {
105
100
  Timeline = "timeline",
106
101
  WeatherReport = "weather-report"
107
102
  }
108
- export declare enum DownloadTypes {
103
+ export declare enum DownloadFileType {
109
104
  Jpeg = "jpeg",
110
105
  Pdf = "pdf",
111
106
  Csv = "csv"
@@ -1,5 +1,5 @@
1
1
  import type { BBox, BoundingBox, DateType, Schedule, CameraExid, DateTime, DetectionModel, PaginationParams, PpeLabel, ProjectExid } from "@evercam/api/types";
2
- import { DetectionLabel, DownloadTypes } from "@evercam/api/types";
2
+ import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
3
3
  export declare enum SiteAnalyticsMode {
4
4
  Detections = "detections",
5
5
  Segments = "segments"
@@ -132,10 +132,11 @@ export type DetectionsRequestParams = {
132
132
  trackId?: number;
133
133
  thresholds?: string[];
134
134
  excludeLabels?: Array<DetectionLabel | PpeLabel>;
135
+ mergedClasses?: Array<string>;
135
136
  confidenceThreshold?: number;
136
137
  } & PaginationParams;
137
138
  export type DetectionsExportRequestParams = DetectionsRequestParams & {
138
- fileType: DownloadTypes;
139
+ fileType: DownloadFileType;
139
140
  columns?: string[];
140
141
  directDownload?: boolean;
141
142
  };
@@ -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
+ };
@@ -39,8 +39,7 @@ export type ExNvrDeviceConfig = {
39
39
  timezone: string;
40
40
  };
41
41
  export declare enum ExNvrFootageAvailableStatus {
42
- Active = "Active",
43
- NotActive = "Not Active",
42
+ Available = "Available",
44
43
  NotAvailable = "Not Available"
45
44
  }
46
45
  export declare enum ExNvrDeviceState {
@@ -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-e03adefb8",
3
+ "version": "1.0.0-e1ad6ae1b",
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.2.1",
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"
@@ -44,6 +44,7 @@
44
44
  "peerDependencies": {
45
45
  "axios": "^1.7.7",
46
46
  "humps": "^2.0.1",
47
+ "idb-keyval": "^6.2.2",
47
48
  "moment-timezone": "^0.5.46"
48
49
  }
49
50
  }
@@ -1,11 +0,0 @@
1
- import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
2
- export declare const getFirebaseDbApi: () => string | null | undefined;
3
- export declare const _3dFirebaseApi: {
4
- drone: {
5
- getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
6
- };
7
- _360: {
8
- getProjectInfo(projectExid: ProjectExid): Promise<_360ProjectJsonResponse>;
9
- updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<_360ProjectJsonResponse>;
10
- };
11
- };
@@ -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
- }
@@ -1,184 +0,0 @@
1
- import { type _360Scene, type Media, type DroneModel, type MobileCaptureSnapshot, type TimelineDateInterval, type TimelinePrecision, type Comment, TaskStatus, Tag } from "@evercam/api/types";
2
- import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
3
- import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
4
- export declare enum WatermarkedImageDownloadOrigin {
5
- Drone = "drone",
6
- Bim = "BIM",
7
- Snapshot = "snapshot",
8
- The360 = "360",
9
- Planner = "Planner"
10
- }
11
- export declare enum PlayerMode {
12
- Video = "video",
13
- Jpegs = "jpegs"
14
- }
15
- export type TasksStatusMap = {
16
- [key: string]: TaskStatus;
17
- };
18
- export type TaskProgressItem = {
19
- status: TaskStatus;
20
- description: string;
21
- percentDone?: number;
22
- duration?: number;
23
- };
24
- export type GlobalSearchMatch = {
25
- path: Array<string>;
26
- value: string | number | boolean;
27
- };
28
- export type GlobalSearchResult = {
29
- index: number;
30
- matches: Array<GlobalSearchMatch>;
31
- };
32
- export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
33
- export type TimelineProviderRequestParams = TimelineDateInterval & {
34
- precision?: TimelinePrecision;
35
- labels?: string[];
36
- trackId?: number;
37
- };
38
- export type TimelinePlayerGroupConfig = {
39
- provider?: TimelineDataProvider;
40
- events?: Array<TimelineEvent>;
41
- getChartType?: (precision: TimelinePrecision) => TimelineChartType;
42
- } & Omit<TimelineEventsGroup, "events">;
43
- export type TimelinePlayerConfig = {
44
- [groupName: string]: TimelinePlayerGroupConfig;
45
- };
46
- export type TimelinePlayerTooltipItem = {
47
- label?: string;
48
- title?: string;
49
- thumbnailUrl: string;
50
- placeholderThumbnailUrl?: string;
51
- fallbackThumbnailUrl?: string;
52
- };
53
- export declare enum TimelineGroupId {
54
- ThreeSixty = "w360",
55
- Drone = "drone",
56
- Bim = "bim",
57
- Media = "media",
58
- Comments = "comments",
59
- Anpr = "anpr",
60
- MobileCapture = "mobileCapture",
61
- ExNvrRecordings = "exNvrRecordings",
62
- Luminance = "luminance",
63
- ObjectInspector = "objectInspector"
64
- }
65
- export type TimelineOverlayType = TimelineGroupId.ThreeSixty | TimelineGroupId.Drone | TimelineGroupId.Media | TimelineGroupId.MobileCapture | TimelineGroupId.Bim | TimelineGroupId.Comments | "compare";
66
- export type TimelineOverlayData<T extends TimelineOverlayType> = T extends TimelineGroupId.ThreeSixty ? _360Scene : T extends TimelineGroupId.Drone ? DroneModel : T extends TimelineGroupId.Media ? Media : T extends TimelineGroupId.MobileCapture ? MobileCaptureSnapshot : T extends TimelineGroupId.Comments ? Comment : never;
67
- export declare enum TimelineMarkerId {
68
- Xray = "xray",
69
- CurrentSnapshot = "current",
70
- CompareBeforeSnapshot = "compareBefore",
71
- CompareAfterSnapshot = "compareAfter",
72
- ObjectInspectorFirstSeen = "firstSeen",
73
- ObjectInspectorLastSeen = "lastSeen"
74
- }
75
- export type TimelineMediaHubItemsByType = {
76
- clip?: Media[];
77
- compare?: Media[];
78
- edit?: Media[];
79
- timelapse?: Media[];
80
- xRay?: Media[];
81
- };
82
- export declare enum HighchartsStackingBehavior {
83
- Overlap = "overlap",
84
- Normal = "normal",
85
- Percent = "percent",
86
- Stream = "stream"
87
- }
88
- export declare enum LeaderLinePlugType {
89
- Disc = "disc",
90
- Square = "square",
91
- Arrow1 = "arrow1",
92
- Arrow2 = "arrow2",
93
- Arrow3 = "arrow3",
94
- Hand = "hand",
95
- CrossHair = "crosshair",
96
- Behind = "behind"
97
- }
98
- export declare enum LeaderLinesPathType {
99
- Straight = "straight",
100
- Arc = "arc",
101
- Fluid = "fluid",
102
- Magnet = "magnet",
103
- Grid = "grid"
104
- }
105
- export declare enum LeaderLinesSocketPosition {
106
- Top = "top",
107
- Right = "right",
108
- Bottom = "bottom",
109
- Left = "left",
110
- Auto = "auto"
111
- }
112
- export type LeaderLineOptions = {
113
- startSocket?: LeaderLinesSocketPosition;
114
- endSocket?: LeaderLinesSocketPosition;
115
- color?: string | ((element: any) => string);
116
- size?: number;
117
- startPlug?: LeaderLinePlugType;
118
- endPlug?: LeaderLinePlugType;
119
- startPlugSize?: number;
120
- endPlugSize?: number;
121
- path?: LeaderLinesPathType;
122
- startSocketGravity?: [number, number];
123
- endSocketGravity?: [number, number];
124
- dash?: {
125
- animation: boolean | {
126
- duration: number;
127
- };
128
- } | ((element: any) => {
129
- animation: boolean | {
130
- duration: number;
131
- };
132
- });
133
- };
134
- export type CssSelector = string;
135
- export type LineConfig = {
136
- start: CssSelector | CssSelector[];
137
- end: CssSelector | CssSelector[];
138
- options?: LeaderLineOptions;
139
- };
140
- export type Point = {
141
- x: number;
142
- y: number;
143
- };
144
- export declare enum ZohoDeskTicketStatus {
145
- Closed = "Closed",
146
- OnHold = "On Hold",
147
- Open = "Open"
148
- }
149
- export type TagSelectorItem = Tag & {
150
- isExcluded?: boolean;
151
- };
152
- export declare enum FormSchemaComponents {
153
- SelectField = "SelectField",
154
- MultiOption = "MultiOption",
155
- TextField = "TextField",
156
- CheckBox = "SwitchField",
157
- DateTime = "DatePickerInput",
158
- TextArea = "Textarea",
159
- Search = "Autocomplete",
160
- ReadOnly = "ReadOnly"
161
- }
162
- export declare enum FormSchemaDataType {
163
- String = "string",
164
- Number = "number",
165
- Boolean = "boolean",
166
- Date = "date"
167
- }
168
- export type FormSchemaOptions = {
169
- title: string;
170
- value: string;
171
- };
172
- export type FormSchemaField = {
173
- id: string;
174
- component: FormSchemaComponents;
175
- required?: boolean;
176
- name: string;
177
- options?: FormSchemaOptions[];
178
- disabled?: boolean;
179
- dataType: FormSchemaDataType;
180
- multiple?: boolean;
181
- defaultValue?: any;
182
- columns?: number;
183
- };
184
- export type FormSchema = Array<FormSchemaField>;
@@ -1,34 +0,0 @@
1
- import type { Timestamp } from "@evercam/api/types";
2
- export interface Frame {
3
- label: string;
4
- src: string;
5
- srcSet?: SrcSet;
6
- timestamp: Timestamp;
7
- }
8
- export interface InfoText {
9
- index: string;
10
- label: string;
11
- }
12
- export type EventMarker<T extends {}> = T & {
13
- label: string;
14
- thumbnailUrl: string;
15
- isActive: boolean;
16
- cssClass?: Object | string;
17
- };
18
- export type SnapshotEvent<T extends {}> = T & {
19
- eventTime: Timestamp;
20
- };
21
- export type MatchedSnapshotEvent<T extends {}> = SnapshotEvent<T> & {
22
- frameIndex: number;
23
- snapshotTimestamp: Timestamp;
24
- };
25
- export declare enum ImageQuality {
26
- ThureeSixty = "360",
27
- FourEighty = "480",
28
- SevenTwenty = "720",
29
- OneZeroEightZero = "1080",
30
- Auto = "auto"
31
- }
32
- export type SrcSet = {
33
- [q in ImageQuality]: string;
34
- };
@@ -1,4 +0,0 @@
1
- export * from "@evercam/api/types";
2
- export * from "./components";
3
- export * from "./imagePlayer";
4
- export * from "./timeline";
@@ -1,9 +0,0 @@
1
- import { TimelineGroupId, type TimelinePlayerGroupConfig } from "@evercam/shared/types/components";
2
- export interface TimelineGroup {
3
- id: TimelineGroupId;
4
- timelineConfig: TimelinePlayerGroupConfig | Record<string, TimelinePlayerGroupConfig>;
5
- isVisible: boolean;
6
- isDisabled: boolean;
7
- isRestricted?: boolean;
8
- hasMultipleGroups?: boolean;
9
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes