Skip to content

Commit 7431806

Browse files
committed
Use prettier to format the output. NB: It would be good to prevent prettier from joining lines
1 parent 576bab7 commit 7431806

26 files changed

+1057
-711
lines changed

snapshotTests/snapshot/infectionTracker/api.ts

Lines changed: 51 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,51 @@
44
* Infection Tracker - A case management system for tracking the spread of diseases
55
*
66
* The version of the OpenAPI document: 1.0.0-draft
7-
*
7+
*
88
*
99
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1010
* https://openapi-generator.tech
1111
* Do not edit the class manually.
1212
*/
1313

14-
1514
import {
16-
CaseWorkerDto,
17-
ExposureDto,
18-
InfectionDto,
19-
InfectionInformationDto,
20-
UserRoleDto,
15+
CaseWorkerDto,
16+
ExposureDto,
17+
InfectionDto,
18+
InfectionInformationDto,
19+
UserRoleDto,
2120
} from "./model";
2221

23-
import { BaseAPI } from './base';
22+
import { BaseAPI } from "./base";
2423

2524
/**
2625
* CaseWorkersApi - object-oriented interface
2726
*/
2827
export interface CaseWorkersApiInterface {
2928
/**
30-
*
29+
*
3130
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
3231
* @throws {HttpError}
3332
* @memberof CaseWorkersApi
3433
*/
3534
listCaseWorkers(): Promise<CaseWorkerDto>;
3635
/**
37-
*
36+
*
3837
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
3938
* @throws {HttpError}
4039
* @memberof CaseWorkersApi
4140
*/
42-
registerCaseWorker(params?: {
43-
caseWorkerDto?: CaseWorkerDto,
41+
registerCaseWorker(params?: {
42+
caseWorkerDto?: CaseWorkerDto;
4443
}): Promise<void>;
4544
}
4645

47-
4846
/**
4947
* CaseWorkersApi - object-oriented interface
5048
*/
5149
export class CaseWorkersApi extends BaseAPI implements CaseWorkersApiInterface {
5250
/**
53-
*
51+
*
5452
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
5553
* @throws {HttpError}
5654
*/
@@ -60,85 +58,81 @@ export class CaseWorkersApi extends BaseAPI implements CaseWorkersApiInterface {
6058
{},
6159
);
6260
}
63-
6461
/**
65-
*
62+
*
6663
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
6764
* @throws {HttpError}
6865
*/
69-
public async registerCaseWorker(params: {
70-
caseWorkerDto?: CaseWorkerDto,
66+
public async registerCaseWorker(params: {
67+
caseWorkerDto?: CaseWorkerDto;
7168
}): Promise<void> {
7269
return await this.POST(
7370
"/api/caseWorkers",
7471
{},
75-
{ body: params.caseWorkerDto, contentType: "application/json" },
72+
{ body: params.caseWorkerDto, contentType: "application/json" }
7673
);
7774
}
78-
7975
}
8076
/**
8177
* CasesApi - object-oriented interface
8278
*/
8379
export interface CasesApiInterface {
8480
/**
85-
*
81+
*
8682
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
8783
* @throws {HttpError}
8884
* @memberof CasesApi
8985
*/
90-
getCaseDetails(params?: {
91-
pathParams: { caseId: string, },
86+
getCaseDetails(params?: {
87+
pathParams: { caseId: string };
9288
}): Promise<InfectionDto>;
9389
/**
94-
*
90+
*
9591
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
9692
* @throws {HttpError}
9793
* @memberof CasesApi
9894
*/
9995
listCases(): Promise<InfectionDto>;
10096
/**
101-
*
97+
*
10298
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
10399
* @throws {HttpError}
104100
* @memberof CasesApi
105101
*/
106-
newCase(params?: {
107-
infectionInformationDto?: InfectionInformationDto,
102+
newCase(params?: {
103+
infectionInformationDto?: InfectionInformationDto;
108104
}): Promise<void>;
109105
/**
110-
*
106+
*
111107
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
112108
* @throws {HttpError}
113109
* @memberof CasesApi
114110
*/
115-
registerExposure(params?: {
116-
pathParams: { caseId: string, },
117-
exposureDto?: ExposureDto,
111+
registerExposure(params?: {
112+
pathParams: { caseId: string };
113+
exposureDto?: ExposureDto;
118114
}): Promise<void>;
119115
}
120116

121-
122117
/**
123118
* CasesApi - object-oriented interface
124119
*/
125120
export class CasesApi extends BaseAPI implements CasesApiInterface {
126121
/**
127-
*
122+
*
128123
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
129124
* @throws {HttpError}
130125
*/
131-
public async getCaseDetails(params: {
132-
pathParams: { caseId: string, },
126+
public async getCaseDetails(params: {
127+
pathParams: { caseId: string };
133128
}): Promise<InfectionDto> {
134129
return await this.GET(
135130
this.path("/api/cases/{caseId}", params.pathParams),
136131
{},
137132
);
138133
}
139-
140134
/**
141-
*
135+
*
142136
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
143137
* @throws {HttpError}
144138
*/
@@ -148,69 +142,65 @@ export class CasesApi extends BaseAPI implements CasesApiInterface {
148142
{},
149143
);
150144
}
151-
152145
/**
153-
*
146+
*
154147
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
155148
* @throws {HttpError}
156149
*/
157-
public async newCase(params: {
158-
infectionInformationDto?: InfectionInformationDto,
150+
public async newCase(params: {
151+
infectionInformationDto?: InfectionInformationDto;
159152
}): Promise<void> {
160153
return await this.POST(
161154
"/api/cases",
162155
{},
163-
{ body: params.infectionInformationDto, contentType: "application/json" },
156+
{ body: params.infectionInformationDto, contentType: "application/json" }
164157
);
165158
}
166-
167159
/**
168-
*
160+
*
169161
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
170162
* @throws {HttpError}
171163
*/
172-
public async registerExposure(params: {
173-
pathParams: { caseId: string, },
174-
exposureDto?: ExposureDto,
164+
public async registerExposure(params: {
165+
pathParams: { caseId: string };
166+
exposureDto?: ExposureDto;
175167
}): Promise<void> {
176168
return await this.POST(
177169
this.path("/api/cases/{caseId}/exposures", params.pathParams),
178170
{},
179-
{ body: params.exposureDto, contentType: "application/json" },
171+
{ body: params.exposureDto, contentType: "application/json" }
180172
);
181173
}
182-
183174
}
184175
/**
185176
* ExposuresApi - object-oriented interface
186177
*/
187178
export interface ExposuresApiInterface {
188179
/**
189-
*
180+
*
190181
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
191182
* @throws {HttpError}
192183
* @memberof ExposuresApi
193184
*/
194185
listExposures(): Promise<ExposureDto>;
195186
/**
196-
*
187+
*
197188
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
198189
* @throws {HttpError}
199190
* @memberof ExposuresApi
200191
*/
201-
updateExposure(params?: {
202-
pathParams: { exposureId: string, },
203-
exposureDto?: ExposureDto,
192+
updateExposure(params?: {
193+
pathParams: { exposureId: string };
194+
exposureDto?: ExposureDto;
204195
}): Promise<void>;
205196
}
206197

207-
208198
/**
209199
* ExposuresApi - object-oriented interface
210200
*/
211201
export class ExposuresApi extends BaseAPI implements ExposuresApiInterface {
212202
/**
213-
*
203+
*
214204
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
215205
* @throws {HttpError}
216206
*/
@@ -220,23 +210,19 @@ export class ExposuresApi extends BaseAPI implements ExposuresApiInterface {
220210
{},
221211
);
222212
}
223-
224213
/**
225-
*
214+
*
226215
* @param {*} [params] Request parameters, including pathParams, queryParams (including bodyParams) and http options.
227216
* @throws {HttpError}
228217
*/
229-
public async updateExposure(params: {
230-
pathParams: { exposureId: string, },
231-
exposureDto?: ExposureDto,
218+
public async updateExposure(params: {
219+
pathParams: { exposureId: string };
220+
exposureDto?: ExposureDto;
232221
}): Promise<void> {
233222
return await this.PUT(
234223
this.path("/api/exposures/{exposureId}", params.pathParams),
235224
{},
236-
{ body: params.exposureDto, contentType: "application/json" },
225+
{ body: params.exposureDto, contentType: "application/json" }
237226
);
238227
}
239-
240228
}
241-
242-

0 commit comments

Comments
 (0)