@evercam/api 1.0.0-fa346266d → 1.0.0-fbf4f4d51

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 (123) hide show
  1. package/README.md +5 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +27 -0
  3. package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +120 -78
  4. package/dist/api/api/aiApi.d.ts +124 -0
  5. package/dist/api/api/authzApi.d.ts +38 -0
  6. package/dist/api/{client → api/client}/axios.d.ts +2 -1
  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/api/evercamApi.d.ts +295 -0
  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 +145 -0
  15. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
  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 +276 -0
  20. package/dist/api/types/aconex.d.ts +143 -0
  21. package/dist/api/types/admin.d.ts +51 -0
  22. package/dist/{types → api/types}/analytics.d.ts +171 -73
  23. package/dist/{types → api/types}/anpr.d.ts +24 -19
  24. package/dist/{types → api/types}/auditLogs.d.ts +1 -1
  25. package/dist/api/types/authz.d.ts +60 -0
  26. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  27. package/dist/api/types/automation.d.ts +86 -0
  28. package/dist/{types → api/types}/axios.d.ts +21 -2
  29. package/dist/{types → api/types}/bim.d.ts +11 -5
  30. package/dist/{types → api/types}/camera.d.ts +105 -124
  31. package/dist/api/types/comments.d.ts +55 -0
  32. package/dist/api/types/company.d.ts +115 -0
  33. package/dist/{types → api/types}/compare.d.ts +20 -5
  34. package/dist/{types → api/types}/connector.d.ts +8 -6
  35. package/dist/api/types/coolify.d.ts +20 -0
  36. package/dist/{types → api/types}/copilot.d.ts +10 -9
  37. package/dist/{types → api/types}/countries.d.ts +0 -7
  38. package/dist/{types → api/types}/credentials.d.ts +1 -0
  39. package/dist/api/types/detections.d.ts +121 -0
  40. package/dist/{types → api/types}/errors.d.ts +13 -0
  41. package/dist/{types → api/types}/gateReport.d.ts +32 -128
  42. package/dist/{types → api/types}/hdd.d.ts +26 -1
  43. package/dist/{types → api/types}/index.d.ts +11 -2
  44. package/dist/api/types/ingest.d.ts +132 -0
  45. package/dist/{types → api/types}/kit.d.ts +93 -7
  46. package/dist/{types → api/types}/media.d.ts +1 -1
  47. package/dist/api/types/notification.d.ts +57 -0
  48. package/dist/{types/sitePlanner.d.ts → api/types/planner.d.ts} +11 -2
  49. package/dist/api/types/posthog.d.ts +33 -0
  50. package/dist/api/types/procore.d.ts +229 -0
  51. package/dist/{types → api/types}/progressPhoto.d.ts +10 -23
  52. package/dist/{types → api/types}/project.d.ts +113 -14
  53. package/dist/{types → api/types}/recording.d.ts +3 -3
  54. package/dist/api/types/recycleBin.d.ts +14 -0
  55. package/dist/{types → api/types}/roi.d.ts +2 -1
  56. package/dist/{types → api/types}/routeParams.d.ts +4 -2
  57. package/dist/{types → api/types}/router.d.ts +20 -1
  58. package/dist/{types → api/types}/shared.d.ts +13 -20
  59. package/dist/api/types/shares.d.ts +58 -0
  60. package/dist/{types → api/types}/sim.d.ts +6 -6
  61. package/dist/api/types/siteAnalytics.d.ts +297 -0
  62. package/dist/{types → api/types}/snapshots.d.ts +10 -1
  63. package/dist/api/types/sso.d.ts +55 -0
  64. package/dist/api/types/storyblok.d.ts +40 -0
  65. package/dist/api/types/streaming.d.ts +97 -0
  66. package/dist/api/types/systemCheck.d.ts +11 -0
  67. package/dist/api/types/tag.d.ts +12 -0
  68. package/dist/api/types/time.d.ts +7 -0
  69. package/dist/{types → api/types}/timelapse.d.ts +18 -4
  70. package/dist/{types → api/types}/user.d.ts +105 -35
  71. package/dist/api/types/videoWall.d.ts +66 -0
  72. package/dist/api/types/weather.d.ts +153 -0
  73. package/dist/{types → api/types}/widget.d.ts +100 -20
  74. package/dist/api/types/xweather.d.ts +12 -0
  75. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  76. package/dist/index.d.ts +2 -3
  77. package/dist/index.js +1558 -948
  78. package/dist/index.js.map +1 -1
  79. package/dist/index.umd.cjs +1 -1
  80. package/dist/index.umd.cjs.map +1 -1
  81. package/dist/shared/api/index.d.ts +3 -0
  82. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  83. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  84. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  85. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  86. package/dist/shared/types/components.d.ts +270 -0
  87. package/dist/shared/types/imagePlayer.d.ts +34 -0
  88. package/dist/shared/types/index.d.ts +4 -0
  89. package/dist/shared/types/timeline.d.ts +10 -0
  90. package/package.json +6 -5
  91. package/dist/api/3dFirebaseApi.d.ts +0 -9
  92. package/dist/api/aiApi.d.ts +0 -86
  93. package/dist/api/authzApi.d.ts +0 -21
  94. package/dist/api/evercamApi.d.ts +0 -266
  95. package/dist/api/evercamLabsApi.d.ts +0 -47
  96. package/dist/api/ingestApi.d.ts +0 -65
  97. package/dist/api/videoWallApi.d.ts +0 -9
  98. package/dist/api/weatherApi.d.ts +0 -25
  99. package/dist/types/360.d.ts +0 -83
  100. package/dist/types/aconex.d.ts +0 -45
  101. package/dist/types/automation.d.ts +0 -6
  102. package/dist/types/comments.d.ts +0 -36
  103. package/dist/types/company.d.ts +0 -46
  104. package/dist/types/detections.d.ts +0 -73
  105. package/dist/types/devices.d.ts +0 -228
  106. package/dist/types/ingest.d.ts +0 -43
  107. package/dist/types/notification.d.ts +0 -27
  108. package/dist/types/procore.d.ts +0 -76
  109. package/dist/types/shares.d.ts +0 -192
  110. package/dist/types/siteAnalytics.d.ts +0 -85
  111. package/dist/types/streaming.d.ts +0 -119
  112. package/dist/types/time.d.ts +0 -19
  113. package/dist/types/videoWall.d.ts +0 -33
  114. package/dist/types/weather.d.ts +0 -83
  115. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  116. /package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +0 -0
  117. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  118. /package/dist/{types → api/types}/drone.d.ts +0 -0
  119. /package/dist/{types → api/types}/map.d.ts +0 -0
  120. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  121. /package/dist/{types → api/types}/storageServers.d.ts +0 -0
  122. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  123. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -1,85 +0,0 @@
1
- import type { BBox, BoundingBox, DetectionLabel } from "@evercam/api/types";
2
- export declare enum SiteAnalyticsMode {
3
- Cranes = "cranes",
4
- Detections = "detections",
5
- Segments = "segments"
6
- }
7
- export type SmartSearchOptionData = {
8
- id?: string;
9
- type: SmartSearchQueryComponentType;
10
- value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData;
11
- };
12
- export type SmartSearchQueryPart = SmartSearchOptionData | SmartSearchQueryPart[];
13
- export declare enum SmartSearchQueryComponentType {
14
- Condition = "condition",
15
- Object = "object",
16
- Area = "in_area",
17
- Time = "time",
18
- Operator = "operator"
19
- }
20
- export type SmartSearchQueryComponentData = {
21
- id: string;
22
- type: SmartSearchQueryComponentType;
23
- parts: SmartSearchQueryPart[];
24
- };
25
- export declare enum SmartSearchCondition {
26
- InArea = "in_area",
27
- Intersects = "intersects",
28
- Time = "time"
29
- }
30
- export type SmartSearchConditionData = {
31
- condition: SmartSearchCondition;
32
- value: string | BoundingBox | DetectionLabel | Date;
33
- };
34
- export type SmartSearchQuery = {
35
- returnTargets: SmartSearchQueryTargets[];
36
- rulesLogic: SmartSearchOperatorType;
37
- rules: {
38
- logic: SmartSearchOperatorType;
39
- conditions: {
40
- type: SmartSearchQueryConditionTypes;
41
- target: SmartSearchQueryTargets;
42
- operator?: SmartSearchQueryOperators;
43
- attribute?: string;
44
- value: string | number | string[];
45
- reference?: {
46
- target: SmartSearchQueryTargets;
47
- attribute: string;
48
- value: string | number | string[];
49
- };
50
- polygon?: BBox;
51
- }[];
52
- }[];
53
- returnType: SmartSearchQueryReturnType;
54
- };
55
- export declare enum SmartSearchQueryTargets {
56
- Tracking = "tracking",
57
- Segments = "segments"
58
- }
59
- export declare enum SmartSearchQueryReturnType {
60
- All = "all",
61
- FirstLastSeen = "first_last_seen"
62
- }
63
- export declare enum SmartSearchOperatorType {
64
- And = "AND",
65
- Or = "OR"
66
- }
67
- export declare enum SmartSearchQueryOperators {
68
- Near = "near",
69
- Far = "far",
70
- Intersects = "intersects",
71
- DoesNotIntersect = "does_not_intersect",
72
- Inside = "inside",
73
- Outside = "outside",
74
- DistanceBelow = "distance_below",
75
- DistanceAbove = "distance_above",
76
- Area = "in_area"
77
- }
78
- export declare enum SmartSearchQueryConditionTypes {
79
- Selection = "selection",
80
- Spatial = "spatial",
81
- Area = "area",
82
- Iou = "iou",
83
- Near = "near",
84
- Far = "far"
85
- }
@@ -1,119 +0,0 @@
1
- import { MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraTimeInfo, MilesightCameraVideoConfig, TaskStatus, DateTime_Z_micros, KitMetricData } from "@/types";
2
- export declare enum ExNvrHealthCheckTaskId {
3
- ExNvrLogin = "exNvrLogin",
4
- ExNvrConfigCheck = "exNvrGetDeviceInfo",
5
- ExNvrSystemStatus = "exNvrSystemStatus",
6
- ExNvrRecordings = "exNvrGetRecordings",
7
- CameraSystemConfigCheck = "getCameraSystemInfo",
8
- CameraTimeConfigCheck = "getCameraTimeInfo",
9
- CameraStreamsConfigCheck = "getCameraStreamsInfo",
10
- CameraNetworkConfigCheck = "getCameraNetworkInfo",
11
- CameraOsdConfigCheck = "getCameraOsdInfo",
12
- CameraStorageConfigCheck = "getCameraStorageInfo"
13
- }
14
- export type ExNvrHealthCheckTaskResult<T extends ExNvrHealthCheckTaskId> = T extends ExNvrHealthCheckTaskId.ExNvrLogin ? ExNvrLoginResponse : T extends ExNvrHealthCheckTaskId.ExNvrConfigCheck ? ExNvrDeviceConfig : T extends ExNvrHealthCheckTaskId.ExNvrSystemStatus ? ExNvrSystemStatus : T extends ExNvrHealthCheckTaskId.ExNvrRecordings ? ExNvrRecordingInterval[] : T extends ExNvrHealthCheckTaskId.CameraStreamsConfigCheck ? MilesightCameraVideoConfig : T extends ExNvrHealthCheckTaskId.CameraSystemConfigCheck ? MilesightCameraSystemSettings : T extends ExNvrHealthCheckTaskId.CameraTimeConfigCheck ? MilesightCameraTimeInfo : T extends ExNvrHealthCheckTaskId.CameraNetworkConfigCheck ? MilesightCameraNetworkConfiguration : T extends ExNvrHealthCheckTaskId.CameraOsdConfigCheck ? MilesightCameraOsdConfiguration : T extends ExNvrHealthCheckTaskId.CameraStorageConfigCheck ? MilesightCameraSdCardInfo : never;
15
- export type ExNvrHealthCheckTask<T extends ExNvrHealthCheckTaskId> = {
16
- id: T;
17
- status: TaskStatus;
18
- duration?: number;
19
- result?: ExNvrHealthCheckTaskResult<T>;
20
- error?: Error;
21
- };
22
- export type ExNvrLoginResponse = {
23
- accessToken: string;
24
- };
25
- export type ExNvrRecordingInterval = {
26
- active: boolean;
27
- startDate: DateTime_Z_micros;
28
- endDate: DateTime_Z_micros;
29
- };
30
- export type ExNvrDeviceConfig = {
31
- id: string;
32
- name: string;
33
- type: string;
34
- state: ExNvrDeviceState;
35
- credentials: {
36
- password: string;
37
- username: string;
38
- };
39
- mac: string;
40
- url: string;
41
- insertedAt: string;
42
- updatedAt: string;
43
- settings: {
44
- storageAddress: string;
45
- overrideOnFullDisk: boolean;
46
- overrideOnFullDiskThreshold: number;
47
- generateBif: boolean;
48
- };
49
- vendor: string;
50
- model: string;
51
- streamConfig: {
52
- filename: string | null;
53
- duration: string | null;
54
- temporaryPath: string | null;
55
- snapshotUri: string;
56
- streamUri: string;
57
- subStreamUri: string;
58
- };
59
- timezone: string;
60
- };
61
- export declare enum ExNvrFootageAvailableStatus {
62
- Active = "Active",
63
- NotActive = "Not Active",
64
- NotAvailable = "Not Available"
65
- }
66
- export declare enum ExNvrDeviceState {
67
- Recording = "recording",
68
- Failed = "failed",
69
- Stopped = "stopped"
70
- }
71
- export type ExNvrCpuStatus = {
72
- load: number[];
73
- numCores: number;
74
- };
75
- export type ExNvrMemoryStatus = {
76
- systemTotalMemory: number;
77
- freeMemory: number;
78
- totalMemory: number;
79
- bufferedMemory: number;
80
- cachedMemory: number;
81
- totalSwap: number;
82
- freeSwap: number;
83
- availableMemory: number;
84
- };
85
- export type ExNvrSolarChargerStatus = {
86
- v: number;
87
- vpv: number;
88
- ppv: number;
89
- i: number;
90
- il: number;
91
- load: string;
92
- relayState: string;
93
- offReason: number;
94
- h19: number;
95
- h20: number;
96
- h21: number;
97
- h22: number;
98
- h23: number;
99
- err: number;
100
- cs: string;
101
- fw: string;
102
- pid: string;
103
- serialNumber: string;
104
- };
105
- export type ExNvrSystemStatus = {
106
- version: string;
107
- cpu: ExNvrCpuStatus;
108
- memory: ExNvrMemoryStatus;
109
- solarCharger: ExNvrSolarChargerStatus;
110
- };
111
- export declare enum ExNvrMetricId {
112
- CpuLoad = "cpu_load",
113
- RamUsage = "ram_usage",
114
- SwapUsage = "swap_usage"
115
- }
116
- export type ExNvrMetric = KitMetricData & {
117
- metricId: ExNvrMetricId;
118
- value: number;
119
- };
@@ -1,19 +0,0 @@
1
- export type DateType = Date | string | number;
2
- type YYYY = number;
3
- type MM = number;
4
- type DD = number;
5
- type HH = number;
6
- type mm = number;
7
- type ss = number;
8
- type microS = number;
9
- export type Date_YYYY = `${YYYY}` | string;
10
- export type Date_YYYY_MM = `${YYYY}-${MM}` | string;
11
- export type Date_YYYY_MM_DD = `${YYYY}-${MM}-${DD}` | string;
12
- export type Time_HH_mm_ss = `${HH}:${mm}:${ss}` | string;
13
- export type Date_HH = `${HH}` | string;
14
- export type DateTime = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}` | string;
15
- export type DateTime_tz = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}${"+" | "-"}${HH}:${mm}` | string;
16
- export type DateTime_Z = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}Z` | string;
17
- export type DateTime_Z_micros = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}.${microS}Z` | string;
18
- export type DateTimeSpaceSeparated = `${Date_YYYY_MM_DD} ${Time_HH_mm_ss}` | string;
19
- export {};
@@ -1,33 +0,0 @@
1
- import { Camera, Media } from "@/types";
2
- export declare enum VideoWallItemType {
3
- LiveView = "live",
4
- Video = "video",
5
- Image = "image"
6
- }
7
- export type VideoWallItem<T extends Camera | Media> = {
8
- value: T;
9
- type: VideoWallItemType;
10
- };
11
- export type VideoWallPresetItemConfig = {
12
- camera: Camera;
13
- h: number;
14
- i: string | number;
15
- moved: boolean;
16
- w: number;
17
- x: number;
18
- y: number;
19
- };
20
- export type VideoWallPreset = {
21
- name?: string;
22
- configuration: Array<VideoWallPresetItemConfig>;
23
- };
24
- export type VideoWallPresetItem = {
25
- i: string | number;
26
- x: number;
27
- y: number;
28
- w: number;
29
- h: number;
30
- camera: Camera;
31
- weather?: Record<string, unknown>;
32
- media?: Media;
33
- };
@@ -1,83 +0,0 @@
1
- import { Date_YYYY_MM_DD, DateType } from "@/types/time";
2
- export type HistoryWeatherRequestPayload = {
3
- day: string;
4
- };
5
- export type WeatherResponsePayload = Array<{
6
- hour?: number;
7
- temp?: number;
8
- clouds?: number;
9
- feelsLike?: number;
10
- pressure?: number;
11
- humidity?: number;
12
- windSpeed?: number;
13
- windDegree?: number;
14
- weather?: [WeatherSummary];
15
- rain?: HourlyReading;
16
- snow?: HourlyReading;
17
- }>;
18
- export type WeatherSummary = {
19
- id?: number;
20
- main?: string;
21
- description?: string;
22
- icon?: string;
23
- };
24
- export type HourlyReading = {
25
- "1h"?: number;
26
- "3h"?: number;
27
- };
28
- export declare enum WeatherProvider {
29
- WeatherStack = "WeatherStack",
30
- AerisWeather = "AerisWeather"
31
- }
32
- export type Weatherstatus = {
33
- description: string;
34
- hour: DateType;
35
- id: number;
36
- temp: number;
37
- };
38
- export type WeatherDataResponse = {
39
- minFeelsLike: number;
40
- id: number;
41
- sunhour: number;
42
- maxFeelsLike: number;
43
- minWindchill: number;
44
- minPressure: number;
45
- minWindDegree: number;
46
- minDewpoint: number;
47
- maxClouds: number;
48
- maxWindgust: number;
49
- minWindSpeed: number;
50
- astro: {
51
- moonIllumination: number;
52
- moonPhase: string;
53
- moonrise: string;
54
- moonset: string;
55
- sunrise: string;
56
- sunset: string;
57
- };
58
- insertedAt: string;
59
- maxDewpoint: number;
60
- maxTemp: number;
61
- minClouds: number;
62
- weather: Weatherstatus[];
63
- minHeatindex: number;
64
- minPrecip: number;
65
- maxWindDegree: number;
66
- maxUvIndex: number;
67
- minHumidity: number;
68
- maxWindSpeed: number;
69
- minWindgust: number;
70
- updatedAt: DateType;
71
- maxPrecip: number;
72
- uvIndex: number;
73
- maxHeatindex: number;
74
- minTemp: number;
75
- date: Date_YYYY_MM_DD;
76
- totalsnow: number;
77
- maxPressure: number;
78
- maxWindchill: number;
79
- maxHumidity: number;
80
- avgtemp: number;
81
- projectId: number;
82
- minUvIndex: number;
83
- };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes