@candesk/contracts 6.11.0 → 6.12.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,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.15.0
4
+ // protoc-gen-ts_proto v2.15.3
5
5
  // protoc v3.21.12
6
6
  // source: account.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/auth.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.15.0
4
+ // protoc-gen-ts_proto v2.15.3
5
5
  // protoc v3.21.12
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.15.0
4
+ // protoc-gen-ts_proto v2.15.3
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/empty.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/kyc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.15.0
4
+ // protoc-gen-ts_proto v2.15.3
5
5
  // protoc v3.21.12
6
6
  // source: kyc.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/media.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.15.0
4
+ // protoc-gen-ts_proto v2.15.3
5
5
  // protoc v3.21.12
6
6
  // source: media.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -86,6 +86,7 @@ export interface TreatmentRequest {
86
86
  currency: string;
87
87
  expiresAt?: string | undefined;
88
88
  createdAt: string;
89
+ medicationWish: string;
89
90
  }
90
91
  export interface GetQuestionnaireRequest {
91
92
  userId: string;
@@ -130,6 +131,20 @@ export interface ListTreatmentRequestsResponse {
130
131
  pageSize: number;
131
132
  total: number;
132
133
  }
134
+ export interface UpdateTreatmentRequestRequest {
135
+ userId: string;
136
+ id: string;
137
+ medicationWish: string;
138
+ }
139
+ export interface UpdateTreatmentRequestResponse {
140
+ request: TreatmentRequest | undefined;
141
+ }
142
+ export interface DeleteTreatmentRequestRequest {
143
+ userId: string;
144
+ id: string;
145
+ }
146
+ export interface DeleteTreatmentRequestResponse {
147
+ }
133
148
  export interface TreatmentService {
134
149
  getQuestionnaire(request: GetQuestionnaireRequest): Promise<GetQuestionnaireResponse>;
135
150
  saveQuestionnaire(request: SaveQuestionnaireRequest): Promise<SaveQuestionnaireResponse>;
@@ -137,4 +152,6 @@ export interface TreatmentService {
137
152
  createTreatmentRequest(request: CreateTreatmentRequestRequest): Promise<CreateTreatmentRequestResponse>;
138
153
  getTreatmentRequest(request: GetTreatmentRequestRequest): Promise<GetTreatmentRequestResponse>;
139
154
  listTreatmentRequests(request: ListTreatmentRequestsRequest): Promise<ListTreatmentRequestsResponse>;
155
+ updateTreatmentRequest(request: UpdateTreatmentRequestRequest): Promise<UpdateTreatmentRequestResponse>;
156
+ deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Promise<DeleteTreatmentRequestResponse>;
140
157
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.15.0
4
+ // protoc-gen-ts_proto v2.15.3
5
5
  // protoc v3.21.12
6
6
  // source: treatment.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/user.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.15.0
4
+ // protoc-gen-ts_proto v2.15.3
5
5
  // protoc v3.21.12
6
6
  // source: user.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.15.0
4
+ // protoc-gen-ts_proto v2.15.3
5
5
  // protoc v3.21.12
6
6
  // source: account.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/nest/auth.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.15.0
4
+ // protoc-gen-ts_proto v2.15.3
5
5
  // protoc v3.21.12
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.15.0
4
+ // protoc-gen-ts_proto v2.15.3
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/empty.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/nest/kyc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.15.0
4
+ // protoc-gen-ts_proto v2.15.3
5
5
  // protoc v3.21.12
6
6
  // source: kyc.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.15.0
4
+ // protoc-gen-ts_proto v2.15.3
5
5
  // protoc v3.21.12
6
6
  // source: media.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -87,6 +87,7 @@ export interface TreatmentRequest {
87
87
  currency: string;
88
88
  expiresAt?: string | undefined;
89
89
  createdAt: string;
90
+ medicationWish: string;
90
91
  }
91
92
  export interface GetQuestionnaireRequest {
92
93
  userId: string;
@@ -131,6 +132,20 @@ export interface ListTreatmentRequestsResponse {
131
132
  pageSize: number;
132
133
  total: number;
133
134
  }
135
+ export interface UpdateTreatmentRequestRequest {
136
+ userId: string;
137
+ id: string;
138
+ medicationWish: string;
139
+ }
140
+ export interface UpdateTreatmentRequestResponse {
141
+ request: TreatmentRequest | undefined;
142
+ }
143
+ export interface DeleteTreatmentRequestRequest {
144
+ userId: string;
145
+ id: string;
146
+ }
147
+ export interface DeleteTreatmentRequestResponse {
148
+ }
134
149
  export declare const TREATMENT_V1_PACKAGE_NAME = "treatment.v1";
135
150
  export interface TreatmentServiceClient {
136
151
  getQuestionnaire(request: GetQuestionnaireRequest): Observable<GetQuestionnaireResponse>;
@@ -139,6 +154,8 @@ export interface TreatmentServiceClient {
139
154
  createTreatmentRequest(request: CreateTreatmentRequestRequest): Observable<CreateTreatmentRequestResponse>;
140
155
  getTreatmentRequest(request: GetTreatmentRequestRequest): Observable<GetTreatmentRequestResponse>;
141
156
  listTreatmentRequests(request: ListTreatmentRequestsRequest): Observable<ListTreatmentRequestsResponse>;
157
+ updateTreatmentRequest(request: UpdateTreatmentRequestRequest): Observable<UpdateTreatmentRequestResponse>;
158
+ deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Observable<DeleteTreatmentRequestResponse>;
142
159
  }
143
160
  export interface TreatmentServiceController {
144
161
  getQuestionnaire(request: GetQuestionnaireRequest): Promise<GetQuestionnaireResponse> | Observable<GetQuestionnaireResponse> | GetQuestionnaireResponse;
@@ -147,6 +164,8 @@ export interface TreatmentServiceController {
147
164
  createTreatmentRequest(request: CreateTreatmentRequestRequest): Promise<CreateTreatmentRequestResponse> | Observable<CreateTreatmentRequestResponse> | CreateTreatmentRequestResponse;
148
165
  getTreatmentRequest(request: GetTreatmentRequestRequest): Promise<GetTreatmentRequestResponse> | Observable<GetTreatmentRequestResponse> | GetTreatmentRequestResponse;
149
166
  listTreatmentRequests(request: ListTreatmentRequestsRequest): Promise<ListTreatmentRequestsResponse> | Observable<ListTreatmentRequestsResponse> | ListTreatmentRequestsResponse;
167
+ updateTreatmentRequest(request: UpdateTreatmentRequestRequest): Promise<UpdateTreatmentRequestResponse> | Observable<UpdateTreatmentRequestResponse> | UpdateTreatmentRequestResponse;
168
+ deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Promise<DeleteTreatmentRequestResponse> | Observable<DeleteTreatmentRequestResponse> | DeleteTreatmentRequestResponse;
150
169
  }
151
170
  export declare function TreatmentServiceControllerMethods(): (constructor: Function) => void;
152
171
  export declare const TREATMENT_SERVICE_NAME = "TreatmentService";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.15.0
4
+ // protoc-gen-ts_proto v2.15.3
5
5
  // protoc v3.21.12
6
6
  // source: treatment.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -70,6 +70,8 @@ function TreatmentServiceControllerMethods() {
70
70
  "createTreatmentRequest",
71
71
  "getTreatmentRequest",
72
72
  "listTreatmentRequests",
73
+ "updateTreatmentRequest",
74
+ "deleteTreatmentRequest",
73
75
  ];
74
76
  for (const method of grpcMethods) {
75
77
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
package/dist/nest/user.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.15.0
4
+ // protoc-gen-ts_proto v2.15.3
5
5
  // protoc v3.21.12
6
6
  // source: user.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "6.11.0",
3
+ "version": "6.12.0",
4
4
  "description": "Protobuf contracts for CanDesk microservices",
5
5
  "author": {
6
6
  "name": "Alexander Schulz",
@@ -9,6 +9,8 @@ service TreatmentService {
9
9
  rpc CreateTreatmentRequest (CreateTreatmentRequestRequest) returns (CreateTreatmentRequestResponse);
10
10
  rpc GetTreatmentRequest (GetTreatmentRequestRequest) returns (GetTreatmentRequestResponse);
11
11
  rpc ListTreatmentRequests (ListTreatmentRequestsRequest) returns (ListTreatmentRequestsResponse);
12
+ rpc UpdateTreatmentRequest (UpdateTreatmentRequestRequest) returns (UpdateTreatmentRequestResponse);
13
+ rpc DeleteTreatmentRequest (DeleteTreatmentRequestRequest) returns (DeleteTreatmentRequestResponse);
12
14
  }
13
15
 
14
16
  enum QuestionnaireStatus {
@@ -101,6 +103,7 @@ message TreatmentRequest {
101
103
  string currency = 6;
102
104
  optional string expires_at = 7;
103
105
  string created_at = 8;
106
+ string medication_wish = 9;
104
107
  }
105
108
 
106
109
  message GetQuestionnaireRequest {
@@ -156,3 +159,20 @@ message ListTreatmentRequestsResponse {
156
159
  int32 page_size = 3;
157
160
  int32 total = 4;
158
161
  }
162
+
163
+ message UpdateTreatmentRequestRequest {
164
+ string user_id = 1;
165
+ string id = 2;
166
+ string medication_wish = 3;
167
+ }
168
+
169
+ message UpdateTreatmentRequestResponse {
170
+ TreatmentRequest request = 1;
171
+ }
172
+
173
+ message DeleteTreatmentRequestRequest {
174
+ string user_id = 1;
175
+ string id = 2;
176
+ }
177
+
178
+ message DeleteTreatmentRequestResponse {}