mirror of
https://github.com/Tribufu/TribufuJS
synced 2026-08-08 20:31: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
54
src/models/GroupRank.ts
Normal file
54
src/models/GroupRank.ts
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/* 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 GroupRank = {
|
||||
Member: 'member',
|
||||
Leader: 'leader',
|
||||
Owner: 'owner'
|
||||
} as const;
|
||||
export type GroupRank = typeof GroupRank[keyof typeof GroupRank];
|
||||
|
||||
|
||||
export function instanceOfGroupRank(value: any): boolean {
|
||||
for (const key in GroupRank) {
|
||||
if (Object.prototype.hasOwnProperty.call(GroupRank, key)) {
|
||||
if (GroupRank[key as keyof typeof GroupRank] === value) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function GroupRankFromJSON(json: any): GroupRank {
|
||||
return GroupRankFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function GroupRankFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupRank {
|
||||
return json as GroupRank;
|
||||
}
|
||||
|
||||
export function GroupRankToJSON(value?: GroupRank | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function GroupRankToJSONTyped(value: any, ignoreDiscriminator: boolean): GroupRank {
|
||||
return value as GroupRank;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue