@evercam/api 1.0.0-641518e8f → 1.0.0-6579824b6

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 (154) hide show
  1. package/README.md +6 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +224 -0
  3. package/dist/api/api/adminApi.d.ts +394 -0
  4. package/dist/api/api/aiApi.d.ts +251 -0
  5. package/dist/api/api/authzApi.d.ts +40 -0
  6. package/dist/api/{client → api/client}/axios.d.ts +2 -1
  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/api/evercamApi.d.ts +360 -0
  12. package/dist/api/api/evercamLabsApi.d.ts +34 -0
  13. package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
  14. package/dist/api/api/index.d.ts +14 -0
  15. package/dist/api/api/ingestApi.d.ts +170 -0
  16. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +13 -4
  17. package/dist/api/api/reportsApi.d.ts +15 -0
  18. package/dist/api/api/videoWallApi.d.ts +9 -0
  19. package/dist/api/api/weatherApi.d.ts +9 -0
  20. package/dist/api/index.d.ts +3 -13
  21. package/dist/api/types/360.d.ts +365 -0
  22. package/dist/api/types/aconex.d.ts +143 -0
  23. package/dist/api/types/admin.d.ts +51 -0
  24. package/dist/api/types/aiConfigs.d.ts +244 -0
  25. package/dist/{types → api/types}/analytics.d.ts +260 -121
  26. package/dist/{types → api/types}/anpr.d.ts +64 -19
  27. package/dist/api/types/apiKey.d.ts +70 -0
  28. package/dist/api/types/auditLogs.d.ts +242 -0
  29. package/dist/api/types/authz.d.ts +132 -0
  30. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  31. package/dist/api/types/automation.d.ts +123 -0
  32. package/dist/{types → api/types}/axios.d.ts +32 -12
  33. package/dist/{types → api/types}/bim.d.ts +39 -10
  34. package/dist/{types → api/types}/camera.d.ts +153 -172
  35. package/dist/api/types/comments.d.ts +64 -0
  36. package/dist/api/types/company.d.ts +114 -0
  37. package/dist/{types → api/types}/compare.d.ts +21 -6
  38. package/dist/api/types/connector.d.ts +21 -0
  39. package/dist/api/types/coolify.d.ts +36 -0
  40. package/dist/{types → api/types}/countries.d.ts +0 -7
  41. package/dist/{types → api/types}/credentials.d.ts +1 -0
  42. package/dist/api/types/detections.d.ts +117 -0
  43. package/dist/api/types/drone.d.ts +106 -0
  44. package/dist/api/types/emailMessages.d.ts +27 -0
  45. package/dist/{types → api/types}/errors.d.ts +30 -1
  46. package/dist/{types → api/types}/gateReport.d.ts +49 -168
  47. package/dist/api/types/gateReportManagement.d.ts +170 -0
  48. package/dist/api/types/hammertech.d.ts +98 -0
  49. package/dist/api/types/hdd.d.ts +88 -0
  50. package/dist/{types → api/types}/index.d.ts +27 -5
  51. package/dist/api/types/ingest.d.ts +314 -0
  52. package/dist/{types → api/types}/kit.d.ts +132 -101
  53. package/dist/api/types/map.d.ts +16 -0
  54. package/dist/{types → api/types}/media.d.ts +9 -3
  55. package/dist/api/types/notification.d.ts +107 -0
  56. package/dist/{types → api/types}/nvr.d.ts +10 -9
  57. package/dist/api/types/oauth.d.ts +62 -0
  58. package/dist/api/types/observationEvents.d.ts +141 -0
  59. package/dist/api/types/observations.d.ts +89 -0
  60. package/dist/api/types/planner.d.ts +125 -0
  61. package/dist/api/types/posthog.d.ts +53 -0
  62. package/dist/api/types/procore.d.ts +229 -0
  63. package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
  64. package/dist/api/types/project.d.ts +259 -0
  65. package/dist/{types → api/types}/recording.d.ts +10 -16
  66. package/dist/api/types/recycleBin.d.ts +14 -0
  67. package/dist/api/types/reports.d.ts +108 -0
  68. package/dist/api/types/ring.d.ts +53 -0
  69. package/dist/{types → api/types}/roi.d.ts +2 -9
  70. package/dist/{types → api/types}/routeParams.d.ts +5 -2
  71. package/dist/{types → api/types}/router.d.ts +20 -1
  72. package/dist/{types → api/types}/shared.d.ts +43 -40
  73. package/dist/api/types/shares.d.ts +45 -0
  74. package/dist/{types → api/types}/sim.d.ts +6 -6
  75. package/dist/api/types/siteAnalytics.d.ts +285 -0
  76. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  77. package/dist/api/types/siteView.d.ts +78 -0
  78. package/dist/api/types/smartSeach.d.ts +5 -0
  79. package/dist/api/types/snapshots.d.ts +104 -0
  80. package/dist/api/types/socket.d.ts +4 -0
  81. package/dist/api/types/sso.d.ts +55 -0
  82. package/dist/api/types/storageProvider.d.ts +19 -0
  83. package/dist/api/types/storyblok.d.ts +27 -0
  84. package/dist/api/types/streaming.d.ts +97 -0
  85. package/dist/api/types/systemCheck.d.ts +11 -0
  86. package/dist/api/types/tag.d.ts +12 -0
  87. package/dist/api/types/time.d.ts +7 -0
  88. package/dist/{types → api/types}/timelapse.d.ts +22 -11
  89. package/dist/{types → api/types}/user.d.ts +134 -40
  90. package/dist/api/types/videoWall.d.ts +66 -0
  91. package/dist/api/types/weather.d.ts +153 -0
  92. package/dist/{types → api/types}/widget.d.ts +105 -20
  93. package/dist/api/types/xweather.d.ts +12 -0
  94. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  95. package/dist/index.d.ts +2 -3
  96. package/dist/index.js +3267 -1100
  97. package/dist/index.js.map +1 -1
  98. package/dist/index.umd.cjs +1 -1
  99. package/dist/index.umd.cjs.map +1 -1
  100. package/dist/shared/api/index.d.ts +3 -0
  101. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  102. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  103. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  104. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  105. package/dist/shared/types/components.d.ts +568 -0
  106. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  107. package/dist/shared/types/droneUpload.d.ts +93 -0
  108. package/dist/shared/types/imagePlayer.d.ts +41 -0
  109. package/dist/shared/types/index.d.ts +9 -0
  110. package/dist/shared/types/observations.d.ts +25 -0
  111. package/dist/shared/types/rbac.d.ts +67 -0
  112. package/dist/shared/types/report.d.ts +107 -0
  113. package/dist/shared/types/timeline.d.ts +10 -0
  114. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  115. package/dist/shared/utils/datePresets.d.ts +31 -0
  116. package/package.json +10 -7
  117. package/dist/api/3dFirebaseApi.d.ts +0 -9
  118. package/dist/api/adminApi.d.ts +0 -288
  119. package/dist/api/aiApi.d.ts +0 -73
  120. package/dist/api/authzApi.d.ts +0 -21
  121. package/dist/api/evercamApi.d.ts +0 -266
  122. package/dist/api/evercamLabsApi.d.ts +0 -51
  123. package/dist/api/ingestApi.d.ts +0 -65
  124. package/dist/api/videoWallApi.d.ts +0 -9
  125. package/dist/api/weatherApi.d.ts +0 -25
  126. package/dist/types/360.d.ts +0 -83
  127. package/dist/types/aconex.d.ts +0 -45
  128. package/dist/types/auditLogs.d.ts +0 -99
  129. package/dist/types/automation.d.ts +0 -6
  130. package/dist/types/comments.d.ts +0 -36
  131. package/dist/types/company.d.ts +0 -46
  132. package/dist/types/connector.d.ts +0 -16
  133. package/dist/types/copilot.d.ts +0 -156
  134. package/dist/types/detections.d.ts +0 -62
  135. package/dist/types/devices.d.ts +0 -228
  136. package/dist/types/drone.d.ts +0 -17
  137. package/dist/types/ingest.d.ts +0 -43
  138. package/dist/types/map.d.ts +0 -4
  139. package/dist/types/notification.d.ts +0 -27
  140. package/dist/types/procore.d.ts +0 -76
  141. package/dist/types/project.d.ts +0 -120
  142. package/dist/types/shares.d.ts +0 -192
  143. package/dist/types/siteAnalytics.d.ts +0 -5
  144. package/dist/types/sitePlanner.d.ts +0 -23
  145. package/dist/types/snapshots.d.ts +0 -50
  146. package/dist/types/storageServers.d.ts +0 -4
  147. package/dist/types/streaming.d.ts +0 -119
  148. package/dist/types/time.d.ts +0 -19
  149. package/dist/types/vendorModel.d.ts +0 -15
  150. package/dist/types/videoWall.d.ts +0 -33
  151. package/dist/types/weather.d.ts +0 -83
  152. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  153. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  154. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -1,51 +0,0 @@
