UNPKG

@karate-combat/api

Version:

Karate Combat API Client

91 lines 2.89 kB
import { FightEventContent } from 'adapters/contentful/__generated/types'; import { FighterDetailsDto } from 'lib/src/fighters/types'; import { FightResultDto } from 'lib/src/fights/types'; export declare const enum WinStatusEnum { tKoWinRed = "tKoWinRed", tKoWinBlue = "tKoWinBlue", koWinRed = "koWinRed", koWinBlue = "koWinBlue", noContest = "noContest", technicalDraw = "technicalDraw", winRed = "winRed", winBlue = "winBlue" } export type WeightClassDto = { name: string; label: string; }; export type FightDto = { id: string; fightId: string; isMain: boolean; isTitle: boolean; redFighter: FighterDetailsDto; blueFighter: FighterDetailsDto; weightClass: WeightClassDto; video: VideoDto; }; export declare enum FightEventStatusEnum { Upcoming = "upcoming", VotingOpen = "votingOpen", VotingClosed = "votingClosed", InProgress = "inProgress", Finished = "finished" } export type AssetDto = { title: string; height: number; width: number; url: string; }; export type VideoDto = { name: string; slug: string; youTubeUrl: string; youTubeThumbnailUrl: string; }; export type FightEventDto = { id: string; slug: string; name: string; coverBig: AssetDto; coverVistaBig: AssetDto; coverSmall: AssetDto; coverVista: AssetDto; verticalImage: AssetDto; date: string; votingOpenTime: string; votingClosedTime: string; dateTimestamp: number; votingOpenTimestamp: number; votingClosedTimestamp: number; description: string; location: string; category: string; gameUrl: string; video: VideoDto; mainFighters: string; coMainFighters: string; heroDate: string; sticker: AssetDto; status: FightEventStatusEnum; inviteOnly: boolean; buyTicketsUrl: string; content: FightEventContent; }; export type FightEventDetailsDto = FightEventDto & { fights: FightDto[]; }; export type FightEventResultsDto = Array<FightResultDto>; export type FightEventsParams = { sort: Sort; skip: number; limit: number; status: 'upcoming' | 'votingOpen' | 'votingClosed' | 'inProgress' | 'finished'; date: string; locale: Locale; }; type Locale = 'en' | 'pt' | 'es'; type Sort = 'coMainFighters_ASC' | 'coMainFighters_DESC' | 'date_ASC' | 'date_DESC' | 'eventCategory_ASC' | 'eventCategory_DESC' | 'heroDate_ASC' | 'heroDate_DESC' | 'id_ASC' | 'id_DESC' | 'location_ASC' | 'location_DESC' | 'mainFighters_ASC' | 'mainFighters_DESC' | 'name_ASC' | 'name_DESC' | 'sys_firstPublishedAt_ASC' | 'sys_firstPublishedAt_DESC' | 'sys_id_ASC' | 'sys_id_DESC' | 'sys_publishedAt_ASC' | 'sys_publishedAt_DESC' | 'sys_publishedVersion_ASC' | 'sys_publishedVersion_DESC' | 'webAppEventDetailsPageUrl_ASC' | 'webAppEventDetailsPageUrl_DESC'; export {}; //# sourceMappingURL=types.d.ts.map