UpdateUserResponse is an interface representing the response from an update user mutation. It includes the id, name, about, avatar, banner image, is following, is follower, is blocked, bans, options, media list options, unread notification count, site url, donator tier, donator badge, moderator roles, created at, and updated at.

interface UpdateUserResponse {
    about: string;
    avatar: {
        large: string;
        medium: string;
    };
    bannerImage: string;
    bans: any[];
    createdAt: number;
    donatorBadge: string;
    donatorTier: number;
    id: number;
    isBlocked: boolean;
    isFollower: boolean;
    isFollowing: boolean;
    mediaListOptions: {
        animeList: {
            advancedScoring: string[];
            advancedScoringEnabled: boolean;
            customLists: string[];
            sectionOrder: string[];
        };
        mangaList: {
            advancedScoring: string[];
            advancedScoringEnabled: boolean;
            customLists: string[];
            sectionOrder: string[];
        };
        rowOrder: string;
        scoreFormat: string;
    };
    moderatorRoles: string[];
    name: string;
    options: {
        activityMergeTime: number;
        airingNotifications: boolean;
        displayAdultContent: boolean;
        notificationOptions: {
            enabled: boolean;
            type: string;
        }[];
        profileColor: string;
        restrictMessagesToFollowing: boolean;
        staffNameLanguage: string;
        timezone: string;
        titleLanguage: string;
    };
    siteUrl: string;
    unreadNotificationCount: number;
    updatedAt: number;
}

Properties

about: string

about is a string representing the about section of the user.

avatar: {
    large: string;
    medium: string;
}

avatar is an object that includes the large and medium avatar of the user.

Type declaration

  • large: string

    large is a string representing the large avatar of the user.

  • medium: string

    medium is a string representing the medium avatar of the user.

bannerImage: string

bannerImage is a string representing the banner image of the user.

bans: any[]

bans is an array representing the bans of the user.

createdAt: number

createdAt is a number representing when the user was created.

donatorBadge: string

donatorBadge is a string representing the donator badge of the user.

donatorTier: number

donatorTier is a number representing the donator tier of the user.

id: number

id is a number representing the id of the user.

isBlocked: boolean

isBlocked is a boolean representing whether the user is blocked.

isFollower: boolean

isFollower is a boolean representing whether the user is a follower.

isFollowing: boolean

isFollowing is a boolean representing whether the user is following.

mediaListOptions: {
    animeList: {
        advancedScoring: string[];
        advancedScoringEnabled: boolean;
        customLists: string[];
        sectionOrder: string[];
    };
    mangaList: {
        advancedScoring: string[];
        advancedScoringEnabled: boolean;
        customLists: string[];
        sectionOrder: string[];
    };
    rowOrder: string;
    scoreFormat: string;
}

mediaListOptions is an object that includes the score format, row order, anime list, and manga list of the user.

Type declaration

  • animeList: {
        advancedScoring: string[];
        advancedScoringEnabled: boolean;
        customLists: string[];
        sectionOrder: string[];
    }

    animeList is an object that includes the section order, custom lists, advanced scoring, and advanced scoring enabled status of the anime list of the user.

    • advancedScoring: string[]

      advancedScoring is an array of strings representing the advanced scoring of the anime list of the user.

    • advancedScoringEnabled: boolean

      advancedScoringEnabled is a boolean representing whether advanced scoring is enabled for the anime list of the user.

    • customLists: string[]

      customLists is an array of strings representing the custom lists of the anime list of the user.

    • sectionOrder: string[]

      sectionOrder is an array of strings representing the section order of the anime list of the user.

  • mangaList: {
        advancedScoring: string[];
        advancedScoringEnabled: boolean;
        customLists: string[];
        sectionOrder: string[];
    }

    mangaList is an object that includes the section order, custom lists, advanced scoring, and advanced scoring enabled status of the manga list of the user.

    • advancedScoring: string[]

      advancedScoring is an array of strings representing the advanced scoring of the manga list of the user.

    • advancedScoringEnabled: boolean

      advancedScoringEnabled is a boolean representing whether advanced scoring is enabled for the manga list of the user.

    • customLists: string[]

      customLists is an array of strings representing the custom lists of the manga list of the user.

    • sectionOrder: string[]

      sectionOrder is an array of strings representing the section order of the manga list of the user.

  • rowOrder: string

    rowOrder is a string representing the row order of the user.

  • scoreFormat: string

    scoreFormat is a string representing the score format of the user.

moderatorRoles: string[]

moderatorRoles is an array of strings representing the moderator roles of the user.

name: string

name is a string representing the name of the user.

options: {
    activityMergeTime: number;
    airingNotifications: boolean;
    displayAdultContent: boolean;
    notificationOptions: {
        enabled: boolean;
        type: string;
    }[];
    profileColor: string;
    restrictMessagesToFollowing: boolean;
    staffNameLanguage: string;
    timezone: string;
    titleLanguage: string;
}

options is an object that includes the title language, display adult content, airing notifications, profile color, notification options, timezone, activity merge time, staff name language, and restrict messages to following of the user.

Type declaration

  • activityMergeTime: number

    activityMergeTime is a number representing the activity merge time of the user.

  • airingNotifications: boolean

    airingNotifications is a boolean representing whether the user has airing notifications enabled.

  • displayAdultContent: boolean

    displayAdultContent is a boolean representing whether the user displays adult content.

  • notificationOptions: {
        enabled: boolean;
        type: string;
    }[]

    notificationOptions is an array that includes the type and enabled status of the notification options of the user.

  • profileColor: string

    profileColor is a string representing the profile color of the user.

  • restrictMessagesToFollowing: boolean

    restrictMessagesToFollowing is a boolean representing whether the user restricts messages to following.

  • staffNameLanguage: string

    staffNameLanguage is a string representing the staff name language of the user.

  • timezone: string

    timezone is a string representing the timezone of the user.

  • titleLanguage: string

    titleLanguage is a string representing the title language of the user.

siteUrl: string

siteUrl is a string representing the site URL of the user.

unreadNotificationCount: number

unreadNotificationCount is a number representing the unread notification count of the user.

updatedAt: number

updatedAt is a number representing when the user was last updated.