added front html nigel in the mud route function with openapi - gen clean up the code a little after pull request
93 lines
2.3 KiB
TypeScript
93 lines
2.3 KiB
TypeScript
/* 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.1
|
|
*
|
|
*
|
|
* 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 Logout200Response
|
|
*/
|
|
export interface Logout200Response {
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof Logout200Response
|
|
*/
|
|
kind: Logout200ResponseKindEnum;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof Logout200Response
|
|
*/
|
|
msg: Logout200ResponseMsgEnum;
|
|
}
|
|
|
|
|
|
/**
|
|
* @export
|
|
*/
|
|
export const Logout200ResponseKindEnum = {
|
|
Success: 'success'
|
|
} as const;
|
|
export type Logout200ResponseKindEnum = typeof Logout200ResponseKindEnum[keyof typeof Logout200ResponseKindEnum];
|
|
|
|
/**
|
|
* @export
|
|
*/
|
|
export const Logout200ResponseMsgEnum = {
|
|
LogoutSuccess: 'logout.success'
|
|
} as const;
|
|
export type Logout200ResponseMsgEnum = typeof Logout200ResponseMsgEnum[keyof typeof Logout200ResponseMsgEnum];
|
|
|
|
|
|
/**
|
|
* Check if a given object implements the Logout200Response interface.
|
|
*/
|
|
export function instanceOfLogout200Response(value: object): value is Logout200Response {
|
|
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
if (!('msg' in value) || value['msg'] === undefined) return false;
|
|
return true;
|
|
}
|
|
|
|
export function Logout200ResponseFromJSON(json: any): Logout200Response {
|
|
return Logout200ResponseFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function Logout200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Logout200Response {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'kind': json['kind'],
|
|
'msg': json['msg'],
|
|
};
|
|
}
|
|
|
|
export function Logout200ResponseToJSON(json: any): Logout200Response {
|
|
return Logout200ResponseToJSONTyped(json, false);
|
|
}
|
|
|
|
export function Logout200ResponseToJSONTyped(value?: Logout200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
|
|
return {
|
|
|
|
'kind': value['kind'],
|
|
'msg': value['msg'],
|
|
};
|
|
}
|
|
|