theragist-ts 1.0.18 → 1.0.20
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/calendar/message.d.ts +7 -2
- package/dist/calendar/message.js +71 -15
- package/dist/chat/message.d.ts +2 -2
- package/dist/chat/message.js +13 -25
- package/dist/clients/message.d.ts +190 -0
- package/dist/clients/message.js +2441 -0
- package/dist/clients/service.d.ts +33 -0
- package/dist/clients/service.js +120 -0
- package/dist/community/message.d.ts +44 -0
- package/dist/community/message.js +634 -1
- package/dist/community/service.d.ts +49 -1
- package/dist/community/service.js +224 -0
- package/dist/group/message.d.ts +12 -0
- package/dist/group/message.js +190 -7
- package/dist/home/message.d.ts +3 -9
- package/dist/home/message.js +34 -122
- package/dist/index.d.ts +7 -5
- package/dist/index.js +565 -530
- package/dist/lookup/message.d.ts +2 -1
- package/dist/lookup/message.js +29 -12
- package/dist/post/message.d.ts +15 -0
- package/dist/post/message.js +223 -7
- package/dist/post/service.d.ts +13 -1
- package/dist/post/service.js +14 -0
- package/dist/session/message.d.ts +29 -2
- package/dist/session/message.js +461 -6
- package/dist/session/service.d.ts +38 -3
- package/dist/session/service.js +173 -19
- package/dist/user/message.d.ts +38 -3
- package/dist/user/message.js +551 -33
- package/dist/user/service.d.ts +13 -1
- package/dist/user/service.js +49 -0
- package/package.json +1 -1
|
@@ -4,12 +4,12 @@ export interface GetCalendarEventsRequest {
|
|
|
4
4
|
from: string;
|
|
5
5
|
to: string;
|
|
6
6
|
role: string;
|
|
7
|
-
/** day, week, month, year - auto-calculates from/to based on current date */
|
|
7
|
+
/** day, week, month, year, upcoming - auto-calculates from/to based on current date */
|
|
8
8
|
filter: string;
|
|
9
9
|
}
|
|
10
10
|
export interface GetCalendarEventsResponse {
|
|
11
|
-
events: CalendarEvent[];
|
|
12
11
|
stats: CalendarStats | undefined;
|
|
12
|
+
events: CalendarEvent[];
|
|
13
13
|
}
|
|
14
14
|
export interface CalendarStats {
|
|
15
15
|
totalSessions: number;
|
|
@@ -28,6 +28,8 @@ export interface CreateCalendarEventRequest {
|
|
|
28
28
|
eventType: string;
|
|
29
29
|
location: string;
|
|
30
30
|
reminderMinutes: number;
|
|
31
|
+
/** optional: link to an existing therapy session */
|
|
32
|
+
sessionId: string;
|
|
31
33
|
}
|
|
32
34
|
export interface CreateCalendarEventResponse {
|
|
33
35
|
event: CalendarEvent | undefined;
|
|
@@ -45,6 +47,9 @@ export interface CalendarEvent {
|
|
|
45
47
|
description: string;
|
|
46
48
|
googleEventId: string;
|
|
47
49
|
location: string;
|
|
50
|
+
counterpartName: string;
|
|
51
|
+
/** video, chat, voice */
|
|
52
|
+
sessionType: string;
|
|
48
53
|
}
|
|
49
54
|
export declare const GetCalendarEventsRequest: MessageFns<GetCalendarEventsRequest>;
|
|
50
55
|
export declare const GetCalendarEventsResponse: MessageFns<GetCalendarEventsResponse>;
|
package/dist/calendar/message.js
CHANGED
|
@@ -109,15 +109,15 @@ exports.GetCalendarEventsRequest = {
|
|
|
109
109
|
},
|
|
110
110
|
};
|
|
111
111
|
function createBaseGetCalendarEventsResponse() {
|
|
112
|
-
return {
|
|
112
|
+
return { stats: undefined, events: [] };
|
|
113
113
|
}
|
|
114
114
|
exports.GetCalendarEventsResponse = {
|
|
115
115
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
116
|
-
for (const v of message.events) {
|
|
117
|
-
exports.CalendarEvent.encode(v, writer.uint32(10).fork()).join();
|
|
118
|
-
}
|
|
119
116
|
if (message.stats !== undefined) {
|
|
120
|
-
exports.CalendarStats.encode(message.stats, writer.uint32(
|
|
117
|
+
exports.CalendarStats.encode(message.stats, writer.uint32(10).fork()).join();
|
|
118
|
+
}
|
|
119
|
+
for (const v of message.events) {
|
|
120
|
+
exports.CalendarEvent.encode(v, writer.uint32(18).fork()).join();
|
|
121
121
|
}
|
|
122
122
|
return writer;
|
|
123
123
|
},
|
|
@@ -132,14 +132,14 @@ exports.GetCalendarEventsResponse = {
|
|
|
132
132
|
if (tag !== 10) {
|
|
133
133
|
break;
|
|
134
134
|
}
|
|
135
|
-
message.
|
|
135
|
+
message.stats = exports.CalendarStats.decode(reader, reader.uint32());
|
|
136
136
|
continue;
|
|
137
137
|
}
|
|
138
138
|
case 2: {
|
|
139
139
|
if (tag !== 18) {
|
|
140
140
|
break;
|
|
141
141
|
}
|
|
142
|
-
message.
|
|
142
|
+
message.events.push(exports.CalendarEvent.decode(reader, reader.uint32()));
|
|
143
143
|
continue;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
@@ -152,19 +152,19 @@ exports.GetCalendarEventsResponse = {
|
|
|
152
152
|
},
|
|
153
153
|
fromJSON(object) {
|
|
154
154
|
return {
|
|
155
|
-
events: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.events) ? object.events.map((e) => exports.CalendarEvent.fromJSON(e)) : [],
|
|
156
155
|
stats: isSet(object.stats) ? exports.CalendarStats.fromJSON(object.stats) : undefined,
|
|
156
|
+
events: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.events) ? object.events.map((e) => exports.CalendarEvent.fromJSON(e)) : [],
|
|
157
157
|
};
|
|
158
158
|
},
|
|
159
159
|
toJSON(message) {
|
|
160
160
|
var _a;
|
|
161
161
|
const obj = {};
|
|
162
|
-
if ((_a = message.events) === null || _a === void 0 ? void 0 : _a.length) {
|
|
163
|
-
obj.events = message.events.map((e) => exports.CalendarEvent.toJSON(e));
|
|
164
|
-
}
|
|
165
162
|
if (message.stats !== undefined) {
|
|
166
163
|
obj.stats = exports.CalendarStats.toJSON(message.stats);
|
|
167
164
|
}
|
|
165
|
+
if ((_a = message.events) === null || _a === void 0 ? void 0 : _a.length) {
|
|
166
|
+
obj.events = message.events.map((e) => exports.CalendarEvent.toJSON(e));
|
|
167
|
+
}
|
|
168
168
|
return obj;
|
|
169
169
|
},
|
|
170
170
|
create(base) {
|
|
@@ -173,10 +173,10 @@ exports.GetCalendarEventsResponse = {
|
|
|
173
173
|
fromPartial(object) {
|
|
174
174
|
var _a;
|
|
175
175
|
const message = createBaseGetCalendarEventsResponse();
|
|
176
|
-
message.events = ((_a = object.events) === null || _a === void 0 ? void 0 : _a.map((e) => exports.CalendarEvent.fromPartial(e))) || [];
|
|
177
176
|
message.stats = (object.stats !== undefined && object.stats !== null)
|
|
178
177
|
? exports.CalendarStats.fromPartial(object.stats)
|
|
179
178
|
: undefined;
|
|
179
|
+
message.events = ((_a = object.events) === null || _a === void 0 ? void 0 : _a.map((e) => exports.CalendarEvent.fromPartial(e))) || [];
|
|
180
180
|
return message;
|
|
181
181
|
},
|
|
182
182
|
};
|
|
@@ -317,7 +317,16 @@ exports.CalendarStats = {
|
|
|
317
317
|
},
|
|
318
318
|
};
|
|
319
319
|
function createBaseCreateCalendarEventRequest() {
|
|
320
|
-
return {
|
|
320
|
+
return {
|
|
321
|
+
title: "",
|
|
322
|
+
description: "",
|
|
323
|
+
startAt: "",
|
|
324
|
+
endAt: "",
|
|
325
|
+
eventType: "",
|
|
326
|
+
location: "",
|
|
327
|
+
reminderMinutes: 0,
|
|
328
|
+
sessionId: "",
|
|
329
|
+
};
|
|
321
330
|
}
|
|
322
331
|
exports.CreateCalendarEventRequest = {
|
|
323
332
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -342,6 +351,9 @@ exports.CreateCalendarEventRequest = {
|
|
|
342
351
|
if (message.reminderMinutes !== 0) {
|
|
343
352
|
writer.uint32(56).int32(message.reminderMinutes);
|
|
344
353
|
}
|
|
354
|
+
if (message.sessionId !== "") {
|
|
355
|
+
writer.uint32(66).string(message.sessionId);
|
|
356
|
+
}
|
|
345
357
|
return writer;
|
|
346
358
|
},
|
|
347
359
|
decode(input, length) {
|
|
@@ -400,6 +412,13 @@ exports.CreateCalendarEventRequest = {
|
|
|
400
412
|
message.reminderMinutes = reader.int32();
|
|
401
413
|
continue;
|
|
402
414
|
}
|
|
415
|
+
case 8: {
|
|
416
|
+
if (tag !== 66) {
|
|
417
|
+
break;
|
|
418
|
+
}
|
|
419
|
+
message.sessionId = reader.string();
|
|
420
|
+
continue;
|
|
421
|
+
}
|
|
403
422
|
}
|
|
404
423
|
if ((tag & 7) === 4 || tag === 0) {
|
|
405
424
|
break;
|
|
@@ -417,6 +436,7 @@ exports.CreateCalendarEventRequest = {
|
|
|
417
436
|
eventType: isSet(object.eventType) ? globalThis.String(object.eventType) : "",
|
|
418
437
|
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
419
438
|
reminderMinutes: isSet(object.reminderMinutes) ? globalThis.Number(object.reminderMinutes) : 0,
|
|
439
|
+
sessionId: isSet(object.sessionId) ? globalThis.String(object.sessionId) : "",
|
|
420
440
|
};
|
|
421
441
|
},
|
|
422
442
|
toJSON(message) {
|
|
@@ -442,13 +462,16 @@ exports.CreateCalendarEventRequest = {
|
|
|
442
462
|
if (message.reminderMinutes !== 0) {
|
|
443
463
|
obj.reminderMinutes = Math.round(message.reminderMinutes);
|
|
444
464
|
}
|
|
465
|
+
if (message.sessionId !== "") {
|
|
466
|
+
obj.sessionId = message.sessionId;
|
|
467
|
+
}
|
|
445
468
|
return obj;
|
|
446
469
|
},
|
|
447
470
|
create(base) {
|
|
448
471
|
return exports.CreateCalendarEventRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
449
472
|
},
|
|
450
473
|
fromPartial(object) {
|
|
451
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
474
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
452
475
|
const message = createBaseCreateCalendarEventRequest();
|
|
453
476
|
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
454
477
|
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
|
|
@@ -457,6 +480,7 @@ exports.CreateCalendarEventRequest = {
|
|
|
457
480
|
message.eventType = (_e = object.eventType) !== null && _e !== void 0 ? _e : "";
|
|
458
481
|
message.location = (_f = object.location) !== null && _f !== void 0 ? _f : "";
|
|
459
482
|
message.reminderMinutes = (_g = object.reminderMinutes) !== null && _g !== void 0 ? _g : 0;
|
|
483
|
+
message.sessionId = (_h = object.sessionId) !== null && _h !== void 0 ? _h : "";
|
|
460
484
|
return message;
|
|
461
485
|
},
|
|
462
486
|
};
|
|
@@ -527,6 +551,8 @@ function createBaseCalendarEvent() {
|
|
|
527
551
|
description: "",
|
|
528
552
|
googleEventId: "",
|
|
529
553
|
location: "",
|
|
554
|
+
counterpartName: "",
|
|
555
|
+
sessionType: "",
|
|
530
556
|
};
|
|
531
557
|
}
|
|
532
558
|
exports.CalendarEvent = {
|
|
@@ -567,6 +593,12 @@ exports.CalendarEvent = {
|
|
|
567
593
|
if (message.location !== "") {
|
|
568
594
|
writer.uint32(98).string(message.location);
|
|
569
595
|
}
|
|
596
|
+
if (message.counterpartName !== "") {
|
|
597
|
+
writer.uint32(106).string(message.counterpartName);
|
|
598
|
+
}
|
|
599
|
+
if (message.sessionType !== "") {
|
|
600
|
+
writer.uint32(114).string(message.sessionType);
|
|
601
|
+
}
|
|
570
602
|
return writer;
|
|
571
603
|
},
|
|
572
604
|
decode(input, length) {
|
|
@@ -660,6 +692,20 @@ exports.CalendarEvent = {
|
|
|
660
692
|
message.location = reader.string();
|
|
661
693
|
continue;
|
|
662
694
|
}
|
|
695
|
+
case 13: {
|
|
696
|
+
if (tag !== 106) {
|
|
697
|
+
break;
|
|
698
|
+
}
|
|
699
|
+
message.counterpartName = reader.string();
|
|
700
|
+
continue;
|
|
701
|
+
}
|
|
702
|
+
case 14: {
|
|
703
|
+
if (tag !== 114) {
|
|
704
|
+
break;
|
|
705
|
+
}
|
|
706
|
+
message.sessionType = reader.string();
|
|
707
|
+
continue;
|
|
708
|
+
}
|
|
663
709
|
}
|
|
664
710
|
if ((tag & 7) === 4 || tag === 0) {
|
|
665
711
|
break;
|
|
@@ -682,6 +728,8 @@ exports.CalendarEvent = {
|
|
|
682
728
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
683
729
|
googleEventId: isSet(object.googleEventId) ? globalThis.String(object.googleEventId) : "",
|
|
684
730
|
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
731
|
+
counterpartName: isSet(object.counterpartName) ? globalThis.String(object.counterpartName) : "",
|
|
732
|
+
sessionType: isSet(object.sessionType) ? globalThis.String(object.sessionType) : "",
|
|
685
733
|
};
|
|
686
734
|
},
|
|
687
735
|
toJSON(message) {
|
|
@@ -722,13 +770,19 @@ exports.CalendarEvent = {
|
|
|
722
770
|
if (message.location !== "") {
|
|
723
771
|
obj.location = message.location;
|
|
724
772
|
}
|
|
773
|
+
if (message.counterpartName !== "") {
|
|
774
|
+
obj.counterpartName = message.counterpartName;
|
|
775
|
+
}
|
|
776
|
+
if (message.sessionType !== "") {
|
|
777
|
+
obj.sessionType = message.sessionType;
|
|
778
|
+
}
|
|
725
779
|
return obj;
|
|
726
780
|
},
|
|
727
781
|
create(base) {
|
|
728
782
|
return exports.CalendarEvent.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
729
783
|
},
|
|
730
784
|
fromPartial(object) {
|
|
731
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
785
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
732
786
|
const message = createBaseCalendarEvent();
|
|
733
787
|
message.eventId = (_a = object.eventId) !== null && _a !== void 0 ? _a : "";
|
|
734
788
|
message.eventType = (_b = object.eventType) !== null && _b !== void 0 ? _b : "";
|
|
@@ -742,6 +796,8 @@ exports.CalendarEvent = {
|
|
|
742
796
|
message.description = (_k = object.description) !== null && _k !== void 0 ? _k : "";
|
|
743
797
|
message.googleEventId = (_l = object.googleEventId) !== null && _l !== void 0 ? _l : "";
|
|
744
798
|
message.location = (_m = object.location) !== null && _m !== void 0 ? _m : "";
|
|
799
|
+
message.counterpartName = (_o = object.counterpartName) !== null && _o !== void 0 ? _o : "";
|
|
800
|
+
message.sessionType = (_p = object.sessionType) !== null && _p !== void 0 ? _p : "";
|
|
745
801
|
return message;
|
|
746
802
|
},
|
|
747
803
|
};
|
package/dist/chat/message.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { BaseListRequest } from "../common";
|
|
2
3
|
export declare const protobufPackage = "chat";
|
|
3
4
|
export interface ChatUser {
|
|
4
5
|
userId: string;
|
|
@@ -33,8 +34,7 @@ export interface ListConversationsResponse {
|
|
|
33
34
|
}
|
|
34
35
|
export interface ListDirectMessagesRequest {
|
|
35
36
|
userId: string;
|
|
36
|
-
|
|
37
|
-
pageSize: number;
|
|
37
|
+
pagination: BaseListRequest | undefined;
|
|
38
38
|
}
|
|
39
39
|
export interface ListDirectMessagesResponse {
|
|
40
40
|
messages: DirectMessage[];
|
package/dist/chat/message.js
CHANGED
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.DeleteMessageResponse = exports.DeleteMessageRequest = exports.MarkDirectMessagesReadResponse = exports.MarkDirectMessagesReadRequest = exports.SendDirectMessageResponse = exports.SendDirectMessageRequest = exports.ListDirectMessagesResponse = exports.ListDirectMessagesRequest = exports.ListConversationsResponse = exports.ListConversationsRequest = exports.DirectMessage = exports.Conversation = exports.ChatUser = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const common_1 = require("../common");
|
|
11
12
|
exports.protobufPackage = "chat";
|
|
12
13
|
function createBaseChatUser() {
|
|
13
14
|
return { userId: "", fullName: "", avatarUrl: "", username: "" };
|
|
@@ -536,18 +537,15 @@ exports.ListConversationsResponse = {
|
|
|
536
537
|
},
|
|
537
538
|
};
|
|
538
539
|
function createBaseListDirectMessagesRequest() {
|
|
539
|
-
return { userId: "",
|
|
540
|
+
return { userId: "", pagination: undefined };
|
|
540
541
|
}
|
|
541
542
|
exports.ListDirectMessagesRequest = {
|
|
542
543
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
543
544
|
if (message.userId !== "") {
|
|
544
545
|
writer.uint32(10).string(message.userId);
|
|
545
546
|
}
|
|
546
|
-
if (message.
|
|
547
|
-
writer.uint32(
|
|
548
|
-
}
|
|
549
|
-
if (message.pageSize !== 0) {
|
|
550
|
-
writer.uint32(24).int32(message.pageSize);
|
|
547
|
+
if (message.pagination !== undefined) {
|
|
548
|
+
common_1.BaseListRequest.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
551
549
|
}
|
|
552
550
|
return writer;
|
|
553
551
|
},
|
|
@@ -566,17 +564,10 @@ exports.ListDirectMessagesRequest = {
|
|
|
566
564
|
continue;
|
|
567
565
|
}
|
|
568
566
|
case 2: {
|
|
569
|
-
if (tag !==
|
|
570
|
-
break;
|
|
571
|
-
}
|
|
572
|
-
message.page = reader.int32();
|
|
573
|
-
continue;
|
|
574
|
-
}
|
|
575
|
-
case 3: {
|
|
576
|
-
if (tag !== 24) {
|
|
567
|
+
if (tag !== 18) {
|
|
577
568
|
break;
|
|
578
569
|
}
|
|
579
|
-
message.
|
|
570
|
+
message.pagination = common_1.BaseListRequest.decode(reader, reader.uint32());
|
|
580
571
|
continue;
|
|
581
572
|
}
|
|
582
573
|
}
|
|
@@ -590,8 +581,7 @@ exports.ListDirectMessagesRequest = {
|
|
|
590
581
|
fromJSON(object) {
|
|
591
582
|
return {
|
|
592
583
|
userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
|
|
593
|
-
|
|
594
|
-
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
584
|
+
pagination: isSet(object.pagination) ? common_1.BaseListRequest.fromJSON(object.pagination) : undefined,
|
|
595
585
|
};
|
|
596
586
|
},
|
|
597
587
|
toJSON(message) {
|
|
@@ -599,11 +589,8 @@ exports.ListDirectMessagesRequest = {
|
|
|
599
589
|
if (message.userId !== "") {
|
|
600
590
|
obj.userId = message.userId;
|
|
601
591
|
}
|
|
602
|
-
if (message.
|
|
603
|
-
obj.
|
|
604
|
-
}
|
|
605
|
-
if (message.pageSize !== 0) {
|
|
606
|
-
obj.pageSize = Math.round(message.pageSize);
|
|
592
|
+
if (message.pagination !== undefined) {
|
|
593
|
+
obj.pagination = common_1.BaseListRequest.toJSON(message.pagination);
|
|
607
594
|
}
|
|
608
595
|
return obj;
|
|
609
596
|
},
|
|
@@ -611,11 +598,12 @@ exports.ListDirectMessagesRequest = {
|
|
|
611
598
|
return exports.ListDirectMessagesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
612
599
|
},
|
|
613
600
|
fromPartial(object) {
|
|
614
|
-
var _a
|
|
601
|
+
var _a;
|
|
615
602
|
const message = createBaseListDirectMessagesRequest();
|
|
616
603
|
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
617
|
-
message.
|
|
618
|
-
|
|
604
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
605
|
+
? common_1.BaseListRequest.fromPartial(object.pagination)
|
|
606
|
+
: undefined;
|
|
619
607
|
return message;
|
|
620
608
|
},
|
|
621
609
|
};
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { BaseListRequest } from "../common";
|
|
3
|
+
export declare const protobufPackage = "clients";
|
|
4
|
+
export interface ClientDetailStats {
|
|
5
|
+
totalSessions: number;
|
|
6
|
+
completedSessions: number;
|
|
7
|
+
upcomingSessions: number;
|
|
8
|
+
cancelledSessions: number;
|
|
9
|
+
lastSessionDate: string;
|
|
10
|
+
lastSessionHuman: string;
|
|
11
|
+
nextSessionDate: string;
|
|
12
|
+
nextSessionHuman: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ClinicalNoteContent {
|
|
15
|
+
clientMood: string;
|
|
16
|
+
progress: string;
|
|
17
|
+
nextSteps: string;
|
|
18
|
+
notes: string;
|
|
19
|
+
keyTopics: string;
|
|
20
|
+
interventions: string;
|
|
21
|
+
riskLevel: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ClinicalNoteItem {
|
|
24
|
+
id: string;
|
|
25
|
+
sessionId: string;
|
|
26
|
+
therapistId: string;
|
|
27
|
+
clientId: string;
|
|
28
|
+
content: {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
} | undefined;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
updatedAt: string;
|
|
33
|
+
therapistName: string;
|
|
34
|
+
therapistAvatar: string;
|
|
35
|
+
sessionStartAt: string;
|
|
36
|
+
sessionEndAt: string;
|
|
37
|
+
sessionType: string;
|
|
38
|
+
sessionStatus: string;
|
|
39
|
+
}
|
|
40
|
+
export interface RecentSessionItem {
|
|
41
|
+
sessionId: string;
|
|
42
|
+
startAt: string;
|
|
43
|
+
endAt: string;
|
|
44
|
+
status: string;
|
|
45
|
+
sessionType: string;
|
|
46
|
+
notes: string;
|
|
47
|
+
hasClinicalNote: boolean;
|
|
48
|
+
clinicalNoteId: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
}
|
|
51
|
+
export interface TreatmentPlanGoal {
|
|
52
|
+
goal: string;
|
|
53
|
+
status: string;
|
|
54
|
+
targetDate: string;
|
|
55
|
+
notes: string;
|
|
56
|
+
}
|
|
57
|
+
export interface TreatmentPlanItem {
|
|
58
|
+
id: string;
|
|
59
|
+
therapistId: string;
|
|
60
|
+
clientId: string;
|
|
61
|
+
title: string;
|
|
62
|
+
description: string;
|
|
63
|
+
goals: TreatmentPlanGoal[];
|
|
64
|
+
diagnosis: string;
|
|
65
|
+
status: string;
|
|
66
|
+
startDate: string;
|
|
67
|
+
endDate: string;
|
|
68
|
+
createdAt: string;
|
|
69
|
+
updatedAt: string;
|
|
70
|
+
}
|
|
71
|
+
export interface GetClientDetailRequest {
|
|
72
|
+
clientId: string;
|
|
73
|
+
/** default 5 */
|
|
74
|
+
recentSessionLimit: number;
|
|
75
|
+
}
|
|
76
|
+
export interface GetClientDetailResponse {
|
|
77
|
+
id: string;
|
|
78
|
+
username: string;
|
|
79
|
+
fullName: string;
|
|
80
|
+
avatarUrl: string;
|
|
81
|
+
avatarEmoji: string;
|
|
82
|
+
email: string;
|
|
83
|
+
phoneNumber: string;
|
|
84
|
+
gender: string;
|
|
85
|
+
pronouns: string;
|
|
86
|
+
bio: string;
|
|
87
|
+
timeZone: string;
|
|
88
|
+
memberSince: string;
|
|
89
|
+
stats: ClientDetailStats | undefined;
|
|
90
|
+
clinicalNotes: ClinicalNoteItem[];
|
|
91
|
+
recentSessions: RecentSessionItem[];
|
|
92
|
+
treatmentPlan: TreatmentPlanItem | undefined;
|
|
93
|
+
}
|
|
94
|
+
export interface GetClientClinicalNotesRequest {
|
|
95
|
+
clientId: string;
|
|
96
|
+
pagination: BaseListRequest | undefined;
|
|
97
|
+
}
|
|
98
|
+
export interface GetClientClinicalNotesResponse {
|
|
99
|
+
notes: ClinicalNoteItem[];
|
|
100
|
+
totalCount: number;
|
|
101
|
+
}
|
|
102
|
+
export interface AddClinicalNoteRequest {
|
|
103
|
+
sessionId: string;
|
|
104
|
+
clientMood: string;
|
|
105
|
+
progress: string;
|
|
106
|
+
nextSteps: string;
|
|
107
|
+
notes: string;
|
|
108
|
+
keyTopics: string;
|
|
109
|
+
interventions: string;
|
|
110
|
+
riskLevel: string;
|
|
111
|
+
}
|
|
112
|
+
export interface AddClinicalNoteResponse {
|
|
113
|
+
note: ClinicalNoteItem | undefined;
|
|
114
|
+
}
|
|
115
|
+
export interface SessionHistoryStats {
|
|
116
|
+
totalSessions: number;
|
|
117
|
+
completedSessions: number;
|
|
118
|
+
upcomingSessions: number;
|
|
119
|
+
cancelledSessions: number;
|
|
120
|
+
uniqueCounterparts: number;
|
|
121
|
+
}
|
|
122
|
+
export interface SessionHistoryItem {
|
|
123
|
+
sessionId: string;
|
|
124
|
+
clientId: string;
|
|
125
|
+
therapistId: string;
|
|
126
|
+
startAt: string;
|
|
127
|
+
endAt: string;
|
|
128
|
+
status: string;
|
|
129
|
+
sessionType: string;
|
|
130
|
+
notes: string;
|
|
131
|
+
createdAt: string;
|
|
132
|
+
clientName: string;
|
|
133
|
+
clientAvatar: string;
|
|
134
|
+
therapistName: string;
|
|
135
|
+
therapistAvatar: string;
|
|
136
|
+
hasClinicalNote: boolean;
|
|
137
|
+
clinicalNoteId: string;
|
|
138
|
+
clinicalNoteContent: {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
} | undefined;
|
|
141
|
+
}
|
|
142
|
+
export interface GetSessionHistoryRequest {
|
|
143
|
+
pagination: BaseListRequest | undefined;
|
|
144
|
+
/** filter: video, chat, voice */
|
|
145
|
+
sessionType: string;
|
|
146
|
+
/** filter: completed, confirmed, pending, cancelled */
|
|
147
|
+
status: string;
|
|
148
|
+
/** filter: 7d, 30d, 60d, 90d, all */
|
|
149
|
+
range: string;
|
|
150
|
+
userId: string;
|
|
151
|
+
}
|
|
152
|
+
export interface GetSessionHistoryResponse {
|
|
153
|
+
stats: SessionHistoryStats | undefined;
|
|
154
|
+
sessions: SessionHistoryItem[];
|
|
155
|
+
}
|
|
156
|
+
export declare const ClientDetailStats: MessageFns<ClientDetailStats>;
|
|
157
|
+
export declare const ClinicalNoteContent: MessageFns<ClinicalNoteContent>;
|
|
158
|
+
export declare const ClinicalNoteItem: MessageFns<ClinicalNoteItem>;
|
|
159
|
+
export declare const RecentSessionItem: MessageFns<RecentSessionItem>;
|
|
160
|
+
export declare const TreatmentPlanGoal: MessageFns<TreatmentPlanGoal>;
|
|
161
|
+
export declare const TreatmentPlanItem: MessageFns<TreatmentPlanItem>;
|
|
162
|
+
export declare const GetClientDetailRequest: MessageFns<GetClientDetailRequest>;
|
|
163
|
+
export declare const GetClientDetailResponse: MessageFns<GetClientDetailResponse>;
|
|
164
|
+
export declare const GetClientClinicalNotesRequest: MessageFns<GetClientClinicalNotesRequest>;
|
|
165
|
+
export declare const GetClientClinicalNotesResponse: MessageFns<GetClientClinicalNotesResponse>;
|
|
166
|
+
export declare const AddClinicalNoteRequest: MessageFns<AddClinicalNoteRequest>;
|
|
167
|
+
export declare const AddClinicalNoteResponse: MessageFns<AddClinicalNoteResponse>;
|
|
168
|
+
export declare const SessionHistoryStats: MessageFns<SessionHistoryStats>;
|
|
169
|
+
export declare const SessionHistoryItem: MessageFns<SessionHistoryItem>;
|
|
170
|
+
export declare const GetSessionHistoryRequest: MessageFns<GetSessionHistoryRequest>;
|
|
171
|
+
export declare const GetSessionHistoryResponse: MessageFns<GetSessionHistoryResponse>;
|
|
172
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
173
|
+
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 {} ? {
|
|
174
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
175
|
+
} : Partial<T>;
|
|
176
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
177
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
178
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
179
|
+
} & {
|
|
180
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
181
|
+
};
|
|
182
|
+
export interface MessageFns<T> {
|
|
183
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
184
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
185
|
+
fromJSON(object: any): T;
|
|
186
|
+
toJSON(message: T): unknown;
|
|
187
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
188
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
189
|
+
}
|
|
190
|
+
export {};
|