@trash-streamers/contracts 1.1.64 → 1.1.65
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/account.d.ts +3 -2
- package/dist/gen/ts/account.js +0 -9
- package/dist/gen/ts/media.d.ts +2 -1
- package/dist/gen/ts/media.js +0 -9
- package/dist/gen/ts/users.d.ts +3 -2
- package/dist/gen/ts/users.js +0 -9
- package/dist/gen/ts/video.d.ts +7 -3
- package/dist/gen/ts/video.js +0 -9
- package/package.json +2 -2
- package/proto/utils/field_mask_custom.ts +15 -0
- package/proto/video.proto +5 -1
package/dist/gen/ts/account.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
+
import { Timestamp } from "./google/protobuf/timestamp";
|
|
2
3
|
export declare const protobufPackage = "account.v1";
|
|
3
4
|
export declare enum Role {
|
|
4
5
|
USER = "USER",
|
|
@@ -55,8 +56,8 @@ export interface Account {
|
|
|
55
56
|
isEmailVerified: boolean;
|
|
56
57
|
role: Role;
|
|
57
58
|
userId: string;
|
|
58
|
-
createdAt:
|
|
59
|
-
updatedAt:
|
|
59
|
+
createdAt: Timestamp | undefined;
|
|
60
|
+
updatedAt: Timestamp | undefined;
|
|
60
61
|
}
|
|
61
62
|
export declare const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
|
|
62
63
|
export interface AccountServiceClient {
|
package/dist/gen/ts/account.js
CHANGED
|
@@ -9,7 +9,6 @@ exports.ACCOUNT_SERVICE_NAME = exports.ACCOUNT_V1_PACKAGE_NAME = exports.Role =
|
|
|
9
9
|
exports.AccountServiceControllerMethods = AccountServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
const protobufjs_1 = require("protobufjs");
|
|
13
12
|
exports.protobufPackage = "account.v1";
|
|
14
13
|
var Role;
|
|
15
14
|
(function (Role) {
|
|
@@ -18,14 +17,6 @@ var Role;
|
|
|
18
17
|
Role["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
19
18
|
})(Role || (exports.Role = Role = {}));
|
|
20
19
|
exports.ACCOUNT_V1_PACKAGE_NAME = "account.v1";
|
|
21
|
-
protobufjs_1.wrappers[".google.protobuf.Timestamp"] = {
|
|
22
|
-
fromObject(value) {
|
|
23
|
-
return { seconds: value.getTime() / 1000, nanos: (value.getTime() % 1000) * 1e6 };
|
|
24
|
-
},
|
|
25
|
-
toObject(message) {
|
|
26
|
-
return new Date(message.seconds * 1000 + message.nanos / 1e6);
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
20
|
function AccountServiceControllerMethods() {
|
|
30
21
|
return function (constructor) {
|
|
31
22
|
const grpcMethods = [
|
package/dist/gen/ts/media.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
+
import { Timestamp } from "./google/protobuf/timestamp";
|
|
2
3
|
export declare const protobufPackage = "media.v1";
|
|
3
4
|
export declare enum Folder {
|
|
4
5
|
AVATAR = "AVATAR",
|
|
@@ -15,7 +16,7 @@ export interface UploadImageRequest {
|
|
|
15
16
|
}
|
|
16
17
|
export interface UploadImageResponse {
|
|
17
18
|
key: string;
|
|
18
|
-
updatedAt:
|
|
19
|
+
updatedAt: Timestamp | undefined;
|
|
19
20
|
}
|
|
20
21
|
export interface GetImageRequest {
|
|
21
22
|
key: string;
|
package/dist/gen/ts/media.js
CHANGED
|
@@ -9,7 +9,6 @@ exports.MEDIA_SERVICE_NAME = exports.MEDIA_V1_PACKAGE_NAME = exports.Folder = ex
|
|
|
9
9
|
exports.MediaServiceControllerMethods = MediaServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
const protobufjs_1 = require("protobufjs");
|
|
13
12
|
exports.protobufPackage = "media.v1";
|
|
14
13
|
var Folder;
|
|
15
14
|
(function (Folder) {
|
|
@@ -18,14 +17,6 @@ var Folder;
|
|
|
18
17
|
Folder["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
19
18
|
})(Folder || (exports.Folder = Folder = {}));
|
|
20
19
|
exports.MEDIA_V1_PACKAGE_NAME = "media.v1";
|
|
21
|
-
protobufjs_1.wrappers[".google.protobuf.Timestamp"] = {
|
|
22
|
-
fromObject(value) {
|
|
23
|
-
return { seconds: value.getTime() / 1000, nanos: (value.getTime() % 1000) * 1e6 };
|
|
24
|
-
},
|
|
25
|
-
toObject(message) {
|
|
26
|
-
return new Date(message.seconds * 1000 + message.nanos / 1e6);
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
20
|
function MediaServiceControllerMethods() {
|
|
30
21
|
return function (constructor) {
|
|
31
22
|
const grpcMethods = ["uploadImage", "getImage", "getVideoUploadTicket"];
|
package/dist/gen/ts/users.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
+
import { Timestamp } from "./google/protobuf/timestamp";
|
|
2
3
|
export declare const protobufPackage = "users.v1";
|
|
3
4
|
export interface GetMeRequest {
|
|
4
5
|
id: string;
|
|
@@ -38,8 +39,8 @@ export interface User {
|
|
|
38
39
|
userName?: string | undefined;
|
|
39
40
|
avatar?: string | undefined;
|
|
40
41
|
displayName?: string | undefined;
|
|
41
|
-
updatedAt:
|
|
42
|
-
createdAt:
|
|
42
|
+
updatedAt: Timestamp | undefined;
|
|
43
|
+
createdAt: Timestamp | undefined;
|
|
43
44
|
}
|
|
44
45
|
export declare const USERS_V1_PACKAGE_NAME = "users.v1";
|
|
45
46
|
export interface UsersServiceClient {
|
package/dist/gen/ts/users.js
CHANGED
|
@@ -9,17 +9,8 @@ exports.USERS_SERVICE_NAME = exports.USERS_V1_PACKAGE_NAME = exports.protobufPac
|
|
|
9
9
|
exports.UsersServiceControllerMethods = UsersServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
const protobufjs_1 = require("protobufjs");
|
|
13
12
|
exports.protobufPackage = "users.v1";
|
|
14
13
|
exports.USERS_V1_PACKAGE_NAME = "users.v1";
|
|
15
|
-
protobufjs_1.wrappers[".google.protobuf.Timestamp"] = {
|
|
16
|
-
fromObject(value) {
|
|
17
|
-
return { seconds: value.getTime() / 1000, nanos: (value.getTime() % 1000) * 1e6 };
|
|
18
|
-
},
|
|
19
|
-
toObject(message) {
|
|
20
|
-
return new Date(message.seconds * 1000 + message.nanos / 1e6);
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
14
|
function UsersServiceControllerMethods() {
|
|
24
15
|
return function (constructor) {
|
|
25
16
|
const grpcMethods = ["getMe", "getUsers", "createUser", "patchUser", "deleteAvatarProfile"];
|
package/dist/gen/ts/video.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
+
import { Timestamp } from "./google/protobuf/timestamp";
|
|
2
3
|
export declare const protobufPackage = "video.v1";
|
|
3
4
|
export declare enum Access {
|
|
4
5
|
PUBLIC = "PUBLIC",
|
|
@@ -45,11 +46,14 @@ export interface UpdateSettingsVideoRequst {
|
|
|
45
46
|
slug: string;
|
|
46
47
|
ownerId: string;
|
|
47
48
|
video: Video | undefined;
|
|
48
|
-
updateMask:
|
|
49
|
+
updateMask: Mask | undefined;
|
|
49
50
|
}
|
|
50
51
|
export interface UpdateSettingsVideoResponse {
|
|
51
52
|
video: Video | undefined;
|
|
52
53
|
}
|
|
54
|
+
export interface Mask {
|
|
55
|
+
paths: string[] | undefined;
|
|
56
|
+
}
|
|
53
57
|
export interface Video {
|
|
54
58
|
id: string;
|
|
55
59
|
ownerId: string;
|
|
@@ -61,8 +65,8 @@ export interface Video {
|
|
|
61
65
|
thumbnailUrl?: string | undefined;
|
|
62
66
|
durationSeconds?: string | undefined;
|
|
63
67
|
path?: string | undefined;
|
|
64
|
-
updatedAt:
|
|
65
|
-
createdAt:
|
|
68
|
+
updatedAt: Timestamp | undefined;
|
|
69
|
+
createdAt: Timestamp | undefined;
|
|
66
70
|
}
|
|
67
71
|
export declare const VIDEO_V1_PACKAGE_NAME = "video.v1";
|
|
68
72
|
export interface VideoServiceClient {
|
package/dist/gen/ts/video.js
CHANGED
|
@@ -9,7 +9,6 @@ exports.VIDEO_SERVICE_NAME = exports.VIDEO_V1_PACKAGE_NAME = exports.Status = ex
|
|
|
9
9
|
exports.VideoServiceControllerMethods = VideoServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
const protobufjs_1 = require("protobufjs");
|
|
13
12
|
exports.protobufPackage = "video.v1";
|
|
14
13
|
var Access;
|
|
15
14
|
(function (Access) {
|
|
@@ -27,14 +26,6 @@ var Status;
|
|
|
27
26
|
Status["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
28
27
|
})(Status || (exports.Status = Status = {}));
|
|
29
28
|
exports.VIDEO_V1_PACKAGE_NAME = "video.v1";
|
|
30
|
-
protobufjs_1.wrappers[".google.protobuf.Timestamp"] = {
|
|
31
|
-
fromObject(value) {
|
|
32
|
-
return { seconds: value.getTime() / 1000, nanos: (value.getTime() % 1000) * 1e6 };
|
|
33
|
-
},
|
|
34
|
-
toObject(message) {
|
|
35
|
-
return new Date(message.seconds * 1000 + message.nanos / 1e6);
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
29
|
function VideoServiceControllerMethods() {
|
|
39
30
|
return function (constructor) {
|
|
40
31
|
const grpcMethods = [
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trash-streamers/contracts",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.65",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc -p tsconfig.build.json",
|
|
8
|
-
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./src/gen/ts --ts_proto_opt=nestJs=true,package=omit,stringEnums=true
|
|
8
|
+
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./src/gen/ts --ts_proto_opt=nestJs=true,useJsonWireFormat=true,package=omit,stringEnums=true"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// field_mask_custom.ts
|
|
2
|
+
export interface FieldMask {
|
|
3
|
+
paths: string[];
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const FieldMask = {
|
|
7
|
+
fromJSON(object: any): FieldMask {
|
|
8
|
+
return {
|
|
9
|
+
paths: Array.isArray(object?.paths) ? object.paths.map(String) : [],
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
toJSON(message: FieldMask): unknown {
|
|
13
|
+
return { paths: message.paths };
|
|
14
|
+
},
|
|
15
|
+
};
|
package/proto/video.proto
CHANGED
|
@@ -53,12 +53,16 @@ message UpdateSettingsVideoRequst {
|
|
|
53
53
|
string slug = 1;
|
|
54
54
|
string owner_id = 2;
|
|
55
55
|
Video video = 3;
|
|
56
|
-
|
|
56
|
+
Mask update_mask = 4;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
message UpdateSettingsVideoResponse {
|
|
60
60
|
Video video = 1;
|
|
61
61
|
}
|
|
62
|
+
|
|
63
|
+
message Mask {
|
|
64
|
+
google.protobuf.FieldMask paths = 1;
|
|
65
|
+
}
|
|
62
66
|
message Video {
|
|
63
67
|
string id = 1;
|
|
64
68
|
string owner_id = 2;
|