@candesk/contracts 6.75.0 → 6.77.0
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/events/auth/patient-blocked.interface.d.ts +1 -0
- package/dist/events/auth/patient-unblocked.interface.d.ts +1 -0
- package/dist/gen/treatment.d.ts +16 -3
- package/dist/nest/treatment.d.ts +18 -3
- package/dist/nest/treatment.js +2 -0
- package/package.json +1 -1
- package/proto/treatment.proto +23 -3
package/dist/gen/treatment.d.ts
CHANGED
|
@@ -166,6 +166,7 @@ export interface TreatmentRequest {
|
|
|
166
166
|
rejectionText?: string | undefined;
|
|
167
167
|
patientName?: string | undefined;
|
|
168
168
|
appointmentAt?: string | undefined;
|
|
169
|
+
patientBlockedAt?: string | undefined;
|
|
169
170
|
}
|
|
170
171
|
export interface PatientSnapshot {
|
|
171
172
|
firstName: string;
|
|
@@ -321,7 +322,6 @@ export interface ListMedicalReviewsRequest {
|
|
|
321
322
|
scope: MedicalReviewScope;
|
|
322
323
|
cursor?: string | undefined;
|
|
323
324
|
limit: number;
|
|
324
|
-
allDoctors?: boolean | undefined;
|
|
325
325
|
query?: string | undefined;
|
|
326
326
|
from?: string | undefined;
|
|
327
327
|
to?: string | undefined;
|
|
@@ -334,7 +334,6 @@ export interface ListMedicalReviewsResponse {
|
|
|
334
334
|
}
|
|
335
335
|
export interface CountMedicalReviewsRequest {
|
|
336
336
|
doctorId: string;
|
|
337
|
-
allDoctors?: boolean | undefined;
|
|
338
337
|
}
|
|
339
338
|
export interface MedicalReviewCount {
|
|
340
339
|
type: TreatmentType;
|
|
@@ -347,7 +346,6 @@ export interface CountMedicalReviewsResponse {
|
|
|
347
346
|
export interface GetMedicalReviewRequest {
|
|
348
347
|
id: string;
|
|
349
348
|
doctorId: string;
|
|
350
|
-
allDoctors?: boolean | undefined;
|
|
351
349
|
}
|
|
352
350
|
export interface GetMedicalReviewResponse {
|
|
353
351
|
request: TreatmentRequest | undefined;
|
|
@@ -385,6 +383,19 @@ export interface ReleaseMedicalReviewRequest {
|
|
|
385
383
|
export interface ReleaseMedicalReviewResponse {
|
|
386
384
|
request: TreatmentRequest | undefined;
|
|
387
385
|
}
|
|
386
|
+
export interface ReleaseDoctorReviewsRequest {
|
|
387
|
+
doctorId: string;
|
|
388
|
+
}
|
|
389
|
+
export interface ReleaseDoctorReviewsResponse {
|
|
390
|
+
released: number;
|
|
391
|
+
}
|
|
392
|
+
export interface CancelPaymentRequest {
|
|
393
|
+
userId: string;
|
|
394
|
+
id: string;
|
|
395
|
+
}
|
|
396
|
+
export interface CancelPaymentResponse {
|
|
397
|
+
request: TreatmentRequest | undefined;
|
|
398
|
+
}
|
|
388
399
|
export interface RetryRefundRequest {
|
|
389
400
|
id: string;
|
|
390
401
|
}
|
|
@@ -422,6 +433,7 @@ export interface TreatmentService {
|
|
|
422
433
|
changeMedicationWish(request: ChangeMedicationWishRequest): Promise<ChangeMedicationWishResponse>;
|
|
423
434
|
deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Promise<DeleteTreatmentRequestResponse>;
|
|
424
435
|
startPayment(request: StartPaymentRequest): Promise<StartPaymentResponse>;
|
|
436
|
+
cancelPayment(request: CancelPaymentRequest): Promise<CancelPaymentResponse>;
|
|
425
437
|
listProductRequesters(request: ListProductRequestersRequest): Promise<ListProductRequestersResponse>;
|
|
426
438
|
submitWithdrawal(request: SubmitWithdrawalRequest): Promise<SubmitWithdrawalResponse>;
|
|
427
439
|
listWithdrawals(request: ListWithdrawalsRequest): Promise<ListWithdrawalsResponse>;
|
|
@@ -435,6 +447,7 @@ export interface TreatmentService {
|
|
|
435
447
|
approveMedicalReview(request: ApproveMedicalReviewRequest): Promise<ApproveMedicalReviewResponse>;
|
|
436
448
|
rejectMedicalReview(request: RejectMedicalReviewRequest): Promise<RejectMedicalReviewResponse>;
|
|
437
449
|
releaseMedicalReview(request: ReleaseMedicalReviewRequest): Promise<ReleaseMedicalReviewResponse>;
|
|
450
|
+
releaseDoctorReviews(request: ReleaseDoctorReviewsRequest): Promise<ReleaseDoctorReviewsResponse>;
|
|
438
451
|
retryRefund(request: RetryRefundRequest): Promise<RetryRefundResponse>;
|
|
439
452
|
listAppointmentSlots(request: ListAppointmentSlotsRequest): Promise<ListAppointmentSlotsResponse>;
|
|
440
453
|
listAppointments(request: ListAppointmentsRequest): Promise<ListAppointmentsResponse>;
|
package/dist/nest/treatment.d.ts
CHANGED
|
@@ -167,6 +167,7 @@ export interface TreatmentRequest {
|
|
|
167
167
|
rejectionText?: string | undefined;
|
|
168
168
|
patientName?: string | undefined;
|
|
169
169
|
appointmentAt?: string | undefined;
|
|
170
|
+
patientBlockedAt?: string | undefined;
|
|
170
171
|
}
|
|
171
172
|
export interface PatientSnapshot {
|
|
172
173
|
firstName: string;
|
|
@@ -322,7 +323,6 @@ export interface ListMedicalReviewsRequest {
|
|
|
322
323
|
scope: MedicalReviewScope;
|
|
323
324
|
cursor?: string | undefined;
|
|
324
325
|
limit: number;
|
|
325
|
-
allDoctors?: boolean | undefined;
|
|
326
326
|
query?: string | undefined;
|
|
327
327
|
from?: string | undefined;
|
|
328
328
|
to?: string | undefined;
|
|
@@ -335,7 +335,6 @@ export interface ListMedicalReviewsResponse {
|
|
|
335
335
|
}
|
|
336
336
|
export interface CountMedicalReviewsRequest {
|
|
337
337
|
doctorId: string;
|
|
338
|
-
allDoctors?: boolean | undefined;
|
|
339
338
|
}
|
|
340
339
|
export interface MedicalReviewCount {
|
|
341
340
|
type: TreatmentType;
|
|
@@ -348,7 +347,6 @@ export interface CountMedicalReviewsResponse {
|
|
|
348
347
|
export interface GetMedicalReviewRequest {
|
|
349
348
|
id: string;
|
|
350
349
|
doctorId: string;
|
|
351
|
-
allDoctors?: boolean | undefined;
|
|
352
350
|
}
|
|
353
351
|
export interface GetMedicalReviewResponse {
|
|
354
352
|
request: TreatmentRequest | undefined;
|
|
@@ -386,6 +384,19 @@ export interface ReleaseMedicalReviewRequest {
|
|
|
386
384
|
export interface ReleaseMedicalReviewResponse {
|
|
387
385
|
request: TreatmentRequest | undefined;
|
|
388
386
|
}
|
|
387
|
+
export interface ReleaseDoctorReviewsRequest {
|
|
388
|
+
doctorId: string;
|
|
389
|
+
}
|
|
390
|
+
export interface ReleaseDoctorReviewsResponse {
|
|
391
|
+
released: number;
|
|
392
|
+
}
|
|
393
|
+
export interface CancelPaymentRequest {
|
|
394
|
+
userId: string;
|
|
395
|
+
id: string;
|
|
396
|
+
}
|
|
397
|
+
export interface CancelPaymentResponse {
|
|
398
|
+
request: TreatmentRequest | undefined;
|
|
399
|
+
}
|
|
389
400
|
export interface RetryRefundRequest {
|
|
390
401
|
id: string;
|
|
391
402
|
}
|
|
@@ -424,6 +435,7 @@ export interface TreatmentServiceClient {
|
|
|
424
435
|
changeMedicationWish(request: ChangeMedicationWishRequest): Observable<ChangeMedicationWishResponse>;
|
|
425
436
|
deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Observable<DeleteTreatmentRequestResponse>;
|
|
426
437
|
startPayment(request: StartPaymentRequest): Observable<StartPaymentResponse>;
|
|
438
|
+
cancelPayment(request: CancelPaymentRequest): Observable<CancelPaymentResponse>;
|
|
427
439
|
listProductRequesters(request: ListProductRequestersRequest): Observable<ListProductRequestersResponse>;
|
|
428
440
|
submitWithdrawal(request: SubmitWithdrawalRequest): Observable<SubmitWithdrawalResponse>;
|
|
429
441
|
listWithdrawals(request: ListWithdrawalsRequest): Observable<ListWithdrawalsResponse>;
|
|
@@ -437,6 +449,7 @@ export interface TreatmentServiceClient {
|
|
|
437
449
|
approveMedicalReview(request: ApproveMedicalReviewRequest): Observable<ApproveMedicalReviewResponse>;
|
|
438
450
|
rejectMedicalReview(request: RejectMedicalReviewRequest): Observable<RejectMedicalReviewResponse>;
|
|
439
451
|
releaseMedicalReview(request: ReleaseMedicalReviewRequest): Observable<ReleaseMedicalReviewResponse>;
|
|
452
|
+
releaseDoctorReviews(request: ReleaseDoctorReviewsRequest): Observable<ReleaseDoctorReviewsResponse>;
|
|
440
453
|
retryRefund(request: RetryRefundRequest): Observable<RetryRefundResponse>;
|
|
441
454
|
listAppointmentSlots(request: ListAppointmentSlotsRequest): Observable<ListAppointmentSlotsResponse>;
|
|
442
455
|
listAppointments(request: ListAppointmentsRequest): Observable<ListAppointmentsResponse>;
|
|
@@ -454,6 +467,7 @@ export interface TreatmentServiceController {
|
|
|
454
467
|
changeMedicationWish(request: ChangeMedicationWishRequest): Promise<ChangeMedicationWishResponse> | Observable<ChangeMedicationWishResponse> | ChangeMedicationWishResponse;
|
|
455
468
|
deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Promise<DeleteTreatmentRequestResponse> | Observable<DeleteTreatmentRequestResponse> | DeleteTreatmentRequestResponse;
|
|
456
469
|
startPayment(request: StartPaymentRequest): Promise<StartPaymentResponse> | Observable<StartPaymentResponse> | StartPaymentResponse;
|
|
470
|
+
cancelPayment(request: CancelPaymentRequest): Promise<CancelPaymentResponse> | Observable<CancelPaymentResponse> | CancelPaymentResponse;
|
|
457
471
|
listProductRequesters(request: ListProductRequestersRequest): Promise<ListProductRequestersResponse> | Observable<ListProductRequestersResponse> | ListProductRequestersResponse;
|
|
458
472
|
submitWithdrawal(request: SubmitWithdrawalRequest): Promise<SubmitWithdrawalResponse> | Observable<SubmitWithdrawalResponse> | SubmitWithdrawalResponse;
|
|
459
473
|
listWithdrawals(request: ListWithdrawalsRequest): Promise<ListWithdrawalsResponse> | Observable<ListWithdrawalsResponse> | ListWithdrawalsResponse;
|
|
@@ -467,6 +481,7 @@ export interface TreatmentServiceController {
|
|
|
467
481
|
approveMedicalReview(request: ApproveMedicalReviewRequest): Promise<ApproveMedicalReviewResponse> | Observable<ApproveMedicalReviewResponse> | ApproveMedicalReviewResponse;
|
|
468
482
|
rejectMedicalReview(request: RejectMedicalReviewRequest): Promise<RejectMedicalReviewResponse> | Observable<RejectMedicalReviewResponse> | RejectMedicalReviewResponse;
|
|
469
483
|
releaseMedicalReview(request: ReleaseMedicalReviewRequest): Promise<ReleaseMedicalReviewResponse> | Observable<ReleaseMedicalReviewResponse> | ReleaseMedicalReviewResponse;
|
|
484
|
+
releaseDoctorReviews(request: ReleaseDoctorReviewsRequest): Promise<ReleaseDoctorReviewsResponse> | Observable<ReleaseDoctorReviewsResponse> | ReleaseDoctorReviewsResponse;
|
|
470
485
|
retryRefund(request: RetryRefundRequest): Promise<RetryRefundResponse> | Observable<RetryRefundResponse> | RetryRefundResponse;
|
|
471
486
|
listAppointmentSlots(request: ListAppointmentSlotsRequest): Promise<ListAppointmentSlotsResponse> | Observable<ListAppointmentSlotsResponse> | ListAppointmentSlotsResponse;
|
|
472
487
|
listAppointments(request: ListAppointmentsRequest): Promise<ListAppointmentsResponse> | Observable<ListAppointmentsResponse> | ListAppointmentsResponse;
|
package/dist/nest/treatment.js
CHANGED
|
@@ -124,6 +124,7 @@ function TreatmentServiceControllerMethods() {
|
|
|
124
124
|
"changeMedicationWish",
|
|
125
125
|
"deleteTreatmentRequest",
|
|
126
126
|
"startPayment",
|
|
127
|
+
"cancelPayment",
|
|
127
128
|
"listProductRequesters",
|
|
128
129
|
"submitWithdrawal",
|
|
129
130
|
"listWithdrawals",
|
|
@@ -137,6 +138,7 @@ function TreatmentServiceControllerMethods() {
|
|
|
137
138
|
"approveMedicalReview",
|
|
138
139
|
"rejectMedicalReview",
|
|
139
140
|
"releaseMedicalReview",
|
|
141
|
+
"releaseDoctorReviews",
|
|
140
142
|
"retryRefund",
|
|
141
143
|
"listAppointmentSlots",
|
|
142
144
|
"listAppointments",
|
package/package.json
CHANGED
package/proto/treatment.proto
CHANGED
|
@@ -15,6 +15,7 @@ service TreatmentService {
|
|
|
15
15
|
rpc ChangeMedicationWish (ChangeMedicationWishRequest) returns (ChangeMedicationWishResponse);
|
|
16
16
|
rpc DeleteTreatmentRequest (DeleteTreatmentRequestRequest) returns (DeleteTreatmentRequestResponse);
|
|
17
17
|
rpc StartPayment (StartPaymentRequest) returns (StartPaymentResponse);
|
|
18
|
+
rpc CancelPayment (CancelPaymentRequest) returns (CancelPaymentResponse);
|
|
18
19
|
rpc ListProductRequesters (ListProductRequestersRequest) returns (ListProductRequestersResponse);
|
|
19
20
|
rpc SubmitWithdrawal (SubmitWithdrawalRequest) returns (SubmitWithdrawalResponse);
|
|
20
21
|
rpc ListWithdrawals (ListWithdrawalsRequest) returns (ListWithdrawalsResponse);
|
|
@@ -28,6 +29,7 @@ service TreatmentService {
|
|
|
28
29
|
rpc ApproveMedicalReview (ApproveMedicalReviewRequest) returns (ApproveMedicalReviewResponse);
|
|
29
30
|
rpc RejectMedicalReview (RejectMedicalReviewRequest) returns (RejectMedicalReviewResponse);
|
|
30
31
|
rpc ReleaseMedicalReview (ReleaseMedicalReviewRequest) returns (ReleaseMedicalReviewResponse);
|
|
32
|
+
rpc ReleaseDoctorReviews (ReleaseDoctorReviewsRequest) returns (ReleaseDoctorReviewsResponse);
|
|
31
33
|
rpc RetryRefund (RetryRefundRequest) returns (RetryRefundResponse);
|
|
32
34
|
rpc ListAppointmentSlots (ListAppointmentSlotsRequest) returns (ListAppointmentSlotsResponse);
|
|
33
35
|
rpc ListAppointments (ListAppointmentsRequest) returns (ListAppointmentsResponse);
|
|
@@ -204,6 +206,7 @@ message TreatmentRequest {
|
|
|
204
206
|
optional string rejection_text = 22;
|
|
205
207
|
optional string patient_name = 23;
|
|
206
208
|
optional string appointment_at = 24;
|
|
209
|
+
optional string patient_blocked_at = 25;
|
|
207
210
|
}
|
|
208
211
|
|
|
209
212
|
message PatientSnapshot {
|
|
@@ -393,11 +396,11 @@ message RejectWithdrawalResponse {
|
|
|
393
396
|
}
|
|
394
397
|
|
|
395
398
|
message ListMedicalReviewsRequest {
|
|
399
|
+
reserved 5;
|
|
396
400
|
string doctor_id = 1;
|
|
397
401
|
MedicalReviewScope scope = 2;
|
|
398
402
|
optional string cursor = 3;
|
|
399
403
|
int32 limit = 4;
|
|
400
|
-
optional bool all_doctors = 5;
|
|
401
404
|
optional string query = 6;
|
|
402
405
|
optional string from = 7;
|
|
403
406
|
optional string to = 8;
|
|
@@ -411,8 +414,8 @@ message ListMedicalReviewsResponse {
|
|
|
411
414
|
}
|
|
412
415
|
|
|
413
416
|
message CountMedicalReviewsRequest {
|
|
417
|
+
reserved 2;
|
|
414
418
|
string doctor_id = 1;
|
|
415
|
-
optional bool all_doctors = 2;
|
|
416
419
|
}
|
|
417
420
|
|
|
418
421
|
message MedicalReviewCount {
|
|
@@ -427,9 +430,9 @@ message CountMedicalReviewsResponse {
|
|
|
427
430
|
}
|
|
428
431
|
|
|
429
432
|
message GetMedicalReviewRequest {
|
|
433
|
+
reserved 3;
|
|
430
434
|
string id = 1;
|
|
431
435
|
string doctor_id = 2;
|
|
432
|
-
optional bool all_doctors = 3;
|
|
433
436
|
}
|
|
434
437
|
|
|
435
438
|
message GetMedicalReviewResponse {
|
|
@@ -477,6 +480,23 @@ message ReleaseMedicalReviewResponse {
|
|
|
477
480
|
TreatmentRequest request = 1;
|
|
478
481
|
}
|
|
479
482
|
|
|
483
|
+
message ReleaseDoctorReviewsRequest {
|
|
484
|
+
string doctor_id = 1;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
message ReleaseDoctorReviewsResponse {
|
|
488
|
+
int32 released = 1;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
message CancelPaymentRequest {
|
|
492
|
+
string user_id = 1;
|
|
493
|
+
string id = 2;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
message CancelPaymentResponse {
|
|
497
|
+
TreatmentRequest request = 1;
|
|
498
|
+
}
|
|
499
|
+
|
|
480
500
|
message RetryRefundRequest {
|
|
481
501
|
string id = 1;
|
|
482
502
|
}
|