@dcl/protocol 1.0.0-13923489786.commit-1f4cb5e → 1.0.0-14033082444.commit-84b403d
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/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +30 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +312 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +22 -306
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +75 -1552
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +379 -1
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +945 -2589
- package/package.json +2 -2
- package/proto/decentraland/sdk/components/ui_transform.proto +28 -1
- package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
- package/proto/decentraland/social_service/v2/social_service_v2.proto +9 -119
- package/proto/decentraland/sdk/components/light_source.proto +0 -35
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SocialServiceDefinition = exports.
|
|
6
|
+
exports.SocialServiceDefinition = exports.GetFriendshipStatusResponse_Ok = exports.GetFriendshipStatusResponse = exports.GetFriendshipStatusPayload = exports.FriendshipUpdate_CancelResponse = exports.FriendshipUpdate_DeleteResponse = exports.FriendshipUpdate_RejectResponse = exports.FriendshipUpdate_AcceptResponse = exports.FriendshipUpdate = exports.UpsertFriendshipResponse_Accepted = exports.UpsertFriendshipResponse = exports.PaginatedFriendshipRequestsResponse = exports.PaginatedUsersResponse = exports.PaginatedResponse = exports.GetMutualFriendsPayload = exports.UpsertFriendshipPayload_CancelPayload = exports.UpsertFriendshipPayload_DeletePayload = exports.UpsertFriendshipPayload_RejectPayload = exports.UpsertFriendshipPayload_AcceptPayload = exports.UpsertFriendshipPayload_RequestPayload = exports.UpsertFriendshipPayload = exports.GetFriendshipRequestsPayload = exports.GetFriendsPayload = exports.FriendshipRequests = exports.FriendshipRequestResponse = exports.Pagination = exports.User = exports.InternalServerError = exports.InvalidFriendshipAction = exports.FriendshipStatus = exports.ConnectivityStatus = exports.protobufPackage = void 0;
|
|
7
7
|
exports.connectivityStatusFromJSON = connectivityStatusFromJSON;
|
|
8
8
|
exports.connectivityStatusToJSON = connectivityStatusToJSON;
|
|
9
9
|
exports.friendshipStatusFromJSON = friendshipStatusFromJSON;
|
|
@@ -59,8 +59,6 @@ var FriendshipStatus;
|
|
|
59
59
|
FriendshipStatus[FriendshipStatus["REJECTED"] = 4] = "REJECTED";
|
|
60
60
|
FriendshipStatus[FriendshipStatus["DELETED"] = 5] = "DELETED";
|
|
61
61
|
FriendshipStatus[FriendshipStatus["BLOCKED"] = 6] = "BLOCKED";
|
|
62
|
-
FriendshipStatus[FriendshipStatus["NONE"] = 7] = "NONE";
|
|
63
|
-
FriendshipStatus[FriendshipStatus["BLOCKED_BY"] = 8] = "BLOCKED_BY";
|
|
64
62
|
FriendshipStatus[FriendshipStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
65
63
|
})(FriendshipStatus || (exports.FriendshipStatus = FriendshipStatus = {}));
|
|
66
64
|
function friendshipStatusFromJSON(object) {
|
|
@@ -86,12 +84,6 @@ function friendshipStatusFromJSON(object) {
|
|
|
86
84
|
case 6:
|
|
87
85
|
case "BLOCKED":
|
|
88
86
|
return FriendshipStatus.BLOCKED;
|
|
89
|
-
case 7:
|
|
90
|
-
case "NONE":
|
|
91
|
-
return FriendshipStatus.NONE;
|
|
92
|
-
case 8:
|
|
93
|
-
case "BLOCKED_BY":
|
|
94
|
-
return FriendshipStatus.BLOCKED_BY;
|
|
95
87
|
case -1:
|
|
96
88
|
case "UNRECOGNIZED":
|
|
97
89
|
default:
|
|
@@ -114,24 +106,17 @@ function friendshipStatusToJSON(object) {
|
|
|
114
106
|
return "DELETED";
|
|
115
107
|
case FriendshipStatus.BLOCKED:
|
|
116
108
|
return "BLOCKED";
|
|
117
|
-
case FriendshipStatus.NONE:
|
|
118
|
-
return "NONE";
|
|
119
|
-
case FriendshipStatus.BLOCKED_BY:
|
|
120
|
-
return "BLOCKED_BY";
|
|
121
109
|
case FriendshipStatus.UNRECOGNIZED:
|
|
122
110
|
default:
|
|
123
111
|
return "UNRECOGNIZED";
|
|
124
112
|
}
|
|
125
113
|
}
|
|
126
114
|
function createBaseInvalidFriendshipAction() {
|
|
127
|
-
return {
|
|
115
|
+
return {};
|
|
128
116
|
}
|
|
129
117
|
var InvalidFriendshipAction;
|
|
130
118
|
(function (InvalidFriendshipAction) {
|
|
131
|
-
function encode(
|
|
132
|
-
if (message.message !== undefined) {
|
|
133
|
-
writer.uint32(10).string(message.message);
|
|
134
|
-
}
|
|
119
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
135
120
|
return writer;
|
|
136
121
|
}
|
|
137
122
|
InvalidFriendshipAction.encode = encode;
|
|
@@ -142,12 +127,6 @@ var InvalidFriendshipAction;
|
|
|
142
127
|
while (reader.pos < end) {
|
|
143
128
|
const tag = reader.uint32();
|
|
144
129
|
switch (tag >>> 3) {
|
|
145
|
-
case 1:
|
|
146
|
-
if (tag !== 10) {
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
message.message = reader.string();
|
|
150
|
-
continue;
|
|
151
130
|
}
|
|
152
131
|
if ((tag & 7) === 4 || tag === 0) {
|
|
153
132
|
break;
|
|
@@ -157,13 +136,12 @@ var InvalidFriendshipAction;
|
|
|
157
136
|
return message;
|
|
158
137
|
}
|
|
159
138
|
InvalidFriendshipAction.decode = decode;
|
|
160
|
-
function fromJSON(
|
|
161
|
-
return {
|
|
139
|
+
function fromJSON(_) {
|
|
140
|
+
return {};
|
|
162
141
|
}
|
|
163
142
|
InvalidFriendshipAction.fromJSON = fromJSON;
|
|
164
|
-
function toJSON(
|
|
143
|
+
function toJSON(_) {
|
|
165
144
|
const obj = {};
|
|
166
|
-
message.message !== undefined && (obj.message = message.message);
|
|
167
145
|
return obj;
|
|
168
146
|
}
|
|
169
147
|
InvalidFriendshipAction.toJSON = toJSON;
|
|
@@ -171,23 +149,18 @@ var InvalidFriendshipAction;
|
|
|
171
149
|
return InvalidFriendshipAction.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
172
150
|
}
|
|
173
151
|
InvalidFriendshipAction.create = create;
|
|
174
|
-
function fromPartial(
|
|
175
|
-
var _a;
|
|
152
|
+
function fromPartial(_) {
|
|
176
153
|
const message = createBaseInvalidFriendshipAction();
|
|
177
|
-
message.message = (_a = object.message) !== null && _a !== void 0 ? _a : undefined;
|
|
178
154
|
return message;
|
|
179
155
|
}
|
|
180
156
|
InvalidFriendshipAction.fromPartial = fromPartial;
|
|
181
157
|
})(InvalidFriendshipAction || (exports.InvalidFriendshipAction = InvalidFriendshipAction = {}));
|
|
182
158
|
function createBaseInternalServerError() {
|
|
183
|
-
return {
|
|
159
|
+
return {};
|
|
184
160
|
}
|
|
185
161
|
var InternalServerError;
|
|
186
162
|
(function (InternalServerError) {
|
|
187
|
-
function encode(
|
|
188
|
-
if (message.message !== undefined) {
|
|
189
|
-
writer.uint32(10).string(message.message);
|
|
190
|
-
}
|
|
163
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
191
164
|
return writer;
|
|
192
165
|
}
|
|
193
166
|
InternalServerError.encode = encode;
|
|
@@ -198,12 +171,6 @@ var InternalServerError;
|
|
|
198
171
|
while (reader.pos < end) {
|
|
199
172
|
const tag = reader.uint32();
|
|
200
173
|
switch (tag >>> 3) {
|
|
201
|
-
case 1:
|
|
202
|
-
if (tag !== 10) {
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
message.message = reader.string();
|
|
206
|
-
continue;
|
|
207
174
|
}
|
|
208
175
|
if ((tag & 7) === 4 || tag === 0) {
|
|
209
176
|
break;
|
|
@@ -213,13 +180,12 @@ var InternalServerError;
|
|
|
213
180
|
return message;
|
|
214
181
|
}
|
|
215
182
|
InternalServerError.decode = decode;
|
|
216
|
-
function fromJSON(
|
|
217
|
-
return {
|
|
183
|
+
function fromJSON(_) {
|
|
184
|
+
return {};
|
|
218
185
|
}
|
|
219
186
|
InternalServerError.fromJSON = fromJSON;
|
|
220
|
-
function toJSON(
|
|
187
|
+
function toJSON(_) {
|
|
221
188
|
const obj = {};
|
|
222
|
-
message.message !== undefined && (obj.message = message.message);
|
|
223
189
|
return obj;
|
|
224
190
|
}
|
|
225
191
|
InternalServerError.toJSON = toJSON;
|
|
@@ -227,126 +193,12 @@ var InternalServerError;
|
|
|
227
193
|
return InternalServerError.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
228
194
|
}
|
|
229
195
|
InternalServerError.create = create;
|
|
230
|
-
function fromPartial(
|
|
231
|
-
var _a;
|
|
196
|
+
function fromPartial(_) {
|
|
232
197
|
const message = createBaseInternalServerError();
|
|
233
|
-
message.message = (_a = object.message) !== null && _a !== void 0 ? _a : undefined;
|
|
234
198
|
return message;
|
|
235
199
|
}
|
|
236
200
|
InternalServerError.fromPartial = fromPartial;
|
|
237
201
|
})(InternalServerError || (exports.InternalServerError = InternalServerError = {}));
|
|
238
|
-
function createBaseInvalidRequest() {
|
|
239
|
-
return { message: undefined };
|
|
240
|
-
}
|
|
241
|
-
var InvalidRequest;
|
|
242
|
-
(function (InvalidRequest) {
|
|
243
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
244
|
-
if (message.message !== undefined) {
|
|
245
|
-
writer.uint32(10).string(message.message);
|
|
246
|
-
}
|
|
247
|
-
return writer;
|
|
248
|
-
}
|
|
249
|
-
InvalidRequest.encode = encode;
|
|
250
|
-
function decode(input, length) {
|
|
251
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
252
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
253
|
-
const message = createBaseInvalidRequest();
|
|
254
|
-
while (reader.pos < end) {
|
|
255
|
-
const tag = reader.uint32();
|
|
256
|
-
switch (tag >>> 3) {
|
|
257
|
-
case 1:
|
|
258
|
-
if (tag !== 10) {
|
|
259
|
-
break;
|
|
260
|
-
}
|
|
261
|
-
message.message = reader.string();
|
|
262
|
-
continue;
|
|
263
|
-
}
|
|
264
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
265
|
-
break;
|
|
266
|
-
}
|
|
267
|
-
reader.skipType(tag & 7);
|
|
268
|
-
}
|
|
269
|
-
return message;
|
|
270
|
-
}
|
|
271
|
-
InvalidRequest.decode = decode;
|
|
272
|
-
function fromJSON(object) {
|
|
273
|
-
return { message: isSet(object.message) ? String(object.message) : undefined };
|
|
274
|
-
}
|
|
275
|
-
InvalidRequest.fromJSON = fromJSON;
|
|
276
|
-
function toJSON(message) {
|
|
277
|
-
const obj = {};
|
|
278
|
-
message.message !== undefined && (obj.message = message.message);
|
|
279
|
-
return obj;
|
|
280
|
-
}
|
|
281
|
-
InvalidRequest.toJSON = toJSON;
|
|
282
|
-
function create(base) {
|
|
283
|
-
return InvalidRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
284
|
-
}
|
|
285
|
-
InvalidRequest.create = create;
|
|
286
|
-
function fromPartial(object) {
|
|
287
|
-
var _a;
|
|
288
|
-
const message = createBaseInvalidRequest();
|
|
289
|
-
message.message = (_a = object.message) !== null && _a !== void 0 ? _a : undefined;
|
|
290
|
-
return message;
|
|
291
|
-
}
|
|
292
|
-
InvalidRequest.fromPartial = fromPartial;
|
|
293
|
-
})(InvalidRequest || (exports.InvalidRequest = InvalidRequest = {}));
|
|
294
|
-
function createBaseProfileNotFound() {
|
|
295
|
-
return { message: undefined };
|
|
296
|
-
}
|
|
297
|
-
var ProfileNotFound;
|
|
298
|
-
(function (ProfileNotFound) {
|
|
299
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
300
|
-
if (message.message !== undefined) {
|
|
301
|
-
writer.uint32(10).string(message.message);
|
|
302
|
-
}
|
|
303
|
-
return writer;
|
|
304
|
-
}
|
|
305
|
-
ProfileNotFound.encode = encode;
|
|
306
|
-
function decode(input, length) {
|
|
307
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
308
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
309
|
-
const message = createBaseProfileNotFound();
|
|
310
|
-
while (reader.pos < end) {
|
|
311
|
-
const tag = reader.uint32();
|
|
312
|
-
switch (tag >>> 3) {
|
|
313
|
-
case 1:
|
|
314
|
-
if (tag !== 10) {
|
|
315
|
-
break;
|
|
316
|
-
}
|
|
317
|
-
message.message = reader.string();
|
|
318
|
-
continue;
|
|
319
|
-
}
|
|
320
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
321
|
-
break;
|
|
322
|
-
}
|
|
323
|
-
reader.skipType(tag & 7);
|
|
324
|
-
}
|
|
325
|
-
return message;
|
|
326
|
-
}
|
|
327
|
-
ProfileNotFound.decode = decode;
|
|
328
|
-
function fromJSON(object) {
|
|
329
|
-
return { message: isSet(object.message) ? String(object.message) : undefined };
|
|
330
|
-
}
|
|
331
|
-
ProfileNotFound.fromJSON = fromJSON;
|
|
332
|
-
function toJSON(message) {
|
|
333
|
-
const obj = {};
|
|
334
|
-
message.message !== undefined && (obj.message = message.message);
|
|
335
|
-
return obj;
|
|
336
|
-
}
|
|
337
|
-
ProfileNotFound.toJSON = toJSON;
|
|
338
|
-
function create(base) {
|
|
339
|
-
return ProfileNotFound.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
340
|
-
}
|
|
341
|
-
ProfileNotFound.create = create;
|
|
342
|
-
function fromPartial(object) {
|
|
343
|
-
var _a;
|
|
344
|
-
const message = createBaseProfileNotFound();
|
|
345
|
-
message.message = (_a = object.message) !== null && _a !== void 0 ? _a : undefined;
|
|
346
|
-
return message;
|
|
347
|
-
}
|
|
348
|
-
ProfileNotFound.fromPartial = fromPartial;
|
|
349
|
-
})(ProfileNotFound || (exports.ProfileNotFound = ProfileNotFound = {}));
|
|
350
202
|
function createBaseUser() {
|
|
351
203
|
return { address: "" };
|
|
352
204
|
}
|
|
@@ -403,206 +255,6 @@ var User;
|
|
|
403
255
|
}
|
|
404
256
|
User.fromPartial = fromPartial;
|
|
405
257
|
})(User || (exports.User = User = {}));
|
|
406
|
-
function createBaseFriendProfile() {
|
|
407
|
-
return { address: "", name: "", hasClaimedName: false, profilePictureUrl: "" };
|
|
408
|
-
}
|
|
409
|
-
var FriendProfile;
|
|
410
|
-
(function (FriendProfile) {
|
|
411
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
412
|
-
if (message.address !== "") {
|
|
413
|
-
writer.uint32(10).string(message.address);
|
|
414
|
-
}
|
|
415
|
-
if (message.name !== "") {
|
|
416
|
-
writer.uint32(18).string(message.name);
|
|
417
|
-
}
|
|
418
|
-
if (message.hasClaimedName === true) {
|
|
419
|
-
writer.uint32(24).bool(message.hasClaimedName);
|
|
420
|
-
}
|
|
421
|
-
if (message.profilePictureUrl !== "") {
|
|
422
|
-
writer.uint32(34).string(message.profilePictureUrl);
|
|
423
|
-
}
|
|
424
|
-
return writer;
|
|
425
|
-
}
|
|
426
|
-
FriendProfile.encode = encode;
|
|
427
|
-
function decode(input, length) {
|
|
428
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
429
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
430
|
-
const message = createBaseFriendProfile();
|
|
431
|
-
while (reader.pos < end) {
|
|
432
|
-
const tag = reader.uint32();
|
|
433
|
-
switch (tag >>> 3) {
|
|
434
|
-
case 1:
|
|
435
|
-
if (tag !== 10) {
|
|
436
|
-
break;
|
|
437
|
-
}
|
|
438
|
-
message.address = reader.string();
|
|
439
|
-
continue;
|
|
440
|
-
case 2:
|
|
441
|
-
if (tag !== 18) {
|
|
442
|
-
break;
|
|
443
|
-
}
|
|
444
|
-
message.name = reader.string();
|
|
445
|
-
continue;
|
|
446
|
-
case 3:
|
|
447
|
-
if (tag !== 24) {
|
|
448
|
-
break;
|
|
449
|
-
}
|
|
450
|
-
message.hasClaimedName = reader.bool();
|
|
451
|
-
continue;
|
|
452
|
-
case 4:
|
|
453
|
-
if (tag !== 34) {
|
|
454
|
-
break;
|
|
455
|
-
}
|
|
456
|
-
message.profilePictureUrl = reader.string();
|
|
457
|
-
continue;
|
|
458
|
-
}
|
|
459
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
460
|
-
break;
|
|
461
|
-
}
|
|
462
|
-
reader.skipType(tag & 7);
|
|
463
|
-
}
|
|
464
|
-
return message;
|
|
465
|
-
}
|
|
466
|
-
FriendProfile.decode = decode;
|
|
467
|
-
function fromJSON(object) {
|
|
468
|
-
return {
|
|
469
|
-
address: isSet(object.address) ? String(object.address) : "",
|
|
470
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
471
|
-
hasClaimedName: isSet(object.hasClaimedName) ? Boolean(object.hasClaimedName) : false,
|
|
472
|
-
profilePictureUrl: isSet(object.profilePictureUrl) ? String(object.profilePictureUrl) : "",
|
|
473
|
-
};
|
|
474
|
-
}
|
|
475
|
-
FriendProfile.fromJSON = fromJSON;
|
|
476
|
-
function toJSON(message) {
|
|
477
|
-
const obj = {};
|
|
478
|
-
message.address !== undefined && (obj.address = message.address);
|
|
479
|
-
message.name !== undefined && (obj.name = message.name);
|
|
480
|
-
message.hasClaimedName !== undefined && (obj.hasClaimedName = message.hasClaimedName);
|
|
481
|
-
message.profilePictureUrl !== undefined && (obj.profilePictureUrl = message.profilePictureUrl);
|
|
482
|
-
return obj;
|
|
483
|
-
}
|
|
484
|
-
FriendProfile.toJSON = toJSON;
|
|
485
|
-
function create(base) {
|
|
486
|
-
return FriendProfile.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
487
|
-
}
|
|
488
|
-
FriendProfile.create = create;
|
|
489
|
-
function fromPartial(object) {
|
|
490
|
-
var _a, _b, _c, _d;
|
|
491
|
-
const message = createBaseFriendProfile();
|
|
492
|
-
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
493
|
-
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
494
|
-
message.hasClaimedName = (_c = object.hasClaimedName) !== null && _c !== void 0 ? _c : false;
|
|
495
|
-
message.profilePictureUrl = (_d = object.profilePictureUrl) !== null && _d !== void 0 ? _d : "";
|
|
496
|
-
return message;
|
|
497
|
-
}
|
|
498
|
-
FriendProfile.fromPartial = fromPartial;
|
|
499
|
-
})(FriendProfile || (exports.FriendProfile = FriendProfile = {}));
|
|
500
|
-
function createBaseBlockedUserProfile() {
|
|
501
|
-
return { address: "", name: "", hasClaimedName: false, profilePictureUrl: "", blockedAt: undefined };
|
|
502
|
-
}
|
|
503
|
-
var BlockedUserProfile;
|
|
504
|
-
(function (BlockedUserProfile) {
|
|
505
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
506
|
-
if (message.address !== "") {
|
|
507
|
-
writer.uint32(10).string(message.address);
|
|
508
|
-
}
|
|
509
|
-
if (message.name !== "") {
|
|
510
|
-
writer.uint32(18).string(message.name);
|
|
511
|
-
}
|
|
512
|
-
if (message.hasClaimedName === true) {
|
|
513
|
-
writer.uint32(24).bool(message.hasClaimedName);
|
|
514
|
-
}
|
|
515
|
-
if (message.profilePictureUrl !== "") {
|
|
516
|
-
writer.uint32(34).string(message.profilePictureUrl);
|
|
517
|
-
}
|
|
518
|
-
if (message.blockedAt !== undefined) {
|
|
519
|
-
writer.uint32(40).int64(message.blockedAt);
|
|
520
|
-
}
|
|
521
|
-
return writer;
|
|
522
|
-
}
|
|
523
|
-
BlockedUserProfile.encode = encode;
|
|
524
|
-
function decode(input, length) {
|
|
525
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
526
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
527
|
-
const message = createBaseBlockedUserProfile();
|
|
528
|
-
while (reader.pos < end) {
|
|
529
|
-
const tag = reader.uint32();
|
|
530
|
-
switch (tag >>> 3) {
|
|
531
|
-
case 1:
|
|
532
|
-
if (tag !== 10) {
|
|
533
|
-
break;
|
|
534
|
-
}
|
|
535
|
-
message.address = reader.string();
|
|
536
|
-
continue;
|
|
537
|
-
case 2:
|
|
538
|
-
if (tag !== 18) {
|
|
539
|
-
break;
|
|
540
|
-
}
|
|
541
|
-
message.name = reader.string();
|
|
542
|
-
continue;
|
|
543
|
-
case 3:
|
|
544
|
-
if (tag !== 24) {
|
|
545
|
-
break;
|
|
546
|
-
}
|
|
547
|
-
message.hasClaimedName = reader.bool();
|
|
548
|
-
continue;
|
|
549
|
-
case 4:
|
|
550
|
-
if (tag !== 34) {
|
|
551
|
-
break;
|
|
552
|
-
}
|
|
553
|
-
message.profilePictureUrl = reader.string();
|
|
554
|
-
continue;
|
|
555
|
-
case 5:
|
|
556
|
-
if (tag !== 40) {
|
|
557
|
-
break;
|
|
558
|
-
}
|
|
559
|
-
message.blockedAt = longToNumber(reader.int64());
|
|
560
|
-
continue;
|
|
561
|
-
}
|
|
562
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
563
|
-
break;
|
|
564
|
-
}
|
|
565
|
-
reader.skipType(tag & 7);
|
|
566
|
-
}
|
|
567
|
-
return message;
|
|
568
|
-
}
|
|
569
|
-
BlockedUserProfile.decode = decode;
|
|
570
|
-
function fromJSON(object) {
|
|
571
|
-
return {
|
|
572
|
-
address: isSet(object.address) ? String(object.address) : "",
|
|
573
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
574
|
-
hasClaimedName: isSet(object.hasClaimedName) ? Boolean(object.hasClaimedName) : false,
|
|
575
|
-
profilePictureUrl: isSet(object.profilePictureUrl) ? String(object.profilePictureUrl) : "",
|
|
576
|
-
blockedAt: isSet(object.blockedAt) ? Number(object.blockedAt) : undefined,
|
|
577
|
-
};
|
|
578
|
-
}
|
|
579
|
-
BlockedUserProfile.fromJSON = fromJSON;
|
|
580
|
-
function toJSON(message) {
|
|
581
|
-
const obj = {};
|
|
582
|
-
message.address !== undefined && (obj.address = message.address);
|
|
583
|
-
message.name !== undefined && (obj.name = message.name);
|
|
584
|
-
message.hasClaimedName !== undefined && (obj.hasClaimedName = message.hasClaimedName);
|
|
585
|
-
message.profilePictureUrl !== undefined && (obj.profilePictureUrl = message.profilePictureUrl);
|
|
586
|
-
message.blockedAt !== undefined && (obj.blockedAt = Math.round(message.blockedAt));
|
|
587
|
-
return obj;
|
|
588
|
-
}
|
|
589
|
-
BlockedUserProfile.toJSON = toJSON;
|
|
590
|
-
function create(base) {
|
|
591
|
-
return BlockedUserProfile.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
592
|
-
}
|
|
593
|
-
BlockedUserProfile.create = create;
|
|
594
|
-
function fromPartial(object) {
|
|
595
|
-
var _a, _b, _c, _d, _e;
|
|
596
|
-
const message = createBaseBlockedUserProfile();
|
|
597
|
-
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
598
|
-
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
599
|
-
message.hasClaimedName = (_c = object.hasClaimedName) !== null && _c !== void 0 ? _c : false;
|
|
600
|
-
message.profilePictureUrl = (_d = object.profilePictureUrl) !== null && _d !== void 0 ? _d : "";
|
|
601
|
-
message.blockedAt = (_e = object.blockedAt) !== null && _e !== void 0 ? _e : undefined;
|
|
602
|
-
return message;
|
|
603
|
-
}
|
|
604
|
-
BlockedUserProfile.fromPartial = fromPartial;
|
|
605
|
-
})(BlockedUserProfile || (exports.BlockedUserProfile = BlockedUserProfile = {}));
|
|
606
258
|
function createBasePagination() {
|
|
607
259
|
return { limit: 0, offset: 0 };
|
|
608
260
|
}
|
|
@@ -674,13 +326,13 @@ var Pagination;
|
|
|
674
326
|
Pagination.fromPartial = fromPartial;
|
|
675
327
|
})(Pagination || (exports.Pagination = Pagination = {}));
|
|
676
328
|
function createBaseFriendshipRequestResponse() {
|
|
677
|
-
return {
|
|
329
|
+
return { user: undefined, createdAt: 0, message: undefined };
|
|
678
330
|
}
|
|
679
331
|
var FriendshipRequestResponse;
|
|
680
332
|
(function (FriendshipRequestResponse) {
|
|
681
333
|
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
682
|
-
if (message.
|
|
683
|
-
|
|
334
|
+
if (message.user !== undefined) {
|
|
335
|
+
User.encode(message.user, writer.uint32(10).fork()).ldelim();
|
|
684
336
|
}
|
|
685
337
|
if (message.createdAt !== 0) {
|
|
686
338
|
writer.uint32(16).int64(message.createdAt);
|
|
@@ -688,9 +340,6 @@ var FriendshipRequestResponse;
|
|
|
688
340
|
if (message.message !== undefined) {
|
|
689
341
|
writer.uint32(26).string(message.message);
|
|
690
342
|
}
|
|
691
|
-
if (message.id !== "") {
|
|
692
|
-
writer.uint32(34).string(message.id);
|
|
693
|
-
}
|
|
694
343
|
return writer;
|
|
695
344
|
}
|
|
696
345
|
FriendshipRequestResponse.encode = encode;
|
|
@@ -705,7 +354,7 @@ var FriendshipRequestResponse;
|
|
|
705
354
|
if (tag !== 10) {
|
|
706
355
|
break;
|
|
707
356
|
}
|
|
708
|
-
message.
|
|
357
|
+
message.user = User.decode(reader, reader.uint32());
|
|
709
358
|
continue;
|
|
710
359
|
case 2:
|
|
711
360
|
if (tag !== 16) {
|
|
@@ -719,12 +368,6 @@ var FriendshipRequestResponse;
|
|
|
719
368
|
}
|
|
720
369
|
message.message = reader.string();
|
|
721
370
|
continue;
|
|
722
|
-
case 4:
|
|
723
|
-
if (tag !== 34) {
|
|
724
|
-
break;
|
|
725
|
-
}
|
|
726
|
-
message.id = reader.string();
|
|
727
|
-
continue;
|
|
728
371
|
}
|
|
729
372
|
if ((tag & 7) === 4 || tag === 0) {
|
|
730
373
|
break;
|
|
@@ -736,19 +379,17 @@ var FriendshipRequestResponse;
|
|
|
736
379
|
FriendshipRequestResponse.decode = decode;
|
|
737
380
|
function fromJSON(object) {
|
|
738
381
|
return {
|
|
739
|
-
|
|
382
|
+
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
740
383
|
createdAt: isSet(object.createdAt) ? Number(object.createdAt) : 0,
|
|
741
384
|
message: isSet(object.message) ? String(object.message) : undefined,
|
|
742
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
743
385
|
};
|
|
744
386
|
}
|
|
745
387
|
FriendshipRequestResponse.fromJSON = fromJSON;
|
|
746
388
|
function toJSON(message) {
|
|
747
389
|
const obj = {};
|
|
748
|
-
message.
|
|
390
|
+
message.user !== undefined && (obj.user = message.user ? User.toJSON(message.user) : undefined);
|
|
749
391
|
message.createdAt !== undefined && (obj.createdAt = Math.round(message.createdAt));
|
|
750
392
|
message.message !== undefined && (obj.message = message.message);
|
|
751
|
-
message.id !== undefined && (obj.id = message.id);
|
|
752
393
|
return obj;
|
|
753
394
|
}
|
|
754
395
|
FriendshipRequestResponse.toJSON = toJSON;
|
|
@@ -757,14 +398,11 @@ var FriendshipRequestResponse;
|
|
|
757
398
|
}
|
|
758
399
|
FriendshipRequestResponse.create = create;
|
|
759
400
|
function fromPartial(object) {
|
|
760
|
-
var _a, _b
|
|
401
|
+
var _a, _b;
|
|
761
402
|
const message = createBaseFriendshipRequestResponse();
|
|
762
|
-
message.
|
|
763
|
-
? FriendProfile.fromPartial(object.friend)
|
|
764
|
-
: undefined;
|
|
403
|
+
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
765
404
|
message.createdAt = (_a = object.createdAt) !== null && _a !== void 0 ? _a : 0;
|
|
766
405
|
message.message = (_b = object.message) !== null && _b !== void 0 ? _b : undefined;
|
|
767
|
-
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : "";
|
|
768
406
|
return message;
|
|
769
407
|
}
|
|
770
408
|
FriendshipRequestResponse.fromPartial = fromPartial;
|
|
@@ -835,7 +473,7 @@ var FriendshipRequests;
|
|
|
835
473
|
FriendshipRequests.fromPartial = fromPartial;
|
|
836
474
|
})(FriendshipRequests || (exports.FriendshipRequests = FriendshipRequests = {}));
|
|
837
475
|
function createBaseGetFriendsPayload() {
|
|
838
|
-
return { pagination: undefined };
|
|
476
|
+
return { pagination: undefined, status: undefined };
|
|
839
477
|
}
|
|
840
478
|
var GetFriendsPayload;
|
|
841
479
|
(function (GetFriendsPayload) {
|
|
@@ -843,6 +481,9 @@ var GetFriendsPayload;
|
|
|
843
481
|
if (message.pagination !== undefined) {
|
|
844
482
|
Pagination.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
845
483
|
}
|
|
484
|
+
if (message.status !== undefined) {
|
|
485
|
+
writer.uint32(16).int32(message.status);
|
|
486
|
+
}
|
|
846
487
|
return writer;
|
|
847
488
|
}
|
|
848
489
|
GetFriendsPayload.encode = encode;
|
|
@@ -859,8 +500,14 @@ var GetFriendsPayload;
|
|
|
859
500
|
}
|
|
860
501
|
message.pagination = Pagination.decode(reader, reader.uint32());
|
|
861
502
|
continue;
|
|
862
|
-
|
|
863
|
-
|
|
503
|
+
case 2:
|
|
504
|
+
if (tag !== 16) {
|
|
505
|
+
break;
|
|
506
|
+
}
|
|
507
|
+
message.status = reader.int32();
|
|
508
|
+
continue;
|
|
509
|
+
}
|
|
510
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
864
511
|
break;
|
|
865
512
|
}
|
|
866
513
|
reader.skipType(tag & 7);
|
|
@@ -869,13 +516,18 @@ var GetFriendsPayload;
|
|
|
869
516
|
}
|
|
870
517
|
GetFriendsPayload.decode = decode;
|
|
871
518
|
function fromJSON(object) {
|
|
872
|
-
return {
|
|
519
|
+
return {
|
|
520
|
+
pagination: isSet(object.pagination) ? Pagination.fromJSON(object.pagination) : undefined,
|
|
521
|
+
status: isSet(object.status) ? connectivityStatusFromJSON(object.status) : undefined,
|
|
522
|
+
};
|
|
873
523
|
}
|
|
874
524
|
GetFriendsPayload.fromJSON = fromJSON;
|
|
875
525
|
function toJSON(message) {
|
|
876
526
|
const obj = {};
|
|
877
527
|
message.pagination !== undefined &&
|
|
878
528
|
(obj.pagination = message.pagination ? Pagination.toJSON(message.pagination) : undefined);
|
|
529
|
+
message.status !== undefined &&
|
|
530
|
+
(obj.status = message.status !== undefined ? connectivityStatusToJSON(message.status) : undefined);
|
|
879
531
|
return obj;
|
|
880
532
|
}
|
|
881
533
|
GetFriendsPayload.toJSON = toJSON;
|
|
@@ -884,10 +536,12 @@ var GetFriendsPayload;
|
|
|
884
536
|
}
|
|
885
537
|
GetFriendsPayload.create = create;
|
|
886
538
|
function fromPartial(object) {
|
|
539
|
+
var _a;
|
|
887
540
|
const message = createBaseGetFriendsPayload();
|
|
888
541
|
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
889
542
|
? Pagination.fromPartial(object.pagination)
|
|
890
543
|
: undefined;
|
|
544
|
+
message.status = (_a = object.status) !== null && _a !== void 0 ? _a : undefined;
|
|
891
545
|
return message;
|
|
892
546
|
}
|
|
893
547
|
GetFriendsPayload.fromPartial = fromPartial;
|
|
@@ -1553,25 +1207,25 @@ var PaginatedResponse;
|
|
|
1553
1207
|
}
|
|
1554
1208
|
PaginatedResponse.fromPartial = fromPartial;
|
|
1555
1209
|
})(PaginatedResponse || (exports.PaginatedResponse = PaginatedResponse = {}));
|
|
1556
|
-
function
|
|
1557
|
-
return {
|
|
1210
|
+
function createBasePaginatedUsersResponse() {
|
|
1211
|
+
return { users: [], paginationData: undefined };
|
|
1558
1212
|
}
|
|
1559
|
-
var
|
|
1560
|
-
(function (
|
|
1213
|
+
var PaginatedUsersResponse;
|
|
1214
|
+
(function (PaginatedUsersResponse) {
|
|
1561
1215
|
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1562
|
-
for (const v of message.
|
|
1563
|
-
|
|
1216
|
+
for (const v of message.users) {
|
|
1217
|
+
User.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1564
1218
|
}
|
|
1565
1219
|
if (message.paginationData !== undefined) {
|
|
1566
1220
|
PaginatedResponse.encode(message.paginationData, writer.uint32(18).fork()).ldelim();
|
|
1567
1221
|
}
|
|
1568
1222
|
return writer;
|
|
1569
1223
|
}
|
|
1570
|
-
|
|
1224
|
+
PaginatedUsersResponse.encode = encode;
|
|
1571
1225
|
function decode(input, length) {
|
|
1572
1226
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1573
1227
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1574
|
-
const message =
|
|
1228
|
+
const message = createBasePaginatedUsersResponse();
|
|
1575
1229
|
while (reader.pos < end) {
|
|
1576
1230
|
const tag = reader.uint32();
|
|
1577
1231
|
switch (tag >>> 3) {
|
|
@@ -1579,7 +1233,7 @@ var PaginatedFriendsProfilesResponse;
|
|
|
1579
1233
|
if (tag !== 10) {
|
|
1580
1234
|
break;
|
|
1581
1235
|
}
|
|
1582
|
-
message.
|
|
1236
|
+
message.users.push(User.decode(reader, reader.uint32()));
|
|
1583
1237
|
continue;
|
|
1584
1238
|
case 2:
|
|
1585
1239
|
if (tag !== 18) {
|
|
@@ -1595,42 +1249,42 @@ var PaginatedFriendsProfilesResponse;
|
|
|
1595
1249
|
}
|
|
1596
1250
|
return message;
|
|
1597
1251
|
}
|
|
1598
|
-
|
|
1252
|
+
PaginatedUsersResponse.decode = decode;
|
|
1599
1253
|
function fromJSON(object) {
|
|
1600
1254
|
return {
|
|
1601
|
-
|
|
1255
|
+
users: Array.isArray(object === null || object === void 0 ? void 0 : object.users) ? object.users.map((e) => User.fromJSON(e)) : [],
|
|
1602
1256
|
paginationData: isSet(object.paginationData) ? PaginatedResponse.fromJSON(object.paginationData) : undefined,
|
|
1603
1257
|
};
|
|
1604
1258
|
}
|
|
1605
|
-
|
|
1259
|
+
PaginatedUsersResponse.fromJSON = fromJSON;
|
|
1606
1260
|
function toJSON(message) {
|
|
1607
1261
|
const obj = {};
|
|
1608
|
-
if (message.
|
|
1609
|
-
obj.
|
|
1262
|
+
if (message.users) {
|
|
1263
|
+
obj.users = message.users.map((e) => e ? User.toJSON(e) : undefined);
|
|
1610
1264
|
}
|
|
1611
1265
|
else {
|
|
1612
|
-
obj.
|
|
1266
|
+
obj.users = [];
|
|
1613
1267
|
}
|
|
1614
1268
|
message.paginationData !== undefined &&
|
|
1615
1269
|
(obj.paginationData = message.paginationData ? PaginatedResponse.toJSON(message.paginationData) : undefined);
|
|
1616
1270
|
return obj;
|
|
1617
1271
|
}
|
|
1618
|
-
|
|
1272
|
+
PaginatedUsersResponse.toJSON = toJSON;
|
|
1619
1273
|
function create(base) {
|
|
1620
|
-
return
|
|
1274
|
+
return PaginatedUsersResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1621
1275
|
}
|
|
1622
|
-
|
|
1276
|
+
PaginatedUsersResponse.create = create;
|
|
1623
1277
|
function fromPartial(object) {
|
|
1624
1278
|
var _a;
|
|
1625
|
-
const message =
|
|
1626
|
-
message.
|
|
1279
|
+
const message = createBasePaginatedUsersResponse();
|
|
1280
|
+
message.users = ((_a = object.users) === null || _a === void 0 ? void 0 : _a.map((e) => User.fromPartial(e))) || [];
|
|
1627
1281
|
message.paginationData = (object.paginationData !== undefined && object.paginationData !== null)
|
|
1628
1282
|
? PaginatedResponse.fromPartial(object.paginationData)
|
|
1629
1283
|
: undefined;
|
|
1630
1284
|
return message;
|
|
1631
1285
|
}
|
|
1632
|
-
|
|
1633
|
-
})(
|
|
1286
|
+
PaginatedUsersResponse.fromPartial = fromPartial;
|
|
1287
|
+
})(PaginatedUsersResponse || (exports.PaginatedUsersResponse = PaginatedUsersResponse = {}));
|
|
1634
1288
|
function createBasePaginatedFriendshipRequestsResponse() {
|
|
1635
1289
|
return { response: undefined, paginationData: undefined };
|
|
1636
1290
|
}
|
|
@@ -1880,7 +1534,7 @@ var UpsertFriendshipResponse;
|
|
|
1880
1534
|
UpsertFriendshipResponse.fromPartial = fromPartial;
|
|
1881
1535
|
})(UpsertFriendshipResponse || (exports.UpsertFriendshipResponse = UpsertFriendshipResponse = {}));
|
|
1882
1536
|
function createBaseUpsertFriendshipResponse_Accepted() {
|
|
1883
|
-
return { id: "", createdAt: 0
|
|
1537
|
+
return { id: "", createdAt: 0 };
|
|
1884
1538
|
}
|
|
1885
1539
|
var UpsertFriendshipResponse_Accepted;
|
|
1886
1540
|
(function (UpsertFriendshipResponse_Accepted) {
|
|
@@ -1891,12 +1545,6 @@ var UpsertFriendshipResponse_Accepted;
|
|
|
1891
1545
|
if (message.createdAt !== 0) {
|
|
1892
1546
|
writer.uint32(16).int64(message.createdAt);
|
|
1893
1547
|
}
|
|
1894
|
-
if (message.friend !== undefined) {
|
|
1895
|
-
FriendProfile.encode(message.friend, writer.uint32(26).fork()).ldelim();
|
|
1896
|
-
}
|
|
1897
|
-
if (message.message !== undefined) {
|
|
1898
|
-
writer.uint32(34).string(message.message);
|
|
1899
|
-
}
|
|
1900
1548
|
return writer;
|
|
1901
1549
|
}
|
|
1902
1550
|
UpsertFriendshipResponse_Accepted.encode = encode;
|
|
@@ -1919,18 +1567,6 @@ var UpsertFriendshipResponse_Accepted;
|
|
|
1919
1567
|
}
|
|
1920
1568
|
message.createdAt = longToNumber(reader.int64());
|
|
1921
1569
|
continue;
|
|
1922
|
-
case 3:
|
|
1923
|
-
if (tag !== 26) {
|
|
1924
|
-
break;
|
|
1925
|
-
}
|
|
1926
|
-
message.friend = FriendProfile.decode(reader, reader.uint32());
|
|
1927
|
-
continue;
|
|
1928
|
-
case 4:
|
|
1929
|
-
if (tag !== 34) {
|
|
1930
|
-
break;
|
|
1931
|
-
}
|
|
1932
|
-
message.message = reader.string();
|
|
1933
|
-
continue;
|
|
1934
1570
|
}
|
|
1935
1571
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1936
1572
|
break;
|
|
@@ -1944,8 +1580,6 @@ var UpsertFriendshipResponse_Accepted;
|
|
|
1944
1580
|
return {
|
|
1945
1581
|
id: isSet(object.id) ? String(object.id) : "",
|
|
1946
1582
|
createdAt: isSet(object.createdAt) ? Number(object.createdAt) : 0,
|
|
1947
|
-
friend: isSet(object.friend) ? FriendProfile.fromJSON(object.friend) : undefined,
|
|
1948
|
-
message: isSet(object.message) ? String(object.message) : undefined,
|
|
1949
1583
|
};
|
|
1950
1584
|
}
|
|
1951
1585
|
UpsertFriendshipResponse_Accepted.fromJSON = fromJSON;
|
|
@@ -1953,8 +1587,6 @@ var UpsertFriendshipResponse_Accepted;
|
|
|
1953
1587
|
const obj = {};
|
|
1954
1588
|
message.id !== undefined && (obj.id = message.id);
|
|
1955
1589
|
message.createdAt !== undefined && (obj.createdAt = Math.round(message.createdAt));
|
|
1956
|
-
message.friend !== undefined && (obj.friend = message.friend ? FriendProfile.toJSON(message.friend) : undefined);
|
|
1957
|
-
message.message !== undefined && (obj.message = message.message);
|
|
1958
1590
|
return obj;
|
|
1959
1591
|
}
|
|
1960
1592
|
UpsertFriendshipResponse_Accepted.toJSON = toJSON;
|
|
@@ -1963,14 +1595,10 @@ var UpsertFriendshipResponse_Accepted;
|
|
|
1963
1595
|
}
|
|
1964
1596
|
UpsertFriendshipResponse_Accepted.create = create;
|
|
1965
1597
|
function fromPartial(object) {
|
|
1966
|
-
var _a, _b
|
|
1598
|
+
var _a, _b;
|
|
1967
1599
|
const message = createBaseUpsertFriendshipResponse_Accepted();
|
|
1968
1600
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
1969
1601
|
message.createdAt = (_b = object.createdAt) !== null && _b !== void 0 ? _b : 0;
|
|
1970
|
-
message.friend = (object.friend !== undefined && object.friend !== null)
|
|
1971
|
-
? FriendProfile.fromPartial(object.friend)
|
|
1972
|
-
: undefined;
|
|
1973
|
-
message.message = (_c = object.message) !== null && _c !== void 0 ? _c : undefined;
|
|
1974
1602
|
return message;
|
|
1975
1603
|
}
|
|
1976
1604
|
UpsertFriendshipResponse_Accepted.fromPartial = fromPartial;
|
|
@@ -1984,7 +1612,7 @@ var FriendshipUpdate;
|
|
|
1984
1612
|
var _a;
|
|
1985
1613
|
switch ((_a = message.update) === null || _a === void 0 ? void 0 : _a.$case) {
|
|
1986
1614
|
case "request":
|
|
1987
|
-
|
|
1615
|
+
FriendshipRequestResponse.encode(message.update.request, writer.uint32(10).fork()).ldelim();
|
|
1988
1616
|
break;
|
|
1989
1617
|
case "accept":
|
|
1990
1618
|
FriendshipUpdate_AcceptResponse.encode(message.update.accept, writer.uint32(18).fork()).ldelim();
|
|
@@ -1998,9 +1626,6 @@ var FriendshipUpdate;
|
|
|
1998
1626
|
case "cancel":
|
|
1999
1627
|
FriendshipUpdate_CancelResponse.encode(message.update.cancel, writer.uint32(42).fork()).ldelim();
|
|
2000
1628
|
break;
|
|
2001
|
-
case "block":
|
|
2002
|
-
FriendshipUpdate_BlockResponse.encode(message.update.block, writer.uint32(50).fork()).ldelim();
|
|
2003
|
-
break;
|
|
2004
1629
|
}
|
|
2005
1630
|
return writer;
|
|
2006
1631
|
}
|
|
@@ -2016,10 +1641,7 @@ var FriendshipUpdate;
|
|
|
2016
1641
|
if (tag !== 10) {
|
|
2017
1642
|
break;
|
|
2018
1643
|
}
|
|
2019
|
-
message.update = {
|
|
2020
|
-
$case: "request",
|
|
2021
|
-
request: FriendshipUpdate_RequestResponse.decode(reader, reader.uint32()),
|
|
2022
|
-
};
|
|
1644
|
+
message.update = { $case: "request", request: FriendshipRequestResponse.decode(reader, reader.uint32()) };
|
|
2023
1645
|
continue;
|
|
2024
1646
|
case 2:
|
|
2025
1647
|
if (tag !== 18) {
|
|
@@ -2045,12 +1667,6 @@ var FriendshipUpdate;
|
|
|
2045
1667
|
}
|
|
2046
1668
|
message.update = { $case: "cancel", cancel: FriendshipUpdate_CancelResponse.decode(reader, reader.uint32()) };
|
|
2047
1669
|
continue;
|
|
2048
|
-
case 6:
|
|
2049
|
-
if (tag !== 50) {
|
|
2050
|
-
break;
|
|
2051
|
-
}
|
|
2052
|
-
message.update = { $case: "block", block: FriendshipUpdate_BlockResponse.decode(reader, reader.uint32()) };
|
|
2053
|
-
continue;
|
|
2054
1670
|
}
|
|
2055
1671
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2056
1672
|
break;
|
|
@@ -2063,7 +1679,7 @@ var FriendshipUpdate;
|
|
|
2063
1679
|
function fromJSON(object) {
|
|
2064
1680
|
return {
|
|
2065
1681
|
update: isSet(object.request)
|
|
2066
|
-
? { $case: "request", request:
|
|
1682
|
+
? { $case: "request", request: FriendshipRequestResponse.fromJSON(object.request) }
|
|
2067
1683
|
: isSet(object.accept)
|
|
2068
1684
|
? { $case: "accept", accept: FriendshipUpdate_AcceptResponse.fromJSON(object.accept) }
|
|
2069
1685
|
: isSet(object.reject)
|
|
@@ -2072,19 +1688,15 @@ var FriendshipUpdate;
|
|
|
2072
1688
|
? { $case: "delete", delete: FriendshipUpdate_DeleteResponse.fromJSON(object.delete) }
|
|
2073
1689
|
: isSet(object.cancel)
|
|
2074
1690
|
? { $case: "cancel", cancel: FriendshipUpdate_CancelResponse.fromJSON(object.cancel) }
|
|
2075
|
-
:
|
|
2076
|
-
? { $case: "block", block: FriendshipUpdate_BlockResponse.fromJSON(object.block) }
|
|
2077
|
-
: undefined,
|
|
1691
|
+
: undefined,
|
|
2078
1692
|
};
|
|
2079
1693
|
}
|
|
2080
1694
|
FriendshipUpdate.fromJSON = fromJSON;
|
|
2081
1695
|
function toJSON(message) {
|
|
2082
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
1696
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
2083
1697
|
const obj = {};
|
|
2084
1698
|
((_a = message.update) === null || _a === void 0 ? void 0 : _a.$case) === "request" &&
|
|
2085
|
-
(obj.request = ((_b = message.update) === null || _b === void 0 ? void 0 : _b.request)
|
|
2086
|
-
? FriendshipUpdate_RequestResponse.toJSON((_c = message.update) === null || _c === void 0 ? void 0 : _c.request)
|
|
2087
|
-
: undefined);
|
|
1699
|
+
(obj.request = ((_b = message.update) === null || _b === void 0 ? void 0 : _b.request) ? FriendshipRequestResponse.toJSON((_c = message.update) === null || _c === void 0 ? void 0 : _c.request) : undefined);
|
|
2088
1700
|
((_d = message.update) === null || _d === void 0 ? void 0 : _d.$case) === "accept" &&
|
|
2089
1701
|
(obj.accept = ((_e = message.update) === null || _e === void 0 ? void 0 : _e.accept)
|
|
2090
1702
|
? FriendshipUpdate_AcceptResponse.toJSON((_f = message.update) === null || _f === void 0 ? void 0 : _f.accept)
|
|
@@ -2101,8 +1713,6 @@ var FriendshipUpdate;
|
|
|
2101
1713
|
(obj.cancel = ((_p = message.update) === null || _p === void 0 ? void 0 : _p.cancel)
|
|
2102
1714
|
? FriendshipUpdate_CancelResponse.toJSON((_q = message.update) === null || _q === void 0 ? void 0 : _q.cancel)
|
|
2103
1715
|
: undefined);
|
|
2104
|
-
((_r = message.update) === null || _r === void 0 ? void 0 : _r.$case) === "block" &&
|
|
2105
|
-
(obj.block = ((_s = message.update) === null || _s === void 0 ? void 0 : _s.block) ? FriendshipUpdate_BlockResponse.toJSON((_t = message.update) === null || _t === void 0 ? void 0 : _t.block) : undefined);
|
|
2106
1716
|
return obj;
|
|
2107
1717
|
}
|
|
2108
1718
|
FriendshipUpdate.toJSON = toJSON;
|
|
@@ -2111,13 +1721,10 @@ var FriendshipUpdate;
|
|
|
2111
1721
|
}
|
|
2112
1722
|
FriendshipUpdate.create = create;
|
|
2113
1723
|
function fromPartial(object) {
|
|
2114
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
1724
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
2115
1725
|
const message = createBaseFriendshipUpdate();
|
|
2116
1726
|
if (((_a = object.update) === null || _a === void 0 ? void 0 : _a.$case) === "request" && ((_b = object.update) === null || _b === void 0 ? void 0 : _b.request) !== undefined && ((_c = object.update) === null || _c === void 0 ? void 0 : _c.request) !== null) {
|
|
2117
|
-
message.update = {
|
|
2118
|
-
$case: "request",
|
|
2119
|
-
request: FriendshipUpdate_RequestResponse.fromPartial(object.update.request),
|
|
2120
|
-
};
|
|
1727
|
+
message.update = { $case: "request", request: FriendshipRequestResponse.fromPartial(object.update.request) };
|
|
2121
1728
|
}
|
|
2122
1729
|
if (((_d = object.update) === null || _d === void 0 ? void 0 : _d.$case) === "accept" && ((_e = object.update) === null || _e === void 0 ? void 0 : _e.accept) !== undefined && ((_f = object.update) === null || _f === void 0 ? void 0 : _f.accept) !== null) {
|
|
2123
1730
|
message.update = { $case: "accept", accept: FriendshipUpdate_AcceptResponse.fromPartial(object.update.accept) };
|
|
@@ -2131,109 +1738,10 @@ var FriendshipUpdate;
|
|
|
2131
1738
|
if (((_o = object.update) === null || _o === void 0 ? void 0 : _o.$case) === "cancel" && ((_p = object.update) === null || _p === void 0 ? void 0 : _p.cancel) !== undefined && ((_q = object.update) === null || _q === void 0 ? void 0 : _q.cancel) !== null) {
|
|
2132
1739
|
message.update = { $case: "cancel", cancel: FriendshipUpdate_CancelResponse.fromPartial(object.update.cancel) };
|
|
2133
1740
|
}
|
|
2134
|
-
if (((_r = object.update) === null || _r === void 0 ? void 0 : _r.$case) === "block" && ((_s = object.update) === null || _s === void 0 ? void 0 : _s.block) !== undefined && ((_t = object.update) === null || _t === void 0 ? void 0 : _t.block) !== null) {
|
|
2135
|
-
message.update = { $case: "block", block: FriendshipUpdate_BlockResponse.fromPartial(object.update.block) };
|
|
2136
|
-
}
|
|
2137
1741
|
return message;
|
|
2138
1742
|
}
|
|
2139
1743
|
FriendshipUpdate.fromPartial = fromPartial;
|
|
2140
1744
|
})(FriendshipUpdate || (exports.FriendshipUpdate = FriendshipUpdate = {}));
|
|
2141
|
-
function createBaseFriendshipUpdate_RequestResponse() {
|
|
2142
|
-
return { friend: undefined, createdAt: 0, message: undefined, id: "" };
|
|
2143
|
-
}
|
|
2144
|
-
var FriendshipUpdate_RequestResponse;
|
|
2145
|
-
(function (FriendshipUpdate_RequestResponse) {
|
|
2146
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2147
|
-
if (message.friend !== undefined) {
|
|
2148
|
-
FriendProfile.encode(message.friend, writer.uint32(10).fork()).ldelim();
|
|
2149
|
-
}
|
|
2150
|
-
if (message.createdAt !== 0) {
|
|
2151
|
-
writer.uint32(16).int64(message.createdAt);
|
|
2152
|
-
}
|
|
2153
|
-
if (message.message !== undefined) {
|
|
2154
|
-
writer.uint32(26).string(message.message);
|
|
2155
|
-
}
|
|
2156
|
-
if (message.id !== "") {
|
|
2157
|
-
writer.uint32(34).string(message.id);
|
|
2158
|
-
}
|
|
2159
|
-
return writer;
|
|
2160
|
-
}
|
|
2161
|
-
FriendshipUpdate_RequestResponse.encode = encode;
|
|
2162
|
-
function decode(input, length) {
|
|
2163
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2164
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2165
|
-
const message = createBaseFriendshipUpdate_RequestResponse();
|
|
2166
|
-
while (reader.pos < end) {
|
|
2167
|
-
const tag = reader.uint32();
|
|
2168
|
-
switch (tag >>> 3) {
|
|
2169
|
-
case 1:
|
|
2170
|
-
if (tag !== 10) {
|
|
2171
|
-
break;
|
|
2172
|
-
}
|
|
2173
|
-
message.friend = FriendProfile.decode(reader, reader.uint32());
|
|
2174
|
-
continue;
|
|
2175
|
-
case 2:
|
|
2176
|
-
if (tag !== 16) {
|
|
2177
|
-
break;
|
|
2178
|
-
}
|
|
2179
|
-
message.createdAt = longToNumber(reader.int64());
|
|
2180
|
-
continue;
|
|
2181
|
-
case 3:
|
|
2182
|
-
if (tag !== 26) {
|
|
2183
|
-
break;
|
|
2184
|
-
}
|
|
2185
|
-
message.message = reader.string();
|
|
2186
|
-
continue;
|
|
2187
|
-
case 4:
|
|
2188
|
-
if (tag !== 34) {
|
|
2189
|
-
break;
|
|
2190
|
-
}
|
|
2191
|
-
message.id = reader.string();
|
|
2192
|
-
continue;
|
|
2193
|
-
}
|
|
2194
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2195
|
-
break;
|
|
2196
|
-
}
|
|
2197
|
-
reader.skipType(tag & 7);
|
|
2198
|
-
}
|
|
2199
|
-
return message;
|
|
2200
|
-
}
|
|
2201
|
-
FriendshipUpdate_RequestResponse.decode = decode;
|
|
2202
|
-
function fromJSON(object) {
|
|
2203
|
-
return {
|
|
2204
|
-
friend: isSet(object.friend) ? FriendProfile.fromJSON(object.friend) : undefined,
|
|
2205
|
-
createdAt: isSet(object.createdAt) ? Number(object.createdAt) : 0,
|
|
2206
|
-
message: isSet(object.message) ? String(object.message) : undefined,
|
|
2207
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
2208
|
-
};
|
|
2209
|
-
}
|
|
2210
|
-
FriendshipUpdate_RequestResponse.fromJSON = fromJSON;
|
|
2211
|
-
function toJSON(message) {
|
|
2212
|
-
const obj = {};
|
|
2213
|
-
message.friend !== undefined && (obj.friend = message.friend ? FriendProfile.toJSON(message.friend) : undefined);
|
|
2214
|
-
message.createdAt !== undefined && (obj.createdAt = Math.round(message.createdAt));
|
|
2215
|
-
message.message !== undefined && (obj.message = message.message);
|
|
2216
|
-
message.id !== undefined && (obj.id = message.id);
|
|
2217
|
-
return obj;
|
|
2218
|
-
}
|
|
2219
|
-
FriendshipUpdate_RequestResponse.toJSON = toJSON;
|
|
2220
|
-
function create(base) {
|
|
2221
|
-
return FriendshipUpdate_RequestResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2222
|
-
}
|
|
2223
|
-
FriendshipUpdate_RequestResponse.create = create;
|
|
2224
|
-
function fromPartial(object) {
|
|
2225
|
-
var _a, _b, _c;
|
|
2226
|
-
const message = createBaseFriendshipUpdate_RequestResponse();
|
|
2227
|
-
message.friend = (object.friend !== undefined && object.friend !== null)
|
|
2228
|
-
? FriendProfile.fromPartial(object.friend)
|
|
2229
|
-
: undefined;
|
|
2230
|
-
message.createdAt = (_a = object.createdAt) !== null && _a !== void 0 ? _a : 0;
|
|
2231
|
-
message.message = (_b = object.message) !== null && _b !== void 0 ? _b : undefined;
|
|
2232
|
-
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : "";
|
|
2233
|
-
return message;
|
|
2234
|
-
}
|
|
2235
|
-
FriendshipUpdate_RequestResponse.fromPartial = fromPartial;
|
|
2236
|
-
})(FriendshipUpdate_RequestResponse || (exports.FriendshipUpdate_RequestResponse = FriendshipUpdate_RequestResponse = {}));
|
|
2237
1745
|
function createBaseFriendshipUpdate_AcceptResponse() {
|
|
2238
1746
|
return { user: undefined };
|
|
2239
1747
|
}
|
|
@@ -2454,133 +1962,6 @@ var FriendshipUpdate_CancelResponse;
|
|
|
2454
1962
|
}
|
|
2455
1963
|
FriendshipUpdate_CancelResponse.fromPartial = fromPartial;
|
|
2456
1964
|
})(FriendshipUpdate_CancelResponse || (exports.FriendshipUpdate_CancelResponse = FriendshipUpdate_CancelResponse = {}));
|
|
2457
|
-
function createBaseFriendshipUpdate_BlockResponse() {
|
|
2458
|
-
return { user: undefined };
|
|
2459
|
-
}
|
|
2460
|
-
var FriendshipUpdate_BlockResponse;
|
|
2461
|
-
(function (FriendshipUpdate_BlockResponse) {
|
|
2462
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2463
|
-
if (message.user !== undefined) {
|
|
2464
|
-
User.encode(message.user, writer.uint32(10).fork()).ldelim();
|
|
2465
|
-
}
|
|
2466
|
-
return writer;
|
|
2467
|
-
}
|
|
2468
|
-
FriendshipUpdate_BlockResponse.encode = encode;
|
|
2469
|
-
function decode(input, length) {
|
|
2470
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2471
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2472
|
-
const message = createBaseFriendshipUpdate_BlockResponse();
|
|
2473
|
-
while (reader.pos < end) {
|
|
2474
|
-
const tag = reader.uint32();
|
|
2475
|
-
switch (tag >>> 3) {
|
|
2476
|
-
case 1:
|
|
2477
|
-
if (tag !== 10) {
|
|
2478
|
-
break;
|
|
2479
|
-
}
|
|
2480
|
-
message.user = User.decode(reader, reader.uint32());
|
|
2481
|
-
continue;
|
|
2482
|
-
}
|
|
2483
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2484
|
-
break;
|
|
2485
|
-
}
|
|
2486
|
-
reader.skipType(tag & 7);
|
|
2487
|
-
}
|
|
2488
|
-
return message;
|
|
2489
|
-
}
|
|
2490
|
-
FriendshipUpdate_BlockResponse.decode = decode;
|
|
2491
|
-
function fromJSON(object) {
|
|
2492
|
-
return { user: isSet(object.user) ? User.fromJSON(object.user) : undefined };
|
|
2493
|
-
}
|
|
2494
|
-
FriendshipUpdate_BlockResponse.fromJSON = fromJSON;
|
|
2495
|
-
function toJSON(message) {
|
|
2496
|
-
const obj = {};
|
|
2497
|
-
message.user !== undefined && (obj.user = message.user ? User.toJSON(message.user) : undefined);
|
|
2498
|
-
return obj;
|
|
2499
|
-
}
|
|
2500
|
-
FriendshipUpdate_BlockResponse.toJSON = toJSON;
|
|
2501
|
-
function create(base) {
|
|
2502
|
-
return FriendshipUpdate_BlockResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2503
|
-
}
|
|
2504
|
-
FriendshipUpdate_BlockResponse.create = create;
|
|
2505
|
-
function fromPartial(object) {
|
|
2506
|
-
const message = createBaseFriendshipUpdate_BlockResponse();
|
|
2507
|
-
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
2508
|
-
return message;
|
|
2509
|
-
}
|
|
2510
|
-
FriendshipUpdate_BlockResponse.fromPartial = fromPartial;
|
|
2511
|
-
})(FriendshipUpdate_BlockResponse || (exports.FriendshipUpdate_BlockResponse = FriendshipUpdate_BlockResponse = {}));
|
|
2512
|
-
function createBaseFriendConnectivityUpdate() {
|
|
2513
|
-
return { friend: undefined, status: 0 };
|
|
2514
|
-
}
|
|
2515
|
-
var FriendConnectivityUpdate;
|
|
2516
|
-
(function (FriendConnectivityUpdate) {
|
|
2517
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2518
|
-
if (message.friend !== undefined) {
|
|
2519
|
-
FriendProfile.encode(message.friend, writer.uint32(10).fork()).ldelim();
|
|
2520
|
-
}
|
|
2521
|
-
if (message.status !== 0) {
|
|
2522
|
-
writer.uint32(16).int32(message.status);
|
|
2523
|
-
}
|
|
2524
|
-
return writer;
|
|
2525
|
-
}
|
|
2526
|
-
FriendConnectivityUpdate.encode = encode;
|
|
2527
|
-
function decode(input, length) {
|
|
2528
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2529
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2530
|
-
const message = createBaseFriendConnectivityUpdate();
|
|
2531
|
-
while (reader.pos < end) {
|
|
2532
|
-
const tag = reader.uint32();
|
|
2533
|
-
switch (tag >>> 3) {
|
|
2534
|
-
case 1:
|
|
2535
|
-
if (tag !== 10) {
|
|
2536
|
-
break;
|
|
2537
|
-
}
|
|
2538
|
-
message.friend = FriendProfile.decode(reader, reader.uint32());
|
|
2539
|
-
continue;
|
|
2540
|
-
case 2:
|
|
2541
|
-
if (tag !== 16) {
|
|
2542
|
-
break;
|
|
2543
|
-
}
|
|
2544
|
-
message.status = reader.int32();
|
|
2545
|
-
continue;
|
|
2546
|
-
}
|
|
2547
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2548
|
-
break;
|
|
2549
|
-
}
|
|
2550
|
-
reader.skipType(tag & 7);
|
|
2551
|
-
}
|
|
2552
|
-
return message;
|
|
2553
|
-
}
|
|
2554
|
-
FriendConnectivityUpdate.decode = decode;
|
|
2555
|
-
function fromJSON(object) {
|
|
2556
|
-
return {
|
|
2557
|
-
friend: isSet(object.friend) ? FriendProfile.fromJSON(object.friend) : undefined,
|
|
2558
|
-
status: isSet(object.status) ? connectivityStatusFromJSON(object.status) : 0,
|
|
2559
|
-
};
|
|
2560
|
-
}
|
|
2561
|
-
FriendConnectivityUpdate.fromJSON = fromJSON;
|
|
2562
|
-
function toJSON(message) {
|
|
2563
|
-
const obj = {};
|
|
2564
|
-
message.friend !== undefined && (obj.friend = message.friend ? FriendProfile.toJSON(message.friend) : undefined);
|
|
2565
|
-
message.status !== undefined && (obj.status = connectivityStatusToJSON(message.status));
|
|
2566
|
-
return obj;
|
|
2567
|
-
}
|
|
2568
|
-
FriendConnectivityUpdate.toJSON = toJSON;
|
|
2569
|
-
function create(base) {
|
|
2570
|
-
return FriendConnectivityUpdate.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2571
|
-
}
|
|
2572
|
-
FriendConnectivityUpdate.create = create;
|
|
2573
|
-
function fromPartial(object) {
|
|
2574
|
-
var _a;
|
|
2575
|
-
const message = createBaseFriendConnectivityUpdate();
|
|
2576
|
-
message.friend = (object.friend !== undefined && object.friend !== null)
|
|
2577
|
-
? FriendProfile.fromPartial(object.friend)
|
|
2578
|
-
: undefined;
|
|
2579
|
-
message.status = (_a = object.status) !== null && _a !== void 0 ? _a : 0;
|
|
2580
|
-
return message;
|
|
2581
|
-
}
|
|
2582
|
-
FriendConnectivityUpdate.fromPartial = fromPartial;
|
|
2583
|
-
})(FriendConnectivityUpdate || (exports.FriendConnectivityUpdate = FriendConnectivityUpdate = {}));
|
|
2584
1965
|
function createBaseGetFriendshipStatusPayload() {
|
|
2585
1966
|
return { user: undefined };
|
|
2586
1967
|
}
|
|
@@ -2812,814 +2193,6 @@ var GetFriendshipStatusResponse_Ok;
|
|
|
2812
2193
|
}
|
|
2813
2194
|
GetFriendshipStatusResponse_Ok.fromPartial = fromPartial;
|
|
2814
2195
|
})(GetFriendshipStatusResponse_Ok || (exports.GetFriendshipStatusResponse_Ok = GetFriendshipStatusResponse_Ok = {}));
|
|
2815
|
-
function createBaseBlockUserPayload() {
|
|
2816
|
-
return { user: undefined };
|
|
2817
|
-
}
|
|
2818
|
-
var BlockUserPayload;
|
|
2819
|
-
(function (BlockUserPayload) {
|
|
2820
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2821
|
-
if (message.user !== undefined) {
|
|
2822
|
-
User.encode(message.user, writer.uint32(10).fork()).ldelim();
|
|
2823
|
-
}
|
|
2824
|
-
return writer;
|
|
2825
|
-
}
|
|
2826
|
-
BlockUserPayload.encode = encode;
|
|
2827
|
-
function decode(input, length) {
|
|
2828
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2829
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2830
|
-
const message = createBaseBlockUserPayload();
|
|
2831
|
-
while (reader.pos < end) {
|
|
2832
|
-
const tag = reader.uint32();
|
|
2833
|
-
switch (tag >>> 3) {
|
|
2834
|
-
case 1:
|
|
2835
|
-
if (tag !== 10) {
|
|
2836
|
-
break;
|
|
2837
|
-
}
|
|
2838
|
-
message.user = User.decode(reader, reader.uint32());
|
|
2839
|
-
continue;
|
|
2840
|
-
}
|
|
2841
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2842
|
-
break;
|
|
2843
|
-
}
|
|
2844
|
-
reader.skipType(tag & 7);
|
|
2845
|
-
}
|
|
2846
|
-
return message;
|
|
2847
|
-
}
|
|
2848
|
-
BlockUserPayload.decode = decode;
|
|
2849
|
-
function fromJSON(object) {
|
|
2850
|
-
return { user: isSet(object.user) ? User.fromJSON(object.user) : undefined };
|
|
2851
|
-
}
|
|
2852
|
-
BlockUserPayload.fromJSON = fromJSON;
|
|
2853
|
-
function toJSON(message) {
|
|
2854
|
-
const obj = {};
|
|
2855
|
-
message.user !== undefined && (obj.user = message.user ? User.toJSON(message.user) : undefined);
|
|
2856
|
-
return obj;
|
|
2857
|
-
}
|
|
2858
|
-
BlockUserPayload.toJSON = toJSON;
|
|
2859
|
-
function create(base) {
|
|
2860
|
-
return BlockUserPayload.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2861
|
-
}
|
|
2862
|
-
BlockUserPayload.create = create;
|
|
2863
|
-
function fromPartial(object) {
|
|
2864
|
-
const message = createBaseBlockUserPayload();
|
|
2865
|
-
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
2866
|
-
return message;
|
|
2867
|
-
}
|
|
2868
|
-
BlockUserPayload.fromPartial = fromPartial;
|
|
2869
|
-
})(BlockUserPayload || (exports.BlockUserPayload = BlockUserPayload = {}));
|
|
2870
|
-
function createBaseBlockUserResponse() {
|
|
2871
|
-
return { response: undefined };
|
|
2872
|
-
}
|
|
2873
|
-
var BlockUserResponse;
|
|
2874
|
-
(function (BlockUserResponse) {
|
|
2875
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2876
|
-
var _a;
|
|
2877
|
-
switch ((_a = message.response) === null || _a === void 0 ? void 0 : _a.$case) {
|
|
2878
|
-
case "ok":
|
|
2879
|
-
BlockUserResponse_Ok.encode(message.response.ok, writer.uint32(10).fork()).ldelim();
|
|
2880
|
-
break;
|
|
2881
|
-
case "internalServerError":
|
|
2882
|
-
InternalServerError.encode(message.response.internalServerError, writer.uint32(18).fork()).ldelim();
|
|
2883
|
-
break;
|
|
2884
|
-
case "invalidRequest":
|
|
2885
|
-
InvalidRequest.encode(message.response.invalidRequest, writer.uint32(26).fork()).ldelim();
|
|
2886
|
-
break;
|
|
2887
|
-
case "profileNotFound":
|
|
2888
|
-
ProfileNotFound.encode(message.response.profileNotFound, writer.uint32(34).fork()).ldelim();
|
|
2889
|
-
break;
|
|
2890
|
-
}
|
|
2891
|
-
return writer;
|
|
2892
|
-
}
|
|
2893
|
-
BlockUserResponse.encode = encode;
|
|
2894
|
-
function decode(input, length) {
|
|
2895
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2896
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2897
|
-
const message = createBaseBlockUserResponse();
|
|
2898
|
-
while (reader.pos < end) {
|
|
2899
|
-
const tag = reader.uint32();
|
|
2900
|
-
switch (tag >>> 3) {
|
|
2901
|
-
case 1:
|
|
2902
|
-
if (tag !== 10) {
|
|
2903
|
-
break;
|
|
2904
|
-
}
|
|
2905
|
-
message.response = { $case: "ok", ok: BlockUserResponse_Ok.decode(reader, reader.uint32()) };
|
|
2906
|
-
continue;
|
|
2907
|
-
case 2:
|
|
2908
|
-
if (tag !== 18) {
|
|
2909
|
-
break;
|
|
2910
|
-
}
|
|
2911
|
-
message.response = {
|
|
2912
|
-
$case: "internalServerError",
|
|
2913
|
-
internalServerError: InternalServerError.decode(reader, reader.uint32()),
|
|
2914
|
-
};
|
|
2915
|
-
continue;
|
|
2916
|
-
case 3:
|
|
2917
|
-
if (tag !== 26) {
|
|
2918
|
-
break;
|
|
2919
|
-
}
|
|
2920
|
-
message.response = {
|
|
2921
|
-
$case: "invalidRequest",
|
|
2922
|
-
invalidRequest: InvalidRequest.decode(reader, reader.uint32()),
|
|
2923
|
-
};
|
|
2924
|
-
continue;
|
|
2925
|
-
case 4:
|
|
2926
|
-
if (tag !== 34) {
|
|
2927
|
-
break;
|
|
2928
|
-
}
|
|
2929
|
-
message.response = {
|
|
2930
|
-
$case: "profileNotFound",
|
|
2931
|
-
profileNotFound: ProfileNotFound.decode(reader, reader.uint32()),
|
|
2932
|
-
};
|
|
2933
|
-
continue;
|
|
2934
|
-
}
|
|
2935
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2936
|
-
break;
|
|
2937
|
-
}
|
|
2938
|
-
reader.skipType(tag & 7);
|
|
2939
|
-
}
|
|
2940
|
-
return message;
|
|
2941
|
-
}
|
|
2942
|
-
BlockUserResponse.decode = decode;
|
|
2943
|
-
function fromJSON(object) {
|
|
2944
|
-
return {
|
|
2945
|
-
response: isSet(object.ok)
|
|
2946
|
-
? { $case: "ok", ok: BlockUserResponse_Ok.fromJSON(object.ok) }
|
|
2947
|
-
: isSet(object.internalServerError)
|
|
2948
|
-
? {
|
|
2949
|
-
$case: "internalServerError",
|
|
2950
|
-
internalServerError: InternalServerError.fromJSON(object.internalServerError),
|
|
2951
|
-
}
|
|
2952
|
-
: isSet(object.invalidRequest)
|
|
2953
|
-
? { $case: "invalidRequest", invalidRequest: InvalidRequest.fromJSON(object.invalidRequest) }
|
|
2954
|
-
: isSet(object.profileNotFound)
|
|
2955
|
-
? { $case: "profileNotFound", profileNotFound: ProfileNotFound.fromJSON(object.profileNotFound) }
|
|
2956
|
-
: undefined,
|
|
2957
|
-
};
|
|
2958
|
-
}
|
|
2959
|
-
BlockUserResponse.fromJSON = fromJSON;
|
|
2960
|
-
function toJSON(message) {
|
|
2961
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2962
|
-
const obj = {};
|
|
2963
|
-
((_a = message.response) === null || _a === void 0 ? void 0 : _a.$case) === "ok" &&
|
|
2964
|
-
(obj.ok = ((_b = message.response) === null || _b === void 0 ? void 0 : _b.ok) ? BlockUserResponse_Ok.toJSON((_c = message.response) === null || _c === void 0 ? void 0 : _c.ok) : undefined);
|
|
2965
|
-
((_d = message.response) === null || _d === void 0 ? void 0 : _d.$case) === "internalServerError" &&
|
|
2966
|
-
(obj.internalServerError = ((_e = message.response) === null || _e === void 0 ? void 0 : _e.internalServerError)
|
|
2967
|
-
? InternalServerError.toJSON((_f = message.response) === null || _f === void 0 ? void 0 : _f.internalServerError)
|
|
2968
|
-
: undefined);
|
|
2969
|
-
((_g = message.response) === null || _g === void 0 ? void 0 : _g.$case) === "invalidRequest" &&
|
|
2970
|
-
(obj.invalidRequest = ((_h = message.response) === null || _h === void 0 ? void 0 : _h.invalidRequest)
|
|
2971
|
-
? InvalidRequest.toJSON((_j = message.response) === null || _j === void 0 ? void 0 : _j.invalidRequest)
|
|
2972
|
-
: undefined);
|
|
2973
|
-
((_k = message.response) === null || _k === void 0 ? void 0 : _k.$case) === "profileNotFound" &&
|
|
2974
|
-
(obj.profileNotFound = ((_l = message.response) === null || _l === void 0 ? void 0 : _l.profileNotFound)
|
|
2975
|
-
? ProfileNotFound.toJSON((_m = message.response) === null || _m === void 0 ? void 0 : _m.profileNotFound)
|
|
2976
|
-
: undefined);
|
|
2977
|
-
return obj;
|
|
2978
|
-
}
|
|
2979
|
-
BlockUserResponse.toJSON = toJSON;
|
|
2980
|
-
function create(base) {
|
|
2981
|
-
return BlockUserResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2982
|
-
}
|
|
2983
|
-
BlockUserResponse.create = create;
|
|
2984
|
-
function fromPartial(object) {
|
|
2985
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2986
|
-
const message = createBaseBlockUserResponse();
|
|
2987
|
-
if (((_a = object.response) === null || _a === void 0 ? void 0 : _a.$case) === "ok" && ((_b = object.response) === null || _b === void 0 ? void 0 : _b.ok) !== undefined && ((_c = object.response) === null || _c === void 0 ? void 0 : _c.ok) !== null) {
|
|
2988
|
-
message.response = { $case: "ok", ok: BlockUserResponse_Ok.fromPartial(object.response.ok) };
|
|
2989
|
-
}
|
|
2990
|
-
if (((_d = object.response) === null || _d === void 0 ? void 0 : _d.$case) === "internalServerError" &&
|
|
2991
|
-
((_e = object.response) === null || _e === void 0 ? void 0 : _e.internalServerError) !== undefined &&
|
|
2992
|
-
((_f = object.response) === null || _f === void 0 ? void 0 : _f.internalServerError) !== null) {
|
|
2993
|
-
message.response = {
|
|
2994
|
-
$case: "internalServerError",
|
|
2995
|
-
internalServerError: InternalServerError.fromPartial(object.response.internalServerError),
|
|
2996
|
-
};
|
|
2997
|
-
}
|
|
2998
|
-
if (((_g = object.response) === null || _g === void 0 ? void 0 : _g.$case) === "invalidRequest" &&
|
|
2999
|
-
((_h = object.response) === null || _h === void 0 ? void 0 : _h.invalidRequest) !== undefined &&
|
|
3000
|
-
((_j = object.response) === null || _j === void 0 ? void 0 : _j.invalidRequest) !== null) {
|
|
3001
|
-
message.response = {
|
|
3002
|
-
$case: "invalidRequest",
|
|
3003
|
-
invalidRequest: InvalidRequest.fromPartial(object.response.invalidRequest),
|
|
3004
|
-
};
|
|
3005
|
-
}
|
|
3006
|
-
if (((_k = object.response) === null || _k === void 0 ? void 0 : _k.$case) === "profileNotFound" &&
|
|
3007
|
-
((_l = object.response) === null || _l === void 0 ? void 0 : _l.profileNotFound) !== undefined &&
|
|
3008
|
-
((_m = object.response) === null || _m === void 0 ? void 0 : _m.profileNotFound) !== null) {
|
|
3009
|
-
message.response = {
|
|
3010
|
-
$case: "profileNotFound",
|
|
3011
|
-
profileNotFound: ProfileNotFound.fromPartial(object.response.profileNotFound),
|
|
3012
|
-
};
|
|
3013
|
-
}
|
|
3014
|
-
return message;
|
|
3015
|
-
}
|
|
3016
|
-
BlockUserResponse.fromPartial = fromPartial;
|
|
3017
|
-
})(BlockUserResponse || (exports.BlockUserResponse = BlockUserResponse = {}));
|
|
3018
|
-
function createBaseBlockUserResponse_Ok() {
|
|
3019
|
-
return { profile: undefined };
|
|
3020
|
-
}
|
|
3021
|
-
var BlockUserResponse_Ok;
|
|
3022
|
-
(function (BlockUserResponse_Ok) {
|
|
3023
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3024
|
-
if (message.profile !== undefined) {
|
|
3025
|
-
BlockedUserProfile.encode(message.profile, writer.uint32(10).fork()).ldelim();
|
|
3026
|
-
}
|
|
3027
|
-
return writer;
|
|
3028
|
-
}
|
|
3029
|
-
BlockUserResponse_Ok.encode = encode;
|
|
3030
|
-
function decode(input, length) {
|
|
3031
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
3032
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3033
|
-
const message = createBaseBlockUserResponse_Ok();
|
|
3034
|
-
while (reader.pos < end) {
|
|
3035
|
-
const tag = reader.uint32();
|
|
3036
|
-
switch (tag >>> 3) {
|
|
3037
|
-
case 1:
|
|
3038
|
-
if (tag !== 10) {
|
|
3039
|
-
break;
|
|
3040
|
-
}
|
|
3041
|
-
message.profile = BlockedUserProfile.decode(reader, reader.uint32());
|
|
3042
|
-
continue;
|
|
3043
|
-
}
|
|
3044
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3045
|
-
break;
|
|
3046
|
-
}
|
|
3047
|
-
reader.skipType(tag & 7);
|
|
3048
|
-
}
|
|
3049
|
-
return message;
|
|
3050
|
-
}
|
|
3051
|
-
BlockUserResponse_Ok.decode = decode;
|
|
3052
|
-
function fromJSON(object) {
|
|
3053
|
-
return { profile: isSet(object.profile) ? BlockedUserProfile.fromJSON(object.profile) : undefined };
|
|
3054
|
-
}
|
|
3055
|
-
BlockUserResponse_Ok.fromJSON = fromJSON;
|
|
3056
|
-
function toJSON(message) {
|
|
3057
|
-
const obj = {};
|
|
3058
|
-
message.profile !== undefined &&
|
|
3059
|
-
(obj.profile = message.profile ? BlockedUserProfile.toJSON(message.profile) : undefined);
|
|
3060
|
-
return obj;
|
|
3061
|
-
}
|
|
3062
|
-
BlockUserResponse_Ok.toJSON = toJSON;
|
|
3063
|
-
function create(base) {
|
|
3064
|
-
return BlockUserResponse_Ok.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3065
|
-
}
|
|
3066
|
-
BlockUserResponse_Ok.create = create;
|
|
3067
|
-
function fromPartial(object) {
|
|
3068
|
-
const message = createBaseBlockUserResponse_Ok();
|
|
3069
|
-
message.profile = (object.profile !== undefined && object.profile !== null)
|
|
3070
|
-
? BlockedUserProfile.fromPartial(object.profile)
|
|
3071
|
-
: undefined;
|
|
3072
|
-
return message;
|
|
3073
|
-
}
|
|
3074
|
-
BlockUserResponse_Ok.fromPartial = fromPartial;
|
|
3075
|
-
})(BlockUserResponse_Ok || (exports.BlockUserResponse_Ok = BlockUserResponse_Ok = {}));
|
|
3076
|
-
function createBaseUnblockUserPayload() {
|
|
3077
|
-
return { user: undefined };
|
|
3078
|
-
}
|
|
3079
|
-
var UnblockUserPayload;
|
|
3080
|
-
(function (UnblockUserPayload) {
|
|
3081
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3082
|
-
if (message.user !== undefined) {
|
|
3083
|
-
User.encode(message.user, writer.uint32(10).fork()).ldelim();
|
|
3084
|
-
}
|
|
3085
|
-
return writer;
|
|
3086
|
-
}
|
|
3087
|
-
UnblockUserPayload.encode = encode;
|
|
3088
|
-
function decode(input, length) {
|
|
3089
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
3090
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3091
|
-
const message = createBaseUnblockUserPayload();
|
|
3092
|
-
while (reader.pos < end) {
|
|
3093
|
-
const tag = reader.uint32();
|
|
3094
|
-
switch (tag >>> 3) {
|
|
3095
|
-
case 1:
|
|
3096
|
-
if (tag !== 10) {
|
|
3097
|
-
break;
|
|
3098
|
-
}
|
|
3099
|
-
message.user = User.decode(reader, reader.uint32());
|
|
3100
|
-
continue;
|
|
3101
|
-
}
|
|
3102
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3103
|
-
break;
|
|
3104
|
-
}
|
|
3105
|
-
reader.skipType(tag & 7);
|
|
3106
|
-
}
|
|
3107
|
-
return message;
|
|
3108
|
-
}
|
|
3109
|
-
UnblockUserPayload.decode = decode;
|
|
3110
|
-
function fromJSON(object) {
|
|
3111
|
-
return { user: isSet(object.user) ? User.fromJSON(object.user) : undefined };
|
|
3112
|
-
}
|
|
3113
|
-
UnblockUserPayload.fromJSON = fromJSON;
|
|
3114
|
-
function toJSON(message) {
|
|
3115
|
-
const obj = {};
|
|
3116
|
-
message.user !== undefined && (obj.user = message.user ? User.toJSON(message.user) : undefined);
|
|
3117
|
-
return obj;
|
|
3118
|
-
}
|
|
3119
|
-
UnblockUserPayload.toJSON = toJSON;
|
|
3120
|
-
function create(base) {
|
|
3121
|
-
return UnblockUserPayload.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3122
|
-
}
|
|
3123
|
-
UnblockUserPayload.create = create;
|
|
3124
|
-
function fromPartial(object) {
|
|
3125
|
-
const message = createBaseUnblockUserPayload();
|
|
3126
|
-
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
3127
|
-
return message;
|
|
3128
|
-
}
|
|
3129
|
-
UnblockUserPayload.fromPartial = fromPartial;
|
|
3130
|
-
})(UnblockUserPayload || (exports.UnblockUserPayload = UnblockUserPayload = {}));
|
|
3131
|
-
function createBaseUnblockUserResponse() {
|
|
3132
|
-
return { response: undefined };
|
|
3133
|
-
}
|
|
3134
|
-
var UnblockUserResponse;
|
|
3135
|
-
(function (UnblockUserResponse) {
|
|
3136
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3137
|
-
var _a;
|
|
3138
|
-
switch ((_a = message.response) === null || _a === void 0 ? void 0 : _a.$case) {
|
|
3139
|
-
case "ok":
|
|
3140
|
-
UnblockUserResponse_Ok.encode(message.response.ok, writer.uint32(10).fork()).ldelim();
|
|
3141
|
-
break;
|
|
3142
|
-
case "internalServerError":
|
|
3143
|
-
InternalServerError.encode(message.response.internalServerError, writer.uint32(18).fork()).ldelim();
|
|
3144
|
-
break;
|
|
3145
|
-
case "invalidRequest":
|
|
3146
|
-
InvalidRequest.encode(message.response.invalidRequest, writer.uint32(26).fork()).ldelim();
|
|
3147
|
-
break;
|
|
3148
|
-
case "profileNotFound":
|
|
3149
|
-
ProfileNotFound.encode(message.response.profileNotFound, writer.uint32(34).fork()).ldelim();
|
|
3150
|
-
break;
|
|
3151
|
-
}
|
|
3152
|
-
return writer;
|
|
3153
|
-
}
|
|
3154
|
-
UnblockUserResponse.encode = encode;
|
|
3155
|
-
function decode(input, length) {
|
|
3156
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
3157
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3158
|
-
const message = createBaseUnblockUserResponse();
|
|
3159
|
-
while (reader.pos < end) {
|
|
3160
|
-
const tag = reader.uint32();
|
|
3161
|
-
switch (tag >>> 3) {
|
|
3162
|
-
case 1:
|
|
3163
|
-
if (tag !== 10) {
|
|
3164
|
-
break;
|
|
3165
|
-
}
|
|
3166
|
-
message.response = { $case: "ok", ok: UnblockUserResponse_Ok.decode(reader, reader.uint32()) };
|
|
3167
|
-
continue;
|
|
3168
|
-
case 2:
|
|
3169
|
-
if (tag !== 18) {
|
|
3170
|
-
break;
|
|
3171
|
-
}
|
|
3172
|
-
message.response = {
|
|
3173
|
-
$case: "internalServerError",
|
|
3174
|
-
internalServerError: InternalServerError.decode(reader, reader.uint32()),
|
|
3175
|
-
};
|
|
3176
|
-
continue;
|
|
3177
|
-
case 3:
|
|
3178
|
-
if (tag !== 26) {
|
|
3179
|
-
break;
|
|
3180
|
-
}
|
|
3181
|
-
message.response = {
|
|
3182
|
-
$case: "invalidRequest",
|
|
3183
|
-
invalidRequest: InvalidRequest.decode(reader, reader.uint32()),
|
|
3184
|
-
};
|
|
3185
|
-
continue;
|
|
3186
|
-
case 4:
|
|
3187
|
-
if (tag !== 34) {
|
|
3188
|
-
break;
|
|
3189
|
-
}
|
|
3190
|
-
message.response = {
|
|
3191
|
-
$case: "profileNotFound",
|
|
3192
|
-
profileNotFound: ProfileNotFound.decode(reader, reader.uint32()),
|
|
3193
|
-
};
|
|
3194
|
-
continue;
|
|
3195
|
-
}
|
|
3196
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3197
|
-
break;
|
|
3198
|
-
}
|
|
3199
|
-
reader.skipType(tag & 7);
|
|
3200
|
-
}
|
|
3201
|
-
return message;
|
|
3202
|
-
}
|
|
3203
|
-
UnblockUserResponse.decode = decode;
|
|
3204
|
-
function fromJSON(object) {
|
|
3205
|
-
return {
|
|
3206
|
-
response: isSet(object.ok)
|
|
3207
|
-
? { $case: "ok", ok: UnblockUserResponse_Ok.fromJSON(object.ok) }
|
|
3208
|
-
: isSet(object.internalServerError)
|
|
3209
|
-
? {
|
|
3210
|
-
$case: "internalServerError",
|
|
3211
|
-
internalServerError: InternalServerError.fromJSON(object.internalServerError),
|
|
3212
|
-
}
|
|
3213
|
-
: isSet(object.invalidRequest)
|
|
3214
|
-
? { $case: "invalidRequest", invalidRequest: InvalidRequest.fromJSON(object.invalidRequest) }
|
|
3215
|
-
: isSet(object.profileNotFound)
|
|
3216
|
-
? { $case: "profileNotFound", profileNotFound: ProfileNotFound.fromJSON(object.profileNotFound) }
|
|
3217
|
-
: undefined,
|
|
3218
|
-
};
|
|
3219
|
-
}
|
|
3220
|
-
UnblockUserResponse.fromJSON = fromJSON;
|
|
3221
|
-
function toJSON(message) {
|
|
3222
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3223
|
-
const obj = {};
|
|
3224
|
-
((_a = message.response) === null || _a === void 0 ? void 0 : _a.$case) === "ok" &&
|
|
3225
|
-
(obj.ok = ((_b = message.response) === null || _b === void 0 ? void 0 : _b.ok) ? UnblockUserResponse_Ok.toJSON((_c = message.response) === null || _c === void 0 ? void 0 : _c.ok) : undefined);
|
|
3226
|
-
((_d = message.response) === null || _d === void 0 ? void 0 : _d.$case) === "internalServerError" &&
|
|
3227
|
-
(obj.internalServerError = ((_e = message.response) === null || _e === void 0 ? void 0 : _e.internalServerError)
|
|
3228
|
-
? InternalServerError.toJSON((_f = message.response) === null || _f === void 0 ? void 0 : _f.internalServerError)
|
|
3229
|
-
: undefined);
|
|
3230
|
-
((_g = message.response) === null || _g === void 0 ? void 0 : _g.$case) === "invalidRequest" &&
|
|
3231
|
-
(obj.invalidRequest = ((_h = message.response) === null || _h === void 0 ? void 0 : _h.invalidRequest)
|
|
3232
|
-
? InvalidRequest.toJSON((_j = message.response) === null || _j === void 0 ? void 0 : _j.invalidRequest)
|
|
3233
|
-
: undefined);
|
|
3234
|
-
((_k = message.response) === null || _k === void 0 ? void 0 : _k.$case) === "profileNotFound" &&
|
|
3235
|
-
(obj.profileNotFound = ((_l = message.response) === null || _l === void 0 ? void 0 : _l.profileNotFound)
|
|
3236
|
-
? ProfileNotFound.toJSON((_m = message.response) === null || _m === void 0 ? void 0 : _m.profileNotFound)
|
|
3237
|
-
: undefined);
|
|
3238
|
-
return obj;
|
|
3239
|
-
}
|
|
3240
|
-
UnblockUserResponse.toJSON = toJSON;
|
|
3241
|
-
function create(base) {
|
|
3242
|
-
return UnblockUserResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3243
|
-
}
|
|
3244
|
-
UnblockUserResponse.create = create;
|
|
3245
|
-
function fromPartial(object) {
|
|
3246
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3247
|
-
const message = createBaseUnblockUserResponse();
|
|
3248
|
-
if (((_a = object.response) === null || _a === void 0 ? void 0 : _a.$case) === "ok" && ((_b = object.response) === null || _b === void 0 ? void 0 : _b.ok) !== undefined && ((_c = object.response) === null || _c === void 0 ? void 0 : _c.ok) !== null) {
|
|
3249
|
-
message.response = { $case: "ok", ok: UnblockUserResponse_Ok.fromPartial(object.response.ok) };
|
|
3250
|
-
}
|
|
3251
|
-
if (((_d = object.response) === null || _d === void 0 ? void 0 : _d.$case) === "internalServerError" &&
|
|
3252
|
-
((_e = object.response) === null || _e === void 0 ? void 0 : _e.internalServerError) !== undefined &&
|
|
3253
|
-
((_f = object.response) === null || _f === void 0 ? void 0 : _f.internalServerError) !== null) {
|
|
3254
|
-
message.response = {
|
|
3255
|
-
$case: "internalServerError",
|
|
3256
|
-
internalServerError: InternalServerError.fromPartial(object.response.internalServerError),
|
|
3257
|
-
};
|
|
3258
|
-
}
|
|
3259
|
-
if (((_g = object.response) === null || _g === void 0 ? void 0 : _g.$case) === "invalidRequest" &&
|
|
3260
|
-
((_h = object.response) === null || _h === void 0 ? void 0 : _h.invalidRequest) !== undefined &&
|
|
3261
|
-
((_j = object.response) === null || _j === void 0 ? void 0 : _j.invalidRequest) !== null) {
|
|
3262
|
-
message.response = {
|
|
3263
|
-
$case: "invalidRequest",
|
|
3264
|
-
invalidRequest: InvalidRequest.fromPartial(object.response.invalidRequest),
|
|
3265
|
-
};
|
|
3266
|
-
}
|
|
3267
|
-
if (((_k = object.response) === null || _k === void 0 ? void 0 : _k.$case) === "profileNotFound" &&
|
|
3268
|
-
((_l = object.response) === null || _l === void 0 ? void 0 : _l.profileNotFound) !== undefined &&
|
|
3269
|
-
((_m = object.response) === null || _m === void 0 ? void 0 : _m.profileNotFound) !== null) {
|
|
3270
|
-
message.response = {
|
|
3271
|
-
$case: "profileNotFound",
|
|
3272
|
-
profileNotFound: ProfileNotFound.fromPartial(object.response.profileNotFound),
|
|
3273
|
-
};
|
|
3274
|
-
}
|
|
3275
|
-
return message;
|
|
3276
|
-
}
|
|
3277
|
-
UnblockUserResponse.fromPartial = fromPartial;
|
|
3278
|
-
})(UnblockUserResponse || (exports.UnblockUserResponse = UnblockUserResponse = {}));
|
|
3279
|
-
function createBaseUnblockUserResponse_Ok() {
|
|
3280
|
-
return { profile: undefined };
|
|
3281
|
-
}
|
|
3282
|
-
var UnblockUserResponse_Ok;
|
|
3283
|
-
(function (UnblockUserResponse_Ok) {
|
|
3284
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3285
|
-
if (message.profile !== undefined) {
|
|
3286
|
-
BlockedUserProfile.encode(message.profile, writer.uint32(10).fork()).ldelim();
|
|
3287
|
-
}
|
|
3288
|
-
return writer;
|
|
3289
|
-
}
|
|
3290
|
-
UnblockUserResponse_Ok.encode = encode;
|
|
3291
|
-
function decode(input, length) {
|
|
3292
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
3293
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3294
|
-
const message = createBaseUnblockUserResponse_Ok();
|
|
3295
|
-
while (reader.pos < end) {
|
|
3296
|
-
const tag = reader.uint32();
|
|
3297
|
-
switch (tag >>> 3) {
|
|
3298
|
-
case 1:
|
|
3299
|
-
if (tag !== 10) {
|
|
3300
|
-
break;
|
|
3301
|
-
}
|
|
3302
|
-
message.profile = BlockedUserProfile.decode(reader, reader.uint32());
|
|
3303
|
-
continue;
|
|
3304
|
-
}
|
|
3305
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3306
|
-
break;
|
|
3307
|
-
}
|
|
3308
|
-
reader.skipType(tag & 7);
|
|
3309
|
-
}
|
|
3310
|
-
return message;
|
|
3311
|
-
}
|
|
3312
|
-
UnblockUserResponse_Ok.decode = decode;
|
|
3313
|
-
function fromJSON(object) {
|
|
3314
|
-
return { profile: isSet(object.profile) ? BlockedUserProfile.fromJSON(object.profile) : undefined };
|
|
3315
|
-
}
|
|
3316
|
-
UnblockUserResponse_Ok.fromJSON = fromJSON;
|
|
3317
|
-
function toJSON(message) {
|
|
3318
|
-
const obj = {};
|
|
3319
|
-
message.profile !== undefined &&
|
|
3320
|
-
(obj.profile = message.profile ? BlockedUserProfile.toJSON(message.profile) : undefined);
|
|
3321
|
-
return obj;
|
|
3322
|
-
}
|
|
3323
|
-
UnblockUserResponse_Ok.toJSON = toJSON;
|
|
3324
|
-
function create(base) {
|
|
3325
|
-
return UnblockUserResponse_Ok.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3326
|
-
}
|
|
3327
|
-
UnblockUserResponse_Ok.create = create;
|
|
3328
|
-
function fromPartial(object) {
|
|
3329
|
-
const message = createBaseUnblockUserResponse_Ok();
|
|
3330
|
-
message.profile = (object.profile !== undefined && object.profile !== null)
|
|
3331
|
-
? BlockedUserProfile.fromPartial(object.profile)
|
|
3332
|
-
: undefined;
|
|
3333
|
-
return message;
|
|
3334
|
-
}
|
|
3335
|
-
UnblockUserResponse_Ok.fromPartial = fromPartial;
|
|
3336
|
-
})(UnblockUserResponse_Ok || (exports.UnblockUserResponse_Ok = UnblockUserResponse_Ok = {}));
|
|
3337
|
-
function createBaseGetBlockedUsersPayload() {
|
|
3338
|
-
return { pagination: undefined };
|
|
3339
|
-
}
|
|
3340
|
-
var GetBlockedUsersPayload;
|
|
3341
|
-
(function (GetBlockedUsersPayload) {
|
|
3342
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3343
|
-
if (message.pagination !== undefined) {
|
|
3344
|
-
Pagination.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
3345
|
-
}
|
|
3346
|
-
return writer;
|
|
3347
|
-
}
|
|
3348
|
-
GetBlockedUsersPayload.encode = encode;
|
|
3349
|
-
function decode(input, length) {
|
|
3350
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
3351
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3352
|
-
const message = createBaseGetBlockedUsersPayload();
|
|
3353
|
-
while (reader.pos < end) {
|
|
3354
|
-
const tag = reader.uint32();
|
|
3355
|
-
switch (tag >>> 3) {
|
|
3356
|
-
case 1:
|
|
3357
|
-
if (tag !== 10) {
|
|
3358
|
-
break;
|
|
3359
|
-
}
|
|
3360
|
-
message.pagination = Pagination.decode(reader, reader.uint32());
|
|
3361
|
-
continue;
|
|
3362
|
-
}
|
|
3363
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3364
|
-
break;
|
|
3365
|
-
}
|
|
3366
|
-
reader.skipType(tag & 7);
|
|
3367
|
-
}
|
|
3368
|
-
return message;
|
|
3369
|
-
}
|
|
3370
|
-
GetBlockedUsersPayload.decode = decode;
|
|
3371
|
-
function fromJSON(object) {
|
|
3372
|
-
return { pagination: isSet(object.pagination) ? Pagination.fromJSON(object.pagination) : undefined };
|
|
3373
|
-
}
|
|
3374
|
-
GetBlockedUsersPayload.fromJSON = fromJSON;
|
|
3375
|
-
function toJSON(message) {
|
|
3376
|
-
const obj = {};
|
|
3377
|
-
message.pagination !== undefined &&
|
|
3378
|
-
(obj.pagination = message.pagination ? Pagination.toJSON(message.pagination) : undefined);
|
|
3379
|
-
return obj;
|
|
3380
|
-
}
|
|
3381
|
-
GetBlockedUsersPayload.toJSON = toJSON;
|
|
3382
|
-
function create(base) {
|
|
3383
|
-
return GetBlockedUsersPayload.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3384
|
-
}
|
|
3385
|
-
GetBlockedUsersPayload.create = create;
|
|
3386
|
-
function fromPartial(object) {
|
|
3387
|
-
const message = createBaseGetBlockedUsersPayload();
|
|
3388
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
3389
|
-
? Pagination.fromPartial(object.pagination)
|
|
3390
|
-
: undefined;
|
|
3391
|
-
return message;
|
|
3392
|
-
}
|
|
3393
|
-
GetBlockedUsersPayload.fromPartial = fromPartial;
|
|
3394
|
-
})(GetBlockedUsersPayload || (exports.GetBlockedUsersPayload = GetBlockedUsersPayload = {}));
|
|
3395
|
-
function createBaseGetBlockedUsersResponse() {
|
|
3396
|
-
return { profiles: [], paginationData: undefined };
|
|
3397
|
-
}
|
|
3398
|
-
var GetBlockedUsersResponse;
|
|
3399
|
-
(function (GetBlockedUsersResponse) {
|
|
3400
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3401
|
-
for (const v of message.profiles) {
|
|
3402
|
-
BlockedUserProfile.encode(v, writer.uint32(10).fork()).ldelim();
|
|
3403
|
-
}
|
|
3404
|
-
if (message.paginationData !== undefined) {
|
|
3405
|
-
PaginatedResponse.encode(message.paginationData, writer.uint32(18).fork()).ldelim();
|
|
3406
|
-
}
|
|
3407
|
-
return writer;
|
|
3408
|
-
}
|
|
3409
|
-
GetBlockedUsersResponse.encode = encode;
|
|
3410
|
-
function decode(input, length) {
|
|
3411
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
3412
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3413
|
-
const message = createBaseGetBlockedUsersResponse();
|
|
3414
|
-
while (reader.pos < end) {
|
|
3415
|
-
const tag = reader.uint32();
|
|
3416
|
-
switch (tag >>> 3) {
|
|
3417
|
-
case 1:
|
|
3418
|
-
if (tag !== 10) {
|
|
3419
|
-
break;
|
|
3420
|
-
}
|
|
3421
|
-
message.profiles.push(BlockedUserProfile.decode(reader, reader.uint32()));
|
|
3422
|
-
continue;
|
|
3423
|
-
case 2:
|
|
3424
|
-
if (tag !== 18) {
|
|
3425
|
-
break;
|
|
3426
|
-
}
|
|
3427
|
-
message.paginationData = PaginatedResponse.decode(reader, reader.uint32());
|
|
3428
|
-
continue;
|
|
3429
|
-
}
|
|
3430
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3431
|
-
break;
|
|
3432
|
-
}
|
|
3433
|
-
reader.skipType(tag & 7);
|
|
3434
|
-
}
|
|
3435
|
-
return message;
|
|
3436
|
-
}
|
|
3437
|
-
GetBlockedUsersResponse.decode = decode;
|
|
3438
|
-
function fromJSON(object) {
|
|
3439
|
-
return {
|
|
3440
|
-
profiles: Array.isArray(object === null || object === void 0 ? void 0 : object.profiles) ? object.profiles.map((e) => BlockedUserProfile.fromJSON(e)) : [],
|
|
3441
|
-
paginationData: isSet(object.paginationData) ? PaginatedResponse.fromJSON(object.paginationData) : undefined,
|
|
3442
|
-
};
|
|
3443
|
-
}
|
|
3444
|
-
GetBlockedUsersResponse.fromJSON = fromJSON;
|
|
3445
|
-
function toJSON(message) {
|
|
3446
|
-
const obj = {};
|
|
3447
|
-
if (message.profiles) {
|
|
3448
|
-
obj.profiles = message.profiles.map((e) => e ? BlockedUserProfile.toJSON(e) : undefined);
|
|
3449
|
-
}
|
|
3450
|
-
else {
|
|
3451
|
-
obj.profiles = [];
|
|
3452
|
-
}
|
|
3453
|
-
message.paginationData !== undefined &&
|
|
3454
|
-
(obj.paginationData = message.paginationData ? PaginatedResponse.toJSON(message.paginationData) : undefined);
|
|
3455
|
-
return obj;
|
|
3456
|
-
}
|
|
3457
|
-
GetBlockedUsersResponse.toJSON = toJSON;
|
|
3458
|
-
function create(base) {
|
|
3459
|
-
return GetBlockedUsersResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3460
|
-
}
|
|
3461
|
-
GetBlockedUsersResponse.create = create;
|
|
3462
|
-
function fromPartial(object) {
|
|
3463
|
-
var _a;
|
|
3464
|
-
const message = createBaseGetBlockedUsersResponse();
|
|
3465
|
-
message.profiles = ((_a = object.profiles) === null || _a === void 0 ? void 0 : _a.map((e) => BlockedUserProfile.fromPartial(e))) || [];
|
|
3466
|
-
message.paginationData = (object.paginationData !== undefined && object.paginationData !== null)
|
|
3467
|
-
? PaginatedResponse.fromPartial(object.paginationData)
|
|
3468
|
-
: undefined;
|
|
3469
|
-
return message;
|
|
3470
|
-
}
|
|
3471
|
-
GetBlockedUsersResponse.fromPartial = fromPartial;
|
|
3472
|
-
})(GetBlockedUsersResponse || (exports.GetBlockedUsersResponse = GetBlockedUsersResponse = {}));
|
|
3473
|
-
function createBaseGetBlockingStatusResponse() {
|
|
3474
|
-
return { blockedUsers: [], blockedByUsers: [] };
|
|
3475
|
-
}
|
|
3476
|
-
var GetBlockingStatusResponse;
|
|
3477
|
-
(function (GetBlockingStatusResponse) {
|
|
3478
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3479
|
-
for (const v of message.blockedUsers) {
|
|
3480
|
-
writer.uint32(10).string(v);
|
|
3481
|
-
}
|
|
3482
|
-
for (const v of message.blockedByUsers) {
|
|
3483
|
-
writer.uint32(18).string(v);
|
|
3484
|
-
}
|
|
3485
|
-
return writer;
|
|
3486
|
-
}
|
|
3487
|
-
GetBlockingStatusResponse.encode = encode;
|
|
3488
|
-
function decode(input, length) {
|
|
3489
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
3490
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3491
|
-
const message = createBaseGetBlockingStatusResponse();
|
|
3492
|
-
while (reader.pos < end) {
|
|
3493
|
-
const tag = reader.uint32();
|
|
3494
|
-
switch (tag >>> 3) {
|
|
3495
|
-
case 1:
|
|
3496
|
-
if (tag !== 10) {
|
|
3497
|
-
break;
|
|
3498
|
-
}
|
|
3499
|
-
message.blockedUsers.push(reader.string());
|
|
3500
|
-
continue;
|
|
3501
|
-
case 2:
|
|
3502
|
-
if (tag !== 18) {
|
|
3503
|
-
break;
|
|
3504
|
-
}
|
|
3505
|
-
message.blockedByUsers.push(reader.string());
|
|
3506
|
-
continue;
|
|
3507
|
-
}
|
|
3508
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3509
|
-
break;
|
|
3510
|
-
}
|
|
3511
|
-
reader.skipType(tag & 7);
|
|
3512
|
-
}
|
|
3513
|
-
return message;
|
|
3514
|
-
}
|
|
3515
|
-
GetBlockingStatusResponse.decode = decode;
|
|
3516
|
-
function fromJSON(object) {
|
|
3517
|
-
return {
|
|
3518
|
-
blockedUsers: Array.isArray(object === null || object === void 0 ? void 0 : object.blockedUsers) ? object.blockedUsers.map((e) => String(e)) : [],
|
|
3519
|
-
blockedByUsers: Array.isArray(object === null || object === void 0 ? void 0 : object.blockedByUsers) ? object.blockedByUsers.map((e) => String(e)) : [],
|
|
3520
|
-
};
|
|
3521
|
-
}
|
|
3522
|
-
GetBlockingStatusResponse.fromJSON = fromJSON;
|
|
3523
|
-
function toJSON(message) {
|
|
3524
|
-
const obj = {};
|
|
3525
|
-
if (message.blockedUsers) {
|
|
3526
|
-
obj.blockedUsers = message.blockedUsers.map((e) => e);
|
|
3527
|
-
}
|
|
3528
|
-
else {
|
|
3529
|
-
obj.blockedUsers = [];
|
|
3530
|
-
}
|
|
3531
|
-
if (message.blockedByUsers) {
|
|
3532
|
-
obj.blockedByUsers = message.blockedByUsers.map((e) => e);
|
|
3533
|
-
}
|
|
3534
|
-
else {
|
|
3535
|
-
obj.blockedByUsers = [];
|
|
3536
|
-
}
|
|
3537
|
-
return obj;
|
|
3538
|
-
}
|
|
3539
|
-
GetBlockingStatusResponse.toJSON = toJSON;
|
|
3540
|
-
function create(base) {
|
|
3541
|
-
return GetBlockingStatusResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3542
|
-
}
|
|
3543
|
-
GetBlockingStatusResponse.create = create;
|
|
3544
|
-
function fromPartial(object) {
|
|
3545
|
-
var _a, _b;
|
|
3546
|
-
const message = createBaseGetBlockingStatusResponse();
|
|
3547
|
-
message.blockedUsers = ((_a = object.blockedUsers) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
3548
|
-
message.blockedByUsers = ((_b = object.blockedByUsers) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
3549
|
-
return message;
|
|
3550
|
-
}
|
|
3551
|
-
GetBlockingStatusResponse.fromPartial = fromPartial;
|
|
3552
|
-
})(GetBlockingStatusResponse || (exports.GetBlockingStatusResponse = GetBlockingStatusResponse = {}));
|
|
3553
|
-
function createBaseBlockUpdate() {
|
|
3554
|
-
return { address: "", isBlocked: false };
|
|
3555
|
-
}
|
|
3556
|
-
var BlockUpdate;
|
|
3557
|
-
(function (BlockUpdate) {
|
|
3558
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3559
|
-
if (message.address !== "") {
|
|
3560
|
-
writer.uint32(10).string(message.address);
|
|
3561
|
-
}
|
|
3562
|
-
if (message.isBlocked === true) {
|
|
3563
|
-
writer.uint32(16).bool(message.isBlocked);
|
|
3564
|
-
}
|
|
3565
|
-
return writer;
|
|
3566
|
-
}
|
|
3567
|
-
BlockUpdate.encode = encode;
|
|
3568
|
-
function decode(input, length) {
|
|
3569
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
3570
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3571
|
-
const message = createBaseBlockUpdate();
|
|
3572
|
-
while (reader.pos < end) {
|
|
3573
|
-
const tag = reader.uint32();
|
|
3574
|
-
switch (tag >>> 3) {
|
|
3575
|
-
case 1:
|
|
3576
|
-
if (tag !== 10) {
|
|
3577
|
-
break;
|
|
3578
|
-
}
|
|
3579
|
-
message.address = reader.string();
|
|
3580
|
-
continue;
|
|
3581
|
-
case 2:
|
|
3582
|
-
if (tag !== 16) {
|
|
3583
|
-
break;
|
|
3584
|
-
}
|
|
3585
|
-
message.isBlocked = reader.bool();
|
|
3586
|
-
continue;
|
|
3587
|
-
}
|
|
3588
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3589
|
-
break;
|
|
3590
|
-
}
|
|
3591
|
-
reader.skipType(tag & 7);
|
|
3592
|
-
}
|
|
3593
|
-
return message;
|
|
3594
|
-
}
|
|
3595
|
-
BlockUpdate.decode = decode;
|
|
3596
|
-
function fromJSON(object) {
|
|
3597
|
-
return {
|
|
3598
|
-
address: isSet(object.address) ? String(object.address) : "",
|
|
3599
|
-
isBlocked: isSet(object.isBlocked) ? Boolean(object.isBlocked) : false,
|
|
3600
|
-
};
|
|
3601
|
-
}
|
|
3602
|
-
BlockUpdate.fromJSON = fromJSON;
|
|
3603
|
-
function toJSON(message) {
|
|
3604
|
-
const obj = {};
|
|
3605
|
-
message.address !== undefined && (obj.address = message.address);
|
|
3606
|
-
message.isBlocked !== undefined && (obj.isBlocked = message.isBlocked);
|
|
3607
|
-
return obj;
|
|
3608
|
-
}
|
|
3609
|
-
BlockUpdate.toJSON = toJSON;
|
|
3610
|
-
function create(base) {
|
|
3611
|
-
return BlockUpdate.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3612
|
-
}
|
|
3613
|
-
BlockUpdate.create = create;
|
|
3614
|
-
function fromPartial(object) {
|
|
3615
|
-
var _a, _b;
|
|
3616
|
-
const message = createBaseBlockUpdate();
|
|
3617
|
-
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
3618
|
-
message.isBlocked = (_b = object.isBlocked) !== null && _b !== void 0 ? _b : false;
|
|
3619
|
-
return message;
|
|
3620
|
-
}
|
|
3621
|
-
BlockUpdate.fromPartial = fromPartial;
|
|
3622
|
-
})(BlockUpdate || (exports.BlockUpdate = BlockUpdate = {}));
|
|
3623
2196
|
exports.SocialServiceDefinition = {
|
|
3624
2197
|
name: "SocialService",
|
|
3625
2198
|
fullName: "decentraland.social_service.v2.SocialService",
|
|
@@ -3629,7 +2202,7 @@ exports.SocialServiceDefinition = {
|
|
|
3629
2202
|
name: "GetFriends",
|
|
3630
2203
|
requestType: GetFriendsPayload,
|
|
3631
2204
|
requestStream: false,
|
|
3632
|
-
responseType:
|
|
2205
|
+
responseType: PaginatedUsersResponse,
|
|
3633
2206
|
responseStream: false,
|
|
3634
2207
|
options: {},
|
|
3635
2208
|
},
|
|
@@ -3638,7 +2211,7 @@ exports.SocialServiceDefinition = {
|
|
|
3638
2211
|
name: "GetMutualFriends",
|
|
3639
2212
|
requestType: GetMutualFriendsPayload,
|
|
3640
2213
|
requestStream: false,
|
|
3641
|
-
responseType:
|
|
2214
|
+
responseType: PaginatedUsersResponse,
|
|
3642
2215
|
responseStream: false,
|
|
3643
2216
|
options: {},
|
|
3644
2217
|
},
|
|
@@ -3678,7 +2251,6 @@ exports.SocialServiceDefinition = {
|
|
|
3678
2251
|
responseStream: true,
|
|
3679
2252
|
options: {},
|
|
3680
2253
|
},
|
|
3681
|
-
/** Get the friendship status between the authenticated user and the one in the parameter */
|
|
3682
2254
|
getFriendshipStatus: {
|
|
3683
2255
|
name: "GetFriendshipStatus",
|
|
3684
2256
|
requestType: GetFriendshipStatusPayload,
|
|
@@ -3687,55 +2259,6 @@ exports.SocialServiceDefinition = {
|
|
|
3687
2259
|
responseStream: false,
|
|
3688
2260
|
options: {},
|
|
3689
2261
|
},
|
|
3690
|
-
/** Subscribe to connectivity updates of friends: ONLINE, OFFLINE, AWAY */
|
|
3691
|
-
subscribeToFriendConnectivityUpdates: {
|
|
3692
|
-
name: "SubscribeToFriendConnectivityUpdates",
|
|
3693
|
-
requestType: empty_gen_1.Empty,
|
|
3694
|
-
requestStream: false,
|
|
3695
|
-
responseType: FriendConnectivityUpdate,
|
|
3696
|
-
responseStream: true,
|
|
3697
|
-
options: {},
|
|
3698
|
-
},
|
|
3699
|
-
blockUser: {
|
|
3700
|
-
name: "BlockUser",
|
|
3701
|
-
requestType: BlockUserPayload,
|
|
3702
|
-
requestStream: false,
|
|
3703
|
-
responseType: BlockUserResponse,
|
|
3704
|
-
responseStream: false,
|
|
3705
|
-
options: {},
|
|
3706
|
-
},
|
|
3707
|
-
unblockUser: {
|
|
3708
|
-
name: "UnblockUser",
|
|
3709
|
-
requestType: UnblockUserPayload,
|
|
3710
|
-
requestStream: false,
|
|
3711
|
-
responseType: UnblockUserResponse,
|
|
3712
|
-
responseStream: false,
|
|
3713
|
-
options: {},
|
|
3714
|
-
},
|
|
3715
|
-
getBlockedUsers: {
|
|
3716
|
-
name: "GetBlockedUsers",
|
|
3717
|
-
requestType: GetBlockedUsersPayload,
|
|
3718
|
-
requestStream: false,
|
|
3719
|
-
responseType: GetBlockedUsersResponse,
|
|
3720
|
-
responseStream: false,
|
|
3721
|
-
options: {},
|
|
3722
|
-
},
|
|
3723
|
-
getBlockingStatus: {
|
|
3724
|
-
name: "GetBlockingStatus",
|
|
3725
|
-
requestType: empty_gen_1.Empty,
|
|
3726
|
-
requestStream: false,
|
|
3727
|
-
responseType: GetBlockingStatusResponse,
|
|
3728
|
-
responseStream: false,
|
|
3729
|
-
options: {},
|
|
3730
|
-
},
|
|
3731
|
-
subscribeToBlockUpdates: {
|
|
3732
|
-
name: "SubscribeToBlockUpdates",
|
|
3733
|
-
requestType: empty_gen_1.Empty,
|
|
3734
|
-
requestStream: false,
|
|
3735
|
-
responseType: BlockUpdate,
|
|
3736
|
-
responseStream: true,
|
|
3737
|
-
options: {},
|
|
3738
|
-
},
|
|
3739
2262
|
},
|
|
3740
2263
|
};
|
|
3741
2264
|
const tsProtoGlobalThis = (() => {
|