@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.
@@ -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 = 2,
78
- MEDICAL_REVIEW_SCOPE_DONE = 3,
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;
@@ -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"] = 2] = "MEDICAL_REVIEW_SCOPE_IN_REVIEW";
97
- MedicalReviewScope[MedicalReviewScope["MEDICAL_REVIEW_SCOPE_DONE"] = 3] = "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;
@@ -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 = 2,
79
- MEDICAL_REVIEW_SCOPE_DONE = 3,
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;
@@ -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"] = 2] = "MEDICAL_REVIEW_SCOPE_IN_REVIEW";
99
- MedicalReviewScope[MedicalReviewScope["MEDICAL_REVIEW_SCOPE_DONE"] = 3] = "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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "6.87.0",
3
+ "version": "7.1.0",
4
4
  "description": "Protobuf contracts for CanDesk microservices",
5
5
  "author": {
6
6
  "name": "Alexander Schulz",
@@ -298,9 +298,8 @@ message StaffAccount {
298
298
  Role role = 3;
299
299
  string created_at = 4;
300
300
  bool is_active = 5;
301
- reserved 6;
302
- optional string last_active_at = 7;
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
@@ -27,8 +27,7 @@ message SendOtpRequest {
27
27
  }
28
28
 
29
29
  message SendOtpResponse {
30
- reserved 1;
31
- LoginMethod method = 2;
30
+ LoginMethod method = 1;
32
31
  }
33
32
 
34
33
  enum LoginMethod {
@@ -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
- reserved 4, 5;
184
- optional bool is_irradiated = 6;
185
- repeated string strain_slugs = 7;
186
- repeated PotencyLevel thc_levels = 8;
187
- repeated PotencyLevel cbd_levels = 9;
188
- optional PriceRange price = 10;
189
- optional int32 min_rating = 11;
190
- optional bool hide_sold_out = 12;
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
- reserved 6, 7;
270
- repeated StrainFacet strains = 8;
271
- repeated PotencyLevelFacet thc_levels = 9;
272
- repeated PotencyLevelFacet cbd_levels = 10;
273
- optional PriceBounds price = 11;
274
- repeated RatingFacet ratings = 12;
275
- int32 sold_out_count = 13;
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 {
@@ -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 = 2;
117
- MEDICAL_REVIEW_SCOPE_DONE = 3;
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
- reserved 25;
235
- optional string review_due_at = 26;
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
- reserved 2;
300
- optional string cursor = 3;
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
- reserved 2, 3, 4;
307
- optional string next_cursor = 5;
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 = 6;
440
- optional string from = 7;
441
- optional string to = 8;
442
- optional TreatmentType type = 9;
443
- optional MedicalReviewDecision decision = 10;
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 = 3;
461
- int32 done = 4;
462
- int32 overdue = 5;
463
- int32 decided_today = 6;
464
- int32 approved_today = 7;
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
- reserved 1, 2;
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
- reserved 2;
571
- optional string from = 3;
572
- optional string to = 4;
573
- optional string cursor = 5;
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 {