@evercam/api 1.0.0-fefe23b74 → 1.0.0-ff34bc64c
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.
- package/dist/api/api/3dFirebaseApi.d.ts +19 -14
- package/dist/api/api/adminApi.d.ts +13 -7
- package/dist/api/api/aiApi.d.ts +67 -2
- package/dist/api/api/authzApi.d.ts +2 -2
- package/dist/api/api/evercamApi.d.ts +23 -18
- package/dist/api/api/evercamLabsApi.d.ts +1 -12
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +33 -29
- package/dist/api/api/workflowsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +28 -59
- package/dist/api/types/admin.d.ts +1 -1
- package/dist/api/types/aiConfigs.d.ts +102 -12
- package/dist/api/types/analytics.d.ts +17 -23
- package/dist/api/types/auditLogs.d.ts +1 -4
- package/dist/api/types/authz.d.ts +34 -9
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +1 -4
- package/dist/api/types/bim.d.ts +3 -5
- package/dist/api/types/camera.d.ts +27 -22
- package/dist/api/types/comments.d.ts +7 -1
- package/dist/api/types/company.d.ts +1 -2
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/drone.d.ts +1 -2
- package/dist/api/types/errors.d.ts +7 -2
- package/dist/api/types/gateReport.d.ts +0 -11
- package/dist/api/types/gateReportManagement.d.ts +2 -7
- package/dist/api/types/index.d.ts +3 -2
- package/dist/api/types/ingest.d.ts +165 -26
- package/dist/api/types/kit.d.ts +7 -100
- package/dist/api/types/media.d.ts +1 -2
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/observationEvents.d.ts +141 -0
- package/dist/api/types/observations.d.ts +36 -37
- package/dist/api/types/planner.d.ts +1 -8
- package/dist/api/types/project.d.ts +15 -3
- package/dist/api/types/recording.d.ts +2 -4
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +0 -9
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/shared.d.ts +5 -22
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/siteAnalytics.d.ts +1 -3
- package/dist/api/types/siteAnalyticsManagement.d.ts +39 -4
- package/dist/api/types/siteView.d.ts +6 -1
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +1 -8
- package/dist/api/types/user.d.ts +15 -0
- package/dist/api/types/workflows.d.ts +108 -0
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +1132 -807
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/types/components.d.ts +180 -53
- package/dist/shared/types/droneUpload.d.ts +66 -0
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/observations.d.ts +4 -0
- package/dist/shared/types/report.d.ts +101 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +1 -1
- package/dist/api/types/copilot.d.ts +0 -162
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,11 +1,32 @@
|
|
|
1
|
+
import { CommentsScope, CommentThreeSixtyContext } from "./comments";
|
|
1
2
|
export declare enum NotificationType {
|
|
2
3
|
CameraShare = "camera_share",
|
|
3
4
|
CameraStatusChange = "camera_status_changed",
|
|
4
5
|
Mention = "mention",
|
|
6
|
+
CommentMention = "comment_mention",
|
|
5
7
|
TimelapseCreated = "timelapse_created",
|
|
6
8
|
TimelapseFailed = "timelapse_failed",
|
|
7
9
|
DroneProcessing = "drone_processing_done",
|
|
8
|
-
Processing360 = "three_sixty_done"
|
|
10
|
+
Processing360 = "three_sixty_done",
|
|
11
|
+
SmartSearchExportReady = "smart_search_export_ready",
|
|
12
|
+
SmartSearchExportFailed = "smart_search_export_failed",
|
|
13
|
+
GateReportExportReady = "gate_report_export_ready",
|
|
14
|
+
GateReportExportFailed = "gate_report_export_failed",
|
|
15
|
+
PpeExportReady = "ppe_export_ready",
|
|
16
|
+
PpeExportFailed = "ppe_export_failed",
|
|
17
|
+
WeatherExportReady = "weather_export_ready",
|
|
18
|
+
WeatherExportFailed = "weather_export_failed",
|
|
19
|
+
CompareReady = "compare_ready",
|
|
20
|
+
CompareFailed = "compare_failed",
|
|
21
|
+
ClipExportReady = "clip_export_ready",
|
|
22
|
+
ClipExportFailed = "clip_export_failed",
|
|
23
|
+
NvrClipReady = "nvr_clip_ready",
|
|
24
|
+
NvrClipFailed = "nvr_clip_failed",
|
|
25
|
+
UploadComplete = "upload_complete",
|
|
26
|
+
UploadFailed = "upload_failed",
|
|
27
|
+
RingCamerasImported = "ring_cameras_imported",
|
|
28
|
+
StorageWarning = "storage_warning",
|
|
29
|
+
Other = "other"
|
|
9
30
|
}
|
|
10
31
|
export interface NotificationContextBase {
|
|
11
32
|
cameraExid?: string;
|
|
@@ -41,7 +62,36 @@ export interface Processing360Context extends NotificationContextBase {
|
|
|
41
62
|
date: string;
|
|
42
63
|
floor: string;
|
|
43
64
|
}
|
|
44
|
-
export
|
|
65
|
+
export interface ExportNotificationContext extends NotificationContextBase {
|
|
66
|
+
projectExid: string;
|
|
67
|
+
archiveExid?: string;
|
|
68
|
+
compareExid?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface UploadNotificationContext extends NotificationContextBase {
|
|
71
|
+
projectExid: string;
|
|
72
|
+
}
|
|
73
|
+
export interface RingCamerasImportedContext extends NotificationContextBase {
|
|
74
|
+
projectExid: string;
|
|
75
|
+
projectName: string;
|
|
76
|
+
cameras: Array<{
|
|
77
|
+
exid: string;
|
|
78
|
+
name: string;
|
|
79
|
+
}>;
|
|
80
|
+
}
|
|
81
|
+
export interface StorageWarningContext extends NotificationContextBase {
|
|
82
|
+
projectExid: string;
|
|
83
|
+
cameraName: string;
|
|
84
|
+
}
|
|
85
|
+
export interface CommentMentionContext extends NotificationContextBase {
|
|
86
|
+
projectExid: string;
|
|
87
|
+
commentId: number;
|
|
88
|
+
scope: CommentsScope;
|
|
89
|
+
commentContext: CommentThreeSixtyContext;
|
|
90
|
+
content?: string;
|
|
91
|
+
label?: string;
|
|
92
|
+
projectName?: string;
|
|
93
|
+
}
|
|
94
|
+
export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context | ExportNotificationContext | UploadNotificationContext | RingCamerasImportedContext | StorageWarningContext | CommentMentionContext;
|
|
45
95
|
export type Notification = {
|
|
46
96
|
id: number;
|
|
47
97
|
type: NotificationType;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import type { VisionProvider } from "@evercam/api/types";
|
|
2
|
+
export declare enum ObservationEventStatus {
|
|
3
|
+
Detected = "detected",
|
|
4
|
+
Approved = "approved",
|
|
5
|
+
Disapproved = "disapproved",
|
|
6
|
+
Unsure = "unsure"
|
|
7
|
+
}
|
|
8
|
+
export interface ObservationEventStatusConfig {
|
|
9
|
+
bg: string;
|
|
10
|
+
fg: string;
|
|
11
|
+
border: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const OBSERVATION_EVENT_STATUS_CONFIGS: Record<ObservationEventStatus, ObservationEventStatusConfig>;
|
|
15
|
+
export interface SiteAnalyticsObservationEvent {
|
|
16
|
+
id: number;
|
|
17
|
+
sourceType?: ObservationSourceType;
|
|
18
|
+
sessionId?: string | null;
|
|
19
|
+
markerId?: string | null;
|
|
20
|
+
drawingId?: string | null;
|
|
21
|
+
drawingName?: string | null;
|
|
22
|
+
walkName?: string | null;
|
|
23
|
+
sightings?: Array<Record<string, unknown>> | null;
|
|
24
|
+
observationTypeId: number;
|
|
25
|
+
observationName: string | null;
|
|
26
|
+
observationCode: string | null;
|
|
27
|
+
cameraExid: string;
|
|
28
|
+
projectExid: string | null;
|
|
29
|
+
startTime: string;
|
|
30
|
+
endTime: string | null;
|
|
31
|
+
confidence: number | null;
|
|
32
|
+
status: ObservationEventStatus;
|
|
33
|
+
aiEvidence: string | null;
|
|
34
|
+
bbox: number[] | null;
|
|
35
|
+
model: string | null;
|
|
36
|
+
promptId: number | null;
|
|
37
|
+
observationMetadata: Record<string, unknown> | null;
|
|
38
|
+
trigger: ObservationEventTrigger | string;
|
|
39
|
+
reviewedBy: string | null;
|
|
40
|
+
reviewedAt: string | null;
|
|
41
|
+
insertedAt: string;
|
|
42
|
+
}
|
|
43
|
+
export type ObservationEventQueryParams = {
|
|
44
|
+
cameraExid?: string;
|
|
45
|
+
projectExid?: string;
|
|
46
|
+
observationTypeIds?: string;
|
|
47
|
+
status?: ObservationEventStatus | string;
|
|
48
|
+
sourceType?: ObservationSourceType | string;
|
|
49
|
+
modelName?: string;
|
|
50
|
+
sortBy?: string;
|
|
51
|
+
sortDir?: "asc" | "desc";
|
|
52
|
+
page?: number;
|
|
53
|
+
limit?: number;
|
|
54
|
+
};
|
|
55
|
+
export interface ObservationModelOption {
|
|
56
|
+
modelName: string;
|
|
57
|
+
total: number;
|
|
58
|
+
}
|
|
59
|
+
export interface ObservationEventListResponse {
|
|
60
|
+
items: SiteAnalyticsObservationEvent[];
|
|
61
|
+
total: number;
|
|
62
|
+
page: number;
|
|
63
|
+
limit: number;
|
|
64
|
+
from: number;
|
|
65
|
+
to: number;
|
|
66
|
+
}
|
|
67
|
+
export type ObservationEventVerdict = ObservationEventStatus.Approved | ObservationEventStatus.Disapproved | ObservationEventStatus.Unsure;
|
|
68
|
+
export interface ObservationEventReviewPayload {
|
|
69
|
+
status: ObservationEventVerdict;
|
|
70
|
+
}
|
|
71
|
+
export interface ObservationEventReviewResponse {
|
|
72
|
+
updated: boolean;
|
|
73
|
+
id: number | string;
|
|
74
|
+
message: string;
|
|
75
|
+
}
|
|
76
|
+
export declare enum ObservationSourceType {
|
|
77
|
+
Camera = "camera",
|
|
78
|
+
Walk360 = "walk360",
|
|
79
|
+
Drone = "drone"
|
|
80
|
+
}
|
|
81
|
+
export declare enum ObservationEventTrigger {
|
|
82
|
+
CameraDetection = "camera_detection",
|
|
83
|
+
Walk = "walk"
|
|
84
|
+
}
|
|
85
|
+
export declare enum Walk360ProcessedSessionStatus {
|
|
86
|
+
Done = "done",
|
|
87
|
+
Processing = "processing",
|
|
88
|
+
Retryable = "retryable",
|
|
89
|
+
Error = "error"
|
|
90
|
+
}
|
|
91
|
+
export interface Walk360Activity {
|
|
92
|
+
observationTypeId: number;
|
|
93
|
+
}
|
|
94
|
+
export interface Walk360WorkerInfo {
|
|
95
|
+
coolifyAppId?: string | null;
|
|
96
|
+
workerStatus?: string | null;
|
|
97
|
+
workerIsRunning?: boolean;
|
|
98
|
+
appUrl?: string | null;
|
|
99
|
+
visionProvider?: VisionProvider;
|
|
100
|
+
}
|
|
101
|
+
export interface Walk360Config extends Walk360WorkerInfo {
|
|
102
|
+
projectExid: string;
|
|
103
|
+
enabled: boolean;
|
|
104
|
+
startDate: string | null;
|
|
105
|
+
activities: Walk360Activity[];
|
|
106
|
+
configured: boolean;
|
|
107
|
+
maxParallelWalks?: number;
|
|
108
|
+
}
|
|
109
|
+
export interface Walk360ConfigSummary extends Walk360WorkerInfo {
|
|
110
|
+
projectExid: string;
|
|
111
|
+
projectName?: string | null;
|
|
112
|
+
enabled: boolean;
|
|
113
|
+
startDate: string | null;
|
|
114
|
+
activities: Walk360Activity[];
|
|
115
|
+
maxParallelWalks: number;
|
|
116
|
+
walksDone: number;
|
|
117
|
+
walksProcessing: number;
|
|
118
|
+
walksRetryable: number;
|
|
119
|
+
eventsCreated: number;
|
|
120
|
+
lastProcessedAt: string | null;
|
|
121
|
+
updatedAt: string | null;
|
|
122
|
+
}
|
|
123
|
+
export interface Walk360WorkerAction {
|
|
124
|
+
projectExid: string;
|
|
125
|
+
appUuid: string | null;
|
|
126
|
+
message: string;
|
|
127
|
+
state: string;
|
|
128
|
+
}
|
|
129
|
+
export interface Walk360ProcessedSession {
|
|
130
|
+
id: number;
|
|
131
|
+
projectExid: string;
|
|
132
|
+
sourceType: ObservationSourceType;
|
|
133
|
+
sessionId: string;
|
|
134
|
+
status: Walk360ProcessedSessionStatus;
|
|
135
|
+
markersTotal: number | null;
|
|
136
|
+
markersProcessed: number | null;
|
|
137
|
+
eventsCreated: number | null;
|
|
138
|
+
error: string | null;
|
|
139
|
+
startedAt: string;
|
|
140
|
+
finishedAt: string | null;
|
|
141
|
+
}
|
|
@@ -1,42 +1,46 @@
|
|
|
1
|
-
import { type ProjectExid, type CameraExid, type DateType, type BBox,
|
|
2
|
-
export
|
|
3
|
-
Absent = 0,
|
|
4
|
-
Present = 1,
|
|
5
|
-
NotVisible = 2
|
|
6
|
-
}
|
|
7
|
-
export type ObservationEventEquipment = {
|
|
8
|
-
score: number;
|
|
9
|
-
bbox: BBox;
|
|
10
|
-
};
|
|
1
|
+
import { type ProjectExid, type CameraExid, type DateType, type BBox, AiObservationFeasibilityStatus, ObservationEventStatus, DownloadFileType } from "@evercam/api/types";
|
|
2
|
+
export type ObservationApproval = boolean | ObservationEventStatus.Unsure | null;
|
|
11
3
|
export type ObservationEvent = {
|
|
12
4
|
id: number;
|
|
5
|
+
observationTypeId: number;
|
|
6
|
+
observationCode: string | null;
|
|
13
7
|
cameraExid: CameraExid;
|
|
14
|
-
projectExid: ProjectExid;
|
|
8
|
+
projectExid: ProjectExid | null;
|
|
15
9
|
capturedAt: DateType;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
hasHelmet: ObservationItemState | null;
|
|
21
|
-
hasHighVisVest: ObservationItemState | null;
|
|
22
|
-
hasGloves: ObservationItemState | null;
|
|
23
|
-
hasGlasses: ObservationItemState | null;
|
|
24
|
-
modelVersion: string;
|
|
25
|
-
createdAt: DateType;
|
|
26
|
-
compliant: boolean;
|
|
10
|
+
endTime: DateType | null;
|
|
11
|
+
confidence: number | null;
|
|
12
|
+
status: ObservationEventStatus;
|
|
13
|
+
isApproved: ObservationApproval;
|
|
27
14
|
reason: string | null;
|
|
28
|
-
|
|
15
|
+
personBbox: BBox | null;
|
|
16
|
+
modelVersion: string | null;
|
|
17
|
+
observationMetadata: Record<string, unknown> | null;
|
|
18
|
+
trigger: string;
|
|
19
|
+
reviewedBy: string | null;
|
|
20
|
+
reviewedAt: DateType | null;
|
|
29
21
|
};
|
|
22
|
+
export type ObservationType = {
|
|
23
|
+
id: number;
|
|
24
|
+
observationCode: string;
|
|
25
|
+
name: string;
|
|
26
|
+
description: string | null;
|
|
27
|
+
type: string;
|
|
28
|
+
severity: number | null;
|
|
29
|
+
feasibilityStatus: AiObservationFeasibilityStatus;
|
|
30
|
+
};
|
|
31
|
+
export declare enum ObservationMissingItem {
|
|
32
|
+
Helmet = "helmet",
|
|
33
|
+
HighVisVest = "high_vis_vest",
|
|
34
|
+
Gloves = "gloves",
|
|
35
|
+
Glasses = "glasses"
|
|
36
|
+
}
|
|
30
37
|
export type ObservationEventsQueryParams = {
|
|
31
38
|
cameraExid?: CameraExid;
|
|
39
|
+
observationCode?: string;
|
|
32
40
|
fromDate?: string;
|
|
33
41
|
toDate?: string;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
hasHelmet?: boolean;
|
|
37
|
-
hasHighVisVest?: boolean;
|
|
38
|
-
hasGloves?: boolean;
|
|
39
|
-
hasGlasses?: boolean;
|
|
42
|
+
missingItems?: string;
|
|
43
|
+
status?: ObservationEventStatus;
|
|
40
44
|
sort?: string;
|
|
41
45
|
page?: number;
|
|
42
46
|
limit?: number;
|
|
@@ -63,21 +67,16 @@ export declare enum ObservationCountsGranularity {
|
|
|
63
67
|
}
|
|
64
68
|
export type ObservationEventsCountsQueryParams = {
|
|
65
69
|
cameraExid?: CameraExid;
|
|
70
|
+
observationCode?: string;
|
|
66
71
|
fromDate?: string;
|
|
67
72
|
toDate?: string;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
hasHelmet?: boolean;
|
|
71
|
-
hasHighVisVest?: boolean;
|
|
72
|
-
hasGloves?: boolean;
|
|
73
|
-
hasGlasses?: boolean;
|
|
73
|
+
missingItems?: string;
|
|
74
|
+
status?: ObservationEventStatus;
|
|
74
75
|
granularity?: ObservationCountsGranularity;
|
|
75
76
|
};
|
|
76
77
|
export type ObservationEventCount = {
|
|
77
78
|
bucket: DateType;
|
|
78
79
|
total: number;
|
|
79
|
-
compliant: number;
|
|
80
|
-
nonCompliant: number;
|
|
81
80
|
};
|
|
82
81
|
export declare enum ObservationRequiredItem {
|
|
83
82
|
Helmet = "has_helmet",
|
|
@@ -29,6 +29,7 @@ export declare enum PlannerUrlParams {
|
|
|
29
29
|
DealId = "deal_id"
|
|
30
30
|
}
|
|
31
31
|
export declare enum EDistortImageModes {
|
|
32
|
+
Edit = "edit",
|
|
32
33
|
FreeRotate = "freeRotate",
|
|
33
34
|
Lock = "lock",
|
|
34
35
|
Rotate = "rotate",
|
|
@@ -51,14 +52,6 @@ export declare enum EPageType {
|
|
|
51
52
|
List = "list",
|
|
52
53
|
Item = "item"
|
|
53
54
|
}
|
|
54
|
-
export declare enum EPaths {
|
|
55
|
-
Home = "/",
|
|
56
|
-
Session = "/session"
|
|
57
|
-
}
|
|
58
|
-
export declare enum EProjectItems {
|
|
59
|
-
Camera = "camera",
|
|
60
|
-
Overlay = "overlay"
|
|
61
|
-
}
|
|
62
55
|
export declare enum ERoles {
|
|
63
56
|
Admin = "admin",
|
|
64
57
|
User = "user"
|
|
@@ -68,6 +68,13 @@ export declare enum ProjectArchiveTier {
|
|
|
68
68
|
export type UpdateCameraRestrictionPayload = {
|
|
69
69
|
isAccessRestricted?: boolean;
|
|
70
70
|
};
|
|
71
|
+
export type CameraPosition = {
|
|
72
|
+
cameraExid: CameraExid;
|
|
73
|
+
position: number;
|
|
74
|
+
};
|
|
75
|
+
export type ReorderCamerasPayload = {
|
|
76
|
+
positions: CameraPosition[];
|
|
77
|
+
};
|
|
71
78
|
export type Logo = {
|
|
72
79
|
id: number;
|
|
73
80
|
projectId: number;
|
|
@@ -89,10 +96,10 @@ export declare enum ProjectFeatureFlag {
|
|
|
89
96
|
MediaHubSharing = "archives_sharing",
|
|
90
97
|
GateReportAnprBased = "anpr_sourced",
|
|
91
98
|
NoLicensePlate = "no_license_plate",
|
|
92
|
-
DefaultToProjectApp = "default_to_project_app",
|
|
93
99
|
SmartSearch = "smart_search",
|
|
94
100
|
PpeMonitoring = "ppe_monitoring",
|
|
95
|
-
NoGdpr = "no_gdpr"
|
|
101
|
+
NoGdpr = "no_gdpr",
|
|
102
|
+
Chat = "chat"
|
|
96
103
|
}
|
|
97
104
|
export type ProjectBatteryReading = {
|
|
98
105
|
exid: number;
|
|
@@ -180,7 +187,7 @@ export type ProjectMember = {
|
|
|
180
187
|
} | null;
|
|
181
188
|
};
|
|
182
189
|
export type ProjectInvite = {
|
|
183
|
-
id
|
|
190
|
+
id: number;
|
|
184
191
|
email: string;
|
|
185
192
|
role?: ProjectRole;
|
|
186
193
|
permissions?: string[];
|
|
@@ -223,6 +230,11 @@ export type ProjectUsersResponsePayload = {
|
|
|
223
230
|
invites: ProjectInvite[];
|
|
224
231
|
errors: ProjectUserError[];
|
|
225
232
|
};
|
|
233
|
+
export type MentionableUser = {
|
|
234
|
+
id: number;
|
|
235
|
+
fullname: string;
|
|
236
|
+
email: string;
|
|
237
|
+
};
|
|
226
238
|
export type ProjectStorageQueryParams = PaginationParams & {
|
|
227
239
|
cameraName: string;
|
|
228
240
|
cameraExid: CameraExid;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiCredentials } from "@evercam/api/types";
|
|
1
|
+
import { ApiCredentials, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
import { CancelToken } from "axios";
|
|
3
3
|
export type Snapshot = {
|
|
4
4
|
createdAt: string;
|
|
@@ -41,11 +41,9 @@ export type NearestSnapshotResponsePayload = {
|
|
|
41
41
|
notes?: string;
|
|
42
42
|
}>;
|
|
43
43
|
};
|
|
44
|
-
export type SnapshotRangeRequestPayload = {
|
|
44
|
+
export type SnapshotRangeRequestPayload = PaginationParams & {
|
|
45
45
|
from: string;
|
|
46
46
|
to: string;
|
|
47
|
-
limit?: number;
|
|
48
|
-
page?: number;
|
|
49
47
|
schedule?: boolean;
|
|
50
48
|
count?: number;
|
|
51
49
|
};
|
package/dist/api/types/ring.d.ts
CHANGED
|
@@ -1,8 +1,23 @@
|
|
|
1
|
+
export type RingCompleteLinkingPayload = {
|
|
2
|
+
nonce: string;
|
|
3
|
+
time: string;
|
|
4
|
+
};
|
|
5
|
+
/** The only auto-import status complete-linking returns today. */
|
|
6
|
+
export declare const RING_AUTO_IMPORT_QUEUED = "queued";
|
|
7
|
+
export type RingAutoImportStatus = typeof RING_AUTO_IMPORT_QUEUED;
|
|
8
|
+
export type RingCompleteLinkingResponsePayload = {
|
|
9
|
+
status: string;
|
|
10
|
+
/** Absent when the API did not schedule an import. */
|
|
11
|
+
autoImport?: RingAutoImportStatus;
|
|
12
|
+
};
|
|
1
13
|
export type RingDevice = {
|
|
2
14
|
deviceId: string;
|
|
3
15
|
name: string;
|
|
4
|
-
|
|
16
|
+
/** Resolved from Ring's `device-status`; null when Ring did not return it. */
|
|
17
|
+
online: boolean | null;
|
|
18
|
+
deviceType: string | null;
|
|
5
19
|
firmwareVersion: string | null;
|
|
20
|
+
/** Always null — Ring's API does not expose device power level. */
|
|
6
21
|
batteryLife: number | null;
|
|
7
22
|
location: string | null;
|
|
8
23
|
imported: boolean;
|
|
@@ -13,21 +28,6 @@ export type RingDevice = {
|
|
|
13
28
|
export type RingDevicesResponsePayload = {
|
|
14
29
|
devices: RingDevice[];
|
|
15
30
|
};
|
|
16
|
-
export type RingImportDevicesPayload = {
|
|
17
|
-
deviceIds: string[];
|
|
18
|
-
projectExid: string;
|
|
19
|
-
deviceNames?: Record<string, string>;
|
|
20
|
-
};
|
|
21
|
-
export type RingImportResponsePayload = {
|
|
22
|
-
cameras: Array<{
|
|
23
|
-
exid: string;
|
|
24
|
-
name: string;
|
|
25
|
-
}>;
|
|
26
|
-
project: {
|
|
27
|
-
exid: string;
|
|
28
|
-
name: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
31
|
export type RingMoveDevicePayload = {
|
|
32
32
|
projectExid: string;
|
|
33
33
|
};
|
package/dist/api/types/roi.d.ts
CHANGED
|
@@ -12,15 +12,6 @@ export declare enum RoiShapeType {
|
|
|
12
12
|
Direction = "direction",
|
|
13
13
|
Rectangle = "rectangle"
|
|
14
14
|
}
|
|
15
|
-
export type RoiShape = {
|
|
16
|
-
id: number | null;
|
|
17
|
-
name: string;
|
|
18
|
-
x1: number;
|
|
19
|
-
x2: number;
|
|
20
|
-
y1: number;
|
|
21
|
-
y2: number;
|
|
22
|
-
points?: [number, number][];
|
|
23
|
-
};
|
|
24
15
|
export declare enum RoiDirection {
|
|
25
16
|
Arrived = "arrived",
|
|
26
17
|
Left = "left",
|
|
@@ -109,25 +109,18 @@ export declare enum InfoPage {
|
|
|
109
109
|
DroneView = "drone-view",
|
|
110
110
|
Compare = "compare",
|
|
111
111
|
Timeline = "timeline",
|
|
112
|
-
WeatherReport = "weather-report"
|
|
112
|
+
WeatherReport = "weather-report",
|
|
113
|
+
Cameras = "cameras"
|
|
113
114
|
}
|
|
114
115
|
export declare enum DownloadFileType {
|
|
115
116
|
Jpeg = "jpeg",
|
|
116
117
|
Pdf = "pdf",
|
|
117
118
|
Csv = "csv"
|
|
118
119
|
}
|
|
119
|
-
export declare enum
|
|
120
|
-
|
|
120
|
+
export declare enum PromiseSettledStatus {
|
|
121
|
+
Fulfilled = "fulfilled",
|
|
122
|
+
Rejected = "rejected"
|
|
121
123
|
}
|
|
122
|
-
export type FeedbackPayload = {
|
|
123
|
-
id?: number;
|
|
124
|
-
user: string;
|
|
125
|
-
text: string;
|
|
126
|
-
type: string;
|
|
127
|
-
context: FeedbackContext;
|
|
128
|
-
messageId?: number;
|
|
129
|
-
conversationId?: number;
|
|
130
|
-
};
|
|
131
124
|
export type Stringified<T> = string & {
|
|
132
125
|
[P in keyof T]: {
|
|
133
126
|
"_ value": T[P];
|
|
@@ -178,16 +171,6 @@ export declare enum TimelinePrecision {
|
|
|
178
171
|
Minute = "minute",
|
|
179
172
|
Events = "events"
|
|
180
173
|
}
|
|
181
|
-
export type EntityStatsQueryParams = {
|
|
182
|
-
period: "day" | "week" | "month";
|
|
183
|
-
startDate: string;
|
|
184
|
-
endDate: string;
|
|
185
|
-
};
|
|
186
|
-
export type EntityStat = {
|
|
187
|
-
period: string;
|
|
188
|
-
name: string;
|
|
189
|
-
count: number;
|
|
190
|
-
};
|
|
191
174
|
export declare enum TaskStatus {
|
|
192
175
|
Idle = "idle",
|
|
193
176
|
Loading = "loading",
|
|
@@ -33,14 +33,6 @@ export type SharedUsersResponsePayload = Array<{
|
|
|
33
33
|
email: string;
|
|
34
34
|
name: string;
|
|
35
35
|
}>;
|
|
36
|
-
export type ShareCreateRequestPayload = {
|
|
37
|
-
email: string[] | string;
|
|
38
|
-
message?: string;
|
|
39
|
-
permission?: string;
|
|
40
|
-
rights: string;
|
|
41
|
-
apiId?: string;
|
|
42
|
-
apiKey?: string;
|
|
43
|
-
};
|
|
44
36
|
export type ShareCreateResponsePayload = {
|
|
45
37
|
shares: Share[];
|
|
46
38
|
shareRequests: ShareRequest[];
|
|
@@ -51,8 +43,3 @@ export declare enum InviteStatus {
|
|
|
51
43
|
Used = 1,
|
|
52
44
|
Failed = -2
|
|
53
45
|
}
|
|
54
|
-
export declare enum ShareVisibility {
|
|
55
|
-
PublicDiscoverable = "publicDiscoverable",
|
|
56
|
-
PublicUndiscoverable = "publicUndiscoverable",
|
|
57
|
-
Private = "private"
|
|
58
|
-
}
|
|
@@ -232,7 +232,7 @@ export type SiteAnalyticsProcessingStatus = {
|
|
|
232
232
|
feature: CameraFeatureFlag;
|
|
233
233
|
processedIntervals: TimelineDateInterval[];
|
|
234
234
|
};
|
|
235
|
-
export type SmartSearchRequestPayload = {
|
|
235
|
+
export type SmartSearchRequestPayload = PaginationParams & {
|
|
236
236
|
cameraExids?: CameraExid[];
|
|
237
237
|
drawingIds?: _360FloorId[];
|
|
238
238
|
walkIds?: string[];
|
|
@@ -240,8 +240,6 @@ export type SmartSearchRequestPayload = {
|
|
|
240
240
|
payload: SmartSearchBackendQuery;
|
|
241
241
|
fromDate?: string;
|
|
242
242
|
toDate?: string;
|
|
243
|
-
page?: number;
|
|
244
|
-
limit?: number;
|
|
245
243
|
threshold?: number;
|
|
246
244
|
};
|
|
247
245
|
type SmartSearchResultItemBase = {
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid } from "@evercam/api/types";
|
|
1
|
+
import { CameraExid, DateType, PaginationParams, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
export declare enum VisionProvider {
|
|
3
|
+
Gemini = "gemini",
|
|
4
|
+
Gemma = "gemma"
|
|
5
|
+
}
|
|
6
|
+
export declare const VISION_PROVIDER_OPTIONS: {
|
|
7
|
+
text: string;
|
|
8
|
+
value: VisionProvider;
|
|
9
|
+
}[];
|
|
2
10
|
export type SiteAnalyticsCoolifyStatus = {
|
|
3
11
|
appUuid: string | null;
|
|
4
12
|
name: string | null;
|
|
@@ -35,6 +43,10 @@ export type SiteAnalyticsManagedApp = {
|
|
|
35
43
|
source: string;
|
|
36
44
|
override: boolean;
|
|
37
45
|
timeIncreaseFrequency: number;
|
|
46
|
+
skipWeekends: boolean;
|
|
47
|
+
tracking: boolean;
|
|
48
|
+
observations: boolean;
|
|
49
|
+
visionProvider?: VisionProvider | null;
|
|
38
50
|
insertedAt: DateType | null;
|
|
39
51
|
updatedAt: DateType | null;
|
|
40
52
|
coolify: SiteAnalyticsCoolifyStatus | null;
|
|
@@ -54,7 +66,12 @@ export type CreateSiteAnalyticsAppPayload = {
|
|
|
54
66
|
endHour?: number;
|
|
55
67
|
source?: string;
|
|
56
68
|
override?: boolean;
|
|
69
|
+
skipWeekends?: boolean;
|
|
57
70
|
timeIncreaseFrequency?: number;
|
|
71
|
+
tracking?: boolean;
|
|
72
|
+
observations?: boolean;
|
|
73
|
+
observationPromptId?: number | null;
|
|
74
|
+
visionProvider?: VisionProvider;
|
|
58
75
|
};
|
|
59
76
|
export type UpdateSiteAnalyticsAppPayload = Partial<Omit<CreateSiteAnalyticsAppPayload, "projectExid" | "cameraExid" | "coolifyServerUuid">>;
|
|
60
77
|
export type ModelOption = {
|
|
@@ -71,12 +88,11 @@ export type SiteAnalyticsAppConfigFormValue = {
|
|
|
71
88
|
source: string;
|
|
72
89
|
override: boolean;
|
|
73
90
|
timeIncreaseFrequency: number;
|
|
91
|
+
skipWeekends: boolean;
|
|
74
92
|
};
|
|
75
|
-
export type SiteAnalyticsManagementListParams = {
|
|
93
|
+
export type SiteAnalyticsManagementListParams = PaginationParams & {
|
|
76
94
|
projectExid?: ProjectExid;
|
|
77
95
|
includeStatus?: boolean;
|
|
78
|
-
page?: number;
|
|
79
|
-
limit?: number;
|
|
80
96
|
};
|
|
81
97
|
export type CreateSiteAnalyticsAppResponse = {
|
|
82
98
|
created: boolean;
|
|
@@ -90,3 +106,22 @@ export type DeleteSiteAnalyticsAppResponse = {
|
|
|
90
106
|
count: number;
|
|
91
107
|
message: string;
|
|
92
108
|
};
|
|
109
|
+
export type ObservationConfigActivity = {
|
|
110
|
+
observationTypeId: number;
|
|
111
|
+
every: number | null;
|
|
112
|
+
};
|
|
113
|
+
export type ObservationConfig = {
|
|
114
|
+
id: number;
|
|
115
|
+
cameraExid: CameraExid;
|
|
116
|
+
projectExid: ProjectExid | null;
|
|
117
|
+
enabled: boolean;
|
|
118
|
+
activities: ObservationConfigActivity[];
|
|
119
|
+
createdBy: string | null;
|
|
120
|
+
insertedAt: DateType | null;
|
|
121
|
+
updatedAt: DateType | null;
|
|
122
|
+
};
|
|
123
|
+
export type UpsertObservationConfigPayload = {
|
|
124
|
+
projectExid?: ProjectExid;
|
|
125
|
+
enabled: boolean;
|
|
126
|
+
activities: ObservationConfigActivity[];
|
|
127
|
+
};
|
|
@@ -23,6 +23,7 @@ export type ForgeUrn = {
|
|
|
23
23
|
displayName: string;
|
|
24
24
|
urn: string;
|
|
25
25
|
isModelHostedByEvercamACC?: boolean;
|
|
26
|
+
savedViews?: Record<string, ForgeView>;
|
|
26
27
|
};
|
|
27
28
|
export type ForgeAccAlignmentData = {
|
|
28
29
|
bbox: {
|
|
@@ -30,6 +31,11 @@ export type ForgeAccAlignmentData = {
|
|
|
30
31
|
max: Point2D;
|
|
31
32
|
};
|
|
32
33
|
transform: number[];
|
|
34
|
+
coordinateSystem?: {
|
|
35
|
+
context?: {
|
|
36
|
+
type?: string;
|
|
37
|
+
};
|
|
38
|
+
} | null;
|
|
33
39
|
};
|
|
34
40
|
export type TimelineItem = {
|
|
35
41
|
taskNumber: number;
|
|
@@ -55,7 +61,6 @@ export type ForgeProjectData = {
|
|
|
55
61
|
urns?: ForgeUrn[];
|
|
56
62
|
accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
|
|
57
63
|
timeline?: TimelineItem[];
|
|
58
|
-
savedView?: ForgeView;
|
|
59
64
|
markers?: ForgeMarker[];
|
|
60
65
|
};
|
|
61
66
|
export type ItwinModel = {
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
import type { JsonObject, JsonValue } from "@evercam/api/types";
|
|
2
|
-
export type StoryblokAsset = {
|
|
3
|
-
id: number | null;
|
|
4
|
-
alt: string | null;
|
|
5
|
-
name: string;
|
|
6
|
-
focus: string | null;
|
|
7
|
-
title: string | null;
|
|
8
|
-
filename: string;
|
|
9
|
-
copyright: string | null;
|
|
10
|
-
fieldtype: "asset";
|
|
11
|
-
source?: string;
|
|
12
|
-
metaData?: JsonObject;
|
|
13
|
-
isExternalUrl?: boolean;
|
|
14
|
-
};
|
|
15
2
|
export type StoryblokStory<TContent extends JsonObject = JsonObject> = {
|
|
16
3
|
id: number;
|
|
17
4
|
uuid: string;
|