@bachman-dev/wanikani-api-types - v2.0.0
    Preparing search index...

    Interface Reset

    Users can reset their progress back to any level at or below their current level. When they reset to a particular level, all of the assignments and review_statistics at that level or higher are set back to their default state.

    Resets contain information about when those resets happen, the starting level, and the target level.

    interface Reset {
        data: {
            confirmed_at: null | DatableString;
            created_at: DatableString;
            original_level: Level;
            target_level: Level;
        };
        data_updated_at: DatableString;
        id: number;
        object: "reset";
        url: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    data: {
        confirmed_at: null | DatableString;
        created_at: DatableString;
        original_level: Level;
        target_level: Level;
    }

    Data for the returned reset.

    Type declaration

    • confirmed_at: null | DatableString

      Timestamp when the user confirmed the reset.

    • created_at: DatableString

      Timestamp when the reset was created.

    • original_level: Level

      The user's level before the reset, from 1 to 60.

    • target_level: Level

      The user's level after the reset, from 1 to 60. It must be less than or equal to original_level.

    data_updated_at: DatableString

    For a resource, this is the last time that particular resource was updated.

    id: number

    A unique number identifying the reset.

    object: "reset"

    The kind of object returned.

    url: string

    The URL of the requested resource.