@evercam/api 1.0.0-003a1ed80
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 +3 -0
- package/dist/api/api/3dFirebaseApi.d.ts +20 -0
- package/dist/api/api/adminApi.d.ts +355 -0
- package/dist/api/api/aiApi.d.ts +146 -0
- package/dist/api/api/authzApi.d.ts +21 -0
- package/dist/api/api/client/axios.d.ts +13 -0
- package/dist/api/api/client/customErrors.d.ts +90 -0
- package/dist/api/api/client/index.d.ts +5 -0
- package/dist/api/api/client/interceptors.d.ts +10 -0
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/api/evercamApi.d.ts +315 -0
- package/dist/api/api/evercamLabsApi.d.ts +43 -0
- package/dist/api/api/exNvrApi.d.ts +43 -0
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +73 -0
- package/dist/api/api/ptzApi.d.ts +36 -0
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/api/webRtcApi.d.ts +22 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/types/360.d.ts +99 -0
- package/dist/api/types/aconex.d.ts +45 -0
- package/dist/api/types/analytics.d.ts +489 -0
- package/dist/api/types/anpr.d.ts +103 -0
- package/dist/api/types/auditLogs.d.ts +99 -0
- package/dist/api/types/autodesk.d.ts +29 -0
- package/dist/api/types/automation.d.ts +10 -0
- package/dist/api/types/axios.d.ts +65 -0
- package/dist/api/types/bim.d.ts +147 -0
- package/dist/api/types/camera.d.ts +531 -0
- package/dist/api/types/comments.d.ts +59 -0
- package/dist/api/types/company.d.ts +74 -0
- package/dist/api/types/compare.d.ts +57 -0
- package/dist/api/types/connector.d.ts +21 -0
- package/dist/api/types/coolify.d.ts +18 -0
- package/dist/api/types/copilot.d.ts +157 -0
- package/dist/api/types/countries.d.ts +500 -0
- package/dist/api/types/credentials.d.ts +5 -0
- package/dist/api/types/detections.d.ts +126 -0
- package/dist/api/types/drone.d.ts +17 -0
- package/dist/api/types/errors.d.ts +48 -0
- package/dist/api/types/gateReport.d.ts +441 -0
- package/dist/api/types/hdd.d.ts +63 -0
- package/dist/api/types/index.d.ts +57 -0
- package/dist/api/types/ingest.d.ts +47 -0
- package/dist/api/types/kit.d.ts +355 -0
- package/dist/api/types/map.d.ts +4 -0
- package/dist/api/types/media.d.ts +114 -0
- package/dist/api/types/notification.d.ts +27 -0
- package/dist/api/types/nvr.d.ts +36 -0
- package/dist/api/types/planner.d.ts +32 -0
- package/dist/api/types/posthog.d.ts +18 -0
- package/dist/api/types/procore.d.ts +222 -0
- package/dist/api/types/progressPhoto.d.ts +104 -0
- package/dist/api/types/project.d.ts +129 -0
- package/dist/api/types/recording.d.ts +123 -0
- package/dist/api/types/roi.d.ts +27 -0
- package/dist/api/types/routeParams.d.ts +51 -0
- package/dist/api/types/router.d.ts +67 -0
- package/dist/api/types/shared.d.ts +194 -0
- package/dist/api/types/shares.d.ts +196 -0
- package/dist/api/types/sim.d.ts +114 -0
- package/dist/api/types/siteAnalytics.d.ts +142 -0
- package/dist/api/types/snapshots.d.ts +50 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageServers.d.ts +4 -0
- package/dist/api/types/streaming.d.ts +97 -0
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/api/types/time.d.ts +21 -0
- package/dist/api/types/timelapse.d.ts +99 -0
- package/dist/api/types/user.d.ts +271 -0
- package/dist/api/types/vendorModel.d.ts +15 -0
- package/dist/api/types/videoWall.d.ts +33 -0
- package/dist/api/types/voyageControl.d.ts +6 -0
- package/dist/api/types/weather.d.ts +87 -0
- package/dist/api/types/widget.d.ts +191 -0
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/api/utils.d.ts +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2971 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +2 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/shared/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +193 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/timeline.d.ts +9 -0
- package/package.json +50 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Camera, PaginationParams, Project, Sim } from "@/types";
|
|
2
|
+
export type RouterBillPayer = {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
export type SimProvider = {
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
export type Router = {
|
|
9
|
+
id?: number;
|
|
10
|
+
kitId: number | null;
|
|
11
|
+
routerType: string;
|
|
12
|
+
routerUserId: string;
|
|
13
|
+
routerPassword: string;
|
|
14
|
+
serialNumber: number | null;
|
|
15
|
+
rmsUrl?: string;
|
|
16
|
+
externalHost?: string;
|
|
17
|
+
routerHttpPort: number | null;
|
|
18
|
+
vpnPassword: string;
|
|
19
|
+
vpnUserId: string;
|
|
20
|
+
vpnServer: string;
|
|
21
|
+
netbirdUrl: string;
|
|
22
|
+
status: RouterStatus;
|
|
23
|
+
powerType: PowerType;
|
|
24
|
+
powerSchedule: string;
|
|
25
|
+
battery?: {
|
|
26
|
+
lastVoltage: number;
|
|
27
|
+
lastSeen: string;
|
|
28
|
+
};
|
|
29
|
+
sims: Array<Pick<Sim, "id" | "number">>;
|
|
30
|
+
billPayers?: Array<RouterBillPayer>;
|
|
31
|
+
simProviders?: Array<SimProvider>;
|
|
32
|
+
projects?: Pick<Project, "exid" | "id" | "name">[];
|
|
33
|
+
cameras?: Pick<Camera, "id" | "name">[];
|
|
34
|
+
};
|
|
35
|
+
export declare enum PowerType {
|
|
36
|
+
Mains = "mains",
|
|
37
|
+
Battery = "battery",
|
|
38
|
+
Solar = "solar",
|
|
39
|
+
Generator = "generator",
|
|
40
|
+
Other = "other"
|
|
41
|
+
}
|
|
42
|
+
export declare enum PowerSchedule {
|
|
43
|
+
Schedule = "schedule",
|
|
44
|
+
FullTime = "24/7"
|
|
45
|
+
}
|
|
46
|
+
export declare enum RouterStatus {
|
|
47
|
+
Active = "active",
|
|
48
|
+
Inactive = "inactive"
|
|
49
|
+
}
|
|
50
|
+
export type RouterQueryParams = PaginationParams & {
|
|
51
|
+
routerType: string;
|
|
52
|
+
vpnServer: string;
|
|
53
|
+
serialNumber: string;
|
|
54
|
+
};
|
|
55
|
+
export type RouterCreatePayload = {
|
|
56
|
+
serialNumber: number;
|
|
57
|
+
vpnUserId?: string;
|
|
58
|
+
vpnPassword?: string;
|
|
59
|
+
routerType: string;
|
|
60
|
+
routerUserId?: string;
|
|
61
|
+
routerPassword?: string;
|
|
62
|
+
routerHttpPort: number;
|
|
63
|
+
powerType: PowerType;
|
|
64
|
+
powerSchedule: PowerSchedule;
|
|
65
|
+
vpnServer?: string;
|
|
66
|
+
netbirdUrl?: string;
|
|
67
|
+
};
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { DateType } from "@/types";
|
|
2
|
+
type sortby = string;
|
|
3
|
+
type sortDirection = "asc" | "desc";
|
|
4
|
+
export type SortingUrlParam = `${sortby}|${sortDirection}`;
|
|
5
|
+
export type BatteryReading = {
|
|
6
|
+
id: number;
|
|
7
|
+
voltage: number;
|
|
8
|
+
datetime: DateType;
|
|
9
|
+
serialNo: string;
|
|
10
|
+
iValue: number;
|
|
11
|
+
vpvValue: number;
|
|
12
|
+
ppvValue: number;
|
|
13
|
+
csValue: number;
|
|
14
|
+
errValue: number;
|
|
15
|
+
h19Value: number;
|
|
16
|
+
h20Value: number;
|
|
17
|
+
h21Value: number;
|
|
18
|
+
h22Value: number;
|
|
19
|
+
h23Value: number;
|
|
20
|
+
ilValue: number;
|
|
21
|
+
mpptValue: number;
|
|
22
|
+
loadValue: number;
|
|
23
|
+
pValue: number;
|
|
24
|
+
consumedAmphours: number;
|
|
25
|
+
socValue: number;
|
|
26
|
+
timeToGo: number;
|
|
27
|
+
alarm: string;
|
|
28
|
+
relay: string;
|
|
29
|
+
arValue: number;
|
|
30
|
+
bmvValue: number;
|
|
31
|
+
h1Value: number;
|
|
32
|
+
h2Value: number;
|
|
33
|
+
h3Value: number;
|
|
34
|
+
h4Value: number;
|
|
35
|
+
h5Value: number;
|
|
36
|
+
h6Value: number;
|
|
37
|
+
h7Value: number;
|
|
38
|
+
h8Value: number;
|
|
39
|
+
h9Value: number;
|
|
40
|
+
h10Value: number;
|
|
41
|
+
h11Value: number;
|
|
42
|
+
};
|
|
43
|
+
export interface PaginatedItems<T> {
|
|
44
|
+
from: number;
|
|
45
|
+
items: Array<T>;
|
|
46
|
+
limit: number;
|
|
47
|
+
page: number;
|
|
48
|
+
to: number;
|
|
49
|
+
total: number;
|
|
50
|
+
}
|
|
51
|
+
export declare enum UnitSystem {
|
|
52
|
+
Imperial = "imperial",
|
|
53
|
+
Metric = "metric"
|
|
54
|
+
}
|
|
55
|
+
export type Timestamp = string | number;
|
|
56
|
+
export type Schedule = {
|
|
57
|
+
Friday: string[];
|
|
58
|
+
Monday: string[];
|
|
59
|
+
Saturday: string[];
|
|
60
|
+
Sunday: string[];
|
|
61
|
+
Thursday: string[];
|
|
62
|
+
Tuesday: string[];
|
|
63
|
+
Wednesday: string[];
|
|
64
|
+
};
|
|
65
|
+
export type ScheduleLowercase = {
|
|
66
|
+
friday: string[];
|
|
67
|
+
monday: string[];
|
|
68
|
+
saturday: string[];
|
|
69
|
+
sunday: string[];
|
|
70
|
+
thursday: string[];
|
|
71
|
+
tuesday: string[];
|
|
72
|
+
wednesday: string[];
|
|
73
|
+
};
|
|
74
|
+
export type PaginationParams = {
|
|
75
|
+
sort?: SortingUrlParam;
|
|
76
|
+
page?: number;
|
|
77
|
+
limit?: number;
|
|
78
|
+
};
|
|
79
|
+
export type LabsPaginationParams = {
|
|
80
|
+
sortBy?: string;
|
|
81
|
+
sortDirection?: "asc" | "desc";
|
|
82
|
+
page?: number;
|
|
83
|
+
limit?: number;
|
|
84
|
+
};
|
|
85
|
+
export declare enum MobileDevice {
|
|
86
|
+
Ios = "ios",
|
|
87
|
+
Android = "android"
|
|
88
|
+
}
|
|
89
|
+
export declare enum _3dViewer {
|
|
90
|
+
Itwin = "itwin",
|
|
91
|
+
Cesium = "cesium"
|
|
92
|
+
}
|
|
93
|
+
export declare enum InfoPage {
|
|
94
|
+
ThreeSixtyView = "360",
|
|
95
|
+
BIMView = "bim",
|
|
96
|
+
BimCompare = "bim-compare",
|
|
97
|
+
GateReport = "gate-report",
|
|
98
|
+
DroneView = "drone-view",
|
|
99
|
+
Compare = "compare",
|
|
100
|
+
Timeline = "timeline",
|
|
101
|
+
WeatherReport = "weather-report"
|
|
102
|
+
}
|
|
103
|
+
export declare enum DownloadFileType {
|
|
104
|
+
Jpeg = "jpeg",
|
|
105
|
+
Pdf = "pdf",
|
|
106
|
+
Csv = "csv"
|
|
107
|
+
}
|
|
108
|
+
export declare enum FeedbackContext {
|
|
109
|
+
CopilotMessage = "copilot_message"
|
|
110
|
+
}
|
|
111
|
+
export type FeedbackPayload<T> = {
|
|
112
|
+
id?: number;
|
|
113
|
+
user: string;
|
|
114
|
+
text: string;
|
|
115
|
+
type: T;
|
|
116
|
+
context: FeedbackContext;
|
|
117
|
+
messageId?: number;
|
|
118
|
+
conversationId?: number;
|
|
119
|
+
};
|
|
120
|
+
export type Stringified<T> = string & {
|
|
121
|
+
[P in keyof T]: {
|
|
122
|
+
"_ value": T[P];
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
export interface JSON {
|
|
126
|
+
stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
|
|
127
|
+
parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
|
|
128
|
+
}
|
|
129
|
+
export type Exid = string;
|
|
130
|
+
export type EntityByExid<Entity extends unknown> = Record<Exid, Entity>;
|
|
131
|
+
export type BatteryVoltage = {
|
|
132
|
+
date: DateType;
|
|
133
|
+
max_value: number;
|
|
134
|
+
min_value: number;
|
|
135
|
+
};
|
|
136
|
+
export type GlobalSearchQueryParams = PaginationParams & {
|
|
137
|
+
resource: "projects" | "users" | "cameras" | "companies" | "sims" | "routers";
|
|
138
|
+
term: string;
|
|
139
|
+
email: string;
|
|
140
|
+
featureFlag: string;
|
|
141
|
+
};
|
|
142
|
+
export type TimelineDateInterval = {
|
|
143
|
+
fromDate: string;
|
|
144
|
+
toDate: string;
|
|
145
|
+
};
|
|
146
|
+
export declare enum TimelinePrecision {
|
|
147
|
+
Year = "year",
|
|
148
|
+
Month = "month",
|
|
149
|
+
Week = "week",
|
|
150
|
+
Day = "day",
|
|
151
|
+
Hour = "hour",
|
|
152
|
+
Minute = "minute",
|
|
153
|
+
Events = "events"
|
|
154
|
+
}
|
|
155
|
+
export type EntityStatsQueryParams = {
|
|
156
|
+
period: "day" | "week" | "month";
|
|
157
|
+
startDate: string;
|
|
158
|
+
endDate: string;
|
|
159
|
+
};
|
|
160
|
+
export type EntityStat = {
|
|
161
|
+
period: string;
|
|
162
|
+
name: string;
|
|
163
|
+
count: number;
|
|
164
|
+
};
|
|
165
|
+
export declare enum TaskStatus {
|
|
166
|
+
Idle = "idle",
|
|
167
|
+
Loading = "loading",
|
|
168
|
+
Success = "success",
|
|
169
|
+
Error = "error"
|
|
170
|
+
}
|
|
171
|
+
export type PatchPayload<T> = Partial<T> & {
|
|
172
|
+
[K in keyof T]?: T[K] | undefined;
|
|
173
|
+
};
|
|
174
|
+
export declare enum PtzDirection {
|
|
175
|
+
Up = "up",
|
|
176
|
+
Down = "down",
|
|
177
|
+
Left = "left",
|
|
178
|
+
Right = "right"
|
|
179
|
+
}
|
|
180
|
+
export type MoveParams = {
|
|
181
|
+
cameraExid: string;
|
|
182
|
+
direction: PtzDirection;
|
|
183
|
+
useContinuous: boolean;
|
|
184
|
+
};
|
|
185
|
+
export declare enum ZoomDirection {
|
|
186
|
+
In = "in",
|
|
187
|
+
Out = "out"
|
|
188
|
+
}
|
|
189
|
+
export type ZoomParams = {
|
|
190
|
+
cameraExid: string;
|
|
191
|
+
direction: ZoomDirection;
|
|
192
|
+
isRecordingFromNvr: boolean;
|
|
193
|
+
};
|
|
194
|
+
export {};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import type { CameraExid, DateTime, DateType } from "@/types";
|
|
2
|
+
export type ShareRequest = {
|
|
3
|
+
cameraId: string;
|
|
4
|
+
createdAt: DateType | number;
|
|
5
|
+
email: string;
|
|
6
|
+
id: number;
|
|
7
|
+
rights: string;
|
|
8
|
+
sharerEmail: string;
|
|
9
|
+
sharerName: string;
|
|
10
|
+
userId: number;
|
|
11
|
+
};
|
|
12
|
+
export type Share = {
|
|
13
|
+
cameraId: string;
|
|
14
|
+
createdAt: DateType | number;
|
|
15
|
+
email: string;
|
|
16
|
+
fullname: string;
|
|
17
|
+
id: number;
|
|
18
|
+
lastSeenAt: DateType;
|
|
19
|
+
rights: string;
|
|
20
|
+
sessionCount: number;
|
|
21
|
+
sharerEmail: string;
|
|
22
|
+
sharerId: number;
|
|
23
|
+
sharerName: string;
|
|
24
|
+
userId: number;
|
|
25
|
+
isUserAccessRestricted: boolean;
|
|
26
|
+
};
|
|
27
|
+
export type ShareRequestsResponsePayload = {
|
|
28
|
+
shareRequests: ShareRequest[];
|
|
29
|
+
};
|
|
30
|
+
export type ShareOwner = {
|
|
31
|
+
email: string;
|
|
32
|
+
fullname: string;
|
|
33
|
+
lastSeenAt: DateType;
|
|
34
|
+
sessionCount: number;
|
|
35
|
+
};
|
|
36
|
+
export type SharesResponsePayload = {
|
|
37
|
+
owner: ShareOwner;
|
|
38
|
+
shares: Share[];
|
|
39
|
+
};
|
|
40
|
+
export type ShareDeletionRequestPayload = {
|
|
41
|
+
email?: string;
|
|
42
|
+
key?: string;
|
|
43
|
+
origin?: string;
|
|
44
|
+
};
|
|
45
|
+
export type SharedUsersResponsePayload = Array<{
|
|
46
|
+
email: string;
|
|
47
|
+
name: string;
|
|
48
|
+
}>;
|
|
49
|
+
export type ShareCreateRequestPayload = {
|
|
50
|
+
email: string[] | string;
|
|
51
|
+
message?: string;
|
|
52
|
+
permission?: string;
|
|
53
|
+
rights: string;
|
|
54
|
+
apiId?: string;
|
|
55
|
+
apiKey?: string;
|
|
56
|
+
};
|
|
57
|
+
export type ShareProjectCamerasRequestPayload = {
|
|
58
|
+
email: string[];
|
|
59
|
+
cameraExids: CameraExid[];
|
|
60
|
+
message: string;
|
|
61
|
+
permission?: string;
|
|
62
|
+
rights: string;
|
|
63
|
+
};
|
|
64
|
+
export type UpdateUserRestrictionPayload = {
|
|
65
|
+
email: string[];
|
|
66
|
+
isUserAccessRestricted: boolean;
|
|
67
|
+
};
|
|
68
|
+
export type ShareCreateResponsePayload = {
|
|
69
|
+
shares: Share[];
|
|
70
|
+
shareRequests: ShareRequest[];
|
|
71
|
+
};
|
|
72
|
+
export type ShareRequestByKeyResponsePayload = {
|
|
73
|
+
shareRequests: Array<{
|
|
74
|
+
id: string;
|
|
75
|
+
email: string;
|
|
76
|
+
rights: string;
|
|
77
|
+
cameraId: string;
|
|
78
|
+
sharerName: string;
|
|
79
|
+
userId: string;
|
|
80
|
+
sharerEmail: string;
|
|
81
|
+
createdAt: DateType;
|
|
82
|
+
}>;
|
|
83
|
+
};
|
|
84
|
+
export type ResendShareRequestPayload = {
|
|
85
|
+
email: string;
|
|
86
|
+
apiId?: string;
|
|
87
|
+
apiKey?: string;
|
|
88
|
+
};
|
|
89
|
+
export declare enum SharePermission {
|
|
90
|
+
Minimum = "minimum",
|
|
91
|
+
Share = "minimal+share",
|
|
92
|
+
Full = "full",
|
|
93
|
+
Custom = "custom"
|
|
94
|
+
}
|
|
95
|
+
export declare enum ShareType {
|
|
96
|
+
Share = "share",
|
|
97
|
+
Request = "request"
|
|
98
|
+
}
|
|
99
|
+
export declare enum ShareRequestStatus {
|
|
100
|
+
Pending = -1,
|
|
101
|
+
Cancelled = -2,
|
|
102
|
+
Failed = -3,
|
|
103
|
+
Used = 1
|
|
104
|
+
}
|
|
105
|
+
export declare enum ShareVisibility {
|
|
106
|
+
PublicDiscoverable = "publicDiscoverable",
|
|
107
|
+
PublicUndiscoverable = "publicUndiscoverable",
|
|
108
|
+
Private = "private"
|
|
109
|
+
}
|
|
110
|
+
export type ProjectShare = {
|
|
111
|
+
id: number;
|
|
112
|
+
projectId: string;
|
|
113
|
+
userId: number;
|
|
114
|
+
email: string;
|
|
115
|
+
fullname: string;
|
|
116
|
+
sharerId: number;
|
|
117
|
+
sharerEmail: string;
|
|
118
|
+
sharerName: string;
|
|
119
|
+
role: "member" | "admin";
|
|
120
|
+
cameras: Record<string, string>;
|
|
121
|
+
message: string | null;
|
|
122
|
+
updatedAt: DateType;
|
|
123
|
+
insertedAt: DateType;
|
|
124
|
+
};
|
|
125
|
+
export type ProjectShareRequest = ProjectShare;
|
|
126
|
+
export type ProjectShareResponse = {
|
|
127
|
+
projectShares: ProjectShare[];
|
|
128
|
+
projectShareRequests: ProjectShareRequest[];
|
|
129
|
+
};
|
|
130
|
+
export type AdminShare = {
|
|
131
|
+
sharerId: number;
|
|
132
|
+
sharerFullname: string;
|
|
133
|
+
sharerApiId: string;
|
|
134
|
+
sharerApiKey: string;
|
|
135
|
+
shareeId: number;
|
|
136
|
+
shareeFullname: string;
|
|
137
|
+
shareeApiId: string;
|
|
138
|
+
shareeApiKey: string;
|
|
139
|
+
shareeEmail: string;
|
|
140
|
+
cameraId: number;
|
|
141
|
+
exid: string;
|
|
142
|
+
projectId: string;
|
|
143
|
+
name: string;
|
|
144
|
+
id: number;
|
|
145
|
+
message: string;
|
|
146
|
+
createdAt: DateType;
|
|
147
|
+
};
|
|
148
|
+
export type CameraShareRequestPayload = {
|
|
149
|
+
email: string[];
|
|
150
|
+
rights: string;
|
|
151
|
+
message?: string;
|
|
152
|
+
};
|
|
153
|
+
export type ShareQueryParams = {
|
|
154
|
+
exid: string;
|
|
155
|
+
sharerFullname: string;
|
|
156
|
+
shareeFullname: string;
|
|
157
|
+
shareeEmail: string;
|
|
158
|
+
};
|
|
159
|
+
export type CameraShare = {
|
|
160
|
+
sharerId: number;
|
|
161
|
+
sharerFullname: string;
|
|
162
|
+
sharerApiId: string;
|
|
163
|
+
sharerApiKey: string;
|
|
164
|
+
shareeId: number;
|
|
165
|
+
shareeFullname: string;
|
|
166
|
+
shareeApiId: string;
|
|
167
|
+
shareeApiKey: string;
|
|
168
|
+
shareeEmail: string;
|
|
169
|
+
cameraId: number;
|
|
170
|
+
exid: string;
|
|
171
|
+
projectId: string;
|
|
172
|
+
name: string;
|
|
173
|
+
id: number;
|
|
174
|
+
message: string;
|
|
175
|
+
createdAt: DateTime;
|
|
176
|
+
};
|
|
177
|
+
export type CameraShareRequestsQueryParams = {
|
|
178
|
+
shareeEmail: string;
|
|
179
|
+
camera: string;
|
|
180
|
+
sharer: string;
|
|
181
|
+
status: string;
|
|
182
|
+
};
|
|
183
|
+
export type CameraShareRequest = {
|
|
184
|
+
id: number;
|
|
185
|
+
shareeEmail: string;
|
|
186
|
+
camera: string;
|
|
187
|
+
sharer: string;
|
|
188
|
+
message: number;
|
|
189
|
+
rights: string;
|
|
190
|
+
status: number;
|
|
191
|
+
projectId: string;
|
|
192
|
+
cameraExid: string;
|
|
193
|
+
apiId: string;
|
|
194
|
+
apiKey: number;
|
|
195
|
+
createdAt: DateTime;
|
|
196
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { DateTime, PaginationParams } from "@/types";
|
|
2
|
+
export declare enum SmsCommands {
|
|
3
|
+
Cellular = "cellular",
|
|
4
|
+
Gpson = "gpson",
|
|
5
|
+
GPS = "gps",
|
|
6
|
+
IPUnblock = "ipunblock",
|
|
7
|
+
IOStatus = "iostatus",
|
|
8
|
+
IOSet = "ioset",
|
|
9
|
+
MonitoringStatus = "monitoring_status",
|
|
10
|
+
MobileOn = "mobileon",
|
|
11
|
+
MobileOff = "mobileoff",
|
|
12
|
+
Reboot = "reboot",
|
|
13
|
+
Restore = "restore",
|
|
14
|
+
RmsOn = "rms_on",
|
|
15
|
+
RmsConnect = "rms_connect",
|
|
16
|
+
RmsStatus = "rms_status",
|
|
17
|
+
SwitchSIM = "switch_sim",
|
|
18
|
+
Status = "status",
|
|
19
|
+
SshOn = "sshon",
|
|
20
|
+
SshOff = "sshoff",
|
|
21
|
+
Uci = "uci",
|
|
22
|
+
VpnOn = "vpnon",
|
|
23
|
+
VpnOff = "vpnoff",
|
|
24
|
+
VpnStatus = "vpnstatus",
|
|
25
|
+
WifiOn = "wifion",
|
|
26
|
+
WifiOff = "wifioff",
|
|
27
|
+
Wakeup = "wakeup",
|
|
28
|
+
WebOn = "webon",
|
|
29
|
+
WebOff = "weboff"
|
|
30
|
+
}
|
|
31
|
+
export declare enum SmsStatuses {
|
|
32
|
+
Delivered = "Delivered",
|
|
33
|
+
Accepted = "accepted",
|
|
34
|
+
Pending = "Pending"
|
|
35
|
+
}
|
|
36
|
+
export type SimCreateUpdatePayload = {
|
|
37
|
+
number: string;
|
|
38
|
+
simProvider: string;
|
|
39
|
+
billPayer?: string;
|
|
40
|
+
pin1?: string;
|
|
41
|
+
pin2?: string;
|
|
42
|
+
puk?: string;
|
|
43
|
+
iccid?: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
cameraId: string[];
|
|
46
|
+
};
|
|
47
|
+
export type SimsQueryParams = PaginationParams & {
|
|
48
|
+
simProvider: string;
|
|
49
|
+
number: string;
|
|
50
|
+
billPayer: string;
|
|
51
|
+
iccid: string;
|
|
52
|
+
cameraName: string;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
export type Sim = {
|
|
56
|
+
id: number;
|
|
57
|
+
number: string;
|
|
58
|
+
simProvider: string;
|
|
59
|
+
billPayer: string;
|
|
60
|
+
lastSms: string;
|
|
61
|
+
pin1: string;
|
|
62
|
+
pin2: string;
|
|
63
|
+
puk: string;
|
|
64
|
+
iccid: string;
|
|
65
|
+
description: string;
|
|
66
|
+
lastSmsAt: DateTime;
|
|
67
|
+
cameras: {
|
|
68
|
+
name: string;
|
|
69
|
+
exid: string;
|
|
70
|
+
id: number;
|
|
71
|
+
}[];
|
|
72
|
+
};
|
|
73
|
+
export type SendSmsPayload = {
|
|
74
|
+
number: string;
|
|
75
|
+
smsMessage: string;
|
|
76
|
+
};
|
|
77
|
+
export type SendSmsResponse = {
|
|
78
|
+
status: number;
|
|
79
|
+
errorText: string;
|
|
80
|
+
};
|
|
81
|
+
export type SmsHistory = {
|
|
82
|
+
insertedAt: DateTime;
|
|
83
|
+
type: string;
|
|
84
|
+
status: string;
|
|
85
|
+
text: string;
|
|
86
|
+
deliveryDatetime: DateTime;
|
|
87
|
+
};
|
|
88
|
+
export type SmsHistoryResponse = {
|
|
89
|
+
singleSimSms: SmsHistory[];
|
|
90
|
+
};
|
|
91
|
+
export type Sms = {
|
|
92
|
+
id: number;
|
|
93
|
+
from: string;
|
|
94
|
+
fromName: string;
|
|
95
|
+
to: string;
|
|
96
|
+
toName: string;
|
|
97
|
+
messageId: string;
|
|
98
|
+
status: string;
|
|
99
|
+
text: string;
|
|
100
|
+
type: string;
|
|
101
|
+
insertedAt: DateTime;
|
|
102
|
+
deliveryDatetime: DateTime;
|
|
103
|
+
};
|
|
104
|
+
export type SmsQueryParams = PaginationParams & {
|
|
105
|
+
dateRange: string;
|
|
106
|
+
fromName: string;
|
|
107
|
+
toName: string;
|
|
108
|
+
fromNumber: string;
|
|
109
|
+
toNumber: string;
|
|
110
|
+
smsText: string;
|
|
111
|
+
smsType: string;
|
|
112
|
+
smsStatus: SmsStatuses;
|
|
113
|
+
deliveryDatetime: string;
|
|
114
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import type { BBox, BoundingBox, DateType, Schedule, CameraExid, DateTime, DetectionModel, PaginationParams, PpeLabel, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
|
|
3
|
+
export declare enum SiteAnalyticsMode {
|
|
4
|
+
Detections = "detections",
|
|
5
|
+
Segments = "segments"
|
|
6
|
+
}
|
|
7
|
+
export type SmartSearchOptionData = {
|
|
8
|
+
id?: string;
|
|
9
|
+
type: SmartSearchQueryComponentType;
|
|
10
|
+
value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData | SmartSearchCondition | SmartSearchDateRange | string;
|
|
11
|
+
};
|
|
12
|
+
export type SmartSearchQueryPart = SmartSearchOptionData | [SmartSearchQueryPart] | SmartSearchQueryPart[];
|
|
13
|
+
export declare enum SmartSearchQueryComponentType {
|
|
14
|
+
Condition = "condition",
|
|
15
|
+
Object = "object",
|
|
16
|
+
Area = "in_area",
|
|
17
|
+
Time = "time",
|
|
18
|
+
Operator = "operator",
|
|
19
|
+
Camera = "camera",
|
|
20
|
+
DateRange = "date_range"
|
|
21
|
+
}
|
|
22
|
+
export type SmartSearchDateRange = {
|
|
23
|
+
start: DateType;
|
|
24
|
+
end: DateType;
|
|
25
|
+
};
|
|
26
|
+
export type SmartSearchQueryComponentData = {
|
|
27
|
+
id: string;
|
|
28
|
+
type: SmartSearchQueryComponentType;
|
|
29
|
+
parts: [SmartSearchQueryPart];
|
|
30
|
+
};
|
|
31
|
+
export declare enum SmartSearchCondition {
|
|
32
|
+
InArea = "in_area",
|
|
33
|
+
Intersects = "intersects",
|
|
34
|
+
Time = "time"
|
|
35
|
+
}
|
|
36
|
+
export type SmartSearchConditionData = {
|
|
37
|
+
condition: SmartSearchCondition;
|
|
38
|
+
value: string | BoundingBox | DetectionLabel | Date;
|
|
39
|
+
};
|
|
40
|
+
export type SmartSearchQueryCondition = {
|
|
41
|
+
type: SmartSearchQueryConditionTypes;
|
|
42
|
+
target: SmartSearchQueryTargets;
|
|
43
|
+
operator?: SmartSearchQueryOperators;
|
|
44
|
+
attribute?: string;
|
|
45
|
+
value: string | number | string[];
|
|
46
|
+
reference?: {
|
|
47
|
+
target: SmartSearchQueryTargets;
|
|
48
|
+
attribute: string;
|
|
49
|
+
value: string | number | string[];
|
|
50
|
+
};
|
|
51
|
+
polygon?: BBox;
|
|
52
|
+
};
|
|
53
|
+
export type SmartSearchQuery = {
|
|
54
|
+
returnTargets: SmartSearchQueryTargets[];
|
|
55
|
+
rulesLogic: SmartSearchOperatorType;
|
|
56
|
+
rules: {
|
|
57
|
+
logic: SmartSearchOperatorType;
|
|
58
|
+
conditions: SmartSearchQueryCondition[];
|
|
59
|
+
}[];
|
|
60
|
+
returnType: SmartSearchQueryReturnType;
|
|
61
|
+
};
|
|
62
|
+
export declare enum SmartSearchQueryTargets {
|
|
63
|
+
Tracking = "tracking",
|
|
64
|
+
Segments = "segments"
|
|
65
|
+
}
|
|
66
|
+
export declare enum SmartSearchQueryReturnType {
|
|
67
|
+
All = "all",
|
|
68
|
+
FirstLastSeen = "first_last_seen"
|
|
69
|
+
}
|
|
70
|
+
export declare enum SmartSearchOperatorType {
|
|
71
|
+
And = "AND",
|
|
72
|
+
Or = "OR"
|
|
73
|
+
}
|
|
74
|
+
export declare enum SmartSearchQueryOperators {
|
|
75
|
+
Near = "near",
|
|
76
|
+
Far = "far",
|
|
77
|
+
Intersects = "intersects",
|
|
78
|
+
DoesNotIntersect = "does_not_intersect",
|
|
79
|
+
Inside = "inside",
|
|
80
|
+
Outside = "outside",
|
|
81
|
+
DistanceBelow = "distance_below",
|
|
82
|
+
DistanceAbove = "distance_above",
|
|
83
|
+
Area = "in_area",
|
|
84
|
+
Equal = "="
|
|
85
|
+
}
|
|
86
|
+
export declare enum SmartSearchQueryConditionTypes {
|
|
87
|
+
Selection = "selection",
|
|
88
|
+
Spatial = "spatial",
|
|
89
|
+
Area = "area",
|
|
90
|
+
Iou = "iou",
|
|
91
|
+
Near = "near",
|
|
92
|
+
Far = "far"
|
|
93
|
+
}
|
|
94
|
+
export type SmartSearchOptionValue = DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData;
|
|
95
|
+
export type SmartSearchQueryParams = {
|
|
96
|
+
cameraExid: string;
|
|
97
|
+
name: string;
|
|
98
|
+
description: string;
|
|
99
|
+
query: {
|
|
100
|
+
req: SmartSearchQuery;
|
|
101
|
+
timeSchedule?: Schedule | undefined;
|
|
102
|
+
};
|
|
103
|
+
fromDate?: DateType;
|
|
104
|
+
toDate?: DateType;
|
|
105
|
+
author: string;
|
|
106
|
+
createdAt: DateType;
|
|
107
|
+
params?: Record<string, unknown>;
|
|
108
|
+
};
|
|
109
|
+
export type SavedQuery = {
|
|
110
|
+
description: string;
|
|
111
|
+
id: number;
|
|
112
|
+
query: {
|
|
113
|
+
req: SmartSearchQuery;
|
|
114
|
+
timeSchedule?: Schedule | undefined;
|
|
115
|
+
};
|
|
116
|
+
params: Record<string, string>;
|
|
117
|
+
components?: Omit<SmartSearchOptionData, "id">[];
|
|
118
|
+
toDate?: DateType;
|
|
119
|
+
createdAt?: DateType;
|
|
120
|
+
cameraExid: string;
|
|
121
|
+
name: string;
|
|
122
|
+
fromDate?: DateType;
|
|
123
|
+
author?: string;
|
|
124
|
+
};
|
|
125
|
+
export type DetectionsRequestParams = {
|
|
126
|
+
projectExid: ProjectExid;
|
|
127
|
+
cameraExids: CameraExid[];
|
|
128
|
+
fromDate?: DateTime;
|
|
129
|
+
toDate?: DateTime;
|
|
130
|
+
labels?: Array<DetectionLabel | PpeLabel>;
|
|
131
|
+
modelId?: DetectionModel;
|
|
132
|
+
trackId?: number;
|
|
133
|
+
thresholds?: string[];
|
|
134
|
+
excludeLabels?: Array<DetectionLabel | PpeLabel>;
|
|
135
|
+
mergedClasses?: Array<string>;
|
|
136
|
+
confidenceThreshold?: number;
|
|
137
|
+
} & PaginationParams;
|
|
138
|
+
export type DetectionsExportRequestParams = DetectionsRequestParams & {
|
|
139
|
+
fileType: DownloadFileType;
|
|
140
|
+
columns?: string[];
|
|
141
|
+
directDownload?: boolean;
|
|
142
|
+
};
|