@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.
@@ -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 {
@@ -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 {
@@ -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.0.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,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
- reserved 25;
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
- reserved 2;
300
- optional string cursor = 3;
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
- reserved 2, 3, 4;
307
- optional string next_cursor = 5;
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 = 6;
440
- optional string from = 7;
441
- optional string to = 8;
442
- optional TreatmentType type = 9;
443
- optional MedicalReviewDecision decision = 10;
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 = 3;
461
- int32 done = 4;
462
- int32 overdue = 5;
463
- int32 decided_today = 6;
464
- int32 approved_today = 7;
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
- reserved 1, 2;
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
- reserved 2;
571
- optional string from = 3;
572
- optional string to = 4;
573
- optional string cursor = 5;
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 {