@trash-streamers/contracts 1.1.64 → 1.1.66

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.
@@ -45,11 +45,14 @@ export interface UpdateSettingsVideoRequst {
45
45
  slug: string;
46
46
  ownerId: string;
47
47
  video: Video | undefined;
48
- updateMask: string[] | undefined;
48
+ updateMask: Mask | undefined;
49
49
  }
50
50
  export interface UpdateSettingsVideoResponse {
51
51
  video: Video | undefined;
52
52
  }
53
+ export interface Mask {
54
+ paths: string[] | undefined;
55
+ }
53
56
  export interface Video {
54
57
  id: string;
55
58
  ownerId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trash-streamers/contracts",
3
- "version": "1.1.64",
3
+ "version": "1.1.66",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "scripts": {
@@ -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
- google.protobuf.FieldMask update_mask = 4;
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;