From 73eac1175d99b0f1aa2fc9b733717118844c2bb6 Mon Sep 17 00:00:00 2001 From: David Naranjo Date: Sat, 31 Aug 2024 12:55:26 +0200 Subject: [PATCH] Update LinkSets draw --- sdk/.openapi-generator/FILES | 4 + sdk/src/apis/LinkApi.ts | 15 +- sdk/src/apis/TournamentApi.ts | 15 +- sdk/src/models/CreateLinkPayload.ts | 85 +++++++ sdk/src/models/CreateTournamentPayload.ts | 82 +++++++ sdk/src/models/Link.ts | 15 +- sdk/src/models/LinkFields.ts | 70 ++++++ sdk/src/models/Tournament.ts | 5 +- sdk/src/models/TournamentFields.ts | 68 ++++++ sdk/src/models/index.ts | 4 + swagger.yaml | 285 ++++++++++++---------- 11 files changed, 499 insertions(+), 149 deletions(-) create mode 100644 sdk/src/models/CreateLinkPayload.ts create mode 100644 sdk/src/models/CreateTournamentPayload.ts create mode 100644 sdk/src/models/LinkFields.ts create mode 100644 sdk/src/models/TournamentFields.ts diff --git a/sdk/.openapi-generator/FILES b/sdk/.openapi-generator/FILES index f7828a35..8a5929cb 100644 --- a/sdk/.openapi-generator/FILES +++ b/sdk/.openapi-generator/FILES @@ -27,7 +27,9 @@ src/models/Coin.ts src/models/CoinResult.ts src/models/CreateGroupsPayload.ts src/models/CreateLetterPayload.ts +src/models/CreateLinkPayload.ts src/models/CreateRandomNumberPayload.ts +src/models/CreateTournamentPayload.ts src/models/DrawMetadata.ts src/models/DrawReTossPayload.ts src/models/DrawTossPayload.ts @@ -42,6 +44,7 @@ src/models/Letter.ts src/models/LetterFields.ts src/models/LetterResult.ts src/models/Link.ts +src/models/LinkFields.ts src/models/LinkResult.ts src/models/LinkResultAllOfValue.ts src/models/Lottery.ts @@ -77,6 +80,7 @@ src/models/TiktokResult.ts src/models/TiktokResultAllOfComment.ts src/models/TiktokResultAllOfValue.ts src/models/Tournament.ts +src/models/TournamentFields.ts src/models/TournamentResult.ts src/models/TournamentResultAllOfValue.ts src/models/index.ts diff --git a/sdk/src/apis/LinkApi.ts b/sdk/src/apis/LinkApi.ts index b4933214..c1c95fbb 100644 --- a/sdk/src/apis/LinkApi.ts +++ b/sdk/src/apis/LinkApi.ts @@ -15,11 +15,14 @@ import * as runtime from '../runtime'; import type { + CreateLinkPayload, DrawTossPayload, Link, LinkResult, } from '../models/index'; import { + CreateLinkPayloadFromJSON, + CreateLinkPayloadToJSON, DrawTossPayloadFromJSON, DrawTossPayloadToJSON, LinkFromJSON, @@ -29,7 +32,7 @@ import { } from '../models/index'; export interface LinkCreateRequest { - link: Link; + createLinkPayload: CreateLinkPayload; } export interface LinkReadRequest { @@ -50,7 +53,7 @@ export interface LinkTossRequest { export interface LinkApiInterface { /** * - * @param {Link} link + * @param {CreateLinkPayload} createLinkPayload * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LinkApiInterface @@ -98,10 +101,10 @@ export class LinkApi extends runtime.BaseAPI implements LinkApiInterface { /** */ async linkCreateRaw(requestParameters: LinkCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['link'] == null) { + if (requestParameters['createLinkPayload'] == null) { throw new runtime.RequiredError( - 'link', - 'Required parameter "link" was null or undefined when calling linkCreate().' + 'createLinkPayload', + 'Required parameter "createLinkPayload" was null or undefined when calling linkCreate().' ); } @@ -116,7 +119,7 @@ export class LinkApi extends runtime.BaseAPI implements LinkApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: LinkToJSON(requestParameters['link']), + body: CreateLinkPayloadToJSON(requestParameters['createLinkPayload']), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => LinkFromJSON(jsonValue)); diff --git a/sdk/src/apis/TournamentApi.ts b/sdk/src/apis/TournamentApi.ts index f52d5428..8daadfd5 100644 --- a/sdk/src/apis/TournamentApi.ts +++ b/sdk/src/apis/TournamentApi.ts @@ -15,12 +15,15 @@ import * as runtime from '../runtime'; import type { + CreateTournamentPayload, DrawTossPayload, Participant, Tournament, TournamentResult, } from '../models/index'; import { + CreateTournamentPayloadFromJSON, + CreateTournamentPayloadToJSON, DrawTossPayloadFromJSON, DrawTossPayloadToJSON, ParticipantFromJSON, @@ -32,7 +35,7 @@ import { } from '../models/index'; export interface TournamentCreateRequest { - tournament: Tournament; + createTournamentPayload: CreateTournamentPayload; } export interface TournamentParticipantsAddRequest { @@ -58,7 +61,7 @@ export interface TournamentTossRequest { export interface TournamentApiInterface { /** * - * @param {Tournament} tournament + * @param {CreateTournamentPayload} createTournamentPayload * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApiInterface @@ -120,10 +123,10 @@ export class TournamentApi extends runtime.BaseAPI implements TournamentApiInter /** */ async tournamentCreateRaw(requestParameters: TournamentCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['tournament'] == null) { + if (requestParameters['createTournamentPayload'] == null) { throw new runtime.RequiredError( - 'tournament', - 'Required parameter "tournament" was null or undefined when calling tournamentCreate().' + 'createTournamentPayload', + 'Required parameter "createTournamentPayload" was null or undefined when calling tournamentCreate().' ); } @@ -138,7 +141,7 @@ export class TournamentApi extends runtime.BaseAPI implements TournamentApiInter method: 'POST', headers: headerParameters, query: queryParameters, - body: TournamentToJSON(requestParameters['tournament']), + body: CreateTournamentPayloadToJSON(requestParameters['createTournamentPayload']), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => TournamentFromJSON(jsonValue)); diff --git a/sdk/src/models/CreateLinkPayload.ts b/sdk/src/models/CreateLinkPayload.ts new file mode 100644 index 00000000..22fec92e --- /dev/null +++ b/sdk/src/models/CreateLinkPayload.ts @@ -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} + * @memberof CreateLinkPayload + */ + itemsSet1: Array; + /** + * + * @type {Array} + * @memberof CreateLinkPayload + */ + itemsSet2: Array; +} + + + +/** + * 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'], + }; +} + diff --git a/sdk/src/models/CreateTournamentPayload.ts b/sdk/src/models/CreateTournamentPayload.ts new file mode 100644 index 00000000..4d230fd2 --- /dev/null +++ b/sdk/src/models/CreateTournamentPayload.ts @@ -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} + * @memberof CreateTournamentPayload + */ + participants: Array; +} + + + +/** + * 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).map(ParticipantFromJSON)), + }; +} + +export function CreateTournamentPayloadToJSON(value?: CreateTournamentPayload | null): any { + if (value == null) { + return value; + } + return { + ...BaseFieldsToJSON(value), + 'participants': ((value['participants'] as Array).map(ParticipantToJSON)), + }; +} + diff --git a/sdk/src/models/Link.ts b/sdk/src/models/Link.ts index 8c56c85d..9c879d53 100644 --- a/sdk/src/models/Link.ts +++ b/sdk/src/models/Link.ts @@ -43,19 +43,19 @@ export interface Link extends BaseDraw { * @type {Array} * @memberof Link */ - itemsSet1?: Array; + itemsSet1: Array; /** * * @type {Array} * @memberof Link */ - itemsSet2?: Array; + itemsSet2: Array; /** * * @type {Array} * @memberof Link */ - readonly results?: Array; + readonly results: Array; } @@ -64,6 +64,9 @@ export interface Link extends BaseDraw { * Check if a given object implements the Link interface. */ export function instanceOfLink(value: object): value is Link { + if (!('itemsSet1' in value) || value['itemsSet1'] === undefined) return false; + if (!('itemsSet2' in value) || value['itemsSet2'] === undefined) return false; + if (!('results' in value) || value['results'] === undefined) return false; return true; } @@ -77,9 +80,9 @@ export function LinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Link } return { ...BaseDrawFromJSONTyped(json, ignoreDiscriminator), - 'itemsSet1': json['items_set1'] == null ? undefined : json['items_set1'], - 'itemsSet2': json['items_set2'] == null ? undefined : json['items_set2'], - 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(LinkResultFromJSON)), + 'itemsSet1': json['items_set1'], + 'itemsSet2': json['items_set2'], + 'results': ((json['results'] as Array).map(LinkResultFromJSON)), }; } diff --git a/sdk/src/models/LinkFields.ts b/sdk/src/models/LinkFields.ts new file mode 100644 index 00000000..0c213a6a --- /dev/null +++ b/sdk/src/models/LinkFields.ts @@ -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 LinkFields + */ +export interface LinkFields { + /** + * + * @type {Array} + * @memberof LinkFields + */ + itemsSet1: Array; + /** + * + * @type {Array} + * @memberof LinkFields + */ + itemsSet2: Array; +} + +/** + * Check if a given object implements the LinkFields interface. + */ +export function instanceOfLinkFields(value: object): value is LinkFields { + if (!('itemsSet1' in value) || value['itemsSet1'] === undefined) return false; + if (!('itemsSet2' in value) || value['itemsSet2'] === undefined) return false; + return true; +} + +export function LinkFieldsFromJSON(json: any): LinkFields { + return LinkFieldsFromJSONTyped(json, false); +} + +export function LinkFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkFields { + if (json == null) { + return json; + } + return { + + 'itemsSet1': json['items_set1'], + 'itemsSet2': json['items_set2'], + }; +} + +export function LinkFieldsToJSON(value?: LinkFields | null): any { + if (value == null) { + return value; + } + return { + + 'items_set1': value['itemsSet1'], + 'items_set2': value['itemsSet2'], + }; +} + diff --git a/sdk/src/models/Tournament.ts b/sdk/src/models/Tournament.ts index 75475564..a7b8a894 100644 --- a/sdk/src/models/Tournament.ts +++ b/sdk/src/models/Tournament.ts @@ -55,7 +55,7 @@ export interface Tournament extends BaseDraw { * @type {Array} * @memberof Tournament */ - readonly results?: Array; + readonly results: Array; } @@ -65,6 +65,7 @@ export interface Tournament extends BaseDraw { */ export function instanceOfTournament(value: object): value is Tournament { if (!('participants' in value) || value['participants'] === undefined) return false; + if (!('results' in value) || value['results'] === undefined) return false; return true; } @@ -79,7 +80,7 @@ export function TournamentFromJSONTyped(json: any, ignoreDiscriminator: boolean) return { ...BaseDrawFromJSONTyped(json, ignoreDiscriminator), 'participants': ((json['participants'] as Array).map(ParticipantFromJSON)), - 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(TournamentResultFromJSON)), + 'results': ((json['results'] as Array).map(TournamentResultFromJSON)), }; } diff --git a/sdk/src/models/TournamentFields.ts b/sdk/src/models/TournamentFields.ts new file mode 100644 index 00000000..d0c32f05 --- /dev/null +++ b/sdk/src/models/TournamentFields.ts @@ -0,0 +1,68 @@ +/* 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 TournamentFields + */ +export interface TournamentFields { + /** + * + * @type {Array} + * @memberof TournamentFields + */ + participants: Array; +} + +/** + * Check if a given object implements the TournamentFields interface. + */ +export function instanceOfTournamentFields(value: object): value is TournamentFields { + if (!('participants' in value) || value['participants'] === undefined) return false; + return true; +} + +export function TournamentFieldsFromJSON(json: any): TournamentFields { + return TournamentFieldsFromJSONTyped(json, false); +} + +export function TournamentFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TournamentFields { + if (json == null) { + return json; + } + return { + + 'participants': ((json['participants'] as Array).map(ParticipantFromJSON)), + }; +} + +export function TournamentFieldsToJSON(value?: TournamentFields | null): any { + if (value == null) { + return value; + } + return { + + 'participants': ((value['participants'] as Array).map(ParticipantToJSON)), + }; +} + diff --git a/sdk/src/models/index.ts b/sdk/src/models/index.ts index 56798d4e..c4e01a83 100644 --- a/sdk/src/models/index.ts +++ b/sdk/src/models/index.ts @@ -8,7 +8,9 @@ export * from './Coin'; export * from './CoinResult'; export * from './CreateGroupsPayload'; export * from './CreateLetterPayload'; +export * from './CreateLinkPayload'; export * from './CreateRandomNumberPayload'; +export * from './CreateTournamentPayload'; export * from './DrawMetadata'; export * from './DrawReTossPayload'; export * from './DrawTossPayload'; @@ -23,6 +25,7 @@ export * from './Letter'; export * from './LetterFields'; export * from './LetterResult'; export * from './Link'; +export * from './LinkFields'; export * from './LinkResult'; export * from './LinkResultAllOfValue'; export * from './Lottery'; @@ -58,5 +61,6 @@ export * from './TiktokResult'; export * from './TiktokResultAllOfComment'; export * from './TiktokResultAllOfValue'; export * from './Tournament'; +export * from './TournamentFields'; export * from './TournamentResult'; export * from './TournamentResultAllOfValue'; diff --git a/swagger.yaml b/swagger.yaml index 5782f30d..a1906223 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -21,7 +21,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tournament' + $ref: '#/components/schemas/CreateTournamentPayload' required: true parameters: [] '/tournament/{id}/': @@ -565,7 +565,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Link' + $ref: '#/components/schemas/CreateLinkPayload' required: true parameters: [] '/link/{id}/': @@ -1142,26 +1142,6 @@ components: items: $ref: '#/components/schemas/TiktokResult' readOnly: true - Link: - allOf: - - $ref: '#/components/schemas/BaseDraw' - - type: object - required: - - items - properties: - items_set1: - type: array - items: - type: string - items_set2: - type: array - items: - type: string - results: - type: array - items: - $ref: '#/components/schemas/LinkResult' - readOnly: true Shifts: allOf: - $ref: '#/components/schemas/BaseDraw' @@ -1193,57 +1173,84 @@ components: items: $ref: '#/components/schemas/ShiftsResult' readOnly: true - Tournament: + + CreateGroupsPayload: + allOf: + - $ref: '#/components/schemas/BaseFields' + - $ref: '#/components/schemas/GroupsFields' + CreateLetterPayload: + allOf: + - $ref: '#/components/schemas/BaseFields' + - $ref: '#/components/schemas/LetterFields' + CreateRandomNumberPayload: + allOf: + - $ref: '#/components/schemas/BaseFields' + - $ref: '#/components/schemas/RandomNumberFields' + CreateTournamentPayload: + allOf: + - $ref: '#/components/schemas/BaseFields' + - $ref: '#/components/schemas/TournamentFields' + CreateLinkPayload: + allOf: + - $ref: '#/components/schemas/BaseFields' + - $ref: '#/components/schemas/LinkFields' + + Groups: allOf: - $ref: '#/components/schemas/BaseDraw' + - $ref: '#/components/schemas/GroupsFields' - type: object required: - - participants + - resutls properties: - participants: + results: type: array items: - $ref: '#/components/schemas/Participant' + $ref: '#/components/schemas/GroupsResult' + readOnly: true + RandomNumber: + allOf: + - $ref: '#/components/schemas/BaseDraw' + - $ref: '#/components/schemas/RandomNumberFields' + - type: object + required: + - results + properties: results: type: array items: - $ref: '#/components/schemas/TournamentResult' + $ref: '#/components/schemas/RandomNumberResult' readOnly: true - GroupsFields: + Letter: allOf: + - $ref: '#/components/schemas/BaseDraw' + - $ref: '#/components/schemas/LetterFields' - type: object required: - - participants - - number_of_groups + - results properties: - participants: + results: type: array items: - $ref: '#/components/schemas/Participant' - number_of_groups: - type: integer - - CreateGroupsPayload: - allOf: - - $ref: '#/components/schemas/BaseFields' - - $ref: '#/components/schemas/GroupsFields' - Groups: + $ref: '#/components/schemas/LetterResult' + readOnly: true + Tournament: allOf: - $ref: '#/components/schemas/BaseDraw' - - $ref: '#/components/schemas/GroupsFields' + - $ref: '#/components/schemas/TournamentFields' - type: object required: - - resutls + - results properties: results: type: array items: - $ref: '#/components/schemas/GroupsResult' + $ref: '#/components/schemas/TournamentResult' readOnly: true - RandomNumber: + Link: allOf: - $ref: '#/components/schemas/BaseDraw' - - $ref: '#/components/schemas/RandomNumberFields' + - $ref: '#/components/schemas/LinkFields' - type: object required: - results @@ -1251,8 +1258,9 @@ components: results: type: array items: - $ref: '#/components/schemas/RandomNumberResult' + $ref: '#/components/schemas/LinkResult' readOnly: true + LetterFields: allOf: - type: object @@ -1285,27 +1293,116 @@ components: allow_repeated_results: type: boolean default: true - CreateLetterPayload: + GroupsFields: allOf: - - $ref: '#/components/schemas/BaseFields' - - $ref: '#/components/schemas/LetterFields' - CreateRandomNumberPayload: + - type: object + required: + - participants + - number_of_groups + properties: + participants: + type: array + items: + $ref: '#/components/schemas/Participant' + number_of_groups: + type: integer + TournamentFields: allOf: - - $ref: '#/components/schemas/BaseFields' - - $ref: '#/components/schemas/RandomNumberFields' - Letter: + - type: object + required: + - participants + properties: + participants: + type: array + items: + $ref: '#/components/schemas/Participant' + LinkFields: allOf: - - $ref: '#/components/schemas/BaseDraw' - - $ref: '#/components/schemas/LetterFields' - type: object required: - - results + - items_set1 + - items_set2 properties: - results: + items_set1: type: array items: - $ref: '#/components/schemas/LetterResult' - readOnly: true + type: string + items_set2: + type: array + items: + type: string + + GroupsResult: + allOf: + - $ref: '#/components/schemas/BaseResult' + - type: object + properties: + value: + nullable: true + type: array + items: + type: array + items: + $ref: '#/components/schemas/Participant' + RandomNumberResult: + allOf: + - $ref: '#/components/schemas/BaseResult' + - type: object + properties: + value: + nullable: true + type: array + items: + type: integer + LetterResult: + allOf: + - $ref: '#/components/schemas/BaseResult' + - type: object + properties: + value: + nullable: true + type: array + items: + type: string + TournamentResult: + allOf: + - $ref: '#/components/schemas/BaseResult' + - type: object + properties: + value: + nullable: true + type: array + items: + type: object + properties: + id: + type: string + participants: + type: array + items: + $ref: '#/components/schemas/Participant' + score: + type: string + winner_id: + type: string + next_match_id: + type: string + LinkResult: + allOf: + - $ref: '#/components/schemas/BaseResult' + - type: object + properties: + value: + nullable: true + type: array + items: + type: object + properties: + element1: + type: string + element2: + type: string + Coin: allOf: - $ref: '#/components/schemas/BaseDraw' @@ -1425,21 +1522,6 @@ components: type: array items: $ref: '#/components/schemas/Participant' - LinkResult: - allOf: - - $ref: '#/components/schemas/BaseResult' - - type: object - properties: - value: - nullable: true - type: array - items: - type: object - properties: - element1: - type: string - element2: - type: string LotteryResult: allOf: - $ref: '#/components/schemas/BaseResult' @@ -1450,61 +1532,6 @@ components: type: array items: $ref: '#/components/schemas/Participant' - TournamentResult: - allOf: - - $ref: '#/components/schemas/BaseResult' - - type: object - properties: - value: - nullable: true - type: array - items: - type: object - properties: - id: - type: string - participants: - type: array - items: - $ref: '#/components/schemas/Participant' - score: - type: string - winner_id: - type: string - next_match_id: - type: string - GroupsResult: - allOf: - - $ref: '#/components/schemas/BaseResult' - - type: object - properties: - value: - nullable: true - type: array - items: - type: array - items: - $ref: '#/components/schemas/Participant' - RandomNumberResult: - allOf: - - $ref: '#/components/schemas/BaseResult' - - type: object - properties: - value: - nullable: true - type: array - items: - type: integer - LetterResult: - allOf: - - $ref: '#/components/schemas/BaseResult' - - type: object - properties: - value: - nullable: true - type: array - items: - type: string SpinnerResult: allOf: - $ref: '#/components/schemas/BaseResult'