-
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
66f61cc
commit 73eac11
Showing
11 changed files
with
499 additions
and
149 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
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 CreateLinkPayload | ||
*/ | ||
export interface CreateLinkPayload extends BaseFields { | ||
/** | ||
* | ||
* @type {Array<string>} | ||
* @memberof CreateLinkPayload | ||
*/ | ||
itemsSet1: Array<string>; | ||
/** | ||
* | ||
* @type {Array<string>} | ||
* @memberof CreateLinkPayload | ||
*/ | ||
itemsSet2: Array<string>; | ||
} | ||
|
||
|
||
|
||
/** | ||
* Check if a given object implements the CreateLinkPayload interface. | ||
*/ | ||
export function instanceOfCreateLinkPayload(value: object): value is CreateLinkPayload { | ||
if (!('itemsSet1' in value) || value['itemsSet1'] === undefined) return false; | ||
if (!('itemsSet2' in value) || value['itemsSet2'] === undefined) return false; | ||
return true; | ||
} | ||
|
||
export function CreateLinkPayloadFromJSON(json: any): CreateLinkPayload { | ||
return CreateLinkPayloadFromJSONTyped(json, false); | ||
} | ||
|
||
export function CreateLinkPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLinkPayload { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
...BaseFieldsFromJSONTyped(json, ignoreDiscriminator), | ||
'itemsSet1': json['items_set1'], | ||
'itemsSet2': json['items_set2'], | ||
}; | ||
} | ||
|
||
export function CreateLinkPayloadToJSON(value?: CreateLinkPayload | null): any { | ||
if (value == null) { | ||
return value; | ||
} | ||
return { | ||
...BaseFieldsToJSON(value), | ||
'items_set1': value['itemsSet1'], | ||
'items_set2': value['itemsSet2'], | ||
}; | ||
} | ||
|
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,82 @@ | ||
/* 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 { Participant } from './Participant'; | ||
import { | ||
ParticipantFromJSON, | ||
ParticipantFromJSONTyped, | ||
ParticipantToJSON, | ||
} from './Participant'; | ||
import type { BaseFields } from './BaseFields'; | ||
import { | ||
BaseFieldsFromJSON, | ||
BaseFieldsFromJSONTyped, | ||
BaseFieldsToJSON, | ||
} from './BaseFields'; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface CreateTournamentPayload | ||
*/ | ||
export interface CreateTournamentPayload extends BaseFields { | ||
/** | ||
* | ||
* @type {Array<Participant>} | ||
* @memberof CreateTournamentPayload | ||
*/ | ||
participants: Array<Participant>; | ||
} | ||
|
||
|
||
|
||
/** | ||
* Check if a given object implements the CreateTournamentPayload interface. | ||
*/ | ||
export function instanceOfCreateTournamentPayload(value: object): value is CreateTournamentPayload { | ||
if (!('participants' in value) || value['participants'] === undefined) return false; | ||
return true; | ||
} | ||
|
||
export function CreateTournamentPayloadFromJSON(json: any): CreateTournamentPayload { | ||
return CreateTournamentPayloadFromJSONTyped(json, false); | ||
} | ||
|
||
export function CreateTournamentPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTournamentPayload { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
...BaseFieldsFromJSONTyped(json, ignoreDiscriminator), | ||
'participants': ((json['participants'] as Array<any>).map(ParticipantFromJSON)), | ||
}; | ||
} | ||
|
||
export function CreateTournamentPayloadToJSON(value?: CreateTournamentPayload | null): any { | ||
if (value == null) { | ||
return value; | ||
} | ||
return { | ||
...BaseFieldsToJSON(value), | ||
'participants': ((value['participants'] as Array<any>).map(ParticipantToJSON)), | ||
}; | ||
} | ||
|
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.