@neo-tickets/contracts 1.18.1 → 1.19.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.
@@ -32,9 +32,14 @@ export interface MovieDetails {
32
32
  banner: string;
33
33
  duration: number;
34
34
  ratingAge: number;
35
- country: string;
35
+ country: Country | undefined;
36
36
  releaseDate: Timestamp | undefined;
37
37
  }
38
+ export interface Country {
39
+ id: string;
40
+ name: string;
41
+ code: string;
42
+ }
38
43
  export interface MovieServiceClient {
39
44
  listMovies(request: ListMoviesRequest): Observable<ListMoviesResponse>;
40
45
  getMovie(request: GetMovieRequest): Observable<GetMovieResponse>;
@@ -2,9 +2,7 @@ import { Observable } from "rxjs";
2
2
  export declare enum SeatStatus {
3
3
  SEAT_STATUS_UNSPECIFIED = 0,
4
4
  SEAT_STATUS_AVAILABLE = 1,
5
- SEAT_STATUS_BOOKED = 2,
6
- SEAT_STATUS_OCCUPIED = 3,
7
- SEAT_STATUS_UNAVAILABLE = 4,
5
+ SEAT_STATUS_UNAVAILABLE = 2,
8
6
  UNRECOGNIZED = -1
9
7
  }
10
8
  export interface GetSeatRequest {
@@ -13,9 +13,7 @@ var SeatStatus;
13
13
  (function (SeatStatus) {
14
14
  SeatStatus[SeatStatus["SEAT_STATUS_UNSPECIFIED"] = 0] = "SEAT_STATUS_UNSPECIFIED";
15
15
  SeatStatus[SeatStatus["SEAT_STATUS_AVAILABLE"] = 1] = "SEAT_STATUS_AVAILABLE";
16
- SeatStatus[SeatStatus["SEAT_STATUS_BOOKED"] = 2] = "SEAT_STATUS_BOOKED";
17
- SeatStatus[SeatStatus["SEAT_STATUS_OCCUPIED"] = 3] = "SEAT_STATUS_OCCUPIED";
18
- SeatStatus[SeatStatus["SEAT_STATUS_UNAVAILABLE"] = 4] = "SEAT_STATUS_UNAVAILABLE";
16
+ SeatStatus[SeatStatus["SEAT_STATUS_UNAVAILABLE"] = 2] = "SEAT_STATUS_UNAVAILABLE";
19
17
  SeatStatus[SeatStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
20
18
  })(SeatStatus || (exports.SeatStatus = SeatStatus = {}));
21
19
  function SeatServiceControllerMethods() {
package/gen/ts/movie.ts CHANGED
@@ -46,10 +46,16 @@ export interface MovieDetails {
46
46
  banner: string;
47
47
  duration: number;
48
48
  ratingAge: number;
49
- country: string;
49
+ country: Country | undefined;
50
50
  releaseDate: Timestamp | undefined;
51
51
  }
52
52
 
53
+ export interface Country {
54
+ id: string;
55
+ name: string;
56
+ code: string;
57
+ }
58
+
53
59
  export interface MovieServiceClient {
54
60
  listMovies(request: ListMoviesRequest): Observable<ListMoviesResponse>;
55
61
 
package/gen/ts/seat.ts CHANGED
@@ -11,9 +11,7 @@ import { Observable } from "rxjs";
11
11
  export enum SeatStatus {
12
12
  SEAT_STATUS_UNSPECIFIED = 0,
13
13
  SEAT_STATUS_AVAILABLE = 1,
14
- SEAT_STATUS_BOOKED = 2,
15
- SEAT_STATUS_OCCUPIED = 3,
16
- SEAT_STATUS_UNAVAILABLE = 4,
14
+ SEAT_STATUS_UNAVAILABLE = 2,
17
15
  UNRECOGNIZED = -1,
18
16
  }
19
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo-tickets/contracts",
3
- "version": "1.18.1",
3
+ "version": "1.19.1",
4
4
  "main": "./dist/src/index.js",
5
5
  "types": "./dist/src/index.d.ts",
6
6
  "scripts": {
package/proto/movie.proto CHANGED
@@ -48,6 +48,12 @@ message MovieDetails {
48
48
  string banner = 6;
49
49
  int32 duration = 7;
50
50
  int32 rating_age = 8;
51
- string country = 9;
51
+ Country country = 9;
52
52
  google.protobuf.Timestamp release_date = 10;
53
+ }
54
+
55
+ message Country {
56
+ string id = 1;
57
+ string name = 2;
58
+ string code = 3;
53
59
  }
package/proto/seat.proto CHANGED
@@ -47,7 +47,5 @@ message Seat {
47
47
  enum SeatStatus {
48
48
  SEAT_STATUS_UNSPECIFIED = 0;
49
49
  SEAT_STATUS_AVAILABLE = 1;
50
- SEAT_STATUS_BOOKED = 2;
51
- SEAT_STATUS_OCCUPIED = 3;
52
- SEAT_STATUS_UNAVAILABLE = 4;
50
+ SEAT_STATUS_UNAVAILABLE = 2;
53
51
  }