@dvltcinema/contracts 1.3.2 → 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/seat.ts +6 -6
- package/package.json +1 -1
- package/proto/seat.proto +1 -1
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