@evercam/api 1.0.0-a405572ff → 1.0.0-a6868d86c

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 (112) hide show
  1. package/README.md +4 -1
  2. package/dist/api/api/3dFirebaseApi.d.ts +26 -0
  3. package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +118 -32
  4. package/dist/api/api/aiApi.d.ts +124 -0
  5. package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +7 -0
  6. package/dist/api/{client → api/client}/axios.d.ts +1 -0
  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/{evercamApi.d.ts → api/evercamApi.d.ts} +90 -35
  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 +96 -0
  15. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +5 -1
  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 +274 -0
  20. package/dist/api/types/aconex.d.ts +143 -0
  21. package/dist/{types → api/types}/analytics.d.ts +151 -71
  22. package/dist/{types → api/types}/anpr.d.ts +16 -17
  23. package/dist/api/types/authz.d.ts +22 -0
  24. package/dist/api/types/automation.d.ts +61 -0
  25. package/dist/{types → api/types}/axios.d.ts +16 -1
  26. package/dist/{types → api/types}/camera.d.ts +32 -57
  27. package/dist/api/types/comments.d.ts +59 -0
  28. package/dist/{types → api/types}/company.d.ts +29 -1
  29. package/dist/{types → api/types}/connector.d.ts +6 -1
  30. package/dist/api/types/coolify.d.ts +20 -0
  31. package/dist/{types → api/types}/copilot.d.ts +11 -9
  32. package/dist/{types → api/types}/countries.d.ts +0 -7
  33. package/dist/{types → api/types}/credentials.d.ts +1 -0
  34. package/dist/api/types/detections.d.ts +112 -0
  35. package/dist/{types → api/types}/errors.d.ts +13 -0
  36. package/dist/{types → api/types}/gateReport.d.ts +54 -102
  37. package/dist/api/types/hdd.d.ts +63 -0
  38. package/dist/{types → api/types}/index.d.ts +10 -2
  39. package/dist/{types → api/types}/ingest.d.ts +8 -0
  40. package/dist/{types → api/types}/kit.d.ts +115 -10
  41. package/dist/{types → api/types}/nvr.d.ts +2 -1
  42. package/dist/{types/sitePlanner.d.ts → api/types/planner.d.ts} +13 -1
  43. package/dist/api/types/posthog.d.ts +18 -0
  44. package/dist/api/types/procore.d.ts +222 -0
  45. package/dist/{types → api/types}/progressPhoto.d.ts +6 -22
  46. package/dist/{types → api/types}/project.d.ts +50 -3
  47. package/dist/{types → api/types}/recording.d.ts +2 -2
  48. package/dist/api/types/recycleBin.d.ts +14 -0
  49. package/dist/{types → api/types}/roi.d.ts +2 -1
  50. package/dist/{types → api/types}/routeParams.d.ts +4 -2
  51. package/dist/{types → api/types}/router.d.ts +19 -0
  52. package/dist/{types → api/types}/shared.d.ts +3 -17
  53. package/dist/{types → api/types}/shares.d.ts +5 -1
  54. package/dist/api/types/siteAnalytics.d.ts +247 -0
  55. package/dist/{types → api/types}/snapshots.d.ts +9 -0
  56. package/dist/api/types/sso.d.ts +55 -0
  57. package/dist/{types → api/types}/streaming.d.ts +4 -27
  58. package/dist/api/types/systemCheck.d.ts +11 -0
  59. package/dist/api/types/tag.d.ts +12 -0
  60. package/dist/{types → api/types}/time.d.ts +6 -0
  61. package/dist/{types → api/types}/timelapse.d.ts +15 -0
  62. package/dist/{types → api/types}/user.d.ts +5 -6
  63. package/dist/api/types/videoWall.d.ts +66 -0
  64. package/dist/{types → api/types}/weather.d.ts +8 -2
  65. package/dist/{types → api/types}/widget.d.ts +38 -11
  66. package/dist/api/types/xweather.d.ts +12 -0
  67. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  68. package/dist/index.d.ts +2 -3
  69. package/dist/index.js +1572 -860
  70. package/dist/index.js.map +1 -1
  71. package/dist/index.umd.cjs +1 -1
  72. package/dist/index.umd.cjs.map +1 -1
  73. package/dist/shared/api/index.d.ts +3 -0
  74. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  75. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  76. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  77. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  78. package/dist/shared/types/components.d.ts +199 -0
  79. package/dist/shared/types/imagePlayer.d.ts +34 -0
  80. package/dist/shared/types/index.d.ts +4 -0
  81. package/dist/shared/types/timeline.d.ts +9 -0
  82. package/package.json +10 -8
  83. package/dist/api/3dFirebaseApi.d.ts +0 -9
  84. package/dist/api/aiApi.d.ts +0 -73
  85. package/dist/api/evercamLabsApi.d.ts +0 -50
  86. package/dist/api/ingestApi.d.ts +0 -65
  87. package/dist/api/videoWallApi.d.ts +0 -9
  88. package/dist/api/weatherApi.d.ts +0 -25
  89. package/dist/types/360.d.ts +0 -83
  90. package/dist/types/aconex.d.ts +0 -45
  91. package/dist/types/automation.d.ts +0 -6
  92. package/dist/types/comments.d.ts +0 -36
  93. package/dist/types/detections.d.ts +0 -62
  94. package/dist/types/devices.d.ts +0 -228
  95. package/dist/types/procore.d.ts +0 -76
  96. package/dist/types/siteAnalytics.d.ts +0 -5
  97. package/dist/types/videoWall.d.ts +0 -33
  98. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  99. /package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +0 -0
  100. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  101. /package/dist/{types → api/types}/auditLogs.d.ts +0 -0
  102. /package/dist/{types → api/types}/autodesk.d.ts +0 -0
  103. /package/dist/{types → api/types}/bim.d.ts +0 -0
  104. /package/dist/{types → api/types}/compare.d.ts +0 -0
  105. /package/dist/{types → api/types}/drone.d.ts +0 -0
  106. /package/dist/{types → api/types}/map.d.ts +0 -0
  107. /package/dist/{types → api/types}/media.d.ts +0 -0
  108. /package/dist/{types → api/types}/notification.d.ts +0 -0
  109. /package/dist/{types → api/types}/sim.d.ts +0 -0
  110. /package/dist/{types → api/types}/storageServers.d.ts +0 -0
  111. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  112. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { AnprDirection, CameraExid, Date_HH, Date_YYYY, Date_YYYY_MM, Date_YYYY_MM_DD, DateTime, DateTimeSpaceSeparated, DateType, PaginatedItems, PaginationParams, ProjectExid, ProjectFeatureFlag, Timestamp } from "@/types";
1
+ import { AnprDirection, CameraExid, Date_HH, Date_YYYY, Date_YYYY_MM, Date_YYYY_MM_DD, DateTime, DateTimeSpaceSeparated, DateType, PaginatedItems, PaginationParams, ProjectExid, Timestamp } from "@/types";
2
2
  export declare enum GateReportDetectionType {
3
3
  Auto = "auto",
4
4
  Manual = "manual",
@@ -40,7 +40,59 @@ export declare enum DetectionLabel {
40
40
  TruckMixer = "truck-mixer",
41
41
  TruckMountedMobileCrane = "truck-mounted-mobile-crane",
42
42
  Unknown = "unknown",
43
- Worker = "worker"
43
+ Worker = "worker",
44
+ Rubble = "rubble",
45
+ Puddle = "puddle",
46
+ DirtGravelCementPile = "dirt_gravel_cement_pile",
47
+ DetachedExcavatorBucket = "detached_excavator_bucket",
48
+ IntermediateBulkContainer = "intermediate_bulk_container",
49
+ WoodenPallet = "wooden_pallet",
50
+ ShippingContainer = "shipping_container",
51
+ AirCompressor = "air_compressor",
52
+ DryMortarSilo = "dry_mortar_silo",
53
+ Fence = "fence",
54
+ Brick = "brick",
55
+ Barrel = "barrel",
56
+ Cardboard = "cardboard",
57
+ CardboardBox = "cardboard_box",
58
+ CementBag = "cement_bag",
59
+ ConcreteBlock = "concrete_block",
60
+ ConcretePipe = "concrete_pipe",
61
+ ConcreteSlab = "concrete_slab",
62
+ Door = "door",
63
+ PlasticWrap = "plastic_wrap",
64
+ ContainerOffice = "container_office",
65
+ ElectricalPole = "electrical_pole",
66
+ ElectricalBox = "electrical_box",
67
+ FireHydrant = "fire_hydrant",
68
+ FireExtinguisher = "fire-extinguisher",
69
+ HoseReel = "hose_reel",
70
+ Ladder = "ladder",
71
+ MetalBeam = "metal_beam",
72
+ MetalPipe = "metal_pipe",
73
+ Pallet = "pallet",
74
+ Person = "person",
75
+ Pillar = "pillar",
76
+ PlasticBin = "plastic_bin",
77
+ PlasticBucket = "plastic_bucket",
78
+ PlasticPipe = "plastic_pipe",
79
+ PublicToilet = "public_toilet",
80
+ Sign = "sign",
81
+ SiteToolbox = "site_toolbox",
82
+ StreetSink = "street_sink",
83
+ TrafficBarrier = "traffic_barrier",
84
+ TrafficCone = "traffic_cone",
85
+ Wall = "wall",
86
+ WasteContainer = "waste_container",
87
+ WaterStorageTank = "water_storage_tank",
88
+ Wheelbarrow = "wheelbarrow",
89
+ Window = "window",
90
+ WoodPlank = "wood_plank",
91
+ CableReel = "cable_reel",
92
+ AirConditioningSystem = "air_conditioning_system",
93
+ WoodenBox = "wooden_box",
94
+ PlasticBag = "plastic_bag",
95
+ MaterialStack = "material_stack"
44
96
  }
45
97
  export declare enum SegmentLabel {
46
98
  AirCompressor = "air_compressor",
@@ -165,24 +217,6 @@ export type EventCountResponsePayload = {
165
217
  months?: MonthlyEventCount[];
166
218
  years?: YearlyEventCount[];
167
219
  };
168
- export type ProcessedDaysRequestPayload = {
169
- apiId?: string;
170
- apiKey?: string;
171
- isPublic?: Boolean;
172
- };
173
- export type EventsRequestPayload = {
174
- apiId?: string;
175
- apiKey?: string;
176
- camerasExid?: CameraExid[];
177
- cameras?: string[];
178
- eventType?: GateReportEventType;
179
- fromDate?: DateTime;
180
- isPublic?: boolean;
181
- toDate?: DateTime;
182
- truckTypes?: GateReportVehicleType[];
183
- vehicleTypes?: string[];
184
- } & PaginationParams;
185
- export type EventsResponsePayload = PaginatedItems<GateReportEvent>;
186
220
  export declare enum GateReportDataSource {
187
221
  Anpr = "anpr",
188
222
  Events = "events"
@@ -262,52 +296,6 @@ export type GateReportCamera = {
262
296
  last_published_day: DateType;
263
297
  last_processed_day: DateType;
264
298
  };
265
- export type GateReportProject = {
266
- exid: string;
267
- name: string;
268
- status: string;
269
- featureFlags: ProjectFeatureFlag;
270
- cameras: GateReportCamera[];
271
- };
272
- export type AnalyticsParameters = {
273
- id: number;
274
- cameraex: string;
275
- processingType: string;
276
- startDate: DateTime;
277
- endDate: DateTime;
278
- skipWeekend: boolean;
279
- hourSiteOpening: number;
280
- hourSiteClosure: number;
281
- gateReportActive: boolean;
282
- countingActive: boolean;
283
- queueSystem: string;
284
- reprocess: boolean;
285
- framesToSkip: number;
286
- detection_model: string;
287
- detectionThreshold: number;
288
- printLogsFrame: number;
289
- crossingVectorAngleLimit: number;
290
- minTruckLife: number;
291
- insideMinTime: number;
292
- trackerMaxAge: number;
293
- trackerMinHit: number;
294
- snapshotUpload: boolean;
295
- snapshotPerSecond: number;
296
- detectionClasses: string;
297
- deepEventEndpointUrl: string;
298
- timestampCalculation: string;
299
- matchingEmbeddedDstCoeff: number;
300
- matchingTimeCoeff: number;
301
- matchingQueueOrderCoeff: number;
302
- rabbitmqServerUrl: string;
303
- rabbitmqEventsQueue: string;
304
- rabbitmqEventsExchange: string;
305
- rabbitmqCountingQueue: string;
306
- rabbitmqCountingExchange: string;
307
- dangerZones: boolean;
308
- workflows: boolean;
309
- linkedAnprCameras: Record<string, unknown>;
310
- };
311
299
  export type VerifiedDaysQueryParams = PaginationParams & {
312
300
  projectExid: ProjectExid;
313
301
  camerasExid: CameraExid[];
@@ -317,30 +305,6 @@ export type VerifiedDaysQueryParams = PaginationParams & {
317
305
  updatedAt: DateTime[];
318
306
  day: string;
319
307
  };
320
- export type EventUpdateRequestPayload = {
321
- cameraex: string;
322
- roiId: number;
323
- eventType: string;
324
- eventTime: "2024-12-13T14:25:58.066Z";
325
- truckType: string;
326
- isPublic: boolean;
327
- boundingBox: {
328
- additionalProp1: number;
329
- additionalProp2: number;
330
- additionalProp3: number;
331
- };
332
- valid: boolean;
333
- loadState: string;
334
- embeddingId: number;
335
- embedding: number[];
336
- similarityDst: number;
337
- detectionType: string;
338
- trackingId: number;
339
- deliveriesId: number;
340
- edited: boolean;
341
- isDeleted: boolean;
342
- modelVersion: string;
343
- };
344
308
  export type VerifyDayUpdateRequestPayload = {
345
309
  camerasExid: string[];
346
310
  projectExid: string;
@@ -353,18 +317,6 @@ export type ProcessedDaysQueryParams = {
353
317
  isPublic: boolean;
354
318
  eventType: GateReportEventType;
355
319
  };
356
- export type SecurityMeasurementQueryParams = {
357
- cameraex: string;
358
- timestamp: DateTime;
359
- prompt: string;
360
- snapshotUrl: string;
361
- };
362
- export type ObjectDetectionQueryParams = {
363
- cameraex: string;
364
- timestamp: DateTime;
365
- base64Img: string;
366
- snapshotUrl: string;
367
- };
368
320
  export type RoisQueryParams = {
369
321
  cameraExid: string;
370
322
  id: number;
@@ -0,0 +1,63 @@
1
+ import { PaginationParams } from "@/types";
2
+ export declare enum HddFormat {
3
+ ExFat = "ExFAT",
4
+ HikFs = "HikFS"
5
+ }
6
+ export declare enum HddType {
7
+ Magnetic35 = "3.5\" Magnetic",
8
+ Magnetic25 = "2.5\" Magnetic",
9
+ Ssd25 = "2.5\" SSD"
10
+ }
11
+ export declare enum HddState {
12
+ Blank = "Blank",
13
+ InUse = "In Use",
14
+ ColdStorage = "Cold Storage"
15
+ }
16
+ export declare enum WarehouseLocationIndex {
17
+ IEWarehouse = 1,
18
+ Deployed = 2,
19
+ CustomerStorage = 3,
20
+ USWarehouse = 4,
21
+ AUWarehouse = 5,
22
+ UKWarehouse = 6
23
+ }
24
+ export declare enum WarehouseLocation {
25
+ IEWarehouse = "IE Warehouse",
26
+ Deployed = "Deployed",
27
+ CustomerStorage = "Customer Storage",
28
+ USWarehouse = "US Warehouse",
29
+ AUWarehouse = "AU Warehouse",
30
+ UKWarehouse = "UK Warehouse"
31
+ }
32
+ export declare enum HddSize {
33
+ TwoTB = "2 TB",
34
+ FourTB = "4 TB",
35
+ FiveTB = "5 TB",
36
+ SixTB = "6 TB",
37
+ EightTB = "8 TB",
38
+ TenTB = "10 TB"
39
+ }
40
+ export type FootageCreateUpdatePayload = {
41
+ cameraId: string;
42
+ startDate: string;
43
+ endDate: string;
44
+ };
45
+ export type HDDCreateUpdatePayload = {
46
+ size: string;
47
+ type: string;
48
+ format: string;
49
+ locationId: string;
50
+ serialNumber: string;
51
+ hddStatus: string;
52
+ shelfBlock: string;
53
+ };
54
+ export type HDDsQueryParams = PaginationParams & {
55
+ id: number;
56
+ location: string;
57
+ serialNumber: string;
58
+ shelfBlock: string;
59
+ format: string;
60
+ size: string;
61
+ type: string;
62
+ hddStatus: string;
63
+ };
@@ -9,10 +9,10 @@ export * from "./camera";
9
9
  export * from "./compare";
10
10
  export * from "./copilot";
11
11
  export * from "./credentials";
12
- export * from "./devices";
13
12
  export * from "./drone";
14
13
  export * from "./errors";
15
14
  export * from "./gateReport";
15
+ export * from "./hdd";
16
16
  export * from "./ingest";
17
17
  export * from "./map";
18
18
  export * from "./connector";
@@ -27,7 +27,8 @@ export * from "./routeParams";
27
27
  export * from "./router";
28
28
  export * from "./shares";
29
29
  export * from "./sim";
30
- export * from "./sitePlanner";
30
+ export * from "./systemCheck";
31
+ export * from "./planner";
31
32
  export * from "./storageServers";
32
33
  export * from "./streaming";
33
34
  export * from "./time";
@@ -49,3 +50,10 @@ export * from "./siteAnalytics";
49
50
  export * from "./widget";
50
51
  export * from "./countries";
51
52
  export * from "./automation";
53
+ export * from "./sso";
54
+ export * from "./coolify";
55
+ export * from "./tag";
56
+ export * from "./xweather";
57
+ export * from "./posthog";
58
+ export * from "./recycleBin";
59
+ export * from "./authz";
@@ -9,6 +9,14 @@ export declare enum IngestProcessingStatus {
9
9
  InProgress = "inprogress",
10
10
  Pending = "pending"
11
11
  }
12
+ export declare enum MobileAssetsType {
13
+ Audio = "mobile_audios",
14
+ Photo = "mobile_photos"
15
+ }
16
+ export declare enum IngestVersions {
17
+ V1 = "v1",
18
+ V2 = "v2"
19
+ }
12
20
  export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
13
21
  projectId: string;
14
22
  consumed: string;
@@ -1,9 +1,10 @@
1
- import { CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule } from "@/types";
1
+ import { CameraExid, CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@/types";
2
2
  export type Kit = {
3
+ alarms: KitAlarm[];
3
4
  countryCode: CountryCode;
4
5
  countryId: CountryId;
5
6
  countryName: string;
6
- countryRegion: Region;
7
+ countryRegion: KitRegion;
7
8
  id?: number;
8
9
  jobId: number;
9
10
  name: string;
@@ -14,18 +15,49 @@ export type Kit = {
14
15
  router: Partial<Router>;
15
16
  serial: string;
16
17
  status: KitStatus;
18
+ powerSchedule: Schedule;
19
+ ups: boolean;
20
+ boxId: string;
21
+ tags: Tag[];
22
+ storages: KitStorage[];
23
+ createdAt: string;
17
24
  };
18
25
  export declare enum KitStatus {
19
26
  New = "new",
20
27
  Active = "active",
21
28
  Deployed = "deployed",
22
- OfflineScheduled = "offline_scheduled",
23
29
  Decommissioned = "decommissioned"
24
30
  }
31
+ export declare enum KitRegion {
32
+ APAC = "apac",
33
+ EMEA = "emea",
34
+ LATAM = "latam",
35
+ US = "na"
36
+ }
25
37
  export declare enum KitAlarm {
26
38
  NvrOffline = "nvr_offline",
39
+ OfflineScheduled = "offline_scheduled",
27
40
  UnknownCamera = "unknown_camera",
28
- NotRecordingCamera = "not_recording_camera"
41
+ NotRecordingCamera = "not_recording_camera",
42
+ FullSD = "full_sd",
43
+ FullStorage = "full_storage",
44
+ HddUnmounted = "hdd_unmounted",
45
+ NoHdd = "no_hdd",
46
+ MissingRouterInfo = "missing_router_info",
47
+ AcFailure = "ac_failure",
48
+ LowBattery = "low_battery"
49
+ }
50
+ export declare enum KitMetricId {
51
+ SolarCharger = "solar_charger",
52
+ PanelPower = "panel_power"
53
+ }
54
+ export declare enum KitMetricPeriod {
55
+ Last15Minutes = "now-15m",
56
+ Last1Hour = "now-1h",
57
+ Last24Hours = "now-24h",
58
+ Last7Days = "now-7d",
59
+ Last30Days = "now-30d",
60
+ Last90Days = "now-90d"
29
61
  }
30
62
  export declare enum GrafanaMetricId {
31
63
  SbcCpuLoad = "SbcCpuLoad",
@@ -73,7 +105,7 @@ export declare enum GrafanaMetricId {
73
105
  ExNvrMemoryUsage = "ExNvrMemoryUsage",
74
106
  ExNvrLogs = "ExNvrLogs"
75
107
  }
76
- export declare enum GrafanaChartType {
108
+ export declare enum KitChartType {
77
109
  Stat = "stat",
78
110
  Gauge = "gauge",
79
111
  Graph = "graph",
@@ -100,7 +132,7 @@ export type GrafanaPanel = {
100
132
  name: keyof GrafanaMetricId;
101
133
  title: string;
102
134
  description: string;
103
- type: GrafanaChartType;
135
+ type: KitChartType;
104
136
  datasource: GrafanaDataSource;
105
137
  targets: GrafanaTarget[];
106
138
  maxDataPoints?: number;
@@ -197,21 +229,32 @@ export type GrafanaFrame = {
197
229
  nanos?: Array<number[] | null>;
198
230
  };
199
231
  };
232
+ export type KitMetricData = {
233
+ type: KitChartType;
234
+ chartProps?: Record<string, unknown>;
235
+ };
200
236
  export type GrafanaQueryResult = {
201
237
  status: number;
202
238
  frames: GrafanaFrame[];
203
239
  };
204
- export type GrafanaMetricResponse = {
240
+ export type GrafanaMetricData = KitMetricData & {
205
241
  results: {
206
242
  [key: string]: GrafanaQueryResult;
207
243
  };
208
- type: GrafanaChartType;
209
244
  };
210
- export type GrafanaKitMetrics = Record<keyof typeof GrafanaMetricId, GrafanaMetricResponse>;
245
+ export type EvercamMetricData = KitMetricData & {
246
+ stats: EvercamStats[];
247
+ };
248
+ export type GrafanaKitMetrics = Record<keyof typeof GrafanaMetricId, GrafanaMetricData>;
249
+ export type EvercamStats = {
250
+ [k: string]: number | string;
251
+ timestamp: string;
252
+ };
211
253
  export type KitQueryParams = PaginationParams & {
212
254
  name: string;
213
255
  serial: string;
214
256
  status: KitStatus;
257
+ tagId: number | number[];
215
258
  };
216
259
  export type AdminKit = {
217
260
  id: number;
@@ -259,7 +302,7 @@ export type KitCreatePayload = {
259
302
  status: KitStatus;
260
303
  powerType: PowerType;
261
304
  config: {
262
- region: Region;
305
+ region: KitRegion;
263
306
  };
264
307
  };
265
308
  export type KitUpdatePayload = {
@@ -269,3 +312,65 @@ export type KitUpdatePayload = {
269
312
  kitStatus: KitStatus;
270
313
  type: string;
271
314
  };
315
+ export declare enum KitStorageTransport {
316
+ Sata = "sata",
317
+ Nvme = "nvme",
318
+ Usb = "usb"
319
+ }
320
+ export type KitStorageRequestPayload = {
321
+ kitId: number;
322
+ };
323
+ export type KitStorage = {
324
+ id: number;
325
+ serial: string;
326
+ status: string;
327
+ type: string;
328
+ metadata: {
329
+ formFactor: string;
330
+ };
331
+ model: string;
332
+ insertedAt: DateTime;
333
+ updatedAt: DateTime;
334
+ vendor: string;
335
+ kitId: number;
336
+ capacity: number;
337
+ freeSpace: number;
338
+ tran: KitStorageTransport;
339
+ };
340
+ export type KitFootageRequestPayload = {
341
+ cameraId: CameraExid;
342
+ storageId: number;
343
+ };
344
+ export type KitFootage = {
345
+ id: number;
346
+ startDate: string;
347
+ endDate: string;
348
+ cameraId: number;
349
+ storageId: number;
350
+ };
351
+ export type KitAlarmItem = {
352
+ id: number;
353
+ kitId: number;
354
+ alarm: KitAlarm;
355
+ startDate: DateTime;
356
+ endDate: DateTime | null;
357
+ };
358
+ export type KitBox = {
359
+ id: string;
360
+ gatewaySerial: string;
361
+ gatewayMac: string;
362
+ gatewayConfig: Record<string, unknown> | null;
363
+ insertedAt: DateTime;
364
+ updatedAt: DateTime;
365
+ };
366
+ export type KitBoxCreatePayload = {
367
+ id?: string;
368
+ gatewaySerial: string;
369
+ gatewayMac: string;
370
+ gatewayConfig?: Record<string, unknown>;
371
+ };
372
+ export type KitBoxQueryParams = PaginationParams & {
373
+ id: string;
374
+ gatewaySerial: string;
375
+ gatewayMac: string;
376
+ };
@@ -14,7 +14,8 @@ export type Nvr = {
14
14
  export declare enum NvrDeviceType {
15
15
  Rpi4 = "rpi4",
16
16
  Rpi5 = "rpi5",
17
- OrinNano = "orin_nano"
17
+ OrinNano = "orin_nano",
18
+ Giraffe = "giraffe"
18
19
  }
19
20
  export declare enum NvrHddStatus {
20
21
  Error = "error",
@@ -1,9 +1,21 @@
1
+ export declare enum EDistortImageModes {
2
+ FreeRotate = "freeRotate",
3
+ Lock = "lock",
4
+ Rotate = "rotate",
5
+ Scale = "scale",
6
+ Pan = "drag"
7
+ }
1
8
  export declare enum EMapTypes {
2
9
  Blank = "Blank",
3
10
  Satellite = "Satellite",
4
11
  Street = "Street",
5
12
  GoogleSatellite = "hybrid",
6
- GoogleStreet = "roadmap"
13
+ GoogleStreet = "roadmap",
14
+ GoogleTerrain = "terrain"
15
+ }
16
+ export declare enum EMarkers {
17
+ CameraMarker = "cameraMarker",
18
+ ThreeSixtyMarker = "threeSixtyMarkers"
7
19
  }
8
20
  export declare enum EPageType {
9
21
  List = "list",
@@ -0,0 +1,18 @@
1
+ export type ActiveUsersRequestPayload = {
2
+ from?: string;
3
+ to?: string;
4
+ companyExid?: string;
5
+ projectExid?: string;
6
+ cameraExid?: string;
7
+ };
8
+ export type ActiveUsersResponsePayload = Array<{
9
+ date?: string;
10
+ dau?: number;
11
+ wau?: number;
12
+ mau?: number;
13
+ }>;
14
+ export declare enum ActiveUsersMetric {
15
+ DAU = "dau",
16
+ WAU = "wau",
17
+ MAU = "mau"
18
+ }