@babacarthiamdev/contracts 1.0.29 → 1.0.31
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/hall.ts +5 -17
- package/package.json +1 -1
- package/proto/hall.proto +1 -2
package/gen/hall.ts
CHANGED
|
@@ -34,14 +34,13 @@ export interface ListHallsRequest {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export interface ListHallsResponse {
|
|
37
|
-
|
|
37
|
+
halls: Hall[];
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export interface Hall {
|
|
41
41
|
id: string;
|
|
42
42
|
name: string;
|
|
43
43
|
theaterId: string;
|
|
44
|
-
layout: RowLayout[];
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
export interface RowLayout {
|
|
@@ -261,12 +260,12 @@ export const ListHallsRequest: MessageFns<ListHallsRequest> = {
|
|
|
261
260
|
};
|
|
262
261
|
|
|
263
262
|
function createBaseListHallsResponse(): ListHallsResponse {
|
|
264
|
-
return {
|
|
263
|
+
return { halls: [] };
|
|
265
264
|
}
|
|
266
265
|
|
|
267
266
|
export const ListHallsResponse: MessageFns<ListHallsResponse> = {
|
|
268
267
|
encode(message: ListHallsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
269
|
-
for (const v of message.
|
|
268
|
+
for (const v of message.halls) {
|
|
270
269
|
Hall.encode(v!, writer.uint32(10).fork()).join();
|
|
271
270
|
}
|
|
272
271
|
return writer;
|
|
@@ -284,7 +283,7 @@ export const ListHallsResponse: MessageFns<ListHallsResponse> = {
|
|
|
284
283
|
break;
|
|
285
284
|
}
|
|
286
285
|
|
|
287
|
-
message.
|
|
286
|
+
message.halls.push(Hall.decode(reader, reader.uint32()));
|
|
288
287
|
continue;
|
|
289
288
|
}
|
|
290
289
|
}
|
|
@@ -298,7 +297,7 @@ export const ListHallsResponse: MessageFns<ListHallsResponse> = {
|
|
|
298
297
|
};
|
|
299
298
|
|
|
300
299
|
function createBaseHall(): Hall {
|
|
301
|
-
return { id: "", name: "", theaterId: ""
|
|
300
|
+
return { id: "", name: "", theaterId: "" };
|
|
302
301
|
}
|
|
303
302
|
|
|
304
303
|
export const Hall: MessageFns<Hall> = {
|
|
@@ -312,9 +311,6 @@ export const Hall: MessageFns<Hall> = {
|
|
|
312
311
|
if (message.theaterId !== "") {
|
|
313
312
|
writer.uint32(26).string(message.theaterId);
|
|
314
313
|
}
|
|
315
|
-
for (const v of message.layout) {
|
|
316
|
-
RowLayout.encode(v!, writer.uint32(34).fork()).join();
|
|
317
|
-
}
|
|
318
314
|
return writer;
|
|
319
315
|
},
|
|
320
316
|
|
|
@@ -349,14 +345,6 @@ export const Hall: MessageFns<Hall> = {
|
|
|
349
345
|
message.theaterId = reader.string();
|
|
350
346
|
continue;
|
|
351
347
|
}
|
|
352
|
-
case 4: {
|
|
353
|
-
if (tag !== 34) {
|
|
354
|
-
break;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
message.layout.push(RowLayout.decode(reader, reader.uint32()));
|
|
358
|
-
continue;
|
|
359
|
-
}
|
|
360
348
|
}
|
|
361
349
|
if ((tag & 7) === 4 || tag === 0) {
|
|
362
350
|
break;
|
package/package.json
CHANGED
package/proto/hall.proto
CHANGED
|
@@ -32,14 +32,13 @@ message ListHallsRequest {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
message ListHallsResponse {
|
|
35
|
-
repeated Hall
|
|
35
|
+
repeated Hall halls = 1;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
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
|
message RowLayout {
|