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

    Interface AssignmentParameters

    Parameters that can be passed to the WaniKani API to filter a request for an Assignment Collection.

    interface AssignmentParameters {
        available_after?: Date | DatableString;
        available_before?: Date | DatableString;
        burned?: boolean;
        hidden?: boolean;
        ids?: SafeInteger[];
        immediately_available_for_lessons?: boolean;
        immediately_available_for_review?: boolean;
        in_review?: boolean;
        levels?: Level[];
        page_after_id?: SafeInteger;
        page_before_id?: SafeInteger;
        srs_stages?: SpacedRepetitionSystemStageNumber[];
        started?: boolean;
        subject_ids?: SafeInteger[];
        subject_types?: SubjectTuple;
        unlocked?: boolean;
        updated_after?: Date | DatableString;
    }

    Hierarchy (View Summary)

    Index

    Properties

    available_after?: Date | DatableString

    Only assignments available at or after this time are returned.

    available_before?: Date | DatableString

    Only assignments available at or before this time are returned.

    burned?: boolean

    When set to true, returns assignments that have a value in data.burned_at. Returns assignments with a null data.burned_at if false.

    hidden?: boolean

    Return assignments with a matching value in the hidden attribute.

    ids?: SafeInteger[]

    Only resources where data.id matches one of the array values are returned.

    immediately_available_for_lessons?: boolean

    When set to true, returns assignments which are immediately available for lessons.

    immediately_available_for_review?: boolean

    When set to true, returns assignments which are immediately available for review.

    in_review?: boolean

    When set to true, returns assignments which are in the review state.

    levels?: Level[]

    Only assignments where the associated subject level matches one of the array values are returned. Valid values range from 1 to 60.

    page_after_id?: SafeInteger

    Get a collection's next page containing pages.per_page resources after the given ID.

    This will take precedence over page_before_id if both are specified.

    page_before_id?: SafeInteger

    Get a collection's previous page containing pages.per_page resources before the given ID.

    The page_after_id parameter takes precedence over this if it is specified alongside this parameter.

    Only assignments where data.srs_stage matches one of the array values are returned. Valid values range from 0 to 9.

    started?: boolean

    When set to true, returns assignments that have a value in data.started_at. Returns assignments with a null data.started_at if false.

    subject_ids?: SafeInteger[]

    Only assignments where data.subject_id matches one of the array values are returned.

    subject_types?: SubjectTuple

    Only assignments where data.subject_type matches one of the array values are returned.

    unlocked?: boolean

    When set to true, returns assignments that have a value in data.unlocked_at. Returns assignments with a null data.unlocked_at if false.

    updated_after?: Date | DatableString

    Only resources updated after this time are returned.