naijarea-ts 1.0.2 → 1.0.7
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/dist/account.d.ts +275 -4
- package/dist/account.js +2785 -202
- package/dist/index.d.ts +2 -2
- package/dist/index.js +39 -5
- package/dist/posts.d.ts +185 -12
- package/dist/posts.js +2105 -544
- package/package.json +1 -1
package/dist/account.js
CHANGED
|
@@ -5,19 +5,55 @@
|
|
|
5
5
|
// protoc v6.33.2
|
|
6
6
|
// source: account.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.AccountServiceDefinition = exports.Representative = exports.OnboardingProgress = exports.AccountStatus = exports.Account = exports.ApplyForRepresentativeResponse = exports.ApplyForRepresentativeRequest = exports.OnboardResponse = exports.OnboardRequest = exports.UploadPhotoResponse = exports.UploadPhotoRequest = exports.UpdatePasswordRequest = exports.UpdateProfileResponse = exports.UpdateProfileRequest = exports.GetProfileResponse = exports.GetProfileRequest = exports.protobufPackage = void 0;
|
|
8
|
+
exports.AccountServiceDefinition = exports.GetStatusResponse = exports.GetStatusRequest = exports.GetAccountRepostsResponse = exports.GetAccountRepostsRequest = exports.GetAccountLikesResponse = exports.GetAccountLikesRequest = exports.GetAccountMediaResponse = exports.GetAccountMediaRequest = exports.GetAccountRepliesResponse = exports.GetAccountRepliesRequest = exports.GetAccountPostsResponse = exports.GetAccountPostsRequest = exports.GetFollowingResponse = exports.GetFollowingRequest = exports.GetFollowersResponse = exports.GetFollowersRequest = exports.UnfollowUserResponse = exports.UnfollowUserRequest = exports.FollowUserResponse = exports.FollowUserRequest = exports.Representative = exports.OnboardingProgress = exports.AccountStatus = exports.Profile = exports.Account = exports.ProfileStats = exports.ApplyForRepresentativeResponse = exports.ApplyForRepresentativeRequest = exports.OnboardResponse = exports.OnboardRequest = exports.UploadPhotoResponse = exports.UploadPhotoRequest = exports.UpdatePasswordRequest = exports.UpdateProfileResponse = exports.UpdateProfileRequest = exports.GetProfileResponse = exports.GetProfileRequest = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const common_1 = require("./common");
|
|
12
|
+
const lookup_1 = require("./lookup");
|
|
13
|
+
const posts_1 = require("./posts");
|
|
12
14
|
exports.protobufPackage = "pb";
|
|
13
15
|
function createBaseGetProfileRequest() {
|
|
14
|
-
return {
|
|
16
|
+
return {
|
|
17
|
+
accountId: "",
|
|
18
|
+
postsPage: 0,
|
|
19
|
+
postsPageSize: 0,
|
|
20
|
+
repliesPage: 0,
|
|
21
|
+
repliesPageSize: 0,
|
|
22
|
+
mediaPage: 0,
|
|
23
|
+
mediaPageSize: 0,
|
|
24
|
+
likesPage: 0,
|
|
25
|
+
likesPageSize: 0,
|
|
26
|
+
};
|
|
15
27
|
}
|
|
16
28
|
exports.GetProfileRequest = {
|
|
17
29
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
18
30
|
if (message.accountId !== "") {
|
|
19
31
|
writer.uint32(10).string(message.accountId);
|
|
20
32
|
}
|
|
33
|
+
if (message.postsPage !== 0) {
|
|
34
|
+
writer.uint32(16).int32(message.postsPage);
|
|
35
|
+
}
|
|
36
|
+
if (message.postsPageSize !== 0) {
|
|
37
|
+
writer.uint32(24).int32(message.postsPageSize);
|
|
38
|
+
}
|
|
39
|
+
if (message.repliesPage !== 0) {
|
|
40
|
+
writer.uint32(32).int32(message.repliesPage);
|
|
41
|
+
}
|
|
42
|
+
if (message.repliesPageSize !== 0) {
|
|
43
|
+
writer.uint32(40).int32(message.repliesPageSize);
|
|
44
|
+
}
|
|
45
|
+
if (message.mediaPage !== 0) {
|
|
46
|
+
writer.uint32(48).int32(message.mediaPage);
|
|
47
|
+
}
|
|
48
|
+
if (message.mediaPageSize !== 0) {
|
|
49
|
+
writer.uint32(56).int32(message.mediaPageSize);
|
|
50
|
+
}
|
|
51
|
+
if (message.likesPage !== 0) {
|
|
52
|
+
writer.uint32(64).int32(message.likesPage);
|
|
53
|
+
}
|
|
54
|
+
if (message.likesPageSize !== 0) {
|
|
55
|
+
writer.uint32(72).int32(message.likesPageSize);
|
|
56
|
+
}
|
|
21
57
|
return writer;
|
|
22
58
|
},
|
|
23
59
|
decode(input, length) {
|
|
@@ -34,6 +70,62 @@ exports.GetProfileRequest = {
|
|
|
34
70
|
message.accountId = reader.string();
|
|
35
71
|
continue;
|
|
36
72
|
}
|
|
73
|
+
case 2: {
|
|
74
|
+
if (tag !== 16) {
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
message.postsPage = reader.int32();
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
case 3: {
|
|
81
|
+
if (tag !== 24) {
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
message.postsPageSize = reader.int32();
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
case 4: {
|
|
88
|
+
if (tag !== 32) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.repliesPage = reader.int32();
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
case 5: {
|
|
95
|
+
if (tag !== 40) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
message.repliesPageSize = reader.int32();
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
case 6: {
|
|
102
|
+
if (tag !== 48) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
message.mediaPage = reader.int32();
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
case 7: {
|
|
109
|
+
if (tag !== 56) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
message.mediaPageSize = reader.int32();
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
case 8: {
|
|
116
|
+
if (tag !== 64) {
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
message.likesPage = reader.int32();
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
case 9: {
|
|
123
|
+
if (tag !== 72) {
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
message.likesPageSize = reader.int32();
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
37
129
|
}
|
|
38
130
|
if ((tag & 7) === 4 || tag === 0) {
|
|
39
131
|
break;
|
|
@@ -43,32 +135,74 @@ exports.GetProfileRequest = {
|
|
|
43
135
|
return message;
|
|
44
136
|
},
|
|
45
137
|
fromJSON(object) {
|
|
46
|
-
return {
|
|
138
|
+
return {
|
|
139
|
+
accountId: isSet(object.accountId) ? globalThis.String(object.accountId) : "",
|
|
140
|
+
postsPage: isSet(object.postsPage) ? globalThis.Number(object.postsPage) : 0,
|
|
141
|
+
postsPageSize: isSet(object.postsPageSize) ? globalThis.Number(object.postsPageSize) : 0,
|
|
142
|
+
repliesPage: isSet(object.repliesPage) ? globalThis.Number(object.repliesPage) : 0,
|
|
143
|
+
repliesPageSize: isSet(object.repliesPageSize) ? globalThis.Number(object.repliesPageSize) : 0,
|
|
144
|
+
mediaPage: isSet(object.mediaPage) ? globalThis.Number(object.mediaPage) : 0,
|
|
145
|
+
mediaPageSize: isSet(object.mediaPageSize) ? globalThis.Number(object.mediaPageSize) : 0,
|
|
146
|
+
likesPage: isSet(object.likesPage) ? globalThis.Number(object.likesPage) : 0,
|
|
147
|
+
likesPageSize: isSet(object.likesPageSize) ? globalThis.Number(object.likesPageSize) : 0,
|
|
148
|
+
};
|
|
47
149
|
},
|
|
48
150
|
toJSON(message) {
|
|
49
151
|
const obj = {};
|
|
50
152
|
if (message.accountId !== "") {
|
|
51
153
|
obj.accountId = message.accountId;
|
|
52
154
|
}
|
|
155
|
+
if (message.postsPage !== 0) {
|
|
156
|
+
obj.postsPage = Math.round(message.postsPage);
|
|
157
|
+
}
|
|
158
|
+
if (message.postsPageSize !== 0) {
|
|
159
|
+
obj.postsPageSize = Math.round(message.postsPageSize);
|
|
160
|
+
}
|
|
161
|
+
if (message.repliesPage !== 0) {
|
|
162
|
+
obj.repliesPage = Math.round(message.repliesPage);
|
|
163
|
+
}
|
|
164
|
+
if (message.repliesPageSize !== 0) {
|
|
165
|
+
obj.repliesPageSize = Math.round(message.repliesPageSize);
|
|
166
|
+
}
|
|
167
|
+
if (message.mediaPage !== 0) {
|
|
168
|
+
obj.mediaPage = Math.round(message.mediaPage);
|
|
169
|
+
}
|
|
170
|
+
if (message.mediaPageSize !== 0) {
|
|
171
|
+
obj.mediaPageSize = Math.round(message.mediaPageSize);
|
|
172
|
+
}
|
|
173
|
+
if (message.likesPage !== 0) {
|
|
174
|
+
obj.likesPage = Math.round(message.likesPage);
|
|
175
|
+
}
|
|
176
|
+
if (message.likesPageSize !== 0) {
|
|
177
|
+
obj.likesPageSize = Math.round(message.likesPageSize);
|
|
178
|
+
}
|
|
53
179
|
return obj;
|
|
54
180
|
},
|
|
55
181
|
create(base) {
|
|
56
182
|
return exports.GetProfileRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
57
183
|
},
|
|
58
184
|
fromPartial(object) {
|
|
59
|
-
var _a;
|
|
185
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
60
186
|
const message = createBaseGetProfileRequest();
|
|
61
187
|
message.accountId = (_a = object.accountId) !== null && _a !== void 0 ? _a : "";
|
|
188
|
+
message.postsPage = (_b = object.postsPage) !== null && _b !== void 0 ? _b : 0;
|
|
189
|
+
message.postsPageSize = (_c = object.postsPageSize) !== null && _c !== void 0 ? _c : 0;
|
|
190
|
+
message.repliesPage = (_d = object.repliesPage) !== null && _d !== void 0 ? _d : 0;
|
|
191
|
+
message.repliesPageSize = (_e = object.repliesPageSize) !== null && _e !== void 0 ? _e : 0;
|
|
192
|
+
message.mediaPage = (_f = object.mediaPage) !== null && _f !== void 0 ? _f : 0;
|
|
193
|
+
message.mediaPageSize = (_g = object.mediaPageSize) !== null && _g !== void 0 ? _g : 0;
|
|
194
|
+
message.likesPage = (_h = object.likesPage) !== null && _h !== void 0 ? _h : 0;
|
|
195
|
+
message.likesPageSize = (_j = object.likesPageSize) !== null && _j !== void 0 ? _j : 0;
|
|
62
196
|
return message;
|
|
63
197
|
},
|
|
64
198
|
};
|
|
65
199
|
function createBaseGetProfileResponse() {
|
|
66
|
-
return {
|
|
200
|
+
return { profile: undefined };
|
|
67
201
|
}
|
|
68
202
|
exports.GetProfileResponse = {
|
|
69
203
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
70
|
-
if (message.
|
|
71
|
-
exports.
|
|
204
|
+
if (message.profile !== undefined) {
|
|
205
|
+
exports.Profile.encode(message.profile, writer.uint32(10).fork()).join();
|
|
72
206
|
}
|
|
73
207
|
return writer;
|
|
74
208
|
},
|
|
@@ -83,7 +217,7 @@ exports.GetProfileResponse = {
|
|
|
83
217
|
if (tag !== 10) {
|
|
84
218
|
break;
|
|
85
219
|
}
|
|
86
|
-
message.
|
|
220
|
+
message.profile = exports.Profile.decode(reader, reader.uint32());
|
|
87
221
|
continue;
|
|
88
222
|
}
|
|
89
223
|
}
|
|
@@ -95,12 +229,12 @@ exports.GetProfileResponse = {
|
|
|
95
229
|
return message;
|
|
96
230
|
},
|
|
97
231
|
fromJSON(object) {
|
|
98
|
-
return {
|
|
232
|
+
return { profile: isSet(object.profile) ? exports.Profile.fromJSON(object.profile) : undefined };
|
|
99
233
|
},
|
|
100
234
|
toJSON(message) {
|
|
101
235
|
const obj = {};
|
|
102
|
-
if (message.
|
|
103
|
-
obj.
|
|
236
|
+
if (message.profile !== undefined) {
|
|
237
|
+
obj.profile = exports.Profile.toJSON(message.profile);
|
|
104
238
|
}
|
|
105
239
|
return obj;
|
|
106
240
|
},
|
|
@@ -109,8 +243,8 @@ exports.GetProfileResponse = {
|
|
|
109
243
|
},
|
|
110
244
|
fromPartial(object) {
|
|
111
245
|
const message = createBaseGetProfileResponse();
|
|
112
|
-
message.
|
|
113
|
-
? exports.
|
|
246
|
+
message.profile = (object.profile !== undefined && object.profile !== null)
|
|
247
|
+
? exports.Profile.fromPartial(object.profile)
|
|
114
248
|
: undefined;
|
|
115
249
|
return message;
|
|
116
250
|
},
|
|
@@ -118,12 +252,15 @@ exports.GetProfileResponse = {
|
|
|
118
252
|
function createBaseUpdateProfileRequest() {
|
|
119
253
|
return {
|
|
120
254
|
name: "",
|
|
255
|
+
username: "",
|
|
121
256
|
phoneNumber: "",
|
|
122
257
|
gender: "",
|
|
123
258
|
dob: "",
|
|
124
259
|
location: "",
|
|
125
260
|
stateId: "",
|
|
126
261
|
localGovernmentId: "",
|
|
262
|
+
constituencyId: "",
|
|
263
|
+
districtId: "",
|
|
127
264
|
pollingUnit: "",
|
|
128
265
|
};
|
|
129
266
|
}
|
|
@@ -132,26 +269,35 @@ exports.UpdateProfileRequest = {
|
|
|
132
269
|
if (message.name !== "") {
|
|
133
270
|
writer.uint32(10).string(message.name);
|
|
134
271
|
}
|
|
272
|
+
if (message.username !== "") {
|
|
273
|
+
writer.uint32(18).string(message.username);
|
|
274
|
+
}
|
|
135
275
|
if (message.phoneNumber !== "") {
|
|
136
|
-
writer.uint32(
|
|
276
|
+
writer.uint32(26).string(message.phoneNumber);
|
|
137
277
|
}
|
|
138
278
|
if (message.gender !== "") {
|
|
139
|
-
writer.uint32(
|
|
279
|
+
writer.uint32(34).string(message.gender);
|
|
140
280
|
}
|
|
141
281
|
if (message.dob !== "") {
|
|
142
|
-
writer.uint32(
|
|
282
|
+
writer.uint32(42).string(message.dob);
|
|
143
283
|
}
|
|
144
284
|
if (message.location !== "") {
|
|
145
|
-
writer.uint32(
|
|
285
|
+
writer.uint32(50).string(message.location);
|
|
146
286
|
}
|
|
147
287
|
if (message.stateId !== "") {
|
|
148
|
-
writer.uint32(
|
|
288
|
+
writer.uint32(58).string(message.stateId);
|
|
149
289
|
}
|
|
150
290
|
if (message.localGovernmentId !== "") {
|
|
151
|
-
writer.uint32(
|
|
291
|
+
writer.uint32(66).string(message.localGovernmentId);
|
|
292
|
+
}
|
|
293
|
+
if (message.constituencyId !== "") {
|
|
294
|
+
writer.uint32(74).string(message.constituencyId);
|
|
295
|
+
}
|
|
296
|
+
if (message.districtId !== "") {
|
|
297
|
+
writer.uint32(82).string(message.districtId);
|
|
152
298
|
}
|
|
153
299
|
if (message.pollingUnit !== "") {
|
|
154
|
-
writer.uint32(
|
|
300
|
+
writer.uint32(90).string(message.pollingUnit);
|
|
155
301
|
}
|
|
156
302
|
return writer;
|
|
157
303
|
},
|
|
@@ -173,48 +319,69 @@ exports.UpdateProfileRequest = {
|
|
|
173
319
|
if (tag !== 18) {
|
|
174
320
|
break;
|
|
175
321
|
}
|
|
176
|
-
message.
|
|
322
|
+
message.username = reader.string();
|
|
177
323
|
continue;
|
|
178
324
|
}
|
|
179
325
|
case 3: {
|
|
180
326
|
if (tag !== 26) {
|
|
181
327
|
break;
|
|
182
328
|
}
|
|
183
|
-
message.
|
|
329
|
+
message.phoneNumber = reader.string();
|
|
184
330
|
continue;
|
|
185
331
|
}
|
|
186
332
|
case 4: {
|
|
187
333
|
if (tag !== 34) {
|
|
188
334
|
break;
|
|
189
335
|
}
|
|
190
|
-
message.
|
|
336
|
+
message.gender = reader.string();
|
|
191
337
|
continue;
|
|
192
338
|
}
|
|
193
339
|
case 5: {
|
|
194
340
|
if (tag !== 42) {
|
|
195
341
|
break;
|
|
196
342
|
}
|
|
197
|
-
message.
|
|
343
|
+
message.dob = reader.string();
|
|
198
344
|
continue;
|
|
199
345
|
}
|
|
200
346
|
case 6: {
|
|
201
347
|
if (tag !== 50) {
|
|
202
348
|
break;
|
|
203
349
|
}
|
|
204
|
-
message.
|
|
350
|
+
message.location = reader.string();
|
|
205
351
|
continue;
|
|
206
352
|
}
|
|
207
353
|
case 7: {
|
|
208
354
|
if (tag !== 58) {
|
|
209
355
|
break;
|
|
210
356
|
}
|
|
211
|
-
message.
|
|
357
|
+
message.stateId = reader.string();
|
|
212
358
|
continue;
|
|
213
359
|
}
|
|
214
360
|
case 8: {
|
|
215
361
|
if (tag !== 66) {
|
|
216
362
|
break;
|
|
217
363
|
}
|
|
364
|
+
message.localGovernmentId = reader.string();
|
|
365
|
+
continue;
|
|
366
|
+
}
|
|
367
|
+
case 9: {
|
|
368
|
+
if (tag !== 74) {
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
message.constituencyId = reader.string();
|
|
372
|
+
continue;
|
|
373
|
+
}
|
|
374
|
+
case 10: {
|
|
375
|
+
if (tag !== 82) {
|
|
376
|
+
break;
|
|
377
|
+
}
|
|
378
|
+
message.districtId = reader.string();
|
|
379
|
+
continue;
|
|
380
|
+
}
|
|
381
|
+
case 11: {
|
|
382
|
+
if (tag !== 90) {
|
|
383
|
+
break;
|
|
384
|
+
}
|
|
218
385
|
message.pollingUnit = reader.string();
|
|
219
386
|
continue;
|
|
220
387
|
}
|
|
@@ -229,12 +396,15 @@ exports.UpdateProfileRequest = {
|
|
|
229
396
|
fromJSON(object) {
|
|
230
397
|
return {
|
|
231
398
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
399
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
232
400
|
phoneNumber: isSet(object.phoneNumber) ? globalThis.String(object.phoneNumber) : "",
|
|
233
401
|
gender: isSet(object.gender) ? globalThis.String(object.gender) : "",
|
|
234
402
|
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
235
403
|
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
236
404
|
stateId: isSet(object.stateId) ? globalThis.String(object.stateId) : "",
|
|
237
405
|
localGovernmentId: isSet(object.localGovernmentId) ? globalThis.String(object.localGovernmentId) : "",
|
|
406
|
+
constituencyId: isSet(object.constituencyId) ? globalThis.String(object.constituencyId) : "",
|
|
407
|
+
districtId: isSet(object.districtId) ? globalThis.String(object.districtId) : "",
|
|
238
408
|
pollingUnit: isSet(object.pollingUnit) ? globalThis.String(object.pollingUnit) : "",
|
|
239
409
|
};
|
|
240
410
|
},
|
|
@@ -243,6 +413,9 @@ exports.UpdateProfileRequest = {
|
|
|
243
413
|
if (message.name !== "") {
|
|
244
414
|
obj.name = message.name;
|
|
245
415
|
}
|
|
416
|
+
if (message.username !== "") {
|
|
417
|
+
obj.username = message.username;
|
|
418
|
+
}
|
|
246
419
|
if (message.phoneNumber !== "") {
|
|
247
420
|
obj.phoneNumber = message.phoneNumber;
|
|
248
421
|
}
|
|
@@ -261,6 +434,12 @@ exports.UpdateProfileRequest = {
|
|
|
261
434
|
if (message.localGovernmentId !== "") {
|
|
262
435
|
obj.localGovernmentId = message.localGovernmentId;
|
|
263
436
|
}
|
|
437
|
+
if (message.constituencyId !== "") {
|
|
438
|
+
obj.constituencyId = message.constituencyId;
|
|
439
|
+
}
|
|
440
|
+
if (message.districtId !== "") {
|
|
441
|
+
obj.districtId = message.districtId;
|
|
442
|
+
}
|
|
264
443
|
if (message.pollingUnit !== "") {
|
|
265
444
|
obj.pollingUnit = message.pollingUnit;
|
|
266
445
|
}
|
|
@@ -270,16 +449,19 @@ exports.UpdateProfileRequest = {
|
|
|
270
449
|
return exports.UpdateProfileRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
271
450
|
},
|
|
272
451
|
fromPartial(object) {
|
|
273
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
452
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
274
453
|
const message = createBaseUpdateProfileRequest();
|
|
275
454
|
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
276
|
-
message.
|
|
277
|
-
message.
|
|
278
|
-
message.
|
|
279
|
-
message.
|
|
280
|
-
message.
|
|
281
|
-
message.
|
|
282
|
-
message.
|
|
455
|
+
message.username = (_b = object.username) !== null && _b !== void 0 ? _b : "";
|
|
456
|
+
message.phoneNumber = (_c = object.phoneNumber) !== null && _c !== void 0 ? _c : "";
|
|
457
|
+
message.gender = (_d = object.gender) !== null && _d !== void 0 ? _d : "";
|
|
458
|
+
message.dob = (_e = object.dob) !== null && _e !== void 0 ? _e : "";
|
|
459
|
+
message.location = (_f = object.location) !== null && _f !== void 0 ? _f : "";
|
|
460
|
+
message.stateId = (_g = object.stateId) !== null && _g !== void 0 ? _g : "";
|
|
461
|
+
message.localGovernmentId = (_h = object.localGovernmentId) !== null && _h !== void 0 ? _h : "";
|
|
462
|
+
message.constituencyId = (_j = object.constituencyId) !== null && _j !== void 0 ? _j : "";
|
|
463
|
+
message.districtId = (_k = object.districtId) !== null && _k !== void 0 ? _k : "";
|
|
464
|
+
message.pollingUnit = (_l = object.pollingUnit) !== null && _l !== void 0 ? _l : "";
|
|
283
465
|
return message;
|
|
284
466
|
},
|
|
285
467
|
};
|
|
@@ -565,6 +747,8 @@ function createBaseOnboardRequest() {
|
|
|
565
747
|
location: "",
|
|
566
748
|
stateId: "",
|
|
567
749
|
localGovernmentId: "",
|
|
750
|
+
constituencyId: "",
|
|
751
|
+
districtId: "",
|
|
568
752
|
pollingUnit: "",
|
|
569
753
|
kycData: new Uint8Array(0),
|
|
570
754
|
};
|
|
@@ -592,11 +776,17 @@ exports.OnboardRequest = {
|
|
|
592
776
|
if (message.localGovernmentId !== "") {
|
|
593
777
|
writer.uint32(58).string(message.localGovernmentId);
|
|
594
778
|
}
|
|
779
|
+
if (message.constituencyId !== "") {
|
|
780
|
+
writer.uint32(66).string(message.constituencyId);
|
|
781
|
+
}
|
|
782
|
+
if (message.districtId !== "") {
|
|
783
|
+
writer.uint32(74).string(message.districtId);
|
|
784
|
+
}
|
|
595
785
|
if (message.pollingUnit !== "") {
|
|
596
|
-
writer.uint32(
|
|
786
|
+
writer.uint32(82).string(message.pollingUnit);
|
|
597
787
|
}
|
|
598
788
|
if (message.kycData.length !== 0) {
|
|
599
|
-
writer.uint32(
|
|
789
|
+
writer.uint32(90).bytes(message.kycData);
|
|
600
790
|
}
|
|
601
791
|
return writer;
|
|
602
792
|
},
|
|
@@ -660,13 +850,27 @@ exports.OnboardRequest = {
|
|
|
660
850
|
if (tag !== 66) {
|
|
661
851
|
break;
|
|
662
852
|
}
|
|
663
|
-
message.
|
|
853
|
+
message.constituencyId = reader.string();
|
|
664
854
|
continue;
|
|
665
855
|
}
|
|
666
856
|
case 9: {
|
|
667
857
|
if (tag !== 74) {
|
|
668
858
|
break;
|
|
669
859
|
}
|
|
860
|
+
message.districtId = reader.string();
|
|
861
|
+
continue;
|
|
862
|
+
}
|
|
863
|
+
case 10: {
|
|
864
|
+
if (tag !== 82) {
|
|
865
|
+
break;
|
|
866
|
+
}
|
|
867
|
+
message.pollingUnit = reader.string();
|
|
868
|
+
continue;
|
|
869
|
+
}
|
|
870
|
+
case 11: {
|
|
871
|
+
if (tag !== 90) {
|
|
872
|
+
break;
|
|
873
|
+
}
|
|
670
874
|
message.kycData = reader.bytes();
|
|
671
875
|
continue;
|
|
672
876
|
}
|
|
@@ -687,6 +891,8 @@ exports.OnboardRequest = {
|
|
|
687
891
|
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
688
892
|
stateId: isSet(object.stateId) ? globalThis.String(object.stateId) : "",
|
|
689
893
|
localGovernmentId: isSet(object.localGovernmentId) ? globalThis.String(object.localGovernmentId) : "",
|
|
894
|
+
constituencyId: isSet(object.constituencyId) ? globalThis.String(object.constituencyId) : "",
|
|
895
|
+
districtId: isSet(object.districtId) ? globalThis.String(object.districtId) : "",
|
|
690
896
|
pollingUnit: isSet(object.pollingUnit) ? globalThis.String(object.pollingUnit) : "",
|
|
691
897
|
kycData: isSet(object.kycData) ? bytesFromBase64(object.kycData) : new Uint8Array(0),
|
|
692
898
|
};
|
|
@@ -714,6 +920,12 @@ exports.OnboardRequest = {
|
|
|
714
920
|
if (message.localGovernmentId !== "") {
|
|
715
921
|
obj.localGovernmentId = message.localGovernmentId;
|
|
716
922
|
}
|
|
923
|
+
if (message.constituencyId !== "") {
|
|
924
|
+
obj.constituencyId = message.constituencyId;
|
|
925
|
+
}
|
|
926
|
+
if (message.districtId !== "") {
|
|
927
|
+
obj.districtId = message.districtId;
|
|
928
|
+
}
|
|
717
929
|
if (message.pollingUnit !== "") {
|
|
718
930
|
obj.pollingUnit = message.pollingUnit;
|
|
719
931
|
}
|
|
@@ -726,7 +938,7 @@ exports.OnboardRequest = {
|
|
|
726
938
|
return exports.OnboardRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
727
939
|
},
|
|
728
940
|
fromPartial(object) {
|
|
729
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
941
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
730
942
|
const message = createBaseOnboardRequest();
|
|
731
943
|
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
732
944
|
message.phoneNumber = (_b = object.phoneNumber) !== null && _b !== void 0 ? _b : "";
|
|
@@ -735,8 +947,10 @@ exports.OnboardRequest = {
|
|
|
735
947
|
message.location = (_e = object.location) !== null && _e !== void 0 ? _e : "";
|
|
736
948
|
message.stateId = (_f = object.stateId) !== null && _f !== void 0 ? _f : "";
|
|
737
949
|
message.localGovernmentId = (_g = object.localGovernmentId) !== null && _g !== void 0 ? _g : "";
|
|
738
|
-
message.
|
|
739
|
-
message.
|
|
950
|
+
message.constituencyId = (_h = object.constituencyId) !== null && _h !== void 0 ? _h : "";
|
|
951
|
+
message.districtId = (_j = object.districtId) !== null && _j !== void 0 ? _j : "";
|
|
952
|
+
message.pollingUnit = (_k = object.pollingUnit) !== null && _k !== void 0 ? _k : "";
|
|
953
|
+
message.kycData = (_l = object.kycData) !== null && _l !== void 0 ? _l : new Uint8Array(0);
|
|
740
954
|
return message;
|
|
741
955
|
},
|
|
742
956
|
};
|
|
@@ -1016,10 +1230,95 @@ exports.ApplyForRepresentativeResponse = {
|
|
|
1016
1230
|
return message;
|
|
1017
1231
|
},
|
|
1018
1232
|
};
|
|
1233
|
+
function createBaseProfileStats() {
|
|
1234
|
+
return { postsCount: 0, followersCount: 0, followingCount: 0 };
|
|
1235
|
+
}
|
|
1236
|
+
exports.ProfileStats = {
|
|
1237
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1238
|
+
if (message.postsCount !== 0) {
|
|
1239
|
+
writer.uint32(8).int64(message.postsCount);
|
|
1240
|
+
}
|
|
1241
|
+
if (message.followersCount !== 0) {
|
|
1242
|
+
writer.uint32(16).int64(message.followersCount);
|
|
1243
|
+
}
|
|
1244
|
+
if (message.followingCount !== 0) {
|
|
1245
|
+
writer.uint32(24).int64(message.followingCount);
|
|
1246
|
+
}
|
|
1247
|
+
return writer;
|
|
1248
|
+
},
|
|
1249
|
+
decode(input, length) {
|
|
1250
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1251
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1252
|
+
const message = createBaseProfileStats();
|
|
1253
|
+
while (reader.pos < end) {
|
|
1254
|
+
const tag = reader.uint32();
|
|
1255
|
+
switch (tag >>> 3) {
|
|
1256
|
+
case 1: {
|
|
1257
|
+
if (tag !== 8) {
|
|
1258
|
+
break;
|
|
1259
|
+
}
|
|
1260
|
+
message.postsCount = longToNumber(reader.int64());
|
|
1261
|
+
continue;
|
|
1262
|
+
}
|
|
1263
|
+
case 2: {
|
|
1264
|
+
if (tag !== 16) {
|
|
1265
|
+
break;
|
|
1266
|
+
}
|
|
1267
|
+
message.followersCount = longToNumber(reader.int64());
|
|
1268
|
+
continue;
|
|
1269
|
+
}
|
|
1270
|
+
case 3: {
|
|
1271
|
+
if (tag !== 24) {
|
|
1272
|
+
break;
|
|
1273
|
+
}
|
|
1274
|
+
message.followingCount = longToNumber(reader.int64());
|
|
1275
|
+
continue;
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1279
|
+
break;
|
|
1280
|
+
}
|
|
1281
|
+
reader.skip(tag & 7);
|
|
1282
|
+
}
|
|
1283
|
+
return message;
|
|
1284
|
+
},
|
|
1285
|
+
fromJSON(object) {
|
|
1286
|
+
return {
|
|
1287
|
+
postsCount: isSet(object.postsCount) ? globalThis.Number(object.postsCount) : 0,
|
|
1288
|
+
followersCount: isSet(object.followersCount) ? globalThis.Number(object.followersCount) : 0,
|
|
1289
|
+
followingCount: isSet(object.followingCount) ? globalThis.Number(object.followingCount) : 0,
|
|
1290
|
+
};
|
|
1291
|
+
},
|
|
1292
|
+
toJSON(message) {
|
|
1293
|
+
const obj = {};
|
|
1294
|
+
if (message.postsCount !== 0) {
|
|
1295
|
+
obj.postsCount = Math.round(message.postsCount);
|
|
1296
|
+
}
|
|
1297
|
+
if (message.followersCount !== 0) {
|
|
1298
|
+
obj.followersCount = Math.round(message.followersCount);
|
|
1299
|
+
}
|
|
1300
|
+
if (message.followingCount !== 0) {
|
|
1301
|
+
obj.followingCount = Math.round(message.followingCount);
|
|
1302
|
+
}
|
|
1303
|
+
return obj;
|
|
1304
|
+
},
|
|
1305
|
+
create(base) {
|
|
1306
|
+
return exports.ProfileStats.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1307
|
+
},
|
|
1308
|
+
fromPartial(object) {
|
|
1309
|
+
var _a, _b, _c;
|
|
1310
|
+
const message = createBaseProfileStats();
|
|
1311
|
+
message.postsCount = (_a = object.postsCount) !== null && _a !== void 0 ? _a : 0;
|
|
1312
|
+
message.followersCount = (_b = object.followersCount) !== null && _b !== void 0 ? _b : 0;
|
|
1313
|
+
message.followingCount = (_c = object.followingCount) !== null && _c !== void 0 ? _c : 0;
|
|
1314
|
+
return message;
|
|
1315
|
+
},
|
|
1316
|
+
};
|
|
1019
1317
|
function createBaseAccount() {
|
|
1020
1318
|
return {
|
|
1021
1319
|
id: "",
|
|
1022
1320
|
name: "",
|
|
1321
|
+
username: "",
|
|
1023
1322
|
email: "",
|
|
1024
1323
|
photoUrl: "",
|
|
1025
1324
|
coverPhotoUrl: "",
|
|
@@ -1027,15 +1326,23 @@ function createBaseAccount() {
|
|
|
1027
1326
|
gender: "",
|
|
1028
1327
|
dob: "",
|
|
1029
1328
|
location: "",
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1329
|
+
bio: "",
|
|
1330
|
+
website: "",
|
|
1331
|
+
state: undefined,
|
|
1332
|
+
localGovernment: undefined,
|
|
1333
|
+
constituency: undefined,
|
|
1334
|
+
district: undefined,
|
|
1335
|
+
accountType: undefined,
|
|
1033
1336
|
pollingUnit: "",
|
|
1034
1337
|
emailVerified: false,
|
|
1338
|
+
verified: false,
|
|
1035
1339
|
status: "",
|
|
1036
1340
|
kyced: false,
|
|
1037
1341
|
createdAt: "",
|
|
1038
1342
|
updatedAt: "",
|
|
1343
|
+
isFollowing: false,
|
|
1344
|
+
isFollowedBy: false,
|
|
1345
|
+
isOwnProfile: false,
|
|
1039
1346
|
};
|
|
1040
1347
|
}
|
|
1041
1348
|
exports.Account = {
|
|
@@ -1046,53 +1353,80 @@ exports.Account = {
|
|
|
1046
1353
|
if (message.name !== "") {
|
|
1047
1354
|
writer.uint32(18).string(message.name);
|
|
1048
1355
|
}
|
|
1356
|
+
if (message.username !== "") {
|
|
1357
|
+
writer.uint32(26).string(message.username);
|
|
1358
|
+
}
|
|
1049
1359
|
if (message.email !== "") {
|
|
1050
|
-
writer.uint32(
|
|
1360
|
+
writer.uint32(34).string(message.email);
|
|
1051
1361
|
}
|
|
1052
1362
|
if (message.photoUrl !== "") {
|
|
1053
|
-
writer.uint32(
|
|
1363
|
+
writer.uint32(42).string(message.photoUrl);
|
|
1054
1364
|
}
|
|
1055
1365
|
if (message.coverPhotoUrl !== "") {
|
|
1056
|
-
writer.uint32(
|
|
1366
|
+
writer.uint32(50).string(message.coverPhotoUrl);
|
|
1057
1367
|
}
|
|
1058
1368
|
if (message.phoneNumber !== "") {
|
|
1059
|
-
writer.uint32(
|
|
1369
|
+
writer.uint32(58).string(message.phoneNumber);
|
|
1060
1370
|
}
|
|
1061
1371
|
if (message.gender !== "") {
|
|
1062
|
-
writer.uint32(
|
|
1372
|
+
writer.uint32(66).string(message.gender);
|
|
1063
1373
|
}
|
|
1064
1374
|
if (message.dob !== "") {
|
|
1065
|
-
writer.uint32(
|
|
1375
|
+
writer.uint32(74).string(message.dob);
|
|
1066
1376
|
}
|
|
1067
1377
|
if (message.location !== "") {
|
|
1068
|
-
writer.uint32(
|
|
1378
|
+
writer.uint32(82).string(message.location);
|
|
1069
1379
|
}
|
|
1070
|
-
if (message.
|
|
1071
|
-
writer.uint32(
|
|
1380
|
+
if (message.bio !== "") {
|
|
1381
|
+
writer.uint32(90).string(message.bio);
|
|
1072
1382
|
}
|
|
1073
|
-
if (message.
|
|
1074
|
-
writer.uint32(
|
|
1383
|
+
if (message.website !== "") {
|
|
1384
|
+
writer.uint32(98).string(message.website);
|
|
1385
|
+
}
|
|
1386
|
+
if (message.state !== undefined) {
|
|
1387
|
+
lookup_1.State.encode(message.state, writer.uint32(106).fork()).join();
|
|
1075
1388
|
}
|
|
1076
|
-
if (message.
|
|
1077
|
-
writer.uint32(
|
|
1389
|
+
if (message.localGovernment !== undefined) {
|
|
1390
|
+
lookup_1.LocalGovernment.encode(message.localGovernment, writer.uint32(114).fork()).join();
|
|
1391
|
+
}
|
|
1392
|
+
if (message.constituency !== undefined) {
|
|
1393
|
+
lookup_1.Constituency.encode(message.constituency, writer.uint32(122).fork()).join();
|
|
1394
|
+
}
|
|
1395
|
+
if (message.district !== undefined) {
|
|
1396
|
+
lookup_1.District.encode(message.district, writer.uint32(130).fork()).join();
|
|
1397
|
+
}
|
|
1398
|
+
if (message.accountType !== undefined) {
|
|
1399
|
+
lookup_1.AccountType.encode(message.accountType, writer.uint32(138).fork()).join();
|
|
1078
1400
|
}
|
|
1079
1401
|
if (message.pollingUnit !== "") {
|
|
1080
|
-
writer.uint32(
|
|
1402
|
+
writer.uint32(146).string(message.pollingUnit);
|
|
1081
1403
|
}
|
|
1082
1404
|
if (message.emailVerified !== false) {
|
|
1083
|
-
writer.uint32(
|
|
1405
|
+
writer.uint32(152).bool(message.emailVerified);
|
|
1406
|
+
}
|
|
1407
|
+
if (message.verified !== false) {
|
|
1408
|
+
writer.uint32(160).bool(message.verified);
|
|
1084
1409
|
}
|
|
1085
1410
|
if (message.status !== "") {
|
|
1086
|
-
writer.uint32(
|
|
1411
|
+
writer.uint32(170).string(message.status);
|
|
1087
1412
|
}
|
|
1088
1413
|
if (message.kyced !== false) {
|
|
1089
|
-
writer.uint32(
|
|
1414
|
+
writer.uint32(176).bool(message.kyced);
|
|
1090
1415
|
}
|
|
1091
1416
|
if (message.createdAt !== "") {
|
|
1092
|
-
writer.uint32(
|
|
1417
|
+
writer.uint32(186).string(message.createdAt);
|
|
1093
1418
|
}
|
|
1094
1419
|
if (message.updatedAt !== "") {
|
|
1095
|
-
writer.uint32(
|
|
1420
|
+
writer.uint32(194).string(message.updatedAt);
|
|
1421
|
+
}
|
|
1422
|
+
if (message.isFollowing !== false) {
|
|
1423
|
+
writer.uint32(200).bool(message.isFollowing);
|
|
1424
|
+
}
|
|
1425
|
+
if (message.isFollowedBy !== false) {
|
|
1426
|
+
writer.uint32(208).bool(message.isFollowedBy);
|
|
1427
|
+
}
|
|
1428
|
+
if (message.isOwnProfile !== false) {
|
|
1429
|
+
writer.uint32(216).bool(message.isOwnProfile);
|
|
1096
1430
|
}
|
|
1097
1431
|
return writer;
|
|
1098
1432
|
},
|
|
@@ -1121,114 +1455,177 @@ exports.Account = {
|
|
|
1121
1455
|
if (tag !== 26) {
|
|
1122
1456
|
break;
|
|
1123
1457
|
}
|
|
1124
|
-
message.
|
|
1458
|
+
message.username = reader.string();
|
|
1125
1459
|
continue;
|
|
1126
1460
|
}
|
|
1127
1461
|
case 4: {
|
|
1128
1462
|
if (tag !== 34) {
|
|
1129
1463
|
break;
|
|
1130
1464
|
}
|
|
1131
|
-
message.
|
|
1465
|
+
message.email = reader.string();
|
|
1132
1466
|
continue;
|
|
1133
1467
|
}
|
|
1134
1468
|
case 5: {
|
|
1135
1469
|
if (tag !== 42) {
|
|
1136
1470
|
break;
|
|
1137
1471
|
}
|
|
1138
|
-
message.
|
|
1472
|
+
message.photoUrl = reader.string();
|
|
1139
1473
|
continue;
|
|
1140
1474
|
}
|
|
1141
1475
|
case 6: {
|
|
1142
1476
|
if (tag !== 50) {
|
|
1143
1477
|
break;
|
|
1144
1478
|
}
|
|
1145
|
-
message.
|
|
1479
|
+
message.coverPhotoUrl = reader.string();
|
|
1146
1480
|
continue;
|
|
1147
1481
|
}
|
|
1148
1482
|
case 7: {
|
|
1149
1483
|
if (tag !== 58) {
|
|
1150
1484
|
break;
|
|
1151
1485
|
}
|
|
1152
|
-
message.
|
|
1486
|
+
message.phoneNumber = reader.string();
|
|
1153
1487
|
continue;
|
|
1154
1488
|
}
|
|
1155
1489
|
case 8: {
|
|
1156
1490
|
if (tag !== 66) {
|
|
1157
1491
|
break;
|
|
1158
1492
|
}
|
|
1159
|
-
message.
|
|
1493
|
+
message.gender = reader.string();
|
|
1160
1494
|
continue;
|
|
1161
1495
|
}
|
|
1162
1496
|
case 9: {
|
|
1163
1497
|
if (tag !== 74) {
|
|
1164
1498
|
break;
|
|
1165
1499
|
}
|
|
1166
|
-
message.
|
|
1500
|
+
message.dob = reader.string();
|
|
1167
1501
|
continue;
|
|
1168
1502
|
}
|
|
1169
1503
|
case 10: {
|
|
1170
1504
|
if (tag !== 82) {
|
|
1171
1505
|
break;
|
|
1172
1506
|
}
|
|
1173
|
-
message.
|
|
1507
|
+
message.location = reader.string();
|
|
1174
1508
|
continue;
|
|
1175
1509
|
}
|
|
1176
1510
|
case 11: {
|
|
1177
1511
|
if (tag !== 90) {
|
|
1178
1512
|
break;
|
|
1179
1513
|
}
|
|
1180
|
-
message.
|
|
1514
|
+
message.bio = reader.string();
|
|
1181
1515
|
continue;
|
|
1182
1516
|
}
|
|
1183
1517
|
case 12: {
|
|
1184
1518
|
if (tag !== 98) {
|
|
1185
1519
|
break;
|
|
1186
1520
|
}
|
|
1187
|
-
message.
|
|
1521
|
+
message.website = reader.string();
|
|
1188
1522
|
continue;
|
|
1189
1523
|
}
|
|
1190
1524
|
case 13: {
|
|
1191
1525
|
if (tag !== 106) {
|
|
1192
1526
|
break;
|
|
1193
1527
|
}
|
|
1194
|
-
message.
|
|
1528
|
+
message.state = lookup_1.State.decode(reader, reader.uint32());
|
|
1195
1529
|
continue;
|
|
1196
1530
|
}
|
|
1197
1531
|
case 14: {
|
|
1198
|
-
if (tag !==
|
|
1532
|
+
if (tag !== 114) {
|
|
1199
1533
|
break;
|
|
1200
1534
|
}
|
|
1201
|
-
message.
|
|
1535
|
+
message.localGovernment = lookup_1.LocalGovernment.decode(reader, reader.uint32());
|
|
1202
1536
|
continue;
|
|
1203
1537
|
}
|
|
1204
1538
|
case 15: {
|
|
1205
1539
|
if (tag !== 122) {
|
|
1206
1540
|
break;
|
|
1207
1541
|
}
|
|
1208
|
-
message.
|
|
1542
|
+
message.constituency = lookup_1.Constituency.decode(reader, reader.uint32());
|
|
1209
1543
|
continue;
|
|
1210
1544
|
}
|
|
1211
1545
|
case 16: {
|
|
1212
|
-
if (tag !==
|
|
1546
|
+
if (tag !== 130) {
|
|
1213
1547
|
break;
|
|
1214
1548
|
}
|
|
1215
|
-
message.
|
|
1549
|
+
message.district = lookup_1.District.decode(reader, reader.uint32());
|
|
1216
1550
|
continue;
|
|
1217
1551
|
}
|
|
1218
1552
|
case 17: {
|
|
1219
1553
|
if (tag !== 138) {
|
|
1220
1554
|
break;
|
|
1221
1555
|
}
|
|
1222
|
-
message.
|
|
1556
|
+
message.accountType = lookup_1.AccountType.decode(reader, reader.uint32());
|
|
1223
1557
|
continue;
|
|
1224
1558
|
}
|
|
1225
1559
|
case 18: {
|
|
1226
1560
|
if (tag !== 146) {
|
|
1227
1561
|
break;
|
|
1228
1562
|
}
|
|
1563
|
+
message.pollingUnit = reader.string();
|
|
1564
|
+
continue;
|
|
1565
|
+
}
|
|
1566
|
+
case 19: {
|
|
1567
|
+
if (tag !== 152) {
|
|
1568
|
+
break;
|
|
1569
|
+
}
|
|
1570
|
+
message.emailVerified = reader.bool();
|
|
1571
|
+
continue;
|
|
1572
|
+
}
|
|
1573
|
+
case 20: {
|
|
1574
|
+
if (tag !== 160) {
|
|
1575
|
+
break;
|
|
1576
|
+
}
|
|
1577
|
+
message.verified = reader.bool();
|
|
1578
|
+
continue;
|
|
1579
|
+
}
|
|
1580
|
+
case 21: {
|
|
1581
|
+
if (tag !== 170) {
|
|
1582
|
+
break;
|
|
1583
|
+
}
|
|
1584
|
+
message.status = reader.string();
|
|
1585
|
+
continue;
|
|
1586
|
+
}
|
|
1587
|
+
case 22: {
|
|
1588
|
+
if (tag !== 176) {
|
|
1589
|
+
break;
|
|
1590
|
+
}
|
|
1591
|
+
message.kyced = reader.bool();
|
|
1592
|
+
continue;
|
|
1593
|
+
}
|
|
1594
|
+
case 23: {
|
|
1595
|
+
if (tag !== 186) {
|
|
1596
|
+
break;
|
|
1597
|
+
}
|
|
1598
|
+
message.createdAt = reader.string();
|
|
1599
|
+
continue;
|
|
1600
|
+
}
|
|
1601
|
+
case 24: {
|
|
1602
|
+
if (tag !== 194) {
|
|
1603
|
+
break;
|
|
1604
|
+
}
|
|
1229
1605
|
message.updatedAt = reader.string();
|
|
1230
1606
|
continue;
|
|
1231
1607
|
}
|
|
1608
|
+
case 25: {
|
|
1609
|
+
if (tag !== 200) {
|
|
1610
|
+
break;
|
|
1611
|
+
}
|
|
1612
|
+
message.isFollowing = reader.bool();
|
|
1613
|
+
continue;
|
|
1614
|
+
}
|
|
1615
|
+
case 26: {
|
|
1616
|
+
if (tag !== 208) {
|
|
1617
|
+
break;
|
|
1618
|
+
}
|
|
1619
|
+
message.isFollowedBy = reader.bool();
|
|
1620
|
+
continue;
|
|
1621
|
+
}
|
|
1622
|
+
case 27: {
|
|
1623
|
+
if (tag !== 216) {
|
|
1624
|
+
break;
|
|
1625
|
+
}
|
|
1626
|
+
message.isOwnProfile = reader.bool();
|
|
1627
|
+
continue;
|
|
1628
|
+
}
|
|
1232
1629
|
}
|
|
1233
1630
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1234
1631
|
break;
|
|
@@ -1241,6 +1638,7 @@ exports.Account = {
|
|
|
1241
1638
|
return {
|
|
1242
1639
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1243
1640
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1641
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
1244
1642
|
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
1245
1643
|
photoUrl: isSet(object.photoUrl) ? globalThis.String(object.photoUrl) : "",
|
|
1246
1644
|
coverPhotoUrl: isSet(object.coverPhotoUrl) ? globalThis.String(object.coverPhotoUrl) : "",
|
|
@@ -1248,15 +1646,23 @@ exports.Account = {
|
|
|
1248
1646
|
gender: isSet(object.gender) ? globalThis.String(object.gender) : "",
|
|
1249
1647
|
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
1250
1648
|
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1649
|
+
bio: isSet(object.bio) ? globalThis.String(object.bio) : "",
|
|
1650
|
+
website: isSet(object.website) ? globalThis.String(object.website) : "",
|
|
1651
|
+
state: isSet(object.state) ? lookup_1.State.fromJSON(object.state) : undefined,
|
|
1652
|
+
localGovernment: isSet(object.localGovernment) ? lookup_1.LocalGovernment.fromJSON(object.localGovernment) : undefined,
|
|
1653
|
+
constituency: isSet(object.constituency) ? lookup_1.Constituency.fromJSON(object.constituency) : undefined,
|
|
1654
|
+
district: isSet(object.district) ? lookup_1.District.fromJSON(object.district) : undefined,
|
|
1655
|
+
accountType: isSet(object.accountType) ? lookup_1.AccountType.fromJSON(object.accountType) : undefined,
|
|
1254
1656
|
pollingUnit: isSet(object.pollingUnit) ? globalThis.String(object.pollingUnit) : "",
|
|
1255
1657
|
emailVerified: isSet(object.emailVerified) ? globalThis.Boolean(object.emailVerified) : false,
|
|
1658
|
+
verified: isSet(object.verified) ? globalThis.Boolean(object.verified) : false,
|
|
1256
1659
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
1257
1660
|
kyced: isSet(object.kyced) ? globalThis.Boolean(object.kyced) : false,
|
|
1258
1661
|
createdAt: isSet(object.createdAt) ? globalThis.String(object.createdAt) : "",
|
|
1259
1662
|
updatedAt: isSet(object.updatedAt) ? globalThis.String(object.updatedAt) : "",
|
|
1663
|
+
isFollowing: isSet(object.isFollowing) ? globalThis.Boolean(object.isFollowing) : false,
|
|
1664
|
+
isFollowedBy: isSet(object.isFollowedBy) ? globalThis.Boolean(object.isFollowedBy) : false,
|
|
1665
|
+
isOwnProfile: isSet(object.isOwnProfile) ? globalThis.Boolean(object.isOwnProfile) : false,
|
|
1260
1666
|
};
|
|
1261
1667
|
},
|
|
1262
1668
|
toJSON(message) {
|
|
@@ -1267,6 +1673,9 @@ exports.Account = {
|
|
|
1267
1673
|
if (message.name !== "") {
|
|
1268
1674
|
obj.name = message.name;
|
|
1269
1675
|
}
|
|
1676
|
+
if (message.username !== "") {
|
|
1677
|
+
obj.username = message.username;
|
|
1678
|
+
}
|
|
1270
1679
|
if (message.email !== "") {
|
|
1271
1680
|
obj.email = message.email;
|
|
1272
1681
|
}
|
|
@@ -1288,14 +1697,26 @@ exports.Account = {
|
|
|
1288
1697
|
if (message.location !== "") {
|
|
1289
1698
|
obj.location = message.location;
|
|
1290
1699
|
}
|
|
1291
|
-
if (message.
|
|
1292
|
-
obj.
|
|
1700
|
+
if (message.bio !== "") {
|
|
1701
|
+
obj.bio = message.bio;
|
|
1293
1702
|
}
|
|
1294
|
-
if (message.
|
|
1295
|
-
obj.
|
|
1703
|
+
if (message.website !== "") {
|
|
1704
|
+
obj.website = message.website;
|
|
1296
1705
|
}
|
|
1297
|
-
if (message.
|
|
1298
|
-
obj.
|
|
1706
|
+
if (message.state !== undefined) {
|
|
1707
|
+
obj.state = lookup_1.State.toJSON(message.state);
|
|
1708
|
+
}
|
|
1709
|
+
if (message.localGovernment !== undefined) {
|
|
1710
|
+
obj.localGovernment = lookup_1.LocalGovernment.toJSON(message.localGovernment);
|
|
1711
|
+
}
|
|
1712
|
+
if (message.constituency !== undefined) {
|
|
1713
|
+
obj.constituency = lookup_1.Constituency.toJSON(message.constituency);
|
|
1714
|
+
}
|
|
1715
|
+
if (message.district !== undefined) {
|
|
1716
|
+
obj.district = lookup_1.District.toJSON(message.district);
|
|
1717
|
+
}
|
|
1718
|
+
if (message.accountType !== undefined) {
|
|
1719
|
+
obj.accountType = lookup_1.AccountType.toJSON(message.accountType);
|
|
1299
1720
|
}
|
|
1300
1721
|
if (message.pollingUnit !== "") {
|
|
1301
1722
|
obj.pollingUnit = message.pollingUnit;
|
|
@@ -1303,6 +1724,9 @@ exports.Account = {
|
|
|
1303
1724
|
if (message.emailVerified !== false) {
|
|
1304
1725
|
obj.emailVerified = message.emailVerified;
|
|
1305
1726
|
}
|
|
1727
|
+
if (message.verified !== false) {
|
|
1728
|
+
obj.verified = message.verified;
|
|
1729
|
+
}
|
|
1306
1730
|
if (message.status !== "") {
|
|
1307
1731
|
obj.status = message.status;
|
|
1308
1732
|
}
|
|
@@ -1315,32 +1739,190 @@ exports.Account = {
|
|
|
1315
1739
|
if (message.updatedAt !== "") {
|
|
1316
1740
|
obj.updatedAt = message.updatedAt;
|
|
1317
1741
|
}
|
|
1742
|
+
if (message.isFollowing !== false) {
|
|
1743
|
+
obj.isFollowing = message.isFollowing;
|
|
1744
|
+
}
|
|
1745
|
+
if (message.isFollowedBy !== false) {
|
|
1746
|
+
obj.isFollowedBy = message.isFollowedBy;
|
|
1747
|
+
}
|
|
1748
|
+
if (message.isOwnProfile !== false) {
|
|
1749
|
+
obj.isOwnProfile = message.isOwnProfile;
|
|
1750
|
+
}
|
|
1318
1751
|
return obj;
|
|
1319
1752
|
},
|
|
1320
1753
|
create(base) {
|
|
1321
1754
|
return exports.Account.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1322
1755
|
},
|
|
1323
1756
|
fromPartial(object) {
|
|
1324
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
1757
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
1325
1758
|
const message = createBaseAccount();
|
|
1326
1759
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
1327
1760
|
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
1328
|
-
message.
|
|
1329
|
-
message.
|
|
1330
|
-
message.
|
|
1331
|
-
message.
|
|
1332
|
-
message.
|
|
1333
|
-
message.
|
|
1334
|
-
message.
|
|
1335
|
-
message.
|
|
1336
|
-
message.
|
|
1337
|
-
message.
|
|
1761
|
+
message.username = (_c = object.username) !== null && _c !== void 0 ? _c : "";
|
|
1762
|
+
message.email = (_d = object.email) !== null && _d !== void 0 ? _d : "";
|
|
1763
|
+
message.photoUrl = (_e = object.photoUrl) !== null && _e !== void 0 ? _e : "";
|
|
1764
|
+
message.coverPhotoUrl = (_f = object.coverPhotoUrl) !== null && _f !== void 0 ? _f : "";
|
|
1765
|
+
message.phoneNumber = (_g = object.phoneNumber) !== null && _g !== void 0 ? _g : "";
|
|
1766
|
+
message.gender = (_h = object.gender) !== null && _h !== void 0 ? _h : "";
|
|
1767
|
+
message.dob = (_j = object.dob) !== null && _j !== void 0 ? _j : "";
|
|
1768
|
+
message.location = (_k = object.location) !== null && _k !== void 0 ? _k : "";
|
|
1769
|
+
message.bio = (_l = object.bio) !== null && _l !== void 0 ? _l : "";
|
|
1770
|
+
message.website = (_m = object.website) !== null && _m !== void 0 ? _m : "";
|
|
1771
|
+
message.state = (object.state !== undefined && object.state !== null) ? lookup_1.State.fromPartial(object.state) : undefined;
|
|
1772
|
+
message.localGovernment = (object.localGovernment !== undefined && object.localGovernment !== null)
|
|
1773
|
+
? lookup_1.LocalGovernment.fromPartial(object.localGovernment)
|
|
1774
|
+
: undefined;
|
|
1775
|
+
message.constituency = (object.constituency !== undefined && object.constituency !== null)
|
|
1776
|
+
? lookup_1.Constituency.fromPartial(object.constituency)
|
|
1777
|
+
: undefined;
|
|
1778
|
+
message.district = (object.district !== undefined && object.district !== null)
|
|
1779
|
+
? lookup_1.District.fromPartial(object.district)
|
|
1780
|
+
: undefined;
|
|
1781
|
+
message.accountType = (object.accountType !== undefined && object.accountType !== null)
|
|
1782
|
+
? lookup_1.AccountType.fromPartial(object.accountType)
|
|
1783
|
+
: undefined;
|
|
1338
1784
|
message.pollingUnit = (_o = object.pollingUnit) !== null && _o !== void 0 ? _o : "";
|
|
1339
1785
|
message.emailVerified = (_p = object.emailVerified) !== null && _p !== void 0 ? _p : false;
|
|
1340
|
-
message.
|
|
1341
|
-
message.
|
|
1342
|
-
message.
|
|
1343
|
-
message.
|
|
1786
|
+
message.verified = (_q = object.verified) !== null && _q !== void 0 ? _q : false;
|
|
1787
|
+
message.status = (_r = object.status) !== null && _r !== void 0 ? _r : "";
|
|
1788
|
+
message.kyced = (_s = object.kyced) !== null && _s !== void 0 ? _s : false;
|
|
1789
|
+
message.createdAt = (_t = object.createdAt) !== null && _t !== void 0 ? _t : "";
|
|
1790
|
+
message.updatedAt = (_u = object.updatedAt) !== null && _u !== void 0 ? _u : "";
|
|
1791
|
+
message.isFollowing = (_v = object.isFollowing) !== null && _v !== void 0 ? _v : false;
|
|
1792
|
+
message.isFollowedBy = (_w = object.isFollowedBy) !== null && _w !== void 0 ? _w : false;
|
|
1793
|
+
message.isOwnProfile = (_x = object.isOwnProfile) !== null && _x !== void 0 ? _x : false;
|
|
1794
|
+
return message;
|
|
1795
|
+
},
|
|
1796
|
+
};
|
|
1797
|
+
function createBaseProfile() {
|
|
1798
|
+
return { user: undefined, stats: undefined, posts: [], replies: [], media: [], likes: [] };
|
|
1799
|
+
}
|
|
1800
|
+
exports.Profile = {
|
|
1801
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1802
|
+
if (message.user !== undefined) {
|
|
1803
|
+
exports.Account.encode(message.user, writer.uint32(10).fork()).join();
|
|
1804
|
+
}
|
|
1805
|
+
if (message.stats !== undefined) {
|
|
1806
|
+
exports.ProfileStats.encode(message.stats, writer.uint32(18).fork()).join();
|
|
1807
|
+
}
|
|
1808
|
+
for (const v of message.posts) {
|
|
1809
|
+
posts_1.Post.encode(v, writer.uint32(26).fork()).join();
|
|
1810
|
+
}
|
|
1811
|
+
for (const v of message.replies) {
|
|
1812
|
+
posts_1.Post.encode(v, writer.uint32(34).fork()).join();
|
|
1813
|
+
}
|
|
1814
|
+
for (const v of message.media) {
|
|
1815
|
+
posts_1.Post.encode(v, writer.uint32(42).fork()).join();
|
|
1816
|
+
}
|
|
1817
|
+
for (const v of message.likes) {
|
|
1818
|
+
posts_1.Post.encode(v, writer.uint32(50).fork()).join();
|
|
1819
|
+
}
|
|
1820
|
+
return writer;
|
|
1821
|
+
},
|
|
1822
|
+
decode(input, length) {
|
|
1823
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1824
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1825
|
+
const message = createBaseProfile();
|
|
1826
|
+
while (reader.pos < end) {
|
|
1827
|
+
const tag = reader.uint32();
|
|
1828
|
+
switch (tag >>> 3) {
|
|
1829
|
+
case 1: {
|
|
1830
|
+
if (tag !== 10) {
|
|
1831
|
+
break;
|
|
1832
|
+
}
|
|
1833
|
+
message.user = exports.Account.decode(reader, reader.uint32());
|
|
1834
|
+
continue;
|
|
1835
|
+
}
|
|
1836
|
+
case 2: {
|
|
1837
|
+
if (tag !== 18) {
|
|
1838
|
+
break;
|
|
1839
|
+
}
|
|
1840
|
+
message.stats = exports.ProfileStats.decode(reader, reader.uint32());
|
|
1841
|
+
continue;
|
|
1842
|
+
}
|
|
1843
|
+
case 3: {
|
|
1844
|
+
if (tag !== 26) {
|
|
1845
|
+
break;
|
|
1846
|
+
}
|
|
1847
|
+
message.posts.push(posts_1.Post.decode(reader, reader.uint32()));
|
|
1848
|
+
continue;
|
|
1849
|
+
}
|
|
1850
|
+
case 4: {
|
|
1851
|
+
if (tag !== 34) {
|
|
1852
|
+
break;
|
|
1853
|
+
}
|
|
1854
|
+
message.replies.push(posts_1.Post.decode(reader, reader.uint32()));
|
|
1855
|
+
continue;
|
|
1856
|
+
}
|
|
1857
|
+
case 5: {
|
|
1858
|
+
if (tag !== 42) {
|
|
1859
|
+
break;
|
|
1860
|
+
}
|
|
1861
|
+
message.media.push(posts_1.Post.decode(reader, reader.uint32()));
|
|
1862
|
+
continue;
|
|
1863
|
+
}
|
|
1864
|
+
case 6: {
|
|
1865
|
+
if (tag !== 50) {
|
|
1866
|
+
break;
|
|
1867
|
+
}
|
|
1868
|
+
message.likes.push(posts_1.Post.decode(reader, reader.uint32()));
|
|
1869
|
+
continue;
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1873
|
+
break;
|
|
1874
|
+
}
|
|
1875
|
+
reader.skip(tag & 7);
|
|
1876
|
+
}
|
|
1877
|
+
return message;
|
|
1878
|
+
},
|
|
1879
|
+
fromJSON(object) {
|
|
1880
|
+
return {
|
|
1881
|
+
user: isSet(object.user) ? exports.Account.fromJSON(object.user) : undefined,
|
|
1882
|
+
stats: isSet(object.stats) ? exports.ProfileStats.fromJSON(object.stats) : undefined,
|
|
1883
|
+
posts: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.posts) ? object.posts.map((e) => posts_1.Post.fromJSON(e)) : [],
|
|
1884
|
+
replies: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.replies) ? object.replies.map((e) => posts_1.Post.fromJSON(e)) : [],
|
|
1885
|
+
media: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.media) ? object.media.map((e) => posts_1.Post.fromJSON(e)) : [],
|
|
1886
|
+
likes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.likes) ? object.likes.map((e) => posts_1.Post.fromJSON(e)) : [],
|
|
1887
|
+
};
|
|
1888
|
+
},
|
|
1889
|
+
toJSON(message) {
|
|
1890
|
+
var _a, _b, _c, _d;
|
|
1891
|
+
const obj = {};
|
|
1892
|
+
if (message.user !== undefined) {
|
|
1893
|
+
obj.user = exports.Account.toJSON(message.user);
|
|
1894
|
+
}
|
|
1895
|
+
if (message.stats !== undefined) {
|
|
1896
|
+
obj.stats = exports.ProfileStats.toJSON(message.stats);
|
|
1897
|
+
}
|
|
1898
|
+
if ((_a = message.posts) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1899
|
+
obj.posts = message.posts.map((e) => posts_1.Post.toJSON(e));
|
|
1900
|
+
}
|
|
1901
|
+
if ((_b = message.replies) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1902
|
+
obj.replies = message.replies.map((e) => posts_1.Post.toJSON(e));
|
|
1903
|
+
}
|
|
1904
|
+
if ((_c = message.media) === null || _c === void 0 ? void 0 : _c.length) {
|
|
1905
|
+
obj.media = message.media.map((e) => posts_1.Post.toJSON(e));
|
|
1906
|
+
}
|
|
1907
|
+
if ((_d = message.likes) === null || _d === void 0 ? void 0 : _d.length) {
|
|
1908
|
+
obj.likes = message.likes.map((e) => posts_1.Post.toJSON(e));
|
|
1909
|
+
}
|
|
1910
|
+
return obj;
|
|
1911
|
+
},
|
|
1912
|
+
create(base) {
|
|
1913
|
+
return exports.Profile.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1914
|
+
},
|
|
1915
|
+
fromPartial(object) {
|
|
1916
|
+
var _a, _b, _c, _d;
|
|
1917
|
+
const message = createBaseProfile();
|
|
1918
|
+
message.user = (object.user !== undefined && object.user !== null) ? exports.Account.fromPartial(object.user) : undefined;
|
|
1919
|
+
message.stats = (object.stats !== undefined && object.stats !== null)
|
|
1920
|
+
? exports.ProfileStats.fromPartial(object.stats)
|
|
1921
|
+
: undefined;
|
|
1922
|
+
message.posts = ((_a = object.posts) === null || _a === void 0 ? void 0 : _a.map((e) => posts_1.Post.fromPartial(e))) || [];
|
|
1923
|
+
message.replies = ((_b = object.replies) === null || _b === void 0 ? void 0 : _b.map((e) => posts_1.Post.fromPartial(e))) || [];
|
|
1924
|
+
message.media = ((_c = object.media) === null || _c === void 0 ? void 0 : _c.map((e) => posts_1.Post.fromPartial(e))) || [];
|
|
1925
|
+
message.likes = ((_d = object.likes) === null || _d === void 0 ? void 0 : _d.map((e) => posts_1.Post.fromPartial(e))) || [];
|
|
1344
1926
|
return message;
|
|
1345
1927
|
},
|
|
1346
1928
|
};
|
|
@@ -1902,105 +2484,1909 @@ exports.Representative = {
|
|
|
1902
2484
|
return message;
|
|
1903
2485
|
},
|
|
1904
2486
|
};
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2487
|
+
function createBaseFollowUserRequest() {
|
|
2488
|
+
return { userId: "" };
|
|
2489
|
+
}
|
|
2490
|
+
exports.FollowUserRequest = {
|
|
2491
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2492
|
+
if (message.userId !== "") {
|
|
2493
|
+
writer.uint32(10).string(message.userId);
|
|
2494
|
+
}
|
|
2495
|
+
return writer;
|
|
2496
|
+
},
|
|
2497
|
+
decode(input, length) {
|
|
2498
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2499
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2500
|
+
const message = createBaseFollowUserRequest();
|
|
2501
|
+
while (reader.pos < end) {
|
|
2502
|
+
const tag = reader.uint32();
|
|
2503
|
+
switch (tag >>> 3) {
|
|
2504
|
+
case 1: {
|
|
2505
|
+
if (tag !== 10) {
|
|
2506
|
+
break;
|
|
2507
|
+
}
|
|
2508
|
+
message.userId = reader.string();
|
|
2509
|
+
continue;
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2513
|
+
break;
|
|
2514
|
+
}
|
|
2515
|
+
reader.skip(tag & 7);
|
|
2516
|
+
}
|
|
2517
|
+
return message;
|
|
2518
|
+
},
|
|
2519
|
+
fromJSON(object) {
|
|
2520
|
+
return { userId: isSet(object.userId) ? globalThis.String(object.userId) : "" };
|
|
2521
|
+
},
|
|
2522
|
+
toJSON(message) {
|
|
2523
|
+
const obj = {};
|
|
2524
|
+
if (message.userId !== "") {
|
|
2525
|
+
obj.userId = message.userId;
|
|
2526
|
+
}
|
|
2527
|
+
return obj;
|
|
2528
|
+
},
|
|
2529
|
+
create(base) {
|
|
2530
|
+
return exports.FollowUserRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2531
|
+
},
|
|
2532
|
+
fromPartial(object) {
|
|
2533
|
+
var _a;
|
|
2534
|
+
const message = createBaseFollowUserRequest();
|
|
2535
|
+
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
2536
|
+
return message;
|
|
2537
|
+
},
|
|
2538
|
+
};
|
|
2539
|
+
function createBaseFollowUserResponse() {
|
|
2540
|
+
return { success: false, message: "", isFollowing: false };
|
|
2541
|
+
}
|
|
2542
|
+
exports.FollowUserResponse = {
|
|
2543
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2544
|
+
if (message.success !== false) {
|
|
2545
|
+
writer.uint32(8).bool(message.success);
|
|
2546
|
+
}
|
|
2547
|
+
if (message.message !== "") {
|
|
2548
|
+
writer.uint32(18).string(message.message);
|
|
2549
|
+
}
|
|
2550
|
+
if (message.isFollowing !== false) {
|
|
2551
|
+
writer.uint32(24).bool(message.isFollowing);
|
|
2552
|
+
}
|
|
2553
|
+
return writer;
|
|
2554
|
+
},
|
|
2555
|
+
decode(input, length) {
|
|
2556
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2557
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2558
|
+
const message = createBaseFollowUserResponse();
|
|
2559
|
+
while (reader.pos < end) {
|
|
2560
|
+
const tag = reader.uint32();
|
|
2561
|
+
switch (tag >>> 3) {
|
|
2562
|
+
case 1: {
|
|
2563
|
+
if (tag !== 8) {
|
|
2564
|
+
break;
|
|
2565
|
+
}
|
|
2566
|
+
message.success = reader.bool();
|
|
2567
|
+
continue;
|
|
2568
|
+
}
|
|
2569
|
+
case 2: {
|
|
2570
|
+
if (tag !== 18) {
|
|
2571
|
+
break;
|
|
2572
|
+
}
|
|
2573
|
+
message.message = reader.string();
|
|
2574
|
+
continue;
|
|
2575
|
+
}
|
|
2576
|
+
case 3: {
|
|
2577
|
+
if (tag !== 24) {
|
|
2578
|
+
break;
|
|
2579
|
+
}
|
|
2580
|
+
message.isFollowing = reader.bool();
|
|
2581
|
+
continue;
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2585
|
+
break;
|
|
2586
|
+
}
|
|
2587
|
+
reader.skip(tag & 7);
|
|
2588
|
+
}
|
|
2589
|
+
return message;
|
|
2590
|
+
},
|
|
2591
|
+
fromJSON(object) {
|
|
2592
|
+
return {
|
|
2593
|
+
success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
|
|
2594
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
2595
|
+
isFollowing: isSet(object.isFollowing) ? globalThis.Boolean(object.isFollowing) : false,
|
|
2596
|
+
};
|
|
2597
|
+
},
|
|
2598
|
+
toJSON(message) {
|
|
2599
|
+
const obj = {};
|
|
2600
|
+
if (message.success !== false) {
|
|
2601
|
+
obj.success = message.success;
|
|
2602
|
+
}
|
|
2603
|
+
if (message.message !== "") {
|
|
2604
|
+
obj.message = message.message;
|
|
2605
|
+
}
|
|
2606
|
+
if (message.isFollowing !== false) {
|
|
2607
|
+
obj.isFollowing = message.isFollowing;
|
|
2608
|
+
}
|
|
2609
|
+
return obj;
|
|
2610
|
+
},
|
|
2611
|
+
create(base) {
|
|
2612
|
+
return exports.FollowUserResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2613
|
+
},
|
|
2614
|
+
fromPartial(object) {
|
|
2615
|
+
var _a, _b, _c;
|
|
2616
|
+
const message = createBaseFollowUserResponse();
|
|
2617
|
+
message.success = (_a = object.success) !== null && _a !== void 0 ? _a : false;
|
|
2618
|
+
message.message = (_b = object.message) !== null && _b !== void 0 ? _b : "";
|
|
2619
|
+
message.isFollowing = (_c = object.isFollowing) !== null && _c !== void 0 ? _c : false;
|
|
2620
|
+
return message;
|
|
2621
|
+
},
|
|
2622
|
+
};
|
|
2623
|
+
function createBaseUnfollowUserRequest() {
|
|
2624
|
+
return { userId: "" };
|
|
2625
|
+
}
|
|
2626
|
+
exports.UnfollowUserRequest = {
|
|
2627
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2628
|
+
if (message.userId !== "") {
|
|
2629
|
+
writer.uint32(10).string(message.userId);
|
|
2630
|
+
}
|
|
2631
|
+
return writer;
|
|
2632
|
+
},
|
|
2633
|
+
decode(input, length) {
|
|
2634
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2635
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2636
|
+
const message = createBaseUnfollowUserRequest();
|
|
2637
|
+
while (reader.pos < end) {
|
|
2638
|
+
const tag = reader.uint32();
|
|
2639
|
+
switch (tag >>> 3) {
|
|
2640
|
+
case 1: {
|
|
2641
|
+
if (tag !== 10) {
|
|
2642
|
+
break;
|
|
2643
|
+
}
|
|
2644
|
+
message.userId = reader.string();
|
|
2645
|
+
continue;
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2648
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2649
|
+
break;
|
|
2650
|
+
}
|
|
2651
|
+
reader.skip(tag & 7);
|
|
2652
|
+
}
|
|
2653
|
+
return message;
|
|
2654
|
+
},
|
|
2655
|
+
fromJSON(object) {
|
|
2656
|
+
return { userId: isSet(object.userId) ? globalThis.String(object.userId) : "" };
|
|
2657
|
+
},
|
|
2658
|
+
toJSON(message) {
|
|
2659
|
+
const obj = {};
|
|
2660
|
+
if (message.userId !== "") {
|
|
2661
|
+
obj.userId = message.userId;
|
|
2662
|
+
}
|
|
2663
|
+
return obj;
|
|
2664
|
+
},
|
|
2665
|
+
create(base) {
|
|
2666
|
+
return exports.UnfollowUserRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2667
|
+
},
|
|
2668
|
+
fromPartial(object) {
|
|
2669
|
+
var _a;
|
|
2670
|
+
const message = createBaseUnfollowUserRequest();
|
|
2671
|
+
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
2672
|
+
return message;
|
|
2673
|
+
},
|
|
2674
|
+
};
|
|
2675
|
+
function createBaseUnfollowUserResponse() {
|
|
2676
|
+
return { success: false, message: "" };
|
|
2677
|
+
}
|
|
2678
|
+
exports.UnfollowUserResponse = {
|
|
2679
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2680
|
+
if (message.success !== false) {
|
|
2681
|
+
writer.uint32(8).bool(message.success);
|
|
2682
|
+
}
|
|
2683
|
+
if (message.message !== "") {
|
|
2684
|
+
writer.uint32(18).string(message.message);
|
|
2685
|
+
}
|
|
2686
|
+
return writer;
|
|
2687
|
+
},
|
|
2688
|
+
decode(input, length) {
|
|
2689
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2690
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2691
|
+
const message = createBaseUnfollowUserResponse();
|
|
2692
|
+
while (reader.pos < end) {
|
|
2693
|
+
const tag = reader.uint32();
|
|
2694
|
+
switch (tag >>> 3) {
|
|
2695
|
+
case 1: {
|
|
2696
|
+
if (tag !== 8) {
|
|
2697
|
+
break;
|
|
2698
|
+
}
|
|
2699
|
+
message.success = reader.bool();
|
|
2700
|
+
continue;
|
|
2701
|
+
}
|
|
2702
|
+
case 2: {
|
|
2703
|
+
if (tag !== 18) {
|
|
2704
|
+
break;
|
|
2705
|
+
}
|
|
2706
|
+
message.message = reader.string();
|
|
2707
|
+
continue;
|
|
2708
|
+
}
|
|
2709
|
+
}
|
|
2710
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2711
|
+
break;
|
|
2712
|
+
}
|
|
2713
|
+
reader.skip(tag & 7);
|
|
2714
|
+
}
|
|
2715
|
+
return message;
|
|
2716
|
+
},
|
|
2717
|
+
fromJSON(object) {
|
|
2718
|
+
return {
|
|
2719
|
+
success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
|
|
2720
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
2721
|
+
};
|
|
2722
|
+
},
|
|
2723
|
+
toJSON(message) {
|
|
2724
|
+
const obj = {};
|
|
2725
|
+
if (message.success !== false) {
|
|
2726
|
+
obj.success = message.success;
|
|
2727
|
+
}
|
|
2728
|
+
if (message.message !== "") {
|
|
2729
|
+
obj.message = message.message;
|
|
2730
|
+
}
|
|
2731
|
+
return obj;
|
|
2732
|
+
},
|
|
2733
|
+
create(base) {
|
|
2734
|
+
return exports.UnfollowUserResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2735
|
+
},
|
|
2736
|
+
fromPartial(object) {
|
|
2737
|
+
var _a, _b;
|
|
2738
|
+
const message = createBaseUnfollowUserResponse();
|
|
2739
|
+
message.success = (_a = object.success) !== null && _a !== void 0 ? _a : false;
|
|
2740
|
+
message.message = (_b = object.message) !== null && _b !== void 0 ? _b : "";
|
|
2741
|
+
return message;
|
|
2742
|
+
},
|
|
2743
|
+
};
|
|
2744
|
+
function createBaseGetFollowersRequest() {
|
|
2745
|
+
return { limit: 0, offset: 0 };
|
|
2746
|
+
}
|
|
2747
|
+
exports.GetFollowersRequest = {
|
|
2748
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2749
|
+
if (message.limit !== 0) {
|
|
2750
|
+
writer.uint32(8).int32(message.limit);
|
|
2751
|
+
}
|
|
2752
|
+
if (message.offset !== 0) {
|
|
2753
|
+
writer.uint32(16).int32(message.offset);
|
|
2754
|
+
}
|
|
2755
|
+
return writer;
|
|
2756
|
+
},
|
|
2757
|
+
decode(input, length) {
|
|
2758
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2759
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2760
|
+
const message = createBaseGetFollowersRequest();
|
|
2761
|
+
while (reader.pos < end) {
|
|
2762
|
+
const tag = reader.uint32();
|
|
2763
|
+
switch (tag >>> 3) {
|
|
2764
|
+
case 1: {
|
|
2765
|
+
if (tag !== 8) {
|
|
2766
|
+
break;
|
|
2767
|
+
}
|
|
2768
|
+
message.limit = reader.int32();
|
|
2769
|
+
continue;
|
|
2770
|
+
}
|
|
2771
|
+
case 2: {
|
|
2772
|
+
if (tag !== 16) {
|
|
2773
|
+
break;
|
|
2774
|
+
}
|
|
2775
|
+
message.offset = reader.int32();
|
|
2776
|
+
continue;
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2780
|
+
break;
|
|
2781
|
+
}
|
|
2782
|
+
reader.skip(tag & 7);
|
|
2783
|
+
}
|
|
2784
|
+
return message;
|
|
2785
|
+
},
|
|
2786
|
+
fromJSON(object) {
|
|
2787
|
+
return {
|
|
2788
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
2789
|
+
offset: isSet(object.offset) ? globalThis.Number(object.offset) : 0,
|
|
2790
|
+
};
|
|
2791
|
+
},
|
|
2792
|
+
toJSON(message) {
|
|
2793
|
+
const obj = {};
|
|
2794
|
+
if (message.limit !== 0) {
|
|
2795
|
+
obj.limit = Math.round(message.limit);
|
|
2796
|
+
}
|
|
2797
|
+
if (message.offset !== 0) {
|
|
2798
|
+
obj.offset = Math.round(message.offset);
|
|
2799
|
+
}
|
|
2800
|
+
return obj;
|
|
2801
|
+
},
|
|
2802
|
+
create(base) {
|
|
2803
|
+
return exports.GetFollowersRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2804
|
+
},
|
|
2805
|
+
fromPartial(object) {
|
|
2806
|
+
var _a, _b;
|
|
2807
|
+
const message = createBaseGetFollowersRequest();
|
|
2808
|
+
message.limit = (_a = object.limit) !== null && _a !== void 0 ? _a : 0;
|
|
2809
|
+
message.offset = (_b = object.offset) !== null && _b !== void 0 ? _b : 0;
|
|
2810
|
+
return message;
|
|
2811
|
+
},
|
|
2812
|
+
};
|
|
2813
|
+
function createBaseGetFollowersResponse() {
|
|
2814
|
+
return { followers: [], totalCount: 0 };
|
|
2815
|
+
}
|
|
2816
|
+
exports.GetFollowersResponse = {
|
|
2817
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2818
|
+
for (const v of message.followers) {
|
|
2819
|
+
exports.Account.encode(v, writer.uint32(10).fork()).join();
|
|
2820
|
+
}
|
|
2821
|
+
if (message.totalCount !== 0) {
|
|
2822
|
+
writer.uint32(16).int64(message.totalCount);
|
|
2823
|
+
}
|
|
2824
|
+
return writer;
|
|
2825
|
+
},
|
|
2826
|
+
decode(input, length) {
|
|
2827
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2828
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2829
|
+
const message = createBaseGetFollowersResponse();
|
|
2830
|
+
while (reader.pos < end) {
|
|
2831
|
+
const tag = reader.uint32();
|
|
2832
|
+
switch (tag >>> 3) {
|
|
2833
|
+
case 1: {
|
|
2834
|
+
if (tag !== 10) {
|
|
2835
|
+
break;
|
|
2836
|
+
}
|
|
2837
|
+
message.followers.push(exports.Account.decode(reader, reader.uint32()));
|
|
2838
|
+
continue;
|
|
2839
|
+
}
|
|
2840
|
+
case 2: {
|
|
2841
|
+
if (tag !== 16) {
|
|
2842
|
+
break;
|
|
2843
|
+
}
|
|
2844
|
+
message.totalCount = longToNumber(reader.int64());
|
|
2845
|
+
continue;
|
|
2846
|
+
}
|
|
2847
|
+
}
|
|
2848
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2849
|
+
break;
|
|
2850
|
+
}
|
|
2851
|
+
reader.skip(tag & 7);
|
|
2852
|
+
}
|
|
2853
|
+
return message;
|
|
2854
|
+
},
|
|
2855
|
+
fromJSON(object) {
|
|
2856
|
+
return {
|
|
2857
|
+
followers: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.followers)
|
|
2858
|
+
? object.followers.map((e) => exports.Account.fromJSON(e))
|
|
2859
|
+
: [],
|
|
2860
|
+
totalCount: isSet(object.totalCount) ? globalThis.Number(object.totalCount) : 0,
|
|
2861
|
+
};
|
|
2862
|
+
},
|
|
2863
|
+
toJSON(message) {
|
|
2864
|
+
var _a;
|
|
2865
|
+
const obj = {};
|
|
2866
|
+
if ((_a = message.followers) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2867
|
+
obj.followers = message.followers.map((e) => exports.Account.toJSON(e));
|
|
2868
|
+
}
|
|
2869
|
+
if (message.totalCount !== 0) {
|
|
2870
|
+
obj.totalCount = Math.round(message.totalCount);
|
|
2871
|
+
}
|
|
2872
|
+
return obj;
|
|
2873
|
+
},
|
|
2874
|
+
create(base) {
|
|
2875
|
+
return exports.GetFollowersResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2876
|
+
},
|
|
2877
|
+
fromPartial(object) {
|
|
2878
|
+
var _a, _b;
|
|
2879
|
+
const message = createBaseGetFollowersResponse();
|
|
2880
|
+
message.followers = ((_a = object.followers) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Account.fromPartial(e))) || [];
|
|
2881
|
+
message.totalCount = (_b = object.totalCount) !== null && _b !== void 0 ? _b : 0;
|
|
2882
|
+
return message;
|
|
2883
|
+
},
|
|
2884
|
+
};
|
|
2885
|
+
function createBaseGetFollowingRequest() {
|
|
2886
|
+
return { limit: 0, offset: 0 };
|
|
2887
|
+
}
|
|
2888
|
+
exports.GetFollowingRequest = {
|
|
2889
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2890
|
+
if (message.limit !== 0) {
|
|
2891
|
+
writer.uint32(8).int32(message.limit);
|
|
2892
|
+
}
|
|
2893
|
+
if (message.offset !== 0) {
|
|
2894
|
+
writer.uint32(16).int32(message.offset);
|
|
2895
|
+
}
|
|
2896
|
+
return writer;
|
|
2897
|
+
},
|
|
2898
|
+
decode(input, length) {
|
|
2899
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2900
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2901
|
+
const message = createBaseGetFollowingRequest();
|
|
2902
|
+
while (reader.pos < end) {
|
|
2903
|
+
const tag = reader.uint32();
|
|
2904
|
+
switch (tag >>> 3) {
|
|
2905
|
+
case 1: {
|
|
2906
|
+
if (tag !== 8) {
|
|
2907
|
+
break;
|
|
2908
|
+
}
|
|
2909
|
+
message.limit = reader.int32();
|
|
2910
|
+
continue;
|
|
2911
|
+
}
|
|
2912
|
+
case 2: {
|
|
2913
|
+
if (tag !== 16) {
|
|
2914
|
+
break;
|
|
2915
|
+
}
|
|
2916
|
+
message.offset = reader.int32();
|
|
2917
|
+
continue;
|
|
2918
|
+
}
|
|
2919
|
+
}
|
|
2920
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2921
|
+
break;
|
|
2922
|
+
}
|
|
2923
|
+
reader.skip(tag & 7);
|
|
2924
|
+
}
|
|
2925
|
+
return message;
|
|
2926
|
+
},
|
|
2927
|
+
fromJSON(object) {
|
|
2928
|
+
return {
|
|
2929
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
2930
|
+
offset: isSet(object.offset) ? globalThis.Number(object.offset) : 0,
|
|
2931
|
+
};
|
|
2932
|
+
},
|
|
2933
|
+
toJSON(message) {
|
|
2934
|
+
const obj = {};
|
|
2935
|
+
if (message.limit !== 0) {
|
|
2936
|
+
obj.limit = Math.round(message.limit);
|
|
2937
|
+
}
|
|
2938
|
+
if (message.offset !== 0) {
|
|
2939
|
+
obj.offset = Math.round(message.offset);
|
|
2940
|
+
}
|
|
2941
|
+
return obj;
|
|
2942
|
+
},
|
|
2943
|
+
create(base) {
|
|
2944
|
+
return exports.GetFollowingRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2945
|
+
},
|
|
2946
|
+
fromPartial(object) {
|
|
2947
|
+
var _a, _b;
|
|
2948
|
+
const message = createBaseGetFollowingRequest();
|
|
2949
|
+
message.limit = (_a = object.limit) !== null && _a !== void 0 ? _a : 0;
|
|
2950
|
+
message.offset = (_b = object.offset) !== null && _b !== void 0 ? _b : 0;
|
|
2951
|
+
return message;
|
|
2952
|
+
},
|
|
2953
|
+
};
|
|
2954
|
+
function createBaseGetFollowingResponse() {
|
|
2955
|
+
return { following: [], totalCount: 0 };
|
|
2956
|
+
}
|
|
2957
|
+
exports.GetFollowingResponse = {
|
|
2958
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2959
|
+
for (const v of message.following) {
|
|
2960
|
+
exports.Account.encode(v, writer.uint32(10).fork()).join();
|
|
2961
|
+
}
|
|
2962
|
+
if (message.totalCount !== 0) {
|
|
2963
|
+
writer.uint32(16).int64(message.totalCount);
|
|
2964
|
+
}
|
|
2965
|
+
return writer;
|
|
2966
|
+
},
|
|
2967
|
+
decode(input, length) {
|
|
2968
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2969
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2970
|
+
const message = createBaseGetFollowingResponse();
|
|
2971
|
+
while (reader.pos < end) {
|
|
2972
|
+
const tag = reader.uint32();
|
|
2973
|
+
switch (tag >>> 3) {
|
|
2974
|
+
case 1: {
|
|
2975
|
+
if (tag !== 10) {
|
|
2976
|
+
break;
|
|
2977
|
+
}
|
|
2978
|
+
message.following.push(exports.Account.decode(reader, reader.uint32()));
|
|
2979
|
+
continue;
|
|
2980
|
+
}
|
|
2981
|
+
case 2: {
|
|
2982
|
+
if (tag !== 16) {
|
|
2983
|
+
break;
|
|
2984
|
+
}
|
|
2985
|
+
message.totalCount = longToNumber(reader.int64());
|
|
2986
|
+
continue;
|
|
2987
|
+
}
|
|
2988
|
+
}
|
|
2989
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2990
|
+
break;
|
|
2991
|
+
}
|
|
2992
|
+
reader.skip(tag & 7);
|
|
2993
|
+
}
|
|
2994
|
+
return message;
|
|
2995
|
+
},
|
|
2996
|
+
fromJSON(object) {
|
|
2997
|
+
return {
|
|
2998
|
+
following: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.following)
|
|
2999
|
+
? object.following.map((e) => exports.Account.fromJSON(e))
|
|
3000
|
+
: [],
|
|
3001
|
+
totalCount: isSet(object.totalCount) ? globalThis.Number(object.totalCount) : 0,
|
|
3002
|
+
};
|
|
3003
|
+
},
|
|
3004
|
+
toJSON(message) {
|
|
3005
|
+
var _a;
|
|
3006
|
+
const obj = {};
|
|
3007
|
+
if ((_a = message.following) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3008
|
+
obj.following = message.following.map((e) => exports.Account.toJSON(e));
|
|
3009
|
+
}
|
|
3010
|
+
if (message.totalCount !== 0) {
|
|
3011
|
+
obj.totalCount = Math.round(message.totalCount);
|
|
3012
|
+
}
|
|
3013
|
+
return obj;
|
|
3014
|
+
},
|
|
3015
|
+
create(base) {
|
|
3016
|
+
return exports.GetFollowingResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3017
|
+
},
|
|
3018
|
+
fromPartial(object) {
|
|
3019
|
+
var _a, _b;
|
|
3020
|
+
const message = createBaseGetFollowingResponse();
|
|
3021
|
+
message.following = ((_a = object.following) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Account.fromPartial(e))) || [];
|
|
3022
|
+
message.totalCount = (_b = object.totalCount) !== null && _b !== void 0 ? _b : 0;
|
|
3023
|
+
return message;
|
|
3024
|
+
},
|
|
3025
|
+
};
|
|
3026
|
+
function createBaseGetAccountPostsRequest() {
|
|
3027
|
+
return { accountId: "", page: 0, pageSize: 0 };
|
|
3028
|
+
}
|
|
3029
|
+
exports.GetAccountPostsRequest = {
|
|
3030
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3031
|
+
if (message.accountId !== "") {
|
|
3032
|
+
writer.uint32(10).string(message.accountId);
|
|
3033
|
+
}
|
|
3034
|
+
if (message.page !== 0) {
|
|
3035
|
+
writer.uint32(16).int32(message.page);
|
|
3036
|
+
}
|
|
3037
|
+
if (message.pageSize !== 0) {
|
|
3038
|
+
writer.uint32(24).int32(message.pageSize);
|
|
3039
|
+
}
|
|
3040
|
+
return writer;
|
|
3041
|
+
},
|
|
3042
|
+
decode(input, length) {
|
|
3043
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3044
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3045
|
+
const message = createBaseGetAccountPostsRequest();
|
|
3046
|
+
while (reader.pos < end) {
|
|
3047
|
+
const tag = reader.uint32();
|
|
3048
|
+
switch (tag >>> 3) {
|
|
3049
|
+
case 1: {
|
|
3050
|
+
if (tag !== 10) {
|
|
3051
|
+
break;
|
|
3052
|
+
}
|
|
3053
|
+
message.accountId = reader.string();
|
|
3054
|
+
continue;
|
|
3055
|
+
}
|
|
3056
|
+
case 2: {
|
|
3057
|
+
if (tag !== 16) {
|
|
3058
|
+
break;
|
|
3059
|
+
}
|
|
3060
|
+
message.page = reader.int32();
|
|
3061
|
+
continue;
|
|
3062
|
+
}
|
|
3063
|
+
case 3: {
|
|
3064
|
+
if (tag !== 24) {
|
|
3065
|
+
break;
|
|
3066
|
+
}
|
|
3067
|
+
message.pageSize = reader.int32();
|
|
3068
|
+
continue;
|
|
3069
|
+
}
|
|
3070
|
+
}
|
|
3071
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3072
|
+
break;
|
|
3073
|
+
}
|
|
3074
|
+
reader.skip(tag & 7);
|
|
3075
|
+
}
|
|
3076
|
+
return message;
|
|
3077
|
+
},
|
|
3078
|
+
fromJSON(object) {
|
|
3079
|
+
return {
|
|
3080
|
+
accountId: isSet(object.accountId) ? globalThis.String(object.accountId) : "",
|
|
3081
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
3082
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
3083
|
+
};
|
|
3084
|
+
},
|
|
3085
|
+
toJSON(message) {
|
|
3086
|
+
const obj = {};
|
|
3087
|
+
if (message.accountId !== "") {
|
|
3088
|
+
obj.accountId = message.accountId;
|
|
3089
|
+
}
|
|
3090
|
+
if (message.page !== 0) {
|
|
3091
|
+
obj.page = Math.round(message.page);
|
|
3092
|
+
}
|
|
3093
|
+
if (message.pageSize !== 0) {
|
|
3094
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
3095
|
+
}
|
|
3096
|
+
return obj;
|
|
3097
|
+
},
|
|
3098
|
+
create(base) {
|
|
3099
|
+
return exports.GetAccountPostsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3100
|
+
},
|
|
3101
|
+
fromPartial(object) {
|
|
3102
|
+
var _a, _b, _c;
|
|
3103
|
+
const message = createBaseGetAccountPostsRequest();
|
|
3104
|
+
message.accountId = (_a = object.accountId) !== null && _a !== void 0 ? _a : "";
|
|
3105
|
+
message.page = (_b = object.page) !== null && _b !== void 0 ? _b : 0;
|
|
3106
|
+
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
|
|
3107
|
+
return message;
|
|
3108
|
+
},
|
|
3109
|
+
};
|
|
3110
|
+
function createBaseGetAccountPostsResponse() {
|
|
3111
|
+
return { posts: [], totalCount: 0, page: 0, pageSize: 0 };
|
|
3112
|
+
}
|
|
3113
|
+
exports.GetAccountPostsResponse = {
|
|
3114
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3115
|
+
for (const v of message.posts) {
|
|
3116
|
+
posts_1.Post.encode(v, writer.uint32(10).fork()).join();
|
|
3117
|
+
}
|
|
3118
|
+
if (message.totalCount !== 0) {
|
|
3119
|
+
writer.uint32(16).int64(message.totalCount);
|
|
3120
|
+
}
|
|
3121
|
+
if (message.page !== 0) {
|
|
3122
|
+
writer.uint32(24).int32(message.page);
|
|
3123
|
+
}
|
|
3124
|
+
if (message.pageSize !== 0) {
|
|
3125
|
+
writer.uint32(32).int32(message.pageSize);
|
|
3126
|
+
}
|
|
3127
|
+
return writer;
|
|
3128
|
+
},
|
|
3129
|
+
decode(input, length) {
|
|
3130
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3131
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3132
|
+
const message = createBaseGetAccountPostsResponse();
|
|
3133
|
+
while (reader.pos < end) {
|
|
3134
|
+
const tag = reader.uint32();
|
|
3135
|
+
switch (tag >>> 3) {
|
|
3136
|
+
case 1: {
|
|
3137
|
+
if (tag !== 10) {
|
|
3138
|
+
break;
|
|
3139
|
+
}
|
|
3140
|
+
message.posts.push(posts_1.Post.decode(reader, reader.uint32()));
|
|
3141
|
+
continue;
|
|
3142
|
+
}
|
|
3143
|
+
case 2: {
|
|
3144
|
+
if (tag !== 16) {
|
|
3145
|
+
break;
|
|
3146
|
+
}
|
|
3147
|
+
message.totalCount = longToNumber(reader.int64());
|
|
3148
|
+
continue;
|
|
3149
|
+
}
|
|
3150
|
+
case 3: {
|
|
3151
|
+
if (tag !== 24) {
|
|
3152
|
+
break;
|
|
3153
|
+
}
|
|
3154
|
+
message.page = reader.int32();
|
|
3155
|
+
continue;
|
|
3156
|
+
}
|
|
3157
|
+
case 4: {
|
|
3158
|
+
if (tag !== 32) {
|
|
3159
|
+
break;
|
|
3160
|
+
}
|
|
3161
|
+
message.pageSize = reader.int32();
|
|
3162
|
+
continue;
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3166
|
+
break;
|
|
3167
|
+
}
|
|
3168
|
+
reader.skip(tag & 7);
|
|
3169
|
+
}
|
|
3170
|
+
return message;
|
|
3171
|
+
},
|
|
3172
|
+
fromJSON(object) {
|
|
3173
|
+
return {
|
|
3174
|
+
posts: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.posts) ? object.posts.map((e) => posts_1.Post.fromJSON(e)) : [],
|
|
3175
|
+
totalCount: isSet(object.totalCount) ? globalThis.Number(object.totalCount) : 0,
|
|
3176
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
3177
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
3178
|
+
};
|
|
3179
|
+
},
|
|
3180
|
+
toJSON(message) {
|
|
3181
|
+
var _a;
|
|
3182
|
+
const obj = {};
|
|
3183
|
+
if ((_a = message.posts) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3184
|
+
obj.posts = message.posts.map((e) => posts_1.Post.toJSON(e));
|
|
3185
|
+
}
|
|
3186
|
+
if (message.totalCount !== 0) {
|
|
3187
|
+
obj.totalCount = Math.round(message.totalCount);
|
|
3188
|
+
}
|
|
3189
|
+
if (message.page !== 0) {
|
|
3190
|
+
obj.page = Math.round(message.page);
|
|
3191
|
+
}
|
|
3192
|
+
if (message.pageSize !== 0) {
|
|
3193
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
3194
|
+
}
|
|
3195
|
+
return obj;
|
|
3196
|
+
},
|
|
3197
|
+
create(base) {
|
|
3198
|
+
return exports.GetAccountPostsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3199
|
+
},
|
|
3200
|
+
fromPartial(object) {
|
|
3201
|
+
var _a, _b, _c, _d;
|
|
3202
|
+
const message = createBaseGetAccountPostsResponse();
|
|
3203
|
+
message.posts = ((_a = object.posts) === null || _a === void 0 ? void 0 : _a.map((e) => posts_1.Post.fromPartial(e))) || [];
|
|
3204
|
+
message.totalCount = (_b = object.totalCount) !== null && _b !== void 0 ? _b : 0;
|
|
3205
|
+
message.page = (_c = object.page) !== null && _c !== void 0 ? _c : 0;
|
|
3206
|
+
message.pageSize = (_d = object.pageSize) !== null && _d !== void 0 ? _d : 0;
|
|
3207
|
+
return message;
|
|
3208
|
+
},
|
|
3209
|
+
};
|
|
3210
|
+
function createBaseGetAccountRepliesRequest() {
|
|
3211
|
+
return { accountId: "", page: 0, pageSize: 0 };
|
|
3212
|
+
}
|
|
3213
|
+
exports.GetAccountRepliesRequest = {
|
|
3214
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3215
|
+
if (message.accountId !== "") {
|
|
3216
|
+
writer.uint32(10).string(message.accountId);
|
|
3217
|
+
}
|
|
3218
|
+
if (message.page !== 0) {
|
|
3219
|
+
writer.uint32(16).int32(message.page);
|
|
3220
|
+
}
|
|
3221
|
+
if (message.pageSize !== 0) {
|
|
3222
|
+
writer.uint32(24).int32(message.pageSize);
|
|
3223
|
+
}
|
|
3224
|
+
return writer;
|
|
3225
|
+
},
|
|
3226
|
+
decode(input, length) {
|
|
3227
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3228
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3229
|
+
const message = createBaseGetAccountRepliesRequest();
|
|
3230
|
+
while (reader.pos < end) {
|
|
3231
|
+
const tag = reader.uint32();
|
|
3232
|
+
switch (tag >>> 3) {
|
|
3233
|
+
case 1: {
|
|
3234
|
+
if (tag !== 10) {
|
|
3235
|
+
break;
|
|
3236
|
+
}
|
|
3237
|
+
message.accountId = reader.string();
|
|
3238
|
+
continue;
|
|
3239
|
+
}
|
|
3240
|
+
case 2: {
|
|
3241
|
+
if (tag !== 16) {
|
|
3242
|
+
break;
|
|
3243
|
+
}
|
|
3244
|
+
message.page = reader.int32();
|
|
3245
|
+
continue;
|
|
3246
|
+
}
|
|
3247
|
+
case 3: {
|
|
3248
|
+
if (tag !== 24) {
|
|
3249
|
+
break;
|
|
3250
|
+
}
|
|
3251
|
+
message.pageSize = reader.int32();
|
|
3252
|
+
continue;
|
|
3253
|
+
}
|
|
3254
|
+
}
|
|
3255
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3256
|
+
break;
|
|
3257
|
+
}
|
|
3258
|
+
reader.skip(tag & 7);
|
|
3259
|
+
}
|
|
3260
|
+
return message;
|
|
3261
|
+
},
|
|
3262
|
+
fromJSON(object) {
|
|
3263
|
+
return {
|
|
3264
|
+
accountId: isSet(object.accountId) ? globalThis.String(object.accountId) : "",
|
|
3265
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
3266
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
3267
|
+
};
|
|
3268
|
+
},
|
|
3269
|
+
toJSON(message) {
|
|
3270
|
+
const obj = {};
|
|
3271
|
+
if (message.accountId !== "") {
|
|
3272
|
+
obj.accountId = message.accountId;
|
|
3273
|
+
}
|
|
3274
|
+
if (message.page !== 0) {
|
|
3275
|
+
obj.page = Math.round(message.page);
|
|
3276
|
+
}
|
|
3277
|
+
if (message.pageSize !== 0) {
|
|
3278
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
3279
|
+
}
|
|
3280
|
+
return obj;
|
|
3281
|
+
},
|
|
3282
|
+
create(base) {
|
|
3283
|
+
return exports.GetAccountRepliesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3284
|
+
},
|
|
3285
|
+
fromPartial(object) {
|
|
3286
|
+
var _a, _b, _c;
|
|
3287
|
+
const message = createBaseGetAccountRepliesRequest();
|
|
3288
|
+
message.accountId = (_a = object.accountId) !== null && _a !== void 0 ? _a : "";
|
|
3289
|
+
message.page = (_b = object.page) !== null && _b !== void 0 ? _b : 0;
|
|
3290
|
+
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
|
|
3291
|
+
return message;
|
|
3292
|
+
},
|
|
3293
|
+
};
|
|
3294
|
+
function createBaseGetAccountRepliesResponse() {
|
|
3295
|
+
return { replies: [], totalCount: 0, page: 0, pageSize: 0 };
|
|
3296
|
+
}
|
|
3297
|
+
exports.GetAccountRepliesResponse = {
|
|
3298
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3299
|
+
for (const v of message.replies) {
|
|
3300
|
+
posts_1.Post.encode(v, writer.uint32(10).fork()).join();
|
|
3301
|
+
}
|
|
3302
|
+
if (message.totalCount !== 0) {
|
|
3303
|
+
writer.uint32(16).int64(message.totalCount);
|
|
3304
|
+
}
|
|
3305
|
+
if (message.page !== 0) {
|
|
3306
|
+
writer.uint32(24).int32(message.page);
|
|
3307
|
+
}
|
|
3308
|
+
if (message.pageSize !== 0) {
|
|
3309
|
+
writer.uint32(32).int32(message.pageSize);
|
|
3310
|
+
}
|
|
3311
|
+
return writer;
|
|
3312
|
+
},
|
|
3313
|
+
decode(input, length) {
|
|
3314
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3315
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3316
|
+
const message = createBaseGetAccountRepliesResponse();
|
|
3317
|
+
while (reader.pos < end) {
|
|
3318
|
+
const tag = reader.uint32();
|
|
3319
|
+
switch (tag >>> 3) {
|
|
3320
|
+
case 1: {
|
|
3321
|
+
if (tag !== 10) {
|
|
3322
|
+
break;
|
|
3323
|
+
}
|
|
3324
|
+
message.replies.push(posts_1.Post.decode(reader, reader.uint32()));
|
|
3325
|
+
continue;
|
|
3326
|
+
}
|
|
3327
|
+
case 2: {
|
|
3328
|
+
if (tag !== 16) {
|
|
3329
|
+
break;
|
|
3330
|
+
}
|
|
3331
|
+
message.totalCount = longToNumber(reader.int64());
|
|
3332
|
+
continue;
|
|
3333
|
+
}
|
|
3334
|
+
case 3: {
|
|
3335
|
+
if (tag !== 24) {
|
|
3336
|
+
break;
|
|
3337
|
+
}
|
|
3338
|
+
message.page = reader.int32();
|
|
3339
|
+
continue;
|
|
3340
|
+
}
|
|
3341
|
+
case 4: {
|
|
3342
|
+
if (tag !== 32) {
|
|
3343
|
+
break;
|
|
3344
|
+
}
|
|
3345
|
+
message.pageSize = reader.int32();
|
|
3346
|
+
continue;
|
|
3347
|
+
}
|
|
3348
|
+
}
|
|
3349
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3350
|
+
break;
|
|
3351
|
+
}
|
|
3352
|
+
reader.skip(tag & 7);
|
|
3353
|
+
}
|
|
3354
|
+
return message;
|
|
3355
|
+
},
|
|
3356
|
+
fromJSON(object) {
|
|
3357
|
+
return {
|
|
3358
|
+
replies: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.replies) ? object.replies.map((e) => posts_1.Post.fromJSON(e)) : [],
|
|
3359
|
+
totalCount: isSet(object.totalCount) ? globalThis.Number(object.totalCount) : 0,
|
|
3360
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
3361
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
3362
|
+
};
|
|
3363
|
+
},
|
|
3364
|
+
toJSON(message) {
|
|
3365
|
+
var _a;
|
|
3366
|
+
const obj = {};
|
|
3367
|
+
if ((_a = message.replies) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3368
|
+
obj.replies = message.replies.map((e) => posts_1.Post.toJSON(e));
|
|
3369
|
+
}
|
|
3370
|
+
if (message.totalCount !== 0) {
|
|
3371
|
+
obj.totalCount = Math.round(message.totalCount);
|
|
3372
|
+
}
|
|
3373
|
+
if (message.page !== 0) {
|
|
3374
|
+
obj.page = Math.round(message.page);
|
|
3375
|
+
}
|
|
3376
|
+
if (message.pageSize !== 0) {
|
|
3377
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
3378
|
+
}
|
|
3379
|
+
return obj;
|
|
3380
|
+
},
|
|
3381
|
+
create(base) {
|
|
3382
|
+
return exports.GetAccountRepliesResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3383
|
+
},
|
|
3384
|
+
fromPartial(object) {
|
|
3385
|
+
var _a, _b, _c, _d;
|
|
3386
|
+
const message = createBaseGetAccountRepliesResponse();
|
|
3387
|
+
message.replies = ((_a = object.replies) === null || _a === void 0 ? void 0 : _a.map((e) => posts_1.Post.fromPartial(e))) || [];
|
|
3388
|
+
message.totalCount = (_b = object.totalCount) !== null && _b !== void 0 ? _b : 0;
|
|
3389
|
+
message.page = (_c = object.page) !== null && _c !== void 0 ? _c : 0;
|
|
3390
|
+
message.pageSize = (_d = object.pageSize) !== null && _d !== void 0 ? _d : 0;
|
|
3391
|
+
return message;
|
|
3392
|
+
},
|
|
3393
|
+
};
|
|
3394
|
+
function createBaseGetAccountMediaRequest() {
|
|
3395
|
+
return { accountId: "", page: 0, pageSize: 0 };
|
|
3396
|
+
}
|
|
3397
|
+
exports.GetAccountMediaRequest = {
|
|
3398
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3399
|
+
if (message.accountId !== "") {
|
|
3400
|
+
writer.uint32(10).string(message.accountId);
|
|
3401
|
+
}
|
|
3402
|
+
if (message.page !== 0) {
|
|
3403
|
+
writer.uint32(16).int32(message.page);
|
|
3404
|
+
}
|
|
3405
|
+
if (message.pageSize !== 0) {
|
|
3406
|
+
writer.uint32(24).int32(message.pageSize);
|
|
3407
|
+
}
|
|
3408
|
+
return writer;
|
|
3409
|
+
},
|
|
3410
|
+
decode(input, length) {
|
|
3411
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3412
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3413
|
+
const message = createBaseGetAccountMediaRequest();
|
|
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.accountId = reader.string();
|
|
3422
|
+
continue;
|
|
3423
|
+
}
|
|
3424
|
+
case 2: {
|
|
3425
|
+
if (tag !== 16) {
|
|
3426
|
+
break;
|
|
3427
|
+
}
|
|
3428
|
+
message.page = reader.int32();
|
|
3429
|
+
continue;
|
|
3430
|
+
}
|
|
3431
|
+
case 3: {
|
|
3432
|
+
if (tag !== 24) {
|
|
3433
|
+
break;
|
|
3434
|
+
}
|
|
3435
|
+
message.pageSize = reader.int32();
|
|
3436
|
+
continue;
|
|
3437
|
+
}
|
|
3438
|
+
}
|
|
3439
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3440
|
+
break;
|
|
3441
|
+
}
|
|
3442
|
+
reader.skip(tag & 7);
|
|
3443
|
+
}
|
|
3444
|
+
return message;
|
|
3445
|
+
},
|
|
3446
|
+
fromJSON(object) {
|
|
3447
|
+
return {
|
|
3448
|
+
accountId: isSet(object.accountId) ? globalThis.String(object.accountId) : "",
|
|
3449
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
3450
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
3451
|
+
};
|
|
3452
|
+
},
|
|
3453
|
+
toJSON(message) {
|
|
3454
|
+
const obj = {};
|
|
3455
|
+
if (message.accountId !== "") {
|
|
3456
|
+
obj.accountId = message.accountId;
|
|
3457
|
+
}
|
|
3458
|
+
if (message.page !== 0) {
|
|
3459
|
+
obj.page = Math.round(message.page);
|
|
3460
|
+
}
|
|
3461
|
+
if (message.pageSize !== 0) {
|
|
3462
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
3463
|
+
}
|
|
3464
|
+
return obj;
|
|
3465
|
+
},
|
|
3466
|
+
create(base) {
|
|
3467
|
+
return exports.GetAccountMediaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3468
|
+
},
|
|
3469
|
+
fromPartial(object) {
|
|
3470
|
+
var _a, _b, _c;
|
|
3471
|
+
const message = createBaseGetAccountMediaRequest();
|
|
3472
|
+
message.accountId = (_a = object.accountId) !== null && _a !== void 0 ? _a : "";
|
|
3473
|
+
message.page = (_b = object.page) !== null && _b !== void 0 ? _b : 0;
|
|
3474
|
+
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
|
|
3475
|
+
return message;
|
|
3476
|
+
},
|
|
3477
|
+
};
|
|
3478
|
+
function createBaseGetAccountMediaResponse() {
|
|
3479
|
+
return { media: [], totalCount: 0, page: 0, pageSize: 0 };
|
|
3480
|
+
}
|
|
3481
|
+
exports.GetAccountMediaResponse = {
|
|
3482
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3483
|
+
for (const v of message.media) {
|
|
3484
|
+
posts_1.Post.encode(v, writer.uint32(10).fork()).join();
|
|
3485
|
+
}
|
|
3486
|
+
if (message.totalCount !== 0) {
|
|
3487
|
+
writer.uint32(16).int64(message.totalCount);
|
|
3488
|
+
}
|
|
3489
|
+
if (message.page !== 0) {
|
|
3490
|
+
writer.uint32(24).int32(message.page);
|
|
3491
|
+
}
|
|
3492
|
+
if (message.pageSize !== 0) {
|
|
3493
|
+
writer.uint32(32).int32(message.pageSize);
|
|
3494
|
+
}
|
|
3495
|
+
return writer;
|
|
3496
|
+
},
|
|
3497
|
+
decode(input, length) {
|
|
3498
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3499
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3500
|
+
const message = createBaseGetAccountMediaResponse();
|
|
3501
|
+
while (reader.pos < end) {
|
|
3502
|
+
const tag = reader.uint32();
|
|
3503
|
+
switch (tag >>> 3) {
|
|
3504
|
+
case 1: {
|
|
3505
|
+
if (tag !== 10) {
|
|
3506
|
+
break;
|
|
3507
|
+
}
|
|
3508
|
+
message.media.push(posts_1.Post.decode(reader, reader.uint32()));
|
|
3509
|
+
continue;
|
|
3510
|
+
}
|
|
3511
|
+
case 2: {
|
|
3512
|
+
if (tag !== 16) {
|
|
3513
|
+
break;
|
|
3514
|
+
}
|
|
3515
|
+
message.totalCount = longToNumber(reader.int64());
|
|
3516
|
+
continue;
|
|
3517
|
+
}
|
|
3518
|
+
case 3: {
|
|
3519
|
+
if (tag !== 24) {
|
|
3520
|
+
break;
|
|
3521
|
+
}
|
|
3522
|
+
message.page = reader.int32();
|
|
3523
|
+
continue;
|
|
3524
|
+
}
|
|
3525
|
+
case 4: {
|
|
3526
|
+
if (tag !== 32) {
|
|
3527
|
+
break;
|
|
3528
|
+
}
|
|
3529
|
+
message.pageSize = reader.int32();
|
|
3530
|
+
continue;
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3534
|
+
break;
|
|
3535
|
+
}
|
|
3536
|
+
reader.skip(tag & 7);
|
|
3537
|
+
}
|
|
3538
|
+
return message;
|
|
3539
|
+
},
|
|
3540
|
+
fromJSON(object) {
|
|
3541
|
+
return {
|
|
3542
|
+
media: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.media) ? object.media.map((e) => posts_1.Post.fromJSON(e)) : [],
|
|
3543
|
+
totalCount: isSet(object.totalCount) ? globalThis.Number(object.totalCount) : 0,
|
|
3544
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
3545
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
3546
|
+
};
|
|
3547
|
+
},
|
|
3548
|
+
toJSON(message) {
|
|
3549
|
+
var _a;
|
|
3550
|
+
const obj = {};
|
|
3551
|
+
if ((_a = message.media) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3552
|
+
obj.media = message.media.map((e) => posts_1.Post.toJSON(e));
|
|
3553
|
+
}
|
|
3554
|
+
if (message.totalCount !== 0) {
|
|
3555
|
+
obj.totalCount = Math.round(message.totalCount);
|
|
3556
|
+
}
|
|
3557
|
+
if (message.page !== 0) {
|
|
3558
|
+
obj.page = Math.round(message.page);
|
|
3559
|
+
}
|
|
3560
|
+
if (message.pageSize !== 0) {
|
|
3561
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
3562
|
+
}
|
|
3563
|
+
return obj;
|
|
3564
|
+
},
|
|
3565
|
+
create(base) {
|
|
3566
|
+
return exports.GetAccountMediaResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3567
|
+
},
|
|
3568
|
+
fromPartial(object) {
|
|
3569
|
+
var _a, _b, _c, _d;
|
|
3570
|
+
const message = createBaseGetAccountMediaResponse();
|
|
3571
|
+
message.media = ((_a = object.media) === null || _a === void 0 ? void 0 : _a.map((e) => posts_1.Post.fromPartial(e))) || [];
|
|
3572
|
+
message.totalCount = (_b = object.totalCount) !== null && _b !== void 0 ? _b : 0;
|
|
3573
|
+
message.page = (_c = object.page) !== null && _c !== void 0 ? _c : 0;
|
|
3574
|
+
message.pageSize = (_d = object.pageSize) !== null && _d !== void 0 ? _d : 0;
|
|
3575
|
+
return message;
|
|
3576
|
+
},
|
|
3577
|
+
};
|
|
3578
|
+
function createBaseGetAccountLikesRequest() {
|
|
3579
|
+
return { accountId: "", page: 0, pageSize: 0 };
|
|
3580
|
+
}
|
|
3581
|
+
exports.GetAccountLikesRequest = {
|
|
3582
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3583
|
+
if (message.accountId !== "") {
|
|
3584
|
+
writer.uint32(10).string(message.accountId);
|
|
3585
|
+
}
|
|
3586
|
+
if (message.page !== 0) {
|
|
3587
|
+
writer.uint32(16).int32(message.page);
|
|
3588
|
+
}
|
|
3589
|
+
if (message.pageSize !== 0) {
|
|
3590
|
+
writer.uint32(24).int32(message.pageSize);
|
|
3591
|
+
}
|
|
3592
|
+
return writer;
|
|
3593
|
+
},
|
|
3594
|
+
decode(input, length) {
|
|
3595
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3596
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3597
|
+
const message = createBaseGetAccountLikesRequest();
|
|
3598
|
+
while (reader.pos < end) {
|
|
3599
|
+
const tag = reader.uint32();
|
|
3600
|
+
switch (tag >>> 3) {
|
|
3601
|
+
case 1: {
|
|
3602
|
+
if (tag !== 10) {
|
|
3603
|
+
break;
|
|
3604
|
+
}
|
|
3605
|
+
message.accountId = reader.string();
|
|
3606
|
+
continue;
|
|
3607
|
+
}
|
|
3608
|
+
case 2: {
|
|
3609
|
+
if (tag !== 16) {
|
|
3610
|
+
break;
|
|
3611
|
+
}
|
|
3612
|
+
message.page = reader.int32();
|
|
3613
|
+
continue;
|
|
3614
|
+
}
|
|
3615
|
+
case 3: {
|
|
3616
|
+
if (tag !== 24) {
|
|
3617
|
+
break;
|
|
3618
|
+
}
|
|
3619
|
+
message.pageSize = reader.int32();
|
|
3620
|
+
continue;
|
|
3621
|
+
}
|
|
3622
|
+
}
|
|
3623
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3624
|
+
break;
|
|
3625
|
+
}
|
|
3626
|
+
reader.skip(tag & 7);
|
|
3627
|
+
}
|
|
3628
|
+
return message;
|
|
3629
|
+
},
|
|
3630
|
+
fromJSON(object) {
|
|
3631
|
+
return {
|
|
3632
|
+
accountId: isSet(object.accountId) ? globalThis.String(object.accountId) : "",
|
|
3633
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
3634
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
3635
|
+
};
|
|
3636
|
+
},
|
|
3637
|
+
toJSON(message) {
|
|
3638
|
+
const obj = {};
|
|
3639
|
+
if (message.accountId !== "") {
|
|
3640
|
+
obj.accountId = message.accountId;
|
|
3641
|
+
}
|
|
3642
|
+
if (message.page !== 0) {
|
|
3643
|
+
obj.page = Math.round(message.page);
|
|
3644
|
+
}
|
|
3645
|
+
if (message.pageSize !== 0) {
|
|
3646
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
3647
|
+
}
|
|
3648
|
+
return obj;
|
|
3649
|
+
},
|
|
3650
|
+
create(base) {
|
|
3651
|
+
return exports.GetAccountLikesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3652
|
+
},
|
|
3653
|
+
fromPartial(object) {
|
|
3654
|
+
var _a, _b, _c;
|
|
3655
|
+
const message = createBaseGetAccountLikesRequest();
|
|
3656
|
+
message.accountId = (_a = object.accountId) !== null && _a !== void 0 ? _a : "";
|
|
3657
|
+
message.page = (_b = object.page) !== null && _b !== void 0 ? _b : 0;
|
|
3658
|
+
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
|
|
3659
|
+
return message;
|
|
3660
|
+
},
|
|
3661
|
+
};
|
|
3662
|
+
function createBaseGetAccountLikesResponse() {
|
|
3663
|
+
return { likes: [], totalCount: 0, page: 0, pageSize: 0 };
|
|
3664
|
+
}
|
|
3665
|
+
exports.GetAccountLikesResponse = {
|
|
3666
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3667
|
+
for (const v of message.likes) {
|
|
3668
|
+
posts_1.Post.encode(v, writer.uint32(10).fork()).join();
|
|
3669
|
+
}
|
|
3670
|
+
if (message.totalCount !== 0) {
|
|
3671
|
+
writer.uint32(16).int64(message.totalCount);
|
|
3672
|
+
}
|
|
3673
|
+
if (message.page !== 0) {
|
|
3674
|
+
writer.uint32(24).int32(message.page);
|
|
3675
|
+
}
|
|
3676
|
+
if (message.pageSize !== 0) {
|
|
3677
|
+
writer.uint32(32).int32(message.pageSize);
|
|
3678
|
+
}
|
|
3679
|
+
return writer;
|
|
3680
|
+
},
|
|
3681
|
+
decode(input, length) {
|
|
3682
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3683
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3684
|
+
const message = createBaseGetAccountLikesResponse();
|
|
3685
|
+
while (reader.pos < end) {
|
|
3686
|
+
const tag = reader.uint32();
|
|
3687
|
+
switch (tag >>> 3) {
|
|
3688
|
+
case 1: {
|
|
3689
|
+
if (tag !== 10) {
|
|
3690
|
+
break;
|
|
3691
|
+
}
|
|
3692
|
+
message.likes.push(posts_1.Post.decode(reader, reader.uint32()));
|
|
3693
|
+
continue;
|
|
3694
|
+
}
|
|
3695
|
+
case 2: {
|
|
3696
|
+
if (tag !== 16) {
|
|
3697
|
+
break;
|
|
3698
|
+
}
|
|
3699
|
+
message.totalCount = longToNumber(reader.int64());
|
|
3700
|
+
continue;
|
|
3701
|
+
}
|
|
3702
|
+
case 3: {
|
|
3703
|
+
if (tag !== 24) {
|
|
3704
|
+
break;
|
|
3705
|
+
}
|
|
3706
|
+
message.page = reader.int32();
|
|
3707
|
+
continue;
|
|
3708
|
+
}
|
|
3709
|
+
case 4: {
|
|
3710
|
+
if (tag !== 32) {
|
|
3711
|
+
break;
|
|
3712
|
+
}
|
|
3713
|
+
message.pageSize = reader.int32();
|
|
3714
|
+
continue;
|
|
3715
|
+
}
|
|
3716
|
+
}
|
|
3717
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3718
|
+
break;
|
|
3719
|
+
}
|
|
3720
|
+
reader.skip(tag & 7);
|
|
3721
|
+
}
|
|
3722
|
+
return message;
|
|
3723
|
+
},
|
|
3724
|
+
fromJSON(object) {
|
|
3725
|
+
return {
|
|
3726
|
+
likes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.likes) ? object.likes.map((e) => posts_1.Post.fromJSON(e)) : [],
|
|
3727
|
+
totalCount: isSet(object.totalCount) ? globalThis.Number(object.totalCount) : 0,
|
|
3728
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
3729
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
3730
|
+
};
|
|
3731
|
+
},
|
|
3732
|
+
toJSON(message) {
|
|
3733
|
+
var _a;
|
|
3734
|
+
const obj = {};
|
|
3735
|
+
if ((_a = message.likes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3736
|
+
obj.likes = message.likes.map((e) => posts_1.Post.toJSON(e));
|
|
3737
|
+
}
|
|
3738
|
+
if (message.totalCount !== 0) {
|
|
3739
|
+
obj.totalCount = Math.round(message.totalCount);
|
|
3740
|
+
}
|
|
3741
|
+
if (message.page !== 0) {
|
|
3742
|
+
obj.page = Math.round(message.page);
|
|
3743
|
+
}
|
|
3744
|
+
if (message.pageSize !== 0) {
|
|
3745
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
3746
|
+
}
|
|
3747
|
+
return obj;
|
|
3748
|
+
},
|
|
3749
|
+
create(base) {
|
|
3750
|
+
return exports.GetAccountLikesResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3751
|
+
},
|
|
3752
|
+
fromPartial(object) {
|
|
3753
|
+
var _a, _b, _c, _d;
|
|
3754
|
+
const message = createBaseGetAccountLikesResponse();
|
|
3755
|
+
message.likes = ((_a = object.likes) === null || _a === void 0 ? void 0 : _a.map((e) => posts_1.Post.fromPartial(e))) || [];
|
|
3756
|
+
message.totalCount = (_b = object.totalCount) !== null && _b !== void 0 ? _b : 0;
|
|
3757
|
+
message.page = (_c = object.page) !== null && _c !== void 0 ? _c : 0;
|
|
3758
|
+
message.pageSize = (_d = object.pageSize) !== null && _d !== void 0 ? _d : 0;
|
|
3759
|
+
return message;
|
|
3760
|
+
},
|
|
3761
|
+
};
|
|
3762
|
+
function createBaseGetAccountRepostsRequest() {
|
|
3763
|
+
return { accountId: "", page: 0, pageSize: 0 };
|
|
3764
|
+
}
|
|
3765
|
+
exports.GetAccountRepostsRequest = {
|
|
3766
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3767
|
+
if (message.accountId !== "") {
|
|
3768
|
+
writer.uint32(10).string(message.accountId);
|
|
3769
|
+
}
|
|
3770
|
+
if (message.page !== 0) {
|
|
3771
|
+
writer.uint32(16).int32(message.page);
|
|
3772
|
+
}
|
|
3773
|
+
if (message.pageSize !== 0) {
|
|
3774
|
+
writer.uint32(24).int32(message.pageSize);
|
|
3775
|
+
}
|
|
3776
|
+
return writer;
|
|
3777
|
+
},
|
|
3778
|
+
decode(input, length) {
|
|
3779
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3780
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3781
|
+
const message = createBaseGetAccountRepostsRequest();
|
|
3782
|
+
while (reader.pos < end) {
|
|
3783
|
+
const tag = reader.uint32();
|
|
3784
|
+
switch (tag >>> 3) {
|
|
3785
|
+
case 1: {
|
|
3786
|
+
if (tag !== 10) {
|
|
3787
|
+
break;
|
|
3788
|
+
}
|
|
3789
|
+
message.accountId = reader.string();
|
|
3790
|
+
continue;
|
|
3791
|
+
}
|
|
3792
|
+
case 2: {
|
|
3793
|
+
if (tag !== 16) {
|
|
3794
|
+
break;
|
|
3795
|
+
}
|
|
3796
|
+
message.page = reader.int32();
|
|
3797
|
+
continue;
|
|
3798
|
+
}
|
|
3799
|
+
case 3: {
|
|
3800
|
+
if (tag !== 24) {
|
|
3801
|
+
break;
|
|
3802
|
+
}
|
|
3803
|
+
message.pageSize = reader.int32();
|
|
3804
|
+
continue;
|
|
3805
|
+
}
|
|
3806
|
+
}
|
|
3807
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3808
|
+
break;
|
|
3809
|
+
}
|
|
3810
|
+
reader.skip(tag & 7);
|
|
3811
|
+
}
|
|
3812
|
+
return message;
|
|
3813
|
+
},
|
|
3814
|
+
fromJSON(object) {
|
|
3815
|
+
return {
|
|
3816
|
+
accountId: isSet(object.accountId) ? globalThis.String(object.accountId) : "",
|
|
3817
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
3818
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
3819
|
+
};
|
|
3820
|
+
},
|
|
3821
|
+
toJSON(message) {
|
|
3822
|
+
const obj = {};
|
|
3823
|
+
if (message.accountId !== "") {
|
|
3824
|
+
obj.accountId = message.accountId;
|
|
3825
|
+
}
|
|
3826
|
+
if (message.page !== 0) {
|
|
3827
|
+
obj.page = Math.round(message.page);
|
|
3828
|
+
}
|
|
3829
|
+
if (message.pageSize !== 0) {
|
|
3830
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
3831
|
+
}
|
|
3832
|
+
return obj;
|
|
3833
|
+
},
|
|
3834
|
+
create(base) {
|
|
3835
|
+
return exports.GetAccountRepostsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3836
|
+
},
|
|
3837
|
+
fromPartial(object) {
|
|
3838
|
+
var _a, _b, _c;
|
|
3839
|
+
const message = createBaseGetAccountRepostsRequest();
|
|
3840
|
+
message.accountId = (_a = object.accountId) !== null && _a !== void 0 ? _a : "";
|
|
3841
|
+
message.page = (_b = object.page) !== null && _b !== void 0 ? _b : 0;
|
|
3842
|
+
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
|
|
3843
|
+
return message;
|
|
3844
|
+
},
|
|
3845
|
+
};
|
|
3846
|
+
function createBaseGetAccountRepostsResponse() {
|
|
3847
|
+
return { reposts: [], totalCount: 0, page: 0, pageSize: 0 };
|
|
3848
|
+
}
|
|
3849
|
+
exports.GetAccountRepostsResponse = {
|
|
3850
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3851
|
+
for (const v of message.reposts) {
|
|
3852
|
+
posts_1.Post.encode(v, writer.uint32(10).fork()).join();
|
|
3853
|
+
}
|
|
3854
|
+
if (message.totalCount !== 0) {
|
|
3855
|
+
writer.uint32(16).int64(message.totalCount);
|
|
3856
|
+
}
|
|
3857
|
+
if (message.page !== 0) {
|
|
3858
|
+
writer.uint32(24).int32(message.page);
|
|
3859
|
+
}
|
|
3860
|
+
if (message.pageSize !== 0) {
|
|
3861
|
+
writer.uint32(32).int32(message.pageSize);
|
|
3862
|
+
}
|
|
3863
|
+
return writer;
|
|
3864
|
+
},
|
|
3865
|
+
decode(input, length) {
|
|
3866
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3867
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3868
|
+
const message = createBaseGetAccountRepostsResponse();
|
|
3869
|
+
while (reader.pos < end) {
|
|
3870
|
+
const tag = reader.uint32();
|
|
3871
|
+
switch (tag >>> 3) {
|
|
3872
|
+
case 1: {
|
|
3873
|
+
if (tag !== 10) {
|
|
3874
|
+
break;
|
|
3875
|
+
}
|
|
3876
|
+
message.reposts.push(posts_1.Post.decode(reader, reader.uint32()));
|
|
3877
|
+
continue;
|
|
3878
|
+
}
|
|
3879
|
+
case 2: {
|
|
3880
|
+
if (tag !== 16) {
|
|
3881
|
+
break;
|
|
3882
|
+
}
|
|
3883
|
+
message.totalCount = longToNumber(reader.int64());
|
|
3884
|
+
continue;
|
|
3885
|
+
}
|
|
3886
|
+
case 3: {
|
|
3887
|
+
if (tag !== 24) {
|
|
3888
|
+
break;
|
|
3889
|
+
}
|
|
3890
|
+
message.page = reader.int32();
|
|
3891
|
+
continue;
|
|
3892
|
+
}
|
|
3893
|
+
case 4: {
|
|
3894
|
+
if (tag !== 32) {
|
|
3895
|
+
break;
|
|
3896
|
+
}
|
|
3897
|
+
message.pageSize = reader.int32();
|
|
3898
|
+
continue;
|
|
3899
|
+
}
|
|
3900
|
+
}
|
|
3901
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3902
|
+
break;
|
|
3903
|
+
}
|
|
3904
|
+
reader.skip(tag & 7);
|
|
3905
|
+
}
|
|
3906
|
+
return message;
|
|
3907
|
+
},
|
|
3908
|
+
fromJSON(object) {
|
|
3909
|
+
return {
|
|
3910
|
+
reposts: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.reposts) ? object.reposts.map((e) => posts_1.Post.fromJSON(e)) : [],
|
|
3911
|
+
totalCount: isSet(object.totalCount) ? globalThis.Number(object.totalCount) : 0,
|
|
3912
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
3913
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
3914
|
+
};
|
|
3915
|
+
},
|
|
3916
|
+
toJSON(message) {
|
|
3917
|
+
var _a;
|
|
3918
|
+
const obj = {};
|
|
3919
|
+
if ((_a = message.reposts) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3920
|
+
obj.reposts = message.reposts.map((e) => posts_1.Post.toJSON(e));
|
|
3921
|
+
}
|
|
3922
|
+
if (message.totalCount !== 0) {
|
|
3923
|
+
obj.totalCount = Math.round(message.totalCount);
|
|
3924
|
+
}
|
|
3925
|
+
if (message.page !== 0) {
|
|
3926
|
+
obj.page = Math.round(message.page);
|
|
3927
|
+
}
|
|
3928
|
+
if (message.pageSize !== 0) {
|
|
3929
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
3930
|
+
}
|
|
3931
|
+
return obj;
|
|
3932
|
+
},
|
|
3933
|
+
create(base) {
|
|
3934
|
+
return exports.GetAccountRepostsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3935
|
+
},
|
|
3936
|
+
fromPartial(object) {
|
|
3937
|
+
var _a, _b, _c, _d;
|
|
3938
|
+
const message = createBaseGetAccountRepostsResponse();
|
|
3939
|
+
message.reposts = ((_a = object.reposts) === null || _a === void 0 ? void 0 : _a.map((e) => posts_1.Post.fromPartial(e))) || [];
|
|
3940
|
+
message.totalCount = (_b = object.totalCount) !== null && _b !== void 0 ? _b : 0;
|
|
3941
|
+
message.page = (_c = object.page) !== null && _c !== void 0 ? _c : 0;
|
|
3942
|
+
message.pageSize = (_d = object.pageSize) !== null && _d !== void 0 ? _d : 0;
|
|
3943
|
+
return message;
|
|
3944
|
+
},
|
|
3945
|
+
};
|
|
3946
|
+
function createBaseGetStatusRequest() {
|
|
3947
|
+
return {};
|
|
3948
|
+
}
|
|
3949
|
+
exports.GetStatusRequest = {
|
|
3950
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
3951
|
+
return writer;
|
|
3952
|
+
},
|
|
3953
|
+
decode(input, length) {
|
|
3954
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3955
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3956
|
+
const message = createBaseGetStatusRequest();
|
|
3957
|
+
while (reader.pos < end) {
|
|
3958
|
+
const tag = reader.uint32();
|
|
3959
|
+
switch (tag >>> 3) {
|
|
3960
|
+
}
|
|
3961
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3962
|
+
break;
|
|
3963
|
+
}
|
|
3964
|
+
reader.skip(tag & 7);
|
|
3965
|
+
}
|
|
3966
|
+
return message;
|
|
3967
|
+
},
|
|
3968
|
+
fromJSON(_) {
|
|
3969
|
+
return {};
|
|
3970
|
+
},
|
|
3971
|
+
toJSON(_) {
|
|
3972
|
+
const obj = {};
|
|
3973
|
+
return obj;
|
|
3974
|
+
},
|
|
3975
|
+
create(base) {
|
|
3976
|
+
return exports.GetStatusRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3977
|
+
},
|
|
3978
|
+
fromPartial(_) {
|
|
3979
|
+
const message = createBaseGetStatusRequest();
|
|
3980
|
+
return message;
|
|
3981
|
+
},
|
|
3982
|
+
};
|
|
3983
|
+
function createBaseGetStatusResponse() {
|
|
3984
|
+
return { status: "", service: "" };
|
|
3985
|
+
}
|
|
3986
|
+
exports.GetStatusResponse = {
|
|
3987
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3988
|
+
if (message.status !== "") {
|
|
3989
|
+
writer.uint32(10).string(message.status);
|
|
3990
|
+
}
|
|
3991
|
+
if (message.service !== "") {
|
|
3992
|
+
writer.uint32(18).string(message.service);
|
|
3993
|
+
}
|
|
3994
|
+
return writer;
|
|
3995
|
+
},
|
|
3996
|
+
decode(input, length) {
|
|
3997
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3998
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3999
|
+
const message = createBaseGetStatusResponse();
|
|
4000
|
+
while (reader.pos < end) {
|
|
4001
|
+
const tag = reader.uint32();
|
|
4002
|
+
switch (tag >>> 3) {
|
|
4003
|
+
case 1: {
|
|
4004
|
+
if (tag !== 10) {
|
|
4005
|
+
break;
|
|
4006
|
+
}
|
|
4007
|
+
message.status = reader.string();
|
|
4008
|
+
continue;
|
|
4009
|
+
}
|
|
4010
|
+
case 2: {
|
|
4011
|
+
if (tag !== 18) {
|
|
4012
|
+
break;
|
|
4013
|
+
}
|
|
4014
|
+
message.service = reader.string();
|
|
4015
|
+
continue;
|
|
4016
|
+
}
|
|
4017
|
+
}
|
|
4018
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4019
|
+
break;
|
|
4020
|
+
}
|
|
4021
|
+
reader.skip(tag & 7);
|
|
4022
|
+
}
|
|
4023
|
+
return message;
|
|
4024
|
+
},
|
|
4025
|
+
fromJSON(object) {
|
|
4026
|
+
return {
|
|
4027
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
4028
|
+
service: isSet(object.service) ? globalThis.String(object.service) : "",
|
|
4029
|
+
};
|
|
4030
|
+
},
|
|
4031
|
+
toJSON(message) {
|
|
4032
|
+
const obj = {};
|
|
4033
|
+
if (message.status !== "") {
|
|
4034
|
+
obj.status = message.status;
|
|
4035
|
+
}
|
|
4036
|
+
if (message.service !== "") {
|
|
4037
|
+
obj.service = message.service;
|
|
4038
|
+
}
|
|
4039
|
+
return obj;
|
|
4040
|
+
},
|
|
4041
|
+
create(base) {
|
|
4042
|
+
return exports.GetStatusResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
4043
|
+
},
|
|
4044
|
+
fromPartial(object) {
|
|
4045
|
+
var _a, _b;
|
|
4046
|
+
const message = createBaseGetStatusResponse();
|
|
4047
|
+
message.status = (_a = object.status) !== null && _a !== void 0 ? _a : "";
|
|
4048
|
+
message.service = (_b = object.service) !== null && _b !== void 0 ? _b : "";
|
|
4049
|
+
return message;
|
|
4050
|
+
},
|
|
4051
|
+
};
|
|
4052
|
+
exports.AccountServiceDefinition = {
|
|
4053
|
+
name: "AccountService",
|
|
4054
|
+
fullName: "pb.AccountService",
|
|
4055
|
+
methods: {
|
|
4056
|
+
getStatus: {
|
|
4057
|
+
name: "GetStatus",
|
|
4058
|
+
requestType: exports.GetStatusRequest,
|
|
4059
|
+
requestStream: false,
|
|
4060
|
+
responseType: exports.GetStatusResponse,
|
|
4061
|
+
responseStream: false,
|
|
4062
|
+
options: {
|
|
4063
|
+
_unknownFields: {
|
|
4064
|
+
578365826: [
|
|
4065
|
+
new Uint8Array([
|
|
4066
|
+
24,
|
|
4067
|
+
18,
|
|
4068
|
+
22,
|
|
4069
|
+
47,
|
|
4070
|
+
97,
|
|
4071
|
+
112,
|
|
4072
|
+
105,
|
|
4073
|
+
47,
|
|
4074
|
+
118,
|
|
4075
|
+
49,
|
|
4076
|
+
47,
|
|
4077
|
+
97,
|
|
4078
|
+
99,
|
|
4079
|
+
99,
|
|
4080
|
+
111,
|
|
4081
|
+
117,
|
|
4082
|
+
110,
|
|
4083
|
+
116,
|
|
4084
|
+
47,
|
|
4085
|
+
115,
|
|
4086
|
+
116,
|
|
4087
|
+
97,
|
|
4088
|
+
116,
|
|
4089
|
+
117,
|
|
4090
|
+
115,
|
|
4091
|
+
]),
|
|
4092
|
+
],
|
|
4093
|
+
},
|
|
4094
|
+
},
|
|
4095
|
+
},
|
|
4096
|
+
getProfile: {
|
|
4097
|
+
name: "GetProfile",
|
|
4098
|
+
requestType: exports.GetProfileRequest,
|
|
4099
|
+
requestStream: false,
|
|
4100
|
+
responseType: exports.GetProfileResponse,
|
|
4101
|
+
responseStream: false,
|
|
4102
|
+
options: {
|
|
4103
|
+
_unknownFields: {
|
|
4104
|
+
578365826: [
|
|
4105
|
+
new Uint8Array([
|
|
4106
|
+
25,
|
|
4107
|
+
18,
|
|
4108
|
+
23,
|
|
4109
|
+
47,
|
|
4110
|
+
97,
|
|
4111
|
+
112,
|
|
4112
|
+
105,
|
|
4113
|
+
47,
|
|
4114
|
+
118,
|
|
4115
|
+
49,
|
|
4116
|
+
47,
|
|
4117
|
+
97,
|
|
4118
|
+
99,
|
|
4119
|
+
99,
|
|
4120
|
+
111,
|
|
4121
|
+
117,
|
|
4122
|
+
110,
|
|
4123
|
+
116,
|
|
4124
|
+
47,
|
|
4125
|
+
112,
|
|
4126
|
+
114,
|
|
4127
|
+
111,
|
|
4128
|
+
102,
|
|
4129
|
+
105,
|
|
4130
|
+
108,
|
|
4131
|
+
101,
|
|
4132
|
+
]),
|
|
4133
|
+
],
|
|
4134
|
+
},
|
|
4135
|
+
},
|
|
4136
|
+
},
|
|
4137
|
+
getAccountPosts: {
|
|
4138
|
+
name: "GetAccountPosts",
|
|
4139
|
+
requestType: exports.GetAccountPostsRequest,
|
|
4140
|
+
requestStream: false,
|
|
4141
|
+
responseType: exports.GetAccountPostsResponse,
|
|
4142
|
+
responseStream: false,
|
|
4143
|
+
options: {
|
|
4144
|
+
_unknownFields: {
|
|
4145
|
+
578365826: [
|
|
4146
|
+
new Uint8Array([
|
|
4147
|
+
23,
|
|
4148
|
+
18,
|
|
4149
|
+
21,
|
|
4150
|
+
47,
|
|
4151
|
+
97,
|
|
4152
|
+
112,
|
|
4153
|
+
105,
|
|
4154
|
+
47,
|
|
4155
|
+
118,
|
|
4156
|
+
49,
|
|
4157
|
+
47,
|
|
4158
|
+
97,
|
|
4159
|
+
99,
|
|
4160
|
+
99,
|
|
4161
|
+
111,
|
|
4162
|
+
117,
|
|
4163
|
+
110,
|
|
4164
|
+
116,
|
|
4165
|
+
47,
|
|
4166
|
+
112,
|
|
4167
|
+
111,
|
|
4168
|
+
115,
|
|
4169
|
+
116,
|
|
4170
|
+
115,
|
|
4171
|
+
]),
|
|
4172
|
+
],
|
|
4173
|
+
},
|
|
4174
|
+
},
|
|
4175
|
+
},
|
|
4176
|
+
getAccountReplies: {
|
|
4177
|
+
name: "GetAccountReplies",
|
|
4178
|
+
requestType: exports.GetAccountRepliesRequest,
|
|
4179
|
+
requestStream: false,
|
|
4180
|
+
responseType: exports.GetAccountRepliesResponse,
|
|
4181
|
+
responseStream: false,
|
|
4182
|
+
options: {
|
|
4183
|
+
_unknownFields: {
|
|
4184
|
+
578365826: [
|
|
4185
|
+
new Uint8Array([
|
|
4186
|
+
25,
|
|
4187
|
+
18,
|
|
4188
|
+
23,
|
|
4189
|
+
47,
|
|
4190
|
+
97,
|
|
4191
|
+
112,
|
|
4192
|
+
105,
|
|
4193
|
+
47,
|
|
4194
|
+
118,
|
|
4195
|
+
49,
|
|
4196
|
+
47,
|
|
4197
|
+
97,
|
|
4198
|
+
99,
|
|
4199
|
+
99,
|
|
4200
|
+
111,
|
|
4201
|
+
117,
|
|
4202
|
+
110,
|
|
4203
|
+
116,
|
|
4204
|
+
47,
|
|
4205
|
+
114,
|
|
4206
|
+
101,
|
|
4207
|
+
112,
|
|
4208
|
+
108,
|
|
4209
|
+
105,
|
|
4210
|
+
101,
|
|
4211
|
+
115,
|
|
4212
|
+
]),
|
|
4213
|
+
],
|
|
4214
|
+
},
|
|
4215
|
+
},
|
|
4216
|
+
},
|
|
4217
|
+
getAccountMedia: {
|
|
4218
|
+
name: "GetAccountMedia",
|
|
4219
|
+
requestType: exports.GetAccountMediaRequest,
|
|
4220
|
+
requestStream: false,
|
|
4221
|
+
responseType: exports.GetAccountMediaResponse,
|
|
4222
|
+
responseStream: false,
|
|
4223
|
+
options: {
|
|
4224
|
+
_unknownFields: {
|
|
4225
|
+
578365826: [
|
|
4226
|
+
new Uint8Array([
|
|
4227
|
+
23,
|
|
4228
|
+
18,
|
|
4229
|
+
21,
|
|
4230
|
+
47,
|
|
4231
|
+
97,
|
|
4232
|
+
112,
|
|
4233
|
+
105,
|
|
4234
|
+
47,
|
|
4235
|
+
118,
|
|
4236
|
+
49,
|
|
4237
|
+
47,
|
|
4238
|
+
97,
|
|
4239
|
+
99,
|
|
4240
|
+
99,
|
|
4241
|
+
111,
|
|
4242
|
+
117,
|
|
4243
|
+
110,
|
|
4244
|
+
116,
|
|
4245
|
+
47,
|
|
4246
|
+
109,
|
|
4247
|
+
101,
|
|
4248
|
+
100,
|
|
4249
|
+
105,
|
|
4250
|
+
97,
|
|
4251
|
+
]),
|
|
4252
|
+
],
|
|
4253
|
+
},
|
|
4254
|
+
},
|
|
4255
|
+
},
|
|
4256
|
+
getAccountLikes: {
|
|
4257
|
+
name: "GetAccountLikes",
|
|
4258
|
+
requestType: exports.GetAccountLikesRequest,
|
|
4259
|
+
requestStream: false,
|
|
4260
|
+
responseType: exports.GetAccountLikesResponse,
|
|
4261
|
+
responseStream: false,
|
|
4262
|
+
options: {
|
|
4263
|
+
_unknownFields: {
|
|
4264
|
+
578365826: [
|
|
4265
|
+
new Uint8Array([
|
|
4266
|
+
23,
|
|
4267
|
+
18,
|
|
4268
|
+
21,
|
|
4269
|
+
47,
|
|
4270
|
+
97,
|
|
4271
|
+
112,
|
|
4272
|
+
105,
|
|
4273
|
+
47,
|
|
4274
|
+
118,
|
|
4275
|
+
49,
|
|
4276
|
+
47,
|
|
4277
|
+
97,
|
|
4278
|
+
99,
|
|
4279
|
+
99,
|
|
4280
|
+
111,
|
|
4281
|
+
117,
|
|
4282
|
+
110,
|
|
4283
|
+
116,
|
|
4284
|
+
47,
|
|
4285
|
+
108,
|
|
4286
|
+
105,
|
|
4287
|
+
107,
|
|
4288
|
+
101,
|
|
4289
|
+
115,
|
|
4290
|
+
]),
|
|
4291
|
+
],
|
|
4292
|
+
},
|
|
4293
|
+
},
|
|
4294
|
+
},
|
|
4295
|
+
getAccountReposts: {
|
|
4296
|
+
name: "GetAccountReposts",
|
|
4297
|
+
requestType: exports.GetAccountRepostsRequest,
|
|
4298
|
+
requestStream: false,
|
|
4299
|
+
responseType: exports.GetAccountRepostsResponse,
|
|
4300
|
+
responseStream: false,
|
|
4301
|
+
options: {
|
|
4302
|
+
_unknownFields: {
|
|
4303
|
+
578365826: [
|
|
4304
|
+
new Uint8Array([
|
|
4305
|
+
25,
|
|
4306
|
+
18,
|
|
4307
|
+
23,
|
|
4308
|
+
47,
|
|
4309
|
+
97,
|
|
4310
|
+
112,
|
|
4311
|
+
105,
|
|
4312
|
+
47,
|
|
4313
|
+
118,
|
|
4314
|
+
49,
|
|
4315
|
+
47,
|
|
4316
|
+
97,
|
|
4317
|
+
99,
|
|
4318
|
+
99,
|
|
4319
|
+
111,
|
|
4320
|
+
117,
|
|
4321
|
+
110,
|
|
4322
|
+
116,
|
|
4323
|
+
47,
|
|
4324
|
+
114,
|
|
4325
|
+
101,
|
|
4326
|
+
112,
|
|
4327
|
+
111,
|
|
4328
|
+
115,
|
|
4329
|
+
116,
|
|
4330
|
+
115,
|
|
4331
|
+
]),
|
|
4332
|
+
],
|
|
4333
|
+
},
|
|
4334
|
+
},
|
|
4335
|
+
},
|
|
4336
|
+
updateProfile: {
|
|
4337
|
+
name: "UpdateProfile",
|
|
4338
|
+
requestType: exports.UpdateProfileRequest,
|
|
4339
|
+
requestStream: false,
|
|
4340
|
+
responseType: exports.UpdateProfileResponse,
|
|
4341
|
+
responseStream: false,
|
|
4342
|
+
options: {
|
|
4343
|
+
_unknownFields: {
|
|
4344
|
+
578365826: [
|
|
4345
|
+
new Uint8Array([
|
|
4346
|
+
28,
|
|
4347
|
+
26,
|
|
4348
|
+
23,
|
|
4349
|
+
47,
|
|
4350
|
+
97,
|
|
4351
|
+
112,
|
|
4352
|
+
105,
|
|
4353
|
+
47,
|
|
4354
|
+
118,
|
|
4355
|
+
49,
|
|
4356
|
+
47,
|
|
4357
|
+
97,
|
|
4358
|
+
99,
|
|
4359
|
+
99,
|
|
4360
|
+
111,
|
|
4361
|
+
117,
|
|
4362
|
+
110,
|
|
4363
|
+
116,
|
|
4364
|
+
47,
|
|
4365
|
+
112,
|
|
4366
|
+
114,
|
|
4367
|
+
111,
|
|
4368
|
+
102,
|
|
4369
|
+
105,
|
|
4370
|
+
108,
|
|
4371
|
+
101,
|
|
4372
|
+
58,
|
|
4373
|
+
1,
|
|
4374
|
+
42,
|
|
4375
|
+
]),
|
|
4376
|
+
],
|
|
4377
|
+
},
|
|
4378
|
+
},
|
|
4379
|
+
},
|
|
4380
|
+
updatePassword: {
|
|
4381
|
+
name: "UpdatePassword",
|
|
4382
|
+
requestType: exports.UpdatePasswordRequest,
|
|
4383
|
+
requestStream: false,
|
|
4384
|
+
responseType: common_1.DeleteResponse,
|
|
4385
|
+
responseStream: false,
|
|
4386
|
+
options: {
|
|
4387
|
+
_unknownFields: {
|
|
4388
|
+
578365826: [
|
|
4389
|
+
new Uint8Array([
|
|
2004
4390
|
29,
|
|
2005
4391
|
26,
|
|
2006
4392
|
24,
|
|
@@ -2179,6 +4565,193 @@ exports.AccountServiceDefinition = {
|
|
|
2179
4565
|
},
|
|
2180
4566
|
},
|
|
2181
4567
|
},
|
|
4568
|
+
followUser: {
|
|
4569
|
+
name: "FollowUser",
|
|
4570
|
+
requestType: exports.FollowUserRequest,
|
|
4571
|
+
requestStream: false,
|
|
4572
|
+
responseType: exports.FollowUserResponse,
|
|
4573
|
+
responseStream: false,
|
|
4574
|
+
options: {
|
|
4575
|
+
_unknownFields: {
|
|
4576
|
+
578365826: [
|
|
4577
|
+
new Uint8Array([
|
|
4578
|
+
36,
|
|
4579
|
+
34,
|
|
4580
|
+
31,
|
|
4581
|
+
47,
|
|
4582
|
+
97,
|
|
4583
|
+
112,
|
|
4584
|
+
105,
|
|
4585
|
+
47,
|
|
4586
|
+
118,
|
|
4587
|
+
49,
|
|
4588
|
+
47,
|
|
4589
|
+
97,
|
|
4590
|
+
99,
|
|
4591
|
+
99,
|
|
4592
|
+
111,
|
|
4593
|
+
117,
|
|
4594
|
+
110,
|
|
4595
|
+
116,
|
|
4596
|
+
47,
|
|
4597
|
+
102,
|
|
4598
|
+
111,
|
|
4599
|
+
108,
|
|
4600
|
+
108,
|
|
4601
|
+
111,
|
|
4602
|
+
119,
|
|
4603
|
+
47,
|
|
4604
|
+
123,
|
|
4605
|
+
117,
|
|
4606
|
+
115,
|
|
4607
|
+
101,
|
|
4608
|
+
114,
|
|
4609
|
+
73,
|
|
4610
|
+
100,
|
|
4611
|
+
125,
|
|
4612
|
+
58,
|
|
4613
|
+
1,
|
|
4614
|
+
42,
|
|
4615
|
+
]),
|
|
4616
|
+
],
|
|
4617
|
+
},
|
|
4618
|
+
},
|
|
4619
|
+
},
|
|
4620
|
+
unfollowUser: {
|
|
4621
|
+
name: "UnfollowUser",
|
|
4622
|
+
requestType: exports.UnfollowUserRequest,
|
|
4623
|
+
requestStream: false,
|
|
4624
|
+
responseType: exports.UnfollowUserResponse,
|
|
4625
|
+
responseStream: false,
|
|
4626
|
+
options: {
|
|
4627
|
+
_unknownFields: {
|
|
4628
|
+
578365826: [
|
|
4629
|
+
new Uint8Array([
|
|
4630
|
+
33,
|
|
4631
|
+
42,
|
|
4632
|
+
31,
|
|
4633
|
+
47,
|
|
4634
|
+
97,
|
|
4635
|
+
112,
|
|
4636
|
+
105,
|
|
4637
|
+
47,
|
|
4638
|
+
118,
|
|
4639
|
+
49,
|
|
4640
|
+
47,
|
|
4641
|
+
97,
|
|
4642
|
+
99,
|
|
4643
|
+
99,
|
|
4644
|
+
111,
|
|
4645
|
+
117,
|
|
4646
|
+
110,
|
|
4647
|
+
116,
|
|
4648
|
+
47,
|
|
4649
|
+
102,
|
|
4650
|
+
111,
|
|
4651
|
+
108,
|
|
4652
|
+
108,
|
|
4653
|
+
111,
|
|
4654
|
+
119,
|
|
4655
|
+
47,
|
|
4656
|
+
123,
|
|
4657
|
+
117,
|
|
4658
|
+
115,
|
|
4659
|
+
101,
|
|
4660
|
+
114,
|
|
4661
|
+
73,
|
|
4662
|
+
100,
|
|
4663
|
+
125,
|
|
4664
|
+
]),
|
|
4665
|
+
],
|
|
4666
|
+
},
|
|
4667
|
+
},
|
|
4668
|
+
},
|
|
4669
|
+
getFollowers: {
|
|
4670
|
+
name: "GetFollowers",
|
|
4671
|
+
requestType: exports.GetFollowersRequest,
|
|
4672
|
+
requestStream: false,
|
|
4673
|
+
responseType: exports.GetFollowersResponse,
|
|
4674
|
+
responseStream: false,
|
|
4675
|
+
options: {
|
|
4676
|
+
_unknownFields: {
|
|
4677
|
+
578365826: [
|
|
4678
|
+
new Uint8Array([
|
|
4679
|
+
27,
|
|
4680
|
+
18,
|
|
4681
|
+
25,
|
|
4682
|
+
47,
|
|
4683
|
+
97,
|
|
4684
|
+
112,
|
|
4685
|
+
105,
|
|
4686
|
+
47,
|
|
4687
|
+
118,
|
|
4688
|
+
49,
|
|
4689
|
+
47,
|
|
4690
|
+
97,
|
|
4691
|
+
99,
|
|
4692
|
+
99,
|
|
4693
|
+
111,
|
|
4694
|
+
117,
|
|
4695
|
+
110,
|
|
4696
|
+
116,
|
|
4697
|
+
47,
|
|
4698
|
+
102,
|
|
4699
|
+
111,
|
|
4700
|
+
108,
|
|
4701
|
+
108,
|
|
4702
|
+
111,
|
|
4703
|
+
119,
|
|
4704
|
+
101,
|
|
4705
|
+
114,
|
|
4706
|
+
115,
|
|
4707
|
+
]),
|
|
4708
|
+
],
|
|
4709
|
+
},
|
|
4710
|
+
},
|
|
4711
|
+
},
|
|
4712
|
+
getFollowing: {
|
|
4713
|
+
name: "GetFollowing",
|
|
4714
|
+
requestType: exports.GetFollowingRequest,
|
|
4715
|
+
requestStream: false,
|
|
4716
|
+
responseType: exports.GetFollowingResponse,
|
|
4717
|
+
responseStream: false,
|
|
4718
|
+
options: {
|
|
4719
|
+
_unknownFields: {
|
|
4720
|
+
578365826: [
|
|
4721
|
+
new Uint8Array([
|
|
4722
|
+
27,
|
|
4723
|
+
18,
|
|
4724
|
+
25,
|
|
4725
|
+
47,
|
|
4726
|
+
97,
|
|
4727
|
+
112,
|
|
4728
|
+
105,
|
|
4729
|
+
47,
|
|
4730
|
+
118,
|
|
4731
|
+
49,
|
|
4732
|
+
47,
|
|
4733
|
+
97,
|
|
4734
|
+
99,
|
|
4735
|
+
99,
|
|
4736
|
+
111,
|
|
4737
|
+
117,
|
|
4738
|
+
110,
|
|
4739
|
+
116,
|
|
4740
|
+
47,
|
|
4741
|
+
102,
|
|
4742
|
+
111,
|
|
4743
|
+
108,
|
|
4744
|
+
108,
|
|
4745
|
+
111,
|
|
4746
|
+
119,
|
|
4747
|
+
105,
|
|
4748
|
+
110,
|
|
4749
|
+
103,
|
|
4750
|
+
]),
|
|
4751
|
+
],
|
|
4752
|
+
},
|
|
4753
|
+
},
|
|
4754
|
+
},
|
|
2182
4755
|
},
|
|
2183
4756
|
};
|
|
2184
4757
|
function bytesFromBase64(b64) {
|
|
@@ -2206,6 +4779,16 @@ function base64FromBytes(arr) {
|
|
|
2206
4779
|
return globalThis.btoa(bin.join(""));
|
|
2207
4780
|
}
|
|
2208
4781
|
}
|
|
4782
|
+
function longToNumber(int64) {
|
|
4783
|
+
const num = globalThis.Number(int64.toString());
|
|
4784
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
4785
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
4786
|
+
}
|
|
4787
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
4788
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
4789
|
+
}
|
|
4790
|
+
return num;
|
|
4791
|
+
}
|
|
2209
4792
|
function isSet(value) {
|
|
2210
4793
|
return value !== null && value !== undefined;
|
|
2211
4794
|
}
|