@trash-streamers/contracts 1.1.61 → 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 +18 -0
- package/dist/gen/ts/video.js +6 -1
- package/package.json +1 -1
- package/proto/video.proto +24 -3
package/dist/gen/ts/video.d.ts
CHANGED
|
@@ -28,6 +28,19 @@ export interface GetAllVideosOwnerRequest {
|
|
|
28
28
|
export interface GetAllVideosOwnerResponse {
|
|
29
29
|
videos: Video[];
|
|
30
30
|
}
|
|
31
|
+
export interface PublicVideoBySlugRequest {
|
|
32
|
+
slug: string;
|
|
33
|
+
}
|
|
34
|
+
export interface PublicVideoBySlugResponce {
|
|
35
|
+
video: Video | undefined;
|
|
36
|
+
}
|
|
37
|
+
export interface SettingVideoBySlugRequest {
|
|
38
|
+
slug: string;
|
|
39
|
+
ownerId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface SettingVideoBySlugResponce {
|
|
42
|
+
video: Video | undefined;
|
|
43
|
+
}
|
|
31
44
|
export interface Video {
|
|
32
45
|
id: string;
|
|
33
46
|
ownerId: string;
|
|
@@ -37,6 +50,7 @@ export interface Video {
|
|
|
37
50
|
status: Status;
|
|
38
51
|
slug: string;
|
|
39
52
|
thumbnailUrl?: string | undefined;
|
|
53
|
+
durationSeconds?: string | undefined;
|
|
40
54
|
path?: string | undefined;
|
|
41
55
|
updatedAt: Date | undefined;
|
|
42
56
|
createdAt: Date | undefined;
|
|
@@ -45,10 +59,14 @@ export declare const VIDEO_V1_PACKAGE_NAME = "video.v1";
|
|
|
45
59
|
export interface VideoServiceClient {
|
|
46
60
|
confirmVideoUpload(request: ConfirmVideoUploadRequest): Observable<ConfirmVideoUploadResponse>;
|
|
47
61
|
getAllVideosOwner(request: GetAllVideosOwnerRequest): Observable<GetAllVideosOwnerResponse>;
|
|
62
|
+
publicVideoBySlug(request: PublicVideoBySlugRequest): Observable<PublicVideoBySlugResponce>;
|
|
63
|
+
settingVideoBySlug(request: SettingVideoBySlugRequest): Observable<SettingVideoBySlugResponce>;
|
|
48
64
|
}
|
|
49
65
|
export interface VideoServiceController {
|
|
50
66
|
confirmVideoUpload(request: ConfirmVideoUploadRequest): Promise<ConfirmVideoUploadResponse> | Observable<ConfirmVideoUploadResponse> | ConfirmVideoUploadResponse;
|
|
51
67
|
getAllVideosOwner(request: GetAllVideosOwnerRequest): Promise<GetAllVideosOwnerResponse> | Observable<GetAllVideosOwnerResponse> | GetAllVideosOwnerResponse;
|
|
68
|
+
publicVideoBySlug(request: PublicVideoBySlugRequest): Promise<PublicVideoBySlugResponce> | Observable<PublicVideoBySlugResponce> | PublicVideoBySlugResponce;
|
|
69
|
+
settingVideoBySlug(request: SettingVideoBySlugRequest): Promise<SettingVideoBySlugResponce> | Observable<SettingVideoBySlugResponce> | SettingVideoBySlugResponce;
|
|
52
70
|
}
|
|
53
71
|
export declare function VideoServiceControllerMethods(): (constructor: Function) => void;
|
|
54
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
|
@@ -5,7 +5,10 @@ package video.v1;
|
|
|
5
5
|
import "google/protobuf/timestamp.proto";
|
|
6
6
|
service VideoService {
|
|
7
7
|
rpc ConfirmVideoUpload (ConfirmVideoUploadRequest) returns (ConfirmVideoUploadResponse);
|
|
8
|
+
|
|
8
9
|
rpc GetAllVideosOwner (GetAllVideosOwnerRequest) returns (GetAllVideosOwnerResponse);
|
|
10
|
+
rpc PublicVideoBySlug (PublicVideoBySlugRequest) returns (PublicVideoBySlugResponce);
|
|
11
|
+
rpc SettingVideoBySlug (SettingVideoBySlugRequest) returns (SettingVideoBySlugResponce);
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
message ConfirmVideoUploadRequest {
|
|
@@ -26,6 +29,23 @@ message GetAllVideosOwnerRequest {
|
|
|
26
29
|
message GetAllVideosOwnerResponse {
|
|
27
30
|
repeated Video videos = 1;
|
|
28
31
|
}
|
|
32
|
+
|
|
33
|
+
message PublicVideoBySlugRequest {
|
|
34
|
+
string slug = 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message PublicVideoBySlugResponce {
|
|
38
|
+
Video video = 1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message SettingVideoBySlugRequest {
|
|
42
|
+
string slug = 1;
|
|
43
|
+
string owner_id= 2;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message SettingVideoBySlugResponce{
|
|
47
|
+
Video video =1;
|
|
48
|
+
}
|
|
29
49
|
message Video {
|
|
30
50
|
string id = 1;
|
|
31
51
|
string owner_id = 2;
|
|
@@ -35,9 +55,10 @@ message Video {
|
|
|
35
55
|
Status status= 6;
|
|
36
56
|
string slug = 7;
|
|
37
57
|
optional string thumbnail_url = 8;
|
|
38
|
-
optional string
|
|
39
|
-
|
|
40
|
-
|
|
58
|
+
optional string duration_seconds = 9;
|
|
59
|
+
optional string path = 10;
|
|
60
|
+
google.protobuf.Timestamp updated_at = 11;
|
|
61
|
+
google.protobuf.Timestamp created_at = 12;
|
|
41
62
|
}
|
|
42
63
|
|
|
43
64
|
enum Access {
|