mirror of
https://github.com/tribufu/tribufu-js
synced 2026-05-06 14:57:26 +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/CodeChallengeMethod.ts
Normal file
53
src/models/CodeChallengeMethod.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 CodeChallengeMethod = {
|
||||
Plain: 'plain',
|
||||
S256: 'S256'
|
||||
} as const;
|
||||
export type CodeChallengeMethod = typeof CodeChallengeMethod[keyof typeof CodeChallengeMethod];
|
||||
|
||||
|
||||
export function instanceOfCodeChallengeMethod(value: any): boolean {
|
||||
for (const key in CodeChallengeMethod) {
|
||||
if (Object.prototype.hasOwnProperty.call(CodeChallengeMethod, key)) {
|
||||
if (CodeChallengeMethod[key as keyof typeof CodeChallengeMethod] === value) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function CodeChallengeMethodFromJSON(json: any): CodeChallengeMethod {
|
||||
return CodeChallengeMethodFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CodeChallengeMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodeChallengeMethod {
|
||||
return json as CodeChallengeMethod;
|
||||
}
|
||||
|
||||
export function CodeChallengeMethodToJSON(value?: CodeChallengeMethod | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function CodeChallengeMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): CodeChallengeMethod {
|
||||
return value as CodeChallengeMethod;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue