feat(frontend/openapi): Generated Openapi client for frontend
Generated The API client using the openapi.json file generated from the services
This commit is contained in:
parent
08c910c193
commit
e8b0b7e310
78 changed files with 6075 additions and 0 deletions
94
frontend/src/api/generated/models/Login400Response.ts
Normal file
94
frontend/src/api/generated/models/Login400Response.ts
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* @fastify/swagger
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 9.6.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface Login400Response
|
||||
*/
|
||||
export interface Login400Response {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Login400Response
|
||||
*/
|
||||
kind: Login400ResponseKindEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Login400Response
|
||||
*/
|
||||
msg: Login400ResponseMsgEnum;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const Login400ResponseKindEnum = {
|
||||
Failed: 'failed'
|
||||
} as const;
|
||||
export type Login400ResponseKindEnum = typeof Login400ResponseKindEnum[keyof typeof Login400ResponseKindEnum];
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const Login400ResponseMsgEnum = {
|
||||
LoginFailedGeneric: 'login.failed.generic',
|
||||
LoginFailedInvalid: 'login.failed.invalid'
|
||||
} as const;
|
||||
export type Login400ResponseMsgEnum = typeof Login400ResponseMsgEnum[keyof typeof Login400ResponseMsgEnum];
|
||||
|
||||
|
||||
/**
|
||||
* Check if a given object implements the Login400Response interface.
|
||||
*/
|
||||
export function instanceOfLogin400Response(value: object): value is Login400Response {
|
||||
if (!('kind' in value) || value['kind'] === undefined) return false;
|
||||
if (!('msg' in value) || value['msg'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function Login400ResponseFromJSON(json: any): Login400Response {
|
||||
return Login400ResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function Login400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login400Response {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'kind': json['kind'],
|
||||
'msg': json['msg'],
|
||||
};
|
||||
}
|
||||
|
||||
export function Login400ResponseToJSON(json: any): Login400Response {
|
||||
return Login400ResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function Login400ResponseToJSONTyped(value?: Login400Response | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'kind': value['kind'],
|
||||
'msg': value['msg'],
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue