@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.
@@ -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
- export interface MessageFns<T> {
206
+ interface MessageFns<T> {
209
207
  }
210
- export interface FieldMaskWrapperFns {
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 = exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.protobufPackage = void 0;
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
  }
@@ -45,13 +45,13 @@ export interface UpdateSettingsVideoRequst {
45
45
  slug: string;
46
46
  ownerId: string;
47
47
  video: Video | undefined;
48
- updateMask: Mask | undefined;
48
+ updateMask: FieldMask | undefined;
49
49
  }
50
50
  export interface UpdateSettingsVideoResponse {
51
51
  video: Video | undefined;
52
52
  }
53
- export interface Mask {
54
- paths: string[] | undefined;
53
+ export interface FieldMask {
54
+ paths: string[];
55
55
  }
56
56
  export interface Video {
57
57
  id: string;
@@ -0,0 +1,7 @@
1
+ export interface FieldMask {
2
+ paths: string[];
3
+ }
4
+ export declare const FieldMask: {
5
+ fromJSON(object: any): FieldMask;
6
+ toJSON(message: FieldMask): unknown;
7
+ };
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trash-streamers/contracts",
3
- "version": "1.1.66",
3
+ "version": "1.1.67",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "scripts": {
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
- import "google/protobuf/field_mask.proto";
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
- Mask update_mask = 4;
56
+ FieldMask update_mask = 4;
57
57
  }
58
58
 
59
59
  message UpdateSettingsVideoResponse {
60
60
  Video video = 1;
61
61
  }
62
62
 
63
- message Mask {
64
- google.protobuf.FieldMask paths = 1;
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
- };