theragist-ts 1.0.3

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.
Files changed (37) hide show
  1. package/dist/auth/message.d.ts +242 -0
  2. package/dist/auth/message.js +2980 -0
  3. package/dist/auth/service.d.ts +239 -0
  4. package/dist/auth/service.js +963 -0
  5. package/dist/booking/message.d.ts +109 -0
  6. package/dist/booking/message.js +1263 -0
  7. package/dist/booking/service.d.ts +69 -0
  8. package/dist/booking/service.js +230 -0
  9. package/dist/common.d.ts +81 -0
  10. package/dist/common.js +641 -0
  11. package/dist/community/message.d.ts +67 -0
  12. package/dist/community/message.js +646 -0
  13. package/dist/community/service.d.ts +57 -0
  14. package/dist/community/service.js +213 -0
  15. package/dist/google/api/annotations.d.ts +1 -0
  16. package/dist/google/api/annotations.js +10 -0
  17. package/dist/google/api/http.d.ts +371 -0
  18. package/dist/google/api/http.js +360 -0
  19. package/dist/google/protobuf/descriptor.d.ts +884 -0
  20. package/dist/google/protobuf/descriptor.js +3595 -0
  21. package/dist/google/protobuf/struct.d.ts +107 -0
  22. package/dist/google/protobuf/struct.js +461 -0
  23. package/dist/index.d.ts +16 -0
  24. package/dist/index.js +192 -0
  25. package/dist/lookup/message.d.ts +128 -0
  26. package/dist/lookup/message.js +1498 -0
  27. package/dist/lookup/service.d.ts +93 -0
  28. package/dist/lookup/service.js +334 -0
  29. package/dist/therapist/message.d.ts +67 -0
  30. package/dist/therapist/message.js +679 -0
  31. package/dist/therapist/service.d.ts +47 -0
  32. package/dist/therapist/service.js +159 -0
  33. package/dist/user/message.d.ts +114 -0
  34. package/dist/user/message.js +1342 -0
  35. package/dist/user/service.d.ts +172 -0
  36. package/dist/user/service.js +1041 -0
  37. package/package.json +43 -0
