@evercam/api 1.0.0-bc5229297 → 1.0.0-bdf31a1d5
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/README.md +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +5 -12
- package/dist/api/api/adminApi.d.ts +15 -12
- package/dist/api/api/aiApi.d.ts +33 -1
- package/dist/api/api/evercamApi.d.ts +15 -6
- package/dist/api/api/ingestApi.d.ts +8 -2
- package/dist/api/types/360.d.ts +10 -1
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +25 -1
- package/dist/api/types/anpr.d.ts +31 -2
- package/dist/api/types/auditLogs.d.ts +18 -0
- package/dist/api/types/axios.d.ts +6 -5
- package/dist/api/types/bim.d.ts +25 -0
- package/dist/api/types/camera.d.ts +5 -3
- package/dist/api/types/comments.d.ts +8 -6
- package/dist/api/types/connector.d.ts +1 -0
- package/dist/api/types/detections.d.ts +2 -10
- package/dist/api/types/drone.d.ts +6 -5
- package/dist/api/types/errors.d.ts +11 -0
- package/dist/api/types/gateReport.d.ts +1 -0
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/ingest.d.ts +3 -2
- package/dist/api/types/media.d.ts +6 -1
- package/dist/api/types/planner.d.ts +2 -3
- package/dist/api/types/recording.d.ts +3 -8
- package/dist/api/types/roi.d.ts +2 -1
- package/dist/api/types/shared.d.ts +1 -0
- package/dist/api/types/siteAnalytics.d.ts +3 -3
- package/dist/api/types/siteView.d.ts +0 -1
- package/dist/api/types/snapshots.d.ts +13 -0
- package/dist/api/types/timelapse.d.ts +2 -6
- package/dist/api/types/user.d.ts +1 -1
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +881 -729
- 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 +21 -4
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +1 -0
- package/package.json +4 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase } from "@evercam/api/types";
|
|
1
|
+
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase, TimestampPositionCoordinates } from "@evercam/api/types";
|
|
2
2
|
import { DateRangeFilter } from "@evercam/api/types/time";
|
|
3
|
-
import { GeoPoint } from "@evercam/api/types/shared";
|
|
3
|
+
import { GeoPoint, TuplePoint2D } from "@evercam/api/types/shared";
|
|
4
4
|
export type CameraExid = string;
|
|
5
5
|
export type CamerasByExid = EntityByExid<Camera>;
|
|
6
6
|
export type Camera = {
|
|
@@ -80,6 +80,7 @@ export type Camera = {
|
|
|
80
80
|
vendorName: string;
|
|
81
81
|
isAccessRestricted?: boolean;
|
|
82
82
|
kitAlarms?: KitAlarm[];
|
|
83
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
83
84
|
};
|
|
84
85
|
export type AdminCamera = {
|
|
85
86
|
id: number;
|
|
@@ -199,6 +200,7 @@ export declare enum CameraFeatureFlag {
|
|
|
199
200
|
PpeOwlv2 = "ppe_owlv2",
|
|
200
201
|
PpeGemini = "ppe_gemini",
|
|
201
202
|
PpeYolo = "ppe_yolo",
|
|
203
|
+
PpeV2 = "ppe_v2",
|
|
202
204
|
NoLiveView = "no_live_view",
|
|
203
205
|
Ring = "ring",
|
|
204
206
|
CloudOnly = "cloud_only"
|
|
@@ -350,7 +352,7 @@ export type CameraCreateRequestPayload = {
|
|
|
350
352
|
isPowerScheduleActive?: boolean;
|
|
351
353
|
ptz?: boolean;
|
|
352
354
|
name: string;
|
|
353
|
-
coordinates?:
|
|
355
|
+
coordinates?: TuplePoint2D;
|
|
354
356
|
recordingFromNvr?: boolean;
|
|
355
357
|
CameraConfig: {
|
|
356
358
|
model: CameraModel;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid, PaginationParams } from "@evercam/api/types";
|
|
1
|
+
import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D } from "@evercam/api/types";
|
|
2
2
|
export declare enum CommentsScope {
|
|
3
3
|
Recordings = "recordings",
|
|
4
4
|
ThreeSixty = "360",
|
|
5
|
-
Drone = "drone"
|
|
5
|
+
Drone = "drone",
|
|
6
|
+
Timeline = "timeline"
|
|
6
7
|
}
|
|
7
8
|
export declare enum CommentsLabel {
|
|
8
9
|
Info = "Info",
|
|
@@ -11,6 +12,7 @@ export declare enum CommentsLabel {
|
|
|
11
12
|
}
|
|
12
13
|
export type CommentsRequestPayload = {
|
|
13
14
|
scope: CommentsScope;
|
|
15
|
+
cameraExid?: CameraExid;
|
|
14
16
|
};
|
|
15
17
|
export type CommentsListRequestPayload = PaginationParams & {
|
|
16
18
|
projectExid?: ProjectExid;
|
|
@@ -34,8 +36,8 @@ export type Comment = {
|
|
|
34
36
|
createdAt?: string;
|
|
35
37
|
creatorEmail?: string;
|
|
36
38
|
creatorName?: string;
|
|
37
|
-
position2d?:
|
|
38
|
-
position3d?:
|
|
39
|
+
position2d?: TuplePoint2D;
|
|
40
|
+
position3d?: TuplePoint3D;
|
|
39
41
|
context?: Record<string, unknown>;
|
|
40
42
|
canDelete?: boolean;
|
|
41
43
|
archivedAt?: string;
|
|
@@ -49,7 +51,7 @@ export type CommentCreationRequestPayload = {
|
|
|
49
51
|
projectExid: ProjectExid;
|
|
50
52
|
cameraExid?: CameraExid;
|
|
51
53
|
content: string;
|
|
52
|
-
position2d?:
|
|
53
|
-
position3d?: number
|
|
54
|
+
position2d?: TuplePoint2D;
|
|
55
|
+
position3d?: [number, number, number];
|
|
54
56
|
context?: Record<string, unknown>;
|
|
55
57
|
};
|
|
@@ -13,15 +13,6 @@ export type SegmentsFilters = BaseDetectionsFilters & {
|
|
|
13
13
|
cameraExid: CameraExid;
|
|
14
14
|
};
|
|
15
15
|
export type BBox = number[];
|
|
16
|
-
export type SelectedObjectPath = {
|
|
17
|
-
label: string;
|
|
18
|
-
trackId: string;
|
|
19
|
-
paths: Array<{
|
|
20
|
-
timestamp: number;
|
|
21
|
-
center: [number, number];
|
|
22
|
-
bbox: BBox;
|
|
23
|
-
}>;
|
|
24
|
-
};
|
|
25
16
|
export type Label = DetectionLabel | PpeLabel;
|
|
26
17
|
export type Detection = {
|
|
27
18
|
bbox: BBox;
|
|
@@ -120,5 +111,6 @@ export declare enum DetectionModel {
|
|
|
120
111
|
Yolov11 = 2,
|
|
121
112
|
Yolov112 = 3,
|
|
122
113
|
GroundingDino = 4,
|
|
123
|
-
Owlv2 = 5
|
|
114
|
+
Owlv2 = 5,
|
|
115
|
+
PpeV2 = 6
|
|
124
116
|
}
|
|
@@ -6,13 +6,13 @@ export type DroneCameraTransform = {
|
|
|
6
6
|
right: Point3D;
|
|
7
7
|
};
|
|
8
8
|
export type DroneModel = {
|
|
9
|
-
cesiumId:
|
|
10
|
-
cesiumId2D:
|
|
9
|
+
cesiumId: number;
|
|
10
|
+
cesiumId2D: number;
|
|
11
11
|
date: string;
|
|
12
12
|
cesiumPointCloudId: string;
|
|
13
13
|
cesiumGausianSplatId: string;
|
|
14
14
|
pointSize: string;
|
|
15
|
-
maximumScreenSpaceError:
|
|
15
|
+
maximumScreenSpaceError: number;
|
|
16
16
|
link: string;
|
|
17
17
|
trueIndex: number;
|
|
18
18
|
};
|
|
@@ -29,10 +29,11 @@ export type DroneProjectTransform = {
|
|
|
29
29
|
};
|
|
30
30
|
export type DroneProjectData = {
|
|
31
31
|
models?: DroneModel[];
|
|
32
|
+
transform?: DroneProjectTransform;
|
|
32
33
|
integrationType?: DroneProvider;
|
|
33
34
|
origin?: string;
|
|
34
|
-
params?:
|
|
35
|
-
pointSize?:
|
|
35
|
+
params?: string;
|
|
36
|
+
pointSize?: number;
|
|
36
37
|
};
|
|
37
38
|
export type DroneProjectDataPatch = {
|
|
38
39
|
models?: Record<number, Partial<DroneModel>>;
|
|
@@ -46,4 +46,15 @@ type _EvercamApiError = {
|
|
|
46
46
|
innerError?: _EvercamApiError;
|
|
47
47
|
};
|
|
48
48
|
export type EvercamApiError = AxiosError<_EvercamApiError>;
|
|
49
|
+
export type AppError = {
|
|
50
|
+
statusCode?: number;
|
|
51
|
+
message?: string;
|
|
52
|
+
redirect?: {
|
|
53
|
+
url?: string;
|
|
54
|
+
label?: string;
|
|
55
|
+
delay?: number;
|
|
56
|
+
};
|
|
57
|
+
withSupportMessage?: boolean;
|
|
58
|
+
isWidget?: boolean;
|
|
59
|
+
};
|
|
49
60
|
export {};
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { CameraExid, DateType, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
export declare enum VehicleClassifierSource {
|
|
3
|
+
Local = "local",
|
|
4
|
+
Api = "api"
|
|
5
|
+
}
|
|
6
|
+
export type GateReportCoolifyStatus = {
|
|
7
|
+
appUuid: string | null;
|
|
8
|
+
name: string | null;
|
|
9
|
+
serverUuid: string | null;
|
|
10
|
+
serverName: string | null;
|
|
11
|
+
appUrl: string | null;
|
|
12
|
+
status: string | null;
|
|
13
|
+
isRunning: boolean;
|
|
14
|
+
imageTag?: string | null;
|
|
15
|
+
fqdn: string | null;
|
|
16
|
+
updatedAt: string | null;
|
|
17
|
+
};
|
|
18
|
+
export type GateReportProjectMeta = {
|
|
19
|
+
exid: ProjectExid;
|
|
20
|
+
name: string | null;
|
|
21
|
+
timezone: string | null;
|
|
22
|
+
featureFlags: string[] | null;
|
|
23
|
+
};
|
|
24
|
+
export type GateReportCameraMeta = {
|
|
25
|
+
exid: CameraExid;
|
|
26
|
+
name: string | null;
|
|
27
|
+
status: string | null;
|
|
28
|
+
kitSerial: string | null;
|
|
29
|
+
kitAlarms: string[] | Record<string, unknown> | null;
|
|
30
|
+
};
|
|
31
|
+
export type GateReportManagedApp = {
|
|
32
|
+
id: number;
|
|
33
|
+
projectExid: ProjectExid;
|
|
34
|
+
anprCameraExid: CameraExid;
|
|
35
|
+
contextCameraExid: CameraExid | null;
|
|
36
|
+
coolifyAppId: string | null;
|
|
37
|
+
startDate: DateType | null;
|
|
38
|
+
endDate: DateType | null;
|
|
39
|
+
startHour: number;
|
|
40
|
+
endHour: number;
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
enableEnrichments: boolean;
|
|
43
|
+
enableGemini: boolean;
|
|
44
|
+
geminiStartHour: number;
|
|
45
|
+
geminiEndHour: number;
|
|
46
|
+
reviewModel: string;
|
|
47
|
+
enrichmentModel: string;
|
|
48
|
+
reviewerPromptSlug: string | null;
|
|
49
|
+
geminiTimeoutSeconds: number;
|
|
50
|
+
geminiMaxAttempts: number;
|
|
51
|
+
vehicleClassifierSource: VehicleClassifierSource;
|
|
52
|
+
snapshotDelaySeconds: number;
|
|
53
|
+
snapshotRequestTimeout: number;
|
|
54
|
+
plateClassifierThreshold: number;
|
|
55
|
+
plateClassifierHighConfidence: number;
|
|
56
|
+
maxPriorEvents: number;
|
|
57
|
+
recordsFetchInterval: number;
|
|
58
|
+
priorRecentLimit: number;
|
|
59
|
+
priorSimilarLimit: number;
|
|
60
|
+
insertedAt: DateType;
|
|
61
|
+
updatedAt: DateType;
|
|
62
|
+
coolify: GateReportCoolifyStatus | null;
|
|
63
|
+
project: GateReportProjectMeta | null;
|
|
64
|
+
anprCamera: GateReportCameraMeta | null;
|
|
65
|
+
contextCamera: GateReportCameraMeta | null;
|
|
66
|
+
anprHasRoi: boolean;
|
|
67
|
+
contextHasRoi: boolean;
|
|
68
|
+
lastProcessedEventAt: DateType | null;
|
|
69
|
+
lastUnprocessedEventAt: DateType | null;
|
|
70
|
+
};
|
|
71
|
+
export type GateReportAppEvents = {
|
|
72
|
+
anprCameraExid: CameraExid;
|
|
73
|
+
lastProcessedEventAt: DateType | null;
|
|
74
|
+
lastUnprocessedEventAt: DateType | null;
|
|
75
|
+
};
|
|
76
|
+
export type AppConfigFormValue = {
|
|
77
|
+
contextCameraExid: string | null;
|
|
78
|
+
startDate: DateType | null;
|
|
79
|
+
endDate: DateType | null;
|
|
80
|
+
startHour: number;
|
|
81
|
+
endHour: number;
|
|
82
|
+
enabled: boolean;
|
|
83
|
+
enableEnrichments: boolean;
|
|
84
|
+
enableGemini: boolean;
|
|
85
|
+
geminiStartHour: number;
|
|
86
|
+
geminiEndHour: number;
|
|
87
|
+
reviewModel: string;
|
|
88
|
+
enrichmentModel: string;
|
|
89
|
+
reviewerPromptSlug: string | null;
|
|
90
|
+
geminiTimeoutSeconds: number;
|
|
91
|
+
geminiMaxAttempts: number;
|
|
92
|
+
vehicleClassifierSource: VehicleClassifierSource;
|
|
93
|
+
snapshotDelaySeconds: number;
|
|
94
|
+
snapshotRequestTimeout: number;
|
|
95
|
+
plateClassifierThreshold: number;
|
|
96
|
+
plateClassifierHighConfidence: number;
|
|
97
|
+
recordsFetchInterval: number;
|
|
98
|
+
priorRecentLimit: number;
|
|
99
|
+
priorSimilarLimit: number;
|
|
100
|
+
};
|
|
101
|
+
export type CreateGateReportAppPayload = {
|
|
102
|
+
projectExid: ProjectExid;
|
|
103
|
+
anprCameraExid: CameraExid;
|
|
104
|
+
contextCameraExid?: CameraExid | null;
|
|
105
|
+
coolifyServerUuid: string;
|
|
106
|
+
imageTag?: string;
|
|
107
|
+
geminiApiKey?: string | null;
|
|
108
|
+
startDate?: DateType | null;
|
|
109
|
+
endDate?: DateType | null;
|
|
110
|
+
startHour?: number;
|
|
111
|
+
endHour?: number;
|
|
112
|
+
enabled?: boolean;
|
|
113
|
+
enableEnrichments?: boolean;
|
|
114
|
+
enableGemini?: boolean;
|
|
115
|
+
geminiStartHour?: number;
|
|
116
|
+
geminiEndHour?: number;
|
|
117
|
+
reviewModel?: string;
|
|
118
|
+
enrichmentModel?: string;
|
|
119
|
+
reviewerPromptSlug?: string | null;
|
|
120
|
+
geminiTimeoutSeconds?: number;
|
|
121
|
+
geminiMaxAttempts?: number;
|
|
122
|
+
vehicleClassifierSource?: VehicleClassifierSource;
|
|
123
|
+
snapshotDelaySeconds?: number;
|
|
124
|
+
snapshotRequestTimeout?: number;
|
|
125
|
+
plateClassifierThreshold?: number;
|
|
126
|
+
plateClassifierHighConfidence?: number;
|
|
127
|
+
maxPriorEvents?: number;
|
|
128
|
+
recordsFetchInterval?: number;
|
|
129
|
+
priorRecentLimit?: number;
|
|
130
|
+
priorSimilarLimit?: number;
|
|
131
|
+
};
|
|
132
|
+
export type UpdateGateReportAppPayload = Partial<Omit<CreateGateReportAppPayload, "projectExid" | "anprCameraExid" | "coolifyServerUuid" | "geminiApiKey">>;
|
|
133
|
+
export type GateReportManagementListParams = {
|
|
134
|
+
projectExid?: ProjectExid;
|
|
135
|
+
includeStatus?: boolean;
|
|
136
|
+
page?: number;
|
|
137
|
+
limit?: number;
|
|
138
|
+
};
|
|
139
|
+
export type CoolifyProjectOption = {
|
|
140
|
+
uuid: string;
|
|
141
|
+
name: string;
|
|
142
|
+
description: string | null;
|
|
143
|
+
};
|
|
144
|
+
export type CoolifyServerOption = {
|
|
145
|
+
uuid: string;
|
|
146
|
+
name: string;
|
|
147
|
+
isReachable: boolean;
|
|
148
|
+
isUsable: boolean;
|
|
149
|
+
};
|
|
150
|
+
export declare enum AppRuntimeState {
|
|
151
|
+
Running = "running",
|
|
152
|
+
Stopped = "stopped",
|
|
153
|
+
Restarting = "restarting"
|
|
154
|
+
}
|
|
155
|
+
export type AppRuntimeStateRequest = {
|
|
156
|
+
state: AppRuntimeState;
|
|
157
|
+
};
|
|
158
|
+
export type AppActionResponse = {
|
|
159
|
+
success: boolean;
|
|
160
|
+
message: string | null;
|
|
161
|
+
appUuid: string | null;
|
|
162
|
+
state: AppRuntimeState | null;
|
|
163
|
+
};
|
|
164
|
+
export type APIEnvelope<T> = {
|
|
165
|
+
success: boolean;
|
|
166
|
+
data: T | null;
|
|
167
|
+
message: string;
|
|
168
|
+
};
|
|
169
|
+
export type CreateGateReportAppResponse = {
|
|
170
|
+
created: boolean;
|
|
171
|
+
id: number | null;
|
|
172
|
+
data: GateReportManagedApp | null;
|
|
173
|
+
count: number | null;
|
|
174
|
+
message: string;
|
|
175
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaginationParams, DateType, JsonValue } from "@evercam/api/types";
|
|
1
|
+
import { PaginationParams, DateType, JsonValue, TuplePoint2D } from "@evercam/api/types";
|
|
2
2
|
import type { _360FloorV2, _360WalkV2 } from "@evercam/api/types/360";
|
|
3
3
|
export declare enum IngestProcessingStatus {
|
|
4
4
|
Completed = "completed",
|
|
@@ -48,6 +48,7 @@ export type DroneUploadItem = {
|
|
|
48
48
|
modelZip: string;
|
|
49
49
|
orthomosaicZip: string;
|
|
50
50
|
reportPdf: string;
|
|
51
|
+
processingLog: string;
|
|
51
52
|
uploadedBy: string;
|
|
52
53
|
processingStatus: IngestProcessingStatus | string;
|
|
53
54
|
modelCesiumAssetId: string;
|
|
@@ -82,7 +83,7 @@ export type DroneUploadUpdateRequestPayload = {
|
|
|
82
83
|
};
|
|
83
84
|
export type CalculateMeasuringOperationRequestPayload = {
|
|
84
85
|
date: DateType;
|
|
85
|
-
points: [
|
|
86
|
+
points: TuplePoint2D[];
|
|
86
87
|
operation: string;
|
|
87
88
|
};
|
|
88
89
|
export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
|
|
@@ -93,7 +93,7 @@ export type MediaCreateRequestPayload = {
|
|
|
93
93
|
cameraExid?: string;
|
|
94
94
|
requestedBy?: string;
|
|
95
95
|
notes?: string;
|
|
96
|
-
category?: ClipsCategory;
|
|
96
|
+
category?: MediaCategory | ClipsCategory;
|
|
97
97
|
isUrgent?: boolean;
|
|
98
98
|
storeAsType?: MediaType;
|
|
99
99
|
};
|
|
@@ -108,6 +108,11 @@ export declare enum ClipsCategory {
|
|
|
108
108
|
Marketing = "marketing",
|
|
109
109
|
BestPracticies = "best_practices"
|
|
110
110
|
}
|
|
111
|
+
export declare enum MediaCategory {
|
|
112
|
+
Weather = "weather",
|
|
113
|
+
SmartSearch = "smart_search",
|
|
114
|
+
Copilot = "copilot"
|
|
115
|
+
}
|
|
111
116
|
export type MediaDeleteRequestPayload = {
|
|
112
117
|
timelapseIds: (string | number)[];
|
|
113
118
|
compareIds: (string | number)[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GeoPoint } from "./shared";
|
|
1
|
+
import { GeoPoint, TuplePoint2D } from "./shared";
|
|
2
2
|
import { MapType } from "./map";
|
|
3
3
|
export type PlannerListItem = {
|
|
4
4
|
id: string;
|
|
@@ -15,8 +15,7 @@ export type PlannerListItem = {
|
|
|
15
15
|
projectMapType?: MapType;
|
|
16
16
|
sessionId?: string;
|
|
17
17
|
};
|
|
18
|
-
export type
|
|
19
|
-
export type PolygonPath = Coordinate[];
|
|
18
|
+
export type PolygonPath = TuplePoint2D[];
|
|
20
19
|
export type PolygonCoordinates = PolygonPath[];
|
|
21
20
|
export interface GeoJSONPolygon {
|
|
22
21
|
type: "Polygon";
|
|
@@ -5,18 +5,20 @@ export type Snapshot = {
|
|
|
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;
|
|
17
18
|
year: string;
|
|
18
19
|
month: string;
|
|
19
20
|
payload?: ApiCredentials;
|
|
21
|
+
cancelToken?: CancelToken;
|
|
20
22
|
};
|
|
21
23
|
export type AvailableDaysResponsePayload = {
|
|
22
24
|
days: Array<number>;
|
|
@@ -104,13 +106,6 @@ export declare enum SnapshotExtractionInterval {
|
|
|
104
106
|
}
|
|
105
107
|
export declare enum VpnServer {
|
|
106
108
|
None = "None",
|
|
107
|
-
OpenVPN1 = "OpenVPN1",
|
|
108
|
-
OpenVPN2 = "OpenVPN2",
|
|
109
|
-
OpenVPN3 = "OpenVPN3",
|
|
110
|
-
OpenVPN4 = "OpenVPN4",
|
|
111
|
-
OpenVPN5 = "OpenVPN5",
|
|
112
|
-
PPTP1 = "PPTP1",
|
|
113
|
-
PPTP2 = "PPTP2",
|
|
114
109
|
WireGuard1 = "WireGuard1",
|
|
115
110
|
WireGuard2 = "WireGuard2",
|
|
116
111
|
WireGuard3 = "WireGuard3",
|
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",
|
|
@@ -138,6 +138,7 @@ export interface JSON {
|
|
|
138
138
|
parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
|
|
139
139
|
}
|
|
140
140
|
export type TuplePoint2D = [number, number];
|
|
141
|
+
export type TuplePoint3D = [number, number, number];
|
|
141
142
|
export type Point2D = {
|
|
142
143
|
x: number;
|
|
143
144
|
y: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BBox, BoundingBox, DateType, Schedule, ScheduleLowercase, CameraExid, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter, CameraFeatureFlag, TimelineDateInterval, Camera, AdminCamera, _360FloorV2, _360FloorId, PaginatedItems, DateRangeFilter } from "@evercam/api/types";
|
|
1
|
+
import { BBox, BoundingBox, DateType, Schedule, ScheduleLowercase, CameraExid, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter, CameraFeatureFlag, TimelineDateInterval, Camera, AdminCamera, _360FloorV2, _360FloorId, PaginatedItems, DateRangeFilter, TuplePoint2D } from "@evercam/api/types";
|
|
2
2
|
import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
|
|
3
3
|
export declare enum SiteAnalyticsMode {
|
|
4
4
|
Detections = "detections",
|
|
@@ -184,7 +184,7 @@ export type DetectionsExportRequestParams = DetectionsRequestParams & {
|
|
|
184
184
|
directDownload?: boolean;
|
|
185
185
|
};
|
|
186
186
|
export type SmartSearchHeatmapPoint = {
|
|
187
|
-
coordinates:
|
|
187
|
+
coordinates: TuplePoint2D;
|
|
188
188
|
detectionsCount: number;
|
|
189
189
|
};
|
|
190
190
|
export type SmartSearchHeatmapData = {
|
|
@@ -241,7 +241,7 @@ export type SmartSearchRequestPayload = {
|
|
|
241
241
|
fromDate?: string;
|
|
242
242
|
toDate?: string;
|
|
243
243
|
page?: number;
|
|
244
|
-
|
|
244
|
+
limit?: number;
|
|
245
245
|
threshold?: number;
|
|
246
246
|
};
|
|
247
247
|
type SmartSearchResultItemBase = {
|
|
@@ -5,8 +5,11 @@ export type SnapshotExtractionQyeryParams = PaginationParams & {
|
|
|
5
5
|
status: SnapshotExtractionStatus;
|
|
6
6
|
};
|
|
7
7
|
export declare enum SnapshotExtractionStatus {
|
|
8
|
+
Cancelling = "canceling",
|
|
9
|
+
Cancelled = "cancelled",
|
|
8
10
|
Completed = "completed",
|
|
9
11
|
Failed = "failed",
|
|
12
|
+
Pending = "pending",
|
|
10
13
|
Processing = "processing"
|
|
11
14
|
}
|
|
12
15
|
export declare enum SnapshotExtractionType {
|
|
@@ -30,6 +33,8 @@ export type SnapshotExtraction = {
|
|
|
30
33
|
injectTo_cr: Boolean;
|
|
31
34
|
schedule: Schedule;
|
|
32
35
|
created_at: DateType;
|
|
36
|
+
jpegCount?: number;
|
|
37
|
+
obanJobId?: number;
|
|
33
38
|
};
|
|
34
39
|
export type SnapshotTestPayload = {
|
|
35
40
|
cameraExid?: CameraExid;
|
|
@@ -42,6 +47,14 @@ export type SnapshotTestResponse = {
|
|
|
42
47
|
status: string;
|
|
43
48
|
data: string;
|
|
44
49
|
};
|
|
50
|
+
export type SnapshotEmailDeliveryRequestPayload = {
|
|
51
|
+
snapshot: string;
|
|
52
|
+
recipients?: string[];
|
|
53
|
+
message?: string;
|
|
54
|
+
};
|
|
55
|
+
export type SnapshotEmailDeliveryResponsePayload = {
|
|
56
|
+
warning?: string;
|
|
57
|
+
};
|
|
45
58
|
export type DeleteSnapshotQueryParams = {
|
|
46
59
|
fromDate: DateType;
|
|
47
60
|
toDate: DateType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateType, Schedule } from "@evercam/api/types";
|
|
1
|
+
import { DateType, Point2D, Schedule } from "@evercam/api/types";
|
|
2
2
|
export declare enum TimelapseStatus {
|
|
3
3
|
Pending = 11,
|
|
4
4
|
Completed = 5,
|
|
@@ -26,11 +26,7 @@ export type TimestampPositionCoordinates = {
|
|
|
26
26
|
w: number;
|
|
27
27
|
h: number;
|
|
28
28
|
};
|
|
29
|
-
export type
|
|
30
|
-
x: number;
|
|
31
|
-
y: number;
|
|
32
|
-
};
|
|
33
|
-
export type BlurRegionCoordinates = BlurRegionPoint[];
|
|
29
|
+
export type BlurRegionCoordinates = Point2D[];
|
|
34
30
|
export type TimelapseLogoOptions = {
|
|
35
31
|
id?: number;
|
|
36
32
|
x: number;
|
package/dist/api/types/user.d.ts
CHANGED
|
@@ -176,7 +176,6 @@ export type SessionActivitiesListRequestPayload = {
|
|
|
176
176
|
};
|
|
177
177
|
export type SignupUserRequestPayload = {
|
|
178
178
|
telephone: string;
|
|
179
|
-
token: string;
|
|
180
179
|
firstname: string;
|
|
181
180
|
lastname: string;
|
|
182
181
|
email: string;
|
|
@@ -338,6 +337,7 @@ export type ProjectUserWithRole = {
|
|
|
338
337
|
name: string;
|
|
339
338
|
exid: string;
|
|
340
339
|
};
|
|
340
|
+
persona: Persona;
|
|
341
341
|
permissions: string[];
|
|
342
342
|
role: Role;
|
|
343
343
|
subRoles: RoleSubRole[];
|
package/dist/api/utils.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ export declare const toQueryString: <T extends Record<string, unknown>>(paramsOb
|
|
|
7
7
|
forceArrayBrackets?: boolean | undefined;
|
|
8
8
|
}) => string | undefined;
|
|
9
9
|
export declare function queryStringToObject(queryString?: string): QueryParams;
|
|
10
|
-
export declare function capitalizeFirstLetter(inputString: string): string;
|