@evercam/api 1.0.0-eea993f14 → 1.0.0-eef6c21fd
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 +166 -15
- package/dist/api/api/adminApi.d.ts +67 -37
- package/dist/api/api/aiApi.d.ts +58 -54
- 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 +113 -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 +59 -52
- 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 +86 -58
- package/dist/api/types/anpr.d.ts +19 -2
- package/dist/api/types/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +45 -12
- 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 +11 -6
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +91 -93
- package/dist/api/types/comments.d.ts +8 -10
- 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 -17
- package/dist/api/types/drone.d.ts +92 -3
- package/dist/api/types/gateReport.d.ts +46 -58
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +7 -1
- package/dist/api/types/ingest.d.ts +99 -3
- package/dist/api/types/kit.d.ts +14 -7
- package/dist/api/types/map.d.ts +12 -0
- 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 +97 -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 +96 -22
- package/dist/api/types/recording.d.ts +5 -4
- package/dist/api/types/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +2 -2
- package/dist/api/types/router.d.ts +1 -1
- package/dist/api/types/shared.d.ts +30 -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 +80 -40
- package/dist/api/types/siteView.d.ts +74 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +44 -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 +8 -5
- package/dist/api/types/user.d.ts +90 -33
- 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 +1391 -741
- 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 +129 -16
- package/dist/shared/types/imagePlayer.d.ts +9 -2
- 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,3 +1,33 @@
|
|
|
1
|
+
import { GeoPoint, TuplePoint2D } from "./shared";
|
|
2
|
+
import { MapType } from "./map";
|
|
3
|
+
export type PlannerListItem = {
|
|
4
|
+
id: string;
|
|
5
|
+
projectId: string;
|
|
6
|
+
projectName: string;
|
|
7
|
+
projectLocation: string;
|
|
8
|
+
createdDate: string;
|
|
9
|
+
updatedDate: string;
|
|
10
|
+
owner?: string;
|
|
11
|
+
lastUpdatedBy?: string;
|
|
12
|
+
camerasCount?: number;
|
|
13
|
+
hasPlan?: boolean;
|
|
14
|
+
thumbnailUrl?: string;
|
|
15
|
+
projectMapType?: MapType;
|
|
16
|
+
sessionId?: string;
|
|
17
|
+
};
|
|
18
|
+
export type PolygonPath = TuplePoint2D[];
|
|
19
|
+
export type PolygonCoordinates = PolygonPath[];
|
|
20
|
+
export interface GeoJSONPolygon {
|
|
21
|
+
type: "Polygon";
|
|
22
|
+
coordinates: PolygonCoordinates;
|
|
23
|
+
}
|
|
24
|
+
export declare enum PlannerUrlParams {
|
|
25
|
+
SitePlanId = "site_plan_id",
|
|
26
|
+
IsNewSitePlan = "is_new_site_plan",
|
|
27
|
+
IsBoundsMode = "is_bounds_mode",
|
|
28
|
+
ProjectPosition = "project_position",
|
|
29
|
+
DealId = "deal_id"
|
|
30
|
+
}
|
|
1
31
|
export declare enum EDistortImageModes {
|
|
2
32
|
FreeRotate = "freeRotate",
|
|
3
33
|
Lock = "lock",
|
|
@@ -33,3 +63,70 @@ export declare enum ERoles {
|
|
|
33
63
|
Admin = "admin",
|
|
34
64
|
User = "user"
|
|
35
65
|
}
|
|
66
|
+
export type PlannerOverlay = {
|
|
67
|
+
imageUrl?: string;
|
|
68
|
+
corners?: {
|
|
69
|
+
topLeft: GeoPoint;
|
|
70
|
+
topRight: GeoPoint;
|
|
71
|
+
bottomLeft: GeoPoint;
|
|
72
|
+
bottomRight: GeoPoint;
|
|
73
|
+
} | null;
|
|
74
|
+
};
|
|
75
|
+
export type PlannerCameraMarker = {
|
|
76
|
+
name?: string;
|
|
77
|
+
location?: GeoPoint;
|
|
78
|
+
heading?: number;
|
|
79
|
+
fovAngle?: number;
|
|
80
|
+
fovRadius?: number;
|
|
81
|
+
isVisible?: boolean;
|
|
82
|
+
color?: string;
|
|
83
|
+
};
|
|
84
|
+
export type SitePlanBounds = {
|
|
85
|
+
northEast: GeoPoint;
|
|
86
|
+
southWest: GeoPoint;
|
|
87
|
+
};
|
|
88
|
+
export type SitePlan = {
|
|
89
|
+
id?: string;
|
|
90
|
+
projectId?: string;
|
|
91
|
+
owner?: string;
|
|
92
|
+
lastUpdatedBy?: string;
|
|
93
|
+
projectName?: string;
|
|
94
|
+
projectLocation?: string;
|
|
95
|
+
projectMapType?: EMapTypes;
|
|
96
|
+
projectBounds?: SitePlanBounds;
|
|
97
|
+
overlay?: PlannerOverlay;
|
|
98
|
+
markers?: PlannerCameraMarker[];
|
|
99
|
+
thumbnailUrl?: string;
|
|
100
|
+
createdDate?: string;
|
|
101
|
+
updatedDate?: string;
|
|
102
|
+
};
|
|
103
|
+
export interface IDrawControl {
|
|
104
|
+
_toolbars: {
|
|
105
|
+
draw: {
|
|
106
|
+
_activeMode: {
|
|
107
|
+
handler: {
|
|
108
|
+
disable(): void;
|
|
109
|
+
completeShape(): void;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
_modes: {
|
|
113
|
+
polygon: {
|
|
114
|
+
handler: {
|
|
115
|
+
enable(): void;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
edit: {
|
|
121
|
+
_modes: {
|
|
122
|
+
edit: {
|
|
123
|
+
handler: {
|
|
124
|
+
enable(): void;
|
|
125
|
+
disable(): void;
|
|
126
|
+
save(): void;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
}
|
|
@@ -16,3 +16,18 @@ export declare enum ActiveUsersMetric {
|
|
|
16
16
|
WAU = "wau",
|
|
17
17
|
MAU = "mau"
|
|
18
18
|
}
|
|
19
|
+
export type PosthogUserParams = {
|
|
20
|
+
firstname?: string;
|
|
21
|
+
lastname?: string;
|
|
22
|
+
email: string;
|
|
23
|
+
telephone?: string;
|
|
24
|
+
country?: string;
|
|
25
|
+
isAdmin?: boolean;
|
|
26
|
+
persona?: string;
|
|
27
|
+
companyExid: string;
|
|
28
|
+
companyName: string;
|
|
29
|
+
isImpersonationLogin: boolean;
|
|
30
|
+
ImpersonatedUserEmail?: string;
|
|
31
|
+
ImpersonatedUserFirstname?: string;
|
|
32
|
+
impersonatedUserLastname?: string;
|
|
33
|
+
};
|
|
@@ -44,7 +44,7 @@ export type ProcoreObservationSpecificationSection = {
|
|
|
44
44
|
label: string;
|
|
45
45
|
currentRevisionId: number;
|
|
46
46
|
};
|
|
47
|
-
export type
|
|
47
|
+
export type ProcoreUserProject = {
|
|
48
48
|
accountingProjectNumber?: number;
|
|
49
49
|
active: boolean;
|
|
50
50
|
address: string;
|
|
@@ -85,7 +85,8 @@ export type ProcoreUserProjectsResponsePayload = Array<{
|
|
|
85
85
|
totalValue: string;
|
|
86
86
|
updatedAt: string;
|
|
87
87
|
zip: number;
|
|
88
|
-
}
|
|
88
|
+
};
|
|
89
|
+
export type ProcoreUserProjectsResponsePayload = Array<ProcoreUserProject>;
|
|
89
90
|
export type ProcoreToolUserAccessLevel = {
|
|
90
91
|
id: ProcoreToolUserAccessLevelIds;
|
|
91
92
|
name: string;
|
|
@@ -120,7 +121,7 @@ export type ProcoreEditedImageUploadRequestPayload = {
|
|
|
120
121
|
snapshot: string;
|
|
121
122
|
categoryId?: number;
|
|
122
123
|
};
|
|
123
|
-
export type
|
|
124
|
+
export type ProcoreProjectAlbum = {
|
|
124
125
|
count: number;
|
|
125
126
|
coverPhoto: string | null;
|
|
126
127
|
createdAt: string;
|
|
@@ -134,8 +135,9 @@ export type ProcoreProjectsAlbumsPayload = Array<{
|
|
|
134
135
|
position: number;
|
|
135
136
|
private: boolean;
|
|
136
137
|
updatedAt: string;
|
|
137
|
-
}
|
|
138
|
-
export type
|
|
138
|
+
};
|
|
139
|
+
export type ProcoreProjectsAlbumsPayload = Array<ProcoreProjectAlbum>;
|
|
140
|
+
export type ProcoreObservationType = {
|
|
139
141
|
id: number;
|
|
140
142
|
name: string;
|
|
141
143
|
localizedName: string;
|
|
@@ -147,12 +149,17 @@ export type ProcoreObservationTypesResponsePayload = Array<{
|
|
|
147
149
|
parentInactive: boolean;
|
|
148
150
|
isUse: boolean;
|
|
149
151
|
nameTranslations: string;
|
|
150
|
-
}
|
|
152
|
+
};
|
|
153
|
+
export type ProcoreObservationTypesResponsePayload = Array<ProcoreObservationType>;
|
|
151
154
|
export type ProcoreObservationFormRequestPayload = {
|
|
152
155
|
projectId: number;
|
|
153
156
|
companyId: number;
|
|
154
157
|
observationType: string;
|
|
155
158
|
};
|
|
159
|
+
export type ProcoreCustomFieldOptionsRequestPayload = {
|
|
160
|
+
optionsUrl: string;
|
|
161
|
+
companyId: number;
|
|
162
|
+
};
|
|
156
163
|
export type ProcoreObservationForm = Record<string, ProcoreObservationField | ProcoreObservationCustomField>;
|
|
157
164
|
export type ProcoreObservationField = {
|
|
158
165
|
name: string;
|
|
@@ -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, Operator, 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
|
};
|
|
@@ -79,6 +110,7 @@ export type ProjectsQueryParams = PaginationParams & {
|
|
|
79
110
|
status: ProjectStatus;
|
|
80
111
|
cameras: string;
|
|
81
112
|
featureFlags: Array<ProjectFeatureFlag>;
|
|
113
|
+
featureFlagsOperator?: Operator;
|
|
82
114
|
archived: string;
|
|
83
115
|
};
|
|
84
116
|
export type ProjectCreateRequestPayload = {
|
|
@@ -117,7 +149,7 @@ export type ProjectUserProperty = {
|
|
|
117
149
|
eventsCount: number;
|
|
118
150
|
fullname: string;
|
|
119
151
|
id: number;
|
|
120
|
-
lastSeenAt:
|
|
152
|
+
lastSeenAt: string;
|
|
121
153
|
persona: string;
|
|
122
154
|
};
|
|
123
155
|
export type ProjectUsers = {
|
|
@@ -127,38 +159,46 @@ export type ProjectUsers = {
|
|
|
127
159
|
}[];
|
|
128
160
|
users: Record<string, ProjectUserProperty[]>;
|
|
129
161
|
};
|
|
130
|
-
export type ProjectDateRangeFilter = DateRangeFilter & {
|
|
131
|
-
projectExid: ProjectExid;
|
|
132
|
-
};
|
|
133
162
|
export type ProjectRole = {
|
|
134
|
-
id:
|
|
163
|
+
id: number;
|
|
135
164
|
name: string;
|
|
136
165
|
};
|
|
137
166
|
export type ProjectMember = {
|
|
138
167
|
id: string;
|
|
168
|
+
key?: string;
|
|
139
169
|
email: string;
|
|
140
170
|
fullname: string;
|
|
141
|
-
lastSeenAt?:
|
|
171
|
+
lastSeenAt?: string;
|
|
142
172
|
role: ProjectRole;
|
|
143
173
|
permissions?: string[];
|
|
144
174
|
subRoles?: Array<{
|
|
145
175
|
resourceId: string;
|
|
146
176
|
roleId: number;
|
|
147
177
|
}>;
|
|
178
|
+
company?: {
|
|
179
|
+
name: string;
|
|
180
|
+
} | null;
|
|
148
181
|
};
|
|
149
182
|
export type ProjectInvite = {
|
|
150
183
|
id?: string;
|
|
151
184
|
email: string;
|
|
152
185
|
role?: ProjectRole;
|
|
186
|
+
permissions?: string[];
|
|
187
|
+
subRoles?: Array<{
|
|
188
|
+
resourceId: string;
|
|
189
|
+
roleId: number;
|
|
190
|
+
}>;
|
|
153
191
|
invitedAt?: string;
|
|
154
192
|
};
|
|
155
193
|
export type ProjectMembersResponsePayload = {
|
|
156
194
|
users: ProjectMember[];
|
|
157
195
|
invites: ProjectInvite[];
|
|
196
|
+
errors: ProjectUserError[];
|
|
158
197
|
};
|
|
159
198
|
export type ProjectMembersRequestPayload = {
|
|
160
199
|
roleId: number;
|
|
161
200
|
emails: string[];
|
|
201
|
+
message?: string;
|
|
162
202
|
overrideRole?: Partial<{
|
|
163
203
|
permissions?: string[];
|
|
164
204
|
subRoles?: Array<{
|
|
@@ -171,3 +211,37 @@ export type ProjectInviteMembersResponsePayload = {
|
|
|
171
211
|
users: ProjectMember[];
|
|
172
212
|
invites: ProjectInvite[];
|
|
173
213
|
};
|
|
214
|
+
export type PlaceholderThumbnailData = {
|
|
215
|
+
placeholder: string;
|
|
216
|
+
};
|
|
217
|
+
export type ProjectUserError = {
|
|
218
|
+
email: string;
|
|
219
|
+
error: Record<string, string[]>;
|
|
220
|
+
};
|
|
221
|
+
export type ProjectUsersResponsePayload = {
|
|
222
|
+
users: ProjectMember[];
|
|
223
|
+
invites: ProjectInvite[];
|
|
224
|
+
errors: ProjectUserError[];
|
|
225
|
+
};
|
|
226
|
+
export type ProjectStorageQueryParams = PaginationParams & {
|
|
227
|
+
cameraName: string;
|
|
228
|
+
cameraExid: CameraExid;
|
|
229
|
+
status: ProjectStorageStatus;
|
|
230
|
+
};
|
|
231
|
+
export type ProjectStorage = {
|
|
232
|
+
id: number;
|
|
233
|
+
cameraExid: CameraExid;
|
|
234
|
+
cameraName: string;
|
|
235
|
+
projectExid: string;
|
|
236
|
+
projectName: string;
|
|
237
|
+
status: ProjectStorageStatus;
|
|
238
|
+
requestor: string;
|
|
239
|
+
created_at: DateType;
|
|
240
|
+
};
|
|
241
|
+
export declare enum ProjectStorageStatus {
|
|
242
|
+
New = "new",
|
|
243
|
+
Pending = "pending",
|
|
244
|
+
Processing = "processing",
|
|
245
|
+
Completed = "completed",
|
|
246
|
+
Failed = "failed"
|
|
247
|
+
}
|
|
@@ -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",
|
|
@@ -120,5 +120,6 @@ export declare enum VpnServer {
|
|
|
120
120
|
WireGuard7 = "WireGuard7",
|
|
121
121
|
WireGuard8 = "WireGuard8",
|
|
122
122
|
WireGuard9 = "WireGuard9",
|
|
123
|
-
WireGuard10 = "WireGuard10"
|
|
123
|
+
WireGuard10 = "WireGuard10",
|
|
124
|
+
WgHub = "WgHub"
|
|
124
125
|
}
|
|
@@ -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
|
+
};
|
package/dist/api/types/roi.d.ts
CHANGED
|
@@ -9,8 +9,7 @@ export declare enum RoiShapeType {
|
|
|
9
9
|
Polygon = "polygon",
|
|
10
10
|
Line = "line",
|
|
11
11
|
Direction = "direction",
|
|
12
|
-
Rectangle = "rectangle"
|
|
13
|
-
ROIBox = "ROIBox"
|
|
12
|
+
Rectangle = "rectangle"
|
|
14
13
|
}
|
|
15
14
|
export type RoiShape = {
|
|
16
15
|
id: number | null;
|
|
@@ -19,6 +18,7 @@ export type RoiShape = {
|
|
|
19
18
|
x2: number;
|
|
20
19
|
y1: number;
|
|
21
20
|
y2: number;
|
|
21
|
+
points?: [number, number][];
|
|
22
22
|
};
|
|
23
23
|
export declare enum RoiDirection {
|
|
24
24
|
Arrived = "arrived",
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import { DateType } from "
|
|
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}`;
|
|
9
|
+
export type JsonPrimitive = string | number | boolean | null;
|
|
10
|
+
export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
11
|
+
export type JsonObject = {
|
|
12
|
+
[key: string]: JsonValue;
|
|
13
|
+
};
|
|
14
|
+
export type JsonArray = JsonValue[];
|
|
5
15
|
export type BatteryReading = {
|
|
6
16
|
id: number;
|
|
7
17
|
voltage: number;
|
|
@@ -53,7 +63,7 @@ export declare enum UnitSystem {
|
|
|
53
63
|
Metric = "metric"
|
|
54
64
|
}
|
|
55
65
|
export type Timestamp = string | number;
|
|
56
|
-
export type
|
|
66
|
+
export type ScheduleUppercase = {
|
|
57
67
|
Friday: string[];
|
|
58
68
|
Monday: string[];
|
|
59
69
|
Saturday: string[];
|
|
@@ -71,6 +81,7 @@ export type ScheduleLowercase = {
|
|
|
71
81
|
tuesday: string[];
|
|
72
82
|
wednesday: string[];
|
|
73
83
|
};
|
|
84
|
+
export type Schedule = ScheduleUppercase | ScheduleLowercase;
|
|
74
85
|
export type PaginationParams = {
|
|
75
86
|
sort?: SortingUrlParam;
|
|
76
87
|
page?: number;
|
|
@@ -108,11 +119,11 @@ export declare enum DownloadFileType {
|
|
|
108
119
|
export declare enum FeedbackContext {
|
|
109
120
|
CopilotMessage = "copilot_message"
|
|
110
121
|
}
|
|
111
|
-
export type FeedbackPayload
|
|
122
|
+
export type FeedbackPayload = {
|
|
112
123
|
id?: number;
|
|
113
124
|
user: string;
|
|
114
125
|
text: string;
|
|
115
|
-
type:
|
|
126
|
+
type: string;
|
|
116
127
|
context: FeedbackContext;
|
|
117
128
|
messageId?: number;
|
|
118
129
|
conversationId?: number;
|
|
@@ -126,6 +137,21 @@ export interface JSON {
|
|
|
126
137
|
stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
|
|
127
138
|
parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
|
|
128
139
|
}
|
|
140
|
+
export type TuplePoint2D = [number, number];
|
|
141
|
+
export type TuplePoint3D = [number, number, number];
|
|
142
|
+
export type Point2D = {
|
|
143
|
+
x: number;
|
|
144
|
+
y: number;
|
|
145
|
+
};
|
|
146
|
+
export type Point3D = {
|
|
147
|
+
x: number;
|
|
148
|
+
y: number;
|
|
149
|
+
z: number;
|
|
150
|
+
};
|
|
151
|
+
export type GeoPoint = {
|
|
152
|
+
lat: number;
|
|
153
|
+
lng: number;
|
|
154
|
+
};
|
|
129
155
|
export type Exid = string;
|
|
130
156
|
export type EntityByExid<Entity extends unknown> = Record<Exid, Entity>;
|
|
131
157
|
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;
|