@evercam/api 1.0.0-9fea602cf → 1.0.0-a1265cf0a
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 +56 -16
- package/dist/api/api/adminApi.d.ts +5 -4
- package/dist/api/api/aiApi.d.ts +30 -3
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +21 -10
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +6 -2
- package/dist/api/types/360.d.ts +135 -33
- package/dist/api/types/aiConfigs.d.ts +3 -11
- package/dist/api/types/analytics.d.ts +9 -0
- package/dist/api/types/authz.d.ts +46 -0
- package/dist/api/types/axios.d.ts +2 -4
- package/dist/api/types/bim.d.ts +3 -5
- package/dist/api/types/camera.d.ts +2 -7
- package/dist/api/types/comments.d.ts +2 -1
- 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/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 +12 -1
- package/dist/api/types/kit.d.ts +38 -51
- package/dist/api/types/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +12 -2
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/planner.d.ts +0 -8
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +7 -0
- package/dist/api/types/recording.d.ts +4 -5
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +2 -10
- 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 +90 -0
- 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 +0 -3
- package/dist/index.js +832 -514
- 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 +74 -28
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/package.json +1 -1
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -36,12 +36,13 @@ export * from "./storyblok";
|
|
|
36
36
|
export * from "./time";
|
|
37
37
|
export * from "./timelapse";
|
|
38
38
|
export * from "./user";
|
|
39
|
-
export * from "./vendorModel";
|
|
40
39
|
export * from "./videoWall";
|
|
41
40
|
export * from "./voyageControl";
|
|
41
|
+
export * from "./hammertech";
|
|
42
42
|
export * from "./weather";
|
|
43
43
|
export * from "./comments";
|
|
44
44
|
export * from "./detections";
|
|
45
|
+
export * from "./observations";
|
|
45
46
|
export * from "./axios";
|
|
46
47
|
export * from "./shared";
|
|
47
48
|
export * from "./company";
|
|
@@ -49,6 +50,7 @@ export * from "./kit";
|
|
|
49
50
|
export * from "./auditLogs";
|
|
50
51
|
export * from "./snapshots";
|
|
51
52
|
export * from "./siteAnalytics";
|
|
53
|
+
export * from "./siteAnalyticsManagement";
|
|
52
54
|
export * from "./widget";
|
|
53
55
|
export * from "./countries";
|
|
54
56
|
export * from "./automation";
|
|
@@ -65,3 +67,4 @@ export * from "./smartSeach";
|
|
|
65
67
|
export * from "./siteView";
|
|
66
68
|
export * from "./aiConfigs";
|
|
67
69
|
export * from "./gateReportManagement";
|
|
70
|
+
export * from "./socket";
|
|
@@ -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",
|
|
@@ -54,6 +55,7 @@ export type DroneUploadItem = {
|
|
|
54
55
|
modelCesiumAssetId: string;
|
|
55
56
|
updatedAt: string;
|
|
56
57
|
hasTusLinks: boolean;
|
|
58
|
+
aerialShots: AerialShotItem[];
|
|
57
59
|
};
|
|
58
60
|
export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
|
|
59
61
|
export type DroneQueueResponse = {
|
|
@@ -89,6 +91,15 @@ export type CalculateMeasuringOperationRequestPayload = {
|
|
|
89
91
|
export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
|
|
90
92
|
date: DateType;
|
|
91
93
|
};
|
|
94
|
+
export type AerialShotItem = {
|
|
95
|
+
id: number;
|
|
96
|
+
droneUploadId: number;
|
|
97
|
+
fileLink: string;
|
|
98
|
+
thumbnailLink: string;
|
|
99
|
+
gpsLatitude: string;
|
|
100
|
+
gpsLongitude: string;
|
|
101
|
+
gpsAltitude: string;
|
|
102
|
+
};
|
|
92
103
|
export type InspectionToolRequestPayload = {
|
|
93
104
|
date: DateType;
|
|
94
105
|
gpsAltitude: string;
|
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -22,6 +22,33 @@ 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
|
+
CamerasHaveDeviceId = "cameras_have_device_id",
|
|
29
|
+
CamerasRecording = "cameras_recording"
|
|
30
|
+
}
|
|
31
|
+
export declare enum KitSupportCheckStatus {
|
|
32
|
+
Passed = "passed",
|
|
33
|
+
Failed = "failed",
|
|
34
|
+
Skipped = "skipped"
|
|
35
|
+
}
|
|
36
|
+
export type KitSupportCheck = {
|
|
37
|
+
id: KitSupportCheckId;
|
|
38
|
+
name: string;
|
|
39
|
+
status: KitSupportCheckStatus;
|
|
40
|
+
error: string | null;
|
|
41
|
+
};
|
|
42
|
+
export type KitSupportChecklist = {
|
|
43
|
+
checks: KitSupportCheck[];
|
|
44
|
+
};
|
|
45
|
+
export type KitDiagnosticRun = {
|
|
46
|
+
kitId: number;
|
|
47
|
+
kitSerial: string;
|
|
48
|
+
checks: KitSupportCheck[];
|
|
49
|
+
ranAt: string;
|
|
50
|
+
isSeen: boolean;
|
|
51
|
+
};
|
|
25
52
|
export declare enum KitStatus {
|
|
26
53
|
New = "new",
|
|
27
54
|
Active = "active",
|
|
@@ -45,11 +72,14 @@ export declare enum KitAlarm {
|
|
|
45
72
|
NoHdd = "no_hdd",
|
|
46
73
|
MissingRouterInfo = "missing_router_info",
|
|
47
74
|
AcFailure = "ac_failure",
|
|
48
|
-
LowBattery = "low_battery"
|
|
75
|
+
LowBattery = "low_battery",
|
|
76
|
+
GeneratorOff = "generator_off"
|
|
49
77
|
}
|
|
50
78
|
export declare enum KitMetricId {
|
|
51
79
|
SolarCharger = "solar_charger",
|
|
52
|
-
PanelPower = "panel_power"
|
|
80
|
+
PanelPower = "panel_power",
|
|
81
|
+
Fan = "fan",
|
|
82
|
+
FanTemperature = "fan_temperature"
|
|
53
83
|
}
|
|
54
84
|
export declare enum KitMetricPeriod {
|
|
55
85
|
Last15Minutes = "now-15m",
|
|
@@ -115,55 +145,6 @@ export declare enum KitChartType {
|
|
|
115
145
|
TimeSeries = "timeseries",
|
|
116
146
|
BarChart = "barchart"
|
|
117
147
|
}
|
|
118
|
-
export type GrafanaDataSource = {
|
|
119
|
-
type: string;
|
|
120
|
-
uid: string;
|
|
121
|
-
};
|
|
122
|
-
export type GrafanaTarget = {
|
|
123
|
-
expr: string;
|
|
124
|
-
refId: string;
|
|
125
|
-
datasourceId?: string;
|
|
126
|
-
intervalMs?: number;
|
|
127
|
-
maxDataPoints?: number;
|
|
128
|
-
};
|
|
129
|
-
export type GrafanaPanel = {
|
|
130
|
-
[key: string]: unknown;
|
|
131
|
-
id: GrafanaMetricId;
|
|
132
|
-
name: keyof GrafanaMetricId;
|
|
133
|
-
title: string;
|
|
134
|
-
description: string;
|
|
135
|
-
type: KitChartType;
|
|
136
|
-
datasource: GrafanaDataSource;
|
|
137
|
-
targets: GrafanaTarget[];
|
|
138
|
-
maxDataPoints?: number;
|
|
139
|
-
interval?: string;
|
|
140
|
-
timeFrom?: string;
|
|
141
|
-
timeShift?: string;
|
|
142
|
-
options?: {
|
|
143
|
-
maxDataPoints?: number;
|
|
144
|
-
interval?: string;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
export type GrafanaDashboard = {
|
|
148
|
-
[key: string]: unknown;
|
|
149
|
-
panels: GrafanaPanel[];
|
|
150
|
-
time?: {
|
|
151
|
-
from: string;
|
|
152
|
-
to: string;
|
|
153
|
-
};
|
|
154
|
-
timepicker?: {
|
|
155
|
-
refresh_intervals: string[];
|
|
156
|
-
time_options: string[];
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
export type GrafanaQueryOptions = {
|
|
160
|
-
metricId: GrafanaMetricId;
|
|
161
|
-
host: string;
|
|
162
|
-
job?: string;
|
|
163
|
-
from?: string;
|
|
164
|
-
to?: string;
|
|
165
|
-
variables?: Record<string, string>;
|
|
166
|
-
};
|
|
167
148
|
export type GrafanaTimeSeriesValue = number | string | null;
|
|
168
149
|
export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
|
|
169
150
|
export type GrafanaFieldConfig = {
|
|
@@ -312,6 +293,12 @@ export type KitMetricStatsEntry = {
|
|
|
312
293
|
panelVoltage: number;
|
|
313
294
|
panelPower: number;
|
|
314
295
|
};
|
|
296
|
+
export type KitFanStatsEntry = {
|
|
297
|
+
timestamp: string;
|
|
298
|
+
speed: number;
|
|
299
|
+
internalTemperature: number;
|
|
300
|
+
externalTemperature: number | null;
|
|
301
|
+
};
|
|
315
302
|
export type KitUpdatePayload = {
|
|
316
303
|
countryId: number;
|
|
317
304
|
name: string;
|
|
@@ -5,7 +5,13 @@ 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"
|
|
9
15
|
}
|
|
10
16
|
export interface NotificationContextBase {
|
|
11
17
|
cameraExid?: string;
|
|
@@ -41,7 +47,11 @@ export interface Processing360Context extends NotificationContextBase {
|
|
|
41
47
|
date: string;
|
|
42
48
|
floor: string;
|
|
43
49
|
}
|
|
44
|
-
export
|
|
50
|
+
export interface ExportNotificationContext extends NotificationContextBase {
|
|
51
|
+
projectExid: string;
|
|
52
|
+
archiveExid?: string;
|
|
53
|
+
}
|
|
54
|
+
export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context | ExportNotificationContext;
|
|
45
55
|
export type Notification = {
|
|
46
56
|
id: number;
|
|
47
57
|
type: NotificationType;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { type ProjectExid, type CameraExid, type DateType, type BBox, PpeLabel, DownloadFileType } from "@evercam/api/types";
|
|
2
|
+
export declare enum ObservationItemState {
|
|
3
|
+
Absent = 0,
|
|
4
|
+
Present = 1,
|
|
5
|
+
NotVisible = 2
|
|
6
|
+
}
|
|
7
|
+
export type ObservationEventEquipment = {
|
|
8
|
+
score: number;
|
|
9
|
+
bbox: BBox;
|
|
10
|
+
};
|
|
11
|
+
export type ObservationEvent = {
|
|
12
|
+
id: number;
|
|
13
|
+
cameraExid: CameraExid;
|
|
14
|
+
projectExid: ProjectExid;
|
|
15
|
+
capturedAt: DateType;
|
|
16
|
+
personIndex: number;
|
|
17
|
+
personBbox: BBox;
|
|
18
|
+
personScore: number;
|
|
19
|
+
ppe: Partial<Record<PpeLabel, ObservationEventEquipment>>;
|
|
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;
|
|
27
|
+
reason: string | null;
|
|
28
|
+
isApproved: boolean | null;
|
|
29
|
+
};
|
|
30
|
+
export type ObservationEventsQueryParams = {
|
|
31
|
+
cameraExid?: CameraExid;
|
|
32
|
+
fromDate?: string;
|
|
33
|
+
toDate?: string;
|
|
34
|
+
required?: string;
|
|
35
|
+
compliant?: boolean;
|
|
36
|
+
hasHelmet?: boolean;
|
|
37
|
+
hasHighVisVest?: boolean;
|
|
38
|
+
hasGloves?: boolean;
|
|
39
|
+
hasGlasses?: boolean;
|
|
40
|
+
sort?: string;
|
|
41
|
+
page?: number;
|
|
42
|
+
limit?: number;
|
|
43
|
+
};
|
|
44
|
+
export type ObservationEventsExportQueryParams = {
|
|
45
|
+
cameraExid?: CameraExid;
|
|
46
|
+
fromDate: string;
|
|
47
|
+
toDate: string;
|
|
48
|
+
required?: string;
|
|
49
|
+
compliant?: boolean;
|
|
50
|
+
fileType: DownloadFileType;
|
|
51
|
+
directDownload?: boolean;
|
|
52
|
+
includeInvalid?: boolean;
|
|
53
|
+
};
|
|
54
|
+
export type ObservationApprovalUpdateResponse = {
|
|
55
|
+
updated: boolean;
|
|
56
|
+
id: number | string | null;
|
|
57
|
+
message: string;
|
|
58
|
+
};
|
|
59
|
+
export declare enum ObservationCountsGranularity {
|
|
60
|
+
Day = "day",
|
|
61
|
+
Week = "week",
|
|
62
|
+
Month = "month"
|
|
63
|
+
}
|
|
64
|
+
export type ObservationEventsCountsQueryParams = {
|
|
65
|
+
cameraExid?: CameraExid;
|
|
66
|
+
fromDate?: string;
|
|
67
|
+
toDate?: string;
|
|
68
|
+
required?: string;
|
|
69
|
+
compliant?: boolean;
|
|
70
|
+
hasHelmet?: boolean;
|
|
71
|
+
hasHighVisVest?: boolean;
|
|
72
|
+
hasGloves?: boolean;
|
|
73
|
+
hasGlasses?: boolean;
|
|
74
|
+
granularity?: ObservationCountsGranularity;
|
|
75
|
+
};
|
|
76
|
+
export type ObservationEventCount = {
|
|
77
|
+
bucket: DateType;
|
|
78
|
+
total: number;
|
|
79
|
+
compliant: number;
|
|
80
|
+
nonCompliant: number;
|
|
81
|
+
};
|
|
82
|
+
export declare enum ObservationRequiredItem {
|
|
83
|
+
Helmet = "has_helmet",
|
|
84
|
+
HighVisVest = "has_high_vis_vest"
|
|
85
|
+
}
|
|
@@ -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"
|
|
@@ -16,6 +16,26 @@ export declare enum ActiveUsersMetric {
|
|
|
16
16
|
WAU = "wau",
|
|
17
17
|
MAU = "mau"
|
|
18
18
|
}
|
|
19
|
+
export type PosthogUser = {
|
|
20
|
+
id: string;
|
|
21
|
+
email: string;
|
|
22
|
+
isWeeklyActiveUser: number;
|
|
23
|
+
isMonthlyActiveUser: number;
|
|
24
|
+
eventsCount: number;
|
|
25
|
+
};
|
|
26
|
+
export type PosthogUsersRequestParams = {
|
|
27
|
+
companyExid?: string;
|
|
28
|
+
projectExid?: string;
|
|
29
|
+
cameraExid?: string;
|
|
30
|
+
productsActivityOnly?: boolean;
|
|
31
|
+
afterId?: string;
|
|
32
|
+
size?: number;
|
|
33
|
+
};
|
|
34
|
+
export type PosthogUsersResponse = {
|
|
35
|
+
data: PosthogUser[];
|
|
36
|
+
hasMore: boolean;
|
|
37
|
+
size: number;
|
|
38
|
+
};
|
|
19
39
|
export type PosthogUserParams = {
|
|
20
40
|
firstname?: string;
|
|
21
41
|
lastname?: string;
|
|
@@ -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,16 +1,17 @@
|
|
|
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;
|
|
5
5
|
data: string;
|
|
6
6
|
status?: string;
|
|
7
7
|
};
|
|
8
|
-
export type
|
|
8
|
+
export type SnapshotRequestPayload = {
|
|
9
9
|
apiKey?: string;
|
|
10
10
|
apiId?: string;
|
|
11
11
|
token?: string;
|
|
12
12
|
cancelToken?: object;
|
|
13
13
|
includeImage?: boolean;
|
|
14
|
+
view?: boolean;
|
|
14
15
|
};
|
|
15
16
|
export type AvailableDaysRequestPayload = {
|
|
16
17
|
cameraId: string;
|
|
@@ -40,11 +41,9 @@ export type NearestSnapshotResponsePayload = {
|
|
|
40
41
|
notes?: string;
|
|
41
42
|
}>;
|
|
42
43
|
};
|
|
43
|
-
export type SnapshotRangeRequestPayload = {
|
|
44
|
+
export type SnapshotRangeRequestPayload = PaginationParams & {
|
|
44
45
|
from: string;
|
|
45
46
|
to: string;
|
|
46
|
-
limit?: number;
|
|
47
|
-
page?: number;
|
|
48
47
|
schedule?: boolean;
|
|
49
48
|
count?: number;
|
|
50
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
|
@@ -3,7 +3,8 @@ export declare enum RoiType {
|
|
|
3
3
|
AnprContext = "anpr_context",
|
|
4
4
|
ExclusionZone = "exclusion_zone",
|
|
5
5
|
WorkflowArea = "workflow_area",
|
|
6
|
-
SiteAnalytics = "site_analytics"
|
|
6
|
+
SiteAnalytics = "site_analytics",
|
|
7
|
+
Ppe = "ppe_roi"
|
|
7
8
|
}
|
|
8
9
|
export declare enum RoiShapeType {
|
|
9
10
|
Polygon = "polygon",
|
|
@@ -11,15 +12,6 @@ export declare enum RoiShapeType {
|
|
|
11
12
|
Direction = "direction",
|
|
12
13
|
Rectangle = "rectangle"
|
|
13
14
|
}
|
|
14
|
-
export type RoiShape = {
|
|
15
|
-
id: number | null;
|
|
16
|
-
name: string;
|
|
17
|
-
x1: number;
|
|
18
|
-
x2: number;
|
|
19
|
-
y1: number;
|
|
20
|
-
y2: number;
|
|
21
|
-
points?: [number, number][];
|
|
22
|
-
};
|
|
23
15
|
export declare enum RoiDirection {
|
|
24
16
|
Arrived = "arrived",
|
|
25
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 = {
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { CameraExid, DateType, PaginationParams, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
export type SiteAnalyticsCoolifyStatus = {
|
|
3
|
+
appUuid: string | null;
|
|
4
|
+
name: string | null;
|
|
5
|
+
serverUuid: string | null;
|
|
6
|
+
serverName: string | null;
|
|
7
|
+
appUrl: string | null;
|
|
8
|
+
status: string | null;
|
|
9
|
+
isRunning: boolean;
|
|
10
|
+
updatedAt: string | null;
|
|
11
|
+
};
|
|
12
|
+
export type SiteAnalyticsProjectMeta = {
|
|
13
|
+
exid: ProjectExid;
|
|
14
|
+
name: string | null;
|
|
15
|
+
timezone: string | null;
|
|
16
|
+
featureFlags: string[] | null;
|
|
17
|
+
};
|
|
18
|
+
export type SiteAnalyticsCameraMeta = {
|
|
19
|
+
exid: CameraExid;
|
|
20
|
+
name: string | null;
|
|
21
|
+
status: string | null;
|
|
22
|
+
featureFlags: string[] | null;
|
|
23
|
+
};
|
|
24
|
+
export type SiteAnalyticsManagedApp = {
|
|
25
|
+
id: number;
|
|
26
|
+
projectExid: ProjectExid;
|
|
27
|
+
cameraExid: CameraExid;
|
|
28
|
+
coolifyAppId: string | null;
|
|
29
|
+
appVersion: string;
|
|
30
|
+
modelId: number | null;
|
|
31
|
+
startDate: DateType | null;
|
|
32
|
+
endDate: DateType | null;
|
|
33
|
+
startHour: number;
|
|
34
|
+
endHour: number;
|
|
35
|
+
source: string;
|
|
36
|
+
override: boolean;
|
|
37
|
+
timeIncreaseFrequency: number;
|
|
38
|
+
insertedAt: DateType | null;
|
|
39
|
+
updatedAt: DateType | null;
|
|
40
|
+
coolify: SiteAnalyticsCoolifyStatus | null;
|
|
41
|
+
project: SiteAnalyticsProjectMeta | null;
|
|
42
|
+
camera: SiteAnalyticsCameraMeta | null;
|
|
43
|
+
lastTrackingAt: DateType | null;
|
|
44
|
+
};
|
|
45
|
+
export type CreateSiteAnalyticsAppPayload = {
|
|
46
|
+
projectExid: ProjectExid;
|
|
47
|
+
cameraExid: CameraExid;
|
|
48
|
+
coolifyServerUuid: string;
|
|
49
|
+
appVersion?: string;
|
|
50
|
+
modelId?: number | null;
|
|
51
|
+
startDate?: DateType | null;
|
|
52
|
+
endDate?: DateType | null;
|
|
53
|
+
startHour?: number;
|
|
54
|
+
endHour?: number;
|
|
55
|
+
source?: string;
|
|
56
|
+
override?: boolean;
|
|
57
|
+
timeIncreaseFrequency?: number;
|
|
58
|
+
};
|
|
59
|
+
export type UpdateSiteAnalyticsAppPayload = Partial<Omit<CreateSiteAnalyticsAppPayload, "projectExid" | "cameraExid" | "coolifyServerUuid">>;
|
|
60
|
+
export type ModelOption = {
|
|
61
|
+
modelId: number;
|
|
62
|
+
version: string;
|
|
63
|
+
};
|
|
64
|
+
export type SiteAnalyticsAppConfigFormValue = {
|
|
65
|
+
appVersion: string;
|
|
66
|
+
modelId: number | null;
|
|
67
|
+
startDate: string | null;
|
|
68
|
+
endDate: string | null;
|
|
69
|
+
startHour: number;
|
|
70
|
+
endHour: number;
|
|
71
|
+
source: string;
|
|
72
|
+
override: boolean;
|
|
73
|
+
timeIncreaseFrequency: number;
|
|
74
|
+
};
|
|
75
|
+
export type SiteAnalyticsManagementListParams = PaginationParams & {
|
|
76
|
+
projectExid?: ProjectExid;
|
|
77
|
+
includeStatus?: boolean;
|
|
78
|
+
};
|
|
79
|
+
export type CreateSiteAnalyticsAppResponse = {
|
|
80
|
+
created: boolean;
|
|
81
|
+
id: number | null;
|
|
82
|
+
data: SiteAnalyticsManagedApp | null;
|
|
83
|
+
count: number | null;
|
|
84
|
+
message: string;
|
|
85
|
+
};
|
|
86
|
+
export type DeleteSiteAnalyticsAppResponse = {
|
|
87
|
+
deleted: boolean;
|
|
88
|
+
count: number;
|
|
89
|
+
message: string;
|
|
90
|
+
};
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Point2D, Schedule } from "@evercam/api/types";
|
|
2
2
|
export declare enum TimelapseStatus {
|
|
3
3
|
Pending = 11,
|
|
4
4
|
Completed = 5,
|
|
@@ -54,13 +54,6 @@ export declare enum TimelapseType {
|
|
|
54
54
|
Year = "year",
|
|
55
55
|
FullProject = "full_project"
|
|
56
56
|
}
|
|
57
|
-
export type TimelapseFilterQueryParams = {
|
|
58
|
-
from?: DateType;
|
|
59
|
-
to?: DateType;
|
|
60
|
-
period?: TimelapsePeriod;
|
|
61
|
-
duration?: number;
|
|
62
|
-
schedule?: Schedule;
|
|
63
|
-
};
|
|
64
57
|
export type TimelapseCreationRequestPayload = {
|
|
65
58
|
title: string;
|
|
66
59
|
duration: number;
|