@evercam/api 1.0.0-e03adefb8 → 1.0.0-e1ad6ae1b

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 (97) hide show
  1. package/README.md +1 -0
  2. package/dist/api/3dFirebaseApi.d.ts +20 -0
  3. package/dist/api/{api/adminApi.d.ts → adminApi.d.ts} +65 -5
  4. package/dist/api/{api/aiApi.d.ts → aiApi.d.ts} +9 -6
  5. package/dist/api/client/swr/Swr.d.ts +14 -0
  6. package/dist/api/client/swr/SwrStore.d.ts +10 -0
  7. package/dist/api/{api/evercamApi.d.ts → evercamApi.d.ts} +31 -18
  8. package/dist/api/index.d.ts +13 -3
  9. package/dist/api/{api/ingestApi.d.ts → ingestApi.d.ts} +29 -9
  10. package/dist/index.d.ts +3 -2
  11. package/dist/index.js +1052 -688
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.umd.cjs +1 -1
  14. package/dist/index.umd.cjs.map +1 -1
  15. package/dist/{api/types → types}/360.d.ts +51 -1
  16. package/dist/{api/types → types}/analytics.d.ts +22 -3
  17. package/dist/{api/types → types}/anpr.d.ts +5 -11
  18. package/dist/{api/types → types}/axios.d.ts +14 -0
  19. package/dist/{api/types → types}/camera.d.ts +17 -5
  20. package/dist/{api/types → types}/comments.d.ts +18 -2
  21. package/dist/{api/types → types}/company.d.ts +29 -1
  22. package/dist/{api/types → types}/coolify.d.ts +2 -0
  23. package/dist/{api/types → types}/countries.d.ts +0 -7
  24. package/dist/{api/types → types}/detections.d.ts +1 -2
  25. package/dist/{api/types → types}/errors.d.ts +1 -0
  26. package/dist/{api/types → types}/index.d.ts +2 -0
  27. package/dist/{api/types → types}/kit.d.ts +34 -7
  28. package/dist/{api/types → types}/procore.d.ts +13 -10
  29. package/dist/{api/types → types}/progressPhoto.d.ts +20 -8
  30. package/dist/{api/types → types}/project.d.ts +1 -0
  31. package/dist/types/recycleBin.d.ts +14 -0
  32. package/dist/{api/types → types}/routeParams.d.ts +2 -1
  33. package/dist/{api/types → types}/shared.d.ts +1 -6
  34. package/dist/{api/types → types}/siteAnalytics.d.ts +3 -2
  35. package/dist/{api/types → types}/snapshots.d.ts +9 -0
  36. package/dist/types/sso.d.ts +55 -0
  37. package/dist/{api/types → types}/streaming.d.ts +1 -2
  38. package/dist/{api/types → types}/weather.d.ts +2 -0
  39. package/dist/{api/types → types}/widget.d.ts +25 -6
  40. package/package.json +4 -3
  41. package/dist/api/api/3dFirebaseApi.d.ts +0 -11
  42. package/dist/api/api/index.d.ts +0 -13
  43. package/dist/shared/api/index.d.ts +0 -3
  44. package/dist/shared/components/timelinePlayer/providers/index.d.ts +0 -3
  45. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +0 -17
  46. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +0 -13
  47. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +0 -16
  48. package/dist/shared/types/components.d.ts +0 -184
  49. package/dist/shared/types/imagePlayer.d.ts +0 -34
  50. package/dist/shared/types/index.d.ts +0 -4
  51. package/dist/shared/types/timeline.d.ts +0 -9
  52. /package/dist/api/{api/authzApi.d.ts → authzApi.d.ts} +0 -0
  53. /package/dist/api/{api/client → client}/axios.d.ts +0 -0
  54. /package/dist/api/{api/client → client}/customErrors.d.ts +0 -0
  55. /package/dist/api/{api/client → client}/index.d.ts +0 -0
  56. /package/dist/api/{api/client → client}/interceptors.d.ts +0 -0
  57. /package/dist/api/{api/evercamLabsApi.d.ts → evercamLabsApi.d.ts} +0 -0
  58. /package/dist/api/{api/exNvrApi.d.ts → exNvrApi.d.ts} +0 -0
  59. /package/dist/api/{api/ptzApi.d.ts → ptzApi.d.ts} +0 -0
  60. /package/dist/api/{api/videoWallApi.d.ts → videoWallApi.d.ts} +0 -0
  61. /package/dist/api/{api/weatherApi.d.ts → weatherApi.d.ts} +0 -0
  62. /package/dist/api/{api/webRtcApi.d.ts → webRtcApi.d.ts} +0 -0
  63. /package/dist/{api/types → types}/aconex.d.ts +0 -0
  64. /package/dist/{api/types → types}/auditLogs.d.ts +0 -0
  65. /package/dist/{api/types → types}/autodesk.d.ts +0 -0
  66. /package/dist/{api/types → types}/automation.d.ts +0 -0
  67. /package/dist/{api/types → types}/bim.d.ts +0 -0
  68. /package/dist/{api/types → types}/compare.d.ts +0 -0
  69. /package/dist/{api/types → types}/connector.d.ts +0 -0
  70. /package/dist/{api/types → types}/copilot.d.ts +0 -0
  71. /package/dist/{api/types → types}/credentials.d.ts +0 -0
  72. /package/dist/{api/types → types}/drone.d.ts +0 -0
  73. /package/dist/{api/types → types}/gateReport.d.ts +0 -0
  74. /package/dist/{api/types → types}/hdd.d.ts +0 -0
  75. /package/dist/{api/types → types}/ingest.d.ts +0 -0
  76. /package/dist/{api/types → types}/map.d.ts +0 -0
  77. /package/dist/{api/types → types}/media.d.ts +0 -0
  78. /package/dist/{api/types → types}/notification.d.ts +0 -0
  79. /package/dist/{api/types → types}/nvr.d.ts +0 -0
  80. /package/dist/{api/types → types}/planner.d.ts +0 -0
  81. /package/dist/{api/types → types}/posthog.d.ts +0 -0
  82. /package/dist/{api/types → types}/recording.d.ts +0 -0
  83. /package/dist/{api/types → types}/roi.d.ts +0 -0
  84. /package/dist/{api/types → types}/router.d.ts +0 -0
  85. /package/dist/{api/types → types}/shares.d.ts +0 -0
  86. /package/dist/{api/types → types}/sim.d.ts +0 -0
  87. /package/dist/{api/types → types}/storageServers.d.ts +0 -0
  88. /package/dist/{api/types → types}/systemCheck.d.ts +0 -0
  89. /package/dist/{api/types → types}/tag.d.ts +0 -0
  90. /package/dist/{api/types → types}/time.d.ts +0 -0
  91. /package/dist/{api/types → types}/timelapse.d.ts +0 -0
  92. /package/dist/{api/types → types}/user.d.ts +0 -0
  93. /package/dist/{api/types → types}/vendorModel.d.ts +0 -0
  94. /package/dist/{api/types → types}/videoWall.d.ts +0 -0
  95. /package/dist/{api/types → types}/voyageControl.d.ts +0 -0
  96. /package/dist/{api/types → types}/xweather.d.ts +0 -0
  97. /package/dist/{api/utils.d.ts → utils.d.ts} +0 -0
