@babacarthiamdev/contracts 1.0.23 → 1.0.25
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/movies.ts +41 -16
- package/package.json +1 -1
- package/proto/movies.proto +8 -6
package/gen/movies.ts
CHANGED
|
@@ -36,7 +36,8 @@ export interface Movie {
|
|
|
36
36
|
title: string;
|
|
37
37
|
slug: string;
|
|
38
38
|
poster: string;
|
|
39
|
-
ratingAge:
|
|
39
|
+
ratingAge: number;
|
|
40
|
+
releaseYear: number;
|
|
40
41
|
releaseDate: Timestamp | undefined;
|
|
41
42
|
}
|
|
42
43
|
|
|
@@ -48,8 +49,9 @@ export interface MovieDetails {
|
|
|
48
49
|
poster: string;
|
|
49
50
|
banner: string;
|
|
50
51
|
duration: number;
|
|
51
|
-
ratingAge:
|
|
52
|
+
ratingAge: number;
|
|
52
53
|
country: string;
|
|
54
|
+
releaseYear: number;
|
|
53
55
|
releaseDate: Timestamp | undefined;
|
|
54
56
|
}
|
|
55
57
|
|
|
@@ -237,7 +239,7 @@ export const GetMovieResponse: MessageFns<GetMovieResponse> = {
|
|
|
237
239
|
};
|
|
238
240
|
|
|
239
241
|
function createBaseMovie(): Movie {
|
|
240
|
-
return { id: "", title: "", slug: "", poster: "", ratingAge:
|
|
242
|
+
return { id: "", title: "", slug: "", poster: "", ratingAge: 0, releaseYear: 0, releaseDate: undefined };
|
|
241
243
|
}
|
|
242
244
|
|
|
243
245
|
export const Movie: MessageFns<Movie> = {
|
|
@@ -254,11 +256,14 @@ export const Movie: MessageFns<Movie> = {
|
|
|
254
256
|
if (message.poster !== "") {
|
|
255
257
|
writer.uint32(34).string(message.poster);
|
|
256
258
|
}
|
|
257
|
-
if (message.ratingAge !==
|
|
258
|
-
writer.uint32(
|
|
259
|
+
if (message.ratingAge !== 0) {
|
|
260
|
+
writer.uint32(40).int32(message.ratingAge);
|
|
261
|
+
}
|
|
262
|
+
if (message.releaseYear !== 0) {
|
|
263
|
+
writer.uint32(48).int32(message.releaseYear);
|
|
259
264
|
}
|
|
260
265
|
if (message.releaseDate !== undefined) {
|
|
261
|
-
Timestamp.encode(message.releaseDate, writer.uint32(
|
|
266
|
+
Timestamp.encode(message.releaseDate, writer.uint32(58).fork()).join();
|
|
262
267
|
}
|
|
263
268
|
return writer;
|
|
264
269
|
},
|
|
@@ -303,15 +308,23 @@ export const Movie: MessageFns<Movie> = {
|
|
|
303
308
|
continue;
|
|
304
309
|
}
|
|
305
310
|
case 5: {
|
|
306
|
-
if (tag !==
|
|
311
|
+
if (tag !== 40) {
|
|
307
312
|
break;
|
|
308
313
|
}
|
|
309
314
|
|
|
310
|
-
message.ratingAge = reader.
|
|
315
|
+
message.ratingAge = reader.int32();
|
|
311
316
|
continue;
|
|
312
317
|
}
|
|
313
318
|
case 6: {
|
|
314
|
-
if (tag !==
|
|
319
|
+
if (tag !== 48) {
|
|
320
|
+
break;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
message.releaseYear = reader.int32();
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
case 7: {
|
|
327
|
+
if (tag !== 58) {
|
|
315
328
|
break;
|
|
316
329
|
}
|
|
317
330
|
|
|
@@ -337,8 +350,9 @@ function createBaseMovieDetails(): MovieDetails {
|
|
|
337
350
|
poster: "",
|
|
338
351
|
banner: "",
|
|
339
352
|
duration: 0,
|
|
340
|
-
ratingAge:
|
|
353
|
+
ratingAge: 0,
|
|
341
354
|
country: "",
|
|
355
|
+
releaseYear: 0,
|
|
342
356
|
releaseDate: undefined,
|
|
343
357
|
};
|
|
344
358
|
}
|
|
@@ -366,14 +380,17 @@ export const MovieDetails: MessageFns<MovieDetails> = {
|
|
|
366
380
|
if (message.duration !== 0) {
|
|
367
381
|
writer.uint32(56).int32(message.duration);
|
|
368
382
|
}
|
|
369
|
-
if (message.ratingAge !==
|
|
370
|
-
writer.uint32(
|
|
383
|
+
if (message.ratingAge !== 0) {
|
|
384
|
+
writer.uint32(64).int32(message.ratingAge);
|
|
371
385
|
}
|
|
372
386
|
if (message.country !== "") {
|
|
373
387
|
writer.uint32(74).string(message.country);
|
|
374
388
|
}
|
|
389
|
+
if (message.releaseYear !== 0) {
|
|
390
|
+
writer.uint32(80).int32(message.releaseYear);
|
|
391
|
+
}
|
|
375
392
|
if (message.releaseDate !== undefined) {
|
|
376
|
-
Timestamp.encode(message.releaseDate, writer.uint32(
|
|
393
|
+
Timestamp.encode(message.releaseDate, writer.uint32(90).fork()).join();
|
|
377
394
|
}
|
|
378
395
|
return writer;
|
|
379
396
|
},
|
|
@@ -442,11 +459,11 @@ export const MovieDetails: MessageFns<MovieDetails> = {
|
|
|
442
459
|
continue;
|
|
443
460
|
}
|
|
444
461
|
case 8: {
|
|
445
|
-
if (tag !==
|
|
462
|
+
if (tag !== 64) {
|
|
446
463
|
break;
|
|
447
464
|
}
|
|
448
465
|
|
|
449
|
-
message.ratingAge = reader.
|
|
466
|
+
message.ratingAge = reader.int32();
|
|
450
467
|
continue;
|
|
451
468
|
}
|
|
452
469
|
case 9: {
|
|
@@ -458,7 +475,15 @@ export const MovieDetails: MessageFns<MovieDetails> = {
|
|
|
458
475
|
continue;
|
|
459
476
|
}
|
|
460
477
|
case 10: {
|
|
461
|
-
if (tag !==
|
|
478
|
+
if (tag !== 80) {
|
|
479
|
+
break;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
message.releaseYear = reader.int32();
|
|
483
|
+
continue;
|
|
484
|
+
}
|
|
485
|
+
case 11: {
|
|
486
|
+
if (tag !== 90) {
|
|
462
487
|
break;
|
|
463
488
|
}
|
|
464
489
|
|
package/package.json
CHANGED
package/proto/movies.proto
CHANGED
|
@@ -32,26 +32,28 @@ message GetMovieResponse {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
message Movie {
|
|
35
|
-
string id =1;
|
|
35
|
+
string id = 1;
|
|
36
36
|
string title = 2;
|
|
37
37
|
string slug = 3;
|
|
38
38
|
string poster = 4;
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
int32 rating_age = 5;
|
|
40
|
+
int32 release_year = 6;
|
|
41
|
+
google.protobuf.Timestamp release_date = 7;
|
|
41
42
|
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
message MovieDetails {
|
|
45
|
-
string id =1;
|
|
46
|
+
string id = 1;
|
|
46
47
|
string title = 2;
|
|
47
48
|
string slug = 3;
|
|
48
49
|
string description = 4;
|
|
49
50
|
string poster = 5;
|
|
50
51
|
string banner = 6;
|
|
51
52
|
int32 duration = 7;
|
|
52
|
-
|
|
53
|
+
int32 rating_age = 8;
|
|
53
54
|
string country = 9;
|
|
54
|
-
|
|
55
|
+
int32 release_year = 10;
|
|
56
|
+
google.protobuf.Timestamp release_date = 11;
|
|
55
57
|
|
|
56
58
|
|
|
57
59
|
}
|