@candesk/contracts 6.72.0 → 6.74.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.
@@ -7,3 +7,6 @@ export declare const RMQ_QUEUES: {
7
7
  readonly AUDIT: 'audit_queue';
8
8
  readonly REVIEWS: 'reviews_queue';
9
9
  };
10
+ export declare const RMQ_EXCHANGES: {
11
+ readonly MEDICAL_REVIEWS: 'medical_reviews';
12
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RMQ_QUEUES = void 0;
3
+ exports.RMQ_EXCHANGES = exports.RMQ_QUEUES = void 0;
4
4
  exports.RMQ_QUEUES = {
5
5
  NOTIFICATIONS: 'notifications_queue',
6
6
  USERS: 'users_queue',
@@ -10,3 +10,6 @@ exports.RMQ_QUEUES = {
10
10
  AUDIT: 'audit_queue',
11
11
  REVIEWS: 'reviews_queue'
12
12
  };
13
+ exports.RMQ_EXCHANGES = {
14
+ MEDICAL_REVIEWS: 'medical_reviews'
15
+ };
@@ -7,4 +7,5 @@ export declare const TREATMENT_EVENTS: {
7
7
  readonly REQUEST_REFUNDED: 'treatment.request.refunded';
8
8
  readonly REQUEST_APPROVED: 'treatment.request.approved';
9
9
  readonly REQUEST_REJECTED: 'treatment.request.rejected';
10
+ readonly MEDICAL_REVIEWS_CHANGED: 'treatment.medical-reviews.changed';
10
11
  };
@@ -9,5 +9,6 @@ exports.TREATMENT_EVENTS = {
9
9
  WITHDRAWAL_REJECTED: 'treatment.withdrawal.rejected',
10
10
  REQUEST_REFUNDED: 'treatment.request.refunded',
11
11
  REQUEST_APPROVED: 'treatment.request.approved',
12
- REQUEST_REJECTED: 'treatment.request.rejected'
12
+ REQUEST_REJECTED: 'treatment.request.rejected',
13
+ MEDICAL_REVIEWS_CHANGED: 'treatment.medical-reviews.changed'
13
14
  };
@@ -164,6 +164,7 @@ export interface TreatmentRequest {
164
164
  decidedAt?: string | undefined;
165
165
  rejectionReason?: MedicalRejectionReason | undefined;
166
166
  rejectionText?: string | undefined;
167
+ patientName?: string | undefined;
167
168
  }
168
169
  export interface PatientSnapshot {
169
170
  firstName: string;
@@ -319,6 +320,9 @@ export interface ListMedicalReviewsRequest {
319
320
  cursor?: string | undefined;
320
321
  limit: number;
321
322
  allDoctors?: boolean | undefined;
323
+ query?: string | undefined;
324
+ from?: string | undefined;
325
+ to?: string | undefined;
322
326
  }
323
327
  export interface ListMedicalReviewsResponse {
324
328
  requests: TreatmentRequest[];
@@ -165,6 +165,7 @@ export interface TreatmentRequest {
165
165
  decidedAt?: string | undefined;
166
166
  rejectionReason?: MedicalRejectionReason | undefined;
167
167
  rejectionText?: string | undefined;
168
+ patientName?: string | undefined;
168
169
  }
169
170
  export interface PatientSnapshot {
170
171
  firstName: string;
@@ -320,6 +321,9 @@ export interface ListMedicalReviewsRequest {
320
321
  cursor?: string | undefined;
321
322
  limit: number;
322
323
  allDoctors?: boolean | undefined;
324
+ query?: string | undefined;
325
+ from?: string | undefined;
326
+ to?: string | undefined;
323
327
  }
324
328
  export interface ListMedicalReviewsResponse {
325
329
  requests: TreatmentRequest[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "6.72.0",
3
+ "version": "6.74.0",
4
4
  "description": "Protobuf contracts for CanDesk microservices",
5
5
  "author": {
6
6
  "name": "Alexander Schulz",
@@ -200,6 +200,7 @@ message TreatmentRequest {
200
200
  optional string decided_at = 20;
201
201
  optional MedicalRejectionReason rejection_reason = 21;
202
202
  optional string rejection_text = 22;
203
+ optional string patient_name = 23;
203
204
  }
204
205
 
205
206
  message PatientSnapshot {
@@ -393,6 +394,9 @@ message ListMedicalReviewsRequest {
393
394
  optional string cursor = 3;
394
395
  int32 limit = 4;
395
396
  optional bool all_doctors = 5;
397
+ optional string query = 6;
398
+ optional string from = 7;
399
+ optional string to = 8;
396
400
  }
397
401
 
398
402
  message ListMedicalReviewsResponse {