@evercam/api 1.0.0-a405572ff → 1.0.0-a59703ab2

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 (113) hide show
  1. package/README.md +4 -1
  2. package/dist/api/api/3dFirebaseApi.d.ts +27 -0
  3. package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +120 -54
  4. package/dist/api/api/aiApi.d.ts +124 -0
  5. package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +10 -1
  6. package/dist/api/{client → api/client}/axios.d.ts +1 -0
  7. package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
  8. package/dist/api/{client → api/client}/interceptors.d.ts +3 -2
  9. package/dist/api/api/client/swr/Swr.d.ts +14 -0
  10. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  11. package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +89 -57
  12. package/dist/api/api/evercamLabsApi.d.ts +46 -0
  13. package/dist/api/api/index.d.ts +13 -0
  14. package/dist/api/api/ingestApi.d.ts +96 -0
  15. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +5 -1
  16. package/dist/api/api/videoWallApi.d.ts +9 -0
  17. package/dist/api/api/weatherApi.d.ts +9 -0
  18. package/dist/api/index.d.ts +3 -13
  19. package/dist/api/types/360.d.ts +274 -0
  20. package/dist/api/types/aconex.d.ts +143 -0
  21. package/dist/{types → api/types}/analytics.d.ts +151 -71
  22. package/dist/{types → api/types}/anpr.d.ts +16 -17
  23. package/dist/api/types/authz.d.ts +28 -0
  24. package/dist/api/types/automation.d.ts +61 -0
  25. package/dist/{types → api/types}/axios.d.ts +16 -1
  26. package/dist/{types → api/types}/camera.d.ts +32 -58
  27. package/dist/api/types/comments.d.ts +59 -0
  28. package/dist/{types → api/types}/company.d.ts +29 -1
  29. package/dist/{types → api/types}/connector.d.ts +6 -1
  30. package/dist/api/types/coolify.d.ts +20 -0
  31. package/dist/{types → api/types}/copilot.d.ts +11 -9
  32. package/dist/{types → api/types}/countries.d.ts +0 -7
  33. package/dist/{types → api/types}/credentials.d.ts +1 -0
  34. package/dist/api/types/detections.d.ts +112 -0
  35. package/dist/{types → api/types}/errors.d.ts +13 -0
  36. package/dist/{types → api/types}/gateReport.d.ts +54 -102
  37. package/dist/api/types/hdd.d.ts +63 -0
  38. package/dist/{types → api/types}/index.d.ts +10 -2
  39. package/dist/{types → api/types}/ingest.d.ts +8 -0
  40. package/dist/{types → api/types}/kit.d.ts +115 -10
  41. package/dist/{types → api/types}/nvr.d.ts +2 -1
  42. package/dist/{types/sitePlanner.d.ts → api/types/planner.d.ts} +13 -1
  43. package/dist/api/types/posthog.d.ts +18 -0
  44. package/dist/api/types/procore.d.ts +222 -0
  45. package/dist/{types → api/types}/progressPhoto.d.ts +6 -22
  46. package/dist/{types → api/types}/project.d.ts +56 -3
  47. package/dist/{types → api/types}/recording.d.ts +2 -2
  48. package/dist/api/types/recycleBin.d.ts +14 -0
  49. package/dist/{types → api/types}/roi.d.ts +2 -1
  50. package/dist/{types → api/types}/routeParams.d.ts +4 -2
  51. package/dist/{types → api/types}/router.d.ts +19 -0
  52. package/dist/{types → api/types}/shared.d.ts +3 -17
  53. package/dist/api/types/shares.d.ts +58 -0
  54. package/dist/api/types/siteAnalytics.d.ts +247 -0
  55. package/dist/{types → api/types}/snapshots.d.ts +9 -0
  56. package/dist/api/types/sso.d.ts +55 -0
  57. package/dist/{types → api/types}/streaming.d.ts +4 -27
  58. package/dist/api/types/systemCheck.d.ts +11 -0
  59. package/dist/api/types/tag.d.ts +12 -0
  60. package/dist/{types → api/types}/time.d.ts +6 -0
  61. package/dist/{types → api/types}/timelapse.d.ts +15 -0
  62. package/dist/{types → api/types}/user.d.ts +19 -7
  63. package/dist/api/types/videoWall.d.ts +66 -0
  64. package/dist/{types → api/types}/weather.d.ts +8 -2
  65. package/dist/{types → api/types}/widget.d.ts +38 -11
  66. package/dist/api/types/xweather.d.ts +12 -0
  67. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  68. package/dist/index.d.ts +2 -3
  69. package/dist/index.js +1605 -934
  70. package/dist/index.js.map +1 -1
  71. package/dist/index.umd.cjs +1 -1
  72. package/dist/index.umd.cjs.map +1 -1
  73. package/dist/shared/api/index.d.ts +3 -0
  74. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  75. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  76. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  77. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  78. package/dist/shared/types/components.d.ts +199 -0
  79. package/dist/shared/types/imagePlayer.d.ts +34 -0
  80. package/dist/shared/types/index.d.ts +4 -0
  81. package/dist/shared/types/timeline.d.ts +9 -0
  82. package/package.json +10 -8
  83. package/dist/api/3dFirebaseApi.d.ts +0 -9
  84. package/dist/api/aiApi.d.ts +0 -73
  85. package/dist/api/evercamLabsApi.d.ts +0 -50
  86. package/dist/api/ingestApi.d.ts +0 -65
  87. package/dist/api/videoWallApi.d.ts +0 -9
  88. package/dist/api/weatherApi.d.ts +0 -25
  89. package/dist/types/360.d.ts +0 -83
  90. package/dist/types/aconex.d.ts +0 -45
  91. package/dist/types/automation.d.ts +0 -6
  92. package/dist/types/comments.d.ts +0 -36
  93. package/dist/types/detections.d.ts +0 -62
  94. package/dist/types/devices.d.ts +0 -228
  95. package/dist/types/procore.d.ts +0 -76
  96. package/dist/types/shares.d.ts +0 -192
  97. package/dist/types/siteAnalytics.d.ts +0 -5
  98. package/dist/types/videoWall.d.ts +0 -33
  99. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  100. /package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +0 -0
  101. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  102. /package/dist/{types → api/types}/auditLogs.d.ts +0 -0
  103. /package/dist/{types → api/types}/autodesk.d.ts +0 -0
  104. /package/dist/{types → api/types}/bim.d.ts +0 -0
  105. /package/dist/{types → api/types}/compare.d.ts +0 -0
  106. /package/dist/{types → api/types}/drone.d.ts +0 -0
  107. /package/dist/{types → api/types}/map.d.ts +0 -0
  108. /package/dist/{types → api/types}/media.d.ts +0 -0
  109. /package/dist/{types → api/types}/notification.d.ts +0 -0
  110. /package/dist/{types → api/types}/sim.d.ts +0 -0
  111. /package/dist/{types → api/types}/storageServers.d.ts +0 -0
  112. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  113. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -0,0 +1,3 @@
