@karate-combat/api
Version:
Karate Combat API Client
143 lines • 4.53 kB
TypeScript
export type FightHistoryBase = {
blueFighterSlug: string;
eventId: string;
eventName: string;
fightDate: string;
id: string;
redFighterSlug: string;
video?: VideoDto;
weightClass: string;
win: boolean;
winMethod: string;
winner: string;
};
type HistoryFighterDto = {
id: string;
fullName: string;
headImage: string;
weightClass: string;
};
export type FightHistoryDto = FightHistoryBase & {
blueFighter?: HistoryFighterDto;
redFighter?: HistoryFighterDto;
};
export declare enum FighterCategoryEnum {
'KARATE COMBAT' = "KARATE COMBAT",
'KICKBACK' = "KICKBACK",
'IFC' = "IFC",
'PIT SUBMISSION' = "PIT SUBMISSION",
'KUMITE' = "KUMITE",
'INACTIVE' = "INACTIVE"
}
export type FightersStatsDto = {
winCount: number;
lossCount: number;
noContestCount: number;
drawCount: number;
koWins: number;
decisionWins: number;
incompleteBoutCount: number;
completeBoutCount: number;
boutsCalculatedCount: number;
boutsCalculatedList: string;
timeTotalHMS: string;
timeTotalMinutes: string;
timeTotalSeconds: number;
strikesLanded: number;
strikesAccuracy: string;
strikesTotal: number;
strikesLandedPerRound: number;
strikesBody: number;
strikesHead: number;
strikesLeg: number;
strikesHeadAccuracy: string;
strikesBodyAccuracy: string;
strikesLegsAccuracy: string;
absorbedStrikesPerMatch: number;
takedown: number;
takedownLanded: number;
takedownAttempt: number;
takedownAccuracy: string;
critical: number;
criticalLanded: number;
criticalAttempt: number;
criticalBody: number;
criticalHead: number;
criticalLeg: number;
criticalAccuracy: string;
powerLanded: number;
powerTotal: number;
powerAccuracy: string;
powerBody: number;
powerHead: number;
powerLeg: number;
};
export type FighterDetailsBase = {
age?: number;
armReach?: number;
armReachCms?: number;
biography?: string;
bodyImage?: AssetDto;
champion?: boolean;
countryCode?: string;
country?: string;
category?: Array<FighterCategoryEnum>;
dateOfBirth?: string;
discord?: string;
facebook?: string;
fightStyle?: string;
fullName?: string;
headImage?: AssetDto;
heightCms?: number;
heightFt?: number;
heightIn?: number;
highlightVideo?: VideoDto;
id?: string;
instagram?: string;
legReach?: number;
legReachCms?: number;
nickname?: string;
raisedHandImage?: AssetDto;
ranking?: number;
slug?: string;
stats: FightersStatsDto;
telegram?: string;
twitter?: string;
walletAddress: string;
weight?: number;
weightClass?: string;
weightKgs?: number;
youTube?: string;
};
export type FighterDetailsDto = FighterDetailsBase & {
history: FightHistoryDto[];
};
export type FightersDto = {
items: FighterDetailsDto[];
total: number;
};
export type AssetDto = {
title: string;
height: number;
width: number;
url: string;
};
export type VideoDto = {
name: string;
slug: string;
youTubeUrl: string;
youTubeThumbnailUrl: string;
};
export type FighterQueryParams = {
sort: Sort;
locale: Locale;
name: string;
weightClass: string;
isChampion: boolean;
skip: number;
limit: number;
};
type Locale = 'en' | 'pt' | 'es';
type Sort = 'age_ASC' | 'age_DESC' | 'armReach_ASC' | 'armReach_DESC' | 'champion_ASC' | 'champion_DESC' | 'country_ASC' | 'country_DESC' | 'dateOfBirth_ASC' | 'dateOfBirth_DESC' | 'discord_ASC' | 'discord_DESC' | 'facebook_ASC' | 'facebook_DESC' | 'favoriteMove_ASC' | 'favoriteMove_DESC' | 'fightStyle_ASC' | 'fightStyle_DESC' | 'fullName_ASC' | 'fullName_DESC' | 'heightFt_ASC' | 'heightFt_DESC' | 'heightIn_ASC' | 'heightIn_DESC' | 'instagram_ASC' | 'instagram_DESC' | 'isRetired_ASC' | 'isRetired_DESC' | 'legReach_ASC' | 'legReach_DESC' | 'nickname_ASC' | 'nickname_DESC' | 'orderInSlideshow_ASC' | 'orderInSlideshow_DESC' | 'ranking_ASC' | 'ranking_DESC' | 'slug_ASC' | 'slug_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' | 'telegram_ASC' | 'telegram_DESC' | 'twitter_ASC' | 'twitter_DESC' | 'weightClass_ASC' | 'weightClass_DESC' | 'weight_ASC' | 'weight_DESC' | 'youTube_ASC' | 'youTube_DESC';
export {};
//# sourceMappingURL=types.d.ts.map