1
- import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, CountByPeriod, CountsParams, DetectionsFilters, DetectionsPresenceByLabel, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraVideoConfig, MilesightRequestParams, PaginatedItems, SegmentsByLabel, SegmentsPresenceByLabel, SegmentsSimilaritySearchParams, TrackingsByLabel } from "@evercam/api/types";
2
- import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
3
- export declare function getLabsBaseUrl(): string | null | undefined;
4
- export declare const EvercamLabsApi: {
5
- milesight: {
6
- getVideoConfig({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraVideoConfig>;
7
- getNetworkConfiguration({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraNetworkConfiguration>;
8
- getSystemSettings({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSystemSettings>;
9
- getTimeSettings({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSystemSettings>;
10
- getOsdConfiguration({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraOsdConfiguration>;
11
- getSdCardInfo({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSdCardInfo>;
12
- };
13
- copilot: {
14
- getAllConversations(params: LabsPaginationParams & {
15
- cameraExid?: string;
16
- projectExid?: string;
17
- user?: string;
18
- }): Promise<PaginatedItems<CopilotConversation>>;
19
- getOneConversation(conversationId: number): Promise<PaginatedItems<CopilotConversation>>;
20
- getConversationMessages(conversationId: number, params: LabsPaginationParams): Promise<PaginatedItems<CopilotMessage>>;
21
- getMessageSteps(message: CopilotMessage): Promise<CopilotMessageStep[]>;
22
- submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
23
- };
24
- detections: {
25
- getDetectionsTracking(cameraExid: CameraExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
26
- getSegmentsMasks(cameraExid: CameraExid, params: DetectionsFilters): Promise<SegmentsByLabel>;
27
- getDetectionsPresenceDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<DetectionsPresenceByLabel>;
28
- getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<SegmentsPresenceByLabel>;
29
- getCranesMovement({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<CountByPeriod[]>;
30
- getSimilarSegmentsInTimeIntervals({ cameraExid, segmentId, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
31
- };
32
- googleCloudStorage: {
33
- listFiles(prefix?: string): Promise<{
34
- files: string[];
35
- folders: string[];
36
- }>;
37
- getSignedUrl(fileName: string): Promise<{
38
- url: string;
39
- }>;
40
- };
41
- luminance: {
42
- getReadings(params: {
43
- cameraExid: CameraExid;
44
- fromDate: string;
45
- toDate: string;
46
- }): Promise<LuminanceReading[]>;
47
- };
48
- kits: {
49
- getMetrics(kitId: string, metrics: GrafanaMetricId[], period?: KitMetricPeriod): Promise<GrafanaKitMetrics>;
50
- };
51
- };
@@ -1,65 +0,0 @@
1
- import type { _360AssetsQueryParams, _360AssetsRequestPayload, _360AssetsUploadPayload, BimUploadPayload, BimUploadsQueryParams, CalculateMeasuringOperationRequestPayload, DronesQueryParams, DroneUploadUpdateRequestPayload, FlightImagesQueryParams, Generate360MapRequestPayload, InspectionToolRequestPayload, MobileCaptureSnapshot } from "@evercam/api/types";
2
- export declare const IngestApi: {
3
- drone: {
4
- createUpload(projectId: string, params: {
5
- uploadedBy: string;
6
- }): Promise<import("axios").AxiosResponse<any, any>>;
7
- reprocessDrone(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
8
- getDrones(params: {
9
- params: Partial<DronesQueryParams>;
10
- }): Promise<import("axios").AxiosResponse<any, any>>;
11
- getArchive(id: number, params: {
12
- dataType: string;
13
- }): Promise<import("axios").AxiosResponse<any, any>>;
14
- deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
15
- prepareForUpload(projectId: string, params: {
16
- uploadedBy: string;
17
- token: string;
18
- }): Promise<import("axios").AxiosResponse<any, any>>;
19
- upload(projectId: string, params: {
20
- uploadedBy: string;
21
- token: string;
22
- }, payload: DroneUploadUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
23
- verifyToken(projectId: string, params: {
24
- token: string;
25
- }): Promise<import("axios").AxiosResponse<any, any>>;
26
- calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
27
- inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
28
- isInspectionEnabled(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
29
- getDroneQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
30
- getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<import("axios").AxiosResponse<any, any>>;
31
- };
32
- assets360: {
33
- get360Assets(params: {
34
- params: Partial<_360AssetsQueryParams>;
35
- }): Promise<import("axios").AxiosResponse<any, any>>;
36
- deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
37
- getArchive(id: number, params: {
38
- dateType: string;
39
- }): Promise<import("axios").AxiosResponse<any, any>>;
40
- createUpload(projectId: string, params: _360AssetsRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
41
- upload(id: number, params: Record<string, unknown>, payload: _360AssetsUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
42
- generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
43
- get360QueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
44
- };
45
- bim: {
46
- createUpload(projectId: string, params: {
47
- uploadedBy: string;
48
- }): Promise<import("axios").AxiosResponse<any, any>>;
49
- getBIMs(params: {
50
- params: Partial<BimUploadsQueryParams>;
51
- }): Promise<import("axios").AxiosResponse<any, any>>;
52
- getArchive(id: number): Promise<import("axios").AxiosResponse<any, any>>;
53
- deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
54
- upload(projectId: string, params: {
55
- id: string;
56
- name: string;
57
- }, payload: BimUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
58
- };
59
- mobileCapture: {
60
- getProjectMobileAssets(params: Record<string, unknown>): Promise<MobileCaptureSnapshot[]>;
61
- getMobileAssetPhoto(assetId: string | number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
62
- };
63
- getTotalQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
64
- checkFlightAvailableFeatures(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
65
- };
@@ -1,9 +0,0 @@
1
- import { VideoWallPreset } from "@evercam/api/types";
2
- export declare const VideoWallApi: {
3
- presets: {
4
- getProjectPresets(email: string, projectId: number): Promise<import("axios").AxiosResponse<any, any>>;
5
- saveProjectPreset(email: string, projectId: string, payload: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
6
- getGlobalPreset(email: string): Promise<VideoWallPreset>;
7
- saveGlobalPreset(email: string, payload: VideoWallPreset): Promise<void>;
8
- };
9
- };
@@ -1,25 +0,0 @@
1
- import { HistoryWeatherRequestPayload, WeatherDataResponse, WeatherProvider, WeatherResponsePayload } from "@evercam/api/types";
2
- export declare const WeatherApi: {
3
- current: {
4
- getCurrentWeather({ projectExid, weatherProvider, }: {
5
- projectExid: string;
6
- weatherProvider: WeatherProvider;
7
- }): Promise<WeatherResponsePayload> | undefined;
8
- };
9
- historical: {
10
- getWeatherBeforeDate({ projectExid, weatherProvider, payload, }: {
11
- projectExid: string;
12
- weatherProvider: WeatherProvider;
13
- payload: HistoryWeatherRequestPayload;
14
- }): Promise<WeatherResponsePayload> | undefined;
15
- };
16
- weather: {
17
- getWeatherData({ projectExid, weatherProvider, payload, }: {
18
- projectExid: string;
19
- weatherProvider: WeatherProvider;
20
- payload: HistoryWeatherRequestPayload;
21
- }): Promise<{
22
- data: WeatherDataResponse[];
23
- }> | undefined;
24
- };
25
- };
@@ -1,83 +0,0 @@
1
- import { DateType } from "@/types/time";
2
- export type _360CameraParams = {
3
- azimuthAngle: number;
4
- polarAngle: number;
5
- };
6
- export type _360Floor = {
7
- floorID: string;
8
- name: string;
9
- };
10
- export type _360Scene = {
11
- date: string;
12
- dateID: string;
13
- floors: _360Floor[];
14
- polarAngle: number;
15
- azimuthAngle: number;
16
- };
17
- export type _360ProjectJsonResponse = {
18
- dates: _360Scene[];
19
- [key: string]: any;
20
- };
21
- export type MobileCaptureSnapshot = {
22
- id: string;
23
- uploadedBy: string;
24
- updatedAt: string;
25
- assetType: string;
26
- thumbnailUrl: string;
27
- };
28
- export declare enum _360UrlParams {
29
- DateId = "date_id",
30
- Floor = "floor",
31
- Marker = "marker",
32
- PolarAngle = "polarAngle",
33
- AzimuthAngle = "azimuthAngle"
34
- }
35
- export declare enum _360AssetType {
36
- Video = "video",
37
- Image = "image",
38
- Model = "model",
39
- Route = "route",
40
- MobilePhoto = "mobile_photos",
41
- MobileAudio = "mobile_audios"
42
- }
43
- export declare enum _360IntergrationType {
44
- Matterport = "Matterport",
45
- OpenSpace = "Openspace",
46
- HoloBuilder = "Holobuilder",
47
- DroneDeploy = "Dronedeploy",
48
- Evercam = "Evercam"
49
- }
50
- export type _360AssetsQueryParams = {
51
- page: number;
52
- limit: number;
53
- projectID: string;
54
- date: DateType;
55
- floor: string;
56
- id: string;
57
- };
58
- export type _360AssetsRequestPayload = {
59
- projectId: string;
60
- date: DateType;
61
- floor: string;
62
- uploadedBy?: string;
63
- };
64
- export type _360AssetsUploadPayload = {
65
- targetPointsCount: number;
66
- assetType: string;
67
- upload: {
68
- url: string;
69
- title: string;
70
- fileExtension: string;
71
- }[];
72
- deviceSerial: string;
73
- startPosition: string;
74
- endPosition: string;
75
- isTimelapse: boolean;
76
- };
77
- export type Generate360MapRequestPayload = {
78
- dateId: string;
79
- floorId: string;
80
- cameraOffset: string;
81
- startPoint: string;
82
- endPoint: string;
83
- };
@@ -1,45 +0,0 @@
1
- export type AconexUserProjectsResponsePayload = Array<{
2
- id: number;
3
- name: string;
4
- shortName: string;
5
- startDate: string;
6
- endDate: string;
7
- }>;
8
- export type AconexDocumentSchemaField = {
9
- dataType: AconexDocumentDataType;
10
- identifier: string;
11
- schemaValues: Array<{
12
- id: string;
13
- value: string;
14
- }>;
15
- fieldName: string;
16
- mandatoryStatus: AconexMandatoryStatus;
17
- componentType?: AconexFormComponentType;
18
- items?: Array<any>;
19
- disabled?: boolean;
20
- };
21
- export declare enum AconexDocumentDataType {
22
- Long = "LONG",
23
- Integer = "INTEGER",
24
- String = "STRING",
25
- Boolean = "BOOLEAN",
26
- Date = "DATE"
27
- }
28
- export declare enum AconexFormComponentType {
29
- Select = "SelectField",
30
- Text = "TextField",
31
- DateTime = "DateTimeField",
32
- Switch = "SwitchField"
33
- }
34
- export declare enum AconexMandatoryStatus {
35
- Mandatory = "MANDATORY",
36
- NotMandatory = "NOT_MANDATORY"
37
- }
38
- export type AconexAuthCallbackParams = {
39
- code: string;
40
- location: string;
41
- };
42
- export type AconexEditedImageUploadRequestPayload = {
43
- projectExid: string;
44
- snapshot: string;
45
- };
@@ -1,99 +0,0 @@
1
- import { CameraStatus, DateType, PaginationParams } from "@/types";
2
- export declare enum AuditLogActionType {
3
- VH_STATUS = "vh_status",
4
- CR_UPDATED = "cr_updated",
5
- CR_CREATED = "cr_created",
6
- ONLINE = "online",
7
- OFFLINE = "offline",
8
- ON_HOLD = "on_hold",
9
- WAITING = "waiting",
10
- DECOMMISSIONED = "decommissioned",
11
- UNDER_MAINTENANCE = "under_maintenance",
12
- WAITING_FOR_SITE_VISIT = "waiting_for_site_visit",
13
- SMS = "sms",
14
- CUSTOM = "custom",
15
- PUBLIC_NOTE = "public_note",
16
- SIM = "sim",
17
- LOGIN = "login",
18
- LOGOUT = "logout",
19
- CREATE = "create",
20
- UPDATE = "update",
21
- DELETE = "delete",
22
- DEVICE_SETTINGS = "device_settings",
23
- LINK_SIM_WITH_ROUTER = "link_sim_with_router",
24
- UNLINK_SIM_FROM_ROUTER = "unlink_sim_from_router",
25
- LINK_CAMERA_WITH_ROUTER = "link_camera_with_router",
26
- UNLINK_CAMERA_FROM_ROUTER = "unlink_camera_from_router",
27
- SHARE = "share",
28
- UPDATE_SHARE = "update_share",
29
- DELETE_SHARE = "delete_share",
30
- SHARE_REQUEST = "share_request",
31
- DELETE_SHARE_REQUEST = "delete_share_request",
32
- TRANSFER_OWNERSHIP = "transfer_ownership",
33
- BIM_NOTE = "bim_note",
34
- GATE_REPORT_NOTE = "gate_report_note"
35
- }
36
- export type AuditLog = {
37
- id: number;
38
- action: AuditLogActionType;
39
- details: Record<string, any>;
40
- insertedAt: DateType;
41
- entity: string;
42
- user_details: {
43
- browser: string;
44
- country: string;
45
- countryCode: string;
46
- device: string | null;
47
- ip: string;
48
- os: string | null;
49
- };
50
- who: string;
51
- };
52
- export type AuditLogsParams = PaginationParams & {
53
- routerId: number;
54
- cameraId: number;
55
- entity: string;
56
- byRouter: boolean;
57
- byCamera: boolean;
58
- byProject: boolean;
59
- action: string;
60
- };
61
- export type CameraLogsQueryParams = {
62
- historyDays: number;
63
- accountId?: string;
64
- status: CameraStatus[];
65
- };
66
- export type CameraLogItem = {
67
- start: DateType;
68
- state: CameraStatus;
69
- end: DateType;
70
- };
71
- export type CameraLog = {
72
- data: CameraLogItem[];
73
- measure: string;
74
- };
75
- export type CameraAuditLog = {
76
- id: number;
77
- action: AuditLogActionType;
78
- details: {
79
- error_body?: string;
80
- exid: string;
81
- id: number;
82
- name: string;
83
- reason?: string;
84
- };
85
- insertedAt: DateType;
86
- entity: string;
87
- user_details: {
88
- ip: string;
89
- country: string;
90
- countryCode: string;
91
- agent: string;
92
- };
93
- who: string;
94
- };
95
- export type CameraAuditLogsQueryParams = PaginationParams & {
96
- from: string;
97
- to: string;
98
- action: AuditLogActionType[];
99
- };
@@ -1,6 +0,0 @@
1
- export declare enum AutomationProvider {
2
- Aconex = "aconex",
3
- Procore = "procore",
4
- Autodesk = "autodesk",
5
- Email = "email"
6
- }
@@ -1,36 +0,0 @@
1
- import { CameraExid, DateType, ProjectExid } from "@/types";
2
- export type CommentsRequestPayload = {
3
- cameraExid: CameraExid;
4
- fromDate: string;
5
- toDate: string;
6
- page?: number;
7
- limit?: number;
8
- };
9
- export type CommentPosition = {
10
- coordinates: Array<number>;
11
- type: string;
12
- };
13
- export type Comment = {
14
- fromDate?: string;
15
- toDate?: string;
16
- timestamp: string;
17
- projectExid: ProjectExid;
18
- updatedAt?: string;
19
- id?: number;
20
- cameraExid: CameraExid;
21
- content: string;
22
- createdAt?: string;
23
- creatorEmail?: string;
24
- creatorName?: string;
25
- position2d: CommentPosition;
26
- canDelete?: boolean;
27
- };
28
- export type CommentCreationRequestPayload = {
29
- fromDate?: DateType;
30
- toDate?: DateType;
31
- timestamp: DateType;
32
- projectExid: ProjectExid;
33
- cameraExid: CameraExid;
34
- content: string;
35
- position2d: Array<number>;
36
- };
@@ -1,46 +0,0 @@
1
- import type { DateType, PaginationParams } from "@/types";
2
- export type CompanyUser = {
3
- id: number;
4
- fullname: string;
5
- email: string;
6
- eventsCount: number;
7
- lastSeenAt: string;
8
- active: boolean;
9
- };
10
- export type CompanyProject = {
11
- exid: string;
12
- name: string;
13
- status: string;
14
- startedAt: DateType;
15
- };
16
- export type Company = {
17
- id: number;
18
- exid: string;
19
- name: string;
20
- zohoId: string;
21
- domains: string;
22
- linkedinUrl: string;
23
- sessions: number;
24
- projects: number;
25
- cameras: number;
26
- users: number;
27
- activeUsers: number;
28
- createdAt: DateType;
29
- };
30
- export type CompanyQueryParams = PaginationParams & {
31
- name: string;
32
- exid: string;
33
- domains: string;
34
- projects: string;
35
- cameras: string;
36
- users: string;
37
- activeUsers: string;
38
- sessions: string;
39
- };
40
- export type CompanyUpdatePayload = {
41
- name: string;
42
- exid: string;
43
- linkedinUrl?: string;
44
- domains?: string;
45
- zohoId?: string;
46
- };
@@ -1,16 +0,0 @@
1
- export type ConnectorDetail = {
2
- login: string;
3
- hostname: string;
4
- };
5
- export declare enum Connector {
6
- Aconex = "aconex",
7
- Procore = "procore",
8
- Autodesk = "autodesk",
9
- AutodeskViewer = "autodesk_viewer",
10
- VoyageControl = "voyage_control"
11
- }
12
- export type ConnectorResponsePayload = Array<{
13
- hostname: string;
14
- login: string;
15
- provider: string;
16
- }>;
@@ -1,156 +0,0 @@
1
- import type { AnalyticsEventPageId, CameraExid, CameraFeatureFlag, CameraStatus, ProjectExid, ProjectFeatureFlag, ProjectStatus } from "@/types";
2
- export declare enum CopilotMessageAuthor {
3
- Copilot = "copilot",
4
- User = "user"
5
- }
6
- export declare enum CopilotMessageType {
7
- Text = "text",
8
- Progress = "progress",
9
- Error = "error",
10
- Json = "json"
11
- }
12
- export type CopilotMessage = {
13
- content: string;
14
- url?: string;
15
- type: CopilotMessageType;
16
- id?: number;
17
- conversationId?: number;
18
- };
19
- export declare enum CopilotStepId {
20
- SendToLLM = "send_to_llm",
21
- FunctionCallRequest = "function_call_request",
22
- ExecFunctionCall = "exec_function_call",
23
- SendToUser = "send_to_user",
24
- RequestMissingFields = "request_missing_fields",
25
- CompletedFieldsResponse = "completed_fields_response",
26
- SendRawToolCallResponse = "send_raw_tool_call_response",
27
- SubmitToolOutputsToLLM = "submit_tool_outputs_to_llm",
28
- CancelCall = "cancel_call"
29
- }
30
- export declare enum CopilotMissingFieldsLabels {
31
- ProjectExid = "Project",
32
- CameraExid = "Camera",
33
- FromDate = "Start date",
34
- ToDate = "End date"
35
- }
36
- export type CopilotMissingField = {
37
- name: string;
38
- label: string;
39
- value: any;
40
- type: string;
41
- toolId: string;
42
- };
43
- export type CopilotMissingFields = Record<number, CopilotMissingField[]>;
44
- export type UserConversations = CopilotConversation & {
45
- Message: CopilotMessage[];
46
- };
47
- export declare enum CopilotSocketEvent {
48
- ConversationStart = "conversation:start",
49
- ConversationCreated = "conversation:created",
50
- LLMMessageChunk = "llm:message:chunk",
51
- LLMMessageComplete = "llm:message:complete",
52
- LLMMessageLoading = "llm:message:loading",
53
- LLMRequestCancel = "llm:request:cancel",
54
- LLMRequestCanceled = "llm:request:canceled",
55
- UserMessage = "user:message",
56
- ContextError = "chat:contextError",
57
- ChatError = "chat:chatError",
58
- MissingFields = "chat:missingFields",
59
- MissingFieldsCompleted = "chat:missingFields:completed",
60
- SystemToolCallResponse = "system:toolCall:response"
61
- }
62
- export type CopilotConversation = {
63
- id: number;
64
- user: string;
65
- model: string;
66
- context: string;
67
- cameraExid: CameraExid;
68
- projectExid: ProjectExid;
69
- startDate: string;
70
- endDate: string;
71
- messagesCount: number;
72
- };
73
- export declare enum CopilotProvider {
74
- Gemini = "gemini",
75
- ChatGPT = "chatgpt"
76
- }
77
- export declare enum CopilotSuggestion {
78
- UserManual = "user_manual",
79
- GateReport = "gate_report",
80
- Weather = "weather",
81
- Clip = "clip",
82
- Timelapse = "timelapse",
83
- Chart = "chart"
84
- }
85
- export declare enum CopilotChatProvider {
86
- Gemini = "gemini",
87
- ChatGpt = "chatGpt"
88
- }
89
- export declare enum CopilotLayout {
90
- Floating = "floating"
91
- }
92
- export declare enum CopilotToolId {
93
- GetReports = "getReports",
94
- GetVehiclesDetections = "getVehiclesDetections",
95
- GetVehiclesDetectionsCounts = "getVehiclesDetectionsCounts",
96
- GetWeather = "getWeather",
97
- CreateClip = "createClip",
98
- NavigateToPage = "navigateToPage",
99
- CreateTimelapse = "createTimelapse",
100
- RequestMissingFields = "requestMissingFields",
101
- RenderCharts = "renderCharts"
102
- }
103
- export type CopilotSystemToolCallResponse<I = unknown, O = unknown> = {
104
- toolId?: CopilotToolId;
105
- input?: I;
106
- output?: O;
107
- };
108
- export type CopilotCamera = {
109
- name: string;
110
- exid: CameraExid;
111
- status: CameraStatus;
112
- featureFlags?: CameraFeatureFlag[];
113
- };
114
- export type CopilotProject = {
115
- name: string;
116
- exid: ProjectExid;
117
- status: ProjectStatus;
118
- featureFlags?: ProjectFeatureFlag[];
119
- cameras?: CopilotCamera[];
120
- };
121
- export type CopilotConversationContext = {
122
- availableProjects: CopilotProject[];
123
- };
124
- export type CopilotMessageContext = {
125
- pageId?: AnalyticsEventPageId;
126
- selectedCamera?: CopilotCamera;
127
- selectedProject?: CopilotProject;
128
- };
129
- export type CopilotMessageStep = {
130
- args: string[];
131
- depth: number;
132
- id: number;
133
- message_id: number;
134
- step: CopilotStepId;
135
- timestamp: string;
136
- };
137
- export declare enum CopilotMissingFieldComponent {
138
- Select = "SelectField",
139
- DateTime = "DateTimeField",
140
- Schedule = "ScheduleField",
141
- MultiOptions = "MultiOptionsField",
142
- Switch = "SwitchField"
143
- }
144
- export declare enum CopilotMissingFieldName {
145
- ProjectExid = "projectExid",
146
- CameraExid = "cameraExid",
147
- FromDate = "fromDate",
148
- ToDate = "toDate",
149
- Schedule = "schedule",
150
- Duration = "duration"
151
- }
152
- export declare enum CopilotMissingFieldType {
153
- Boolean = "boolean",
154
- String = "string",
155
- Number = "number"
156
- }