@fraym/proto 0.9.0 → 0.9.1
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.
|
@@ -10,6 +10,12 @@ export interface LockingRequest {
|
|
|
10
10
|
} | {
|
|
11
11
|
$case: "lockLocal";
|
|
12
12
|
lockLocal: LockingRequest_LockLocal;
|
|
13
|
+
} | {
|
|
14
|
+
$case: "unlockGlobal";
|
|
15
|
+
unlockGlobal: LockingRequest_UnlockGlobal;
|
|
16
|
+
} | {
|
|
17
|
+
$case: "unlockLocal";
|
|
18
|
+
unlockLocal: LockingRequest_UnlockLocal;
|
|
13
19
|
} | undefined;
|
|
14
20
|
}
|
|
15
21
|
export interface LockingRequest_Init {
|
|
@@ -22,6 +22,12 @@ exports.LockingRequest = {
|
|
|
22
22
|
case "lockLocal":
|
|
23
23
|
exports.LockingRequest_LockLocal.encode(message.payload.lockLocal, writer.uint32(26).fork()).ldelim();
|
|
24
24
|
break;
|
|
25
|
+
case "unlockGlobal":
|
|
26
|
+
exports.LockingRequest_UnlockGlobal.encode(message.payload.unlockGlobal, writer.uint32(34).fork()).ldelim();
|
|
27
|
+
break;
|
|
28
|
+
case "unlockLocal":
|
|
29
|
+
exports.LockingRequest_UnlockLocal.encode(message.payload.unlockLocal, writer.uint32(42).fork()).ldelim();
|
|
30
|
+
break;
|
|
25
31
|
}
|
|
26
32
|
return writer;
|
|
27
33
|
},
|
|
@@ -53,6 +59,24 @@ exports.LockingRequest = {
|
|
|
53
59
|
}
|
|
54
60
|
message.payload = { $case: "lockLocal", lockLocal: exports.LockingRequest_LockLocal.decode(reader, reader.uint32()) };
|
|
55
61
|
continue;
|
|
62
|
+
case 4:
|
|
63
|
+
if (tag !== 34) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.payload = {
|
|
67
|
+
$case: "unlockGlobal",
|
|
68
|
+
unlockGlobal: exports.LockingRequest_UnlockGlobal.decode(reader, reader.uint32()),
|
|
69
|
+
};
|
|
70
|
+
continue;
|
|
71
|
+
case 5:
|
|
72
|
+
if (tag !== 42) {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
message.payload = {
|
|
76
|
+
$case: "unlockLocal",
|
|
77
|
+
unlockLocal: exports.LockingRequest_UnlockLocal.decode(reader, reader.uint32()),
|
|
78
|
+
};
|
|
79
|
+
continue;
|
|
56
80
|
}
|
|
57
81
|
if ((tag & 7) === 4 || tag === 0) {
|
|
58
82
|
break;
|
|
@@ -69,11 +93,15 @@ exports.LockingRequest = {
|
|
|
69
93
|
? { $case: "lockGlobal", lockGlobal: exports.LockingRequest_LockGlobal.fromJSON(object.lockGlobal) }
|
|
70
94
|
: isSet(object.lockLocal)
|
|
71
95
|
? { $case: "lockLocal", lockLocal: exports.LockingRequest_LockLocal.fromJSON(object.lockLocal) }
|
|
72
|
-
:
|
|
96
|
+
: isSet(object.unlockGlobal)
|
|
97
|
+
? { $case: "unlockGlobal", unlockGlobal: exports.LockingRequest_UnlockGlobal.fromJSON(object.unlockGlobal) }
|
|
98
|
+
: isSet(object.unlockLocal)
|
|
99
|
+
? { $case: "unlockLocal", unlockLocal: exports.LockingRequest_UnlockLocal.fromJSON(object.unlockLocal) }
|
|
100
|
+
: undefined,
|
|
73
101
|
};
|
|
74
102
|
},
|
|
75
103
|
toJSON(message) {
|
|
76
|
-
var _a, _b, _c;
|
|
104
|
+
var _a, _b, _c, _d, _e;
|
|
77
105
|
const obj = {};
|
|
78
106
|
if (((_a = message.payload) === null || _a === void 0 ? void 0 : _a.$case) === "init") {
|
|
79
107
|
obj.init = exports.LockingRequest_Init.toJSON(message.payload.init);
|
|
@@ -84,13 +112,19 @@ exports.LockingRequest = {
|
|
|
84
112
|
if (((_c = message.payload) === null || _c === void 0 ? void 0 : _c.$case) === "lockLocal") {
|
|
85
113
|
obj.lockLocal = exports.LockingRequest_LockLocal.toJSON(message.payload.lockLocal);
|
|
86
114
|
}
|
|
115
|
+
if (((_d = message.payload) === null || _d === void 0 ? void 0 : _d.$case) === "unlockGlobal") {
|
|
116
|
+
obj.unlockGlobal = exports.LockingRequest_UnlockGlobal.toJSON(message.payload.unlockGlobal);
|
|
117
|
+
}
|
|
118
|
+
if (((_e = message.payload) === null || _e === void 0 ? void 0 : _e.$case) === "unlockLocal") {
|
|
119
|
+
obj.unlockLocal = exports.LockingRequest_UnlockLocal.toJSON(message.payload.unlockLocal);
|
|
120
|
+
}
|
|
87
121
|
return obj;
|
|
88
122
|
},
|
|
89
123
|
create(base) {
|
|
90
124
|
return exports.LockingRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
91
125
|
},
|
|
92
126
|
fromPartial(object) {
|
|
93
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
127
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
94
128
|
const message = createBaseLockingRequest();
|
|
95
129
|
if (((_a = object.payload) === null || _a === void 0 ? void 0 : _a.$case) === "init" && ((_b = object.payload) === null || _b === void 0 ? void 0 : _b.init) !== undefined && ((_c = object.payload) === null || _c === void 0 ? void 0 : _c.init) !== null) {
|
|
96
130
|
message.payload = { $case: "init", init: exports.LockingRequest_Init.fromPartial(object.payload.init) };
|
|
@@ -111,6 +145,22 @@ exports.LockingRequest = {
|
|
|
111
145
|
lockLocal: exports.LockingRequest_LockLocal.fromPartial(object.payload.lockLocal),
|
|
112
146
|
};
|
|
113
147
|
}
|
|
148
|
+
if (((_k = object.payload) === null || _k === void 0 ? void 0 : _k.$case) === "unlockGlobal" &&
|
|
149
|
+
((_l = object.payload) === null || _l === void 0 ? void 0 : _l.unlockGlobal) !== undefined &&
|
|
150
|
+
((_m = object.payload) === null || _m === void 0 ? void 0 : _m.unlockGlobal) !== null) {
|
|
151
|
+
message.payload = {
|
|
152
|
+
$case: "unlockGlobal",
|
|
153
|
+
unlockGlobal: exports.LockingRequest_UnlockGlobal.fromPartial(object.payload.unlockGlobal),
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
if (((_o = object.payload) === null || _o === void 0 ? void 0 : _o.$case) === "unlockLocal" &&
|
|
157
|
+
((_p = object.payload) === null || _p === void 0 ? void 0 : _p.unlockLocal) !== undefined &&
|
|
158
|
+
((_q = object.payload) === null || _q === void 0 ? void 0 : _q.unlockLocal) !== null) {
|
|
159
|
+
message.payload = {
|
|
160
|
+
$case: "unlockLocal",
|
|
161
|
+
unlockLocal: exports.LockingRequest_UnlockLocal.fromPartial(object.payload.unlockLocal),
|
|
162
|
+
};
|
|
163
|
+
}
|
|
114
164
|
return message;
|
|
115
165
|
},
|
|
116
166
|
};
|