@evercam/api 1.0.0-4656f3be4 → 1.0.0-47847a4fe
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 +18 -3
- package/dist/api/api/adminApi.d.ts +82 -84
- package/dist/api/api/aiApi.d.ts +4 -4
- package/dist/api/api/evercamApi.d.ts +19 -27
- package/dist/api/api/evercamLabsApi.d.ts +5 -13
- 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 +38 -30
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +17 -9
- package/dist/api/types/admin.d.ts +37 -3
- package/dist/api/types/analytics.d.ts +49 -15
- package/dist/api/types/anpr.d.ts +5 -4
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +161 -21
- package/dist/api/types/automation.d.ts +9 -0
- package/dist/api/types/axios.d.ts +1 -0
- package/dist/api/types/bim.d.ts +27 -7
- package/dist/api/types/camera.d.ts +224 -96
- package/dist/api/types/comments.d.ts +63 -25
- package/dist/api/types/company.d.ts +11 -5
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/detections.d.ts +3 -0
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/api/types/errors.d.ts +7 -2
- package/dist/api/types/gateReport.d.ts +2 -1
- package/dist/api/types/hdd.d.ts +1 -1
- package/dist/api/types/index.d.ts +3 -1
- package/dist/api/types/ingest.d.ts +105 -25
- package/dist/api/types/kit.d.ts +56 -68
- package/dist/api/types/media.d.ts +25 -3
- package/dist/api/types/notification.d.ts +12 -1
- package/dist/api/types/nvr.d.ts +39 -8
- package/dist/api/types/observationEvents.d.ts +26 -0
- package/dist/api/types/observations.d.ts +14 -9
- package/dist/api/types/posthog.d.ts +36 -0
- package/dist/api/types/progressPhoto.d.ts +38 -25
- package/dist/api/types/project.d.ts +61 -22
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/router.d.ts +15 -10
- package/dist/api/types/shared.d.ts +29 -19
- package/dist/api/types/sim.d.ts +18 -6
- package/dist/api/types/siteView.d.ts +14 -8
- package/dist/api/types/snapshots.d.ts +52 -12
- package/dist/api/types/sso.d.ts +11 -37
- package/dist/api/types/storageProvider.d.ts +16 -5
- package/dist/api/types/user.d.ts +32 -29
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +840 -691
- 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 +406 -23
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/index.d.ts +2 -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 +1 -1
- package/dist/api/types/copilot.d.ts +0 -159
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { Automation,
|
|
2
|
-
export type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { Automation, AutomationEmailRecipient, DateType, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
export type ProgressPhotosConfig = Partial<{
|
|
3
|
+
compareDelay: number;
|
|
4
|
+
period: number;
|
|
5
|
+
recipients: string;
|
|
6
|
+
projectId: number;
|
|
7
|
+
companyId: number;
|
|
8
|
+
categoryId: string;
|
|
9
|
+
}>;
|
|
10
|
+
export type ProgressPhotosCreateUpdateRequestPayload = Partial<{
|
|
11
|
+
cameraExids: string;
|
|
12
|
+
notifyDays: string;
|
|
13
|
+
compareDelay: number;
|
|
14
|
+
notifyTime: string;
|
|
15
|
+
provider: string;
|
|
16
|
+
type: string;
|
|
17
|
+
config: ProgressPhotosConfig;
|
|
18
|
+
subject: string;
|
|
19
|
+
isPaused: boolean;
|
|
20
|
+
timezone: string;
|
|
21
|
+
}>;
|
|
21
22
|
export type ProgressPhotosUnSubscribeParams = {
|
|
22
23
|
email: string;
|
|
23
24
|
token?: string;
|
|
@@ -28,6 +29,15 @@ export type ProgressPhotosResponsePayload = {
|
|
|
28
29
|
export type ProgressPhotoItemResponsePayload = {
|
|
29
30
|
progressPhotos: Automation;
|
|
30
31
|
};
|
|
32
|
+
export type ProgressPhotoUpdateResponse = {
|
|
33
|
+
id: string;
|
|
34
|
+
cameraIds: string;
|
|
35
|
+
cameraNames: string;
|
|
36
|
+
requesterName: string;
|
|
37
|
+
requesterEmail: string;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
notifyDays: string;
|
|
40
|
+
};
|
|
31
41
|
export declare enum AutomationDialogType {
|
|
32
42
|
Create = "create",
|
|
33
43
|
Edit = "edit",
|
|
@@ -39,18 +49,20 @@ export type CameraOption = {
|
|
|
39
49
|
};
|
|
40
50
|
export interface ProgressPhotoItem {
|
|
41
51
|
id: number;
|
|
42
|
-
|
|
52
|
+
name: string;
|
|
53
|
+
type: string;
|
|
54
|
+
cameras: Array<CameraOption | string> | string;
|
|
43
55
|
insertedAt: string;
|
|
44
56
|
provider: string;
|
|
45
57
|
config: {
|
|
46
|
-
recipients: string |
|
|
58
|
+
recipients: string | AutomationEmailRecipient[];
|
|
47
59
|
sendSnapshotAs: string;
|
|
48
60
|
};
|
|
49
61
|
isPaused: boolean;
|
|
50
62
|
notifyDays: string | string[];
|
|
51
63
|
notifyTime: string;
|
|
52
|
-
|
|
53
|
-
|
|
64
|
+
apiId: string;
|
|
65
|
+
apiKey: string;
|
|
54
66
|
timezone: string;
|
|
55
67
|
exid: string;
|
|
56
68
|
fullname: string;
|
|
@@ -62,7 +74,7 @@ export type ProgressPhotosQueryParams = PaginationParams & {
|
|
|
62
74
|
timezone: string;
|
|
63
75
|
cameras: string;
|
|
64
76
|
};
|
|
65
|
-
export type progressPhotosHistoryQueryParams = {
|
|
77
|
+
export type progressPhotosHistoryQueryParams = PaginationParams & {
|
|
66
78
|
insertedAt: DateType[];
|
|
67
79
|
recipients: string;
|
|
68
80
|
subject: string;
|
|
@@ -75,4 +87,5 @@ export type ProgressPhotosHistory = {
|
|
|
75
87
|
failedCameraIds: string;
|
|
76
88
|
subject: string;
|
|
77
89
|
recipients: string;
|
|
90
|
+
insertedAt: string;
|
|
78
91
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, Operator, 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;
|
|
@@ -96,10 +98,10 @@ export declare enum ProjectFeatureFlag {
|
|
|
96
98
|
MediaHubSharing = "archives_sharing",
|
|
97
99
|
GateReportAnprBased = "anpr_sourced",
|
|
98
100
|
NoLicensePlate = "no_license_plate",
|
|
99
|
-
DefaultToProjectApp = "default_to_project_app",
|
|
100
101
|
SmartSearch = "smart_search",
|
|
101
102
|
PpeMonitoring = "ppe_monitoring",
|
|
102
|
-
NoGdpr = "no_gdpr"
|
|
103
|
+
NoGdpr = "no_gdpr",
|
|
104
|
+
Chat = "chat"
|
|
103
105
|
}
|
|
104
106
|
export type ProjectBatteryReading = {
|
|
105
107
|
exid: number;
|
|
@@ -126,13 +128,24 @@ export type ProjectCreateRequestPayload = {
|
|
|
126
128
|
ownerId: number;
|
|
127
129
|
cameras: string[];
|
|
128
130
|
};
|
|
129
|
-
export type
|
|
130
|
-
|
|
131
|
+
export type CreatedProject = {
|
|
132
|
+
id: number;
|
|
131
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 = {
|
|
132
141
|
id: number;
|
|
142
|
+
exid: string;
|
|
143
|
+
name: string;
|
|
133
144
|
userId: number;
|
|
134
|
-
zohoId: string;
|
|
145
|
+
zohoId: string | null;
|
|
146
|
+
status: ProjectStatus;
|
|
135
147
|
};
|
|
148
|
+
export type ProjectTransferOwnershipResponse = Record<"project", TransferOwnershipProject>;
|
|
136
149
|
export type ProjectUpdateRequestPayload = {
|
|
137
150
|
name: string;
|
|
138
151
|
timezone: string;
|
|
@@ -159,12 +172,17 @@ export type ProjectUserProperty = {
|
|
|
159
172
|
lastSeenAt: string;
|
|
160
173
|
persona: string;
|
|
161
174
|
};
|
|
162
|
-
export type
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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[];
|
|
168
186
|
};
|
|
169
187
|
export type ProjectRole = {
|
|
170
188
|
id: number;
|
|
@@ -187,7 +205,7 @@ export type ProjectMember = {
|
|
|
187
205
|
} | null;
|
|
188
206
|
};
|
|
189
207
|
export type ProjectInvite = {
|
|
190
|
-
id
|
|
208
|
+
id: number;
|
|
191
209
|
email: string;
|
|
192
210
|
role?: ProjectRole;
|
|
193
211
|
permissions?: string[];
|
|
@@ -230,20 +248,41 @@ export type ProjectUsersResponsePayload = {
|
|
|
230
248
|
invites: ProjectInvite[];
|
|
231
249
|
errors: ProjectUserError[];
|
|
232
250
|
};
|
|
251
|
+
export type MentionableUser = {
|
|
252
|
+
id: number;
|
|
253
|
+
fullname: string;
|
|
254
|
+
email: string;
|
|
255
|
+
};
|
|
233
256
|
export type ProjectStorageQueryParams = PaginationParams & {
|
|
234
257
|
cameraName: string;
|
|
235
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;
|
|
236
273
|
status: ProjectStorageStatus;
|
|
274
|
+
errorMessage: string | null;
|
|
237
275
|
};
|
|
238
276
|
export type ProjectStorage = {
|
|
239
277
|
id: number;
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
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[];
|
|
247
286
|
};
|
|
248
287
|
export declare enum ProjectStorageStatus {
|
|
249
288
|
New = "new",
|
|
@@ -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
|
+
};
|
|
@@ -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;
|
|
@@ -109,25 +109,27 @@ export declare enum InfoPage {
|
|
|
109
109
|
DroneView = "drone-view",
|
|
110
110
|
Compare = "compare",
|
|
111
111
|
Timeline = "timeline",
|
|
112
|
-
WeatherReport = "weather-report"
|
|
112
|
+
WeatherReport = "weather-report",
|
|
113
|
+
Cameras = "cameras"
|
|
113
114
|
}
|
|
114
115
|
export declare enum DownloadFileType {
|
|
115
116
|
Jpeg = "jpeg",
|
|
116
117
|
Pdf = "pdf",
|
|
117
118
|
Csv = "csv"
|
|
118
119
|
}
|
|
119
|
-
export declare enum
|
|
120
|
-
|
|
120
|
+
export declare enum PromiseSettledStatus {
|
|
121
|
+
Fulfilled = "fulfilled",
|
|
122
|
+
Rejected = "rejected"
|
|
123
|
+
}
|
|
124
|
+
export type Stringified<T> = string & {
|
|
125
|
+
[P in keyof T]: {
|
|
126
|
+
"_ value": T[P];
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
export interface JSON {
|
|
130
|
+
stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
|
|
131
|
+
parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
|
|
121
132
|
}
|
|
122
|
-
export type FeedbackPayload = {
|
|
123
|
-
id?: number;
|
|
124
|
-
user: string;
|
|
125
|
-
text: string;
|
|
126
|
-
type: string;
|
|
127
|
-
context: FeedbackContext;
|
|
128
|
-
messageId?: number;
|
|
129
|
-
conversationId?: number;
|
|
130
|
-
};
|
|
131
133
|
export type TuplePoint2D = [number, number];
|
|
132
134
|
export type TuplePoint3D = [number, number, number];
|
|
133
135
|
export type Point2D = {
|
|
@@ -144,17 +146,25 @@ export type GeoPoint = {
|
|
|
144
146
|
lng: number;
|
|
145
147
|
};
|
|
146
148
|
export type Exid = string;
|
|
147
|
-
export type EntityByExid<Entity
|
|
149
|
+
export type EntityByExid<Entity> = Record<Exid, Entity>;
|
|
148
150
|
export type BatteryVoltage = {
|
|
149
151
|
date: DateType;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
};
|
|
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
|
+
}
|
|
153
163
|
export type GlobalSearchQueryParams = PaginationParams & {
|
|
154
|
-
resource:
|
|
164
|
+
resource: GlobalSearchResource;
|
|
155
165
|
term: string;
|
|
156
|
-
email
|
|
157
|
-
featureFlag
|
|
166
|
+
email?: string;
|
|
167
|
+
featureFlag?: string;
|
|
158
168
|
};
|
|
159
169
|
export type TimelineDateInterval = {
|
|
160
170
|
fromDate: string;
|
package/dist/api/types/sim.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaginationParams } from "@evercam/api/types";
|
|
1
|
+
import { PaginationParams, PowerType, PowerSchedule, RouterStatus } from "@evercam/api/types";
|
|
2
2
|
export declare enum SmsCommands {
|
|
3
3
|
Cellular = "cellular",
|
|
4
4
|
Gpson = "gpson",
|
|
@@ -42,7 +42,6 @@ export type SimCreateUpdatePayload = {
|
|
|
42
42
|
puk?: string;
|
|
43
43
|
iccid?: string;
|
|
44
44
|
description?: string;
|
|
45
|
-
cameraId: string[];
|
|
46
45
|
};
|
|
47
46
|
export type SimsQueryParams = PaginationParams & {
|
|
48
47
|
simProvider: string;
|
|
@@ -51,6 +50,11 @@ export type SimsQueryParams = PaginationParams & {
|
|
|
51
50
|
iccid: string;
|
|
52
51
|
cameraName: string;
|
|
53
52
|
description: string;
|
|
53
|
+
powerType: PowerType;
|
|
54
|
+
serialNumber: string;
|
|
55
|
+
status: RouterStatus;
|
|
56
|
+
powerSchedule: PowerSchedule;
|
|
57
|
+
routerType: string;
|
|
54
58
|
};
|
|
55
59
|
export type Sim = {
|
|
56
60
|
id: number;
|
|
@@ -69,13 +73,23 @@ export type Sim = {
|
|
|
69
73
|
exid: string;
|
|
70
74
|
id: number;
|
|
71
75
|
}[];
|
|
76
|
+
rmsUrl?: string;
|
|
77
|
+
serialNumber: number | null;
|
|
78
|
+
routerType: string;
|
|
79
|
+
rmsId?: string;
|
|
80
|
+
powerType: PowerType;
|
|
81
|
+
powerSchedule: PowerSchedule;
|
|
82
|
+
status: RouterStatus;
|
|
72
83
|
};
|
|
73
84
|
export type SendSmsPayload = {
|
|
74
85
|
number: string;
|
|
75
86
|
smsMessage: string;
|
|
76
87
|
};
|
|
88
|
+
export declare enum SendSmsStatus {
|
|
89
|
+
Success = "0"
|
|
90
|
+
}
|
|
77
91
|
export type SendSmsResponse = {
|
|
78
|
-
status:
|
|
92
|
+
status: SendSmsStatus | string;
|
|
79
93
|
errorText: string;
|
|
80
94
|
};
|
|
81
95
|
export type SmsHistory = {
|
|
@@ -85,9 +99,6 @@ export type SmsHistory = {
|
|
|
85
99
|
text: string;
|
|
86
100
|
deliveryDatetime: string;
|
|
87
101
|
};
|
|
88
|
-
export type SmsHistoryResponse = {
|
|
89
|
-
singleSimSms: SmsHistory[];
|
|
90
|
-
};
|
|
91
102
|
export type Sms = {
|
|
92
103
|
id: number;
|
|
93
104
|
from: string;
|
|
@@ -112,3 +123,4 @@ export type SmsQueryParams = PaginationParams & {
|
|
|
112
123
|
smsStatus: SmsStatuses;
|
|
113
124
|
deliveryDatetime: string;
|
|
114
125
|
};
|
|
126
|
+
export type SimSummary = Pick<Sim, "id" | "number">;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ForgeView } from "@evercam/api/types/360";
|
|
2
2
|
import { Point2D, Point3D } from "@evercam/api/types/shared";
|
|
3
|
+
import { DroneProvider } from "@evercam/api/types/drone";
|
|
3
4
|
export declare enum SiteViewSoftwareType {
|
|
4
5
|
Revit = "Revit",
|
|
5
6
|
Navisworks = "Navisworks",
|
|
@@ -17,12 +18,14 @@ export type SiteViewCameraListItem = {
|
|
|
17
18
|
software: SiteViewSoftwareType;
|
|
18
19
|
type: SiteViewerType;
|
|
19
20
|
uniqueId: string;
|
|
20
|
-
integrationType?:
|
|
21
|
+
integrationType?: DroneProvider;
|
|
21
22
|
};
|
|
22
23
|
export type ForgeUrn = {
|
|
24
|
+
id?: string;
|
|
23
25
|
displayName: string;
|
|
24
26
|
urn: string;
|
|
25
27
|
isModelHostedByEvercamACC?: boolean;
|
|
28
|
+
savedViews?: Record<string, ForgeView>;
|
|
26
29
|
};
|
|
27
30
|
export type ForgeAccAlignmentData = {
|
|
28
31
|
bbox: {
|
|
@@ -30,6 +33,11 @@ export type ForgeAccAlignmentData = {
|
|
|
30
33
|
max: Point2D;
|
|
31
34
|
};
|
|
32
35
|
transform: number[];
|
|
36
|
+
coordinateSystem?: {
|
|
37
|
+
context?: {
|
|
38
|
+
type?: string;
|
|
39
|
+
};
|
|
40
|
+
} | null;
|
|
33
41
|
};
|
|
34
42
|
export type TimelineItem = {
|
|
35
43
|
taskNumber: number;
|
|
@@ -41,22 +49,20 @@ export type TimelineItem = {
|
|
|
41
49
|
objectIDs: number[];
|
|
42
50
|
};
|
|
43
51
|
export type ForgeMarkerTransform = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
type: string;
|
|
47
|
-
};
|
|
52
|
+
position?: Point3D;
|
|
53
|
+
hidden?: boolean;
|
|
48
54
|
};
|
|
49
55
|
export type ForgeMarker = {
|
|
50
56
|
name: string;
|
|
51
57
|
cameraExid: string;
|
|
52
|
-
|
|
58
|
+
type: string;
|
|
59
|
+
transforms: Record<string, ForgeMarkerTransform>;
|
|
53
60
|
};
|
|
54
61
|
export type ForgeProjectData = {
|
|
55
62
|
urns?: ForgeUrn[];
|
|
56
63
|
accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
|
|
57
64
|
timeline?: TimelineItem[];
|
|
58
|
-
|
|
59
|
-
markers?: ForgeMarker[];
|
|
65
|
+
cameraMarkers?: Record<string, ForgeMarker>;
|
|
60
66
|
};
|
|
61
67
|
export type ItwinModel = {
|
|
62
68
|
name: string;
|