@trash-streamers/contracts 1.1.51 → 1.1.53

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.
@@ -27,6 +27,7 @@ export interface GetImageResponse {
27
27
  export interface GetVideoUploadTicketRequest {
28
28
  fileName: string;
29
29
  contentType: string;
30
+ ownerId: string;
30
31
  }
31
32
  export interface GetVideoUploadTicketResponse {
32
33
  uploadUrl: string;
@@ -0,0 +1,19 @@
1
+ import { Observable } from "rxjs";
2
+ export declare const protobufPackage = "video.v1";
3
+ export interface ConfirmVideoUploadRequest {
4
+ videoId: string;
5
+ fileKey: string;
6
+ contentType: string;
7
+ }
8
+ export interface ConfirmVideoUploadResponse {
9
+ success: boolean;
10
+ }
11
+ export declare const VIDEO_V1_PACKAGE_NAME = "video.v1";
12
+ export interface VideoServiceClient {
13
+ confirmVideoUpload(request: ConfirmVideoUploadRequest): Observable<ConfirmVideoUploadResponse>;
14
+ }
15
+ export interface VideoServiceController {
16
+ confirmVideoUpload(request: ConfirmVideoUploadRequest): Promise<ConfirmVideoUploadResponse> | Observable<ConfirmVideoUploadResponse> | ConfirmVideoUploadResponse;
17
+ }
18
+ export declare function VideoServiceControllerMethods(): (constructor: Function) => void;
19
+ export declare const VIDEO_SERVICE_NAME = "VideoService";
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.10.1
5
+ // protoc v6.33.5
6
+ // source: video.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.VIDEO_SERVICE_NAME = exports.VIDEO_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.VideoServiceControllerMethods = VideoServiceControllerMethods;
10
+ /* eslint-disable */
11
+ const microservices_1 = require("@nestjs/microservices");
12
+ exports.protobufPackage = "video.v1";
13
+ exports.VIDEO_V1_PACKAGE_NAME = "video.v1";
14
+ function VideoServiceControllerMethods() {
15
+ return function (constructor) {
16
+ const grpcMethods = ["confirmVideoUpload"];
17
+ for (const method of grpcMethods) {
18
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
19
+ (0, microservices_1.GrpcMethod)("VideoService", method)(constructor.prototype[method], method, descriptor);
20
+ }
21
+ const grpcStreamMethods = [];
22
+ for (const method of grpcStreamMethods) {
23
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
24
+ (0, microservices_1.GrpcStreamMethod)("VideoService", method)(constructor.prototype[method], method, descriptor);
25
+ }
26
+ };
27
+ }
28
+ exports.VIDEO_SERVICE_NAME = "VideoService";
@@ -3,4 +3,5 @@ export declare const PROTO_PATHS: {
3
3
  readonly ACCOUNT: string;
4
4
  readonly USERS: string;
5
5
  readonly MEDIA: string;
6
+ readonly VIDEO: string;
6
7
  };
@@ -8,4 +8,5 @@ exports.PROTO_PATHS = {
8
8
  ACCOUNT: (0, path_1.join)(ROOT_PATH, "account.proto"),
9
9
  USERS: (0, path_1.join)(ROOT_PATH, "users.proto"),
10
10
  MEDIA: (0, path_1.join)(ROOT_PATH, "media.proto"),
11
+ VIDEO: (0, path_1.join)(ROOT_PATH, "video.proto"),
11
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trash-streamers/contracts",
3
- "version": "1.1.51",
3
+ "version": "1.1.53",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "scripts": {
package/proto/media.proto CHANGED
@@ -36,6 +36,7 @@ message GetImageResponse {
36
36
  message GetVideoUploadTicketRequest {
37
37
  string file_name = 1;
38
38
  string content_type = 2;
39
+ string owner_id = 3;
39
40
  }
40
41
 
41
42
  message GetVideoUploadTicketResponse {
@@ -0,0 +1,18 @@
1
+ syntax = "proto3";
2
+
3
+ package video.v1;
4
+
5
+ service VideoService {
6
+ rpc ConfirmVideoUpload (ConfirmVideoUploadRequest) returns (ConfirmVideoUploadResponse);
7
+ }
8
+
9
+ message ConfirmVideoUploadRequest {
10
+ string video_id = 1;
11
+ string file_key = 2;
12
+ string content_type = 3;
13
+ }
14
+
15
+
16
+ message ConfirmVideoUploadResponse {
17
+ bool success = 1;
18
+ }