@eyenest/contracts 1.2.3 → 1.3.0
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/auth.ts +1 -1
- package/gen/ts/camera.ts +11 -2
- package/package.json +1 -1
- package/proto/camera.proto +9 -0
package/gen/ts/auth.ts
CHANGED
package/gen/ts/camera.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
3
|
+
// protoc-gen-ts_proto v2.11.2
|
|
4
4
|
// protoc v3.21.12
|
|
5
5
|
// source: camera.proto
|
|
6
6
|
|
|
@@ -24,6 +24,11 @@ export interface GetLocationsByUserIdResponse {
|
|
|
24
24
|
locations: Location[];
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
export interface CreateLocationRequest {
|
|
28
|
+
userId: string;
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
27
32
|
export interface Location {
|
|
28
33
|
id: string;
|
|
29
34
|
name: string;
|
|
@@ -46,17 +51,21 @@ export const CAMERA_V1_PACKAGE_NAME = "camera.v1";
|
|
|
46
51
|
|
|
47
52
|
export interface CameraServiceClient {
|
|
48
53
|
getLocationsByUserId(request: GetLocationsByUserIdRequest): Observable<GetLocationsByUserIdResponse>;
|
|
54
|
+
|
|
55
|
+
createLocation(request: CreateLocationRequest): Observable<Location>;
|
|
49
56
|
}
|
|
50
57
|
|
|
51
58
|
export interface CameraServiceController {
|
|
52
59
|
getLocationsByUserId(
|
|
53
60
|
request: GetLocationsByUserIdRequest,
|
|
54
61
|
): Promise<GetLocationsByUserIdResponse> | Observable<GetLocationsByUserIdResponse> | GetLocationsByUserIdResponse;
|
|
62
|
+
|
|
63
|
+
createLocation(request: CreateLocationRequest): Promise<Location> | Observable<Location> | Location;
|
|
55
64
|
}
|
|
56
65
|
|
|
57
66
|
export function CameraServiceControllerMethods() {
|
|
58
67
|
return function (constructor: Function) {
|
|
59
|
-
const grpcMethods: string[] = ["getLocationsByUserId"];
|
|
68
|
+
const grpcMethods: string[] = ["getLocationsByUserId", "createLocation"];
|
|
60
69
|
for (const method of grpcMethods) {
|
|
61
70
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
62
71
|
GrpcMethod("CameraService", method)(constructor.prototype[method], method, descriptor);
|
package/package.json
CHANGED
package/proto/camera.proto
CHANGED
|
@@ -5,8 +5,12 @@ package camera.v1;
|
|
|
5
5
|
service CameraService {
|
|
6
6
|
rpc GetLocationsByUserId (GetLocationsByUserIdRequest)
|
|
7
7
|
returns (GetLocationsByUserIdResponse);
|
|
8
|
+
rpc CreateLocation (CreateLocationRequest)
|
|
9
|
+
returns (Location);
|
|
8
10
|
}
|
|
9
11
|
|
|
12
|
+
|
|
13
|
+
|
|
10
14
|
message GetLocationsByUserIdRequest {
|
|
11
15
|
string userId = 1;
|
|
12
16
|
}
|
|
@@ -15,6 +19,11 @@ message GetLocationsByUserIdResponse {
|
|
|
15
19
|
repeated Location locations = 1;
|
|
16
20
|
}
|
|
17
21
|
|
|
22
|
+
message CreateLocationRequest {
|
|
23
|
+
string userId = 1;
|
|
24
|
+
string name = 2;
|
|
25
|
+
}
|
|
26
|
+
|
|
18
27
|
message Location {
|
|
19
28
|
string id = 1;
|
|
20
29
|
string name = 2;
|