theragist-ts 1.0.3
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/auth/message.d.ts +242 -0
- package/dist/auth/message.js +2980 -0
- package/dist/auth/service.d.ts +239 -0
- package/dist/auth/service.js +963 -0
- package/dist/booking/message.d.ts +109 -0
- package/dist/booking/message.js +1263 -0
- package/dist/booking/service.d.ts +69 -0
- package/dist/booking/service.js +230 -0
- package/dist/common.d.ts +81 -0
- package/dist/common.js +641 -0
- package/dist/community/message.d.ts +67 -0
- package/dist/community/message.js +646 -0
- package/dist/community/service.d.ts +57 -0
- package/dist/community/service.js +213 -0
- package/dist/google/api/annotations.d.ts +1 -0
- package/dist/google/api/annotations.js +10 -0
- package/dist/google/api/http.d.ts +371 -0
- package/dist/google/api/http.js +360 -0
- package/dist/google/protobuf/descriptor.d.ts +884 -0
- package/dist/google/protobuf/descriptor.js +3595 -0
- package/dist/google/protobuf/struct.d.ts +107 -0
- package/dist/google/protobuf/struct.js +461 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +192 -0
- package/dist/lookup/message.d.ts +128 -0
- package/dist/lookup/message.js +1498 -0
- package/dist/lookup/service.d.ts +93 -0
- package/dist/lookup/service.js +334 -0
- package/dist/therapist/message.d.ts +67 -0
- package/dist/therapist/message.js +679 -0
- package/dist/therapist/service.d.ts +47 -0
- package/dist/therapist/service.js +159 -0
- package/dist/user/message.d.ts +114 -0
- package/dist/user/message.js +1342 -0
- package/dist/user/service.d.ts +172 -0
- package/dist/user/service.js +1041 -0
- package/package.json +43 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { GetIDRequest } from "../common";
|
|
2
|
+
import { TherapistProfile } from "../user/message";
|
|
3
|
+
import { GetAvailabilityRequest, GetAvailabilityResponse, SearchTherapistsRequest, SearchTherapistsResponse } from "./message";
|
|
4
|
+
export declare const protobufPackage = "pb";
|
|
5
|
+
export type TherapistServiceDefinition = typeof TherapistServiceDefinition;
|
|
6
|
+
export declare const TherapistServiceDefinition: {
|
|
7
|
+
readonly name: "TherapistService";
|
|
8
|
+
readonly fullName: "pb.TherapistService";
|
|
9
|
+
readonly methods: {
|
|
10
|
+
readonly searchTherapists: {
|
|
11
|
+
readonly name: "SearchTherapists";
|
|
12
|
+
readonly requestType: import("./message").MessageFns<SearchTherapistsRequest>;
|
|
13
|
+
readonly requestStream: false;
|
|
14
|
+
readonly responseType: import("./message").MessageFns<SearchTherapistsResponse>;
|
|
15
|
+
readonly responseStream: false;
|
|
16
|
+
readonly options: {
|
|
17
|
+
readonly _unknownFields: {
|
|
18
|
+
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly getTherapist: {
|
|
23
|
+
readonly name: "GetTherapist";
|
|
24
|
+
readonly requestType: import("../common").MessageFns<GetIDRequest>;
|
|
25
|
+
readonly requestStream: false;
|
|
26
|
+
readonly responseType: import("../user/message").MessageFns<TherapistProfile>;
|
|
27
|
+
readonly responseStream: false;
|
|
28
|
+
readonly options: {
|
|
29
|
+
readonly _unknownFields: {
|
|
30
|
+
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly getAvailability: {
|
|
35
|
+
readonly name: "GetAvailability";
|
|
36
|
+
readonly requestType: import("./message").MessageFns<GetAvailabilityRequest>;
|
|
37
|
+
readonly requestStream: false;
|
|
38
|
+
readonly responseType: import("./message").MessageFns<GetAvailabilityResponse>;
|
|
39
|
+
readonly responseStream: false;
|
|
40
|
+
readonly options: {
|
|
41
|
+
readonly _unknownFields: {
|
|
42
|
+
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.10.1
|
|
5
|
+
// protoc v3.21.12
|
|
6
|
+
// source: therapist/service.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.TherapistServiceDefinition = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const common_1 = require("../common");
|
|
11
|
+
const message_1 = require("../user/message");
|
|
12
|
+
const message_2 = require("./message");
|
|
13
|
+
exports.protobufPackage = "pb";
|
|
14
|
+
exports.TherapistServiceDefinition = {
|
|
15
|
+
name: "TherapistService",
|
|
16
|
+
fullName: "pb.TherapistService",
|
|
17
|
+
methods: {
|
|
18
|
+
searchTherapists: {
|
|
19
|
+
name: "SearchTherapists",
|
|
20
|
+
requestType: message_2.SearchTherapistsRequest,
|
|
21
|
+
requestStream: false,
|
|
22
|
+
responseType: message_2.SearchTherapistsResponse,
|
|
23
|
+
responseStream: false,
|
|
24
|
+
options: {
|
|
25
|
+
_unknownFields: {
|
|
26
|
+
578365826: [
|
|
27
|
+
new Uint8Array([
|
|
28
|
+
20,
|
|
29
|
+
18,
|
|
30
|
+
18,
|
|
31
|
+
47,
|
|
32
|
+
97,
|
|
33
|
+
112,
|
|
34
|
+
105,
|
|
35
|
+
47,
|
|
36
|
+
118,
|
|
37
|
+
49,
|
|
38
|
+
47,
|
|
39
|
+
116,
|
|
40
|
+
104,
|
|
41
|
+
101,
|
|
42
|
+
114,
|
|
43
|
+
97,
|
|
44
|
+
112,
|
|
45
|
+
105,
|
|
46
|
+
115,
|
|
47
|
+
116,
|
|
48
|
+
115,
|
|
49
|
+
]),
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
getTherapist: {
|
|
55
|
+
name: "GetTherapist",
|
|
56
|
+
requestType: common_1.GetIDRequest,
|
|
57
|
+
requestStream: false,
|
|
58
|
+
responseType: message_1.TherapistProfile,
|
|
59
|
+
responseStream: false,
|
|
60
|
+
options: {
|
|
61
|
+
_unknownFields: {
|
|
62
|
+
578365826: [
|
|
63
|
+
new Uint8Array([
|
|
64
|
+
25,
|
|
65
|
+
18,
|
|
66
|
+
23,
|
|
67
|
+
47,
|
|
68
|
+
97,
|
|
69
|
+
112,
|
|
70
|
+
105,
|
|
71
|
+
47,
|
|
72
|
+
118,
|
|
73
|
+
49,
|
|
74
|
+
47,
|
|
75
|
+
116,
|
|
76
|
+
104,
|
|
77
|
+
101,
|
|
78
|
+
114,
|
|
79
|
+
97,
|
|
80
|
+
112,
|
|
81
|
+
105,
|
|
82
|
+
115,
|
|
83
|
+
116,
|
|
84
|
+
115,
|
|
85
|
+
47,
|
|
86
|
+
123,
|
|
87
|
+
105,
|
|
88
|
+
100,
|
|
89
|
+
125,
|
|
90
|
+
]),
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
getAvailability: {
|
|
96
|
+
name: "GetAvailability",
|
|
97
|
+
requestType: message_2.GetAvailabilityRequest,
|
|
98
|
+
requestStream: false,
|
|
99
|
+
responseType: message_2.GetAvailabilityResponse,
|
|
100
|
+
responseStream: false,
|
|
101
|
+
options: {
|
|
102
|
+
_unknownFields: {
|
|
103
|
+
578365826: [
|
|
104
|
+
new Uint8Array([
|
|
105
|
+
47,
|
|
106
|
+
18,
|
|
107
|
+
45,
|
|
108
|
+
47,
|
|
109
|
+
97,
|
|
110
|
+
112,
|
|
111
|
+
105,
|
|
112
|
+
47,
|
|
113
|
+
118,
|
|
114
|
+
49,
|
|
115
|
+
47,
|
|
116
|
+
116,
|
|
117
|
+
104,
|
|
118
|
+
101,
|
|
119
|
+
114,
|
|
120
|
+
97,
|
|
121
|
+
112,
|
|
122
|
+
105,
|
|
123
|
+
115,
|
|
124
|
+
116,
|
|
125
|
+
115,
|
|
126
|
+
47,
|
|
127
|
+
123,
|
|
128
|
+
116,
|
|
129
|
+
104,
|
|
130
|
+
101,
|
|
131
|
+
114,
|
|
132
|
+
97,
|
|
133
|
+
112,
|
|
134
|
+
105,
|
|
135
|
+
115,
|
|
136
|
+
116,
|
|
137
|
+
73,
|
|
138
|
+
100,
|
|
139
|
+
125,
|
|
140
|
+
47,
|
|
141
|
+
97,
|
|
142
|
+
118,
|
|
143
|
+
97,
|
|
144
|
+
105,
|
|
145
|
+
108,
|
|
146
|
+
97,
|
|
147
|
+
98,
|
|
148
|
+
105,
|
|
149
|
+
108,
|
|
150
|
+
105,
|
|
151
|
+
116,
|
|
152
|
+
121,
|
|
153
|
+
]),
|
|
154
|
+
],
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "pb";
|
|
3
|
+
export interface UserPreferences {
|
|
4
|
+
/** "chat", "video", "audio" */
|
|
5
|
+
communicationChannel: string;
|
|
6
|
+
/** "male", "female", "noPreference" */
|
|
7
|
+
preferredTherapistGender: string;
|
|
8
|
+
/** ["morningWeekdays", "eveningWeekdays", "weekends"] */
|
|
9
|
+
preferredSessionTimes: string[];
|
|
10
|
+
dailyReminders: boolean;
|
|
11
|
+
insightNotifications: boolean;
|
|
12
|
+
darkMode: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface User {
|
|
15
|
+
userId: string;
|
|
16
|
+
/** "client" or "therapist" */
|
|
17
|
+
role: string;
|
|
18
|
+
fullName: string;
|
|
19
|
+
email: string;
|
|
20
|
+
phoneNumber: string;
|
|
21
|
+
avatarUrl: string;
|
|
22
|
+
bio: string;
|
|
23
|
+
timeZone: string;
|
|
24
|
+
language: string;
|
|
25
|
+
preferences: UserPreferences | undefined;
|
|
26
|
+
isEmailVerified: boolean;
|
|
27
|
+
/** "pending", "inProgress", "completed" */
|
|
28
|
+
onboardingStatus: string;
|
|
29
|
+
createdAt: string;
|
|
30
|
+
updatedAt: string;
|
|
31
|
+
username: string;
|
|
32
|
+
birthday: string;
|
|
33
|
+
gender: string;
|
|
34
|
+
pronouns: string;
|
|
35
|
+
therapistProfile: TherapistProfile | undefined;
|
|
36
|
+
}
|
|
37
|
+
export interface Session {
|
|
38
|
+
accessToken: string;
|
|
39
|
+
refreshToken: string;
|
|
40
|
+
expiresAt: number;
|
|
41
|
+
}
|
|
42
|
+
export interface TherapistProfile {
|
|
43
|
+
therapistId: string;
|
|
44
|
+
fullName: string;
|
|
45
|
+
avatarUrl: string;
|
|
46
|
+
bio: string;
|
|
47
|
+
specialties: string[];
|
|
48
|
+
modalities: string[];
|
|
49
|
+
yearsOfExperience: string;
|
|
50
|
+
languages: string[];
|
|
51
|
+
sessionPrice: SessionPrice | undefined;
|
|
52
|
+
rating: number;
|
|
53
|
+
reviewCount: number;
|
|
54
|
+
location: Location | undefined;
|
|
55
|
+
experienceLevelId: string;
|
|
56
|
+
licenseNumber: string;
|
|
57
|
+
licenseState: string;
|
|
58
|
+
education: string;
|
|
59
|
+
timeZone: string;
|
|
60
|
+
verificationStatus: string;
|
|
61
|
+
sessionDurationMinutes: number;
|
|
62
|
+
}
|
|
63
|
+
export interface SessionPrice {
|
|
64
|
+
currency: string;
|
|
65
|
+
/** in cents */
|
|
66
|
+
amount: number;
|
|
67
|
+
}
|
|
68
|
+
export interface Location {
|
|
69
|
+
city: string;
|
|
70
|
+
country: string;
|
|
71
|
+
}
|
|
72
|
+
export interface OnboardingData {
|
|
73
|
+
userId: string;
|
|
74
|
+
onboardingStatus: string;
|
|
75
|
+
completedSteps: string[];
|
|
76
|
+
pendingSteps: string[];
|
|
77
|
+
/** JSON string of step data */
|
|
78
|
+
data: string;
|
|
79
|
+
}
|
|
80
|
+
export interface SessionInfo {
|
|
81
|
+
sessionId: string;
|
|
82
|
+
userAgent: string;
|
|
83
|
+
clientIp: string;
|
|
84
|
+
isCurrent: boolean;
|
|
85
|
+
expiresAt: string;
|
|
86
|
+
createdAt: string;
|
|
87
|
+
}
|
|
88
|
+
export declare const UserPreferences: MessageFns<UserPreferences>;
|
|
89
|
+
export declare const User: MessageFns<User>;
|
|
90
|
+
export declare const Session: MessageFns<Session>;
|
|
91
|
+
export declare const TherapistProfile: MessageFns<TherapistProfile>;
|
|
92
|
+
export declare const SessionPrice: MessageFns<SessionPrice>;
|
|
93
|
+
export declare const Location: MessageFns<Location>;
|
|
94
|
+
export declare const OnboardingData: MessageFns<OnboardingData>;
|
|
95
|
+
export declare const SessionInfo: MessageFns<SessionInfo>;
|
|
96
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
97
|
+
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 {} ? {
|
|
98
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
99
|
+
} : Partial<T>;
|
|
100
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
101
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
102
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
103
|
+
} & {
|
|
104
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
105
|
+
};
|
|
106
|
+
export interface MessageFns<T> {
|
|
107
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
108
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
109
|
+
fromJSON(object: any): T;
|
|
110
|
+
toJSON(message: T): unknown;
|
|
111
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
112
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
113
|
+
}
|
|
114
|
+
export {};
|