@nemma-training/contracts 1.2.1 → 1.2.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/hall.ts +4 -6
- package/package.json +1 -1
- package/proto/hall.proto +3 -5
package/gen/ts/hall.ts
CHANGED
|
@@ -28,19 +28,17 @@ export interface GetHallResponse {
|
|
|
28
28
|
hall: Hall | undefined;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export interface
|
|
31
|
+
export interface ListHallsRequest {
|
|
32
32
|
theaterId: string;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export interface ListHallsResponse {
|
|
36
|
-
|
|
36
|
+
halls: Hall[];
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export interface Hall {
|
|
40
40
|
id: string;
|
|
41
41
|
name: string;
|
|
42
|
-
address: string;
|
|
43
|
-
c: RowLayout[];
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
export interface RowLayout {
|
|
@@ -57,7 +55,7 @@ export interface HallServiceClient {
|
|
|
57
55
|
|
|
58
56
|
getHall(request: GetHallRequest): Observable<GetHallResponse>;
|
|
59
57
|
|
|
60
|
-
listHallsByTheater(request:
|
|
58
|
+
listHallsByTheater(request: ListHallsRequest): Observable<ListHallsResponse>;
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
export interface HallServiceController {
|
|
@@ -68,7 +66,7 @@ export interface HallServiceController {
|
|
|
68
66
|
getHall(request: GetHallRequest): Promise<GetHallResponse> | Observable<GetHallResponse> | GetHallResponse;
|
|
69
67
|
|
|
70
68
|
listHallsByTheater(
|
|
71
|
-
request:
|
|
69
|
+
request: ListHallsRequest,
|
|
72
70
|
): Promise<ListHallsResponse> | Observable<ListHallsResponse> | ListHallsResponse;
|
|
73
71
|
}
|
|
74
72
|
|
package/package.json
CHANGED
package/proto/hall.proto
CHANGED
|
@@ -6,7 +6,7 @@ service HallService {
|
|
|
6
6
|
rpc CreateHall (CreateHallRequest) returns (CreateHallResponse);
|
|
7
7
|
|
|
8
8
|
rpc GetHall (GetHallRequest) returns (GetHallResponse);
|
|
9
|
-
rpc ListHallsByTheater (
|
|
9
|
+
rpc ListHallsByTheater (ListHallsRequest) returns (ListHallsResponse);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
message CreateHallRequest {
|
|
@@ -27,19 +27,17 @@ message GetHallResponse {
|
|
|
27
27
|
Hall hall = 1;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
message
|
|
30
|
+
message ListHallsRequest {
|
|
31
31
|
string theater_id = 1;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
message ListHallsResponse {
|
|
35
|
-
repeated Hall
|
|
35
|
+
repeated Hall halls = 1;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
message Hall {
|
|
39
39
|
string id = 1;
|
|
40
40
|
string name = 2;
|
|
41
|
-
string address = 3;
|
|
42
|
-
repeated RowLayout c = 4;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
message RowLayout {
|