@dvltcinema/contracts 1.3.1 → 1.3.3

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
@@ -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 {
@@ -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 {
package/gen/ts/seat.ts CHANGED
@@ -39,13 +39,13 @@ export interface Seat {
39
39
 
40
40
  export const SEAT_V1_PACKAGE_NAME = "seat.v1";
41
41
 
42
- export interface SeatProtoClient {
42
+ export interface SeatServiceClient {
43
43
  getSeat(request: GetSeatRequest): Observable<GetSeatResponse>;
44
44
 
45
45
  listSeatsByHall(request: ListSeatsRequest): Observable<ListSeatsResponse>;
46
46
  }
47
47
 
48
- export interface SeatProtoController {
48
+ export interface SeatServiceController {
49
49
  getSeat(request: GetSeatRequest): Promise<GetSeatResponse> | Observable<GetSeatResponse> | GetSeatResponse;
50
50
 
51
51
  listSeatsByHall(
@@ -53,19 +53,19 @@ export interface SeatProtoController {
53
53
  ): Promise<ListSeatsResponse> | Observable<ListSeatsResponse> | ListSeatsResponse;
54
54
  }
55
55
 
56
- export function SeatProtoControllerMethods() {
56
+ export function SeatServiceControllerMethods() {
57
57
  return function (constructor: Function) {
58
58
  const grpcMethods: string[] = ["getSeat", "listSeatsByHall"];
59
59
  for (const method of grpcMethods) {
60
60
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
61
- GrpcMethod("SeatProto", method)(constructor.prototype[method], method, descriptor);
61
+ GrpcMethod("SeatService", method)(constructor.prototype[method], method, descriptor);
62
62
  }
63
63
  const grpcStreamMethods: string[] = [];
64
64
  for (const method of grpcStreamMethods) {
65
65
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
66
- GrpcStreamMethod("SeatProto", method)(constructor.prototype[method], method, descriptor);
66
+ GrpcStreamMethod("SeatService", method)(constructor.prototype[method], method, descriptor);
67
67
  }
68
68
  };
69
69
  }
70
70
 
71
- export const SEAT_PROTO_SERVICE_NAME = "SeatProto";
71
+ export const SEAT_SERVICE_NAME = "SeatService";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvltcinema/contracts",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "Protobuf definitions and generated Typescript and Go files",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/proto/hall.proto CHANGED
@@ -24,7 +24,7 @@ message GetHallRequest {
24
24
  }
25
25
 
26
26
  message GetHallResponse {
27
- Hall halls = 1;
27
+ Hall hall = 1;
28
28
  }
29
29
 
30
30
  message ListHallsRequest {
@@ -39,7 +39,6 @@ message Hall {
39
39
  string id = 1;
40
40
  string name = 2;
41
41
  string theater_id = 3;
42
- repeated RowLayout layout = 4;
43
42
 
44
43
  }
45
44
 
package/proto/seat.proto CHANGED
@@ -2,7 +2,7 @@ syntax = "proto3";
2
2
 
3
3
  package seat.v1;
4
4
 
5
- service SeatProto {
5
+ service SeatService {
6
6
  rpc GetSeat(GetSeatRequest) returns (GetSeatResponse);
7
7
  rpc ListSeatsByHall(ListSeatsRequest) returns (ListSeatsResponse);
8
8
  }