@evercam/api 1.0.0-89f82eef3 → 1.0.0-8aba8698d
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.
- package/README.md +2 -0
- package/dist/api/adminApi.d.ts +13 -7
- package/dist/api/aiApi.d.ts +24 -0
- package/dist/api/evercamApi.d.ts +1 -2
- package/dist/api/evercamLabsApi.d.ts +4 -0
- package/dist/api/ingestApi.d.ts +2 -1
- package/dist/api/weatherApi.d.ts +3 -1
- package/dist/index.js +499 -400
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/360.d.ts +2 -2
- package/dist/types/analytics.d.ts +26 -29
- package/dist/types/anpr.d.ts +10 -7
- package/dist/types/axios.d.ts +0 -1
- package/dist/types/camera.d.ts +3 -2
- package/dist/types/coolify.d.ts +18 -0
- package/dist/types/copilot.d.ts +9 -8
- package/dist/types/index.d.ts +3 -1
- package/dist/types/kit.d.ts +6 -2
- package/dist/types/project.d.ts +1 -2
- package/dist/types/shared.d.ts +1 -10
- package/dist/types/shares.d.ts +0 -1
- package/dist/types/streaming.d.ts +1 -2
- package/dist/types/tag.d.ts +12 -0
- package/dist/types/timelapse.d.ts +7 -0
- package/dist/types/widget.d.ts +4 -4
- package/package.json +3 -3
- /package/dist/types/{sitePlanner.d.ts → planner.d.ts} +0 -0
package/dist/types/360.d.ts
CHANGED
|
@@ -41,11 +41,11 @@ export declare enum _360AssetType {
|
|
|
41
41
|
MobileAudio = "mobile_audios"
|
|
42
42
|
}
|
|
43
43
|
export declare enum _360IntergrationType {
|
|
44
|
+
Evercam = "Evercam",
|
|
44
45
|
Matterport = "Matterport",
|
|
45
46
|
OpenSpace = "Openspace",
|
|
46
47
|
HoloBuilder = "Holobuilder",
|
|
47
|
-
DroneDeploy = "Dronedeploy"
|
|
48
|
-
Evercam = "Evercam"
|
|
48
|
+
DroneDeploy = "Dronedeploy"
|
|
49
49
|
}
|
|
50
50
|
export type _360AssetsQueryParams = {
|
|
51
51
|
page: number;
|
|
@@ -28,7 +28,6 @@ export declare enum AnalyticsEventPageId {
|
|
|
28
28
|
ProjectSettingsOverview = "ProjectSettings-Overview",
|
|
29
29
|
Settings = "Settings",
|
|
30
30
|
SettingsAccount = "Settings-Account",
|
|
31
|
-
SettingsActivities = "Settings-Activities",
|
|
32
31
|
SettingsConnectors = "Settings-Connectors",
|
|
33
32
|
MediaHub = "MediaHub",
|
|
34
33
|
MediaOveriew = "MediaOveriew",
|
|
@@ -36,7 +35,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
36
35
|
Bim = "Bim",
|
|
37
36
|
Drone = "Drone",
|
|
38
37
|
ThreeSixty = "360",
|
|
39
|
-
|
|
38
|
+
Planner = "Planner",
|
|
40
39
|
Widgets = "Widgets",
|
|
41
40
|
Company = "Company",
|
|
42
41
|
EmbeddedLive = "EmbeddedLive",
|
|
@@ -47,8 +46,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
47
46
|
DroneInfo = "DroneInfo",
|
|
48
47
|
ThreeSixtyInfo = "360Info",
|
|
49
48
|
BimCompareInfo = "BimCompareInfo",
|
|
50
|
-
WeatherReport = "WeatherReport"
|
|
51
|
-
EvercamGoInfo = "EvercamGoInfo"
|
|
49
|
+
WeatherReport = "WeatherReport"
|
|
52
50
|
}
|
|
53
51
|
export declare enum AnalyticsEvent {
|
|
54
52
|
PageView = "PageView",
|
|
@@ -64,14 +62,13 @@ export declare enum AnalyticsEvent {
|
|
|
64
62
|
Comment = "Comment-Toggle",
|
|
65
63
|
Compare = "Compare-Toggle",
|
|
66
64
|
Copilot = "Copilot-Toggle",
|
|
65
|
+
DownloadMediaOpen = "DownloadMedia-Open",
|
|
67
66
|
SettingsAccountUpdatePassword = "UpdatePassword",
|
|
68
67
|
SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
|
|
69
68
|
SettingsAccountRevokeSession = "RevokeSession",
|
|
70
69
|
SettingsAccountCancelRevokeSession = "CancelRevokeSession",
|
|
71
70
|
SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
|
|
72
71
|
SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
|
|
73
|
-
SettingsActivitiesFromDateSelect = "FromDateSelect",
|
|
74
|
-
SettingsActivitiesToDateSelect = "ToDateSelect",
|
|
75
72
|
SettingsConnectorsConnectToProcore = "ConnectToProcore",
|
|
76
73
|
SettingsConnectorsConnectToAconex = "ConnectToAconex",
|
|
77
74
|
SettingsConnectorsConnectToAutodesk = "ConnectToAutodesk",
|
|
@@ -335,29 +332,29 @@ export declare enum AnalyticsEvent {
|
|
|
335
332
|
DroneVolumeToolClick = "VolumeTool-Click",
|
|
336
333
|
DroneZoomIn = "ZoomIn",
|
|
337
334
|
DroneZoomOut = "ZoomOut",
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
335
|
+
PlannerAddCameraClick = "AddCameraClick",
|
|
336
|
+
PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
|
|
337
|
+
PlannerAddSitePlanClick = "AddSitePlanClick",
|
|
338
|
+
PlannerAttachSitePlanDrawing = "AttachSitePlanDrawing",
|
|
339
|
+
PlannerCameraMarkerEditFOVAngle = "CameraMarker-EditFOVAngle",
|
|
340
|
+
PlannerCameraMarkerEditHeading = "CameraMarker-EditHeading",
|
|
341
|
+
PlannerCameraMarkerEditName = "CameraMarker-EditName",
|
|
342
|
+
PlannerCameraMarkerEditRadius = "CameraMarker-EditRadius",
|
|
343
|
+
PlannerCameraMarkerSelectColor = "CameraMarker-SelectColor",
|
|
344
|
+
PlannerCameraMarkerToggleVisibility = "CameraMarker-ToggleVisibility",
|
|
345
|
+
PlannerCameraMarkerToggleDeleteDialog = "CameraMarker-ToggleDeleteDialog",
|
|
346
|
+
PlannerCancelUploadSitePlanDrawing = "CancelUploadSitePlanDrawing",
|
|
347
|
+
PlannerChangeLocation = "ChangeLocation",
|
|
348
|
+
PlannerOpen = "Open",
|
|
349
|
+
PlannerResetView = "ResetView",
|
|
350
|
+
PlannerSitePlansList = "SitePlansList",
|
|
351
|
+
PlannerToggleCamerasLabel = "ToggleCamerasLabel",
|
|
352
|
+
PlannerToggleFullscreen = "ToggleFullscreen",
|
|
353
|
+
PlannerToggleMapStyle = "ToggleMapStyle",
|
|
354
|
+
PlannerToggleSaveSessionDialog = "ToggleSaveSessionDialog",
|
|
355
|
+
PlannerUploadSitePlanDrawing = "UploadSitePlanDrawing",
|
|
356
|
+
PlannerZoomIn = "ZoomIn",
|
|
357
|
+
PlannerZoomOut = "ZoomOut",
|
|
361
358
|
MarkerClicked = "MarkerClicked",
|
|
362
359
|
TimelapseToggleHelpDialog = "ToggleHelpDialog",
|
|
363
360
|
TimelapseSelectCustomPeriod = "SelectCustomPeriod",
|
package/dist/types/anpr.d.ts
CHANGED
|
@@ -43,26 +43,29 @@ export declare enum AnprDirection {
|
|
|
43
43
|
export type AnprEvent = {
|
|
44
44
|
id: number;
|
|
45
45
|
plateNumber: string;
|
|
46
|
-
|
|
46
|
+
cameraExid: CameraExid;
|
|
47
47
|
picName: string;
|
|
48
|
-
|
|
48
|
+
eventTime: string;
|
|
49
49
|
insertedAt: string;
|
|
50
50
|
isDuplicate: boolean;
|
|
51
51
|
direction: AnprDirection;
|
|
52
52
|
updatedAt: string;
|
|
53
|
+
edited?: boolean;
|
|
53
54
|
isPlate: boolean;
|
|
54
55
|
isPostprocessed: boolean;
|
|
55
56
|
vehicleType?: GateReportVehicleType;
|
|
56
57
|
contextVehicleType?: GateReportVehicleType;
|
|
57
|
-
anprVehicleType
|
|
58
|
-
anprVehicleModel
|
|
59
|
-
anprVehicleMake
|
|
60
|
-
anprVehicleColor
|
|
61
|
-
anprVehicleSpeed
|
|
58
|
+
anprVehicleType?: string;
|
|
59
|
+
anprVehicleModel?: string;
|
|
60
|
+
anprVehicleMake?: string;
|
|
61
|
+
anprVehicleColor?: string;
|
|
62
|
+
anprVehicleSpeed?: number;
|
|
62
63
|
anprSnapshotLink: string;
|
|
63
64
|
contextSnapshotLink: string;
|
|
65
|
+
mainSnapshotLink: string;
|
|
64
66
|
contextCamera: string;
|
|
65
67
|
votedVehicleType: GateReportVehicleType | string;
|
|
68
|
+
roiId?: number;
|
|
66
69
|
metadata_: {
|
|
67
70
|
evercamMetadata?: {
|
|
68
71
|
anpr?: {
|
package/dist/types/axios.d.ts
CHANGED
package/dist/types/camera.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid,
|
|
2
|
-
export type CameraExid =
|
|
1
|
+
import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, Schedule } from "@/types";
|
|
2
|
+
export type CameraExid = string;
|
|
3
3
|
export type CamerasByExid = EntityByExid<Camera>;
|
|
4
4
|
export type Cartesian3 = {
|
|
5
5
|
x: number;
|
|
@@ -228,6 +228,7 @@ export type CameraUpdateRequestPayload = {
|
|
|
228
228
|
heading?: number;
|
|
229
229
|
fovAngle?: number;
|
|
230
230
|
fovRadius?: number;
|
|
231
|
+
featureFlags: CameraFeatureFlag[];
|
|
231
232
|
};
|
|
232
233
|
export type CamerasResponsePayload = {
|
|
233
234
|
cameras?: Camera[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DateType } from "@/types/time";
|
|
2
|
+
export type CreateCoolifyAppRequestPayload = {
|
|
3
|
+
cameraExid: string;
|
|
4
|
+
startDate: DateType;
|
|
5
|
+
modelVersion: string;
|
|
6
|
+
snapshotRequestTimeout: string | number;
|
|
7
|
+
serverUuid: string;
|
|
8
|
+
branch: string;
|
|
9
|
+
};
|
|
10
|
+
export type SaveCoolifyAppRequestPayload = {
|
|
11
|
+
contextCameraExid: string;
|
|
12
|
+
coolifyServiceId: string;
|
|
13
|
+
modelVersion: string;
|
|
14
|
+
startTime: string;
|
|
15
|
+
branchName: string;
|
|
16
|
+
snapshotRequestTimeout: string | number;
|
|
17
|
+
serverUuid: string;
|
|
18
|
+
};
|
package/dist/types/copilot.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { AnalyticsEventPageId, CameraExid, CameraFeatureFlag, CameraStatus, ProjectExid, ProjectFeatureFlag, ProjectStatus } from "@/types";
|
|
2
2
|
export declare enum CopilotMessageAuthor {
|
|
3
3
|
Copilot = "copilot",
|
|
4
|
-
User = "user"
|
|
4
|
+
User = "user",
|
|
5
|
+
System = "system"
|
|
5
6
|
}
|
|
6
7
|
export declare enum CopilotMessageType {
|
|
7
8
|
Text = "text",
|
|
@@ -33,12 +34,13 @@ export declare enum CopilotMissingFieldsLabels {
|
|
|
33
34
|
FromDate = "Start date",
|
|
34
35
|
ToDate = "End date"
|
|
35
36
|
}
|
|
36
|
-
export type CopilotMissingField = {
|
|
37
|
+
export type CopilotMissingField<T = any> = {
|
|
37
38
|
name: string;
|
|
38
39
|
label: string;
|
|
39
40
|
value: any;
|
|
40
41
|
type: string;
|
|
41
42
|
toolId: string;
|
|
43
|
+
error?: T;
|
|
42
44
|
};
|
|
43
45
|
export type CopilotMissingFields = Record<number, CopilotMissingField[]>;
|
|
44
46
|
export type UserConversations = CopilotConversation & {
|
|
@@ -57,7 +59,8 @@ export declare enum CopilotSocketEvent {
|
|
|
57
59
|
ChatError = "chat:chatError",
|
|
58
60
|
MissingFields = "chat:missingFields",
|
|
59
61
|
MissingFieldsCompleted = "chat:missingFields:completed",
|
|
60
|
-
SystemToolCallResponse = "system:toolCall:response"
|
|
62
|
+
SystemToolCallResponse = "system:toolCall:response",
|
|
63
|
+
ChangeProvider = "chat:changeProvider"
|
|
61
64
|
}
|
|
62
65
|
export type CopilotConversation = {
|
|
63
66
|
id: number;
|
|
@@ -118,9 +121,6 @@ export type CopilotProject = {
|
|
|
118
121
|
featureFlags?: ProjectFeatureFlag[];
|
|
119
122
|
cameras?: CopilotCamera[];
|
|
120
123
|
};
|
|
121
|
-
export type CopilotConversationContext = {
|
|
122
|
-
availableProjects: CopilotProject[];
|
|
123
|
-
};
|
|
124
124
|
export type CopilotMessageContext = {
|
|
125
125
|
pageId?: AnalyticsEventPageId;
|
|
126
126
|
selectedCamera?: CopilotCamera;
|
|
@@ -129,8 +129,8 @@ export type CopilotMessageContext = {
|
|
|
129
129
|
export type CopilotMessageStep = {
|
|
130
130
|
args: string[];
|
|
131
131
|
depth: number;
|
|
132
|
-
id
|
|
133
|
-
message_id
|
|
132
|
+
id?: number;
|
|
133
|
+
message_id?: number;
|
|
134
134
|
step: CopilotStepId;
|
|
135
135
|
timestamp: string;
|
|
136
136
|
};
|
|
@@ -154,3 +154,4 @@ export declare enum CopilotMissingFieldType {
|
|
|
154
154
|
String = "string",
|
|
155
155
|
Number = "number"
|
|
156
156
|
}
|
|
157
|
+
export type CopilotCompletedFields = Record<string, unknown>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export * from "./routeParams";
|
|
|
28
28
|
export * from "./router";
|
|
29
29
|
export * from "./shares";
|
|
30
30
|
export * from "./sim";
|
|
31
|
-
export * from "./
|
|
31
|
+
export * from "./planner";
|
|
32
32
|
export * from "./storageServers";
|
|
33
33
|
export * from "./streaming";
|
|
34
34
|
export * from "./time";
|
|
@@ -50,3 +50,5 @@ export * from "./siteAnalytics";
|
|
|
50
50
|
export * from "./widget";
|
|
51
51
|
export * from "./countries";
|
|
52
52
|
export * from "./automation";
|
|
53
|
+
export * from "./coolify";
|
|
54
|
+
export * from "./tag";
|
package/dist/types/kit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule } from "@/types";
|
|
1
|
+
import { CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule, Tag } from "@/types";
|
|
2
2
|
export type Kit = {
|
|
3
3
|
alarms: KitAlarm[];
|
|
4
4
|
countryCode: CountryCode;
|
|
@@ -16,6 +16,7 @@ export type Kit = {
|
|
|
16
16
|
serial: string;
|
|
17
17
|
status: KitStatus;
|
|
18
18
|
powerSchedule: Schedule;
|
|
19
|
+
tags: Tag[];
|
|
19
20
|
};
|
|
20
21
|
export declare enum KitStatus {
|
|
21
22
|
New = "new",
|
|
@@ -29,7 +30,9 @@ export declare enum KitAlarm {
|
|
|
29
30
|
NotRecordingCamera = "not_recording_camera",
|
|
30
31
|
OfflineScheduled = "offline_scheduled",
|
|
31
32
|
FullSD = "full_sd",
|
|
32
|
-
FullStorage = "full_storage"
|
|
33
|
+
FullStorage = "full_storage",
|
|
34
|
+
HddUnmounted = "hdd_unmounted",
|
|
35
|
+
NoHdd = "no_hdd"
|
|
33
36
|
}
|
|
34
37
|
export declare enum KitMetricId {
|
|
35
38
|
BatteryStats = "battery",
|
|
@@ -238,6 +241,7 @@ export type KitQueryParams = PaginationParams & {
|
|
|
238
241
|
name: string;
|
|
239
242
|
serial: string;
|
|
240
243
|
status: KitStatus;
|
|
244
|
+
tagId: number | number[];
|
|
241
245
|
};
|
|
242
246
|
export type AdminKit = {
|
|
243
247
|
id: number;
|
package/dist/types/project.d.ts
CHANGED
|
@@ -51,8 +51,7 @@ export declare enum ProjectFeatureFlag {
|
|
|
51
51
|
MediaHubSharing = "archives_sharing",
|
|
52
52
|
GateReportAnprBased = "anpr_sourced",
|
|
53
53
|
NoLicensePlate = "no_license_plate",
|
|
54
|
-
DefaultToProjectApp = "default_to_project_app"
|
|
55
|
-
Go = "evercam_go"
|
|
54
|
+
DefaultToProjectApp = "default_to_project_app"
|
|
56
55
|
}
|
|
57
56
|
export type ProjectBatteryReading = {
|
|
58
57
|
exid: number;
|
package/dist/types/shared.d.ts
CHANGED
|
@@ -103,16 +103,7 @@ export declare enum InfoPage {
|
|
|
103
103
|
DroneView = "drone-view",
|
|
104
104
|
Compare = "compare",
|
|
105
105
|
Timeline = "timeline",
|
|
106
|
-
WeatherReport = "weather-report"
|
|
107
|
-
EvercamGo = "evercam-go"
|
|
108
|
-
}
|
|
109
|
-
export declare enum EvercamGoFeatures {
|
|
110
|
-
XRay = "xray",
|
|
111
|
-
MagicWand = "magic-wand",
|
|
112
|
-
Weather = "weather",
|
|
113
|
-
DownloadSnapshot = "download-snapshot",
|
|
114
|
-
LocalRecordings = "local-recordings",
|
|
115
|
-
MarkupTool = "markup-tool"
|
|
106
|
+
WeatherReport = "weather-report"
|
|
116
107
|
}
|
|
117
108
|
export declare enum DownloadTypes {
|
|
118
109
|
Jpeg = "jpeg",
|
package/dist/types/shares.d.ts
CHANGED
|
@@ -110,8 +110,7 @@ export type ExNvrSystemStatus = {
|
|
|
110
110
|
};
|
|
111
111
|
export declare enum ExNvrMetricId {
|
|
112
112
|
CpuLoad = "cpu_load",
|
|
113
|
-
RamUsage = "ram_usage"
|
|
114
|
-
SwapUsage = "swap_usage"
|
|
113
|
+
RamUsage = "ram_usage"
|
|
115
114
|
}
|
|
116
115
|
export type ExNvrMetric = KitMetricData & {
|
|
117
116
|
metricId: ExNvrMetricId;
|
|
@@ -15,6 +15,13 @@ export type TimelapseVideoOptions = {
|
|
|
15
15
|
removeTimestamp: boolean;
|
|
16
16
|
smoothTransition: boolean;
|
|
17
17
|
evercamWatermark: boolean;
|
|
18
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
19
|
+
};
|
|
20
|
+
export type TimestampPositionCoordinates = {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
w: number;
|
|
24
|
+
h: number;
|
|
18
25
|
};
|
|
19
26
|
export type TimelapseLogoOptions = {
|
|
20
27
|
id: number;
|
package/dist/types/widget.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import type { DateTime } from "@evercam/api/types/time";
|
|
|
2
2
|
import { PaginationParams } from "@/types";
|
|
3
3
|
import { VideoWallPresetItemConfig } from "@evercam/api/types/videoWall";
|
|
4
4
|
export declare enum DelayUnit {
|
|
5
|
-
Minute = "
|
|
6
|
-
Hour = "
|
|
7
|
-
Day = "
|
|
5
|
+
Minute = "Minutes",
|
|
6
|
+
Hour = "Hours",
|
|
7
|
+
Day = "Days"
|
|
8
8
|
}
|
|
9
9
|
export declare enum CommonWidgetSettingsKeys {
|
|
10
10
|
Width = "width",
|
|
@@ -88,7 +88,7 @@ export declare enum WidgetType {
|
|
|
88
88
|
BimCompare = "BIM Compare",
|
|
89
89
|
VideoWall = "Video Wall"
|
|
90
90
|
}
|
|
91
|
-
export declare const
|
|
91
|
+
export declare const WidgetTypesByResource: {
|
|
92
92
|
camera: WidgetType[];
|
|
93
93
|
project: WidgetType[];
|
|
94
94
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evercam/api",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-8aba8698d",
|
|
4
4
|
"description": "Evercam API client",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"publish-api": "cd ../.. && yarn publish-api"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^22.
|
|
39
|
+
"@types/node": "^22.15.29",
|
|
40
40
|
"vite": "latest",
|
|
41
41
|
"vite-plugin-commonjs": "^0.10.3",
|
|
42
|
-
"vite-plugin-dts": "^4.5.
|
|
42
|
+
"vite-plugin-dts": "^4.5.4"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"axios": "^1.7.7",
|
|
File without changes
|