@evercam/api 1.0.0-b908926bb → 1.0.0-b99537a4c
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 -23
- package/dist/api/api/adminApi.d.ts +10 -9
- package/dist/api/api/aiApi.d.ts +95 -3
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +26 -11
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +17 -6
- package/dist/api/types/360.d.ts +112 -42
- package/dist/api/types/aiConfigs.d.ts +102 -12
- package/dist/api/types/analytics.d.ts +14 -9
- package/dist/api/types/auditLogs.d.ts +0 -1
- package/dist/api/types/authz.d.ts +71 -0
- package/dist/api/types/automation.d.ts +23 -4
- package/dist/api/types/axios.d.ts +2 -4
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +24 -21
- package/dist/api/types/comments.d.ts +2 -1
- package/dist/api/types/connector.d.ts +2 -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 +5 -1
- package/dist/api/types/ingest.d.ts +87 -1
- package/dist/api/types/kit.d.ts +43 -51
- 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 +141 -0
- package/dist/api/types/observations.d.ts +84 -0
- package/dist/api/types/planner.d.ts +1 -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 +127 -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 +15 -3
- package/dist/index.js +1283 -724
- 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 +88 -32
- 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
package/dist/api/types/bim.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompareLogoPosition, DateType } from "@evercam/api/types";
|
|
1
|
+
import { CompareLogoPosition, DateType, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export declare enum BimModelType {
|
|
3
3
|
Architectural = "Architectural",
|
|
4
4
|
Structural = "Structural",
|
|
@@ -101,7 +101,7 @@ export type BIMLayerPostPayload = {
|
|
|
101
101
|
layerType: BIMLayerTypes;
|
|
102
102
|
startAt: DateType;
|
|
103
103
|
shapes: string;
|
|
104
|
-
zIndex
|
|
104
|
+
zIndex?: number;
|
|
105
105
|
};
|
|
106
106
|
export type BIMLayer = {
|
|
107
107
|
id: number;
|
|
@@ -137,9 +137,7 @@ export type ProcessPendingImagesBimParams = {
|
|
|
137
137
|
apiId: string;
|
|
138
138
|
apiKey: string;
|
|
139
139
|
};
|
|
140
|
-
export type BimUploadsQueryParams = {
|
|
141
|
-
page: number;
|
|
142
|
-
limit: number;
|
|
140
|
+
export type BimUploadsQueryParams = PaginationParams & {
|
|
143
141
|
projectId: string;
|
|
144
142
|
id: string;
|
|
145
143
|
uploadedBy: string;
|
|
@@ -168,3 +166,11 @@ export declare enum ForgeBimDialogTrigger {
|
|
|
168
166
|
AddModel = "add_model",
|
|
169
167
|
InitialSetup = "initial_setup"
|
|
170
168
|
}
|
|
169
|
+
export type BimUpdatedWebhookPayload = {
|
|
170
|
+
eventName: "bim.updated";
|
|
171
|
+
projectId: string;
|
|
172
|
+
data: {
|
|
173
|
+
updatedAt: string;
|
|
174
|
+
bimIdentifier: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
@@ -81,6 +81,7 @@ export type Camera = {
|
|
|
81
81
|
isAccessRestricted?: boolean;
|
|
82
82
|
kitAlarms?: KitAlarm[];
|
|
83
83
|
timestampPosition?: TimestampPositionCoordinates;
|
|
84
|
+
position?: number | null;
|
|
84
85
|
};
|
|
85
86
|
export type AdminCamera = {
|
|
86
87
|
id: number;
|
|
@@ -202,16 +203,10 @@ export declare enum CameraFeatureFlag {
|
|
|
202
203
|
PpeYolo = "ppe_yolo",
|
|
203
204
|
PpeV2 = "ppe_v2",
|
|
204
205
|
NoLiveView = "no_live_view",
|
|
206
|
+
NoRecordings = "no_recordings",
|
|
205
207
|
Ring = "ring",
|
|
206
208
|
CloudOnly = "cloud_only"
|
|
207
209
|
}
|
|
208
|
-
export type CameraLogsRequestPayload = {
|
|
209
|
-
limit: number;
|
|
210
|
-
page: number;
|
|
211
|
-
types: string;
|
|
212
|
-
from: string;
|
|
213
|
-
to: string;
|
|
214
|
-
};
|
|
215
210
|
export type CameraUpdateRequestPayload = {
|
|
216
211
|
status?: string;
|
|
217
212
|
timezone?: string;
|
|
@@ -252,13 +247,17 @@ export type CameraUpdateRequestPayload = {
|
|
|
252
247
|
export type CamerasResponsePayload = {
|
|
253
248
|
cameras?: Camera[];
|
|
254
249
|
};
|
|
255
|
-
export type
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
customMessage?: string;
|
|
250
|
+
export type CameraNoteResponsePayload = {
|
|
251
|
+
id: number;
|
|
252
|
+
camera: {
|
|
253
|
+
exid: string;
|
|
254
|
+
name: string;
|
|
261
255
|
};
|
|
256
|
+
who: string;
|
|
257
|
+
noteType: string;
|
|
258
|
+
content: string;
|
|
259
|
+
pinned: boolean;
|
|
260
|
+
insertedAt: string;
|
|
262
261
|
};
|
|
263
262
|
export type CameraStatusLog = {
|
|
264
263
|
start: string;
|
|
@@ -389,22 +388,26 @@ export type CameraDeletePayload = {
|
|
|
389
388
|
verify: string;
|
|
390
389
|
password: string;
|
|
391
390
|
};
|
|
392
|
-
export type SaveNotePayload = {
|
|
393
|
-
noteType: string;
|
|
394
|
-
content: string;
|
|
395
|
-
};
|
|
396
391
|
export type CameraNote = {
|
|
397
392
|
id: number;
|
|
398
393
|
cameraId: number;
|
|
394
|
+
who: string;
|
|
399
395
|
noteType: string;
|
|
400
396
|
content: string;
|
|
397
|
+
pinned: boolean;
|
|
401
398
|
insertedAt: DateType;
|
|
402
399
|
};
|
|
400
|
+
export type GetCameraNotesParams = {
|
|
401
|
+
noteType?: string;
|
|
402
|
+
pinned?: boolean;
|
|
403
|
+
sort?: string;
|
|
404
|
+
page?: number;
|
|
405
|
+
limit?: number;
|
|
406
|
+
};
|
|
403
407
|
export type CreateCameraNotePayload = {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
action: string;
|
|
408
|
+
noteType: string;
|
|
409
|
+
content: string;
|
|
410
|
+
pinned?: boolean;
|
|
408
411
|
};
|
|
409
412
|
export declare enum HddStatus {
|
|
410
413
|
Error = "error",
|
|
@@ -48,9 +48,10 @@ export type CommentCreationRequestPayload = {
|
|
|
48
48
|
toDate?: DateType;
|
|
49
49
|
timestamp?: DateType;
|
|
50
50
|
scope?: CommentsScope;
|
|
51
|
-
projectExid
|
|
51
|
+
projectExid?: ProjectExid;
|
|
52
52
|
cameraExid?: CameraExid;
|
|
53
53
|
content: string;
|
|
54
|
+
label?: CommentsLabel;
|
|
54
55
|
position2d?: TuplePoint2D;
|
|
55
56
|
position3d?: [number, number, number];
|
|
56
57
|
context?: Record<string, unknown>;
|
|
@@ -45,9 +45,6 @@ export type CopilotMissingField<T = unknown> = {
|
|
|
45
45
|
error?: T;
|
|
46
46
|
};
|
|
47
47
|
export type CopilotMissingFields = Record<number, CopilotMissingField[]>;
|
|
48
|
-
export type UserConversations = CopilotConversation & {
|
|
49
|
-
Message: CopilotMessage[];
|
|
50
|
-
};
|
|
51
48
|
export declare enum CopilotSocketEvent {
|
|
52
49
|
ConversationStart = "conversation:start",
|
|
53
50
|
ConversationCreated = "conversation:created",
|
|
@@ -19,7 +19,6 @@ export type DroneModel = {
|
|
|
19
19
|
export type DroneProjectTransform = {
|
|
20
20
|
initialCameraTransform?: DroneCameraTransform;
|
|
21
21
|
initial2DCameraTransform?: DroneCameraTransform;
|
|
22
|
-
blackListIds?: string;
|
|
23
22
|
markers?: Record<string, DroneMarker>;
|
|
24
23
|
imageryPlans?: Record<string, DroneImageryPlan>;
|
|
25
24
|
bimData?: DroneBimData;
|
|
@@ -57,7 +56,7 @@ export type DroneTag<T extends DroneTagType = DroneTagType> = {
|
|
|
57
56
|
type: T;
|
|
58
57
|
comment: string;
|
|
59
58
|
position?: Point3D;
|
|
60
|
-
cameraTransform?:
|
|
59
|
+
cameraTransform?: string;
|
|
61
60
|
creationDate: string;
|
|
62
61
|
hyperlink?: string;
|
|
63
62
|
height?: number;
|
|
@@ -23,7 +23,8 @@ export declare enum ErrorCode {
|
|
|
23
23
|
UnauthorizedError = 401,
|
|
24
24
|
ForbiddenError = 403,
|
|
25
25
|
NotFoundError = 404,
|
|
26
|
-
ConflictError = 409
|
|
26
|
+
ConflictError = 409,
|
|
27
|
+
GoneError = 410
|
|
27
28
|
}
|
|
28
29
|
export declare enum EvercamApiErrorCode {
|
|
29
30
|
IntegrationError = "INTEGRATION_ERROR",
|
|
@@ -166,12 +166,6 @@ export type GateReportEvent = {
|
|
|
166
166
|
truckType: GateReportVehicleType;
|
|
167
167
|
thumbnailUrl?: string;
|
|
168
168
|
};
|
|
169
|
-
export type GateReportArrivedEvent = GateReportEvent & {
|
|
170
|
-
eventType: GateReportEventType.Arrived;
|
|
171
|
-
};
|
|
172
|
-
export type GateReportLeftEvent = GateReportEvent & {
|
|
173
|
-
eventType: GateReportEventType.Left;
|
|
174
|
-
};
|
|
175
169
|
export type GateReportVerifiedDay = {
|
|
176
170
|
id: number;
|
|
177
171
|
day: string;
|
|
@@ -188,7 +182,6 @@ export type BoundingBox = {
|
|
|
188
182
|
ymax: number;
|
|
189
183
|
ymin: number;
|
|
190
184
|
};
|
|
191
|
-
export type EventsCountsByVehicleType = Record<GateReportVehicleType, number>;
|
|
192
185
|
export type EventsCount = {
|
|
193
186
|
in: number;
|
|
194
187
|
out: number;
|
|
@@ -203,10 +196,6 @@ export type MonthlyEventCount = EventsCount & {
|
|
|
203
196
|
export type DailyEventCount = EventsCount & {
|
|
204
197
|
day: string;
|
|
205
198
|
};
|
|
206
|
-
export type HourlyEventCount = {
|
|
207
|
-
hour: string;
|
|
208
|
-
count: number;
|
|
209
|
-
};
|
|
210
199
|
export type EventCountRequestPayload = {
|
|
211
200
|
vehicleTypes?: GateReportVehicleType[];
|
|
212
201
|
isPublic?: boolean;
|
|
@@ -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 declare enum VehicleClassifierSource {
|
|
3
3
|
Local = "local",
|
|
4
4
|
Api = "api"
|
|
@@ -130,11 +130,9 @@ export type CreateGateReportAppPayload = {
|
|
|
130
130
|
priorSimilarLimit?: number;
|
|
131
131
|
};
|
|
132
132
|
export type UpdateGateReportAppPayload = Partial<Omit<CreateGateReportAppPayload, "projectExid" | "anprCameraExid" | "coolifyServerUuid" | "geminiApiKey">>;
|
|
133
|
-
export type
|
|
133
|
+
export type GateReportAppsQueryParams = PaginationParams & {
|
|
134
134
|
projectExid?: ProjectExid;
|
|
135
135
|
includeStatus?: boolean;
|
|
136
|
-
page?: number;
|
|
137
|
-
limit?: number;
|
|
138
136
|
};
|
|
139
137
|
export type CoolifyProjectOption = {
|
|
140
138
|
uuid: string;
|
|
@@ -152,9 +150,6 @@ export declare enum AppRuntimeState {
|
|
|
152
150
|
Stopped = "stopped",
|
|
153
151
|
Restarting = "restarting"
|
|
154
152
|
}
|
|
155
|
-
export type AppRuntimeStateRequest = {
|
|
156
|
-
state: AppRuntimeState;
|
|
157
|
-
};
|
|
158
153
|
export type AppActionResponse = {
|
|
159
154
|
success: boolean;
|
|
160
155
|
message: string | null;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export declare enum HammertechRegion {
|
|
2
|
+
US = "us",
|
|
3
|
+
AU = "au",
|
|
4
|
+
EU = "eu"
|
|
5
|
+
}
|
|
6
|
+
export type HammertechConnectPayload = {
|
|
7
|
+
email: string;
|
|
8
|
+
password: string;
|
|
9
|
+
tenant: string;
|
|
10
|
+
region: HammertechRegion;
|
|
11
|
+
};
|
|
12
|
+
export type HammertechProject = {
|
|
13
|
+
projectId: string;
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
export type HammertechLocation = {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
parentId: string | null;
|
|
20
|
+
};
|
|
21
|
+
export type HammertechCustomFieldDataType = "FreeText" | "TextArea" | "Number" | "Date" | "Time" | "DateTime" | "ExpiryDate" | "Checkbox" | "YesNoRadio" | "YesNoNaRadio" | "Dropdown" | "Radio" | "MultiSelectDropdown" | "ImageUpload" | "FileUpload" | "Signature" | "SignatureWithName" | "Heading" | "BigLabel" | "ExpandingLabel" | "Separator" | "NoMargin" | "Image" | "FileDownload" | "ChildForm" | "SectionStart" | "SectionEnd" | "SystemField" | string;
|
|
22
|
+
export type HammertechCustomField = {
|
|
23
|
+
id: string;
|
|
24
|
+
internalName: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
customFieldType: HammertechCustomFieldDataType;
|
|
27
|
+
isRequired?: boolean;
|
|
28
|
+
answerOptions?: string[];
|
|
29
|
+
};
|
|
30
|
+
export type HammertechCustomFieldForm = {
|
|
31
|
+
id: string;
|
|
32
|
+
customFields: HammertechCustomField[];
|
|
33
|
+
};
|
|
34
|
+
export declare enum HammertechPriority {
|
|
35
|
+
Low = "Low",
|
|
36
|
+
Medium = "Medium",
|
|
37
|
+
High = "High",
|
|
38
|
+
Critical = "Critical"
|
|
39
|
+
}
|
|
40
|
+
export declare enum HammertechClassification {
|
|
41
|
+
Undefined = "Undefined",
|
|
42
|
+
Positive = "Positive",
|
|
43
|
+
Negative = "Negative",
|
|
44
|
+
Neutral = "Neutral"
|
|
45
|
+
}
|
|
46
|
+
export type HammertechIssueType = {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
forcePriority?: boolean;
|
|
50
|
+
suggestedPriority?: HammertechPriority | null;
|
|
51
|
+
canBeNegative?: boolean;
|
|
52
|
+
canBeNeutral?: boolean;
|
|
53
|
+
canBePositive?: boolean;
|
|
54
|
+
openIssueCustomFieldForm?: HammertechCustomFieldForm | null;
|
|
55
|
+
};
|
|
56
|
+
export type HammertechCustomFieldValue = {
|
|
57
|
+
customFieldId: string;
|
|
58
|
+
value?: unknown;
|
|
59
|
+
storedFileId?: string;
|
|
60
|
+
};
|
|
61
|
+
export declare const HAMMERTECH_FILE_FIELD_TYPES: string[];
|
|
62
|
+
export declare function isHammertechFileFieldType(type?: string): boolean;
|
|
63
|
+
export declare function isHammertechSignatureWithName(type?: string): boolean;
|
|
64
|
+
export type HammertechStoredFilePayload = {
|
|
65
|
+
fileName?: string;
|
|
66
|
+
base64FileContent: string;
|
|
67
|
+
annotation?: string;
|
|
68
|
+
id?: string;
|
|
69
|
+
};
|
|
70
|
+
export type HammertechStoredFileResponse = {
|
|
71
|
+
isSuccess: boolean;
|
|
72
|
+
httpStatusCode: number;
|
|
73
|
+
messageText: string;
|
|
74
|
+
createdEntityId: string;
|
|
75
|
+
xRequestId: string;
|
|
76
|
+
};
|
|
77
|
+
export type HammertechFileFieldValue = {
|
|
78
|
+
file: File | null;
|
|
79
|
+
name: string;
|
|
80
|
+
};
|
|
81
|
+
export type HammertechCreateIssuePayload = {
|
|
82
|
+
projectId: string;
|
|
83
|
+
issueTypeId: string;
|
|
84
|
+
snapshot: string;
|
|
85
|
+
issueDate?: string;
|
|
86
|
+
description?: string;
|
|
87
|
+
priority?: HammertechPriority;
|
|
88
|
+
dueDate?: string;
|
|
89
|
+
classification?: HammertechClassification;
|
|
90
|
+
locationId?: string;
|
|
91
|
+
isPositiveObservation?: boolean;
|
|
92
|
+
isPhotoForFixRequired?: boolean;
|
|
93
|
+
openIssueCustomFieldFormId?: string;
|
|
94
|
+
openIssueCustomFieldValues?: HammertechCustomFieldValue[];
|
|
95
|
+
};
|
|
96
|
+
export type HammertechIssueResponse = {
|
|
97
|
+
id: string;
|
|
98
|
+
};
|
|
@@ -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,5 @@ export * from "./smartSeach";
|
|
|
65
67
|
export * from "./siteView";
|
|
66
68
|
export * from "./aiConfigs";
|
|
67
69
|
export * from "./gateReportManagement";
|
|
70
|
+
export * from "./socket";
|
|
71
|
+
export * from "./observationEvents";
|
|
@@ -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,8 @@ export type DroneUploadItem = {
|
|
|
54
129
|
modelCesiumAssetId: string;
|
|
55
130
|
updatedAt: string;
|
|
56
131
|
hasTusLinks: boolean;
|
|
132
|
+
hasSteps: boolean;
|
|
133
|
+
aerialShots: AerialShotItem[];
|
|
57
134
|
};
|
|
58
135
|
export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
|
|
59
136
|
export type DroneQueueResponse = {
|
|
@@ -89,6 +166,15 @@ export type CalculateMeasuringOperationRequestPayload = {
|
|
|
89
166
|
export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
|
|
90
167
|
date: DateType;
|
|
91
168
|
};
|
|
169
|
+
export type AerialShotItem = {
|
|
170
|
+
id: number;
|
|
171
|
+
droneUploadId: number;
|
|
172
|
+
fileLink: string;
|
|
173
|
+
thumbnailLink: string;
|
|
174
|
+
gpsLatitude: string;
|
|
175
|
+
gpsLongitude: string;
|
|
176
|
+
gpsAltitude: string;
|
|
177
|
+
};
|
|
92
178
|
export type InspectionToolRequestPayload = {
|
|
93
179
|
date: DateType;
|
|
94
180
|
gpsAltitude: string;
|
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -21,6 +21,38 @@ export type Kit = {
|
|
|
21
21
|
tags: Tag[];
|
|
22
22
|
storages: KitStorage[];
|
|
23
23
|
createdAt: string;
|
|
24
|
+
decommissionedAt?: string;
|
|
25
|
+
deletedAt?: string;
|
|
26
|
+
};
|
|
27
|
+
export declare enum KitSupportCheckId {
|
|
28
|
+
RouterSmsRoundTrip = "router_sms_round_trip",
|
|
29
|
+
NvrRecordingAllCameras = "nvr_recording_all_cameras",
|
|
30
|
+
NvrRecordingThirdStream = "nvr_recording_third_stream",
|
|
31
|
+
CamerasHaveDeviceId = "cameras_have_device_id",
|
|
32
|
+
CamerasRecording = "cameras_recording",
|
|
33
|
+
CamerasSdCardMounted = "cameras_sd_card_mounted",
|
|
34
|
+
BatteryReadings = "battery_readings"
|
|
35
|
+
}
|
|
36
|
+
export declare enum KitSupportCheckStatus {
|
|
37
|
+
Passed = "passed",
|
|
38
|
+
Failed = "failed",
|
|
39
|
+
Skipped = "skipped"
|
|
40
|
+
}
|
|
41
|
+
export type KitSupportCheck = {
|
|
42
|
+
id: KitSupportCheckId;
|
|
43
|
+
name: string;
|
|
44
|
+
status: KitSupportCheckStatus;
|
|
45
|
+
error: string | null;
|
|
46
|
+
};
|
|
47
|
+
export type KitSupportChecklist = {
|
|
48
|
+
checks: KitSupportCheck[];
|
|
49
|
+
};
|
|
50
|
+
export type KitDiagnosticRun = {
|
|
51
|
+
kitId: number;
|
|
52
|
+
kitSerial: string;
|
|
53
|
+
checks: KitSupportCheck[];
|
|
54
|
+
ranAt: string;
|
|
55
|
+
isSeen: boolean;
|
|
24
56
|
};
|
|
25
57
|
export declare enum KitStatus {
|
|
26
58
|
New = "new",
|
|
@@ -45,11 +77,14 @@ export declare enum KitAlarm {
|
|
|
45
77
|
NoHdd = "no_hdd",
|
|
46
78
|
MissingRouterInfo = "missing_router_info",
|
|
47
79
|
AcFailure = "ac_failure",
|
|
48
|
-
LowBattery = "low_battery"
|
|
80
|
+
LowBattery = "low_battery",
|
|
81
|
+
GeneratorOff = "generator_off"
|
|
49
82
|
}
|
|
50
83
|
export declare enum KitMetricId {
|
|
51
84
|
SolarCharger = "solar_charger",
|
|
52
|
-
PanelPower = "panel_power"
|
|
85
|
+
PanelPower = "panel_power",
|
|
86
|
+
Fan = "fan",
|
|
87
|
+
FanTemperature = "fan_temperature"
|
|
53
88
|
}
|
|
54
89
|
export declare enum KitMetricPeriod {
|
|
55
90
|
Last15Minutes = "now-15m",
|
|
@@ -115,55 +150,6 @@ export declare enum KitChartType {
|
|
|
115
150
|
TimeSeries = "timeseries",
|
|
116
151
|
BarChart = "barchart"
|
|
117
152
|
}
|
|
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
153
|
export type GrafanaTimeSeriesValue = number | string | null;
|
|
168
154
|
export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
|
|
169
155
|
export type GrafanaFieldConfig = {
|
|
@@ -312,6 +298,12 @@ export type KitMetricStatsEntry = {
|
|
|
312
298
|
panelVoltage: number;
|
|
313
299
|
panelPower: number;
|
|
314
300
|
};
|
|
301
|
+
export type KitFanStatsEntry = {
|
|
302
|
+
timestamp: string;
|
|
303
|
+
speed: number;
|
|
304
|
+
internalTemperature: number;
|
|
305
|
+
externalTemperature: number | null;
|
|
306
|
+
};
|
|
315
307
|
export type KitUpdatePayload = {
|
|
316
308
|
countryId: number;
|
|
317
309
|
name: string;
|
|
@@ -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;
|