@evercam/api 1.0.0-095233f21 → 1.0.0-0a3924df5

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 (59) hide show
  1. package/dist/api/api/3dFirebaseApi.d.ts +18 -3
  2. package/dist/api/api/adminApi.d.ts +78 -80
  3. package/dist/api/api/aiApi.d.ts +4 -4
  4. package/dist/api/api/evercamApi.d.ts +17 -26
  5. package/dist/api/api/evercamLabsApi.d.ts +5 -13
  6. package/dist/api/api/exNvrApi.d.ts +1 -1
  7. package/dist/api/api/index.d.ts +1 -0
  8. package/dist/api/api/ingestApi.d.ts +38 -30
  9. package/dist/api/api/reportsApi.d.ts +15 -0
  10. package/dist/api/types/360.d.ts +15 -8
  11. package/dist/api/types/admin.d.ts +37 -3
  12. package/dist/api/types/analytics.d.ts +49 -15
  13. package/dist/api/types/anpr.d.ts +5 -4
  14. package/dist/api/types/apiKey.d.ts +70 -0
  15. package/dist/api/types/auditLogs.d.ts +161 -20
  16. package/dist/api/types/axios.d.ts +1 -0
  17. package/dist/api/types/bim.d.ts +27 -7
  18. package/dist/api/types/camera.d.ts +202 -82
  19. package/dist/api/types/comments.d.ts +56 -24
  20. package/dist/api/types/company.d.ts +11 -5
  21. package/dist/api/types/compare.d.ts +1 -1
  22. package/dist/api/types/detections.d.ts +3 -0
  23. package/dist/api/types/emailMessages.d.ts +27 -0
  24. package/dist/api/types/errors.d.ts +7 -2
  25. package/dist/api/types/gateReport.d.ts +2 -1
  26. package/dist/api/types/hdd.d.ts +1 -1
  27. package/dist/api/types/index.d.ts +3 -1
  28. package/dist/api/types/ingest.d.ts +105 -25
  29. package/dist/api/types/kit.d.ts +56 -68
  30. package/dist/api/types/media.d.ts +25 -3
  31. package/dist/api/types/nvr.d.ts +39 -8
  32. package/dist/api/types/observationEvents.d.ts +26 -0
  33. package/dist/api/types/observations.d.ts +14 -9
  34. package/dist/api/types/posthog.d.ts +36 -0
  35. package/dist/api/types/progressPhoto.d.ts +38 -25
  36. package/dist/api/types/project.d.ts +57 -22
  37. package/dist/api/types/recycleBin.d.ts +8 -2
  38. package/dist/api/types/reports.d.ts +109 -0
  39. package/dist/api/types/router.d.ts +15 -10
  40. package/dist/api/types/shared.d.ts +29 -19
  41. package/dist/api/types/sim.d.ts +18 -6
  42. package/dist/api/types/siteView.d.ts +15 -8
  43. package/dist/api/types/snapshots.d.ts +52 -12
  44. package/dist/api/types/sso.d.ts +11 -37
  45. package/dist/api/types/storageProvider.d.ts +16 -5
  46. package/dist/api/types/user.d.ts +32 -29
  47. package/dist/api/types/widget.d.ts +13 -4
  48. package/dist/index.js +752 -626
  49. package/dist/index.js.map +1 -1
  50. package/dist/index.umd.cjs +1 -1
  51. package/dist/index.umd.cjs.map +1 -1
  52. package/dist/shared/types/components.d.ts +427 -14
  53. package/dist/shared/types/droneUpload.d.ts +93 -0
  54. package/dist/shared/types/index.d.ts +2 -0
  55. package/dist/shared/types/report.d.ts +107 -0
  56. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  57. package/dist/shared/utils/datePresets.d.ts +31 -0
  58. package/package.json +1 -1
  59. package/dist/api/types/copilot.d.ts +0 -159
@@ -1,6 +1,8 @@
1
- import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase, TimestampPositionCoordinates } from "@evercam/api/types";
1
+ import { AuditLogActionType, CloudRecordingDuration, CloudRecordingFrequency, CloudRecordingStatus, DateType, EntityByExid, KitAlarm, NvrDeviceType, NvrHddStatus, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase, TimestampPositionCoordinates } from "@evercam/api/types";
2
2
  import { DateRangeFilter } from "@evercam/api/types/time";
