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,1342 @@
|
|
|
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: user/message.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.SessionInfo = exports.OnboardingData = exports.Location = exports.SessionPrice = exports.TherapistProfile = exports.Session = exports.User = exports.UserPreferences = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
exports.protobufPackage = "pb";
|
|
12
|
+
function createBaseUserPreferences() {
|
|
13
|
+
return {
|
|
14
|
+
communicationChannel: "",
|
|
15
|
+
preferredTherapistGender: "",
|
|
16
|
+
preferredSessionTimes: [],
|
|
17
|
+
dailyReminders: false,
|
|
18
|
+
insightNotifications: false,
|
|
19
|
+
darkMode: false,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
exports.UserPreferences = {
|
|
23
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
24
|
+
if (message.communicationChannel !== "") {
|
|
25
|
+
writer.uint32(10).string(message.communicationChannel);
|
|
26
|
+
}
|
|
27
|
+
if (message.preferredTherapistGender !== "") {
|
|
28
|
+
writer.uint32(18).string(message.preferredTherapistGender);
|
|
29
|
+
}
|
|
30
|
+
for (const v of message.preferredSessionTimes) {
|
|
31
|
+
writer.uint32(26).string(v);
|
|
32
|
+
}
|
|
33
|
+
if (message.dailyReminders !== false) {
|
|
34
|
+
writer.uint32(32).bool(message.dailyReminders);
|
|
35
|
+
}
|
|
36
|
+
if (message.insightNotifications !== false) {
|
|
37
|
+
writer.uint32(40).bool(message.insightNotifications);
|
|
38
|
+
}
|
|
39
|
+
if (message.darkMode !== false) {
|
|
40
|
+
writer.uint32(48).bool(message.darkMode);
|
|
41
|
+
}
|
|
42
|
+
return writer;
|
|
43
|
+
},
|
|
44
|
+
decode(input, length) {
|
|
45
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
46
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
47
|
+
const message = createBaseUserPreferences();
|
|
48
|
+
while (reader.pos < end) {
|
|
49
|
+
const tag = reader.uint32();
|
|
50
|
+
switch (tag >>> 3) {
|
|
51
|
+
case 1: {
|
|
52
|
+
if (tag !== 10) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
message.communicationChannel = reader.string();
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
case 2: {
|
|
59
|
+
if (tag !== 18) {
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
message.preferredTherapistGender = reader.string();
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
case 3: {
|
|
66
|
+
if (tag !== 26) {
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
message.preferredSessionTimes.push(reader.string());
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
case 4: {
|
|
73
|
+
if (tag !== 32) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
message.dailyReminders = reader.bool();
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
case 5: {
|
|
80
|
+
if (tag !== 40) {
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
message.insightNotifications = reader.bool();
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
case 6: {
|
|
87
|
+
if (tag !== 48) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.darkMode = reader.bool();
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
reader.skip(tag & 7);
|
|
98
|
+
}
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
fromJSON(object) {
|
|
102
|
+
return {
|
|
103
|
+
communicationChannel: isSet(object.communicationChannel) ? globalThis.String(object.communicationChannel) : "",
|
|
104
|
+
preferredTherapistGender: isSet(object.preferredTherapistGender)
|
|
105
|
+
? globalThis.String(object.preferredTherapistGender)
|
|
106
|
+
: "",
|
|
107
|
+
preferredSessionTimes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.preferredSessionTimes)
|
|
108
|
+
? object.preferredSessionTimes.map((e) => globalThis.String(e))
|
|
109
|
+
: [],
|
|
110
|
+
dailyReminders: isSet(object.dailyReminders) ? globalThis.Boolean(object.dailyReminders) : false,
|
|
111
|
+
insightNotifications: isSet(object.insightNotifications)
|
|
112
|
+
? globalThis.Boolean(object.insightNotifications)
|
|
113
|
+
: false,
|
|
114
|
+
darkMode: isSet(object.darkMode) ? globalThis.Boolean(object.darkMode) : false,
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
toJSON(message) {
|
|
118
|
+
var _a;
|
|
119
|
+
const obj = {};
|
|
120
|
+
if (message.communicationChannel !== "") {
|
|
121
|
+
obj.communicationChannel = message.communicationChannel;
|
|
122
|
+
}
|
|
123
|
+
if (message.preferredTherapistGender !== "") {
|
|
124
|
+
obj.preferredTherapistGender = message.preferredTherapistGender;
|
|
125
|
+
}
|
|
126
|
+
if ((_a = message.preferredSessionTimes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
127
|
+
obj.preferredSessionTimes = message.preferredSessionTimes;
|
|
128
|
+
}
|
|
129
|
+
if (message.dailyReminders !== false) {
|
|
130
|
+
obj.dailyReminders = message.dailyReminders;
|
|
131
|
+
}
|
|
132
|
+
if (message.insightNotifications !== false) {
|
|
133
|
+
obj.insightNotifications = message.insightNotifications;
|
|
134
|
+
}
|
|
135
|
+
if (message.darkMode !== false) {
|
|
136
|
+
obj.darkMode = message.darkMode;
|
|
137
|
+
}
|
|
138
|
+
return obj;
|
|
139
|
+
},
|
|
140
|
+
create(base) {
|
|
141
|
+
return exports.UserPreferences.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
142
|
+
},
|
|
143
|
+
fromPartial(object) {
|
|
144
|
+
var _a, _b, _c, _d, _e, _f;
|
|
145
|
+
const message = createBaseUserPreferences();
|
|
146
|
+
message.communicationChannel = (_a = object.communicationChannel) !== null && _a !== void 0 ? _a : "";
|
|
147
|
+
message.preferredTherapistGender = (_b = object.preferredTherapistGender) !== null && _b !== void 0 ? _b : "";
|
|
148
|
+
message.preferredSessionTimes = ((_c = object.preferredSessionTimes) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
149
|
+
message.dailyReminders = (_d = object.dailyReminders) !== null && _d !== void 0 ? _d : false;
|
|
150
|
+
message.insightNotifications = (_e = object.insightNotifications) !== null && _e !== void 0 ? _e : false;
|
|
151
|
+
message.darkMode = (_f = object.darkMode) !== null && _f !== void 0 ? _f : false;
|
|
152
|
+
return message;
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
function createBaseUser() {
|
|
156
|
+
return {
|
|
157
|
+
userId: "",
|
|
158
|
+
role: "",
|
|
159
|
+
fullName: "",
|
|
160
|
+
email: "",
|
|
161
|
+
phoneNumber: "",
|
|
162
|
+
avatarUrl: "",
|
|
163
|
+
bio: "",
|
|
164
|
+
timeZone: "",
|
|
165
|
+
language: "",
|
|
166
|
+
preferences: undefined,
|
|
167
|
+
isEmailVerified: false,
|
|
168
|
+
onboardingStatus: "",
|
|
169
|
+
createdAt: "",
|
|
170
|
+
updatedAt: "",
|
|
171
|
+
username: "",
|
|
172
|
+
birthday: "",
|
|
173
|
+
gender: "",
|
|
174
|
+
pronouns: "",
|
|
175
|
+
therapistProfile: undefined,
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
exports.User = {
|
|
179
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
180
|
+
if (message.userId !== "") {
|
|
181
|
+
writer.uint32(10).string(message.userId);
|
|
182
|
+
}
|
|
183
|
+
if (message.role !== "") {
|
|
184
|
+
writer.uint32(18).string(message.role);
|
|
185
|
+
}
|
|
186
|
+
if (message.fullName !== "") {
|
|
187
|
+
writer.uint32(26).string(message.fullName);
|
|
188
|
+
}
|
|
189
|
+
if (message.email !== "") {
|
|
190
|
+
writer.uint32(34).string(message.email);
|
|
191
|
+
}
|
|
192
|
+
if (message.phoneNumber !== "") {
|
|
193
|
+
writer.uint32(42).string(message.phoneNumber);
|
|
194
|
+
}
|
|
195
|
+
if (message.avatarUrl !== "") {
|
|
196
|
+
writer.uint32(50).string(message.avatarUrl);
|
|
197
|
+
}
|
|
198
|
+
if (message.bio !== "") {
|
|
199
|
+
writer.uint32(58).string(message.bio);
|
|
200
|
+
}
|
|
201
|
+
if (message.timeZone !== "") {
|
|
202
|
+
writer.uint32(66).string(message.timeZone);
|
|
203
|
+
}
|
|
204
|
+
if (message.language !== "") {
|
|
205
|
+
writer.uint32(74).string(message.language);
|
|
206
|
+
}
|
|
207
|
+
if (message.preferences !== undefined) {
|
|
208
|
+
exports.UserPreferences.encode(message.preferences, writer.uint32(82).fork()).join();
|
|
209
|
+
}
|
|
210
|
+
if (message.isEmailVerified !== false) {
|
|
211
|
+
writer.uint32(88).bool(message.isEmailVerified);
|
|
212
|
+
}
|
|
213
|
+
if (message.onboardingStatus !== "") {
|
|
214
|
+
writer.uint32(98).string(message.onboardingStatus);
|
|
215
|
+
}
|
|
216
|
+
if (message.createdAt !== "") {
|
|
217
|
+
writer.uint32(106).string(message.createdAt);
|
|
218
|
+
}
|
|
219
|
+
if (message.updatedAt !== "") {
|
|
220
|
+
writer.uint32(114).string(message.updatedAt);
|
|
221
|
+
}
|
|
222
|
+
if (message.username !== "") {
|
|
223
|
+
writer.uint32(122).string(message.username);
|
|
224
|
+
}
|
|
225
|
+
if (message.birthday !== "") {
|
|
226
|
+
writer.uint32(130).string(message.birthday);
|
|
227
|
+
}
|
|
228
|
+
if (message.gender !== "") {
|
|
229
|
+
writer.uint32(138).string(message.gender);
|
|
230
|
+
}
|
|
231
|
+
if (message.pronouns !== "") {
|
|
232
|
+
writer.uint32(146).string(message.pronouns);
|
|
233
|
+
}
|
|
234
|
+
if (message.therapistProfile !== undefined) {
|
|
235
|
+
exports.TherapistProfile.encode(message.therapistProfile, writer.uint32(154).fork()).join();
|
|
236
|
+
}
|
|
237
|
+
return writer;
|
|
238
|
+
},
|
|
239
|
+
decode(input, length) {
|
|
240
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
241
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
242
|
+
const message = createBaseUser();
|
|
243
|
+
while (reader.pos < end) {
|
|
244
|
+
const tag = reader.uint32();
|
|
245
|
+
switch (tag >>> 3) {
|
|
246
|
+
case 1: {
|
|
247
|
+
if (tag !== 10) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
message.userId = reader.string();
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
case 2: {
|
|
254
|
+
if (tag !== 18) {
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
message.role = reader.string();
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
case 3: {
|
|
261
|
+
if (tag !== 26) {
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
message.fullName = reader.string();
|
|
265
|
+
continue;
|
|
266
|
+
}
|
|
267
|
+
case 4: {
|
|
268
|
+
if (tag !== 34) {
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
message.email = reader.string();
|
|
272
|
+
continue;
|
|
273
|
+
}
|
|
274
|
+
case 5: {
|
|
275
|
+
if (tag !== 42) {
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
message.phoneNumber = reader.string();
|
|
279
|
+
continue;
|
|
280
|
+
}
|
|
281
|
+
case 6: {
|
|
282
|
+
if (tag !== 50) {
|
|
283
|
+
break;
|
|
284
|
+
}
|
|
285
|
+
message.avatarUrl = reader.string();
|
|
286
|
+
continue;
|
|
287
|
+
}
|
|
288
|
+
case 7: {
|
|
289
|
+
if (tag !== 58) {
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
message.bio = reader.string();
|
|
293
|
+
continue;
|
|
294
|
+
}
|
|
295
|
+
case 8: {
|
|
296
|
+
if (tag !== 66) {
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
message.timeZone = reader.string();
|
|
300
|
+
continue;
|
|
301
|
+
}
|
|
302
|
+
case 9: {
|
|
303
|
+
if (tag !== 74) {
|
|
304
|
+
break;
|
|
305
|
+
}
|
|
306
|
+
message.language = reader.string();
|
|
307
|
+
continue;
|
|
308
|
+
}
|
|
309
|
+
case 10: {
|
|
310
|
+
if (tag !== 82) {
|
|
311
|
+
break;
|
|
312
|
+
}
|
|
313
|
+
message.preferences = exports.UserPreferences.decode(reader, reader.uint32());
|
|
314
|
+
continue;
|
|
315
|
+
}
|
|
316
|
+
case 11: {
|
|
317
|
+
if (tag !== 88) {
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
message.isEmailVerified = reader.bool();
|
|
321
|
+
continue;
|
|
322
|
+
}
|
|
323
|
+
case 12: {
|
|
324
|
+
if (tag !== 98) {
|
|
325
|
+
break;
|
|
326
|
+
}
|
|
327
|
+
message.onboardingStatus = reader.string();
|
|
328
|
+
continue;
|
|
329
|
+
}
|
|
330
|
+
case 13: {
|
|
331
|
+
if (tag !== 106) {
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
message.createdAt = reader.string();
|
|
335
|
+
continue;
|
|
336
|
+
}
|
|
337
|
+
case 14: {
|
|
338
|
+
if (tag !== 114) {
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
message.updatedAt = reader.string();
|
|
342
|
+
continue;
|
|
343
|
+
}
|
|
344
|
+
case 15: {
|
|
345
|
+
if (tag !== 122) {
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
message.username = reader.string();
|
|
349
|
+
continue;
|
|
350
|
+
}
|
|
351
|
+
case 16: {
|
|
352
|
+
if (tag !== 130) {
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
message.birthday = reader.string();
|
|
356
|
+
continue;
|
|
357
|
+
}
|
|
358
|
+
case 17: {
|
|
359
|
+
if (tag !== 138) {
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
message.gender = reader.string();
|
|
363
|
+
continue;
|
|
364
|
+
}
|
|
365
|
+
case 18: {
|
|
366
|
+
if (tag !== 146) {
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
message.pronouns = reader.string();
|
|
370
|
+
continue;
|
|
371
|
+
}
|
|
372
|
+
case 19: {
|
|
373
|
+
if (tag !== 154) {
|
|
374
|
+
break;
|
|
375
|
+
}
|
|
376
|
+
message.therapistProfile = exports.TherapistProfile.decode(reader, reader.uint32());
|
|
377
|
+
continue;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
383
|
+
reader.skip(tag & 7);
|
|
384
|
+
}
|
|
385
|
+
return message;
|
|
386
|
+
},
|
|
387
|
+
fromJSON(object) {
|
|
388
|
+
return {
|
|
389
|
+
userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
|
|
390
|
+
role: isSet(object.role) ? globalThis.String(object.role) : "",
|
|
391
|
+
fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
|
|
392
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
393
|
+
phoneNumber: isSet(object.phoneNumber) ? globalThis.String(object.phoneNumber) : "",
|
|
394
|
+
avatarUrl: isSet(object.avatarUrl) ? globalThis.String(object.avatarUrl) : "",
|
|
395
|
+
bio: isSet(object.bio) ? globalThis.String(object.bio) : "",
|
|
396
|
+
timeZone: isSet(object.timeZone) ? globalThis.String(object.timeZone) : "",
|
|
397
|
+
language: isSet(object.language) ? globalThis.String(object.language) : "",
|
|
398
|
+
preferences: isSet(object.preferences) ? exports.UserPreferences.fromJSON(object.preferences) : undefined,
|
|
399
|
+
isEmailVerified: isSet(object.isEmailVerified) ? globalThis.Boolean(object.isEmailVerified) : false,
|
|
400
|
+
onboardingStatus: isSet(object.onboardingStatus) ? globalThis.String(object.onboardingStatus) : "",
|
|
401
|
+
createdAt: isSet(object.createdAt) ? globalThis.String(object.createdAt) : "",
|
|
402
|
+
updatedAt: isSet(object.updatedAt) ? globalThis.String(object.updatedAt) : "",
|
|
403
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
404
|
+
birthday: isSet(object.birthday) ? globalThis.String(object.birthday) : "",
|
|
405
|
+
gender: isSet(object.gender) ? globalThis.String(object.gender) : "",
|
|
406
|
+
pronouns: isSet(object.pronouns) ? globalThis.String(object.pronouns) : "",
|
|
407
|
+
therapistProfile: isSet(object.therapistProfile) ? exports.TherapistProfile.fromJSON(object.therapistProfile) : undefined,
|
|
408
|
+
};
|
|
409
|
+
},
|
|
410
|
+
toJSON(message) {
|
|
411
|
+
const obj = {};
|
|
412
|
+
if (message.userId !== "") {
|
|
413
|
+
obj.userId = message.userId;
|
|
414
|
+
}
|
|
415
|
+
if (message.role !== "") {
|
|
416
|
+
obj.role = message.role;
|
|
417
|
+
}
|
|
418
|
+
if (message.fullName !== "") {
|
|
419
|
+
obj.fullName = message.fullName;
|
|
420
|
+
}
|
|
421
|
+
if (message.email !== "") {
|
|
422
|
+
obj.email = message.email;
|
|
423
|
+
}
|
|
424
|
+
if (message.phoneNumber !== "") {
|
|
425
|
+
obj.phoneNumber = message.phoneNumber;
|
|
426
|
+
}
|
|
427
|
+
if (message.avatarUrl !== "") {
|
|
428
|
+
obj.avatarUrl = message.avatarUrl;
|
|
429
|
+
}
|
|
430
|
+
if (message.bio !== "") {
|
|
431
|
+
obj.bio = message.bio;
|
|
432
|
+
}
|
|
433
|
+
if (message.timeZone !== "") {
|
|
434
|
+
obj.timeZone = message.timeZone;
|
|
435
|
+
}
|
|
436
|
+
if (message.language !== "") {
|
|
437
|
+
obj.language = message.language;
|
|
438
|
+
}
|
|
439
|
+
if (message.preferences !== undefined) {
|
|
440
|
+
obj.preferences = exports.UserPreferences.toJSON(message.preferences);
|
|
441
|
+
}
|
|
442
|
+
if (message.isEmailVerified !== false) {
|
|
443
|
+
obj.isEmailVerified = message.isEmailVerified;
|
|
444
|
+
}
|
|
445
|
+
if (message.onboardingStatus !== "") {
|
|
446
|
+
obj.onboardingStatus = message.onboardingStatus;
|
|
447
|
+
}
|
|
448
|
+
if (message.createdAt !== "") {
|
|
449
|
+
obj.createdAt = message.createdAt;
|
|
450
|
+
}
|
|
451
|
+
if (message.updatedAt !== "") {
|
|
452
|
+
obj.updatedAt = message.updatedAt;
|
|
453
|
+
}
|
|
454
|
+
if (message.username !== "") {
|
|
455
|
+
obj.username = message.username;
|
|
456
|
+
}
|
|
457
|
+
if (message.birthday !== "") {
|
|
458
|
+
obj.birthday = message.birthday;
|
|
459
|
+
}
|
|
460
|
+
if (message.gender !== "") {
|
|
461
|
+
obj.gender = message.gender;
|
|
462
|
+
}
|
|
463
|
+
if (message.pronouns !== "") {
|
|
464
|
+
obj.pronouns = message.pronouns;
|
|
465
|
+
}
|
|
466
|
+
if (message.therapistProfile !== undefined) {
|
|
467
|
+
obj.therapistProfile = exports.TherapistProfile.toJSON(message.therapistProfile);
|
|
468
|
+
}
|
|
469
|
+
return obj;
|
|
470
|
+
},
|
|
471
|
+
create(base) {
|
|
472
|
+
return exports.User.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
473
|
+
},
|
|
474
|
+
fromPartial(object) {
|
|
475
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
476
|
+
const message = createBaseUser();
|
|
477
|
+
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
478
|
+
message.role = (_b = object.role) !== null && _b !== void 0 ? _b : "";
|
|
479
|
+
message.fullName = (_c = object.fullName) !== null && _c !== void 0 ? _c : "";
|
|
480
|
+
message.email = (_d = object.email) !== null && _d !== void 0 ? _d : "";
|
|
481
|
+
message.phoneNumber = (_e = object.phoneNumber) !== null && _e !== void 0 ? _e : "";
|
|
482
|
+
message.avatarUrl = (_f = object.avatarUrl) !== null && _f !== void 0 ? _f : "";
|
|
483
|
+
message.bio = (_g = object.bio) !== null && _g !== void 0 ? _g : "";
|
|
484
|
+
message.timeZone = (_h = object.timeZone) !== null && _h !== void 0 ? _h : "";
|
|
485
|
+
message.language = (_j = object.language) !== null && _j !== void 0 ? _j : "";
|
|
486
|
+
message.preferences = (object.preferences !== undefined && object.preferences !== null)
|
|
487
|
+
? exports.UserPreferences.fromPartial(object.preferences)
|
|
488
|
+
: undefined;
|
|
489
|
+
message.isEmailVerified = (_k = object.isEmailVerified) !== null && _k !== void 0 ? _k : false;
|
|
490
|
+
message.onboardingStatus = (_l = object.onboardingStatus) !== null && _l !== void 0 ? _l : "";
|
|
491
|
+
message.createdAt = (_m = object.createdAt) !== null && _m !== void 0 ? _m : "";
|
|
492
|
+
message.updatedAt = (_o = object.updatedAt) !== null && _o !== void 0 ? _o : "";
|
|
493
|
+
message.username = (_p = object.username) !== null && _p !== void 0 ? _p : "";
|
|
494
|
+
message.birthday = (_q = object.birthday) !== null && _q !== void 0 ? _q : "";
|
|
495
|
+
message.gender = (_r = object.gender) !== null && _r !== void 0 ? _r : "";
|
|
496
|
+
message.pronouns = (_s = object.pronouns) !== null && _s !== void 0 ? _s : "";
|
|
497
|
+
message.therapistProfile = (object.therapistProfile !== undefined && object.therapistProfile !== null)
|
|
498
|
+
? exports.TherapistProfile.fromPartial(object.therapistProfile)
|
|
499
|
+
: undefined;
|
|
500
|
+
return message;
|
|
501
|
+
},
|
|
502
|
+
};
|
|
503
|
+
function createBaseSession() {
|
|
504
|
+
return { accessToken: "", refreshToken: "", expiresAt: 0 };
|
|
505
|
+
}
|
|
506
|
+
exports.Session = {
|
|
507
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
508
|
+
if (message.accessToken !== "") {
|
|
509
|
+
writer.uint32(10).string(message.accessToken);
|
|
510
|
+
}
|
|
511
|
+
if (message.refreshToken !== "") {
|
|
512
|
+
writer.uint32(18).string(message.refreshToken);
|
|
513
|
+
}
|
|
514
|
+
if (message.expiresAt !== 0) {
|
|
515
|
+
writer.uint32(24).int64(message.expiresAt);
|
|
516
|
+
}
|
|
517
|
+
return writer;
|
|
518
|
+
},
|
|
519
|
+
decode(input, length) {
|
|
520
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
521
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
522
|
+
const message = createBaseSession();
|
|
523
|
+
while (reader.pos < end) {
|
|
524
|
+
const tag = reader.uint32();
|
|
525
|
+
switch (tag >>> 3) {
|
|
526
|
+
case 1: {
|
|
527
|
+
if (tag !== 10) {
|
|
528
|
+
break;
|
|
529
|
+
}
|
|
530
|
+
message.accessToken = reader.string();
|
|
531
|
+
continue;
|
|
532
|
+
}
|
|
533
|
+
case 2: {
|
|
534
|
+
if (tag !== 18) {
|
|
535
|
+
break;
|
|
536
|
+
}
|
|
537
|
+
message.refreshToken = reader.string();
|
|
538
|
+
continue;
|
|
539
|
+
}
|
|
540
|
+
case 3: {
|
|
541
|
+
if (tag !== 24) {
|
|
542
|
+
break;
|
|
543
|
+
}
|
|
544
|
+
message.expiresAt = longToNumber(reader.int64());
|
|
545
|
+
continue;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
549
|
+
break;
|
|
550
|
+
}
|
|
551
|
+
reader.skip(tag & 7);
|
|
552
|
+
}
|
|
553
|
+
return message;
|
|
554
|
+
},
|
|
555
|
+
fromJSON(object) {
|
|
556
|
+
return {
|
|
557
|
+
accessToken: isSet(object.accessToken) ? globalThis.String(object.accessToken) : "",
|
|
558
|
+
refreshToken: isSet(object.refreshToken) ? globalThis.String(object.refreshToken) : "",
|
|
559
|
+
expiresAt: isSet(object.expiresAt) ? globalThis.Number(object.expiresAt) : 0,
|
|
560
|
+
};
|
|
561
|
+
},
|
|
562
|
+
toJSON(message) {
|
|
563
|
+
const obj = {};
|
|
564
|
+
if (message.accessToken !== "") {
|
|
565
|
+
obj.accessToken = message.accessToken;
|
|
566
|
+
}
|
|
567
|
+
if (message.refreshToken !== "") {
|
|
568
|
+
obj.refreshToken = message.refreshToken;
|
|
569
|
+
}
|
|
570
|
+
if (message.expiresAt !== 0) {
|
|
571
|
+
obj.expiresAt = Math.round(message.expiresAt);
|
|
572
|
+
}
|
|
573
|
+
return obj;
|
|
574
|
+
},
|
|
575
|
+
create(base) {
|
|
576
|
+
return exports.Session.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
577
|
+
},
|
|
578
|
+
fromPartial(object) {
|
|
579
|
+
var _a, _b, _c;
|
|
580
|
+
const message = createBaseSession();
|
|
581
|
+
message.accessToken = (_a = object.accessToken) !== null && _a !== void 0 ? _a : "";
|
|
582
|
+
message.refreshToken = (_b = object.refreshToken) !== null && _b !== void 0 ? _b : "";
|
|
583
|
+
message.expiresAt = (_c = object.expiresAt) !== null && _c !== void 0 ? _c : 0;
|
|
584
|
+
return message;
|
|
585
|
+
},
|
|
586
|
+
};
|
|
587
|
+
function createBaseTherapistProfile() {
|
|
588
|
+
return {
|
|
589
|
+
therapistId: "",
|
|
590
|
+
fullName: "",
|
|
591
|
+
avatarUrl: "",
|
|
592
|
+
bio: "",
|
|
593
|
+
specialties: [],
|
|
594
|
+
modalities: [],
|
|
595
|
+
yearsOfExperience: "",
|
|
596
|
+
languages: [],
|
|
597
|
+
sessionPrice: undefined,
|
|
598
|
+
rating: 0,
|
|
599
|
+
reviewCount: 0,
|
|
600
|
+
location: undefined,
|
|
601
|
+
experienceLevelId: "",
|
|
602
|
+
licenseNumber: "",
|
|
603
|
+
licenseState: "",
|
|
604
|
+
education: "",
|
|
605
|
+
timeZone: "",
|
|
606
|
+
verificationStatus: "",
|
|
607
|
+
sessionDurationMinutes: 0,
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
exports.TherapistProfile = {
|
|
611
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
612
|
+
if (message.therapistId !== "") {
|
|
613
|
+
writer.uint32(10).string(message.therapistId);
|
|
614
|
+
}
|
|
615
|
+
if (message.fullName !== "") {
|
|
616
|
+
writer.uint32(18).string(message.fullName);
|
|
617
|
+
}
|
|
618
|
+
if (message.avatarUrl !== "") {
|
|
619
|
+
writer.uint32(26).string(message.avatarUrl);
|
|
620
|
+
}
|
|
621
|
+
if (message.bio !== "") {
|
|
622
|
+
writer.uint32(34).string(message.bio);
|
|
623
|
+
}
|
|
624
|
+
for (const v of message.specialties) {
|
|
625
|
+
writer.uint32(42).string(v);
|
|
626
|
+
}
|
|
627
|
+
for (const v of message.modalities) {
|
|
628
|
+
writer.uint32(50).string(v);
|
|
629
|
+
}
|
|
630
|
+
if (message.yearsOfExperience !== "") {
|
|
631
|
+
writer.uint32(58).string(message.yearsOfExperience);
|
|
632
|
+
}
|
|
633
|
+
for (const v of message.languages) {
|
|
634
|
+
writer.uint32(66).string(v);
|
|
635
|
+
}
|
|
636
|
+
if (message.sessionPrice !== undefined) {
|
|
637
|
+
exports.SessionPrice.encode(message.sessionPrice, writer.uint32(74).fork()).join();
|
|
638
|
+
}
|
|
639
|
+
if (message.rating !== 0) {
|
|
640
|
+
writer.uint32(85).float(message.rating);
|
|
641
|
+
}
|
|
642
|
+
if (message.reviewCount !== 0) {
|
|
643
|
+
writer.uint32(88).int32(message.reviewCount);
|
|
644
|
+
}
|
|
645
|
+
if (message.location !== undefined) {
|
|
646
|
+
exports.Location.encode(message.location, writer.uint32(98).fork()).join();
|
|
647
|
+
}
|
|
648
|
+
if (message.experienceLevelId !== "") {
|
|
649
|
+
writer.uint32(106).string(message.experienceLevelId);
|
|
650
|
+
}
|
|
651
|
+
if (message.licenseNumber !== "") {
|
|
652
|
+
writer.uint32(114).string(message.licenseNumber);
|
|
653
|
+
}
|
|
654
|
+
if (message.licenseState !== "") {
|
|
655
|
+
writer.uint32(122).string(message.licenseState);
|
|
656
|
+
}
|
|
657
|
+
if (message.education !== "") {
|
|
658
|
+
writer.uint32(130).string(message.education);
|
|
659
|
+
}
|
|
660
|
+
if (message.timeZone !== "") {
|
|
661
|
+
writer.uint32(138).string(message.timeZone);
|
|
662
|
+
}
|
|
663
|
+
if (message.verificationStatus !== "") {
|
|
664
|
+
writer.uint32(146).string(message.verificationStatus);
|
|
665
|
+
}
|
|
666
|
+
if (message.sessionDurationMinutes !== 0) {
|
|
667
|
+
writer.uint32(152).int32(message.sessionDurationMinutes);
|
|
668
|
+
}
|
|
669
|
+
return writer;
|
|
670
|
+
},
|
|
671
|
+
decode(input, length) {
|
|
672
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
673
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
674
|
+
const message = createBaseTherapistProfile();
|
|
675
|
+
while (reader.pos < end) {
|
|
676
|
+
const tag = reader.uint32();
|
|
677
|
+
switch (tag >>> 3) {
|
|
678
|
+
case 1: {
|
|
679
|
+
if (tag !== 10) {
|
|
680
|
+
break;
|
|
681
|
+
}
|
|
682
|
+
message.therapistId = reader.string();
|
|
683
|
+
continue;
|
|
684
|
+
}
|
|
685
|
+
case 2: {
|
|
686
|
+
if (tag !== 18) {
|
|
687
|
+
break;
|
|
688
|
+
}
|
|
689
|
+
message.fullName = reader.string();
|
|
690
|
+
continue;
|
|
691
|
+
}
|
|
692
|
+
case 3: {
|
|
693
|
+
if (tag !== 26) {
|
|
694
|
+
break;
|
|
695
|
+
}
|
|
696
|
+
message.avatarUrl = reader.string();
|
|
697
|
+
continue;
|
|
698
|
+
}
|
|
699
|
+
case 4: {
|
|
700
|
+
if (tag !== 34) {
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
message.bio = reader.string();
|
|
704
|
+
continue;
|
|
705
|
+
}
|
|
706
|
+
case 5: {
|
|
707
|
+
if (tag !== 42) {
|
|
708
|
+
break;
|
|
709
|
+
}
|
|
710
|
+
message.specialties.push(reader.string());
|
|
711
|
+
continue;
|
|
712
|
+
}
|
|
713
|
+
case 6: {
|
|
714
|
+
if (tag !== 50) {
|
|
715
|
+
break;
|
|
716
|
+
}
|
|
717
|
+
message.modalities.push(reader.string());
|
|
718
|
+
continue;
|
|
719
|
+
}
|
|
720
|
+
case 7: {
|
|
721
|
+
if (tag !== 58) {
|
|
722
|
+
break;
|
|
723
|
+
}
|
|
724
|
+
message.yearsOfExperience = reader.string();
|
|
725
|
+
continue;
|
|
726
|
+
}
|
|
727
|
+
case 8: {
|
|
728
|
+
if (tag !== 66) {
|
|
729
|
+
break;
|
|
730
|
+
}
|
|
731
|
+
message.languages.push(reader.string());
|
|
732
|
+
continue;
|
|
733
|
+
}
|
|
734
|
+
case 9: {
|
|
735
|
+
if (tag !== 74) {
|
|
736
|
+
break;
|
|
737
|
+
}
|
|
738
|
+
message.sessionPrice = exports.SessionPrice.decode(reader, reader.uint32());
|
|
739
|
+
continue;
|
|
740
|
+
}
|
|
741
|
+
case 10: {
|
|
742
|
+
if (tag !== 85) {
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
745
|
+
message.rating = reader.float();
|
|
746
|
+
continue;
|
|
747
|
+
}
|
|
748
|
+
case 11: {
|
|
749
|
+
if (tag !== 88) {
|
|
750
|
+
break;
|
|
751
|
+
}
|
|
752
|
+
message.reviewCount = reader.int32();
|
|
753
|
+
continue;
|
|
754
|
+
}
|
|
755
|
+
case 12: {
|
|
756
|
+
if (tag !== 98) {
|
|
757
|
+
break;
|
|
758
|
+
}
|
|
759
|
+
message.location = exports.Location.decode(reader, reader.uint32());
|
|
760
|
+
continue;
|
|
761
|
+
}
|
|
762
|
+
case 13: {
|
|
763
|
+
if (tag !== 106) {
|
|
764
|
+
break;
|
|
765
|
+
}
|
|
766
|
+
message.experienceLevelId = reader.string();
|
|
767
|
+
continue;
|
|
768
|
+
}
|
|
769
|
+
case 14: {
|
|
770
|
+
if (tag !== 114) {
|
|
771
|
+
break;
|
|
772
|
+
}
|
|
773
|
+
message.licenseNumber = reader.string();
|
|
774
|
+
continue;
|
|
775
|
+
}
|
|
776
|
+
case 15: {
|
|
777
|
+
if (tag !== 122) {
|
|
778
|
+
break;
|
|
779
|
+
}
|
|
780
|
+
message.licenseState = reader.string();
|
|
781
|
+
continue;
|
|
782
|
+
}
|
|
783
|
+
case 16: {
|
|
784
|
+
if (tag !== 130) {
|
|
785
|
+
break;
|
|
786
|
+
}
|
|
787
|
+
message.education = reader.string();
|
|
788
|
+
continue;
|
|
789
|
+
}
|
|
790
|
+
case 17: {
|
|
791
|
+
if (tag !== 138) {
|
|
792
|
+
break;
|
|
793
|
+
}
|
|
794
|
+
message.timeZone = reader.string();
|
|
795
|
+
continue;
|
|
796
|
+
}
|
|
797
|
+
case 18: {
|
|
798
|
+
if (tag !== 146) {
|
|
799
|
+
break;
|
|
800
|
+
}
|
|
801
|
+
message.verificationStatus = reader.string();
|
|
802
|
+
continue;
|
|
803
|
+
}
|
|
804
|
+
case 19: {
|
|
805
|
+
if (tag !== 152) {
|
|
806
|
+
break;
|
|
807
|
+
}
|
|
808
|
+
message.sessionDurationMinutes = reader.int32();
|
|
809
|
+
continue;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
813
|
+
break;
|
|
814
|
+
}
|
|
815
|
+
reader.skip(tag & 7);
|
|
816
|
+
}
|
|
817
|
+
return message;
|
|
818
|
+
},
|
|
819
|
+
fromJSON(object) {
|
|
820
|
+
return {
|
|
821
|
+
therapistId: isSet(object.therapistId) ? globalThis.String(object.therapistId) : "",
|
|
822
|
+
fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
|
|
823
|
+
avatarUrl: isSet(object.avatarUrl) ? globalThis.String(object.avatarUrl) : "",
|
|
824
|
+
bio: isSet(object.bio) ? globalThis.String(object.bio) : "",
|
|
825
|
+
specialties: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.specialties)
|
|
826
|
+
? object.specialties.map((e) => globalThis.String(e))
|
|
827
|
+
: [],
|
|
828
|
+
modalities: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.modalities)
|
|
829
|
+
? object.modalities.map((e) => globalThis.String(e))
|
|
830
|
+
: [],
|
|
831
|
+
yearsOfExperience: isSet(object.yearsOfExperience) ? globalThis.String(object.yearsOfExperience) : "",
|
|
832
|
+
languages: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.languages)
|
|
833
|
+
? object.languages.map((e) => globalThis.String(e))
|
|
834
|
+
: [],
|
|
835
|
+
sessionPrice: isSet(object.sessionPrice) ? exports.SessionPrice.fromJSON(object.sessionPrice) : undefined,
|
|
836
|
+
rating: isSet(object.rating) ? globalThis.Number(object.rating) : 0,
|
|
837
|
+
reviewCount: isSet(object.reviewCount) ? globalThis.Number(object.reviewCount) : 0,
|
|
838
|
+
location: isSet(object.location) ? exports.Location.fromJSON(object.location) : undefined,
|
|
839
|
+
experienceLevelId: isSet(object.experienceLevelId) ? globalThis.String(object.experienceLevelId) : "",
|
|
840
|
+
licenseNumber: isSet(object.licenseNumber) ? globalThis.String(object.licenseNumber) : "",
|
|
841
|
+
licenseState: isSet(object.licenseState) ? globalThis.String(object.licenseState) : "",
|
|
842
|
+
education: isSet(object.education) ? globalThis.String(object.education) : "",
|
|
843
|
+
timeZone: isSet(object.timeZone) ? globalThis.String(object.timeZone) : "",
|
|
844
|
+
verificationStatus: isSet(object.verificationStatus) ? globalThis.String(object.verificationStatus) : "",
|
|
845
|
+
sessionDurationMinutes: isSet(object.sessionDurationMinutes)
|
|
846
|
+
? globalThis.Number(object.sessionDurationMinutes)
|
|
847
|
+
: 0,
|
|
848
|
+
};
|
|
849
|
+
},
|
|
850
|
+
toJSON(message) {
|
|
851
|
+
var _a, _b, _c;
|
|
852
|
+
const obj = {};
|
|
853
|
+
if (message.therapistId !== "") {
|
|
854
|
+
obj.therapistId = message.therapistId;
|
|
855
|
+
}
|
|
856
|
+
if (message.fullName !== "") {
|
|
857
|
+
obj.fullName = message.fullName;
|
|
858
|
+
}
|
|
859
|
+
if (message.avatarUrl !== "") {
|
|
860
|
+
obj.avatarUrl = message.avatarUrl;
|
|
861
|
+
}
|
|
862
|
+
if (message.bio !== "") {
|
|
863
|
+
obj.bio = message.bio;
|
|
864
|
+
}
|
|
865
|
+
if ((_a = message.specialties) === null || _a === void 0 ? void 0 : _a.length) {
|
|
866
|
+
obj.specialties = message.specialties;
|
|
867
|
+
}
|
|
868
|
+
if ((_b = message.modalities) === null || _b === void 0 ? void 0 : _b.length) {
|
|
869
|
+
obj.modalities = message.modalities;
|
|
870
|
+
}
|
|
871
|
+
if (message.yearsOfExperience !== "") {
|
|
872
|
+
obj.yearsOfExperience = message.yearsOfExperience;
|
|
873
|
+
}
|
|
874
|
+
if ((_c = message.languages) === null || _c === void 0 ? void 0 : _c.length) {
|
|
875
|
+
obj.languages = message.languages;
|
|
876
|
+
}
|
|
877
|
+
if (message.sessionPrice !== undefined) {
|
|
878
|
+
obj.sessionPrice = exports.SessionPrice.toJSON(message.sessionPrice);
|
|
879
|
+
}
|
|
880
|
+
if (message.rating !== 0) {
|
|
881
|
+
obj.rating = message.rating;
|
|
882
|
+
}
|
|
883
|
+
if (message.reviewCount !== 0) {
|
|
884
|
+
obj.reviewCount = Math.round(message.reviewCount);
|
|
885
|
+
}
|
|
886
|
+
if (message.location !== undefined) {
|
|
887
|
+
obj.location = exports.Location.toJSON(message.location);
|
|
888
|
+
}
|
|
889
|
+
if (message.experienceLevelId !== "") {
|
|
890
|
+
obj.experienceLevelId = message.experienceLevelId;
|
|
891
|
+
}
|
|
892
|
+
if (message.licenseNumber !== "") {
|
|
893
|
+
obj.licenseNumber = message.licenseNumber;
|
|
894
|
+
}
|
|
895
|
+
if (message.licenseState !== "") {
|
|
896
|
+
obj.licenseState = message.licenseState;
|
|
897
|
+
}
|
|
898
|
+
if (message.education !== "") {
|
|
899
|
+
obj.education = message.education;
|
|
900
|
+
}
|
|
901
|
+
if (message.timeZone !== "") {
|
|
902
|
+
obj.timeZone = message.timeZone;
|
|
903
|
+
}
|
|
904
|
+
if (message.verificationStatus !== "") {
|
|
905
|
+
obj.verificationStatus = message.verificationStatus;
|
|
906
|
+
}
|
|
907
|
+
if (message.sessionDurationMinutes !== 0) {
|
|
908
|
+
obj.sessionDurationMinutes = Math.round(message.sessionDurationMinutes);
|
|
909
|
+
}
|
|
910
|
+
return obj;
|
|
911
|
+
},
|
|
912
|
+
create(base) {
|
|
913
|
+
return exports.TherapistProfile.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
914
|
+
},
|
|
915
|
+
fromPartial(object) {
|
|
916
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
917
|
+
const message = createBaseTherapistProfile();
|
|
918
|
+
message.therapistId = (_a = object.therapistId) !== null && _a !== void 0 ? _a : "";
|
|
919
|
+
message.fullName = (_b = object.fullName) !== null && _b !== void 0 ? _b : "";
|
|
920
|
+
message.avatarUrl = (_c = object.avatarUrl) !== null && _c !== void 0 ? _c : "";
|
|
921
|
+
message.bio = (_d = object.bio) !== null && _d !== void 0 ? _d : "";
|
|
922
|
+
message.specialties = ((_e = object.specialties) === null || _e === void 0 ? void 0 : _e.map((e) => e)) || [];
|
|
923
|
+
message.modalities = ((_f = object.modalities) === null || _f === void 0 ? void 0 : _f.map((e) => e)) || [];
|
|
924
|
+
message.yearsOfExperience = (_g = object.yearsOfExperience) !== null && _g !== void 0 ? _g : "";
|
|
925
|
+
message.languages = ((_h = object.languages) === null || _h === void 0 ? void 0 : _h.map((e) => e)) || [];
|
|
926
|
+
message.sessionPrice = (object.sessionPrice !== undefined && object.sessionPrice !== null)
|
|
927
|
+
? exports.SessionPrice.fromPartial(object.sessionPrice)
|
|
928
|
+
: undefined;
|
|
929
|
+
message.rating = (_j = object.rating) !== null && _j !== void 0 ? _j : 0;
|
|
930
|
+
message.reviewCount = (_k = object.reviewCount) !== null && _k !== void 0 ? _k : 0;
|
|
931
|
+
message.location = (object.location !== undefined && object.location !== null)
|
|
932
|
+
? exports.Location.fromPartial(object.location)
|
|
933
|
+
: undefined;
|
|
934
|
+
message.experienceLevelId = (_l = object.experienceLevelId) !== null && _l !== void 0 ? _l : "";
|
|
935
|
+
message.licenseNumber = (_m = object.licenseNumber) !== null && _m !== void 0 ? _m : "";
|
|
936
|
+
message.licenseState = (_o = object.licenseState) !== null && _o !== void 0 ? _o : "";
|
|
937
|
+
message.education = (_p = object.education) !== null && _p !== void 0 ? _p : "";
|
|
938
|
+
message.timeZone = (_q = object.timeZone) !== null && _q !== void 0 ? _q : "";
|
|
939
|
+
message.verificationStatus = (_r = object.verificationStatus) !== null && _r !== void 0 ? _r : "";
|
|
940
|
+
message.sessionDurationMinutes = (_s = object.sessionDurationMinutes) !== null && _s !== void 0 ? _s : 0;
|
|
941
|
+
return message;
|
|
942
|
+
},
|
|
943
|
+
};
|
|
944
|
+
function createBaseSessionPrice() {
|
|
945
|
+
return { currency: "", amount: 0 };
|
|
946
|
+
}
|
|
947
|
+
exports.SessionPrice = {
|
|
948
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
949
|
+
if (message.currency !== "") {
|
|
950
|
+
writer.uint32(10).string(message.currency);
|
|
951
|
+
}
|
|
952
|
+
if (message.amount !== 0) {
|
|
953
|
+
writer.uint32(16).int32(message.amount);
|
|
954
|
+
}
|
|
955
|
+
return writer;
|
|
956
|
+
},
|
|
957
|
+
decode(input, length) {
|
|
958
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
959
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
960
|
+
const message = createBaseSessionPrice();
|
|
961
|
+
while (reader.pos < end) {
|
|
962
|
+
const tag = reader.uint32();
|
|
963
|
+
switch (tag >>> 3) {
|
|
964
|
+
case 1: {
|
|
965
|
+
if (tag !== 10) {
|
|
966
|
+
break;
|
|
967
|
+
}
|
|
968
|
+
message.currency = reader.string();
|
|
969
|
+
continue;
|
|
970
|
+
}
|
|
971
|
+
case 2: {
|
|
972
|
+
if (tag !== 16) {
|
|
973
|
+
break;
|
|
974
|
+
}
|
|
975
|
+
message.amount = reader.int32();
|
|
976
|
+
continue;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
980
|
+
break;
|
|
981
|
+
}
|
|
982
|
+
reader.skip(tag & 7);
|
|
983
|
+
}
|
|
984
|
+
return message;
|
|
985
|
+
},
|
|
986
|
+
fromJSON(object) {
|
|
987
|
+
return {
|
|
988
|
+
currency: isSet(object.currency) ? globalThis.String(object.currency) : "",
|
|
989
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
990
|
+
};
|
|
991
|
+
},
|
|
992
|
+
toJSON(message) {
|
|
993
|
+
const obj = {};
|
|
994
|
+
if (message.currency !== "") {
|
|
995
|
+
obj.currency = message.currency;
|
|
996
|
+
}
|
|
997
|
+
if (message.amount !== 0) {
|
|
998
|
+
obj.amount = Math.round(message.amount);
|
|
999
|
+
}
|
|
1000
|
+
return obj;
|
|
1001
|
+
},
|
|
1002
|
+
create(base) {
|
|
1003
|
+
return exports.SessionPrice.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1004
|
+
},
|
|
1005
|
+
fromPartial(object) {
|
|
1006
|
+
var _a, _b;
|
|
1007
|
+
const message = createBaseSessionPrice();
|
|
1008
|
+
message.currency = (_a = object.currency) !== null && _a !== void 0 ? _a : "";
|
|
1009
|
+
message.amount = (_b = object.amount) !== null && _b !== void 0 ? _b : 0;
|
|
1010
|
+
return message;
|
|
1011
|
+
},
|
|
1012
|
+
};
|
|
1013
|
+
function createBaseLocation() {
|
|
1014
|
+
return { city: "", country: "" };
|
|
1015
|
+
}
|
|
1016
|
+
exports.Location = {
|
|
1017
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1018
|
+
if (message.city !== "") {
|
|
1019
|
+
writer.uint32(10).string(message.city);
|
|
1020
|
+
}
|
|
1021
|
+
if (message.country !== "") {
|
|
1022
|
+
writer.uint32(18).string(message.country);
|
|
1023
|
+
}
|
|
1024
|
+
return writer;
|
|
1025
|
+
},
|
|
1026
|
+
decode(input, length) {
|
|
1027
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1028
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1029
|
+
const message = createBaseLocation();
|
|
1030
|
+
while (reader.pos < end) {
|
|
1031
|
+
const tag = reader.uint32();
|
|
1032
|
+
switch (tag >>> 3) {
|
|
1033
|
+
case 1: {
|
|
1034
|
+
if (tag !== 10) {
|
|
1035
|
+
break;
|
|
1036
|
+
}
|
|
1037
|
+
message.city = reader.string();
|
|
1038
|
+
continue;
|
|
1039
|
+
}
|
|
1040
|
+
case 2: {
|
|
1041
|
+
if (tag !== 18) {
|
|
1042
|
+
break;
|
|
1043
|
+
}
|
|
1044
|
+
message.country = reader.string();
|
|
1045
|
+
continue;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1049
|
+
break;
|
|
1050
|
+
}
|
|
1051
|
+
reader.skip(tag & 7);
|
|
1052
|
+
}
|
|
1053
|
+
return message;
|
|
1054
|
+
},
|
|
1055
|
+
fromJSON(object) {
|
|
1056
|
+
return {
|
|
1057
|
+
city: isSet(object.city) ? globalThis.String(object.city) : "",
|
|
1058
|
+
country: isSet(object.country) ? globalThis.String(object.country) : "",
|
|
1059
|
+
};
|
|
1060
|
+
},
|
|
1061
|
+
toJSON(message) {
|
|
1062
|
+
const obj = {};
|
|
1063
|
+
if (message.city !== "") {
|
|
1064
|
+
obj.city = message.city;
|
|
1065
|
+
}
|
|
1066
|
+
if (message.country !== "") {
|
|
1067
|
+
obj.country = message.country;
|
|
1068
|
+
}
|
|
1069
|
+
return obj;
|
|
1070
|
+
},
|
|
1071
|
+
create(base) {
|
|
1072
|
+
return exports.Location.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1073
|
+
},
|
|
1074
|
+
fromPartial(object) {
|
|
1075
|
+
var _a, _b;
|
|
1076
|
+
const message = createBaseLocation();
|
|
1077
|
+
message.city = (_a = object.city) !== null && _a !== void 0 ? _a : "";
|
|
1078
|
+
message.country = (_b = object.country) !== null && _b !== void 0 ? _b : "";
|
|
1079
|
+
return message;
|
|
1080
|
+
},
|
|
1081
|
+
};
|
|
1082
|
+
function createBaseOnboardingData() {
|
|
1083
|
+
return { userId: "", onboardingStatus: "", completedSteps: [], pendingSteps: [], data: "" };
|
|
1084
|
+
}
|
|
1085
|
+
exports.OnboardingData = {
|
|
1086
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1087
|
+
if (message.userId !== "") {
|
|
1088
|
+
writer.uint32(10).string(message.userId);
|
|
1089
|
+
}
|
|
1090
|
+
if (message.onboardingStatus !== "") {
|
|
1091
|
+
writer.uint32(18).string(message.onboardingStatus);
|
|
1092
|
+
}
|
|
1093
|
+
for (const v of message.completedSteps) {
|
|
1094
|
+
writer.uint32(26).string(v);
|
|
1095
|
+
}
|
|
1096
|
+
for (const v of message.pendingSteps) {
|
|
1097
|
+
writer.uint32(34).string(v);
|
|
1098
|
+
}
|
|
1099
|
+
if (message.data !== "") {
|
|
1100
|
+
writer.uint32(42).string(message.data);
|
|
1101
|
+
}
|
|
1102
|
+
return writer;
|
|
1103
|
+
},
|
|
1104
|
+
decode(input, length) {
|
|
1105
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1106
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1107
|
+
const message = createBaseOnboardingData();
|
|
1108
|
+
while (reader.pos < end) {
|
|
1109
|
+
const tag = reader.uint32();
|
|
1110
|
+
switch (tag >>> 3) {
|
|
1111
|
+
case 1: {
|
|
1112
|
+
if (tag !== 10) {
|
|
1113
|
+
break;
|
|
1114
|
+
}
|
|
1115
|
+
message.userId = reader.string();
|
|
1116
|
+
continue;
|
|
1117
|
+
}
|
|
1118
|
+
case 2: {
|
|
1119
|
+
if (tag !== 18) {
|
|
1120
|
+
break;
|
|
1121
|
+
}
|
|
1122
|
+
message.onboardingStatus = reader.string();
|
|
1123
|
+
continue;
|
|
1124
|
+
}
|
|
1125
|
+
case 3: {
|
|
1126
|
+
if (tag !== 26) {
|
|
1127
|
+
break;
|
|
1128
|
+
}
|
|
1129
|
+
message.completedSteps.push(reader.string());
|
|
1130
|
+
continue;
|
|
1131
|
+
}
|
|
1132
|
+
case 4: {
|
|
1133
|
+
if (tag !== 34) {
|
|
1134
|
+
break;
|
|
1135
|
+
}
|
|
1136
|
+
message.pendingSteps.push(reader.string());
|
|
1137
|
+
continue;
|
|
1138
|
+
}
|
|
1139
|
+
case 5: {
|
|
1140
|
+
if (tag !== 42) {
|
|
1141
|
+
break;
|
|
1142
|
+
}
|
|
1143
|
+
message.data = reader.string();
|
|
1144
|
+
continue;
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1148
|
+
break;
|
|
1149
|
+
}
|
|
1150
|
+
reader.skip(tag & 7);
|
|
1151
|
+
}
|
|
1152
|
+
return message;
|
|
1153
|
+
},
|
|
1154
|
+
fromJSON(object) {
|
|
1155
|
+
return {
|
|
1156
|
+
userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
|
|
1157
|
+
onboardingStatus: isSet(object.onboardingStatus) ? globalThis.String(object.onboardingStatus) : "",
|
|
1158
|
+
completedSteps: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.completedSteps)
|
|
1159
|
+
? object.completedSteps.map((e) => globalThis.String(e))
|
|
1160
|
+
: [],
|
|
1161
|
+
pendingSteps: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.pendingSteps)
|
|
1162
|
+
? object.pendingSteps.map((e) => globalThis.String(e))
|
|
1163
|
+
: [],
|
|
1164
|
+
data: isSet(object.data) ? globalThis.String(object.data) : "",
|
|
1165
|
+
};
|
|
1166
|
+
},
|
|
1167
|
+
toJSON(message) {
|
|
1168
|
+
var _a, _b;
|
|
1169
|
+
const obj = {};
|
|
1170
|
+
if (message.userId !== "") {
|
|
1171
|
+
obj.userId = message.userId;
|
|
1172
|
+
}
|
|
1173
|
+
if (message.onboardingStatus !== "") {
|
|
1174
|
+
obj.onboardingStatus = message.onboardingStatus;
|
|
1175
|
+
}
|
|
1176
|
+
if ((_a = message.completedSteps) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1177
|
+
obj.completedSteps = message.completedSteps;
|
|
1178
|
+
}
|
|
1179
|
+
if ((_b = message.pendingSteps) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1180
|
+
obj.pendingSteps = message.pendingSteps;
|
|
1181
|
+
}
|
|
1182
|
+
if (message.data !== "") {
|
|
1183
|
+
obj.data = message.data;
|
|
1184
|
+
}
|
|
1185
|
+
return obj;
|
|
1186
|
+
},
|
|
1187
|
+
create(base) {
|
|
1188
|
+
return exports.OnboardingData.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1189
|
+
},
|
|
1190
|
+
fromPartial(object) {
|
|
1191
|
+
var _a, _b, _c, _d, _e;
|
|
1192
|
+
const message = createBaseOnboardingData();
|
|
1193
|
+
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
1194
|
+
message.onboardingStatus = (_b = object.onboardingStatus) !== null && _b !== void 0 ? _b : "";
|
|
1195
|
+
message.completedSteps = ((_c = object.completedSteps) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
1196
|
+
message.pendingSteps = ((_d = object.pendingSteps) === null || _d === void 0 ? void 0 : _d.map((e) => e)) || [];
|
|
1197
|
+
message.data = (_e = object.data) !== null && _e !== void 0 ? _e : "";
|
|
1198
|
+
return message;
|
|
1199
|
+
},
|
|
1200
|
+
};
|
|
1201
|
+
function createBaseSessionInfo() {
|
|
1202
|
+
return { sessionId: "", userAgent: "", clientIp: "", isCurrent: false, expiresAt: "", createdAt: "" };
|
|
1203
|
+
}
|
|
1204
|
+
exports.SessionInfo = {
|
|
1205
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1206
|
+
if (message.sessionId !== "") {
|
|
1207
|
+
writer.uint32(10).string(message.sessionId);
|
|
1208
|
+
}
|
|
1209
|
+
if (message.userAgent !== "") {
|
|
1210
|
+
writer.uint32(18).string(message.userAgent);
|
|
1211
|
+
}
|
|
1212
|
+
if (message.clientIp !== "") {
|
|
1213
|
+
writer.uint32(26).string(message.clientIp);
|
|
1214
|
+
}
|
|
1215
|
+
if (message.isCurrent !== false) {
|
|
1216
|
+
writer.uint32(32).bool(message.isCurrent);
|
|
1217
|
+
}
|
|
1218
|
+
if (message.expiresAt !== "") {
|
|
1219
|
+
writer.uint32(42).string(message.expiresAt);
|
|
1220
|
+
}
|
|
1221
|
+
if (message.createdAt !== "") {
|
|
1222
|
+
writer.uint32(50).string(message.createdAt);
|
|
1223
|
+
}
|
|
1224
|
+
return writer;
|
|
1225
|
+
},
|
|
1226
|
+
decode(input, length) {
|
|
1227
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1228
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1229
|
+
const message = createBaseSessionInfo();
|
|
1230
|
+
while (reader.pos < end) {
|
|
1231
|
+
const tag = reader.uint32();
|
|
1232
|
+
switch (tag >>> 3) {
|
|
1233
|
+
case 1: {
|
|
1234
|
+
if (tag !== 10) {
|
|
1235
|
+
break;
|
|
1236
|
+
}
|
|
1237
|
+
message.sessionId = reader.string();
|
|
1238
|
+
continue;
|
|
1239
|
+
}
|
|
1240
|
+
case 2: {
|
|
1241
|
+
if (tag !== 18) {
|
|
1242
|
+
break;
|
|
1243
|
+
}
|
|
1244
|
+
message.userAgent = reader.string();
|
|
1245
|
+
continue;
|
|
1246
|
+
}
|
|
1247
|
+
case 3: {
|
|
1248
|
+
if (tag !== 26) {
|
|
1249
|
+
break;
|
|
1250
|
+
}
|
|
1251
|
+
message.clientIp = reader.string();
|
|
1252
|
+
continue;
|
|
1253
|
+
}
|
|
1254
|
+
case 4: {
|
|
1255
|
+
if (tag !== 32) {
|
|
1256
|
+
break;
|
|
1257
|
+
}
|
|
1258
|
+
message.isCurrent = reader.bool();
|
|
1259
|
+
continue;
|
|
1260
|
+
}
|
|
1261
|
+
case 5: {
|
|
1262
|
+
if (tag !== 42) {
|
|
1263
|
+
break;
|
|
1264
|
+
}
|
|
1265
|
+
message.expiresAt = reader.string();
|
|
1266
|
+
continue;
|
|
1267
|
+
}
|
|
1268
|
+
case 6: {
|
|
1269
|
+
if (tag !== 50) {
|
|
1270
|
+
break;
|
|
1271
|
+
}
|
|
1272
|
+
message.createdAt = reader.string();
|
|
1273
|
+
continue;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1277
|
+
break;
|
|
1278
|
+
}
|
|
1279
|
+
reader.skip(tag & 7);
|
|
1280
|
+
}
|
|
1281
|
+
return message;
|
|
1282
|
+
},
|
|
1283
|
+
fromJSON(object) {
|
|
1284
|
+
return {
|
|
1285
|
+
sessionId: isSet(object.sessionId) ? globalThis.String(object.sessionId) : "",
|
|
1286
|
+
userAgent: isSet(object.userAgent) ? globalThis.String(object.userAgent) : "",
|
|
1287
|
+
clientIp: isSet(object.clientIp) ? globalThis.String(object.clientIp) : "",
|
|
1288
|
+
isCurrent: isSet(object.isCurrent) ? globalThis.Boolean(object.isCurrent) : false,
|
|
1289
|
+
expiresAt: isSet(object.expiresAt) ? globalThis.String(object.expiresAt) : "",
|
|
1290
|
+
createdAt: isSet(object.createdAt) ? globalThis.String(object.createdAt) : "",
|
|
1291
|
+
};
|
|
1292
|
+
},
|
|
1293
|
+
toJSON(message) {
|
|
1294
|
+
const obj = {};
|
|
1295
|
+
if (message.sessionId !== "") {
|
|
1296
|
+
obj.sessionId = message.sessionId;
|
|
1297
|
+
}
|
|
1298
|
+
if (message.userAgent !== "") {
|
|
1299
|
+
obj.userAgent = message.userAgent;
|
|
1300
|
+
}
|
|
1301
|
+
if (message.clientIp !== "") {
|
|
1302
|
+
obj.clientIp = message.clientIp;
|
|
1303
|
+
}
|
|
1304
|
+
if (message.isCurrent !== false) {
|
|
1305
|
+
obj.isCurrent = message.isCurrent;
|
|
1306
|
+
}
|
|
1307
|
+
if (message.expiresAt !== "") {
|
|
1308
|
+
obj.expiresAt = message.expiresAt;
|
|
1309
|
+
}
|
|
1310
|
+
if (message.createdAt !== "") {
|
|
1311
|
+
obj.createdAt = message.createdAt;
|
|
1312
|
+
}
|
|
1313
|
+
return obj;
|
|
1314
|
+
},
|
|
1315
|
+
create(base) {
|
|
1316
|
+
return exports.SessionInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1317
|
+
},
|
|
1318
|
+
fromPartial(object) {
|
|
1319
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1320
|
+
const message = createBaseSessionInfo();
|
|
1321
|
+
message.sessionId = (_a = object.sessionId) !== null && _a !== void 0 ? _a : "";
|
|
1322
|
+
message.userAgent = (_b = object.userAgent) !== null && _b !== void 0 ? _b : "";
|
|
1323
|
+
message.clientIp = (_c = object.clientIp) !== null && _c !== void 0 ? _c : "";
|
|
1324
|
+
message.isCurrent = (_d = object.isCurrent) !== null && _d !== void 0 ? _d : false;
|
|
1325
|
+
message.expiresAt = (_e = object.expiresAt) !== null && _e !== void 0 ? _e : "";
|
|
1326
|
+
message.createdAt = (_f = object.createdAt) !== null && _f !== void 0 ? _f : "";
|
|
1327
|
+
return message;
|
|
1328
|
+
},
|
|
1329
|
+
};
|
|
1330
|
+
function longToNumber(int64) {
|
|
1331
|
+
const num = globalThis.Number(int64.toString());
|
|
1332
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1333
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1334
|
+
}
|
|
1335
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1336
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1337
|
+
}
|
|
1338
|
+
return num;
|
|
1339
|
+
}
|
|
1340
|
+
function isSet(value) {
|
|
1341
|
+
return value !== null && value !== undefined;
|
|
1342
|
+
}
|