@evercam/api 1.0.0-6ab11f2f5 → 1.0.0-6b7b296b5

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 (70) hide show
  1. package/dist/api/api/3dFirebaseApi.d.ts +1 -0
  2. package/dist/api/api/adminApi.d.ts +45 -57
  3. package/dist/api/api/aiApi.d.ts +54 -51
  4. package/dist/api/api/authzApi.d.ts +27 -17
  5. package/dist/api/api/client/axios.d.ts +1 -1
  6. package/dist/api/api/client/swr/Swr.d.ts +1 -1
  7. package/dist/api/api/evercamApi.d.ts +67 -93
  8. package/dist/api/api/evercamLabsApi.d.ts +3 -3
  9. package/dist/api/api/exNvrApi.d.ts +1 -1
  10. package/dist/api/api/ingestApi.d.ts +96 -45
  11. package/dist/api/api/ptzApi.d.ts +9 -4
  12. package/dist/api/api/videoWallApi.d.ts +2 -2
  13. package/dist/api/api/weatherApi.d.ts +2 -2
  14. package/dist/api/types/360.d.ts +4 -2
  15. package/dist/api/types/aconex.d.ts +9 -9
  16. package/dist/api/types/admin.d.ts +51 -0
  17. package/dist/api/types/analytics.d.ts +30 -10
  18. package/dist/api/types/anpr.d.ts +19 -2
  19. package/dist/api/types/auditLogs.d.ts +1 -1
  20. package/dist/api/types/authz.d.ts +44 -6
  21. package/dist/api/types/autodesk.d.ts +7 -7
  22. package/dist/api/types/automation.d.ts +37 -3
  23. package/dist/api/types/axios.d.ts +10 -5
  24. package/dist/api/types/bim.d.ts +11 -5
  25. package/dist/api/types/camera.d.ts +80 -73
  26. package/dist/api/types/comments.d.ts +4 -8
  27. package/dist/api/types/company.d.ts +42 -1
  28. package/dist/api/types/compare.d.ts +20 -5
  29. package/dist/api/types/connector.d.ts +2 -5
  30. package/dist/api/types/coolify.d.ts +18 -2
  31. package/dist/api/types/copilot.d.ts +11 -6
  32. package/dist/api/types/detections.d.ts +17 -8
  33. package/dist/api/types/gateReport.d.ts +43 -50
  34. package/dist/api/types/hdd.d.ts +26 -1
  35. package/dist/api/types/index.d.ts +3 -0
  36. package/dist/api/types/ingest.d.ts +85 -2
  37. package/dist/api/types/kit.d.ts +14 -7
  38. package/dist/api/types/media.d.ts +2 -1
  39. package/dist/api/types/notification.d.ts +32 -2
  40. package/dist/api/types/posthog.d.ts +15 -0
  41. package/dist/api/types/procore.d.ts +13 -6
  42. package/dist/api/types/progressPhoto.d.ts +6 -2
  43. package/dist/api/types/project.d.ts +94 -20
  44. package/dist/api/types/recording.d.ts +2 -3
  45. package/dist/api/types/recycleBin.d.ts +1 -1
  46. package/dist/api/types/router.d.ts +1 -1
  47. package/dist/api/types/shared.d.ts +11 -4
  48. package/dist/api/types/shares.d.ts +6 -144
  49. package/dist/api/types/sim.d.ts +6 -6
  50. package/dist/api/types/siteAnalytics.d.ts +79 -39
  51. package/dist/api/types/smartSeach.d.ts +5 -0
  52. package/dist/api/types/snapshots.d.ts +1 -1
  53. package/dist/api/types/storyblok.d.ts +40 -0
  54. package/dist/api/types/streaming.d.ts +3 -3
  55. package/dist/api/types/tag.d.ts +1 -1
  56. package/dist/api/types/time.d.ts +0 -18
  57. package/dist/api/types/timelapse.d.ts +3 -4
  58. package/dist/api/types/user.d.ts +101 -30
  59. package/dist/api/types/videoWall.d.ts +21 -21
  60. package/dist/api/types/weather.d.ts +75 -11
  61. package/dist/api/types/widget.d.ts +71 -12
  62. package/dist/api/types/xweather.d.ts +4 -4
  63. package/dist/index.js +818 -803
  64. package/dist/index.js.map +1 -1
  65. package/dist/index.umd.cjs +1 -1
  66. package/dist/index.umd.cjs.map +1 -1
  67. package/dist/shared/types/components.d.ts +80 -9
  68. package/dist/shared/types/imagePlayer.d.ts +1 -1
  69. package/dist/shared/types/timeline.d.ts +2 -1
  70. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- export type AconexUserProjectsResponsePayload = Array<{
1
+ export type AconexUserProject = {
2
2
  id: number;
3
3
  name: string;
4
4
  shortName: string;
@@ -6,8 +6,8 @@ export type AconexUserProjectsResponsePayload = Array<{
6
6
  endDate: string;
7
7
  active: boolean;
8
8
  hidden: boolean;
9
- }>;
10
- export type AconexDocumentSchemaResponsePayload = Array<{
9
+ };
10
+ export type AconexDocumentSchema = {
11
11
  dataType: AconexDocumentDataType;
12
12
  identifier: AconexIdentifiers;
13
13
  fieldName: string;
@@ -17,18 +17,18 @@ export type AconexDocumentSchemaResponsePayload = Array<{
17
17
  id: string;
18
18
  value: string;
19
19
  }>;
20
- }>;
21
- export type AconexDocumentTypeSchemaResponsePayload = Array<{
20
+ };
21
+ export type AconexDocumentTypeSchema = {
22
22
  dataType: AconexDocumentDataType;
23
- identifier: string;
23
+ identifier: AconexIdentifiers;
24
24
  fieldName: string;
25
25
  modifiedFieldName?: string;
26
- mandatoryStatus: string;
26
+ mandatoryStatus: AconexMandatoryStatus;
27
27
  specifications?: Array<AconexFieldSpecification>;
28
- }>;
28
+ };
29
29
  export type AconexDocumentSchemaField = {
30
30
  dataType: AconexDocumentDataType;
31
- identifier: AconexIdentifiers | string;
31
+ identifier: AconexIdentifiers;
32
32
  schemaValues?: Array<{
33
33
  id: string;
34
34
  value: string;
@@ -0,0 +1,51 @@
1
+ import type { JsonObject } from "@evercam/api/types";
2
+ export type WithZohoParams = {
3
+ with_zoho?: boolean;
4
+ };
5
+ export type AdminSearchProjectItem = {
6
+ id: number;
7
+ name: string;
8
+ status: string;
9
+ exid: string;
10
+ featureFlags: string[];
11
+ };
12
+ export type AdminSearchItem = AdminSearchProjectItem | JsonObject;
13
+ export type AdminInviteRole = {
14
+ id: number;
15
+ name: string;
16
+ resourceType: string;
17
+ };
18
+ export type AdminInviteAssigner = {
19
+ id: number;
20
+ email: string;
21
+ fullname: string;
22
+ };
23
+ export type AdminInviteAuthContextSubRole = {
24
+ resourceId: string;
25
+ roleId: number;
26
+ };
27
+ export type AdminInviteAuthContext = {
28
+ permissions: string[] | null;
29
+ subRoles: AdminInviteAuthContextSubRole[];
30
+ hasOverride: boolean;
31
+ };
32
+ export type AdminInvite = {
33
+ id: number;
34
+ message: string | null;
35
+ status: number;
36
+ email: string;
37
+ key: string;
38
+ updatedAt: string;
39
+ role: AdminInviteRole;
40
+ createdAt: string;
41
+ resourceId: string;
42
+ assigner: AdminInviteAssigner;
43
+ sentCount: number;
44
+ lastSentAt: string;
45
+ authContext: AdminInviteAuthContext;
46
+ statusName: string;
47
+ };
48
+ export type ZohoDeskTicketSearchResponse = {
49
+ data: JsonObject[];
50
+ count: number;
51
+ };
@@ -41,6 +41,7 @@ export declare enum AnalyticsEventPageId {
41
41
  DroneInfo = "DroneInfo",
42
42
  ThreeSixtyInfo = "360Info",
43
43
  BimCompareInfo = "BimCompareInfo",
44
+ TimelineInfo = "TimelineInfo",
44
45
  WeatherReport = "WeatherReport",
45
46
  PpeReport = "PpeReport",
46
47
  SmartSearch = "SmartSearch",
@@ -185,6 +186,12 @@ export declare enum AnalyticsEvent {
185
186
  XarySelectLatestDate = "Xray-SelectLatestDate",
186
187
  XarySelectOldestDate = "Xray-SelectOldestDate",
187
188
  XraySendToConnector = "Xray-SendToConnector",
189
+ XraySendToConnectorSent = "Xray-SendToConnector-Sent",
190
+ XraySendToConnectorProcore = "Xray-SendToConnector-Procore",
191
+ XraySendToConnectorProcorePhotos = "Xray-SendToConnector-Procore-Photos",
192
+ XraySendToConnectorProcoreObservations = "Xray-SendToConnector-Procore-Observations",
193
+ XraySendToConnectorAconex = "Xray-SendToConnector-Aconex",
194
+ XraySendToConnectorAutodesk = "Xray-SendToConnector-Autodesk",
188
195
  WeatherGoBackDate = "Weather-GoBackDate",
189
196
  WeatherGoForwardDate = "Weather-GoForwardDate",
190
197
  WeatherReportExportFile = "ExportFile",
@@ -248,11 +255,12 @@ export declare enum AnalyticsEvent {
248
255
  MarkUpToolSaveToMediaHub = "MarkUpTool-SaveToMediaHub",
249
256
  MarkUpToolDownloadAs = "MarkUpTool-DownloadAs",
250
257
  MarkUpToolSendToConnector = "MarkUpTool-SendToConnector",
251
- AiToolToggleBrainToolsMenu = "AITool-ToggleBrainToolsMenu",
252
- AiToolSelectObjectDetection = "AITool-SelectObjectDetection",
253
- AiToolSelectAskChatGpt = "AITool-SelectAskChatGpt",
254
- AiToolSelectSegmentation = "AITool-SelectSegmentation",
255
- AiToolUpdateTransparency = "AITool-UpdateTransparency",
258
+ MarkUpToolSendToConnectorSent = "MarkUpTool-SendToConnector-Sent",
259
+ MarkUpToolSendToConnectorProcore = "MarkUpTool-SendToConnector-Procore",
260
+ MarkUpToolSendToConnectorProcorePhotos = "MarkUpTool-SendToConnector-Procore-Photos",
261
+ MarkUpToolSendToConnectorProcoreObservations = "MarkUpTool-SendToConnector-Procore-Observations",
262
+ MarkUpToolSendToConnectorAconex = "MarkUpTool-SendToConnector-Aconex",
263
+ MarkUpToolSendToConnectorAutodesk = "MarkUpTool-SendToConnector-Autodesk",
256
264
  RecordingsCancelExportDialog = "CancelExportDialog",
257
265
  RecordingsClickSupportLink = "ClickSupportLink",
258
266
  RecordingsCreateClip = "CreateClip",
@@ -324,7 +332,7 @@ export declare enum AnalyticsEvent {
324
332
  ThreeSixtyUploadAssets = "UploadAssets",
325
333
  DroneAreaToolClick = "AreaTool-Click",
326
334
  DroneChangeDate = "ChangeDate",
327
- DroneChooseTagType = "ChooseTagType",
335
+ DroneChooseCommentType = "ChooseCommentType",
328
336
  DroneClickCameraLiveView = "ClickCameraLiveView",
329
337
  DroneClickCameraMarker = "ClickCameraMarker",
330
338
  DroneCompareToolClick = "CompareTool-Click",
@@ -339,13 +347,14 @@ export declare enum AnalyticsEvent {
339
347
  DroneOpenHelpPanel = "OpenHelpPanel",
340
348
  DroneOpenImageViewer = "OpenImageViewer",
341
349
  DroneResetView = "ResetView",
342
- DroneSaveTag = "SaveTag",
343
350
  DroneSettingsToggle360PathsVisibility = "Settings-Toggle360PathsVisibility",
344
351
  DroneSettingsToggleCameraMarkersVisibility = "Settings-ToggleCameraMarkersVisibility",
345
352
  DroneSettingsToggleSurroundingBuildingsTool = "Settings-ToggleSurroundingBuildingsTool",
346
- DroneSettingsToggleTagsVisibility = "Settings-ToggleTagsVisibility",
353
+ DroneSettingsToggleCommentsVisibility = "Settings-ToggleCommentsVisibility",
354
+ DroneSettingsToggleAerialShotsVisibility = "Settings-ToggleAerialShotsVisibility",
355
+ DroneSettingsOpenCommentsList = "Settings-OpenCommentsList",
347
356
  DroneShareLink = "ShareLink",
348
- DroneTagsToolClick = "TagsTool-Click",
357
+ DroneCommentsToolClick = "CommentsTool-Click",
349
358
  DroneToggleBimCompareTool = "ToggleBimCompareTool",
350
359
  DroneToggleFullScreen = "ToggleFullScreen",
351
360
  DroneToggleMapStyle = "ToggleMapStyle",
@@ -359,6 +368,10 @@ export declare enum AnalyticsEvent {
359
368
  DroneZoomIn = "ZoomIn",
360
369
  DroneZoomOut = "ZoomOut",
361
370
  DroneUploadSkipping = "SkipImageUpload",// To be removed later
371
+ DroneSaveComment = "SaveComment",
372
+ DroneUnarchiveComment = "UnarchiveComment",
373
+ DroneArchiveComment = "ArchiveComment",
374
+ DroneDeleteComment = "DeleteComment",
362
375
  PlannerAddCameraClick = "AddCameraClick",
363
376
  PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
364
377
  PlannerAddSitePlanClick = "AddSitePlanClick",
@@ -557,5 +570,12 @@ export declare enum AnalyticsEvent {
557
570
  SmartSearchSaveQuery = "SmartSearch-SaveQuery",
558
571
  SmartSearchThumbnailPlay = "SmartSearch-ThumbnailPlay",
559
572
  SmartSearchExportFile = "SmartSearch-ExportFile",
560
- SmartSearchDownloadHeatmapImage = "SmartSearch-DownloadHeatmapImage"
573
+ SmartSearchDownloadHeatmapImage = "SmartSearch-DownloadHeatmapImage",
574
+ AskAIClickAskAI = "AskAI-ClickAskAI",
575
+ AskAIClickExpand = "AskAI-ClickExpand",
576
+ AskAIClickCollapse = "AskAI-ClickCollapse",
577
+ AskAIClickVoice = "AskAI-ClickVoice",
578
+ AskAIClickFullscreen = "AskAI-ClickFullscreen",
579
+ AskAIExitFullscreen = "AskAI-ExitFullscreen",
580
+ AskAICloseChat = "AskAI-CloseChat"
561
581
  }
@@ -1,4 +1,4 @@
1
- import { BoundingBox, CameraExid, DateType, GateReportVehicleType, TimelinePrecision } from "@/types";
1
+ import { BoundingBox, CameraExid, DateType, GateReportVehicleType, TimelinePrecision } from "@evercam/api/types";
2
2
  export type AnprQueryParams = {
3
3
  page?: number;
4
4
  limit?: number;
@@ -62,7 +62,13 @@ export type AnprEvent = {
62
62
  votedVehicleType: GateReportVehicleType | string;
63
63
  roiId?: number;
64
64
  captureTime: DateType;
65
- metadata_: {
65
+ contextThumbnailUrl: string;
66
+ isPublic: boolean;
67
+ label: string;
68
+ mp4Url: string;
69
+ plateThumbnailUrl: string;
70
+ thumbnailUrl: string;
71
+ metadata: {
66
72
  evercamMetadata?: {
67
73
  anpr?: {
68
74
  bbox: BoundingBox;
@@ -95,3 +101,14 @@ export declare enum AnprEventStatus {
95
101
  IsDuplicate = "is_duplicate",
96
102
  NotDuplicate = "not_duplicate"
97
103
  }
104
+ export type AnprBulkUpdateRequestPayload = {
105
+ anprEventsIds: number[];
106
+ action: AnprEventStatus;
107
+ updatedBy: string;
108
+ };
109
+ export type AnprUpdateRequestPayload = {
110
+ plateNumber: string;
111
+ vehicleType: GateReportVehicleType;
112
+ direction: AnprDirection;
113
+ updatedBy: string;
114
+ };
@@ -1,4 +1,4 @@
1
- import { CameraStatus, DateType, PaginationParams } from "@/types";
1
+ import { CameraStatus, DateType, PaginationParams } from "@evercam/api/types";
2
2
  export declare enum AuditLogActionType {
3
3
  VH_STATUS = "vh_status",
4
4
  CR_UPDATED = "cr_updated",
@@ -1,17 +1,23 @@
1
1
  export declare enum RoleResourceType {
2
+ App = "app",
2
3
  Camera = "camera",
3
4
  Project = "project"
4
5
  }
6
+ export type RoleSubRole = {
7
+ resourceId: string;
8
+ roleId: number;
9
+ roleName?: string;
10
+ permissions?: string[];
11
+ };
5
12
  export type Role = {
6
13
  id: number;
7
14
  name: string;
8
- resource: string;
15
+ description?: string | null;
16
+ resource?: string;
9
17
  resourceType: RoleResourceType;
18
+ resourceId?: string | null;
10
19
  permissions: string[];
11
- subRoles?: Array<{
12
- resourceId: string;
13
- roleId: number;
14
- }>;
20
+ subRoles?: RoleSubRole[];
15
21
  };
16
22
  export type ProjectResourceRole = Role & {
17
23
  resourceType: RoleResourceType.Project;
@@ -19,4 +25,36 @@ export type ProjectResourceRole = Role & {
19
25
  export type CameraResourceRole = Omit<Role, "subRoles"> & {
20
26
  resourceType: RoleResourceType.Camera;
21
27
  };
22
- export type ProjectRoleRequestPayload = Omit<Role, "id" | "resource" | "resourceType">;
28
+ export type ProjectRoleRequestPayload = {
29
+ name: string;
30
+ permissions: string[];
31
+ subRoles?: RoleSubRole[];
32
+ };
33
+ export type AuthzRoleUser = {
34
+ email: string;
35
+ resourceId: string;
36
+ };
37
+ export type AuthzUserRolesResponse = {
38
+ roles: Role[];
39
+ };
40
+ export type AuthzScopePermission = {
41
+ id: number;
42
+ action: string;
43
+ exid: string;
44
+ };
45
+ export type AuthzScope = {
46
+ id: number;
47
+ name: string;
48
+ description: string | null;
49
+ permissions: AuthzScopePermission[];
50
+ app: string;
51
+ exid: string;
52
+ };
53
+ export type AuthzScopeCreatePayload = {
54
+ name: string;
55
+ description?: string;
56
+ permissions: string[];
57
+ };
58
+ export type AuthzScopeUpdatePayload = Partial<AuthzScopeCreatePayload>;
59
+ export declare function isProjectRole(role: Role): role is ProjectResourceRole;
60
+ export declare function isCameraRole(role: Role): role is CameraResourceRole;
@@ -1,20 +1,20 @@
1
- export type AutodeskUserHubsResponsePayload = Array<{
1
+ export type AutodeskUserHub = {
2
2
  text: string;
3
3
  value: string;
4
- }>;
5
- export type AutodeskProjectsResponsePayload = Array<{
4
+ };
5
+ export type AutodeskProject = {
6
6
  text: string;
7
7
  value: string;
8
- }>;
9
- export type AutodeskFolderResponsePayload = {
8
+ };
9
+ export type AutodeskFolder = {
10
10
  text: string;
11
11
  value: string;
12
12
  allowedFileType: string;
13
13
  allowedFolderType: string;
14
- children: Array<AutodeskFolderResponsePayload>;
14
+ children: Array<AutodeskFolder>;
15
15
  parentName?: string;
16
16
  };
17
- export type AutodeskUploadSnapshotPayload = {
17
+ export type AutodeskSnapshot = {
18
18
  projectId: string;
19
19
  folderId: string;
20
20
  accFileType: string;
@@ -7,14 +7,27 @@ export declare enum AutomationProvider {
7
7
  }
8
8
  export declare enum AutomationType {
9
9
  Photo = "photo",
10
- Compare = "compare"
10
+ Compare = "compare",
11
+ GateReport = "gate_report"
11
12
  }
12
13
  export type AutomationCompareConfig = {
13
14
  compareDelay: number;
14
15
  };
15
- export type AutomationEmailProviderConfig = {
16
+ export type AutomationEmailRecipient = string | {
17
+ email: string;
18
+ };
19
+ export type AutomationGateReportConfig = {
20
+ projectExid: string;
21
+ vehicleTypes: string[];
22
+ fileType: string;
23
+ period: number;
24
+ columns: string[];
16
25
  recipients: string | string[];
17
26
  };
27
+ export type AutomationEmailProviderConfig = {
28
+ cameraExids?: CameraExid[];
29
+ recipients: string | AutomationEmailRecipient[];
30
+ };
18
31
  export type AutomationProcoreProviderConfig = {
19
32
  companyId: number;
20
33
  companyName: string;
@@ -38,9 +51,10 @@ export type AutomationAutodeskProviderConfig = {
38
51
  folderName: string;
39
52
  };
40
53
  export type AutomationProviderConfig = AutomationEmailProviderConfig | AutomationProcoreProviderConfig | AutomationAconexProviderConfig | AutomationAutodeskProviderConfig;
41
- export type AutomationOptionsConfig = AutomationCompareConfig | {};
54
+ export type AutomationOptionsConfig = AutomationCompareConfig | AutomationGateReportConfig | {};
42
55
  export type AutomationConfig = AutomationProviderConfig & AutomationOptionsConfig;
43
56
  export type Automation = {
57
+ id?: number;
44
58
  cameraExids: CameraExid[];
45
59
  name: string;
46
60
  subject?: string;
@@ -59,3 +73,23 @@ export declare enum AutomationConfigStep {
59
73
  Settings = "settings",
60
74
  Destination = "destination"
61
75
  }
76
+ export type AutomationProviderOption = {
77
+ labelTranslationKey: string;
78
+ descriptionTranslationKey: string;
79
+ value: AutomationProvider;
80
+ icon: string;
81
+ iconSize?: string;
82
+ requiresConnection: boolean;
83
+ };
84
+ export type FormattedAutomation = {
85
+ cameraExids: string;
86
+ name: string;
87
+ subject: string;
88
+ provider: AutomationProvider;
89
+ type: AutomationType;
90
+ config: Partial<AutomationProviderConfig> & Partial<AutomationOptionsConfig>;
91
+ notifyDays: string;
92
+ notifyTime: string;
93
+ timezone: string;
94
+ isPaused: boolean;
95
+ };
@@ -1,5 +1,5 @@
1
1
  import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource, CancelTokenStatic } from "axios";
2
- import { Swr } from "@/api/client/swr/Swr";
2
+ import { Swr } from "@evercam/api/api/client/swr/Swr";
3
3
  export type TimedRequest<T> = Promise<AxiosResponse<T> & {
4
4
  duration: number;
5
5
  error?: AxiosError;
@@ -8,9 +8,10 @@ export type AxiosEnvironment = {
8
8
  baseUrl?: string | null;
9
9
  stagingAiApiUrl?: string | null;
10
10
  aiApiUrl?: string | null;
11
- aiApiUrlV2?: string | null;
12
11
  ingestApiUrl?: string | null;
13
12
  ingestGpuApiUrl?: string | null;
13
+ ingestGpuV3ApiUrl?: string | null;
14
+ ingestGpuV4ApiUrl?: string | null;
14
15
  posthogApiUrl?: string | null;
15
16
  posthogProjectId?: string | null;
16
17
  posthogPrivateApiKey?: string | null;
@@ -31,7 +32,7 @@ export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) =>
31
32
  export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
32
33
  export interface ExtendedAxiosInstance extends AxiosInstance {
33
34
  CancelToken: CancelTokenStatic;
34
- isCancel: (value: AxiosResponse | AxiosError | never) => boolean;
35
+ isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
35
36
  setToken: (token: string) => void;
36
37
  setHeader: (headerName: string, value: any) => void;
37
38
  generateCancelTokenSource: () => CancelTokenSource;
@@ -50,6 +51,10 @@ export type SwrResponse<T> = {
50
51
  cachedValue: ResponseValue<T>;
51
52
  freshPromise: Promise<ResponseValue<T>>;
52
53
  };
54
+ export type SwrRequestConfig<T> = Omit<AxiosRequestConfig, "onSwrHit" | "onSwrRefresh"> & {
55
+ onSwrHit?: (data: T) => unknown;
56
+ onSwrRefresh?: (data: T) => unknown;
57
+ };
53
58
  declare module "axios" {
54
59
  interface AxiosRequestConfig {
55
60
  raw?: boolean;
@@ -59,8 +64,8 @@ declare module "axios" {
59
64
  startTime: number;
60
65
  };
61
66
  swr?: boolean;
62
- onSwrHit?: <T>(data: T) => unknown;
63
- onSwrRefresh?: <T>(data: T) => unknown;
67
+ onSwrHit?: (data: any) => unknown;
68
+ onSwrRefresh?: (data: any) => unknown;
64
69
  onSwrError?: (error: Error) => unknown;
65
70
  }
66
71
  }
@@ -1,4 +1,4 @@
1
- import { DateTime, DateType } from "@/types";
1
+ import { CompareLogoPosition, DateType } from "@evercam/api/types";
2
2
  export declare enum BimModelType {
3
3
  Architectural = "Architectural",
4
4
  Structural = "Structural",
@@ -48,14 +48,15 @@ export type BimCompareExportRequestPayload = {
48
48
  layerId?: number;
49
49
  maskId?: number;
50
50
  evercamWatermark?: boolean;
51
+ logo?: CompareLogoPosition;
51
52
  };
52
53
  export type BimLayerResponsePayload = {
53
54
  id: number;
54
55
  name: string;
55
- insertedAt: DateTime;
56
- updatedAt: DateTime;
56
+ insertedAt: string;
57
+ updatedAt: string;
57
58
  shapes: string;
58
- startAt: DateTime;
59
+ startAt: string;
59
60
  };
60
61
  export declare enum BimUploadStatus {
61
62
  Initial = 0,
@@ -78,13 +79,18 @@ export type BimCreationPayload = {
78
79
  };
79
80
  export declare enum BIMLayerTypes {
80
81
  Mask = "mask",
82
+ BimMask = "bim_mask",
81
83
  MeasuringGrid = "measuring_grid",
82
84
  BimArchitectural = "bim_architectural",
83
85
  BimStructural = "bim_structural",
84
86
  Bim4D = "bim_4d",
85
87
  BimMep = "bim_mep",
86
88
  RecordingsTag = "recordings_tag",
87
- Milestone = "milestone"
89
+ Milestone = "milestone",
90
+ ForgeBimArchitectural = "forge_bim_architectural",
91
+ ForgeBimStructural = "forge_bim_structural",
92
+ ForgeBim4D = "forge_bim_4d",
93
+ ForgeBimMep = "forge_bim_mep"
88
94
  }
89
95
  export type BimLayersQueryParams = {
90
96
  layerType: BIMLayerTypes;
@@ -1,5 +1,5 @@
1
- import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule } from "@/types";
2
- import { DateRangeFilter } from "@/types/time";
1
+ import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase } from "@evercam/api/types";
2
+ import { DateRangeFilter } from "@evercam/api/types/time";
3
3
  export type CameraExid = string;
4
4
  export type CamerasByExid = EntityByExid<Camera>;
5
5
  export type Cartesian3 = {
@@ -17,7 +17,7 @@ export type Camera = {
17
17
  status: string;
18
18
  storageDuration: string;
19
19
  };
20
- createdAt: DateTime_Z_micros;
20
+ createdAt: string;
21
21
  description: string | null;
22
22
  discoverable: boolean;
23
23
  external: {
@@ -37,14 +37,14 @@ export type Camera = {
37
37
  featureFlags: Array<CameraFeatureFlag>;
38
38
  fovAngle: number;
39
39
  fovRadius: number;
40
- heading: null;
40
+ heading: number;
41
41
  id: CameraExid;
42
42
  exid: CameraExid;
43
43
  isOnline: boolean;
44
44
  isPowerScheduleActive: boolean;
45
45
  isPublic: boolean;
46
- lastOnlineAt: DateTime_Z_micros;
47
- lastPolledAt: DateTime_Z_micros;
46
+ lastOnlineAt: string;
47
+ lastPolledAt: string;
48
48
  location: {
49
49
  lat: number;
50
50
  lng: number;
@@ -73,7 +73,8 @@ export type Camera = {
73
73
  rtmp: string;
74
74
  };
75
75
  ptz: boolean;
76
- rights: string;
76
+ recordingFromNvr: boolean;
77
+ model?: CameraModel;
77
78
  roll: string | null;
78
79
  routerId: number;
79
80
  status: CameraStatus;
@@ -81,81 +82,86 @@ export type Camera = {
81
82
  thumbnailUrl: string;
82
83
  largeThumbnailUrl?: string;
83
84
  timezone: string;
84
- updatedAt: DateTime_Z_micros;
85
+ updatedAt: string;
85
86
  vendorName: string;
86
87
  isAccessRestricted?: boolean;
87
- kitAlarms?: string[];
88
+ kitAlarms?: KitAlarm[];
88
89
  };
89
90
  export type AdminCamera = {
90
- cameraHost: string;
91
- cameraHttpPort: number;
92
- cameraModel: string;
93
- cameraPassword: string;
94
- cameraPictureEndpoint: string;
95
- cameraRtspPort: number;
96
- cameraScheme: string;
97
- cameraUsername: string;
98
- cameraFirmwareVersion: string;
99
- cameraTimezone: string;
100
- cloudRecordingFrequency: number;
101
- cloudRecordingId: number;
102
- cloudRecordingSchedule: Schedule;
103
- cloudRecordingStatus: string;
104
- cloudRecordingStorageDuration: number;
105
- createdAt: DateTime_Z_micros;
106
- description: null;
107
- discoverable: false;
108
- exid: CameraExid;
109
- featureFlags: CameraFeatureFlag[];
110
- fovAngle: 45.0;
111
- fovRadius: number;
112
- heading: null;
113
91
  id: number;
114
- isPowerScheduleActive: true;
115
- isPublic: false;
116
- kitId?: number;
117
- lastOnlineAt: DateTime_Z_micros;
118
- lastPolledAt: DateTime_Z_micros;
119
- location: {
120
- lat: number;
121
- lng: number;
122
- };
123
- macAddress: string;
92
+ exid: CameraExid;
124
93
  name: string;
125
- nvrChannel: null;
126
- nvrDeviceId: string;
127
- nvrHost: string;
128
- nvrHttpPort: number;
129
- nvrModel: NvrModel;
130
- nvrPassword: string;
131
- nvrPictureEndpoint: string;
132
- nvrRtspPort: number;
133
- nvrScheme: string;
134
- nvrUsername: string;
135
- offlineReason: null;
136
- pitch: null;
137
- powerSchedule: Schedule;
138
- projectExid: string;
139
- projectFeatureFlags: ProjectFeatureFlag[];
140
- projectId: number;
141
- projectName: string;
142
- ptz: false;
143
- recordingFromNvr: false;
144
- roll: null;
145
- routerId: number;
146
94
  status: string;
147
- storageProviders: [];
148
- streamEndpoint: string;
149
- timezone: string;
150
- updatedAt: DateTime_Z_micros;
151
- userApiId: string;
152
- userApiKey: string;
95
+ description: string | null;
96
+ createdAt: string;
97
+ updatedAt: string;
98
+ lastOnlineAt: string | null;
99
+ lastPolledAt: string | null;
100
+ decommissionedAt: string | null;
101
+ deletedAt?: string | null;
102
+ projectId: number | null;
103
+ projectExid: string | null;
104
+ projectName: string | null;
105
+ projectFeatureFlags: Array<ProjectFeatureFlag | string>;
106
+ userId: number | null;
153
107
  userEmail: string;
154
108
  userFullname: string;
155
- userId: number;
156
- zohoId: string;
109
+ userApiId?: string;
110
+ userApiKey?: string;
111
+ isPublic: boolean;
112
+ sharedWithConstruction?: boolean;
113
+ timezone: string | null;
114
+ location?: {
115
+ lat: number;
116
+ lng: number;
117
+ } | null;
118
+ fovAngle?: number | null;
119
+ fovRadius?: number | null;
120
+ heading?: number | null;
121
+ pitch?: number | null;
122
+ roll?: number | null;
123
+ cameraModel?: string | null;
124
+ cameraHost?: string | null;
125
+ cameraHttpPort?: number | null;
126
+ cameraRtspPort?: number | null;
127
+ cameraScheme?: string | null;
128
+ cameraUsername?: string | null;
129
+ cameraPassword?: string | null;
130
+ cameraPictureEndpoint?: string | null;
131
+ rtspUrl?: string | null;
132
+ httpUrl?: string | null;
133
+ deviceId?: string | null;
134
+ nvrId?: number | null;
135
+ nvrDeviceId?: string | null;
136
+ nvrModel?: NvrModel | string | null;
137
+ nvrHost?: string | null;
138
+ nvrHttpPort?: number | null;
139
+ nvrRtspPort?: number | null;
140
+ nvrScheme?: string | null;
141
+ nvrUsername?: string | null;
142
+ nvrPassword?: string | null;
143
+ nvrPictureEndpoint?: string | null;
144
+ streamEndpoint?: string | null;
145
+ routerId?: number | null;
146
+ kitId?: number | null;
147
+ powerType?: string | null;
148
+ powerSchedule?: ScheduleLowercase | Record<string, string[]>;
149
+ isPowerScheduleActive?: boolean;
150
+ discoverable?: boolean;
151
+ recordingFromNvr?: boolean;
152
+ cloudRecordingFrequency?: number | null;
153
+ cloudRecordingId?: number | null;
154
+ cloudRecordingStatus?: string | null;
155
+ cloudRecordingSchedule?: ScheduleLowercase | null;
156
+ cloudRecordingStorageDuration?: number | null;
157
+ anprSources?: string[];
158
+ storageProviders?: string[];
159
+ featureFlags?: CameraFeatureFlag[];
160
+ zohoId?: string | null;
161
+ offlineReason?: string | null;
162
+ macAddress?: string | null;
163
+ type?: string[];
157
164
  thumbnailUrl?: string;
158
- sharedWithConstruction: boolean;
159
165
  };
160
166
  export type CameraMapMarker = {
161
167
  isOnline: boolean;
@@ -200,7 +206,8 @@ export declare enum CameraFeatureFlag {
200
206
  ObjectDetection = "object_detection",
201
207
  Segmentation = "segmentation",
202
208
  SegmentationAutoLabelling = "segmentation_auto_labelling",
203
- PpeMonitoring = "ppe_monitoring"
209
+ PpeMonitoring = "ppe_monitoring",
210
+ NoLiveView = "no_live_view"
204
211
  }
205
212
  export type CameraLogsRequestPayload = {
206
213
  limit: number;