@babacarthiamdev/contracts 1.0.24 → 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 CHANGED
@@ -36,7 +36,7 @@ export interface Movie {
36
36
  title: string;
37
37
  slug: string;
38
38
  poster: string;
39
- ratingAge: string;
39
+ ratingAge: number;
40
40
  releaseYear: number;
41
41
  releaseDate: Timestamp | undefined;
42
42
  }
@@ -49,7 +49,7 @@ export interface MovieDetails {
49
49
  poster: string;
50
50
  banner: string;
51
51
  duration: number;
52
- ratingAge: string;
52
+ ratingAge: number;
53
53
  country: string;
54
54
  releaseYear: number;
55
55
  releaseDate: Timestamp | undefined;
@@ -239,7 +239,7 @@ export const GetMovieResponse: MessageFns<GetMovieResponse> = {
239
239
  };
240
240
 
241
241
  function createBaseMovie(): Movie {
242
- return { id: "", title: "", slug: "", poster: "", ratingAge: "", releaseYear: 0, releaseDate: undefined };
242
+ return { id: "", title: "", slug: "", poster: "", ratingAge: 0, releaseYear: 0, releaseDate: undefined };
243
243
  }
244
244
 
245
245
  export const Movie: MessageFns<Movie> = {
@@ -256,8 +256,8 @@ export const Movie: MessageFns<Movie> = {
256
256
  if (message.poster !== "") {
257
257
  writer.uint32(34).string(message.poster);
258
258
  }
259
- if (message.ratingAge !== "") {
260
- writer.uint32(42).string(message.ratingAge);
259
+ if (message.ratingAge !== 0) {
260
+ writer.uint32(40).int32(message.ratingAge);
261
261
  }
262
262
  if (message.releaseYear !== 0) {
263
263
  writer.uint32(48).int32(message.releaseYear);
@@ -308,11 +308,11 @@ export const Movie: MessageFns<Movie> = {
308
308
  continue;
309
309
  }
310
310
  case 5: {
311
- if (tag !== 42) {
311
+ if (tag !== 40) {
312
312
  break;
313
313
  }
314
314
 
315
- message.ratingAge = reader.string();
315
+ message.ratingAge = reader.int32();
316
316
  continue;
317
317
  }
318
318
  case 6: {
@@ -350,7 +350,7 @@ function createBaseMovieDetails(): MovieDetails {
350
350
  poster: "",
351
351
  banner: "",
352
352
  duration: 0,
353
- ratingAge: "",
353
+ ratingAge: 0,
354
354
  country: "",
355
355
  releaseYear: 0,
356
356
  releaseDate: undefined,
@@ -380,8 +380,8 @@ export const MovieDetails: MessageFns<MovieDetails> = {
380
380
  if (message.duration !== 0) {
381
381
  writer.uint32(56).int32(message.duration);
382
382
  }
383
- if (message.ratingAge !== "") {
384
- writer.uint32(66).string(message.ratingAge);
383
+ if (message.ratingAge !== 0) {
384
+ writer.uint32(64).int32(message.ratingAge);
385
385
  }
386
386
  if (message.country !== "") {
387
387
  writer.uint32(74).string(message.country);
@@ -459,11 +459,11 @@ export const MovieDetails: MessageFns<MovieDetails> = {
459
459
  continue;
460
460
  }
461
461
  case 8: {
462
- if (tag !== 66) {
462
+ if (tag !== 64) {
463
463
  break;
464
464
  }
465
465
 
466
- message.ratingAge = reader.string();
466
+ message.ratingAge = reader.int32();
467
467
  continue;
468
468
  }
469
469
  case 9: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babacarthiamdev/contracts",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "type": "./dist/index.d.ts",
@@ -36,7 +36,7 @@ message Movie {
36
36
  string title = 2;
37
37
  string slug = 3;
38
38
  string poster = 4;
39
- string rating_age = 5;
39
+ int32 rating_age = 5;
40
40
  int32 release_year = 6;
41
41
  google.protobuf.Timestamp release_date = 7;
42
42
 
@@ -50,7 +50,7 @@ message MovieDetails {
50
50
  string poster = 5;
51
51
  string banner = 6;
52
52
  int32 duration = 7;
53
- string rating_age = 8;
53
+ int32 rating_age = 8;
54
54
  string country = 9;
55
55
  int32 release_year = 10;
56
56
  google.protobuf.Timestamp release_date = 11;