theragist-ts 1.0.28 → 1.0.29

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.
@@ -31,6 +31,14 @@ export interface AdminResetPasswordRequest {
31
31
  token: string;
32
32
  newPassword: string;
33
33
  }
34
+ export interface AdminRefreshTokenRequest {
35
+ refreshToken: string;
36
+ }
37
+ export interface AdminRefreshTokenResponse {
38
+ accessToken: string;
39
+ refreshToken: string;
40
+ expiresAt: string;
41
+ }
34
42
  export interface AdminLogoutRequest {
35
43
  refreshToken: string;
36
44
  }
@@ -883,6 +891,65 @@ export interface ListTherapistSessionsRequest {
883
891
  export interface ListTherapistSessionsResponse {
884
892
  sessions: TherapistSession[];
885
893
  }
894
+ export interface ListAdminTherapySessionsRequest {
895
+ pagination: BaseListRequest | undefined;
896
+ status: string;
897
+ sessionType: string;
898
+ therapistId: string;
899
+ clientId: string;
900
+ liveStatus: string;
901
+ from: string;
902
+ to: string;
903
+ }
904
+ export interface AdminTherapySessionListItem {
905
+ id: string;
906
+ clientId: string;
907
+ clientName: string;
908
+ therapistId: string;
909
+ therapistName: string;
910
+ sessionType: string;
911
+ location: string;
912
+ status: string;
913
+ startAt: string;
914
+ endAt: string;
915
+ notes: string;
916
+ cancelReason: string;
917
+ createdAt: string;
918
+ updatedAt: string;
919
+ isLive: boolean;
920
+ liveSessionId: string;
921
+ liveSessionStatus: string;
922
+ }
923
+ export interface AdminTherapySessionListStats {
924
+ totalSessions: number;
925
+ pendingSessions: number;
926
+ confirmedSessions: number;
927
+ completedSessions: number;
928
+ cancelledSessions: number;
929
+ liveSessions: number;
930
+ nextSessionAt: string;
931
+ lastSessionAt: string;
932
+ }
933
+ export interface ListAdminTherapySessionsResponse {
934
+ sessions: AdminTherapySessionListItem[];
935
+ total: number;
936
+ stats: AdminTherapySessionListStats | undefined;
937
+ }
938
+ export interface AdminUpdateTherapySessionStatusRequest {
939
+ id: string;
940
+ status: string;
941
+ reason: string;
942
+ }
943
+ export interface AdminTherapySessionStatusResponse {
944
+ id: string;
945
+ status: string;
946
+ updatedAt: string;
947
+ cancelReason: string;
948
+ cancelledBy: string;
949
+ isLive: boolean;
950
+ liveSessionId: string;
951
+ liveSessionStatus: string;
952
+ }
886
953
  export interface KycTherapist {
887
954
  id: string;
888
955
  fullName: string;
@@ -1481,6 +1548,63 @@ export interface AdminListTransactionsRequest {
1481
1548
  export interface AdminListTransactionsResponse {
1482
1549
  transactions: PlatformTransaction[];
1483
1550
  }
1551
+ export interface PayoutMethodScheduleConfig {
1552
+ autoPayout: boolean;
1553
+ scheduleType: string;
1554
+ intervalDays: number;
1555
+ dayOfWeek: number;
1556
+ }
1557
+ export interface PayoutSettingsResponse {
1558
+ wallet: PayoutMethodScheduleConfig | undefined;
1559
+ bankAccount: PayoutMethodScheduleConfig | undefined;
1560
+ updatedAt: string;
1561
+ updatedBy: string;
1562
+ }
1563
+ export interface UpdatePayoutSettingsRequest {
1564
+ wallet: PayoutMethodScheduleConfig | undefined;
1565
+ bankAccount: PayoutMethodScheduleConfig | undefined;
1566
+ }
1567
+ export interface ListCounsellorPayoutsRequest {
1568
+ pagination: BaseListRequest | undefined;
1569
+ status: string;
1570
+ releaseMode: string;
1571
+ payoutMethod: string;
1572
+ therapistId: string;
1573
+ }
1574
+ export interface CounsellorPayoutItem {
1575
+ id: string;
1576
+ therapistId: string;
1577
+ therapistName: string;
1578
+ sessionPaymentId: string;
1579
+ bookingId: string;
1580
+ fiatAmount: number;
1581
+ fiatCurrency: string;
1582
+ platformFee: number;
1583
+ payoutMethod: string;
1584
+ releaseMode: string;
1585
+ status: string;
1586
+ scheduledFor: string;
1587
+ releasedAt: string;
1588
+ releasedBy: string;
1589
+ failureReason: string;
1590
+ createdAt: string;
1591
+ updatedAt: string;
1592
+ }
1593
+ export interface ListCounsellorPayoutsResponse {
1594
+ payouts: CounsellorPayoutItem[];
1595
+ }
1596
+ export interface ReleaseCounsellorPayoutRequest {
1597
+ id: string;
1598
+ note: string;
1599
+ transferReference: string;
1600
+ }
1601
+ export interface ProcessDueCounsellorPayoutsRequest {
1602
+ limit: number;
1603
+ }
1604
+ export interface ProcessDueCounsellorPayoutsResponse {
1605
+ processedCount: number;
1606
+ payouts: CounsellorPayoutItem[];
1607
+ }
1484
1608
  export interface AnalyticsMetric {
1485
1609
  value: number;
1486
1610
  delta: number;
@@ -2192,6 +2316,7 @@ export interface AdminEarnWay {
2192
2316
  isActive: boolean;
2193
2317
  sortOrder: number;
2194
2318
  createdAt: string;
2319
+ examples: string[];
2195
2320
  }
2196
2321
  export interface AdminListEarnWaysResponse {
2197
2322
  earnWays: AdminEarnWay[];
@@ -2204,6 +2329,7 @@ export interface AdminCreateEarnWayRequest {
2204
2329
  exampleTc: string;
2205
2330
  isActive: boolean;
2206
2331
  sortOrder: number;
2332
+ examples: string[];
2207
2333
  }
2208
2334
  export interface AdminUpdateEarnWayRequest {
2209
2335
  id: string;
@@ -2212,6 +2338,7 @@ export interface AdminUpdateEarnWayRequest {
2212
2338
  exampleTc: string;
2213
2339
  isActive: boolean;
2214
2340
  sortOrder: number;
2341
+ examples: string[];
2215
2342
  }
2216
2343
  export interface AdminEarnWayResponse {
2217
2344
  id: string;
@@ -2273,6 +2400,8 @@ export declare const AdminLoginRequest: MessageFns<AdminLoginRequest>;
2273
2400
  export declare const AdminLoginResponse: MessageFns<AdminLoginResponse>;
2274
2401
  export declare const AdminForgotPasswordRequest: MessageFns<AdminForgotPasswordRequest>;
2275
2402
  export declare const AdminResetPasswordRequest: MessageFns<AdminResetPasswordRequest>;
2403
+ export declare const AdminRefreshTokenRequest: MessageFns<AdminRefreshTokenRequest>;
2404
+ export declare const AdminRefreshTokenResponse: MessageFns<AdminRefreshTokenResponse>;
2276
2405
  export declare const AdminLogoutRequest: MessageFns<AdminLogoutRequest>;
2277
2406
  export declare const ModulePermission: MessageFns<ModulePermission>;
2278
2407
  export declare const AdminPermissions: MessageFns<AdminPermissions>;
@@ -2383,6 +2512,12 @@ export declare const UpdateTherapistStatusResponse: MessageFns<UpdateTherapistSt
2383
2512
  export declare const TherapistSession: MessageFns<TherapistSession>;
2384
2513
  export declare const ListTherapistSessionsRequest: MessageFns<ListTherapistSessionsRequest>;
2385
2514
  export declare const ListTherapistSessionsResponse: MessageFns<ListTherapistSessionsResponse>;
2515
+ export declare const ListAdminTherapySessionsRequest: MessageFns<ListAdminTherapySessionsRequest>;
2516
+ export declare const AdminTherapySessionListItem: MessageFns<AdminTherapySessionListItem>;
2517
+ export declare const AdminTherapySessionListStats: MessageFns<AdminTherapySessionListStats>;
2518
+ export declare const ListAdminTherapySessionsResponse: MessageFns<ListAdminTherapySessionsResponse>;
2519
+ export declare const AdminUpdateTherapySessionStatusRequest: MessageFns<AdminUpdateTherapySessionStatusRequest>;
2520
+ export declare const AdminTherapySessionStatusResponse: MessageFns<AdminTherapySessionStatusResponse>;
2386
2521
  export declare const KycTherapist: MessageFns<KycTherapist>;
2387
2522
  export declare const ListKycTherapistsRequest: MessageFns<ListKycTherapistsRequest>;
2388
2523
  export declare const ListKycTherapistsResponse: MessageFns<ListKycTherapistsResponse>;
@@ -2460,6 +2595,15 @@ export declare const ReactivateWalletResponse: MessageFns<ReactivateWalletRespon
2460
2595
  export declare const PlatformTransaction: MessageFns<PlatformTransaction>;
2461
2596
  export declare const AdminListTransactionsRequest: MessageFns<AdminListTransactionsRequest>;
2462
2597
  export declare const AdminListTransactionsResponse: MessageFns<AdminListTransactionsResponse>;
2598
+ export declare const PayoutMethodScheduleConfig: MessageFns<PayoutMethodScheduleConfig>;
2599
+ export declare const PayoutSettingsResponse: MessageFns<PayoutSettingsResponse>;
2600
+ export declare const UpdatePayoutSettingsRequest: MessageFns<UpdatePayoutSettingsRequest>;
2601
+ export declare const ListCounsellorPayoutsRequest: MessageFns<ListCounsellorPayoutsRequest>;
2602
+ export declare const CounsellorPayoutItem: MessageFns<CounsellorPayoutItem>;
2603
+ export declare const ListCounsellorPayoutsResponse: MessageFns<ListCounsellorPayoutsResponse>;
2604
+ export declare const ReleaseCounsellorPayoutRequest: MessageFns<ReleaseCounsellorPayoutRequest>;
2605
+ export declare const ProcessDueCounsellorPayoutsRequest: MessageFns<ProcessDueCounsellorPayoutsRequest>;
2606
+ export declare const ProcessDueCounsellorPayoutsResponse: MessageFns<ProcessDueCounsellorPayoutsResponse>;
2463
2607
  export declare const AnalyticsMetric: MessageFns<AnalyticsMetric>;
2464
2608
  export declare const AnalyticsStatsRequest: MessageFns<AnalyticsStatsRequest>;
2465
2609
  export declare const AnalyticsStatsResponse: MessageFns<AnalyticsStatsResponse>;