@stackcine/contracts 1.6.0 → 1.6.2

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
@@ -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
- listHallByTheater(request: ListHallsRequest): Observable<ListHallsResponse>;
59
+ listHallsByTheater(request: ListHallsRequest): Observable<ListHallsResponse>;
61
60
  }
62
61
 
63
62
  export interface HallServiceController {
@@ -67,14 +66,14 @@ export interface HallServiceController {
67
66
 
68
67
  getHall(request: GetHallRequest): Promise<GetHallResponse> | Observable<GetHallResponse> | GetHallResponse;
69
68
 
70
- listHallByTheater(
69
+ listHallsByTheater(
71
70
  request: ListHallsRequest,
72
71
  ): Promise<ListHallsResponse> | Observable<ListHallsResponse> | ListHallsResponse;
73
72
  }
74
73
 
75
74
  export function HallServiceControllerMethods() {
76
75
  return function (constructor: Function) {
77
- const grpcMethods: string[] = ["createHall", "getHall", "listHallByTheater"];
76
+ const grpcMethods: string[] = ["createHall", "getHall", "listHallsByTheater"];
78
77
  for (const method of grpcMethods) {
79
78
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
80
79
  GrpcMethod("HallService", method)(constructor.prototype[method], method, descriptor);
package/gen/ts/theater.ts CHANGED
@@ -19,7 +19,7 @@ export interface GetTheaterRequest {
19
19
  id: string;
20
20
  }
21
21
 
22
- export interface getTheaterResponse {
22
+ export interface GetTheaterResponse {
23
23
  theater: Theater | undefined;
24
24
  }
25
25
 
@@ -43,7 +43,7 @@ export const THEATER_V1_PACKAGE_NAME = "theater.v1";
43
43
  export interface TheaterServiceClient {
44
44
  listTheaters(request: Empty): Observable<ListTheatersResponse>;
45
45
 
46
- getTheater(request: GetTheaterRequest): Observable<getTheaterResponse>;
46
+ getTheater(request: GetTheaterRequest): Observable<GetTheaterResponse>;
47
47
 
48
48
  createTheater(request: CreateTheaterRequest): Observable<CreateTheaterResponse>;
49
49
  }
@@ -53,7 +53,7 @@ export interface TheaterServiceController {
53
53
 
54
54
  getTheater(
55
55
  request: GetTheaterRequest,
56
- ): Promise<getTheaterResponse> | Observable<getTheaterResponse> | getTheaterResponse;
56
+ ): Promise<GetTheaterResponse> | Observable<GetTheaterResponse> | GetTheaterResponse;
57
57
 
58
58
  createTheater(
59
59
  request: CreateTheaterRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackcine/contracts",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "Protobuf definitions and generated Typescript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/proto/hall.proto CHANGED
@@ -4,9 +4,8 @@ package hall.v1;
4
4
 
5
5
  service HallService {
6
6
  rpc CreateHall (CreateHallRequest) returns (CreateHallResponse);
7
-
8
7
  rpc GetHall (GetHallRequest) returns (GetHallResponse);
9
- rpc ListHallByTheater (ListHallsRequest) returns (ListHallsResponse);
8
+ rpc ListHallsByTheater (ListHallsRequest) returns (ListHallsResponse);
10
9
  }
11
10
 
12
11
  message CreateHallRequest {
@@ -39,7 +38,6 @@ message Hall {
39
38
  string id = 1;
40
39
  string name = 2;
41
40
  string theater_id = 3;
42
- repeated RowLayout layout = 4;
43
41
  }
44
42
 
45
43
  message RowLayout {
@@ -6,7 +6,7 @@ import "google/protobuf/empty.proto";
6
6
 
7
7
  service TheaterService {
8
8
  rpc ListTheaters (google.protobuf.Empty) returns (ListTheatersResponse);
9
- rpc GetTheater (GetTheaterRequest) returns (getTheaterResponse);
9
+ rpc GetTheater (GetTheaterRequest) returns (GetTheaterResponse);
10
10
  rpc CreateTheater (CreateTheaterRequest) returns (CreateTheaterResponse);
11
11
  }
12
12
 
@@ -18,7 +18,7 @@ message GetTheaterRequest {
18
18
  string id = 1;
19
19
  }
20
20
 
21
- message getTheaterResponse {
21
+ message GetTheaterResponse {
22
22
  Theater theater = 1;
23
23
  }
24
24