mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
6.8 KiB
6.8 KiB
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 |