mirror of
https://github.com/Tribufu/TribufuJS
synced 2026-08-10 05:11:06 +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
53
src/models/ApplicationType.ts
Normal file
53
src/models/ApplicationType.ts
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const ApplicationType = {
|
||||
Application: 'application',
|
||||
Game: 'game'
|
||||
} as const;
|
||||
export type ApplicationType = typeof ApplicationType[keyof typeof ApplicationType];
|
||||
|
||||
|
||||
export function instanceOfApplicationType(value: any): boolean {
|
||||
for (const key in ApplicationType) {
|
||||
if (Object.prototype.hasOwnProperty.call(ApplicationType, key)) {
|
||||
if (ApplicationType[key as keyof typeof ApplicationType] === value) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function ApplicationTypeFromJSON(json: any): ApplicationType {
|
||||
return ApplicationTypeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApplicationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationType {
|
||||
return json as ApplicationType;
|
||||
}
|
||||
|
||||
export function ApplicationTypeToJSON(value?: ApplicationType | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function ApplicationTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ApplicationType {
|
||||
return value as ApplicationType;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue