theragist-ts 1.0.28 → 1.0.30
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/admin/message.d.ts +163 -0
- package/dist/admin/message.js +7278 -4815
- package/dist/admin/service.d.ts +97 -1
- package/dist/admin/service.js +454 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +48 -19
- package/dist/soundscape/message.d.ts +24 -6
- package/dist/soundscape/message.js +358 -31
- package/dist/soundscape/service.d.ts +13 -1
- package/dist/soundscape/service.js +56 -0
- package/dist/user/message.d.ts +22 -0
- package/dist/user/message.js +347 -3
- package/dist/wallet/message.d.ts +53 -0
- package/dist/wallet/message.js +837 -4
- package/dist/websocket/message.d.ts +26 -0
- package/dist/websocket/message.js +340 -1
- package/package.json +1 -1
package/dist/admin/message.d.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -844,6 +852,25 @@ export interface AdminTherapistDetail {
|
|
|
844
852
|
joinedAt: string;
|
|
845
853
|
lastActiveAt: string;
|
|
846
854
|
avatarUrl: string;
|
|
855
|
+
sessionTypes: string[];
|
|
856
|
+
yearsPracticing: string;
|
|
857
|
+
languages: string[];
|
|
858
|
+
city: string;
|
|
859
|
+
country: string;
|
|
860
|
+
sessionRateTc: number;
|
|
861
|
+
sessionDurationMinutes: number;
|
|
862
|
+
bufferTimeMinutes: number;
|
|
863
|
+
therapeuticApproach: string;
|
|
864
|
+
reviewCount: number;
|
|
865
|
+
verificationStatus: string;
|
|
866
|
+
username: string;
|
|
867
|
+
gender: string;
|
|
868
|
+
pronouns: string;
|
|
869
|
+
isEmailVerified: boolean;
|
|
870
|
+
isPhoneVerified: boolean;
|
|
871
|
+
accountStatus: string;
|
|
872
|
+
createdAt: string;
|
|
873
|
+
updatedAt: string;
|
|
847
874
|
}
|
|
848
875
|
export interface TherapistStatsResponse {
|
|
849
876
|
activeTherapists: number;
|
|
@@ -883,6 +910,65 @@ export interface ListTherapistSessionsRequest {
|
|
|
883
910
|
export interface ListTherapistSessionsResponse {
|
|
884
911
|
sessions: TherapistSession[];
|
|
885
912
|
}
|
|
913
|
+
export interface ListAdminTherapySessionsRequest {
|
|
914
|
+
pagination: BaseListRequest | undefined;
|
|
915
|
+
status: string;
|
|
916
|
+
sessionType: string;
|
|
917
|
+
therapistId: string;
|
|
918
|
+
clientId: string;
|
|
919
|
+
liveStatus: string;
|
|
920
|
+
from: string;
|
|
921
|
+
to: string;
|
|
922
|
+
}
|
|
923
|
+
export interface AdminTherapySessionListItem {
|
|
924
|
+
id: string;
|
|
925
|
+
clientId: string;
|
|
926
|
+
clientName: string;
|
|
927
|
+
therapistId: string;
|
|
928
|
+
therapistName: string;
|
|
929
|
+
sessionType: string;
|
|
930
|
+
location: string;
|
|
931
|
+
status: string;
|
|
932
|
+
startAt: string;
|
|
933
|
+
endAt: string;
|
|
934
|
+
notes: string;
|
|
935
|
+
cancelReason: string;
|
|
936
|
+
createdAt: string;
|
|
937
|
+
updatedAt: string;
|
|
938
|
+
isLive: boolean;
|
|
939
|
+
liveSessionId: string;
|
|
940
|
+
liveSessionStatus: string;
|
|
941
|
+
}
|
|
942
|
+
export interface AdminTherapySessionListStats {
|
|
943
|
+
totalSessions: number;
|
|
944
|
+
pendingSessions: number;
|
|
945
|
+
confirmedSessions: number;
|
|
946
|
+
completedSessions: number;
|
|
947
|
+
cancelledSessions: number;
|
|
948
|
+
liveSessions: number;
|
|
949
|
+
nextSessionAt: string;
|
|
950
|
+
lastSessionAt: string;
|
|
951
|
+
}
|
|
952
|
+
export interface ListAdminTherapySessionsResponse {
|
|
953
|
+
sessions: AdminTherapySessionListItem[];
|
|
954
|
+
total: number;
|
|
955
|
+
stats: AdminTherapySessionListStats | undefined;
|
|
956
|
+
}
|
|
957
|
+
export interface AdminUpdateTherapySessionStatusRequest {
|
|
958
|
+
id: string;
|
|
959
|
+
status: string;
|
|
960
|
+
reason: string;
|
|
961
|
+
}
|
|
962
|
+
export interface AdminTherapySessionStatusResponse {
|
|
963
|
+
id: string;
|
|
964
|
+
status: string;
|
|
965
|
+
updatedAt: string;
|
|
966
|
+
cancelReason: string;
|
|
967
|
+
cancelledBy: string;
|
|
968
|
+
isLive: boolean;
|
|
969
|
+
liveSessionId: string;
|
|
970
|
+
liveSessionStatus: string;
|
|
971
|
+
}
|
|
886
972
|
export interface KycTherapist {
|
|
887
973
|
id: string;
|
|
888
974
|
fullName: string;
|
|
@@ -1481,6 +1567,63 @@ export interface AdminListTransactionsRequest {
|
|
|
1481
1567
|
export interface AdminListTransactionsResponse {
|
|
1482
1568
|
transactions: PlatformTransaction[];
|
|
1483
1569
|
}
|
|
1570
|
+
export interface PayoutMethodScheduleConfig {
|
|
1571
|
+
autoPayout: boolean;
|
|
1572
|
+
scheduleType: string;
|
|
1573
|
+
intervalDays: number;
|
|
1574
|
+
dayOfWeek: number;
|
|
1575
|
+
}
|
|
1576
|
+
export interface PayoutSettingsResponse {
|
|
1577
|
+
wallet: PayoutMethodScheduleConfig | undefined;
|
|
1578
|
+
bankAccount: PayoutMethodScheduleConfig | undefined;
|
|
1579
|
+
updatedAt: string;
|
|
1580
|
+
updatedBy: string;
|
|
1581
|
+
}
|
|
1582
|
+
export interface UpdatePayoutSettingsRequest {
|
|
1583
|
+
wallet: PayoutMethodScheduleConfig | undefined;
|
|
1584
|
+
bankAccount: PayoutMethodScheduleConfig | undefined;
|
|
1585
|
+
}
|
|
1586
|
+
export interface ListCounsellorPayoutsRequest {
|
|
1587
|
+
pagination: BaseListRequest | undefined;
|
|
1588
|
+
status: string;
|
|
1589
|
+
releaseMode: string;
|
|
1590
|
+
payoutMethod: string;
|
|
1591
|
+
therapistId: string;
|
|
1592
|
+
}
|
|
1593
|
+
export interface CounsellorPayoutItem {
|
|
1594
|
+
id: string;
|
|
1595
|
+
therapistId: string;
|
|
1596
|
+
therapistName: string;
|
|
1597
|
+
sessionPaymentId: string;
|
|
1598
|
+
bookingId: string;
|
|
1599
|
+
fiatAmount: number;
|
|
1600
|
+
fiatCurrency: string;
|
|
1601
|
+
platformFee: number;
|
|
1602
|
+
payoutMethod: string;
|
|
1603
|
+
releaseMode: string;
|
|
1604
|
+
status: string;
|
|
1605
|
+
scheduledFor: string;
|
|
1606
|
+
releasedAt: string;
|
|
1607
|
+
releasedBy: string;
|
|
1608
|
+
failureReason: string;
|
|
1609
|
+
createdAt: string;
|
|
1610
|
+
updatedAt: string;
|
|
1611
|
+
}
|
|
1612
|
+
export interface ListCounsellorPayoutsResponse {
|
|
1613
|
+
payouts: CounsellorPayoutItem[];
|
|
1614
|
+
}
|
|
1615
|
+
export interface ReleaseCounsellorPayoutRequest {
|
|
1616
|
+
id: string;
|
|
1617
|
+
note: string;
|
|
1618
|
+
transferReference: string;
|
|
1619
|
+
}
|
|
1620
|
+
export interface ProcessDueCounsellorPayoutsRequest {
|
|
1621
|
+
limit: number;
|
|
1622
|
+
}
|
|
1623
|
+
export interface ProcessDueCounsellorPayoutsResponse {
|
|
1624
|
+
processedCount: number;
|
|
1625
|
+
payouts: CounsellorPayoutItem[];
|
|
1626
|
+
}
|
|
1484
1627
|
export interface AnalyticsMetric {
|
|
1485
1628
|
value: number;
|
|
1486
1629
|
delta: number;
|
|
@@ -2192,6 +2335,7 @@ export interface AdminEarnWay {
|
|
|
2192
2335
|
isActive: boolean;
|
|
2193
2336
|
sortOrder: number;
|
|
2194
2337
|
createdAt: string;
|
|
2338
|
+
examples: string[];
|
|
2195
2339
|
}
|
|
2196
2340
|
export interface AdminListEarnWaysResponse {
|
|
2197
2341
|
earnWays: AdminEarnWay[];
|
|
@@ -2204,6 +2348,7 @@ export interface AdminCreateEarnWayRequest {
|
|
|
2204
2348
|
exampleTc: string;
|
|
2205
2349
|
isActive: boolean;
|
|
2206
2350
|
sortOrder: number;
|
|
2351
|
+
examples: string[];
|
|
2207
2352
|
}
|
|
2208
2353
|
export interface AdminUpdateEarnWayRequest {
|
|
2209
2354
|
id: string;
|
|
@@ -2212,6 +2357,7 @@ export interface AdminUpdateEarnWayRequest {
|
|
|
2212
2357
|
exampleTc: string;
|
|
2213
2358
|
isActive: boolean;
|
|
2214
2359
|
sortOrder: number;
|
|
2360
|
+
examples: string[];
|
|
2215
2361
|
}
|
|
2216
2362
|
export interface AdminEarnWayResponse {
|
|
2217
2363
|
id: string;
|
|
@@ -2273,6 +2419,8 @@ export declare const AdminLoginRequest: MessageFns<AdminLoginRequest>;
|
|
|
2273
2419
|
export declare const AdminLoginResponse: MessageFns<AdminLoginResponse>;
|
|
2274
2420
|
export declare const AdminForgotPasswordRequest: MessageFns<AdminForgotPasswordRequest>;
|
|
2275
2421
|
export declare const AdminResetPasswordRequest: MessageFns<AdminResetPasswordRequest>;
|
|
2422
|
+
export declare const AdminRefreshTokenRequest: MessageFns<AdminRefreshTokenRequest>;
|
|
2423
|
+
export declare const AdminRefreshTokenResponse: MessageFns<AdminRefreshTokenResponse>;
|
|
2276
2424
|
export declare const AdminLogoutRequest: MessageFns<AdminLogoutRequest>;
|
|
2277
2425
|
export declare const ModulePermission: MessageFns<ModulePermission>;
|
|
2278
2426
|
export declare const AdminPermissions: MessageFns<AdminPermissions>;
|
|
@@ -2383,6 +2531,12 @@ export declare const UpdateTherapistStatusResponse: MessageFns<UpdateTherapistSt
|
|
|
2383
2531
|
export declare const TherapistSession: MessageFns<TherapistSession>;
|
|
2384
2532
|
export declare const ListTherapistSessionsRequest: MessageFns<ListTherapistSessionsRequest>;
|
|
2385
2533
|
export declare const ListTherapistSessionsResponse: MessageFns<ListTherapistSessionsResponse>;
|
|
2534
|
+
export declare const ListAdminTherapySessionsRequest: MessageFns<ListAdminTherapySessionsRequest>;
|
|
2535
|
+
export declare const AdminTherapySessionListItem: MessageFns<AdminTherapySessionListItem>;
|
|
2536
|
+
export declare const AdminTherapySessionListStats: MessageFns<AdminTherapySessionListStats>;
|
|
2537
|
+
export declare const ListAdminTherapySessionsResponse: MessageFns<ListAdminTherapySessionsResponse>;
|
|
2538
|
+
export declare const AdminUpdateTherapySessionStatusRequest: MessageFns<AdminUpdateTherapySessionStatusRequest>;
|
|
2539
|
+
export declare const AdminTherapySessionStatusResponse: MessageFns<AdminTherapySessionStatusResponse>;
|
|
2386
2540
|
export declare const KycTherapist: MessageFns<KycTherapist>;
|
|
2387
2541
|
export declare const ListKycTherapistsRequest: MessageFns<ListKycTherapistsRequest>;
|
|
2388
2542
|
export declare const ListKycTherapistsResponse: MessageFns<ListKycTherapistsResponse>;
|
|
@@ -2460,6 +2614,15 @@ export declare const ReactivateWalletResponse: MessageFns<ReactivateWalletRespon
|
|
|
2460
2614
|
export declare const PlatformTransaction: MessageFns<PlatformTransaction>;
|
|
2461
2615
|
export declare const AdminListTransactionsRequest: MessageFns<AdminListTransactionsRequest>;
|
|
2462
2616
|
export declare const AdminListTransactionsResponse: MessageFns<AdminListTransactionsResponse>;
|
|
2617
|
+
export declare const PayoutMethodScheduleConfig: MessageFns<PayoutMethodScheduleConfig>;
|
|
2618
|
+
export declare const PayoutSettingsResponse: MessageFns<PayoutSettingsResponse>;
|
|
2619
|
+
export declare const UpdatePayoutSettingsRequest: MessageFns<UpdatePayoutSettingsRequest>;
|
|
2620
|
+
export declare const ListCounsellorPayoutsRequest: MessageFns<ListCounsellorPayoutsRequest>;
|
|
2621
|
+
export declare const CounsellorPayoutItem: MessageFns<CounsellorPayoutItem>;
|
|
2622
|
+
export declare const ListCounsellorPayoutsResponse: MessageFns<ListCounsellorPayoutsResponse>;
|
|
2623
|
+
export declare const ReleaseCounsellorPayoutRequest: MessageFns<ReleaseCounsellorPayoutRequest>;
|
|
2624
|
+
export declare const ProcessDueCounsellorPayoutsRequest: MessageFns<ProcessDueCounsellorPayoutsRequest>;
|
|
2625
|
+
export declare const ProcessDueCounsellorPayoutsResponse: MessageFns<ProcessDueCounsellorPayoutsResponse>;
|
|
2463
2626
|
export declare const AnalyticsMetric: MessageFns<AnalyticsMetric>;
|
|
2464
2627
|
export declare const AnalyticsStatsRequest: MessageFns<AnalyticsStatsRequest>;
|
|
2465
2628
|
export declare const AnalyticsStatsResponse: MessageFns<AnalyticsStatsResponse>;
|