@salesticketcinema/contracts 1.3.0 → 1.3.1

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,11 +28,11 @@ 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
- export interface ListHallResponse {
35
+ export interface ListHallsResponse {
36
36
  halls: Hall[];
37
37
  }
38
38
 
@@ -40,7 +40,6 @@ export interface Hall {
40
40
  id: string;
41
41
  name: string;
42
42
  theaterId: string;
43
- layout: 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<ListHallResponse>;
59
+ listHallsByTheater(request: ListHallsRequest): Observable<ListHallsResponse>;
61
60
  }
62
61
 
63
62
  export interface HallServiceController {
@@ -68,8 +67,8 @@ export interface HallServiceController {
68
67
  getHall(request: GetHallRequest): Promise<GetHallResponse> | Observable<GetHallResponse> | GetHallResponse;
69
68
 
70
69
  listHallsByTheater(
71
- request: ListHallRequest,
72
- ): Promise<ListHallResponse> | Observable<ListHallResponse> | ListHallResponse;
70
+ request: ListHallsRequest,
71
+ ): Promise<ListHallsResponse> | Observable<ListHallsResponse> | ListHallsResponse;
73
72
  }
74
73
 
75
74
  export function HallServiceControllerMethods() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesticketcinema/contracts",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Protobuf definitions and generated Typescript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.js",
package/proto/hall.proto CHANGED
@@ -5,7 +5,7 @@ package hall.v1;
5
5
  service HallService {
6
6
  rpc CreateHall(CreateHallRequest) returns (CreateHallResponse);
7
7
  rpc GetHall(GetHallRequest) returns (GetHallResponse);
8
- rpc ListHallsByTheater (ListHallRequest) returns (ListHallResponse);
8
+ rpc ListHallsByTheater (ListHallsRequest) returns (ListHallsResponse);
9
9
  }
10
10
 
11
11
  message CreateHallRequest {
@@ -26,11 +26,11 @@ message GetHallResponse {
26
26
  Hall hall = 1;
27
27
  }
28
28
 
29
- message ListHallRequest {
29
+ message ListHallsRequest {
30
30
  string theater_id = 1;
31
31
  }
32
32
 
33
- message ListHallResponse {
33
+ message ListHallsResponse {
34
34
  repeated Hall halls = 1;
35
35
  }
36
36
 
@@ -38,7 +38,6 @@ message Hall {
38
38
  string id = 1;
39
39
  string name = 2;
40
40
  string theater_id = 3;
41
- repeated RowLayout layout = 4;
42
41
  }
43
42
 
44
43
  message RowLayout {