@evercam/api 1.0.0-d52e7306c → 1.0.0-d861e8d9e

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.
@@ -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;
@@ -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",
@@ -28,7 +21,6 @@ export declare enum AnalyticsEventPageId {
28
21
  ProjectSettingsOverview = "ProjectSettings-Overview",
29
22
  Settings = "Settings",
30
23
  SettingsAccount = "Settings-Account",
31
- SettingsActivities = "Settings-Activities",
32
24
  SettingsConnectors = "Settings-Connectors",
33
25
  MediaHub = "MediaHub",
34
26
  MediaOveriew = "MediaOveriew",
@@ -36,7 +28,7 @@ export declare enum AnalyticsEventPageId {
36
28
  Bim = "Bim",
37
29
  Drone = "Drone",
38
30
  ThreeSixty = "360",
39
- SitePlanner = "SitePlanner",
31
+ Planner = "Planner",
40
32
  Widgets = "Widgets",
41
33
  Company = "Company",
42
34
  EmbeddedLive = "EmbeddedLive",
@@ -47,8 +39,7 @@ export declare enum AnalyticsEventPageId {
47
39
  DroneInfo = "DroneInfo",
48
40
  ThreeSixtyInfo = "360Info",
49
41
  BimCompareInfo = "BimCompareInfo",
50
- WeatherReport = "WeatherReport",
51
- EvercamGoInfo = "EvercamGoInfo"
42
+ WeatherReport = "WeatherReport"
52
43
  }
53
44
  export declare enum AnalyticsEvent {
54
45
  PageView = "PageView",
@@ -64,14 +55,13 @@ export declare enum AnalyticsEvent {
64
55
  Comment = "Comment-Toggle",
65
56
  Compare = "Compare-Toggle",
66
57
  Copilot = "Copilot-Toggle",
58
+ DownloadMediaOpen = "DownloadMedia-Open",
67
59
  SettingsAccountUpdatePassword = "UpdatePassword",
68
60
  SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
69
61
  SettingsAccountRevokeSession = "RevokeSession",
70
62
  SettingsAccountCancelRevokeSession = "CancelRevokeSession",
71
63
  SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
72
64
  SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
73
- SettingsActivitiesFromDateSelect = "FromDateSelect",
74
- SettingsActivitiesToDateSelect = "ToDateSelect",
75
65
  SettingsConnectorsConnectToProcore = "ConnectToProcore",
76
66
  SettingsConnectorsConnectToAconex = "ConnectToAconex",
77
67
  SettingsConnectorsConnectToAutodesk = "ConnectToAutodesk",
@@ -335,29 +325,29 @@ export declare enum AnalyticsEvent {
335
325
  DroneVolumeToolClick = "VolumeTool-Click",
336
326
  DroneZoomIn = "ZoomIn",
337
327
  DroneZoomOut = "ZoomOut",
338
- SitePlannerAddCameraClick = "AddCameraClick",
339
- SitePlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
340
- SitePlannerAddSitePlanClick = "AddSitePlanClick",
341
- SitePlannerAttachSitePlanDrawing = "AttachSitePlanDrawing",
342
- SitePlannerCameraMarkerEditFOVAngle = "CameraMarker-EditFOVAngle",
343
- SitePlannerCameraMarkerEditHeading = "CameraMarker-EditHeading",
344
- SitePlannerCameraMarkerEditName = "CameraMarker-EditName",
345
- SitePlannerCameraMarkerEditRadius = "CameraMarker-EditRadius",
346
- SitePlannerCameraMarkerSelectColor = "CameraMarker-SelectColor",
347
- SitePlannerCameraMarkerToggleVisibility = "CameraMarker-ToggleVisibility",
348
- SitePlannerCameraMarkerToggleDeleteDialog = "CameraMarker-ToggleDeleteDialog",
349
- SitePlannerCancelUploadSitePlanDrawing = "CancelUploadSitePlanDrawing",
350
- SitePlannerChangeLocation = "ChangeLocation",
351
- SitePlannerOpen = "Open",
352
- SitePlannerResetView = "ResetView",
353
- SitePlannerSitePlansList = "SitePlansList",
354
- SitePlannerToggleCamerasLabel = "ToggleCamerasLabel",
355
- SitePlannerToggleFullscreen = "ToggleFullscreen",
356
- SitePlannerToggleMapStyle = "ToggleMapStyle",
357
- SitePlannerToggleSaveSessionDialog = "ToggleSaveSessionDialog",
358
- SitePlannerUploadSitePlanDrawing = "UploadSitePlanDrawing",
359
- SitePlannerZoomIn = "ZoomIn",
360
- SitePlannerZoomOut = "ZoomOut",
328
+ PlannerAddCameraClick = "AddCameraClick",
329
+ PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
330
+ PlannerAddSitePlanClick = "AddSitePlanClick",
331
+ PlannerAttachSitePlanDrawing = "AttachSitePlanDrawing",
332
+ PlannerCameraMarkerEditFOVAngle = "CameraMarker-EditFOVAngle",
333
+ PlannerCameraMarkerEditHeading = "CameraMarker-EditHeading",
334
+ PlannerCameraMarkerEditName = "CameraMarker-EditName",
335
+ PlannerCameraMarkerEditRadius = "CameraMarker-EditRadius",
336
+ PlannerCameraMarkerSelectColor = "CameraMarker-SelectColor",
337
+ PlannerCameraMarkerToggleVisibility = "CameraMarker-ToggleVisibility",
338
+ PlannerCameraMarkerToggleDeleteDialog = "CameraMarker-ToggleDeleteDialog",
339
+ PlannerCancelUploadSitePlanDrawing = "CancelUploadSitePlanDrawing",
340
+ PlannerChangeLocation = "ChangeLocation",
341
+ PlannerOpen = "Open",
342
+ PlannerResetView = "ResetView",
343
+ PlannerSitePlansList = "SitePlansList",
344
+ PlannerToggleCamerasLabel = "ToggleCamerasLabel",
345
+ PlannerToggleFullscreen = "ToggleFullscreen",
346
+ PlannerToggleMapStyle = "ToggleMapStyle",
347
+ PlannerToggleSaveSessionDialog = "ToggleSaveSessionDialog",
348
+ PlannerUploadSitePlanDrawing = "UploadSitePlanDrawing",
349
+ PlannerZoomIn = "ZoomIn",
350
+ PlannerZoomOut = "ZoomOut",
361
351
  MarkerClicked = "MarkerClicked",
362
352
  TimelapseToggleHelpDialog = "ToggleHelpDialog",
363
353
  TimelapseSelectCustomPeriod = "SelectCustomPeriod",
@@ -458,24 +448,3 @@ export declare enum AnalyticsEvent {
458
448
  HelpMenuClickUserManuaLink = "HelpMenu-ClickUserManuaLink",
459
449
  HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink"
460
450
  }
461
- export type ProjectPAStatsRequestPayload = {
462
- period: "day" | "week" | "month";
463
- startDate?: string;
464
- endDate?: string;
465
- };
466
- export type ProjectPAStatsResponsePayload = {
467
- period: DateType;
468
- name: string;
469
- count: number | string;
470
- };
471
- export type ActiveUsersStatsRequestPayload = {
472
- companyId: number;
473
- from: string;
474
- to: string;
475
- };
476
- export type ActiveUserStat = {
477
- date: string;
478
- dau: number;
479
- wau: number;
480
- mau: number;
481
- };
@@ -43,26 +43,29 @@ export declare enum AnprDirection {
43
43
  export type AnprEvent = {
44
44
  id: number;
45
45
  plateNumber: string;
46
- cameraex: CameraExid;
46
+ cameraExid: CameraExid;
47
47
  picName: string;
48
- captureTime: string;
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: string;
58
- anprVehicleModel: string;
59
- anprVehicleMake: string;
60
- anprVehicleColor: string;
61
- anprVehicleSpeed: number | null;
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?: {
@@ -4,7 +4,6 @@ export type TimedRequest<T> = Promise<AxiosResponse<T> & {
4
4
  error?: AxiosError;
5
5
  }>;
6
6
  export type AxiosEnvironment = {
7
- isStaging?: boolean;
8
7
  baseUrl?: string | null;
9
8
  stagingAiApiUrl?: string | null;
10
9
  aiApiUrl?: string | null;
@@ -1,5 +1,5 @@
1
- import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, Exid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, Schedule } from "@/types";
2
- export type CameraExid = Exid;
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;
@@ -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;
@@ -185,7 +186,8 @@ export declare enum CameraFeatureFlag {
185
186
  PTZ = "ptz",
186
187
  ObjectDetection = "object_detection",
187
188
  Segmentation = "segmentation",
188
- SegmentationAutoLabelling = "segmentation_auto_labelling"
189
+ SegmentationAutoLabelling = "segmentation_auto_labelling",
190
+ PpeMonitoring = "ppe_monitoring"
189
191
  }
190
192
  export type CameraLogsRequestPayload = {
191
193
  limit: number;
@@ -227,6 +229,8 @@ export type CameraUpdateRequestPayload = {
227
229
  heading?: number;
228
230
  fovAngle?: number;
229
231
  fovRadius?: number;
232
+ featureFlags: CameraFeatureFlag[];
233
+ isAccessRestricted?: boolean;
230
234
  };
231
235
  export type CamerasResponsePayload = {
232
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;
@@ -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
+ };
@@ -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: number;
133
- message_id: number;
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>;
@@ -1,4 +1,4 @@
1
- import { type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
1
+ import { type BoundingBox, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
2
2
  export type DetectionsFilters = {
3
3
  cameraExid: CameraExid;
4
4
  fromDate: string | Date;
@@ -32,9 +32,12 @@ export type SegmentsByLabel = Record<SegmentLabel, Segment[]>;
32
32
  export type SegmentPolygonCoords = number[][];
33
33
  export type Segment = {
34
34
  id: number;
35
- mask: SegmentPolygonCoords;
35
+ mask?: SegmentPolygonCoords;
36
36
  label: string;
37
37
  timestamp: string | Date;
38
+ cameraExid?: CameraExid;
39
+ bbox?: BoundingBox;
40
+ area?: number;
38
41
  };
39
42
  export type SegmentSimilarityResult = {
40
43
  distance: number;
@@ -56,7 +59,7 @@ export type CountsParams = {
56
59
  cameraExid: CameraExid;
57
60
  fromDate: string | Date;
58
61
  toDate: string | Date;
59
- precision: TimelinePrecision;
62
+ precision: keyof typeof TimelinePrecision;
60
63
  trackId: number;
61
64
  labels: DetectionLabel | DetectionLabel[];
62
65
  };
@@ -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 "./sitePlanner";
31
+ export * from "./planner";
32
32
  export * from "./storageServers";
33
33
  export * from "./streaming";
34
34
  export * from "./time";
@@ -50,3 +50,6 @@ 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";
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",
@@ -29,11 +30,16 @@ 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",
36
+ MissingRouterInfo = "missing_router_info",
37
+ PowerLost = "ac_failure",
38
+ UpsLowBattery = "low_battery"
33
39
  }
34
40
  export declare enum KitMetricId {
35
- BatteryStats = "battery",
36
- PanelPowerStats = "panel_power"
41
+ SolarCharger = "solar_charger",
42
+ PanelPower = "panel_power"
37
43
  }
38
44
  export declare enum KitMetricPeriod {
39
45
  Last15Minutes = "now-15m",
@@ -238,6 +244,7 @@ export type KitQueryParams = PaginationParams & {
238
244
  name: string;
239
245
  serial: string;
240
246
  status: KitStatus;
247
+ tagId: number | number[];
241
248
  };
242
249
  export type AdminKit = {
243
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;
@@ -51,8 +55,7 @@ export declare enum ProjectFeatureFlag {
51
55
  MediaHubSharing = "archives_sharing",
52
56
  GateReportAnprBased = "anpr_sourced",
53
57
  NoLicensePlate = "no_license_plate",
54
- DefaultToProjectApp = "default_to_project_app",
55
- Go = "evercam_go"
58
+ DefaultToProjectApp = "default_to_project_app"
56
59
  }
57
60
  export type ProjectBatteryReading = {
58
61
  exid: number;
@@ -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",
@@ -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,
@@ -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;
@@ -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
+ };
@@ -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;
@@ -36,6 +43,14 @@ export declare enum TimelapsePeriod {
36
43
  WholeProject = "whole_project",
37
44
  Custom = "custom"
38
45
  }
46
+ export declare enum TimelapseType {
47
+ Hour = "hour",
48
+ Day = "day",
49
+ Week = "week",
50
+ Month = "month",
51
+ Year = "year",
52
+ FullProject = "full_project"
53
+ }
39
54
  export type TimelapseFilterQueryParams = {
40
55
  from?: DateType;
41
56
  to?: DateType;
@@ -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;
@@ -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 = "minute",
6
- Hour = "hour",
7
- Day = "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 RessourceByType: {
91
+ export declare const WidgetTypesByResource: {
92
92
  camera: WidgetType[];
93
93
  project: WidgetType[];
94
94
  };
@@ -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-d52e7306c",
3
+ "version": "1.0.0-d861e8d9e",
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.14.0",
39
+ "@types/node": "^24.0.3",
40
40
  "vite": "latest",
41
41
  "vite-plugin-commonjs": "^0.10.3",
42
- "vite-plugin-dts": "^4.5.3"
42
+ "vite-plugin-dts": "^4.5.4"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "axios": "^1.7.7",
File without changes