@babacarthiamdev/contracts 1.0.26 → 1.0.27

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/theater.ts CHANGED
@@ -16,11 +16,11 @@ export interface ListTheatersResponse {
16
16
  theaters: Theater[];
17
17
  }
18
18
 
19
- export interface GetMovieRequest {
19
+ export interface GetTheaterRequest {
20
20
  id: string;
21
21
  }
22
22
 
23
- export interface GetMovieResponse {
23
+ export interface GetTheaterResponse {
24
24
  theater: Theater | undefined;
25
25
  }
26
26
 
@@ -78,22 +78,22 @@ export const ListTheatersResponse: MessageFns<ListTheatersResponse> = {
78
78
  },
79
79
  };
80
80
 
81
- function createBaseGetMovieRequest(): GetMovieRequest {
81
+ function createBaseGetTheaterRequest(): GetTheaterRequest {
82
82
  return { id: "" };
83
83
  }
84
84
 
85
- export const GetMovieRequest: MessageFns<GetMovieRequest> = {
86
- encode(message: GetMovieRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
85
+ export const GetTheaterRequest: MessageFns<GetTheaterRequest> = {
86
+ encode(message: GetTheaterRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
87
87
  if (message.id !== "") {
88
88
  writer.uint32(10).string(message.id);
89
89
  }
90
90
  return writer;
91
91
  },
92
92
 
93
- decode(input: BinaryReader | Uint8Array, length?: number): GetMovieRequest {
93
+ decode(input: BinaryReader | Uint8Array, length?: number): GetTheaterRequest {
94
94
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
95
95
  const end = length === undefined ? reader.len : reader.pos + length;
96
- const message = createBaseGetMovieRequest();
96
+ const message = createBaseGetTheaterRequest();
97
97
  while (reader.pos < end) {
98
98
  const tag = reader.uint32();
99
99
  switch (tag >>> 3) {
@@ -115,22 +115,22 @@ export const GetMovieRequest: MessageFns<GetMovieRequest> = {
115
115
  },
116
116
  };
117
117
 
118
- function createBaseGetMovieResponse(): GetMovieResponse {
118
+ function createBaseGetTheaterResponse(): GetTheaterResponse {
119
119
  return { theater: undefined };
120
120
  }
121
121
 
122
- export const GetMovieResponse: MessageFns<GetMovieResponse> = {
123
- encode(message: GetMovieResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
122
+ export const GetTheaterResponse: MessageFns<GetTheaterResponse> = {
123
+ encode(message: GetTheaterResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
124
124
  if (message.theater !== undefined) {
125
125
  Theater.encode(message.theater, writer.uint32(10).fork()).join();
126
126
  }
127
127
  return writer;
128
128
  },
129
129
 
130
- decode(input: BinaryReader | Uint8Array, length?: number): GetMovieResponse {
130
+ decode(input: BinaryReader | Uint8Array, length?: number): GetTheaterResponse {
131
131
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
132
132
  const end = length === undefined ? reader.len : reader.pos + length;
133
- const message = createBaseGetMovieResponse();
133
+ const message = createBaseGetTheaterResponse();
134
134
  while (reader.pos < end) {
135
135
  const tag = reader.uint32();
136
136
  switch (tag >>> 3) {
@@ -299,7 +299,7 @@ export const Theater: MessageFns<Theater> = {
299
299
  export interface TheaterServiceClient {
300
300
  listTheaters(request: Empty): Observable<ListTheatersResponse>;
301
301
 
302
- getTheater(request: GetMovieRequest): Observable<GetMovieResponse>;
302
+ getTheater(request: GetTheaterRequest): Observable<GetTheaterResponse>;
303
303
 
304
304
  createTheater(request: CreateTheaterRequest): Observable<CreateTheaterResponse>;
305
305
  }
@@ -307,7 +307,9 @@ export interface TheaterServiceClient {
307
307
  export interface TheaterServiceController {
308
308
  listTheaters(request: Empty): Promise<ListTheatersResponse> | Observable<ListTheatersResponse> | ListTheatersResponse;
309
309
 
310
- getTheater(request: GetMovieRequest): Promise<GetMovieResponse> | Observable<GetMovieResponse> | GetMovieResponse;
310
+ getTheater(
311
+ request: GetTheaterRequest,
312
+ ): Promise<GetTheaterResponse> | Observable<GetTheaterResponse> | GetTheaterResponse;
311
313
 
312
314
  createTheater(
313
315
  request: CreateTheaterRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babacarthiamdev/contracts",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "type": "./dist/index.d.ts",
@@ -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 (GetMovieRequest) returns (GetMovieResponse);
9
+ rpc GetTheater (GetTheaterRequest) returns (GetTheaterResponse);
10
10
 
11
11
  rpc CreateTheater (CreateTheaterRequest) returns (CreateTheaterResponse);
12
12
  }
@@ -15,11 +15,11 @@ message ListTheatersResponse {
15
15
  repeated Theater theaters = 1;
16
16
  }
17
17
 
18
- message GetMovieRequest {
18
+ message GetTheaterRequest {
19
19
  string id = 1;
20
20
  }
21
21
 
22
- message GetMovieResponse {
22
+ message GetTheaterResponse {
23
23
  Theater theater = 1;
24
24
  }
25
25