theragist-ts 1.0.14 → 1.0.16
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 +1 -0
- package/dist/admin/message.js +45 -20
- package/dist/admin/service.d.ts +44 -44
- package/dist/admin/service.js +129 -129
- package/dist/therapist/message.d.ts +3 -2
- package/dist/therapist/message.js +46 -30
- package/dist/user/message.d.ts +2 -3
- package/dist/user/message.js +40 -56
- package/package.json +1 -1
package/dist/admin/message.d.ts
CHANGED
package/dist/admin/message.js
CHANGED
|
@@ -3327,7 +3327,17 @@ exports.ListAdminNotificationsResponse = {
|
|
|
3327
3327
|
},
|
|
3328
3328
|
};
|
|
3329
3329
|
function createBaseAdminManagedUser() {
|
|
3330
|
-
return {
|
|
3330
|
+
return {
|
|
3331
|
+
id: "",
|
|
3332
|
+
username: "",
|
|
3333
|
+
email: "",
|
|
3334
|
+
initials: "",
|
|
3335
|
+
role: "",
|
|
3336
|
+
status: "",
|
|
3337
|
+
organization: "",
|
|
3338
|
+
registeredAt: "",
|
|
3339
|
+
warnings: 0,
|
|
3340
|
+
};
|
|
3331
3341
|
}
|
|
3332
3342
|
exports.AdminManagedUser = {
|
|
3333
3343
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -3337,23 +3347,26 @@ exports.AdminManagedUser = {
|
|
|
3337
3347
|
if (message.username !== "") {
|
|
3338
3348
|
writer.uint32(18).string(message.username);
|
|
3339
3349
|
}
|
|
3350
|
+
if (message.email !== "") {
|
|
3351
|
+
writer.uint32(26).string(message.email);
|
|
3352
|
+
}
|
|
3340
3353
|
if (message.initials !== "") {
|
|
3341
|
-
writer.uint32(
|
|
3354
|
+
writer.uint32(34).string(message.initials);
|
|
3342
3355
|
}
|
|
3343
3356
|
if (message.role !== "") {
|
|
3344
|
-
writer.uint32(
|
|
3357
|
+
writer.uint32(42).string(message.role);
|
|
3345
3358
|
}
|
|
3346
3359
|
if (message.status !== "") {
|
|
3347
|
-
writer.uint32(
|
|
3360
|
+
writer.uint32(50).string(message.status);
|
|
3348
3361
|
}
|
|
3349
3362
|
if (message.organization !== "") {
|
|
3350
|
-
writer.uint32(
|
|
3363
|
+
writer.uint32(58).string(message.organization);
|
|
3351
3364
|
}
|
|
3352
3365
|
if (message.registeredAt !== "") {
|
|
3353
|
-
writer.uint32(
|
|
3366
|
+
writer.uint32(66).string(message.registeredAt);
|
|
3354
3367
|
}
|
|
3355
3368
|
if (message.warnings !== 0) {
|
|
3356
|
-
writer.uint32(
|
|
3369
|
+
writer.uint32(72).int32(message.warnings);
|
|
3357
3370
|
}
|
|
3358
3371
|
return writer;
|
|
3359
3372
|
},
|
|
@@ -3382,39 +3395,46 @@ exports.AdminManagedUser = {
|
|
|
3382
3395
|
if (tag !== 26) {
|
|
3383
3396
|
break;
|
|
3384
3397
|
}
|
|
3385
|
-
message.
|
|
3398
|
+
message.email = reader.string();
|
|
3386
3399
|
continue;
|
|
3387
3400
|
}
|
|
3388
3401
|
case 4: {
|
|
3389
3402
|
if (tag !== 34) {
|
|
3390
3403
|
break;
|
|
3391
3404
|
}
|
|
3392
|
-
message.
|
|
3405
|
+
message.initials = reader.string();
|
|
3393
3406
|
continue;
|
|
3394
3407
|
}
|
|
3395
3408
|
case 5: {
|
|
3396
3409
|
if (tag !== 42) {
|
|
3397
3410
|
break;
|
|
3398
3411
|
}
|
|
3399
|
-
message.
|
|
3412
|
+
message.role = reader.string();
|
|
3400
3413
|
continue;
|
|
3401
3414
|
}
|
|
3402
3415
|
case 6: {
|
|
3403
3416
|
if (tag !== 50) {
|
|
3404
3417
|
break;
|
|
3405
3418
|
}
|
|
3406
|
-
message.
|
|
3419
|
+
message.status = reader.string();
|
|
3407
3420
|
continue;
|
|
3408
3421
|
}
|
|
3409
3422
|
case 7: {
|
|
3410
3423
|
if (tag !== 58) {
|
|
3411
3424
|
break;
|
|
3412
3425
|
}
|
|
3413
|
-
message.
|
|
3426
|
+
message.organization = reader.string();
|
|
3414
3427
|
continue;
|
|
3415
3428
|
}
|
|
3416
3429
|
case 8: {
|
|
3417
|
-
if (tag !==
|
|
3430
|
+
if (tag !== 66) {
|
|
3431
|
+
break;
|
|
3432
|
+
}
|
|
3433
|
+
message.registeredAt = reader.string();
|
|
3434
|
+
continue;
|
|
3435
|
+
}
|
|
3436
|
+
case 9: {
|
|
3437
|
+
if (tag !== 72) {
|
|
3418
3438
|
break;
|
|
3419
3439
|
}
|
|
3420
3440
|
message.warnings = reader.int32();
|
|
@@ -3432,6 +3452,7 @@ exports.AdminManagedUser = {
|
|
|
3432
3452
|
return {
|
|
3433
3453
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
3434
3454
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
3455
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
3435
3456
|
initials: isSet(object.initials) ? globalThis.String(object.initials) : "",
|
|
3436
3457
|
role: isSet(object.role) ? globalThis.String(object.role) : "",
|
|
3437
3458
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
@@ -3448,6 +3469,9 @@ exports.AdminManagedUser = {
|
|
|
3448
3469
|
if (message.username !== "") {
|
|
3449
3470
|
obj.username = message.username;
|
|
3450
3471
|
}
|
|
3472
|
+
if (message.email !== "") {
|
|
3473
|
+
obj.email = message.email;
|
|
3474
|
+
}
|
|
3451
3475
|
if (message.initials !== "") {
|
|
3452
3476
|
obj.initials = message.initials;
|
|
3453
3477
|
}
|
|
@@ -3472,16 +3496,17 @@ exports.AdminManagedUser = {
|
|
|
3472
3496
|
return exports.AdminManagedUser.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3473
3497
|
},
|
|
3474
3498
|
fromPartial(object) {
|
|
3475
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3499
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3476
3500
|
const message = createBaseAdminManagedUser();
|
|
3477
3501
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
3478
3502
|
message.username = (_b = object.username) !== null && _b !== void 0 ? _b : "";
|
|
3479
|
-
message.
|
|
3480
|
-
message.
|
|
3481
|
-
message.
|
|
3482
|
-
message.
|
|
3483
|
-
message.
|
|
3484
|
-
message.
|
|
3503
|
+
message.email = (_c = object.email) !== null && _c !== void 0 ? _c : "";
|
|
3504
|
+
message.initials = (_d = object.initials) !== null && _d !== void 0 ? _d : "";
|
|
3505
|
+
message.role = (_e = object.role) !== null && _e !== void 0 ? _e : "";
|
|
3506
|
+
message.status = (_f = object.status) !== null && _f !== void 0 ? _f : "";
|
|
3507
|
+
message.organization = (_g = object.organization) !== null && _g !== void 0 ? _g : "";
|
|
3508
|
+
message.registeredAt = (_h = object.registeredAt) !== null && _h !== void 0 ? _h : "";
|
|
3509
|
+
message.warnings = (_j = object.warnings) !== null && _j !== void 0 ? _j : 0;
|
|
3485
3510
|
return message;
|
|
3486
3511
|
},
|
|
3487
3512
|
};
|
package/dist/admin/service.d.ts
CHANGED
|
@@ -174,18 +174,6 @@ export declare const AdminServiceDefinition: {
|
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
176
|
};
|
|
177
|
-
readonly getUserStats: {
|
|
178
|
-
readonly name: "GetUserStats";
|
|
179
|
-
readonly requestType: import("../common").MessageFns<Empty>;
|
|
180
|
-
readonly requestStream: false;
|
|
181
|
-
readonly responseType: import("./message").MessageFns<UserStatsResponse>;
|
|
182
|
-
readonly responseStream: false;
|
|
183
|
-
readonly options: {
|
|
184
|
-
readonly _unknownFields: {
|
|
185
|
-
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
177
|
readonly listManagedUsers: {
|
|
190
178
|
readonly name: "ListManagedUsers";
|
|
191
179
|
readonly requestType: import("./message").MessageFns<ListManagedUsersRequest>;
|
|
@@ -210,6 +198,18 @@ export declare const AdminServiceDefinition: {
|
|
|
210
198
|
};
|
|
211
199
|
};
|
|
212
200
|
};
|
|
201
|
+
readonly getUserStats: {
|
|
202
|
+
readonly name: "GetUserStats";
|
|
203
|
+
readonly requestType: import("../common").MessageFns<Empty>;
|
|
204
|
+
readonly requestStream: false;
|
|
205
|
+
readonly responseType: import("./message").MessageFns<UserStatsResponse>;
|
|
206
|
+
readonly responseStream: false;
|
|
207
|
+
readonly options: {
|
|
208
|
+
readonly _unknownFields: {
|
|
209
|
+
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
213
|
readonly suspendUser: {
|
|
214
214
|
readonly name: "SuspendUser";
|
|
215
215
|
readonly requestType: import("./message").MessageFns<SuspendUserRequest>;
|
|
@@ -270,18 +270,6 @@ export declare const AdminServiceDefinition: {
|
|
|
270
270
|
};
|
|
271
271
|
};
|
|
272
272
|
};
|
|
273
|
-
readonly getTherapistStats: {
|
|
274
|
-
readonly name: "GetTherapistStats";
|
|
275
|
-
readonly requestType: import("../common").MessageFns<Empty>;
|
|
276
|
-
readonly requestStream: false;
|
|
277
|
-
readonly responseType: import("./message").MessageFns<TherapistStatsResponse>;
|
|
278
|
-
readonly responseStream: false;
|
|
279
|
-
readonly options: {
|
|
280
|
-
readonly _unknownFields: {
|
|
281
|
-
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
282
|
-
};
|
|
283
|
-
};
|
|
284
|
-
};
|
|
285
273
|
readonly listAdminTherapists: {
|
|
286
274
|
readonly name: "ListAdminTherapists";
|
|
287
275
|
readonly requestType: import("./message").MessageFns<ListAdminTherapistsRequest>;
|
|
@@ -342,11 +330,11 @@ export declare const AdminServiceDefinition: {
|
|
|
342
330
|
};
|
|
343
331
|
};
|
|
344
332
|
};
|
|
345
|
-
readonly
|
|
346
|
-
readonly name: "
|
|
347
|
-
readonly requestType: import("./message").MessageFns<
|
|
333
|
+
readonly verifyKyc: {
|
|
334
|
+
readonly name: "VerifyKyc";
|
|
335
|
+
readonly requestType: import("./message").MessageFns<VerifyKycRequest>;
|
|
348
336
|
readonly requestStream: false;
|
|
349
|
-
readonly responseType: import("./message").MessageFns<
|
|
337
|
+
readonly responseType: import("./message").MessageFns<VerifyKycResponse>;
|
|
350
338
|
readonly responseStream: false;
|
|
351
339
|
readonly options: {
|
|
352
340
|
readonly _unknownFields: {
|
|
@@ -354,11 +342,23 @@ export declare const AdminServiceDefinition: {
|
|
|
354
342
|
};
|
|
355
343
|
};
|
|
356
344
|
};
|
|
357
|
-
readonly
|
|
358
|
-
readonly name: "
|
|
359
|
-
readonly requestType: import("
|
|
345
|
+
readonly getTherapistStats: {
|
|
346
|
+
readonly name: "GetTherapistStats";
|
|
347
|
+
readonly requestType: import("../common").MessageFns<Empty>;
|
|
360
348
|
readonly requestStream: false;
|
|
361
|
-
readonly responseType: import("./message").MessageFns<
|
|
349
|
+
readonly responseType: import("./message").MessageFns<TherapistStatsResponse>;
|
|
350
|
+
readonly responseStream: false;
|
|
351
|
+
readonly options: {
|
|
352
|
+
readonly _unknownFields: {
|
|
353
|
+
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
readonly listKycTherapists: {
|
|
358
|
+
readonly name: "ListKycTherapists";
|
|
359
|
+
readonly requestType: import("./message").MessageFns<ListKycTherapistsRequest>;
|
|
360
|
+
readonly requestStream: false;
|
|
361
|
+
readonly responseType: import("./message").MessageFns<ListKycTherapistsResponse>;
|
|
362
362
|
readonly responseStream: false;
|
|
363
363
|
readonly options: {
|
|
364
364
|
readonly _unknownFields: {
|
|
@@ -462,18 +462,6 @@ export declare const AdminServiceDefinition: {
|
|
|
462
462
|
};
|
|
463
463
|
};
|
|
464
464
|
};
|
|
465
|
-
readonly getGroupStats: {
|
|
466
|
-
readonly name: "GetGroupStats";
|
|
467
|
-
readonly requestType: import("../common").MessageFns<Empty>;
|
|
468
|
-
readonly requestStream: false;
|
|
469
|
-
readonly responseType: import("./message").MessageFns<GroupStats>;
|
|
470
|
-
readonly responseStream: false;
|
|
471
|
-
readonly options: {
|
|
472
|
-
readonly _unknownFields: {
|
|
473
|
-
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
474
|
-
};
|
|
475
|
-
};
|
|
476
|
-
};
|
|
477
465
|
readonly listGroups: {
|
|
478
466
|
readonly name: "ListGroups";
|
|
479
467
|
readonly requestType: import("./message").MessageFns<AdminListGroupsRequest>;
|
|
@@ -498,6 +486,18 @@ export declare const AdminServiceDefinition: {
|
|
|
498
486
|
};
|
|
499
487
|
};
|
|
500
488
|
};
|
|
489
|
+
readonly getGroupStats: {
|
|
490
|
+
readonly name: "GetGroupStats";
|
|
491
|
+
readonly requestType: import("../common").MessageFns<Empty>;
|
|
492
|
+
readonly requestStream: false;
|
|
493
|
+
readonly responseType: import("./message").MessageFns<GroupStats>;
|
|
494
|
+
readonly responseStream: false;
|
|
495
|
+
readonly options: {
|
|
496
|
+
readonly _unknownFields: {
|
|
497
|
+
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
501
|
readonly createGroup: {
|
|
502
502
|
readonly name: "CreateGroup";
|
|
503
503
|
readonly requestType: import("./message").MessageFns<AdminCreateGroupRequest>;
|
package/dist/admin/service.js
CHANGED
|
@@ -752,19 +752,19 @@ exports.AdminServiceDefinition = {
|
|
|
752
752
|
},
|
|
753
753
|
},
|
|
754
754
|
},
|
|
755
|
-
|
|
756
|
-
name: "
|
|
757
|
-
requestType:
|
|
755
|
+
listManagedUsers: {
|
|
756
|
+
name: "ListManagedUsers",
|
|
757
|
+
requestType: message_1.ListManagedUsersRequest,
|
|
758
758
|
requestStream: false,
|
|
759
|
-
responseType: message_1.
|
|
759
|
+
responseType: message_1.ListManagedUsersResponse,
|
|
760
760
|
responseStream: false,
|
|
761
761
|
options: {
|
|
762
762
|
_unknownFields: {
|
|
763
763
|
578365826: [
|
|
764
764
|
new Uint8Array([
|
|
765
|
-
|
|
765
|
+
21,
|
|
766
766
|
18,
|
|
767
|
-
|
|
767
|
+
19,
|
|
768
768
|
47,
|
|
769
769
|
97,
|
|
770
770
|
112,
|
|
@@ -784,30 +784,24 @@ exports.AdminServiceDefinition = {
|
|
|
784
784
|
101,
|
|
785
785
|
114,
|
|
786
786
|
115,
|
|
787
|
-
47,
|
|
788
|
-
115,
|
|
789
|
-
116,
|
|
790
|
-
97,
|
|
791
|
-
116,
|
|
792
|
-
115,
|
|
793
787
|
]),
|
|
794
788
|
],
|
|
795
789
|
},
|
|
796
790
|
},
|
|
797
791
|
},
|
|
798
|
-
|
|
799
|
-
name: "
|
|
800
|
-
requestType:
|
|
792
|
+
getManagedUser: {
|
|
793
|
+
name: "GetManagedUser",
|
|
794
|
+
requestType: common_1.GetIDRequest,
|
|
801
795
|
requestStream: false,
|
|
802
|
-
responseType: message_1.
|
|
796
|
+
responseType: message_1.ManagedUserDetail,
|
|
803
797
|
responseStream: false,
|
|
804
798
|
options: {
|
|
805
799
|
_unknownFields: {
|
|
806
800
|
578365826: [
|
|
807
801
|
new Uint8Array([
|
|
808
|
-
|
|
802
|
+
26,
|
|
809
803
|
18,
|
|
810
|
-
|
|
804
|
+
24,
|
|
811
805
|
47,
|
|
812
806
|
97,
|
|
813
807
|
112,
|
|
@@ -827,24 +821,29 @@ exports.AdminServiceDefinition = {
|
|
|
827
821
|
101,
|
|
828
822
|
114,
|
|
829
823
|
115,
|
|
824
|
+
47,
|
|
825
|
+
123,
|
|
826
|
+
105,
|
|
827
|
+
100,
|
|
828
|
+
125,
|
|
830
829
|
]),
|
|
831
830
|
],
|
|
832
831
|
},
|
|
833
832
|
},
|
|
834
833
|
},
|
|
835
|
-
|
|
836
|
-
name: "
|
|
837
|
-
requestType: common_1.
|
|
834
|
+
getUserStats: {
|
|
835
|
+
name: "GetUserStats",
|
|
836
|
+
requestType: common_1.Empty,
|
|
838
837
|
requestStream: false,
|
|
839
|
-
responseType: message_1.
|
|
838
|
+
responseType: message_1.UserStatsResponse,
|
|
840
839
|
responseStream: false,
|
|
841
840
|
options: {
|
|
842
841
|
_unknownFields: {
|
|
843
842
|
578365826: [
|
|
844
843
|
new Uint8Array([
|
|
845
|
-
|
|
844
|
+
27,
|
|
846
845
|
18,
|
|
847
|
-
|
|
846
|
+
25,
|
|
848
847
|
47,
|
|
849
848
|
97,
|
|
850
849
|
112,
|
|
@@ -865,10 +864,11 @@ exports.AdminServiceDefinition = {
|
|
|
865
864
|
114,
|
|
866
865
|
115,
|
|
867
866
|
47,
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
867
|
+
115,
|
|
868
|
+
116,
|
|
869
|
+
97,
|
|
870
|
+
116,
|
|
871
|
+
115,
|
|
872
872
|
]),
|
|
873
873
|
],
|
|
874
874
|
},
|
|
@@ -1132,54 +1132,6 @@ exports.AdminServiceDefinition = {
|
|
|
1132
1132
|
},
|
|
1133
1133
|
},
|
|
1134
1134
|
},
|
|
1135
|
-
getTherapistStats: {
|
|
1136
|
-
name: "GetTherapistStats",
|
|
1137
|
-
requestType: common_1.Empty,
|
|
1138
|
-
requestStream: false,
|
|
1139
|
-
responseType: message_1.TherapistStatsResponse,
|
|
1140
|
-
responseStream: false,
|
|
1141
|
-
options: {
|
|
1142
|
-
_unknownFields: {
|
|
1143
|
-
578365826: [
|
|
1144
|
-
new Uint8Array([
|
|
1145
|
-
32,
|
|
1146
|
-
18,
|
|
1147
|
-
30,
|
|
1148
|
-
47,
|
|
1149
|
-
97,
|
|
1150
|
-
112,
|
|
1151
|
-
105,
|
|
1152
|
-
47,
|
|
1153
|
-
118,
|
|
1154
|
-
49,
|
|
1155
|
-
47,
|
|
1156
|
-
97,
|
|
1157
|
-
100,
|
|
1158
|
-
109,
|
|
1159
|
-
105,
|
|
1160
|
-
110,
|
|
1161
|
-
47,
|
|
1162
|
-
116,
|
|
1163
|
-
104,
|
|
1164
|
-
101,
|
|
1165
|
-
114,
|
|
1166
|
-
97,
|
|
1167
|
-
112,
|
|
1168
|
-
105,
|
|
1169
|
-
115,
|
|
1170
|
-
116,
|
|
1171
|
-
115,
|
|
1172
|
-
47,
|
|
1173
|
-
115,
|
|
1174
|
-
116,
|
|
1175
|
-
97,
|
|
1176
|
-
116,
|
|
1177
|
-
115,
|
|
1178
|
-
]),
|
|
1179
|
-
],
|
|
1180
|
-
},
|
|
1181
|
-
},
|
|
1182
|
-
},
|
|
1183
1135
|
listAdminTherapists: {
|
|
1184
1136
|
name: "ListAdminTherapists",
|
|
1185
1137
|
requestType: message_1.ListAdminTherapistsRequest,
|
|
@@ -1427,19 +1379,19 @@ exports.AdminServiceDefinition = {
|
|
|
1427
1379
|
},
|
|
1428
1380
|
},
|
|
1429
1381
|
},
|
|
1430
|
-
|
|
1431
|
-
name: "
|
|
1432
|
-
requestType: message_1.
|
|
1382
|
+
verifyKyc: {
|
|
1383
|
+
name: "VerifyKyc",
|
|
1384
|
+
requestType: message_1.VerifyKycRequest,
|
|
1433
1385
|
requestStream: false,
|
|
1434
|
-
responseType: message_1.
|
|
1386
|
+
responseType: message_1.VerifyKycResponse,
|
|
1435
1387
|
responseStream: false,
|
|
1436
1388
|
options: {
|
|
1437
1389
|
_unknownFields: {
|
|
1438
1390
|
578365826: [
|
|
1439
1391
|
new Uint8Array([
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1392
|
+
45,
|
|
1393
|
+
34,
|
|
1394
|
+
40,
|
|
1443
1395
|
47,
|
|
1444
1396
|
97,
|
|
1445
1397
|
112,
|
|
@@ -1465,27 +1417,42 @@ exports.AdminServiceDefinition = {
|
|
|
1465
1417
|
116,
|
|
1466
1418
|
115,
|
|
1467
1419
|
47,
|
|
1420
|
+
123,
|
|
1421
|
+
105,
|
|
1422
|
+
100,
|
|
1423
|
+
125,
|
|
1424
|
+
47,
|
|
1468
1425
|
107,
|
|
1469
1426
|
121,
|
|
1470
1427
|
99,
|
|
1428
|
+
47,
|
|
1429
|
+
118,
|
|
1430
|
+
101,
|
|
1431
|
+
114,
|
|
1432
|
+
105,
|
|
1433
|
+
102,
|
|
1434
|
+
121,
|
|
1435
|
+
58,
|
|
1436
|
+
1,
|
|
1437
|
+
42,
|
|
1471
1438
|
]),
|
|
1472
1439
|
],
|
|
1473
1440
|
},
|
|
1474
1441
|
},
|
|
1475
1442
|
},
|
|
1476
|
-
|
|
1477
|
-
name: "
|
|
1478
|
-
requestType:
|
|
1443
|
+
getTherapistStats: {
|
|
1444
|
+
name: "GetTherapistStats",
|
|
1445
|
+
requestType: common_1.Empty,
|
|
1479
1446
|
requestStream: false,
|
|
1480
|
-
responseType: message_1.
|
|
1447
|
+
responseType: message_1.TherapistStatsResponse,
|
|
1481
1448
|
responseStream: false,
|
|
1482
1449
|
options: {
|
|
1483
1450
|
_unknownFields: {
|
|
1484
1451
|
578365826: [
|
|
1485
1452
|
new Uint8Array([
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1453
|
+
32,
|
|
1454
|
+
18,
|
|
1455
|
+
30,
|
|
1489
1456
|
47,
|
|
1490
1457
|
97,
|
|
1491
1458
|
112,
|
|
@@ -1511,24 +1478,57 @@ exports.AdminServiceDefinition = {
|
|
|
1511
1478
|
116,
|
|
1512
1479
|
115,
|
|
1513
1480
|
47,
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1481
|
+
115,
|
|
1482
|
+
116,
|
|
1483
|
+
97,
|
|
1484
|
+
116,
|
|
1485
|
+
115,
|
|
1486
|
+
]),
|
|
1487
|
+
],
|
|
1488
|
+
},
|
|
1489
|
+
},
|
|
1490
|
+
},
|
|
1491
|
+
listKycTherapists: {
|
|
1492
|
+
name: "ListKycTherapists",
|
|
1493
|
+
requestType: message_1.ListKycTherapistsRequest,
|
|
1494
|
+
requestStream: false,
|
|
1495
|
+
responseType: message_1.ListKycTherapistsResponse,
|
|
1496
|
+
responseStream: false,
|
|
1497
|
+
options: {
|
|
1498
|
+
_unknownFields: {
|
|
1499
|
+
578365826: [
|
|
1500
|
+
new Uint8Array([
|
|
1501
|
+
30,
|
|
1502
|
+
18,
|
|
1503
|
+
28,
|
|
1518
1504
|
47,
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1505
|
+
97,
|
|
1506
|
+
112,
|
|
1507
|
+
105,
|
|
1522
1508
|
47,
|
|
1523
1509
|
118,
|
|
1510
|
+
49,
|
|
1511
|
+
47,
|
|
1512
|
+
97,
|
|
1513
|
+
100,
|
|
1514
|
+
109,
|
|
1515
|
+
105,
|
|
1516
|
+
110,
|
|
1517
|
+
47,
|
|
1518
|
+
116,
|
|
1519
|
+
104,
|
|
1524
1520
|
101,
|
|
1525
1521
|
114,
|
|
1522
|
+
97,
|
|
1523
|
+
112,
|
|
1526
1524
|
105,
|
|
1527
|
-
|
|
1525
|
+
115,
|
|
1526
|
+
116,
|
|
1527
|
+
115,
|
|
1528
|
+
47,
|
|
1529
|
+
107,
|
|
1528
1530
|
121,
|
|
1529
|
-
|
|
1530
|
-
1,
|
|
1531
|
-
42,
|
|
1531
|
+
99,
|
|
1532
1532
|
]),
|
|
1533
1533
|
],
|
|
1534
1534
|
},
|
|
@@ -2051,19 +2051,19 @@ exports.AdminServiceDefinition = {
|
|
|
2051
2051
|
},
|
|
2052
2052
|
},
|
|
2053
2053
|
},
|
|
2054
|
-
|
|
2055
|
-
name: "
|
|
2056
|
-
requestType:
|
|
2054
|
+
listGroups: {
|
|
2055
|
+
name: "ListGroups",
|
|
2056
|
+
requestType: message_1.AdminListGroupsRequest,
|
|
2057
2057
|
requestStream: false,
|
|
2058
|
-
responseType: message_1.
|
|
2058
|
+
responseType: message_1.AdminListGroupsResponse,
|
|
2059
2059
|
responseStream: false,
|
|
2060
2060
|
options: {
|
|
2061
2061
|
_unknownFields: {
|
|
2062
2062
|
578365826: [
|
|
2063
2063
|
new Uint8Array([
|
|
2064
|
-
|
|
2064
|
+
22,
|
|
2065
2065
|
18,
|
|
2066
|
-
|
|
2066
|
+
20,
|
|
2067
2067
|
47,
|
|
2068
2068
|
97,
|
|
2069
2069
|
112,
|
|
@@ -2084,30 +2084,24 @@ exports.AdminServiceDefinition = {
|
|
|
2084
2084
|
117,
|
|
2085
2085
|
112,
|
|
2086
2086
|
115,
|
|
2087
|
-
47,
|
|
2088
|
-
115,
|
|
2089
|
-
116,
|
|
2090
|
-
97,
|
|
2091
|
-
116,
|
|
2092
|
-
115,
|
|
2093
2087
|
]),
|
|
2094
2088
|
],
|
|
2095
2089
|
},
|
|
2096
2090
|
},
|
|
2097
2091
|
},
|
|
2098
|
-
|
|
2099
|
-
name: "
|
|
2100
|
-
requestType:
|
|
2092
|
+
getGroup: {
|
|
2093
|
+
name: "GetGroup",
|
|
2094
|
+
requestType: common_1.GetIDRequest,
|
|
2101
2095
|
requestStream: false,
|
|
2102
|
-
responseType: message_1.
|
|
2096
|
+
responseType: message_1.GroupDetail,
|
|
2103
2097
|
responseStream: false,
|
|
2104
2098
|
options: {
|
|
2105
2099
|
_unknownFields: {
|
|
2106
2100
|
578365826: [
|
|
2107
2101
|
new Uint8Array([
|
|
2108
|
-
|
|
2102
|
+
27,
|
|
2109
2103
|
18,
|
|
2110
|
-
|
|
2104
|
+
25,
|
|
2111
2105
|
47,
|
|
2112
2106
|
97,
|
|
2113
2107
|
112,
|
|
@@ -2128,24 +2122,29 @@ exports.AdminServiceDefinition = {
|
|
|
2128
2122
|
117,
|
|
2129
2123
|
112,
|
|
2130
2124
|
115,
|
|
2125
|
+
47,
|
|
2126
|
+
123,
|
|
2127
|
+
105,
|
|
2128
|
+
100,
|
|
2129
|
+
125,
|
|
2131
2130
|
]),
|
|
2132
2131
|
],
|
|
2133
2132
|
},
|
|
2134
2133
|
},
|
|
2135
2134
|
},
|
|
2136
|
-
|
|
2137
|
-
name: "
|
|
2138
|
-
requestType: common_1.
|
|
2135
|
+
getGroupStats: {
|
|
2136
|
+
name: "GetGroupStats",
|
|
2137
|
+
requestType: common_1.Empty,
|
|
2139
2138
|
requestStream: false,
|
|
2140
|
-
responseType: message_1.
|
|
2139
|
+
responseType: message_1.GroupStats,
|
|
2141
2140
|
responseStream: false,
|
|
2142
2141
|
options: {
|
|
2143
2142
|
_unknownFields: {
|
|
2144
2143
|
578365826: [
|
|
2145
2144
|
new Uint8Array([
|
|
2146
|
-
|
|
2145
|
+
28,
|
|
2147
2146
|
18,
|
|
2148
|
-
|
|
2147
|
+
26,
|
|
2149
2148
|
47,
|
|
2150
2149
|
97,
|
|
2151
2150
|
112,
|
|
@@ -2167,10 +2166,11 @@ exports.AdminServiceDefinition = {
|
|
|
2167
2166
|
112,
|
|
2168
2167
|
115,
|
|
2169
2168
|
47,
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2169
|
+
115,
|
|
2170
|
+
116,
|
|
2171
|
+
97,
|
|
2172
|
+
116,
|
|
2173
|
+
115,
|
|
2174
2174
|
]),
|
|
2175
2175
|
],
|
|
2176
2176
|
},
|
|
@@ -11,20 +11,21 @@ export interface SearchTherapistsRequest {
|
|
|
11
11
|
minRating: number;
|
|
12
12
|
availableFrom: string;
|
|
13
13
|
availableTo: string;
|
|
14
|
+
sessionType: string;
|
|
14
15
|
}
|
|
15
16
|
export interface SearchTherapistsResponse {
|
|
16
17
|
therapists: TherapistSearchResult[];
|
|
17
18
|
}
|
|
18
19
|
export interface TherapistSearchResult {
|
|
19
|
-
|
|
20
|
+
id: string;
|
|
20
21
|
fullName: string;
|
|
21
22
|
avatarUrl: string;
|
|
22
23
|
specialties: string[];
|
|
23
|
-
modalities: string[];
|
|
24
24
|
rating: number;
|
|
25
25
|
reviewCount: number;
|
|
26
26
|
sessionPrice: SessionPrice | undefined;
|
|
27
27
|
nextAvailableSessionAt: string;
|
|
28
|
+
sessionTypes: string[];
|
|
28
29
|
}
|
|
29
30
|
export interface GetAvailabilityRequest {
|
|
30
31
|
therapistId: string;
|
|
@@ -21,6 +21,7 @@ function createBaseSearchTherapistsRequest() {
|
|
|
21
21
|
minRating: 0,
|
|
22
22
|
availableFrom: "",
|
|
23
23
|
availableTo: "",
|
|
24
|
+
sessionType: "",
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
exports.SearchTherapistsRequest = {
|
|
@@ -49,6 +50,9 @@ exports.SearchTherapistsRequest = {
|
|
|
49
50
|
if (message.availableTo !== "") {
|
|
50
51
|
writer.uint32(66).string(message.availableTo);
|
|
51
52
|
}
|
|
53
|
+
if (message.sessionType !== "") {
|
|
54
|
+
writer.uint32(74).string(message.sessionType);
|
|
55
|
+
}
|
|
52
56
|
return writer;
|
|
53
57
|
},
|
|
54
58
|
decode(input, length) {
|
|
@@ -114,6 +118,13 @@ exports.SearchTherapistsRequest = {
|
|
|
114
118
|
message.availableTo = reader.string();
|
|
115
119
|
continue;
|
|
116
120
|
}
|
|
121
|
+
case 9: {
|
|
122
|
+
if (tag !== 74) {
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
message.sessionType = reader.string();
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
117
128
|
}
|
|
118
129
|
if ((tag & 7) === 4 || tag === 0) {
|
|
119
130
|
break;
|
|
@@ -136,6 +147,7 @@ exports.SearchTherapistsRequest = {
|
|
|
136
147
|
minRating: isSet(object.minRating) ? globalThis.Number(object.minRating) : 0,
|
|
137
148
|
availableFrom: isSet(object.availableFrom) ? globalThis.String(object.availableFrom) : "",
|
|
138
149
|
availableTo: isSet(object.availableTo) ? globalThis.String(object.availableTo) : "",
|
|
150
|
+
sessionType: isSet(object.sessionType) ? globalThis.String(object.sessionType) : "",
|
|
139
151
|
};
|
|
140
152
|
},
|
|
141
153
|
toJSON(message) {
|
|
@@ -165,13 +177,16 @@ exports.SearchTherapistsRequest = {
|
|
|
165
177
|
if (message.availableTo !== "") {
|
|
166
178
|
obj.availableTo = message.availableTo;
|
|
167
179
|
}
|
|
180
|
+
if (message.sessionType !== "") {
|
|
181
|
+
obj.sessionType = message.sessionType;
|
|
182
|
+
}
|
|
168
183
|
return obj;
|
|
169
184
|
},
|
|
170
185
|
create(base) {
|
|
171
186
|
return exports.SearchTherapistsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
172
187
|
},
|
|
173
188
|
fromPartial(object) {
|
|
174
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
189
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
175
190
|
const message = createBaseSearchTherapistsRequest();
|
|
176
191
|
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
177
192
|
? common_1.BaseListRequest.fromPartial(object.pagination)
|
|
@@ -183,6 +198,7 @@ exports.SearchTherapistsRequest = {
|
|
|
183
198
|
message.minRating = (_e = object.minRating) !== null && _e !== void 0 ? _e : 0;
|
|
184
199
|
message.availableFrom = (_f = object.availableFrom) !== null && _f !== void 0 ? _f : "";
|
|
185
200
|
message.availableTo = (_g = object.availableTo) !== null && _g !== void 0 ? _g : "";
|
|
201
|
+
message.sessionType = (_h = object.sessionType) !== null && _h !== void 0 ? _h : "";
|
|
186
202
|
return message;
|
|
187
203
|
},
|
|
188
204
|
};
|
|
@@ -245,21 +261,21 @@ exports.SearchTherapistsResponse = {
|
|
|
245
261
|
};
|
|
246
262
|
function createBaseTherapistSearchResult() {
|
|
247
263
|
return {
|
|
248
|
-
|
|
264
|
+
id: "",
|
|
249
265
|
fullName: "",
|
|
250
266
|
avatarUrl: "",
|
|
251
267
|
specialties: [],
|
|
252
|
-
modalities: [],
|
|
253
268
|
rating: 0,
|
|
254
269
|
reviewCount: 0,
|
|
255
270
|
sessionPrice: undefined,
|
|
256
271
|
nextAvailableSessionAt: "",
|
|
272
|
+
sessionTypes: [],
|
|
257
273
|
};
|
|
258
274
|
}
|
|
259
275
|
exports.TherapistSearchResult = {
|
|
260
276
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
261
|
-
if (message.
|
|
262
|
-
writer.uint32(10).string(message.
|
|
277
|
+
if (message.id !== "") {
|
|
278
|
+
writer.uint32(10).string(message.id);
|
|
263
279
|
}
|
|
264
280
|
if (message.fullName !== "") {
|
|
265
281
|
writer.uint32(18).string(message.fullName);
|
|
@@ -270,9 +286,6 @@ exports.TherapistSearchResult = {
|
|
|
270
286
|
for (const v of message.specialties) {
|
|
271
287
|
writer.uint32(34).string(v);
|
|
272
288
|
}
|
|
273
|
-
for (const v of message.modalities) {
|
|
274
|
-
writer.uint32(42).string(v);
|
|
275
|
-
}
|
|
276
289
|
if (message.rating !== 0) {
|
|
277
290
|
writer.uint32(53).float(message.rating);
|
|
278
291
|
}
|
|
@@ -285,6 +298,9 @@ exports.TherapistSearchResult = {
|
|
|
285
298
|
if (message.nextAvailableSessionAt !== "") {
|
|
286
299
|
writer.uint32(74).string(message.nextAvailableSessionAt);
|
|
287
300
|
}
|
|
301
|
+
for (const v of message.sessionTypes) {
|
|
302
|
+
writer.uint32(82).string(v);
|
|
303
|
+
}
|
|
288
304
|
return writer;
|
|
289
305
|
},
|
|
290
306
|
decode(input, length) {
|
|
@@ -298,7 +314,7 @@ exports.TherapistSearchResult = {
|
|
|
298
314
|
if (tag !== 10) {
|
|
299
315
|
break;
|
|
300
316
|
}
|
|
301
|
-
message.
|
|
317
|
+
message.id = reader.string();
|
|
302
318
|
continue;
|
|
303
319
|
}
|
|
304
320
|
case 2: {
|
|
@@ -322,13 +338,6 @@ exports.TherapistSearchResult = {
|
|
|
322
338
|
message.specialties.push(reader.string());
|
|
323
339
|
continue;
|
|
324
340
|
}
|
|
325
|
-
case 5: {
|
|
326
|
-
if (tag !== 42) {
|
|
327
|
-
break;
|
|
328
|
-
}
|
|
329
|
-
message.modalities.push(reader.string());
|
|
330
|
-
continue;
|
|
331
|
-
}
|
|
332
341
|
case 6: {
|
|
333
342
|
if (tag !== 53) {
|
|
334
343
|
break;
|
|
@@ -357,6 +366,13 @@ exports.TherapistSearchResult = {
|
|
|
357
366
|
message.nextAvailableSessionAt = reader.string();
|
|
358
367
|
continue;
|
|
359
368
|
}
|
|
369
|
+
case 10: {
|
|
370
|
+
if (tag !== 82) {
|
|
371
|
+
break;
|
|
372
|
+
}
|
|
373
|
+
message.sessionTypes.push(reader.string());
|
|
374
|
+
continue;
|
|
375
|
+
}
|
|
360
376
|
}
|
|
361
377
|
if ((tag & 7) === 4 || tag === 0) {
|
|
362
378
|
break;
|
|
@@ -367,28 +383,28 @@ exports.TherapistSearchResult = {
|
|
|
367
383
|
},
|
|
368
384
|
fromJSON(object) {
|
|
369
385
|
return {
|
|
370
|
-
|
|
386
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
371
387
|
fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
|
|
372
388
|
avatarUrl: isSet(object.avatarUrl) ? globalThis.String(object.avatarUrl) : "",
|
|
373
389
|
specialties: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.specialties)
|
|
374
390
|
? object.specialties.map((e) => globalThis.String(e))
|
|
375
391
|
: [],
|
|
376
|
-
modalities: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.modalities)
|
|
377
|
-
? object.modalities.map((e) => globalThis.String(e))
|
|
378
|
-
: [],
|
|
379
392
|
rating: isSet(object.rating) ? globalThis.Number(object.rating) : 0,
|
|
380
393
|
reviewCount: isSet(object.reviewCount) ? globalThis.Number(object.reviewCount) : 0,
|
|
381
394
|
sessionPrice: isSet(object.sessionPrice) ? message_1.SessionPrice.fromJSON(object.sessionPrice) : undefined,
|
|
382
395
|
nextAvailableSessionAt: isSet(object.nextAvailableSessionAt)
|
|
383
396
|
? globalThis.String(object.nextAvailableSessionAt)
|
|
384
397
|
: "",
|
|
398
|
+
sessionTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.sessionTypes)
|
|
399
|
+
? object.sessionTypes.map((e) => globalThis.String(e))
|
|
400
|
+
: [],
|
|
385
401
|
};
|
|
386
402
|
},
|
|
387
403
|
toJSON(message) {
|
|
388
404
|
var _a, _b;
|
|
389
405
|
const obj = {};
|
|
390
|
-
if (message.
|
|
391
|
-
obj.
|
|
406
|
+
if (message.id !== "") {
|
|
407
|
+
obj.id = message.id;
|
|
392
408
|
}
|
|
393
409
|
if (message.fullName !== "") {
|
|
394
410
|
obj.fullName = message.fullName;
|
|
@@ -399,9 +415,6 @@ exports.TherapistSearchResult = {
|
|
|
399
415
|
if ((_a = message.specialties) === null || _a === void 0 ? void 0 : _a.length) {
|
|
400
416
|
obj.specialties = message.specialties;
|
|
401
417
|
}
|
|
402
|
-
if ((_b = message.modalities) === null || _b === void 0 ? void 0 : _b.length) {
|
|
403
|
-
obj.modalities = message.modalities;
|
|
404
|
-
}
|
|
405
418
|
if (message.rating !== 0) {
|
|
406
419
|
obj.rating = message.rating;
|
|
407
420
|
}
|
|
@@ -414,6 +427,9 @@ exports.TherapistSearchResult = {
|
|
|
414
427
|
if (message.nextAvailableSessionAt !== "") {
|
|
415
428
|
obj.nextAvailableSessionAt = message.nextAvailableSessionAt;
|
|
416
429
|
}
|
|
430
|
+
if ((_b = message.sessionTypes) === null || _b === void 0 ? void 0 : _b.length) {
|
|
431
|
+
obj.sessionTypes = message.sessionTypes;
|
|
432
|
+
}
|
|
417
433
|
return obj;
|
|
418
434
|
},
|
|
419
435
|
create(base) {
|
|
@@ -422,17 +438,17 @@ exports.TherapistSearchResult = {
|
|
|
422
438
|
fromPartial(object) {
|
|
423
439
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
424
440
|
const message = createBaseTherapistSearchResult();
|
|
425
|
-
message.
|
|
441
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
426
442
|
message.fullName = (_b = object.fullName) !== null && _b !== void 0 ? _b : "";
|
|
427
443
|
message.avatarUrl = (_c = object.avatarUrl) !== null && _c !== void 0 ? _c : "";
|
|
428
444
|
message.specialties = ((_d = object.specialties) === null || _d === void 0 ? void 0 : _d.map((e) => e)) || [];
|
|
429
|
-
message.
|
|
430
|
-
message.
|
|
431
|
-
message.reviewCount = (_g = object.reviewCount) !== null && _g !== void 0 ? _g : 0;
|
|
445
|
+
message.rating = (_e = object.rating) !== null && _e !== void 0 ? _e : 0;
|
|
446
|
+
message.reviewCount = (_f = object.reviewCount) !== null && _f !== void 0 ? _f : 0;
|
|
432
447
|
message.sessionPrice = (object.sessionPrice !== undefined && object.sessionPrice !== null)
|
|
433
448
|
? message_1.SessionPrice.fromPartial(object.sessionPrice)
|
|
434
449
|
: undefined;
|
|
435
|
-
message.nextAvailableSessionAt = (
|
|
450
|
+
message.nextAvailableSessionAt = (_g = object.nextAvailableSessionAt) !== null && _g !== void 0 ? _g : "";
|
|
451
|
+
message.sessionTypes = ((_h = object.sessionTypes) === null || _h === void 0 ? void 0 : _h.map((e) => e)) || [];
|
|
436
452
|
return message;
|
|
437
453
|
},
|
|
438
454
|
};
|
package/dist/user/message.d.ts
CHANGED
|
@@ -86,19 +86,17 @@ export interface Session {
|
|
|
86
86
|
expiresAt: number;
|
|
87
87
|
}
|
|
88
88
|
export interface TherapistProfile {
|
|
89
|
-
|
|
89
|
+
id: string;
|
|
90
90
|
fullName: string;
|
|
91
91
|
avatarUrl: string;
|
|
92
92
|
bio: string;
|
|
93
93
|
specialties: string[];
|
|
94
|
-
modalities: string[];
|
|
95
94
|
yearsOfExperience: string;
|
|
96
95
|
languages: string[];
|
|
97
96
|
sessionPrice: SessionPrice | undefined;
|
|
98
97
|
rating: number;
|
|
99
98
|
reviewCount: number;
|
|
100
99
|
location: Location | undefined;
|
|
101
|
-
experienceLevelId: string;
|
|
102
100
|
licenseNumber: string;
|
|
103
101
|
licenseState: string;
|
|
104
102
|
education: string;
|
|
@@ -107,6 +105,7 @@ export interface TherapistProfile {
|
|
|
107
105
|
sessionDurationMinutes: number;
|
|
108
106
|
sessionRateTc: number;
|
|
109
107
|
bufferTimeMinutes: number;
|
|
108
|
+
sessionTypes: string[];
|
|
110
109
|
}
|
|
111
110
|
export interface SessionPrice {
|
|
112
111
|
currency: string;
|
package/dist/user/message.js
CHANGED
|
@@ -1365,19 +1365,17 @@ exports.Session = {
|
|
|
1365
1365
|
};
|
|
1366
1366
|
function createBaseTherapistProfile() {
|
|
1367
1367
|
return {
|
|
1368
|
-
|
|
1368
|
+
id: "",
|
|
1369
1369
|
fullName: "",
|
|
1370
1370
|
avatarUrl: "",
|
|
1371
1371
|
bio: "",
|
|
1372
1372
|
specialties: [],
|
|
1373
|
-
modalities: [],
|
|
1374
1373
|
yearsOfExperience: "",
|
|
1375
1374
|
languages: [],
|
|
1376
1375
|
sessionPrice: undefined,
|
|
1377
1376
|
rating: 0,
|
|
1378
1377
|
reviewCount: 0,
|
|
1379
1378
|
location: undefined,
|
|
1380
|
-
experienceLevelId: "",
|
|
1381
1379
|
licenseNumber: "",
|
|
1382
1380
|
licenseState: "",
|
|
1383
1381
|
education: "",
|
|
@@ -1386,12 +1384,13 @@ function createBaseTherapistProfile() {
|
|
|
1386
1384
|
sessionDurationMinutes: 0,
|
|
1387
1385
|
sessionRateTc: 0,
|
|
1388
1386
|
bufferTimeMinutes: 0,
|
|
1387
|
+
sessionTypes: [],
|
|
1389
1388
|
};
|
|
1390
1389
|
}
|
|
1391
1390
|
exports.TherapistProfile = {
|
|
1392
1391
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1393
|
-
if (message.
|
|
1394
|
-
writer.uint32(10).string(message.
|
|
1392
|
+
if (message.id !== "") {
|
|
1393
|
+
writer.uint32(10).string(message.id);
|
|
1395
1394
|
}
|
|
1396
1395
|
if (message.fullName !== "") {
|
|
1397
1396
|
writer.uint32(18).string(message.fullName);
|
|
@@ -1405,9 +1404,6 @@ exports.TherapistProfile = {
|
|
|
1405
1404
|
for (const v of message.specialties) {
|
|
1406
1405
|
writer.uint32(42).string(v);
|
|
1407
1406
|
}
|
|
1408
|
-
for (const v of message.modalities) {
|
|
1409
|
-
writer.uint32(50).string(v);
|
|
1410
|
-
}
|
|
1411
1407
|
if (message.yearsOfExperience !== "") {
|
|
1412
1408
|
writer.uint32(58).string(message.yearsOfExperience);
|
|
1413
1409
|
}
|
|
@@ -1426,9 +1422,6 @@ exports.TherapistProfile = {
|
|
|
1426
1422
|
if (message.location !== undefined) {
|
|
1427
1423
|
exports.Location.encode(message.location, writer.uint32(98).fork()).join();
|
|
1428
1424
|
}
|
|
1429
|
-
if (message.experienceLevelId !== "") {
|
|
1430
|
-
writer.uint32(106).string(message.experienceLevelId);
|
|
1431
|
-
}
|
|
1432
1425
|
if (message.licenseNumber !== "") {
|
|
1433
1426
|
writer.uint32(114).string(message.licenseNumber);
|
|
1434
1427
|
}
|
|
@@ -1453,6 +1446,9 @@ exports.TherapistProfile = {
|
|
|
1453
1446
|
if (message.bufferTimeMinutes !== 0) {
|
|
1454
1447
|
writer.uint32(168).int32(message.bufferTimeMinutes);
|
|
1455
1448
|
}
|
|
1449
|
+
for (const v of message.sessionTypes) {
|
|
1450
|
+
writer.uint32(178).string(v);
|
|
1451
|
+
}
|
|
1456
1452
|
return writer;
|
|
1457
1453
|
},
|
|
1458
1454
|
decode(input, length) {
|
|
@@ -1466,7 +1462,7 @@ exports.TherapistProfile = {
|
|
|
1466
1462
|
if (tag !== 10) {
|
|
1467
1463
|
break;
|
|
1468
1464
|
}
|
|
1469
|
-
message.
|
|
1465
|
+
message.id = reader.string();
|
|
1470
1466
|
continue;
|
|
1471
1467
|
}
|
|
1472
1468
|
case 2: {
|
|
@@ -1497,13 +1493,6 @@ exports.TherapistProfile = {
|
|
|
1497
1493
|
message.specialties.push(reader.string());
|
|
1498
1494
|
continue;
|
|
1499
1495
|
}
|
|
1500
|
-
case 6: {
|
|
1501
|
-
if (tag !== 50) {
|
|
1502
|
-
break;
|
|
1503
|
-
}
|
|
1504
|
-
message.modalities.push(reader.string());
|
|
1505
|
-
continue;
|
|
1506
|
-
}
|
|
1507
1496
|
case 7: {
|
|
1508
1497
|
if (tag !== 58) {
|
|
1509
1498
|
break;
|
|
@@ -1546,13 +1535,6 @@ exports.TherapistProfile = {
|
|
|
1546
1535
|
message.location = exports.Location.decode(reader, reader.uint32());
|
|
1547
1536
|
continue;
|
|
1548
1537
|
}
|
|
1549
|
-
case 13: {
|
|
1550
|
-
if (tag !== 106) {
|
|
1551
|
-
break;
|
|
1552
|
-
}
|
|
1553
|
-
message.experienceLevelId = reader.string();
|
|
1554
|
-
continue;
|
|
1555
|
-
}
|
|
1556
1538
|
case 14: {
|
|
1557
1539
|
if (tag !== 114) {
|
|
1558
1540
|
break;
|
|
@@ -1609,6 +1591,13 @@ exports.TherapistProfile = {
|
|
|
1609
1591
|
message.bufferTimeMinutes = reader.int32();
|
|
1610
1592
|
continue;
|
|
1611
1593
|
}
|
|
1594
|
+
case 22: {
|
|
1595
|
+
if (tag !== 178) {
|
|
1596
|
+
break;
|
|
1597
|
+
}
|
|
1598
|
+
message.sessionTypes.push(reader.string());
|
|
1599
|
+
continue;
|
|
1600
|
+
}
|
|
1612
1601
|
}
|
|
1613
1602
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1614
1603
|
break;
|
|
@@ -1619,16 +1608,13 @@ exports.TherapistProfile = {
|
|
|
1619
1608
|
},
|
|
1620
1609
|
fromJSON(object) {
|
|
1621
1610
|
return {
|
|
1622
|
-
|
|
1611
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1623
1612
|
fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
|
|
1624
1613
|
avatarUrl: isSet(object.avatarUrl) ? globalThis.String(object.avatarUrl) : "",
|
|
1625
1614
|
bio: isSet(object.bio) ? globalThis.String(object.bio) : "",
|
|
1626
1615
|
specialties: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.specialties)
|
|
1627
1616
|
? object.specialties.map((e) => globalThis.String(e))
|
|
1628
1617
|
: [],
|
|
1629
|
-
modalities: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.modalities)
|
|
1630
|
-
? object.modalities.map((e) => globalThis.String(e))
|
|
1631
|
-
: [],
|
|
1632
1618
|
yearsOfExperience: isSet(object.yearsOfExperience) ? globalThis.String(object.yearsOfExperience) : "",
|
|
1633
1619
|
languages: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.languages)
|
|
1634
1620
|
? object.languages.map((e) => globalThis.String(e))
|
|
@@ -1637,7 +1623,6 @@ exports.TherapistProfile = {
|
|
|
1637
1623
|
rating: isSet(object.rating) ? globalThis.Number(object.rating) : 0,
|
|
1638
1624
|
reviewCount: isSet(object.reviewCount) ? globalThis.Number(object.reviewCount) : 0,
|
|
1639
1625
|
location: isSet(object.location) ? exports.Location.fromJSON(object.location) : undefined,
|
|
1640
|
-
experienceLevelId: isSet(object.experienceLevelId) ? globalThis.String(object.experienceLevelId) : "",
|
|
1641
1626
|
licenseNumber: isSet(object.licenseNumber) ? globalThis.String(object.licenseNumber) : "",
|
|
1642
1627
|
licenseState: isSet(object.licenseState) ? globalThis.String(object.licenseState) : "",
|
|
1643
1628
|
education: isSet(object.education) ? globalThis.String(object.education) : "",
|
|
@@ -1648,13 +1633,16 @@ exports.TherapistProfile = {
|
|
|
1648
1633
|
: 0,
|
|
1649
1634
|
sessionRateTc: isSet(object.sessionRateTc) ? globalThis.Number(object.sessionRateTc) : 0,
|
|
1650
1635
|
bufferTimeMinutes: isSet(object.bufferTimeMinutes) ? globalThis.Number(object.bufferTimeMinutes) : 0,
|
|
1636
|
+
sessionTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.sessionTypes)
|
|
1637
|
+
? object.sessionTypes.map((e) => globalThis.String(e))
|
|
1638
|
+
: [],
|
|
1651
1639
|
};
|
|
1652
1640
|
},
|
|
1653
1641
|
toJSON(message) {
|
|
1654
1642
|
var _a, _b, _c;
|
|
1655
1643
|
const obj = {};
|
|
1656
|
-
if (message.
|
|
1657
|
-
obj.
|
|
1644
|
+
if (message.id !== "") {
|
|
1645
|
+
obj.id = message.id;
|
|
1658
1646
|
}
|
|
1659
1647
|
if (message.fullName !== "") {
|
|
1660
1648
|
obj.fullName = message.fullName;
|
|
@@ -1668,13 +1656,10 @@ exports.TherapistProfile = {
|
|
|
1668
1656
|
if ((_a = message.specialties) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1669
1657
|
obj.specialties = message.specialties;
|
|
1670
1658
|
}
|
|
1671
|
-
if ((_b = message.modalities) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1672
|
-
obj.modalities = message.modalities;
|
|
1673
|
-
}
|
|
1674
1659
|
if (message.yearsOfExperience !== "") {
|
|
1675
1660
|
obj.yearsOfExperience = message.yearsOfExperience;
|
|
1676
1661
|
}
|
|
1677
|
-
if ((
|
|
1662
|
+
if ((_b = message.languages) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1678
1663
|
obj.languages = message.languages;
|
|
1679
1664
|
}
|
|
1680
1665
|
if (message.sessionPrice !== undefined) {
|
|
@@ -1689,9 +1674,6 @@ exports.TherapistProfile = {
|
|
|
1689
1674
|
if (message.location !== undefined) {
|
|
1690
1675
|
obj.location = exports.Location.toJSON(message.location);
|
|
1691
1676
|
}
|
|
1692
|
-
if (message.experienceLevelId !== "") {
|
|
1693
|
-
obj.experienceLevelId = message.experienceLevelId;
|
|
1694
|
-
}
|
|
1695
1677
|
if (message.licenseNumber !== "") {
|
|
1696
1678
|
obj.licenseNumber = message.licenseNumber;
|
|
1697
1679
|
}
|
|
@@ -1716,39 +1698,41 @@ exports.TherapistProfile = {
|
|
|
1716
1698
|
if (message.bufferTimeMinutes !== 0) {
|
|
1717
1699
|
obj.bufferTimeMinutes = Math.round(message.bufferTimeMinutes);
|
|
1718
1700
|
}
|
|
1701
|
+
if ((_c = message.sessionTypes) === null || _c === void 0 ? void 0 : _c.length) {
|
|
1702
|
+
obj.sessionTypes = message.sessionTypes;
|
|
1703
|
+
}
|
|
1719
1704
|
return obj;
|
|
1720
1705
|
},
|
|
1721
1706
|
create(base) {
|
|
1722
1707
|
return exports.TherapistProfile.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1723
1708
|
},
|
|
1724
1709
|
fromPartial(object) {
|
|
1725
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t
|
|
1710
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
1726
1711
|
const message = createBaseTherapistProfile();
|
|
1727
|
-
message.
|
|
1712
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
1728
1713
|
message.fullName = (_b = object.fullName) !== null && _b !== void 0 ? _b : "";
|
|
1729
1714
|
message.avatarUrl = (_c = object.avatarUrl) !== null && _c !== void 0 ? _c : "";
|
|
1730
1715
|
message.bio = (_d = object.bio) !== null && _d !== void 0 ? _d : "";
|
|
1731
1716
|
message.specialties = ((_e = object.specialties) === null || _e === void 0 ? void 0 : _e.map((e) => e)) || [];
|
|
1732
|
-
message.
|
|
1733
|
-
message.
|
|
1734
|
-
message.languages = ((_h = object.languages) === null || _h === void 0 ? void 0 : _h.map((e) => e)) || [];
|
|
1717
|
+
message.yearsOfExperience = (_f = object.yearsOfExperience) !== null && _f !== void 0 ? _f : "";
|
|
1718
|
+
message.languages = ((_g = object.languages) === null || _g === void 0 ? void 0 : _g.map((e) => e)) || [];
|
|
1735
1719
|
message.sessionPrice = (object.sessionPrice !== undefined && object.sessionPrice !== null)
|
|
1736
1720
|
? exports.SessionPrice.fromPartial(object.sessionPrice)
|
|
1737
1721
|
: undefined;
|
|
1738
|
-
message.rating = (
|
|
1739
|
-
message.reviewCount = (
|
|
1722
|
+
message.rating = (_h = object.rating) !== null && _h !== void 0 ? _h : 0;
|
|
1723
|
+
message.reviewCount = (_j = object.reviewCount) !== null && _j !== void 0 ? _j : 0;
|
|
1740
1724
|
message.location = (object.location !== undefined && object.location !== null)
|
|
1741
1725
|
? exports.Location.fromPartial(object.location)
|
|
1742
1726
|
: undefined;
|
|
1743
|
-
message.
|
|
1744
|
-
message.
|
|
1745
|
-
message.
|
|
1746
|
-
message.
|
|
1747
|
-
message.
|
|
1748
|
-
message.
|
|
1749
|
-
message.
|
|
1750
|
-
message.
|
|
1751
|
-
message.
|
|
1727
|
+
message.licenseNumber = (_k = object.licenseNumber) !== null && _k !== void 0 ? _k : "";
|
|
1728
|
+
message.licenseState = (_l = object.licenseState) !== null && _l !== void 0 ? _l : "";
|
|
1729
|
+
message.education = (_m = object.education) !== null && _m !== void 0 ? _m : "";
|
|
1730
|
+
message.timeZone = (_o = object.timeZone) !== null && _o !== void 0 ? _o : "";
|
|
1731
|
+
message.verificationStatus = (_p = object.verificationStatus) !== null && _p !== void 0 ? _p : "";
|
|
1732
|
+
message.sessionDurationMinutes = (_q = object.sessionDurationMinutes) !== null && _q !== void 0 ? _q : 0;
|
|
1733
|
+
message.sessionRateTc = (_r = object.sessionRateTc) !== null && _r !== void 0 ? _r : 0;
|
|
1734
|
+
message.bufferTimeMinutes = (_s = object.bufferTimeMinutes) !== null && _s !== void 0 ? _s : 0;
|
|
1735
|
+
message.sessionTypes = ((_t = object.sessionTypes) === null || _t === void 0 ? void 0 : _t.map((e) => e)) || [];
|
|
1752
1736
|
return message;
|
|
1753
1737
|
},
|
|
1754
1738
|
};
|