@@ -0,0 +1,646 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.10.1
5
+ // protoc v3.21.12
6
+ // source: community/message.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.LeaveCommunityResponse = exports.LeaveCommunityRequest = exports.JoinCommunityResponse = exports.JoinCommunityRequest = exports.GetUserCommunitiesResponse = exports.GetUserCommunitiesRequest = exports.GetCommunitiesResponse = exports.GetCommunitiesRequest = exports.Community = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ const common_1 = require("../common");
12
+ exports.protobufPackage = "community";
13
+ function createBaseCommunity() {
14
+ return {
15
+ communityId: "",
16
+ name: "",
17
+ description: "",
18
+ icon: "",
19
+ tags: [],
20
+ memberCount: 0,
21
+ isActive: false,
22
+ displayOrder: 0,
23
+ createdAt: "",
24
+ };
25
+ }
26
+ exports.Community = {
27
+ encode(message, writer = new wire_1.BinaryWriter()) {
28
+ if (message.communityId !== "") {
29
+ writer.uint32(10).string(message.communityId);
30
+ }
31
+ if (message.name !== "") {
32
+ writer.uint32(18).string(message.name);
33
+ }
34
+ if (message.description !== "") {
35
+ writer.uint32(26).string(message.description);
36
+ }
37
+ if (message.icon !== "") {
38
+ writer.uint32(34).string(message.icon);
39
+ }
40
+ for (const v of message.tags) {
41
+ writer.uint32(42).string(v);
42
+ }
43
+ if (message.memberCount !== 0) {
44
+ writer.uint32(48).int32(message.memberCount);
45
+ }
46
+ if (message.isActive !== false) {
47
+ writer.uint32(56).bool(message.isActive);
48
+ }
49
+ if (message.displayOrder !== 0) {
50
+ writer.uint32(64).int32(message.displayOrder);
51
+ }
52
+ if (message.createdAt !== "") {
53
+ writer.uint32(74).string(message.createdAt);
54
+ }
55
+ return writer;
56
+ },
57
+ decode(input, length) {
58
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
59
+ const end = length === undefined ? reader.len : reader.pos + length;
60
+ const message = createBaseCommunity();
61
+ while (reader.pos < end) {
62
+ const tag = reader.uint32();
63
+ switch (tag >>> 3) {
64
+ case 1: {
65
+ if (tag !== 10) {
66
+ break;
67
+ }
68
+ message.communityId = reader.string();
69
+ continue;
70
+ }
71
+ case 2: {
72
+ if (tag !== 18) {
73
+ break;
74
+ }
75
+ message.name = reader.string();
76
+ continue;
77
+ }
78
+ case 3: {
79
+ if (tag !== 26) {
80
+ break;
81
+ }
82
+ message.description = reader.string();
83
+ continue;
84
+ }
85
+ case 4: {
86
+ if (tag !== 34) {
87
+ break;
88
+ }
89
+ message.icon = reader.string();
90
+ continue;
91
+ }
92
+ case 5: {
93
+ if (tag !== 42) {
94
+ break;
95
+ }
96
+ message.tags.push(reader.string());
97
+ continue;
98
+ }
99
+ case 6: {
100
+ if (tag !== 48) {
101
+ break;
102
+ }
103
+ message.memberCount = reader.int32();
104
+ continue;
105
+ }
106
+ case 7: {
107
+ if (tag !== 56) {
108
+ break;
109
+ }
110
+ message.isActive = reader.bool();
111
+ continue;
112
+ }
113
+ case 8: {
114
+ if (tag !== 64) {
115
+ break;
116
+ }
117
+ message.displayOrder = reader.int32();
118
+ continue;
119
+ }
120
+ case 9: {
121
+ if (tag !== 74) {
122
+ break;
123
+ }
124
+ message.createdAt = reader.string();
125
+ continue;
126
+ }
127
+ }
128
+ if ((tag & 7) === 4 || tag === 0) {
129
+ break;
130
+ }
131
+ reader.skip(tag & 7);
132
+ }
133
+ return message;
134
+ },
135
+ fromJSON(object) {
136
+ return {
137
+ communityId: isSet(object.communityId) ? globalThis.String(object.communityId) : "",
138
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
139
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
140
+ icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
141
+ tags: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.tags) ? object.tags.map((e) => globalThis.String(e)) : [],
142
+ memberCount: isSet(object.memberCount) ? globalThis.Number(object.memberCount) : 0,
143
+ isActive: isSet(object.isActive) ? globalThis.Boolean(object.isActive) : false,
144
+ displayOrder: isSet(object.displayOrder) ? globalThis.Number(object.displayOrder) : 0,
145
+ createdAt: isSet(object.createdAt) ? globalThis.String(object.createdAt) : "",
146
+ };
147
+ },
148
+ toJSON(message) {
149
+ var _a;
150
+ const obj = {};
151
+ if (message.communityId !== "") {
152
+ obj.communityId = message.communityId;
153
+ }
154
+ if (message.name !== "") {
155
+ obj.name = message.name;
156
+ }
157
+ if (message.description !== "") {
158
+ obj.description = message.description;
159
+ }
160
+ if (message.icon !== "") {
161
+ obj.icon = message.icon;
162
+ }
163
+ if ((_a = message.tags) === null || _a === void 0 ? void 0 : _a.length) {
164
+ obj.tags = message.tags;
165
+ }
166
+ if (message.memberCount !== 0) {
167
+ obj.memberCount = Math.round(message.memberCount);
168
+ }
169
+ if (message.isActive !== false) {
170
+ obj.isActive = message.isActive;
171
+ }
172
+ if (message.displayOrder !== 0) {
173
+ obj.displayOrder = Math.round(message.displayOrder);
174
+ }
175
+ if (message.createdAt !== "") {
176
+ obj.createdAt = message.createdAt;
177
+ }
178
+ return obj;
179
+ },
180
+ create(base) {
181
+ return exports.Community.fromPartial(base !== null && base !== void 0 ? base : {});
182
+ },
183
+ fromPartial(object) {
184
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
185
+ const message = createBaseCommunity();
186
+ message.communityId = (_a = object.communityId) !== null && _a !== void 0 ? _a : "";
187
+ message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
188
+ message.description = (_c = object.description) !== null && _c !== void 0 ? _c : "";
189
+ message.icon = (_d = object.icon) !== null && _d !== void 0 ? _d : "";
190
+ message.tags = ((_e = object.tags) === null || _e === void 0 ? void 0 : _e.map((e) => e)) || [];
191
+ message.memberCount = (_f = object.memberCount) !== null && _f !== void 0 ? _f : 0;
192
+ message.isActive = (_g = object.isActive) !== null && _g !== void 0 ? _g : false;
193
+ message.displayOrder = (_h = object.displayOrder) !== null && _h !== void 0 ? _h : 0;
194
+ message.createdAt = (_j = object.createdAt) !== null && _j !== void 0 ? _j : "";
195
+ return message;
196
+ },
197
+ };
198
+ function createBaseGetCommunitiesRequest() {
199
+ return { pagination: undefined };
200
+ }
201
+ exports.GetCommunitiesRequest = {
202
+ encode(message, writer = new wire_1.BinaryWriter()) {
203
+ if (message.pagination !== undefined) {
204
+ common_1.BaseListRequest.encode(message.pagination, writer.uint32(10).fork()).join();
205
+ }
206
+ return writer;
207
+ },
208
+ decode(input, length) {
209
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
210
+ const end = length === undefined ? reader.len : reader.pos + length;
211
+ const message = createBaseGetCommunitiesRequest();
212
+ while (reader.pos < end) {
213
+ const tag = reader.uint32();
214
+ switch (tag >>> 3) {
215
+ case 1: {
216
+ if (tag !== 10) {
217
+ break;
218
+ }
219
+ message.pagination = common_1.BaseListRequest.decode(reader, reader.uint32());
220
+ continue;
221
+ }
222
+ }
223
+ if ((tag & 7) === 4 || tag === 0) {
224
+ break;
225
+ }
226
+ reader.skip(tag & 7);
227
+ }
228
+ return message;
229
+ },
230
+ fromJSON(object) {
231
+ return { pagination: isSet(object.pagination) ? common_1.BaseListRequest.fromJSON(object.pagination) : undefined };
232
+ },
233
+ toJSON(message) {
234
+ const obj = {};
235
+ if (message.pagination !== undefined) {
236
+ obj.pagination = common_1.BaseListRequest.toJSON(message.pagination);
237
+ }
238
+ return obj;
239
+ },
240
+ create(base) {
241
+ return exports.GetCommunitiesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
242
+ },
243
+ fromPartial(object) {
244
+ const message = createBaseGetCommunitiesRequest();
245
+ message.pagination = (object.pagination !== undefined && object.pagination !== null)
246
+ ? common_1.BaseListRequest.fromPartial(object.pagination)
247
+ : undefined;
248
+ return message;
249
+ },
250
+ };
251
+ function createBaseGetCommunitiesResponse() {
252
+ return { communities: [] };
253
+ }
254
+ exports.GetCommunitiesResponse = {
255
+ encode(message, writer = new wire_1.BinaryWriter()) {
256
+ for (const v of message.communities) {
257
+ exports.Community.encode(v, writer.uint32(10).fork()).join();
258
+ }
259
+ return writer;
260
+ },
261
+ decode(input, length) {
262
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
263
+ const end = length === undefined ? reader.len : reader.pos + length;
264
+ const message = createBaseGetCommunitiesResponse();
265
+ while (reader.pos < end) {
266
+ const tag = reader.uint32();
267
+ switch (tag >>> 3) {
268
+ case 1: {
269
+ if (tag !== 10) {
270
+ break;
271
+ }
272
+ message.communities.push(exports.Community.decode(reader, reader.uint32()));
273
+ continue;
274
+ }
275
+ }
276
+ if ((tag & 7) === 4 || tag === 0) {
277
+ break;
278
+ }
279
+ reader.skip(tag & 7);
280
+ }
281
+ return message;
282
+ },
283
+ fromJSON(object) {
284
+ return {
285
+ communities: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.communities)
286
+ ? object.communities.map((e) => exports.Community.fromJSON(e))
287
+ : [],
288
+ };
289
+ },
290
+ toJSON(message) {
291
+ var _a;
292
+ const obj = {};
293
+ if ((_a = message.communities) === null || _a === void 0 ? void 0 : _a.length) {
294
+ obj.communities = message.communities.map((e) => exports.Community.toJSON(e));
295
+ }
296
+ return obj;
297
+ },
298
+ create(base) {
299
+ return exports.GetCommunitiesResponse.fromPartial(base !== null && base !== void 0 ? base : {});
300
+ },
301
+ fromPartial(object) {
302
+ var _a;
303
+ const message = createBaseGetCommunitiesResponse();
304
+ message.communities = ((_a = object.communities) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Community.fromPartial(e))) || [];
305
+ return message;
306
+ },
307
+ };
308
+ function createBaseGetUserCommunitiesRequest() {
309
+ return {};
310
+ }
311
+ exports.GetUserCommunitiesRequest = {
312
+ encode(_, writer = new wire_1.BinaryWriter()) {
313
+ return writer;
314
+ },
315
+ decode(input, length) {
316
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
317
+ const end = length === undefined ? reader.len : reader.pos + length;
318
+ const message = createBaseGetUserCommunitiesRequest();
319
+ while (reader.pos < end) {
320
+ const tag = reader.uint32();
321
+ switch (tag >>> 3) {
322
+ }
323
+ if ((tag & 7) === 4 || tag === 0) {
324
+ break;
325
+ }
326
+ reader.skip(tag & 7);
327
+ }
328
+ return message;
329
+ },
330
+ fromJSON(_) {
331
+ return {};
332
+ },
333
+ toJSON(_) {
334
+ const obj = {};
335
+ return obj;
336
+ },
337
+ create(base) {
338
+ return exports.GetUserCommunitiesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
339
+ },
340
+ fromPartial(_) {
341
+ const message = createBaseGetUserCommunitiesRequest();
342
+ return message;
343
+ },
344
+ };
345
+ function createBaseGetUserCommunitiesResponse() {
346
+ return { communities: [] };
347
+ }
348
+ exports.GetUserCommunitiesResponse = {
349
+ encode(message, writer = new wire_1.BinaryWriter()) {
350
+ for (const v of message.communities) {
351
+ exports.Community.encode(v, writer.uint32(10).fork()).join();
352
+ }
353
+ return writer;
354
+ },
355
+ decode(input, length) {
356
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
357
+ const end = length === undefined ? reader.len : reader.pos + length;
358
+ const message = createBaseGetUserCommunitiesResponse();
359
+ while (reader.pos < end) {
360
+ const tag = reader.uint32();
361
+ switch (tag >>> 3) {
362
+ case 1: {
363
+ if (tag !== 10) {
364
+ break;
365
+ }
366
+ message.communities.push(exports.Community.decode(reader, reader.uint32()));
367
+ continue;
368
+ }
369
+ }
370
+ if ((tag & 7) === 4 || tag === 0) {
371
+ break;
372
+ }
373
+ reader.skip(tag & 7);
374
+ }
375
+ return message;
376
+ },
377
+ fromJSON(object) {
378
+ return {
379
+ communities: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.communities)
380
+ ? object.communities.map((e) => exports.Community.fromJSON(e))
381
+ : [],
382
+ };
383
+ },
384
+ toJSON(message) {
385
+ var _a;
386
+ const obj = {};
387
+ if ((_a = message.communities) === null || _a === void 0 ? void 0 : _a.length) {
388
+ obj.communities = message.communities.map((e) => exports.Community.toJSON(e));
389
+ }
390
+ return obj;
391
+ },
392
+ create(base) {
393
+ return exports.GetUserCommunitiesResponse.fromPartial(base !== null && base !== void 0 ? base : {});
394
+ },
395
+ fromPartial(object) {
396
+ var _a;
397
+ const message = createBaseGetUserCommunitiesResponse();
398
+ message.communities = ((_a = object.communities) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Community.fromPartial(e))) || [];
399
+ return message;
400
+ },
401
+ };
402
+ function createBaseJoinCommunityRequest() {
403
+ return { communityId: "" };
404
+ }
405
+ exports.JoinCommunityRequest = {
406
+ encode(message, writer = new wire_1.BinaryWriter()) {
407
+ if (message.communityId !== "") {
408
+ writer.uint32(10).string(message.communityId);
409
+ }
410
+ return writer;
411
+ },
412
+ decode(input, length) {
413
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
414
+ const end = length === undefined ? reader.len : reader.pos + length;
415
+ const message = createBaseJoinCommunityRequest();
416
+ while (reader.pos < end) {
417
+ const tag = reader.uint32();
418
+ switch (tag >>> 3) {
419
+ case 1: {
420
+ if (tag !== 10) {
421
+ break;
422
+ }
423
+ message.communityId = reader.string();
424
+ continue;
425
+ }
426
+ }
427
+ if ((tag & 7) === 4 || tag === 0) {
428
+ break;
429
+ }
430
+ reader.skip(tag & 7);
431
+ }
432
+ return message;
433
+ },
434
+ fromJSON(object) {
435
+ return { communityId: isSet(object.communityId) ? globalThis.String(object.communityId) : "" };
436
+ },
437
+ toJSON(message) {
438
+ const obj = {};
439
+ if (message.communityId !== "") {
440
+ obj.communityId = message.communityId;
441
+ }
442
+ return obj;
443
+ },
444
+ create(base) {
445
+ return exports.JoinCommunityRequest.fromPartial(base !== null && base !== void 0 ? base : {});
446
+ },
447
+ fromPartial(object) {
448
+ var _a;
449
+ const message = createBaseJoinCommunityRequest();
450
+ message.communityId = (_a = object.communityId) !== null && _a !== void 0 ? _a : "";
451
+ return message;
452
+ },
453
+ };
454
+ function createBaseJoinCommunityResponse() {
455
+ return { communityId: "", message: "" };
456
+ }
457
+ exports.JoinCommunityResponse = {
458
+ encode(message, writer = new wire_1.BinaryWriter()) {
459
+ if (message.communityId !== "") {
460
+ writer.uint32(10).string(message.communityId);
461
+ }
462
+ if (message.message !== "") {
463
+ writer.uint32(18).string(message.message);
464
+ }
465
+ return writer;
466
+ },
467
+ decode(input, length) {
468
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
469
+ const end = length === undefined ? reader.len : reader.pos + length;
470
+ const message = createBaseJoinCommunityResponse();
471
+ while (reader.pos < end) {
472
+ const tag = reader.uint32();
473
+ switch (tag >>> 3) {
474
+ case 1: {
475
+ if (tag !== 10) {
476
+ break;
477
+ }
478
+ message.communityId = reader.string();
479
+ continue;
480
+ }
481
+ case 2: {
482
+ if (tag !== 18) {
483
+ break;
484
+ }
485
+ message.message = reader.string();
486
+ continue;
487
+ }
488
+ }
489
+ if ((tag & 7) === 4 || tag === 0) {
490
+ break;
491
+ }
492
+ reader.skip(tag & 7);
493
+ }
494
+ return message;
495
+ },
496
+ fromJSON(object) {
497
+ return {
498
+ communityId: isSet(object.communityId) ? globalThis.String(object.communityId) : "",
499
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
500
+ };
501
+ },
502
+ toJSON(message) {
503
+ const obj = {};
504
+ if (message.communityId !== "") {
505
+ obj.communityId = message.communityId;
506
+ }
507
+ if (message.message !== "") {
508
+ obj.message = message.message;
509
+ }
510
+ return obj;
511
+ },
512
+ create(base) {
513
+ return exports.JoinCommunityResponse.fromPartial(base !== null && base !== void 0 ? base : {});
514
+ },
515
+ fromPartial(object) {
516
+ var _a, _b;
517
+ const message = createBaseJoinCommunityResponse();
518
+ message.communityId = (_a = object.communityId) !== null && _a !== void 0 ? _a : "";
519
+ message.message = (_b = object.message) !== null && _b !== void 0 ? _b : "";
520
+ return message;
521
+ },
522
+ };
523
+ function createBaseLeaveCommunityRequest() {
524
+ return { communityId: "" };
525
+ }
526
+ exports.LeaveCommunityRequest = {
527
+ encode(message, writer = new wire_1.BinaryWriter()) {
528
+ if (message.communityId !== "") {
529
+ writer.uint32(10).string(message.communityId);
530
+ }
531
+ return writer;
532
+ },
533
+ decode(input, length) {
534
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
535
+ const end = length === undefined ? reader.len : reader.pos + length;
536
+ const message = createBaseLeaveCommunityRequest();
537
+ while (reader.pos < end) {
538
+ const tag = reader.uint32();
539
+ switch (tag >>> 3) {
540
+ case 1: {
541
+ if (tag !== 10) {
542
+ break;
543
+ }
544
+ message.communityId = reader.string();
545
+ continue;
546
+ }
547
+ }
548
+ if ((tag & 7) === 4 || tag === 0) {
549
+ break;
550
+ }
551
+ reader.skip(tag & 7);
552
+ }
553
+ return message;
554
+ },
555
+ fromJSON(object) {
556
+ return { communityId: isSet(object.communityId) ? globalThis.String(object.communityId) : "" };
557
+ },
558
+ toJSON(message) {
559
+ const obj = {};
560
+ if (message.communityId !== "") {
561
+ obj.communityId = message.communityId;
562
+ }
563
+ return obj;
564
+ },
565
+ create(base) {
566
+ return exports.LeaveCommunityRequest.fromPartial(base !== null && base !== void 0 ? base : {});
567
+ },
568
+ fromPartial(object) {
569
+ var _a;
570
+ const message = createBaseLeaveCommunityRequest();
571
+ message.communityId = (_a = object.communityId) !== null && _a !== void 0 ? _a : "";
572
+ return message;
573
+ },
574
+ };
575
+ function createBaseLeaveCommunityResponse() {
576
+ return { communityId: "", message: "" };
577
+ }
578
+ exports.LeaveCommunityResponse = {
579
+ encode(message, writer = new wire_1.BinaryWriter()) {
580
+ if (message.communityId !== "") {
581
+ writer.uint32(10).string(message.communityId);
582
+ }
583
+ if (message.message !== "") {
584
+ writer.uint32(18).string(message.message);
585
+ }
586
+ return writer;
587
+ },
588
+ decode(input, length) {
589
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
590
+ const end = length === undefined ? reader.len : reader.pos + length;
591
+ const message = createBaseLeaveCommunityResponse();
592
+ while (reader.pos < end) {
593
+ const tag = reader.uint32();
594
+ switch (tag >>> 3) {
595
+ case 1: {
596
+ if (tag !== 10) {
597
+ break;
598
+ }
599
+ message.communityId = reader.string();
600
+ continue;
601
+ }
602
+ case 2: {
603
+ if (tag !== 18) {
604
+ break;
605
+ }
606
+ message.message = reader.string();
607
+ continue;
608
+ }
609
+ }
610
+ if ((tag & 7) === 4 || tag === 0) {
611
+ break;
612
+ }
613
+ reader.skip(tag & 7);
614
+ }
615
+ return message;
616
+ },
617
+ fromJSON(object) {
618
+ return {
619
+ communityId: isSet(object.communityId) ? globalThis.String(object.communityId) : "",
620
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
621
+ };
622
+ },
623
+ toJSON(message) {
624
+ const obj = {};
625
+ if (message.communityId !== "") {
626
+ obj.communityId = message.communityId;
627
+ }
628
+ if (message.message !== "") {
629
+ obj.message = message.message;
630
+ }
631
+ return obj;
632
+ },
633
+ create(base) {
634
+ return exports.LeaveCommunityResponse.fromPartial(base !== null && base !== void 0 ? base : {});
635
+ },
636
+ fromPartial(object) {
637
+ var _a, _b;
638
+ const message = createBaseLeaveCommunityResponse();
639
+ message.communityId = (_a = object.communityId) !== null && _a !== void 0 ? _a : "";
640
+ message.message = (_b = object.message) !== null && _b !== void 0 ? _b : "";
641
+ return message;
642
+ },
643
+ };
644
+ function isSet(value) {
645
+ return value !== null && value !== undefined;
646
+ }
@@ -0,0 +1,57 @@
1
+ import { GetCommunitiesRequest, GetCommunitiesResponse, GetUserCommunitiesRequest, GetUserCommunitiesResponse, JoinCommunityRequest, JoinCommunityResponse, LeaveCommunityRequest, LeaveCommunityResponse } from "./message";
2
+ export declare const protobufPackage = "community";
3
+ export type CommunityServiceDefinition = typeof CommunityServiceDefinition;
4
+ export declare const CommunityServiceDefinition: {
5
+ readonly name: "CommunityService";
6
+ readonly fullName: "community.CommunityService";
7
+ readonly methods: {
8
+ readonly getCommunities: {
9
+ readonly name: "GetCommunities";
10
+ readonly requestType: import("./message").MessageFns<GetCommunitiesRequest>;
11
+ readonly requestStream: false;
12
+ readonly responseType: import("./message").MessageFns<GetCommunitiesResponse>;
13
+ readonly responseStream: false;
14
+ readonly options: {
15
+ readonly _unknownFields: {
16
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
17
+ };
18
+ };
19
+ };
20
+ readonly getUserCommunities: {
21
+ readonly name: "GetUserCommunities";
22
+ readonly requestType: import("./message").MessageFns<GetUserCommunitiesRequest>;
23
+ readonly requestStream: false;
24
+ readonly responseType: import("./message").MessageFns<GetUserCommunitiesResponse>;
25
+ readonly responseStream: false;
26
+ readonly options: {
27
+ readonly _unknownFields: {
28
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
29
+ };
30
+ };
31
+ };
32
+ readonly joinCommunity: {
33
+ readonly name: "JoinCommunity";
34
+ readonly requestType: import("./message").MessageFns<JoinCommunityRequest>;
35
+ readonly requestStream: false;
36
+ readonly responseType: import("./message").MessageFns<JoinCommunityResponse>;
37
+ readonly responseStream: false;
38
+ readonly options: {
39
+ readonly _unknownFields: {
40
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
41
+ };
42
+ };
43
+ };
44
+ readonly leaveCommunity: {
45
+ readonly name: "LeaveCommunity";
46
+ readonly requestType: import("./message").MessageFns<LeaveCommunityRequest>;
47
+ readonly requestStream: false;
48
+ readonly responseType: import("./message").MessageFns<LeaveCommunityResponse>;
49
+ readonly responseStream: false;
50
+ readonly options: {
51
+ readonly _unknownFields: {
52
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
53
+ };
54
+ };
55
+ };
56
+ };
57
+ };