@evercam/api 1.0.0-533505ee2 → 1.0.0-53d3bfead
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 +12 -13
- package/dist/api/api/adminApi.d.ts +2 -1
- package/dist/api/api/aiApi.d.ts +49 -2
- package/dist/api/api/authzApi.d.ts +2 -2
- package/dist/api/api/evercamApi.d.ts +16 -5
- package/dist/api/api/ingestApi.d.ts +12 -6
- package/dist/api/types/360.d.ts +24 -59
- package/dist/api/types/aiConfigs.d.ts +99 -11
- package/dist/api/types/analytics.d.ts +8 -8
- package/dist/api/types/authz.d.ts +34 -9
- package/dist/api/types/automation.d.ts +23 -4
- package/dist/api/types/axios.d.ts +1 -4
- package/dist/api/types/bim.d.ts +2 -4
- package/dist/api/types/camera.d.ts +2 -7
- package/dist/api/types/connector.d.ts +1 -0
- package/dist/api/types/copilot.d.ts +0 -3
- package/dist/api/types/detections.d.ts +1 -0
- package/dist/api/types/drone.d.ts +1 -2
- package/dist/api/types/errors.d.ts +2 -1
- package/dist/api/types/gateReport.d.ts +0 -11
- package/dist/api/types/gateReportManagement.d.ts +2 -7
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +4 -1
- package/dist/api/types/ingest.d.ts +77 -1
- package/dist/api/types/kit.d.ts +30 -49
- package/dist/api/types/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +41 -2
- package/dist/api/types/observationEvents.d.ts +61 -0
- package/dist/api/types/observations.d.ts +84 -0
- package/dist/api/types/planner.d.ts +0 -8
- package/dist/api/types/project.d.ts +7 -0
- 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 +0 -19
- 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 +29 -4
- 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/index.js +941 -666
- 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 +61 -31
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/package.json +1 -1
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -8,7 +8,8 @@ export declare enum IngestProcessingStatus {
|
|
|
8
8
|
Aborted = "aborted",
|
|
9
9
|
Paused = "paused",
|
|
10
10
|
InProgress = "inprogress",
|
|
11
|
-
Pending = "pending"
|
|
11
|
+
Pending = "pending",
|
|
12
|
+
Downloading = "downloading"
|
|
12
13
|
}
|
|
13
14
|
export declare enum MobileAssetsType {
|
|
14
15
|
Audio = "mobile_audios",
|
|
@@ -38,6 +39,80 @@ export type IngestPaginatedResponse<T> = {
|
|
|
38
39
|
total: number;
|
|
39
40
|
pageCount?: number;
|
|
40
41
|
};
|
|
42
|
+
export declare enum IngestProcessingStepStatus {
|
|
43
|
+
Running = "running",
|
|
44
|
+
Completed = "completed",
|
|
45
|
+
Failed = "failed",
|
|
46
|
+
Skipped = "skipped"
|
|
47
|
+
}
|
|
48
|
+
export declare enum IngestProcessingRunStatus {
|
|
49
|
+
Processing = "processing",
|
|
50
|
+
Completed = "completed",
|
|
51
|
+
Failed = "failed"
|
|
52
|
+
}
|
|
53
|
+
export type IngestProcessingMetricStat = {
|
|
54
|
+
avg?: number;
|
|
55
|
+
peak?: number;
|
|
56
|
+
};
|
|
57
|
+
export type IngestProcessingStepMetrics = {
|
|
58
|
+
cpu?: IngestProcessingMetricStat;
|
|
59
|
+
ram?: IngestProcessingMetricStat;
|
|
60
|
+
gpuUtil?: IngestProcessingMetricStat;
|
|
61
|
+
gpuMemDevice?: IngestProcessingMetricStat;
|
|
62
|
+
gpuMemStep?: IngestProcessingMetricStat;
|
|
63
|
+
ramTotalMb?: number;
|
|
64
|
+
diskTotalMb?: number;
|
|
65
|
+
};
|
|
66
|
+
export type IngestProcessingStepDetail = {
|
|
67
|
+
input?: Record<string, JsonValue>;
|
|
68
|
+
params?: Record<string, JsonValue>;
|
|
69
|
+
output?: Record<string, JsonValue>;
|
|
70
|
+
metrics?: IngestProcessingStepMetrics;
|
|
71
|
+
error?: string;
|
|
72
|
+
};
|
|
73
|
+
export type IngestProcessingStep = {
|
|
74
|
+
name: string;
|
|
75
|
+
tool?: string;
|
|
76
|
+
status: IngestProcessingStepStatus | string;
|
|
77
|
+
startedAt?: string;
|
|
78
|
+
endedAt?: string;
|
|
79
|
+
durationSec?: number;
|
|
80
|
+
durationPct?: number;
|
|
81
|
+
detail?: IngestProcessingStepDetail;
|
|
82
|
+
};
|
|
83
|
+
export type IngestProcessingDiskUsage = {
|
|
84
|
+
sourceMb?: number;
|
|
85
|
+
framesMb?: number;
|
|
86
|
+
resultMb?: number;
|
|
87
|
+
totalMb?: number;
|
|
88
|
+
};
|
|
89
|
+
export type IngestProcessingPeakUsage = {
|
|
90
|
+
cpu?: number;
|
|
91
|
+
ram?: number;
|
|
92
|
+
gpuUtil?: number;
|
|
93
|
+
gpuMemDevice?: number;
|
|
94
|
+
gpuMemStep?: number;
|
|
95
|
+
};
|
|
96
|
+
export type IngestProcessingFootprint = {
|
|
97
|
+
disk?: IngestProcessingDiskUsage;
|
|
98
|
+
peak?: IngestProcessingPeakUsage;
|
|
99
|
+
};
|
|
100
|
+
export type IngestProcessingProgress = {
|
|
101
|
+
available: boolean;
|
|
102
|
+
status?: IngestProcessingRunStatus | string;
|
|
103
|
+
processingStatus?: IngestProcessingStatus | string;
|
|
104
|
+
currentStep?: string | null;
|
|
105
|
+
error?: string | null;
|
|
106
|
+
startedAt?: string;
|
|
107
|
+
steps: IngestProcessingStep[];
|
|
108
|
+
footprint?: IngestProcessingFootprint;
|
|
109
|
+
};
|
|
110
|
+
export type IngestTrackedAsset = {
|
|
111
|
+
id: number;
|
|
112
|
+
projectId: string;
|
|
113
|
+
name?: string;
|
|
114
|
+
processingStatus?: IngestProcessingStatus | string;
|
|
115
|
+
};
|
|
41
116
|
export type DroneUploadItem = {
|
|
42
117
|
id: number;
|
|
43
118
|
projectId: string;
|
|
@@ -54,6 +129,7 @@ export type DroneUploadItem = {
|
|
|
54
129
|
modelCesiumAssetId: string;
|
|
55
130
|
updatedAt: string;
|
|
56
131
|
hasTusLinks: boolean;
|
|
132
|
+
hasSteps: boolean;
|
|
57
133
|
aerialShots: AerialShotItem[];
|
|
58
134
|
};
|
|
59
135
|
export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
|
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -22,6 +22,36 @@ export type Kit = {
|
|
|
22
22
|
storages: KitStorage[];
|
|
23
23
|
createdAt: string;
|
|
24
24
|
};
|
|
25
|
+
export declare enum KitSupportCheckId {
|
|
26
|
+
RouterSmsRoundTrip = "router_sms_round_trip",
|
|
27
|
+
NvrRecordingAllCameras = "nvr_recording_all_cameras",
|
|
28
|
+
NvrRecordingThirdStream = "nvr_recording_third_stream",
|
|
29
|
+
CamerasHaveDeviceId = "cameras_have_device_id",
|
|
30
|
+
CamerasRecording = "cameras_recording",
|
|
31
|
+
CamerasSdCardMounted = "cameras_sd_card_mounted",
|
|
32
|
+
BatteryReadings = "battery_readings"
|
|
33
|
+
}
|
|
34
|
+
export declare enum KitSupportCheckStatus {
|
|
35
|
+
Passed = "passed",
|
|
36
|
+
Failed = "failed",
|
|
37
|
+
Skipped = "skipped"
|
|
38
|
+
}
|
|
39
|
+
export type KitSupportCheck = {
|
|
40
|
+
id: KitSupportCheckId;
|
|
41
|
+
name: string;
|
|
42
|
+
status: KitSupportCheckStatus;
|
|
43
|
+
error: string | null;
|
|
44
|
+
};
|
|
45
|
+
export type KitSupportChecklist = {
|
|
46
|
+
checks: KitSupportCheck[];
|
|
47
|
+
};
|
|
48
|
+
export type KitDiagnosticRun = {
|
|
49
|
+
kitId: number;
|
|
50
|
+
kitSerial: string;
|
|
51
|
+
checks: KitSupportCheck[];
|
|
52
|
+
ranAt: string;
|
|
53
|
+
isSeen: boolean;
|
|
54
|
+
};
|
|
25
55
|
export declare enum KitStatus {
|
|
26
56
|
New = "new",
|
|
27
57
|
Active = "active",
|
|
@@ -118,55 +148,6 @@ export declare enum KitChartType {
|
|
|
118
148
|
TimeSeries = "timeseries",
|
|
119
149
|
BarChart = "barchart"
|
|
120
150
|
}
|
|
121
|
-
export type GrafanaDataSource = {
|
|
122
|
-
type: string;
|
|
123
|
-
uid: string;
|
|
124
|
-
};
|
|
125
|
-
export type GrafanaTarget = {
|
|
126
|
-
expr: string;
|
|
127
|
-
refId: string;
|
|
128
|
-
datasourceId?: string;
|
|
129
|
-
intervalMs?: number;
|
|
130
|
-
maxDataPoints?: number;
|
|
131
|
-
};
|
|
132
|
-
export type GrafanaPanel = {
|
|
133
|
-
[key: string]: unknown;
|
|
134
|
-
id: GrafanaMetricId;
|
|
135
|
-
name: keyof GrafanaMetricId;
|
|
136
|
-
title: string;
|
|
137
|
-
description: string;
|
|
138
|
-
type: KitChartType;
|
|
139
|
-
datasource: GrafanaDataSource;
|
|
140
|
-
targets: GrafanaTarget[];
|
|
141
|
-
maxDataPoints?: number;
|
|
142
|
-
interval?: string;
|
|
143
|
-
timeFrom?: string;
|
|
144
|
-
timeShift?: string;
|
|
145
|
-
options?: {
|
|
146
|
-
maxDataPoints?: number;
|
|
147
|
-
interval?: string;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
export type GrafanaDashboard = {
|
|
151
|
-
[key: string]: unknown;
|
|
152
|
-
panels: GrafanaPanel[];
|
|
153
|
-
time?: {
|
|
154
|
-
from: string;
|
|
155
|
-
to: string;
|
|
156
|
-
};
|
|
157
|
-
timepicker?: {
|
|
158
|
-
refresh_intervals: string[];
|
|
159
|
-
time_options: string[];
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
export type GrafanaQueryOptions = {
|
|
163
|
-
metricId: GrafanaMetricId;
|
|
164
|
-
host: string;
|
|
165
|
-
job?: string;
|
|
166
|
-
from?: string;
|
|
167
|
-
to?: string;
|
|
168
|
-
variables?: Record<string, string>;
|
|
169
|
-
};
|
|
170
151
|
export type GrafanaTimeSeriesValue = number | string | null;
|
|
171
152
|
export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
|
|
172
153
|
export type GrafanaFieldConfig = {
|
|
@@ -5,7 +5,26 @@ export declare enum NotificationType {
|
|
|
5
5
|
TimelapseCreated = "timelapse_created",
|
|
6
6
|
TimelapseFailed = "timelapse_failed",
|
|
7
7
|
DroneProcessing = "drone_processing_done",
|
|
8
|
-
Processing360 = "three_sixty_done"
|
|
8
|
+
Processing360 = "three_sixty_done",
|
|
9
|
+
SmartSearchExportReady = "smart_search_export_ready",
|
|
10
|
+
SmartSearchExportFailed = "smart_search_export_failed",
|
|
11
|
+
GateReportExportReady = "gate_report_export_ready",
|
|
12
|
+
GateReportExportFailed = "gate_report_export_failed",
|
|
13
|
+
PpeExportReady = "ppe_export_ready",
|
|
14
|
+
PpeExportFailed = "ppe_export_failed",
|
|
15
|
+
WeatherExportReady = "weather_export_ready",
|
|
16
|
+
WeatherExportFailed = "weather_export_failed",
|
|
17
|
+
CompareReady = "compare_ready",
|
|
18
|
+
CompareFailed = "compare_failed",
|
|
19
|
+
ClipExportReady = "clip_export_ready",
|
|
20
|
+
ClipExportFailed = "clip_export_failed",
|
|
21
|
+
NvrClipReady = "nvr_clip_ready",
|
|
22
|
+
NvrClipFailed = "nvr_clip_failed",
|
|
23
|
+
UploadComplete = "upload_complete",
|
|
24
|
+
UploadFailed = "upload_failed",
|
|
25
|
+
RingCamerasImported = "ring_cameras_imported",
|
|
26
|
+
StorageWarning = "storage_warning",
|
|
27
|
+
Other = "other"
|
|
9
28
|
}
|
|
10
29
|
export interface NotificationContextBase {
|
|
11
30
|
cameraExid?: string;
|
|
@@ -41,7 +60,27 @@ export interface Processing360Context extends NotificationContextBase {
|
|
|
41
60
|
date: string;
|
|
42
61
|
floor: string;
|
|
43
62
|
}
|
|
44
|
-
export
|
|
63
|
+
export interface ExportNotificationContext extends NotificationContextBase {
|
|
64
|
+
projectExid: string;
|
|
65
|
+
archiveExid?: string;
|
|
66
|
+
compareExid?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface UploadNotificationContext extends NotificationContextBase {
|
|
69
|
+
projectExid: string;
|
|
70
|
+
}
|
|
71
|
+
export interface RingCamerasImportedContext extends NotificationContextBase {
|
|
72
|
+
projectExid: string;
|
|
73
|
+
projectName: string;
|
|
74
|
+
cameras: Array<{
|
|
75
|
+
exid: string;
|
|
76
|
+
name: string;
|
|
77
|
+
}>;
|
|
78
|
+
}
|
|
79
|
+
export interface StorageWarningContext extends NotificationContextBase {
|
|
80
|
+
projectExid: string;
|
|
81
|
+
cameraName: string;
|
|
82
|
+
}
|
|
83
|
+
export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context | ExportNotificationContext | UploadNotificationContext | RingCamerasImportedContext | StorageWarningContext;
|
|
45
84
|
export type Notification = {
|
|
46
85
|
id: number;
|
|
47
86
|
type: NotificationType;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare enum ObservationEventStatus {
|
|
2
|
+
Detected = "detected",
|
|
3
|
+
Approved = "approved",
|
|
4
|
+
Disapproved = "disapproved",
|
|
5
|
+
Unsure = "unsure"
|
|
6
|
+
}
|
|
7
|
+
export interface ObservationEventStatusConfig {
|
|
8
|
+
bg: string;
|
|
9
|
+
fg: string;
|
|
10
|
+
border: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const OBSERVATION_EVENT_STATUS_CONFIGS: Record<ObservationEventStatus, ObservationEventStatusConfig>;
|
|
14
|
+
export interface SiteAnalyticsObservationEvent {
|
|
15
|
+
id: number;
|
|
16
|
+
observationTypeId: number;
|
|
17
|
+
observationName: string | null;
|
|
18
|
+
observationCode: string | null;
|
|
19
|
+
cameraExid: string;
|
|
20
|
+
projectExid: string | null;
|
|
21
|
+
startTime: string;
|
|
22
|
+
endTime: string | null;
|
|
23
|
+
confidence: number | null;
|
|
24
|
+
status: ObservationEventStatus;
|
|
25
|
+
aiEvidence: string | null;
|
|
26
|
+
bbox: number[] | null;
|
|
27
|
+
model: string | null;
|
|
28
|
+
promptId: number | null;
|
|
29
|
+
observationMetadata: Record<string, unknown> | null;
|
|
30
|
+
trigger: string;
|
|
31
|
+
reviewedBy: string | null;
|
|
32
|
+
reviewedAt: string | null;
|
|
33
|
+
insertedAt: string;
|
|
34
|
+
}
|
|
35
|
+
export type ObservationEventQueryParams = {
|
|
36
|
+
cameraExid?: string;
|
|
37
|
+
projectExid?: string;
|
|
38
|
+
observationTypeIds?: string;
|
|
39
|
+
status?: ObservationEventStatus | string;
|
|
40
|
+
sortBy?: string;
|
|
41
|
+
sortDir?: "asc" | "desc";
|
|
42
|
+
page?: number;
|
|
43
|
+
limit?: number;
|
|
44
|
+
};
|
|
45
|
+
export interface ObservationEventListResponse {
|
|
46
|
+
items: SiteAnalyticsObservationEvent[];
|
|
47
|
+
total: number;
|
|
48
|
+
page: number;
|
|
49
|
+
limit: number;
|
|
50
|
+
from: number;
|
|
51
|
+
to: number;
|
|
52
|
+
}
|
|
53
|
+
export type ObservationEventVerdict = ObservationEventStatus.Approved | ObservationEventStatus.Disapproved | ObservationEventStatus.Unsure;
|
|
54
|
+
export interface ObservationEventReviewPayload {
|
|
55
|
+
status: ObservationEventVerdict;
|
|
56
|
+
}
|
|
57
|
+
export interface ObservationEventReviewResponse {
|
|
58
|
+
updated: boolean;
|
|
59
|
+
id: number | string;
|
|
60
|
+
message: string;
|
|
61
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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;
|
|
3
|
+
export type ObservationEvent = {
|
|
4
|
+
id: number;
|
|
5
|
+
observationTypeId: number;
|
|
6
|
+
observationCode: string | null;
|
|
7
|
+
cameraExid: CameraExid;
|
|
8
|
+
projectExid: ProjectExid | null;
|
|
9
|
+
capturedAt: DateType;
|
|
10
|
+
endTime: DateType | null;
|
|
11
|
+
confidence: number | null;
|
|
12
|
+
status: ObservationEventStatus;
|
|
13
|
+
isApproved: ObservationApproval;
|
|
14
|
+
reason: string | null;
|
|
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;
|
|
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
|
+
}
|
|
37
|
+
export type ObservationEventsQueryParams = {
|
|
38
|
+
cameraExid?: CameraExid;
|
|
39
|
+
observationCode?: string;
|
|
40
|
+
fromDate?: string;
|
|
41
|
+
toDate?: string;
|
|
42
|
+
missingItems?: string;
|
|
43
|
+
status?: ObservationEventStatus;
|
|
44
|
+
sort?: string;
|
|
45
|
+
page?: number;
|
|
46
|
+
limit?: number;
|
|
47
|
+
};
|
|
48
|
+
export type ObservationEventsExportQueryParams = {
|
|
49
|
+
cameraExid?: CameraExid;
|
|
50
|
+
fromDate: string;
|
|
51
|
+
toDate: string;
|
|
52
|
+
required?: string;
|
|
53
|
+
compliant?: boolean;
|
|
54
|
+
fileType: DownloadFileType;
|
|
55
|
+
directDownload?: boolean;
|
|
56
|
+
includeInvalid?: boolean;
|
|
57
|
+
};
|
|
58
|
+
export type ObservationApprovalUpdateResponse = {
|
|
59
|
+
updated: boolean;
|
|
60
|
+
id: number | string | null;
|
|
61
|
+
message: string;
|
|
62
|
+
};
|
|
63
|
+
export declare enum ObservationCountsGranularity {
|
|
64
|
+
Day = "day",
|
|
65
|
+
Week = "week",
|
|
66
|
+
Month = "month"
|
|
67
|
+
}
|
|
68
|
+
export type ObservationEventsCountsQueryParams = {
|
|
69
|
+
cameraExid?: CameraExid;
|
|
70
|
+
observationCode?: string;
|
|
71
|
+
fromDate?: string;
|
|
72
|
+
toDate?: string;
|
|
73
|
+
missingItems?: string;
|
|
74
|
+
status?: ObservationEventStatus;
|
|
75
|
+
granularity?: ObservationCountsGranularity;
|
|
76
|
+
};
|
|
77
|
+
export type ObservationEventCount = {
|
|
78
|
+
bucket: DateType;
|
|
79
|
+
total: number;
|
|
80
|
+
};
|
|
81
|
+
export declare enum ObservationRequiredItem {
|
|
82
|
+
Helmet = "has_helmet",
|
|
83
|
+
HighVisVest = "has_high_vis_vest"
|
|
84
|
+
}
|
|
@@ -51,14 +51,6 @@ export declare enum EPageType {
|
|
|
51
51
|
List = "list",
|
|
52
52
|
Item = "item"
|
|
53
53
|
}
|
|
54
|
-
export declare enum EPaths {
|
|
55
|
-
Home = "/",
|
|
56
|
-
Session = "/session"
|
|
57
|
-
}
|
|
58
|
-
export declare enum EProjectItems {
|
|
59
|
-
Camera = "camera",
|
|
60
|
-
Overlay = "overlay"
|
|
61
|
-
}
|
|
62
54
|
export declare enum ERoles {
|
|
63
55
|
Admin = "admin",
|
|
64
56
|
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;
|
|
@@ -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",
|
|
@@ -128,15 +128,6 @@ export type FeedbackPayload = {
|
|
|
128
128
|
messageId?: number;
|
|
129
129
|
conversationId?: number;
|
|
130
130
|
};
|
|
131
|
-
export type Stringified<T> = string & {
|
|
132
|
-
[P in keyof T]: {
|
|
133
|
-
"_ value": T[P];
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
export interface JSON {
|
|
137
|
-
stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
|
|
138
|
-
parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
|
|
139
|
-
}
|
|
140
131
|
export type TuplePoint2D = [number, number];
|
|
141
132
|
export type TuplePoint3D = [number, number, number];
|
|
142
133
|
export type Point2D = {
|
|
@@ -178,16 +169,6 @@ export declare enum TimelinePrecision {
|
|
|
178
169
|
Minute = "minute",
|
|
179
170
|
Events = "events"
|
|
180
171
|
}
|
|
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
172
|
export declare enum TaskStatus {
|
|
192
173
|
Idle = "idle",
|
|
193
174
|
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,4 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid } from "@evercam/api/types";
|
|
1
|
+
import { CameraExid, DateType, PaginationParams, ProjectExid } from "@evercam/api/types";
|
|
2
2
|
export type SiteAnalyticsCoolifyStatus = {
|
|
3
3
|
appUuid: string | null;
|
|
4
4
|
name: string | null;
|
|
@@ -35,6 +35,9 @@ export type SiteAnalyticsManagedApp = {
|
|
|
35
35
|
source: string;
|
|
36
36
|
override: boolean;
|
|
37
37
|
timeIncreaseFrequency: number;
|
|
38
|
+
skipWeekends: boolean;
|
|
39
|
+
tracking: boolean;
|
|
40
|
+
observations: boolean;
|
|
38
41
|
insertedAt: DateType | null;
|
|
39
42
|
updatedAt: DateType | null;
|
|
40
43
|
coolify: SiteAnalyticsCoolifyStatus | null;
|
|
@@ -54,7 +57,11 @@ export type CreateSiteAnalyticsAppPayload = {
|
|
|
54
57
|
endHour?: number;
|
|
55
58
|
source?: string;
|
|
56
59
|
override?: boolean;
|
|
60
|
+
skipWeekends?: boolean;
|
|
57
61
|
timeIncreaseFrequency?: number;
|
|
62
|
+
tracking?: boolean;
|
|
63
|
+
observations?: boolean;
|
|
64
|
+
observationPromptId?: number | null;
|
|
58
65
|
};
|
|
59
66
|
export type UpdateSiteAnalyticsAppPayload = Partial<Omit<CreateSiteAnalyticsAppPayload, "projectExid" | "cameraExid" | "coolifyServerUuid">>;
|
|
60
67
|
export type ModelOption = {
|
|
@@ -71,12 +78,11 @@ export type SiteAnalyticsAppConfigFormValue = {
|
|
|
71
78
|
source: string;
|
|
72
79
|
override: boolean;
|
|
73
80
|
timeIncreaseFrequency: number;
|
|
81
|
+
skipWeekends: boolean;
|
|
74
82
|
};
|
|
75
|
-
export type SiteAnalyticsManagementListParams = {
|
|
83
|
+
export type SiteAnalyticsManagementListParams = PaginationParams & {
|
|
76
84
|
projectExid?: ProjectExid;
|
|
77
85
|
includeStatus?: boolean;
|
|
78
|
-
page?: number;
|
|
79
|
-
limit?: number;
|
|
80
86
|
};
|
|
81
87
|
export type CreateSiteAnalyticsAppResponse = {
|
|
82
88
|
created: boolean;
|
|
@@ -90,3 +96,22 @@ export type DeleteSiteAnalyticsAppResponse = {
|
|
|
90
96
|
count: number;
|
|
91
97
|
message: string;
|
|
92
98
|
};
|
|
99
|
+
export type ObservationConfigActivity = {
|
|
100
|
+
observationTypeId: number;
|
|
101
|
+
every: number | null;
|
|
102
|
+
};
|
|
103
|
+
export type ObservationConfig = {
|
|
104
|
+
id: number;
|
|
105
|
+
cameraExid: CameraExid;
|
|
106
|
+
projectExid: ProjectExid | null;
|
|
107
|
+
enabled: boolean;
|
|
108
|
+
activities: ObservationConfigActivity[];
|
|
109
|
+
createdBy: string | null;
|
|
110
|
+
insertedAt: DateType | null;
|
|
111
|
+
updatedAt: DateType | null;
|
|
112
|
+
};
|
|
113
|
+
export type UpsertObservationConfigPayload = {
|
|
114
|
+
projectExid?: ProjectExid;
|
|
115
|
+
enabled: boolean;
|
|
116
|
+
activities: ObservationConfigActivity[];
|
|
117
|
+
};
|
|
@@ -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;
|