@evercam/api 1.0.0-92eee7184 → 1.0.0-a0da75d2b

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.
@@ -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",
@@ -63,14 +62,13 @@ export declare enum AnalyticsEvent {
63
62
  Comment = "Comment-Toggle",
64
63
  Compare = "Compare-Toggle",
65
64
  Copilot = "Copilot-Toggle",
65
+ DownloadMediaOpen = "DownloadMedia-Open",
66
66
  SettingsAccountUpdatePassword = "UpdatePassword",
67
67
  SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
68
68
  SettingsAccountRevokeSession = "RevokeSession",
69
69
  SettingsAccountCancelRevokeSession = "CancelRevokeSession",
70
70
  SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
71
71
  SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
72
- SettingsActivitiesFromDateSelect = "FromDateSelect",
73
- SettingsActivitiesToDateSelect = "ToDateSelect",
74
72
  SettingsConnectorsConnectToProcore = "ConnectToProcore",
75
73
  SettingsConnectorsConnectToAconex = "ConnectToAconex",
76
74
  SettingsConnectorsConnectToAutodesk = "ConnectToAutodesk",
@@ -61,6 +61,7 @@ export type AnprEvent = {
61
61
  anprVehicleColor?: string;
62
62
  anprVehicleSpeed?: number;
63
63
  anprSnapshotLink: string;
64
+ contextSnapshotLink: string;
64
65
  mainSnapshotLink: string;
65
66
  contextCamera: string;
66
67
  votedVehicleType: GateReportVehicleType | string;
@@ -82,6 +82,7 @@ export type Camera = {
82
82
  timezone: string;
83
83
  updatedAt: DateTime_Z_micros;
84
84
  vendorName: string;
85
+ isAccessRestricted?: boolean;
85
86
  };
86
87
  export type AdminCamera = {
87
88
  cameraHost: string;
@@ -229,6 +230,7 @@ export type CameraUpdateRequestPayload = {
229
230
  fovAngle?: number;
230
231
  fovRadius?: number;
231
232
  featureFlags: CameraFeatureFlag[];
233
+ isAccessRestricted?: boolean;
232
234
  };
233
235
  export type CamerasResponsePayload = {
234
236
  cameras?: Camera[];
@@ -7,7 +7,8 @@ export declare enum Connector {
7
7
  Procore = "procore",
8
8
  Autodesk = "autodesk",
9
9
  AutodeskViewer = "autodesk_viewer",
10
- VoyageControl = "voyage_control"
10
+ VoyageControl = "voyage_control",
11
+ XWeather = "xweather"
11
12
  }
12
13
  export type ConnectorResponsePayload = Array<{
13
14
  hostname: string;
@@ -51,3 +51,5 @@ export * from "./widget";
51
51
  export * from "./countries";
52
52
  export * from "./automation";
53
53
  export * from "./coolify";
54
+ export * from "./tag";
55
+ export * from "./xweather";
@@ -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",
@@ -31,7 +32,10 @@ export declare enum KitAlarm {
31
32
  FullSD = "full_sd",
32
33
  FullStorage = "full_storage",
33
34
  HddUnmounted = "hdd_unmounted",
34
- NoHdd = "no_hdd"
35
+ NoHdd = "no_hdd",
36
+ MissingRouterInfo = "missing_router_info",
37
+ PowerLost = "ac_failure",
38
+ UpsLowBattery = "low_battery"
35
39
  }
36
40
  export declare enum KitMetricId {
37
41
  BatteryStats = "battery",
@@ -240,6 +244,7 @@ export type KitQueryParams = PaginationParams & {
240
244
  name: string;
241
245
  serial: string;
242
246
  status: KitStatus;
247
+ tagId: number | number[];
243
248
  };
244
249
  export type AdminKit = {
245
250
  id: number;
@@ -15,6 +15,7 @@ export type Project = {
15
15
  owner?: {
16
16
  email?: string;
17
17
  };
18
+ camerasRestrictionType?: string;
18
19
  };
19
20
  export declare enum ProjectStatus {
20
21
  ToStart = "To Start",
@@ -31,6 +32,9 @@ export declare enum ProjectArchiveTier {
31
32
  export type ProjectResponsePayload = {
32
33
  data?: Project[];
33
34
  };
35
+ export type UpdateCameraRestrictionPayload = {
36
+ isAccessRestricted?: boolean;
37
+ };
34
38
  export type Logo = {
35
39
  name: string;
36
40
  url: string;
@@ -22,6 +22,7 @@ export type Share = {
22
22
  sharerId: number;
23
23
  sharerName: string;
24
24
  userId: number;
25
+ isUserAccessRestricted: boolean;
25
26
  };
26
27
  export type ShareRequestsResponsePayload = {
27
28
  shareRequests: ShareRequest[];
@@ -60,6 +61,10 @@ export type ShareProjectCamerasRequestPayload = {
60
61
  permission?: string;
61
62
  rights: string;
62
63
  };
64
+ export type UpdateUserRestrictionPayload = {
65
+ email: string[];
66
+ isUserAccessRestricted: boolean;
67
+ };
63
68
  export type ShareCreateResponsePayload = {
64
69
  shares: Share[];
65
70
  shareRequests: ShareRequest[];
@@ -92,7 +97,6 @@ export declare enum ShareType {
92
97
  Request = "request"
93
98
  }
94
99
  export declare enum ShareRequestStatus {
95
- All = "",
96
100
  Pending = -1,
97
101
  Cancelled = -2,
98
102
  Failed = -3,
@@ -0,0 +1,12 @@
1
+ import { Kit } from "@/types/kit";
2
+ export type Tag<T = string> = {
3
+ id?: number;
4
+ name: T;
5
+ description?: string;
6
+ createdAt?: string;
7
+ updatedAt?: string;
8
+ };
9
+ export type KitTag = {
10
+ kit: Kit;
11
+ tag: Tag;
12
+ };
@@ -1,6 +1,10 @@
1
1
  import { Date_YYYY_MM_DD, DateType } from "@/types/time";
2
2
  export type HistoryWeatherRequestPayload = {
3
3
  day: string;
4
+ provider: WeatherProvider;
5
+ };
6
+ export type CurrentWeatherRequestPayload = {
7
+ provider: WeatherProvider;
4
8
  };
5
9
  export type WeatherResponsePayload = Array<{
6
10
  hour?: number;
@@ -26,8 +30,8 @@ export type HourlyReading = {
26
30
  "3h"?: number;
27
31
  };
28
32
  export declare enum WeatherProvider {
29
- WeatherStack = "WeatherStack",
30
- AerisWeather = "AerisWeather"
33
+ WeatherStack = "weather_stack",
34
+ XWeather = "xweather"
31
35
  }
32
36
  export type Weatherstatus = {
33
37
  description: string;
@@ -0,0 +1,12 @@
1
+ export type XWeatherCreatePayload = {
2
+ stationId: string;
3
+ clientId: string;
4
+ clientSecret: string;
5
+ };
6
+ export type XWeatherResponse = {
7
+ id: number;
8
+ provider: string;
9
+ config: object;
10
+ insertedAt: string;
11
+ updatedAt: string;
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/api",
3
- "version": "1.0.0-92eee7184",
3
+ "version": "1.0.0-a0da75d2b",
4
4
  "description": "Evercam API client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,7 +36,7 @@
36
36
  "publish-api": "cd ../.. && yarn publish-api"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/node": "^22.15.19",
39
+ "@types/node": "^22.15.30",
40
40
  "vite": "latest",
41
41
  "vite-plugin-commonjs": "^0.10.3",
42
42
  "vite-plugin-dts": "^4.5.4"