@tcinema-pro/contracts 1.3.3 → 1.3.5

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.
@@ -3,4 +3,6 @@ export declare const PROTO_PATHS: {
3
3
  readonly ACCOUNT: string;
4
4
  readonly USERS: string;
5
5
  readonly MEDIA: string;
6
+ readonly MOVIE: string;
7
+ readonly CATEGORY: string;
6
8
  };
@@ -6,5 +6,7 @@ exports.PROTO_PATHS = {
6
6
  AUTH: (0, path_1.join)(__dirname, '../../proto/auth.proto'),
7
7
  ACCOUNT: (0, path_1.join)(__dirname, '../../proto/account.proto'),
8
8
  USERS: (0, path_1.join)(__dirname, '../../proto/users.proto'),
9
- MEDIA: (0, path_1.join)(__dirname, '../../proto/media.proto')
9
+ MEDIA: (0, path_1.join)(__dirname, '../../proto/media.proto'),
10
+ MOVIE: (0, path_1.join)(__dirname, '../../proto/movie.proto'),
11
+ CATEGORY: (0, path_1.join)(__dirname, '../../proto/category.proto')
10
12
  };
package/gen/movie.ts CHANGED
@@ -17,8 +17,7 @@ export interface GetMovieRequest {
17
17
  }
18
18
 
19
19
  export interface GetMovieResponse {
20
- id?: string | undefined;
21
- slug?: string | undefined;
20
+ movie: Movie | undefined;
22
21
  }
23
22
 
24
23
  export interface ListMoviesRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tcinema-pro/contracts",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "Protobuf defs",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/proto/movie.proto CHANGED
@@ -17,10 +17,7 @@ message GetMovieRequest {
17
17
  }
18
18
 
19
19
  message GetMovieResponse {
20
- oneof key {
21
- string id = 1;
22
- string slug = 2;
23
- }
20
+ Movie movie = 1;
24
21
  }
25
22
 
26
23
  message ListMoviesRequest {
@@ -29,7 +26,6 @@ message ListMoviesRequest {
29
26
  int32 limit = 3;
30
27
  }
31
28
 
32
-
33
29
  message ListMoviesResponse {
34
30
  repeated Movie movies = 1;
35
31
  }