@trash-streamers/contracts 1.1.62 → 1.1.63
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/dist/gen/ts/video.d.ts +9 -0
- package/dist/gen/ts/video.js +6 -1
- package/package.json +1 -1
- package/proto/video.proto +10 -0
package/dist/gen/ts/video.d.ts
CHANGED
|
@@ -34,6 +34,13 @@ export interface PublicVideoBySlugRequest {
|
|
|
34
34
|
export interface PublicVideoBySlugResponce {
|
|
35
35
|
video: Video | undefined;
|
|
36
36
|
}
|
|
37
|
+
export interface SettingVideoBySlugRequest {
|
|
38
|
+
slug: string;
|
|
39
|
+
ownerId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface SettingVideoBySlugResponce {
|
|
42
|
+
video: Video | undefined;
|
|
43
|
+
}
|
|
37
44
|
export interface Video {
|
|
38
45
|
id: string;
|
|
39
46
|
ownerId: string;
|
|
@@ -53,11 +60,13 @@ export interface VideoServiceClient {
|
|
|
53
60
|
confirmVideoUpload(request: ConfirmVideoUploadRequest): Observable<ConfirmVideoUploadResponse>;
|
|
54
61
|
getAllVideosOwner(request: GetAllVideosOwnerRequest): Observable<GetAllVideosOwnerResponse>;
|
|
55
62
|
publicVideoBySlug(request: PublicVideoBySlugRequest): Observable<PublicVideoBySlugResponce>;
|
|
63
|
+
settingVideoBySlug(request: SettingVideoBySlugRequest): Observable<SettingVideoBySlugResponce>;
|
|
56
64
|
}
|
|
57
65
|
export interface VideoServiceController {
|
|
58
66
|
confirmVideoUpload(request: ConfirmVideoUploadRequest): Promise<ConfirmVideoUploadResponse> | Observable<ConfirmVideoUploadResponse> | ConfirmVideoUploadResponse;
|
|
59
67
|
getAllVideosOwner(request: GetAllVideosOwnerRequest): Promise<GetAllVideosOwnerResponse> | Observable<GetAllVideosOwnerResponse> | GetAllVideosOwnerResponse;
|
|
60
68
|
publicVideoBySlug(request: PublicVideoBySlugRequest): Promise<PublicVideoBySlugResponce> | Observable<PublicVideoBySlugResponce> | PublicVideoBySlugResponce;
|
|
69
|
+
settingVideoBySlug(request: SettingVideoBySlugRequest): Promise<SettingVideoBySlugResponce> | Observable<SettingVideoBySlugResponce> | SettingVideoBySlugResponce;
|
|
61
70
|
}
|
|
62
71
|
export declare function VideoServiceControllerMethods(): (constructor: Function) => void;
|
|
63
72
|
export declare const VIDEO_SERVICE_NAME = "VideoService";
|
package/dist/gen/ts/video.js
CHANGED
|
@@ -37,7 +37,12 @@ protobufjs_1.wrappers[".google.protobuf.Timestamp"] = {
|
|
|
37
37
|
};
|
|
38
38
|
function VideoServiceControllerMethods() {
|
|
39
39
|
return function (constructor) {
|
|
40
|
-
const grpcMethods = [
|
|
40
|
+
const grpcMethods = [
|
|
41
|
+
"confirmVideoUpload",
|
|
42
|
+
"getAllVideosOwner",
|
|
43
|
+
"publicVideoBySlug",
|
|
44
|
+
"settingVideoBySlug",
|
|
45
|
+
];
|
|
41
46
|
for (const method of grpcMethods) {
|
|
42
47
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
43
48
|
(0, microservices_1.GrpcMethod)("VideoService", method)(constructor.prototype[method], method, descriptor);
|
package/package.json
CHANGED
package/proto/video.proto
CHANGED
|
@@ -8,6 +8,7 @@ service VideoService {
|
|
|
8
8
|
|
|
9
9
|
rpc GetAllVideosOwner (GetAllVideosOwnerRequest) returns (GetAllVideosOwnerResponse);
|
|
10
10
|
rpc PublicVideoBySlug (PublicVideoBySlugRequest) returns (PublicVideoBySlugResponce);
|
|
11
|
+
rpc SettingVideoBySlug (SettingVideoBySlugRequest) returns (SettingVideoBySlugResponce);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
message ConfirmVideoUploadRequest {
|
|
@@ -36,6 +37,15 @@ message PublicVideoBySlugRequest {
|
|
|
36
37
|
message PublicVideoBySlugResponce {
|
|
37
38
|
Video video = 1;
|
|
38
39
|
}
|
|
40
|
+
|
|
41
|
+
message SettingVideoBySlugRequest {
|
|
42
|
+
string slug = 1;
|
|
43
|
+
string owner_id= 2;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message SettingVideoBySlugResponce{
|
|
47
|
+
Video video =1;
|
|
48
|
+
}
|
|
39
49
|
message Video {
|
|
40
50
|
string id = 1;
|
|
41
51
|
string owner_id = 2;
|