@candesk/contracts 6.87.0 → 7.0.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 +2 -2
- package/dist/gen/treatment.js +2 -2
- package/dist/nest/treatment.d.ts +2 -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 +22 -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 {
|
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 {
|
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,7 @@ 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 review_due_at = 26;
|
|
232
|
+
optional string review_due_at = 25;
|
|
236
233
|
}
|
|
237
234
|
|
|
238
235
|
message PatientSnapshot {
|
|
@@ -296,16 +293,14 @@ message GetTreatmentRequestResponse {
|
|
|
296
293
|
|
|
297
294
|
message ListTreatmentRequestsRequest {
|
|
298
295
|
string user_id = 1;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
int32 limit = 4;
|
|
296
|
+
optional string cursor = 2;
|
|
297
|
+
int32 limit = 3;
|
|
302
298
|
}
|
|
303
299
|
|
|
304
300
|
message ListTreatmentRequestsResponse {
|
|
305
301
|
repeated TreatmentRequest requests = 1;
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
int32 total = 6;
|
|
302
|
+
optional string next_cursor = 2;
|
|
303
|
+
int32 total = 3;
|
|
309
304
|
}
|
|
310
305
|
|
|
311
306
|
message GetTreatmentSummaryRequest {
|
|
@@ -431,16 +426,15 @@ message RejectWithdrawalResponse {
|
|
|
431
426
|
}
|
|
432
427
|
|
|
433
428
|
message ListMedicalReviewsRequest {
|
|
434
|
-
reserved 5;
|
|
435
429
|
string doctor_id = 1;
|
|
436
430
|
MedicalReviewScope scope = 2;
|
|
437
431
|
optional string cursor = 3;
|
|
438
432
|
int32 limit = 4;
|
|
439
|
-
optional string query =
|
|
440
|
-
optional string from =
|
|
441
|
-
optional string to =
|
|
442
|
-
optional TreatmentType type =
|
|
443
|
-
optional MedicalReviewDecision decision =
|
|
433
|
+
optional string query = 5;
|
|
434
|
+
optional string from = 6;
|
|
435
|
+
optional string to = 7;
|
|
436
|
+
optional TreatmentType type = 8;
|
|
437
|
+
optional MedicalReviewDecision decision = 9;
|
|
444
438
|
}
|
|
445
439
|
|
|
446
440
|
message ListMedicalReviewsResponse {
|
|
@@ -450,27 +444,23 @@ message ListMedicalReviewsResponse {
|
|
|
450
444
|
}
|
|
451
445
|
|
|
452
446
|
message CountMedicalReviewsRequest {
|
|
453
|
-
reserved 2;
|
|
454
447
|
string doctor_id = 1;
|
|
455
448
|
}
|
|
456
449
|
|
|
457
450
|
message MedicalReviewCount {
|
|
458
|
-
reserved 2;
|
|
459
451
|
TreatmentType type = 1;
|
|
460
|
-
int32 in_review =
|
|
461
|
-
int32 done =
|
|
462
|
-
int32 overdue =
|
|
463
|
-
int32 decided_today =
|
|
464
|
-
int32 approved_today =
|
|
452
|
+
int32 in_review = 2;
|
|
453
|
+
int32 done = 3;
|
|
454
|
+
int32 overdue = 4;
|
|
455
|
+
int32 decided_today = 5;
|
|
456
|
+
int32 approved_today = 6;
|
|
465
457
|
}
|
|
466
458
|
|
|
467
459
|
message CountMedicalReviewsResponse {
|
|
468
|
-
|
|
469
|
-
repeated MedicalReviewCount counts = 3;
|
|
460
|
+
repeated MedicalReviewCount counts = 1;
|
|
470
461
|
}
|
|
471
462
|
|
|
472
463
|
message GetMedicalReviewRequest {
|
|
473
|
-
reserved 3;
|
|
474
464
|
string id = 1;
|
|
475
465
|
string doctor_id = 2;
|
|
476
466
|
}
|
|
@@ -567,11 +557,10 @@ message ListAppointmentSlotsResponse {
|
|
|
567
557
|
|
|
568
558
|
message ListAppointmentsRequest {
|
|
569
559
|
string doctor_id = 1;
|
|
570
|
-
|
|
571
|
-
optional string
|
|
572
|
-
optional string
|
|
573
|
-
|
|
574
|
-
int32 limit = 6;
|
|
560
|
+
optional string from = 2;
|
|
561
|
+
optional string to = 3;
|
|
562
|
+
optional string cursor = 4;
|
|
563
|
+
int32 limit = 5;
|
|
575
564
|
}
|
|
576
565
|
|
|
577
566
|
message ListAppointmentsResponse {
|