@just-education-org/rpc-contracts 1.15.0 → 1.15.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/dist/generated/ts/hall.d.ts +4 -5
- package/package.json +3 -3
- package/proto/hall.proto +4 -5
- package/proto/seat.proto +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
export declare const protobufPackage = "hall.v1";
|
|
3
|
-
export interface
|
|
3
|
+
export interface CreateHallRequest {
|
|
4
4
|
name: string;
|
|
5
5
|
theaterId: string;
|
|
6
6
|
layout: RowLayout[];
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface CreateHallResponse {
|
|
9
9
|
hall: Hall | undefined;
|
|
10
10
|
}
|
|
11
11
|
export interface GetHallRequest {
|
|
@@ -24,7 +24,6 @@ export interface Hall {
|
|
|
24
24
|
id: string;
|
|
25
25
|
name: string;
|
|
26
26
|
theaterId: string;
|
|
27
|
-
layout: RowLayout[];
|
|
28
27
|
}
|
|
29
28
|
export interface RowLayout {
|
|
30
29
|
row: number;
|
|
@@ -34,12 +33,12 @@ export interface RowLayout {
|
|
|
34
33
|
}
|
|
35
34
|
export declare const HALL_V1_PACKAGE_NAME = "hall.v1";
|
|
36
35
|
export interface HallServiceClient {
|
|
37
|
-
createHall(request:
|
|
36
|
+
createHall(request: CreateHallRequest): Observable<CreateHallResponse>;
|
|
38
37
|
getHall(request: GetHallRequest): Observable<GetHallResponse>;
|
|
39
38
|
listHallsByTheater(request: ListHallsRequest): Observable<ListHallsResponse>;
|
|
40
39
|
}
|
|
41
40
|
export interface HallServiceController {
|
|
42
|
-
createHall(request:
|
|
41
|
+
createHall(request: CreateHallRequest): Promise<CreateHallResponse> | Observable<CreateHallResponse> | CreateHallResponse;
|
|
43
42
|
getHall(request: GetHallRequest): Promise<GetHallResponse> | Observable<GetHallResponse> | GetHallResponse;
|
|
44
43
|
listHallsByTheater(request: ListHallsRequest): Promise<ListHallsResponse> | Observable<ListHallsResponse> | ListHallsResponse;
|
|
45
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@just-education-org/rpc-contracts",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.2",
|
|
4
4
|
"description": "Protobuf definitions and generated TS types",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@nestjs/microservices": "^11.2.1",
|
|
35
35
|
"@types/node": "^26.2.0",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
36
|
+
"prettier": "^3.9.6",
|
|
37
|
+
"typescript": "^7.0.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@nestjs/microservices": "^11.0.0"
|
package/proto/hall.proto
CHANGED
|
@@ -3,20 +3,20 @@ syntax = "proto3";
|
|
|
3
3
|
package hall.v1;
|
|
4
4
|
|
|
5
5
|
service HallService {
|
|
6
|
-
rpc CreateHall(
|
|
6
|
+
rpc CreateHall(CreateHallRequest) returns(CreateHallResponse);
|
|
7
7
|
|
|
8
8
|
rpc GetHall(GetHallRequest) returns (GetHallResponse);
|
|
9
9
|
|
|
10
10
|
rpc ListHallsByTheater(ListHallsRequest) returns (ListHallsResponse);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
message
|
|
13
|
+
message CreateHallRequest {
|
|
14
14
|
string name = 1;
|
|
15
15
|
string theater_id = 2;
|
|
16
16
|
repeated RowLayout layout = 3;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
message
|
|
19
|
+
message CreateHallResponse {
|
|
20
20
|
Hall hall = 1;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -40,7 +40,6 @@ message Hall {
|
|
|
40
40
|
string id = 1;
|
|
41
41
|
string name = 2;
|
|
42
42
|
string theater_id = 3;
|
|
43
|
-
repeated RowLayout layout = 4;
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
message RowLayout {
|
|
@@ -48,4 +47,4 @@ message RowLayout {
|
|
|
48
47
|
int32 columns = 2;
|
|
49
48
|
string type = 3;
|
|
50
49
|
int32 price = 4;
|
|
51
|
-
}
|
|
50
|
+
}
|
package/proto/seat.proto
CHANGED