@candesk/contracts 6.44.0 → 6.45.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.
@@ -1,3 +1,4 @@
1
+ export * from './medication-wish-changed.interface';
1
2
  export * from './treatment.events';
2
3
  export * from './treatment-request-expired.interface';
3
4
  export * from './treatment-request-paid.interface';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./medication-wish-changed.interface"), exports);
17
18
  __exportStar(require("./treatment.events"), exports);
18
19
  __exportStar(require("./treatment-request-expired.interface"), exports);
19
20
  __exportStar(require("./treatment-request-paid.interface"), exports);
@@ -0,0 +1,5 @@
1
+ export interface MedicationWishChangedEvent {
2
+ eventId: string;
3
+ accountId: string;
4
+ number: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  export declare const TREATMENT_EVENTS: {
2
2
  readonly REQUEST_PAID: 'treatment.request.paid';
3
3
  readonly REQUEST_EXPIRED: 'treatment.request.expired';
4
+ readonly MEDICATION_WISH_CHANGED: 'treatment.medication-wish.changed';
4
5
  };
@@ -3,5 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TREATMENT_EVENTS = void 0;
4
4
  exports.TREATMENT_EVENTS = {
5
5
  REQUEST_PAID: 'treatment.request.paid',
6
- REQUEST_EXPIRED: 'treatment.request.expired'
6
+ REQUEST_EXPIRED: 'treatment.request.expired',
7
+ MEDICATION_WISH_CHANGED: 'treatment.medication-wish.changed'
7
8
  };
@@ -13,6 +13,7 @@ export declare enum NotificationType {
13
13
  NOTIFICATION_TYPE_TOTP_ENABLED = 9,
14
14
  NOTIFICATION_TYPE_TOTP_DISABLED = 10,
15
15
  NOTIFICATION_TYPE_TREATMENT_REQUEST_EXPIRED = 11,
16
+ NOTIFICATION_TYPE_MEDICATION_WISH_CHANGED = 12,
16
17
  UNRECOGNIZED = -1
17
18
  }
18
19
  export interface Notification {
@@ -23,5 +23,6 @@ var NotificationType;
23
23
  NotificationType[NotificationType["NOTIFICATION_TYPE_TOTP_ENABLED"] = 9] = "NOTIFICATION_TYPE_TOTP_ENABLED";
24
24
  NotificationType[NotificationType["NOTIFICATION_TYPE_TOTP_DISABLED"] = 10] = "NOTIFICATION_TYPE_TOTP_DISABLED";
25
25
  NotificationType[NotificationType["NOTIFICATION_TYPE_TREATMENT_REQUEST_EXPIRED"] = 11] = "NOTIFICATION_TYPE_TREATMENT_REQUEST_EXPIRED";
26
+ NotificationType[NotificationType["NOTIFICATION_TYPE_MEDICATION_WISH_CHANGED"] = 12] = "NOTIFICATION_TYPE_MEDICATION_WISH_CHANGED";
26
27
  NotificationType[NotificationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
27
28
  })(NotificationType || (exports.NotificationType = NotificationType = {}));
@@ -163,6 +163,13 @@ export interface UpdateTreatmentRequestRequest {
163
163
  export interface UpdateTreatmentRequestResponse {
164
164
  request: TreatmentRequest | undefined;
165
165
  }
166
+ export interface ChangeMedicationWishRequest {
167
+ id: string;
168
+ medicationWish: string;
169
+ }
170
+ export interface ChangeMedicationWishResponse {
171
+ request: TreatmentRequest | undefined;
172
+ }
166
173
  export interface DeleteTreatmentRequestRequest {
167
174
  userId: string;
168
175
  id: string;
@@ -187,6 +194,7 @@ export interface TreatmentService {
187
194
  listTreatmentRequests(request: ListTreatmentRequestsRequest): Promise<ListTreatmentRequestsResponse>;
188
195
  listAllTreatmentRequests(request: ListAllTreatmentRequestsRequest): Promise<ListAllTreatmentRequestsResponse>;
189
196
  updateTreatmentRequest(request: UpdateTreatmentRequestRequest): Promise<UpdateTreatmentRequestResponse>;
197
+ changeMedicationWish(request: ChangeMedicationWishRequest): Promise<ChangeMedicationWishResponse>;
190
198
  deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Promise<DeleteTreatmentRequestResponse>;
191
199
  startPayment(request: StartPaymentRequest): Promise<StartPaymentResponse>;
192
200
  }
@@ -14,6 +14,7 @@ export declare enum NotificationType {
14
14
  NOTIFICATION_TYPE_TOTP_ENABLED = 9,
15
15
  NOTIFICATION_TYPE_TOTP_DISABLED = 10,
16
16
  NOTIFICATION_TYPE_TREATMENT_REQUEST_EXPIRED = 11,
17
+ NOTIFICATION_TYPE_MEDICATION_WISH_CHANGED = 12,
17
18
  UNRECOGNIZED = -1
18
19
  }
19
20
  export interface Notification {
@@ -25,6 +25,7 @@ var NotificationType;
25
25
  NotificationType[NotificationType["NOTIFICATION_TYPE_TOTP_ENABLED"] = 9] = "NOTIFICATION_TYPE_TOTP_ENABLED";
26
26
  NotificationType[NotificationType["NOTIFICATION_TYPE_TOTP_DISABLED"] = 10] = "NOTIFICATION_TYPE_TOTP_DISABLED";
27
27
  NotificationType[NotificationType["NOTIFICATION_TYPE_TREATMENT_REQUEST_EXPIRED"] = 11] = "NOTIFICATION_TYPE_TREATMENT_REQUEST_EXPIRED";
28
+ NotificationType[NotificationType["NOTIFICATION_TYPE_MEDICATION_WISH_CHANGED"] = 12] = "NOTIFICATION_TYPE_MEDICATION_WISH_CHANGED";
28
29
  NotificationType[NotificationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
29
30
  })(NotificationType || (exports.NotificationType = NotificationType = {}));
30
31
  exports.NOTIFICATION_V1_PACKAGE_NAME = "notification.v1";
@@ -164,6 +164,13 @@ export interface UpdateTreatmentRequestRequest {
164
164
  export interface UpdateTreatmentRequestResponse {
165
165
  request: TreatmentRequest | undefined;
166
166
  }
167
+ export interface ChangeMedicationWishRequest {
168
+ id: string;
169
+ medicationWish: string;
170
+ }
171
+ export interface ChangeMedicationWishResponse {
172
+ request: TreatmentRequest | undefined;
173
+ }
167
174
  export interface DeleteTreatmentRequestRequest {
168
175
  userId: string;
169
176
  id: string;
@@ -189,6 +196,7 @@ export interface TreatmentServiceClient {
189
196
  listTreatmentRequests(request: ListTreatmentRequestsRequest): Observable<ListTreatmentRequestsResponse>;
190
197
  listAllTreatmentRequests(request: ListAllTreatmentRequestsRequest): Observable<ListAllTreatmentRequestsResponse>;
191
198
  updateTreatmentRequest(request: UpdateTreatmentRequestRequest): Observable<UpdateTreatmentRequestResponse>;
199
+ changeMedicationWish(request: ChangeMedicationWishRequest): Observable<ChangeMedicationWishResponse>;
192
200
  deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Observable<DeleteTreatmentRequestResponse>;
193
201
  startPayment(request: StartPaymentRequest): Observable<StartPaymentResponse>;
194
202
  }
@@ -202,6 +210,7 @@ export interface TreatmentServiceController {
202
210
  listTreatmentRequests(request: ListTreatmentRequestsRequest): Promise<ListTreatmentRequestsResponse> | Observable<ListTreatmentRequestsResponse> | ListTreatmentRequestsResponse;
203
211
  listAllTreatmentRequests(request: ListAllTreatmentRequestsRequest): Promise<ListAllTreatmentRequestsResponse> | Observable<ListAllTreatmentRequestsResponse> | ListAllTreatmentRequestsResponse;
204
212
  updateTreatmentRequest(request: UpdateTreatmentRequestRequest): Promise<UpdateTreatmentRequestResponse> | Observable<UpdateTreatmentRequestResponse> | UpdateTreatmentRequestResponse;
213
+ changeMedicationWish(request: ChangeMedicationWishRequest): Promise<ChangeMedicationWishResponse> | Observable<ChangeMedicationWishResponse> | ChangeMedicationWishResponse;
205
214
  deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Promise<DeleteTreatmentRequestResponse> | Observable<DeleteTreatmentRequestResponse> | DeleteTreatmentRequestResponse;
206
215
  startPayment(request: StartPaymentRequest): Promise<StartPaymentResponse> | Observable<StartPaymentResponse> | StartPaymentResponse;
207
216
  }
@@ -76,6 +76,7 @@ function TreatmentServiceControllerMethods() {
76
76
  "listTreatmentRequests",
77
77
  "listAllTreatmentRequests",
78
78
  "updateTreatmentRequest",
79
+ "changeMedicationWish",
79
80
  "deleteTreatmentRequest",
80
81
  "startPayment",
81
82
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "6.44.0",
3
+ "version": "6.45.0",
4
4
  "description": "Protobuf contracts for CanDesk microservices",
5
5
  "author": {
6
6
  "name": "Alexander Schulz",
@@ -21,6 +21,7 @@ enum NotificationType {
21
21
  NOTIFICATION_TYPE_TOTP_ENABLED = 9;
22
22
  NOTIFICATION_TYPE_TOTP_DISABLED = 10;
23
23
  NOTIFICATION_TYPE_TREATMENT_REQUEST_EXPIRED = 11;
24
+ NOTIFICATION_TYPE_MEDICATION_WISH_CHANGED = 12;
24
25
  }
25
26
 
26
27
  message Notification {
@@ -12,6 +12,7 @@ service TreatmentService {
12
12
  rpc ListTreatmentRequests (ListTreatmentRequestsRequest) returns (ListTreatmentRequestsResponse);
13
13
  rpc ListAllTreatmentRequests (ListAllTreatmentRequestsRequest) returns (ListAllTreatmentRequestsResponse);
14
14
  rpc UpdateTreatmentRequest (UpdateTreatmentRequestRequest) returns (UpdateTreatmentRequestResponse);
15
+ rpc ChangeMedicationWish (ChangeMedicationWishRequest) returns (ChangeMedicationWishResponse);
15
16
  rpc DeleteTreatmentRequest (DeleteTreatmentRequestRequest) returns (DeleteTreatmentRequestResponse);
16
17
  rpc StartPayment (StartPaymentRequest) returns (StartPaymentResponse);
17
18
  }
@@ -202,6 +203,15 @@ message UpdateTreatmentRequestResponse {
202
203
  TreatmentRequest request = 1;
203
204
  }
204
205
 
206
+ message ChangeMedicationWishRequest {
207
+ string id = 1;
208
+ string medication_wish = 2;
209
+ }
210
+
211
+ message ChangeMedicationWishResponse {
212
+ TreatmentRequest request = 1;
213
+ }
214
+
205
215
  message DeleteTreatmentRequestRequest {
206
216
  string user_id = 1;
207
217
  string id = 2;