1
+ export * from "@evercam/api/api";
2
+ import { axios } from "@evercam/api/api";
3
+ export default axios;
@@ -0,0 +1,3 @@
1
+ export * from "./timelineDataProvider";
2
+ export * from "./timelineAnprProvider";
3
+ export * from "./timelineLuminanceProvider";
@@ -0,0 +1,17 @@
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
+ }
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,16 @@
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
+ }
@@ -0,0 +1,199 @@
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 NavigationArrow {
5
+ Previous = "previous",
6
+ Next = "next"
7
+ }
8
+ export declare enum WatermarkedImageDownloadOrigin {
9
+ Drone = "drone",
10
+ Bim = "BIM",
11
+ Snapshot = "snapshot",
12
+ The360 = "360",
13
+ The360Gallery = "360 Gallery",
14
+ Planner = "Planner"
15
+ }
16
+ export declare enum PlayerMode {
17
+ Video = "video",
18
+ Jpegs = "jpegs"
19
+ }
20
+ export type TasksStatusMap = {
21
+ [key: string]: TaskStatus;
22
+ };
23
+ export type TaskProgressItem = {
24
+ status: TaskStatus;
25
+ description: string;
26
+ percentDone?: number;
27
+ duration?: number;
28
+ };
29
+ export type GlobalSearchMatch = {
30
+ path: Array<string>;
31
+ value: string | number | boolean;
32
+ };
33
+ export type GlobalSearchResult = {
34
+ index: number;
35
+ matches: Array<GlobalSearchMatch>;
36
+ };
37
+ export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
38
+ export type TimelineProviderRequestParams = TimelineDateInterval & {
39
+ precision?: TimelinePrecision;
40
+ labels?: string[];
41
+ trackId?: number;
42
+ };
43
+ export type TimelinePlayerGroupConfig = {
44
+ provider?: TimelineDataProvider;
45
+ events?: Array<TimelineEvent>;
46
+ getChartType?: (precision: TimelinePrecision) => TimelineChartType;
47
+ } & Omit<TimelineEventsGroup, "events">;
48
+ export type TimelinePlayerConfig = {
49
+ [groupName: string]: TimelinePlayerGroupConfig;
50
+ };
51
+ export type TimelinePlayerTooltipItem = {
52
+ label?: string;
53
+ title?: string;
54
+ thumbnailUrl: string;
55
+ placeholderThumbnailUrl?: string;
56
+ fallbackThumbnailUrl?: string;
57
+ };
58
+ export declare enum TimelineGroupId {
59
+ ThreeSixty = "w360",
60
+ Drone = "drone",
61
+ Bim = "bim",
62
+ Media = "media",
63
+ Comments = "comments",
64
+ Anpr = "anpr",
65
+ MobileCapture = "mobileCapture",
66
+ ExNvrRecordings = "exNvrRecordings",
67
+ Luminance = "luminance",
68
+ ObjectInspector = "objectInspector"
69
+ }
70
+ export type TimelineOverlayType = TimelineGroupId.ThreeSixty | TimelineGroupId.Drone | TimelineGroupId.Media | TimelineGroupId.MobileCapture | TimelineGroupId.Bim | TimelineGroupId.Comments | "compare";
71
+ 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;
72
+ export declare enum TimelineMarkerId {
73
+ Xray = "xray",
74
+ CurrentSnapshot = "current",
75
+ CompareBeforeSnapshot = "compareBefore",
76
+ CompareAfterSnapshot = "compareAfter",
77
+ ObjectInspectorFirstSeen = "firstSeen",
78
+ ObjectInspectorLastSeen = "lastSeen"
79
+ }
80
+ export type TimelineMediaHubItemsByType = {
81
+ clip?: Media[];
82
+ compare?: Media[];
83
+ edit?: Media[];
84
+ timelapse?: Media[];
85
+ xRay?: Media[];
86
+ };
87
+ export declare enum HighchartsStackingBehavior {
88
+ Overlap = "overlap",
89
+ Normal = "normal",
90
+ Percent = "percent",
91
+ Stream = "stream"
92
+ }
93
+ export declare enum LeaderLinePlugType {
94
+ Disc = "disc",
95
+ Square = "square",
96
+ Arrow1 = "arrow1",
97
+ Arrow2 = "arrow2",
98
+ Arrow3 = "arrow3",
99
+ Hand = "hand",
100
+ CrossHair = "crosshair",
101
+ Behind = "behind"
102
+ }
103
+ export declare enum LeaderLinesPathType {
104
+ Straight = "straight",
105
+ Arc = "arc",
106
+ Fluid = "fluid",
107
+ Magnet = "magnet",
108
+ Grid = "grid"
109
+ }
110
+ export declare enum LeaderLinesSocketPosition {
111
+ Top = "top",
112
+ Right = "right",
113
+ Bottom = "bottom",
114
+ Left = "left",
115
+ Auto = "auto"
116
+ }
117
+ export type LeaderLineOptions = {
118
+ startSocket?: LeaderLinesSocketPosition;
119
+ endSocket?: LeaderLinesSocketPosition;
120
+ color?: string | ((element: any) => string);
121
+ size?: number;
122
+ startPlug?: LeaderLinePlugType;
123
+ endPlug?: LeaderLinePlugType;
124
+ startPlugSize?: number;
125
+ endPlugSize?: number;
126
+ path?: LeaderLinesPathType;
127
+ startSocketGravity?: [number, number];
128
+ endSocketGravity?: [number, number];
129
+ dash?: {
130
+ animation: boolean | {
131
+ duration: number;
132
+ };
133
+ } | ((element: any) => {
134
+ animation: boolean | {
135
+ duration: number;
136
+ };
137
+ });
138
+ };
139
+ export type CssSelector = string;
140
+ export type LineConfig = {
141
+ start: CssSelector | CssSelector[];
142
+ end: CssSelector | CssSelector[];
143
+ options?: LeaderLineOptions;
144
+ };
145
+ export type Point = {
146
+ x: number;
147
+ y: number;
148
+ };
149
+ export declare enum ZohoDeskTicketStatus {
150
+ Closed = "Closed",
151
+ OnHold = "On Hold",
152
+ Open = "Open"
153
+ }
154
+ export type TagSelectorItem = Tag & {
155
+ isExcluded?: boolean;
156
+ };
157
+ export declare enum FormSchemaComponents {
158
+ SelectField = "SelectField",
159
+ MultiOption = "MultiOption",
160
+ TextField = "TextField",
161
+ CheckBox = "SwitchField",
162
+ Date = "DatePickerInput",
163
+ DateTime = "DateTimeField",
164
+ TextArea = "Textarea",
165
+ Search = "Autocomplete",
166
+ ReadOnly = "ReadOnly",
167
+ Ratio = "RatioField"
168
+ }
169
+ export declare enum FormSchemaDataType {
170
+ String = "string",
171
+ Number = "number",
172
+ Boolean = "boolean",
173
+ Date = "date"
174
+ }
175
+ export type FormSchemaOptions = {
176
+ title: string;
177
+ value: string;
178
+ };
179
+ export type FormSchemaField = {
180
+ id: string;
181
+ component: FormSchemaComponents;
182
+ required?: boolean;
183
+ name: string;
184
+ options?: FormSchemaOptions[];
185
+ disabled?: boolean;
186
+ dataType: FormSchemaDataType;
187
+ multiple?: boolean;
188
+ defaultValue?: any;
189
+ columns?: number;
190
+ };
191
+ export type FormSchema = Record<string, FormSchemaField>;
192
+ export interface ScrollListener {
193
+ element: Element | Window;
194
+ handler: () => void;
195
+ }
196
+ export interface LeaderLineInstance {
197
+ remove(): void;
198
+ position(): void;
199
+ }
@@ -0,0 +1,34 @@
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
+ ThreeSixty = "360",
27
+ FourEighty = "480",
28
+ SevenTwenty = "720",
29
+ OneZeroEightZero = "1080",
30
+ Auto = "auto"
31
+ }
32
+ export type SrcSet = {
33
+ [q in ImageQuality]: string;
34
+ };
@@ -0,0 +1,4 @@
1
+ export * from "@evercam/api/types";
2
+ export * from "./components";
3
+ export * from "./imagePlayer";
4
+ export * from "./timeline";
@@ -0,0 +1,9 @@
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/api",
3
- "version": "1.0.0-a405572ff",
3
+ "version": "1.0.0-a59703ab2",
4
4
  "description": "Evercam API client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,11 +11,11 @@
11
11
  "private": false,
12
12
  "type": "module",
13
13
  "main": "dist/index.umd.js",
14
- "module": "dist/index.mjs",
14
+ "module": "dist/index.js",
15
15
  "types": "./dist/index.d.ts",
16
16
  "exports": {
17
17
  ".": {
18
- "import": "./dist/index.mjs",
18
+ "import": "./dist/index.js",
19
19
  "require": "./dist/index.umd.js"
20
20
  },
21
21
  "./types": "./dist/src/types.ts"
@@ -24,7 +24,7 @@
24
24
  "dist"
25
25
  ],
26
26
  "engines": {
27
- "node": "20.x"
27
+ "node": ">=22"
28
28
  },
29
29
  "readme": "README.md",
30
30
  "scripts": {
@@ -32,17 +32,19 @@
32
32
  "typecheck": "tsc --noEmit",
33
33
  "build:types": "tsc --declaration --emitDeclarationOnly",
34
34
  "build": "yarn clean && vite build && yarn build:types",
35
- "ci": "(cd ../..; yarn ci)"
35
+ "ci": "(cd ../..; yarn ci)",
36
+ "publish-api": "cd ../.. && yarn publish-api"
36
37
  },
37
38
  "devDependencies": {
38
- "@types/node": "^22.13.5",
39
+ "@types/node": "^25.3.0",
39
40
  "vite": "latest",
40
41
  "vite-plugin-commonjs": "^0.10.3",
41
- "vite-plugin-dts": "^4.3.0"
42
+ "vite-plugin-dts": "^4.5.4"
42
43
  },
