mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
4.2 KiB
4.2 KiB
GetLibraryDetailsType
Example Usage
import { GetLibraryDetailsType } from "@lukehagar/plexjs";
let value: GetLibraryDetailsType = {
key: "/library/sections/1/all?type=1",
type: "movie",
title: "Movies",
active: false,
filter: [
{
filter: "label",
filterType: "string",
key: "/library/sections/1/label",
title: "Labels",
type: "filter",
},
],
sort: [
{
default: "asc",
defaultDirection: "desc",
descKey: "random:desc",
firstCharacterKey: "/library/sections/1/firstCharacter",
key: "random",
title: "Randomly",
},
],
field: [
{
key: "label",
title: "Label",
type: "tag",
subType: "bitrate",
},
],
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
key |
string | ➖ | N/A | /library/sections/1/all?type=1 |
type |
string | ➖ | N/A | movie |
title |
string | ➖ | N/A | Movies |
active |
boolean | ➖ | N/A | false |
filter |
models.GetLibraryDetailsFilter[] | ➖ | N/A | |
sort |
models.Sort[] | ➖ | N/A | |
field |
models.Field[] | ➖ | N/A |