@candesk/contracts 6.87.0 → 7.1.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 +3 -2
- package/dist/gen/treatment.js +2 -2
- package/dist/nest/treatment.d.ts +3 -2
- package/dist/nest/treatment.js +2 -2
- package/package.json +1 -1
- package/proto/account.proto +2 -3
- package/proto/auth.proto +1 -2
- package/proto/catalog.proto +15 -17
- package/proto/treatment.proto +23 -33
package/dist/gen/treatment.d.ts
CHANGED
|
@@ -74,8 +74,8 @@ export declare enum RequestStatsPeriod {
|
|
|
74
74
|
}
|
|
75
75
|
export declare enum MedicalReviewScope {
|
|
76
76
|
MEDICAL_REVIEW_SCOPE_UNSPECIFIED = 0,
|
|
77
|
-
MEDICAL_REVIEW_SCOPE_IN_REVIEW =
|
|
78
|
-
MEDICAL_REVIEW_SCOPE_DONE =
|
|
77
|
+
MEDICAL_REVIEW_SCOPE_IN_REVIEW = 1,
|
|
78
|
+
MEDICAL_REVIEW_SCOPE_DONE = 2,
|
|
79
79
|
UNRECOGNIZED = -1
|
|
80
80
|
}
|
|
81
81
|
export declare enum AssignmentReason {
|
|
@@ -188,6 +188,7 @@ export interface TreatmentRequest {
|
|
|
188
188
|
patientName?: string | undefined;
|
|
189
189
|
appointmentAt?: string | undefined;
|
|
190
190
|
reviewDueAt?: string | undefined;
|
|
191
|
+
patientBlockedAt?: string | undefined;
|
|
191
192
|
}
|
|
192
193
|
export interface PatientSnapshot {
|
|
193
194
|
firstName: string;
|
package/dist/gen/treatment.js
CHANGED
|
@@ -93,8 +93,8 @@ var RequestStatsPeriod;
|
|
|
93
93
|
var MedicalReviewScope;
|
|
94
94
|
(function (MedicalReviewScope) {
|
|
95
95
|
MedicalReviewScope[MedicalReviewScope["MEDICAL_REVIEW_SCOPE_UNSPECIFIED"] = 0] = "MEDICAL_REVIEW_SCOPE_UNSPECIFIED";
|
|
96
|
-
MedicalReviewScope[MedicalReviewScope["MEDICAL_REVIEW_SCOPE_IN_REVIEW"] =
|
|
97
|
-
MedicalReviewScope[MedicalReviewScope["MEDICAL_REVIEW_SCOPE_DONE"] =
|
|
96
|
+
MedicalReviewScope[MedicalReviewScope["MEDICAL_REVIEW_SCOPE_IN_REVIEW"] = 1] = "MEDICAL_REVIEW_SCOPE_IN_REVIEW";
|
|
97
|
+
MedicalReviewScope[MedicalReviewScope["MEDICAL_REVIEW_SCOPE_DONE"] = 2] = "MEDICAL_REVIEW_SCOPE_DONE";
|
|
98
98
|
MedicalReviewScope[MedicalReviewScope["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
99
99
|
})(MedicalReviewScope || (exports.MedicalReviewScope = MedicalReviewScope = {}));
|
|
100
100
|
var AssignmentReason;
|
package/dist/nest/treatment.d.ts
CHANGED
|
@@ -75,8 +75,8 @@ export declare enum RequestStatsPeriod {
|
|
|
75
75
|
}
|
|
76
76
|
export declare enum MedicalReviewScope {
|
|
77
77
|
MEDICAL_REVIEW_SCOPE_UNSPECIFIED = 0,
|
|
78
|
-
MEDICAL_REVIEW_SCOPE_IN_REVIEW =
|
|
79
|
-
MEDICAL_REVIEW_SCOPE_DONE =
|
|
78
|
+
MEDICAL_REVIEW_SCOPE_IN_REVIEW = 1,
|
|
79
|
+
MEDICAL_REVIEW_SCOPE_DONE = 2,
|
|
80
80
|
UNRECOGNIZED = -1
|
|
81
81
|
}
|
|
82
82
|
export declare enum AssignmentReason {
|
|
@@ -189,6 +189,7 @@ export interface TreatmentRequest {
|
|
|
189
189
|
patientName?: string | undefined;
|
|
190
190
|
appointmentAt?: string | undefined;
|
|
191
191
|
reviewDueAt?: string | undefined;
|
|
192
|
+
patientBlockedAt?: string | undefined;
|
|
192
193
|
}
|
|
193
194
|
export interface PatientSnapshot {
|
|
194
195
|
firstName: string;
|
package/dist/nest/treatment.js
CHANGED
|
@@ -95,8 +95,8 @@ var RequestStatsPeriod;
|
|
|
95
95
|
var MedicalReviewScope;
|
|
96
96
|
(function (MedicalReviewScope) {
|
|
97
97
|
MedicalReviewScope[MedicalReviewScope["MEDICAL_REVIEW_SCOPE_UNSPECIFIED"] = 0] = "MEDICAL_REVIEW_SCOPE_UNSPECIFIED";
|
|
98
|
-
MedicalReviewScope[MedicalReviewScope["MEDICAL_REVIEW_SCOPE_IN_REVIEW"] =
|
|
99
|
-
MedicalReviewScope[MedicalReviewScope["MEDICAL_REVIEW_SCOPE_DONE"] =
|
|
98
|
+
MedicalReviewScope[MedicalReviewScope["MEDICAL_REVIEW_SCOPE_IN_REVIEW"] = 1] = "MEDICAL_REVIEW_SCOPE_IN_REVIEW";
|
|
99
|
+
MedicalReviewScope[MedicalReviewScope["MEDICAL_REVIEW_SCOPE_DONE"] = 2] = "MEDICAL_REVIEW_SCOPE_DONE";
|
|
100
100
|
MedicalReviewScope[MedicalReviewScope["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
101
101
|
})(MedicalReviewScope || (exports.MedicalReviewScope = MedicalReviewScope = {}));
|
|
102
102
|
var AssignmentReason;
|
package/package.json
CHANGED
package/proto/account.proto
CHANGED
|
@@ -298,9 +298,8 @@ message StaffAccount {
|
|
|
298
298
|
Role role = 3;
|
|
299
299
|
string created_at = 4;
|
|
300
300
|
bool is_active = 5;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
bool is_totp_enabled = 8;
|
|
301
|
+
optional string last_active_at = 6;
|
|
302
|
+
bool is_totp_enabled = 7;
|
|
304
303
|
}
|
|
305
304
|
|
|
306
305
|
message PatientAccount {
|
package/proto/auth.proto
CHANGED
package/proto/catalog.proto
CHANGED
|
@@ -180,15 +180,14 @@ message ProductFilter {
|
|
|
180
180
|
repeated Genetics genetics = 1;
|
|
181
181
|
repeated string manufacturer_slugs = 2;
|
|
182
182
|
repeated string countries = 3;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
repeated
|
|
186
|
-
repeated PotencyLevel
|
|
187
|
-
|
|
188
|
-
optional
|
|
189
|
-
optional
|
|
190
|
-
optional bool
|
|
191
|
-
optional bool hide_unpriced = 13;
|
|
183
|
+
optional bool is_irradiated = 4;
|
|
184
|
+
repeated string strain_slugs = 5;
|
|
185
|
+
repeated PotencyLevel thc_levels = 6;
|
|
186
|
+
repeated PotencyLevel cbd_levels = 7;
|
|
187
|
+
optional PriceRange price = 8;
|
|
188
|
+
optional int32 min_rating = 9;
|
|
189
|
+
optional bool hide_sold_out = 10;
|
|
190
|
+
optional bool hide_unpriced = 11;
|
|
192
191
|
}
|
|
193
192
|
|
|
194
193
|
message ListProductsRequest {
|
|
@@ -266,14 +265,13 @@ message GetProductFacetsResponse {
|
|
|
266
265
|
repeated ManufacturerFacet manufacturers = 3;
|
|
267
266
|
repeated CountryFacet countries = 4;
|
|
268
267
|
repeated IrradiationFacet irradiation = 5;
|
|
269
|
-
|
|
270
|
-
repeated
|
|
271
|
-
repeated PotencyLevelFacet
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
int32
|
|
276
|
-
int32 unpriced_count = 14;
|
|
268
|
+
repeated StrainFacet strains = 6;
|
|
269
|
+
repeated PotencyLevelFacet thc_levels = 7;
|
|
270
|
+
repeated PotencyLevelFacet cbd_levels = 8;
|
|
271
|
+
optional PriceBounds price = 9;
|
|
272
|
+
repeated RatingFacet ratings = 10;
|
|
273
|
+
int32 sold_out_count = 11;
|
|
274
|
+
int32 unpriced_count = 12;
|
|
277
275
|
}
|
|
278
276
|
|
|
279
277
|
message GetProductRequest {
|
package/proto/treatment.proto
CHANGED
|
@@ -110,11 +110,9 @@ enum RequestStatsPeriod {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
enum MedicalReviewScope {
|
|
113
|
-
reserved 1;
|
|
114
|
-
reserved "MEDICAL_REVIEW_SCOPE_QUEUE";
|
|
115
113
|
MEDICAL_REVIEW_SCOPE_UNSPECIFIED = 0;
|
|
116
|
-
MEDICAL_REVIEW_SCOPE_IN_REVIEW =
|
|
117
|
-
MEDICAL_REVIEW_SCOPE_DONE =
|
|
114
|
+
MEDICAL_REVIEW_SCOPE_IN_REVIEW = 1;
|
|
115
|
+
MEDICAL_REVIEW_SCOPE_DONE = 2;
|
|
118
116
|
}
|
|
119
117
|
|
|
120
118
|
enum AssignmentReason {
|
|
@@ -231,8 +229,8 @@ message TreatmentRequest {
|
|
|
231
229
|
optional string rejection_text = 22;
|
|
232
230
|
optional string patient_name = 23;
|
|
233
231
|
optional string appointment_at = 24;
|
|
234
|
-
|
|
235
|
-
optional string
|
|
232
|
+
optional string review_due_at = 25;
|
|
233
|
+
optional string patient_blocked_at = 26;
|
|
236
234
|
}
|
|
237
235
|
|
|
238
236
|
message PatientSnapshot {
|
|
@@ -296,16 +294,14 @@ message GetTreatmentRequestResponse {
|
|
|
296
294
|
|
|
297
295
|
message ListTreatmentRequestsRequest {
|
|
298
296
|
string user_id = 1;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
int32 limit = 4;
|
|
297
|
+
optional string cursor = 2;
|
|
298
|
+
int32 limit = 3;
|
|
302
299
|
}
|
|
303
300
|
|
|
304
301
|
message ListTreatmentRequestsResponse {
|
|
305
302
|
repeated TreatmentRequest requests = 1;
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
int32 total = 6;
|
|
303
|
+
optional string next_cursor = 2;
|
|
304
|
+
int32 total = 3;
|
|
309
305
|
}
|
|
310
306
|
|
|
311
307
|
message GetTreatmentSummaryRequest {
|
|
@@ -431,16 +427,15 @@ message RejectWithdrawalResponse {
|
|
|
431
427
|
}
|
|
432
428
|
|
|
433
429
|
message ListMedicalReviewsRequest {
|
|
434
|
-
reserved 5;
|
|
435
430
|
string doctor_id = 1;
|
|
436
431
|
MedicalReviewScope scope = 2;
|
|
437
432
|
optional string cursor = 3;
|
|
438
433
|
int32 limit = 4;
|
|
439
|
-
optional string query =
|
|
440
|
-
optional string from =
|
|
441
|
-
optional string to =
|
|
442
|
-
optional TreatmentType type =
|
|
443
|
-
optional MedicalReviewDecision decision =
|
|
434
|
+
optional string query = 5;
|
|
435
|
+
optional string from = 6;
|
|
436
|
+
optional string to = 7;
|
|
437
|
+
optional TreatmentType type = 8;
|
|
438
|
+
optional MedicalReviewDecision decision = 9;
|
|
444
439
|
}
|
|
445
440
|
|
|
446
441
|
message ListMedicalReviewsResponse {
|
|
@@ -450,27 +445,23 @@ message ListMedicalReviewsResponse {
|
|
|
450
445
|
}
|
|
451
446
|
|
|
452
447
|
message CountMedicalReviewsRequest {
|
|
453
|
-
reserved 2;
|
|
454
448
|
string doctor_id = 1;
|
|
455
449
|
}
|
|
456
450
|
|
|
457
451
|
message MedicalReviewCount {
|
|
458
|
-
reserved 2;
|
|
459
452
|
TreatmentType type = 1;
|
|
460
|
-
int32 in_review =
|
|
461
|
-
int32 done =
|
|
462
|
-
int32 overdue =
|
|
463
|
-
int32 decided_today =
|
|
464
|
-
int32 approved_today =
|
|
453
|
+
int32 in_review = 2;
|
|
454
|
+
int32 done = 3;
|
|
455
|
+
int32 overdue = 4;
|
|
456
|
+
int32 decided_today = 5;
|
|
457
|
+
int32 approved_today = 6;
|
|
465
458
|
}
|
|
466
459
|
|
|
467
460
|
message CountMedicalReviewsResponse {
|
|
468
|
-
|
|
469
|
-
repeated MedicalReviewCount counts = 3;
|
|
461
|
+
repeated MedicalReviewCount counts = 1;
|
|
470
462
|
}
|
|
471
463
|
|
|
472
464
|
message GetMedicalReviewRequest {
|
|
473
|
-
reserved 3;
|
|
474
465
|
string id = 1;
|
|
475
466
|
string doctor_id = 2;
|
|
476
467
|
}
|
|
@@ -567,11 +558,10 @@ message ListAppointmentSlotsResponse {
|
|
|
567
558
|
|
|
568
559
|
message ListAppointmentsRequest {
|
|
569
560
|
string doctor_id = 1;
|
|
570
|
-
|
|
571
|
-
optional string
|
|
572
|
-
optional string
|
|
573
|
-
|
|
574
|
-
int32 limit = 6;
|
|
561
|
+
optional string from = 2;
|
|
562
|
+
optional string to = 3;
|
|
563
|
+
optional string cursor = 4;
|
|
564
|
+
int32 limit = 5;
|
|
575
565
|
}
|
|
576
566
|
|
|
577
567
|
message ListAppointmentsResponse {
|