@evercam/api 1.0.0-79849e0e7 → 1.0.0-7e19ed0be
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 +212 -15
- package/dist/api/api/adminApi.d.ts +100 -97
- package/dist/api/api/aiApi.d.ts +130 -7
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +52 -33
- package/dist/api/api/evercamLabsApi.d.ts +9 -17
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +56 -34
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +178 -86
- package/dist/api/types/admin.d.ts +37 -3
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +57 -33
- package/dist/api/types/anpr.d.ts +36 -6
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +179 -21
- package/dist/api/types/authz.d.ts +71 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +10 -9
- package/dist/api/types/bim.d.ts +55 -12
- package/dist/api/types/camera.d.ts +236 -127
- package/dist/api/types/comments.d.ts +67 -26
- package/dist/api/types/company.d.ts +11 -5
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/detections.d.ts +6 -10
- package/dist/api/types/drone.d.ts +94 -6
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/api/types/errors.d.ts +19 -2
- package/dist/api/types/gateReport.d.ts +9 -23
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +1 -1
- package/dist/api/types/index.d.ts +11 -2
- package/dist/api/types/ingest.d.ts +194 -27
- package/dist/api/types/kit.d.ts +97 -117
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +31 -3
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/nvr.d.ts +39 -8
- package/dist/api/types/observationEvents.d.ts +167 -0
- package/dist/api/types/observations.d.ts +89 -0
- package/dist/api/types/planner.d.ts +56 -10
- package/dist/api/types/posthog.d.ts +56 -0
- package/dist/api/types/progressPhoto.d.ts +38 -25
- package/dist/api/types/project.d.ts +69 -22
- package/dist/api/types/recording.d.ts +7 -13
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/router.d.ts +15 -10
- package/dist/api/types/shared.d.ts +39 -29
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/sim.d.ts +18 -6
- package/dist/api/types/siteAnalytics.d.ts +3 -5
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +79 -0
- package/dist/api/types/snapshots.d.ts +63 -10
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +11 -37
- package/dist/api/types/storageProvider.d.ts +16 -5
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +4 -8
- package/dist/api/types/user.d.ts +48 -33
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2242 -926
- 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 +506 -46
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/report.d.ts +107 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +4 -2
- package/dist/api/types/copilot.d.ts +0 -162
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, PaginationParams } from "@evercam/api/types";
|
|
1
|
+
import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, GeoJSONPolygon, Operator, PaginationParams, ProjectUserWithRole, RoleSubRole } from "@evercam/api/types";
|
|
2
2
|
export type ProjectExid = Exid;
|
|
3
3
|
export type ProjectsByExid = EntityByExid<Project>;
|
|
4
4
|
export type Project = {
|
|
@@ -10,7 +10,7 @@ export type Project = {
|
|
|
10
10
|
endDate: string;
|
|
11
11
|
exid: ProjectExid;
|
|
12
12
|
featureFlags: Array<ProjectFeatureFlag>;
|
|
13
|
-
geographicBounds?:
|
|
13
|
+
geographicBounds?: GeoJSONPolygon | null;
|
|
14
14
|
id: string | number;
|
|
15
15
|
insertedAt?: string;
|
|
16
16
|
name: string;
|
|
@@ -20,6 +20,7 @@ export type Project = {
|
|
|
20
20
|
ownerEmail?: string;
|
|
21
21
|
ownerName?: string;
|
|
22
22
|
startedAt?: string;
|
|
23
|
+
startDate?: string | null;
|
|
23
24
|
status?: ProjectStatus;
|
|
24
25
|
timezone?: string;
|
|
25
26
|
unrestrictedCameras?: Camera[];
|
|
@@ -40,7 +41,7 @@ export type AdminProjectListItem = {
|
|
|
40
41
|
endDate: string | null;
|
|
41
42
|
startDate: string | null;
|
|
42
43
|
archiveTier: ProjectArchiveTier | null;
|
|
43
|
-
featureFlags: Array<ProjectFeatureFlag
|
|
44
|
+
featureFlags: Array<ProjectFeatureFlag>;
|
|
44
45
|
zohoId: string | null;
|
|
45
46
|
ownerEmail: string | null;
|
|
46
47
|
companyId: number | null;
|
|
@@ -48,6 +49,7 @@ export type AdminProjectListItem = {
|
|
|
48
49
|
ownerName: string | null;
|
|
49
50
|
archived: boolean;
|
|
50
51
|
cameras?: AdminProjectCameraRef[];
|
|
52
|
+
geographicBounds: GeoJSONPolygon | null;
|
|
51
53
|
};
|
|
52
54
|
export type AdminProjectDetail = AdminProjectListItem & {
|
|
53
55
|
userId: number;
|
|
@@ -68,6 +70,13 @@ export declare enum ProjectArchiveTier {
|
|
|
68
70
|
export type UpdateCameraRestrictionPayload = {
|
|
69
71
|
isAccessRestricted?: boolean;
|
|
70
72
|
};
|
|
73
|
+
export type CameraPosition = {
|
|
74
|
+
cameraExid: CameraExid;
|
|
75
|
+
position: number;
|
|
76
|
+
};
|
|
77
|
+
export type ReorderCamerasPayload = {
|
|
78
|
+
positions: CameraPosition[];
|
|
79
|
+
};
|
|
71
80
|
export type Logo = {
|
|
72
81
|
id: number;
|
|
73
82
|
projectId: number;
|
|
@@ -89,10 +98,10 @@ export declare enum ProjectFeatureFlag {
|
|
|
89
98
|
MediaHubSharing = "archives_sharing",
|
|
90
99
|
GateReportAnprBased = "anpr_sourced",
|
|
91
100
|
NoLicensePlate = "no_license_plate",
|
|
92
|
-
DefaultToProjectApp = "default_to_project_app",
|
|
93
101
|
SmartSearch = "smart_search",
|
|
94
102
|
PpeMonitoring = "ppe_monitoring",
|
|
95
|
-
NoGdpr = "no_gdpr"
|
|
103
|
+
NoGdpr = "no_gdpr",
|
|
104
|
+
Chat = "chat"
|
|
96
105
|
}
|
|
97
106
|
export type ProjectBatteryReading = {
|
|
98
107
|
exid: number;
|
|
@@ -110,6 +119,7 @@ export type ProjectsQueryParams = PaginationParams & {
|
|
|
110
119
|
status: ProjectStatus;
|
|
111
120
|
cameras: string;
|
|
112
121
|
featureFlags: Array<ProjectFeatureFlag>;
|
|
122
|
+
featureFlagsOperator?: Operator;
|
|
113
123
|
archived: string;
|
|
114
124
|
};
|
|
115
125
|
export type ProjectCreateRequestPayload = {
|
|
@@ -118,13 +128,24 @@ export type ProjectCreateRequestPayload = {
|
|
|
118
128
|
ownerId: number;
|
|
119
129
|
cameras: string[];
|
|
120
130
|
};
|
|
121
|
-
export type
|
|
122
|
-
|
|
131
|
+
export type CreatedProject = {
|
|
132
|
+
id: number;
|
|
123
133
|
exid: string;
|
|
134
|
+
name: string;
|
|
135
|
+
userId: number;
|
|
136
|
+
zohoId: string | null;
|
|
137
|
+
geographicBounds: GeoJSONPolygon | null;
|
|
138
|
+
};
|
|
139
|
+
export type ProjectCreateResponse = Record<"project", CreatedProject>;
|
|
140
|
+
export type TransferOwnershipProject = {
|
|
124
141
|
id: number;
|
|
142
|
+
exid: string;
|
|
143
|
+
name: string;
|
|
125
144
|
userId: number;
|
|
126
|
-
zohoId: string;
|
|
145
|
+
zohoId: string | null;
|
|
146
|
+
status: ProjectStatus;
|
|
127
147
|
};
|
|
148
|
+
export type ProjectTransferOwnershipResponse = Record<"project", TransferOwnershipProject>;
|
|
128
149
|
export type ProjectUpdateRequestPayload = {
|
|
129
150
|
name: string;
|
|
130
151
|
timezone: string;
|
|
@@ -151,12 +172,17 @@ export type ProjectUserProperty = {
|
|
|
151
172
|
lastSeenAt: string;
|
|
152
173
|
persona: string;
|
|
153
174
|
};
|
|
154
|
-
export type
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
175
|
+
export type AdminProjectInvite = {
|
|
176
|
+
id: number;
|
|
177
|
+
email: string;
|
|
178
|
+
role: ProjectRole;
|
|
179
|
+
permissions: string[];
|
|
180
|
+
subRoles: RoleSubRole[];
|
|
181
|
+
};
|
|
182
|
+
export type AdminProjectUsersResponsePayload = {
|
|
183
|
+
users: ProjectUserWithRole[];
|
|
184
|
+
invites: AdminProjectInvite[];
|
|
185
|
+
errors: ProjectUserError[];
|
|
160
186
|
};
|
|
161
187
|
export type ProjectRole = {
|
|
162
188
|
id: number;
|
|
@@ -179,7 +205,7 @@ export type ProjectMember = {
|
|
|
179
205
|
} | null;
|
|
180
206
|
};
|
|
181
207
|
export type ProjectInvite = {
|
|
182
|
-
id
|
|
208
|
+
id: number;
|
|
183
209
|
email: string;
|
|
184
210
|
role?: ProjectRole;
|
|
185
211
|
permissions?: string[];
|
|
@@ -222,20 +248,41 @@ export type ProjectUsersResponsePayload = {
|
|
|
222
248
|
invites: ProjectInvite[];
|
|
223
249
|
errors: ProjectUserError[];
|
|
224
250
|
};
|
|
251
|
+
export type MentionableUser = {
|
|
252
|
+
id: number;
|
|
253
|
+
fullname: string;
|
|
254
|
+
email: string;
|
|
255
|
+
};
|
|
225
256
|
export type ProjectStorageQueryParams = PaginationParams & {
|
|
226
257
|
cameraName: string;
|
|
227
258
|
cameraExid: CameraExid;
|
|
259
|
+
projectName: string;
|
|
260
|
+
projectExid: string;
|
|
261
|
+
archiveTier: ProjectArchiveTier;
|
|
262
|
+
status: ProjectStorageStatus;
|
|
263
|
+
requester: string;
|
|
264
|
+
createdAtFrom: string;
|
|
265
|
+
createdAtTo: string;
|
|
266
|
+
scheduleAtFrom: string;
|
|
267
|
+
scheduleAtTo: string;
|
|
268
|
+
};
|
|
269
|
+
export type ProjectStorageCamera = {
|
|
270
|
+
archiveId: number;
|
|
271
|
+
name: string;
|
|
272
|
+
exid: CameraExid;
|
|
228
273
|
status: ProjectStorageStatus;
|
|
274
|
+
errorMessage: string | null;
|
|
229
275
|
};
|
|
230
276
|
export type ProjectStorage = {
|
|
231
277
|
id: number;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
278
|
+
exid: string;
|
|
279
|
+
name: string;
|
|
280
|
+
archiveTier: ProjectArchiveTier | null;
|
|
281
|
+
endDate: string | null;
|
|
282
|
+
requester: string | null;
|
|
283
|
+
scheduleAt: string | null;
|
|
284
|
+
insertedAt: DateType;
|
|
285
|
+
cameras: ProjectStorageCamera[];
|
|
239
286
|
};
|
|
240
287
|
export declare enum ProjectStorageStatus {
|
|
241
288
|
New = "new",
|
|
@@ -1,22 +1,24 @@
|
|
|
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;
|
|
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>;
|
|
@@ -39,11 +41,9 @@ export type NearestSnapshotResponsePayload = {
|
|
|
39
41
|
notes?: string;
|
|
40
42
|
}>;
|
|
41
43
|
};
|
|
42
|
-
export type SnapshotRangeRequestPayload = {
|
|
44
|
+
export type SnapshotRangeRequestPayload = PaginationParams & {
|
|
43
45
|
from: string;
|
|
44
46
|
to: string;
|
|
45
|
-
limit?: number;
|
|
46
|
-
page?: number;
|
|
47
47
|
schedule?: boolean;
|
|
48
48
|
count?: number;
|
|
49
49
|
};
|
|
@@ -104,13 +104,6 @@ export declare enum SnapshotExtractionInterval {
|
|
|
104
104
|
}
|
|
105
105
|
export declare enum VpnServer {
|
|
106
106
|
None = "None",
|
|
107
|
-
OpenVPN1 = "OpenVPN1",
|
|
108
|
-
OpenVPN2 = "OpenVPN2",
|
|
109
|
-
OpenVPN3 = "OpenVPN3",
|
|
110
|
-
OpenVPN4 = "OpenVPN4",
|
|
111
|
-
OpenVPN5 = "OpenVPN5",
|
|
112
|
-
PPTP1 = "PPTP1",
|
|
113
|
-
PPTP2 = "PPTP2",
|
|
114
107
|
WireGuard1 = "WireGuard1",
|
|
115
108
|
WireGuard2 = "WireGuard2",
|
|
116
109
|
WireGuard3 = "WireGuard3",
|
|
@@ -120,5 +113,6 @@ export declare enum VpnServer {
|
|
|
120
113
|
WireGuard7 = "WireGuard7",
|
|
121
114
|
WireGuard8 = "WireGuard8",
|
|
122
115
|
WireGuard9 = "WireGuard9",
|
|
123
|
-
WireGuard10 = "WireGuard10"
|
|
116
|
+
WireGuard10 = "WireGuard10",
|
|
117
|
+
WgHub = "WgHub"
|
|
124
118
|
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import type { DateType, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
export declare enum RecycleBinItemType {
|
|
3
|
+
Camera = "camera",
|
|
4
|
+
Project = "project",
|
|
5
|
+
Kit = "kit"
|
|
6
|
+
}
|
|
2
7
|
export type RecycleBin = {
|
|
3
|
-
id
|
|
8
|
+
id: number;
|
|
4
9
|
exid: string;
|
|
5
10
|
name: string;
|
|
6
|
-
type:
|
|
11
|
+
type: RecycleBinItemType;
|
|
7
12
|
deletedBy: string;
|
|
8
13
|
deletedAt: DateType;
|
|
9
14
|
};
|
|
10
15
|
export type RecycleBinQueryParams = PaginationParams & {
|
|
16
|
+
exid: string;
|
|
11
17
|
name: string;
|
|
12
18
|
type: string;
|
|
13
19
|
deletedBy: string;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Evercam Reports engine (evercam-agent-kit), as the admin app sees it.
|
|
3
|
+
*
|
|
4
|
+
* These mirror `evercam_reports/api/schemas.py`. The engine speaks camelCase over
|
|
5
|
+
* the wire, so the admin client reads it with `preserveCasing: true` and these are
|
|
6
|
+
* the shapes as received. Named `Chat*`, after the product; the Vue 3 agent app's
|
|
7
|
+
* own workflow types live in `packages/agent`, unreachable here.
|
|
8
|
+
*/
|
|
9
|
+
/** What kind of conversation this is. Chat only ever opens `chat`. */
|
|
10
|
+
export declare enum ChatMode {
|
|
11
|
+
Report = "report",
|
|
12
|
+
Chat = "chat"
|
|
13
|
+
}
|
|
14
|
+
/** Whose conversations a list covers. Only an admin is ever given `all`. */
|
|
15
|
+
export declare enum ChatScope {
|
|
16
|
+
Mine = "mine",
|
|
17
|
+
Account = "account",
|
|
18
|
+
All = "all"
|
|
19
|
+
}
|
|
20
|
+
/** A flat token tally, as the engine reports it. */
|
|
21
|
+
export type ChatUsage = {
|
|
22
|
+
inputTokens?: number;
|
|
23
|
+
outputTokens?: number;
|
|
24
|
+
cacheCreationInputTokens?: number;
|
|
25
|
+
cacheReadInputTokens?: number;
|
|
26
|
+
};
|
|
27
|
+
/** One recorded tool step in a turn's trace, compacted by the engine. */
|
|
28
|
+
export type ChatTraceStep = {
|
|
29
|
+
step?: number | null;
|
|
30
|
+
tool?: string | null;
|
|
31
|
+
result?: string | null;
|
|
32
|
+
durationMs?: number | null;
|
|
33
|
+
usage?: ChatUsage | null;
|
|
34
|
+
args?: unknown;
|
|
35
|
+
};
|
|
36
|
+
/** One stored turn, as the engine returns it inside a conversation. */
|
|
37
|
+
export type ChatTurn = {
|
|
38
|
+
id: string;
|
|
39
|
+
userText?: string | null;
|
|
40
|
+
assistantText?: string | null;
|
|
41
|
+
thinkingSummary?: string | null;
|
|
42
|
+
artifact?: unknown;
|
|
43
|
+
/** The agent's tool steps for this answer. Absent on turns stored before traces. */
|
|
44
|
+
trace?: ChatTraceStep[] | null;
|
|
45
|
+
/** This turn's own token usage. */
|
|
46
|
+
usage?: ChatUsage | null;
|
|
47
|
+
runId?: string | null;
|
|
48
|
+
at?: string | null;
|
|
49
|
+
};
|
|
50
|
+
/** A conversation in full, with its transcript, cost ledger and per-turn traces. */
|
|
51
|
+
export type ChatSession = {
|
|
52
|
+
id: string;
|
|
53
|
+
environment: string;
|
|
54
|
+
mode: string;
|
|
55
|
+
title: string | null;
|
|
56
|
+
projectExid: string | null;
|
|
57
|
+
projectName: string | null;
|
|
58
|
+
cameraExids: string[] | null;
|
|
59
|
+
turns: ChatTurn[];
|
|
60
|
+
savedReportId: string | null;
|
|
61
|
+
createdBy: string | null;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
updatedAt: string;
|
|
64
|
+
usage?: ChatUsage | null;
|
|
65
|
+
usageByModel?: Record<string, ChatUsage> | null;
|
|
66
|
+
model?: string | null;
|
|
67
|
+
/** Money as a string, or `null` (never `0`) when the conversation is unpriced. */
|
|
68
|
+
costUsd?: string | null;
|
|
69
|
+
priceBasis?: Record<string, unknown> | null;
|
|
70
|
+
};
|
|
71
|
+
/** One conversation as a list row — metadata and cost, without the transcript. */
|
|
72
|
+
export type ChatSummary = {
|
|
73
|
+
id: string;
|
|
74
|
+
environment: string;
|
|
75
|
+
mode: string;
|
|
76
|
+
title: string | null;
|
|
77
|
+
projectExid: string | null;
|
|
78
|
+
projectName: string | null;
|
|
79
|
+
cameraExids: string[] | null;
|
|
80
|
+
createdBy: string | null;
|
|
81
|
+
createdAt: string;
|
|
82
|
+
updatedAt: string;
|
|
83
|
+
turnCount: number;
|
|
84
|
+
usage?: ChatUsage | null;
|
|
85
|
+
model?: string | null;
|
|
86
|
+
costUsd?: string | null;
|
|
87
|
+
};
|
|
88
|
+
/** A page of conversations for the admin viewer. */
|
|
89
|
+
export type ChatListPage = {
|
|
90
|
+
chats: ChatSummary[];
|
|
91
|
+
total: number;
|
|
92
|
+
/** The scope the engine actually applied. */
|
|
93
|
+
scope: ChatScope;
|
|
94
|
+
};
|
|
95
|
+
/** Query params the admin conversations list accepts. */
|
|
96
|
+
export type ChatListParams = {
|
|
97
|
+
scope?: ChatScope;
|
|
98
|
+
mode?: ChatMode;
|
|
99
|
+
projectExid?: string;
|
|
100
|
+
createdBy?: string;
|
|
101
|
+
excludeEvercam?: boolean;
|
|
102
|
+
q?: string;
|
|
103
|
+
from?: string;
|
|
104
|
+
to?: string;
|
|
105
|
+
sort?: string;
|
|
106
|
+
direction?: "asc" | "desc";
|
|
107
|
+
offset?: number;
|
|
108
|
+
limit?: number;
|
|
109
|
+
};
|
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,23 +3,15 @@ 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",
|
|
10
11
|
Line = "line",
|
|
11
12
|
Direction = "direction",
|
|
12
|
-
Rectangle = "rectangle"
|
|
13
|
-
ROIBox = "ROIBox"
|
|
13
|
+
Rectangle = "rectangle"
|
|
14
14
|
}
|
|
15
|
-
export type RoiShape = {
|
|
16
|
-
id: number | null;
|
|
17
|
-
name: string;
|
|
18
|
-
x1: number;
|
|
19
|
-
x2: number;
|
|
20
|
-
y1: number;
|
|
21
|
-
y2: number;
|
|
22
|
-
};
|
|
23
15
|
export declare enum RoiDirection {
|
|
24
16
|
Arrived = "arrived",
|
|
25
17
|
Left = "left",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PaginationParams, SimSummary } from "@evercam/api/types";
|
|
2
2
|
export type RouterBillPayer = {
|
|
3
3
|
name: string;
|
|
4
4
|
};
|
|
@@ -7,30 +7,31 @@ export type SimProvider = {
|
|
|
7
7
|
};
|
|
8
8
|
export type Router = {
|
|
9
9
|
id?: number;
|
|
10
|
-
|
|
10
|
+
kitSerial?: string;
|
|
11
|
+
kitName?: string;
|
|
12
|
+
rmsId?: number | null;
|
|
11
13
|
routerType: string;
|
|
12
14
|
routerUserId: string;
|
|
13
15
|
routerPassword: string;
|
|
14
16
|
serialNumber: number | null;
|
|
15
17
|
rmsUrl?: string;
|
|
16
|
-
externalHost?: string;
|
|
17
18
|
routerHttpPort: number | null;
|
|
18
19
|
vpnPassword: string;
|
|
19
20
|
vpnUserId: string;
|
|
20
21
|
vpnServer: string;
|
|
21
|
-
netbirdUrl
|
|
22
|
+
netbirdUrl?: string;
|
|
22
23
|
status: RouterStatus;
|
|
23
24
|
powerType: PowerType;
|
|
24
|
-
powerSchedule:
|
|
25
|
-
battery
|
|
25
|
+
powerSchedule: PowerSchedule;
|
|
26
|
+
battery: {
|
|
26
27
|
lastVoltage: number;
|
|
27
28
|
lastSeen: string;
|
|
28
|
-
};
|
|
29
|
-
sims:
|
|
29
|
+
} | null;
|
|
30
|
+
sims: SimSummary[];
|
|
30
31
|
billPayers?: Array<RouterBillPayer>;
|
|
31
32
|
simProviders?: Array<SimProvider>;
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
lastSms?: string;
|
|
34
|
+
lastSmsAt?: string;
|
|
34
35
|
};
|
|
35
36
|
export declare enum PowerType {
|
|
36
37
|
Mains = "mains",
|
|
@@ -66,9 +67,13 @@ export type RouterCreatePayload = {
|
|
|
66
67
|
routerHttpPort: number;
|
|
67
68
|
powerType: PowerType;
|
|
68
69
|
powerSchedule: PowerSchedule;
|
|
70
|
+
status: RouterStatus;
|
|
69
71
|
vpnServer?: string;
|
|
70
72
|
netbirdUrl?: string;
|
|
71
73
|
};
|
|
74
|
+
export type RouterUpdatePayload = Partial<RouterCreatePayload> & {
|
|
75
|
+
kitId?: number | null;
|
|
76
|
+
};
|
|
72
77
|
export type RouterQRScanResult = {
|
|
73
78
|
raw: string;
|
|
74
79
|
timestamp: string;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { DateType } from "@evercam/api/types";
|
|
2
|
+
export declare enum Operator {
|
|
3
|
+
AND = "and",
|
|
4
|
+
OR = "or"
|
|
5
|
+
}
|
|
2
6
|
type sortby = string;
|
|
3
7
|
type sortDirection = "asc" | "desc";
|
|
4
8
|
export type SortingUrlParam = `${sortby}|${sortDirection}`;
|
|
@@ -105,25 +109,18 @@ export declare enum InfoPage {
|
|
|
105
109
|
DroneView = "drone-view",
|
|
106
110
|
Compare = "compare",
|
|
107
111
|
Timeline = "timeline",
|
|
108
|
-
WeatherReport = "weather-report"
|
|
112
|
+
WeatherReport = "weather-report",
|
|
113
|
+
Cameras = "cameras"
|
|
109
114
|
}
|
|
110
115
|
export declare enum DownloadFileType {
|
|
111
116
|
Jpeg = "jpeg",
|
|
112
117
|
Pdf = "pdf",
|
|
113
118
|
Csv = "csv"
|
|
114
119
|
}
|
|
115
|
-
export declare enum
|
|
116
|
-
|
|
120
|
+
export declare enum PromiseSettledStatus {
|
|
121
|
+
Fulfilled = "fulfilled",
|
|
122
|
+
Rejected = "rejected"
|
|
117
123
|
}
|
|
118
|
-
export type FeedbackPayload = {
|
|
119
|
-
id?: number;
|
|
120
|
-
user: string;
|
|
121
|
-
text: string;
|
|
122
|
-
type: string;
|
|
123
|
-
context: FeedbackContext;
|
|
124
|
-
messageId?: number;
|
|
125
|
-
conversationId?: number;
|
|
126
|
-
};
|
|
127
124
|
export type Stringified<T> = string & {
|
|
128
125
|
[P in keyof T]: {
|
|
129
126
|
"_ value": T[P];
|
|
@@ -133,18 +130,41 @@ export interface JSON {
|
|
|
133
130
|
stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
|
|
134
131
|
parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
|
|
135
132
|
}
|
|
133
|
+
export type TuplePoint2D = [number, number];
|
|
134
|
+
export type TuplePoint3D = [number, number, number];
|
|
135
|
+
export type Point2D = {
|
|
136
|
+
x: number;
|
|
137
|
+
y: number;
|
|
138
|
+
};
|
|
139
|
+
export type Point3D = {
|
|
140
|
+
x: number;
|
|
141
|
+
y: number;
|
|
142
|
+
z: number;
|
|
143
|
+
};
|
|
144
|
+
export type GeoPoint = {
|
|
145
|
+
lat: number;
|
|
146
|
+
lng: number;
|
|
147
|
+
};
|
|
136
148
|
export type Exid = string;
|
|
137
|
-
export type EntityByExid<Entity
|
|
149
|
+
export type EntityByExid<Entity> = Record<Exid, Entity>;
|
|
138
150
|
export type BatteryVoltage = {
|
|
139
151
|
date: DateType;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
};
|
|
152
|
+
maxValue: number;
|
|
153
|
+
minValue: number;
|
|
154
|
+
};
|
|
155
|
+
export declare enum GlobalSearchResource {
|
|
156
|
+
Projects = "projects",
|
|
157
|
+
Users = "users",
|
|
158
|
+
Cameras = "cameras",
|
|
159
|
+
Companies = "companies",
|
|
160
|
+
Sims = "sims",
|
|
161
|
+
Routers = "routers"
|
|
162
|
+
}
|
|
143
163
|
export type GlobalSearchQueryParams = PaginationParams & {
|
|
144
|
-
resource:
|
|
164
|
+
resource: GlobalSearchResource;
|
|
145
165
|
term: string;
|
|
146
|
-
email
|
|
147
|
-
featureFlag
|
|
166
|
+
email?: string;
|
|
167
|
+
featureFlag?: string;
|
|
148
168
|
};
|
|
149
169
|
export type TimelineDateInterval = {
|
|
150
170
|
fromDate: string;
|
|
@@ -159,16 +179,6 @@ export declare enum TimelinePrecision {
|
|
|
159
179
|
Minute = "minute",
|
|
160
180
|
Events = "events"
|
|
161
181
|
}
|
|
162
|
-
export type EntityStatsQueryParams = {
|
|
163
|
-
period: "day" | "week" | "month";
|
|
164
|
-
startDate: string;
|
|
165
|
-
endDate: string;
|
|
166
|
-
};
|
|
167
|
-
export type EntityStat = {
|
|
168
|
-
period: string;
|
|
169
|
-
name: string;
|
|
170
|
-
count: number;
|
|
171
|
-
};
|
|
172
182
|
export declare enum TaskStatus {
|
|
173
183
|
Idle = "idle",
|
|
174
184
|
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
|
-
}
|