@candesk/contracts 6.74.0 → 6.76.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/gen/treatment.d.ts
CHANGED
|
@@ -165,6 +165,7 @@ export interface TreatmentRequest {
|
|
|
165
165
|
rejectionReason?: MedicalRejectionReason | undefined;
|
|
166
166
|
rejectionText?: string | undefined;
|
|
167
167
|
patientName?: string | undefined;
|
|
168
|
+
appointmentAt?: string | undefined;
|
|
168
169
|
}
|
|
169
170
|
export interface PatientSnapshot {
|
|
170
171
|
firstName: string;
|
|
@@ -201,6 +202,7 @@ export interface UpdateTreatmentTypeResponse {
|
|
|
201
202
|
export interface CreateTreatmentRequestRequest {
|
|
202
203
|
userId: string;
|
|
203
204
|
type: TreatmentType;
|
|
205
|
+
appointmentAt?: string | undefined;
|
|
204
206
|
}
|
|
205
207
|
export interface CreateTreatmentRequestResponse {
|
|
206
208
|
request: TreatmentRequest | undefined;
|
|
@@ -319,10 +321,10 @@ export interface ListMedicalReviewsRequest {
|
|
|
319
321
|
scope: MedicalReviewScope;
|
|
320
322
|
cursor?: string | undefined;
|
|
321
323
|
limit: number;
|
|
322
|
-
allDoctors?: boolean | undefined;
|
|
323
324
|
query?: string | undefined;
|
|
324
325
|
from?: string | undefined;
|
|
325
326
|
to?: string | undefined;
|
|
327
|
+
type?: TreatmentType | undefined;
|
|
326
328
|
}
|
|
327
329
|
export interface ListMedicalReviewsResponse {
|
|
328
330
|
requests: TreatmentRequest[];
|
|
@@ -331,16 +333,18 @@ export interface ListMedicalReviewsResponse {
|
|
|
331
333
|
}
|
|
332
334
|
export interface CountMedicalReviewsRequest {
|
|
333
335
|
doctorId: string;
|
|
334
|
-
allDoctors?: boolean | undefined;
|
|
335
336
|
}
|
|
336
|
-
export interface
|
|
337
|
+
export interface MedicalReviewCount {
|
|
338
|
+
type: TreatmentType;
|
|
337
339
|
queue: number;
|
|
338
340
|
inReview: number;
|
|
339
341
|
}
|
|
342
|
+
export interface CountMedicalReviewsResponse {
|
|
343
|
+
counts: MedicalReviewCount[];
|
|
344
|
+
}
|
|
340
345
|
export interface GetMedicalReviewRequest {
|
|
341
346
|
id: string;
|
|
342
347
|
doctorId: string;
|
|
343
|
-
allDoctors?: boolean | undefined;
|
|
344
348
|
}
|
|
345
349
|
export interface GetMedicalReviewResponse {
|
|
346
350
|
request: TreatmentRequest | undefined;
|
|
@@ -384,6 +388,24 @@ export interface RetryRefundRequest {
|
|
|
384
388
|
export interface RetryRefundResponse {
|
|
385
389
|
request: TreatmentRequest | undefined;
|
|
386
390
|
}
|
|
391
|
+
export interface ListAppointmentSlotsRequest {
|
|
392
|
+
}
|
|
393
|
+
export interface ListAppointmentSlotsResponse {
|
|
394
|
+
slots: string[];
|
|
395
|
+
}
|
|
396
|
+
export interface ListAppointmentsRequest {
|
|
397
|
+
doctorId: string;
|
|
398
|
+
allDoctors?: boolean | undefined;
|
|
399
|
+
from?: string | undefined;
|
|
400
|
+
to?: string | undefined;
|
|
401
|
+
cursor?: string | undefined;
|
|
402
|
+
limit: number;
|
|
403
|
+
}
|
|
404
|
+
export interface ListAppointmentsResponse {
|
|
405
|
+
requests: TreatmentRequest[];
|
|
406
|
+
nextCursor?: string | undefined;
|
|
407
|
+
total: number;
|
|
408
|
+
}
|
|
387
409
|
export interface TreatmentService {
|
|
388
410
|
getQuestionnaire(request: GetQuestionnaireRequest): Promise<GetQuestionnaireResponse>;
|
|
389
411
|
saveQuestionnaire(request: SaveQuestionnaireRequest): Promise<SaveQuestionnaireResponse>;
|
|
@@ -411,4 +433,6 @@ export interface TreatmentService {
|
|
|
411
433
|
rejectMedicalReview(request: RejectMedicalReviewRequest): Promise<RejectMedicalReviewResponse>;
|
|
412
434
|
releaseMedicalReview(request: ReleaseMedicalReviewRequest): Promise<ReleaseMedicalReviewResponse>;
|
|
413
435
|
retryRefund(request: RetryRefundRequest): Promise<RetryRefundResponse>;
|
|
436
|
+
listAppointmentSlots(request: ListAppointmentSlotsRequest): Promise<ListAppointmentSlotsResponse>;
|
|
437
|
+
listAppointments(request: ListAppointmentsRequest): Promise<ListAppointmentsResponse>;
|
|
414
438
|
}
|
package/dist/nest/treatment.d.ts
CHANGED
|
@@ -166,6 +166,7 @@ export interface TreatmentRequest {
|
|
|
166
166
|
rejectionReason?: MedicalRejectionReason | undefined;
|
|
167
167
|
rejectionText?: string | undefined;
|
|
168
168
|
patientName?: string | undefined;
|
|
169
|
+
appointmentAt?: string | undefined;
|
|
169
170
|
}
|
|
170
171
|
export interface PatientSnapshot {
|
|
171
172
|
firstName: string;
|
|
@@ -202,6 +203,7 @@ export interface UpdateTreatmentTypeResponse {
|
|
|
202
203
|
export interface CreateTreatmentRequestRequest {
|
|
203
204
|
userId: string;
|
|
204
205
|
type: TreatmentType;
|
|
206
|
+
appointmentAt?: string | undefined;
|
|
205
207
|
}
|
|
206
208
|
export interface CreateTreatmentRequestResponse {
|
|
207
209
|
request: TreatmentRequest | undefined;
|
|
@@ -320,10 +322,10 @@ export interface ListMedicalReviewsRequest {
|
|
|
320
322
|
scope: MedicalReviewScope;
|
|
321
323
|
cursor?: string | undefined;
|
|
322
324
|
limit: number;
|
|
323
|
-
allDoctors?: boolean | undefined;
|
|
324
325
|
query?: string | undefined;
|
|
325
326
|
from?: string | undefined;
|
|
326
327
|
to?: string | undefined;
|
|
328
|
+
type?: TreatmentType | undefined;
|
|
327
329
|
}
|
|
328
330
|
export interface ListMedicalReviewsResponse {
|
|
329
331
|
requests: TreatmentRequest[];
|
|
@@ -332,16 +334,18 @@ export interface ListMedicalReviewsResponse {
|
|
|
332
334
|
}
|
|
333
335
|
export interface CountMedicalReviewsRequest {
|
|
334
336
|
doctorId: string;
|
|
335
|
-
allDoctors?: boolean | undefined;
|
|
336
337
|
}
|
|
337
|
-
export interface
|
|
338
|
+
export interface MedicalReviewCount {
|
|
339
|
+
type: TreatmentType;
|
|
338
340
|
queue: number;
|
|
339
341
|
inReview: number;
|
|
340
342
|
}
|
|
343
|
+
export interface CountMedicalReviewsResponse {
|
|
344
|
+
counts: MedicalReviewCount[];
|
|
345
|
+
}
|
|
341
346
|
export interface GetMedicalReviewRequest {
|
|
342
347
|
id: string;
|
|
343
348
|
doctorId: string;
|
|
344
|
-
allDoctors?: boolean | undefined;
|
|
345
349
|
}
|
|
346
350
|
export interface GetMedicalReviewResponse {
|
|
347
351
|
request: TreatmentRequest | undefined;
|
|
@@ -385,6 +389,24 @@ export interface RetryRefundRequest {
|
|
|
385
389
|
export interface RetryRefundResponse {
|
|
386
390
|
request: TreatmentRequest | undefined;
|
|
387
391
|
}
|
|
392
|
+
export interface ListAppointmentSlotsRequest {
|
|
393
|
+
}
|
|
394
|
+
export interface ListAppointmentSlotsResponse {
|
|
395
|
+
slots: string[];
|
|
396
|
+
}
|
|
397
|
+
export interface ListAppointmentsRequest {
|
|
398
|
+
doctorId: string;
|
|
399
|
+
allDoctors?: boolean | undefined;
|
|
400
|
+
from?: string | undefined;
|
|
401
|
+
to?: string | undefined;
|
|
402
|
+
cursor?: string | undefined;
|
|
403
|
+
limit: number;
|
|
404
|
+
}
|
|
405
|
+
export interface ListAppointmentsResponse {
|
|
406
|
+
requests: TreatmentRequest[];
|
|
407
|
+
nextCursor?: string | undefined;
|
|
408
|
+
total: number;
|
|
409
|
+
}
|
|
388
410
|
export declare const TREATMENT_V1_PACKAGE_NAME = "treatment.v1";
|
|
389
411
|
export interface TreatmentServiceClient {
|
|
390
412
|
getQuestionnaire(request: GetQuestionnaireRequest): Observable<GetQuestionnaireResponse>;
|
|
@@ -413,6 +435,8 @@ export interface TreatmentServiceClient {
|
|
|
413
435
|
rejectMedicalReview(request: RejectMedicalReviewRequest): Observable<RejectMedicalReviewResponse>;
|
|
414
436
|
releaseMedicalReview(request: ReleaseMedicalReviewRequest): Observable<ReleaseMedicalReviewResponse>;
|
|
415
437
|
retryRefund(request: RetryRefundRequest): Observable<RetryRefundResponse>;
|
|
438
|
+
listAppointmentSlots(request: ListAppointmentSlotsRequest): Observable<ListAppointmentSlotsResponse>;
|
|
439
|
+
listAppointments(request: ListAppointmentsRequest): Observable<ListAppointmentsResponse>;
|
|
416
440
|
}
|
|
417
441
|
export interface TreatmentServiceController {
|
|
418
442
|
getQuestionnaire(request: GetQuestionnaireRequest): Promise<GetQuestionnaireResponse> | Observable<GetQuestionnaireResponse> | GetQuestionnaireResponse;
|
|
@@ -441,6 +465,8 @@ export interface TreatmentServiceController {
|
|
|
441
465
|
rejectMedicalReview(request: RejectMedicalReviewRequest): Promise<RejectMedicalReviewResponse> | Observable<RejectMedicalReviewResponse> | RejectMedicalReviewResponse;
|
|
442
466
|
releaseMedicalReview(request: ReleaseMedicalReviewRequest): Promise<ReleaseMedicalReviewResponse> | Observable<ReleaseMedicalReviewResponse> | ReleaseMedicalReviewResponse;
|
|
443
467
|
retryRefund(request: RetryRefundRequest): Promise<RetryRefundResponse> | Observable<RetryRefundResponse> | RetryRefundResponse;
|
|
468
|
+
listAppointmentSlots(request: ListAppointmentSlotsRequest): Promise<ListAppointmentSlotsResponse> | Observable<ListAppointmentSlotsResponse> | ListAppointmentSlotsResponse;
|
|
469
|
+
listAppointments(request: ListAppointmentsRequest): Promise<ListAppointmentsResponse> | Observable<ListAppointmentsResponse> | ListAppointmentsResponse;
|
|
444
470
|
}
|
|
445
471
|
export declare function TreatmentServiceControllerMethods(): (constructor: Function) => void;
|
|
446
472
|
export declare const TREATMENT_SERVICE_NAME = "TreatmentService";
|
package/dist/nest/treatment.js
CHANGED
|
@@ -138,6 +138,8 @@ function TreatmentServiceControllerMethods() {
|
|
|
138
138
|
"rejectMedicalReview",
|
|
139
139
|
"releaseMedicalReview",
|
|
140
140
|
"retryRefund",
|
|
141
|
+
"listAppointmentSlots",
|
|
142
|
+
"listAppointments",
|
|
141
143
|
];
|
|
142
144
|
for (const method of grpcMethods) {
|
|
143
145
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/package.json
CHANGED
package/proto/treatment.proto
CHANGED
|
@@ -29,6 +29,8 @@ service TreatmentService {
|
|
|
29
29
|
rpc RejectMedicalReview (RejectMedicalReviewRequest) returns (RejectMedicalReviewResponse);
|
|
30
30
|
rpc ReleaseMedicalReview (ReleaseMedicalReviewRequest) returns (ReleaseMedicalReviewResponse);
|
|
31
31
|
rpc RetryRefund (RetryRefundRequest) returns (RetryRefundResponse);
|
|
32
|
+
rpc ListAppointmentSlots (ListAppointmentSlotsRequest) returns (ListAppointmentSlotsResponse);
|
|
33
|
+
rpc ListAppointments (ListAppointmentsRequest) returns (ListAppointmentsResponse);
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
enum QuestionnaireStatus {
|
|
@@ -201,6 +203,7 @@ message TreatmentRequest {
|
|
|
201
203
|
optional MedicalRejectionReason rejection_reason = 21;
|
|
202
204
|
optional string rejection_text = 22;
|
|
203
205
|
optional string patient_name = 23;
|
|
206
|
+
optional string appointment_at = 24;
|
|
204
207
|
}
|
|
205
208
|
|
|
206
209
|
message PatientSnapshot {
|
|
@@ -246,6 +249,7 @@ message UpdateTreatmentTypeResponse {
|
|
|
246
249
|
message CreateTreatmentRequestRequest {
|
|
247
250
|
string user_id = 1;
|
|
248
251
|
TreatmentType type = 2;
|
|
252
|
+
optional string appointment_at = 3;
|
|
249
253
|
}
|
|
250
254
|
|
|
251
255
|
message CreateTreatmentRequestResponse {
|
|
@@ -389,14 +393,15 @@ message RejectWithdrawalResponse {
|
|
|
389
393
|
}
|
|
390
394
|
|
|
391
395
|
message ListMedicalReviewsRequest {
|
|
396
|
+
reserved 5;
|
|
392
397
|
string doctor_id = 1;
|
|
393
398
|
MedicalReviewScope scope = 2;
|
|
394
399
|
optional string cursor = 3;
|
|
395
400
|
int32 limit = 4;
|
|
396
|
-
optional bool all_doctors = 5;
|
|
397
401
|
optional string query = 6;
|
|
398
402
|
optional string from = 7;
|
|
399
403
|
optional string to = 8;
|
|
404
|
+
optional TreatmentType type = 9;
|
|
400
405
|
}
|
|
401
406
|
|
|
402
407
|
message ListMedicalReviewsResponse {
|
|
@@ -406,19 +411,25 @@ message ListMedicalReviewsResponse {
|
|
|
406
411
|
}
|
|
407
412
|
|
|
408
413
|
message CountMedicalReviewsRequest {
|
|
414
|
+
reserved 2;
|
|
409
415
|
string doctor_id = 1;
|
|
410
|
-
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
message MedicalReviewCount {
|
|
419
|
+
TreatmentType type = 1;
|
|
420
|
+
int32 queue = 2;
|
|
421
|
+
int32 in_review = 3;
|
|
411
422
|
}
|
|
412
423
|
|
|
413
424
|
message CountMedicalReviewsResponse {
|
|
414
|
-
|
|
415
|
-
|
|
425
|
+
reserved 1, 2;
|
|
426
|
+
repeated MedicalReviewCount counts = 3;
|
|
416
427
|
}
|
|
417
428
|
|
|
418
429
|
message GetMedicalReviewRequest {
|
|
430
|
+
reserved 3;
|
|
419
431
|
string id = 1;
|
|
420
432
|
string doctor_id = 2;
|
|
421
|
-
optional bool all_doctors = 3;
|
|
422
433
|
}
|
|
423
434
|
|
|
424
435
|
message GetMedicalReviewResponse {
|
|
@@ -473,3 +484,24 @@ message RetryRefundRequest {
|
|
|
473
484
|
message RetryRefundResponse {
|
|
474
485
|
TreatmentRequest request = 1;
|
|
475
486
|
}
|
|
487
|
+
|
|
488
|
+
message ListAppointmentSlotsRequest {}
|
|
489
|
+
|
|
490
|
+
message ListAppointmentSlotsResponse {
|
|
491
|
+
repeated string slots = 1;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
message ListAppointmentsRequest {
|
|
495
|
+
string doctor_id = 1;
|
|
496
|
+
optional bool all_doctors = 2;
|
|
497
|
+
optional string from = 3;
|
|
498
|
+
optional string to = 4;
|
|
499
|
+
optional string cursor = 5;
|
|
500
|
+
int32 limit = 6;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
message ListAppointmentsResponse {
|
|
504
|
+
repeated TreatmentRequest requests = 1;
|
|
505
|
+
optional string next_cursor = 2;
|
|
506
|
+
int32 total = 3;
|
|
507
|
+
}
|