@babacarthiamdev/contracts 1.0.29 → 1.0.30
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 +6 -18
- package/package.json +1 -1
- package/proto/hall.proto +1 -2
package/gen/hall.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface GetHallRequest {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export interface GetHallResponse {
|
|
29
|
-
|
|
29
|
+
halls: Hall | undefined;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export interface ListHallsRequest {
|
|
@@ -41,7 +41,6 @@ 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 {
|
|
@@ -187,13 +186,13 @@ export const GetHallRequest: MessageFns<GetHallRequest> = {
|
|
|
187
186
|
};
|
|
188
187
|
|
|
189
188
|
function createBaseGetHallResponse(): GetHallResponse {
|
|
190
|
-
return {
|
|
189
|
+
return { halls: undefined };
|
|
191
190
|
}
|
|
192
191
|
|
|
193
192
|
export const GetHallResponse: MessageFns<GetHallResponse> = {
|
|
194
193
|
encode(message: GetHallResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
195
|
-
if (message.
|
|
196
|
-
Hall.encode(message.
|
|
194
|
+
if (message.halls !== undefined) {
|
|
195
|
+
Hall.encode(message.halls, writer.uint32(10).fork()).join();
|
|
197
196
|
}
|
|
198
197
|
return writer;
|
|
199
198
|
},
|
|
@@ -210,7 +209,7 @@ export const GetHallResponse: MessageFns<GetHallResponse> = {
|
|
|
210
209
|
break;
|
|
211
210
|
}
|
|
212
211
|
|
|
213
|
-
message.
|
|
212
|
+
message.halls = Hall.decode(reader, reader.uint32());
|
|
214
213
|
continue;
|
|
215
214
|
}
|
|
216
215
|
}
|
|
@@ -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
|
@@ -24,7 +24,7 @@ message GetHallRequest {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
message GetHallResponse {
|
|
27
|
-
Hall
|
|
27
|
+
Hall halls = 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
|
message RowLayout {
|