@dcl/protocol 1.0.0-6590614146.commit-db4a595 → 1.0.0-6725457366.commit-d6b2b77

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.
@@ -5,10 +5,12 @@ export const protobufPackage = "decentraland.sdk.components";
5
5
 
6
6
  export interface PBUiInputResult {
7
7
  value: string;
8
+ /** default: false */
9
+ isSubmit?: boolean | undefined;
8
10
  }
9
11
 
10
12
  function createBasePBUiInputResult(): PBUiInputResult {
11
- return { value: "" };
13
+ return { value: "", isSubmit: undefined };
12
14
  }
13
15
 
14
16
  export namespace PBUiInputResult {
@@ -16,6 +18,9 @@ export namespace PBUiInputResult {
16
18
  if (message.value !== "") {
17
19
  writer.uint32(10).string(message.value);
18
20
  }
21
+ if (message.isSubmit !== undefined) {
22
+ writer.uint32(16).bool(message.isSubmit);
23
+ }
19
24
  return writer;
20
25
  }
21
26
 
@@ -33,6 +38,13 @@ export namespace PBUiInputResult {
33
38
 
34
39
  message.value = reader.string();
35
40
  continue;
41
+ case 2:
42
+ if (tag !== 16) {
43
+ break;
44
+ }
45
+
46
+ message.isSubmit = reader.bool();
47
+ continue;
36
48
  }
37
49
  if ((tag & 7) === 4 || tag === 0) {
38
50
  break;
@@ -43,12 +55,16 @@ export namespace PBUiInputResult {
43
55
  }
44
56
 
45
57
  export function fromJSON(object: any): PBUiInputResult {
46
- return { value: isSet(object.value) ? String(object.value) : "" };
58
+ return {
59
+ value: isSet(object.value) ? String(object.value) : "",
60
+ isSubmit: isSet(object.isSubmit) ? Boolean(object.isSubmit) : undefined,
61
+ };
47
62
  }
48
63
 
49
64
  export function toJSON(message: PBUiInputResult): unknown {
50
65
  const obj: any = {};
51
66
  message.value !== undefined && (obj.value = message.value);
67
+ message.isSubmit !== undefined && (obj.isSubmit = message.isSubmit);
52
68
  return obj;
53
69
  }
54
70
 
@@ -59,6 +75,7 @@ export namespace PBUiInputResult {
59
75
  export function fromPartial<I extends Exact<DeepPartial<PBUiInputResult>, I>>(object: I): PBUiInputResult {
60
76
  const message = createBasePBUiInputResult();
61
77
  message.value = object.value ?? "";
78
+ message.isSubmit = object.isSubmit ?? undefined;
62
79
  return message;
63
80
  }
64
81
  }
@@ -0,0 +1,72 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+
4
+ export const protobufPackage = "google.protobuf";
5
+
6
+ /**
7
+ * A generic empty message that you can re-use to avoid defining duplicated
8
+ * empty messages in your APIs. A typical example is to use it as the request
9
+ * or the response type of an API method. For instance:
10
+ *
11
+ * service Foo {
12
+ * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
13
+ * }
14
+ */
15
+ export interface Empty {
16
+ }
17
+
18
+ function createBaseEmpty(): Empty {
19
+ return {};
20
+ }
21
+
22
+ export namespace Empty {
23
+ export function encode(_: Empty, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
24
+ return writer;
25
+ }
26
+
27
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): Empty {
28
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29
+ let end = length === undefined ? reader.len : reader.pos + length;
30
+ const message = createBaseEmpty();
31
+ while (reader.pos < end) {
32
+ const tag = reader.uint32();
33
+ switch (tag >>> 3) {
34
+ }
35
+ if ((tag & 7) === 4 || tag === 0) {
36
+ break;
37
+ }
38
+ reader.skipType(tag & 7);
39
+ }
40
+ return message;
41
+ }
42
+
43
+ export function fromJSON(_: any): Empty {
44
+ return {};
45
+ }
46
+
47
+ export function toJSON(_: Empty): unknown {
48
+ const obj: any = {};
49
+ return obj;
50
+ }
51
+
52
+ export function create<I extends Exact<DeepPartial<Empty>, I>>(base?: I): Empty {
53
+ return Empty.fromPartial(base ?? {});
54
+ }
55
+
56
+ export function fromPartial<I extends Exact<DeepPartial<Empty>, I>>(_: I): Empty {
57
+ const message = createBaseEmpty();
58
+ return message;
59
+ }
60
+ }
61
+
62
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
63
+
64
+ export type DeepPartial<T> = T extends Builtin ? T
65
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
66
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
67
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
68
+ : Partial<T>;
69
+
70
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
71
+ export type Exact<P, I extends P> = P extends Builtin ? P
72
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+
3
+ export const protobufPackage = "decentraland.quests";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-6590614146.commit-db4a595",
3
+ "version": "1.0.0-6725457366.commit-d6b2b77",
4
4
  "description": "",
5
5
  "repository": "decentraland/protocol.git",
6
6
  "homepage": "https://github.com/decentraland/protocol#readme",
@@ -29,5 +29,5 @@
29
29
  "out-js",
30
30
  "public"
31
31
  ],
32
- "commit": "db4a595738be80534c946b7c7615fd4b270a161e"
32
+ "commit": "d6b2b77a0b41121ec754642ee378d7a892132989"
33
33
  }
@@ -8,4 +8,5 @@ option (common.ecs_component_id) = 1095;
8
8
 
9
9
  message PBUiInputResult {
10
10
  string value = 1;
11
+ optional bool is_submit = 2; // default: false
11
12
  }
@@ -0,0 +1,5 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.quests;
4
+
5
+ import public "decentraland/quests/definitions.proto";