@nemma-training/contracts 1.2.1 → 1.2.2

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 CHANGED
@@ -28,19 +28,18 @@ export interface GetHallResponse {
28
28
  hall: Hall | undefined;
29
29
  }
30
30
 
31
- export interface ListHallRequest {
31
+ export interface ListHallsRequest {
32
32
  theaterId: string;
33
33
  }
34
34
 
35
35
  export interface ListHallsResponse {
36
- hall: Hall[];
36
+ halls: Hall[];
37
37
  }
38
38
 
39
39
  export interface Hall {
40
40
  id: string;
41
41
  name: string;
42
42
  address: string;
43
- c: RowLayout[];
44
43
  }
45
44
 
46
45
  export interface RowLayout {
@@ -57,7 +56,7 @@ export interface HallServiceClient {
57
56
 
58
57
  getHall(request: GetHallRequest): Observable<GetHallResponse>;
59
58
 
60
- listHallsByTheater(request: ListHallRequest): Observable<ListHallsResponse>;
59
+ listHallsByTheater(request: ListHallsRequest): Observable<ListHallsResponse>;
61
60
  }
62
61
 
63
62
  export interface HallServiceController {
@@ -68,7 +67,7 @@ export interface HallServiceController {
68
67
  getHall(request: GetHallRequest): Promise<GetHallResponse> | Observable<GetHallResponse> | GetHallResponse;
69
68
 
70
69
  listHallsByTheater(
71
- request: ListHallRequest,
70
+ request: ListHallsRequest,
72
71
  ): Promise<ListHallsResponse> | Observable<ListHallsResponse> | ListHallsResponse;
73
72
  }
74
73
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nemma-training/contracts",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Protobuf contract ts and go definitions for Nemma microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
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 (ListHallRequest) returns (ListHallsResponse);
9
+ rpc ListHallsByTheater (ListHallsRequest) returns (ListHallsResponse);
10
10
  }
11
11
 
12
12
  message CreateHallRequest {
@@ -27,19 +27,18 @@ message GetHallResponse {
27
27
  Hall hall = 1;
28
28
  }
29
29
 
30
- message ListHallRequest {
30
+ message ListHallsRequest {
31
31
  string theater_id = 1;
32
32
  }
33
33
 
34
34
  message ListHallsResponse {
35
- repeated Hall hall = 1;
35
+ repeated Hall halls = 1;
36
36
  }
37
37
 
38
38
  message Hall {
39
39
  string id = 1;
40
40
  string name = 2;
41
41
  string address = 3;
42
- repeated RowLayout c = 4;
43
42
  }
44
43
 
45
44
  message RowLayout {