@neo-tickets/contracts 1.15.0 → 1.16.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.
@@ -23,7 +23,6 @@ export interface Hall {
23
23
  id: string;
24
24
  name: string;
25
25
  theaterId: string;
26
- layout: RowLayout[];
27
26
  }
28
27
  export interface RowLayout {
29
28
  row: number;
@@ -22,12 +22,14 @@ export interface CreateSeatResponse {
22
22
  }
23
23
  export interface Seat {
24
24
  id: string;
25
- hallId: string;
26
25
  row: number;
27
26
  number: number;
28
- status: string;
29
- price: number;
27
+ x: number;
28
+ y: number;
30
29
  type: string;
30
+ price: number;
31
+ status: string;
32
+ hallId: string;
31
33
  }
32
34
  export interface SeatServiceClient {
33
35
  getSeat(request: GetSeatRequest): Observable<GetSeatResponse>;
package/gen/ts/hall.ts CHANGED
@@ -38,7 +38,6 @@ export interface Hall {
38
38
  id: string;
39
39
  name: string;
40
40
  theaterId: string;
41
- layout: RowLayout[];
42
41
  }
43
42
 
44
43
  export interface RowLayout {
package/gen/ts/seat.ts CHANGED
@@ -37,12 +37,14 @@ export interface CreateSeatResponse {
37
37
 
38
38
  export interface Seat {
39
39
  id: string;
40
- hallId: string;
41
40
  row: number;
42
41
  number: number;
43
- status: string;
44
- price: number;
42
+ x: number;
43
+ y: number;
45
44
  type: string;
45
+ price: number;
46
+ status: string;
47
+ hallId: string;
46
48
  }
47
49
 
48
50
  export interface SeatServiceClient {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo-tickets/contracts",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "main": "./dist/src/index.js",
5
5
  "types": "./dist/src/index.d.ts",
6
6
  "scripts": {
package/proto/hall.proto CHANGED
@@ -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 {
package/proto/seat.proto CHANGED
@@ -35,10 +35,12 @@ message CreateSeatResponse {
35
35
 
36
36
  message Seat {
37
37
  string id = 1;
38
- string hall_id = 2;
39
- int32 row = 3;
40
- int32 number = 4;
41
- string status = 5;
42
- int32 price = 6;
43
- string type = 7;
38
+ int32 row = 2;
39
+ int32 number = 3;
40
+ int32 x = 4;
41
+ int32 y = 5;
42
+ string type = 6;
43
+ int32 price = 7;
44
+ string status = 8;
45
+ string hall_id = 9;
44
46
  }