CharacterVariables is an interface representing the variables for the CharacterQuery. It includes optional id, isBirthday, search, id_not, id_in, id_not_in, sort, asHtml, mediaSort, mediaOnList, mediaPage, and mediaPerPage.

interface CharacterVariables {
    asHtml?: boolean;
    id: number;
    id_in: number[];
    id_not: number;
    id_not_in: number[];
    isBirthday?: boolean;
    mediaOnList?: boolean;
    mediaPage?: number;
    mediaPerPage?: number;
    mediaSort?: MediaSort[];
    search: string;
    sort?: CharacterSort[];
}

Properties

asHtml?: boolean

asHtml is a boolean representing whether to return the result as HTML.

id: number

id is a number representing the id of the character.

id_in: number[]

id_in is an array of numbers representing the ids of the characters that should be included.

id_not: number

id_not is a number representing the id of the character that should not be included.

id_not_in: number[]

id_not_in is an array of numbers representing the ids of the characters that should not be included.

isBirthday?: boolean

isBirthday is a boolean representing whether it is the character's birthday.

mediaOnList?: boolean

mediaOnList is a boolean representing whether the media is on the list.

mediaPage?: number

mediaPage is a number representing the page number for media.

mediaPerPage?: number

mediaPerPage is a number representing the number of media items per page.

mediaSort?: MediaSort[]

mediaSort is an array of strings representing the sort order for media.

search: string

search is a string representing the search term.

sort?: CharacterSort[]

sort is an array of strings representing the sort order.