Skip to content

Commit

Permalink
Merge pull request #147 from mild-blue/regerate-stubs
Browse files Browse the repository at this point in the history
fixed FE due to BE changes
  • Loading branch information
LukasForst authored Mar 14, 2021
2 parents e35ce01 + a933a40 commit 28888da
Show file tree
Hide file tree
Showing 30 changed files with 415 additions and 293 deletions.
1 change: 1 addition & 0 deletions frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ module.exports = {
100,
1000,
401,
404,
2000
]
}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/app/generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export class AppModule {
}
```


### Set service base path

If different than the generated base path, during app bootstrap, you can provide the base path to your service.
Expand Down
416 changes: 264 additions & 152 deletions frontend/src/app/generated/api/default.service.ts

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions frontend/src/app/generated/encoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ export class CustomHttpParameterCodec implements HttpParameterCodec {
encodeKey(k: string): string {
return encodeURIComponent(k);
}

encodeValue(v: string): string {
return encodeURIComponent(v);
}

decodeKey(k: string): string {
return decodeURIComponent(k);
}

decodeValue(v: string): string {
return decodeURIComponent(v);
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/generated/model/answerDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: 0.0.1
* Contact: covid-vaxx@mild.blue
* The version of the OpenAPI document: 0.1.0
* Contact: support@mild.blue
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: 0.0.1
* Contact: covid-vaxx@mild.blue
* The version of the OpenAPI document: 0.1.0
* Contact: support@mild.blue
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export interface BearerTokenDtoOut {
token: string;
export interface ApplicationInformationDto {
version: string;
}

17 changes: 0 additions & 17 deletions frontend/src/app/generated/model/captchaVerificationDtoIn.ts

This file was deleted.

10 changes: 5 additions & 5 deletions frontend/src/app/generated/model/confirmationDtoIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: 0.0.1
* Contact: covid-vaxx@mild.blue
* The version of the OpenAPI document: 0.1.0
* Contact: support@mild.blue
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand All @@ -12,8 +12,8 @@


export interface ConfirmationDtoIn {
covid19VaccinationAgreement: boolean;
gdprAgreement: boolean;
healthStateDisclosureConfirmation: boolean;
covid19VaccinationAgreement: boolean;
gdprAgreement: boolean;
healthStateDisclosureConfirmation: boolean;
}

22 changes: 17 additions & 5 deletions frontend/src/app/generated/model/insuranceCompanyDetailsDtoOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: 0.0.1
* Contact: covid-vaxx@mild.blue
* The version of the OpenAPI document: 0.1.0
* Contact: support@mild.blue
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand All @@ -12,8 +12,20 @@


export interface InsuranceCompanyDetailsDtoOut {
code: number;
csFullName: string;
name: string;
code: InsuranceCompanyDetailsDtoOutCodeEnum;
csFullName: string;
name: string;
}

export enum InsuranceCompanyDetailsDtoOutCodeEnum {
Vzp = 'VZP',
Vozp = 'VOZP',
Cpzp = 'CPZP',
Ozp = 'OZP',
Zps = 'ZPS',
Zpmv = 'ZPMV',
Rbp = 'RBP'
};



4 changes: 2 additions & 2 deletions frontend/src/app/generated/model/loginDtoIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: 0.0.1
* Contact: covid-vaxx@mild.blue
* The version of the OpenAPI document: 0.1.0
* Contact: support@mild.blue
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
9 changes: 4 additions & 5 deletions frontend/src/app/generated/model/models.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
export * from './answerDto';
export * from './bearerTokenDtoOut';
export * from './captchaVerificationDtoIn';
export * from './applicationInformationDto';
export * from './confirmationDtoIn';
export * from './insuranceCompanyDetailsDtoOut';
export * from './loginDtoIn';
export * from './patientDeletedDtoOut';
export * from './patientDtoOut';
export * from './patientRegisteredDtoOut';
export * from './patientRegistrationDtoIn';
export * from './patientUpdateDtoIn';
export * from './questionDtoOut';
export * from './serviceHealthDtoOut';
export * from './userLoginResponseDtoOut';
export * from './userRegisteredDtoOut';
export * from './userRegistrationDtoIn';
export * from './versionDtoOut';
17 changes: 0 additions & 17 deletions frontend/src/app/generated/model/patientDeletedDtoOut.ts

This file was deleted.

16 changes: 8 additions & 8 deletions frontend/src/app/generated/model/patientDtoOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: 0.0.1
* Contact: covid-vaxx@mild.blue
* The version of the OpenAPI document: 0.1.0
* Contact: support@mild.blue
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand All @@ -22,18 +22,18 @@ export interface PatientDtoOut {
lastName: string;
personalNumber: string;
phoneNumber: string;
registrationEmailSent?: string | null;
registrationEmailSentOn?: string | null;
updated: string;
vaccinatedOn?: string | null;
}

export enum PatientDtoOutInsuranceCompanyEnum {
Czpz = 'CZPZ',
Ozp = 'OZP',
Rbp = 'RBP',
Vzp = 'VZP',
Vozp = 'VOZP',
Cpzp = 'CPZP',
Ozp = 'OZP',
Zps = 'ZPS',
Zpmv = 'ZPMV'
Zpmv = 'ZPMV',
Rbp = 'RBP'
};


Expand Down
17 changes: 0 additions & 17 deletions frontend/src/app/generated/model/patientRegisteredDtoOut.ts

This file was deleted.

13 changes: 6 additions & 7 deletions frontend/src/app/generated/model/patientRegistrationDtoIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: 0.0.1
* Contact: covid-vaxx@mild.blue
* The version of the OpenAPI document: 0.1.0
* Contact: support@mild.blue
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand All @@ -23,15 +23,14 @@ export interface PatientRegistrationDtoIn {
personalNumber: string;
phoneNumber: string;
}

export enum PatientRegistrationDtoInInsuranceCompanyEnum {
Cpzp = 'CPZP',
Ozp = 'OZP',
Rbp = 'RBP',
Vzp = 'VZP',
Vozp = 'VOZP',
Cpzp = 'CPZP',
Ozp = 'OZP',
Zps = 'ZPS',
Zpmv = 'ZPMV'
Zpmv = 'ZPMV',
Rbp = 'RBP'
};


Expand Down
37 changes: 37 additions & 0 deletions frontend/src/app/generated/model/patientUpdateDtoIn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: 0.1.0
* 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 { AnswerDto } from './answerDto';


export interface PatientUpdateDtoIn {
answers?: Array<AnswerDto> | null;
email?: string | null;
firstName?: string | null;
insuranceCompany?: PatientUpdateDtoInInsuranceCompanyEnum | null;
lastName?: string | null;
personalNumber?: string | null;
phoneNumber?: string | null;
vaccinatedOn?: string | null;
}

export enum PatientUpdateDtoInInsuranceCompanyEnum {
Vzp = 'VZP',
Vozp = 'VOZP',
Cpzp = 'CPZP',
Ozp = 'OZP',
Zps = 'ZPS',
Zpmv = 'ZPMV',
Rbp = 'RBP'
};



4 changes: 2 additions & 2 deletions frontend/src/app/generated/model/questionDtoOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: 0.0.1
* Contact: covid-vaxx@mild.blue
* The version of the OpenAPI document: 0.1.0
* Contact: support@mild.blue
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/generated/model/serviceHealthDtoOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: 0.0.1
* Contact: covid-vaxx@mild.blue
* The version of the OpenAPI document: 0.1.0
* Contact: support@mild.blue
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
25 changes: 25 additions & 0 deletions frontend/src/app/generated/model/userLoginResponseDtoOut.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: 0.1.0
* 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.
*/


export interface UserLoginResponseDtoOut {
role: UserLoginResponseDtoOutRoleEnum;
token: string;
}

export enum UserLoginResponseDtoOutRoleEnum {
Admin = 'ADMIN',
Doctor = 'DOCTOR'
};



Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: 0.0.1
* Contact: covid-vaxx@mild.blue
* The version of the OpenAPI document: 0.1.0
* Contact: support@mild.blue
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export interface VersionDtoOut {
version: string;
export interface UserRegisteredDtoOut {
id: string;
}

4 changes: 2 additions & 2 deletions frontend/src/app/generated/model/userRegistrationDtoIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Mild Blue - Covid Vaxx
* Covid Vaxx API
*
* The version of the OpenAPI document: 0.0.1
* Contact: covid-vaxx@mild.blue
* The version of the OpenAPI document: 0.1.0
* Contact: support@mild.blue
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Loading

0 comments on commit 28888da

Please sign in to comment.