@@ -40,10 +40,15 @@ export declare enum _360AssetType {
40
40
  MobilePhoto = "mobile_photos",
41
41
  MobileAudio = "mobile_audios"
42
42
  }
43
+ export declare enum _360AssetLabel {
44
+ Walks = "walks",
45
+ MobilePhotos = "mobilePhotos"
46
+ }
43
47
  export declare enum _360Feature {
44
48
  BIM = "BIM",
45
49
  Minimap = "Minimap",
46
- Minimodel = "Minimodel"
50
+ Minimodel = "Minimodel",
51
+ MobilePhoto = "MobilePhoto"
47
52
  }
48
53
  export declare enum _360IntergrationType {
49
54
  Evercam = "Evercam",
@@ -52,6 +57,11 @@ export declare enum _360IntergrationType {
52
57
  HoloBuilder = "Holobuilder",
53
58
  DroneDeploy = "Dronedeploy"
54
59
  }
60
+ export declare enum PathMarkerColor {
61
+ Start = "#00e74c",
62
+ End = "#fd7567",
63
+ Default = "#2196F3"
64
+ }
55
65
  export type _360AssetsQueryParams = {
56
66
  page: number;
57
67
  limit: number;
@@ -66,6 +76,46 @@ export type _360AssetsRequestPayload = {
66
76
  floor: string;
67
77
  uploadedBy?: string;
68
78
  };
79
+ export type DrawingsRequestPayload = {
80
+ projectId?: string;
81
+ name?: string;
82
+ changedBy?: string;
83
+ mapStyle?: string;
84
+ startDate?: string;
85
+ endDate?: string;
86
+ id?: number;
87
+ page?: number;
88
+ limit?: number;
89
+ paginate?: boolean;
90
+ };
91
+ export type GenerateFloorPayload = {
92
+ overlay?: {
93
+ url: string;
94
+ title: string;
95
+ fileExtension: string;
96
+ };
97
+ changedBy: string;
98
+ name?: string;
99
+ mapStyle?: string;
100
+ overlayPositionCorners: {
101
+ northEast: {
102
+ lat: number;
103
+ lng: number;
104
+ };
105
+ northWest: {
106
+ lat: number;
107
+ lng: number;
108
+ };
109
+ southWest: {
110
+ lat: number;
111
+ lng: number;
112
+ };
113
+ southEast: {
114
+ lat: number;
115
+ lng: number;
116
+ };
117
+ };
118
+ };
69
119
  export type _360AssetsUploadPayload = {
70
120
  targetPointsCount: number;
71
121
  assetType: string;
@@ -258,7 +258,17 @@ export declare enum AnalyticsEvent {
258
258
  SharingTransferOwnership = "TransferOwnership",
259
259
  SharingSortBy = "SortBy",
260
260
  SharingChangeAccessRight = "ChangeAccessRight",
261
- ThreeSixtyList = "360List",
261
+ ThreeSixtyGallery = "Gallery",
262
+ ThreeSixtyGalleryFilterDateRange = "Gallery-FilterDateRange",
263
+ ThreeSixtyGalleryFilterFeatures = "Gallery-FilterFeatures",
264
+ ThreeSixtyGalleryFilterFloorName = "Gallery-FilterFloorName",
265
+ ThreeSixtyGalleryFilterUploadedBy = "Gallery-FilterUploadedBy",
266
+ ThreeSixtyGalleryTimelineSelectMilestoneItem = "Gallery-TimelineSelectMilestoneItem",
267
+ ThreeSixtyGalleryTimelineDateClick = "Gallery-TimelineDateClick",
268
+ ThreeSixtyGalleryToggleUploadDialog = "Gallery-ToggleUploadDialog",
269
+ ThreeSixtyGalleryToggleFilters = "Gallery-ToggleFilters",
270
+ ThreeSixtyGalleryUpdateFloorName = "Gallery-UpdateFloorName",
271
+ ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
262
272
  ThreeSixtyChangeDate = "ChangeDate",
263
273
  ThreeSixtyChangeFloor = "ChangeFloor",
264
274
  ThreeSixtyCloseCompare = "CloseCompare",
@@ -295,7 +305,7 @@ export declare enum AnalyticsEvent {
295
305
  ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
296
306
  ThreeSixtyUnlockCompare = "UnlockCompare",
297
307
  ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
298
- ThreeSixtyUpdateFloorName = "UpdateFloorName",
308
+ ThreeSixtyUploadAssets = "UploadAssets",
299
309
  DroneAreaToolClick = "AreaTool-Click",
300
310
  DroneChangeDate = "ChangeDate",
301
311
  DroneChooseTagType = "ChooseTagType",
@@ -332,6 +342,7 @@ export declare enum AnalyticsEvent {
332
342
  DroneVolumeToolClick = "VolumeTool-Click",
333
343
  DroneZoomIn = "ZoomIn",
334
344
  DroneZoomOut = "ZoomOut",
345
+ DroneUploadSkipping = "SkipImageUpload",// To be removed later
335
346
  PlannerAddCameraClick = "AddCameraClick",
336
347
  PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
337
348
  PlannerAddSitePlanClick = "AddSitePlanClick",
@@ -356,7 +367,6 @@ export declare enum AnalyticsEvent {
356
367
  PlannerZoomIn = "ZoomIn",
357
368
  PlannerZoomOut = "ZoomOut",
358
369
  MarkerClicked = "MarkerClicked",
359
- TimelapseToggleHelpDialog = "ToggleHelpDialog",
360
370
  TimelapseSelectCustomPeriod = "SelectCustomPeriod",
361
371
  TimelapseToggleCustomScheduleDialog = "ToggleCustomScheduleDialog",
362
372
  TimelapseSaveCustomSchedule = "SaveCustomSchedule",
@@ -384,12 +394,14 @@ export declare enum AnalyticsEvent {
384
394
  ProgressPhotoPause = "ProgressPhoto-Pause",
385
395
  ProgressPhotoResume = "ProgressPhoto-Resume",
386
396
  ProgressPhotoResumeDelete = "ProgressPhoto-ResumeDelete",
397
+ ProgressPhotoSelectType = "ProgressPhoto-SelectType",
387
398
  ProgressPhotoSelectCameras = "ProgressPhoto-SelectCameras",
388
399
  ProgressPhotoSelectDays = "ProgressPhoto-SelectDays",
389
400
  ProgressPhotoSelectMember = "ProgressPhoto-SelectMember",
390
401
  ProgressPhotoSelectProvider = "ProgressPhoto-SelectProvider",
391
402
  ProgressPhotoSelectTime = "ProgressPhoto-SelectTime",
392
403
  ProgressPhotoSelectTimezone = "ProgressPhoto-SelectTimezone",
404
+ ProgressPhotoSelectDelay = "ProgressPhoto-SelectDelay",
393
405
  ProgressPhotoToggleCreateDialog = "ProgressPhoto-ToggleCreateDialog",
394
406
  ProgressPhotoToggleEditDialog = "ProgressPhoto-ToggleEditDialog",
395
407
  ProgressPhotoUnsubscribeUser = "ProgressPhoto-UnsubscribeUser",
@@ -453,6 +465,13 @@ export declare enum AnalyticsEvent {
453
465
  HelpMenuClickUserManuaLink = "HelpMenu-ClickUserManuaLink",
454
466
  HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink",
455
467
  HelpMenuClickSystemCheckLink = "HelpMenu-ClickSystemCheckLink",
468
+ Recording = "Recording",
469
+ CameraFilter = "CameraFilter",
470
+ MissingEquipmentHardHat = "MissingEquipment-HardHat",
471
+ MissingEquipmentHighVisibilityVest = "MissingEquipment-HighVisibilityVest",
472
+ MissingEquipmentSafetyGlasses = "MissingEquipment-SafetyGlasses",
473
+ MissingEquipmentSafetyGloves = "MissingEquipment-SafteyGLoves",
474
+ ExportAs = "ExportAs",
456
475
  ExportPdf = "ExportPdf",
457
476
  ExportCsv = "ExportCsv",
458
477
  FilterCameras = "FilterCameras",
@@ -2,16 +2,6 @@ import { BoundingBox, CameraExid, DateType, GateReportVehicleType, TimelinePreci
2
2
  export type AnprQueryParams = {
3
3
  page?: number;
4
4
  limit?: number;
5
- firstSeen?: {
6
- gte: DateType;
7
- };
8
- lastSeen?: {
9
- lte: DateType;
10
- };
11
- captureTime?: {
12
- gte?: DateType;
13
- lt?: DateType;
14
- };
15
5
  direction?: {
16
6
  eq?: string;
17
7
  } | string;
@@ -21,7 +11,11 @@ export type AnprQueryParams = {
21
11
  sort?: string;
22
12
  fromDate?: DateType;
23
13
  toDate?: DateType;
24
- tab?: string;
14
+ camerasExid?: CameraExid[];
15
+ vehicleTypes?: GateReportVehicleType[];
16
+ isDuplicate?: boolean;
17
+ isPostprocessed?: boolean;
18
+ isPlate?: boolean;
25
19
  };
26
20
  export type AnprCountsQueryParams = {
27
21
  precision: TimelinePrecision;
@@ -1,4 +1,5 @@
1
1
  import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource, CancelTokenStatic } from "axios";
2
+ import { Swr } from "@/api/client/swr/Swr";
2
3
  export type TimedRequest<T> = Promise<AxiosResponse<T> & {
3
4
  duration: number;
4
5
  error?: AxiosError;
@@ -16,10 +17,13 @@ export type AxiosEnvironment = {
16
17
  weatherApiBaseUrl?: string | null;
17
18
  evercamLabsUrl?: string | null;
18
19
  firebaseDbLink?: string | null;
20
+ firebaseStorageUrl?: string | null;
21
+ firebaseStorageToken?: string | null;
19
22
  snapshotsURL?: string | null;
20
23
  app?: string | null;
21
24
  getAuthToken?: () => string | null;
22
25
  errorLogger?: (error: AxiosError) => void;
26
+ swrKey?: string;
23
27
  };
24
28
  export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
25
29
  export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
@@ -38,7 +42,13 @@ export interface ExtendedAxiosInstance extends AxiosInstance {
38
42
  addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
39
43
  addResponseInterceptor: (interceptor: ResponseInterceptor, errorInterceptor?: ErrorInterceptor) => void;
40
44
  addErrorInterceptor: (interceptor: ErrorInterceptor) => void;
45
+ swr: Swr;
41
46
  }
47
+ export type ResponseValue<T> = T | undefined;
48
+ export type SwrResponse<T> = {
49
+ cachedValue: ResponseValue<T>;
50
+ freshPromise: Promise<ResponseValue<T>>;
51
+ };
42
52
  declare module "axios" {
43
53
  interface AxiosRequestConfig {
44
54
  raw?: boolean;
@@ -47,5 +57,9 @@ declare module "axios" {
47
57
  _metadata?: {
48
58
  startTime: number;
49
59
  };
60
+ swr?: boolean;
61
+ onSwrHit?: <T>(data: T) => unknown;
62
+ onSwrRefresh?: <T>(data: T) => unknown;
63
+ onSwrError?: (error: Error) => unknown;
50
64
  }
51
65
  }
@@ -1,4 +1,4 @@
1
- import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, Schedule } from "@/types";
1
+ import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule } from "@/types";
2
2
  export type CameraExid = string;
3
3
  export type CamerasByExid = EntityByExid<Camera>;
4
4
  export type Cartesian3 = {
@@ -17,7 +17,7 @@ export type Camera = {
17
17
  storageDuration: string;
18
18
  };
19
19
  createdAt: DateTime_Z_micros;
20
- description: null;
20
+ description: string | null;
21
21
  discoverable: boolean;
22
22
  external: {
23
23
  host: string;
@@ -62,7 +62,7 @@ export type Camera = {
62
62
  offlineReason: string;
63
63
  owned: boolean;
64
64
  owner: string;
65
- pitch: null;
65
+ pitch: string | null;
66
66
  project: {
67
67
  id: string;
68
68
  name: string;
@@ -73,7 +73,7 @@ export type Camera = {
73
73
  };
74
74
  ptz: boolean;
75
75
  rights: string;
76
- roll: null;
76
+ roll: string | null;
77
77
  routerId: number;
78
78
  status: CameraStatus;
79
79
  streamingServer: string;
@@ -135,7 +135,7 @@ export type AdminCamera = {
135
135
  pitch: null;
136
136
  powerSchedule: Schedule;
137
137
  projectExid: string;
138
- projectFeatureFlags: [];
138
+ projectFeatureFlags: ProjectFeatureFlag[];
139
139
  projectId: number;
140
140
  projectName: string;
141
141
  ptz: false;
@@ -176,6 +176,13 @@ export declare enum CameraStatus {
176
176
  UnderMaintenance = "under_maintenance",
177
177
  WaitingForSiteVisit = "waiting_for_site_visit"
178
178
  }
179
+ export declare enum IntensityChangeColors {
180
+ High = "#FF5252",
181
+ Moderate = "#FBC02D",
182
+ Low = "#006400",
183
+ NoChange = "#3ACF3A",
184
+ Default = "black"
185
+ }
179
186
  export declare enum CameraFeatureFlag {
180
187
  EdgeVideo = "edge_video",
181
188
  BimCompare = "bim_compare",
@@ -334,6 +341,7 @@ export type CameraPath = {
334
341
  export type CheckCameraPortPayload = {
335
342
  address: string;
336
343
  port: number;
344
+ open: boolean;
337
345
  };
338
346
  export type CameraCreateRequestPayload = {
339
347
  status: CameraStatus;
@@ -518,3 +526,7 @@ export type FetchCameraQueryParams = PaginationParams & {
518
526
  externalRsptPort: string;
519
527
  nvrHttpPort: string;
520
528
  };
529
+ export declare enum BimType {
530
+ TwoD = "2D",
531
+ Forge = "Forge"
532
+ }
@@ -1,7 +1,13 @@
1
- import { CameraExid, DateType, ProjectExid } from "@/types";
1
+ import { CameraExid, DateType, ProjectExid, PaginationParams } from "@/types";
2
2
  export declare enum CommentsScope {
3
3
  Recordings = "recordings",
4
- ThreeSixty = "360"
4
+ ThreeSixty = "360",
5
+ Drone = "drone"
6
+ }
7
+ export declare enum CommentsLabel {
8
+ Info = "Info",
9
+ Danger = "Danger",
10
+ Restricted = "Restricted"
5
11
  }
6
12
  export type CommentsRequestPayload = {
7
13
  cameraExid: CameraExid;
@@ -11,6 +17,16 @@ export type CommentsRequestPayload = {
11
17
  page?: number;
12
18
  limit?: number;
13
19
  };
20
+ export type CommentsListRequestPayload = PaginationParams & {
21
+ projectExid?: ProjectExid;
22
+ cameraExid?: CameraExid;
23
+ fromDate?: string;
24
+ toDate?: string;
25
+ scope?: CommentsScope;
26
+ creatorEmail?: string;
27
+ content?: string;
28
+ includeArchived?: boolean;
29
+ };
14
30
  export type Comment = {
15
31
  fromDate?: string;
16
32
  toDate?: string;
@@ -13,6 +13,34 @@ export type CompanyProject = {
13
13
  status: string;
14
14
  startedAt: DateType;
15
15
  };
16
+ export type CompanyKit = {
17
+ id: number;
18
+ name: string;
19
+ serial: string;
20
+ status: string;
21
+ powerType: string;
22
+ countryName: string;
23
+ nvrId: string;
24
+ nvrSerial: string;
25
+ nvrVersion: string;
26
+ nvrNerves: boolean;
27
+ nvrModel: string;
28
+ nvrDeviceType: string;
29
+ routerId: string;
30
+ routerSerial: string;
31
+ projectExid: string;
32
+ projectName: string;
33
+ alarms: Array<string>;
34
+ sims: Array<{
35
+ id: number;
36
+ number: string;
37
+ }>;
38
+ cameras: Array<{
39
+ exid: string;
40
+ name: string;
41
+ status: string;
42
+ }>;
43
+ };
16
44
  export type Company = {
17
45
  id: number;
18
46
  exid: string;
@@ -25,7 +53,7 @@ export type Company = {
25
53
  cameras: number;
26
54
  users: number;
27
55
  activeUsers: number;
28
- createdAt: DateType;
56
+ insertedAt: DateType;
29
57
  };
30
58
  export type CompanyQueryParams = PaginationParams & {
31
59
  name: string;
@@ -6,6 +6,7 @@ export type CreateCoolifyAppRequestPayload = {
6
6
  snapshotRequestTimeout: string | number;
7
7
  serverUuid: string;
8
8
  branch: string;
9
+ useThirdParty: boolean;
9
10
  };
10
11
  export type SaveCoolifyAppRequestPayload = {
11
12
  contextCameraExid: string;
@@ -15,4 +16,5 @@ export type SaveCoolifyAppRequestPayload = {
15
16
  branchName: string;
16
17
  snapshotRequestTimeout: string | number;
17
18
  serverUuid: string;
19
+ useThirdParty: boolean;
18
20
  };
@@ -490,13 +490,6 @@ export declare enum CountryCode {
490
490
  Zambia = "zm",
491
491
  Zimbabwe = "zw"
492
492
  }
493
- export declare enum Region {
494
- Apac = "apac",
495
- Emea = "emea",
496
- Us = "us",
497
- Latam = "latam",
498
- Na = "na"
499
- }
500
493
  export declare enum CameraRegion {
501
494
  APAC = "apac",
502
495
  AU = "au",
@@ -113,7 +113,6 @@ export declare enum PpeLabel {
113
113
  Helmet = "helmet",
114
114
  HighVisibilityVest = "high-visibility-vest",
115
115
  SafetyGlasses = "safety-glasses",
116
- Gloves = "gloves",
117
116
  Person = "person",
118
117
  Man = "man",
119
118
  Woman = "woman"
@@ -121,7 +120,7 @@ export declare enum PpeLabel {
121
120
  export declare enum DetectionModel {
122
121
  Yolov10 = 1,
123
122
  Yolov11 = 2,
124
- Yolov11_2 = 3,
123
+ Yolov112 = 3,
125
124
  GroundingDino = 4,
126
125
  Owlv2 = 5
127
126
  }
@@ -26,6 +26,7 @@ export declare enum ErrorCode {
26
26
  ConflictError = 409
27
27
  }
28
28
  export declare enum EvercamApiErrorCode {
29
+ IntegrationError = "INTEGRATION_ERROR",
29
30
  BadArgument = "BAD_ARGUMENT",
30
31
  DeviceError = "DEVICE_ERROR",
31
32
  UnsupportedOperation = "UNSUPPORTED_OPERATION",
@@ -50,7 +50,9 @@ export * from "./siteAnalytics";
50
50
  export * from "./widget";
51
51
  export * from "./countries";
52
52
  export * from "./automation";
53
+ export * from "./sso";
53
54
  export * from "./coolify";
54
55
  export * from "./tag";
55
56
  export * from "./xweather";
56
57
  export * from "./posthog";
58
+ export * from "./recycleBin";
@@ -1,10 +1,10 @@
1
- import { CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule, Tag } from "@/types";
1
+ import { CameraExid, CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@/types";
2
2
  export type Kit = {
3
3
  alarms: KitAlarm[];
4
4
  countryCode: CountryCode;
5
5
  countryId: CountryId;
6
6
  countryName: string;
7
- countryRegion: Region;
7
+ countryRegion: KitRegion;
8
8
  id?: number;
9
9
  jobId: number;
10
10
  name: string;
@@ -17,6 +17,8 @@ export type Kit = {
17
17
  status: KitStatus;
18
18
  powerSchedule: Schedule;
19
19
  tags: Tag[];
20
+ storages: KitStorage[];
21
+ createdAt: string;
20
22
  };
21
23
  export declare enum KitStatus {
22
24
  New = "new",
@@ -24,18 +26,24 @@ export declare enum KitStatus {
24
26
  Deployed = "deployed",
25
27
  Decommissioned = "decommissioned"
26
28
  }
29
+ export declare enum KitRegion {
30
+ APAC = "apac",
31
+ EMEA = "emea",
32
+ LATAM = "latam",
33
+ US = "na"
34
+ }
27
35
  export declare enum KitAlarm {
28
36
  NvrOffline = "nvr_offline",
37
+ OfflineScheduled = "offline_scheduled",
29
38
  UnknownCamera = "unknown_camera",
30
39
  NotRecordingCamera = "not_recording_camera",
31
- OfflineScheduled = "offline_scheduled",
32
40
  FullSD = "full_sd",
33
41
  FullStorage = "full_storage",
34
42
  HddUnmounted = "hdd_unmounted",
35
43
  NoHdd = "no_hdd",
36
44
  MissingRouterInfo = "missing_router_info",
37
- PowerLost = "ac_failure",
38
- UpsLowBattery = "low_battery"
45
+ AcFailure = "ac_failure",
46
+ LowBattery = "low_battery"
39
47
  }
40
48
  export declare enum KitMetricId {
41
49
  SolarCharger = "solar_charger",
@@ -292,7 +300,7 @@ export type KitCreatePayload = {
292
300
  status: KitStatus;
293
301
  powerType: PowerType;
294
302
  config: {
295
- region: Region;
303
+ region: KitRegion;
296
304
  };
297
305
  };
298
306
  export type KitUpdatePayload = {
@@ -310,7 +318,7 @@ export declare enum KitStorageTransport {
310
318
  export type KitStorageRequestPayload = {
311
319
  kitId: number;
312
320
  };
313
- export type KitStorageResponsePayload = {
321
+ export type KitStorage = {
314
322
  id: number;
315
323
  serial: string;
316
324
  status: string;
@@ -324,5 +332,24 @@ export type KitStorageResponsePayload = {
324
332
  vendor: string;
325
333
  kitId: number;
326
334
  capacity: number;
335
+ freeSpace: number;
327
336
  tran: KitStorageTransport;
328
337
  };
338
+ export type KitFootageRequestPayload = {
339
+ cameraId: CameraExid;
340
+ storageId: number;
341
+ };
342
+ export type KitFootage = {
343
+ id: number;
344
+ startDate: string;
345
+ endDate: string;
346
+ cameraId: number;
347
+ storageId: number;
348
+ };
349
+ export type KitAlarmItem = {
350
+ id: number;
351
+ kitId: number;
352
+ alarm: KitAlarm;
353
+ startDate: DateTime;
354
+ endDate: DateTime | null;
355
+ };
@@ -176,11 +176,14 @@ export type ProcoreObservationCustomField = {
176
176
  optionsUrl: string | null;
177
177
  defaultValue: string | null;
178
178
  };
179
+ export type ProcoreNextObservationAvailableNumber = {
180
+ nextAvailableNumber: number;
181
+ };
179
182
  export declare enum ProcoreObservationCustomFieldDataType {
180
183
  RichText = "rich_text",
181
184
  Date = "date",
182
185
  DateTime = "datetime",
183
- LovEnty = "lov_entry",
186
+ LovEntry = "lov_entry",
184
187
  LovEntries = "lov_entries",
185
188
  Boolean = "boolean",
186
189
  Vendor = "vendor",
@@ -194,17 +197,17 @@ export declare enum ProcoreObservationDefaultFieldNames {
194
197
  Number = "number",
195
198
  Name = "name",
196
199
  Status = "status",
197
- Trade = "trade_id",
198
- Assignee = "assignee_id",
199
- DueDate = "due_date",
200
- SpecificationSection = "specification_section_id",
200
+ Trade = "tradeId",
201
+ Assignee = "assigneeId",
202
+ DueDate = "dueDate",
203
+ SpecificationSection = "specificationSectionId",
201
204
  Priority = "priority",
202
- Location = "location_id",
203
- DistributionMembers = "distribution_member_ids",
205
+ Location = "locationId",
206
+ DistributionMembers = "distributionMemberIds",
204
207
  Personal = "personal",
205
- Hazard = "hazard_id",
206
- ContributingBehavior = "contributing_behavior_id",
207
- ContributingCondition = "contributing_condition_id",
208
+ Hazard = "hazardId",
209
+ ContributingBehavior = "contributingBehaviorId",
210
+ ContributingCondition = "contributingConditionId",
208
211
  Description = "description"
209
212
  }
210
213
  export declare enum ProcoreTools {
@@ -1,31 +1,43 @@
1
- import { DateTime, DateType, PaginationParams } from "@/types";
2
- export type ProgressPhoto = {
1
+ import { AutomationType, DateTime, DateType, PaginationParams } from "@/types";
2
+ export type Automation = {
3
+ name?: string;
3
4
  cameraIds: string;
4
5
  cameraNames: number;
6
+ cameraExids?: string[];
5
7
  createdAt: string;
6
8
  id: number;
7
9
  provider: string;
8
- type: string;
10
+ type: AutomationType;
9
11
  config: Partial<{
10
- recipients: string;
11
- projectId: number;
12
+ recipients: string | Record<string, string>[];
12
13
  companyId: number;
14
+ compareDelay: number;
15
+ categoryId: string;
16
+ hubId: string;
17
+ folderId: string;
18
+ projectId: number;
13
19
  }>;
14
20
  isPaused: boolean;
15
- notifyDays: string;
21
+ notifyDays: string | string[];
16
22
  notifyTime: string;
17
23
  requesterEmail: string;
18
24
  requesterName: string;
19
25
  timezone: string;
20
26
  title: string;
27
+ compareDelay?: number;
28
+ selectedProvider?: string;
29
+ restrictedCameraExids?: string[];
30
+ recipients?: string | string[];
21
31
  };
22
32
  export type ProgressPhotosCreateUpdateRequestPayload = {
23
33
  cameraExids?: string;
24
34
  notifyDays?: string;
35
+ compareDelay?: AutomationType;
25
36
  notifyTime?: string;
26
37
  provider?: string;
27
38
  type?: string;
28
39
  config?: {
40
+ compareDelay?: AutomationType;
29
41
  recipients?: string;
30
42
  projectId?: number;
31
43
  companyId?: number;
@@ -40,9 +52,9 @@ export type ProgressPhotosUnSubscribeParams = {
40
52
  token?: string;
41
53
  };
42
54
  export type ProgressPhotosResponsePayload = {
43
- progressPhotos: ProgressPhoto[];
55
+ progressPhotos: Automation[];
44
56
  };
45
- export declare enum ProgressPhotoDialogType {
57
+ export declare enum AutomationDialogType {
46
58
  Create = "create",
47
59
  Edit = "edit",
48
60
  Pause = "pause"
@@ -12,6 +12,7 @@ export type Project = {
12
12
  zohoId?: string;
13
13
  userId?: number;
14
14
  cameras?: Array<Camera | AdminCamera>;
15
+ unrestrictedCameras?: Array<Camera | AdminCamera>;
15
16
  featureFlags: Array<ProjectFeatureFlag>;
16
17
  owner?: {
17
18
  email?: string;
@@ -0,0 +1,14 @@
1
+ import type { DateType, PaginationParams } from "@/types";
2
+ export type RecycleBin = {
3
+ id?: number;
4
+ exid: string;
5
+ name: string;
6
+ type: string;
7
+ deletedBy: string;
8
+ deletedAt: DateType;
9
+ };
10
+ export type RecycleBinQueryParams = PaginationParams & {
11
+ name: string;
12
+ type: string;
13
+ deletedBy: string;
14
+ };
@@ -46,6 +46,7 @@ export declare enum TimelineMobileCaptureUrlParams {
46
46
  ShowMobileCapture = "showMobileCapture"
47
47
  }
48
48
  export declare enum TimelineCommentsUrlParams {
49
- ShowComments = "showComments"
49
+ ShowComments = "showComments",
50
+ SelectedCommentId = "selectedCommentId"
50
51
  }
51
52
  export type TimelineUrlParams = Record<TimelineUrlParam | TimelineMediaUrlParams | TimelineBimUrlParams | TimelineExNvrRecordingsUrlParams | TimelineAnprUrlParams | TimelineMobileCaptureUrlParams | TimelineCommentsUrlParams, string | null>;