diff --git a/package-lock.json b/package-lock.json index bd87cddef9c..a713694397b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "@fontsource/noto-sans-sc": "5.1.0", "@fontsource/noto-sans-tc": "5.1.0", "@jellyfin/libass-wasm": "4.2.3", - "@jellyfin/sdk": "0.0.0-unstable.202410250501", + "@jellyfin/sdk": "0.0.0-unstable.202412310501", "@mui/icons-material": "5.16.7", "@mui/material": "5.16.7", "@mui/x-date-pickers": "7.20.0", @@ -4846,9 +4846,9 @@ "license": "LGPL-2.1-or-later AND (FTL OR GPL-2.0-or-later) AND MIT AND MIT-Modern-Variant AND ISC AND NTP AND Zlib AND BSL-1.0" }, "node_modules/@jellyfin/sdk": { - "version": "0.0.0-unstable.202410250501", - "resolved": "https://registry.npmjs.org/@jellyfin/sdk/-/sdk-0.0.0-unstable.202410250501.tgz", - "integrity": "sha512-EKAUJM+1iVmeSJptY7Z0d4vnTSTzM6PPAdVpT24zhIqx0rgugRTiGFE8LPmLZZMBRDet+ZinyZ64kJE4EwEoQg==", + "version": "0.0.0-unstable.202412310501", + "resolved": "https://registry.npmjs.org/@jellyfin/sdk/-/sdk-0.0.0-unstable.202412310501.tgz", + "integrity": "sha512-f3j5ATiAVUwnK5zGe/arF1aCmAZzK5v5FeYDIrBZaWPjxJ1SyZHLaxnMxyBWoE73+ms141H14y/S56j+ewj3EA==", "license": "MPL-2.0", "peerDependencies": { "axios": "^1.3.4" @@ -29215,9 +29215,9 @@ "integrity": "sha512-C0OlBxIr9NdeFESMTA/OVDqNSWtog6Mi7wwzwH12xbZpxsMD0RgCupUcIP7zZgcpTNecW3fZq5d6xVo7Q8HEJw==" }, "@jellyfin/sdk": { - "version": "0.0.0-unstable.202410250501", - "resolved": "https://registry.npmjs.org/@jellyfin/sdk/-/sdk-0.0.0-unstable.202410250501.tgz", - "integrity": "sha512-EKAUJM+1iVmeSJptY7Z0d4vnTSTzM6PPAdVpT24zhIqx0rgugRTiGFE8LPmLZZMBRDet+ZinyZ64kJE4EwEoQg==", + "version": "0.0.0-unstable.202412310501", + "resolved": "https://registry.npmjs.org/@jellyfin/sdk/-/sdk-0.0.0-unstable.202412310501.tgz", + "integrity": "sha512-f3j5ATiAVUwnK5zGe/arF1aCmAZzK5v5FeYDIrBZaWPjxJ1SyZHLaxnMxyBWoE73+ms141H14y/S56j+ewj3EA==", "requires": {} }, "@jridgewell/gen-mapping": { diff --git a/package.json b/package.json index 3064f9d40a2..e7acf28aa40 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "@fontsource/noto-sans-sc": "5.1.0", "@fontsource/noto-sans-tc": "5.1.0", "@jellyfin/libass-wasm": "4.2.3", - "@jellyfin/sdk": "0.0.0-unstable.202410250501", + "@jellyfin/sdk": "0.0.0-unstable.202412310501", "@mui/icons-material": "5.16.7", "@mui/material": "5.16.7", "@mui/x-date-pickers": "7.20.0", diff --git a/src/apps/experimental/components/library/GenresSectionContainer.tsx b/src/apps/experimental/components/library/GenresSectionContainer.tsx index 08083ac6202..04f28233e68 100644 --- a/src/apps/experimental/components/library/GenresSectionContainer.tsx +++ b/src/apps/experimental/components/library/GenresSectionContainer.tsx @@ -2,7 +2,7 @@ import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collec import { ItemFields } from '@jellyfin/sdk/lib/generated-client/models/item-fields'; import { ImageType } from '@jellyfin/sdk/lib/generated-client/models/image-type'; import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind'; -import { ItemSortBy } from '@jellyfin/sdk/lib/models/api/item-sort-by'; +import { ItemSortBy } from '@jellyfin/sdk/lib/generated-client/models/item-sort-by'; import { SortOrder } from '@jellyfin/sdk/lib/generated-client/models/sort-order'; import React, { type FC } from 'react'; import { useGetItems } from 'hooks/useFetchItems'; diff --git a/src/apps/experimental/components/library/ItemsView.tsx b/src/apps/experimental/components/library/ItemsView.tsx index 5abeef834e3..e296720805f 100644 --- a/src/apps/experimental/components/library/ItemsView.tsx +++ b/src/apps/experimental/components/library/ItemsView.tsx @@ -1,7 +1,7 @@ import type { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind'; import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type'; import { ImageType } from '@jellyfin/sdk/lib/generated-client'; -import { ItemSortBy } from '@jellyfin/sdk/lib/models/api/item-sort-by'; +import { ItemSortBy } from '@jellyfin/sdk/lib/generated-client/models/item-sort-by'; import React, { type FC, useCallback } from 'react'; import Box from '@mui/material/Box'; import classNames from 'classnames'; diff --git a/src/apps/experimental/components/library/ShuffleButton.tsx b/src/apps/experimental/components/library/ShuffleButton.tsx index 2a85add1f29..d20c401e5c7 100644 --- a/src/apps/experimental/components/library/ShuffleButton.tsx +++ b/src/apps/experimental/components/library/ShuffleButton.tsx @@ -1,4 +1,4 @@ -import { ItemSortBy } from '@jellyfin/sdk/lib/models/api/item-sort-by'; +import { ItemSortBy } from '@jellyfin/sdk/lib/generated-client/models/item-sort-by'; import React, { FC, useCallback } from 'react'; import { IconButton } from '@mui/material'; import ShuffleIcon from '@mui/icons-material/Shuffle'; diff --git a/src/apps/experimental/components/library/SortButton.tsx b/src/apps/experimental/components/library/SortButton.tsx index d0f1bbce72a..4b0b9642cd8 100644 --- a/src/apps/experimental/components/library/SortButton.tsx +++ b/src/apps/experimental/components/library/SortButton.tsx @@ -13,7 +13,7 @@ import SortByAlphaIcon from '@mui/icons-material/SortByAlpha'; import globalize from 'lib/globalize'; import { LibraryViewSettings } from 'types/library'; import { LibraryTab } from 'types/libraryTab'; -import { ItemSortBy } from '@jellyfin/sdk/lib/models/api/item-sort-by'; +import { ItemSortBy } from '@jellyfin/sdk/lib/generated-client/models/item-sort-by'; import { SortOrder } from '@jellyfin/sdk/lib/generated-client'; type SortOption = { diff --git a/src/hooks/useFetchItems.ts b/src/hooks/useFetchItems.ts index 7d3bb0627b2..e4874639d95 100644 --- a/src/hooks/useFetchItems.ts +++ b/src/hooks/useFetchItems.ts @@ -4,8 +4,8 @@ import type { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/bas import { ImageType } from '@jellyfin/sdk/lib/generated-client/models/image-type'; import { ItemFields } from '@jellyfin/sdk/lib/generated-client/models/item-fields'; import { ItemFilter } from '@jellyfin/sdk/lib/generated-client/models/item-filter'; +import { ItemSortBy } from '@jellyfin/sdk/lib/generated-client/models/item-sort-by'; import { SortOrder } from '@jellyfin/sdk/lib/generated-client/models/sort-order'; -import { ItemSortBy } from '@jellyfin/sdk/lib/models/api/item-sort-by'; import { getArtistsApi } from '@jellyfin/sdk/lib/utils/api/artists-api'; import { getFilterApi } from '@jellyfin/sdk/lib/utils/api/filter-api'; import { getGenresApi } from '@jellyfin/sdk/lib/utils/api/genres-api'; diff --git a/src/types/library.ts b/src/types/library.ts index 7108a86e3f8..8715151c775 100644 --- a/src/types/library.ts +++ b/src/types/library.ts @@ -3,7 +3,7 @@ import type { VideoType } from '@jellyfin/sdk/lib/generated-client/models/video- import type { SortOrder } from '@jellyfin/sdk/lib/generated-client/models/sort-order'; import type { SeriesStatus } from '@jellyfin/sdk/lib/generated-client/models/series-status'; import type { ImageType } from '@jellyfin/sdk/lib/generated-client'; -import { ItemSortBy } from '@jellyfin/sdk/lib/models/api/item-sort-by'; +import { ItemSortBy } from '@jellyfin/sdk/lib/generated-client/models/item-sort-by'; export type ParentId = string | null | undefined; diff --git a/src/types/listOptions.ts b/src/types/listOptions.ts index fb17cbb7c09..4de41fd353a 100644 --- a/src/types/listOptions.ts +++ b/src/types/listOptions.ts @@ -1,5 +1,5 @@ -import { ItemSortBy } from '@jellyfin/sdk/lib/models/api/item-sort-by'; import type { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type'; +import type { ItemSortBy } from '@jellyfin/sdk/lib/generated-client/models/item-sort-by'; import type { ItemDto } from './base/models/item-dto'; import type { TextLineOpts } from 'components/common/textLines/types'; diff --git a/src/types/sections.ts b/src/types/sections.ts index cd00b8be496..c5355d943cc 100644 --- a/src/types/sections.ts +++ b/src/types/sections.ts @@ -1,5 +1,5 @@ import { BaseItemKind, SortOrder } from '@jellyfin/sdk/lib/generated-client'; -import { ItemSortBy } from '@jellyfin/sdk/lib/models/api/item-sort-by'; +import { ItemSortBy } from '@jellyfin/sdk/lib/generated-client/models/item-sort-by'; import { CardOptions } from './cardOptions'; import { SectionsView } from './libraryTabContent'; diff --git a/src/utils/items.ts b/src/utils/items.ts index 6a5dcd0985f..385004b2956 100644 --- a/src/utils/items.ts +++ b/src/utils/items.ts @@ -1,6 +1,6 @@ import { ItemFields } from '@jellyfin/sdk/lib/generated-client/models/item-fields'; import { ImageType } from '@jellyfin/sdk/lib/generated-client/models/image-type'; -import { ItemSortBy } from '@jellyfin/sdk/lib/models/api/item-sort-by'; +import { ItemSortBy } from '@jellyfin/sdk/lib/generated-client/models/item-sort-by'; import { SortOrder } from '@jellyfin/sdk/lib/generated-client/models/sort-order'; import * as userSettings from 'scripts/settings/userSettings'; import layoutManager from 'components/layoutManager'; diff --git a/src/utils/sections.ts b/src/utils/sections.ts index 70c74b598ec..2ad9e2b99ec 100644 --- a/src/utils/sections.ts +++ b/src/utils/sections.ts @@ -2,7 +2,7 @@ import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-ite import { ItemFields } from '@jellyfin/sdk/lib/generated-client/models/item-fields'; import { ItemFilter } from '@jellyfin/sdk/lib/generated-client/models/item-filter'; import { ImageType } from '@jellyfin/sdk/lib/generated-client/models/image-type'; -import { ItemSortBy } from '@jellyfin/sdk/lib/models/api/item-sort-by'; +import { ItemSortBy } from '@jellyfin/sdk/lib/generated-client/models/item-sort-by'; import { SortOrder } from '@jellyfin/sdk/lib/generated-client/models/sort-order'; import * as userSettings from 'scripts/settings/userSettings'; import { CardShape } from 'utils/card';