@veaceslav_morarescu/contracts 1.3.2 → 1.3.4

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/hall.ts CHANGED
@@ -25,7 +25,7 @@ export interface GetHallRequest {
25
25
  }
26
26
 
27
27
  export interface GetHallResponse {
28
- halls: Hall | undefined;
28
+ hall: Hall | undefined;
29
29
  }
30
30
 
31
31
  export interface ListHallsRequest {
@@ -33,19 +33,19 @@ export interface ListHallsRequest {
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
  theaterName: string;
43
- layout: RowLayout[];
44
43
  }
45
44
 
46
45
  export interface RowLayout {
47
46
  row: number;
48
47
  columns: number;
48
+ theaterName: string;
49
49
  type: string;
50
50
  price: number;
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veaceslav_morarescu/contracts",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
package/proto/hall.proto CHANGED
@@ -23,7 +23,7 @@ message GetHallRequest {
23
23
  }
24
24
 
25
25
  message GetHallResponse {
26
- Hall halls = 1;
26
+ Hall hall = 1;
27
27
  }
28
28
 
29
29
  message ListHallsRequest {
@@ -31,19 +31,19 @@ message ListHallsRequest {
31
31
  }
32
32
 
33
33
  message ListHallsResponse {
34
- repeated Hall hall = 1;
34
+ repeated Hall halls = 1;
35
35
  }
36
36
 
37
37
  message Hall {
38
38
  string id = 1;
39
39
  string name = 2;
40
40
  string theater_name = 3;
41
- repeated RowLayout layout = 4;
42
41
  }
43
42
 
44
43
  message RowLayout {
45
44
  int32 row = 1;
46
45
  int32 columns = 2;
47
- string type = 3;
48
- int32 price = 4;
46
+ string theater_name = 3;
47
+ string type = 4;
48
+ int32 price = 5;
49
49
  }