@evercam/api 1.0.0-e405b2c39 → 1.0.0-e424632fd
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/adminApi.d.ts +67 -37
- package/dist/api/api/aiApi.d.ts +57 -53
- package/dist/api/api/authzApi.d.ts +23 -16
- package/dist/api/api/client/axios.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +110 -71
- package/dist/api/api/evercamLabsApi.d.ts +4 -5
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +99 -47
- package/dist/api/api/ptzApi.d.ts +9 -4
- package/dist/api/api/videoWallApi.d.ts +2 -2
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +4 -2
- package/dist/api/types/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +84 -48
- package/dist/api/types/anpr.d.ts +19 -2
- package/dist/api/types/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +44 -6
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +37 -3
- package/dist/api/types/axios.d.ts +10 -6
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +87 -73
- package/dist/api/types/comments.d.ts +4 -8
- package/dist/api/types/company.d.ts +42 -1
- package/dist/api/types/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +3 -5
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/copilot.d.ts +11 -6
- package/dist/api/types/detections.d.ts +20 -8
- package/dist/api/types/drone.d.ts +1 -0
- package/dist/api/types/gateReport.d.ts +45 -57
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +6 -1
- package/dist/api/types/ingest.d.ts +98 -2
- package/dist/api/types/kit.d.ts +14 -7
- package/dist/api/types/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +32 -2
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +44 -0
- package/dist/api/types/posthog.d.ts +15 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +6 -2
- package/dist/api/types/project.d.ts +95 -21
- package/dist/api/types/recording.d.ts +3 -3
- package/dist/api/types/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/router.d.ts +1 -1
- package/dist/api/types/shared.d.ts +16 -4
- package/dist/api/types/shares.d.ts +1 -1
- package/dist/api/types/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +79 -39
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +36 -4
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +3 -3
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +0 -18
- package/dist/api/types/timelapse.d.ts +12 -5
- package/dist/api/types/user.d.ts +101 -31
- package/dist/api/types/videoWall.d.ts +21 -21
- package/dist/api/types/weather.d.ts +75 -11
- package/dist/api/types/widget.d.ts +71 -12
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/index.js +858 -668
- 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 +115 -13
- package/dist/shared/types/imagePlayer.d.ts +1 -1
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +2 -2
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Automation, AutomationType,
|
|
1
|
+
import { Automation, AutomationType, DateType, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
3
3
|
cameraExids?: string;
|
|
4
4
|
notifyDays?: string;
|
|
@@ -8,6 +8,7 @@ export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
|
8
8
|
type?: string;
|
|
9
9
|
config?: {
|
|
10
10
|
compareDelay?: AutomationType;
|
|
11
|
+
period?: number;
|
|
11
12
|
recipients?: string;
|
|
12
13
|
projectId?: number;
|
|
13
14
|
companyId?: number;
|
|
@@ -24,6 +25,9 @@ export type ProgressPhotosUnSubscribeParams = {
|
|
|
24
25
|
export type ProgressPhotosResponsePayload = {
|
|
25
26
|
progressPhotos: Automation[];
|
|
26
27
|
};
|
|
28
|
+
export type ProgressPhotoItemResponsePayload = {
|
|
29
|
+
progressPhotos: Automation;
|
|
30
|
+
};
|
|
27
31
|
export declare enum AutomationDialogType {
|
|
28
32
|
Create = "create",
|
|
29
33
|
Edit = "edit",
|
|
@@ -70,5 +74,5 @@ export type ProgressPhotosHistory = {
|
|
|
70
74
|
cameraIds: string;
|
|
71
75
|
failedCameraIds: string;
|
|
72
76
|
subject: string;
|
|
73
|
-
recipients:
|
|
77
|
+
recipients: string;
|
|
74
78
|
};
|
|
@@ -1,25 +1,56 @@
|
|
|
1
|
-
import { AdminCamera, Camera, CameraExid,
|
|
1
|
+
import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export type ProjectExid = Exid;
|
|
3
3
|
export type ProjectsByExid = EntityByExid<Project>;
|
|
4
4
|
export type Project = {
|
|
5
|
-
|
|
6
|
-
exid: ProjectExid;
|
|
7
|
-
name: string;
|
|
8
|
-
status?: ProjectStatus;
|
|
9
|
-
insertedAt?: string;
|
|
10
|
-
startedAt?: string;
|
|
11
|
-
timezone?: string;
|
|
12
|
-
zohoId?: string;
|
|
13
|
-
userId?: number;
|
|
5
|
+
archiveTier?: ProjectArchiveTier;
|
|
14
6
|
cameras?: Array<Camera | AdminCamera>;
|
|
15
|
-
|
|
7
|
+
camerasCount?: number;
|
|
8
|
+
camerasRestrictionType?: string;
|
|
9
|
+
companyId: number;
|
|
10
|
+
endDate: string;
|
|
11
|
+
exid: ProjectExid;
|
|
16
12
|
featureFlags: Array<ProjectFeatureFlag>;
|
|
13
|
+
geographicBounds?: unknown;
|
|
14
|
+
id: string | number;
|
|
15
|
+
insertedAt?: string;
|
|
16
|
+
name: string;
|
|
17
17
|
owner?: {
|
|
18
18
|
email?: string;
|
|
19
19
|
};
|
|
20
20
|
ownerEmail?: string;
|
|
21
21
|
ownerName?: string;
|
|
22
|
-
|
|
22
|
+
startedAt?: string;
|
|
23
|
+
status?: ProjectStatus;
|
|
24
|
+
timezone?: string;
|
|
25
|
+
unrestrictedCameras?: Camera[];
|
|
26
|
+
userId?: number;
|
|
27
|
+
zohoId?: string;
|
|
28
|
+
};
|
|
29
|
+
export type AdminProjectCameraRef = {
|
|
30
|
+
exid: string;
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
export type AdminProjectListItem = {
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
status: ProjectStatus | string;
|
|
37
|
+
insertedAt: string;
|
|
38
|
+
timezone: string | null;
|
|
39
|
+
exid: ProjectExid;
|
|
40
|
+
endDate: string | null;
|
|
41
|
+
startDate: string | null;
|
|
42
|
+
archiveTier: ProjectArchiveTier | null;
|
|
43
|
+
featureFlags: Array<ProjectFeatureFlag | string>;
|
|
44
|
+
zohoId: string | null;
|
|
45
|
+
ownerEmail: string | null;
|
|
46
|
+
companyId: number | null;
|
|
47
|
+
companyName: string | null;
|
|
48
|
+
ownerName: string | null;
|
|
49
|
+
archived: boolean;
|
|
50
|
+
cameras?: AdminProjectCameraRef[];
|
|
51
|
+
};
|
|
52
|
+
export type AdminProjectDetail = AdminProjectListItem & {
|
|
53
|
+
userId: number;
|
|
23
54
|
};
|
|
24
55
|
export declare enum ProjectStatus {
|
|
25
56
|
ToStart = "To Start",
|
|
@@ -31,15 +62,15 @@ export declare enum ProjectArchiveTier {
|
|
|
31
62
|
Full = "Full",
|
|
32
63
|
Partial = "Partial",
|
|
33
64
|
Minimal = "Minimal",
|
|
34
|
-
ScheduledForDeletion = "Scheduled for Deletion"
|
|
65
|
+
ScheduledForDeletion = "Scheduled for Deletion",
|
|
66
|
+
No = "No"
|
|
35
67
|
}
|
|
36
|
-
export type ProjectResponsePayload = {
|
|
37
|
-
data?: Project[];
|
|
38
|
-
};
|
|
39
68
|
export type UpdateCameraRestrictionPayload = {
|
|
40
69
|
isAccessRestricted?: boolean;
|
|
41
70
|
};
|
|
42
71
|
export type Logo = {
|
|
72
|
+
id: number;
|
|
73
|
+
projectId: number;
|
|
43
74
|
name: string;
|
|
44
75
|
url: string;
|
|
45
76
|
};
|
|
@@ -117,7 +148,7 @@ export type ProjectUserProperty = {
|
|
|
117
148
|
eventsCount: number;
|
|
118
149
|
fullname: string;
|
|
119
150
|
id: number;
|
|
120
|
-
lastSeenAt:
|
|
151
|
+
lastSeenAt: string;
|
|
121
152
|
persona: string;
|
|
122
153
|
};
|
|
123
154
|
export type ProjectUsers = {
|
|
@@ -127,37 +158,46 @@ export type ProjectUsers = {
|
|
|
127
158
|
}[];
|
|
128
159
|
users: Record<string, ProjectUserProperty[]>;
|
|
129
160
|
};
|
|
130
|
-
export type ProjectDateRangeFilter = DateRangeFilter & {
|
|
131
|
-
projectExid: ProjectExid;
|
|
132
|
-
};
|
|
133
161
|
export type ProjectRole = {
|
|
134
|
-
id:
|
|
162
|
+
id: number;
|
|
135
163
|
name: string;
|
|
136
164
|
};
|
|
137
165
|
export type ProjectMember = {
|
|
138
166
|
id: string;
|
|
167
|
+
key?: string;
|
|
139
168
|
email: string;
|
|
140
169
|
fullname: string;
|
|
170
|
+
lastSeenAt?: string;
|
|
141
171
|
role: ProjectRole;
|
|
142
172
|
permissions?: string[];
|
|
143
173
|
subRoles?: Array<{
|
|
144
174
|
resourceId: string;
|
|
145
175
|
roleId: number;
|
|
146
176
|
}>;
|
|
177
|
+
company?: {
|
|
178
|
+
name: string;
|
|
179
|
+
} | null;
|
|
147
180
|
};
|
|
148
181
|
export type ProjectInvite = {
|
|
149
182
|
id?: string;
|
|
150
183
|
email: string;
|
|
151
184
|
role?: ProjectRole;
|
|
185
|
+
permissions?: string[];
|
|
186
|
+
subRoles?: Array<{
|
|
187
|
+
resourceId: string;
|
|
188
|
+
roleId: number;
|
|
189
|
+
}>;
|
|
152
190
|
invitedAt?: string;
|
|
153
191
|
};
|
|
154
192
|
export type ProjectMembersResponsePayload = {
|
|
155
193
|
users: ProjectMember[];
|
|
156
194
|
invites: ProjectInvite[];
|
|
195
|
+
errors: ProjectUserError[];
|
|
157
196
|
};
|
|
158
197
|
export type ProjectMembersRequestPayload = {
|
|
159
198
|
roleId: number;
|
|
160
199
|
emails: string[];
|
|
200
|
+
message?: string;
|
|
161
201
|
overrideRole?: Partial<{
|
|
162
202
|
permissions?: string[];
|
|
163
203
|
subRoles?: Array<{
|
|
@@ -170,3 +210,37 @@ export type ProjectInviteMembersResponsePayload = {
|
|
|
170
210
|
users: ProjectMember[];
|
|
171
211
|
invites: ProjectInvite[];
|
|
172
212
|
};
|
|
213
|
+
export type PlaceholderThumbnailData = {
|
|
214
|
+
placeholder: string;
|
|
215
|
+
};
|
|
216
|
+
export type ProjectUserError = {
|
|
217
|
+
email: string;
|
|
218
|
+
error: Record<string, string[]>;
|
|
219
|
+
};
|
|
220
|
+
export type ProjectUsersResponsePayload = {
|
|
221
|
+
users: ProjectMember[];
|
|
222
|
+
invites: ProjectInvite[];
|
|
223
|
+
errors: ProjectUserError[];
|
|
224
|
+
};
|
|
225
|
+
export type ProjectStorageQueryParams = PaginationParams & {
|
|
226
|
+
cameraName: string;
|
|
227
|
+
cameraExid: CameraExid;
|
|
228
|
+
status: ProjectStorageStatus;
|
|
229
|
+
};
|
|
230
|
+
export type ProjectStorage = {
|
|
231
|
+
id: number;
|
|
232
|
+
cameraExid: CameraExid;
|
|
233
|
+
cameraName: string;
|
|
234
|
+
projectExid: string;
|
|
235
|
+
projectName: string;
|
|
236
|
+
status: ProjectStorageStatus;
|
|
237
|
+
requestor: string;
|
|
238
|
+
created_at: DateType;
|
|
239
|
+
};
|
|
240
|
+
export declare enum ProjectStorageStatus {
|
|
241
|
+
New = "new",
|
|
242
|
+
Pending = "pending",
|
|
243
|
+
Processing = "processing",
|
|
244
|
+
Completed = "completed",
|
|
245
|
+
Failed = "failed"
|
|
246
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiCredentials } from "
|
|
1
|
+
import { ApiCredentials } from "@evercam/api/types";
|
|
2
2
|
import { CancelToken } from "axios";
|
|
3
3
|
export type Snapshot = {
|
|
4
4
|
createdAt: string;
|
|
@@ -56,8 +56,7 @@ export type SnapshotRangeResponsePayload = {
|
|
|
56
56
|
snapshots: Array<SnapshotInstance>;
|
|
57
57
|
};
|
|
58
58
|
export declare enum BrainTool {
|
|
59
|
-
Detections = "detections"
|
|
60
|
-
Segmentation = "sam"
|
|
59
|
+
Detections = "detections"
|
|
61
60
|
}
|
|
62
61
|
export declare enum CloudRecordingFrequency {
|
|
63
62
|
EverySecond = 60,
|
|
@@ -77,6 +76,7 @@ export declare enum CloudRecordingDuration {
|
|
|
77
76
|
Month = 30,
|
|
78
77
|
ThreeMonths = 90
|
|
79
78
|
}
|
|
79
|
+
export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
|
|
80
80
|
export declare enum CloudRecordingStatus {
|
|
81
81
|
On = "on",
|
|
82
82
|
Off = "off",
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type RingDevice = {
|
|
2
|
+
deviceId: string;
|
|
3
|
+
name: string;
|
|
4
|
+
deviceType: string;
|
|
5
|
+
firmwareVersion: string | null;
|
|
6
|
+
batteryLife: number | null;
|
|
7
|
+
location: string | null;
|
|
8
|
+
imported: boolean;
|
|
9
|
+
cameraExid?: string;
|
|
10
|
+
projectExid?: string;
|
|
11
|
+
projectName?: string;
|
|
12
|
+
};
|
|
13
|
+
export type RingDevicesResponsePayload = {
|
|
14
|
+
devices: RingDevice[];
|
|
15
|
+
};
|
|
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
|
+
export type RingMoveDevicePayload = {
|
|
32
|
+
projectExid: string;
|
|
33
|
+
};
|
|
34
|
+
export type RingMoveDeviceResponsePayload = {
|
|
35
|
+
status: string;
|
|
36
|
+
cameraExid: string;
|
|
37
|
+
projectExid: string;
|
|
38
|
+
};
|
|
39
|
+
export type RingLiveViewPayload = {
|
|
40
|
+
sdpOffer: string;
|
|
41
|
+
};
|
|
42
|
+
export type RingLiveViewResponse = {
|
|
43
|
+
sdpAnswer: string;
|
|
44
|
+
sessionUrl: string;
|
|
45
|
+
iceServers: Array<{
|
|
46
|
+
urls: string;
|
|
47
|
+
username?: string;
|
|
48
|
+
credential?: string;
|
|
49
|
+
}>;
|
|
50
|
+
};
|
|
51
|
+
export type RingStopLiveViewResponse = {
|
|
52
|
+
status: string;
|
|
53
|
+
};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { DateType } from "
|
|
1
|
+
import { DateType } from "@evercam/api/types";
|
|
2
2
|
type sortby = string;
|
|
3
3
|
type sortDirection = "asc" | "desc";
|
|
4
4
|
export type SortingUrlParam = `${sortby}|${sortDirection}`;
|
|
5
|
+
export type JsonPrimitive = string | number | boolean | null;
|
|
6
|
+
export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
7
|
+
export type JsonObject = {
|
|
8
|
+
[key: string]: JsonValue;
|
|
9
|
+
};
|
|
10
|
+
export type JsonArray = JsonValue[];
|
|
5
11
|
export type BatteryReading = {
|
|
6
12
|
id: number;
|
|
7
13
|
voltage: number;
|
|
@@ -53,7 +59,7 @@ export declare enum UnitSystem {
|
|
|
53
59
|
Metric = "metric"
|
|
54
60
|
}
|
|
55
61
|
export type Timestamp = string | number;
|
|
56
|
-
export type
|
|
62
|
+
export type ScheduleUppercase = {
|
|
57
63
|
Friday: string[];
|
|
58
64
|
Monday: string[];
|
|
59
65
|
Saturday: string[];
|
|
@@ -71,6 +77,7 @@ export type ScheduleLowercase = {
|
|
|
71
77
|
tuesday: string[];
|
|
72
78
|
wednesday: string[];
|
|
73
79
|
};
|
|
80
|
+
export type Schedule = ScheduleUppercase | ScheduleLowercase;
|
|
74
81
|
export type PaginationParams = {
|
|
75
82
|
sort?: SortingUrlParam;
|
|
76
83
|
page?: number;
|
|
@@ -108,11 +115,11 @@ export declare enum DownloadFileType {
|
|
|
108
115
|
export declare enum FeedbackContext {
|
|
109
116
|
CopilotMessage = "copilot_message"
|
|
110
117
|
}
|
|
111
|
-
export type FeedbackPayload
|
|
118
|
+
export type FeedbackPayload = {
|
|
112
119
|
id?: number;
|
|
113
120
|
user: string;
|
|
114
121
|
text: string;
|
|
115
|
-
type:
|
|
122
|
+
type: string;
|
|
116
123
|
context: FeedbackContext;
|
|
117
124
|
messageId?: number;
|
|
118
125
|
conversationId?: number;
|
|
@@ -126,6 +133,11 @@ export interface JSON {
|
|
|
126
133
|
stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
|
|
127
134
|
parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
|
|
128
135
|
}
|
|
136
|
+
export type Point2D = {
|
|
137
|
+
x: number;
|
|
138
|
+
y: number;
|
|
139
|
+
};
|
|
140
|
+
export type TuplePoint2D = [number, number];
|
|
129
141
|
export type Exid = string;
|
|
130
142
|
export type EntityByExid<Entity extends unknown> = Record<Exid, Entity>;
|
|
131
143
|
export type BatteryVoltage = {
|
package/dist/api/types/sim.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export declare enum SmsCommands {
|
|
3
3
|
Cellular = "cellular",
|
|
4
4
|
Gpson = "gpson",
|
|
@@ -63,7 +63,7 @@ export type Sim = {
|
|
|
63
63
|
puk: string;
|
|
64
64
|
iccid: string;
|
|
65
65
|
description: string;
|
|
66
|
-
lastSmsAt:
|
|
66
|
+
lastSmsAt: string;
|
|
67
67
|
cameras: {
|
|
68
68
|
name: string;
|
|
69
69
|
exid: string;
|
|
@@ -79,11 +79,11 @@ export type SendSmsResponse = {
|
|
|
79
79
|
errorText: string;
|
|
80
80
|
};
|
|
81
81
|
export type SmsHistory = {
|
|
82
|
-
insertedAt:
|
|
82
|
+
insertedAt: string;
|
|
83
83
|
type: string;
|
|
84
84
|
status: string;
|
|
85
85
|
text: string;
|
|
86
|
-
deliveryDatetime:
|
|
86
|
+
deliveryDatetime: string;
|
|
87
87
|
};
|
|
88
88
|
export type SmsHistoryResponse = {
|
|
89
89
|
singleSimSms: SmsHistory[];
|
|
@@ -98,8 +98,8 @@ export type Sms = {
|
|
|
98
98
|
status: string;
|
|
99
99
|
text: string;
|
|
100
100
|
type: string;
|
|
101
|
-
insertedAt:
|
|
102
|
-
deliveryDatetime:
|
|
101
|
+
insertedAt: string;
|
|
102
|
+
deliveryDatetime: string;
|
|
103
103
|
};
|
|
104
104
|
export type SmsQueryParams = PaginationParams & {
|
|
105
105
|
dateRange: string;
|
|
@@ -1,14 +1,46 @@
|
|
|
1
|
-
import { BBox, BoundingBox, DateType, Schedule,
|
|
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";
|
|
2
2
|
import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
|
|
3
3
|
export declare enum SiteAnalyticsMode {
|
|
4
4
|
Detections = "detections",
|
|
5
5
|
Segments = "segments"
|
|
6
6
|
}
|
|
7
|
-
export type
|
|
7
|
+
export type SmartSearchObjectPart = {
|
|
8
8
|
id?: string;
|
|
9
|
-
type:
|
|
10
|
-
value: DetectionLabel
|
|
9
|
+
type: SmartSearchComponentType.Object;
|
|
10
|
+
value: DetectionLabel;
|
|
11
11
|
};
|
|
12
|
+
export type SmartSearchOperatorPart = {
|
|
13
|
+
id?: string;
|
|
14
|
+
type: SmartSearchComponentType.Operator;
|
|
15
|
+
value: SmartSearchOperatorType;
|
|
16
|
+
};
|
|
17
|
+
export type SmartSearchConditionPart = {
|
|
18
|
+
id?: string;
|
|
19
|
+
type: SmartSearchComponentType.Condition;
|
|
20
|
+
value: SmartSearchCondition | SmartSearchConditionData;
|
|
21
|
+
};
|
|
22
|
+
export type SmartSearchViewPart = {
|
|
23
|
+
id?: string;
|
|
24
|
+
type: SmartSearchComponentType.View;
|
|
25
|
+
value: SiteAnalyticsView;
|
|
26
|
+
};
|
|
27
|
+
export type SmartSearchAreaPart = {
|
|
28
|
+
id?: string;
|
|
29
|
+
type: SmartSearchComponentType.Area;
|
|
30
|
+
value: BBox;
|
|
31
|
+
};
|
|
32
|
+
export type SmartSearchTimePart = {
|
|
33
|
+
id?: string;
|
|
34
|
+
type: SmartSearchComponentType.Time;
|
|
35
|
+
value: Schedule | ScheduleLowercase;
|
|
36
|
+
};
|
|
37
|
+
export type SmartSearchDateRangePart = {
|
|
38
|
+
id?: string;
|
|
39
|
+
type: SmartSearchComponentType.DateRange;
|
|
40
|
+
value: DateRangeFilter;
|
|
41
|
+
};
|
|
42
|
+
export type SmartSearchPart = SmartSearchObjectPart | SmartSearchOperatorPart | SmartSearchConditionPart | SmartSearchViewPart | SmartSearchAreaPart | SmartSearchTimePart | SmartSearchDateRangePart;
|
|
43
|
+
export type SmartSearchPartOrGroup = SmartSearchPart | SmartSearchPart[];
|
|
12
44
|
export declare enum SmartSearchComponentType {
|
|
13
45
|
Condition = "condition",
|
|
14
46
|
Object = "object",
|
|
@@ -20,14 +52,10 @@ export declare enum SmartSearchComponentType {
|
|
|
20
52
|
Heatmap = "heatmap"
|
|
21
53
|
}
|
|
22
54
|
export type SmartSearchPartType = SmartSearchComponentType | SmartSearchCondition;
|
|
23
|
-
export type SmartSearchDateRange = {
|
|
24
|
-
start: DateType;
|
|
25
|
-
end: DateType;
|
|
26
|
-
};
|
|
27
55
|
export type SmartSearchComponentData = {
|
|
28
56
|
id: string;
|
|
29
57
|
type: SmartSearchComponentType;
|
|
30
|
-
parts:
|
|
58
|
+
parts: SmartSearchPartOrGroup[];
|
|
31
59
|
};
|
|
32
60
|
export declare enum SmartSearchCondition {
|
|
33
61
|
InArea = "in_area",
|
|
@@ -38,19 +66,35 @@ export type SmartSearchConditionData = {
|
|
|
38
66
|
condition: SmartSearchCondition;
|
|
39
67
|
value: string | BoundingBox | DetectionLabel | Date;
|
|
40
68
|
};
|
|
41
|
-
|
|
42
|
-
type: SmartSearchConditionTypes;
|
|
69
|
+
type SmartSearchBackendConditionBase = {
|
|
43
70
|
target: SmartSearchTargets;
|
|
44
|
-
|
|
45
|
-
|
|
71
|
+
};
|
|
72
|
+
export type SmartSearchSelectionCondition = SmartSearchBackendConditionBase & {
|
|
73
|
+
type: SmartSearchConditionTypes.Selection;
|
|
74
|
+
operator: SmartSearchOperators;
|
|
75
|
+
attribute: string;
|
|
46
76
|
value: string | number | string[];
|
|
47
|
-
|
|
77
|
+
};
|
|
78
|
+
export type SmartSearchSpatialCondition = SmartSearchBackendConditionBase & {
|
|
79
|
+
type: SmartSearchConditionTypes.Spatial;
|
|
80
|
+
operator: SmartSearchOperators;
|
|
81
|
+
reference: {
|
|
48
82
|
target: SmartSearchTargets;
|
|
49
83
|
attribute: string;
|
|
50
84
|
value: string | number | string[];
|
|
51
85
|
};
|
|
52
|
-
polygon?: BBox;
|
|
53
86
|
};
|
|
87
|
+
export type SmartSearchAreaCondition = SmartSearchBackendConditionBase & {
|
|
88
|
+
type: SmartSearchConditionTypes.Area;
|
|
89
|
+
operator: SmartSearchOperators;
|
|
90
|
+
polygon: BBox;
|
|
91
|
+
};
|
|
92
|
+
export type SmartSearchGeoAreaCondition = SmartSearchBackendConditionBase & {
|
|
93
|
+
type: SmartSearchConditionTypes.GeoArea;
|
|
94
|
+
operator: SmartSearchOperators;
|
|
95
|
+
polygon: BBox;
|
|
96
|
+
};
|
|
97
|
+
export type SmartSearchBackendQueryCondition = SmartSearchSelectionCondition | SmartSearchSpatialCondition | SmartSearchAreaCondition | SmartSearchGeoAreaCondition;
|
|
54
98
|
export type SmartSearchBackendQuery = {
|
|
55
99
|
returnTargets: SmartSearchTargets[];
|
|
56
100
|
rulesLogic: SmartSearchOperatorType;
|
|
@@ -59,6 +103,7 @@ export type SmartSearchBackendQuery = {
|
|
|
59
103
|
conditions: SmartSearchBackendQueryCondition[];
|
|
60
104
|
}[];
|
|
61
105
|
returnType: SmartSearchReturnType;
|
|
106
|
+
timeSchedule?: Schedule;
|
|
62
107
|
};
|
|
63
108
|
export declare enum SmartSearchTargets {
|
|
64
109
|
Tracking = "tracking",
|
|
@@ -93,28 +138,24 @@ export declare enum SmartSearchConditionTypes {
|
|
|
93
138
|
Near = "near",
|
|
94
139
|
Far = "far"
|
|
95
140
|
}
|
|
96
|
-
export type SmartSearchOptionValue = DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData;
|
|
141
|
+
export type SmartSearchOptionValue = DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData | DateRangeFilter | SiteAnalyticsView;
|
|
97
142
|
export type SmartSearchBackendQueryPayload = {
|
|
98
|
-
cameraExid: string;
|
|
99
143
|
name: string;
|
|
100
144
|
description: string;
|
|
101
|
-
query:
|
|
102
|
-
req: SmartSearchBackendQuery;
|
|
103
|
-
timeSchedule?: Schedule | undefined;
|
|
104
|
-
};
|
|
145
|
+
query: SmartSearchBackendQuery;
|
|
105
146
|
fromDate?: DateType;
|
|
106
147
|
toDate?: DateType;
|
|
107
148
|
author: string;
|
|
108
149
|
createdAt: DateType;
|
|
109
|
-
params?:
|
|
150
|
+
params?: {
|
|
151
|
+
start: string;
|
|
152
|
+
end: string;
|
|
153
|
+
};
|
|
110
154
|
};
|
|
111
155
|
export type SavedQuery = {
|
|
112
156
|
description: string;
|
|
113
157
|
id: number;
|
|
114
|
-
query:
|
|
115
|
-
req: SmartSearchBackendQuery;
|
|
116
|
-
timeSchedule?: Schedule | undefined;
|
|
117
|
-
};
|
|
158
|
+
query: SmartSearchBackendQuery;
|
|
118
159
|
params: Record<string, string>;
|
|
119
160
|
components?: Omit<SmartSearchPart, "id">[];
|
|
120
161
|
toDate?: DateType;
|
|
@@ -127,8 +168,8 @@ export type SavedQuery = {
|
|
|
127
168
|
export type DetectionsRequestParams = {
|
|
128
169
|
projectExid: ProjectExid;
|
|
129
170
|
cameraExids: CameraExid[];
|
|
130
|
-
fromDate?:
|
|
131
|
-
toDate?:
|
|
171
|
+
fromDate?: string;
|
|
172
|
+
toDate?: string;
|
|
132
173
|
labels?: Array<DetectionLabel | PpeLabel>;
|
|
133
174
|
modelId?: DetectionModel;
|
|
134
175
|
trackId?: number;
|
|
@@ -165,14 +206,17 @@ export declare enum SiteAnalyticsViewType {
|
|
|
165
206
|
Camera = "camera",
|
|
166
207
|
ThreeSixty = "360"
|
|
167
208
|
}
|
|
168
|
-
type
|
|
169
|
-
|
|
170
|
-
|
|
209
|
+
export type SiteAnalyticsCameraView = {
|
|
210
|
+
type: SiteAnalyticsViewType.Camera;
|
|
211
|
+
id: CameraExid;
|
|
212
|
+
value: Camera | AdminCamera;
|
|
171
213
|
};
|
|
172
|
-
export type
|
|
173
|
-
type: SiteAnalyticsViewType;
|
|
174
|
-
|
|
214
|
+
export type SiteAnalytics360View = {
|
|
215
|
+
type: SiteAnalyticsViewType.ThreeSixty;
|
|
216
|
+
id: _360FloorId;
|
|
217
|
+
value: _360FloorV2;
|
|
175
218
|
};
|
|
219
|
+
export type SiteAnalyticsView = SiteAnalyticsCameraView | SiteAnalytics360View;
|
|
176
220
|
export type SiteAnalyticsProcessingStatusPayload = {
|
|
177
221
|
projectExid?: ProjectExid;
|
|
178
222
|
fromDate?: DateType;
|
|
@@ -231,11 +275,7 @@ type SmartSearchResultItemByType = {
|
|
|
231
275
|
[SmartSearchReturnType.FirstLastSeen]: SmartSearchResultItemFirstLastSeen;
|
|
232
276
|
[SmartSearchReturnType.All]: SmartSearchResultItemAll;
|
|
233
277
|
};
|
|
234
|
-
export type SmartSearchResponse<R extends SmartSearchReturnType = SmartSearchReturnType.FirstLastSeen> =
|
|
235
|
-
data: PaginatedItems<SmartSearchResultItemByType[R]>;
|
|
236
|
-
message?: string;
|
|
237
|
-
success: boolean;
|
|
238
|
-
};
|
|
278
|
+
export type SmartSearchResponse<R extends SmartSearchReturnType = SmartSearchReturnType.FirstLastSeen> = PaginatedItems<SmartSearchResultItemByType[R]>;
|
|
239
279
|
export type SmartSearchMinifiedPart = {
|
|
240
280
|
t: SmartSearchComponentType;
|
|
241
281
|
v: unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CameraExid, DateType, PaginationParams, Schedule } from "
|
|
1
|
+
import { CameraExid, DateType, PaginationParams, Schedule } from "@evercam/api/types";
|
|
2
2
|
export type SnapshotExtractionQyeryParams = PaginationParams & {
|
|
3
3
|
camera: string;
|
|
4
4
|
cameraExid: CameraExid;
|
|
@@ -48,12 +48,44 @@ export type DeleteSnapshotQueryParams = {
|
|
|
48
48
|
adminEmail: string;
|
|
49
49
|
adminFullname: string;
|
|
50
50
|
};
|
|
51
|
-
export type
|
|
51
|
+
export type SnapshotTransfer = {
|
|
52
|
+
id: number;
|
|
53
|
+
sourceCamera: SnapshotTransferCamera;
|
|
54
|
+
targetCamera: SnapshotTransferCamera;
|
|
55
|
+
fromDate: DateType;
|
|
56
|
+
toDate: DateType;
|
|
57
|
+
overwriteExisting?: boolean | null;
|
|
58
|
+
deleteSource?: boolean | null;
|
|
59
|
+
requestor: SnapshotTransferRequestor;
|
|
60
|
+
status: SnapshotTransferStatus;
|
|
61
|
+
insertedAt: DateType;
|
|
62
|
+
attempts?: number | null;
|
|
63
|
+
errorMessage?: string | null;
|
|
64
|
+
snapshotsTransferred?: number | null;
|
|
65
|
+
};
|
|
66
|
+
export type SnapshotTransferCamera = {
|
|
67
|
+
id: number;
|
|
68
|
+
exid: CameraExid;
|
|
69
|
+
name: string;
|
|
70
|
+
};
|
|
71
|
+
export type SnapshotTransferRequestor = {
|
|
72
|
+
email: string;
|
|
73
|
+
firstname: string;
|
|
74
|
+
lastname: string;
|
|
75
|
+
};
|
|
76
|
+
export declare enum SnapshotTransferStatus {
|
|
77
|
+
Completed = "completed",
|
|
78
|
+
Failed = "failed",
|
|
79
|
+
Processing = "processing",
|
|
80
|
+
Pending = "pending",
|
|
81
|
+
Cancelled = "cancelled"
|
|
82
|
+
}
|
|
83
|
+
export type TransferCloudRecordingsQueryParams = PaginationParams & {
|
|
52
84
|
targetCameraExid: CameraExid;
|
|
53
85
|
fromDate: DateType;
|
|
54
86
|
toDate: DateType;
|
|
55
|
-
|
|
56
|
-
|
|
87
|
+
overwriteExisting?: boolean;
|
|
88
|
+
deleteSource?: boolean;
|
|
57
89
|
adminEmail?: string;
|
|
58
90
|
adminFullname?: string;
|
|
59
91
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DateType } from "@evercam/api/types";
|
|
2
|
+
export type StorageProvider = {
|
|
3
|
+
id?: number;
|
|
4
|
+
cameraId: number;
|
|
5
|
+
type: string;
|
|
6
|
+
provider: string;
|
|
7
|
+
url: string;
|
|
8
|
+
startDate: DateType;
|
|
9
|
+
endDate: DateType;
|
|
10
|
+
config: Record<string, any>;
|
|
11
|
+
insertedAt?: DateType;
|
|
12
|
+
};
|
|
13
|
+
export type StorageProvidersResponsePayload = {
|
|
14
|
+
providers: StorageProvider[];
|
|
15
|
+
};
|
|
16
|
+
export declare enum ProjectStorageProvider {
|
|
17
|
+
Seaweedfs = "seaweedfs",
|
|
18
|
+
S3 = "s3"
|
|
19
|
+
}
|