| @@ -2926,7 +2926,10 @@ components: | |||||
| type: string | type: string | ||||
| readOnly: true | readOnly: true | ||||
| user: | user: | ||||
| $ref: '#/components/schemas/User' | |||||
| type: object | |||||
| allOf: | |||||
| - | |||||
| $ref: '#/components/schemas/User' | |||||
| readOnly: true | readOnly: true | ||||
| responses: { } | responses: { } | ||||
| parameters: { } | parameters: { } | ||||
| @@ -1,5 +1,4 @@ | |||||
| .gitignore | .gitignore | ||||
| .openapi-generator-ignore | |||||
| README.md | README.md | ||||
| api.module.ts | api.module.ts | ||||
| api/api.ts | api/api.ts | ||||
| @@ -34,6 +33,7 @@ model/apiUsersGetCollection200Response.ts | |||||
| model/apiVesselsGetCollection200Response.ts | model/apiVesselsGetCollection200Response.ts | ||||
| model/apiZonesGetCollection200Response.ts | model/apiZonesGetCollection200Response.ts | ||||
| model/authResponse.ts | model/authResponse.ts | ||||
| model/authResponseUser.ts | |||||
| model/credentials.ts | model/credentials.ts | ||||
| model/location.ts | model/location.ts | ||||
| model/locationJsonld.ts | model/locationJsonld.ts | ||||
| @@ -9,7 +9,7 @@ | |||||
| * https://openapi-generator.tech | * https://openapi-generator.tech | ||||
| * Do not edit the class manually. | * Do not edit the class manually. | ||||
| */ | */ | ||||
| import { User } from './user'; | |||||
| import { AuthResponseUser } from './authResponseUser'; | |||||
| export interface AuthResponse { | export interface AuthResponse { | ||||
| @@ -19,6 +19,6 @@ export interface AuthResponse { | |||||
| readonly firstName?: string; | readonly firstName?: string; | ||||
| readonly lastName?: string; | readonly lastName?: string; | ||||
| roles?: Array<string>; | roles?: Array<string>; | ||||
| readonly user?: User; | |||||
| user?: AuthResponseUser; | |||||
| } | } | ||||
| @@ -0,0 +1,29 @@ | |||||
| /** | |||||
| * Imaq Platform | |||||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||||
| * | |||||
| * The version of the OpenAPI document: 1.0.0 | |||||
| * | |||||
| * | |||||
| * 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 AuthResponseUser { | |||||
| readonly dbId?: any | null; | |||||
| email: any | null; | |||||
| firstName: any | null; | |||||
| lastName: any | null; | |||||
| image?: any | null; | |||||
| readonly imageUrl?: any | null; | |||||
| readonly fullName?: any | null; | |||||
| /** | |||||
| * The plaintext password when being set or changed. | |||||
| */ | |||||
| password?: any | null; | |||||
| active?: any | null; | |||||
| readonly createdAt?: any | null; | |||||
| } | |||||
| @@ -13,6 +13,7 @@ export * from './apiUsersGetCollection200Response'; | |||||
| export * from './apiVesselsGetCollection200Response'; | export * from './apiVesselsGetCollection200Response'; | ||||
| export * from './apiZonesGetCollection200Response'; | export * from './apiZonesGetCollection200Response'; | ||||
| export * from './authResponse'; | export * from './authResponse'; | ||||
| export * from './authResponseUser'; | |||||
| export * from './credentials'; | export * from './credentials'; | ||||
| export * from './location'; | export * from './location'; | ||||
| export * from './locationJsonld'; | export * from './locationJsonld'; | ||||
| @@ -66,7 +66,10 @@ final class AuthDecorator implements OpenApiFactoryInterface | |||||
| 'readOnly' => true, | 'readOnly' => true, | ||||
| ], | ], | ||||
| 'user' => [ | 'user' => [ | ||||
| '$ref' => '#/components/schemas/User', // API Platform's automatisch generiertes Schema | |||||
| 'type' => 'object', | |||||
| 'allOf' => [ | |||||
| ['$ref' => '#/components/schemas/User'] | |||||
| ], | |||||
| 'readOnly' => true, | 'readOnly' => true, | ||||
| ], | ], | ||||
| ], | ], | ||||