@evercam/api 1.0.0-92eee7184 → 1.0.0-9633bd3c5

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.
@@ -1,10 +1,3 @@
1
- import { DateType } from "@/types";
2
- export type AnalyticsRequestPayload = {
3
- name: string;
4
- cameraExid: string;
5
- } & {
6
- [key: string]: any;
7
- };
8
1
  export declare enum AnalyticsEventPageId {
9
2
  Timeline = "Timeline",
10
3
  Copilot = "Copilot",
@@ -17,6 +10,7 @@ export declare enum AnalyticsEventPageId {
17
10
  Project = "Project",
18
11
  AllProjects = "AllProjects",
19
12
  Tutorials = "Tutorials",
13
+ SystemCheck = "SystemCheck",
20
14
  ProjectMapView = "ProjectMapView",
21
15
  AccountMapView = "AccountMapView",
22
16
  Automations = "Automations",
@@ -28,7 +22,6 @@ export declare enum AnalyticsEventPageId {
28
22
  ProjectSettingsOverview = "ProjectSettings-Overview",
29
23
  Settings = "Settings",
30
24
  SettingsAccount = "Settings-Account",
31
- SettingsActivities = "Settings-Activities",
32
25
  SettingsConnectors = "Settings-Connectors",
33
26
  MediaHub = "MediaHub",
34
27
  MediaOveriew = "MediaOveriew",
@@ -63,14 +56,13 @@ export declare enum AnalyticsEvent {
63
56
  Comment = "Comment-Toggle",
64
57
  Compare = "Compare-Toggle",
65
58
  Copilot = "Copilot-Toggle",
59
+ DownloadMediaOpen = "DownloadMedia-Open",
66
60
  SettingsAccountUpdatePassword = "UpdatePassword",
67
61
  SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
68
62
  SettingsAccountRevokeSession = "RevokeSession",
69
63
  SettingsAccountCancelRevokeSession = "CancelRevokeSession",
70
64
  SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
71
65
  SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
72
- SettingsActivitiesFromDateSelect = "FromDateSelect",
73
- SettingsActivitiesToDateSelect = "ToDateSelect",
74
66
  SettingsConnectorsConnectToProcore = "ConnectToProcore",
75
67
  SettingsConnectorsConnectToAconex = "ConnectToAconex",
76
68
  SettingsConnectorsConnectToAutodesk = "ConnectToAutodesk",
@@ -455,26 +447,6 @@ export declare enum AnalyticsEvent {
455
447
  HelpMenuClickTutorialsLink = "HelpMenu-ClickTutorialsLink",
456
448
  HelpMenuClickWhatsNewLink = "HelpMenu-ClickWhatsNewLink",
457
449
  HelpMenuClickUserManuaLink = "HelpMenu-ClickUserManuaLink",
458
- HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink"
450
+ HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink",
451
+ HelpMenuClickSystemCheckLink = "HelpMenu-ClickSystemCheckLink"
459
452
  }
460
- export type ProjectPAStatsRequestPayload = {
461
- period: "day" | "week" | "month";
462
- startDate?: string;
463
- endDate?: string;
464
- };
465
- export type ProjectPAStatsResponsePayload = {
466
- period: DateType;
467
- name: string;
468
- count: number | string;
469
- };
470
- export type ActiveUsersStatsRequestPayload = {
471
- companyId: number;
472
- from: string;
473
- to: string;
474
- };
475
- export type ActiveUserStat = {
476
- date: string;
477
- dau: number;
478
- wau: number;
479
- mau: number;
480
- };
@@ -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;
@@ -28,6 +28,7 @@ export * from "./routeParams";
28
28
  export * from "./router";
29
29
  export * from "./shares";
30
30
  export * from "./sim";
31
+ export * from "./systemCheck";
31
32
  export * from "./planner";
32
33
  export * from "./storageServers";
33
34
  export * from "./streaming";
@@ -51,3 +52,5 @@ export * from "./widget";
51
52
  export * from "./countries";
52
53
  export * from "./automation";
53
54
  export * from "./coolify";
55
+ export * from "./tag";
56
+ 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,11 +32,14 @@ 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
- BatteryStats = "battery",
38
- PanelPowerStats = "panel_power"
41
+ SolarCharger = "solar_charger",
42
+ PanelPower = "panel_power"
39
43
  }
40
44
  export declare enum KitMetricPeriod {
41
45
  Last15Minutes = "now-15m",
@@ -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,11 @@
1
+ export declare enum PerformanceStatus {
2
+ Pending = "pending",
3
+ Done = "done"
4
+ }
5
+ export declare enum WebGLExtensions {
6
+ OESTextureFloat = "OES_texture_float",
7
+ EXTFloatBlend = "EXT_float_blend",
8
+ EXTTextureFilterAnisotropic = "EXT_texture_filter_anisotropic",
9
+ OESElementIndexUint = "OES_element_index_uint",
10
+ WEBGLDebugRendererInfo = "WEBGL_debug_renderer_info"
11
+ }
@@ -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-9633bd3c5",
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": "^24.0.7",
40
40
  "vite": "latest",
41
41
  "vite-plugin-commonjs": "^0.10.3",
42
42
  "vite-plugin-dts": "^4.5.4"