theragist-ts 1.0.17 → 1.0.18

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.
@@ -1,4 +1,5 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { BaseListRequest } from "../common";
2
3
  export declare const protobufPackage = "home";
3
4
  export interface UpcomingSessionItem {
4
5
  sessionId: string;
@@ -136,6 +137,71 @@ export interface GetHomeStatsResponse {
136
137
  therapistStats?: TherapistPerformanceStats | undefined;
137
138
  clientStats?: ClientHomeSummary | undefined;
138
139
  }
140
+ export interface SessionSummary {
141
+ totalSessions: number;
142
+ /** ISO 8601 timestamp or empty */
143
+ lastSessionDate: string;
144
+ /** e.g. "1 week ago", "3 days ago" */
145
+ lastSessionHuman: string;
146
+ /** ISO 8601 timestamp or empty */
147
+ nextSessionDate: string;
148
+ /** e.g. "in 5 hrs", "in 3 days" */
149
+ nextSessionHuman: string;
150
+ }
151
+ export interface ClientItem {
152
+ id: string;
153
+ username: string;
154
+ fullName: string;
155
+ avatarUrl: string;
156
+ email: string;
157
+ totalSessions: number;
158
+ completedSessions: number;
159
+ upcomingSessions: number;
160
+ sessionSummary: SessionSummary | undefined;
161
+ }
162
+ export interface TherapistItem {
163
+ id: string;
164
+ username: string;
165
+ fullName: string;
166
+ avatarUrl: string;
167
+ email: string;
168
+ specialties: string[];
169
+ sessionRateTc: number;
170
+ verificationStatus: string;
171
+ totalSessions: number;
172
+ completedSessions: number;
173
+ upcomingSessions: number;
174
+ sessionSummary: SessionSummary | undefined;
175
+ }
176
+ export interface PaginationStats {
177
+ totalSessions: number;
178
+ completedSessions: number;
179
+ upcomingSessions: number;
180
+ }
181
+ export interface GetMyClientsRequest {
182
+ pagination: BaseListRequest | undefined;
183
+ /** filter by session status (completed, confirmed, pending, cancelled) */
184
+ status: string;
185
+ }
186
+ export interface GetMyClientsResponse {
187
+ clients: ClientItem[];
188
+ stats: PaginationStats | undefined;
189
+ totalCount: number;
190
+ page: number;
191
+ pageSize: number;
192
+ }
193
+ export interface GetMyTherapistRequest {
194
+ pagination: BaseListRequest | undefined;
195
+ /** filter by session status */
196
+ status: string;
197
+ }
198
+ export interface GetMyTherapistResponse {
199
+ therapists: TherapistItem[];
200
+ stats: PaginationStats | undefined;
201
+ totalCount: number;
202
+ page: number;
203
+ pageSize: number;
204
+ }
139
205
  export declare const UpcomingSessionItem: MessageFns<UpcomingSessionItem>;
140
206
  export declare const WalletSummary: MessageFns<WalletSummary>;
141
207
  export declare const RecentMood: MessageFns<RecentMood>;
@@ -151,6 +217,14 @@ export declare const GetHomeRequest: MessageFns<GetHomeRequest>;
151
217
  export declare const GetHomeResponse: MessageFns<GetHomeResponse>;
152
218
  export declare const GetHomeStatsRequest: MessageFns<GetHomeStatsRequest>;
153
219
  export declare const GetHomeStatsResponse: MessageFns<GetHomeStatsResponse>;
220
+ export declare const SessionSummary: MessageFns<SessionSummary>;
221
+ export declare const ClientItem: MessageFns<ClientItem>;
222
+ export declare const TherapistItem: MessageFns<TherapistItem>;
223
+ export declare const PaginationStats: MessageFns<PaginationStats>;
224
+ export declare const GetMyClientsRequest: MessageFns<GetMyClientsRequest>;
225
+ export declare const GetMyClientsResponse: MessageFns<GetMyClientsResponse>;
226
+ export declare const GetMyTherapistRequest: MessageFns<GetMyTherapistRequest>;
227
+ export declare const GetMyTherapistResponse: MessageFns<GetMyTherapistResponse>;
154
228
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
155
229
  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
230
  [K in keyof T]?: DeepPartial<T[K]>;