mirror of
https://github.com/Tribufu/TribufuJS
synced 2026-08-09 12:51:05 +00:00
Release v1.2.0
This commit is contained in:
parent
1f73b2b509
commit
596fb5e642
55 changed files with 3692 additions and 1150 deletions
54
src/models/ClientType.ts
Normal file
54
src/models/ClientType.ts
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.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 ClientType = {
|
||||
Web: 'web',
|
||||
Desktop: 'desktop',
|
||||
Mobile: 'mobile'
|
||||
} as const;
|
||||
export type ClientType = typeof ClientType[keyof typeof ClientType];
|
||||
|
||||
|
||||
export function instanceOfClientType(value: any): boolean {
|
||||
for (const key in ClientType) {
|
||||
if (Object.prototype.hasOwnProperty.call(ClientType, key)) {
|
||||
if (ClientType[key as keyof typeof ClientType] === value) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function ClientTypeFromJSON(json: any): ClientType {
|
||||
return ClientTypeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientType {
|
||||
return json as ClientType;
|
||||
}
|
||||
|
||||
export function ClientTypeToJSON(value?: ClientType | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function ClientTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ClientType {
|
||||
return value as ClientType;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue