-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b517bd5
commit 55f4f8c
Showing
8 changed files
with
281 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* EAS API | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: 1.0.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { mapValues } from '../runtime'; | ||
import type { DrawMetadata } from './DrawMetadata'; | ||
import { | ||
DrawMetadataFromJSON, | ||
DrawMetadataFromJSONTyped, | ||
DrawMetadataToJSON, | ||
} from './DrawMetadata'; | ||
import type { BaseFields } from './BaseFields'; | ||
import { | ||
BaseFieldsFromJSON, | ||
BaseFieldsFromJSONTyped, | ||
BaseFieldsToJSON, | ||
} from './BaseFields'; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface CreateLetterPayload | ||
*/ | ||
export interface CreateLetterPayload extends BaseFields { | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof CreateLetterPayload | ||
*/ | ||
numberOfResults: number; | ||
/** | ||
* | ||
* @type {boolean} | ||
* @memberof CreateLetterPayload | ||
*/ | ||
allowRepeatedResults: boolean; | ||
} | ||
|
||
|
||
|
||
/** | ||
* Check if a given object implements the CreateLetterPayload interface. | ||
*/ | ||
export function instanceOfCreateLetterPayload(value: object): value is CreateLetterPayload { | ||
if (!('numberOfResults' in value) || value['numberOfResults'] === undefined) return false; | ||
if (!('allowRepeatedResults' in value) || value['allowRepeatedResults'] === undefined) return false; | ||
return true; | ||
} | ||
|
||
export function CreateLetterPayloadFromJSON(json: any): CreateLetterPayload { | ||
return CreateLetterPayloadFromJSONTyped(json, false); | ||
} | ||
|
||
export function CreateLetterPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLetterPayload { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
...BaseFieldsFromJSONTyped(json, ignoreDiscriminator), | ||
'numberOfResults': json['number_of_results'], | ||
'allowRepeatedResults': json['allow_repeated_results'], | ||
}; | ||
} | ||
|
||
export function CreateLetterPayloadToJSON(value?: CreateLetterPayload | null): any { | ||
if (value == null) { | ||
return value; | ||
} | ||
return { | ||
...BaseFieldsToJSON(value), | ||
'number_of_results': value['numberOfResults'], | ||
'allow_repeated_results': value['allowRepeatedResults'], | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* EAS API | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: 1.0.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { mapValues } from '../runtime'; | ||
import type { Participant } from './Participant'; | ||
import { | ||
ParticipantFromJSON, | ||
ParticipantFromJSONTyped, | ||
ParticipantToJSON, | ||
} from './Participant'; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface GroupsFields | ||
*/ | ||
export interface GroupsFields { | ||
/** | ||
* | ||
* @type {Array<Participant>} | ||
* @memberof GroupsFields | ||
*/ | ||
participants: Array<Participant>; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof GroupsFields | ||
*/ | ||
numberOfGroups: number; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the GroupsFields interface. | ||
*/ | ||
export function instanceOfGroupsFields(value: object): value is GroupsFields { | ||
if (!('participants' in value) || value['participants'] === undefined) return false; | ||
if (!('numberOfGroups' in value) || value['numberOfGroups'] === undefined) return false; | ||
return true; | ||
} | ||
|
||
export function GroupsFieldsFromJSON(json: any): GroupsFields { | ||
return GroupsFieldsFromJSONTyped(json, false); | ||
} | ||
|
||
export function GroupsFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupsFields { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
|
||
'participants': ((json['participants'] as Array<any>).map(ParticipantFromJSON)), | ||
'numberOfGroups': json['number_of_groups'], | ||
}; | ||
} | ||
|
||
export function GroupsFieldsToJSON(value?: GroupsFields | null): any { | ||
if (value == null) { | ||
return value; | ||
} | ||
return { | ||
|
||
'participants': ((value['participants'] as Array<any>).map(ParticipantToJSON)), | ||
'number_of_groups': value['numberOfGroups'], | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* EAS API | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: 1.0.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { mapValues } from '../runtime'; | ||
/** | ||
* | ||
* @export | ||
* @interface LetterFields | ||
*/ | ||
export interface LetterFields { | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof LetterFields | ||
*/ | ||
numberOfResults: number; | ||
/** | ||
* | ||
* @type {boolean} | ||
* @memberof LetterFields | ||
*/ | ||
allowRepeatedResults: boolean; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the LetterFields interface. | ||
*/ | ||
export function instanceOfLetterFields(value: object): value is LetterFields { | ||
if (!('numberOfResults' in value) || value['numberOfResults'] === undefined) return false; | ||
if (!('allowRepeatedResults' in value) || value['allowRepeatedResults'] === undefined) return false; | ||
return true; | ||
} | ||
|
||
export function LetterFieldsFromJSON(json: any): LetterFields { | ||
return LetterFieldsFromJSONTyped(json, false); | ||
} | ||
|
||
export function LetterFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LetterFields { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
|
||
'numberOfResults': json['number_of_results'], | ||
'allowRepeatedResults': json['allow_repeated_results'], | ||
}; | ||
} | ||
|
||
export function LetterFieldsToJSON(value?: LetterFields | null): any { | ||
if (value == null) { | ||
return value; | ||
} | ||
return { | ||
|
||
'number_of_results': value['numberOfResults'], | ||
'allow_repeated_results': value['allowRepeatedResults'], | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.