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
110
frontend/src/api/generated/models/StatusOtp200ResponseAnyOf.ts
Normal file
110
frontend/src/api/generated/models/StatusOtp200ResponseAnyOf.ts
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
/* 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';
|
||||
import type { EnableOtp200ResponsePayload } from './EnableOtp200ResponsePayload';
|
||||
import {
|
||||
EnableOtp200ResponsePayloadFromJSON,
|
||||
EnableOtp200ResponsePayloadFromJSONTyped,
|
||||
EnableOtp200ResponsePayloadToJSON,
|
||||
EnableOtp200ResponsePayloadToJSONTyped,
|
||||
} from './EnableOtp200ResponsePayload';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface StatusOtp200ResponseAnyOf
|
||||
*/
|
||||
export interface StatusOtp200ResponseAnyOf {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof StatusOtp200ResponseAnyOf
|
||||
*/
|
||||
kind: StatusOtp200ResponseAnyOfKindEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof StatusOtp200ResponseAnyOf
|
||||
*/
|
||||
msg: StatusOtp200ResponseAnyOfMsgEnum;
|
||||
/**
|
||||
*
|
||||
* @type {EnableOtp200ResponsePayload}
|
||||
* @memberof StatusOtp200ResponseAnyOf
|
||||
*/
|
||||
payload: EnableOtp200ResponsePayload;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const StatusOtp200ResponseAnyOfKindEnum = {
|
||||
Success: 'success'
|
||||
} as const;
|
||||
export type StatusOtp200ResponseAnyOfKindEnum = typeof StatusOtp200ResponseAnyOfKindEnum[keyof typeof StatusOtp200ResponseAnyOfKindEnum];
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const StatusOtp200ResponseAnyOfMsgEnum = {
|
||||
StatusOtpSuccessEnabled: 'statusOtp.success.enabled'
|
||||
} as const;
|
||||
export type StatusOtp200ResponseAnyOfMsgEnum = typeof StatusOtp200ResponseAnyOfMsgEnum[keyof typeof StatusOtp200ResponseAnyOfMsgEnum];
|
||||
|
||||
|
||||
/**
|
||||
* Check if a given object implements the StatusOtp200ResponseAnyOf interface.
|
||||
*/
|
||||
export function instanceOfStatusOtp200ResponseAnyOf(value: object): value is StatusOtp200ResponseAnyOf {
|
||||
if (!('kind' in value) || value['kind'] === undefined) return false;
|
||||
if (!('msg' in value) || value['msg'] === undefined) return false;
|
||||
if (!('payload' in value) || value['payload'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function StatusOtp200ResponseAnyOfFromJSON(json: any): StatusOtp200ResponseAnyOf {
|
||||
return StatusOtp200ResponseAnyOfFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function StatusOtp200ResponseAnyOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusOtp200ResponseAnyOf {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'kind': json['kind'],
|
||||
'msg': json['msg'],
|
||||
'payload': EnableOtp200ResponsePayloadFromJSON(json['payload']),
|
||||
};
|
||||
}
|
||||
|
||||
export function StatusOtp200ResponseAnyOfToJSON(json: any): StatusOtp200ResponseAnyOf {
|
||||
return StatusOtp200ResponseAnyOfToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function StatusOtp200ResponseAnyOfToJSONTyped(value?: StatusOtp200ResponseAnyOf | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'kind': value['kind'],
|
||||
'msg': value['msg'],
|
||||
'payload': EnableOtp200ResponsePayloadToJSON(value['payload']),
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue