mirror of
https://github.com/Tribufu/TribufuJS
synced 2026-08-10 13:21:05 +00:00
Generate code with openapi-generator (#5)
This commit is contained in:
parent
1a8ffe89bc
commit
be21a2496e
67 changed files with 8992 additions and 3492 deletions
91
src/models/RegisterRequest.ts
Normal file
91
src/models/RegisterRequest.ts
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* 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 RegisterRequest
|
||||
*/
|
||||
export interface RegisterRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RegisterRequest
|
||||
*/
|
||||
uuid?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RegisterRequest
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RegisterRequest
|
||||
*/
|
||||
email?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RegisterRequest
|
||||
*/
|
||||
password: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the RegisterRequest interface.
|
||||
*/
|
||||
export function instanceOfRegisterRequest(value: object): value is RegisterRequest {
|
||||
if (!('name' in value) || value['name'] === undefined) return false;
|
||||
if (!('password' in value) || value['password'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function RegisterRequestFromJSON(json: any): RegisterRequest {
|
||||
return RegisterRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
||||
'name': json['name'],
|
||||
'email': json['email'] == null ? undefined : json['email'],
|
||||
'password': json['password'],
|
||||
};
|
||||
}
|
||||
|
||||
export function RegisterRequestToJSON(json: any): RegisterRequest {
|
||||
return RegisterRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RegisterRequestToJSONTyped(value?: RegisterRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'uuid': value['uuid'],
|
||||
'name': value['name'],
|
||||
'email': value['email'],
|
||||
'password': value['password'],
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue