4
4
* Infection Tracker - A case management system for tracking the spread of diseases
5
5
*
6
6
* The version of the OpenAPI document: 1.0.0-draft
7
- *
7
+ *
8
8
*
9
9
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
10
* https://openapi-generator.tech
11
11
* Do not edit the class manually.
12
12
*/
13
13
14
-
15
14
import {
16
- CaseWorkerDto ,
17
- ExposureDto ,
18
- InfectionDto ,
19
- InfectionInformationDto ,
20
- UserRoleDto ,
15
+ CaseWorkerDto ,
16
+ ExposureDto ,
17
+ InfectionDto ,
18
+ InfectionInformationDto ,
19
+ UserRoleDto ,
21
20
} from "./model" ;
22
21
23
- import { BaseAPI } from ' ./base' ;
22
+ import { BaseAPI } from " ./base" ;
24
23
25
24
/**
26
25
* CaseWorkersApi - object-oriented interface
27
26
*/
28
27
export interface CaseWorkersApiInterface {
29
28
/**
30
- *
29
+ *
31
30
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
32
31
* @throws {HttpError }
33
32
* @memberof CaseWorkersApi
34
33
*/
35
34
listCaseWorkers ( ) : Promise < CaseWorkerDto > ;
36
35
/**
37
- *
36
+ *
38
37
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
39
38
* @throws {HttpError }
40
39
* @memberof CaseWorkersApi
41
40
*/
42
- registerCaseWorker ( params ?: {
43
- caseWorkerDto ?: CaseWorkerDto ,
41
+ registerCaseWorker ( params ?: {
42
+ caseWorkerDto ?: CaseWorkerDto ;
44
43
} ) : Promise < void > ;
45
44
}
46
45
47
-
48
46
/**
49
47
* CaseWorkersApi - object-oriented interface
50
48
*/
51
49
export class CaseWorkersApi extends BaseAPI implements CaseWorkersApiInterface {
52
50
/**
53
- *
51
+ *
54
52
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
55
53
* @throws {HttpError }
56
54
*/
@@ -60,85 +58,81 @@ export class CaseWorkersApi extends BaseAPI implements CaseWorkersApiInterface {
60
58
{ } ,
61
59
) ;
62
60
}
63
-
64
61
/**
65
- *
62
+ *
66
63
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
67
64
* @throws {HttpError }
68
65
*/
69
- public async registerCaseWorker ( params : {
70
- caseWorkerDto ?: CaseWorkerDto ,
66
+ public async registerCaseWorker ( params : {
67
+ caseWorkerDto ?: CaseWorkerDto ;
71
68
} ) : Promise < void > {
72
69
return await this . POST (
73
70
"/api/caseWorkers" ,
74
71
{ } ,
75
- { body : params . caseWorkerDto , contentType : "application/json" } ,
72
+ { body : params . caseWorkerDto , contentType : "application/json" }
76
73
) ;
77
74
}
78
-
79
75
}
80
76
/**
81
77
* CasesApi - object-oriented interface
82
78
*/
83
79
export interface CasesApiInterface {
84
80
/**
85
- *
81
+ *
86
82
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
87
83
* @throws {HttpError }
88
84
* @memberof CasesApi
89
85
*/
90
- getCaseDetails ( params ?: {
91
- pathParams : { caseId : string , } ,
86
+ getCaseDetails ( params ?: {
87
+ pathParams : { caseId : string } ;
92
88
} ) : Promise < InfectionDto > ;
93
89
/**
94
- *
90
+ *
95
91
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
96
92
* @throws {HttpError }
97
93
* @memberof CasesApi
98
94
*/
99
95
listCases ( ) : Promise < InfectionDto > ;
100
96
/**
101
- *
97
+ *
102
98
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
103
99
* @throws {HttpError }
104
100
* @memberof CasesApi
105
101
*/
106
- newCase ( params ?: {
107
- infectionInformationDto ?: InfectionInformationDto ,
102
+ newCase ( params ?: {
103
+ infectionInformationDto ?: InfectionInformationDto ;
108
104
} ) : Promise < void > ;
109
105
/**
110
- *
106
+ *
111
107
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
112
108
* @throws {HttpError }
113
109
* @memberof CasesApi
114
110
*/
115
- registerExposure ( params ?: {
116
- pathParams : { caseId : string , } ,
117
- exposureDto ?: ExposureDto ,
111
+ registerExposure ( params ?: {
112
+ pathParams : { caseId : string } ;
113
+ exposureDto ?: ExposureDto ;
118
114
} ) : Promise < void > ;
119
115
}
120
116
121
-
122
117
/**
123
118
* CasesApi - object-oriented interface
124
119
*/
125
120
export class CasesApi extends BaseAPI implements CasesApiInterface {
126
121
/**
127
- *
122
+ *
128
123
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
129
124
* @throws {HttpError }
130
125
*/
131
- public async getCaseDetails ( params : {
132
- pathParams : { caseId : string , } ,
126
+ public async getCaseDetails ( params : {
127
+ pathParams : { caseId : string } ;
133
128
} ) : Promise < InfectionDto > {
134
129
return await this . GET (
135
130
this . path ( "/api/cases/{caseId}" , params . pathParams ) ,
136
131
{ } ,
137
132
) ;
138
133
}
139
-
140
134
/**
141
- *
135
+ *
142
136
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
143
137
* @throws {HttpError }
144
138
*/
@@ -148,69 +142,65 @@ export class CasesApi extends BaseAPI implements CasesApiInterface {
148
142
{ } ,
149
143
) ;
150
144
}
151
-
152
145
/**
153
- *
146
+ *
154
147
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
155
148
* @throws {HttpError }
156
149
*/
157
- public async newCase ( params : {
158
- infectionInformationDto ?: InfectionInformationDto ,
150
+ public async newCase ( params : {
151
+ infectionInformationDto ?: InfectionInformationDto ;
159
152
} ) : Promise < void > {
160
153
return await this . POST (
161
154
"/api/cases" ,
162
155
{ } ,
163
- { body : params . infectionInformationDto , contentType : "application/json" } ,
156
+ { body : params . infectionInformationDto , contentType : "application/json" }
164
157
) ;
165
158
}
166
-
167
159
/**
168
- *
160
+ *
169
161
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
170
162
* @throws {HttpError }
171
163
*/
172
- public async registerExposure ( params : {
173
- pathParams : { caseId : string , } ,
174
- exposureDto ?: ExposureDto ,
164
+ public async registerExposure ( params : {
165
+ pathParams : { caseId : string } ;
166
+ exposureDto ?: ExposureDto ;
175
167
} ) : Promise < void > {
176
168
return await this . POST (
177
169
this . path ( "/api/cases/{caseId}/exposures" , params . pathParams ) ,
178
170
{ } ,
179
- { body : params . exposureDto , contentType : "application/json" } ,
171
+ { body : params . exposureDto , contentType : "application/json" }
180
172
) ;
181
173
}
182
-
183
174
}
184
175
/**
185
176
* ExposuresApi - object-oriented interface
186
177
*/
187
178
export interface ExposuresApiInterface {
188
179
/**
189
- *
180
+ *
190
181
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
191
182
* @throws {HttpError }
192
183
* @memberof ExposuresApi
193
184
*/
194
185
listExposures ( ) : Promise < ExposureDto > ;
195
186
/**
196
- *
187
+ *
197
188
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
198
189
* @throws {HttpError }
199
190
* @memberof ExposuresApi
200
191
*/
201
- updateExposure ( params ?: {
202
- pathParams : { exposureId : string , } ,
203
- exposureDto ?: ExposureDto ,
192
+ updateExposure ( params ?: {
193
+ pathParams : { exposureId : string } ;
194
+ exposureDto ?: ExposureDto ;
204
195
} ) : Promise < void > ;
205
196
}
206
197
207
-
208
198
/**
209
199
* ExposuresApi - object-oriented interface
210
200
*/
211
201
export class ExposuresApi extends BaseAPI implements ExposuresApiInterface {
212
202
/**
213
- *
203
+ *
214
204
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
215
205
* @throws {HttpError }
216
206
*/
@@ -220,23 +210,19 @@ export class ExposuresApi extends BaseAPI implements ExposuresApiInterface {
220
210
{ } ,
221
211
) ;
222
212
}
223
-
224
213
/**
225
- *
214
+ *
226
215
* @param {* } [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
227
216
* @throws {HttpError }
228
217
*/
229
- public async updateExposure ( params : {
230
- pathParams : { exposureId : string , } ,
231
- exposureDto ?: ExposureDto ,
218
+ public async updateExposure ( params : {
219
+ pathParams : { exposureId : string } ;
220
+ exposureDto ?: ExposureDto ;
232
221
} ) : Promise < void > {
233
222
return await this . PUT (
234
223
this . path ( "/api/exposures/{exposureId}" , params . pathParams ) ,
235
224
{ } ,
236
- { body : params . exposureDto , contentType : "application/json" } ,
225
+ { body : params . exposureDto , contentType : "application/json" }
237
226
) ;
238
227
}
239
-
240
228
}
241
-
242
-
0 commit comments