@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 +1 -2
- package/gen/ts/seat.ts +6 -6
- package/package.json +1 -1
- package/proto/hall.proto +1 -2
- package/proto/seat.proto +1 -1
package/gen/ts/hall.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface GetHallRequest {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export interface GetHallResponse {
|
|
28
|
-
|
|
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
|
|
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
|
|
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
|
|
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("
|
|
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("
|
|
66
|
+
GrpcStreamMethod("SeatService", method)(constructor.prototype[method], method, descriptor);
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
export const
|
|
71
|
+
export const SEAT_SERVICE_NAME = "SeatService";
|
package/package.json
CHANGED
package/proto/hall.proto
CHANGED
|
@@ -24,7 +24,7 @@ message GetHallRequest {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
message GetHallResponse {
|
|
27
|
-
Hall
|
|
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
|
|