theragist-ts 1.0.16 → 1.0.17
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/call/message.d.ts +0 -1
- package/dist/call/message.js +2 -17
- package/dist/crisis/message.d.ts +0 -4
- package/dist/crisis/message.js +2 -62
- package/dist/group/message.d.ts +2 -0
- package/dist/group/message.js +44 -3
- package/dist/home/message.d.ts +172 -0
- package/dist/home/message.js +2169 -0
- package/dist/home/service.d.ts +41 -0
- package/dist/home/service.js +73 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +94 -70
- package/dist/soundscape/message.d.ts +2 -8
- package/dist/soundscape/message.js +46 -126
- package/dist/user/message.d.ts +75 -2
- package/dist/user/message.js +1119 -83
- package/package.json +1 -1
package/dist/call/message.d.ts
CHANGED
package/dist/call/message.js
CHANGED
|
@@ -1232,16 +1232,13 @@ exports.GetCallHistoryRequest = {
|
|
|
1232
1232
|
},
|
|
1233
1233
|
};
|
|
1234
1234
|
function createBaseGetCallHistoryResponse() {
|
|
1235
|
-
return { calls: []
|
|
1235
|
+
return { calls: [] };
|
|
1236
1236
|
}
|
|
1237
1237
|
exports.GetCallHistoryResponse = {
|
|
1238
1238
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1239
1239
|
for (const v of message.calls) {
|
|
1240
1240
|
exports.CallHistoryItem.encode(v, writer.uint32(10).fork()).join();
|
|
1241
1241
|
}
|
|
1242
|
-
if (message.total !== 0) {
|
|
1243
|
-
writer.uint32(16).int32(message.total);
|
|
1244
|
-
}
|
|
1245
1242
|
return writer;
|
|
1246
1243
|
},
|
|
1247
1244
|
decode(input, length) {
|
|
@@ -1258,13 +1255,6 @@ exports.GetCallHistoryResponse = {
|
|
|
1258
1255
|
message.calls.push(exports.CallHistoryItem.decode(reader, reader.uint32()));
|
|
1259
1256
|
continue;
|
|
1260
1257
|
}
|
|
1261
|
-
case 2: {
|
|
1262
|
-
if (tag !== 16) {
|
|
1263
|
-
break;
|
|
1264
|
-
}
|
|
1265
|
-
message.total = reader.int32();
|
|
1266
|
-
continue;
|
|
1267
|
-
}
|
|
1268
1258
|
}
|
|
1269
1259
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1270
1260
|
break;
|
|
@@ -1276,7 +1266,6 @@ exports.GetCallHistoryResponse = {
|
|
|
1276
1266
|
fromJSON(object) {
|
|
1277
1267
|
return {
|
|
1278
1268
|
calls: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.calls) ? object.calls.map((e) => exports.CallHistoryItem.fromJSON(e)) : [],
|
|
1279
|
-
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
|
1280
1269
|
};
|
|
1281
1270
|
},
|
|
1282
1271
|
toJSON(message) {
|
|
@@ -1285,19 +1274,15 @@ exports.GetCallHistoryResponse = {
|
|
|
1285
1274
|
if ((_a = message.calls) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1286
1275
|
obj.calls = message.calls.map((e) => exports.CallHistoryItem.toJSON(e));
|
|
1287
1276
|
}
|
|
1288
|
-
if (message.total !== 0) {
|
|
1289
|
-
obj.total = Math.round(message.total);
|
|
1290
|
-
}
|
|
1291
1277
|
return obj;
|
|
1292
1278
|
},
|
|
1293
1279
|
create(base) {
|
|
1294
1280
|
return exports.GetCallHistoryResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1295
1281
|
},
|
|
1296
1282
|
fromPartial(object) {
|
|
1297
|
-
var _a
|
|
1283
|
+
var _a;
|
|
1298
1284
|
const message = createBaseGetCallHistoryResponse();
|
|
1299
1285
|
message.calls = ((_a = object.calls) === null || _a === void 0 ? void 0 : _a.map((e) => exports.CallHistoryItem.fromPartial(e))) || [];
|
|
1300
|
-
message.total = (_b = object.total) !== null && _b !== void 0 ? _b : 0;
|
|
1301
1286
|
return message;
|
|
1302
1287
|
},
|
|
1303
1288
|
};
|
package/dist/crisis/message.d.ts
CHANGED
|
@@ -161,10 +161,6 @@ export interface ListHelpTopicsRequest {
|
|
|
161
161
|
}
|
|
162
162
|
export interface ListHelpTopicsResponse {
|
|
163
163
|
topics: HelpTopic[];
|
|
164
|
-
page: number;
|
|
165
|
-
pageSize: number;
|
|
166
|
-
totalItems: number;
|
|
167
|
-
totalPages: number;
|
|
168
164
|
}
|
|
169
165
|
export interface GetHelpArticleRequest {
|
|
170
166
|
topicId: string;
|
package/dist/crisis/message.js
CHANGED
|
@@ -2703,25 +2703,13 @@ exports.ListHelpTopicsRequest = {
|
|
|
2703
2703
|
},
|
|
2704
2704
|
};
|
|
2705
2705
|
function createBaseListHelpTopicsResponse() {
|
|
2706
|
-
return { topics: []
|
|
2706
|
+
return { topics: [] };
|
|
2707
2707
|
}
|
|
2708
2708
|
exports.ListHelpTopicsResponse = {
|
|
2709
2709
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2710
2710
|
for (const v of message.topics) {
|
|
2711
2711
|
exports.HelpTopic.encode(v, writer.uint32(10).fork()).join();
|
|
2712
2712
|
}
|
|
2713
|
-
if (message.page !== 0) {
|
|
2714
|
-
writer.uint32(16).int32(message.page);
|
|
2715
|
-
}
|
|
2716
|
-
if (message.pageSize !== 0) {
|
|
2717
|
-
writer.uint32(24).int32(message.pageSize);
|
|
2718
|
-
}
|
|
2719
|
-
if (message.totalItems !== 0) {
|
|
2720
|
-
writer.uint32(32).int32(message.totalItems);
|
|
2721
|
-
}
|
|
2722
|
-
if (message.totalPages !== 0) {
|
|
2723
|
-
writer.uint32(40).int32(message.totalPages);
|
|
2724
|
-
}
|
|
2725
2713
|
return writer;
|
|
2726
2714
|
},
|
|
2727
2715
|
decode(input, length) {
|
|
@@ -2738,34 +2726,6 @@ exports.ListHelpTopicsResponse = {
|
|
|
2738
2726
|
message.topics.push(exports.HelpTopic.decode(reader, reader.uint32()));
|
|
2739
2727
|
continue;
|
|
2740
2728
|
}
|
|
2741
|
-
case 2: {
|
|
2742
|
-
if (tag !== 16) {
|
|
2743
|
-
break;
|
|
2744
|
-
}
|
|
2745
|
-
message.page = reader.int32();
|
|
2746
|
-
continue;
|
|
2747
|
-
}
|
|
2748
|
-
case 3: {
|
|
2749
|
-
if (tag !== 24) {
|
|
2750
|
-
break;
|
|
2751
|
-
}
|
|
2752
|
-
message.pageSize = reader.int32();
|
|
2753
|
-
continue;
|
|
2754
|
-
}
|
|
2755
|
-
case 4: {
|
|
2756
|
-
if (tag !== 32) {
|
|
2757
|
-
break;
|
|
2758
|
-
}
|
|
2759
|
-
message.totalItems = reader.int32();
|
|
2760
|
-
continue;
|
|
2761
|
-
}
|
|
2762
|
-
case 5: {
|
|
2763
|
-
if (tag !== 40) {
|
|
2764
|
-
break;
|
|
2765
|
-
}
|
|
2766
|
-
message.totalPages = reader.int32();
|
|
2767
|
-
continue;
|
|
2768
|
-
}
|
|
2769
2729
|
}
|
|
2770
2730
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2771
2731
|
break;
|
|
@@ -2777,10 +2737,6 @@ exports.ListHelpTopicsResponse = {
|
|
|
2777
2737
|
fromJSON(object) {
|
|
2778
2738
|
return {
|
|
2779
2739
|
topics: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.topics) ? object.topics.map((e) => exports.HelpTopic.fromJSON(e)) : [],
|
|
2780
|
-
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
2781
|
-
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
2782
|
-
totalItems: isSet(object.totalItems) ? globalThis.Number(object.totalItems) : 0,
|
|
2783
|
-
totalPages: isSet(object.totalPages) ? globalThis.Number(object.totalPages) : 0,
|
|
2784
2740
|
};
|
|
2785
2741
|
},
|
|
2786
2742
|
toJSON(message) {
|
|
@@ -2789,31 +2745,15 @@ exports.ListHelpTopicsResponse = {
|
|
|
2789
2745
|
if ((_a = message.topics) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2790
2746
|
obj.topics = message.topics.map((e) => exports.HelpTopic.toJSON(e));
|
|
2791
2747
|
}
|
|
2792
|
-
if (message.page !== 0) {
|
|
2793
|
-
obj.page = Math.round(message.page);
|
|
2794
|
-
}
|
|
2795
|
-
if (message.pageSize !== 0) {
|
|
2796
|
-
obj.pageSize = Math.round(message.pageSize);
|
|
2797
|
-
}
|
|
2798
|
-
if (message.totalItems !== 0) {
|
|
2799
|
-
obj.totalItems = Math.round(message.totalItems);
|
|
2800
|
-
}
|
|
2801
|
-
if (message.totalPages !== 0) {
|
|
2802
|
-
obj.totalPages = Math.round(message.totalPages);
|
|
2803
|
-
}
|
|
2804
2748
|
return obj;
|
|
2805
2749
|
},
|
|
2806
2750
|
create(base) {
|
|
2807
2751
|
return exports.ListHelpTopicsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2808
2752
|
},
|
|
2809
2753
|
fromPartial(object) {
|
|
2810
|
-
var _a
|
|
2754
|
+
var _a;
|
|
2811
2755
|
const message = createBaseListHelpTopicsResponse();
|
|
2812
2756
|
message.topics = ((_a = object.topics) === null || _a === void 0 ? void 0 : _a.map((e) => exports.HelpTopic.fromPartial(e))) || [];
|
|
2813
|
-
message.page = (_b = object.page) !== null && _b !== void 0 ? _b : 0;
|
|
2814
|
-
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
|
|
2815
|
-
message.totalItems = (_d = object.totalItems) !== null && _d !== void 0 ? _d : 0;
|
|
2816
|
-
message.totalPages = (_e = object.totalPages) !== null && _e !== void 0 ? _e : 0;
|
|
2817
2757
|
return message;
|
|
2818
2758
|
},
|
|
2819
2759
|
};
|
package/dist/group/message.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export interface Group {
|
|
|
26
26
|
createdBy: GroupAuthor | undefined;
|
|
27
27
|
createdAt: string;
|
|
28
28
|
updatedAt: string;
|
|
29
|
+
isAdmin: boolean;
|
|
29
30
|
}
|
|
30
31
|
export interface GroupMember {
|
|
31
32
|
id: string;
|
|
@@ -36,6 +37,7 @@ export interface GroupMember {
|
|
|
36
37
|
username: string;
|
|
37
38
|
role: string;
|
|
38
39
|
joinedAt: string;
|
|
40
|
+
isAdmin: boolean;
|
|
39
41
|
}
|
|
40
42
|
export interface ListGroupsRequest {
|
|
41
43
|
communityId: string;
|
package/dist/group/message.js
CHANGED
|
@@ -129,6 +129,7 @@ function createBaseGroup() {
|
|
|
129
129
|
createdBy: undefined,
|
|
130
130
|
createdAt: "",
|
|
131
131
|
updatedAt: "",
|
|
132
|
+
isAdmin: false,
|
|
132
133
|
};
|
|
133
134
|
}
|
|
134
135
|
exports.Group = {
|
|
@@ -190,6 +191,9 @@ exports.Group = {
|
|
|
190
191
|
if (message.updatedAt !== "") {
|
|
191
192
|
writer.uint32(154).string(message.updatedAt);
|
|
192
193
|
}
|
|
194
|
+
if (message.isAdmin !== false) {
|
|
195
|
+
writer.uint32(160).bool(message.isAdmin);
|
|
196
|
+
}
|
|
193
197
|
return writer;
|
|
194
198
|
},
|
|
195
199
|
decode(input, length) {
|
|
@@ -332,6 +336,13 @@ exports.Group = {
|
|
|
332
336
|
message.updatedAt = reader.string();
|
|
333
337
|
continue;
|
|
334
338
|
}
|
|
339
|
+
case 20: {
|
|
340
|
+
if (tag !== 160) {
|
|
341
|
+
break;
|
|
342
|
+
}
|
|
343
|
+
message.isAdmin = reader.bool();
|
|
344
|
+
continue;
|
|
345
|
+
}
|
|
335
346
|
}
|
|
336
347
|
if ((tag & 7) === 4 || tag === 0) {
|
|
337
348
|
break;
|
|
@@ -361,6 +372,7 @@ exports.Group = {
|
|
|
361
372
|
createdBy: isSet(object.createdBy) ? exports.GroupAuthor.fromJSON(object.createdBy) : undefined,
|
|
362
373
|
createdAt: isSet(object.createdAt) ? globalThis.String(object.createdAt) : "",
|
|
363
374
|
updatedAt: isSet(object.updatedAt) ? globalThis.String(object.updatedAt) : "",
|
|
375
|
+
isAdmin: isSet(object.isAdmin) ? globalThis.Boolean(object.isAdmin) : false,
|
|
364
376
|
};
|
|
365
377
|
},
|
|
366
378
|
toJSON(message) {
|
|
@@ -423,13 +435,16 @@ exports.Group = {
|
|
|
423
435
|
if (message.updatedAt !== "") {
|
|
424
436
|
obj.updatedAt = message.updatedAt;
|
|
425
437
|
}
|
|
438
|
+
if (message.isAdmin !== false) {
|
|
439
|
+
obj.isAdmin = message.isAdmin;
|
|
440
|
+
}
|
|
426
441
|
return obj;
|
|
427
442
|
},
|
|
428
443
|
create(base) {
|
|
429
444
|
return exports.Group.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
430
445
|
},
|
|
431
446
|
fromPartial(object) {
|
|
432
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
447
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
433
448
|
const message = createBaseGroup();
|
|
434
449
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
435
450
|
message.communityId = (_b = object.communityId) !== null && _b !== void 0 ? _b : "";
|
|
@@ -452,11 +467,22 @@ exports.Group = {
|
|
|
452
467
|
: undefined;
|
|
453
468
|
message.createdAt = (_s = object.createdAt) !== null && _s !== void 0 ? _s : "";
|
|
454
469
|
message.updatedAt = (_t = object.updatedAt) !== null && _t !== void 0 ? _t : "";
|
|
470
|
+
message.isAdmin = (_u = object.isAdmin) !== null && _u !== void 0 ? _u : false;
|
|
455
471
|
return message;
|
|
456
472
|
},
|
|
457
473
|
};
|
|
458
474
|
function createBaseGroupMember() {
|
|
459
|
-
return {
|
|
475
|
+
return {
|
|
476
|
+
id: "",
|
|
477
|
+
groupId: "",
|
|
478
|
+
userId: "",
|
|
479
|
+
fullName: "",
|
|
480
|
+
avatarUrl: "",
|
|
481
|
+
username: "",
|
|
482
|
+
role: "",
|
|
483
|
+
joinedAt: "",
|
|
484
|
+
isAdmin: false,
|
|
485
|
+
};
|
|
460
486
|
}
|
|
461
487
|
exports.GroupMember = {
|
|
462
488
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -484,6 +510,9 @@ exports.GroupMember = {
|
|
|
484
510
|
if (message.joinedAt !== "") {
|
|
485
511
|
writer.uint32(66).string(message.joinedAt);
|
|
486
512
|
}
|
|
513
|
+
if (message.isAdmin !== false) {
|
|
514
|
+
writer.uint32(72).bool(message.isAdmin);
|
|
515
|
+
}
|
|
487
516
|
return writer;
|
|
488
517
|
},
|
|
489
518
|
decode(input, length) {
|
|
@@ -549,6 +578,13 @@ exports.GroupMember = {
|
|
|
549
578
|
message.joinedAt = reader.string();
|
|
550
579
|
continue;
|
|
551
580
|
}
|
|
581
|
+
case 9: {
|
|
582
|
+
if (tag !== 72) {
|
|
583
|
+
break;
|
|
584
|
+
}
|
|
585
|
+
message.isAdmin = reader.bool();
|
|
586
|
+
continue;
|
|
587
|
+
}
|
|
552
588
|
}
|
|
553
589
|
if ((tag & 7) === 4 || tag === 0) {
|
|
554
590
|
break;
|
|
@@ -567,6 +603,7 @@ exports.GroupMember = {
|
|
|
567
603
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
568
604
|
role: isSet(object.role) ? globalThis.String(object.role) : "",
|
|
569
605
|
joinedAt: isSet(object.joinedAt) ? globalThis.String(object.joinedAt) : "",
|
|
606
|
+
isAdmin: isSet(object.isAdmin) ? globalThis.Boolean(object.isAdmin) : false,
|
|
570
607
|
};
|
|
571
608
|
},
|
|
572
609
|
toJSON(message) {
|
|
@@ -595,13 +632,16 @@ exports.GroupMember = {
|
|
|
595
632
|
if (message.joinedAt !== "") {
|
|
596
633
|
obj.joinedAt = message.joinedAt;
|
|
597
634
|
}
|
|
635
|
+
if (message.isAdmin !== false) {
|
|
636
|
+
obj.isAdmin = message.isAdmin;
|
|
637
|
+
}
|
|
598
638
|
return obj;
|
|
599
639
|
},
|
|
600
640
|
create(base) {
|
|
601
641
|
return exports.GroupMember.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
602
642
|
},
|
|
603
643
|
fromPartial(object) {
|
|
604
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
644
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
605
645
|
const message = createBaseGroupMember();
|
|
606
646
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
607
647
|
message.groupId = (_b = object.groupId) !== null && _b !== void 0 ? _b : "";
|
|
@@ -611,6 +651,7 @@ exports.GroupMember = {
|
|
|
611
651
|
message.username = (_f = object.username) !== null && _f !== void 0 ? _f : "";
|
|
612
652
|
message.role = (_g = object.role) !== null && _g !== void 0 ? _g : "";
|
|
613
653
|
message.joinedAt = (_h = object.joinedAt) !== null && _h !== void 0 ? _h : "";
|
|
654
|
+
message.isAdmin = (_j = object.isAdmin) !== null && _j !== void 0 ? _j : false;
|
|
614
655
|
return message;
|
|
615
656
|
},
|
|
616
657
|
};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "home";
|
|
3
|
+
export interface UpcomingSessionItem {
|
|
4
|
+
sessionId: string;
|
|
5
|
+
startAt: string;
|
|
6
|
+
endAt: string;
|
|
7
|
+
status: string;
|
|
8
|
+
counterpartName: string;
|
|
9
|
+
counterpartAvatar: string;
|
|
10
|
+
counterpartId: string;
|
|
11
|
+
sessionType: string;
|
|
12
|
+
}
|
|
13
|
+
export interface WalletSummary {
|
|
14
|
+
purchasedBalanceTc: number;
|
|
15
|
+
earnedBalanceTc: number;
|
|
16
|
+
totalCreditsTc: number;
|
|
17
|
+
}
|
|
18
|
+
export interface RecentMood {
|
|
19
|
+
moodName: string;
|
|
20
|
+
moodEmoji: string;
|
|
21
|
+
note: string;
|
|
22
|
+
recordedAt: string;
|
|
23
|
+
}
|
|
24
|
+
export interface CurrentSeason {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
slug: string;
|
|
28
|
+
startDate: string;
|
|
29
|
+
endDate: string;
|
|
30
|
+
themeColor: string;
|
|
31
|
+
corePosture: string;
|
|
32
|
+
description: string;
|
|
33
|
+
promptExample: string;
|
|
34
|
+
actionsRewarded: string[];
|
|
35
|
+
}
|
|
36
|
+
export interface TopRatedTherapist {
|
|
37
|
+
id: string;
|
|
38
|
+
fullName: string;
|
|
39
|
+
avatarUrl: string;
|
|
40
|
+
rating: number;
|
|
41
|
+
reviewCount: number;
|
|
42
|
+
bio: string;
|
|
43
|
+
specialties: string[];
|
|
44
|
+
sessionTypes: string[];
|
|
45
|
+
sessionRateTc: number;
|
|
46
|
+
verificationStatus: string;
|
|
47
|
+
}
|
|
48
|
+
export interface CommunityPost {
|
|
49
|
+
id: string;
|
|
50
|
+
communityId: string;
|
|
51
|
+
communityName: string;
|
|
52
|
+
communityIcon: string;
|
|
53
|
+
authorId: string;
|
|
54
|
+
authorName: string;
|
|
55
|
+
authorAvatar: string;
|
|
56
|
+
content: string;
|
|
57
|
+
likeCount: number;
|
|
58
|
+
commentCount: number;
|
|
59
|
+
createdAt: string;
|
|
60
|
+
}
|
|
61
|
+
export interface RecentActivity {
|
|
62
|
+
id: string;
|
|
63
|
+
/** "journal" or "mood" */
|
|
64
|
+
type: string;
|
|
65
|
+
/** journal title or mood name */
|
|
66
|
+
title: string;
|
|
67
|
+
/** journal content snippet or mood note */
|
|
68
|
+
summary: string;
|
|
69
|
+
/** mood emoji (empty for journals) */
|
|
70
|
+
emoji: string;
|
|
71
|
+
createdAt: string;
|
|
72
|
+
}
|
|
73
|
+
export interface TherapistPerformance {
|
|
74
|
+
/** e.g. "10/50" (completed/total) */
|
|
75
|
+
sessionsCompleted: string;
|
|
76
|
+
/** e.g. "98%" */
|
|
77
|
+
clientSatisfaction: string;
|
|
78
|
+
/** e.g. "< 2 hours" */
|
|
79
|
+
responseTime: string;
|
|
80
|
+
}
|
|
81
|
+
export interface TherapistHomeSummary {
|
|
82
|
+
activeClients: number;
|
|
83
|
+
upcomingSessions: number;
|
|
84
|
+
totalEarnedTc: number;
|
|
85
|
+
nextSession: UpcomingSessionItem | undefined;
|
|
86
|
+
upcomingSessionsList: UpcomingSessionItem[];
|
|
87
|
+
wallet: WalletSummary | undefined;
|
|
88
|
+
performance: TherapistPerformance | undefined;
|
|
89
|
+
currentSeason: CurrentSeason | undefined;
|
|
90
|
+
insight: string;
|
|
91
|
+
}
|
|
92
|
+
export interface TherapistPerformanceStats {
|
|
93
|
+
sessionsCompleted: number;
|
|
94
|
+
sessionsScheduled: number;
|
|
95
|
+
/** 0-100 */
|
|
96
|
+
clientSatisfactionPct: number;
|
|
97
|
+
totalRatings: number;
|
|
98
|
+
avgResponseMinutes: number;
|
|
99
|
+
totalResponded: number;
|
|
100
|
+
activeClients: number;
|
|
101
|
+
totalEarnedTc: number;
|
|
102
|
+
}
|
|
103
|
+
export interface ClientHomeSummary {
|
|
104
|
+
upcomingSessions: number;
|
|
105
|
+
completedSessions: number;
|
|
106
|
+
communitiesJoined: number;
|
|
107
|
+
moodStreak: number;
|
|
108
|
+
nextSession: UpcomingSessionItem | undefined;
|
|
109
|
+
upcomingSessionsList: UpcomingSessionItem[];
|
|
110
|
+
wallet: WalletSummary | undefined;
|
|
111
|
+
recentMoods: RecentMood[];
|
|
112
|
+
topRatedTherapists: TopRatedTherapist[];
|
|
113
|
+
communityPosts: CommunityPost[];
|
|
114
|
+
recentActivities: RecentActivity[];
|
|
115
|
+
currentSeason: CurrentSeason | undefined;
|
|
116
|
+
insight: string;
|
|
117
|
+
}
|
|
118
|
+
export interface GetHomeRequest {
|
|
119
|
+
topRatedLimit: number;
|
|
120
|
+
communityPostsLimit: number;
|
|
121
|
+
recentMoodLimit: number;
|
|
122
|
+
}
|
|
123
|
+
export interface GetHomeResponse {
|
|
124
|
+
role: string;
|
|
125
|
+
/** populated when role=therapist */
|
|
126
|
+
therapist?: TherapistHomeSummary | undefined;
|
|
127
|
+
/** populated when role=client */
|
|
128
|
+
client?: ClientHomeSummary | undefined;
|
|
129
|
+
}
|
|
130
|
+
export interface GetHomeStatsRequest {
|
|
131
|
+
range: string;
|
|
132
|
+
}
|
|
133
|
+
export interface GetHomeStatsResponse {
|
|
134
|
+
role: string;
|
|
135
|
+
rangeLabel: string;
|
|
136
|
+
therapistStats?: TherapistPerformanceStats | undefined;
|
|
137
|
+
clientStats?: ClientHomeSummary | undefined;
|
|
138
|
+
}
|
|
139
|
+
export declare const UpcomingSessionItem: MessageFns<UpcomingSessionItem>;
|
|
140
|
+
export declare const WalletSummary: MessageFns<WalletSummary>;
|
|
141
|
+
export declare const RecentMood: MessageFns<RecentMood>;
|
|
142
|
+
export declare const CurrentSeason: MessageFns<CurrentSeason>;
|
|
143
|
+
export declare const TopRatedTherapist: MessageFns<TopRatedTherapist>;
|
|
144
|
+
export declare const CommunityPost: MessageFns<CommunityPost>;
|
|
145
|
+
export declare const RecentActivity: MessageFns<RecentActivity>;
|
|
146
|
+
export declare const TherapistPerformance: MessageFns<TherapistPerformance>;
|
|
147
|
+
export declare const TherapistHomeSummary: MessageFns<TherapistHomeSummary>;
|
|
148
|
+
export declare const TherapistPerformanceStats: MessageFns<TherapistPerformanceStats>;
|
|
149
|
+
export declare const ClientHomeSummary: MessageFns<ClientHomeSummary>;
|
|
150
|
+
export declare const GetHomeRequest: MessageFns<GetHomeRequest>;
|
|
151
|
+
export declare const GetHomeResponse: MessageFns<GetHomeResponse>;
|
|
152
|
+
export declare const GetHomeStatsRequest: MessageFns<GetHomeStatsRequest>;
|
|
153
|
+
export declare const GetHomeStatsResponse: MessageFns<GetHomeStatsResponse>;
|
|
154
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
155
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
156
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
157
|
+
} : Partial<T>;
|
|
158
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
159
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
160
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
161
|
+
} & {
|
|
162
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
163
|
+
};
|
|
164
|
+
export interface MessageFns<T> {
|
|
165
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
166
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
167
|
+
fromJSON(object: any): T;
|
|
168
|
+
toJSON(message: T): unknown;
|
|
169
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
170
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
171
|
+
}
|
|
172
|
+
export {};
|