feat(chat): added base for chat service
added front html nigel in the mud route function with openapi - gen clean up the code a little after pull request
This commit is contained in:
parent
73a4946d17
commit
9ce9fa44e4
122 changed files with 9354 additions and 2615 deletions
104
frontend/src/api/generated/models/StatusOtp401Response.ts
Normal file
104
frontend/src/api/generated/models/StatusOtp401Response.ts
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
/* 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';
|
||||
import type { DisableOtp401Response } from './DisableOtp401Response';
|
||||
import {
|
||||
DisableOtp401ResponseFromJSON,
|
||||
DisableOtp401ResponseFromJSONTyped,
|
||||
DisableOtp401ResponseToJSON,
|
||||
DisableOtp401ResponseToJSONTyped,
|
||||
} from './DisableOtp401Response';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface StatusOtp401Response
|
||||
*/
|
||||
export interface StatusOtp401Response {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof StatusOtp401Response
|
||||
*/
|
||||
kind: StatusOtp401ResponseKindEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof StatusOtp401Response
|
||||
*/
|
||||
msg: StatusOtp401ResponseMsgEnum;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const StatusOtp401ResponseKindEnum = {
|
||||
NotLoggedIn: 'notLoggedIn'
|
||||
} as const;
|
||||
export type StatusOtp401ResponseKindEnum = typeof StatusOtp401ResponseKindEnum[keyof typeof StatusOtp401ResponseKindEnum];
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const StatusOtp401ResponseMsgEnum = {
|
||||
AuthNoCookie: 'auth.noCookie',
|
||||
AuthInvalidKind: 'auth.invalidKind',
|
||||
AuthNoUser: 'auth.noUser',
|
||||
AuthInvalid: 'auth.invalid'
|
||||
} as const;
|
||||
export type StatusOtp401ResponseMsgEnum = typeof StatusOtp401ResponseMsgEnum[keyof typeof StatusOtp401ResponseMsgEnum];
|
||||
|
||||
|
||||
/**
|
||||
* Check if a given object implements the StatusOtp401Response interface.
|
||||
*/
|
||||
export function instanceOfStatusOtp401Response(value: object): value is StatusOtp401Response {
|
||||
if (!('kind' in value) || value['kind'] === undefined) return false;
|
||||
if (!('msg' in value) || value['msg'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function StatusOtp401ResponseFromJSON(json: any): StatusOtp401Response {
|
||||
return StatusOtp401ResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function StatusOtp401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusOtp401Response {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'kind': json['kind'],
|
||||
'msg': json['msg'],
|
||||
};
|
||||
}
|
||||
|
||||
export function StatusOtp401ResponseToJSON(json: any): StatusOtp401Response {
|
||||
return StatusOtp401ResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function StatusOtp401ResponseToJSONTyped(value?: StatusOtp401Response | 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