@evercam/api 1.0.0-233a53dac → 1.0.0-24463ad20

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 (121) hide show
  1. package/dist/api/api/3dFirebaseApi.d.ts +176 -0
  2. package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +87 -83
  3. package/dist/api/api/aiApi.d.ts +128 -0
  4. package/dist/api/api/authzApi.d.ts +37 -0
  5. package/dist/api/{client → api/client}/axios.d.ts +2 -1
  6. package/dist/api/{client → api/client}/swr/Swr.d.ts +1 -1
  7. package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +121 -95
  8. package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +4 -3
  9. package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
  10. package/dist/api/api/index.d.ts +13 -0
  11. package/dist/api/api/ingestApi.d.ts +148 -0
  12. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
  13. package/dist/api/api/videoWallApi.d.ts +9 -0
  14. package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +2 -2
  15. package/dist/api/index.d.ts +3 -13
  16. package/dist/api/types/360.d.ts +281 -0
  17. package/dist/{types → api/types}/aconex.d.ts +9 -9
  18. package/dist/api/types/admin.d.ts +51 -0
  19. package/dist/{types → api/types}/analytics.d.ts +152 -51
  20. package/dist/{types → api/types}/anpr.d.ts +17 -2
  21. package/dist/{types → api/types}/auditLogs.d.ts +19 -1
  22. package/dist/api/types/authz.d.ts +61 -0
  23. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  24. package/dist/{types → api/types}/automation.d.ts +37 -3
  25. package/dist/{types → api/types}/axios.d.ts +11 -5
  26. package/dist/{types → api/types}/bim.d.ts +28 -5
  27. package/dist/{types → api/types}/camera.d.ts +98 -99
  28. package/dist/{types → api/types}/comments.d.ts +8 -10
  29. package/dist/{types → api/types}/company.d.ts +42 -1
  30. package/dist/{types → api/types}/compare.d.ts +20 -5
  31. package/dist/{types → api/types}/connector.d.ts +3 -5
  32. package/dist/{types → api/types}/coolify.d.ts +18 -2
  33. package/dist/{types → api/types}/copilot.d.ts +11 -6
  34. package/dist/{types → api/types}/credentials.d.ts +1 -0
  35. package/dist/{types → api/types}/detections.d.ts +20 -17
  36. package/dist/api/types/drone.d.ts +107 -0
  37. package/dist/{types → api/types}/gateReport.d.ts +49 -158
  38. package/dist/{types → api/types}/hdd.d.ts +26 -1
  39. package/dist/{types → api/types}/index.d.ts +8 -1
  40. package/dist/api/types/ingest.d.ts +147 -0
  41. package/dist/{types → api/types}/kit.d.ts +33 -5
  42. package/dist/api/types/map.d.ts +16 -0
  43. package/dist/{types → api/types}/media.d.ts +2 -1
  44. package/dist/api/types/notification.d.ts +57 -0
  45. package/dist/api/types/oauth.d.ts +62 -0
  46. package/dist/api/types/planner.d.ts +132 -0
  47. package/dist/api/types/posthog.d.ts +33 -0
  48. package/dist/{types → api/types}/procore.d.ts +13 -6
  49. package/dist/{types → api/types}/progressPhoto.d.ts +6 -2
  50. package/dist/api/types/project.d.ts +247 -0
  51. package/dist/{types → api/types}/recording.d.ts +6 -4
  52. package/dist/{types → api/types}/recycleBin.d.ts +1 -1
  53. package/dist/api/types/ring.d.ts +53 -0
  54. package/dist/{types → api/types}/roi.d.ts +2 -2
  55. package/dist/{types → api/types}/router.d.ts +20 -1
  56. package/dist/{types → api/types}/shared.d.ts +30 -4
  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/siteView.d.ts +74 -0
  61. package/dist/api/types/smartSeach.d.ts +5 -0
  62. package/dist/{types → api/types}/snapshots.d.ts +44 -4
  63. package/dist/api/types/storageProvider.d.ts +19 -0
  64. package/dist/api/types/storyblok.d.ts +40 -0
  65. package/dist/{types → api/types}/streaming.d.ts +3 -3
  66. package/dist/{types → api/types}/tag.d.ts +1 -1
  67. package/dist/api/types/time.d.ts +7 -0
  68. package/dist/{types → api/types}/timelapse.d.ts +8 -5
  69. package/dist/{types → api/types}/user.d.ts +105 -31
  70. package/dist/api/types/videoWall.d.ts +66 -0
  71. package/dist/{types → api/types}/weather.d.ts +75 -11
  72. package/dist/{types → api/types}/widget.d.ts +72 -11
  73. package/dist/{types → api/types}/xweather.d.ts +4 -4
  74. package/dist/index.d.ts +2 -3
  75. package/dist/index.js +1577 -986
  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 +322 -0
  85. package/dist/shared/types/imagePlayer.d.ts +41 -0
  86. package/dist/shared/types/index.d.ts +5 -0
  87. package/dist/shared/types/rbac.d.ts +67 -0
  88. package/dist/shared/types/timeline.d.ts +10 -0
  89. package/package.json +2 -2
  90. package/dist/api/3dFirebaseApi.d.ts +0 -21
  91. package/dist/api/aiApi.d.ts +0 -155
  92. package/dist/api/authzApi.d.ts +0 -21
  93. package/dist/api/ingestApi.d.ts +0 -95
  94. package/dist/api/videoWallApi.d.ts +0 -9
  95. package/dist/types/360.d.ts +0 -141
  96. package/dist/types/drone.d.ts +0 -17
  97. package/dist/types/ingest.d.ts +0 -51
  98. package/dist/types/map.d.ts +0 -4
  99. package/dist/types/notification.d.ts +0 -27
  100. package/dist/types/planner.d.ts +0 -32
  101. package/dist/types/posthog.d.ts +0 -18
  102. package/dist/types/project.d.ts +0 -132
  103. package/dist/types/shares.d.ts +0 -196
  104. package/dist/types/siteAnalytics.d.ts +0 -163
  105. package/dist/types/storageServers.d.ts +0 -4
  106. package/dist/types/time.d.ts +0 -25
  107. package/dist/types/videoWall.d.ts +0 -33
  108. /package/dist/api/{client → api/client}/customErrors.d.ts +0 -0
  109. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  110. /package/dist/api/{client → api/client}/interceptors.d.ts +0 -0
  111. /package/dist/api/{client → api/client}/swr/SwrStore.d.ts +0 -0
  112. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  113. /package/dist/{types → api/types}/countries.d.ts +0 -0
  114. /package/dist/{types → api/types}/errors.d.ts +0 -0
  115. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  116. /package/dist/{types → api/types}/routeParams.d.ts +0 -0
  117. /package/dist/{types → api/types}/sso.d.ts +0 -0
  118. /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
  119. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  120. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
  121. /package/dist/{utils.d.ts → api/utils.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
- import type { DateTime } from "@evercam/api/types/time";
2
- import { PaginationParams } from "@/types";
3
- import { VideoWallPresetItemConfig } from "@evercam/api/types/videoWall";
1
+ import { CameraExid, PaginationParams } from "@evercam/api/types";
2
+ import type { JsonObject } from "@evercam/api/types";
3
+ import { VideoWallPresetGridConfig } from "@evercam/api/types/videoWall";
4
4
  export declare enum DelayUnit {
5
5
  Minute = "Minutes",
6
6
  Hour = "Hours",
@@ -78,6 +78,8 @@ export type RecordingsWidgetSettings = CommonWidgetSettings & {
78
78
  hasDelay: boolean;
79
79
  delay: number;
80
80
  delayUnit: DelayUnit;
81
+ hasRange: boolean;
82
+ dateRange: [string, string] | null;
81
83
  };
82
84
  export type LiveViewWidgetSettings = CommonWidgetSettings & {
83
85
  fullscreen: boolean;
@@ -90,16 +92,24 @@ export type BimCompareWidgetSettings = CommonWidgetSettings & {
90
92
  timeline: boolean;
91
93
  darkMode: boolean;
92
94
  };
93
- export type VideoWallWidgetSettings = CommonWidgetSettings & {
94
- preset: VideoWallPresetItemConfig;
95
+ export type VideoWallWidgetSettingsObject = CommonWidgetSettings & {
96
+ preset: VideoWallPresetGridConfig;
95
97
  refreshRate: number;
98
+ allowCellFullscreen: boolean;
99
+ allowFitContent: boolean;
100
+ allowForceAspectRatio: boolean;
101
+ allowFullscreen: boolean;
102
+ cameras: CameraExid[];
103
+ description: string;
104
+ global: boolean;
105
+ visibility: string;
96
106
  };
97
107
  export type ThreeSixtyWidgetSettings = CommonWidgetSettings & {
98
108
  dateId: string;
99
109
  floorId: string;
100
110
  markerId: string;
101
111
  };
102
- export type WidgetSettings = RecordingsWidgetSettings | LiveViewWidgetSettings | BimCompareWidgetSettings | VideoWallWidgetSettings | ThreeSixtyWidgetSettings;
112
+ export type WidgetSettings = RecordingsWidgetSettings | LiveViewWidgetSettings | BimCompareWidgetSettings | VideoWallWidgetSettingsObject | ThreeSixtyWidgetSettings;
103
113
  export declare enum WidgetType {
104
114
  LiveWidget = "Live View",
105
115
  Recording = "Recordings",
@@ -146,8 +156,8 @@ export type Widget = {
146
156
  firstname: string;
147
157
  lastname: string;
148
158
  };
149
- insertedAt: DateTime;
150
- updatedAt: DateTime;
159
+ insertedAt: string;
160
+ updatedAt: string;
151
161
  };
152
162
  export type WidgetFull = {
153
163
  id: number;
@@ -172,11 +182,62 @@ export type WidgetFull = {
172
182
  email: string;
173
183
  };
174
184
  settings: WidgetSettings;
175
- sessionSettings: any;
185
+ sessionSettings: JsonObject | null;
176
186
  allowedOrigin: string;
177
187
  domainRestricted: boolean;
178
- insertedAt: DateTime;
179
- updatedAt: DateTime;
188
+ insertedAt: string;
189
+ updatedAt: string;
190
+ };
191
+ export type WidgetSessionSettingsPayload = {
192
+ sessionSettings: JsonObject;
193
+ };
194
+ export type AdminWidgetResourceCamera = {
195
+ id: number;
196
+ exid: string;
197
+ name: string;
198
+ };
199
+ export type AdminWidgetResourceProject = {
200
+ id: number;
201
+ exid: string;
202
+ name: string;
203
+ featureFlags: string[];
204
+ };
205
+ export type AdminWidgetResourcePreset = {
206
+ id: number;
207
+ name: string;
208
+ exid: string;
209
+ config: JsonObject;
210
+ };
211
+ export type AdminWidgetResources = {
212
+ camera?: AdminWidgetResourceCamera | null;
213
+ project?: AdminWidgetResourceProject | null;
214
+ preset?: AdminWidgetResourcePreset | null;
215
+ };
216
+ export type AdminWidgetUser = {
217
+ id: number;
218
+ email: string;
219
+ firstname: string;
220
+ lastname: string;
221
+ };
222
+ export type AdminWidget = {
223
+ id: number;
224
+ active: boolean;
225
+ public: boolean;
226
+ user: AdminWidgetUser;
227
+ description: string | null;
228
+ insertedAt: string;
229
+ updatedAt: string;
230
+ settings: WidgetSettings;
231
+ ressources: AdminWidgetResources;
232
+ seenAt?: string;
233
+ showDashboardLink?: boolean;
234
+ domainRestricted: boolean;
235
+ widgetType: WidgetType;
236
+ allowedOrigin: string | null;
237
+ };
238
+ export type AdminWidgetFull = AdminWidget & {
239
+ widgetKey: string;
240
+ widgetId: string;
180
241
  };
181
242
  export type WidgetPayload = {
182
243
  ressources: {
@@ -4,9 +4,9 @@ export type XWeatherCreatePayload = {
4
4
  clientSecret: string;
5
5
  };
6
6
  export type XWeatherResponse = {
7
- id: number;
8
- provider: string;
7
+ id?: number;
8
+ provider: "xweather";
9
9
  config: object;
10
- insertedAt: string;
11
- updatedAt: string;
10
+ insertedAt?: string;
11
+ updatedAt?: string;
12
12
  };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- export * from "./api";
2
- export * from "./types";
3
- export * from "./utils";
1
+ export * from './api/index'
2
+ export {}