95 lines
2.6 KiB
TypeScript
95 lines
2.6 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 ChangePassword400Response
|
|
*/
|
|
export interface ChangePassword400Response {
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ChangePassword400Response
|
|
*/
|
|
kind: ChangePassword400ResponseKindEnum;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ChangePassword400Response
|
|
*/
|
|
msg: ChangePassword400ResponseMsgEnum;
|
|
}
|
|
|
|
|
|
/**
|
|
* @export
|
|
*/
|
|
export const ChangePassword400ResponseKindEnum = {
|
|
Failed: 'failed'
|
|
} as const;
|
|
export type ChangePassword400ResponseKindEnum = typeof ChangePassword400ResponseKindEnum[keyof typeof ChangePassword400ResponseKindEnum];
|
|
|
|
/**
|
|
* @export
|
|
*/
|
|
export const ChangePassword400ResponseMsgEnum = {
|
|
ChangePasswordFailedToolong: 'changePassword.failed.toolong',
|
|
ChangePasswordFailedTooshort: 'changePassword.failed.tooshort',
|
|
ChangePasswordFailedInvalid: 'changePassword.failed.invalid'
|
|
} as const;
|
|
export type ChangePassword400ResponseMsgEnum = typeof ChangePassword400ResponseMsgEnum[keyof typeof ChangePassword400ResponseMsgEnum];
|
|
|
|
|
|
/**
|
|
* Check if a given object implements the ChangePassword400Response interface.
|
|
*/
|
|
export function instanceOfChangePassword400Response(value: object): value is ChangePassword400Response {
|
|
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
if (!('msg' in value) || value['msg'] === undefined) return false;
|
|
return true;
|
|
}
|
|
|
|
export function ChangePassword400ResponseFromJSON(json: any): ChangePassword400Response {
|
|
return ChangePassword400ResponseFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function ChangePassword400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangePassword400Response {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'kind': json['kind'],
|
|
'msg': json['msg'],
|
|
};
|
|
}
|
|
|
|
export function ChangePassword400ResponseToJSON(json: any): ChangePassword400Response {
|
|
return ChangePassword400ResponseToJSONTyped(json, false);
|
|
}
|
|
|
|
export function ChangePassword400ResponseToJSONTyped(value?: ChangePassword400Response | null, ignoreDiscriminator: boolean = false): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
|
|
return {
|
|
|
|
'kind': value['kind'],
|
|
'msg': value['msg'],
|
|
};
|
|
}
|
|
|