Skip to content

Commit

Permalink
FE new model generated + merged location onto confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
misslecter committed Jun 5, 2021
1 parent 43824be commit be31367
Show file tree
Hide file tree
Showing 43 changed files with 126 additions and 1,830 deletions.
1,634 changes: 0 additions & 1,634 deletions frontend/openapi.json

This file was deleted.

94 changes: 6 additions & 88 deletions frontend/src/app/generated/api/default.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -31,8 +31,8 @@ import {
Ok,
PatientDtoOut,
PatientRegistrationDtoIn,
PatientRegistrationResponseDtoOut,
PatientUpdateDtoIn,
PatientVaccinationSlotSelectionDtoIn,
PersonnelDtoOut,
QuestionDtoOut,
ServiceHealthDtoOut,
Expand Down Expand Up @@ -1176,88 +1176,6 @@ export class DefaultService {
);
}

/**
* Book a vaccination slot for given patient by given params. First available slot is selected. Filters by and clause. Empty values select ALL.
* @param id Filter by slot id.
* @param locationId Filter by location id.
* @param from Filter with from greater or equal to.
* @param to Filter with to lower or equal to.
* @param patientVaccinationSlotSelectionDtoIn
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public apiAdminVaccinationSlotsBookPost(id?: string, locationId?: string, from?: string, to?: string, patientVaccinationSlotSelectionDtoIn?: PatientVaccinationSlotSelectionDtoIn, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<VaccinationSlotDtoOut>;
public apiAdminVaccinationSlotsBookPost(id?: string, locationId?: string, from?: string, to?: string, patientVaccinationSlotSelectionDtoIn?: PatientVaccinationSlotSelectionDtoIn, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<VaccinationSlotDtoOut>>;
public apiAdminVaccinationSlotsBookPost(id?: string, locationId?: string, from?: string, to?: string, patientVaccinationSlotSelectionDtoIn?: PatientVaccinationSlotSelectionDtoIn, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<VaccinationSlotDtoOut>>;
public apiAdminVaccinationSlotsBookPost(id?: string, locationId?: string, from?: string, to?: string, patientVaccinationSlotSelectionDtoIn?: PatientVaccinationSlotSelectionDtoIn, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {

let queryParameters = new HttpParams({ encoder: this.encoder });
if (id !== undefined && id !== null) {
queryParameters = this.addToHttpParams(queryParameters,
<any>id, 'id');
}
if (locationId !== undefined && locationId !== null) {
queryParameters = this.addToHttpParams(queryParameters,
<any>locationId, 'locationId');
}
if (from !== undefined && from !== null) {
queryParameters = this.addToHttpParams(queryParameters,
<any>from, 'from');
}
if (to !== undefined && to !== null) {
queryParameters = this.addToHttpParams(queryParameters,
<any>to, 'to');
}

let headers = this.defaultHeaders;

let credential: string | undefined;
// authentication (jwtAuth) required
credential = this.configuration.lookupCredential('jwtAuth');
if (credential) {
headers = headers.set('Authorization', 'Bearer ' + credential);
}

let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (httpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/json'
];
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}


// to determine the Content-Type header
const consumes: string[] = [
'application/json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}

let responseType: 'text' | 'json' = 'json';
if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
}

return this.httpClient.post<VaccinationSlotDtoOut>(`${this.configuration.basePath}/api/admin/vaccination-slots/book`,
patientVaccinationSlotSelectionDtoIn,
{
params: queryParameters,
responseType: <any>responseType,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}

/**
* Get vaccination spots matching
* @param id Filter by slot id.
Expand Down Expand Up @@ -1532,9 +1450,9 @@ export class DefaultService {
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public apiPatientPost(captcha: string, patientRegistrationDtoIn?: PatientRegistrationDtoIn, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<VaccinationSlotDtoOut>;
public apiPatientPost(captcha: string, patientRegistrationDtoIn?: PatientRegistrationDtoIn, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<VaccinationSlotDtoOut>>;
public apiPatientPost(captcha: string, patientRegistrationDtoIn?: PatientRegistrationDtoIn, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<VaccinationSlotDtoOut>>;
public apiPatientPost(captcha: string, patientRegistrationDtoIn?: PatientRegistrationDtoIn, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<PatientRegistrationResponseDtoOut>;
public apiPatientPost(captcha: string, patientRegistrationDtoIn?: PatientRegistrationDtoIn, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<PatientRegistrationResponseDtoOut>>;
public apiPatientPost(captcha: string, patientRegistrationDtoIn?: PatientRegistrationDtoIn, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<PatientRegistrationResponseDtoOut>>;
public apiPatientPost(captcha: string, patientRegistrationDtoIn?: PatientRegistrationDtoIn, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
if (captcha === null || captcha === undefined) {
throw new Error('Required parameter captcha was null or undefined when calling apiPatientPost.');
Expand Down Expand Up @@ -1575,7 +1493,7 @@ export class DefaultService {
responseType = 'text';
}

return this.httpClient.post<VaccinationSlotDtoOut>(`${this.configuration.basePath}/api/patient`,
return this.httpClient.post<PatientRegistrationResponseDtoOut>(`${this.configuration.basePath}/api/patient`,
patientRegistrationDtoIn,
{
params: queryParameters,
Expand Down
14 changes: 7 additions & 7 deletions frontend/src/app/generated/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ export class Configuration {
return undefined;
}

const type = accepts.find((x: string) => this.isJsonMime(x));
if (type === undefined) {
return accepts[0];
}
return type;
const type = accepts.find((x: string) => this.isJsonMime(x));
if (type === undefined) {
return accepts[0];
}
return type;
}

/**
* Check if the given MIME is a JSON MIME.
/**
* Check if the given MIME is a JSON MIME.
* JSON MIME examples:
* application/json
* application/json; charset=UTF8
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/answerDtoIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/answerDtoOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/confirmationDtoIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/credentialsDtoIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -19,5 +19,6 @@ export interface DataCorrectnessConfirmationDetailDtoOut {
id: string;
notes?: string | null;
nurse?: PersonnelDtoOut;
patientId: string;
}

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/dataCorrectnessDtoIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/entityIdDtoOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/locationDtoIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/locationDtoOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/loginDtoIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export * from './nurseCreationDtoIn';
export * from './ok';
export * from './patientDtoOut';
export * from './patientRegistrationDtoIn';
export * from './patientRegistrationResponseDtoOut';
export * from './patientUpdateDtoIn';
export * from './patientVaccinationSlotSelectionDtoIn';
export * from './personnelDtoOut';
export * from './phoneNumberDtoIn';
export * from './questionDtoOut';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/nurseCreationDtoIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/ok.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/patientDtoOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { VaccinationSlotDtoOut } from './vaccinationSlotDtoOut';
import { LocationDtoOut } from './locationDtoOut';


export interface PatientRegistrationResponseDtoOut {
location: LocationDtoOut;
patientId: string;
slot: VaccinationSlotDtoOut;
}

2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/patientUpdateDtoIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/personnelDtoOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/generated/model/phoneNumberDtoIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: ae34d9c772e0524627921573940008b06e964a60
* The version of the OpenAPI document: development
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit be31367

Please sign in to comment.