@candesk/contracts 6.76.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 -0
- package/dist/nest/treatment.d.ts +18 -0
- package/dist/nest/treatment.js +2 -0
- package/package.json +1 -1
- package/proto/treatment.proto +20 -0
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;
|
|
@@ -382,6 +383,19 @@ export interface ReleaseMedicalReviewRequest {
|
|
|
382
383
|
export interface ReleaseMedicalReviewResponse {
|
|
383
384
|
request: TreatmentRequest | undefined;
|
|
384
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
|
+
}
|
|
385
399
|
export interface RetryRefundRequest {
|
|
386
400
|
id: string;
|
|
387
401
|
}
|
|
@@ -419,6 +433,7 @@ export interface TreatmentService {
|
|
|
419
433
|
changeMedicationWish(request: ChangeMedicationWishRequest): Promise<ChangeMedicationWishResponse>;
|
|
420
434
|
deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Promise<DeleteTreatmentRequestResponse>;
|
|
421
435
|
startPayment(request: StartPaymentRequest): Promise<StartPaymentResponse>;
|
|
436
|
+
cancelPayment(request: CancelPaymentRequest): Promise<CancelPaymentResponse>;
|
|
422
437
|
listProductRequesters(request: ListProductRequestersRequest): Promise<ListProductRequestersResponse>;
|
|
423
438
|
submitWithdrawal(request: SubmitWithdrawalRequest): Promise<SubmitWithdrawalResponse>;
|
|
424
439
|
listWithdrawals(request: ListWithdrawalsRequest): Promise<ListWithdrawalsResponse>;
|
|
@@ -432,6 +447,7 @@ export interface TreatmentService {
|
|
|
432
447
|
approveMedicalReview(request: ApproveMedicalReviewRequest): Promise<ApproveMedicalReviewResponse>;
|
|
433
448
|
rejectMedicalReview(request: RejectMedicalReviewRequest): Promise<RejectMedicalReviewResponse>;
|
|
434
449
|
releaseMedicalReview(request: ReleaseMedicalReviewRequest): Promise<ReleaseMedicalReviewResponse>;
|
|
450
|
+
releaseDoctorReviews(request: ReleaseDoctorReviewsRequest): Promise<ReleaseDoctorReviewsResponse>;
|
|
435
451
|
retryRefund(request: RetryRefundRequest): Promise<RetryRefundResponse>;
|
|
436
452
|
listAppointmentSlots(request: ListAppointmentSlotsRequest): Promise<ListAppointmentSlotsResponse>;
|
|
437
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;
|
|
@@ -383,6 +384,19 @@ export interface ReleaseMedicalReviewRequest {
|
|
|
383
384
|
export interface ReleaseMedicalReviewResponse {
|
|
384
385
|
request: TreatmentRequest | undefined;
|
|
385
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
|
+
}
|
|
386
400
|
export interface RetryRefundRequest {
|
|
387
401
|
id: string;
|
|
388
402
|
}
|
|
@@ -421,6 +435,7 @@ export interface TreatmentServiceClient {
|
|
|
421
435
|
changeMedicationWish(request: ChangeMedicationWishRequest): Observable<ChangeMedicationWishResponse>;
|
|
422
436
|
deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Observable<DeleteTreatmentRequestResponse>;
|
|
423
437
|
startPayment(request: StartPaymentRequest): Observable<StartPaymentResponse>;
|
|
438
|
+
cancelPayment(request: CancelPaymentRequest): Observable<CancelPaymentResponse>;
|
|
424
439
|
listProductRequesters(request: ListProductRequestersRequest): Observable<ListProductRequestersResponse>;
|
|
425
440
|
submitWithdrawal(request: SubmitWithdrawalRequest): Observable<SubmitWithdrawalResponse>;
|
|
426
441
|
listWithdrawals(request: ListWithdrawalsRequest): Observable<ListWithdrawalsResponse>;
|
|
@@ -434,6 +449,7 @@ export interface TreatmentServiceClient {
|
|
|
434
449
|
approveMedicalReview(request: ApproveMedicalReviewRequest): Observable<ApproveMedicalReviewResponse>;
|
|
435
450
|
rejectMedicalReview(request: RejectMedicalReviewRequest): Observable<RejectMedicalReviewResponse>;
|
|
436
451
|
releaseMedicalReview(request: ReleaseMedicalReviewRequest): Observable<ReleaseMedicalReviewResponse>;
|
|
452
|
+
releaseDoctorReviews(request: ReleaseDoctorReviewsRequest): Observable<ReleaseDoctorReviewsResponse>;
|
|
437
453
|
retryRefund(request: RetryRefundRequest): Observable<RetryRefundResponse>;
|
|
438
454
|
listAppointmentSlots(request: ListAppointmentSlotsRequest): Observable<ListAppointmentSlotsResponse>;
|
|
439
455
|
listAppointments(request: ListAppointmentsRequest): Observable<ListAppointmentsResponse>;
|
|
@@ -451,6 +467,7 @@ export interface TreatmentServiceController {
|
|
|
451
467
|
changeMedicationWish(request: ChangeMedicationWishRequest): Promise<ChangeMedicationWishResponse> | Observable<ChangeMedicationWishResponse> | ChangeMedicationWishResponse;
|
|
452
468
|
deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Promise<DeleteTreatmentRequestResponse> | Observable<DeleteTreatmentRequestResponse> | DeleteTreatmentRequestResponse;
|
|
453
469
|
startPayment(request: StartPaymentRequest): Promise<StartPaymentResponse> | Observable<StartPaymentResponse> | StartPaymentResponse;
|
|
470
|
+
cancelPayment(request: CancelPaymentRequest): Promise<CancelPaymentResponse> | Observable<CancelPaymentResponse> | CancelPaymentResponse;
|
|
454
471
|
listProductRequesters(request: ListProductRequestersRequest): Promise<ListProductRequestersResponse> | Observable<ListProductRequestersResponse> | ListProductRequestersResponse;
|
|
455
472
|
submitWithdrawal(request: SubmitWithdrawalRequest): Promise<SubmitWithdrawalResponse> | Observable<SubmitWithdrawalResponse> | SubmitWithdrawalResponse;
|
|
456
473
|
listWithdrawals(request: ListWithdrawalsRequest): Promise<ListWithdrawalsResponse> | Observable<ListWithdrawalsResponse> | ListWithdrawalsResponse;
|
|
@@ -464,6 +481,7 @@ export interface TreatmentServiceController {
|
|
|
464
481
|
approveMedicalReview(request: ApproveMedicalReviewRequest): Promise<ApproveMedicalReviewResponse> | Observable<ApproveMedicalReviewResponse> | ApproveMedicalReviewResponse;
|
|
465
482
|
rejectMedicalReview(request: RejectMedicalReviewRequest): Promise<RejectMedicalReviewResponse> | Observable<RejectMedicalReviewResponse> | RejectMedicalReviewResponse;
|
|
466
483
|
releaseMedicalReview(request: ReleaseMedicalReviewRequest): Promise<ReleaseMedicalReviewResponse> | Observable<ReleaseMedicalReviewResponse> | ReleaseMedicalReviewResponse;
|
|
484
|
+
releaseDoctorReviews(request: ReleaseDoctorReviewsRequest): Promise<ReleaseDoctorReviewsResponse> | Observable<ReleaseDoctorReviewsResponse> | ReleaseDoctorReviewsResponse;
|
|
467
485
|
retryRefund(request: RetryRefundRequest): Promise<RetryRefundResponse> | Observable<RetryRefundResponse> | RetryRefundResponse;
|
|
468
486
|
listAppointmentSlots(request: ListAppointmentSlotsRequest): Promise<ListAppointmentSlotsResponse> | Observable<ListAppointmentSlotsResponse> | ListAppointmentSlotsResponse;
|
|
469
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 {
|
|
@@ -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
|
}
|