3
+ import type { StorageProvider } from "@evercam/api/types/storageProvider";
3
4
  import { GeoPoint, TuplePoint2D } from "@evercam/api/types/shared";
5
+ import type { SiteAnalyticsViewType } from "@evercam/api/types/siteAnalytics";
4
6
  export type CameraExid = string;
5
7
  export type CamerasByExid = EntityByExid<Camera>;
6
8
  export type Camera = {
@@ -83,11 +85,21 @@ export type Camera = {
83
85
  timestampPosition?: TimestampPositionCoordinates;
84
86
  position?: number | null;
85
87
  };
88
+ export type CameraHddInfo = Partial<{
89
+ id: number;
90
+ name: string;
91
+ path: string;
92
+ type: string;
93
+ property: string;
94
+ capacity: number;
95
+ status: string;
96
+ freeSpace: number;
97
+ }>;
86
98
  export type AdminCamera = {
87
99
  id: number;
88
100
  exid: CameraExid;
89
101
  name: string;
90
- status: string;
102
+ status: CameraStatus;
91
103
  description: string | null;
92
104
  createdAt: string;
93
105
  updatedAt: string;
@@ -149,19 +161,25 @@ export type AdminCamera = {
149
161
  cloudRecordingStorageDuration?: number | null;
150
162
  liveViewFrequency?: number | null;
151
163
  anprSources?: string[];
152
- storageProviders?: string[];
164
+ storageProviders?: StorageProvider[];
153
165
  featureFlags?: CameraFeatureFlag[];
154
166
  zohoId?: string | null;
155
167
  offlineReason?: string | null;
156
168
  macAddress?: string | null;
157
169
  type?: string[];
158
170
  thumbnailUrl?: string;
171
+ simNumber?: string | null;
172
+ viewType?: SiteAnalyticsViewType;
173
+ viewId?: string;
174
+ hddInfo?: CameraHddInfo | CameraHddInfo[];
175
+ resolution?: string | null;
176
+ cameraFirmwareVersion?: string | null;
177
+ cameraTimezone?: string | null;
159
178
  };
160
179
  export type CameraMapMarker = {
161
180
  isOnline: boolean;
162
181
  location: GeoPoint;
163
- needFov: boolean;
164
- rotation: number;
182
+ heading: number;
165
183
  fovAngle: number;
166
184
  fovRadius: number;
167
185
  };
@@ -207,43 +225,55 @@ export declare enum CameraFeatureFlag {
207
225
  Ring = "ring",
208
226
  CloudOnly = "cloud_only"
209
227
  }
210
- export type CameraUpdateRequestPayload = {
211
- status?: string;
212
- timezone?: string;
213
- isPuclic?: boolean;
214
- discoverable?: boolean;
215
- fullname?: string;
216
- lastOnline?: string;
217
- owner?: string;
218
- description?: string;
219
- cameraPowerSchedule?: Schedule;
220
- isPowerScheduleActive?: boolean;
221
- powerSchedule?: object;
222
- ptz?: boolean;
223
- camUsername?: string;
224
- camPassword?: string;
225
- project?: {
228
+ export type CameraUpdateRequestPayload = Partial<{
229
+ status: string;
230
+ timezone: string;
231
+ isPublic: boolean;
232
+ discoverable: boolean;
233
+ fullname: string;
234
+ lastOnline: string;
235
+ owner: string;
236
+ description: string;
237
+ cameraPowerSchedule: Schedule;
238
+ isPowerScheduleActive: boolean;
239
+ powerSchedule: Schedule;
240
+ ptz: boolean;
241
+ camUsername: string;
242
+ camPassword: string;
243
+ project: {
226
244
  id: string;
227
245
  name: string;
228
246
  };
229
- modelName?: string;
230
- host?: string;
231
- nvrChannel?: number;
232
- nvrPortHttp?: string;
233
- externalRtspPort?: string;
234
- name?: string;
235
- h264Url?: string;
236
- snapshotUrl?: string;
237
- nvrSnapshotUrl?: string;
238
- routerId?: string | number;
239
- coordinates?: Array<number>;
240
- heading?: number;
241
- fovAngle?: number;
242
- fovRadius?: number;
247
+ modelName: string;
248
+ host: string;
249
+ nvrChannel: number;
250
+ nvrPortHttp: string;
251
+ externalRtspPort: string;
252
+ name: string;
253
+ h264Url: string;
254
+ snapshotUrl: string;
255
+ nvrSnapshotUrl: string;
256
+ routerId: string | number;
257
+ coordinates: Array<number>;
258
+ heading: number;
259
+ fovAngle: number;
260
+ fovRadius: number;
243
261
  featureFlags: CameraFeatureFlag[];
244
- isAccessRestricted?: boolean;
245
- liveViewFrequency?: number | null;
246
- };
262
+ isAccessRestricted: boolean;
263
+ liveViewFrequency: number | null;
264
+ recordingFromNvr: boolean;
265
+ cameraConfig: Partial<CameraConfigPayload>;
266
+ cloudRecordings: Partial<CameraCloudRecordingsPayload>;
267
+ deviceId: string | number;
268
+ anprSources: string[];
269
+ nvr: {
270
+ model?: string;
271
+ username?: string;
272
+ password?: string;
273
+ httpUrl?: string;
274
+ rtspUrl?: string | null;
275
+ };
276
+ }>;
247
277
  export type CamerasResponsePayload = {
248
278
  cameras?: Camera[];
249
279
  };
@@ -263,6 +293,7 @@ export type CameraStatusLog = {
263
293
  start: string;
264
294
  end: string;
265
295
  state: CameraStatus;
296
+ status: CameraStatus;
266
297
  };
267
298
  export type Log = {
268
299
  details: {
@@ -297,7 +328,9 @@ export declare enum NvrModel {
297
328
  Avigilion = "avigilion",
298
329
  Hanwha = "hanwha",
299
330
  Nxwitness = "nxwitness",
300
- ExNvr = "ex_nvr"
331
+ ExNvr = "ex_nvr",
332
+ None = "none",
333
+ Other = "other"
301
334
  }
302
335
  export declare enum CameraModel {
303
336
  YCam = "y-cam",
@@ -342,7 +375,36 @@ export type CameraPath = {
342
375
  export type CheckCameraPortPayload = {
343
376
  address: string;
344
377
  port: number;
345
- open: boolean;
378
+ };
379
+ export type CameraConfigPayload = {
380
+ model: CameraModel;
381
+ scheme?: "http" | "https";
382
+ host: string;
383
+ httpPort: number | string;
384
+ username: string;
385
+ password: string;
386
+ rtspPort?: number | string;
387
+ pictureEndpoint?: string;
388
+ streamEndpoint?: string;
389
+ };
390
+ export type CameraCloudRecordingsPayload = {
391
+ id?: number;
392
+ frequency: CloudRecordingFrequency;
393
+ storageDuration: CloudRecordingDuration;
394
+ status: CloudRecordingStatus;
395
+ schedule: Schedule;
396
+ };
397
+ export type CameraCreateNvrPayload = {
398
+ id: number;
399
+ } | {
400
+ model: NvrModel;
401
+ serial?: string;
402
+ deviceType?: NvrDeviceType;
403
+ macAddress?: string;
404
+ username: string | null;
405
+ password: string | null;
406
+ httpUrl: string | null;
407
+ rtspUrl?: string | null;
346
408
  };
347
409
  export type CameraCreateRequestPayload = {
348
410
  status: CameraStatus;
@@ -353,36 +415,23 @@ export type CameraCreateRequestPayload = {
353
415
  name: string;
354
416
  coordinates?: TuplePoint2D;
355
417
  recordingFromNvr?: boolean;
356
- CameraConfig: {
357
- model: CameraModel;
358
- scheme?: "http" | "https";
359
- host: string;
360
- httpPort: number;
361
- username: string;
362
- password: string;
363
- rtspPort?: number;
364
- pictureEndpoint?: string;
365
- streamEndpoint?: string;
366
- };
367
- nvr?: {
368
- model: NvrModel;
369
- serial?: string;
370
- deviceType?: NvrDeviceType;
371
- macAddress?: string;
372
- username: string;
373
- password: string;
374
- httpUrl: string;
375
- rtspUrl?: string;
376
- };
377
- cloudRecording?: {
378
- id?: number;
379
- frequency: 1 | 2 | 4 | 5 | 6 | 10 | 12 | 30 | 60;
380
- storageDuration: -1 | 1 | 7 | 30 | 90;
381
- status: "on" | "off" | "paused" | "on_scheduled";
382
- schedule: Schedule;
383
- };
418
+ cameraConfig: CameraConfigPayload;
419
+ nvr?: CameraCreateNvrPayload;
420
+ cloudRecordings?: CameraCloudRecordingsPayload;
384
421
  ownerId: number;
385
422
  projectId: number;
423
+ kitId?: number;
424
+ routerId?: number;
425
+ deviceId?: string;
426
+ isPublic?: boolean;
427
+ heading?: number;
428
+ fovAngle?: number;
429
+ fovRadius?: number;
430
+ project?: {
431
+ id: number;
432
+ timezone: string;
433
+ };
434
+ cloneCameraId?: number;
386
435
  };
387
436
  export type CameraDeletePayload = {
388
437
  verify: string;
@@ -421,21 +470,24 @@ export type NvrQueryParams = PaginationParams & {
421
470
  cameraName: string;
422
471
  cameraExid: CameraExid;
423
472
  cameraIp: string;
424
- hddStatus: HddStatus;
473
+ hddStatus: NvrHddStatus[];
425
474
  };
426
475
  export type OfflineCamera = {
427
476
  id: number;
428
477
  exid: string;
429
478
  name: string;
430
- fullname: string;
479
+ userFullname: string;
431
480
  timezone: string;
432
481
  status: CameraStatus;
433
482
  zohoId: string;
434
- externalHost: string;
435
- nvrHttpPort: string;
436
- externalRtspPort: string;
437
- username: string;
438
- password: string;
483
+ cameraModel: string;
484
+ cameraScheme: string;
485
+ cameraHost: string;
486
+ cameraUsername: string;
487
+ cameraPassword: string;
488
+ cameraPictureEndpoint: string;
489
+ cameraRtspPort: string;
490
+ cameraHttpPort: string;
439
491
  createdAt: DateType;
440
492
  lastPolledAt: DateType;
441
493
  lastOnlineAt: DateType;
@@ -457,7 +509,10 @@ export type OfflineCameraQueryParams = PaginationParams & {
457
509
  cameraOwner: string;
458
510
  powerType: PowerType;
459
511
  powerSchedule: PowerSchedule;
460
- batteryReadingsLastVoltage: number;
512
+ batteryReadingsLastVoltage: string;
513
+ includeOnline: boolean;
514
+ createdAtFrom: string;
515
+ createdAtTo: string;
461
516
  };
462
517
  export type OfflineCameraNote = {
463
518
  action: AuditLogActionType;
@@ -471,7 +526,41 @@ export type OfflineCameraNoteResponse = {
471
526
  privateNotes: OfflineCameraNote[];
472
527
  };
473
528
  export type SiteVisitCamerasQueryParams = PaginationParams & {
529
+ cameraExid: CameraExid;
530
+ cameraName: string;
531
+ timezone: string;
474
532
  cameraOwner: string;
533
+ powerType: PowerType;
534
+ powerSchedule: PowerSchedule;
535
+ createdAtFrom: string;
536
+ createdAtTo: string;
537
+ };
538
+ export type SiteVisitCamera = {
539
+ id: number;
540
+ exid: string;
541
+ name: string;
542
+ fullname: string;
543
+ timezone: string;
544
+ sims: {
545
+ billPayer: string;
546
+ number: string;
547
+ provider: string;
548
+ }[];
549
+ status: CameraStatus;
550
+ zohoId: string;
551
+ lastOnlineAt: DateType;
552
+ createdAt: DateType;
553
+ lastPolledAt: DateType;
554
+ powerType: PowerType;
555
+ powerSchedule: PowerSchedule;
556
+ cameraModel: string;
557
+ cameraScheme: string;
558
+ cameraHost: string;
559
+ cameraUsername: string;
560
+ cameraPassword: string;
561
+ cameraPictureEndpoint: string;
562
+ cameraRtspPort: string;
563
+ cameraHttpPort: string;
475
564
  };
476
565
  export type ProjectCamera = {
477
566
  apiId: string;
@@ -481,6 +570,8 @@ export type ProjectCamera = {
481
570
  name: string;
482
571
  ownerEmail: string;
483
572
  ownerFullname: string;
573
+ featureFlags: ProjectFeatureFlag[];
574
+ status: string;
484
575
  };
485
576
  export declare enum DuplicatedCameraFields {
486
577
  Host = "host",
@@ -491,23 +582,29 @@ export declare enum DuplicatedCameraFields {
491
582
  export type DuplicatedCameraObject = {
492
583
  exid: string;
493
584
  name: string;
494
- cameraStatus: string;
585
+ cameraStatus: CameraStatus;
495
586
  crStatus: string;
496
587
  };
497
588
  export type DuplicatedCameraResponse = {
498
589
  cameras: DuplicatedCameraObject[];
499
- host: string;
500
- cameraHttpPort: number;
501
- nvrHttpPort: number;
502
- nvrDeviceId: string;
590
+ host?: string;
591
+ cameraHttpPort?: number;
592
+ nvrHttpPort?: number;
593
+ nvrDeviceId?: string;
503
594
  count: number;
504
595
  };
505
596
  export type MergeDuplicatedCameraPayload = {
506
597
  masterCamera: Record<string, unknown>;
507
- shareeCameras: Record<string, unknown>;
598
+ shareeCameras: Record<string, unknown>[];
508
599
  };
509
600
  export type FetchCameraQueryParams = PaginationParams & {
601
+ /** Narrows the index to one project. Sent as `project_exid`. */
602
+ projectExid: ProjectExid;
603
+ ownerId: number;
604
+ kitId: number;
510
605
  status: CameraStatus;
606
+ statuses: CameraStatus[];
607
+ deviceId: string;
511
608
  isPublic: boolean;
512
609
  featureFlags: CameraFeatureFlag[];
513
610
  ptz: boolean;
@@ -523,13 +620,23 @@ export type FetchCameraQueryParams = PaginationParams & {
523
620
  nvrModel: NvrModel;
524
621
  cameraOwner: string;
525
622
  ownerEmail: string;
623
+ cameraIp: string;
624
+ userEmail: string;
526
625
  isRecording: boolean;
626
+ recordingFromNvr: boolean;
527
627
  cloudRecordingStorageDuration: number;
628
+ cloudRecordingFrequency: CloudRecordingFrequency;
629
+ cloudRecordingStatus: CloudRecordingStatus;
528
630
  cameraIds: string;
529
631
  hasLocation: boolean;
530
632
  externalHttpPort: string;
531
633
  externalRsptPort: string;
634
+ cameraHttpPort: string;
635
+ nvrRtspPort: string;
532
636
  nvrHttpPort: string;
637
+ createdAtFrom: string;
638
+ createdAtTo: string;
639
+ powerType: PowerType;
533
640
  };
534
641
  export declare enum BimType {
535
642
  TwoD = "2D",
@@ -538,3 +645,16 @@ export declare enum BimType {
538
645
  export type CameraDateRangeFilter = DateRangeFilter & {
539
646
  cameraExid: CameraExid;
540
647
  };
648
+ export type CameraFovChange = {
649
+ id: number;
650
+ cameraExid: CameraExid;
651
+ insertedAt: string | null;
652
+ difference: number | null;
653
+ changeIntensity: IntensityChange;
654
+ prevTimestamp: string | null;
655
+ nextTimestamp: string | null;
656
+ };
657
+ export type CameraFovChangesResponse = {
658
+ cameraExid: CameraExid;
659
+ fovChanges: CameraFovChange[];
660
+ };
@@ -14,26 +14,57 @@ export type CommentsRequestPayload = {
14
14
  scope: CommentsScope;
15
15
  cameraExid?: CameraExid;
16
16
  };
17
- export type CommentsListRequestPayload = PaginationParams & {
18
- projectExid?: ProjectExid;
19
- cameraExid?: CameraExid;
20
- fromDate?: string;
21
- toDate?: string;
22
- scope?: CommentsScope;
23
- creatorEmail?: string;
24
- content?: string;
25
- includeArchived?: boolean;
17
+ export type CommentsListRequestPayload = PaginationParams & Partial<{
18
+ scope: CommentsScope;
19
+ archivedAt: boolean | string;
20
+ createdBy: string;
21
+ project: string;
22
+ camera: string;
23
+ content: string;
24
+ label: CommentsLabel;
25
+ timestamp: string;
26
+ createdAtFrom: string;
27
+ createdAtTo: string;
28
+ }>;
29
+ export type AdminCommentProject = {
30
+ id: number;
31
+ exid: ProjectExid;
32
+ name: string;
33
+ };
34
+ export type AdminCommentCamera = {
35
+ id: number;
36
+ exid: CameraExid;
37
+ name: string;
38
+ };
39
+ export type AdminCommentCreatedBy = {
40
+ id: number;
41
+ firstname: string;
42
+ lastname: string;
43
+ email: string;
44
+ };
45
+ export type AdminComment = {
46
+ id: number;
47
+ content: string;
48
+ scope: CommentsScope;
49
+ timestamp: string;
50
+ label?: CommentsLabel;
51
+ archivedAt?: string;
52
+ project: AdminCommentProject | null;
53
+ camera: AdminCommentCamera | null;
54
+ createdBy: AdminCommentCreatedBy | null;
55
+ createdAt: string;
26
56
  };
27
57
  export type Comment = {
28
- fromDate?: string;
29
- toDate?: string;
58
+ fromTimestamp?: string;
59
+ toTimestamp?: string;
30
60
  timestamp: string;
31
- projectExid: ProjectExid;
32
- updatedAt?: string;
61
+ projectExid?: ProjectExid;
62
+ scope?: CommentsScope;
33
63
  id?: number;
34
64
  cameraExid: CameraExid;
35
65
  content: string;
36
66
  createdAt?: string;
67
+ updatedAt?: string;
37
68
  creatorEmail?: string;
38
69
  creatorName?: string;
39
70
  position2d?: TuplePoint2D;
@@ -43,18 +74,19 @@ export type Comment = {
43
74
  archivedAt?: string;
44
75
  label?: CommentsLabel;
45
76
  };
46
- export type CommentCreationRequestPayload = {
47
- fromDate?: DateType;
48
- toDate?: DateType;
49
- timestamp?: DateType;
50
- scope?: CommentsScope;
51
- projectExid?: ProjectExid;
52
- cameraExid?: CameraExid;
77
+ export type CommentCreationRequestPayload = Partial<{
78
+ fromTimestamp: DateType;
79
+ toTimestamp: DateType;
80
+ timestamp: DateType;
81
+ scope: CommentsScope;
82
+ projectExid: ProjectExid;
83
+ cameraExid: CameraExid;
84
+ label: CommentsLabel;
85
+ position2d: TuplePoint2D;
86
+ position3d: [number, number, number];
87
+ context: Record<string, unknown>;
88
+ }> & {
53
89
  content: string;
54
- label?: CommentsLabel;
55
- position2d?: TuplePoint2D;
56
- position3d?: [number, number, number];
57
- context?: Record<string, unknown>;
58
90
  };
59
91
  export type CommentThreeSixtyContext = {
60
92
  floorId: string;
@@ -4,8 +4,7 @@ export type CompanyUser = {
4
4
  fullname: string;
5
5
  email: string;
6
6
  eventsCount: number;
7
- lastSeenAt: string;
8
- active: boolean;
7
+ lastLoginAt: string;
9
8
  };
10
9
  export type AdminCompanyUser = {
11
10
  id: number;
@@ -103,13 +102,20 @@ export type CompanyQueryParams = PaginationParams & {
103
102
  projects: string;
104
103
  cameras: string;
105
104
  users: string;
106
- activeUsers: string;
107
105
  sessions: string;
108
106
  };
109
107
  export type CompanyUpdatePayload = {
110
- name: string;
111
- exid: string;
108
+ companyName: string;
109
+ companyExid: string;
112
110
  linkedinUrl?: string;
113
111
  domains?: string;
114
112
  zohoId?: string;
113
+ ssoProviders: string[];
114
+ };
115
+ export type CompanyUpdateResponse = {
116
+ name: string;
117
+ exid: string;
118
+ domains: string;
119
+ zohoId: string;
120
+ ssoProviders: string[];
115
121
  };
@@ -33,7 +33,7 @@ export type CompareRequestPayload = {
33
33
  beforeDate: string;
34
34
  afterDate: string;
35
35
  cameraExid: string;
36
- embed: string;
36
+ embed?: string;
37
37
  bim?: boolean;
38
38
  custom?: boolean;
39
39
  options?: {
@@ -89,6 +89,9 @@ export type DetectionsCountsParams = BaseCountsParams & {
89
89
  };
90
90
  export type SegmentsCountsParams = CameraDateRangeFilter & BaseCountsParams;
91
91
  export type DetectionsPresenceByLabel = Record<DetectionLabel, TimelineDateInterval[]>;
92
+ export type DetectionsPresenceResponse = {
93
+ intervals: DetectionsPresenceByLabel;
94
+ };
92
95
  export type SegmentsPresenceByLabel = Record<SegmentLabel, TimelineDateInterval[]>;
93
96
  export type SegmentsPresenceResponse = {
94
97
  intervals: SegmentsPresenceByLabel;
@@ -0,0 +1,27 @@
1
+ export type EmailInlineImage = {
2
+ cid: string;
3
+ mimeType: "image/jpeg" | "image/png" | "image/gif";
4
+ content: string;
5
+ };
6
+ export type EmailAttachment = {
7
+ name: string;
8
+ mimeType: string;
9
+ content: string;
10
+ };
11
+ export type EmailMessage = {
12
+ to: string[];
13
+ cc?: string[];
14
+ subject: string;
15
+ html: string;
16
+ inlineImages?: EmailInlineImage[];
17
+ attachments?: EmailAttachment[];
18
+ };
19
+ export type EmailAcceptance = {
20
+ status: "accepted";
21
+ requestId: string | null;
22
+ };
23
+ export type EmailRejection = {
24
+ detail: string | {
25
+ msg: string;
26
+ }[];
27
+ };
@@ -24,7 +24,9 @@ export declare enum ErrorCode {
24
24
  ForbiddenError = 403,
25
25
  NotFoundError = 404,
26
26
  ConflictError = 409,
27
- GoneError = 410
27
+ GoneError = 410,
28
+ TooManyRequestsError = 429,
29
+ UnprocessableEntityError = 422
28
30
  }
29
31
  export declare enum EvercamApiErrorCode {
30
32
  IntegrationError = "INTEGRATION_ERROR",
@@ -38,7 +40,8 @@ export declare enum EvercamApiErrorCode {
38
40
  ProviderEmailRequired = "PROVIDER_EMAIL_REQUIRED",
39
41
  PasswordReset = "PASSWORD_RESET",
40
42
  RequireShareRequest = "REQUIRE_SHARE_REQUEST",
41
- Generic = "GENERIC"
43
+ Generic = "GENERIC",
44
+ VideoWallInUse = "VIDEO_WALL_IN_USE"
42
45
  }
43
46
  type _EvercamApiError = {
44
47
  code: EvercamApiErrorCode;
@@ -47,6 +50,8 @@ type _EvercamApiError = {
47
50
  innerError?: _EvercamApiError;
48
51
  };
49
52
  export type EvercamApiError = AxiosError<_EvercamApiError>;
53
+ export declare function isEvercamApiError(error: unknown): error is EvercamApiError;
54
+ export declare function getEvercamApiErrorCode(error: unknown): EvercamApiErrorCode | undefined;
50
55
  export type AppError = {
51
56
  statusCode?: number;
52
57
  message?: string;
@@ -176,6 +176,7 @@ export type GateReportVerifiedDay = {
176
176
  cameraExid: CameraExid;
177
177
  projectExid: ProjectExid;
178
178
  };
179
+ export type GateReportVerifiedDayEntry = Pick<GateReportVerifiedDay, "day" | "verifiedBy" | "cameraExid" | "projectExid">;
179
180
  export type BoundingBox = {
180
181
  xmax: number;
181
182
  xmin: number;
@@ -291,7 +292,7 @@ export type VerifyDayUpdateRequestPayload = {
291
292
  camerasExid: string[];
292
293
  projectExid: string;
293
294
  day: string;
294
- isMatched: boolean;
295
+ isMatched?: boolean;
295
296
  verifiedBy: string;
296
297
  };
297
298
  export type ProcessedDaysQueryParams = {
@@ -46,7 +46,7 @@ export type HDDCreateUpdatePayload = {
46
46
  size: string;
47
47
  type: string;
48
48
  format: string;
49
- locationId: string;
49
+ locationId: WarehouseLocationIndex | string;
50
50
  serialNumber: string;
51
51
  hddStatus: string;
52
52
  shelfBlock: string;
@@ -8,7 +8,6 @@ export * from "./autodesk";
8
8
  export * from "./bim";
9
9
  export * from "./camera";
10
10
  export * from "./compare";
11
- export * from "./copilot";
12
11
  export * from "./credentials";
13
12
  export * from "./drone";
14
13
  export * from "./errors";
@@ -62,10 +61,13 @@ export * from "./posthog";
62
61
  export * from "./recycleBin";
63
62
  export * from "./authz";
64
63
  export * from "./oauth";
64
+ export * from "./apiKey";
65
65
  export * from "./ring";
66
66
  export * from "./smartSeach";
67
67
  export * from "./siteView";
68
68
  export * from "./aiConfigs";
69
69
  export * from "./gateReportManagement";
70
70
  export * from "./socket";
71
+ export * from "./reports";
71
72
  export * from "./observationEvents";
73
+ export * from "./emailMessages";