43
44
  "peerDependencies": {
44
45
  "axios": "^1.7.7",
45
46
  "humps": "^2.0.1",
47
+ "idb-keyval": "^6.2.2",
46
48
  "moment-timezone": "^0.5.46"
47
49
  }
48
- }
50
+ }
@@ -1,9 +0,0 @@
1
- import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
2
- export declare const _3dFirebaseApi: {
3
- drone: {
4
- getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
5
- };
6
- _360: {
7
- getProjectInfo(projectExid: ProjectExid): Promise<_360ProjectJsonResponse>;
8
- };
9
- };
@@ -1,73 +0,0 @@
1
- import type { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, EventsRequestPayload, EventsResponsePayload, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, AnalyticsParameters, VerifiedDaysQueryParams, EventUpdateRequestPayload, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, GateReportEventType, DateTime, RoisQueryParams, GateReportROICreateRequestPayload } from "@evercam/api/types";
2
- import type { AxiosPromise, AxiosRequestConfig } from "axios";
3
- export declare const getAiApiUrl: () => string | null | undefined;
4
- export declare const AiApi: {
5
- analyticsParameters: {
6
- getParameters(cameraId: CameraExid, params?: Record<string, unknown>): Promise<AnalyticsParameters>;
7
- createParameters(params: Omit<AnalyticsParameters, "id">): Promise<AnalyticsParameters>;
8
- updateParameters({ updatedBy, id, ...payload }: Partial<AnalyticsParameters> & {
9
- updatedBy: string;
10
- }): Promise<AnalyticsParameters>;
11
- };
12
- anpr: {
13
- exportAnprLegacyEvents(projectExid: ProjectExid, params: AnprQueryParams): AxiosPromise<any>;
14
- getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams): Promise<PaginatedItems<AnprEvent>>;
15
- getAnprCounts(projectExid: ProjectExid, payload: AnprCountsQueryParams): Promise<AnprCount[]>;
16
- updateAnprEvent(anprEventId: string, eventBody: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
17
- bulkUpdateAnprRecords(anprEventsIds: number[], action: "is_plate" | "not_plate" | "is_duplicate" | "not_duplicate"): Promise<import("axios").AxiosResponse<any, any>>;
18
- exportAnprEvents(projectExid: string, params: AnprBasedGateReportExportRequestParams): AxiosPromise<string>;
19
- };
20
- gateReport: {
21
- getGateReportProjects(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
22
- getLastVerified(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
23
- deleteEvent(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
24
- dismissEvents(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
25
- exportEvents(projectExid: string, params: EventsExportRequestParameters): AxiosPromise<any>;
26
- exportEventsProgress(projectExid: string, params: {
27
- exportDate: string;
28
- }): Promise<import("axios").AxiosResponse<any, any>>;
29
- getAllEvents(projectExid: ProjectExid, params: EventsRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventsResponsePayload>;
30
- getEventCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
31
- getVerifiedDays(projectExid: ProjectExid, params: Partial<VerifiedDaysQueryParams>, extraParams?: {}): Promise<PaginatedItems<GateReportVerifiedDay>>;
32
- updateEventById(eventId: number, { updatedBy, payload, }: {
33
- updatedBy: string;
34
- payload: Partial<EventUpdateRequestPayload>;
35
- }): Promise<import("axios").AxiosResponse<any, any>>;
36
- verifyDay(params: VerifyDayUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
37
- regenerateThumbnail(id: number, params: {
38
- cameraExid: string;
39
- }): Promise<import("axios").AxiosResponse<any, any>>;
40
- getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<import("axios").AxiosResponse<any, any>>;
41
- getEventThumbnail({ cameraExid, eventType, eventTime, token, }: {
42
- cameraExid: string;
43
- eventType: GateReportEventType;
44
- eventTime: DateTime;
45
- token: string;
46
- }): string;
47
- getEventSnapshot({ cameraExid, eventType, eventTime, token, }: {
48
- cameraExid: string;
49
- eventType: GateReportEventType;
50
- eventTime: DateTime;
51
- token: string;
52
- }): string;
53
- getEvents(projectExid: ProjectExid, params: GatReportRequestPayload, extraParams?: AxiosRequestConfig): Promise<GateReportResponsePayload>;
54
- getCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
55
- };
56
- brainTool: {
57
- getObjectDetectionsResults(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
58
- getSegments(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
59
- getDepth(cameraExid: string, timestamp: string): Promise<import("axios").AxiosResponse<any, any>>;
60
- };
61
- roi: {
62
- getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
63
- createROI(params: GateReportROICreateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
64
- updateROI({ updatedBy, roi, }: {
65
- updatedBy: string;
66
- roi: GateReportROICreateRequestPayload;
67
- }): Promise<import("axios").AxiosResponse<any, any>>;
68
- deleteROI({ id, updatedBy }: {
69
- id: number;
70
- updatedBy: string;
71
- }): Promise<import("axios").AxiosResponse<any, any>>;
72
- };
73
- };
@@ -1,50 +0,0 @@
1
- import type { MilesightCameraVideoConfig, MilesightRequestParams, MilesightCameraNetworkConfiguration, MilesightCameraSystemSettings, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, CopilotConversation, CopilotMessage, PaginatedItems, CopilotMessageStep, DetectionsFilters, TrackingsByLabel, CameraExid, CountsParams, CountByPeriod, DetectionsPresenceByLabel, FeedbackPayload, LabsPaginationParams, SegmentsPresenceByLabel, SegmentsByLabel, SegmentsSimilaritySearchParams, LuminanceReading, GrafanaKitMetrics, GrafanaMetricId } from "@evercam/api/types";
2
- export declare function getLabsBaseUrl(): string | null | undefined;
3
- export declare const EvercamLabsApi: {
4
- milesight: {
5
- getVideoConfig({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraVideoConfig>;
6
- getNetworkConfiguration({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraNetworkConfiguration>;
7
- getSystemSettings({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSystemSettings>;
8
- getTimeSettings({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSystemSettings>;
9
- getOsdConfiguration({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraOsdConfiguration>;
10
- getSdCardInfo({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSdCardInfo>;
11
- };
12
- copilot: {
13
- getAllConversations(params: LabsPaginationParams & {
14
- cameraExid?: string;
15
- projectExid?: string;
16
- user?: string;
17
- }): Promise<PaginatedItems<CopilotConversation>>;
18
- getOneConversation(conversationId: number): Promise<PaginatedItems<CopilotConversation>>;
19
- getConversationMessages(conversationId: number, params: LabsPaginationParams): Promise<PaginatedItems<CopilotMessage>>;
20
- getMessageSteps(message: CopilotMessage): Promise<CopilotMessageStep[]>;
21
- submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
22
- };
23
- detections: {
24
- getDetectionsTracking(cameraExid: CameraExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
25
- getSegmentsMasks(cameraExid: CameraExid, params: DetectionsFilters): Promise<SegmentsByLabel>;
26
- getDetectionsPresenceDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<DetectionsPresenceByLabel>;
27
- getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<SegmentsPresenceByLabel>;
28
- getCranesMovement({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<CountByPeriod[]>;
29
- getSimilarSegmentsInTimeIntervals({ cameraExid, segmentId, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
30
- };
31
- googleCloudStorage: {
32
- listFiles(prefix?: string): Promise<{
33
- files: string[];
34
- folders: string[];
35
- }>;
36
- getSignedUrl(fileName: string): Promise<{
37
- url: string;
38
- }>;
39
- };
40
- luminance: {
41
- getReadings(params: {
42
- cameraExid: CameraExid;
43
- fromDate: string;
44
- toDate: string;
45
- }): Promise<LuminanceReading[]>;
46
- };
47
- kits: {
48
- getMetrics(kitId: string, metrics: GrafanaMetricId[]): Promise<GrafanaKitMetrics>;
49
- };
50
- };
@@ -1,65 +0,0 @@
1
- import type { _360AssetsQueryParams, _360AssetsRequestPayload, _360AssetsUploadPayload, BimUploadPayload, BimUploadsQueryParams, CalculateMeasuringOperationRequestPayload, DronesQueryParams, DroneUploadUpdateRequestPayload, FlightImagesQueryParams, Generate360MapRequestPayload, InspectionToolRequestPayload, MobileCaptureSnapshot } from "@evercam/api/types";
2
- export declare const IngestApi: {
3
- drone: {
4
- createUpload(projectId: string, params: {
5
- uploadedBy: string;
6
- }): Promise<import("axios").AxiosResponse<any, any>>;
7
- reprocessDrone(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
8
- getDrones(params: {
9
- params: Partial<DronesQueryParams>;
10
- }): Promise<import("axios").AxiosResponse<any, any>>;
11
- getArchive(id: number, params: {
12
- dataType: string;
13
- }): Promise<import("axios").AxiosResponse<any, any>>;
14
- deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
15
- prepareForUpload(projectId: string, params: {
16
- uploadedBy: string;
17
- token: string;
18
- }): Promise<import("axios").AxiosResponse<any, any>>;
19
- upload(projectId: string, params: {
20
- uploadedBy: string;
21
- token: string;
22
- }, payload: DroneUploadUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
23
- verifyToken(projectId: string, params: {
24
- token: string;
25
- }): Promise<import("axios").AxiosResponse<any, any>>;
26
- calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
27
- inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
28
- isInspectionEnabled(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
29
- getDroneQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
30
- getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<import("axios").AxiosResponse<any, any>>;
31
- };
32
- assets360: {
33
- get360Assets(params: {
34
- params: Partial<_360AssetsQueryParams>;
35
- }): Promise<import("axios").AxiosResponse<any, any>>;
36
- deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
37
- getArchive(id: number, params: {
38
- dateType: string;
39
- }): Promise<import("axios").AxiosResponse<any, any>>;
40
- createUpload(projectId: string, params: _360AssetsRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
41
- upload(id: number, params: Record<string, unknown>, payload: _360AssetsUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
42
- generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
43
- get360QueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
44
- };
45
- bim: {
46
- createUpload(projectId: string, params: {
47
- uploadedBy: string;
48
- }): Promise<import("axios").AxiosResponse<any, any>>;
49
- getBIMs(params: {
50
- params: Partial<BimUploadsQueryParams>;
51
- }): Promise<import("axios").AxiosResponse<any, any>>;
52
- getArchive(id: number): Promise<import("axios").AxiosResponse<any, any>>;
53
- deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
54
- upload(projectId: string, params: {
55
- id: string;
56
- name: string;
57
- }, payload: BimUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
58
- };
59
- mobileCapture: {
60
- getProjectMobileAssets(params: Record<string, unknown>): Promise<MobileCaptureSnapshot[]>;
61
- getMobileAssetPhoto(assetId: string | number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
62
- };
63
- getTotalQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
64
- checkFlightAvailableFeatures(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
65
- };
@@ -1,9 +0,0 @@
1
- import { VideoWallPreset } from "@evercam/api/types";
2
- export declare const VideoWallApi: {
3
- presets: {
4
- getProjectPresets(email: string, projectId: number): Promise<import("axios").AxiosResponse<any, any>>;
5
- saveProjectPreset(email: string, projectId: string, payload: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
6
- getGlobalPreset(email: string): Promise<VideoWallPreset>;
7
- saveGlobalPreset(email: string, payload: VideoWallPreset): Promise<void>;
8
- };
9
- };
@@ -1,25 +0,0 @@
1
- import { HistoryWeatherRequestPayload, WeatherDataResponse, WeatherProvider, WeatherResponsePayload } from "@evercam/api/types";
2
- export declare const WeatherApi: {
3
- current: {
4
- getCurrentWeather({ projectExid, weatherProvider, }: {
5
- projectExid: string;
6
- weatherProvider: WeatherProvider;
7
- }): Promise<WeatherResponsePayload> | undefined;
8
- };
9
- historical: {
10
- getWeatherBeforeDate({ projectExid, weatherProvider, payload, }: {
11
- projectExid: string;
12
- weatherProvider: WeatherProvider;
13
- payload: HistoryWeatherRequestPayload;
14
- }): Promise<WeatherResponsePayload> | undefined;
15
- };
16
- weather: {
17
- getWeatherData({ projectExid, weatherProvider, payload, }: {
18
- projectExid: string;
19
- weatherProvider: WeatherProvider;
20
- payload: HistoryWeatherRequestPayload;
21
- }): Promise<{
22
- data: WeatherDataResponse[];
23
- }> | undefined;
24
- };
25
- };