Files
sdk-js/src/models/ClientType.ts
2025-12-27 10:02:16 -03:00

55 lines
1.3 KiB
TypeScript

/* tslint:disable */
/* eslint-disable */
/**
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.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;
}