@evercam/api 1.0.0-a255a7bd4 → 1.0.0-a355ed87e

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 (118) hide show
  1. package/README.md +3 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +27 -0
  3. package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +104 -62
  4. package/dist/api/api/aiApi.d.ts +127 -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/api/client/swr/Swr.d.ts +14 -0
  8. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  9. package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +97 -96
  10. package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +7 -3
  11. package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
  12. package/dist/api/api/index.d.ts +13 -0
  13. package/dist/api/api/ingestApi.d.ts +146 -0
  14. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
  15. package/dist/api/api/videoWallApi.d.ts +9 -0
  16. package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +2 -2
  17. package/dist/api/index.d.ts +3 -13
  18. package/dist/api/types/360.d.ts +276 -0
  19. package/dist/api/types/aconex.d.ts +143 -0
  20. package/dist/api/types/admin.d.ts +51 -0
  21. package/dist/{types → api/types}/analytics.d.ts +130 -14
  22. package/dist/{types → api/types}/anpr.d.ts +26 -13
  23. package/dist/{types → api/types}/auditLogs.d.ts +1 -1
  24. package/dist/api/types/authz.d.ts +60 -0
  25. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  26. package/dist/api/types/automation.d.ts +95 -0
  27. package/dist/{types → api/types}/axios.d.ts +22 -1
  28. package/dist/{types → api/types}/bim.d.ts +11 -5
  29. package/dist/{types → api/types}/camera.d.ts +97 -72
  30. package/dist/{types → api/types}/comments.d.ts +21 -9
  31. package/dist/api/types/company.d.ts +115 -0
  32. package/dist/{types → api/types}/compare.d.ts +20 -5
  33. package/dist/{types → api/types}/connector.d.ts +2 -5
  34. package/dist/api/types/coolify.d.ts +36 -0
  35. package/dist/{types → api/types}/copilot.d.ts +1 -1
  36. package/dist/{types → api/types}/countries.d.ts +0 -7
  37. package/dist/{types → api/types}/credentials.d.ts +1 -0
  38. package/dist/{types → api/types}/detections.d.ts +18 -24
  39. package/dist/{types → api/types}/errors.d.ts +1 -0
  40. package/dist/{types → api/types}/gateReport.d.ts +46 -150
  41. package/dist/{types → api/types}/hdd.d.ts +26 -1
  42. package/dist/{types → api/types}/index.d.ts +7 -0
  43. package/dist/api/types/ingest.d.ts +134 -0
  44. package/dist/{types → api/types}/kit.d.ts +64 -9
  45. package/dist/{types → api/types}/media.d.ts +1 -1
  46. package/dist/api/types/notification.d.ts +57 -0
  47. package/dist/{types → api/types}/planner.d.ts +4 -1
  48. package/dist/api/types/posthog.d.ts +33 -0
  49. package/dist/{types → api/types}/procore.d.ts +26 -16
  50. package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
  51. package/dist/api/types/project.d.ts +242 -0
  52. package/dist/{types → api/types}/recording.d.ts +3 -4
  53. package/dist/api/types/recycleBin.d.ts +14 -0
  54. package/dist/{types → api/types}/routeParams.d.ts +4 -2
  55. package/dist/{types → api/types}/router.d.ts +20 -1
  56. package/dist/{types → api/types}/shared.d.ts +12 -10
  57. package/dist/api/types/shares.d.ts +58 -0
  58. package/dist/{types → api/types}/sim.d.ts +6 -6
  59. package/dist/api/types/siteAnalytics.d.ts +287 -0
  60. package/dist/api/types/smartSeach.d.ts +5 -0
  61. package/dist/{types → api/types}/snapshots.d.ts +10 -1
  62. package/dist/api/types/sso.d.ts +55 -0
  63. package/dist/api/types/storyblok.d.ts +40 -0
  64. package/dist/{types → api/types}/streaming.d.ts +4 -5
  65. package/dist/{types → api/types}/tag.d.ts +1 -1
  66. package/dist/api/types/time.d.ts +7 -0
  67. package/dist/{types → api/types}/timelapse.d.ts +3 -4
  68. package/dist/{types → api/types}/user.d.ts +105 -35
  69. package/dist/api/types/videoWall.d.ts +66 -0
  70. package/dist/api/types/weather.d.ts +153 -0
  71. package/dist/{types → api/types}/widget.d.ts +96 -16
  72. package/dist/{types → api/types}/xweather.d.ts +4 -4
  73. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  74. package/dist/index.d.ts +2 -3
  75. package/dist/index.js +1340 -896
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.umd.cjs +1 -1
  78. package/dist/index.umd.cjs.map +1 -1
  79. package/dist/shared/api/index.d.ts +3 -0
  80. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  81. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  82. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  83. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  84. package/dist/shared/types/components.d.ts +270 -0
  85. package/dist/shared/types/imagePlayer.d.ts +34 -0
  86. package/dist/shared/types/index.d.ts +4 -0
  87. package/dist/shared/types/timeline.d.ts +10 -0
  88. package/package.json +5 -4
  89. package/dist/api/3dFirebaseApi.d.ts +0 -10
  90. package/dist/api/aiApi.d.ts +0 -138
  91. package/dist/api/authzApi.d.ts +0 -21
  92. package/dist/api/ingestApi.d.ts +0 -67
  93. package/dist/api/videoWallApi.d.ts +0 -9
  94. package/dist/types/360.d.ts +0 -87
  95. package/dist/types/aconex.d.ts +0 -45
  96. package/dist/types/automation.d.ts +0 -6
  97. package/dist/types/company.d.ts +0 -46
  98. package/dist/types/coolify.d.ts +0 -18
  99. package/dist/types/ingest.d.ts +0 -43
  100. package/dist/types/notification.d.ts +0 -27
  101. package/dist/types/project.d.ts +0 -128
  102. package/dist/types/shares.d.ts +0 -196
  103. package/dist/types/siteAnalytics.d.ts +0 -141
  104. package/dist/types/time.d.ts +0 -21
  105. package/dist/types/videoWall.d.ts +0 -33
  106. package/dist/types/weather.d.ts +0 -87
  107. /package/dist/api/{client → api/client}/customErrors.d.ts +0 -0
  108. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  109. /package/dist/api/{client → api/client}/interceptors.d.ts +0 -0
  110. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  111. /package/dist/{types → api/types}/drone.d.ts +0 -0
  112. /package/dist/{types → api/types}/map.d.ts +0 -0
  113. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  114. /package/dist/{types → api/types}/roi.d.ts +0 -0
  115. /package/dist/{types → api/types}/storageServers.d.ts +0 -0
  116. /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
  117. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  118. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -1,141 +0,0 @@
1
- import type { BBox, BoundingBox, DateType, Schedule, CameraExid, DateTime, DetectionModel, PaginationParams, PpeLabel, ProjectExid } from "@evercam/api/types";
2
- import { DetectionLabel, DownloadTypes } from "@evercam/api/types";
3
- export declare enum SiteAnalyticsMode {
4
- Detections = "detections",
5
- Segments = "segments"
6
- }
7
- export type SmartSearchOptionData = {
8
- id?: string;
9
- type: SmartSearchQueryComponentType;
10
- value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData | SmartSearchCondition | SmartSearchDateRange | string;
11
- };
12
- export type SmartSearchQueryPart = SmartSearchOptionData | [SmartSearchQueryPart] | SmartSearchQueryPart[];
13
- export declare enum SmartSearchQueryComponentType {
14
- Condition = "condition",
15
- Object = "object",
16
- Area = "in_area",
17
- Time = "time",
18
- Operator = "operator",
19
- Camera = "camera",
20
- DateRange = "date_range"
21
- }
22
- export type SmartSearchDateRange = {
23
- start: DateType;
24
- end: DateType;
25
- };
26
- export type SmartSearchQueryComponentData = {
27
- id: string;
28
- type: SmartSearchQueryComponentType;
29
- parts: [SmartSearchQueryPart];
30
- };
31
- export declare enum SmartSearchCondition {
32
- InArea = "in_area",
33
- Intersects = "intersects",
34
- Time = "time"
35
- }
36
- export type SmartSearchConditionData = {
37
- condition: SmartSearchCondition;
38
- value: string | BoundingBox | DetectionLabel | Date;
39
- };
40
- export type SmartSearchQueryCondition = {
41
- type: SmartSearchQueryConditionTypes;
42
- target: SmartSearchQueryTargets;
43
- operator?: SmartSearchQueryOperators;
44
- attribute?: string;
45
- value: string | number | string[];
46
- reference?: {
47
- target: SmartSearchQueryTargets;
48
- attribute: string;
49
- value: string | number | string[];
50
- };
51
- polygon?: BBox;
52
- };
53
- export type SmartSearchQuery = {
54
- returnTargets: SmartSearchQueryTargets[];
55
- rulesLogic: SmartSearchOperatorType;
56
- rules: {
57
- logic: SmartSearchOperatorType;
58
- conditions: SmartSearchQueryCondition[];
59
- }[];
60
- returnType: SmartSearchQueryReturnType;
61
- };
62
- export declare enum SmartSearchQueryTargets {
63
- Tracking = "tracking",
64
- Segments = "segments"
65
- }
66
- export declare enum SmartSearchQueryReturnType {
67
- All = "all",
68
- FirstLastSeen = "first_last_seen"
69
- }
70
- export declare enum SmartSearchOperatorType {
71
- And = "AND",
72
- Or = "OR"
73
- }
74
- export declare enum SmartSearchQueryOperators {
75
- Near = "near",
76
- Far = "far",
77
- Intersects = "intersects",
78
- DoesNotIntersect = "does_not_intersect",
79
- Inside = "inside",
80
- Outside = "outside",
81
- DistanceBelow = "distance_below",
82
- DistanceAbove = "distance_above",
83
- Area = "in_area",
84
- Equal = "="
85
- }
86
- export declare enum SmartSearchQueryConditionTypes {
87
- Selection = "selection",
88
- Spatial = "spatial",
89
- Area = "area",
90
- Iou = "iou",
91
- Near = "near",
92
- Far = "far"
93
- }
94
- export type SmartSearchOptionValue = DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData;
95
- export type SmartSearchQueryParams = {
96
- cameraExid: string;
97
- name: string;
98
- description: string;
99
- query: {
100
- req: SmartSearchQuery;
101
- timeSchedule?: Schedule | undefined;
102
- };
103
- fromDate?: DateType;
104
- toDate?: DateType;
105
- author: string;
106
- createdAt: DateType;
107
- params?: Record<string, unknown>;
108
- };
109
- export type SavedQuery = {
110
- description: string;
111
- id: number;
112
- query: {
113
- req: SmartSearchQuery;
114
- timeSchedule?: Schedule | undefined;
115
- };
116
- params: Record<string, string>;
117
- components?: Omit<SmartSearchOptionData, "id">[];
118
- toDate?: DateType;
119
- createdAt?: DateType;
120
- cameraExid: string;
121
- name: string;
122
- fromDate?: DateType;
123
- author?: string;
124
- };
125
- export type DetectionsRequestParams = {
126
- projectExid: ProjectExid;
127
- cameraExids: CameraExid[];
128
- fromDate?: DateTime;
129
- toDate?: DateTime;
130
- labels?: Array<DetectionLabel | PpeLabel>;
131
- modelId?: DetectionModel;
132
- trackId?: number;
133
- thresholds?: string[];
134
- excludeLabels?: Array<DetectionLabel | PpeLabel>;
135
- confidenceThreshold?: number;
136
- } & PaginationParams;
137
- export type DetectionsExportRequestParams = DetectionsRequestParams & {
138
- fileType: DownloadTypes;
139
- columns?: string[];
140
- directDownload?: boolean;
141
- };
@@ -1,21 +0,0 @@
1
- import { Moment } from "moment-timezone";
2
- export type DateType = Date | string | number;
3
- export type ExtendedDateType = Moment | DateType;
4
- type YYYY = number;
5
- type MM = number;
6
- type DD = number;
7
- type HH = number;
8
- type mm = number;
9
- type ss = number;
10
- type microS = number;
11
- export type Date_YYYY = `${YYYY}` | string;
12
- export type Date_YYYY_MM = `${YYYY}-${MM}` | string;
13
- export type Date_YYYY_MM_DD = `${YYYY}-${MM}-${DD}` | string;
14
- export type Time_HH_mm_ss = `${HH}:${mm}:${ss}` | string;
15
- export type Date_HH = `${HH}` | string;
16
- export type DateTime = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}` | string;
17
- export type DateTime_tz = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}${"+" | "-"}${HH}:${mm}` | string;
18
- export type DateTime_Z = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}Z` | string;
19
- export type DateTime_Z_micros = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}.${microS}Z` | string;
20
- export type DateTimeSpaceSeparated = `${Date_YYYY_MM_DD} ${Time_HH_mm_ss}` | string;
21
- 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,87 +0,0 @@
1
- import { Date_YYYY_MM_DD, DateType } from "@/types/time";
2
- export type HistoryWeatherRequestPayload = {
3
- day: string;
4
- provider: WeatherProvider;
5
- };
6
- export type CurrentWeatherRequestPayload = {
7
- provider: WeatherProvider;
8
- };
9
- export type WeatherResponsePayload = Array<{
10
- hour?: number;
11
- temp?: number;
12
- clouds?: number;
13
- feelsLike?: number;
14
- pressure?: number;
15
- humidity?: number;
16
- windSpeed?: number;
17
- windDegree?: number;
18
- weather?: [WeatherSummary];
19
- rain?: HourlyReading;
20
- snow?: HourlyReading;
21
- }>;
22
- export type WeatherSummary = {
23
- id?: number;
24
- main?: string;
25
- description?: string;
26
- icon?: string;
27
- };
28
- export type HourlyReading = {
29
- "1h"?: number;
30
- "3h"?: number;
31
- };
32
- export declare enum WeatherProvider {
33
- WeatherStack = "weather_stack",
34
- XWeather = "xweather"
35
- }
36
- export type Weatherstatus = {
37
- description: string;
38
- hour: DateType;
39
- id: number;
40
- temp: number;
41
- };
42
- export type WeatherDataResponse = {
43
- minFeelsLike: number;
44
- id: number;
45
- sunhour: number;
46
- maxFeelsLike: number;
47
- minWindchill: number;
48
- minPressure: number;
49
- minWindDegree: number;
50
- minDewpoint: number;
51
- maxClouds: number;
52
- maxWindgust: number;
53
- minWindSpeed: number;
54
- astro: {
55
- moonIllumination: number;
56
- moonPhase: string;
57
- moonrise: string;
58
- moonset: string;
59
- sunrise: string;
60
- sunset: string;
61
- };
62
- insertedAt: string;
63
- maxDewpoint: number;
64
- maxTemp: number;
65
- minClouds: number;
66
- weather: Weatherstatus[];
67
- minHeatindex: number;
68
- minPrecip: number;
69
- maxWindDegree: number;
70
- maxUvIndex: number;
71
- minHumidity: number;
72
- maxWindSpeed: number;
73
- minWindgust: number;
74
- updatedAt: DateType;
75
- maxPrecip: number;
76
- uvIndex: number;
77
- maxHeatindex: number;
78
- minTemp: number;
79
- date: Date_YYYY_MM_DD;
80
- totalsnow: number;
81
- maxPressure: number;
82
- maxWindchill: number;
83
- maxHumidity: number;
84
- avgtemp: number;
85
- projectId: number;
86
- minUvIndex: number;
87
- };
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
File without changes