Files
plexjs/docs/sdk/models/operations/getlibraryitemslibrarysort.md

6.8 KiB
Raw Blame History

GetLibraryItemsLibrarySort

Example Usage

import {
  GetLibraryItemsLibraryActiveDirection,
  GetLibraryItemsLibraryDefaultDirection,
  GetLibraryItemsLibrarySort,
} from "@lukehagar/plexjs/sdk/models/operations";

let value: GetLibraryItemsLibrarySort = {
  default: "asc",
  active: false,
  activeDirection: GetLibraryItemsLibraryActiveDirection.Ascending,
  defaultDirection: GetLibraryItemsLibraryDefaultDirection.Ascending,
  descKey: "titleSort:desc",
  firstCharacterKey: "/library/sections/2/firstCharacter",
  key: "titleSort",
  title: "Title",
};

Fields

Field Type Required Description Example
default string N/A asc
active boolean N/A false
activeDirection operations.GetLibraryItemsLibraryActiveDirection The direction of the sort. Can be either asc or desc.
asc
defaultDirection operations.GetLibraryItemsLibraryDefaultDirection The direction of the sort. Can be either asc or desc.
asc
descKey string N/A titleSort:desc
firstCharacterKey string N/A /library/sections/2/firstCharacter
key string ✔️ N/A titleSort
title string ✔️ N/A Title