theragist-ts 1.0.29 → 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 +19 -0
- package/dist/admin/message.js +312 -2
- package/package.json +1 -1
package/dist/admin/message.d.ts
CHANGED
|
@@ -852,6 +852,25 @@ export interface AdminTherapistDetail {
|
|
|
852
852
|
joinedAt: string;
|
|
853
853
|
lastActiveAt: string;
|
|
854
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;
|
|
855
874
|
}
|
|
856
875
|
export interface TherapistStatsResponse {
|
|
857
876
|
activeTherapists: number;
|
package/dist/admin/message.js
CHANGED
|
@@ -13914,6 +13914,25 @@ function createBaseAdminTherapistDetail() {
|
|
|
13914
13914
|
joinedAt: "",
|
|
13915
13915
|
lastActiveAt: "",
|
|
13916
13916
|
avatarUrl: "",
|
|
13917
|
+
sessionTypes: [],
|
|
13918
|
+
yearsPracticing: "",
|
|
13919
|
+
languages: [],
|
|
13920
|
+
city: "",
|
|
13921
|
+
country: "",
|
|
13922
|
+
sessionRateTc: 0,
|
|
13923
|
+
sessionDurationMinutes: 0,
|
|
13924
|
+
bufferTimeMinutes: 0,
|
|
13925
|
+
therapeuticApproach: "",
|
|
13926
|
+
reviewCount: 0,
|
|
13927
|
+
verificationStatus: "",
|
|
13928
|
+
username: "",
|
|
13929
|
+
gender: "",
|
|
13930
|
+
pronouns: "",
|
|
13931
|
+
isEmailVerified: false,
|
|
13932
|
+
isPhoneVerified: false,
|
|
13933
|
+
accountStatus: "",
|
|
13934
|
+
createdAt: "",
|
|
13935
|
+
updatedAt: "",
|
|
13917
13936
|
};
|
|
13918
13937
|
}
|
|
13919
13938
|
exports.AdminTherapistDetail = {
|
|
@@ -13981,6 +14000,63 @@ exports.AdminTherapistDetail = {
|
|
|
13981
14000
|
if (message.avatarUrl !== "") {
|
|
13982
14001
|
writer.uint32(170).string(message.avatarUrl);
|
|
13983
14002
|
}
|
|
14003
|
+
for (const v of message.sessionTypes) {
|
|
14004
|
+
writer.uint32(178).string(v);
|
|
14005
|
+
}
|
|
14006
|
+
if (message.yearsPracticing !== "") {
|
|
14007
|
+
writer.uint32(186).string(message.yearsPracticing);
|
|
14008
|
+
}
|
|
14009
|
+
for (const v of message.languages) {
|
|
14010
|
+
writer.uint32(194).string(v);
|
|
14011
|
+
}
|
|
14012
|
+
if (message.city !== "") {
|
|
14013
|
+
writer.uint32(202).string(message.city);
|
|
14014
|
+
}
|
|
14015
|
+
if (message.country !== "") {
|
|
14016
|
+
writer.uint32(210).string(message.country);
|
|
14017
|
+
}
|
|
14018
|
+
if (message.sessionRateTc !== 0) {
|
|
14019
|
+
writer.uint32(216).int32(message.sessionRateTc);
|
|
14020
|
+
}
|
|
14021
|
+
if (message.sessionDurationMinutes !== 0) {
|
|
14022
|
+
writer.uint32(224).int32(message.sessionDurationMinutes);
|
|
14023
|
+
}
|
|
14024
|
+
if (message.bufferTimeMinutes !== 0) {
|
|
14025
|
+
writer.uint32(232).int32(message.bufferTimeMinutes);
|
|
14026
|
+
}
|
|
14027
|
+
if (message.therapeuticApproach !== "") {
|
|
14028
|
+
writer.uint32(242).string(message.therapeuticApproach);
|
|
14029
|
+
}
|
|
14030
|
+
if (message.reviewCount !== 0) {
|
|
14031
|
+
writer.uint32(248).int32(message.reviewCount);
|
|
14032
|
+
}
|
|
14033
|
+
if (message.verificationStatus !== "") {
|
|
14034
|
+
writer.uint32(258).string(message.verificationStatus);
|
|
14035
|
+
}
|
|
14036
|
+
if (message.username !== "") {
|
|
14037
|
+
writer.uint32(266).string(message.username);
|
|
14038
|
+
}
|
|
14039
|
+
if (message.gender !== "") {
|
|
14040
|
+
writer.uint32(274).string(message.gender);
|
|
14041
|
+
}
|
|
14042
|
+
if (message.pronouns !== "") {
|
|
14043
|
+
writer.uint32(282).string(message.pronouns);
|
|
14044
|
+
}
|
|
14045
|
+
if (message.isEmailVerified !== false) {
|
|
14046
|
+
writer.uint32(288).bool(message.isEmailVerified);
|
|
14047
|
+
}
|
|
14048
|
+
if (message.isPhoneVerified !== false) {
|
|
14049
|
+
writer.uint32(296).bool(message.isPhoneVerified);
|
|
14050
|
+
}
|
|
14051
|
+
if (message.accountStatus !== "") {
|
|
14052
|
+
writer.uint32(306).string(message.accountStatus);
|
|
14053
|
+
}
|
|
14054
|
+
if (message.createdAt !== "") {
|
|
14055
|
+
writer.uint32(314).string(message.createdAt);
|
|
14056
|
+
}
|
|
14057
|
+
if (message.updatedAt !== "") {
|
|
14058
|
+
writer.uint32(322).string(message.updatedAt);
|
|
14059
|
+
}
|
|
13984
14060
|
return writer;
|
|
13985
14061
|
},
|
|
13986
14062
|
decode(input, length) {
|
|
@@ -14137,6 +14213,139 @@ exports.AdminTherapistDetail = {
|
|
|
14137
14213
|
message.avatarUrl = reader.string();
|
|
14138
14214
|
continue;
|
|
14139
14215
|
}
|
|
14216
|
+
case 22: {
|
|
14217
|
+
if (tag !== 178) {
|
|
14218
|
+
break;
|
|
14219
|
+
}
|
|
14220
|
+
message.sessionTypes.push(reader.string());
|
|
14221
|
+
continue;
|
|
14222
|
+
}
|
|
14223
|
+
case 23: {
|
|
14224
|
+
if (tag !== 186) {
|
|
14225
|
+
break;
|
|
14226
|
+
}
|
|
14227
|
+
message.yearsPracticing = reader.string();
|
|
14228
|
+
continue;
|
|
14229
|
+
}
|
|
14230
|
+
case 24: {
|
|
14231
|
+
if (tag !== 194) {
|
|
14232
|
+
break;
|
|
14233
|
+
}
|
|
14234
|
+
message.languages.push(reader.string());
|
|
14235
|
+
continue;
|
|
14236
|
+
}
|
|
14237
|
+
case 25: {
|
|
14238
|
+
if (tag !== 202) {
|
|
14239
|
+
break;
|
|
14240
|
+
}
|
|
14241
|
+
message.city = reader.string();
|
|
14242
|
+
continue;
|
|
14243
|
+
}
|
|
14244
|
+
case 26: {
|
|
14245
|
+
if (tag !== 210) {
|
|
14246
|
+
break;
|
|
14247
|
+
}
|
|
14248
|
+
message.country = reader.string();
|
|
14249
|
+
continue;
|
|
14250
|
+
}
|
|
14251
|
+
case 27: {
|
|
14252
|
+
if (tag !== 216) {
|
|
14253
|
+
break;
|
|
14254
|
+
}
|
|
14255
|
+
message.sessionRateTc = reader.int32();
|
|
14256
|
+
continue;
|
|
14257
|
+
}
|
|
14258
|
+
case 28: {
|
|
14259
|
+
if (tag !== 224) {
|
|
14260
|
+
break;
|
|
14261
|
+
}
|
|
14262
|
+
message.sessionDurationMinutes = reader.int32();
|
|
14263
|
+
continue;
|
|
14264
|
+
}
|
|
14265
|
+
case 29: {
|
|
14266
|
+
if (tag !== 232) {
|
|
14267
|
+
break;
|
|
14268
|
+
}
|
|
14269
|
+
message.bufferTimeMinutes = reader.int32();
|
|
14270
|
+
continue;
|
|
14271
|
+
}
|
|
14272
|
+
case 30: {
|
|
14273
|
+
if (tag !== 242) {
|
|
14274
|
+
break;
|
|
14275
|
+
}
|
|
14276
|
+
message.therapeuticApproach = reader.string();
|
|
14277
|
+
continue;
|
|
14278
|
+
}
|
|
14279
|
+
case 31: {
|
|
14280
|
+
if (tag !== 248) {
|
|
14281
|
+
break;
|
|
14282
|
+
}
|
|
14283
|
+
message.reviewCount = reader.int32();
|
|
14284
|
+
continue;
|
|
14285
|
+
}
|
|
14286
|
+
case 32: {
|
|
14287
|
+
if (tag !== 258) {
|
|
14288
|
+
break;
|
|
14289
|
+
}
|
|
14290
|
+
message.verificationStatus = reader.string();
|
|
14291
|
+
continue;
|
|
14292
|
+
}
|
|
14293
|
+
case 33: {
|
|
14294
|
+
if (tag !== 266) {
|
|
14295
|
+
break;
|
|
14296
|
+
}
|
|
14297
|
+
message.username = reader.string();
|
|
14298
|
+
continue;
|
|
14299
|
+
}
|
|
14300
|
+
case 34: {
|
|
14301
|
+
if (tag !== 274) {
|
|
14302
|
+
break;
|
|
14303
|
+
}
|
|
14304
|
+
message.gender = reader.string();
|
|
14305
|
+
continue;
|
|
14306
|
+
}
|
|
14307
|
+
case 35: {
|
|
14308
|
+
if (tag !== 282) {
|
|
14309
|
+
break;
|
|
14310
|
+
}
|
|
14311
|
+
message.pronouns = reader.string();
|
|
14312
|
+
continue;
|
|
14313
|
+
}
|
|
14314
|
+
case 36: {
|
|
14315
|
+
if (tag !== 288) {
|
|
14316
|
+
break;
|
|
14317
|
+
}
|
|
14318
|
+
message.isEmailVerified = reader.bool();
|
|
14319
|
+
continue;
|
|
14320
|
+
}
|
|
14321
|
+
case 37: {
|
|
14322
|
+
if (tag !== 296) {
|
|
14323
|
+
break;
|
|
14324
|
+
}
|
|
14325
|
+
message.isPhoneVerified = reader.bool();
|
|
14326
|
+
continue;
|
|
14327
|
+
}
|
|
14328
|
+
case 38: {
|
|
14329
|
+
if (tag !== 306) {
|
|
14330
|
+
break;
|
|
14331
|
+
}
|
|
14332
|
+
message.accountStatus = reader.string();
|
|
14333
|
+
continue;
|
|
14334
|
+
}
|
|
14335
|
+
case 39: {
|
|
14336
|
+
if (tag !== 314) {
|
|
14337
|
+
break;
|
|
14338
|
+
}
|
|
14339
|
+
message.createdAt = reader.string();
|
|
14340
|
+
continue;
|
|
14341
|
+
}
|
|
14342
|
+
case 40: {
|
|
14343
|
+
if (tag !== 322) {
|
|
14344
|
+
break;
|
|
14345
|
+
}
|
|
14346
|
+
message.updatedAt = reader.string();
|
|
14347
|
+
continue;
|
|
14348
|
+
}
|
|
14140
14349
|
}
|
|
14141
14350
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14142
14351
|
break;
|
|
@@ -14172,10 +14381,35 @@ exports.AdminTherapistDetail = {
|
|
|
14172
14381
|
joinedAt: isSet(object.joinedAt) ? globalThis.String(object.joinedAt) : "",
|
|
14173
14382
|
lastActiveAt: isSet(object.lastActiveAt) ? globalThis.String(object.lastActiveAt) : "",
|
|
14174
14383
|
avatarUrl: isSet(object.avatarUrl) ? globalThis.String(object.avatarUrl) : "",
|
|
14384
|
+
sessionTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.sessionTypes)
|
|
14385
|
+
? object.sessionTypes.map((e) => globalThis.String(e))
|
|
14386
|
+
: [],
|
|
14387
|
+
yearsPracticing: isSet(object.yearsPracticing) ? globalThis.String(object.yearsPracticing) : "",
|
|
14388
|
+
languages: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.languages)
|
|
14389
|
+
? object.languages.map((e) => globalThis.String(e))
|
|
14390
|
+
: [],
|
|
14391
|
+
city: isSet(object.city) ? globalThis.String(object.city) : "",
|
|
14392
|
+
country: isSet(object.country) ? globalThis.String(object.country) : "",
|
|
14393
|
+
sessionRateTc: isSet(object.sessionRateTc) ? globalThis.Number(object.sessionRateTc) : 0,
|
|
14394
|
+
sessionDurationMinutes: isSet(object.sessionDurationMinutes)
|
|
14395
|
+
? globalThis.Number(object.sessionDurationMinutes)
|
|
14396
|
+
: 0,
|
|
14397
|
+
bufferTimeMinutes: isSet(object.bufferTimeMinutes) ? globalThis.Number(object.bufferTimeMinutes) : 0,
|
|
14398
|
+
therapeuticApproach: isSet(object.therapeuticApproach) ? globalThis.String(object.therapeuticApproach) : "",
|
|
14399
|
+
reviewCount: isSet(object.reviewCount) ? globalThis.Number(object.reviewCount) : 0,
|
|
14400
|
+
verificationStatus: isSet(object.verificationStatus) ? globalThis.String(object.verificationStatus) : "",
|
|
14401
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
14402
|
+
gender: isSet(object.gender) ? globalThis.String(object.gender) : "",
|
|
14403
|
+
pronouns: isSet(object.pronouns) ? globalThis.String(object.pronouns) : "",
|
|
14404
|
+
isEmailVerified: isSet(object.isEmailVerified) ? globalThis.Boolean(object.isEmailVerified) : false,
|
|
14405
|
+
isPhoneVerified: isSet(object.isPhoneVerified) ? globalThis.Boolean(object.isPhoneVerified) : false,
|
|
14406
|
+
accountStatus: isSet(object.accountStatus) ? globalThis.String(object.accountStatus) : "",
|
|
14407
|
+
createdAt: isSet(object.createdAt) ? globalThis.String(object.createdAt) : "",
|
|
14408
|
+
updatedAt: isSet(object.updatedAt) ? globalThis.String(object.updatedAt) : "",
|
|
14175
14409
|
};
|
|
14176
14410
|
},
|
|
14177
14411
|
toJSON(message) {
|
|
14178
|
-
var _a, _b;
|
|
14412
|
+
var _a, _b, _c, _d;
|
|
14179
14413
|
const obj = {};
|
|
14180
14414
|
if (message.id !== "") {
|
|
14181
14415
|
obj.id = message.id;
|
|
@@ -14240,13 +14474,70 @@ exports.AdminTherapistDetail = {
|
|
|
14240
14474
|
if (message.avatarUrl !== "") {
|
|
14241
14475
|
obj.avatarUrl = message.avatarUrl;
|
|
14242
14476
|
}
|
|
14477
|
+
if ((_c = message.sessionTypes) === null || _c === void 0 ? void 0 : _c.length) {
|
|
14478
|
+
obj.sessionTypes = message.sessionTypes;
|
|
14479
|
+
}
|
|
14480
|
+
if (message.yearsPracticing !== "") {
|
|
14481
|
+
obj.yearsPracticing = message.yearsPracticing;
|
|
14482
|
+
}
|
|
14483
|
+
if ((_d = message.languages) === null || _d === void 0 ? void 0 : _d.length) {
|
|
14484
|
+
obj.languages = message.languages;
|
|
14485
|
+
}
|
|
14486
|
+
if (message.city !== "") {
|
|
14487
|
+
obj.city = message.city;
|
|
14488
|
+
}
|
|
14489
|
+
if (message.country !== "") {
|
|
14490
|
+
obj.country = message.country;
|
|
14491
|
+
}
|
|
14492
|
+
if (message.sessionRateTc !== 0) {
|
|
14493
|
+
obj.sessionRateTc = Math.round(message.sessionRateTc);
|
|
14494
|
+
}
|
|
14495
|
+
if (message.sessionDurationMinutes !== 0) {
|
|
14496
|
+
obj.sessionDurationMinutes = Math.round(message.sessionDurationMinutes);
|
|
14497
|
+
}
|
|
14498
|
+
if (message.bufferTimeMinutes !== 0) {
|
|
14499
|
+
obj.bufferTimeMinutes = Math.round(message.bufferTimeMinutes);
|
|
14500
|
+
}
|
|
14501
|
+
if (message.therapeuticApproach !== "") {
|
|
14502
|
+
obj.therapeuticApproach = message.therapeuticApproach;
|
|
14503
|
+
}
|
|
14504
|
+
if (message.reviewCount !== 0) {
|
|
14505
|
+
obj.reviewCount = Math.round(message.reviewCount);
|
|
14506
|
+
}
|
|
14507
|
+
if (message.verificationStatus !== "") {
|
|
14508
|
+
obj.verificationStatus = message.verificationStatus;
|
|
14509
|
+
}
|
|
14510
|
+
if (message.username !== "") {
|
|
14511
|
+
obj.username = message.username;
|
|
14512
|
+
}
|
|
14513
|
+
if (message.gender !== "") {
|
|
14514
|
+
obj.gender = message.gender;
|
|
14515
|
+
}
|
|
14516
|
+
if (message.pronouns !== "") {
|
|
14517
|
+
obj.pronouns = message.pronouns;
|
|
14518
|
+
}
|
|
14519
|
+
if (message.isEmailVerified !== false) {
|
|
14520
|
+
obj.isEmailVerified = message.isEmailVerified;
|
|
14521
|
+
}
|
|
14522
|
+
if (message.isPhoneVerified !== false) {
|
|
14523
|
+
obj.isPhoneVerified = message.isPhoneVerified;
|
|
14524
|
+
}
|
|
14525
|
+
if (message.accountStatus !== "") {
|
|
14526
|
+
obj.accountStatus = message.accountStatus;
|
|
14527
|
+
}
|
|
14528
|
+
if (message.createdAt !== "") {
|
|
14529
|
+
obj.createdAt = message.createdAt;
|
|
14530
|
+
}
|
|
14531
|
+
if (message.updatedAt !== "") {
|
|
14532
|
+
obj.updatedAt = message.updatedAt;
|
|
14533
|
+
}
|
|
14243
14534
|
return obj;
|
|
14244
14535
|
},
|
|
14245
14536
|
create(base) {
|
|
14246
14537
|
return exports.AdminTherapistDetail.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
14247
14538
|
},
|
|
14248
14539
|
fromPartial(object) {
|
|
14249
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
14540
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15;
|
|
14250
14541
|
const message = createBaseAdminTherapistDetail();
|
|
14251
14542
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
14252
14543
|
message.userId = (_b = object.userId) !== null && _b !== void 0 ? _b : "";
|
|
@@ -14269,6 +14560,25 @@ exports.AdminTherapistDetail = {
|
|
|
14269
14560
|
message.joinedAt = (_u = object.joinedAt) !== null && _u !== void 0 ? _u : "";
|
|
14270
14561
|
message.lastActiveAt = (_v = object.lastActiveAt) !== null && _v !== void 0 ? _v : "";
|
|
14271
14562
|
message.avatarUrl = (_w = object.avatarUrl) !== null && _w !== void 0 ? _w : "";
|
|
14563
|
+
message.sessionTypes = ((_x = object.sessionTypes) === null || _x === void 0 ? void 0 : _x.map((e) => e)) || [];
|
|
14564
|
+
message.yearsPracticing = (_y = object.yearsPracticing) !== null && _y !== void 0 ? _y : "";
|
|
14565
|
+
message.languages = ((_z = object.languages) === null || _z === void 0 ? void 0 : _z.map((e) => e)) || [];
|
|
14566
|
+
message.city = (_0 = object.city) !== null && _0 !== void 0 ? _0 : "";
|
|
14567
|
+
message.country = (_1 = object.country) !== null && _1 !== void 0 ? _1 : "";
|
|
14568
|
+
message.sessionRateTc = (_2 = object.sessionRateTc) !== null && _2 !== void 0 ? _2 : 0;
|
|
14569
|
+
message.sessionDurationMinutes = (_3 = object.sessionDurationMinutes) !== null && _3 !== void 0 ? _3 : 0;
|
|
14570
|
+
message.bufferTimeMinutes = (_4 = object.bufferTimeMinutes) !== null && _4 !== void 0 ? _4 : 0;
|
|
14571
|
+
message.therapeuticApproach = (_5 = object.therapeuticApproach) !== null && _5 !== void 0 ? _5 : "";
|
|
14572
|
+
message.reviewCount = (_6 = object.reviewCount) !== null && _6 !== void 0 ? _6 : 0;
|
|
14573
|
+
message.verificationStatus = (_7 = object.verificationStatus) !== null && _7 !== void 0 ? _7 : "";
|
|
14574
|
+
message.username = (_8 = object.username) !== null && _8 !== void 0 ? _8 : "";
|
|
14575
|
+
message.gender = (_9 = object.gender) !== null && _9 !== void 0 ? _9 : "";
|
|
14576
|
+
message.pronouns = (_10 = object.pronouns) !== null && _10 !== void 0 ? _10 : "";
|
|
14577
|
+
message.isEmailVerified = (_11 = object.isEmailVerified) !== null && _11 !== void 0 ? _11 : false;
|
|
14578
|
+
message.isPhoneVerified = (_12 = object.isPhoneVerified) !== null && _12 !== void 0 ? _12 : false;
|
|
14579
|
+
message.accountStatus = (_13 = object.accountStatus) !== null && _13 !== void 0 ? _13 : "";
|
|
14580
|
+
message.createdAt = (_14 = object.createdAt) !== null && _14 !== void 0 ? _14 : "";
|
|
14581
|
+
message.updatedAt = (_15 = object.updatedAt) !== null && _15 !== void 0 ? _15 : "";
|
|
14272
14582
|
return message;
|
|
14273
14583
|
},
|
|
14274
14584
|
};
|