@trash-streamers/contracts 1.1.83 → 1.1.85
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 +16 -15
- package/dist/gen/ts/video.js +2 -2
- package/package.json +1 -1
- package/proto/video.proto +14 -14
package/dist/gen/ts/video.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
-
import { FieldMask
|
|
2
|
+
import { FieldMask } from "./common";
|
|
3
3
|
export declare const protobufPackage = "video.v1";
|
|
4
4
|
export declare enum Access {
|
|
5
5
|
PUBLIC = "PUBLIC",
|
|
@@ -25,22 +25,24 @@ export interface ConfirmVideoUploadResponse {
|
|
|
25
25
|
}
|
|
26
26
|
export interface GetAllVideosOwnerRequest {
|
|
27
27
|
ownerId: string;
|
|
28
|
-
selectMask:
|
|
28
|
+
selectMask: FieldMask | undefined;
|
|
29
29
|
}
|
|
30
30
|
export interface GetAllVideosOwnerResponse {
|
|
31
31
|
videos: Video[];
|
|
32
32
|
}
|
|
33
|
-
export interface
|
|
33
|
+
export interface GetPublicVideoBySlugRequest {
|
|
34
34
|
slug: string;
|
|
35
|
+
selectMask: FieldMask | undefined;
|
|
35
36
|
}
|
|
36
|
-
export interface
|
|
37
|
+
export interface GetPublicVideoBySlugResponce {
|
|
37
38
|
video: Video | undefined;
|
|
38
39
|
}
|
|
39
|
-
export interface
|
|
40
|
+
export interface GetSettingVideoBySlugRequest {
|
|
40
41
|
slug: string;
|
|
41
42
|
ownerId: string;
|
|
43
|
+
selectMask: FieldMask | undefined;
|
|
42
44
|
}
|
|
43
|
-
export interface
|
|
45
|
+
export interface GetSettingVideoBySlugResponce {
|
|
44
46
|
video: Video | undefined;
|
|
45
47
|
}
|
|
46
48
|
export interface UpdateSettingsVideoRequest {
|
|
@@ -53,11 +55,6 @@ export interface UpdateSettingsVideoRequest {
|
|
|
53
55
|
export interface UpdateSettingsVideoResponse {
|
|
54
56
|
video: Video | undefined;
|
|
55
57
|
}
|
|
56
|
-
export interface FieldMask {
|
|
57
|
-
paths: string[];
|
|
58
|
-
}
|
|
59
|
-
export interface CheckAvailabilityCategoryRequest {
|
|
60
|
-
}
|
|
61
58
|
export interface Video {
|
|
62
59
|
id: string;
|
|
63
60
|
ownerId: string;
|
|
@@ -71,20 +68,24 @@ export interface Video {
|
|
|
71
68
|
path?: string | undefined;
|
|
72
69
|
updatedAt: Date | undefined;
|
|
73
70
|
createdAt: Date | undefined;
|
|
71
|
+
categories: VideoCategory[];
|
|
72
|
+
}
|
|
73
|
+
export interface VideoCategory {
|
|
74
|
+
id: string;
|
|
74
75
|
}
|
|
75
76
|
export declare const VIDEO_V1_PACKAGE_NAME = "video.v1";
|
|
76
77
|
export interface VideoServiceClient {
|
|
77
78
|
confirmVideoUpload(request: ConfirmVideoUploadRequest): Observable<ConfirmVideoUploadResponse>;
|
|
78
79
|
getAllVideosOwner(request: GetAllVideosOwnerRequest): Observable<GetAllVideosOwnerResponse>;
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
getPublicVideoBySlug(request: GetPublicVideoBySlugRequest): Observable<GetPublicVideoBySlugResponce>;
|
|
81
|
+
getSettingVideoBySlug(request: GetSettingVideoBySlugRequest): Observable<GetSettingVideoBySlugResponce>;
|
|
81
82
|
updateSettingsVideo(request: UpdateSettingsVideoRequest): Observable<UpdateSettingsVideoResponse>;
|
|
82
83
|
}
|
|
83
84
|
export interface VideoServiceController {
|
|
84
85
|
confirmVideoUpload(request: ConfirmVideoUploadRequest): Promise<ConfirmVideoUploadResponse> | Observable<ConfirmVideoUploadResponse> | ConfirmVideoUploadResponse;
|
|
85
86
|
getAllVideosOwner(request: GetAllVideosOwnerRequest): Promise<GetAllVideosOwnerResponse> | Observable<GetAllVideosOwnerResponse> | GetAllVideosOwnerResponse;
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
getPublicVideoBySlug(request: GetPublicVideoBySlugRequest): Promise<GetPublicVideoBySlugResponce> | Observable<GetPublicVideoBySlugResponce> | GetPublicVideoBySlugResponce;
|
|
88
|
+
getSettingVideoBySlug(request: GetSettingVideoBySlugRequest): Promise<GetSettingVideoBySlugResponce> | Observable<GetSettingVideoBySlugResponce> | GetSettingVideoBySlugResponce;
|
|
88
89
|
updateSettingsVideo(request: UpdateSettingsVideoRequest): Promise<UpdateSettingsVideoResponse> | Observable<UpdateSettingsVideoResponse> | UpdateSettingsVideoResponse;
|
|
89
90
|
}
|
|
90
91
|
export declare function VideoServiceControllerMethods(): (constructor: Function) => void;
|
package/dist/gen/ts/video.js
CHANGED
|
@@ -40,8 +40,8 @@ function VideoServiceControllerMethods() {
|
|
|
40
40
|
const grpcMethods = [
|
|
41
41
|
"confirmVideoUpload",
|
|
42
42
|
"getAllVideosOwner",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
43
|
+
"getPublicVideoBySlug",
|
|
44
|
+
"getSettingVideoBySlug",
|
|
45
45
|
"updateSettingsVideo",
|
|
46
46
|
];
|
|
47
47
|
for (const method of grpcMethods) {
|
package/package.json
CHANGED
package/proto/video.proto
CHANGED
|
@@ -9,8 +9,8 @@ service VideoService {
|
|
|
9
9
|
rpc ConfirmVideoUpload (ConfirmVideoUploadRequest) returns (ConfirmVideoUploadResponse);
|
|
10
10
|
|
|
11
11
|
rpc GetAllVideosOwner (GetAllVideosOwnerRequest) returns (GetAllVideosOwnerResponse);
|
|
12
|
-
rpc
|
|
13
|
-
rpc
|
|
12
|
+
rpc GetPublicVideoBySlug (GetPublicVideoBySlugRequest) returns (GetPublicVideoBySlugResponce);
|
|
13
|
+
rpc GetSettingVideoBySlug (GetSettingVideoBySlugRequest) returns (GetSettingVideoBySlugResponce);
|
|
14
14
|
rpc UpdateSettingsVideo (UpdateSettingsVideoRequest) returns (UpdateSettingsVideoResponse);
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -34,20 +34,22 @@ message GetAllVideosOwnerResponse {
|
|
|
34
34
|
repeated Video videos = 1;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
message
|
|
37
|
+
message GetPublicVideoBySlugRequest {
|
|
38
38
|
string slug = 1;
|
|
39
|
+
common.v1.FieldMask select_mask = 2;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
message
|
|
42
|
+
message GetPublicVideoBySlugResponce {
|
|
42
43
|
Video video = 1;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
message
|
|
46
|
+
message GetSettingVideoBySlugRequest {
|
|
46
47
|
string slug = 1;
|
|
47
48
|
string owner_id= 2;
|
|
49
|
+
common.v1.FieldMask select_mask = 3;
|
|
48
50
|
}
|
|
49
51
|
|
|
50
|
-
message
|
|
52
|
+
message GetSettingVideoBySlugResponce{
|
|
51
53
|
Video video =1;
|
|
52
54
|
}
|
|
53
55
|
|
|
@@ -55,7 +57,7 @@ message UpdateSettingsVideoRequest {
|
|
|
55
57
|
string slug = 1;
|
|
56
58
|
string owner_id = 2;
|
|
57
59
|
Video video = 3;
|
|
58
|
-
FieldMask update_mask = 4;
|
|
60
|
+
common.v1.FieldMask update_mask = 4;
|
|
59
61
|
repeated string category_ids = 5;
|
|
60
62
|
}
|
|
61
63
|
|
|
@@ -63,13 +65,6 @@ message UpdateSettingsVideoResponse {
|
|
|
63
65
|
Video video = 1;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
|
-
message FieldMask {
|
|
67
|
-
repeated string paths = 1;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
message CheckAvailabilityCategoryRequest {
|
|
71
|
-
|
|
72
|
-
}
|
|
73
68
|
message Video {
|
|
74
69
|
string id = 1;
|
|
75
70
|
string owner_id = 2;
|
|
@@ -83,6 +78,11 @@ message Video {
|
|
|
83
78
|
optional string path = 10;
|
|
84
79
|
google.protobuf.Timestamp updated_at = 11;
|
|
85
80
|
google.protobuf.Timestamp created_at = 12;
|
|
81
|
+
repeated VideoCategory categories = 13;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message VideoCategory {
|
|
85
|
+
string id = 1;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
enum Access {
|