@trash-streamers/contracts 1.1.66 → 1.1.67
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/google/protobuf/field_mask.d.ts +3 -4
- package/dist/gen/ts/google/protobuf/field_mask.js +1 -4
- package/dist/gen/ts/video.d.ts +3 -3
- package/dist/utils/field_mask_custom.d.ts +7 -0
- package/dist/utils/field_mask_custom.js +15 -0
- package/package.json +1 -1
- package/proto/video.proto +5 -4
- package/proto/utils/field_mask_custom.ts +0 -15
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const protobufPackage = "google.protobuf";
|
|
2
1
|
/**
|
|
3
2
|
* `FieldMask` represents a set of symbolic field paths, for example:
|
|
4
3
|
*
|
|
@@ -203,11 +202,11 @@ export interface FieldMask {
|
|
|
203
202
|
/** The set of field mask paths. */
|
|
204
203
|
paths: string[];
|
|
205
204
|
}
|
|
206
|
-
export declare const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
207
205
|
export declare const FieldMask: MessageFns<FieldMask> & FieldMaskWrapperFns;
|
|
208
|
-
|
|
206
|
+
interface MessageFns<T> {
|
|
209
207
|
}
|
|
210
|
-
|
|
208
|
+
interface FieldMaskWrapperFns {
|
|
211
209
|
wrap(paths: string[]): FieldMask;
|
|
212
210
|
unwrap(message: FieldMask): string[];
|
|
213
211
|
}
|
|
212
|
+
export {};
|
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
// protoc v6.33.5
|
|
6
6
|
// source: google/protobuf/field_mask.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.FieldMask =
|
|
9
|
-
/* eslint-disable */
|
|
10
|
-
exports.protobufPackage = "google.protobuf";
|
|
11
|
-
exports.GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
8
|
+
exports.FieldMask = void 0;
|
|
12
9
|
function createBaseFieldMask() {
|
|
13
10
|
return { paths: [] };
|
|
14
11
|
}
|
package/dist/gen/ts/video.d.ts
CHANGED
|
@@ -45,13 +45,13 @@ export interface UpdateSettingsVideoRequst {
|
|
|
45
45
|
slug: string;
|
|
46
46
|
ownerId: string;
|
|
47
47
|
video: Video | undefined;
|
|
48
|
-
updateMask:
|
|
48
|
+
updateMask: FieldMask | undefined;
|
|
49
49
|
}
|
|
50
50
|
export interface UpdateSettingsVideoResponse {
|
|
51
51
|
video: Video | undefined;
|
|
52
52
|
}
|
|
53
|
-
export interface
|
|
54
|
-
paths: string[]
|
|
53
|
+
export interface FieldMask {
|
|
54
|
+
paths: string[];
|
|
55
55
|
}
|
|
56
56
|
export interface Video {
|
|
57
57
|
id: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FieldMask = void 0;
|
|
4
|
+
exports.FieldMask = {
|
|
5
|
+
fromJSON(object) {
|
|
6
|
+
console.log("я тут");
|
|
7
|
+
return {
|
|
8
|
+
paths: Array.isArray(object?.paths) ? object.paths.map(String) : [],
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
toJSON(message) {
|
|
12
|
+
console.log("я тут");
|
|
13
|
+
return { paths: message.paths };
|
|
14
|
+
},
|
|
15
|
+
};
|
package/package.json
CHANGED
package/proto/video.proto
CHANGED
|
@@ -3,7 +3,7 @@ syntax = "proto3";
|
|
|
3
3
|
package video.v1;
|
|
4
4
|
|
|
5
5
|
import "google/protobuf/timestamp.proto";
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
service VideoService {
|
|
8
8
|
rpc ConfirmVideoUpload (ConfirmVideoUploadRequest) returns (ConfirmVideoUploadResponse);
|
|
9
9
|
|
|
@@ -53,16 +53,17 @@ message UpdateSettingsVideoRequst {
|
|
|
53
53
|
string slug = 1;
|
|
54
54
|
string owner_id = 2;
|
|
55
55
|
Video video = 3;
|
|
56
|
-
|
|
56
|
+
FieldMask update_mask = 4;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
message UpdateSettingsVideoResponse {
|
|
60
60
|
Video video = 1;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
message
|
|
64
|
-
|
|
63
|
+
message FieldMask {
|
|
64
|
+
repeated string paths = 1;
|
|
65
65
|
}
|
|
66
|
+
|
|
66
67
|
message Video {
|
|
67
68
|
string id = 1;
|
|
68
69
|
string owner_id = 2;
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
};
|