mirror of
https://github.com/Tribufu/TribufuJS
synced 2026-08-09 12:51: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
55
src/models/GrantType.ts
Normal file
55
src/models/GrantType.ts
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
/* 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 GrantType = {
|
||||
AuthorizationCode: 'authorization_code',
|
||||
ClientCredentials: 'client_credentials',
|
||||
Password: 'password',
|
||||
RefreshToken: 'refresh_token'
|
||||
} as const;
|
||||
export type GrantType = typeof GrantType[keyof typeof GrantType];
|
||||
|
||||
|
||||
export function instanceOfGrantType(value: any): boolean {
|
||||
for (const key in GrantType) {
|
||||
if (Object.prototype.hasOwnProperty.call(GrantType, key)) {
|
||||
if (GrantType[key as keyof typeof GrantType] === value) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function GrantTypeFromJSON(json: any): GrantType {
|
||||
return GrantTypeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function GrantTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GrantType {
|
||||
return json as GrantType;
|
||||
}
|
||||
|
||||
export function GrantTypeToJSON(value?: GrantType | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function GrantTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): GrantType {
|
||||
return value as GrantType;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue