naijarea-ts 1.0.2 → 1.0.6
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 +274 -4
- package/dist/account.js +2765 -198
- 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/posts.js
CHANGED
|
@@ -5,13 +5,113 @@
|
|
|
5
5
|
// protoc v6.33.2
|
|
6
6
|
// source: posts.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.PostServiceDefinition = exports.PostUserStatus = exports.
|
|
8
|
+
exports.PostServiceDefinition = exports.ImageToCrop = exports.ImageDimensions = exports.ReplyTo = exports.VideoSource = exports.PostUserStatus = exports.PostEngagementMetrics = exports.PostAuthor = exports.Post = exports.UnapproveEyewitnessReportRequest = exports.ApproveEyewitnessReportResponse = exports.ApproveEyewitnessReportRequest = exports.UnsignPetitionRequest = exports.SignPetitionResponse = exports.SignPetitionRequest = exports.SearchPostsRequest = exports.UnrepostRequest = exports.GetUserRepostsRequest = exports.GetUserLikesRequest = exports.GetUserMediaRequest = exports.GetUserRepliesRequest = exports.GetUserPostsRequest = exports.SharePostResponse = exports.SharePostRequest = exports.RepostResponse = exports.RepostRequest = exports.UnbookmarkPostRequest = exports.BookmarkPostResponse = exports.BookmarkPostRequest = exports.UnlikePostRequest = exports.LikePostResponse = exports.LikePostRequest = exports.UpdatePostResponse = exports.UpdatePostRequest = exports.ListPostsResponse = exports.ListPostsRequest = exports.GetPostResponse = exports.CreatePostResponse = exports.CreatePostRequest = exports.MediaType = exports.VideoType = exports.protobufPackage = void 0;
|
|
9
|
+
exports.videoTypeFromJSON = videoTypeFromJSON;
|
|
10
|
+
exports.videoTypeToJSON = videoTypeToJSON;
|
|
11
|
+
exports.mediaTypeFromJSON = mediaTypeFromJSON;
|
|
12
|
+
exports.mediaTypeToJSON = mediaTypeToJSON;
|
|
9
13
|
/* eslint-disable */
|
|
10
14
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
15
|
const common_1 = require("./common");
|
|
12
16
|
exports.protobufPackage = "pb";
|
|
17
|
+
var VideoType;
|
|
18
|
+
(function (VideoType) {
|
|
19
|
+
VideoType[VideoType["VIDEO_TYPE_UNSPECIFIED"] = 0] = "VIDEO_TYPE_UNSPECIFIED";
|
|
20
|
+
VideoType[VideoType["MP4"] = 1] = "MP4";
|
|
21
|
+
VideoType[VideoType["HLS"] = 2] = "HLS";
|
|
22
|
+
VideoType[VideoType["DASH"] = 3] = "DASH";
|
|
23
|
+
VideoType[VideoType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
24
|
+
})(VideoType || (exports.VideoType = VideoType = {}));
|
|
25
|
+
function videoTypeFromJSON(object) {
|
|
26
|
+
switch (object) {
|
|
27
|
+
case 0:
|
|
28
|
+
case "VIDEO_TYPE_UNSPECIFIED":
|
|
29
|
+
return VideoType.VIDEO_TYPE_UNSPECIFIED;
|
|
30
|
+
case 1:
|
|
31
|
+
case "MP4":
|
|
32
|
+
return VideoType.MP4;
|
|
33
|
+
case 2:
|
|
34
|
+
case "HLS":
|
|
35
|
+
return VideoType.HLS;
|
|
36
|
+
case 3:
|
|
37
|
+
case "DASH":
|
|
38
|
+
return VideoType.DASH;
|
|
39
|
+
case -1:
|
|
40
|
+
case "UNRECOGNIZED":
|
|
41
|
+
default:
|
|
42
|
+
return VideoType.UNRECOGNIZED;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function videoTypeToJSON(object) {
|
|
46
|
+
switch (object) {
|
|
47
|
+
case VideoType.VIDEO_TYPE_UNSPECIFIED:
|
|
48
|
+
return "VIDEO_TYPE_UNSPECIFIED";
|
|
49
|
+
case VideoType.MP4:
|
|
50
|
+
return "MP4";
|
|
51
|
+
case VideoType.HLS:
|
|
52
|
+
return "HLS";
|
|
53
|
+
case VideoType.DASH:
|
|
54
|
+
return "DASH";
|
|
55
|
+
case VideoType.UNRECOGNIZED:
|
|
56
|
+
default:
|
|
57
|
+
return "UNRECOGNIZED";
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
var MediaType;
|
|
61
|
+
(function (MediaType) {
|
|
62
|
+
MediaType[MediaType["MEDIA_TYPE_UNSPECIFIED"] = 0] = "MEDIA_TYPE_UNSPECIFIED";
|
|
63
|
+
MediaType[MediaType["IMAGE"] = 1] = "IMAGE";
|
|
64
|
+
MediaType[MediaType["VIDEO"] = 2] = "VIDEO";
|
|
65
|
+
MediaType[MediaType["MIXED"] = 3] = "MIXED";
|
|
66
|
+
MediaType[MediaType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
67
|
+
})(MediaType || (exports.MediaType = MediaType = {}));
|
|
68
|
+
function mediaTypeFromJSON(object) {
|
|
69
|
+
switch (object) {
|
|
70
|
+
case 0:
|
|
71
|
+
case "MEDIA_TYPE_UNSPECIFIED":
|
|
72
|
+
return MediaType.MEDIA_TYPE_UNSPECIFIED;
|
|
73
|
+
case 1:
|
|
74
|
+
case "IMAGE":
|
|
75
|
+
return MediaType.IMAGE;
|
|
76
|
+
case 2:
|
|
77
|
+
case "VIDEO":
|
|
78
|
+
return MediaType.VIDEO;
|
|
79
|
+
case 3:
|
|
80
|
+
case "MIXED":
|
|
81
|
+
return MediaType.MIXED;
|
|
82
|
+
case -1:
|
|
83
|
+
case "UNRECOGNIZED":
|
|
84
|
+
default:
|
|
85
|
+
return MediaType.UNRECOGNIZED;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function mediaTypeToJSON(object) {
|
|
89
|
+
switch (object) {
|
|
90
|
+
case MediaType.MEDIA_TYPE_UNSPECIFIED:
|
|
91
|
+
return "MEDIA_TYPE_UNSPECIFIED";
|
|
92
|
+
case MediaType.IMAGE:
|
|
93
|
+
return "IMAGE";
|
|
94
|
+
case MediaType.VIDEO:
|
|
95
|
+
return "VIDEO";
|
|
96
|
+
case MediaType.MIXED:
|
|
97
|
+
return "MIXED";
|
|
98
|
+
case MediaType.UNRECOGNIZED:
|
|
99
|
+
default:
|
|
100
|
+
return "UNRECOGNIZED";
|
|
101
|
+
}
|
|
102
|
+
}
|
|
13
103
|
function createBaseCreatePostRequest() {
|
|
14
|
-
return {
|
|
104
|
+
return {
|
|
105
|
+
postType: "",
|
|
106
|
+
title: "",
|
|
107
|
+
text: "",
|
|
108
|
+
images: [],
|
|
109
|
+
videos: [],
|
|
110
|
+
emojis: [],
|
|
111
|
+
tags: [],
|
|
112
|
+
targetSignatures: 0,
|
|
113
|
+
category: "",
|
|
114
|
+
};
|
|
15
115
|
}
|
|
16
116
|
exports.CreatePostRequest = {
|
|
17
117
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -21,17 +121,26 @@ exports.CreatePostRequest = {
|
|
|
21
121
|
if (message.title !== "") {
|
|
22
122
|
writer.uint32(18).string(message.title);
|
|
23
123
|
}
|
|
24
|
-
if (message.
|
|
25
|
-
writer.uint32(26).string(message.
|
|
124
|
+
if (message.text !== "") {
|
|
125
|
+
writer.uint32(26).string(message.text);
|
|
26
126
|
}
|
|
27
|
-
for (const v of message.
|
|
127
|
+
for (const v of message.images) {
|
|
28
128
|
writer.uint32(34).string(v);
|
|
29
129
|
}
|
|
130
|
+
for (const v of message.videos) {
|
|
131
|
+
exports.VideoSource.encode(v, writer.uint32(42).fork()).join();
|
|
132
|
+
}
|
|
133
|
+
for (const v of message.emojis) {
|
|
134
|
+
writer.uint32(50).string(v);
|
|
135
|
+
}
|
|
136
|
+
for (const v of message.tags) {
|
|
137
|
+
writer.uint32(58).string(v);
|
|
138
|
+
}
|
|
30
139
|
if (message.targetSignatures !== 0) {
|
|
31
|
-
writer.uint32(
|
|
140
|
+
writer.uint32(64).int32(message.targetSignatures);
|
|
32
141
|
}
|
|
33
142
|
if (message.category !== "") {
|
|
34
|
-
writer.uint32(
|
|
143
|
+
writer.uint32(74).string(message.category);
|
|
35
144
|
}
|
|
36
145
|
return writer;
|
|
37
146
|
},
|
|
@@ -60,27 +169,48 @@ exports.CreatePostRequest = {
|
|
|
60
169
|
if (tag !== 26) {
|
|
61
170
|
break;
|
|
62
171
|
}
|
|
63
|
-
message.
|
|
172
|
+
message.text = reader.string();
|
|
64
173
|
continue;
|
|
65
174
|
}
|
|
66
175
|
case 4: {
|
|
67
176
|
if (tag !== 34) {
|
|
68
177
|
break;
|
|
69
178
|
}
|
|
70
|
-
message.
|
|
179
|
+
message.images.push(reader.string());
|
|
71
180
|
continue;
|
|
72
181
|
}
|
|
73
182
|
case 5: {
|
|
74
|
-
if (tag !==
|
|
183
|
+
if (tag !== 42) {
|
|
75
184
|
break;
|
|
76
185
|
}
|
|
77
|
-
message.
|
|
186
|
+
message.videos.push(exports.VideoSource.decode(reader, reader.uint32()));
|
|
78
187
|
continue;
|
|
79
188
|
}
|
|
80
189
|
case 6: {
|
|
81
190
|
if (tag !== 50) {
|
|
82
191
|
break;
|
|
83
192
|
}
|
|
193
|
+
message.emojis.push(reader.string());
|
|
194
|
+
continue;
|
|
195
|
+
}
|
|
196
|
+
case 7: {
|
|
197
|
+
if (tag !== 58) {
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
message.tags.push(reader.string());
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
case 8: {
|
|
204
|
+
if (tag !== 64) {
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
message.targetSignatures = reader.int32();
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
case 9: {
|
|
211
|
+
if (tag !== 74) {
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
84
214
|
message.category = reader.string();
|
|
85
215
|
continue;
|
|
86
216
|
}
|
|
@@ -96,14 +226,17 @@ exports.CreatePostRequest = {
|
|
|
96
226
|
return {
|
|
97
227
|
postType: isSet(object.postType) ? globalThis.String(object.postType) : "",
|
|
98
228
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
99
|
-
|
|
100
|
-
|
|
229
|
+
text: isSet(object.text) ? globalThis.String(object.text) : "",
|
|
230
|
+
images: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.images) ? object.images.map((e) => globalThis.String(e)) : [],
|
|
231
|
+
videos: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.videos) ? object.videos.map((e) => exports.VideoSource.fromJSON(e)) : [],
|
|
232
|
+
emojis: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.emojis) ? object.emojis.map((e) => globalThis.String(e)) : [],
|
|
233
|
+
tags: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.tags) ? object.tags.map((e) => globalThis.String(e)) : [],
|
|
101
234
|
targetSignatures: isSet(object.targetSignatures) ? globalThis.Number(object.targetSignatures) : 0,
|
|
102
235
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
103
236
|
};
|
|
104
237
|
},
|
|
105
238
|
toJSON(message) {
|
|
106
|
-
var _a;
|
|
239
|
+
var _a, _b, _c, _d;
|
|
107
240
|
const obj = {};
|
|
108
241
|
if (message.postType !== "") {
|
|
109
242
|
obj.postType = message.postType;
|
|
@@ -111,11 +244,20 @@ exports.CreatePostRequest = {
|
|
|
111
244
|
if (message.title !== "") {
|
|
112
245
|
obj.title = message.title;
|
|
113
246
|
}
|
|
114
|
-
if (message.
|
|
115
|
-
obj.
|
|
247
|
+
if (message.text !== "") {
|
|
248
|
+
obj.text = message.text;
|
|
249
|
+
}
|
|
250
|
+
if ((_a = message.images) === null || _a === void 0 ? void 0 : _a.length) {
|
|
251
|
+
obj.images = message.images;
|
|
252
|
+
}
|
|
253
|
+
if ((_b = message.videos) === null || _b === void 0 ? void 0 : _b.length) {
|
|
254
|
+
obj.videos = message.videos.map((e) => exports.VideoSource.toJSON(e));
|
|
116
255
|
}
|
|
117
|
-
if ((
|
|
118
|
-
obj.
|
|
256
|
+
if ((_c = message.emojis) === null || _c === void 0 ? void 0 : _c.length) {
|
|
257
|
+
obj.emojis = message.emojis;
|
|
258
|
+
}
|
|
259
|
+
if ((_d = message.tags) === null || _d === void 0 ? void 0 : _d.length) {
|
|
260
|
+
obj.tags = message.tags;
|
|
119
261
|
}
|
|
120
262
|
if (message.targetSignatures !== 0) {
|
|
121
263
|
obj.targetSignatures = Math.round(message.targetSignatures);
|
|
@@ -129,14 +271,17 @@ exports.CreatePostRequest = {
|
|
|
129
271
|
return exports.CreatePostRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
130
272
|
},
|
|
131
273
|
fromPartial(object) {
|
|
132
|
-
var _a, _b, _c, _d, _e, _f;
|
|
274
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
133
275
|
const message = createBaseCreatePostRequest();
|
|
134
276
|
message.postType = (_a = object.postType) !== null && _a !== void 0 ? _a : "";
|
|
135
277
|
message.title = (_b = object.title) !== null && _b !== void 0 ? _b : "";
|
|
136
|
-
message.
|
|
137
|
-
message.
|
|
138
|
-
message.
|
|
139
|
-
message.
|
|
278
|
+
message.text = (_c = object.text) !== null && _c !== void 0 ? _c : "";
|
|
279
|
+
message.images = ((_d = object.images) === null || _d === void 0 ? void 0 : _d.map((e) => e)) || [];
|
|
280
|
+
message.videos = ((_e = object.videos) === null || _e === void 0 ? void 0 : _e.map((e) => exports.VideoSource.fromPartial(e))) || [];
|
|
281
|
+
message.emojis = ((_f = object.emojis) === null || _f === void 0 ? void 0 : _f.map((e) => e)) || [];
|
|
282
|
+
message.tags = ((_g = object.tags) === null || _g === void 0 ? void 0 : _g.map((e) => e)) || [];
|
|
283
|
+
message.targetSignatures = (_h = object.targetSignatures) !== null && _h !== void 0 ? _h : 0;
|
|
284
|
+
message.category = (_j = object.category) !== null && _j !== void 0 ? _j : "";
|
|
140
285
|
return message;
|
|
141
286
|
},
|
|
142
287
|
};
|
|
@@ -386,7 +531,7 @@ exports.ListPostsResponse = {
|
|
|
386
531
|
},
|
|
387
532
|
};
|
|
388
533
|
function createBaseUpdatePostRequest() {
|
|
389
|
-
return { id: "", title: "",
|
|
534
|
+
return { id: "", title: "", text: "", images: [], videos: [], emojis: [], tags: [], status: "" };
|
|
390
535
|
}
|
|
391
536
|
exports.UpdatePostRequest = {
|
|
392
537
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -396,14 +541,23 @@ exports.UpdatePostRequest = {
|
|
|
396
541
|
if (message.title !== "") {
|
|
397
542
|
writer.uint32(18).string(message.title);
|
|
398
543
|
}
|
|
399
|
-
if (message.
|
|
400
|
-
writer.uint32(26).string(message.
|
|
544
|
+
if (message.text !== "") {
|
|
545
|
+
writer.uint32(26).string(message.text);
|
|
401
546
|
}
|
|
402
|
-
for (const v of message.
|
|
547
|
+
for (const v of message.images) {
|
|
403
548
|
writer.uint32(34).string(v);
|
|
404
549
|
}
|
|
550
|
+
for (const v of message.videos) {
|
|
551
|
+
exports.VideoSource.encode(v, writer.uint32(42).fork()).join();
|
|
552
|
+
}
|
|
553
|
+
for (const v of message.emojis) {
|
|
554
|
+
writer.uint32(50).string(v);
|
|
555
|
+
}
|
|
556
|
+
for (const v of message.tags) {
|
|
557
|
+
writer.uint32(58).string(v);
|
|
558
|
+
}
|
|
405
559
|
if (message.status !== "") {
|
|
406
|
-
writer.uint32(
|
|
560
|
+
writer.uint32(66).string(message.status);
|
|
407
561
|
}
|
|
408
562
|
return writer;
|
|
409
563
|
},
|
|
@@ -432,20 +586,41 @@ exports.UpdatePostRequest = {
|
|
|
432
586
|
if (tag !== 26) {
|
|
433
587
|
break;
|
|
434
588
|
}
|
|
435
|
-
message.
|
|
589
|
+
message.text = reader.string();
|
|
436
590
|
continue;
|
|
437
591
|
}
|
|
438
592
|
case 4: {
|
|
439
593
|
if (tag !== 34) {
|
|
440
594
|
break;
|
|
441
595
|
}
|
|
442
|
-
message.
|
|
596
|
+
message.images.push(reader.string());
|
|
443
597
|
continue;
|
|
444
598
|
}
|
|
445
599
|
case 5: {
|
|
446
600
|
if (tag !== 42) {
|
|
447
601
|
break;
|
|
448
602
|
}
|
|
603
|
+
message.videos.push(exports.VideoSource.decode(reader, reader.uint32()));
|
|
604
|
+
continue;
|
|
605
|
+
}
|
|
606
|
+
case 6: {
|
|
607
|
+
if (tag !== 50) {
|
|
608
|
+
break;
|
|
609
|
+
}
|
|
610
|
+
message.emojis.push(reader.string());
|
|
611
|
+
continue;
|
|
612
|
+
}
|
|
613
|
+
case 7: {
|
|
614
|
+
if (tag !== 58) {
|
|
615
|
+
break;
|
|
616
|
+
}
|
|
617
|
+
message.tags.push(reader.string());
|
|
618
|
+
continue;
|
|
619
|
+
}
|
|
620
|
+
case 8: {
|
|
621
|
+
if (tag !== 66) {
|
|
622
|
+
break;
|
|
623
|
+
}
|
|
449
624
|
message.status = reader.string();
|
|
450
625
|
continue;
|
|
451
626
|
}
|
|
@@ -461,13 +636,16 @@ exports.UpdatePostRequest = {
|
|
|
461
636
|
return {
|
|
462
637
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
463
638
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
464
|
-
|
|
465
|
-
|
|
639
|
+
text: isSet(object.text) ? globalThis.String(object.text) : "",
|
|
640
|
+
images: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.images) ? object.images.map((e) => globalThis.String(e)) : [],
|
|
641
|
+
videos: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.videos) ? object.videos.map((e) => exports.VideoSource.fromJSON(e)) : [],
|
|
642
|
+
emojis: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.emojis) ? object.emojis.map((e) => globalThis.String(e)) : [],
|
|
643
|
+
tags: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.tags) ? object.tags.map((e) => globalThis.String(e)) : [],
|
|
466
644
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
467
645
|
};
|
|
468
646
|
},
|
|
469
647
|
toJSON(message) {
|
|
470
|
-
var _a;
|
|
648
|
+
var _a, _b, _c, _d;
|
|
471
649
|
const obj = {};
|
|
472
650
|
if (message.id !== "") {
|
|
473
651
|
obj.id = message.id;
|
|
@@ -475,11 +653,20 @@ exports.UpdatePostRequest = {
|
|
|
475
653
|
if (message.title !== "") {
|
|
476
654
|
obj.title = message.title;
|
|
477
655
|
}
|
|
478
|
-
if (message.
|
|
479
|
-
obj.
|
|
656
|
+
if (message.text !== "") {
|
|
657
|
+
obj.text = message.text;
|
|
658
|
+
}
|
|
659
|
+
if ((_a = message.images) === null || _a === void 0 ? void 0 : _a.length) {
|
|
660
|
+
obj.images = message.images;
|
|
480
661
|
}
|
|
481
|
-
if ((
|
|
482
|
-
obj.
|
|
662
|
+
if ((_b = message.videos) === null || _b === void 0 ? void 0 : _b.length) {
|
|
663
|
+
obj.videos = message.videos.map((e) => exports.VideoSource.toJSON(e));
|
|
664
|
+
}
|
|
665
|
+
if ((_c = message.emojis) === null || _c === void 0 ? void 0 : _c.length) {
|
|
666
|
+
obj.emojis = message.emojis;
|
|
667
|
+
}
|
|
668
|
+
if ((_d = message.tags) === null || _d === void 0 ? void 0 : _d.length) {
|
|
669
|
+
obj.tags = message.tags;
|
|
483
670
|
}
|
|
484
671
|
if (message.status !== "") {
|
|
485
672
|
obj.status = message.status;
|
|
@@ -490,13 +677,16 @@ exports.UpdatePostRequest = {
|
|
|
490
677
|
return exports.UpdatePostRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
491
678
|
},
|
|
492
679
|
fromPartial(object) {
|
|
493
|
-
var _a, _b, _c, _d, _e;
|
|
680
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
494
681
|
const message = createBaseUpdatePostRequest();
|
|
495
682
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
496
683
|
message.title = (_b = object.title) !== null && _b !== void 0 ? _b : "";
|
|
497
|
-
message.
|
|
498
|
-
message.
|
|
499
|
-
message.
|
|
684
|
+
message.text = (_c = object.text) !== null && _c !== void 0 ? _c : "";
|
|
685
|
+
message.images = ((_d = object.images) === null || _d === void 0 ? void 0 : _d.map((e) => e)) || [];
|
|
686
|
+
message.videos = ((_e = object.videos) === null || _e === void 0 ? void 0 : _e.map((e) => exports.VideoSource.fromPartial(e))) || [];
|
|
687
|
+
message.emojis = ((_f = object.emojis) === null || _f === void 0 ? void 0 : _f.map((e) => e)) || [];
|
|
688
|
+
message.tags = ((_g = object.tags) === null || _g === void 0 ? void 0 : _g.map((e) => e)) || [];
|
|
689
|
+
message.status = (_h = object.status) !== null && _h !== void 0 ? _h : "";
|
|
500
690
|
return message;
|
|
501
691
|
},
|
|
502
692
|
};
|
|
@@ -1018,10 +1208,10 @@ exports.RepostResponse = {
|
|
|
1018
1208
|
return message;
|
|
1019
1209
|
},
|
|
1020
1210
|
};
|
|
1021
|
-
function
|
|
1211
|
+
function createBaseSharePostRequest() {
|
|
1022
1212
|
return { postId: "" };
|
|
1023
1213
|
}
|
|
1024
|
-
exports.
|
|
1214
|
+
exports.SharePostRequest = {
|
|
1025
1215
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1026
1216
|
if (message.postId !== "") {
|
|
1027
1217
|
writer.uint32(10).string(message.postId);
|
|
@@ -1031,7 +1221,7 @@ exports.UnrepostRequest = {
|
|
|
1031
1221
|
decode(input, length) {
|
|
1032
1222
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1033
1223
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1034
|
-
const message =
|
|
1224
|
+
const message = createBaseSharePostRequest();
|
|
1035
1225
|
while (reader.pos < end) {
|
|
1036
1226
|
const tag = reader.uint32();
|
|
1037
1227
|
switch (tag >>> 3) {
|
|
@@ -1061,67 +1251,47 @@ exports.UnrepostRequest = {
|
|
|
1061
1251
|
return obj;
|
|
1062
1252
|
},
|
|
1063
1253
|
create(base) {
|
|
1064
|
-
return exports.
|
|
1254
|
+
return exports.SharePostRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1065
1255
|
},
|
|
1066
1256
|
fromPartial(object) {
|
|
1067
1257
|
var _a;
|
|
1068
|
-
const message =
|
|
1258
|
+
const message = createBaseSharePostRequest();
|
|
1069
1259
|
message.postId = (_a = object.postId) !== null && _a !== void 0 ? _a : "";
|
|
1070
1260
|
return message;
|
|
1071
1261
|
},
|
|
1072
1262
|
};
|
|
1073
|
-
function
|
|
1074
|
-
return {
|
|
1263
|
+
function createBaseSharePostResponse() {
|
|
1264
|
+
return { shared: false, sharesCount: 0 };
|
|
1075
1265
|
}
|
|
1076
|
-
exports.
|
|
1266
|
+
exports.SharePostResponse = {
|
|
1077
1267
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1078
|
-
if (message.
|
|
1079
|
-
|
|
1268
|
+
if (message.shared !== false) {
|
|
1269
|
+
writer.uint32(8).bool(message.shared);
|
|
1080
1270
|
}
|
|
1081
|
-
if (message.
|
|
1082
|
-
writer.uint32(
|
|
1083
|
-
}
|
|
1084
|
-
if (message.postType !== "") {
|
|
1085
|
-
writer.uint32(26).string(message.postType);
|
|
1086
|
-
}
|
|
1087
|
-
if (message.limit !== 0) {
|
|
1088
|
-
writer.uint32(32).int32(message.limit);
|
|
1271
|
+
if (message.sharesCount !== 0) {
|
|
1272
|
+
writer.uint32(16).int64(message.sharesCount);
|
|
1089
1273
|
}
|
|
1090
1274
|
return writer;
|
|
1091
1275
|
},
|
|
1092
1276
|
decode(input, length) {
|
|
1093
1277
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1094
1278
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1095
|
-
const message =
|
|
1279
|
+
const message = createBaseSharePostResponse();
|
|
1096
1280
|
while (reader.pos < end) {
|
|
1097
1281
|
const tag = reader.uint32();
|
|
1098
1282
|
switch (tag >>> 3) {
|
|
1099
1283
|
case 1: {
|
|
1100
|
-
if (tag !==
|
|
1284
|
+
if (tag !== 8) {
|
|
1101
1285
|
break;
|
|
1102
1286
|
}
|
|
1103
|
-
message.
|
|
1287
|
+
message.shared = reader.bool();
|
|
1104
1288
|
continue;
|
|
1105
1289
|
}
|
|
1106
1290
|
case 2: {
|
|
1107
|
-
if (tag !==
|
|
1108
|
-
break;
|
|
1109
|
-
}
|
|
1110
|
-
message.query = reader.string();
|
|
1111
|
-
continue;
|
|
1112
|
-
}
|
|
1113
|
-
case 3: {
|
|
1114
|
-
if (tag !== 26) {
|
|
1115
|
-
break;
|
|
1116
|
-
}
|
|
1117
|
-
message.postType = reader.string();
|
|
1118
|
-
continue;
|
|
1119
|
-
}
|
|
1120
|
-
case 4: {
|
|
1121
|
-
if (tag !== 32) {
|
|
1291
|
+
if (tag !== 16) {
|
|
1122
1292
|
break;
|
|
1123
1293
|
}
|
|
1124
|
-
message.
|
|
1294
|
+
message.sharesCount = longToNumber(reader.int64());
|
|
1125
1295
|
continue;
|
|
1126
1296
|
}
|
|
1127
1297
|
}
|
|
@@ -1134,57 +1304,51 @@ exports.SearchPostsRequest = {
|
|
|
1134
1304
|
},
|
|
1135
1305
|
fromJSON(object) {
|
|
1136
1306
|
return {
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
postType: isSet(object.postType) ? globalThis.String(object.postType) : "",
|
|
1140
|
-
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
1307
|
+
shared: isSet(object.shared) ? globalThis.Boolean(object.shared) : false,
|
|
1308
|
+
sharesCount: isSet(object.sharesCount) ? globalThis.Number(object.sharesCount) : 0,
|
|
1141
1309
|
};
|
|
1142
1310
|
},
|
|
1143
1311
|
toJSON(message) {
|
|
1144
1312
|
const obj = {};
|
|
1145
|
-
if (message.
|
|
1146
|
-
obj.
|
|
1147
|
-
}
|
|
1148
|
-
if (message.query !== "") {
|
|
1149
|
-
obj.query = message.query;
|
|
1150
|
-
}
|
|
1151
|
-
if (message.postType !== "") {
|
|
1152
|
-
obj.postType = message.postType;
|
|
1313
|
+
if (message.shared !== false) {
|
|
1314
|
+
obj.shared = message.shared;
|
|
1153
1315
|
}
|
|
1154
|
-
if (message.
|
|
1155
|
-
obj.
|
|
1316
|
+
if (message.sharesCount !== 0) {
|
|
1317
|
+
obj.sharesCount = Math.round(message.sharesCount);
|
|
1156
1318
|
}
|
|
1157
1319
|
return obj;
|
|
1158
1320
|
},
|
|
1159
1321
|
create(base) {
|
|
1160
|
-
return exports.
|
|
1322
|
+
return exports.SharePostResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1161
1323
|
},
|
|
1162
1324
|
fromPartial(object) {
|
|
1163
|
-
var _a, _b
|
|
1164
|
-
const message =
|
|
1165
|
-
message.
|
|
1166
|
-
|
|
1167
|
-
: undefined;
|
|
1168
|
-
message.query = (_a = object.query) !== null && _a !== void 0 ? _a : "";
|
|
1169
|
-
message.postType = (_b = object.postType) !== null && _b !== void 0 ? _b : "";
|
|
1170
|
-
message.limit = (_c = object.limit) !== null && _c !== void 0 ? _c : 0;
|
|
1325
|
+
var _a, _b;
|
|
1326
|
+
const message = createBaseSharePostResponse();
|
|
1327
|
+
message.shared = (_a = object.shared) !== null && _a !== void 0 ? _a : false;
|
|
1328
|
+
message.sharesCount = (_b = object.sharesCount) !== null && _b !== void 0 ? _b : 0;
|
|
1171
1329
|
return message;
|
|
1172
1330
|
},
|
|
1173
1331
|
};
|
|
1174
|
-
function
|
|
1175
|
-
return {
|
|
1332
|
+
function createBaseGetUserPostsRequest() {
|
|
1333
|
+
return { accountId: "", page: 0, pageSize: 0 };
|
|
1176
1334
|
}
|
|
1177
|
-
exports.
|
|
1335
|
+
exports.GetUserPostsRequest = {
|
|
1178
1336
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1179
|
-
if (message.
|
|
1180
|
-
writer.uint32(10).string(message.
|
|
1337
|
+
if (message.accountId !== "") {
|
|
1338
|
+
writer.uint32(10).string(message.accountId);
|
|
1339
|
+
}
|
|
1340
|
+
if (message.page !== 0) {
|
|
1341
|
+
writer.uint32(16).int32(message.page);
|
|
1342
|
+
}
|
|
1343
|
+
if (message.pageSize !== 0) {
|
|
1344
|
+
writer.uint32(24).int32(message.pageSize);
|
|
1181
1345
|
}
|
|
1182
1346
|
return writer;
|
|
1183
1347
|
},
|
|
1184
1348
|
decode(input, length) {
|
|
1185
1349
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1186
1350
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1187
|
-
const message =
|
|
1351
|
+
const message = createBaseGetUserPostsRequest();
|
|
1188
1352
|
while (reader.pos < end) {
|
|
1189
1353
|
const tag = reader.uint32();
|
|
1190
1354
|
switch (tag >>> 3) {
|
|
@@ -1192,7 +1356,21 @@ exports.SignPetitionRequest = {
|
|
|
1192
1356
|
if (tag !== 10) {
|
|
1193
1357
|
break;
|
|
1194
1358
|
}
|
|
1195
|
-
message.
|
|
1359
|
+
message.accountId = reader.string();
|
|
1360
|
+
continue;
|
|
1361
|
+
}
|
|
1362
|
+
case 2: {
|
|
1363
|
+
if (tag !== 16) {
|
|
1364
|
+
break;
|
|
1365
|
+
}
|
|
1366
|
+
message.page = reader.int32();
|
|
1367
|
+
continue;
|
|
1368
|
+
}
|
|
1369
|
+
case 3: {
|
|
1370
|
+
if (tag !== 24) {
|
|
1371
|
+
break;
|
|
1372
|
+
}
|
|
1373
|
+
message.pageSize = reader.int32();
|
|
1196
1374
|
continue;
|
|
1197
1375
|
}
|
|
1198
1376
|
}
|
|
@@ -1204,57 +1382,79 @@ exports.SignPetitionRequest = {
|
|
|
1204
1382
|
return message;
|
|
1205
1383
|
},
|
|
1206
1384
|
fromJSON(object) {
|
|
1207
|
-
return {
|
|
1385
|
+
return {
|
|
1386
|
+
accountId: isSet(object.accountId) ? globalThis.String(object.accountId) : "",
|
|
1387
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
1388
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
1389
|
+
};
|
|
1208
1390
|
},
|
|
1209
1391
|
toJSON(message) {
|
|
1210
1392
|
const obj = {};
|
|
1211
|
-
if (message.
|
|
1212
|
-
obj.
|
|
1393
|
+
if (message.accountId !== "") {
|
|
1394
|
+
obj.accountId = message.accountId;
|
|
1395
|
+
}
|
|
1396
|
+
if (message.page !== 0) {
|
|
1397
|
+
obj.page = Math.round(message.page);
|
|
1398
|
+
}
|
|
1399
|
+
if (message.pageSize !== 0) {
|
|
1400
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
1213
1401
|
}
|
|
1214
1402
|
return obj;
|
|
1215
1403
|
},
|
|
1216
1404
|
create(base) {
|
|
1217
|
-
return exports.
|
|
1405
|
+
return exports.GetUserPostsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1218
1406
|
},
|
|
1219
1407
|
fromPartial(object) {
|
|
1220
|
-
var _a;
|
|
1221
|
-
const message =
|
|
1222
|
-
message.
|
|
1408
|
+
var _a, _b, _c;
|
|
1409
|
+
const message = createBaseGetUserPostsRequest();
|
|
1410
|
+
message.accountId = (_a = object.accountId) !== null && _a !== void 0 ? _a : "";
|
|
1411
|
+
message.page = (_b = object.page) !== null && _b !== void 0 ? _b : 0;
|
|
1412
|
+
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
|
|
1223
1413
|
return message;
|
|
1224
1414
|
},
|
|
1225
1415
|
};
|
|
1226
|
-
function
|
|
1227
|
-
return {
|
|
1416
|
+
function createBaseGetUserRepliesRequest() {
|
|
1417
|
+
return { accountId: "", page: 0, pageSize: 0 };
|
|
1228
1418
|
}
|
|
1229
|
-
exports.
|
|
1419
|
+
exports.GetUserRepliesRequest = {
|
|
1230
1420
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1231
|
-
if (message.
|
|
1232
|
-
writer.uint32(
|
|
1421
|
+
if (message.accountId !== "") {
|
|
1422
|
+
writer.uint32(10).string(message.accountId);
|
|
1233
1423
|
}
|
|
1234
|
-
if (message.
|
|
1235
|
-
writer.uint32(16).
|
|
1424
|
+
if (message.page !== 0) {
|
|
1425
|
+
writer.uint32(16).int32(message.page);
|
|
1426
|
+
}
|
|
1427
|
+
if (message.pageSize !== 0) {
|
|
1428
|
+
writer.uint32(24).int32(message.pageSize);
|
|
1236
1429
|
}
|
|
1237
1430
|
return writer;
|
|
1238
1431
|
},
|
|
1239
1432
|
decode(input, length) {
|
|
1240
1433
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1241
1434
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1242
|
-
const message =
|
|
1435
|
+
const message = createBaseGetUserRepliesRequest();
|
|
1243
1436
|
while (reader.pos < end) {
|
|
1244
1437
|
const tag = reader.uint32();
|
|
1245
1438
|
switch (tag >>> 3) {
|
|
1246
1439
|
case 1: {
|
|
1247
|
-
if (tag !==
|
|
1440
|
+
if (tag !== 10) {
|
|
1248
1441
|
break;
|
|
1249
1442
|
}
|
|
1250
|
-
message.
|
|
1443
|
+
message.accountId = reader.string();
|
|
1251
1444
|
continue;
|
|
1252
1445
|
}
|
|
1253
1446
|
case 2: {
|
|
1254
1447
|
if (tag !== 16) {
|
|
1255
1448
|
break;
|
|
1256
1449
|
}
|
|
1257
|
-
message.
|
|
1450
|
+
message.page = reader.int32();
|
|
1451
|
+
continue;
|
|
1452
|
+
}
|
|
1453
|
+
case 3: {
|
|
1454
|
+
if (tag !== 24) {
|
|
1455
|
+
break;
|
|
1456
|
+
}
|
|
1457
|
+
message.pageSize = reader.int32();
|
|
1258
1458
|
continue;
|
|
1259
1459
|
}
|
|
1260
1460
|
}
|
|
@@ -1267,45 +1467,56 @@ exports.SignPetitionResponse = {
|
|
|
1267
1467
|
},
|
|
1268
1468
|
fromJSON(object) {
|
|
1269
1469
|
return {
|
|
1270
|
-
|
|
1271
|
-
|
|
1470
|
+
accountId: isSet(object.accountId) ? globalThis.String(object.accountId) : "",
|
|
1471
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
1472
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
1272
1473
|
};
|
|
1273
1474
|
},
|
|
1274
1475
|
toJSON(message) {
|
|
1275
1476
|
const obj = {};
|
|
1276
|
-
if (message.
|
|
1277
|
-
obj.
|
|
1477
|
+
if (message.accountId !== "") {
|
|
1478
|
+
obj.accountId = message.accountId;
|
|
1278
1479
|
}
|
|
1279
|
-
if (message.
|
|
1280
|
-
obj.
|
|
1480
|
+
if (message.page !== 0) {
|
|
1481
|
+
obj.page = Math.round(message.page);
|
|
1482
|
+
}
|
|
1483
|
+
if (message.pageSize !== 0) {
|
|
1484
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
1281
1485
|
}
|
|
1282
1486
|
return obj;
|
|
1283
1487
|
},
|
|
1284
1488
|
create(base) {
|
|
1285
|
-
return exports.
|
|
1489
|
+
return exports.GetUserRepliesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1286
1490
|
},
|
|
1287
1491
|
fromPartial(object) {
|
|
1288
|
-
var _a, _b;
|
|
1289
|
-
const message =
|
|
1290
|
-
message.
|
|
1291
|
-
message.
|
|
1492
|
+
var _a, _b, _c;
|
|
1493
|
+
const message = createBaseGetUserRepliesRequest();
|
|
1494
|
+
message.accountId = (_a = object.accountId) !== null && _a !== void 0 ? _a : "";
|
|
1495
|
+
message.page = (_b = object.page) !== null && _b !== void 0 ? _b : 0;
|
|
1496
|
+
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
|
|
1292
1497
|
return message;
|
|
1293
1498
|
},
|
|
1294
1499
|
};
|
|
1295
|
-
function
|
|
1296
|
-
return {
|
|
1500
|
+
function createBaseGetUserMediaRequest() {
|
|
1501
|
+
return { accountId: "", page: 0, pageSize: 0 };
|
|
1297
1502
|
}
|
|
1298
|
-
exports.
|
|
1503
|
+
exports.GetUserMediaRequest = {
|
|
1299
1504
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1300
|
-
if (message.
|
|
1301
|
-
writer.uint32(10).string(message.
|
|
1505
|
+
if (message.accountId !== "") {
|
|
1506
|
+
writer.uint32(10).string(message.accountId);
|
|
1507
|
+
}
|
|
1508
|
+
if (message.page !== 0) {
|
|
1509
|
+
writer.uint32(16).int32(message.page);
|
|
1510
|
+
}
|
|
1511
|
+
if (message.pageSize !== 0) {
|
|
1512
|
+
writer.uint32(24).int32(message.pageSize);
|
|
1302
1513
|
}
|
|
1303
1514
|
return writer;
|
|
1304
1515
|
},
|
|
1305
1516
|
decode(input, length) {
|
|
1306
1517
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1307
1518
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1308
|
-
const message =
|
|
1519
|
+
const message = createBaseGetUserMediaRequest();
|
|
1309
1520
|
while (reader.pos < end) {
|
|
1310
1521
|
const tag = reader.uint32();
|
|
1311
1522
|
switch (tag >>> 3) {
|
|
@@ -1313,7 +1524,21 @@ exports.UnsignPetitionRequest = {
|
|
|
1313
1524
|
if (tag !== 10) {
|
|
1314
1525
|
break;
|
|
1315
1526
|
}
|
|
1316
|
-
message.
|
|
1527
|
+
message.accountId = reader.string();
|
|
1528
|
+
continue;
|
|
1529
|
+
}
|
|
1530
|
+
case 2: {
|
|
1531
|
+
if (tag !== 16) {
|
|
1532
|
+
break;
|
|
1533
|
+
}
|
|
1534
|
+
message.page = reader.int32();
|
|
1535
|
+
continue;
|
|
1536
|
+
}
|
|
1537
|
+
case 3: {
|
|
1538
|
+
if (tag !== 24) {
|
|
1539
|
+
break;
|
|
1540
|
+
}
|
|
1541
|
+
message.pageSize = reader.int32();
|
|
1317
1542
|
continue;
|
|
1318
1543
|
}
|
|
1319
1544
|
}
|
|
@@ -1325,39 +1550,57 @@ exports.UnsignPetitionRequest = {
|
|
|
1325
1550
|
return message;
|
|
1326
1551
|
},
|
|
1327
1552
|
fromJSON(object) {
|
|
1328
|
-
return {
|
|
1553
|
+
return {
|
|
1554
|
+
accountId: isSet(object.accountId) ? globalThis.String(object.accountId) : "",
|
|
1555
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
1556
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
1557
|
+
};
|
|
1329
1558
|
},
|
|
1330
1559
|
toJSON(message) {
|
|
1331
1560
|
const obj = {};
|
|
1332
|
-
if (message.
|
|
1333
|
-
obj.
|
|
1561
|
+
if (message.accountId !== "") {
|
|
1562
|
+
obj.accountId = message.accountId;
|
|
1563
|
+
}
|
|
1564
|
+
if (message.page !== 0) {
|
|
1565
|
+
obj.page = Math.round(message.page);
|
|
1566
|
+
}
|
|
1567
|
+
if (message.pageSize !== 0) {
|
|
1568
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
1334
1569
|
}
|
|
1335
1570
|
return obj;
|
|
1336
1571
|
},
|
|
1337
1572
|
create(base) {
|
|
1338
|
-
return exports.
|
|
1573
|
+
return exports.GetUserMediaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1339
1574
|
},
|
|
1340
1575
|
fromPartial(object) {
|
|
1341
|
-
var _a;
|
|
1342
|
-
const message =
|
|
1343
|
-
message.
|
|
1576
|
+
var _a, _b, _c;
|
|
1577
|
+
const message = createBaseGetUserMediaRequest();
|
|
1578
|
+
message.accountId = (_a = object.accountId) !== null && _a !== void 0 ? _a : "";
|
|
1579
|
+
message.page = (_b = object.page) !== null && _b !== void 0 ? _b : 0;
|
|
1580
|
+
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
|
|
1344
1581
|
return message;
|
|
1345
1582
|
},
|
|
1346
1583
|
};
|
|
1347
|
-
function
|
|
1348
|
-
return {
|
|
1584
|
+
function createBaseGetUserLikesRequest() {
|
|
1585
|
+
return { accountId: "", page: 0, pageSize: 0 };
|
|
1349
1586
|
}
|
|
1350
|
-
exports.
|
|
1587
|
+
exports.GetUserLikesRequest = {
|
|
1351
1588
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1352
|
-
if (message.
|
|
1353
|
-
writer.uint32(10).string(message.
|
|
1589
|
+
if (message.accountId !== "") {
|
|
1590
|
+
writer.uint32(10).string(message.accountId);
|
|
1591
|
+
}
|
|
1592
|
+
if (message.page !== 0) {
|
|
1593
|
+
writer.uint32(16).int32(message.page);
|
|
1594
|
+
}
|
|
1595
|
+
if (message.pageSize !== 0) {
|
|
1596
|
+
writer.uint32(24).int32(message.pageSize);
|
|
1354
1597
|
}
|
|
1355
1598
|
return writer;
|
|
1356
1599
|
},
|
|
1357
1600
|
decode(input, length) {
|
|
1358
1601
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1359
1602
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1360
|
-
const message =
|
|
1603
|
+
const message = createBaseGetUserLikesRequest();
|
|
1361
1604
|
while (reader.pos < end) {
|
|
1362
1605
|
const tag = reader.uint32();
|
|
1363
1606
|
switch (tag >>> 3) {
|
|
@@ -1365,7 +1608,21 @@ exports.ApproveEyewitnessReportRequest = {
|
|
|
1365
1608
|
if (tag !== 10) {
|
|
1366
1609
|
break;
|
|
1367
1610
|
}
|
|
1368
|
-
message.
|
|
1611
|
+
message.accountId = reader.string();
|
|
1612
|
+
continue;
|
|
1613
|
+
}
|
|
1614
|
+
case 2: {
|
|
1615
|
+
if (tag !== 16) {
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
message.page = reader.int32();
|
|
1619
|
+
continue;
|
|
1620
|
+
}
|
|
1621
|
+
case 3: {
|
|
1622
|
+
if (tag !== 24) {
|
|
1623
|
+
break;
|
|
1624
|
+
}
|
|
1625
|
+
message.pageSize = reader.int32();
|
|
1369
1626
|
continue;
|
|
1370
1627
|
}
|
|
1371
1628
|
}
|
|
@@ -1377,57 +1634,79 @@ exports.ApproveEyewitnessReportRequest = {
|
|
|
1377
1634
|
return message;
|
|
1378
1635
|
},
|
|
1379
1636
|
fromJSON(object) {
|
|
1380
|
-
return {
|
|
1637
|
+
return {
|
|
1638
|
+
accountId: isSet(object.accountId) ? globalThis.String(object.accountId) : "",
|
|
1639
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
1640
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
1641
|
+
};
|
|
1381
1642
|
},
|
|
1382
1643
|
toJSON(message) {
|
|
1383
1644
|
const obj = {};
|
|
1384
|
-
if (message.
|
|
1385
|
-
obj.
|
|
1645
|
+
if (message.accountId !== "") {
|
|
1646
|
+
obj.accountId = message.accountId;
|
|
1647
|
+
}
|
|
1648
|
+
if (message.page !== 0) {
|
|
1649
|
+
obj.page = Math.round(message.page);
|
|
1650
|
+
}
|
|
1651
|
+
if (message.pageSize !== 0) {
|
|
1652
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
1386
1653
|
}
|
|
1387
1654
|
return obj;
|
|
1388
1655
|
},
|
|
1389
1656
|
create(base) {
|
|
1390
|
-
return exports.
|
|
1657
|
+
return exports.GetUserLikesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1391
1658
|
},
|
|
1392
1659
|
fromPartial(object) {
|
|
1393
|
-
var _a;
|
|
1394
|
-
const message =
|
|
1395
|
-
message.
|
|
1660
|
+
var _a, _b, _c;
|
|
1661
|
+
const message = createBaseGetUserLikesRequest();
|
|
1662
|
+
message.accountId = (_a = object.accountId) !== null && _a !== void 0 ? _a : "";
|
|
1663
|
+
message.page = (_b = object.page) !== null && _b !== void 0 ? _b : 0;
|
|
1664
|
+
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
|
|
1396
1665
|
return message;
|
|
1397
1666
|
},
|
|
1398
1667
|
};
|
|
1399
|
-
function
|
|
1400
|
-
return {
|
|
1668
|
+
function createBaseGetUserRepostsRequest() {
|
|
1669
|
+
return { accountId: "", page: 0, pageSize: 0 };
|
|
1401
1670
|
}
|
|
1402
|
-
exports.
|
|
1671
|
+
exports.GetUserRepostsRequest = {
|
|
1403
1672
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1404
|
-
if (message.
|
|
1405
|
-
writer.uint32(
|
|
1673
|
+
if (message.accountId !== "") {
|
|
1674
|
+
writer.uint32(10).string(message.accountId);
|
|
1406
1675
|
}
|
|
1407
|
-
if (message.
|
|
1408
|
-
writer.uint32(16).
|
|
1676
|
+
if (message.page !== 0) {
|
|
1677
|
+
writer.uint32(16).int32(message.page);
|
|
1678
|
+
}
|
|
1679
|
+
if (message.pageSize !== 0) {
|
|
1680
|
+
writer.uint32(24).int32(message.pageSize);
|
|
1409
1681
|
}
|
|
1410
1682
|
return writer;
|
|
1411
1683
|
},
|
|
1412
1684
|
decode(input, length) {
|
|
1413
1685
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1414
1686
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1415
|
-
const message =
|
|
1687
|
+
const message = createBaseGetUserRepostsRequest();
|
|
1416
1688
|
while (reader.pos < end) {
|
|
1417
1689
|
const tag = reader.uint32();
|
|
1418
1690
|
switch (tag >>> 3) {
|
|
1419
1691
|
case 1: {
|
|
1420
|
-
if (tag !==
|
|
1692
|
+
if (tag !== 10) {
|
|
1421
1693
|
break;
|
|
1422
1694
|
}
|
|
1423
|
-
message.
|
|
1695
|
+
message.accountId = reader.string();
|
|
1424
1696
|
continue;
|
|
1425
1697
|
}
|
|
1426
1698
|
case 2: {
|
|
1427
1699
|
if (tag !== 16) {
|
|
1428
1700
|
break;
|
|
1429
1701
|
}
|
|
1430
|
-
message.
|
|
1702
|
+
message.page = reader.int32();
|
|
1703
|
+
continue;
|
|
1704
|
+
}
|
|
1705
|
+
case 3: {
|
|
1706
|
+
if (tag !== 24) {
|
|
1707
|
+
break;
|
|
1708
|
+
}
|
|
1709
|
+
message.pageSize = reader.int32();
|
|
1431
1710
|
continue;
|
|
1432
1711
|
}
|
|
1433
1712
|
}
|
|
@@ -1440,35 +1719,40 @@ exports.ApproveEyewitnessReportResponse = {
|
|
|
1440
1719
|
},
|
|
1441
1720
|
fromJSON(object) {
|
|
1442
1721
|
return {
|
|
1443
|
-
|
|
1444
|
-
|
|
1722
|
+
accountId: isSet(object.accountId) ? globalThis.String(object.accountId) : "",
|
|
1723
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
1724
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
1445
1725
|
};
|
|
1446
1726
|
},
|
|
1447
1727
|
toJSON(message) {
|
|
1448
1728
|
const obj = {};
|
|
1449
|
-
if (message.
|
|
1450
|
-
obj.
|
|
1729
|
+
if (message.accountId !== "") {
|
|
1730
|
+
obj.accountId = message.accountId;
|
|
1451
1731
|
}
|
|
1452
|
-
if (message.
|
|
1453
|
-
obj.
|
|
1732
|
+
if (message.page !== 0) {
|
|
1733
|
+
obj.page = Math.round(message.page);
|
|
1734
|
+
}
|
|
1735
|
+
if (message.pageSize !== 0) {
|
|
1736
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
1454
1737
|
}
|
|
1455
1738
|
return obj;
|
|
1456
1739
|
},
|
|
1457
1740
|
create(base) {
|
|
1458
|
-
return exports.
|
|
1741
|
+
return exports.GetUserRepostsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1459
1742
|
},
|
|
1460
1743
|
fromPartial(object) {
|
|
1461
|
-
var _a, _b;
|
|
1462
|
-
const message =
|
|
1463
|
-
message.
|
|
1464
|
-
message.
|
|
1744
|
+
var _a, _b, _c;
|
|
1745
|
+
const message = createBaseGetUserRepostsRequest();
|
|
1746
|
+
message.accountId = (_a = object.accountId) !== null && _a !== void 0 ? _a : "";
|
|
1747
|
+
message.page = (_b = object.page) !== null && _b !== void 0 ? _b : 0;
|
|
1748
|
+
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
|
|
1465
1749
|
return message;
|
|
1466
1750
|
},
|
|
1467
1751
|
};
|
|
1468
|
-
function
|
|
1752
|
+
function createBaseUnrepostRequest() {
|
|
1469
1753
|
return { postId: "" };
|
|
1470
1754
|
}
|
|
1471
|
-
exports.
|
|
1755
|
+
exports.UnrepostRequest = {
|
|
1472
1756
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1473
1757
|
if (message.postId !== "") {
|
|
1474
1758
|
writer.uint32(10).string(message.postId);
|
|
@@ -1478,7 +1762,7 @@ exports.UnapproveEyewitnessReportRequest = {
|
|
|
1478
1762
|
decode(input, length) {
|
|
1479
1763
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1480
1764
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1481
|
-
const message =
|
|
1765
|
+
const message = createBaseUnrepostRequest();
|
|
1482
1766
|
while (reader.pos < end) {
|
|
1483
1767
|
const tag = reader.uint32();
|
|
1484
1768
|
switch (tag >>> 3) {
|
|
@@ -1508,75 +1792,38 @@ exports.UnapproveEyewitnessReportRequest = {
|
|
|
1508
1792
|
return obj;
|
|
1509
1793
|
},
|
|
1510
1794
|
create(base) {
|
|
1511
|
-
return exports.
|
|
1795
|
+
return exports.UnrepostRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1512
1796
|
},
|
|
1513
1797
|
fromPartial(object) {
|
|
1514
1798
|
var _a;
|
|
1515
|
-
const message =
|
|
1799
|
+
const message = createBaseUnrepostRequest();
|
|
1516
1800
|
message.postId = (_a = object.postId) !== null && _a !== void 0 ? _a : "";
|
|
1517
1801
|
return message;
|
|
1518
1802
|
},
|
|
1519
1803
|
};
|
|
1520
|
-
function
|
|
1521
|
-
return {
|
|
1522
|
-
id: "",
|
|
1523
|
-
postType: "",
|
|
1524
|
-
title: "",
|
|
1525
|
-
context: "",
|
|
1526
|
-
media: [],
|
|
1527
|
-
creatorId: "",
|
|
1528
|
-
creator: undefined,
|
|
1529
|
-
status: "",
|
|
1530
|
-
createdAt: "",
|
|
1531
|
-
updatedAt: "",
|
|
1532
|
-
engagement: undefined,
|
|
1533
|
-
userStatus: undefined,
|
|
1534
|
-
};
|
|
1804
|
+
function createBaseSearchPostsRequest() {
|
|
1805
|
+
return { base: undefined, query: "", postType: "", limit: 0 };
|
|
1535
1806
|
}
|
|
1536
|
-
exports.
|
|
1807
|
+
exports.SearchPostsRequest = {
|
|
1537
1808
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1538
|
-
if (message.
|
|
1539
|
-
writer.uint32(10).
|
|
1540
|
-
}
|
|
1541
|
-
if (message.postType !== "") {
|
|
1542
|
-
writer.uint32(18).string(message.postType);
|
|
1543
|
-
}
|
|
1544
|
-
if (message.title !== "") {
|
|
1545
|
-
writer.uint32(26).string(message.title);
|
|
1546
|
-
}
|
|
1547
|
-
if (message.context !== "") {
|
|
1548
|
-
writer.uint32(34).string(message.context);
|
|
1549
|
-
}
|
|
1550
|
-
for (const v of message.media) {
|
|
1551
|
-
writer.uint32(42).string(v);
|
|
1552
|
-
}
|
|
1553
|
-
if (message.creatorId !== "") {
|
|
1554
|
-
writer.uint32(50).string(message.creatorId);
|
|
1555
|
-
}
|
|
1556
|
-
if (message.creator !== undefined) {
|
|
1557
|
-
exports.Creator.encode(message.creator, writer.uint32(58).fork()).join();
|
|
1558
|
-
}
|
|
1559
|
-
if (message.status !== "") {
|
|
1560
|
-
writer.uint32(66).string(message.status);
|
|
1561
|
-
}
|
|
1562
|
-
if (message.createdAt !== "") {
|
|
1563
|
-
writer.uint32(74).string(message.createdAt);
|
|
1809
|
+
if (message.base !== undefined) {
|
|
1810
|
+
common_1.BaseListRequest.encode(message.base, writer.uint32(10).fork()).join();
|
|
1564
1811
|
}
|
|
1565
|
-
if (message.
|
|
1566
|
-
writer.uint32(
|
|
1812
|
+
if (message.query !== "") {
|
|
1813
|
+
writer.uint32(18).string(message.query);
|
|
1567
1814
|
}
|
|
1568
|
-
if (message.
|
|
1569
|
-
|
|
1815
|
+
if (message.postType !== "") {
|
|
1816
|
+
writer.uint32(26).string(message.postType);
|
|
1570
1817
|
}
|
|
1571
|
-
if (message.
|
|
1572
|
-
|
|
1818
|
+
if (message.limit !== 0) {
|
|
1819
|
+
writer.uint32(32).int32(message.limit);
|
|
1573
1820
|
}
|
|
1574
1821
|
return writer;
|
|
1575
1822
|
},
|
|
1576
1823
|
decode(input, length) {
|
|
1577
1824
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1578
1825
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1579
|
-
const message =
|
|
1826
|
+
const message = createBaseSearchPostsRequest();
|
|
1580
1827
|
while (reader.pos < end) {
|
|
1581
1828
|
const tag = reader.uint32();
|
|
1582
1829
|
switch (tag >>> 3) {
|
|
@@ -1584,84 +1831,28 @@ exports.Post = {
|
|
|
1584
1831
|
if (tag !== 10) {
|
|
1585
1832
|
break;
|
|
1586
1833
|
}
|
|
1587
|
-
message.
|
|
1834
|
+
message.base = common_1.BaseListRequest.decode(reader, reader.uint32());
|
|
1588
1835
|
continue;
|
|
1589
1836
|
}
|
|
1590
1837
|
case 2: {
|
|
1591
1838
|
if (tag !== 18) {
|
|
1592
1839
|
break;
|
|
1593
1840
|
}
|
|
1594
|
-
message.
|
|
1841
|
+
message.query = reader.string();
|
|
1595
1842
|
continue;
|
|
1596
1843
|
}
|
|
1597
1844
|
case 3: {
|
|
1598
1845
|
if (tag !== 26) {
|
|
1599
1846
|
break;
|
|
1600
1847
|
}
|
|
1601
|
-
message.
|
|
1848
|
+
message.postType = reader.string();
|
|
1602
1849
|
continue;
|
|
1603
1850
|
}
|
|
1604
1851
|
case 4: {
|
|
1605
|
-
if (tag !==
|
|
1606
|
-
break;
|
|
1607
|
-
}
|
|
1608
|
-
message.context = reader.string();
|
|
1609
|
-
continue;
|
|
1610
|
-
}
|
|
1611
|
-
case 5: {
|
|
1612
|
-
if (tag !== 42) {
|
|
1613
|
-
break;
|
|
1614
|
-
}
|
|
1615
|
-
message.media.push(reader.string());
|
|
1616
|
-
continue;
|
|
1617
|
-
}
|
|
1618
|
-
case 6: {
|
|
1619
|
-
if (tag !== 50) {
|
|
1620
|
-
break;
|
|
1621
|
-
}
|
|
1622
|
-
message.creatorId = reader.string();
|
|
1623
|
-
continue;
|
|
1624
|
-
}
|
|
1625
|
-
case 7: {
|
|
1626
|
-
if (tag !== 58) {
|
|
1627
|
-
break;
|
|
1628
|
-
}
|
|
1629
|
-
message.creator = exports.Creator.decode(reader, reader.uint32());
|
|
1630
|
-
continue;
|
|
1631
|
-
}
|
|
1632
|
-
case 8: {
|
|
1633
|
-
if (tag !== 66) {
|
|
1634
|
-
break;
|
|
1635
|
-
}
|
|
1636
|
-
message.status = reader.string();
|
|
1637
|
-
continue;
|
|
1638
|
-
}
|
|
1639
|
-
case 9: {
|
|
1640
|
-
if (tag !== 74) {
|
|
1641
|
-
break;
|
|
1642
|
-
}
|
|
1643
|
-
message.createdAt = reader.string();
|
|
1644
|
-
continue;
|
|
1645
|
-
}
|
|
1646
|
-
case 10: {
|
|
1647
|
-
if (tag !== 82) {
|
|
1648
|
-
break;
|
|
1649
|
-
}
|
|
1650
|
-
message.updatedAt = reader.string();
|
|
1651
|
-
continue;
|
|
1652
|
-
}
|
|
1653
|
-
case 11: {
|
|
1654
|
-
if (tag !== 90) {
|
|
1655
|
-
break;
|
|
1656
|
-
}
|
|
1657
|
-
message.engagement = exports.PostEngagement.decode(reader, reader.uint32());
|
|
1658
|
-
continue;
|
|
1659
|
-
}
|
|
1660
|
-
case 12: {
|
|
1661
|
-
if (tag !== 98) {
|
|
1852
|
+
if (tag !== 32) {
|
|
1662
1853
|
break;
|
|
1663
1854
|
}
|
|
1664
|
-
message.
|
|
1855
|
+
message.limit = reader.int32();
|
|
1665
1856
|
continue;
|
|
1666
1857
|
}
|
|
1667
1858
|
}
|
|
@@ -1674,111 +1865,57 @@ exports.Post = {
|
|
|
1674
1865
|
},
|
|
1675
1866
|
fromJSON(object) {
|
|
1676
1867
|
return {
|
|
1677
|
-
|
|
1868
|
+
base: isSet(object.base) ? common_1.BaseListRequest.fromJSON(object.base) : undefined,
|
|
1869
|
+
query: isSet(object.query) ? globalThis.String(object.query) : "",
|
|
1678
1870
|
postType: isSet(object.postType) ? globalThis.String(object.postType) : "",
|
|
1679
|
-
|
|
1680
|
-
context: isSet(object.context) ? globalThis.String(object.context) : "",
|
|
1681
|
-
media: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.media) ? object.media.map((e) => globalThis.String(e)) : [],
|
|
1682
|
-
creatorId: isSet(object.creatorId) ? globalThis.String(object.creatorId) : "",
|
|
1683
|
-
creator: isSet(object.creator) ? exports.Creator.fromJSON(object.creator) : undefined,
|
|
1684
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
1685
|
-
createdAt: isSet(object.createdAt) ? globalThis.String(object.createdAt) : "",
|
|
1686
|
-
updatedAt: isSet(object.updatedAt) ? globalThis.String(object.updatedAt) : "",
|
|
1687
|
-
engagement: isSet(object.engagement) ? exports.PostEngagement.fromJSON(object.engagement) : undefined,
|
|
1688
|
-
userStatus: isSet(object.userStatus) ? exports.PostUserStatus.fromJSON(object.userStatus) : undefined,
|
|
1871
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
1689
1872
|
};
|
|
1690
1873
|
},
|
|
1691
1874
|
toJSON(message) {
|
|
1692
|
-
var _a;
|
|
1693
1875
|
const obj = {};
|
|
1694
|
-
if (message.
|
|
1695
|
-
obj.
|
|
1876
|
+
if (message.base !== undefined) {
|
|
1877
|
+
obj.base = common_1.BaseListRequest.toJSON(message.base);
|
|
1878
|
+
}
|
|
1879
|
+
if (message.query !== "") {
|
|
1880
|
+
obj.query = message.query;
|
|
1696
1881
|
}
|
|
1697
1882
|
if (message.postType !== "") {
|
|
1698
1883
|
obj.postType = message.postType;
|
|
1699
1884
|
}
|
|
1700
|
-
if (message.
|
|
1701
|
-
obj.
|
|
1702
|
-
}
|
|
1703
|
-
if (message.context !== "") {
|
|
1704
|
-
obj.context = message.context;
|
|
1705
|
-
}
|
|
1706
|
-
if ((_a = message.media) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1707
|
-
obj.media = message.media;
|
|
1708
|
-
}
|
|
1709
|
-
if (message.creatorId !== "") {
|
|
1710
|
-
obj.creatorId = message.creatorId;
|
|
1711
|
-
}
|
|
1712
|
-
if (message.creator !== undefined) {
|
|
1713
|
-
obj.creator = exports.Creator.toJSON(message.creator);
|
|
1714
|
-
}
|
|
1715
|
-
if (message.status !== "") {
|
|
1716
|
-
obj.status = message.status;
|
|
1717
|
-
}
|
|
1718
|
-
if (message.createdAt !== "") {
|
|
1719
|
-
obj.createdAt = message.createdAt;
|
|
1720
|
-
}
|
|
1721
|
-
if (message.updatedAt !== "") {
|
|
1722
|
-
obj.updatedAt = message.updatedAt;
|
|
1723
|
-
}
|
|
1724
|
-
if (message.engagement !== undefined) {
|
|
1725
|
-
obj.engagement = exports.PostEngagement.toJSON(message.engagement);
|
|
1726
|
-
}
|
|
1727
|
-
if (message.userStatus !== undefined) {
|
|
1728
|
-
obj.userStatus = exports.PostUserStatus.toJSON(message.userStatus);
|
|
1885
|
+
if (message.limit !== 0) {
|
|
1886
|
+
obj.limit = Math.round(message.limit);
|
|
1729
1887
|
}
|
|
1730
1888
|
return obj;
|
|
1731
1889
|
},
|
|
1732
1890
|
create(base) {
|
|
1733
|
-
return exports.
|
|
1891
|
+
return exports.SearchPostsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1734
1892
|
},
|
|
1735
1893
|
fromPartial(object) {
|
|
1736
|
-
var _a, _b, _c
|
|
1737
|
-
const message =
|
|
1738
|
-
message.
|
|
1739
|
-
|
|
1740
|
-
message.title = (_c = object.title) !== null && _c !== void 0 ? _c : "";
|
|
1741
|
-
message.context = (_d = object.context) !== null && _d !== void 0 ? _d : "";
|
|
1742
|
-
message.media = ((_e = object.media) === null || _e === void 0 ? void 0 : _e.map((e) => e)) || [];
|
|
1743
|
-
message.creatorId = (_f = object.creatorId) !== null && _f !== void 0 ? _f : "";
|
|
1744
|
-
message.creator = (object.creator !== undefined && object.creator !== null)
|
|
1745
|
-
? exports.Creator.fromPartial(object.creator)
|
|
1746
|
-
: undefined;
|
|
1747
|
-
message.status = (_g = object.status) !== null && _g !== void 0 ? _g : "";
|
|
1748
|
-
message.createdAt = (_h = object.createdAt) !== null && _h !== void 0 ? _h : "";
|
|
1749
|
-
message.updatedAt = (_j = object.updatedAt) !== null && _j !== void 0 ? _j : "";
|
|
1750
|
-
message.engagement = (object.engagement !== undefined && object.engagement !== null)
|
|
1751
|
-
? exports.PostEngagement.fromPartial(object.engagement)
|
|
1752
|
-
: undefined;
|
|
1753
|
-
message.userStatus = (object.userStatus !== undefined && object.userStatus !== null)
|
|
1754
|
-
? exports.PostUserStatus.fromPartial(object.userStatus)
|
|
1894
|
+
var _a, _b, _c;
|
|
1895
|
+
const message = createBaseSearchPostsRequest();
|
|
1896
|
+
message.base = (object.base !== undefined && object.base !== null)
|
|
1897
|
+
? common_1.BaseListRequest.fromPartial(object.base)
|
|
1755
1898
|
: undefined;
|
|
1899
|
+
message.query = (_a = object.query) !== null && _a !== void 0 ? _a : "";
|
|
1900
|
+
message.postType = (_b = object.postType) !== null && _b !== void 0 ? _b : "";
|
|
1901
|
+
message.limit = (_c = object.limit) !== null && _c !== void 0 ? _c : 0;
|
|
1756
1902
|
return message;
|
|
1757
1903
|
},
|
|
1758
1904
|
};
|
|
1759
|
-
function
|
|
1760
|
-
return {
|
|
1905
|
+
function createBaseSignPetitionRequest() {
|
|
1906
|
+
return { postId: "" };
|
|
1761
1907
|
}
|
|
1762
|
-
exports.
|
|
1908
|
+
exports.SignPetitionRequest = {
|
|
1763
1909
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1764
|
-
if (message.
|
|
1765
|
-
writer.uint32(10).string(message.
|
|
1766
|
-
}
|
|
1767
|
-
if (message.name !== "") {
|
|
1768
|
-
writer.uint32(18).string(message.name);
|
|
1769
|
-
}
|
|
1770
|
-
if (message.email !== "") {
|
|
1771
|
-
writer.uint32(26).string(message.email);
|
|
1772
|
-
}
|
|
1773
|
-
if (message.photoUrl !== "") {
|
|
1774
|
-
writer.uint32(34).string(message.photoUrl);
|
|
1910
|
+
if (message.postId !== "") {
|
|
1911
|
+
writer.uint32(10).string(message.postId);
|
|
1775
1912
|
}
|
|
1776
1913
|
return writer;
|
|
1777
1914
|
},
|
|
1778
1915
|
decode(input, length) {
|
|
1779
1916
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1780
1917
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1781
|
-
const message =
|
|
1918
|
+
const message = createBaseSignPetitionRequest();
|
|
1782
1919
|
while (reader.pos < end) {
|
|
1783
1920
|
const tag = reader.uint32();
|
|
1784
1921
|
switch (tag >>> 3) {
|
|
@@ -1786,28 +1923,1103 @@ exports.Creator = {
|
|
|
1786
1923
|
if (tag !== 10) {
|
|
1787
1924
|
break;
|
|
1788
1925
|
}
|
|
1789
|
-
message.
|
|
1790
|
-
continue;
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1926
|
+
message.postId = reader.string();
|
|
1927
|
+
continue;
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1931
|
+
break;
|
|
1932
|
+
}
|
|
1933
|
+
reader.skip(tag & 7);
|
|
1934
|
+
}
|
|
1935
|
+
return message;
|
|
1936
|
+
},
|
|
1937
|
+
fromJSON(object) {
|
|
1938
|
+
return { postId: isSet(object.postId) ? globalThis.String(object.postId) : "" };
|
|
1939
|
+
},
|
|
1940
|
+
toJSON(message) {
|
|
1941
|
+
const obj = {};
|
|
1942
|
+
if (message.postId !== "") {
|
|
1943
|
+
obj.postId = message.postId;
|
|
1944
|
+
}
|
|
1945
|
+
return obj;
|
|
1946
|
+
},
|
|
1947
|
+
create(base) {
|
|
1948
|
+
return exports.SignPetitionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1949
|
+
},
|
|
1950
|
+
fromPartial(object) {
|
|
1951
|
+
var _a;
|
|
1952
|
+
const message = createBaseSignPetitionRequest();
|
|
1953
|
+
message.postId = (_a = object.postId) !== null && _a !== void 0 ? _a : "";
|
|
1954
|
+
return message;
|
|
1955
|
+
},
|
|
1956
|
+
};
|
|
1957
|
+
function createBaseSignPetitionResponse() {
|
|
1958
|
+
return { signed: false, signaturesCount: 0 };
|
|
1959
|
+
}
|
|
1960
|
+
exports.SignPetitionResponse = {
|
|
1961
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1962
|
+
if (message.signed !== false) {
|
|
1963
|
+
writer.uint32(8).bool(message.signed);
|
|
1964
|
+
}
|
|
1965
|
+
if (message.signaturesCount !== 0) {
|
|
1966
|
+
writer.uint32(16).int64(message.signaturesCount);
|
|
1967
|
+
}
|
|
1968
|
+
return writer;
|
|
1969
|
+
},
|
|
1970
|
+
decode(input, length) {
|
|
1971
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1972
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1973
|
+
const message = createBaseSignPetitionResponse();
|
|
1974
|
+
while (reader.pos < end) {
|
|
1975
|
+
const tag = reader.uint32();
|
|
1976
|
+
switch (tag >>> 3) {
|
|
1977
|
+
case 1: {
|
|
1978
|
+
if (tag !== 8) {
|
|
1979
|
+
break;
|
|
1980
|
+
}
|
|
1981
|
+
message.signed = reader.bool();
|
|
1982
|
+
continue;
|
|
1983
|
+
}
|
|
1984
|
+
case 2: {
|
|
1985
|
+
if (tag !== 16) {
|
|
1986
|
+
break;
|
|
1987
|
+
}
|
|
1988
|
+
message.signaturesCount = longToNumber(reader.int64());
|
|
1989
|
+
continue;
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1993
|
+
break;
|
|
1994
|
+
}
|
|
1995
|
+
reader.skip(tag & 7);
|
|
1996
|
+
}
|
|
1997
|
+
return message;
|
|
1998
|
+
},
|
|
1999
|
+
fromJSON(object) {
|
|
2000
|
+
return {
|
|
2001
|
+
signed: isSet(object.signed) ? globalThis.Boolean(object.signed) : false,
|
|
2002
|
+
signaturesCount: isSet(object.signaturesCount) ? globalThis.Number(object.signaturesCount) : 0,
|
|
2003
|
+
};
|
|
2004
|
+
},
|
|
2005
|
+
toJSON(message) {
|
|
2006
|
+
const obj = {};
|
|
2007
|
+
if (message.signed !== false) {
|
|
2008
|
+
obj.signed = message.signed;
|
|
2009
|
+
}
|
|
2010
|
+
if (message.signaturesCount !== 0) {
|
|
2011
|
+
obj.signaturesCount = Math.round(message.signaturesCount);
|
|
2012
|
+
}
|
|
2013
|
+
return obj;
|
|
2014
|
+
},
|
|
2015
|
+
create(base) {
|
|
2016
|
+
return exports.SignPetitionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2017
|
+
},
|
|
2018
|
+
fromPartial(object) {
|
|
2019
|
+
var _a, _b;
|
|
2020
|
+
const message = createBaseSignPetitionResponse();
|
|
2021
|
+
message.signed = (_a = object.signed) !== null && _a !== void 0 ? _a : false;
|
|
2022
|
+
message.signaturesCount = (_b = object.signaturesCount) !== null && _b !== void 0 ? _b : 0;
|
|
2023
|
+
return message;
|
|
2024
|
+
},
|
|
2025
|
+
};
|
|
2026
|
+
function createBaseUnsignPetitionRequest() {
|
|
2027
|
+
return { postId: "" };
|
|
2028
|
+
}
|
|
2029
|
+
exports.UnsignPetitionRequest = {
|
|
2030
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2031
|
+
if (message.postId !== "") {
|
|
2032
|
+
writer.uint32(10).string(message.postId);
|
|
2033
|
+
}
|
|
2034
|
+
return writer;
|
|
2035
|
+
},
|
|
2036
|
+
decode(input, length) {
|
|
2037
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2038
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2039
|
+
const message = createBaseUnsignPetitionRequest();
|
|
2040
|
+
while (reader.pos < end) {
|
|
2041
|
+
const tag = reader.uint32();
|
|
2042
|
+
switch (tag >>> 3) {
|
|
2043
|
+
case 1: {
|
|
2044
|
+
if (tag !== 10) {
|
|
2045
|
+
break;
|
|
2046
|
+
}
|
|
2047
|
+
message.postId = reader.string();
|
|
2048
|
+
continue;
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2052
|
+
break;
|
|
2053
|
+
}
|
|
2054
|
+
reader.skip(tag & 7);
|
|
2055
|
+
}
|
|
2056
|
+
return message;
|
|
2057
|
+
},
|
|
2058
|
+
fromJSON(object) {
|
|
2059
|
+
return { postId: isSet(object.postId) ? globalThis.String(object.postId) : "" };
|
|
2060
|
+
},
|
|
2061
|
+
toJSON(message) {
|
|
2062
|
+
const obj = {};
|
|
2063
|
+
if (message.postId !== "") {
|
|
2064
|
+
obj.postId = message.postId;
|
|
2065
|
+
}
|
|
2066
|
+
return obj;
|
|
2067
|
+
},
|
|
2068
|
+
create(base) {
|
|
2069
|
+
return exports.UnsignPetitionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2070
|
+
},
|
|
2071
|
+
fromPartial(object) {
|
|
2072
|
+
var _a;
|
|
2073
|
+
const message = createBaseUnsignPetitionRequest();
|
|
2074
|
+
message.postId = (_a = object.postId) !== null && _a !== void 0 ? _a : "";
|
|
2075
|
+
return message;
|
|
2076
|
+
},
|
|
2077
|
+
};
|
|
2078
|
+
function createBaseApproveEyewitnessReportRequest() {
|
|
2079
|
+
return { postId: "" };
|
|
2080
|
+
}
|
|
2081
|
+
exports.ApproveEyewitnessReportRequest = {
|
|
2082
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2083
|
+
if (message.postId !== "") {
|
|
2084
|
+
writer.uint32(10).string(message.postId);
|
|
2085
|
+
}
|
|
2086
|
+
return writer;
|
|
2087
|
+
},
|
|
2088
|
+
decode(input, length) {
|
|
2089
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2090
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2091
|
+
const message = createBaseApproveEyewitnessReportRequest();
|
|
2092
|
+
while (reader.pos < end) {
|
|
2093
|
+
const tag = reader.uint32();
|
|
2094
|
+
switch (tag >>> 3) {
|
|
2095
|
+
case 1: {
|
|
2096
|
+
if (tag !== 10) {
|
|
2097
|
+
break;
|
|
2098
|
+
}
|
|
2099
|
+
message.postId = reader.string();
|
|
2100
|
+
continue;
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2104
|
+
break;
|
|
2105
|
+
}
|
|
2106
|
+
reader.skip(tag & 7);
|
|
2107
|
+
}
|
|
2108
|
+
return message;
|
|
2109
|
+
},
|
|
2110
|
+
fromJSON(object) {
|
|
2111
|
+
return { postId: isSet(object.postId) ? globalThis.String(object.postId) : "" };
|
|
2112
|
+
},
|
|
2113
|
+
toJSON(message) {
|
|
2114
|
+
const obj = {};
|
|
2115
|
+
if (message.postId !== "") {
|
|
2116
|
+
obj.postId = message.postId;
|
|
2117
|
+
}
|
|
2118
|
+
return obj;
|
|
2119
|
+
},
|
|
2120
|
+
create(base) {
|
|
2121
|
+
return exports.ApproveEyewitnessReportRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2122
|
+
},
|
|
2123
|
+
fromPartial(object) {
|
|
2124
|
+
var _a;
|
|
2125
|
+
const message = createBaseApproveEyewitnessReportRequest();
|
|
2126
|
+
message.postId = (_a = object.postId) !== null && _a !== void 0 ? _a : "";
|
|
2127
|
+
return message;
|
|
2128
|
+
},
|
|
2129
|
+
};
|
|
2130
|
+
function createBaseApproveEyewitnessReportResponse() {
|
|
2131
|
+
return { approved: false, approvalsCount: 0 };
|
|
2132
|
+
}
|
|
2133
|
+
exports.ApproveEyewitnessReportResponse = {
|
|
2134
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2135
|
+
if (message.approved !== false) {
|
|
2136
|
+
writer.uint32(8).bool(message.approved);
|
|
2137
|
+
}
|
|
2138
|
+
if (message.approvalsCount !== 0) {
|
|
2139
|
+
writer.uint32(16).int64(message.approvalsCount);
|
|
2140
|
+
}
|
|
2141
|
+
return writer;
|
|
2142
|
+
},
|
|
2143
|
+
decode(input, length) {
|
|
2144
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2145
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2146
|
+
const message = createBaseApproveEyewitnessReportResponse();
|
|
2147
|
+
while (reader.pos < end) {
|
|
2148
|
+
const tag = reader.uint32();
|
|
2149
|
+
switch (tag >>> 3) {
|
|
2150
|
+
case 1: {
|
|
2151
|
+
if (tag !== 8) {
|
|
2152
|
+
break;
|
|
2153
|
+
}
|
|
2154
|
+
message.approved = reader.bool();
|
|
2155
|
+
continue;
|
|
2156
|
+
}
|
|
2157
|
+
case 2: {
|
|
2158
|
+
if (tag !== 16) {
|
|
2159
|
+
break;
|
|
2160
|
+
}
|
|
2161
|
+
message.approvalsCount = longToNumber(reader.int64());
|
|
2162
|
+
continue;
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2166
|
+
break;
|
|
2167
|
+
}
|
|
2168
|
+
reader.skip(tag & 7);
|
|
2169
|
+
}
|
|
2170
|
+
return message;
|
|
2171
|
+
},
|
|
2172
|
+
fromJSON(object) {
|
|
2173
|
+
return {
|
|
2174
|
+
approved: isSet(object.approved) ? globalThis.Boolean(object.approved) : false,
|
|
2175
|
+
approvalsCount: isSet(object.approvalsCount) ? globalThis.Number(object.approvalsCount) : 0,
|
|
2176
|
+
};
|
|
2177
|
+
},
|
|
2178
|
+
toJSON(message) {
|
|
2179
|
+
const obj = {};
|
|
2180
|
+
if (message.approved !== false) {
|
|
2181
|
+
obj.approved = message.approved;
|
|
2182
|
+
}
|
|
2183
|
+
if (message.approvalsCount !== 0) {
|
|
2184
|
+
obj.approvalsCount = Math.round(message.approvalsCount);
|
|
2185
|
+
}
|
|
2186
|
+
return obj;
|
|
2187
|
+
},
|
|
2188
|
+
create(base) {
|
|
2189
|
+
return exports.ApproveEyewitnessReportResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2190
|
+
},
|
|
2191
|
+
fromPartial(object) {
|
|
2192
|
+
var _a, _b;
|
|
2193
|
+
const message = createBaseApproveEyewitnessReportResponse();
|
|
2194
|
+
message.approved = (_a = object.approved) !== null && _a !== void 0 ? _a : false;
|
|
2195
|
+
message.approvalsCount = (_b = object.approvalsCount) !== null && _b !== void 0 ? _b : 0;
|
|
2196
|
+
return message;
|
|
2197
|
+
},
|
|
2198
|
+
};
|
|
2199
|
+
function createBaseUnapproveEyewitnessReportRequest() {
|
|
2200
|
+
return { postId: "" };
|
|
2201
|
+
}
|
|
2202
|
+
exports.UnapproveEyewitnessReportRequest = {
|
|
2203
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2204
|
+
if (message.postId !== "") {
|
|
2205
|
+
writer.uint32(10).string(message.postId);
|
|
2206
|
+
}
|
|
2207
|
+
return writer;
|
|
2208
|
+
},
|
|
2209
|
+
decode(input, length) {
|
|
2210
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2211
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2212
|
+
const message = createBaseUnapproveEyewitnessReportRequest();
|
|
2213
|
+
while (reader.pos < end) {
|
|
2214
|
+
const tag = reader.uint32();
|
|
2215
|
+
switch (tag >>> 3) {
|
|
2216
|
+
case 1: {
|
|
2217
|
+
if (tag !== 10) {
|
|
2218
|
+
break;
|
|
2219
|
+
}
|
|
2220
|
+
message.postId = reader.string();
|
|
2221
|
+
continue;
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2225
|
+
break;
|
|
2226
|
+
}
|
|
2227
|
+
reader.skip(tag & 7);
|
|
2228
|
+
}
|
|
2229
|
+
return message;
|
|
2230
|
+
},
|
|
2231
|
+
fromJSON(object) {
|
|
2232
|
+
return { postId: isSet(object.postId) ? globalThis.String(object.postId) : "" };
|
|
2233
|
+
},
|
|
2234
|
+
toJSON(message) {
|
|
2235
|
+
const obj = {};
|
|
2236
|
+
if (message.postId !== "") {
|
|
2237
|
+
obj.postId = message.postId;
|
|
2238
|
+
}
|
|
2239
|
+
return obj;
|
|
2240
|
+
},
|
|
2241
|
+
create(base) {
|
|
2242
|
+
return exports.UnapproveEyewitnessReportRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2243
|
+
},
|
|
2244
|
+
fromPartial(object) {
|
|
2245
|
+
var _a;
|
|
2246
|
+
const message = createBaseUnapproveEyewitnessReportRequest();
|
|
2247
|
+
message.postId = (_a = object.postId) !== null && _a !== void 0 ? _a : "";
|
|
2248
|
+
return message;
|
|
2249
|
+
},
|
|
2250
|
+
};
|
|
2251
|
+
function createBasePost() {
|
|
2252
|
+
return {
|
|
2253
|
+
id: "",
|
|
2254
|
+
postType: "",
|
|
2255
|
+
title: "",
|
|
2256
|
+
text: "",
|
|
2257
|
+
images: [],
|
|
2258
|
+
videos: [],
|
|
2259
|
+
emojis: [],
|
|
2260
|
+
tags: [],
|
|
2261
|
+
creatorId: "",
|
|
2262
|
+
creator: undefined,
|
|
2263
|
+
status: "",
|
|
2264
|
+
createdAt: "",
|
|
2265
|
+
updatedAt: "",
|
|
2266
|
+
engagement: undefined,
|
|
2267
|
+
userStatus: undefined,
|
|
2268
|
+
parentPostId: undefined,
|
|
2269
|
+
threadId: undefined,
|
|
2270
|
+
replyTo: undefined,
|
|
2271
|
+
mediaType: undefined,
|
|
2272
|
+
location: undefined,
|
|
2273
|
+
language: undefined,
|
|
2274
|
+
};
|
|
2275
|
+
}
|
|
2276
|
+
exports.Post = {
|
|
2277
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2278
|
+
if (message.id !== "") {
|
|
2279
|
+
writer.uint32(10).string(message.id);
|
|
2280
|
+
}
|
|
2281
|
+
if (message.postType !== "") {
|
|
2282
|
+
writer.uint32(18).string(message.postType);
|
|
2283
|
+
}
|
|
2284
|
+
if (message.title !== "") {
|
|
2285
|
+
writer.uint32(26).string(message.title);
|
|
2286
|
+
}
|
|
2287
|
+
if (message.text !== "") {
|
|
2288
|
+
writer.uint32(34).string(message.text);
|
|
2289
|
+
}
|
|
2290
|
+
for (const v of message.images) {
|
|
2291
|
+
writer.uint32(42).string(v);
|
|
2292
|
+
}
|
|
2293
|
+
for (const v of message.videos) {
|
|
2294
|
+
exports.VideoSource.encode(v, writer.uint32(50).fork()).join();
|
|
2295
|
+
}
|
|
2296
|
+
for (const v of message.emojis) {
|
|
2297
|
+
writer.uint32(58).string(v);
|
|
2298
|
+
}
|
|
2299
|
+
for (const v of message.tags) {
|
|
2300
|
+
writer.uint32(66).string(v);
|
|
2301
|
+
}
|
|
2302
|
+
if (message.creatorId !== "") {
|
|
2303
|
+
writer.uint32(74).string(message.creatorId);
|
|
2304
|
+
}
|
|
2305
|
+
if (message.creator !== undefined) {
|
|
2306
|
+
exports.PostAuthor.encode(message.creator, writer.uint32(82).fork()).join();
|
|
2307
|
+
}
|
|
2308
|
+
if (message.status !== "") {
|
|
2309
|
+
writer.uint32(90).string(message.status);
|
|
2310
|
+
}
|
|
2311
|
+
if (message.createdAt !== "") {
|
|
2312
|
+
writer.uint32(98).string(message.createdAt);
|
|
2313
|
+
}
|
|
2314
|
+
if (message.updatedAt !== "") {
|
|
2315
|
+
writer.uint32(106).string(message.updatedAt);
|
|
2316
|
+
}
|
|
2317
|
+
if (message.engagement !== undefined) {
|
|
2318
|
+
exports.PostEngagementMetrics.encode(message.engagement, writer.uint32(114).fork()).join();
|
|
2319
|
+
}
|
|
2320
|
+
if (message.userStatus !== undefined) {
|
|
2321
|
+
exports.PostUserStatus.encode(message.userStatus, writer.uint32(122).fork()).join();
|
|
2322
|
+
}
|
|
2323
|
+
if (message.parentPostId !== undefined) {
|
|
2324
|
+
writer.uint32(130).string(message.parentPostId);
|
|
2325
|
+
}
|
|
2326
|
+
if (message.threadId !== undefined) {
|
|
2327
|
+
writer.uint32(138).string(message.threadId);
|
|
2328
|
+
}
|
|
2329
|
+
if (message.replyTo !== undefined) {
|
|
2330
|
+
exports.ReplyTo.encode(message.replyTo, writer.uint32(146).fork()).join();
|
|
2331
|
+
}
|
|
2332
|
+
if (message.mediaType !== undefined) {
|
|
2333
|
+
writer.uint32(152).int32(message.mediaType);
|
|
2334
|
+
}
|
|
2335
|
+
if (message.location !== undefined) {
|
|
2336
|
+
writer.uint32(162).string(message.location);
|
|
2337
|
+
}
|
|
2338
|
+
if (message.language !== undefined) {
|
|
2339
|
+
writer.uint32(170).string(message.language);
|
|
2340
|
+
}
|
|
2341
|
+
return writer;
|
|
2342
|
+
},
|
|
2343
|
+
decode(input, length) {
|
|
2344
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2345
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2346
|
+
const message = createBasePost();
|
|
2347
|
+
while (reader.pos < end) {
|
|
2348
|
+
const tag = reader.uint32();
|
|
2349
|
+
switch (tag >>> 3) {
|
|
2350
|
+
case 1: {
|
|
2351
|
+
if (tag !== 10) {
|
|
2352
|
+
break;
|
|
2353
|
+
}
|
|
2354
|
+
message.id = reader.string();
|
|
2355
|
+
continue;
|
|
2356
|
+
}
|
|
2357
|
+
case 2: {
|
|
2358
|
+
if (tag !== 18) {
|
|
2359
|
+
break;
|
|
2360
|
+
}
|
|
2361
|
+
message.postType = reader.string();
|
|
2362
|
+
continue;
|
|
2363
|
+
}
|
|
2364
|
+
case 3: {
|
|
2365
|
+
if (tag !== 26) {
|
|
2366
|
+
break;
|
|
2367
|
+
}
|
|
2368
|
+
message.title = reader.string();
|
|
2369
|
+
continue;
|
|
2370
|
+
}
|
|
2371
|
+
case 4: {
|
|
2372
|
+
if (tag !== 34) {
|
|
2373
|
+
break;
|
|
2374
|
+
}
|
|
2375
|
+
message.text = reader.string();
|
|
2376
|
+
continue;
|
|
2377
|
+
}
|
|
2378
|
+
case 5: {
|
|
2379
|
+
if (tag !== 42) {
|
|
2380
|
+
break;
|
|
2381
|
+
}
|
|
2382
|
+
message.images.push(reader.string());
|
|
2383
|
+
continue;
|
|
2384
|
+
}
|
|
2385
|
+
case 6: {
|
|
2386
|
+
if (tag !== 50) {
|
|
2387
|
+
break;
|
|
2388
|
+
}
|
|
2389
|
+
message.videos.push(exports.VideoSource.decode(reader, reader.uint32()));
|
|
2390
|
+
continue;
|
|
2391
|
+
}
|
|
2392
|
+
case 7: {
|
|
2393
|
+
if (tag !== 58) {
|
|
2394
|
+
break;
|
|
2395
|
+
}
|
|
2396
|
+
message.emojis.push(reader.string());
|
|
2397
|
+
continue;
|
|
2398
|
+
}
|
|
2399
|
+
case 8: {
|
|
2400
|
+
if (tag !== 66) {
|
|
2401
|
+
break;
|
|
2402
|
+
}
|
|
2403
|
+
message.tags.push(reader.string());
|
|
2404
|
+
continue;
|
|
2405
|
+
}
|
|
2406
|
+
case 9: {
|
|
2407
|
+
if (tag !== 74) {
|
|
2408
|
+
break;
|
|
2409
|
+
}
|
|
2410
|
+
message.creatorId = reader.string();
|
|
2411
|
+
continue;
|
|
2412
|
+
}
|
|
2413
|
+
case 10: {
|
|
2414
|
+
if (tag !== 82) {
|
|
2415
|
+
break;
|
|
2416
|
+
}
|
|
2417
|
+
message.creator = exports.PostAuthor.decode(reader, reader.uint32());
|
|
2418
|
+
continue;
|
|
2419
|
+
}
|
|
2420
|
+
case 11: {
|
|
2421
|
+
if (tag !== 90) {
|
|
2422
|
+
break;
|
|
2423
|
+
}
|
|
2424
|
+
message.status = reader.string();
|
|
2425
|
+
continue;
|
|
2426
|
+
}
|
|
2427
|
+
case 12: {
|
|
2428
|
+
if (tag !== 98) {
|
|
2429
|
+
break;
|
|
2430
|
+
}
|
|
2431
|
+
message.createdAt = reader.string();
|
|
2432
|
+
continue;
|
|
2433
|
+
}
|
|
2434
|
+
case 13: {
|
|
2435
|
+
if (tag !== 106) {
|
|
2436
|
+
break;
|
|
2437
|
+
}
|
|
2438
|
+
message.updatedAt = reader.string();
|
|
2439
|
+
continue;
|
|
2440
|
+
}
|
|
2441
|
+
case 14: {
|
|
2442
|
+
if (tag !== 114) {
|
|
2443
|
+
break;
|
|
2444
|
+
}
|
|
2445
|
+
message.engagement = exports.PostEngagementMetrics.decode(reader, reader.uint32());
|
|
2446
|
+
continue;
|
|
2447
|
+
}
|
|
2448
|
+
case 15: {
|
|
2449
|
+
if (tag !== 122) {
|
|
2450
|
+
break;
|
|
2451
|
+
}
|
|
2452
|
+
message.userStatus = exports.PostUserStatus.decode(reader, reader.uint32());
|
|
2453
|
+
continue;
|
|
2454
|
+
}
|
|
2455
|
+
case 16: {
|
|
2456
|
+
if (tag !== 130) {
|
|
2457
|
+
break;
|
|
2458
|
+
}
|
|
2459
|
+
message.parentPostId = reader.string();
|
|
2460
|
+
continue;
|
|
2461
|
+
}
|
|
2462
|
+
case 17: {
|
|
2463
|
+
if (tag !== 138) {
|
|
2464
|
+
break;
|
|
2465
|
+
}
|
|
2466
|
+
message.threadId = reader.string();
|
|
2467
|
+
continue;
|
|
2468
|
+
}
|
|
2469
|
+
case 18: {
|
|
2470
|
+
if (tag !== 146) {
|
|
2471
|
+
break;
|
|
2472
|
+
}
|
|
2473
|
+
message.replyTo = exports.ReplyTo.decode(reader, reader.uint32());
|
|
2474
|
+
continue;
|
|
2475
|
+
}
|
|
2476
|
+
case 19: {
|
|
2477
|
+
if (tag !== 152) {
|
|
2478
|
+
break;
|
|
2479
|
+
}
|
|
2480
|
+
message.mediaType = reader.int32();
|
|
2481
|
+
continue;
|
|
2482
|
+
}
|
|
2483
|
+
case 20: {
|
|
2484
|
+
if (tag !== 162) {
|
|
2485
|
+
break;
|
|
2486
|
+
}
|
|
2487
|
+
message.location = reader.string();
|
|
2488
|
+
continue;
|
|
2489
|
+
}
|
|
2490
|
+
case 21: {
|
|
2491
|
+
if (tag !== 170) {
|
|
2492
|
+
break;
|
|
2493
|
+
}
|
|
2494
|
+
message.language = reader.string();
|
|
2495
|
+
continue;
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2499
|
+
break;
|
|
2500
|
+
}
|
|
2501
|
+
reader.skip(tag & 7);
|
|
2502
|
+
}
|
|
2503
|
+
return message;
|
|
2504
|
+
},
|
|
2505
|
+
fromJSON(object) {
|
|
2506
|
+
return {
|
|
2507
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
2508
|
+
postType: isSet(object.postType) ? globalThis.String(object.postType) : "",
|
|
2509
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
2510
|
+
text: isSet(object.text) ? globalThis.String(object.text) : "",
|
|
2511
|
+
images: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.images) ? object.images.map((e) => globalThis.String(e)) : [],
|
|
2512
|
+
videos: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.videos) ? object.videos.map((e) => exports.VideoSource.fromJSON(e)) : [],
|
|
2513
|
+
emojis: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.emojis) ? object.emojis.map((e) => globalThis.String(e)) : [],
|
|
2514
|
+
tags: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.tags) ? object.tags.map((e) => globalThis.String(e)) : [],
|
|
2515
|
+
creatorId: isSet(object.creatorId) ? globalThis.String(object.creatorId) : "",
|
|
2516
|
+
creator: isSet(object.creator) ? exports.PostAuthor.fromJSON(object.creator) : undefined,
|
|
2517
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
2518
|
+
createdAt: isSet(object.createdAt) ? globalThis.String(object.createdAt) : "",
|
|
2519
|
+
updatedAt: isSet(object.updatedAt) ? globalThis.String(object.updatedAt) : "",
|
|
2520
|
+
engagement: isSet(object.engagement) ? exports.PostEngagementMetrics.fromJSON(object.engagement) : undefined,
|
|
2521
|
+
userStatus: isSet(object.userStatus) ? exports.PostUserStatus.fromJSON(object.userStatus) : undefined,
|
|
2522
|
+
parentPostId: isSet(object.parentPostId) ? globalThis.String(object.parentPostId) : undefined,
|
|
2523
|
+
threadId: isSet(object.threadId) ? globalThis.String(object.threadId) : undefined,
|
|
2524
|
+
replyTo: isSet(object.replyTo) ? exports.ReplyTo.fromJSON(object.replyTo) : undefined,
|
|
2525
|
+
mediaType: isSet(object.mediaType) ? mediaTypeFromJSON(object.mediaType) : undefined,
|
|
2526
|
+
location: isSet(object.location) ? globalThis.String(object.location) : undefined,
|
|
2527
|
+
language: isSet(object.language) ? globalThis.String(object.language) : undefined,
|
|
2528
|
+
};
|
|
2529
|
+
},
|
|
2530
|
+
toJSON(message) {
|
|
2531
|
+
var _a, _b, _c, _d;
|
|
2532
|
+
const obj = {};
|
|
2533
|
+
if (message.id !== "") {
|
|
2534
|
+
obj.id = message.id;
|
|
2535
|
+
}
|
|
2536
|
+
if (message.postType !== "") {
|
|
2537
|
+
obj.postType = message.postType;
|
|
2538
|
+
}
|
|
2539
|
+
if (message.title !== "") {
|
|
2540
|
+
obj.title = message.title;
|
|
2541
|
+
}
|
|
2542
|
+
if (message.text !== "") {
|
|
2543
|
+
obj.text = message.text;
|
|
2544
|
+
}
|
|
2545
|
+
if ((_a = message.images) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2546
|
+
obj.images = message.images;
|
|
2547
|
+
}
|
|
2548
|
+
if ((_b = message.videos) === null || _b === void 0 ? void 0 : _b.length) {
|
|
2549
|
+
obj.videos = message.videos.map((e) => exports.VideoSource.toJSON(e));
|
|
2550
|
+
}
|
|
2551
|
+
if ((_c = message.emojis) === null || _c === void 0 ? void 0 : _c.length) {
|
|
2552
|
+
obj.emojis = message.emojis;
|
|
2553
|
+
}
|
|
2554
|
+
if ((_d = message.tags) === null || _d === void 0 ? void 0 : _d.length) {
|
|
2555
|
+
obj.tags = message.tags;
|
|
2556
|
+
}
|
|
2557
|
+
if (message.creatorId !== "") {
|
|
2558
|
+
obj.creatorId = message.creatorId;
|
|
2559
|
+
}
|
|
2560
|
+
if (message.creator !== undefined) {
|
|
2561
|
+
obj.creator = exports.PostAuthor.toJSON(message.creator);
|
|
2562
|
+
}
|
|
2563
|
+
if (message.status !== "") {
|
|
2564
|
+
obj.status = message.status;
|
|
2565
|
+
}
|
|
2566
|
+
if (message.createdAt !== "") {
|
|
2567
|
+
obj.createdAt = message.createdAt;
|
|
2568
|
+
}
|
|
2569
|
+
if (message.updatedAt !== "") {
|
|
2570
|
+
obj.updatedAt = message.updatedAt;
|
|
2571
|
+
}
|
|
2572
|
+
if (message.engagement !== undefined) {
|
|
2573
|
+
obj.engagement = exports.PostEngagementMetrics.toJSON(message.engagement);
|
|
2574
|
+
}
|
|
2575
|
+
if (message.userStatus !== undefined) {
|
|
2576
|
+
obj.userStatus = exports.PostUserStatus.toJSON(message.userStatus);
|
|
2577
|
+
}
|
|
2578
|
+
if (message.parentPostId !== undefined) {
|
|
2579
|
+
obj.parentPostId = message.parentPostId;
|
|
2580
|
+
}
|
|
2581
|
+
if (message.threadId !== undefined) {
|
|
2582
|
+
obj.threadId = message.threadId;
|
|
2583
|
+
}
|
|
2584
|
+
if (message.replyTo !== undefined) {
|
|
2585
|
+
obj.replyTo = exports.ReplyTo.toJSON(message.replyTo);
|
|
2586
|
+
}
|
|
2587
|
+
if (message.mediaType !== undefined) {
|
|
2588
|
+
obj.mediaType = mediaTypeToJSON(message.mediaType);
|
|
2589
|
+
}
|
|
2590
|
+
if (message.location !== undefined) {
|
|
2591
|
+
obj.location = message.location;
|
|
2592
|
+
}
|
|
2593
|
+
if (message.language !== undefined) {
|
|
2594
|
+
obj.language = message.language;
|
|
2595
|
+
}
|
|
2596
|
+
return obj;
|
|
2597
|
+
},
|
|
2598
|
+
create(base) {
|
|
2599
|
+
return exports.Post.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2600
|
+
},
|
|
2601
|
+
fromPartial(object) {
|
|
2602
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
2603
|
+
const message = createBasePost();
|
|
2604
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
2605
|
+
message.postType = (_b = object.postType) !== null && _b !== void 0 ? _b : "";
|
|
2606
|
+
message.title = (_c = object.title) !== null && _c !== void 0 ? _c : "";
|
|
2607
|
+
message.text = (_d = object.text) !== null && _d !== void 0 ? _d : "";
|
|
2608
|
+
message.images = ((_e = object.images) === null || _e === void 0 ? void 0 : _e.map((e) => e)) || [];
|
|
2609
|
+
message.videos = ((_f = object.videos) === null || _f === void 0 ? void 0 : _f.map((e) => exports.VideoSource.fromPartial(e))) || [];
|
|
2610
|
+
message.emojis = ((_g = object.emojis) === null || _g === void 0 ? void 0 : _g.map((e) => e)) || [];
|
|
2611
|
+
message.tags = ((_h = object.tags) === null || _h === void 0 ? void 0 : _h.map((e) => e)) || [];
|
|
2612
|
+
message.creatorId = (_j = object.creatorId) !== null && _j !== void 0 ? _j : "";
|
|
2613
|
+
message.creator = (object.creator !== undefined && object.creator !== null)
|
|
2614
|
+
? exports.PostAuthor.fromPartial(object.creator)
|
|
2615
|
+
: undefined;
|
|
2616
|
+
message.status = (_k = object.status) !== null && _k !== void 0 ? _k : "";
|
|
2617
|
+
message.createdAt = (_l = object.createdAt) !== null && _l !== void 0 ? _l : "";
|
|
2618
|
+
message.updatedAt = (_m = object.updatedAt) !== null && _m !== void 0 ? _m : "";
|
|
2619
|
+
message.engagement = (object.engagement !== undefined && object.engagement !== null)
|
|
2620
|
+
? exports.PostEngagementMetrics.fromPartial(object.engagement)
|
|
2621
|
+
: undefined;
|
|
2622
|
+
message.userStatus = (object.userStatus !== undefined && object.userStatus !== null)
|
|
2623
|
+
? exports.PostUserStatus.fromPartial(object.userStatus)
|
|
2624
|
+
: undefined;
|
|
2625
|
+
message.parentPostId = (_o = object.parentPostId) !== null && _o !== void 0 ? _o : undefined;
|
|
2626
|
+
message.threadId = (_p = object.threadId) !== null && _p !== void 0 ? _p : undefined;
|
|
2627
|
+
message.replyTo = (object.replyTo !== undefined && object.replyTo !== null)
|
|
2628
|
+
? exports.ReplyTo.fromPartial(object.replyTo)
|
|
2629
|
+
: undefined;
|
|
2630
|
+
message.mediaType = (_q = object.mediaType) !== null && _q !== void 0 ? _q : undefined;
|
|
2631
|
+
message.location = (_r = object.location) !== null && _r !== void 0 ? _r : undefined;
|
|
2632
|
+
message.language = (_s = object.language) !== null && _s !== void 0 ? _s : undefined;
|
|
2633
|
+
return message;
|
|
2634
|
+
},
|
|
2635
|
+
};
|
|
2636
|
+
function createBasePostAuthor() {
|
|
2637
|
+
return { id: "", name: "", username: "", email: "", photoUrl: "", verified: undefined };
|
|
2638
|
+
}
|
|
2639
|
+
exports.PostAuthor = {
|
|
2640
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2641
|
+
if (message.id !== "") {
|
|
2642
|
+
writer.uint32(10).string(message.id);
|
|
2643
|
+
}
|
|
2644
|
+
if (message.name !== "") {
|
|
2645
|
+
writer.uint32(18).string(message.name);
|
|
2646
|
+
}
|
|
2647
|
+
if (message.username !== "") {
|
|
2648
|
+
writer.uint32(26).string(message.username);
|
|
2649
|
+
}
|
|
2650
|
+
if (message.email !== "") {
|
|
2651
|
+
writer.uint32(34).string(message.email);
|
|
2652
|
+
}
|
|
2653
|
+
if (message.photoUrl !== "") {
|
|
2654
|
+
writer.uint32(42).string(message.photoUrl);
|
|
2655
|
+
}
|
|
2656
|
+
if (message.verified !== undefined) {
|
|
2657
|
+
writer.uint32(48).bool(message.verified);
|
|
2658
|
+
}
|
|
2659
|
+
return writer;
|
|
2660
|
+
},
|
|
2661
|
+
decode(input, length) {
|
|
2662
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2663
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2664
|
+
const message = createBasePostAuthor();
|
|
2665
|
+
while (reader.pos < end) {
|
|
2666
|
+
const tag = reader.uint32();
|
|
2667
|
+
switch (tag >>> 3) {
|
|
2668
|
+
case 1: {
|
|
2669
|
+
if (tag !== 10) {
|
|
2670
|
+
break;
|
|
2671
|
+
}
|
|
2672
|
+
message.id = reader.string();
|
|
2673
|
+
continue;
|
|
2674
|
+
}
|
|
2675
|
+
case 2: {
|
|
2676
|
+
if (tag !== 18) {
|
|
2677
|
+
break;
|
|
2678
|
+
}
|
|
2679
|
+
message.name = reader.string();
|
|
2680
|
+
continue;
|
|
2681
|
+
}
|
|
2682
|
+
case 3: {
|
|
2683
|
+
if (tag !== 26) {
|
|
2684
|
+
break;
|
|
2685
|
+
}
|
|
2686
|
+
message.username = reader.string();
|
|
2687
|
+
continue;
|
|
2688
|
+
}
|
|
2689
|
+
case 4: {
|
|
2690
|
+
if (tag !== 34) {
|
|
2691
|
+
break;
|
|
2692
|
+
}
|
|
2693
|
+
message.email = reader.string();
|
|
2694
|
+
continue;
|
|
2695
|
+
}
|
|
2696
|
+
case 5: {
|
|
2697
|
+
if (tag !== 42) {
|
|
2698
|
+
break;
|
|
2699
|
+
}
|
|
2700
|
+
message.photoUrl = reader.string();
|
|
2701
|
+
continue;
|
|
2702
|
+
}
|
|
2703
|
+
case 6: {
|
|
2704
|
+
if (tag !== 48) {
|
|
2705
|
+
break;
|
|
2706
|
+
}
|
|
2707
|
+
message.verified = reader.bool();
|
|
2708
|
+
continue;
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2712
|
+
break;
|
|
2713
|
+
}
|
|
2714
|
+
reader.skip(tag & 7);
|
|
2715
|
+
}
|
|
2716
|
+
return message;
|
|
2717
|
+
},
|
|
2718
|
+
fromJSON(object) {
|
|
2719
|
+
return {
|
|
2720
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
2721
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2722
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
2723
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
2724
|
+
photoUrl: isSet(object.photoUrl) ? globalThis.String(object.photoUrl) : "",
|
|
2725
|
+
verified: isSet(object.verified) ? globalThis.Boolean(object.verified) : undefined,
|
|
2726
|
+
};
|
|
2727
|
+
},
|
|
2728
|
+
toJSON(message) {
|
|
2729
|
+
const obj = {};
|
|
2730
|
+
if (message.id !== "") {
|
|
2731
|
+
obj.id = message.id;
|
|
2732
|
+
}
|
|
2733
|
+
if (message.name !== "") {
|
|
2734
|
+
obj.name = message.name;
|
|
2735
|
+
}
|
|
2736
|
+
if (message.username !== "") {
|
|
2737
|
+
obj.username = message.username;
|
|
2738
|
+
}
|
|
2739
|
+
if (message.email !== "") {
|
|
2740
|
+
obj.email = message.email;
|
|
2741
|
+
}
|
|
2742
|
+
if (message.photoUrl !== "") {
|
|
2743
|
+
obj.photoUrl = message.photoUrl;
|
|
2744
|
+
}
|
|
2745
|
+
if (message.verified !== undefined) {
|
|
2746
|
+
obj.verified = message.verified;
|
|
2747
|
+
}
|
|
2748
|
+
return obj;
|
|
2749
|
+
},
|
|
2750
|
+
create(base) {
|
|
2751
|
+
return exports.PostAuthor.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2752
|
+
},
|
|
2753
|
+
fromPartial(object) {
|
|
2754
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2755
|
+
const message = createBasePostAuthor();
|
|
2756
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
2757
|
+
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
2758
|
+
message.username = (_c = object.username) !== null && _c !== void 0 ? _c : "";
|
|
2759
|
+
message.email = (_d = object.email) !== null && _d !== void 0 ? _d : "";
|
|
2760
|
+
message.photoUrl = (_e = object.photoUrl) !== null && _e !== void 0 ? _e : "";
|
|
2761
|
+
message.verified = (_f = object.verified) !== null && _f !== void 0 ? _f : undefined;
|
|
2762
|
+
return message;
|
|
2763
|
+
},
|
|
2764
|
+
};
|
|
2765
|
+
function createBasePostEngagementMetrics() {
|
|
2766
|
+
return {
|
|
2767
|
+
likesCount: 0,
|
|
2768
|
+
commentsCount: 0,
|
|
2769
|
+
repostsCount: 0,
|
|
2770
|
+
bookmarksCount: 0,
|
|
2771
|
+
signaturesCount: undefined,
|
|
2772
|
+
approvalsCount: undefined,
|
|
2773
|
+
viewCount: 0,
|
|
2774
|
+
shareCount: 0,
|
|
2775
|
+
};
|
|
2776
|
+
}
|
|
2777
|
+
exports.PostEngagementMetrics = {
|
|
2778
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2779
|
+
if (message.likesCount !== 0) {
|
|
2780
|
+
writer.uint32(8).int64(message.likesCount);
|
|
2781
|
+
}
|
|
2782
|
+
if (message.commentsCount !== 0) {
|
|
2783
|
+
writer.uint32(16).int64(message.commentsCount);
|
|
2784
|
+
}
|
|
2785
|
+
if (message.repostsCount !== 0) {
|
|
2786
|
+
writer.uint32(24).int64(message.repostsCount);
|
|
2787
|
+
}
|
|
2788
|
+
if (message.bookmarksCount !== 0) {
|
|
2789
|
+
writer.uint32(32).int64(message.bookmarksCount);
|
|
2790
|
+
}
|
|
2791
|
+
if (message.signaturesCount !== undefined) {
|
|
2792
|
+
writer.uint32(40).int64(message.signaturesCount);
|
|
2793
|
+
}
|
|
2794
|
+
if (message.approvalsCount !== undefined) {
|
|
2795
|
+
writer.uint32(48).int64(message.approvalsCount);
|
|
2796
|
+
}
|
|
2797
|
+
if (message.viewCount !== 0) {
|
|
2798
|
+
writer.uint32(56).int64(message.viewCount);
|
|
2799
|
+
}
|
|
2800
|
+
if (message.shareCount !== 0) {
|
|
2801
|
+
writer.uint32(64).int64(message.shareCount);
|
|
2802
|
+
}
|
|
2803
|
+
return writer;
|
|
2804
|
+
},
|
|
2805
|
+
decode(input, length) {
|
|
2806
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2807
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2808
|
+
const message = createBasePostEngagementMetrics();
|
|
2809
|
+
while (reader.pos < end) {
|
|
2810
|
+
const tag = reader.uint32();
|
|
2811
|
+
switch (tag >>> 3) {
|
|
2812
|
+
case 1: {
|
|
2813
|
+
if (tag !== 8) {
|
|
2814
|
+
break;
|
|
2815
|
+
}
|
|
2816
|
+
message.likesCount = longToNumber(reader.int64());
|
|
2817
|
+
continue;
|
|
2818
|
+
}
|
|
2819
|
+
case 2: {
|
|
2820
|
+
if (tag !== 16) {
|
|
2821
|
+
break;
|
|
2822
|
+
}
|
|
2823
|
+
message.commentsCount = longToNumber(reader.int64());
|
|
2824
|
+
continue;
|
|
2825
|
+
}
|
|
2826
|
+
case 3: {
|
|
2827
|
+
if (tag !== 24) {
|
|
2828
|
+
break;
|
|
2829
|
+
}
|
|
2830
|
+
message.repostsCount = longToNumber(reader.int64());
|
|
1804
2831
|
continue;
|
|
1805
2832
|
}
|
|
1806
2833
|
case 4: {
|
|
1807
|
-
if (tag !==
|
|
2834
|
+
if (tag !== 32) {
|
|
2835
|
+
break;
|
|
2836
|
+
}
|
|
2837
|
+
message.bookmarksCount = longToNumber(reader.int64());
|
|
2838
|
+
continue;
|
|
2839
|
+
}
|
|
2840
|
+
case 5: {
|
|
2841
|
+
if (tag !== 40) {
|
|
2842
|
+
break;
|
|
2843
|
+
}
|
|
2844
|
+
message.signaturesCount = longToNumber(reader.int64());
|
|
2845
|
+
continue;
|
|
2846
|
+
}
|
|
2847
|
+
case 6: {
|
|
2848
|
+
if (tag !== 48) {
|
|
2849
|
+
break;
|
|
2850
|
+
}
|
|
2851
|
+
message.approvalsCount = longToNumber(reader.int64());
|
|
2852
|
+
continue;
|
|
2853
|
+
}
|
|
2854
|
+
case 7: {
|
|
2855
|
+
if (tag !== 56) {
|
|
2856
|
+
break;
|
|
2857
|
+
}
|
|
2858
|
+
message.viewCount = longToNumber(reader.int64());
|
|
2859
|
+
continue;
|
|
2860
|
+
}
|
|
2861
|
+
case 8: {
|
|
2862
|
+
if (tag !== 64) {
|
|
2863
|
+
break;
|
|
2864
|
+
}
|
|
2865
|
+
message.shareCount = longToNumber(reader.int64());
|
|
2866
|
+
continue;
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2870
|
+
break;
|
|
2871
|
+
}
|
|
2872
|
+
reader.skip(tag & 7);
|
|
2873
|
+
}
|
|
2874
|
+
return message;
|
|
2875
|
+
},
|
|
2876
|
+
fromJSON(object) {
|
|
2877
|
+
return {
|
|
2878
|
+
likesCount: isSet(object.likesCount) ? globalThis.Number(object.likesCount) : 0,
|
|
2879
|
+
commentsCount: isSet(object.commentsCount) ? globalThis.Number(object.commentsCount) : 0,
|
|
2880
|
+
repostsCount: isSet(object.repostsCount) ? globalThis.Number(object.repostsCount) : 0,
|
|
2881
|
+
bookmarksCount: isSet(object.bookmarksCount) ? globalThis.Number(object.bookmarksCount) : 0,
|
|
2882
|
+
signaturesCount: isSet(object.signaturesCount) ? globalThis.Number(object.signaturesCount) : undefined,
|
|
2883
|
+
approvalsCount: isSet(object.approvalsCount) ? globalThis.Number(object.approvalsCount) : undefined,
|
|
2884
|
+
viewCount: isSet(object.viewCount) ? globalThis.Number(object.viewCount) : 0,
|
|
2885
|
+
shareCount: isSet(object.shareCount) ? globalThis.Number(object.shareCount) : 0,
|
|
2886
|
+
};
|
|
2887
|
+
},
|
|
2888
|
+
toJSON(message) {
|
|
2889
|
+
const obj = {};
|
|
2890
|
+
if (message.likesCount !== 0) {
|
|
2891
|
+
obj.likesCount = Math.round(message.likesCount);
|
|
2892
|
+
}
|
|
2893
|
+
if (message.commentsCount !== 0) {
|
|
2894
|
+
obj.commentsCount = Math.round(message.commentsCount);
|
|
2895
|
+
}
|
|
2896
|
+
if (message.repostsCount !== 0) {
|
|
2897
|
+
obj.repostsCount = Math.round(message.repostsCount);
|
|
2898
|
+
}
|
|
2899
|
+
if (message.bookmarksCount !== 0) {
|
|
2900
|
+
obj.bookmarksCount = Math.round(message.bookmarksCount);
|
|
2901
|
+
}
|
|
2902
|
+
if (message.signaturesCount !== undefined) {
|
|
2903
|
+
obj.signaturesCount = Math.round(message.signaturesCount);
|
|
2904
|
+
}
|
|
2905
|
+
if (message.approvalsCount !== undefined) {
|
|
2906
|
+
obj.approvalsCount = Math.round(message.approvalsCount);
|
|
2907
|
+
}
|
|
2908
|
+
if (message.viewCount !== 0) {
|
|
2909
|
+
obj.viewCount = Math.round(message.viewCount);
|
|
2910
|
+
}
|
|
2911
|
+
if (message.shareCount !== 0) {
|
|
2912
|
+
obj.shareCount = Math.round(message.shareCount);
|
|
2913
|
+
}
|
|
2914
|
+
return obj;
|
|
2915
|
+
},
|
|
2916
|
+
create(base) {
|
|
2917
|
+
return exports.PostEngagementMetrics.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2918
|
+
},
|
|
2919
|
+
fromPartial(object) {
|
|
2920
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2921
|
+
const message = createBasePostEngagementMetrics();
|
|
2922
|
+
message.likesCount = (_a = object.likesCount) !== null && _a !== void 0 ? _a : 0;
|
|
2923
|
+
message.commentsCount = (_b = object.commentsCount) !== null && _b !== void 0 ? _b : 0;
|
|
2924
|
+
message.repostsCount = (_c = object.repostsCount) !== null && _c !== void 0 ? _c : 0;
|
|
2925
|
+
message.bookmarksCount = (_d = object.bookmarksCount) !== null && _d !== void 0 ? _d : 0;
|
|
2926
|
+
message.signaturesCount = (_e = object.signaturesCount) !== null && _e !== void 0 ? _e : undefined;
|
|
2927
|
+
message.approvalsCount = (_f = object.approvalsCount) !== null && _f !== void 0 ? _f : undefined;
|
|
2928
|
+
message.viewCount = (_g = object.viewCount) !== null && _g !== void 0 ? _g : 0;
|
|
2929
|
+
message.shareCount = (_h = object.shareCount) !== null && _h !== void 0 ? _h : 0;
|
|
2930
|
+
return message;
|
|
2931
|
+
},
|
|
2932
|
+
};
|
|
2933
|
+
function createBasePostUserStatus() {
|
|
2934
|
+
return {
|
|
2935
|
+
isLiked: false,
|
|
2936
|
+
isBookmarked: false,
|
|
2937
|
+
isReposted: false,
|
|
2938
|
+
isSigned: undefined,
|
|
2939
|
+
isApproved: undefined,
|
|
2940
|
+
isViewed: false,
|
|
2941
|
+
isShared: false,
|
|
2942
|
+
};
|
|
2943
|
+
}
|
|
2944
|
+
exports.PostUserStatus = {
|
|
2945
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2946
|
+
if (message.isLiked !== false) {
|
|
2947
|
+
writer.uint32(8).bool(message.isLiked);
|
|
2948
|
+
}
|
|
2949
|
+
if (message.isBookmarked !== false) {
|
|
2950
|
+
writer.uint32(16).bool(message.isBookmarked);
|
|
2951
|
+
}
|
|
2952
|
+
if (message.isReposted !== false) {
|
|
2953
|
+
writer.uint32(24).bool(message.isReposted);
|
|
2954
|
+
}
|
|
2955
|
+
if (message.isSigned !== undefined) {
|
|
2956
|
+
writer.uint32(32).bool(message.isSigned);
|
|
2957
|
+
}
|
|
2958
|
+
if (message.isApproved !== undefined) {
|
|
2959
|
+
writer.uint32(40).bool(message.isApproved);
|
|
2960
|
+
}
|
|
2961
|
+
if (message.isViewed !== false) {
|
|
2962
|
+
writer.uint32(48).bool(message.isViewed);
|
|
2963
|
+
}
|
|
2964
|
+
if (message.isShared !== false) {
|
|
2965
|
+
writer.uint32(56).bool(message.isShared);
|
|
2966
|
+
}
|
|
2967
|
+
return writer;
|
|
2968
|
+
},
|
|
2969
|
+
decode(input, length) {
|
|
2970
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2971
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2972
|
+
const message = createBasePostUserStatus();
|
|
2973
|
+
while (reader.pos < end) {
|
|
2974
|
+
const tag = reader.uint32();
|
|
2975
|
+
switch (tag >>> 3) {
|
|
2976
|
+
case 1: {
|
|
2977
|
+
if (tag !== 8) {
|
|
2978
|
+
break;
|
|
2979
|
+
}
|
|
2980
|
+
message.isLiked = reader.bool();
|
|
2981
|
+
continue;
|
|
2982
|
+
}
|
|
2983
|
+
case 2: {
|
|
2984
|
+
if (tag !== 16) {
|
|
2985
|
+
break;
|
|
2986
|
+
}
|
|
2987
|
+
message.isBookmarked = reader.bool();
|
|
2988
|
+
continue;
|
|
2989
|
+
}
|
|
2990
|
+
case 3: {
|
|
2991
|
+
if (tag !== 24) {
|
|
2992
|
+
break;
|
|
2993
|
+
}
|
|
2994
|
+
message.isReposted = reader.bool();
|
|
2995
|
+
continue;
|
|
2996
|
+
}
|
|
2997
|
+
case 4: {
|
|
2998
|
+
if (tag !== 32) {
|
|
2999
|
+
break;
|
|
3000
|
+
}
|
|
3001
|
+
message.isSigned = reader.bool();
|
|
3002
|
+
continue;
|
|
3003
|
+
}
|
|
3004
|
+
case 5: {
|
|
3005
|
+
if (tag !== 40) {
|
|
1808
3006
|
break;
|
|
1809
3007
|
}
|
|
1810
|
-
message.
|
|
3008
|
+
message.isApproved = reader.bool();
|
|
3009
|
+
continue;
|
|
3010
|
+
}
|
|
3011
|
+
case 6: {
|
|
3012
|
+
if (tag !== 48) {
|
|
3013
|
+
break;
|
|
3014
|
+
}
|
|
3015
|
+
message.isViewed = reader.bool();
|
|
3016
|
+
continue;
|
|
3017
|
+
}
|
|
3018
|
+
case 7: {
|
|
3019
|
+
if (tag !== 56) {
|
|
3020
|
+
break;
|
|
3021
|
+
}
|
|
3022
|
+
message.isShared = reader.bool();
|
|
1811
3023
|
continue;
|
|
1812
3024
|
}
|
|
1813
3025
|
}
|
|
@@ -1820,120 +3032,197 @@ exports.Creator = {
|
|
|
1820
3032
|
},
|
|
1821
3033
|
fromJSON(object) {
|
|
1822
3034
|
return {
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
3035
|
+
isLiked: isSet(object.isLiked) ? globalThis.Boolean(object.isLiked) : false,
|
|
3036
|
+
isBookmarked: isSet(object.isBookmarked) ? globalThis.Boolean(object.isBookmarked) : false,
|
|
3037
|
+
isReposted: isSet(object.isReposted) ? globalThis.Boolean(object.isReposted) : false,
|
|
3038
|
+
isSigned: isSet(object.isSigned) ? globalThis.Boolean(object.isSigned) : undefined,
|
|
3039
|
+
isApproved: isSet(object.isApproved) ? globalThis.Boolean(object.isApproved) : undefined,
|
|
3040
|
+
isViewed: isSet(object.isViewed) ? globalThis.Boolean(object.isViewed) : false,
|
|
3041
|
+
isShared: isSet(object.isShared) ? globalThis.Boolean(object.isShared) : false,
|
|
1827
3042
|
};
|
|
1828
3043
|
},
|
|
1829
3044
|
toJSON(message) {
|
|
1830
3045
|
const obj = {};
|
|
1831
|
-
if (message.
|
|
1832
|
-
obj.
|
|
3046
|
+
if (message.isLiked !== false) {
|
|
3047
|
+
obj.isLiked = message.isLiked;
|
|
1833
3048
|
}
|
|
1834
|
-
if (message.
|
|
1835
|
-
obj.
|
|
3049
|
+
if (message.isBookmarked !== false) {
|
|
3050
|
+
obj.isBookmarked = message.isBookmarked;
|
|
1836
3051
|
}
|
|
1837
|
-
if (message.
|
|
1838
|
-
obj.
|
|
3052
|
+
if (message.isReposted !== false) {
|
|
3053
|
+
obj.isReposted = message.isReposted;
|
|
1839
3054
|
}
|
|
1840
|
-
if (message.
|
|
1841
|
-
obj.
|
|
3055
|
+
if (message.isSigned !== undefined) {
|
|
3056
|
+
obj.isSigned = message.isSigned;
|
|
3057
|
+
}
|
|
3058
|
+
if (message.isApproved !== undefined) {
|
|
3059
|
+
obj.isApproved = message.isApproved;
|
|
3060
|
+
}
|
|
3061
|
+
if (message.isViewed !== false) {
|
|
3062
|
+
obj.isViewed = message.isViewed;
|
|
3063
|
+
}
|
|
3064
|
+
if (message.isShared !== false) {
|
|
3065
|
+
obj.isShared = message.isShared;
|
|
1842
3066
|
}
|
|
1843
3067
|
return obj;
|
|
1844
3068
|
},
|
|
1845
3069
|
create(base) {
|
|
1846
|
-
return exports.
|
|
3070
|
+
return exports.PostUserStatus.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1847
3071
|
},
|
|
1848
3072
|
fromPartial(object) {
|
|
1849
|
-
var _a, _b, _c, _d;
|
|
1850
|
-
const message =
|
|
1851
|
-
message.
|
|
1852
|
-
message.
|
|
1853
|
-
message.
|
|
1854
|
-
message.
|
|
3073
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
3074
|
+
const message = createBasePostUserStatus();
|
|
3075
|
+
message.isLiked = (_a = object.isLiked) !== null && _a !== void 0 ? _a : false;
|
|
3076
|
+
message.isBookmarked = (_b = object.isBookmarked) !== null && _b !== void 0 ? _b : false;
|
|
3077
|
+
message.isReposted = (_c = object.isReposted) !== null && _c !== void 0 ? _c : false;
|
|
3078
|
+
message.isSigned = (_d = object.isSigned) !== null && _d !== void 0 ? _d : undefined;
|
|
3079
|
+
message.isApproved = (_e = object.isApproved) !== null && _e !== void 0 ? _e : undefined;
|
|
3080
|
+
message.isViewed = (_f = object.isViewed) !== null && _f !== void 0 ? _f : false;
|
|
3081
|
+
message.isShared = (_g = object.isShared) !== null && _g !== void 0 ? _g : false;
|
|
1855
3082
|
return message;
|
|
1856
3083
|
},
|
|
1857
3084
|
};
|
|
1858
|
-
function
|
|
1859
|
-
return {
|
|
1860
|
-
likesCount: 0,
|
|
1861
|
-
commentsCount: 0,
|
|
1862
|
-
repostsCount: 0,
|
|
1863
|
-
bookmarksCount: 0,
|
|
1864
|
-
signaturesCount: undefined,
|
|
1865
|
-
approvalsCount: undefined,
|
|
1866
|
-
};
|
|
3085
|
+
function createBaseVideoSource() {
|
|
3086
|
+
return { url: "", type: 0, mimeType: undefined, thumbnail: undefined };
|
|
1867
3087
|
}
|
|
1868
|
-
exports.
|
|
3088
|
+
exports.VideoSource = {
|
|
1869
3089
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1870
|
-
if (message.
|
|
1871
|
-
writer.uint32(
|
|
3090
|
+
if (message.url !== "") {
|
|
3091
|
+
writer.uint32(10).string(message.url);
|
|
1872
3092
|
}
|
|
1873
|
-
if (message.
|
|
1874
|
-
writer.uint32(16).
|
|
1875
|
-
}
|
|
1876
|
-
if (message.repostsCount !== 0) {
|
|
1877
|
-
writer.uint32(24).int64(message.repostsCount);
|
|
1878
|
-
}
|
|
1879
|
-
if (message.bookmarksCount !== 0) {
|
|
1880
|
-
writer.uint32(32).int64(message.bookmarksCount);
|
|
3093
|
+
if (message.type !== 0) {
|
|
3094
|
+
writer.uint32(16).int32(message.type);
|
|
1881
3095
|
}
|
|
1882
|
-
if (message.
|
|
1883
|
-
writer.uint32(
|
|
3096
|
+
if (message.mimeType !== undefined) {
|
|
3097
|
+
writer.uint32(26).string(message.mimeType);
|
|
1884
3098
|
}
|
|
1885
|
-
if (message.
|
|
1886
|
-
writer.uint32(
|
|
3099
|
+
if (message.thumbnail !== undefined) {
|
|
3100
|
+
writer.uint32(34).string(message.thumbnail);
|
|
1887
3101
|
}
|
|
1888
3102
|
return writer;
|
|
1889
3103
|
},
|
|
1890
3104
|
decode(input, length) {
|
|
1891
3105
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1892
3106
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1893
|
-
const message =
|
|
3107
|
+
const message = createBaseVideoSource();
|
|
1894
3108
|
while (reader.pos < end) {
|
|
1895
3109
|
const tag = reader.uint32();
|
|
1896
3110
|
switch (tag >>> 3) {
|
|
1897
3111
|
case 1: {
|
|
1898
|
-
if (tag !==
|
|
3112
|
+
if (tag !== 10) {
|
|
1899
3113
|
break;
|
|
1900
3114
|
}
|
|
1901
|
-
message.
|
|
3115
|
+
message.url = reader.string();
|
|
1902
3116
|
continue;
|
|
1903
3117
|
}
|
|
1904
3118
|
case 2: {
|
|
1905
3119
|
if (tag !== 16) {
|
|
1906
3120
|
break;
|
|
1907
3121
|
}
|
|
1908
|
-
message.
|
|
3122
|
+
message.type = reader.int32();
|
|
1909
3123
|
continue;
|
|
1910
3124
|
}
|
|
1911
3125
|
case 3: {
|
|
1912
|
-
if (tag !==
|
|
3126
|
+
if (tag !== 26) {
|
|
1913
3127
|
break;
|
|
1914
3128
|
}
|
|
1915
|
-
message.
|
|
3129
|
+
message.mimeType = reader.string();
|
|
1916
3130
|
continue;
|
|
1917
3131
|
}
|
|
1918
3132
|
case 4: {
|
|
1919
|
-
if (tag !==
|
|
3133
|
+
if (tag !== 34) {
|
|
1920
3134
|
break;
|
|
1921
3135
|
}
|
|
1922
|
-
message.
|
|
3136
|
+
message.thumbnail = reader.string();
|
|
1923
3137
|
continue;
|
|
1924
3138
|
}
|
|
1925
|
-
|
|
1926
|
-
|
|
3139
|
+
}
|
|
3140
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3141
|
+
break;
|
|
3142
|
+
}
|
|
3143
|
+
reader.skip(tag & 7);
|
|
3144
|
+
}
|
|
3145
|
+
return message;
|
|
3146
|
+
},
|
|
3147
|
+
fromJSON(object) {
|
|
3148
|
+
return {
|
|
3149
|
+
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
3150
|
+
type: isSet(object.type) ? videoTypeFromJSON(object.type) : 0,
|
|
3151
|
+
mimeType: isSet(object.mimeType) ? globalThis.String(object.mimeType) : undefined,
|
|
3152
|
+
thumbnail: isSet(object.thumbnail) ? globalThis.String(object.thumbnail) : undefined,
|
|
3153
|
+
};
|
|
3154
|
+
},
|
|
3155
|
+
toJSON(message) {
|
|
3156
|
+
const obj = {};
|
|
3157
|
+
if (message.url !== "") {
|
|
3158
|
+
obj.url = message.url;
|
|
3159
|
+
}
|
|
3160
|
+
if (message.type !== 0) {
|
|
3161
|
+
obj.type = videoTypeToJSON(message.type);
|
|
3162
|
+
}
|
|
3163
|
+
if (message.mimeType !== undefined) {
|
|
3164
|
+
obj.mimeType = message.mimeType;
|
|
3165
|
+
}
|
|
3166
|
+
if (message.thumbnail !== undefined) {
|
|
3167
|
+
obj.thumbnail = message.thumbnail;
|
|
3168
|
+
}
|
|
3169
|
+
return obj;
|
|
3170
|
+
},
|
|
3171
|
+
create(base) {
|
|
3172
|
+
return exports.VideoSource.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3173
|
+
},
|
|
3174
|
+
fromPartial(object) {
|
|
3175
|
+
var _a, _b, _c, _d;
|
|
3176
|
+
const message = createBaseVideoSource();
|
|
3177
|
+
message.url = (_a = object.url) !== null && _a !== void 0 ? _a : "";
|
|
3178
|
+
message.type = (_b = object.type) !== null && _b !== void 0 ? _b : 0;
|
|
3179
|
+
message.mimeType = (_c = object.mimeType) !== null && _c !== void 0 ? _c : undefined;
|
|
3180
|
+
message.thumbnail = (_d = object.thumbnail) !== null && _d !== void 0 ? _d : undefined;
|
|
3181
|
+
return message;
|
|
3182
|
+
},
|
|
3183
|
+
};
|
|
3184
|
+
function createBaseReplyTo() {
|
|
3185
|
+
return { postId: "", authorName: "", authorUsername: "" };
|
|
3186
|
+
}
|
|
3187
|
+
exports.ReplyTo = {
|
|
3188
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3189
|
+
if (message.postId !== "") {
|
|
3190
|
+
writer.uint32(10).string(message.postId);
|
|
3191
|
+
}
|
|
3192
|
+
if (message.authorName !== "") {
|
|
3193
|
+
writer.uint32(18).string(message.authorName);
|
|
3194
|
+
}
|
|
3195
|
+
if (message.authorUsername !== "") {
|
|
3196
|
+
writer.uint32(26).string(message.authorUsername);
|
|
3197
|
+
}
|
|
3198
|
+
return writer;
|
|
3199
|
+
},
|
|
3200
|
+
decode(input, length) {
|
|
3201
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3202
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3203
|
+
const message = createBaseReplyTo();
|
|
3204
|
+
while (reader.pos < end) {
|
|
3205
|
+
const tag = reader.uint32();
|
|
3206
|
+
switch (tag >>> 3) {
|
|
3207
|
+
case 1: {
|
|
3208
|
+
if (tag !== 10) {
|
|
1927
3209
|
break;
|
|
1928
3210
|
}
|
|
1929
|
-
message.
|
|
3211
|
+
message.postId = reader.string();
|
|
1930
3212
|
continue;
|
|
1931
3213
|
}
|
|
1932
|
-
case
|
|
1933
|
-
if (tag !==
|
|
3214
|
+
case 2: {
|
|
3215
|
+
if (tag !== 18) {
|
|
1934
3216
|
break;
|
|
1935
3217
|
}
|
|
1936
|
-
message.
|
|
3218
|
+
message.authorName = reader.string();
|
|
3219
|
+
continue;
|
|
3220
|
+
}
|
|
3221
|
+
case 3: {
|
|
3222
|
+
if (tag !== 26) {
|
|
3223
|
+
break;
|
|
3224
|
+
}
|
|
3225
|
+
message.authorUsername = reader.string();
|
|
1937
3226
|
continue;
|
|
1938
3227
|
}
|
|
1939
3228
|
}
|
|
@@ -1946,77 +3235,53 @@ exports.PostEngagement = {
|
|
|
1946
3235
|
},
|
|
1947
3236
|
fromJSON(object) {
|
|
1948
3237
|
return {
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
bookmarksCount: isSet(object.bookmarksCount) ? globalThis.Number(object.bookmarksCount) : 0,
|
|
1953
|
-
signaturesCount: isSet(object.signaturesCount) ? globalThis.Number(object.signaturesCount) : undefined,
|
|
1954
|
-
approvalsCount: isSet(object.approvalsCount) ? globalThis.Number(object.approvalsCount) : undefined,
|
|
3238
|
+
postId: isSet(object.postId) ? globalThis.String(object.postId) : "",
|
|
3239
|
+
authorName: isSet(object.authorName) ? globalThis.String(object.authorName) : "",
|
|
3240
|
+
authorUsername: isSet(object.authorUsername) ? globalThis.String(object.authorUsername) : "",
|
|
1955
3241
|
};
|
|
1956
3242
|
},
|
|
1957
3243
|
toJSON(message) {
|
|
1958
3244
|
const obj = {};
|
|
1959
|
-
if (message.
|
|
1960
|
-
obj.
|
|
1961
|
-
}
|
|
1962
|
-
if (message.commentsCount !== 0) {
|
|
1963
|
-
obj.commentsCount = Math.round(message.commentsCount);
|
|
1964
|
-
}
|
|
1965
|
-
if (message.repostsCount !== 0) {
|
|
1966
|
-
obj.repostsCount = Math.round(message.repostsCount);
|
|
1967
|
-
}
|
|
1968
|
-
if (message.bookmarksCount !== 0) {
|
|
1969
|
-
obj.bookmarksCount = Math.round(message.bookmarksCount);
|
|
3245
|
+
if (message.postId !== "") {
|
|
3246
|
+
obj.postId = message.postId;
|
|
1970
3247
|
}
|
|
1971
|
-
if (message.
|
|
1972
|
-
obj.
|
|
3248
|
+
if (message.authorName !== "") {
|
|
3249
|
+
obj.authorName = message.authorName;
|
|
1973
3250
|
}
|
|
1974
|
-
if (message.
|
|
1975
|
-
obj.
|
|
3251
|
+
if (message.authorUsername !== "") {
|
|
3252
|
+
obj.authorUsername = message.authorUsername;
|
|
1976
3253
|
}
|
|
1977
3254
|
return obj;
|
|
1978
3255
|
},
|
|
1979
3256
|
create(base) {
|
|
1980
|
-
return exports.
|
|
3257
|
+
return exports.ReplyTo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1981
3258
|
},
|
|
1982
3259
|
fromPartial(object) {
|
|
1983
|
-
var _a, _b, _c
|
|
1984
|
-
const message =
|
|
1985
|
-
message.
|
|
1986
|
-
message.
|
|
1987
|
-
message.
|
|
1988
|
-
message.bookmarksCount = (_d = object.bookmarksCount) !== null && _d !== void 0 ? _d : 0;
|
|
1989
|
-
message.signaturesCount = (_e = object.signaturesCount) !== null && _e !== void 0 ? _e : undefined;
|
|
1990
|
-
message.approvalsCount = (_f = object.approvalsCount) !== null && _f !== void 0 ? _f : undefined;
|
|
3260
|
+
var _a, _b, _c;
|
|
3261
|
+
const message = createBaseReplyTo();
|
|
3262
|
+
message.postId = (_a = object.postId) !== null && _a !== void 0 ? _a : "";
|
|
3263
|
+
message.authorName = (_b = object.authorName) !== null && _b !== void 0 ? _b : "";
|
|
3264
|
+
message.authorUsername = (_c = object.authorUsername) !== null && _c !== void 0 ? _c : "";
|
|
1991
3265
|
return message;
|
|
1992
3266
|
},
|
|
1993
3267
|
};
|
|
1994
|
-
function
|
|
1995
|
-
return {
|
|
3268
|
+
function createBaseImageDimensions() {
|
|
3269
|
+
return { width: 0, height: 0 };
|
|
1996
3270
|
}
|
|
1997
|
-
exports.
|
|
3271
|
+
exports.ImageDimensions = {
|
|
1998
3272
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1999
|
-
if (message.
|
|
2000
|
-
writer.uint32(8).
|
|
2001
|
-
}
|
|
2002
|
-
if (message.isBookmarked !== false) {
|
|
2003
|
-
writer.uint32(16).bool(message.isBookmarked);
|
|
3273
|
+
if (message.width !== 0) {
|
|
3274
|
+
writer.uint32(8).int32(message.width);
|
|
2004
3275
|
}
|
|
2005
|
-
if (message.
|
|
2006
|
-
writer.uint32(
|
|
2007
|
-
}
|
|
2008
|
-
if (message.isSigned !== undefined) {
|
|
2009
|
-
writer.uint32(32).bool(message.isSigned);
|
|
2010
|
-
}
|
|
2011
|
-
if (message.isApproved !== undefined) {
|
|
2012
|
-
writer.uint32(40).bool(message.isApproved);
|
|
3276
|
+
if (message.height !== 0) {
|
|
3277
|
+
writer.uint32(16).int32(message.height);
|
|
2013
3278
|
}
|
|
2014
3279
|
return writer;
|
|
2015
3280
|
},
|
|
2016
3281
|
decode(input, length) {
|
|
2017
3282
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2018
3283
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2019
|
-
const message =
|
|
3284
|
+
const message = createBaseImageDimensions();
|
|
2020
3285
|
while (reader.pos < end) {
|
|
2021
3286
|
const tag = reader.uint32();
|
|
2022
3287
|
switch (tag >>> 3) {
|
|
@@ -2024,35 +3289,83 @@ exports.PostUserStatus = {
|
|
|
2024
3289
|
if (tag !== 8) {
|
|
2025
3290
|
break;
|
|
2026
3291
|
}
|
|
2027
|
-
message.
|
|
3292
|
+
message.width = reader.int32();
|
|
2028
3293
|
continue;
|
|
2029
3294
|
}
|
|
2030
3295
|
case 2: {
|
|
2031
3296
|
if (tag !== 16) {
|
|
2032
3297
|
break;
|
|
2033
3298
|
}
|
|
2034
|
-
message.
|
|
2035
|
-
continue;
|
|
2036
|
-
}
|
|
2037
|
-
case 3: {
|
|
2038
|
-
if (tag !== 24) {
|
|
2039
|
-
break;
|
|
2040
|
-
}
|
|
2041
|
-
message.isReposted = reader.bool();
|
|
3299
|
+
message.height = reader.int32();
|
|
2042
3300
|
continue;
|
|
2043
3301
|
}
|
|
2044
|
-
|
|
2045
|
-
|
|
3302
|
+
}
|
|
3303
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3304
|
+
break;
|
|
3305
|
+
}
|
|
3306
|
+
reader.skip(tag & 7);
|
|
3307
|
+
}
|
|
3308
|
+
return message;
|
|
3309
|
+
},
|
|
3310
|
+
fromJSON(object) {
|
|
3311
|
+
return {
|
|
3312
|
+
width: isSet(object.width) ? globalThis.Number(object.width) : 0,
|
|
3313
|
+
height: isSet(object.height) ? globalThis.Number(object.height) : 0,
|
|
3314
|
+
};
|
|
3315
|
+
},
|
|
3316
|
+
toJSON(message) {
|
|
3317
|
+
const obj = {};
|
|
3318
|
+
if (message.width !== 0) {
|
|
3319
|
+
obj.width = Math.round(message.width);
|
|
3320
|
+
}
|
|
3321
|
+
if (message.height !== 0) {
|
|
3322
|
+
obj.height = Math.round(message.height);
|
|
3323
|
+
}
|
|
3324
|
+
return obj;
|
|
3325
|
+
},
|
|
3326
|
+
create(base) {
|
|
3327
|
+
return exports.ImageDimensions.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3328
|
+
},
|
|
3329
|
+
fromPartial(object) {
|
|
3330
|
+
var _a, _b;
|
|
3331
|
+
const message = createBaseImageDimensions();
|
|
3332
|
+
message.width = (_a = object.width) !== null && _a !== void 0 ? _a : 0;
|
|
3333
|
+
message.height = (_b = object.height) !== null && _b !== void 0 ? _b : 0;
|
|
3334
|
+
return message;
|
|
3335
|
+
},
|
|
3336
|
+
};
|
|
3337
|
+
function createBaseImageToCrop() {
|
|
3338
|
+
return { src: "", index: 0 };
|
|
3339
|
+
}
|
|
3340
|
+
exports.ImageToCrop = {
|
|
3341
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3342
|
+
if (message.src !== "") {
|
|
3343
|
+
writer.uint32(10).string(message.src);
|
|
3344
|
+
}
|
|
3345
|
+
if (message.index !== 0) {
|
|
3346
|
+
writer.uint32(16).int32(message.index);
|
|
3347
|
+
}
|
|
3348
|
+
return writer;
|
|
3349
|
+
},
|
|
3350
|
+
decode(input, length) {
|
|
3351
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3352
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3353
|
+
const message = createBaseImageToCrop();
|
|
3354
|
+
while (reader.pos < end) {
|
|
3355
|
+
const tag = reader.uint32();
|
|
3356
|
+
switch (tag >>> 3) {
|
|
3357
|
+
case 1: {
|
|
3358
|
+
if (tag !== 10) {
|
|
2046
3359
|
break;
|
|
2047
3360
|
}
|
|
2048
|
-
message.
|
|
3361
|
+
message.src = reader.string();
|
|
2049
3362
|
continue;
|
|
2050
3363
|
}
|
|
2051
|
-
case
|
|
2052
|
-
if (tag !==
|
|
3364
|
+
case 2: {
|
|
3365
|
+
if (tag !== 16) {
|
|
2053
3366
|
break;
|
|
2054
3367
|
}
|
|
2055
|
-
message.
|
|
3368
|
+
message.index = reader.int32();
|
|
2056
3369
|
continue;
|
|
2057
3370
|
}
|
|
2058
3371
|
}
|
|
@@ -2063,45 +3376,30 @@ exports.PostUserStatus = {
|
|
|
2063
3376
|
}
|
|
2064
3377
|
return message;
|
|
2065
3378
|
},
|
|
2066
|
-
fromJSON(object) {
|
|
2067
|
-
return {
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
isReposted: isSet(object.isReposted) ? globalThis.Boolean(object.isReposted) : false,
|
|
2071
|
-
isSigned: isSet(object.isSigned) ? globalThis.Boolean(object.isSigned) : undefined,
|
|
2072
|
-
isApproved: isSet(object.isApproved) ? globalThis.Boolean(object.isApproved) : undefined,
|
|
3379
|
+
fromJSON(object) {
|
|
3380
|
+
return {
|
|
3381
|
+
src: isSet(object.src) ? globalThis.String(object.src) : "",
|
|
3382
|
+
index: isSet(object.index) ? globalThis.Number(object.index) : 0,
|
|
2073
3383
|
};
|
|
2074
3384
|
},
|
|
2075
3385
|
toJSON(message) {
|
|
2076
3386
|
const obj = {};
|
|
2077
|
-
if (message.
|
|
2078
|
-
obj.
|
|
2079
|
-
}
|
|
2080
|
-
if (message.isBookmarked !== false) {
|
|
2081
|
-
obj.isBookmarked = message.isBookmarked;
|
|
2082
|
-
}
|
|
2083
|
-
if (message.isReposted !== false) {
|
|
2084
|
-
obj.isReposted = message.isReposted;
|
|
2085
|
-
}
|
|
2086
|
-
if (message.isSigned !== undefined) {
|
|
2087
|
-
obj.isSigned = message.isSigned;
|
|
3387
|
+
if (message.src !== "") {
|
|
3388
|
+
obj.src = message.src;
|
|
2088
3389
|
}
|
|
2089
|
-
if (message.
|
|
2090
|
-
obj.
|
|
3390
|
+
if (message.index !== 0) {
|
|
3391
|
+
obj.index = Math.round(message.index);
|
|
2091
3392
|
}
|
|
2092
3393
|
return obj;
|
|
2093
3394
|
},
|
|
2094
3395
|
create(base) {
|
|
2095
|
-
return exports.
|
|
3396
|
+
return exports.ImageToCrop.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2096
3397
|
},
|
|
2097
3398
|
fromPartial(object) {
|
|
2098
|
-
var _a, _b
|
|
2099
|
-
const message =
|
|
2100
|
-
message.
|
|
2101
|
-
message.
|
|
2102
|
-
message.isReposted = (_c = object.isReposted) !== null && _c !== void 0 ? _c : false;
|
|
2103
|
-
message.isSigned = (_d = object.isSigned) !== null && _d !== void 0 ? _d : undefined;
|
|
2104
|
-
message.isApproved = (_e = object.isApproved) !== null && _e !== void 0 ? _e : undefined;
|
|
3399
|
+
var _a, _b;
|
|
3400
|
+
const message = createBaseImageToCrop();
|
|
3401
|
+
message.src = (_a = object.src) !== null && _a !== void 0 ? _a : "";
|
|
3402
|
+
message.index = (_b = object.index) !== null && _b !== void 0 ? _b : 0;
|
|
2105
3403
|
return message;
|
|
2106
3404
|
},
|
|
2107
3405
|
};
|
|
@@ -2490,6 +3788,269 @@ exports.PostServiceDefinition = {
|
|
|
2490
3788
|
},
|
|
2491
3789
|
},
|
|
2492
3790
|
},
|
|
3791
|
+
sharePost: {
|
|
3792
|
+
name: "SharePost",
|
|
3793
|
+
requestType: exports.SharePostRequest,
|
|
3794
|
+
requestStream: false,
|
|
3795
|
+
responseType: exports.SharePostResponse,
|
|
3796
|
+
responseStream: false,
|
|
3797
|
+
options: {
|
|
3798
|
+
_unknownFields: {
|
|
3799
|
+
578365826: [
|
|
3800
|
+
new Uint8Array([
|
|
3801
|
+
33,
|
|
3802
|
+
34,
|
|
3803
|
+
28,
|
|
3804
|
+
47,
|
|
3805
|
+
97,
|
|
3806
|
+
112,
|
|
3807
|
+
105,
|
|
3808
|
+
47,
|
|
3809
|
+
118,
|
|
3810
|
+
49,
|
|
3811
|
+
47,
|
|
3812
|
+
112,
|
|
3813
|
+
111,
|
|
3814
|
+
115,
|
|
3815
|
+
116,
|
|
3816
|
+
115,
|
|
3817
|
+
47,
|
|
3818
|
+
123,
|
|
3819
|
+
112,
|
|
3820
|
+
111,
|
|
3821
|
+
115,
|
|
3822
|
+
116,
|
|
3823
|
+
73,
|
|
3824
|
+
100,
|
|
3825
|
+
125,
|
|
3826
|
+
47,
|
|
3827
|
+
115,
|
|
3828
|
+
104,
|
|
3829
|
+
97,
|
|
3830
|
+
114,
|
|
3831
|
+
101,
|
|
3832
|
+
58,
|
|
3833
|
+
1,
|
|
3834
|
+
42,
|
|
3835
|
+
]),
|
|
3836
|
+
],
|
|
3837
|
+
},
|
|
3838
|
+
},
|
|
3839
|
+
},
|
|
3840
|
+
getUserPosts: {
|
|
3841
|
+
name: "GetUserPosts",
|
|
3842
|
+
requestType: exports.GetUserPostsRequest,
|
|
3843
|
+
requestStream: false,
|
|
3844
|
+
responseType: exports.ListPostsResponse,
|
|
3845
|
+
responseStream: false,
|
|
3846
|
+
options: {
|
|
3847
|
+
_unknownFields: {
|
|
3848
|
+
578365826: [
|
|
3849
|
+
new Uint8Array([
|
|
3850
|
+
26,
|
|
3851
|
+
18,
|
|
3852
|
+
24,
|
|
3853
|
+
47,
|
|
3854
|
+
97,
|
|
3855
|
+
112,
|
|
3856
|
+
105,
|
|
3857
|
+
47,
|
|
3858
|
+
118,
|
|
3859
|
+
49,
|
|
3860
|
+
47,
|
|
3861
|
+
112,
|
|
3862
|
+
111,
|
|
3863
|
+
115,
|
|
3864
|
+
116,
|
|
3865
|
+
115,
|
|
3866
|
+
47,
|
|
3867
|
+
117,
|
|
3868
|
+
115,
|
|
3869
|
+
101,
|
|
3870
|
+
114,
|
|
3871
|
+
47,
|
|
3872
|
+
112,
|
|
3873
|
+
111,
|
|
3874
|
+
115,
|
|
3875
|
+
116,
|
|
3876
|
+
115,
|
|
3877
|
+
]),
|
|
3878
|
+
],
|
|
3879
|
+
},
|
|
3880
|
+
},
|
|
3881
|
+
},
|
|
3882
|
+
getUserReplies: {
|
|
3883
|
+
name: "GetUserReplies",
|
|
3884
|
+
requestType: exports.GetUserRepliesRequest,
|
|
3885
|
+
requestStream: false,
|
|
3886
|
+
responseType: exports.ListPostsResponse,
|
|
3887
|
+
responseStream: false,
|
|
3888
|
+
options: {
|
|
3889
|
+
_unknownFields: {
|
|
3890
|
+
578365826: [
|
|
3891
|
+
new Uint8Array([
|
|
3892
|
+
28,
|
|
3893
|
+
18,
|
|
3894
|
+
26,
|
|
3895
|
+
47,
|
|
3896
|
+
97,
|
|
3897
|
+
112,
|
|
3898
|
+
105,
|
|
3899
|
+
47,
|
|
3900
|
+
118,
|
|
3901
|
+
49,
|
|
3902
|
+
47,
|
|
3903
|
+
112,
|
|
3904
|
+
111,
|
|
3905
|
+
115,
|
|
3906
|
+
116,
|
|
3907
|
+
115,
|
|
3908
|
+
47,
|
|
3909
|
+
117,
|
|
3910
|
+
115,
|
|
3911
|
+
101,
|
|
3912
|
+
114,
|
|
3913
|
+
47,
|
|
3914
|
+
114,
|
|
3915
|
+
101,
|
|
3916
|
+
112,
|
|
3917
|
+
108,
|
|
3918
|
+
105,
|
|
3919
|
+
101,
|
|
3920
|
+
115,
|
|
3921
|
+
]),
|
|
3922
|
+
],
|
|
3923
|
+
},
|
|
3924
|
+
},
|
|
3925
|
+
},
|
|
3926
|
+
getUserMedia: {
|
|
3927
|
+
name: "GetUserMedia",
|
|
3928
|
+
requestType: exports.GetUserMediaRequest,
|
|
3929
|
+
requestStream: false,
|
|
3930
|
+
responseType: exports.ListPostsResponse,
|
|
3931
|
+
responseStream: false,
|
|
3932
|
+
options: {
|
|
3933
|
+
_unknownFields: {
|
|
3934
|
+
578365826: [
|
|
3935
|
+
new Uint8Array([
|
|
3936
|
+
26,
|
|
3937
|
+
18,
|
|
3938
|
+
24,
|
|
3939
|
+
47,
|
|
3940
|
+
97,
|
|
3941
|
+
112,
|
|
3942
|
+
105,
|
|
3943
|
+
47,
|
|
3944
|
+
118,
|
|
3945
|
+
49,
|
|
3946
|
+
47,
|
|
3947
|
+
112,
|
|
3948
|
+
111,
|
|
3949
|
+
115,
|
|
3950
|
+
116,
|
|
3951
|
+
115,
|
|
3952
|
+
47,
|
|
3953
|
+
117,
|
|
3954
|
+
115,
|
|
3955
|
+
101,
|
|
3956
|
+
114,
|
|
3957
|
+
47,
|
|
3958
|
+
109,
|
|
3959
|
+
101,
|
|
3960
|
+
100,
|
|
3961
|
+
105,
|
|
3962
|
+
97,
|
|
3963
|
+
]),
|
|
3964
|
+
],
|
|
3965
|
+
},
|
|
3966
|
+
},
|
|
3967
|
+
},
|
|
3968
|
+
getUserLikes: {
|
|
3969
|
+
name: "GetUserLikes",
|
|
3970
|
+
requestType: exports.GetUserLikesRequest,
|
|
3971
|
+
requestStream: false,
|
|
3972
|
+
responseType: exports.ListPostsResponse,
|
|
3973
|
+
responseStream: false,
|
|
3974
|
+
options: {
|
|
3975
|
+
_unknownFields: {
|
|
3976
|
+
578365826: [
|
|
3977
|
+
new Uint8Array([
|
|
3978
|
+
26,
|
|
3979
|
+
18,
|
|
3980
|
+
24,
|
|
3981
|
+
47,
|
|
3982
|
+
97,
|
|
3983
|
+
112,
|
|
3984
|
+
105,
|
|
3985
|
+
47,
|
|
3986
|
+
118,
|
|
3987
|
+
49,
|
|
3988
|
+
47,
|
|
3989
|
+
112,
|
|
3990
|
+
111,
|
|
3991
|
+
115,
|
|
3992
|
+
116,
|
|
3993
|
+
115,
|
|
3994
|
+
47,
|
|
3995
|
+
117,
|
|
3996
|
+
115,
|
|
3997
|
+
101,
|
|
3998
|
+
114,
|
|
3999
|
+
47,
|
|
4000
|
+
108,
|
|
4001
|
+
105,
|
|
4002
|
+
107,
|
|
4003
|
+
101,
|
|
4004
|
+
115,
|
|
4005
|
+
]),
|
|
4006
|
+
],
|
|
4007
|
+
},
|
|
4008
|
+
},
|
|
4009
|
+
},
|
|
4010
|
+
getUserReposts: {
|
|
4011
|
+
name: "GetUserReposts",
|
|
4012
|
+
requestType: exports.GetUserRepostsRequest,
|
|
4013
|
+
requestStream: false,
|
|
4014
|
+
responseType: exports.ListPostsResponse,
|
|
4015
|
+
responseStream: false,
|
|
4016
|
+
options: {
|
|
4017
|
+
_unknownFields: {
|
|
4018
|
+
578365826: [
|
|
4019
|
+
new Uint8Array([
|
|
4020
|
+
28,
|
|
4021
|
+
18,
|
|
4022
|
+
26,
|
|
4023
|
+
47,
|
|
4024
|
+
97,
|
|
4025
|
+
112,
|
|
4026
|
+
105,
|
|
4027
|
+
47,
|
|
4028
|
+
118,
|
|
4029
|
+
49,
|
|
4030
|
+
47,
|
|
4031
|
+
112,
|
|
4032
|
+
111,
|
|
4033
|
+
115,
|
|
4034
|
+
116,
|
|
4035
|
+
115,
|
|
4036
|
+
47,
|
|
4037
|
+
117,
|
|
4038
|
+
115,
|
|
4039
|
+
101,
|
|
4040
|
+
114,
|
|
4041
|
+
47,
|
|
4042
|
+
114,
|
|
4043
|
+
101,
|
|
4044
|
+
112,
|
|
4045
|
+
111,
|
|
4046
|
+
115,
|
|
4047
|
+
116,
|
|
4048
|
+
115,
|
|
4049
|
+
]),
|
|
4050
|
+
],
|
|
4051
|
+
},
|
|
4052
|
+
},
|
|
4053
|
+
},
|
|
2493
4054
|
unrepost: {
|
|
2494
4055
|
name: "Unrepost",
|
|
2495
4056
|
requestType: exports.UnrepostRequest,
|