@eyenest/contracts 1.6.1 → 1.6.3
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/gen/ts/camera.ts +29 -4
- package/gen/ts/video.ts +21 -1
- package/package.json +1 -1
- package/proto/camera.proto +18 -6
- package/proto/video.proto +8 -0
package/gen/ts/camera.ts
CHANGED
|
@@ -10,10 +10,21 @@ import { Observable } from "rxjs";
|
|
|
10
10
|
|
|
11
11
|
export const protobufPackage = "camera.v1";
|
|
12
12
|
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
export interface DeleteCameraRequest {
|
|
14
|
+
cameraId: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DeleteCameraResponse {
|
|
18
|
+
camera: Camera | undefined;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface DeleteLocationRequest {
|
|
22
|
+
locationId: string;
|
|
23
|
+
userId: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface DeleteLocationResponse {
|
|
27
|
+
location: Location | undefined;
|
|
17
28
|
}
|
|
18
29
|
|
|
19
30
|
export interface GetCameraByIdRequest {
|
|
@@ -137,8 +148,12 @@ export interface CameraServiceClient {
|
|
|
137
148
|
|
|
138
149
|
createLocation(request: CreateLocationRequest): Observable<Location>;
|
|
139
150
|
|
|
151
|
+
deleteLocation(request: DeleteLocationRequest): Observable<DeleteLocationResponse>;
|
|
152
|
+
|
|
140
153
|
addCamera(request: AddCameraRequest): Observable<AddCameraResponse>;
|
|
141
154
|
|
|
155
|
+
deleteCamera(request: DeleteCameraRequest): Observable<DeleteCameraResponse>;
|
|
156
|
+
|
|
142
157
|
linkCamera(request: LinkCameraRequest): Observable<LinkCameraResponse>;
|
|
143
158
|
|
|
144
159
|
refresh(request: RefreshRequest): Observable<RefreshResponse>;
|
|
@@ -163,8 +178,16 @@ export interface CameraServiceController {
|
|
|
163
178
|
|
|
164
179
|
createLocation(request: CreateLocationRequest): Promise<Location> | Observable<Location> | Location;
|
|
165
180
|
|
|
181
|
+
deleteLocation(
|
|
182
|
+
request: DeleteLocationRequest,
|
|
183
|
+
): Promise<DeleteLocationResponse> | Observable<DeleteLocationResponse> | DeleteLocationResponse;
|
|
184
|
+
|
|
166
185
|
addCamera(request: AddCameraRequest): Promise<AddCameraResponse> | Observable<AddCameraResponse> | AddCameraResponse;
|
|
167
186
|
|
|
187
|
+
deleteCamera(
|
|
188
|
+
request: DeleteCameraRequest,
|
|
189
|
+
): Promise<DeleteCameraResponse> | Observable<DeleteCameraResponse> | DeleteCameraResponse;
|
|
190
|
+
|
|
168
191
|
linkCamera(
|
|
169
192
|
request: LinkCameraRequest,
|
|
170
193
|
): Promise<LinkCameraResponse> | Observable<LinkCameraResponse> | LinkCameraResponse;
|
|
@@ -204,7 +227,9 @@ export function CameraServiceControllerMethods() {
|
|
|
204
227
|
const grpcMethods: string[] = [
|
|
205
228
|
"getLocationsByUserId",
|
|
206
229
|
"createLocation",
|
|
230
|
+
"deleteLocation",
|
|
207
231
|
"addCamera",
|
|
232
|
+
"deleteCamera",
|
|
208
233
|
"linkCamera",
|
|
209
234
|
"refresh",
|
|
210
235
|
"getLiveKitViewerToken",
|
package/gen/ts/video.ts
CHANGED
|
@@ -16,6 +16,14 @@ export enum VideoFileStatus {
|
|
|
16
16
|
UNRECOGNIZED = -1,
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
export interface DeleteRecordingRequest {
|
|
20
|
+
recordingId: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface DeleteRecordingResponse {
|
|
24
|
+
recording: Recording | undefined;
|
|
25
|
+
}
|
|
26
|
+
|
|
19
27
|
export interface GetPresignedUrlRequest {
|
|
20
28
|
fileId: string;
|
|
21
29
|
cameraId: string;
|
|
@@ -67,6 +75,8 @@ export interface VideoServiceClient {
|
|
|
67
75
|
|
|
68
76
|
getAllRecordings(request: GetAllRecordingsRequest): Observable<GetAllRecordingsResponse>;
|
|
69
77
|
|
|
78
|
+
deleteRecording(request: DeleteRecordingRequest): Observable<DeleteRecordingResponse>;
|
|
79
|
+
|
|
70
80
|
getPresignedUrl(request: GetPresignedUrlRequest): Observable<GetPresignedUrlResponse>;
|
|
71
81
|
}
|
|
72
82
|
|
|
@@ -83,6 +93,10 @@ export interface VideoServiceController {
|
|
|
83
93
|
request: GetAllRecordingsRequest,
|
|
84
94
|
): Promise<GetAllRecordingsResponse> | Observable<GetAllRecordingsResponse> | GetAllRecordingsResponse;
|
|
85
95
|
|
|
96
|
+
deleteRecording(
|
|
97
|
+
request: DeleteRecordingRequest,
|
|
98
|
+
): Promise<DeleteRecordingResponse> | Observable<DeleteRecordingResponse> | DeleteRecordingResponse;
|
|
99
|
+
|
|
86
100
|
getPresignedUrl(
|
|
87
101
|
request: GetPresignedUrlRequest,
|
|
88
102
|
): Promise<GetPresignedUrlResponse> | Observable<GetPresignedUrlResponse> | GetPresignedUrlResponse;
|
|
@@ -90,7 +104,13 @@ export interface VideoServiceController {
|
|
|
90
104
|
|
|
91
105
|
export function VideoServiceControllerMethods() {
|
|
92
106
|
return function (constructor: Function) {
|
|
93
|
-
const grpcMethods: string[] = [
|
|
107
|
+
const grpcMethods: string[] = [
|
|
108
|
+
"startRecording",
|
|
109
|
+
"stopRecording",
|
|
110
|
+
"getAllRecordings",
|
|
111
|
+
"deleteRecording",
|
|
112
|
+
"getPresignedUrl",
|
|
113
|
+
];
|
|
94
114
|
for (const method of grpcMethods) {
|
|
95
115
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
96
116
|
GrpcMethod("VideoService", method)(constructor.prototype[method], method, descriptor);
|
package/package.json
CHANGED
package/proto/camera.proto
CHANGED
|
@@ -7,7 +7,9 @@ service CameraService {
|
|
|
7
7
|
returns (GetLocationsByUserIdResponse);
|
|
8
8
|
rpc CreateLocation (CreateLocationRequest)
|
|
9
9
|
returns (Location);
|
|
10
|
+
rpc DeleteLocation (DeleteLocationRequest) returns (DeleteLocationResponse);
|
|
10
11
|
rpc AddCamera (AddCameraRequest) returns (AddCameraResponse);
|
|
12
|
+
rpc DeleteCamera (DeleteCameraRequest) returns (DeleteCameraResponse);
|
|
11
13
|
rpc LinkCamera (LinkCameraRequest) returns (LinkCameraResponse);
|
|
12
14
|
rpc Refresh (RefreshRequest) returns (RefreshResponse);
|
|
13
15
|
rpc GetLiveKitViewerToken (GetLiveKitViewerTokenRequest) returns (GetLiveKitViewerTokenResponse);
|
|
@@ -18,6 +20,21 @@ service CameraService {
|
|
|
18
20
|
rpc GetCameraById(GetCameraByIdRequest) returns (GetCameraByIdResponse);
|
|
19
21
|
}
|
|
20
22
|
|
|
23
|
+
message DeleteCameraRequest {
|
|
24
|
+
string cameraId = 1;
|
|
25
|
+
}
|
|
26
|
+
message DeleteCameraResponse {
|
|
27
|
+
Camera camera = 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message DeleteLocationRequest {
|
|
31
|
+
string locationId = 1;
|
|
32
|
+
string userId = 2;
|
|
33
|
+
}
|
|
34
|
+
message DeleteLocationResponse {
|
|
35
|
+
Location location = 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
21
38
|
message GetCameraByIdRequest {
|
|
22
39
|
string cameraId = 1;
|
|
23
40
|
}
|
|
@@ -129,9 +146,4 @@ message CameraSettings {
|
|
|
129
146
|
string id = 1;
|
|
130
147
|
string aiStatus = 2;
|
|
131
148
|
string recordingStatus = 3;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
enum Status {
|
|
135
|
-
ON = 0;
|
|
136
|
-
OFF = 1;
|
|
137
|
-
}
|
|
149
|
+
}
|
package/proto/video.proto
CHANGED
|
@@ -6,9 +6,17 @@ service VideoService {
|
|
|
6
6
|
rpc StartRecording (StartRecordingRequest) returns (StartRecordingResponse);
|
|
7
7
|
rpc StopRecording (StopRecordingRequest) returns (StopRecordingResponse);
|
|
8
8
|
rpc GetAllRecordings (GetAllRecordingsRequest) returns (GetAllRecordingsResponse);
|
|
9
|
+
rpc DeleteRecording (DeleteRecordingRequest) returns (DeleteRecordingResponse);
|
|
9
10
|
rpc GetPresignedUrl (GetPresignedUrlRequest) returns (GetPresignedUrlResponse);
|
|
10
11
|
}
|
|
11
12
|
|
|
13
|
+
message DeleteRecordingRequest {
|
|
14
|
+
string recordingId = 1;
|
|
15
|
+
}
|
|
16
|
+
message DeleteRecordingResponse {
|
|
17
|
+
Recording recording = 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
message GetPresignedUrlRequest {
|
|
13
21
|
string fileId = 1;
|
|
14
22
|
string cameraId = 2;
|