@jellyfin/sdk 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +5 -0
- package/LICENSE +373 -0
- package/README.md +141 -0
- package/lib/api.d.ts +42 -0
- package/lib/api.js +99 -0
- package/lib/discovery/discovery-service.d.ts +41 -0
- package/lib/discovery/discovery-service.js +112 -0
- package/lib/discovery/index.d.ts +7 -0
- package/lib/discovery/index.js +23 -0
- package/lib/discovery/recommended-server-discovery.d.ts +23 -0
- package/lib/discovery/recommended-server-discovery.js +153 -0
- package/lib/generated-client/api/activity-log-api.d.ts +113 -0
- package/lib/generated-client/api/activity-log-api.js +234 -0
- package/lib/generated-client/api/api-key-api.d.ts +161 -0
- package/lib/generated-client/api/api-key-api.js +374 -0
- package/lib/generated-client/api/artists-api.d.ts +751 -0
- package/lib/generated-client/api/artists-api.js +759 -0
- package/lib/generated-client/api/audio-api.d.ts +1985 -0
- package/lib/generated-client/api/audio-api.js +1582 -0
- package/lib/generated-client/api/branding-api.d.ts +127 -0
- package/lib/generated-client/api/branding-api.js +334 -0
- package/lib/generated-client/api/channels-api.d.ts +419 -0
- package/lib/generated-client/api/channels-api.js +648 -0
- package/lib/generated-client/api/client-log-api.d.ts +86 -0
- package/lib/generated-client/api/client-log-api.js +213 -0
- package/lib/generated-client/api/collection-api.d.ts +223 -0
- package/lib/generated-client/api/collection-api.js +414 -0
- package/lib/generated-client/api/configuration-api.d.ts +293 -0
- package/lib/generated-client/api/configuration-api.js +623 -0
- package/lib/generated-client/api/dashboard-api.d.ts +132 -0
- package/lib/generated-client/api/dashboard-api.js +290 -0
- package/lib/generated-client/api/devices-api.d.ts +291 -0
- package/lib/generated-client/api/devices-api.js +567 -0
- package/lib/generated-client/api/display-preferences-api.d.ts +177 -0
- package/lib/generated-client/api/display-preferences-api.js +335 -0
- package/lib/generated-client/api/dlna-api.d.ts +292 -0
- package/lib/generated-client/api/dlna-api.js +619 -0
- package/lib/generated-client/api/dlna-server-api.d.ts +784 -0
- package/lib/generated-client/api/dlna-server-api.js +1464 -0
- package/lib/generated-client/api/dynamic-hls-api.d.ts +4604 -0
- package/lib/generated-client/api/dynamic-hls-api.js +3611 -0
- package/lib/generated-client/api/environment-api.d.ts +289 -0
- package/lib/generated-client/api/environment-api.js +628 -0
- package/lib/generated-client/api/filter-api.d.ts +242 -0
- package/lib/generated-client/api/filter-api.js +370 -0
- package/lib/generated-client/api/genres-api.d.ts +299 -0
- package/lib/generated-client/api/genres-api.js +405 -0
- package/lib/generated-client/api/hls-segment-api.d.ts +332 -0
- package/lib/generated-client/api/hls-segment-api.js +567 -0
- package/lib/generated-client/api/image-api.d.ts +6744 -0
- package/lib/generated-client/api/image-api.js +6515 -0
- package/lib/generated-client/api/image-by-name-api.d.ts +292 -0
- package/lib/generated-client/api/image-by-name-api.js +601 -0
- package/lib/generated-client/api/instant-mix-api.d.ts +918 -0
- package/lib/generated-client/api/instant-mix-api.js +1138 -0
- package/lib/generated-client/api/item-lookup-api.d.ts +574 -0
- package/lib/generated-client/api/item-lookup-api.js +1065 -0
- package/lib/generated-client/api/item-refresh-api.d.ts +122 -0
- package/lib/generated-client/api/item-refresh-api.js +237 -0
- package/lib/generated-client/api/item-update-api.d.ts +197 -0
- package/lib/generated-client/api/item-update-api.js +392 -0
- package/lib/generated-client/api/items-api.d.ts +1824 -0
- package/lib/generated-client/api/items-api.js +1488 -0
- package/lib/generated-client/api/library-api.d.ts +1482 -0
- package/lib/generated-client/api/library-api.js +2414 -0
- package/lib/generated-client/api/library-structure-api.d.ts +486 -0
- package/lib/generated-client/api/library-structure-api.js +852 -0
- package/lib/generated-client/api/live-tv-api.d.ts +2844 -0
- package/lib/generated-client/api/live-tv-api.js +4165 -0
- package/lib/generated-client/api/localization-api.d.ts +159 -0
- package/lib/generated-client/api/localization-api.js +434 -0
- package/lib/generated-client/api/media-info-api.d.ts +516 -0
- package/lib/generated-client/api/media-info-api.js +711 -0
- package/lib/generated-client/api/movies-api.d.ts +123 -0
- package/lib/generated-client/api/movies-api.js +238 -0
- package/lib/generated-client/api/music-genres-api.d.ts +303 -0
- package/lib/generated-client/api/music-genres-api.js +409 -0
- package/lib/generated-client/api/notifications-api.d.ts +332 -0
- package/lib/generated-client/api/notifications-api.js +698 -0
- package/lib/generated-client/api/package-api.d.ts +319 -0
- package/lib/generated-client/api/package-api.js +639 -0
- package/lib/generated-client/api/persons-api.d.ts +253 -0
- package/lib/generated-client/api/persons-api.js +375 -0
- package/lib/generated-client/api/playlists-api.d.ts +427 -0
- package/lib/generated-client/api/playlists-api.js +649 -0
- package/lib/generated-client/api/playstate-api.d.ts +720 -0
- package/lib/generated-client/api/playstate-api.js +1055 -0
- package/lib/generated-client/api/plugins-api.d.ts +477 -0
- package/lib/generated-client/api/plugins-api.js +898 -0
- package/lib/generated-client/api/quick-connect-api.d.ts +190 -0
- package/lib/generated-client/api/quick-connect-api.js +428 -0
- package/lib/generated-client/api/remote-image-api.d.ts +243 -0
- package/lib/generated-client/api/remote-image-api.js +423 -0
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +289 -0
- package/lib/generated-client/api/scheduled-tasks-api.js +559 -0
- package/lib/generated-client/api/search-api.d.ts +240 -0
- package/lib/generated-client/api/search-api.js +317 -0
- package/lib/generated-client/api/session-api.d.ts +985 -0
- package/lib/generated-client/api/session-api.js +1622 -0
- package/lib/generated-client/api/startup-api.d.ts +296 -0
- package/lib/generated-client/api/startup-api.js +685 -0
- package/lib/generated-client/api/studios-api.d.ts +289 -0
- package/lib/generated-client/api/studios-api.js +399 -0
- package/lib/generated-client/api/subtitle-api.d.ts +764 -0
- package/lib/generated-client/api/subtitle-api.js +1126 -0
- package/lib/generated-client/api/suggestions-api.d.ts +132 -0
- package/lib/generated-client/api/suggestions-api.js +243 -0
- package/lib/generated-client/api/sync-play-api.d.ts +937 -0
- package/lib/generated-client/api/sync-play-api.js +1854 -0
- package/lib/generated-client/api/system-api.d.ts +355 -0
- package/lib/generated-client/api/system-api.js +879 -0
- package/lib/generated-client/api/time-sync-api.d.ts +69 -0
- package/lib/generated-client/api/time-sync-api.js +198 -0
- package/lib/generated-client/api/tmdb-api.d.ts +69 -0
- package/lib/generated-client/api/tmdb-api.js +206 -0
- package/lib/generated-client/api/trailers-api.d.ts +841 -0
- package/lib/generated-client/api/trailers-api.js +720 -0
- package/lib/generated-client/api/tv-shows-api.d.ts +622 -0
- package/lib/generated-client/api/tv-shows-api.js +730 -0
- package/lib/generated-client/api/universal-audio-api.d.ts +437 -0
- package/lib/generated-client/api/universal-audio-api.js +500 -0
- package/lib/generated-client/api/user-api.d.ts +826 -0
- package/lib/generated-client/api/user-api.js +1457 -0
- package/lib/generated-client/api/user-library-api.d.ts +676 -0
- package/lib/generated-client/api/user-library-api.js +1074 -0
- package/lib/generated-client/api/user-views-api.d.ts +160 -0
- package/lib/generated-client/api/user-views-api.js +314 -0
- package/lib/generated-client/api/video-attachments-api.d.ts +103 -0
- package/lib/generated-client/api/video-attachments-api.js +217 -0
- package/lib/generated-client/api/videos-api.d.ts +2205 -0
- package/lib/generated-client/api/videos-api.js +1887 -0
- package/lib/generated-client/api/years-api.d.ts +272 -0
- package/lib/generated-client/api/years-api.js +387 -0
- package/lib/generated-client/api.d.ts +71 -0
- package/lib/generated-client/api.js +89 -0
- package/lib/generated-client/base.d.ts +54 -0
- package/lib/generated-client/base.js +84 -0
- package/lib/generated-client/common.d.ts +64 -0
- package/lib/generated-client/common.js +242 -0
- package/lib/generated-client/configuration.d.ts +82 -0
- package/lib/generated-client/configuration.js +43 -0
- package/lib/generated-client/index.d.ts +13 -0
- package/lib/generated-client/index.js +31 -0
- package/lib/generated-client/models/access-schedule.d.ts +48 -0
- package/lib/generated-client/models/access-schedule.js +14 -0
- package/lib/generated-client/models/activity-log-entry-query-result.d.ts +36 -0
- package/lib/generated-client/models/activity-log-entry-query-result.js +14 -0
- package/lib/generated-client/models/activity-log-entry.d.ts +79 -0
- package/lib/generated-client/models/activity-log-entry.js +14 -0
- package/lib/generated-client/models/add-virtual-folder-dto.d.ts +24 -0
- package/lib/generated-client/models/add-virtual-folder-dto.js +14 -0
- package/lib/generated-client/models/admin-notification-dto.d.ts +42 -0
- package/lib/generated-client/models/admin-notification-dto.js +14 -0
- package/lib/generated-client/models/album-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/album-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/album-info.d.ts +106 -0
- package/lib/generated-client/models/album-info.js +14 -0
- package/lib/generated-client/models/all-theme-media-result.d.ts +36 -0
- package/lib/generated-client/models/all-theme-media-result.js +14 -0
- package/lib/generated-client/models/architecture.d.ts +23 -0
- package/lib/generated-client/models/architecture.js +29 -0
- package/lib/generated-client/models/artist-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/artist-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/artist-info.d.ts +92 -0
- package/lib/generated-client/models/artist-info.js +14 -0
- package/lib/generated-client/models/authenticate-user-by-name.d.ts +36 -0
- package/lib/generated-client/models/authenticate-user-by-name.js +14 -0
- package/lib/generated-client/models/authentication-info-query-result.d.ts +36 -0
- package/lib/generated-client/models/authentication-info-query-result.js +14 -0
- package/lib/generated-client/models/authentication-info.d.ts +89 -0
- package/lib/generated-client/models/authentication-info.js +14 -0
- package/lib/generated-client/models/authentication-result.d.ts +43 -0
- package/lib/generated-client/models/authentication-result.js +14 -0
- package/lib/generated-client/models/base-item-dto-image-blur-hashes.d.ts +121 -0
- package/lib/generated-client/models/base-item-dto-image-blur-hashes.js +14 -0
- package/lib/generated-client/models/base-item-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/base-item-dto-query-result.js +14 -0
- package/lib/generated-client/models/base-item-dto.d.ts +947 -0
- package/lib/generated-client/models/base-item-dto.js +14 -0
- package/lib/generated-client/models/base-item-kind.d.ts +54 -0
- package/lib/generated-client/models/base-item-kind.js +60 -0
- package/lib/generated-client/models/base-item-person-image-blur-hashes.d.ts +121 -0
- package/lib/generated-client/models/base-item-person-image-blur-hashes.js +14 -0
- package/lib/generated-client/models/base-item-person.d.ts +54 -0
- package/lib/generated-client/models/base-item-person.js +14 -0
- package/lib/generated-client/models/base-item.d.ts +84 -0
- package/lib/generated-client/models/base-item.js +14 -0
- package/lib/generated-client/models/book-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/book-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/book-info.d.ts +91 -0
- package/lib/generated-client/models/book-info.js +14 -0
- package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/box-set-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/box-set-info.d.ts +85 -0
- package/lib/generated-client/models/box-set-info.js +14 -0
- package/lib/generated-client/models/branding-options.d.ts +35 -0
- package/lib/generated-client/models/branding-options.js +14 -0
- package/lib/generated-client/models/buffer-request-dto.d.ts +41 -0
- package/lib/generated-client/models/buffer-request-dto.js +14 -0
- package/lib/generated-client/models/channel-features.d.ts +92 -0
- package/lib/generated-client/models/channel-features.js +14 -0
- package/lib/generated-client/models/channel-item-sort-field.d.ts +24 -0
- package/lib/generated-client/models/channel-item-sort-field.js +30 -0
- package/lib/generated-client/models/channel-mapping-options-dto.d.ts +44 -0
- package/lib/generated-client/models/channel-mapping-options-dto.js +14 -0
- package/lib/generated-client/models/channel-media-content-type.d.ts +25 -0
- package/lib/generated-client/models/channel-media-content-type.js +31 -0
- package/lib/generated-client/models/channel-media-type.d.ts +20 -0
- package/lib/generated-client/models/channel-media-type.js +26 -0
- package/lib/generated-client/models/channel-type.d.ts +19 -0
- package/lib/generated-client/models/channel-type.js +25 -0
- package/lib/generated-client/models/chapter-info.d.ts +47 -0
- package/lib/generated-client/models/chapter-info.js +14 -0
- package/lib/generated-client/models/client-capabilities-dto.d.ts +79 -0
- package/lib/generated-client/models/client-capabilities-dto.js +14 -0
- package/lib/generated-client/models/client-capabilities.d.ts +79 -0
- package/lib/generated-client/models/client-capabilities.js +14 -0
- package/lib/generated-client/models/client-log-document-response-dto.d.ts +23 -0
- package/lib/generated-client/models/client-log-document-response-dto.js +14 -0
- package/lib/generated-client/models/codec-profile.d.ts +49 -0
- package/lib/generated-client/models/codec-profile.js +14 -0
- package/lib/generated-client/models/codec-type.d.ts +20 -0
- package/lib/generated-client/models/codec-type.js +26 -0
- package/lib/generated-client/models/collection-creation-result.d.ts +23 -0
- package/lib/generated-client/models/collection-creation-result.js +14 -0
- package/lib/generated-client/models/collection-type-options.d.ts +25 -0
- package/lib/generated-client/models/collection-type-options.js +31 -0
- package/lib/generated-client/models/config-image-types.d.ts +59 -0
- package/lib/generated-client/models/config-image-types.js +14 -0
- package/lib/generated-client/models/configuration-page-info.d.ts +53 -0
- package/lib/generated-client/models/configuration-page-info.js +14 -0
- package/lib/generated-client/models/container-profile.d.ts +37 -0
- package/lib/generated-client/models/container-profile.js +14 -0
- package/lib/generated-client/models/control-response.d.ts +37 -0
- package/lib/generated-client/models/control-response.js +14 -0
- package/lib/generated-client/models/country-info.d.ts +41 -0
- package/lib/generated-client/models/country-info.js +14 -0
- package/lib/generated-client/models/create-playlist-dto.d.ts +41 -0
- package/lib/generated-client/models/create-playlist-dto.js +14 -0
- package/lib/generated-client/models/create-user-by-name.d.ts +29 -0
- package/lib/generated-client/models/create-user-by-name.js +14 -0
- package/lib/generated-client/models/culture-dto.d.ts +47 -0
- package/lib/generated-client/models/culture-dto.js +14 -0
- package/lib/generated-client/models/day-of-week.d.ts +24 -0
- package/lib/generated-client/models/day-of-week.js +30 -0
- package/lib/generated-client/models/day-pattern.d.ts +20 -0
- package/lib/generated-client/models/day-pattern.js +26 -0
- package/lib/generated-client/models/default-directory-browser-info-dto.d.ts +23 -0
- package/lib/generated-client/models/default-directory-browser-info-dto.js +14 -0
- package/lib/generated-client/models/device-identification.d.ts +72 -0
- package/lib/generated-client/models/device-identification.js +14 -0
- package/lib/generated-client/models/device-info-query-result.d.ts +36 -0
- package/lib/generated-client/models/device-info-query-result.js +14 -0
- package/lib/generated-client/models/device-info.d.ts +78 -0
- package/lib/generated-client/models/device-info.js +14 -0
- package/lib/generated-client/models/device-options-dto.d.ts +35 -0
- package/lib/generated-client/models/device-options-dto.js +14 -0
- package/lib/generated-client/models/device-options.d.ts +35 -0
- package/lib/generated-client/models/device-options.js +14 -0
- package/lib/generated-client/models/device-profile-info.d.ts +36 -0
- package/lib/generated-client/models/device-profile-info.js +14 -0
- package/lib/generated-client/models/device-profile-type.d.ts +19 -0
- package/lib/generated-client/models/device-profile-type.js +25 -0
- package/lib/generated-client/models/device-profile.d.ts +259 -0
- package/lib/generated-client/models/device-profile.js +14 -0
- package/lib/generated-client/models/direct-play-profile.d.ts +42 -0
- package/lib/generated-client/models/direct-play-profile.js +14 -0
- package/lib/generated-client/models/display-preferences-dto.d.ts +105 -0
- package/lib/generated-client/models/display-preferences-dto.js +14 -0
- package/lib/generated-client/models/dlna-options.d.ts +83 -0
- package/lib/generated-client/models/dlna-options.js +14 -0
- package/lib/generated-client/models/dlna-profile-type.d.ts +21 -0
- package/lib/generated-client/models/dlna-profile-type.js +27 -0
- package/lib/generated-client/models/dynamic-day-of-week.d.ts +27 -0
- package/lib/generated-client/models/dynamic-day-of-week.js +33 -0
- package/lib/generated-client/models/embedded-subtitle-options.d.ts +21 -0
- package/lib/generated-client/models/embedded-subtitle-options.js +27 -0
- package/lib/generated-client/models/encoding-context.d.ts +19 -0
- package/lib/generated-client/models/encoding-context.js +25 -0
- package/lib/generated-client/models/encoding-options.d.ts +245 -0
- package/lib/generated-client/models/encoding-options.js +14 -0
- package/lib/generated-client/models/end-point-info.d.ts +29 -0
- package/lib/generated-client/models/end-point-info.js +14 -0
- package/lib/generated-client/models/external-id-info.d.ts +42 -0
- package/lib/generated-client/models/external-id-info.js +14 -0
- package/lib/generated-client/models/external-id-media-type.d.ts +29 -0
- package/lib/generated-client/models/external-id-media-type.js +35 -0
- package/lib/generated-client/models/external-url.d.ts +29 -0
- package/lib/generated-client/models/external-url.js +14 -0
- package/lib/generated-client/models/ffmpeg-location.d.ts +21 -0
- package/lib/generated-client/models/ffmpeg-location.js +27 -0
- package/lib/generated-client/models/file-system-entry-info.d.ts +36 -0
- package/lib/generated-client/models/file-system-entry-info.js +14 -0
- package/lib/generated-client/models/file-system-entry-type.d.ts +21 -0
- package/lib/generated-client/models/file-system-entry-type.js +27 -0
- package/lib/generated-client/models/font-file.d.ts +41 -0
- package/lib/generated-client/models/font-file.js +14 -0
- package/lib/generated-client/models/forgot-password-action.d.ts +20 -0
- package/lib/generated-client/models/forgot-password-action.js +26 -0
- package/lib/generated-client/models/forgot-password-dto.d.ts +23 -0
- package/lib/generated-client/models/forgot-password-dto.js +14 -0
- package/lib/generated-client/models/forgot-password-pin-dto.d.ts +23 -0
- package/lib/generated-client/models/forgot-password-pin-dto.js +14 -0
- package/lib/generated-client/models/forgot-password-result.d.ts +36 -0
- package/lib/generated-client/models/forgot-password-result.js +14 -0
- package/lib/generated-client/models/general-command-type.d.ts +59 -0
- package/lib/generated-client/models/general-command-type.js +65 -0
- package/lib/generated-client/models/general-command.d.ts +38 -0
- package/lib/generated-client/models/general-command.js +14 -0
- package/lib/generated-client/models/get-programs-dto.d.ts +182 -0
- package/lib/generated-client/models/get-programs-dto.js +14 -0
- package/lib/generated-client/models/group-info-dto.d.ts +48 -0
- package/lib/generated-client/models/group-info-dto.js +14 -0
- package/lib/generated-client/models/group-queue-mode.d.ts +19 -0
- package/lib/generated-client/models/group-queue-mode.js +25 -0
- package/lib/generated-client/models/group-repeat-mode.d.ts +20 -0
- package/lib/generated-client/models/group-repeat-mode.js +26 -0
- package/lib/generated-client/models/group-shuffle-mode.d.ts +19 -0
- package/lib/generated-client/models/group-shuffle-mode.js +25 -0
- package/lib/generated-client/models/group-state-type.d.ts +21 -0
- package/lib/generated-client/models/group-state-type.js +27 -0
- package/lib/generated-client/models/group-update-type.d.ts +28 -0
- package/lib/generated-client/models/group-update-type.js +34 -0
- package/lib/generated-client/models/guide-info.d.ts +29 -0
- package/lib/generated-client/models/guide-info.js +14 -0
- package/lib/generated-client/models/hardware-encoding-type.d.ts +23 -0
- package/lib/generated-client/models/hardware-encoding-type.js +29 -0
- package/lib/generated-client/models/header-match-type.d.ts +20 -0
- package/lib/generated-client/models/header-match-type.js +26 -0
- package/lib/generated-client/models/http-header-info.d.ts +36 -0
- package/lib/generated-client/models/http-header-info.js +14 -0
- package/lib/generated-client/models/ignore-wait-request-dto.d.ts +23 -0
- package/lib/generated-client/models/ignore-wait-request-dto.js +14 -0
- package/lib/generated-client/models/image-by-name-info.d.ts +47 -0
- package/lib/generated-client/models/image-by-name-info.js +14 -0
- package/lib/generated-client/models/image-format.d.ts +22 -0
- package/lib/generated-client/models/image-format.js +28 -0
- package/lib/generated-client/models/image-info.d.ts +66 -0
- package/lib/generated-client/models/image-info.js +14 -0
- package/lib/generated-client/models/image-option.d.ts +36 -0
- package/lib/generated-client/models/image-option.js +14 -0
- package/lib/generated-client/models/image-orientation.d.ts +25 -0
- package/lib/generated-client/models/image-orientation.js +31 -0
- package/lib/generated-client/models/image-provider-info.d.ts +30 -0
- package/lib/generated-client/models/image-provider-info.js +14 -0
- package/lib/generated-client/models/image-saving-convention.d.ts +19 -0
- package/lib/generated-client/models/image-saving-convention.js +25 -0
- package/lib/generated-client/models/image-type.d.ts +30 -0
- package/lib/generated-client/models/image-type.js +36 -0
- package/lib/generated-client/models/index.d.ts +284 -0
- package/lib/generated-client/models/index.js +300 -0
- package/lib/generated-client/models/installation-info.d.ts +60 -0
- package/lib/generated-client/models/installation-info.js +14 -0
- package/lib/generated-client/models/iplugin.d.ts +59 -0
- package/lib/generated-client/models/iplugin.js +14 -0
- package/lib/generated-client/models/iso-type.d.ts +19 -0
- package/lib/generated-client/models/iso-type.js +25 -0
- package/lib/generated-client/models/item-counts.d.ts +89 -0
- package/lib/generated-client/models/item-counts.js +14 -0
- package/lib/generated-client/models/item-fields.d.ts +78 -0
- package/lib/generated-client/models/item-fields.js +84 -0
- package/lib/generated-client/models/item-filter.d.ts +26 -0
- package/lib/generated-client/models/item-filter.js +32 -0
- package/lib/generated-client/models/join-group-request-dto.d.ts +23 -0
- package/lib/generated-client/models/join-group-request-dto.js +14 -0
- package/lib/generated-client/models/keep-until.d.ts +21 -0
- package/lib/generated-client/models/keep-until.js +27 -0
- package/lib/generated-client/models/library-option-info-dto.d.ts +29 -0
- package/lib/generated-client/models/library-option-info-dto.js +14 -0
- package/lib/generated-client/models/library-options-result-dto.d.ts +43 -0
- package/lib/generated-client/models/library-options-result-dto.js +14 -0
- package/lib/generated-client/models/library-options.d.ts +183 -0
- package/lib/generated-client/models/library-options.js +14 -0
- package/lib/generated-client/models/library-type-options-dto.d.ts +50 -0
- package/lib/generated-client/models/library-type-options-dto.js +14 -0
- package/lib/generated-client/models/library-update-info.d.ts +59 -0
- package/lib/generated-client/models/library-update-info.js +14 -0
- package/lib/generated-client/models/listings-provider-info.d.ts +126 -0
- package/lib/generated-client/models/listings-provider-info.js +14 -0
- package/lib/generated-client/models/live-stream-response.d.ts +24 -0
- package/lib/generated-client/models/live-stream-response.js +14 -0
- package/lib/generated-client/models/live-tv-info.d.ts +36 -0
- package/lib/generated-client/models/live-tv-info.js +14 -0
- package/lib/generated-client/models/live-tv-options.d.ts +97 -0
- package/lib/generated-client/models/live-tv-options.js +14 -0
- package/lib/generated-client/models/live-tv-service-info.d.ts +66 -0
- package/lib/generated-client/models/live-tv-service-info.js +14 -0
- package/lib/generated-client/models/live-tv-service-status.d.ts +19 -0
- package/lib/generated-client/models/live-tv-service-status.js +25 -0
- package/lib/generated-client/models/localization-option.d.ts +29 -0
- package/lib/generated-client/models/localization-option.js +14 -0
- package/lib/generated-client/models/location-type.d.ts +21 -0
- package/lib/generated-client/models/location-type.js +27 -0
- package/lib/generated-client/models/log-file.d.ts +41 -0
- package/lib/generated-client/models/log-file.js +14 -0
- package/lib/generated-client/models/log-level.d.ts +24 -0
- package/lib/generated-client/models/log-level.js +30 -0
- package/lib/generated-client/models/media-attachment.d.ts +59 -0
- package/lib/generated-client/models/media-attachment.js +14 -0
- package/lib/generated-client/models/media-encoder-path-dto.d.ts +29 -0
- package/lib/generated-client/models/media-encoder-path-dto.js +14 -0
- package/lib/generated-client/models/media-path-dto.d.ts +36 -0
- package/lib/generated-client/models/media-path-dto.js +14 -0
- package/lib/generated-client/models/media-path-info.d.ts +29 -0
- package/lib/generated-client/models/media-path-info.js +14 -0
- package/lib/generated-client/models/media-protocol.d.ts +24 -0
- package/lib/generated-client/models/media-protocol.js +30 -0
- package/lib/generated-client/models/media-source-info.d.ts +279 -0
- package/lib/generated-client/models/media-source-info.js +14 -0
- package/lib/generated-client/models/media-source-type.d.ts +20 -0
- package/lib/generated-client/models/media-source-type.js +26 -0
- package/lib/generated-client/models/media-stream-type.d.ts +21 -0
- package/lib/generated-client/models/media-stream-type.js +27 -0
- package/lib/generated-client/models/media-stream.d.ts +367 -0
- package/lib/generated-client/models/media-stream.js +14 -0
- package/lib/generated-client/models/media-update-info-dto.d.ts +24 -0
- package/lib/generated-client/models/media-update-info-dto.js +14 -0
- package/lib/generated-client/models/media-update-info-path-dto.d.ts +29 -0
- package/lib/generated-client/models/media-update-info-path-dto.js +14 -0
- package/lib/generated-client/models/media-url.d.ts +29 -0
- package/lib/generated-client/models/media-url.js +14 -0
- package/lib/generated-client/models/message-command.d.ts +35 -0
- package/lib/generated-client/models/message-command.js +14 -0
- package/lib/generated-client/models/metadata-configuration.d.ts +23 -0
- package/lib/generated-client/models/metadata-configuration.js +14 -0
- package/lib/generated-client/models/metadata-editor-info.d.ts +58 -0
- package/lib/generated-client/models/metadata-editor-info.js +14 -0
- package/lib/generated-client/models/metadata-field.d.ts +26 -0
- package/lib/generated-client/models/metadata-field.js +32 -0
- package/lib/generated-client/models/metadata-options.d.ts +59 -0
- package/lib/generated-client/models/metadata-options.js +14 -0
- package/lib/generated-client/models/metadata-refresh-mode.d.ts +21 -0
- package/lib/generated-client/models/metadata-refresh-mode.js +27 -0
- package/lib/generated-client/models/move-playlist-item-request-dto.d.ts +29 -0
- package/lib/generated-client/models/move-playlist-item-request-dto.js +14 -0
- package/lib/generated-client/models/movie-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/movie-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/movie-info.d.ts +85 -0
- package/lib/generated-client/models/movie-info.js +14 -0
- package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/music-video-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/music-video-info.d.ts +91 -0
- package/lib/generated-client/models/music-video-info.js +14 -0
- package/lib/generated-client/models/name-guid-pair.d.ts +29 -0
- package/lib/generated-client/models/name-guid-pair.js +14 -0
- package/lib/generated-client/models/name-id-pair.d.ts +29 -0
- package/lib/generated-client/models/name-id-pair.js +14 -0
- package/lib/generated-client/models/name-value-pair.d.ts +29 -0
- package/lib/generated-client/models/name-value-pair.js +14 -0
- package/lib/generated-client/models/network-configuration.d.ts +221 -0
- package/lib/generated-client/models/network-configuration.js +14 -0
- package/lib/generated-client/models/new-group-request-dto.d.ts +23 -0
- package/lib/generated-client/models/new-group-request-dto.js +14 -0
- package/lib/generated-client/models/next-item-request-dto.d.ts +23 -0
- package/lib/generated-client/models/next-item-request-dto.js +14 -0
- package/lib/generated-client/models/notification-dto.d.ts +66 -0
- package/lib/generated-client/models/notification-dto.js +14 -0
- package/lib/generated-client/models/notification-level.d.ts +20 -0
- package/lib/generated-client/models/notification-level.js +26 -0
- package/lib/generated-client/models/notification-option.d.ts +54 -0
- package/lib/generated-client/models/notification-option.js +14 -0
- package/lib/generated-client/models/notification-options.d.ts +24 -0
- package/lib/generated-client/models/notification-options.js +14 -0
- package/lib/generated-client/models/notification-result-dto.d.ts +30 -0
- package/lib/generated-client/models/notification-result-dto.js +14 -0
- package/lib/generated-client/models/notification-type-info.d.ts +47 -0
- package/lib/generated-client/models/notification-type-info.js +14 -0
- package/lib/generated-client/models/notifications-summary-dto.d.ts +30 -0
- package/lib/generated-client/models/notifications-summary-dto.js +14 -0
- package/lib/generated-client/models/object-group-update.d.ts +36 -0
- package/lib/generated-client/models/object-group-update.js +14 -0
- package/lib/generated-client/models/open-live-stream-dto.d.ts +97 -0
- package/lib/generated-client/models/open-live-stream-dto.js +14 -0
- package/lib/generated-client/models/package-info.d.ts +66 -0
- package/lib/generated-client/models/package-info.js +14 -0
- package/lib/generated-client/models/parental-rating.d.ts +29 -0
- package/lib/generated-client/models/parental-rating.js +14 -0
- package/lib/generated-client/models/path-substitution.d.ts +29 -0
- package/lib/generated-client/models/path-substitution.js +14 -0
- package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/person-lookup-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/person-lookup-info.d.ts +85 -0
- package/lib/generated-client/models/person-lookup-info.js +14 -0
- package/lib/generated-client/models/pin-redeem-result.d.ts +29 -0
- package/lib/generated-client/models/pin-redeem-result.js +14 -0
- package/lib/generated-client/models/ping-request-dto.d.ts +23 -0
- package/lib/generated-client/models/ping-request-dto.js +14 -0
- package/lib/generated-client/models/play-access.d.ts +19 -0
- package/lib/generated-client/models/play-access.js +25 -0
- package/lib/generated-client/models/play-command.d.ts +22 -0
- package/lib/generated-client/models/play-command.js +28 -0
- package/lib/generated-client/models/play-method.d.ts +20 -0
- package/lib/generated-client/models/play-method.js +26 -0
- package/lib/generated-client/models/play-request-dto.d.ts +35 -0
- package/lib/generated-client/models/play-request-dto.js +14 -0
- package/lib/generated-client/models/play-request.d.ts +66 -0
- package/lib/generated-client/models/play-request.js +14 -0
- package/lib/generated-client/models/playback-error-code.d.ts +20 -0
- package/lib/generated-client/models/playback-error-code.js +26 -0
- package/lib/generated-client/models/playback-info-dto.d.ts +108 -0
- package/lib/generated-client/models/playback-info-dto.js +14 -0
- package/lib/generated-client/models/playback-info-response.d.ts +37 -0
- package/lib/generated-client/models/playback-info-response.js +14 -0
- package/lib/generated-client/models/playback-progress-info.d.ts +141 -0
- package/lib/generated-client/models/playback-progress-info.js +14 -0
- package/lib/generated-client/models/playback-start-info.d.ts +141 -0
- package/lib/generated-client/models/playback-start-info.js +14 -0
- package/lib/generated-client/models/playback-stop-info.d.ts +85 -0
- package/lib/generated-client/models/playback-stop-info.js +14 -0
- package/lib/generated-client/models/player-state-info.d.ts +85 -0
- package/lib/generated-client/models/player-state-info.js +14 -0
- package/lib/generated-client/models/playlist-creation-result.d.ts +23 -0
- package/lib/generated-client/models/playlist-creation-result.js +14 -0
- package/lib/generated-client/models/playstate-command.d.ts +26 -0
- package/lib/generated-client/models/playstate-command.js +32 -0
- package/lib/generated-client/models/playstate-request.d.ts +36 -0
- package/lib/generated-client/models/playstate-request.js +14 -0
- package/lib/generated-client/models/plugin-info.d.ts +66 -0
- package/lib/generated-client/models/plugin-info.js +14 -0
- package/lib/generated-client/models/plugin-status.d.ts +24 -0
- package/lib/generated-client/models/plugin-status.js +30 -0
- package/lib/generated-client/models/previous-item-request-dto.d.ts +23 -0
- package/lib/generated-client/models/previous-item-request-dto.js +14 -0
- package/lib/generated-client/models/problem-details.d.ts +48 -0
- package/lib/generated-client/models/problem-details.js +14 -0
- package/lib/generated-client/models/profile-condition-type.d.ts +22 -0
- package/lib/generated-client/models/profile-condition-type.js +28 -0
- package/lib/generated-client/models/profile-condition-value.d.ts +41 -0
- package/lib/generated-client/models/profile-condition-value.js +47 -0
- package/lib/generated-client/models/profile-condition.d.ts +43 -0
- package/lib/generated-client/models/profile-condition.js +14 -0
- package/lib/generated-client/models/program-audio.d.ts +23 -0
- package/lib/generated-client/models/program-audio.js +29 -0
- package/lib/generated-client/models/public-system-info.d.ts +59 -0
- package/lib/generated-client/models/public-system-info.js +14 -0
- package/lib/generated-client/models/query-filters-legacy.d.ts +41 -0
- package/lib/generated-client/models/query-filters-legacy.js +14 -0
- package/lib/generated-client/models/query-filters.d.ts +30 -0
- package/lib/generated-client/models/query-filters.js +14 -0
- package/lib/generated-client/models/queue-item.d.ts +29 -0
- package/lib/generated-client/models/queue-item.js +14 -0
- package/lib/generated-client/models/queue-request-dto.d.ts +30 -0
- package/lib/generated-client/models/queue-request-dto.js +14 -0
- package/lib/generated-client/models/quick-connect-dto.d.ts +23 -0
- package/lib/generated-client/models/quick-connect-dto.js +14 -0
- package/lib/generated-client/models/quick-connect-result.d.ts +65 -0
- package/lib/generated-client/models/quick-connect-result.js +14 -0
- package/lib/generated-client/models/rating-type.d.ts +19 -0
- package/lib/generated-client/models/rating-type.js +25 -0
- package/lib/generated-client/models/ready-request-dto.d.ts +41 -0
- package/lib/generated-client/models/ready-request-dto.js +14 -0
- package/lib/generated-client/models/recommendation-dto.d.ts +43 -0
- package/lib/generated-client/models/recommendation-dto.js +14 -0
- package/lib/generated-client/models/recommendation-type.d.ts +23 -0
- package/lib/generated-client/models/recommendation-type.js +29 -0
- package/lib/generated-client/models/recording-status.d.ts +24 -0
- package/lib/generated-client/models/recording-status.js +30 -0
- package/lib/generated-client/models/remote-image-info.d.ts +79 -0
- package/lib/generated-client/models/remote-image-info.js +14 -0
- package/lib/generated-client/models/remote-image-result.d.ts +36 -0
- package/lib/generated-client/models/remote-image-result.js +14 -0
- package/lib/generated-client/models/remote-search-result.d.ts +91 -0
- package/lib/generated-client/models/remote-search-result.js +14 -0
- package/lib/generated-client/models/remote-subtitle-info.d.ts +83 -0
- package/lib/generated-client/models/remote-subtitle-info.js +14 -0
- package/lib/generated-client/models/remove-from-playlist-request-dto.d.ts +35 -0
- package/lib/generated-client/models/remove-from-playlist-request-dto.js +14 -0
- package/lib/generated-client/models/repeat-mode.d.ts +20 -0
- package/lib/generated-client/models/repeat-mode.js +26 -0
- package/lib/generated-client/models/repository-info.d.ts +35 -0
- package/lib/generated-client/models/repository-info.js +14 -0
- package/lib/generated-client/models/response-profile.d.ts +61 -0
- package/lib/generated-client/models/response-profile.js +14 -0
- package/lib/generated-client/models/scroll-direction.d.ts +19 -0
- package/lib/generated-client/models/scroll-direction.js +25 -0
- package/lib/generated-client/models/search-hint-result.d.ts +30 -0
- package/lib/generated-client/models/search-hint-result.js +14 -0
- package/lib/generated-client/models/search-hint.d.ts +191 -0
- package/lib/generated-client/models/search-hint.js +14 -0
- package/lib/generated-client/models/seek-request-dto.d.ts +23 -0
- package/lib/generated-client/models/seek-request-dto.js +14 -0
- package/lib/generated-client/models/send-command-type.d.ts +21 -0
- package/lib/generated-client/models/send-command-type.js +27 -0
- package/lib/generated-client/models/send-command.d.ts +54 -0
- package/lib/generated-client/models/send-command.js +14 -0
- package/lib/generated-client/models/send-to-user-type.d.ts +20 -0
- package/lib/generated-client/models/send-to-user-type.js +26 -0
- package/lib/generated-client/models/series-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/series-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/series-info.d.ts +85 -0
- package/lib/generated-client/models/series-info.js +14 -0
- package/lib/generated-client/models/series-status.d.ts +19 -0
- package/lib/generated-client/models/series-status.js +25 -0
- package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/series-timer-info-dto-query-result.js +14 -0
- package/lib/generated-client/models/series-timer-info-dto.d.ts +232 -0
- package/lib/generated-client/models/series-timer-info-dto.js +14 -0
- package/lib/generated-client/models/server-configuration.d.ts +310 -0
- package/lib/generated-client/models/server-configuration.js +14 -0
- package/lib/generated-client/models/server-discovery-info.d.ts +41 -0
- package/lib/generated-client/models/server-discovery-info.js +14 -0
- package/lib/generated-client/models/session-info.d.ts +199 -0
- package/lib/generated-client/models/session-info.js +14 -0
- package/lib/generated-client/models/session-message-type.d.ts +51 -0
- package/lib/generated-client/models/session-message-type.js +57 -0
- package/lib/generated-client/models/session-user-info.d.ts +29 -0
- package/lib/generated-client/models/session-user-info.js +14 -0
- package/lib/generated-client/models/set-channel-mapping-dto.d.ts +35 -0
- package/lib/generated-client/models/set-channel-mapping-dto.js +14 -0
- package/lib/generated-client/models/set-playlist-item-request-dto.d.ts +23 -0
- package/lib/generated-client/models/set-playlist-item-request-dto.js +14 -0
- package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +24 -0
- package/lib/generated-client/models/set-repeat-mode-request-dto.js +14 -0
- package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +24 -0
- package/lib/generated-client/models/set-shuffle-mode-request-dto.js +14 -0
- package/lib/generated-client/models/song-info.d.ts +103 -0
- package/lib/generated-client/models/song-info.js +14 -0
- package/lib/generated-client/models/sort-order.d.ts +19 -0
- package/lib/generated-client/models/sort-order.js +25 -0
- package/lib/generated-client/models/special-view-option-dto.d.ts +29 -0
- package/lib/generated-client/models/special-view-option-dto.js +14 -0
- package/lib/generated-client/models/startup-configuration-dto.d.ts +35 -0
- package/lib/generated-client/models/startup-configuration-dto.js +14 -0
- package/lib/generated-client/models/startup-remote-access-dto.d.ts +29 -0
- package/lib/generated-client/models/startup-remote-access-dto.js +14 -0
- package/lib/generated-client/models/startup-user-dto.d.ts +29 -0
- package/lib/generated-client/models/startup-user-dto.js +14 -0
- package/lib/generated-client/models/subtitle-delivery-method.d.ts +22 -0
- package/lib/generated-client/models/subtitle-delivery-method.js +28 -0
- package/lib/generated-client/models/subtitle-options.d.ts +71 -0
- package/lib/generated-client/models/subtitle-options.js +14 -0
- package/lib/generated-client/models/subtitle-playback-mode.d.ts +22 -0
- package/lib/generated-client/models/subtitle-playback-mode.js +28 -0
- package/lib/generated-client/models/subtitle-profile.d.ts +48 -0
- package/lib/generated-client/models/subtitle-profile.js +14 -0
- package/lib/generated-client/models/sync-play-user-access-type.d.ts +20 -0
- package/lib/generated-client/models/sync-play-user-access-type.js +26 -0
- package/lib/generated-client/models/system-info.d.ts +177 -0
- package/lib/generated-client/models/system-info.js +14 -0
- package/lib/generated-client/models/task-completion-status.d.ts +21 -0
- package/lib/generated-client/models/task-completion-status.js +27 -0
- package/lib/generated-client/models/task-info.d.ts +80 -0
- package/lib/generated-client/models/task-info.js +14 -0
- package/lib/generated-client/models/task-result.d.ts +66 -0
- package/lib/generated-client/models/task-result.js +14 -0
- package/lib/generated-client/models/task-state.d.ts +20 -0
- package/lib/generated-client/models/task-state.js +26 -0
- package/lib/generated-client/models/task-trigger-info.d.ts +48 -0
- package/lib/generated-client/models/task-trigger-info.js +14 -0
- package/lib/generated-client/models/theme-media-result.d.ts +42 -0
- package/lib/generated-client/models/theme-media-result.js +14 -0
- package/lib/generated-client/models/timer-event-info.d.ts +29 -0
- package/lib/generated-client/models/timer-event-info.js +14 -0
- package/lib/generated-client/models/timer-info-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/timer-info-dto-query-result.js +14 -0
- package/lib/generated-client/models/timer-info-dto.d.ts +188 -0
- package/lib/generated-client/models/timer-info-dto.js +14 -0
- package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/trailer-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/trailer-info.d.ts +85 -0
- package/lib/generated-client/models/trailer-info.js +14 -0
- package/lib/generated-client/models/transcode-seek-info.d.ts +19 -0
- package/lib/generated-client/models/transcode-seek-info.js +25 -0
- package/lib/generated-client/models/transcoding-info.d.ts +127 -0
- package/lib/generated-client/models/transcoding-info.js +47 -0
- package/lib/generated-client/models/transcoding-profile.d.ts +117 -0
- package/lib/generated-client/models/transcoding-profile.js +14 -0
- package/lib/generated-client/models/transport-stream-timestamp.d.ts +20 -0
- package/lib/generated-client/models/transport-stream-timestamp.js +26 -0
- package/lib/generated-client/models/tuner-channel-mapping.d.ts +41 -0
- package/lib/generated-client/models/tuner-channel-mapping.js +14 -0
- package/lib/generated-client/models/tuner-host-info.d.ts +83 -0
- package/lib/generated-client/models/tuner-host-info.js +14 -0
- package/lib/generated-client/models/type-options.d.ts +54 -0
- package/lib/generated-client/models/type-options.js +14 -0
- package/lib/generated-client/models/unrated-item.d.ts +26 -0
- package/lib/generated-client/models/unrated-item.js +32 -0
- package/lib/generated-client/models/update-library-options-dto.d.ts +30 -0
- package/lib/generated-client/models/update-library-options-dto.js +14 -0
- package/lib/generated-client/models/update-media-path-request-dto.d.ts +30 -0
- package/lib/generated-client/models/update-media-path-request-dto.js +14 -0
- package/lib/generated-client/models/update-user-easy-password.d.ts +35 -0
- package/lib/generated-client/models/update-user-easy-password.js +14 -0
- package/lib/generated-client/models/update-user-password.d.ts +41 -0
- package/lib/generated-client/models/update-user-password.js +14 -0
- package/lib/generated-client/models/upload-subtitle-dto.d.ts +41 -0
- package/lib/generated-client/models/upload-subtitle-dto.js +14 -0
- package/lib/generated-client/models/user-configuration.d.ts +108 -0
- package/lib/generated-client/models/user-configuration.js +14 -0
- package/lib/generated-client/models/user-dto.d.ts +103 -0
- package/lib/generated-client/models/user-dto.js +14 -0
- package/lib/generated-client/models/user-item-data-dto.d.ts +83 -0
- package/lib/generated-client/models/user-item-data-dto.js +14 -0
- package/lib/generated-client/models/user-policy.d.ts +254 -0
- package/lib/generated-client/models/user-policy.js +14 -0
- package/lib/generated-client/models/utc-time-response.d.ts +29 -0
- package/lib/generated-client/models/utc-time-response.js +14 -0
- package/lib/generated-client/models/validate-path-dto.d.ts +35 -0
- package/lib/generated-client/models/validate-path-dto.js +14 -0
- package/lib/generated-client/models/version-info.d.ts +71 -0
- package/lib/generated-client/models/version-info.js +14 -0
- package/lib/generated-client/models/video-type.d.ts +21 -0
- package/lib/generated-client/models/video-type.js +27 -0
- package/lib/generated-client/models/video3-dformat.d.ts +22 -0
- package/lib/generated-client/models/video3-dformat.js +28 -0
- package/lib/generated-client/models/virtual-folder-info.d.ts +67 -0
- package/lib/generated-client/models/virtual-folder-info.js +14 -0
- package/lib/generated-client/models/wake-on-lan-info.d.ts +29 -0
- package/lib/generated-client/models/wake-on-lan-info.js +14 -0
- package/lib/generated-client/models/xbmc-metadata-options.d.ts +47 -0
- package/lib/generated-client/models/xbmc-metadata-options.js +14 -0
- package/lib/generated-client/models/xml-attribute.d.ts +29 -0
- package/lib/generated-client/models/xml-attribute.js +14 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +39 -0
- package/lib/jellyfin.d.ts +33 -0
- package/lib/jellyfin.js +34 -0
- package/lib/models/api/image-request-parameters.d.ts +29 -0
- package/lib/models/api/image-request-parameters.js +7 -0
- package/lib/models/api/index.d.ts +7 -0
- package/lib/models/api/index.js +23 -0
- package/lib/models/api/item-sort-by.d.ts +40 -0
- package/lib/models/api/item-sort-by.js +44 -0
- package/lib/models/client-info.d.ts +12 -0
- package/lib/models/client-info.js +7 -0
- package/lib/models/device-info.d.ts +12 -0
- package/lib/models/device-info.js +7 -0
- package/lib/models/index.d.ts +9 -0
- package/lib/models/index.js +25 -0
- package/lib/models/recommended-server-info.d.ts +22 -0
- package/lib/models/recommended-server-info.js +16 -0
- package/lib/models/recommended-server-issue.d.ts +48 -0
- package/lib/models/recommended-server-issue.js +103 -0
- package/lib/utils/address-candidates.d.ts +16 -0
- package/lib/utils/address-candidates.js +85 -0
- package/lib/utils/api/activity-log-api.d.ts +8 -0
- package/lib/utils/api/activity-log-api.js +13 -0
- package/lib/utils/api/api-key-api.d.ts +8 -0
- package/lib/utils/api/api-key-api.js +13 -0
- package/lib/utils/api/artists-api.d.ts +8 -0
- package/lib/utils/api/artists-api.js +13 -0
- package/lib/utils/api/audio-api.d.ts +8 -0
- package/lib/utils/api/audio-api.js +13 -0
- package/lib/utils/api/branding-api.d.ts +8 -0
- package/lib/utils/api/branding-api.js +13 -0
- package/lib/utils/api/channels-api.d.ts +8 -0
- package/lib/utils/api/channels-api.js +13 -0
- package/lib/utils/api/client-log-api.d.ts +8 -0
- package/lib/utils/api/client-log-api.js +13 -0
- package/lib/utils/api/collection-api.d.ts +8 -0
- package/lib/utils/api/collection-api.js +13 -0
- package/lib/utils/api/configuration-api.d.ts +8 -0
- package/lib/utils/api/configuration-api.js +13 -0
- package/lib/utils/api/dashboard-api.d.ts +8 -0
- package/lib/utils/api/dashboard-api.js +13 -0
- package/lib/utils/api/devices-api.d.ts +8 -0
- package/lib/utils/api/devices-api.js +13 -0
- package/lib/utils/api/display-preferences-api.d.ts +8 -0
- package/lib/utils/api/display-preferences-api.js +13 -0
- package/lib/utils/api/dlna-api.d.ts +8 -0
- package/lib/utils/api/dlna-api.js +13 -0
- package/lib/utils/api/dlna-server-api.d.ts +8 -0
- package/lib/utils/api/dlna-server-api.js +13 -0
- package/lib/utils/api/dynamic-hls-api.d.ts +8 -0
- package/lib/utils/api/dynamic-hls-api.js +13 -0
- package/lib/utils/api/environment-api.d.ts +8 -0
- package/lib/utils/api/environment-api.js +13 -0
- package/lib/utils/api/filter-api.d.ts +8 -0
- package/lib/utils/api/filter-api.js +13 -0
- package/lib/utils/api/genres-api.d.ts +8 -0
- package/lib/utils/api/genres-api.js +13 -0
- package/lib/utils/api/hls-segment-api.d.ts +8 -0
- package/lib/utils/api/hls-segment-api.js +13 -0
- package/lib/utils/api/image-api.d.ts +8 -0
- package/lib/utils/api/image-api.js +13 -0
- package/lib/utils/api/image-by-name-api.d.ts +8 -0
- package/lib/utils/api/image-by-name-api.js +13 -0
- package/lib/utils/api/instant-mix-api.d.ts +8 -0
- package/lib/utils/api/instant-mix-api.js +13 -0
- package/lib/utils/api/item-lookup-api.d.ts +8 -0
- package/lib/utils/api/item-lookup-api.js +13 -0
- package/lib/utils/api/item-refresh-api.d.ts +8 -0
- package/lib/utils/api/item-refresh-api.js +13 -0
- package/lib/utils/api/item-update-api.d.ts +8 -0
- package/lib/utils/api/item-update-api.js +13 -0
- package/lib/utils/api/items-api.d.ts +8 -0
- package/lib/utils/api/items-api.js +13 -0
- package/lib/utils/api/library-api.d.ts +8 -0
- package/lib/utils/api/library-api.js +13 -0
- package/lib/utils/api/library-structure-api.d.ts +8 -0
- package/lib/utils/api/library-structure-api.js +13 -0
- package/lib/utils/api/live-tv-api.d.ts +8 -0
- package/lib/utils/api/live-tv-api.js +13 -0
- package/lib/utils/api/localization-api.d.ts +8 -0
- package/lib/utils/api/localization-api.js +13 -0
- package/lib/utils/api/media-info-api.d.ts +8 -0
- package/lib/utils/api/media-info-api.js +13 -0
- package/lib/utils/api/movies-api.d.ts +8 -0
- package/lib/utils/api/movies-api.js +13 -0
- package/lib/utils/api/music-genres-api.d.ts +8 -0
- package/lib/utils/api/music-genres-api.js +13 -0
- package/lib/utils/api/notifications-api.d.ts +8 -0
- package/lib/utils/api/notifications-api.js +13 -0
- package/lib/utils/api/package-api.d.ts +8 -0
- package/lib/utils/api/package-api.js +13 -0
- package/lib/utils/api/persons-api.d.ts +8 -0
- package/lib/utils/api/persons-api.js +13 -0
- package/lib/utils/api/playlists-api.d.ts +8 -0
- package/lib/utils/api/playlists-api.js +13 -0
- package/lib/utils/api/playstate-api.d.ts +8 -0
- package/lib/utils/api/playstate-api.js +13 -0
- package/lib/utils/api/plugins-api.d.ts +8 -0
- package/lib/utils/api/plugins-api.js +13 -0
- package/lib/utils/api/quick-connect-api.d.ts +8 -0
- package/lib/utils/api/quick-connect-api.js +13 -0
- package/lib/utils/api/remote-image-api.d.ts +8 -0
- package/lib/utils/api/remote-image-api.js +13 -0
- package/lib/utils/api/scheduled-tasks-api.d.ts +8 -0
- package/lib/utils/api/scheduled-tasks-api.js +13 -0
- package/lib/utils/api/search-api.d.ts +8 -0
- package/lib/utils/api/search-api.js +13 -0
- package/lib/utils/api/session-api.d.ts +8 -0
- package/lib/utils/api/session-api.js +13 -0
- package/lib/utils/api/startup-api.d.ts +8 -0
- package/lib/utils/api/startup-api.js +13 -0
- package/lib/utils/api/studios-api.d.ts +8 -0
- package/lib/utils/api/studios-api.js +13 -0
- package/lib/utils/api/subtitle-api.d.ts +8 -0
- package/lib/utils/api/subtitle-api.js +13 -0
- package/lib/utils/api/suggestions-api.d.ts +8 -0
- package/lib/utils/api/suggestions-api.js +13 -0
- package/lib/utils/api/sync-play-api.d.ts +8 -0
- package/lib/utils/api/sync-play-api.js +13 -0
- package/lib/utils/api/system-api.d.ts +8 -0
- package/lib/utils/api/system-api.js +13 -0
- package/lib/utils/api/time-sync-api.d.ts +8 -0
- package/lib/utils/api/time-sync-api.js +13 -0
- package/lib/utils/api/tmdb-api.d.ts +8 -0
- package/lib/utils/api/tmdb-api.js +13 -0
- package/lib/utils/api/trailers-api.d.ts +8 -0
- package/lib/utils/api/trailers-api.js +13 -0
- package/lib/utils/api/tv-shows-api.d.ts +8 -0
- package/lib/utils/api/tv-shows-api.js +13 -0
- package/lib/utils/api/universal-audio-api.d.ts +8 -0
- package/lib/utils/api/universal-audio-api.js +13 -0
- package/lib/utils/api/user-api.d.ts +8 -0
- package/lib/utils/api/user-api.js +13 -0
- package/lib/utils/api/user-library-api.d.ts +8 -0
- package/lib/utils/api/user-library-api.js +13 -0
- package/lib/utils/api/user-views-api.d.ts +8 -0
- package/lib/utils/api/user-views-api.js +13 -0
- package/lib/utils/api/video-attachments-api.d.ts +8 -0
- package/lib/utils/api/video-attachments-api.js +13 -0
- package/lib/utils/api/videos-api.d.ts +8 -0
- package/lib/utils/api/videos-api.js +13 -0
- package/lib/utils/api/years-api.d.ts +8 -0
- package/lib/utils/api/years-api.js +13 -0
- package/lib/utils/authentication.d.ts +10 -0
- package/lib/utils/authentication.js +18 -0
- package/lib/utils/browser-profiles.d.ts +25 -0
- package/lib/utils/browser-profiles.js +44 -0
- package/lib/utils/index.d.ts +9 -0
- package/lib/utils/index.js +25 -0
- package/lib/utils/normalize-url.d.ts +20 -0
- package/lib/utils/normalize-url.js +96 -0
- package/lib/utils/url.d.ts +31 -0
- package/lib/utils/url.js +54 -0
- package/openapi-templates/licenseInfo.mustache +10 -0
- package/package.json +46 -0
- package/tsconfig.json +25 -0
|
@@ -0,0 +1,2414 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
6
|
+
* Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
* Jellyfin API
|
|
9
|
+
*
|
|
10
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
11
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
12
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
13
|
+
*/
|
|
14
|
+
var __extends = (this && this.__extends) || (function () {
|
|
15
|
+
var extendStatics = function (d, b) {
|
|
16
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
|
+
return extendStatics(d, b);
|
|
20
|
+
};
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
if (typeof b !== "function" && b !== null)
|
|
23
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
24
|
+
extendStatics(d, b);
|
|
25
|
+
function __() { this.constructor = d; }
|
|
26
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
var __assign = (this && this.__assign) || function () {
|
|
30
|
+
__assign = Object.assign || function(t) {
|
|
31
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32
|
+
s = arguments[i];
|
|
33
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
34
|
+
t[p] = s[p];
|
|
35
|
+
}
|
|
36
|
+
return t;
|
|
37
|
+
};
|
|
38
|
+
return __assign.apply(this, arguments);
|
|
39
|
+
};
|
|
40
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
42
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
44
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
45
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
46
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
50
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
51
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
52
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
53
|
+
function step(op) {
|
|
54
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
55
|
+
while (_) try {
|
|
56
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
57
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
58
|
+
switch (op[0]) {
|
|
59
|
+
case 0: case 1: t = op; break;
|
|
60
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
61
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
62
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
63
|
+
default:
|
|
64
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
65
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
66
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
67
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
68
|
+
if (t[2]) _.ops.pop();
|
|
69
|
+
_.trys.pop(); continue;
|
|
70
|
+
}
|
|
71
|
+
op = body.call(thisArg, _);
|
|
72
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
73
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
77
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
78
|
+
};
|
|
79
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
80
|
+
exports.LibraryApi = exports.LibraryApiFactory = exports.LibraryApiFp = exports.LibraryApiAxiosParamCreator = void 0;
|
|
81
|
+
var axios_1 = __importDefault(require("axios"));
|
|
82
|
+
// Some imports not used depending on template conditions
|
|
83
|
+
// @ts-ignore
|
|
84
|
+
var common_1 = require("../common");
|
|
85
|
+
// @ts-ignore
|
|
86
|
+
var base_1 = require("../base");
|
|
87
|
+
/**
|
|
88
|
+
* LibraryApi - axios parameter creator
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
var LibraryApiAxiosParamCreator = function (configuration) {
|
|
92
|
+
var _this = this;
|
|
93
|
+
return {
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @summary Deletes an item from the library and filesystem.
|
|
97
|
+
* @param {string} itemId The item id.
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
deleteItem: function (itemId, options) {
|
|
102
|
+
if (options === void 0) { options = {}; }
|
|
103
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
104
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
105
|
+
return __generator(this, function (_a) {
|
|
106
|
+
switch (_a.label) {
|
|
107
|
+
case 0:
|
|
108
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
109
|
+
(0, common_1.assertParamExists)('deleteItem', 'itemId', itemId);
|
|
110
|
+
localVarPath = "/Items/{itemId}"
|
|
111
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
112
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
113
|
+
if (configuration) {
|
|
114
|
+
baseOptions = configuration.baseOptions;
|
|
115
|
+
}
|
|
116
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
117
|
+
localVarHeaderParameter = {};
|
|
118
|
+
localVarQueryParameter = {};
|
|
119
|
+
// authentication CustomAuthentication required
|
|
120
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
121
|
+
case 1:
|
|
122
|
+
// authentication CustomAuthentication required
|
|
123
|
+
_a.sent();
|
|
124
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
125
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
127
|
+
return [2 /*return*/, {
|
|
128
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
129
|
+
options: localVarRequestOptions,
|
|
130
|
+
}];
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
},
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @summary Deletes items from the library and filesystem.
|
|
138
|
+
* @param {Array<string>} [ids] The item ids.
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
deleteItems: function (ids, options) {
|
|
143
|
+
if (options === void 0) { options = {}; }
|
|
144
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
145
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
146
|
+
return __generator(this, function (_a) {
|
|
147
|
+
switch (_a.label) {
|
|
148
|
+
case 0:
|
|
149
|
+
localVarPath = "/Items";
|
|
150
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
151
|
+
if (configuration) {
|
|
152
|
+
baseOptions = configuration.baseOptions;
|
|
153
|
+
}
|
|
154
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
155
|
+
localVarHeaderParameter = {};
|
|
156
|
+
localVarQueryParameter = {};
|
|
157
|
+
// authentication CustomAuthentication required
|
|
158
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
159
|
+
case 1:
|
|
160
|
+
// authentication CustomAuthentication required
|
|
161
|
+
_a.sent();
|
|
162
|
+
if (ids) {
|
|
163
|
+
localVarQueryParameter['ids'] = ids;
|
|
164
|
+
}
|
|
165
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
166
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
167
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
168
|
+
return [2 /*return*/, {
|
|
169
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
170
|
+
options: localVarRequestOptions,
|
|
171
|
+
}];
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
},
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @summary Gets all parents of an item.
|
|
179
|
+
* @param {string} itemId The item id.
|
|
180
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
getAncestors: function (itemId, userId, options) {
|
|
185
|
+
if (options === void 0) { options = {}; }
|
|
186
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
187
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
188
|
+
return __generator(this, function (_a) {
|
|
189
|
+
switch (_a.label) {
|
|
190
|
+
case 0:
|
|
191
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
192
|
+
(0, common_1.assertParamExists)('getAncestors', 'itemId', itemId);
|
|
193
|
+
localVarPath = "/Items/{itemId}/Ancestors"
|
|
194
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
195
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
196
|
+
if (configuration) {
|
|
197
|
+
baseOptions = configuration.baseOptions;
|
|
198
|
+
}
|
|
199
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
200
|
+
localVarHeaderParameter = {};
|
|
201
|
+
localVarQueryParameter = {};
|
|
202
|
+
// authentication CustomAuthentication required
|
|
203
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
204
|
+
case 1:
|
|
205
|
+
// authentication CustomAuthentication required
|
|
206
|
+
_a.sent();
|
|
207
|
+
if (userId !== undefined) {
|
|
208
|
+
localVarQueryParameter['userId'] = userId;
|
|
209
|
+
}
|
|
210
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
211
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
212
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
213
|
+
return [2 /*return*/, {
|
|
214
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
215
|
+
options: localVarRequestOptions,
|
|
216
|
+
}];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
},
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
* @summary Gets critic review for an item.
|
|
224
|
+
* @param {string} itemId
|
|
225
|
+
* @param {*} [options] Override http request option.
|
|
226
|
+
* @deprecated
|
|
227
|
+
* @throws {RequiredError}
|
|
228
|
+
*/
|
|
229
|
+
getCriticReviews: function (itemId, options) {
|
|
230
|
+
if (options === void 0) { options = {}; }
|
|
231
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
232
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
233
|
+
return __generator(this, function (_a) {
|
|
234
|
+
switch (_a.label) {
|
|
235
|
+
case 0:
|
|
236
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
237
|
+
(0, common_1.assertParamExists)('getCriticReviews', 'itemId', itemId);
|
|
238
|
+
localVarPath = "/Items/{itemId}/CriticReviews"
|
|
239
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
240
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
241
|
+
if (configuration) {
|
|
242
|
+
baseOptions = configuration.baseOptions;
|
|
243
|
+
}
|
|
244
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
245
|
+
localVarHeaderParameter = {};
|
|
246
|
+
localVarQueryParameter = {};
|
|
247
|
+
// authentication CustomAuthentication required
|
|
248
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
249
|
+
case 1:
|
|
250
|
+
// authentication CustomAuthentication required
|
|
251
|
+
_a.sent();
|
|
252
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
253
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
254
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
255
|
+
return [2 /*return*/, {
|
|
256
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
257
|
+
options: localVarRequestOptions,
|
|
258
|
+
}];
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
},
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @summary Downloads item media.
|
|
266
|
+
* @param {string} itemId The item id.
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
*/
|
|
270
|
+
getDownload: function (itemId, options) {
|
|
271
|
+
if (options === void 0) { options = {}; }
|
|
272
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
273
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
274
|
+
return __generator(this, function (_a) {
|
|
275
|
+
switch (_a.label) {
|
|
276
|
+
case 0:
|
|
277
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
278
|
+
(0, common_1.assertParamExists)('getDownload', 'itemId', itemId);
|
|
279
|
+
localVarPath = "/Items/{itemId}/Download"
|
|
280
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
281
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
282
|
+
if (configuration) {
|
|
283
|
+
baseOptions = configuration.baseOptions;
|
|
284
|
+
}
|
|
285
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
286
|
+
localVarHeaderParameter = {};
|
|
287
|
+
localVarQueryParameter = {};
|
|
288
|
+
// authentication CustomAuthentication required
|
|
289
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
290
|
+
case 1:
|
|
291
|
+
// authentication CustomAuthentication required
|
|
292
|
+
_a.sent();
|
|
293
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
294
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
295
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
296
|
+
return [2 /*return*/, {
|
|
297
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
298
|
+
options: localVarRequestOptions,
|
|
299
|
+
}];
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
},
|
|
304
|
+
/**
|
|
305
|
+
*
|
|
306
|
+
* @summary Get the original file of an item.
|
|
307
|
+
* @param {string} itemId The item id.
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
getFile: function (itemId, options) {
|
|
312
|
+
if (options === void 0) { options = {}; }
|
|
313
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
314
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
315
|
+
return __generator(this, function (_a) {
|
|
316
|
+
switch (_a.label) {
|
|
317
|
+
case 0:
|
|
318
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
319
|
+
(0, common_1.assertParamExists)('getFile', 'itemId', itemId);
|
|
320
|
+
localVarPath = "/Items/{itemId}/File"
|
|
321
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
322
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
323
|
+
if (configuration) {
|
|
324
|
+
baseOptions = configuration.baseOptions;
|
|
325
|
+
}
|
|
326
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
327
|
+
localVarHeaderParameter = {};
|
|
328
|
+
localVarQueryParameter = {};
|
|
329
|
+
// authentication CustomAuthentication required
|
|
330
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
331
|
+
case 1:
|
|
332
|
+
// authentication CustomAuthentication required
|
|
333
|
+
_a.sent();
|
|
334
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
335
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
336
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
337
|
+
return [2 /*return*/, {
|
|
338
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
339
|
+
options: localVarRequestOptions,
|
|
340
|
+
}];
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
});
|
|
344
|
+
},
|
|
345
|
+
/**
|
|
346
|
+
*
|
|
347
|
+
* @summary Get item counts.
|
|
348
|
+
* @param {string} [userId] Optional. Get counts from a specific user\'s library.
|
|
349
|
+
* @param {boolean} [isFavorite] Optional. Get counts of favorite items.
|
|
350
|
+
* @param {*} [options] Override http request option.
|
|
351
|
+
* @throws {RequiredError}
|
|
352
|
+
*/
|
|
353
|
+
getItemCounts: function (userId, isFavorite, options) {
|
|
354
|
+
if (options === void 0) { options = {}; }
|
|
355
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
356
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
357
|
+
return __generator(this, function (_a) {
|
|
358
|
+
switch (_a.label) {
|
|
359
|
+
case 0:
|
|
360
|
+
localVarPath = "/Items/Counts";
|
|
361
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
362
|
+
if (configuration) {
|
|
363
|
+
baseOptions = configuration.baseOptions;
|
|
364
|
+
}
|
|
365
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
366
|
+
localVarHeaderParameter = {};
|
|
367
|
+
localVarQueryParameter = {};
|
|
368
|
+
// authentication CustomAuthentication required
|
|
369
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
370
|
+
case 1:
|
|
371
|
+
// authentication CustomAuthentication required
|
|
372
|
+
_a.sent();
|
|
373
|
+
if (userId !== undefined) {
|
|
374
|
+
localVarQueryParameter['userId'] = userId;
|
|
375
|
+
}
|
|
376
|
+
if (isFavorite !== undefined) {
|
|
377
|
+
localVarQueryParameter['isFavorite'] = isFavorite;
|
|
378
|
+
}
|
|
379
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
380
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
381
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
382
|
+
return [2 /*return*/, {
|
|
383
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
384
|
+
options: localVarRequestOptions,
|
|
385
|
+
}];
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
});
|
|
389
|
+
},
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @summary Gets the library options info.
|
|
393
|
+
* @param {string} [libraryContentType] Library content type.
|
|
394
|
+
* @param {boolean} [isNewLibrary] Whether this is a new library.
|
|
395
|
+
* @param {*} [options] Override http request option.
|
|
396
|
+
* @throws {RequiredError}
|
|
397
|
+
*/
|
|
398
|
+
getLibraryOptionsInfo: function (libraryContentType, isNewLibrary, options) {
|
|
399
|
+
if (options === void 0) { options = {}; }
|
|
400
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
401
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
402
|
+
return __generator(this, function (_a) {
|
|
403
|
+
switch (_a.label) {
|
|
404
|
+
case 0:
|
|
405
|
+
localVarPath = "/Libraries/AvailableOptions";
|
|
406
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
407
|
+
if (configuration) {
|
|
408
|
+
baseOptions = configuration.baseOptions;
|
|
409
|
+
}
|
|
410
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
411
|
+
localVarHeaderParameter = {};
|
|
412
|
+
localVarQueryParameter = {};
|
|
413
|
+
// authentication CustomAuthentication required
|
|
414
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
415
|
+
case 1:
|
|
416
|
+
// authentication CustomAuthentication required
|
|
417
|
+
_a.sent();
|
|
418
|
+
if (libraryContentType !== undefined) {
|
|
419
|
+
localVarQueryParameter['libraryContentType'] = libraryContentType;
|
|
420
|
+
}
|
|
421
|
+
if (isNewLibrary !== undefined) {
|
|
422
|
+
localVarQueryParameter['isNewLibrary'] = isNewLibrary;
|
|
423
|
+
}
|
|
424
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
425
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
426
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
427
|
+
return [2 /*return*/, {
|
|
428
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
429
|
+
options: localVarRequestOptions,
|
|
430
|
+
}];
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
});
|
|
434
|
+
},
|
|
435
|
+
/**
|
|
436
|
+
*
|
|
437
|
+
* @summary Gets all user media folders.
|
|
438
|
+
* @param {boolean} [isHidden] Optional. Filter by folders that are marked hidden, or not.
|
|
439
|
+
* @param {*} [options] Override http request option.
|
|
440
|
+
* @throws {RequiredError}
|
|
441
|
+
*/
|
|
442
|
+
getMediaFolders: function (isHidden, options) {
|
|
443
|
+
if (options === void 0) { options = {}; }
|
|
444
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
445
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
446
|
+
return __generator(this, function (_a) {
|
|
447
|
+
switch (_a.label) {
|
|
448
|
+
case 0:
|
|
449
|
+
localVarPath = "/Library/MediaFolders";
|
|
450
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
451
|
+
if (configuration) {
|
|
452
|
+
baseOptions = configuration.baseOptions;
|
|
453
|
+
}
|
|
454
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
455
|
+
localVarHeaderParameter = {};
|
|
456
|
+
localVarQueryParameter = {};
|
|
457
|
+
// authentication CustomAuthentication required
|
|
458
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
459
|
+
case 1:
|
|
460
|
+
// authentication CustomAuthentication required
|
|
461
|
+
_a.sent();
|
|
462
|
+
if (isHidden !== undefined) {
|
|
463
|
+
localVarQueryParameter['isHidden'] = isHidden;
|
|
464
|
+
}
|
|
465
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
466
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
467
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
468
|
+
return [2 /*return*/, {
|
|
469
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
470
|
+
options: localVarRequestOptions,
|
|
471
|
+
}];
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
});
|
|
475
|
+
},
|
|
476
|
+
/**
|
|
477
|
+
*
|
|
478
|
+
* @summary Gets a list of physical paths from virtual folders.
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
getPhysicalPaths: function (options) {
|
|
483
|
+
if (options === void 0) { options = {}; }
|
|
484
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
485
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
486
|
+
return __generator(this, function (_a) {
|
|
487
|
+
switch (_a.label) {
|
|
488
|
+
case 0:
|
|
489
|
+
localVarPath = "/Library/PhysicalPaths";
|
|
490
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
491
|
+
if (configuration) {
|
|
492
|
+
baseOptions = configuration.baseOptions;
|
|
493
|
+
}
|
|
494
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
495
|
+
localVarHeaderParameter = {};
|
|
496
|
+
localVarQueryParameter = {};
|
|
497
|
+
// authentication CustomAuthentication required
|
|
498
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
499
|
+
case 1:
|
|
500
|
+
// authentication CustomAuthentication required
|
|
501
|
+
_a.sent();
|
|
502
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
503
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
504
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
505
|
+
return [2 /*return*/, {
|
|
506
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
507
|
+
options: localVarRequestOptions,
|
|
508
|
+
}];
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
});
|
|
512
|
+
},
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
* @summary Gets similar items.
|
|
516
|
+
* @param {string} itemId The item id.
|
|
517
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
518
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
519
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
520
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
521
|
+
* @param {*} [options] Override http request option.
|
|
522
|
+
* @throws {RequiredError}
|
|
523
|
+
*/
|
|
524
|
+
getSimilarAlbums: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
525
|
+
if (options === void 0) { options = {}; }
|
|
526
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
527
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
528
|
+
return __generator(this, function (_a) {
|
|
529
|
+
switch (_a.label) {
|
|
530
|
+
case 0:
|
|
531
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
532
|
+
(0, common_1.assertParamExists)('getSimilarAlbums', 'itemId', itemId);
|
|
533
|
+
localVarPath = "/Albums/{itemId}/Similar"
|
|
534
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
535
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
536
|
+
if (configuration) {
|
|
537
|
+
baseOptions = configuration.baseOptions;
|
|
538
|
+
}
|
|
539
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
540
|
+
localVarHeaderParameter = {};
|
|
541
|
+
localVarQueryParameter = {};
|
|
542
|
+
// authentication CustomAuthentication required
|
|
543
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
544
|
+
case 1:
|
|
545
|
+
// authentication CustomAuthentication required
|
|
546
|
+
_a.sent();
|
|
547
|
+
if (excludeArtistIds) {
|
|
548
|
+
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
549
|
+
}
|
|
550
|
+
if (userId !== undefined) {
|
|
551
|
+
localVarQueryParameter['userId'] = userId;
|
|
552
|
+
}
|
|
553
|
+
if (limit !== undefined) {
|
|
554
|
+
localVarQueryParameter['limit'] = limit;
|
|
555
|
+
}
|
|
556
|
+
if (fields) {
|
|
557
|
+
localVarQueryParameter['fields'] = fields;
|
|
558
|
+
}
|
|
559
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
560
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
561
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
562
|
+
return [2 /*return*/, {
|
|
563
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
564
|
+
options: localVarRequestOptions,
|
|
565
|
+
}];
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
});
|
|
569
|
+
},
|
|
570
|
+
/**
|
|
571
|
+
*
|
|
572
|
+
* @summary Gets similar items.
|
|
573
|
+
* @param {string} itemId The item id.
|
|
574
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
575
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
576
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
577
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
578
|
+
* @param {*} [options] Override http request option.
|
|
579
|
+
* @throws {RequiredError}
|
|
580
|
+
*/
|
|
581
|
+
getSimilarArtists: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
582
|
+
if (options === void 0) { options = {}; }
|
|
583
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
584
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
585
|
+
return __generator(this, function (_a) {
|
|
586
|
+
switch (_a.label) {
|
|
587
|
+
case 0:
|
|
588
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
589
|
+
(0, common_1.assertParamExists)('getSimilarArtists', 'itemId', itemId);
|
|
590
|
+
localVarPath = "/Artists/{itemId}/Similar"
|
|
591
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
592
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
593
|
+
if (configuration) {
|
|
594
|
+
baseOptions = configuration.baseOptions;
|
|
595
|
+
}
|
|
596
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
597
|
+
localVarHeaderParameter = {};
|
|
598
|
+
localVarQueryParameter = {};
|
|
599
|
+
// authentication CustomAuthentication required
|
|
600
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
601
|
+
case 1:
|
|
602
|
+
// authentication CustomAuthentication required
|
|
603
|
+
_a.sent();
|
|
604
|
+
if (excludeArtistIds) {
|
|
605
|
+
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
606
|
+
}
|
|
607
|
+
if (userId !== undefined) {
|
|
608
|
+
localVarQueryParameter['userId'] = userId;
|
|
609
|
+
}
|
|
610
|
+
if (limit !== undefined) {
|
|
611
|
+
localVarQueryParameter['limit'] = limit;
|
|
612
|
+
}
|
|
613
|
+
if (fields) {
|
|
614
|
+
localVarQueryParameter['fields'] = fields;
|
|
615
|
+
}
|
|
616
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
617
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
618
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
619
|
+
return [2 /*return*/, {
|
|
620
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
621
|
+
options: localVarRequestOptions,
|
|
622
|
+
}];
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
});
|
|
626
|
+
},
|
|
627
|
+
/**
|
|
628
|
+
*
|
|
629
|
+
* @summary Gets similar items.
|
|
630
|
+
* @param {string} itemId The item id.
|
|
631
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
632
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
633
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
634
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
635
|
+
* @param {*} [options] Override http request option.
|
|
636
|
+
* @throws {RequiredError}
|
|
637
|
+
*/
|
|
638
|
+
getSimilarItems: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
639
|
+
if (options === void 0) { options = {}; }
|
|
640
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
641
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
642
|
+
return __generator(this, function (_a) {
|
|
643
|
+
switch (_a.label) {
|
|
644
|
+
case 0:
|
|
645
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
646
|
+
(0, common_1.assertParamExists)('getSimilarItems', 'itemId', itemId);
|
|
647
|
+
localVarPath = "/Items/{itemId}/Similar"
|
|
648
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
649
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
650
|
+
if (configuration) {
|
|
651
|
+
baseOptions = configuration.baseOptions;
|
|
652
|
+
}
|
|
653
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
654
|
+
localVarHeaderParameter = {};
|
|
655
|
+
localVarQueryParameter = {};
|
|
656
|
+
// authentication CustomAuthentication required
|
|
657
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
658
|
+
case 1:
|
|
659
|
+
// authentication CustomAuthentication required
|
|
660
|
+
_a.sent();
|
|
661
|
+
if (excludeArtistIds) {
|
|
662
|
+
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
663
|
+
}
|
|
664
|
+
if (userId !== undefined) {
|
|
665
|
+
localVarQueryParameter['userId'] = userId;
|
|
666
|
+
}
|
|
667
|
+
if (limit !== undefined) {
|
|
668
|
+
localVarQueryParameter['limit'] = limit;
|
|
669
|
+
}
|
|
670
|
+
if (fields) {
|
|
671
|
+
localVarQueryParameter['fields'] = fields;
|
|
672
|
+
}
|
|
673
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
674
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
675
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
676
|
+
return [2 /*return*/, {
|
|
677
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
678
|
+
options: localVarRequestOptions,
|
|
679
|
+
}];
|
|
680
|
+
}
|
|
681
|
+
});
|
|
682
|
+
});
|
|
683
|
+
},
|
|
684
|
+
/**
|
|
685
|
+
*
|
|
686
|
+
* @summary Gets similar items.
|
|
687
|
+
* @param {string} itemId The item id.
|
|
688
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
689
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
690
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
691
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
692
|
+
* @param {*} [options] Override http request option.
|
|
693
|
+
* @throws {RequiredError}
|
|
694
|
+
*/
|
|
695
|
+
getSimilarMovies: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
696
|
+
if (options === void 0) { options = {}; }
|
|
697
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
698
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
699
|
+
return __generator(this, function (_a) {
|
|
700
|
+
switch (_a.label) {
|
|
701
|
+
case 0:
|
|
702
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
703
|
+
(0, common_1.assertParamExists)('getSimilarMovies', 'itemId', itemId);
|
|
704
|
+
localVarPath = "/Movies/{itemId}/Similar"
|
|
705
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
706
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
707
|
+
if (configuration) {
|
|
708
|
+
baseOptions = configuration.baseOptions;
|
|
709
|
+
}
|
|
710
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
711
|
+
localVarHeaderParameter = {};
|
|
712
|
+
localVarQueryParameter = {};
|
|
713
|
+
// authentication CustomAuthentication required
|
|
714
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
715
|
+
case 1:
|
|
716
|
+
// authentication CustomAuthentication required
|
|
717
|
+
_a.sent();
|
|
718
|
+
if (excludeArtistIds) {
|
|
719
|
+
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
720
|
+
}
|
|
721
|
+
if (userId !== undefined) {
|
|
722
|
+
localVarQueryParameter['userId'] = userId;
|
|
723
|
+
}
|
|
724
|
+
if (limit !== undefined) {
|
|
725
|
+
localVarQueryParameter['limit'] = limit;
|
|
726
|
+
}
|
|
727
|
+
if (fields) {
|
|
728
|
+
localVarQueryParameter['fields'] = fields;
|
|
729
|
+
}
|
|
730
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
731
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
732
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
733
|
+
return [2 /*return*/, {
|
|
734
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
735
|
+
options: localVarRequestOptions,
|
|
736
|
+
}];
|
|
737
|
+
}
|
|
738
|
+
});
|
|
739
|
+
});
|
|
740
|
+
},
|
|
741
|
+
/**
|
|
742
|
+
*
|
|
743
|
+
* @summary Gets similar items.
|
|
744
|
+
* @param {string} itemId The item id.
|
|
745
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
746
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
747
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
748
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
749
|
+
* @param {*} [options] Override http request option.
|
|
750
|
+
* @throws {RequiredError}
|
|
751
|
+
*/
|
|
752
|
+
getSimilarShows: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
753
|
+
if (options === void 0) { options = {}; }
|
|
754
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
755
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
756
|
+
return __generator(this, function (_a) {
|
|
757
|
+
switch (_a.label) {
|
|
758
|
+
case 0:
|
|
759
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
760
|
+
(0, common_1.assertParamExists)('getSimilarShows', 'itemId', itemId);
|
|
761
|
+
localVarPath = "/Shows/{itemId}/Similar"
|
|
762
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
763
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
764
|
+
if (configuration) {
|
|
765
|
+
baseOptions = configuration.baseOptions;
|
|
766
|
+
}
|
|
767
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
768
|
+
localVarHeaderParameter = {};
|
|
769
|
+
localVarQueryParameter = {};
|
|
770
|
+
// authentication CustomAuthentication required
|
|
771
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
772
|
+
case 1:
|
|
773
|
+
// authentication CustomAuthentication required
|
|
774
|
+
_a.sent();
|
|
775
|
+
if (excludeArtistIds) {
|
|
776
|
+
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
777
|
+
}
|
|
778
|
+
if (userId !== undefined) {
|
|
779
|
+
localVarQueryParameter['userId'] = userId;
|
|
780
|
+
}
|
|
781
|
+
if (limit !== undefined) {
|
|
782
|
+
localVarQueryParameter['limit'] = limit;
|
|
783
|
+
}
|
|
784
|
+
if (fields) {
|
|
785
|
+
localVarQueryParameter['fields'] = fields;
|
|
786
|
+
}
|
|
787
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
788
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
789
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
790
|
+
return [2 /*return*/, {
|
|
791
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
792
|
+
options: localVarRequestOptions,
|
|
793
|
+
}];
|
|
794
|
+
}
|
|
795
|
+
});
|
|
796
|
+
});
|
|
797
|
+
},
|
|
798
|
+
/**
|
|
799
|
+
*
|
|
800
|
+
* @summary Gets similar items.
|
|
801
|
+
* @param {string} itemId The item id.
|
|
802
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
803
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
804
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
805
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
806
|
+
* @param {*} [options] Override http request option.
|
|
807
|
+
* @throws {RequiredError}
|
|
808
|
+
*/
|
|
809
|
+
getSimilarTrailers: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
810
|
+
if (options === void 0) { options = {}; }
|
|
811
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
812
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
813
|
+
return __generator(this, function (_a) {
|
|
814
|
+
switch (_a.label) {
|
|
815
|
+
case 0:
|
|
816
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
817
|
+
(0, common_1.assertParamExists)('getSimilarTrailers', 'itemId', itemId);
|
|
818
|
+
localVarPath = "/Trailers/{itemId}/Similar"
|
|
819
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
820
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
821
|
+
if (configuration) {
|
|
822
|
+
baseOptions = configuration.baseOptions;
|
|
823
|
+
}
|
|
824
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
825
|
+
localVarHeaderParameter = {};
|
|
826
|
+
localVarQueryParameter = {};
|
|
827
|
+
// authentication CustomAuthentication required
|
|
828
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
829
|
+
case 1:
|
|
830
|
+
// authentication CustomAuthentication required
|
|
831
|
+
_a.sent();
|
|
832
|
+
if (excludeArtistIds) {
|
|
833
|
+
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
834
|
+
}
|
|
835
|
+
if (userId !== undefined) {
|
|
836
|
+
localVarQueryParameter['userId'] = userId;
|
|
837
|
+
}
|
|
838
|
+
if (limit !== undefined) {
|
|
839
|
+
localVarQueryParameter['limit'] = limit;
|
|
840
|
+
}
|
|
841
|
+
if (fields) {
|
|
842
|
+
localVarQueryParameter['fields'] = fields;
|
|
843
|
+
}
|
|
844
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
845
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
846
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
847
|
+
return [2 /*return*/, {
|
|
848
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
849
|
+
options: localVarRequestOptions,
|
|
850
|
+
}];
|
|
851
|
+
}
|
|
852
|
+
});
|
|
853
|
+
});
|
|
854
|
+
},
|
|
855
|
+
/**
|
|
856
|
+
*
|
|
857
|
+
* @summary Get theme songs and videos for an item.
|
|
858
|
+
* @param {string} itemId The item id.
|
|
859
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
860
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
861
|
+
* @param {*} [options] Override http request option.
|
|
862
|
+
* @throws {RequiredError}
|
|
863
|
+
*/
|
|
864
|
+
getThemeMedia: function (itemId, userId, inheritFromParent, options) {
|
|
865
|
+
if (options === void 0) { options = {}; }
|
|
866
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
867
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
868
|
+
return __generator(this, function (_a) {
|
|
869
|
+
switch (_a.label) {
|
|
870
|
+
case 0:
|
|
871
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
872
|
+
(0, common_1.assertParamExists)('getThemeMedia', 'itemId', itemId);
|
|
873
|
+
localVarPath = "/Items/{itemId}/ThemeMedia"
|
|
874
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
875
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
876
|
+
if (configuration) {
|
|
877
|
+
baseOptions = configuration.baseOptions;
|
|
878
|
+
}
|
|
879
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
880
|
+
localVarHeaderParameter = {};
|
|
881
|
+
localVarQueryParameter = {};
|
|
882
|
+
// authentication CustomAuthentication required
|
|
883
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
884
|
+
case 1:
|
|
885
|
+
// authentication CustomAuthentication required
|
|
886
|
+
_a.sent();
|
|
887
|
+
if (userId !== undefined) {
|
|
888
|
+
localVarQueryParameter['userId'] = userId;
|
|
889
|
+
}
|
|
890
|
+
if (inheritFromParent !== undefined) {
|
|
891
|
+
localVarQueryParameter['inheritFromParent'] = inheritFromParent;
|
|
892
|
+
}
|
|
893
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
894
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
895
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
896
|
+
return [2 /*return*/, {
|
|
897
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
898
|
+
options: localVarRequestOptions,
|
|
899
|
+
}];
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
});
|
|
903
|
+
},
|
|
904
|
+
/**
|
|
905
|
+
*
|
|
906
|
+
* @summary Get theme songs for an item.
|
|
907
|
+
* @param {string} itemId The item id.
|
|
908
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
909
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
910
|
+
* @param {*} [options] Override http request option.
|
|
911
|
+
* @throws {RequiredError}
|
|
912
|
+
*/
|
|
913
|
+
getThemeSongs: function (itemId, userId, inheritFromParent, options) {
|
|
914
|
+
if (options === void 0) { options = {}; }
|
|
915
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
916
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
917
|
+
return __generator(this, function (_a) {
|
|
918
|
+
switch (_a.label) {
|
|
919
|
+
case 0:
|
|
920
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
921
|
+
(0, common_1.assertParamExists)('getThemeSongs', 'itemId', itemId);
|
|
922
|
+
localVarPath = "/Items/{itemId}/ThemeSongs"
|
|
923
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
924
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
925
|
+
if (configuration) {
|
|
926
|
+
baseOptions = configuration.baseOptions;
|
|
927
|
+
}
|
|
928
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
929
|
+
localVarHeaderParameter = {};
|
|
930
|
+
localVarQueryParameter = {};
|
|
931
|
+
// authentication CustomAuthentication required
|
|
932
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
933
|
+
case 1:
|
|
934
|
+
// authentication CustomAuthentication required
|
|
935
|
+
_a.sent();
|
|
936
|
+
if (userId !== undefined) {
|
|
937
|
+
localVarQueryParameter['userId'] = userId;
|
|
938
|
+
}
|
|
939
|
+
if (inheritFromParent !== undefined) {
|
|
940
|
+
localVarQueryParameter['inheritFromParent'] = inheritFromParent;
|
|
941
|
+
}
|
|
942
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
943
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
944
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
945
|
+
return [2 /*return*/, {
|
|
946
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
947
|
+
options: localVarRequestOptions,
|
|
948
|
+
}];
|
|
949
|
+
}
|
|
950
|
+
});
|
|
951
|
+
});
|
|
952
|
+
},
|
|
953
|
+
/**
|
|
954
|
+
*
|
|
955
|
+
* @summary Get theme videos for an item.
|
|
956
|
+
* @param {string} itemId The item id.
|
|
957
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
958
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
959
|
+
* @param {*} [options] Override http request option.
|
|
960
|
+
* @throws {RequiredError}
|
|
961
|
+
*/
|
|
962
|
+
getThemeVideos: function (itemId, userId, inheritFromParent, options) {
|
|
963
|
+
if (options === void 0) { options = {}; }
|
|
964
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
965
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
966
|
+
return __generator(this, function (_a) {
|
|
967
|
+
switch (_a.label) {
|
|
968
|
+
case 0:
|
|
969
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
970
|
+
(0, common_1.assertParamExists)('getThemeVideos', 'itemId', itemId);
|
|
971
|
+
localVarPath = "/Items/{itemId}/ThemeVideos"
|
|
972
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
973
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
974
|
+
if (configuration) {
|
|
975
|
+
baseOptions = configuration.baseOptions;
|
|
976
|
+
}
|
|
977
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
978
|
+
localVarHeaderParameter = {};
|
|
979
|
+
localVarQueryParameter = {};
|
|
980
|
+
// authentication CustomAuthentication required
|
|
981
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
982
|
+
case 1:
|
|
983
|
+
// authentication CustomAuthentication required
|
|
984
|
+
_a.sent();
|
|
985
|
+
if (userId !== undefined) {
|
|
986
|
+
localVarQueryParameter['userId'] = userId;
|
|
987
|
+
}
|
|
988
|
+
if (inheritFromParent !== undefined) {
|
|
989
|
+
localVarQueryParameter['inheritFromParent'] = inheritFromParent;
|
|
990
|
+
}
|
|
991
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
992
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
993
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
994
|
+
return [2 /*return*/, {
|
|
995
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
996
|
+
options: localVarRequestOptions,
|
|
997
|
+
}];
|
|
998
|
+
}
|
|
999
|
+
});
|
|
1000
|
+
});
|
|
1001
|
+
},
|
|
1002
|
+
/**
|
|
1003
|
+
*
|
|
1004
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1005
|
+
* @param {string} [tmdbId] The tmdbId.
|
|
1006
|
+
* @param {string} [imdbId] The imdbId.
|
|
1007
|
+
* @param {*} [options] Override http request option.
|
|
1008
|
+
* @throws {RequiredError}
|
|
1009
|
+
*/
|
|
1010
|
+
postAddedMovies: function (tmdbId, imdbId, options) {
|
|
1011
|
+
if (options === void 0) { options = {}; }
|
|
1012
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1013
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1014
|
+
return __generator(this, function (_a) {
|
|
1015
|
+
switch (_a.label) {
|
|
1016
|
+
case 0:
|
|
1017
|
+
localVarPath = "/Library/Movies/Added";
|
|
1018
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1019
|
+
if (configuration) {
|
|
1020
|
+
baseOptions = configuration.baseOptions;
|
|
1021
|
+
}
|
|
1022
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1023
|
+
localVarHeaderParameter = {};
|
|
1024
|
+
localVarQueryParameter = {};
|
|
1025
|
+
// authentication CustomAuthentication required
|
|
1026
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1027
|
+
case 1:
|
|
1028
|
+
// authentication CustomAuthentication required
|
|
1029
|
+
_a.sent();
|
|
1030
|
+
if (tmdbId !== undefined) {
|
|
1031
|
+
localVarQueryParameter['tmdbId'] = tmdbId;
|
|
1032
|
+
}
|
|
1033
|
+
if (imdbId !== undefined) {
|
|
1034
|
+
localVarQueryParameter['imdbId'] = imdbId;
|
|
1035
|
+
}
|
|
1036
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1037
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1038
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1039
|
+
return [2 /*return*/, {
|
|
1040
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1041
|
+
options: localVarRequestOptions,
|
|
1042
|
+
}];
|
|
1043
|
+
}
|
|
1044
|
+
});
|
|
1045
|
+
});
|
|
1046
|
+
},
|
|
1047
|
+
/**
|
|
1048
|
+
*
|
|
1049
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
1050
|
+
* @param {string} [tvdbId] The tvdbId.
|
|
1051
|
+
* @param {*} [options] Override http request option.
|
|
1052
|
+
* @throws {RequiredError}
|
|
1053
|
+
*/
|
|
1054
|
+
postAddedSeries: function (tvdbId, options) {
|
|
1055
|
+
if (options === void 0) { options = {}; }
|
|
1056
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1057
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1058
|
+
return __generator(this, function (_a) {
|
|
1059
|
+
switch (_a.label) {
|
|
1060
|
+
case 0:
|
|
1061
|
+
localVarPath = "/Library/Series/Added";
|
|
1062
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1063
|
+
if (configuration) {
|
|
1064
|
+
baseOptions = configuration.baseOptions;
|
|
1065
|
+
}
|
|
1066
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1067
|
+
localVarHeaderParameter = {};
|
|
1068
|
+
localVarQueryParameter = {};
|
|
1069
|
+
// authentication CustomAuthentication required
|
|
1070
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1071
|
+
case 1:
|
|
1072
|
+
// authentication CustomAuthentication required
|
|
1073
|
+
_a.sent();
|
|
1074
|
+
if (tvdbId !== undefined) {
|
|
1075
|
+
localVarQueryParameter['tvdbId'] = tvdbId;
|
|
1076
|
+
}
|
|
1077
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1078
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1079
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1080
|
+
return [2 /*return*/, {
|
|
1081
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1082
|
+
options: localVarRequestOptions,
|
|
1083
|
+
}];
|
|
1084
|
+
}
|
|
1085
|
+
});
|
|
1086
|
+
});
|
|
1087
|
+
},
|
|
1088
|
+
/**
|
|
1089
|
+
*
|
|
1090
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1091
|
+
* @param {MediaUpdateInfoDto} mediaUpdateInfoDto The update paths.
|
|
1092
|
+
* @param {*} [options] Override http request option.
|
|
1093
|
+
* @throws {RequiredError}
|
|
1094
|
+
*/
|
|
1095
|
+
postUpdatedMedia: function (mediaUpdateInfoDto, options) {
|
|
1096
|
+
if (options === void 0) { options = {}; }
|
|
1097
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1098
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1099
|
+
return __generator(this, function (_a) {
|
|
1100
|
+
switch (_a.label) {
|
|
1101
|
+
case 0:
|
|
1102
|
+
// verify required parameter 'mediaUpdateInfoDto' is not null or undefined
|
|
1103
|
+
(0, common_1.assertParamExists)('postUpdatedMedia', 'mediaUpdateInfoDto', mediaUpdateInfoDto);
|
|
1104
|
+
localVarPath = "/Library/Media/Updated";
|
|
1105
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1106
|
+
if (configuration) {
|
|
1107
|
+
baseOptions = configuration.baseOptions;
|
|
1108
|
+
}
|
|
1109
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1110
|
+
localVarHeaderParameter = {};
|
|
1111
|
+
localVarQueryParameter = {};
|
|
1112
|
+
// authentication CustomAuthentication required
|
|
1113
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1114
|
+
case 1:
|
|
1115
|
+
// authentication CustomAuthentication required
|
|
1116
|
+
_a.sent();
|
|
1117
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1118
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1119
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1120
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1121
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mediaUpdateInfoDto, localVarRequestOptions, configuration);
|
|
1122
|
+
return [2 /*return*/, {
|
|
1123
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1124
|
+
options: localVarRequestOptions,
|
|
1125
|
+
}];
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
});
|
|
1129
|
+
},
|
|
1130
|
+
/**
|
|
1131
|
+
*
|
|
1132
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1133
|
+
* @param {string} [tmdbId] The tmdbId.
|
|
1134
|
+
* @param {string} [imdbId] The imdbId.
|
|
1135
|
+
* @param {*} [options] Override http request option.
|
|
1136
|
+
* @throws {RequiredError}
|
|
1137
|
+
*/
|
|
1138
|
+
postUpdatedMovies: function (tmdbId, imdbId, options) {
|
|
1139
|
+
if (options === void 0) { options = {}; }
|
|
1140
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1141
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1142
|
+
return __generator(this, function (_a) {
|
|
1143
|
+
switch (_a.label) {
|
|
1144
|
+
case 0:
|
|
1145
|
+
localVarPath = "/Library/Movies/Updated";
|
|
1146
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1147
|
+
if (configuration) {
|
|
1148
|
+
baseOptions = configuration.baseOptions;
|
|
1149
|
+
}
|
|
1150
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1151
|
+
localVarHeaderParameter = {};
|
|
1152
|
+
localVarQueryParameter = {};
|
|
1153
|
+
// authentication CustomAuthentication required
|
|
1154
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1155
|
+
case 1:
|
|
1156
|
+
// authentication CustomAuthentication required
|
|
1157
|
+
_a.sent();
|
|
1158
|
+
if (tmdbId !== undefined) {
|
|
1159
|
+
localVarQueryParameter['tmdbId'] = tmdbId;
|
|
1160
|
+
}
|
|
1161
|
+
if (imdbId !== undefined) {
|
|
1162
|
+
localVarQueryParameter['imdbId'] = imdbId;
|
|
1163
|
+
}
|
|
1164
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1165
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1166
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1167
|
+
return [2 /*return*/, {
|
|
1168
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1169
|
+
options: localVarRequestOptions,
|
|
1170
|
+
}];
|
|
1171
|
+
}
|
|
1172
|
+
});
|
|
1173
|
+
});
|
|
1174
|
+
},
|
|
1175
|
+
/**
|
|
1176
|
+
*
|
|
1177
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
1178
|
+
* @param {string} [tvdbId] The tvdbId.
|
|
1179
|
+
* @param {*} [options] Override http request option.
|
|
1180
|
+
* @throws {RequiredError}
|
|
1181
|
+
*/
|
|
1182
|
+
postUpdatedSeries: function (tvdbId, options) {
|
|
1183
|
+
if (options === void 0) { options = {}; }
|
|
1184
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1185
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1186
|
+
return __generator(this, function (_a) {
|
|
1187
|
+
switch (_a.label) {
|
|
1188
|
+
case 0:
|
|
1189
|
+
localVarPath = "/Library/Series/Updated";
|
|
1190
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1191
|
+
if (configuration) {
|
|
1192
|
+
baseOptions = configuration.baseOptions;
|
|
1193
|
+
}
|
|
1194
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1195
|
+
localVarHeaderParameter = {};
|
|
1196
|
+
localVarQueryParameter = {};
|
|
1197
|
+
// authentication CustomAuthentication required
|
|
1198
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1199
|
+
case 1:
|
|
1200
|
+
// authentication CustomAuthentication required
|
|
1201
|
+
_a.sent();
|
|
1202
|
+
if (tvdbId !== undefined) {
|
|
1203
|
+
localVarQueryParameter['tvdbId'] = tvdbId;
|
|
1204
|
+
}
|
|
1205
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1206
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1207
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1208
|
+
return [2 /*return*/, {
|
|
1209
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1210
|
+
options: localVarRequestOptions,
|
|
1211
|
+
}];
|
|
1212
|
+
}
|
|
1213
|
+
});
|
|
1214
|
+
});
|
|
1215
|
+
},
|
|
1216
|
+
/**
|
|
1217
|
+
*
|
|
1218
|
+
* @summary Starts a library scan.
|
|
1219
|
+
* @param {*} [options] Override http request option.
|
|
1220
|
+
* @throws {RequiredError}
|
|
1221
|
+
*/
|
|
1222
|
+
refreshLibrary: function (options) {
|
|
1223
|
+
if (options === void 0) { options = {}; }
|
|
1224
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1225
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1226
|
+
return __generator(this, function (_a) {
|
|
1227
|
+
switch (_a.label) {
|
|
1228
|
+
case 0:
|
|
1229
|
+
localVarPath = "/Library/Refresh";
|
|
1230
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1231
|
+
if (configuration) {
|
|
1232
|
+
baseOptions = configuration.baseOptions;
|
|
1233
|
+
}
|
|
1234
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1235
|
+
localVarHeaderParameter = {};
|
|
1236
|
+
localVarQueryParameter = {};
|
|
1237
|
+
// authentication CustomAuthentication required
|
|
1238
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1239
|
+
case 1:
|
|
1240
|
+
// authentication CustomAuthentication required
|
|
1241
|
+
_a.sent();
|
|
1242
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1243
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1244
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1245
|
+
return [2 /*return*/, {
|
|
1246
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1247
|
+
options: localVarRequestOptions,
|
|
1248
|
+
}];
|
|
1249
|
+
}
|
|
1250
|
+
});
|
|
1251
|
+
});
|
|
1252
|
+
},
|
|
1253
|
+
};
|
|
1254
|
+
};
|
|
1255
|
+
exports.LibraryApiAxiosParamCreator = LibraryApiAxiosParamCreator;
|
|
1256
|
+
/**
|
|
1257
|
+
* LibraryApi - functional programming interface
|
|
1258
|
+
* @export
|
|
1259
|
+
*/
|
|
1260
|
+
var LibraryApiFp = function (configuration) {
|
|
1261
|
+
var localVarAxiosParamCreator = (0, exports.LibraryApiAxiosParamCreator)(configuration);
|
|
1262
|
+
return {
|
|
1263
|
+
/**
|
|
1264
|
+
*
|
|
1265
|
+
* @summary Deletes an item from the library and filesystem.
|
|
1266
|
+
* @param {string} itemId The item id.
|
|
1267
|
+
* @param {*} [options] Override http request option.
|
|
1268
|
+
* @throws {RequiredError}
|
|
1269
|
+
*/
|
|
1270
|
+
deleteItem: function (itemId, options) {
|
|
1271
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1272
|
+
var localVarAxiosArgs;
|
|
1273
|
+
return __generator(this, function (_a) {
|
|
1274
|
+
switch (_a.label) {
|
|
1275
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteItem(itemId, options)];
|
|
1276
|
+
case 1:
|
|
1277
|
+
localVarAxiosArgs = _a.sent();
|
|
1278
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1279
|
+
}
|
|
1280
|
+
});
|
|
1281
|
+
});
|
|
1282
|
+
},
|
|
1283
|
+
/**
|
|
1284
|
+
*
|
|
1285
|
+
* @summary Deletes items from the library and filesystem.
|
|
1286
|
+
* @param {Array<string>} [ids] The item ids.
|
|
1287
|
+
* @param {*} [options] Override http request option.
|
|
1288
|
+
* @throws {RequiredError}
|
|
1289
|
+
*/
|
|
1290
|
+
deleteItems: function (ids, options) {
|
|
1291
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1292
|
+
var localVarAxiosArgs;
|
|
1293
|
+
return __generator(this, function (_a) {
|
|
1294
|
+
switch (_a.label) {
|
|
1295
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteItems(ids, options)];
|
|
1296
|
+
case 1:
|
|
1297
|
+
localVarAxiosArgs = _a.sent();
|
|
1298
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1299
|
+
}
|
|
1300
|
+
});
|
|
1301
|
+
});
|
|
1302
|
+
},
|
|
1303
|
+
/**
|
|
1304
|
+
*
|
|
1305
|
+
* @summary Gets all parents of an item.
|
|
1306
|
+
* @param {string} itemId The item id.
|
|
1307
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1308
|
+
* @param {*} [options] Override http request option.
|
|
1309
|
+
* @throws {RequiredError}
|
|
1310
|
+
*/
|
|
1311
|
+
getAncestors: function (itemId, userId, options) {
|
|
1312
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1313
|
+
var localVarAxiosArgs;
|
|
1314
|
+
return __generator(this, function (_a) {
|
|
1315
|
+
switch (_a.label) {
|
|
1316
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAncestors(itemId, userId, options)];
|
|
1317
|
+
case 1:
|
|
1318
|
+
localVarAxiosArgs = _a.sent();
|
|
1319
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1320
|
+
}
|
|
1321
|
+
});
|
|
1322
|
+
});
|
|
1323
|
+
},
|
|
1324
|
+
/**
|
|
1325
|
+
*
|
|
1326
|
+
* @summary Gets critic review for an item.
|
|
1327
|
+
* @param {string} itemId
|
|
1328
|
+
* @param {*} [options] Override http request option.
|
|
1329
|
+
* @deprecated
|
|
1330
|
+
* @throws {RequiredError}
|
|
1331
|
+
*/
|
|
1332
|
+
getCriticReviews: function (itemId, options) {
|
|
1333
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1334
|
+
var localVarAxiosArgs;
|
|
1335
|
+
return __generator(this, function (_a) {
|
|
1336
|
+
switch (_a.label) {
|
|
1337
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCriticReviews(itemId, options)];
|
|
1338
|
+
case 1:
|
|
1339
|
+
localVarAxiosArgs = _a.sent();
|
|
1340
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1341
|
+
}
|
|
1342
|
+
});
|
|
1343
|
+
});
|
|
1344
|
+
},
|
|
1345
|
+
/**
|
|
1346
|
+
*
|
|
1347
|
+
* @summary Downloads item media.
|
|
1348
|
+
* @param {string} itemId The item id.
|
|
1349
|
+
* @param {*} [options] Override http request option.
|
|
1350
|
+
* @throws {RequiredError}
|
|
1351
|
+
*/
|
|
1352
|
+
getDownload: function (itemId, options) {
|
|
1353
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1354
|
+
var localVarAxiosArgs;
|
|
1355
|
+
return __generator(this, function (_a) {
|
|
1356
|
+
switch (_a.label) {
|
|
1357
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDownload(itemId, options)];
|
|
1358
|
+
case 1:
|
|
1359
|
+
localVarAxiosArgs = _a.sent();
|
|
1360
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1361
|
+
}
|
|
1362
|
+
});
|
|
1363
|
+
});
|
|
1364
|
+
},
|
|
1365
|
+
/**
|
|
1366
|
+
*
|
|
1367
|
+
* @summary Get the original file of an item.
|
|
1368
|
+
* @param {string} itemId The item id.
|
|
1369
|
+
* @param {*} [options] Override http request option.
|
|
1370
|
+
* @throws {RequiredError}
|
|
1371
|
+
*/
|
|
1372
|
+
getFile: function (itemId, options) {
|
|
1373
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1374
|
+
var localVarAxiosArgs;
|
|
1375
|
+
return __generator(this, function (_a) {
|
|
1376
|
+
switch (_a.label) {
|
|
1377
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getFile(itemId, options)];
|
|
1378
|
+
case 1:
|
|
1379
|
+
localVarAxiosArgs = _a.sent();
|
|
1380
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1381
|
+
}
|
|
1382
|
+
});
|
|
1383
|
+
});
|
|
1384
|
+
},
|
|
1385
|
+
/**
|
|
1386
|
+
*
|
|
1387
|
+
* @summary Get item counts.
|
|
1388
|
+
* @param {string} [userId] Optional. Get counts from a specific user\'s library.
|
|
1389
|
+
* @param {boolean} [isFavorite] Optional. Get counts of favorite items.
|
|
1390
|
+
* @param {*} [options] Override http request option.
|
|
1391
|
+
* @throws {RequiredError}
|
|
1392
|
+
*/
|
|
1393
|
+
getItemCounts: function (userId, isFavorite, options) {
|
|
1394
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1395
|
+
var localVarAxiosArgs;
|
|
1396
|
+
return __generator(this, function (_a) {
|
|
1397
|
+
switch (_a.label) {
|
|
1398
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getItemCounts(userId, isFavorite, options)];
|
|
1399
|
+
case 1:
|
|
1400
|
+
localVarAxiosArgs = _a.sent();
|
|
1401
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1402
|
+
}
|
|
1403
|
+
});
|
|
1404
|
+
});
|
|
1405
|
+
},
|
|
1406
|
+
/**
|
|
1407
|
+
*
|
|
1408
|
+
* @summary Gets the library options info.
|
|
1409
|
+
* @param {string} [libraryContentType] Library content type.
|
|
1410
|
+
* @param {boolean} [isNewLibrary] Whether this is a new library.
|
|
1411
|
+
* @param {*} [options] Override http request option.
|
|
1412
|
+
* @throws {RequiredError}
|
|
1413
|
+
*/
|
|
1414
|
+
getLibraryOptionsInfo: function (libraryContentType, isNewLibrary, options) {
|
|
1415
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1416
|
+
var localVarAxiosArgs;
|
|
1417
|
+
return __generator(this, function (_a) {
|
|
1418
|
+
switch (_a.label) {
|
|
1419
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLibraryOptionsInfo(libraryContentType, isNewLibrary, options)];
|
|
1420
|
+
case 1:
|
|
1421
|
+
localVarAxiosArgs = _a.sent();
|
|
1422
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1423
|
+
}
|
|
1424
|
+
});
|
|
1425
|
+
});
|
|
1426
|
+
},
|
|
1427
|
+
/**
|
|
1428
|
+
*
|
|
1429
|
+
* @summary Gets all user media folders.
|
|
1430
|
+
* @param {boolean} [isHidden] Optional. Filter by folders that are marked hidden, or not.
|
|
1431
|
+
* @param {*} [options] Override http request option.
|
|
1432
|
+
* @throws {RequiredError}
|
|
1433
|
+
*/
|
|
1434
|
+
getMediaFolders: function (isHidden, options) {
|
|
1435
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1436
|
+
var localVarAxiosArgs;
|
|
1437
|
+
return __generator(this, function (_a) {
|
|
1438
|
+
switch (_a.label) {
|
|
1439
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMediaFolders(isHidden, options)];
|
|
1440
|
+
case 1:
|
|
1441
|
+
localVarAxiosArgs = _a.sent();
|
|
1442
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1443
|
+
}
|
|
1444
|
+
});
|
|
1445
|
+
});
|
|
1446
|
+
},
|
|
1447
|
+
/**
|
|
1448
|
+
*
|
|
1449
|
+
* @summary Gets a list of physical paths from virtual folders.
|
|
1450
|
+
* @param {*} [options] Override http request option.
|
|
1451
|
+
* @throws {RequiredError}
|
|
1452
|
+
*/
|
|
1453
|
+
getPhysicalPaths: function (options) {
|
|
1454
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1455
|
+
var localVarAxiosArgs;
|
|
1456
|
+
return __generator(this, function (_a) {
|
|
1457
|
+
switch (_a.label) {
|
|
1458
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPhysicalPaths(options)];
|
|
1459
|
+
case 1:
|
|
1460
|
+
localVarAxiosArgs = _a.sent();
|
|
1461
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1462
|
+
}
|
|
1463
|
+
});
|
|
1464
|
+
});
|
|
1465
|
+
},
|
|
1466
|
+
/**
|
|
1467
|
+
*
|
|
1468
|
+
* @summary Gets similar items.
|
|
1469
|
+
* @param {string} itemId The item id.
|
|
1470
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1471
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1472
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1473
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1474
|
+
* @param {*} [options] Override http request option.
|
|
1475
|
+
* @throws {RequiredError}
|
|
1476
|
+
*/
|
|
1477
|
+
getSimilarAlbums: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1478
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1479
|
+
var localVarAxiosArgs;
|
|
1480
|
+
return __generator(this, function (_a) {
|
|
1481
|
+
switch (_a.label) {
|
|
1482
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options)];
|
|
1483
|
+
case 1:
|
|
1484
|
+
localVarAxiosArgs = _a.sent();
|
|
1485
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1486
|
+
}
|
|
1487
|
+
});
|
|
1488
|
+
});
|
|
1489
|
+
},
|
|
1490
|
+
/**
|
|
1491
|
+
*
|
|
1492
|
+
* @summary Gets similar items.
|
|
1493
|
+
* @param {string} itemId The item id.
|
|
1494
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1495
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1496
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1497
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1498
|
+
* @param {*} [options] Override http request option.
|
|
1499
|
+
* @throws {RequiredError}
|
|
1500
|
+
*/
|
|
1501
|
+
getSimilarArtists: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1502
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1503
|
+
var localVarAxiosArgs;
|
|
1504
|
+
return __generator(this, function (_a) {
|
|
1505
|
+
switch (_a.label) {
|
|
1506
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options)];
|
|
1507
|
+
case 1:
|
|
1508
|
+
localVarAxiosArgs = _a.sent();
|
|
1509
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1510
|
+
}
|
|
1511
|
+
});
|
|
1512
|
+
});
|
|
1513
|
+
},
|
|
1514
|
+
/**
|
|
1515
|
+
*
|
|
1516
|
+
* @summary Gets similar items.
|
|
1517
|
+
* @param {string} itemId The item id.
|
|
1518
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1519
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1520
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1521
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1522
|
+
* @param {*} [options] Override http request option.
|
|
1523
|
+
* @throws {RequiredError}
|
|
1524
|
+
*/
|
|
1525
|
+
getSimilarItems: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1526
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1527
|
+
var localVarAxiosArgs;
|
|
1528
|
+
return __generator(this, function (_a) {
|
|
1529
|
+
switch (_a.label) {
|
|
1530
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options)];
|
|
1531
|
+
case 1:
|
|
1532
|
+
localVarAxiosArgs = _a.sent();
|
|
1533
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1534
|
+
}
|
|
1535
|
+
});
|
|
1536
|
+
});
|
|
1537
|
+
},
|
|
1538
|
+
/**
|
|
1539
|
+
*
|
|
1540
|
+
* @summary Gets similar items.
|
|
1541
|
+
* @param {string} itemId The item id.
|
|
1542
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1543
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1544
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1545
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1546
|
+
* @param {*} [options] Override http request option.
|
|
1547
|
+
* @throws {RequiredError}
|
|
1548
|
+
*/
|
|
1549
|
+
getSimilarMovies: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1550
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1551
|
+
var localVarAxiosArgs;
|
|
1552
|
+
return __generator(this, function (_a) {
|
|
1553
|
+
switch (_a.label) {
|
|
1554
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options)];
|
|
1555
|
+
case 1:
|
|
1556
|
+
localVarAxiosArgs = _a.sent();
|
|
1557
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1558
|
+
}
|
|
1559
|
+
});
|
|
1560
|
+
});
|
|
1561
|
+
},
|
|
1562
|
+
/**
|
|
1563
|
+
*
|
|
1564
|
+
* @summary Gets similar items.
|
|
1565
|
+
* @param {string} itemId The item id.
|
|
1566
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1567
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1568
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1569
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1570
|
+
* @param {*} [options] Override http request option.
|
|
1571
|
+
* @throws {RequiredError}
|
|
1572
|
+
*/
|
|
1573
|
+
getSimilarShows: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1574
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1575
|
+
var localVarAxiosArgs;
|
|
1576
|
+
return __generator(this, function (_a) {
|
|
1577
|
+
switch (_a.label) {
|
|
1578
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options)];
|
|
1579
|
+
case 1:
|
|
1580
|
+
localVarAxiosArgs = _a.sent();
|
|
1581
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1582
|
+
}
|
|
1583
|
+
});
|
|
1584
|
+
});
|
|
1585
|
+
},
|
|
1586
|
+
/**
|
|
1587
|
+
*
|
|
1588
|
+
* @summary Gets similar items.
|
|
1589
|
+
* @param {string} itemId The item id.
|
|
1590
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1591
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1592
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1593
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1594
|
+
* @param {*} [options] Override http request option.
|
|
1595
|
+
* @throws {RequiredError}
|
|
1596
|
+
*/
|
|
1597
|
+
getSimilarTrailers: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1598
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1599
|
+
var localVarAxiosArgs;
|
|
1600
|
+
return __generator(this, function (_a) {
|
|
1601
|
+
switch (_a.label) {
|
|
1602
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options)];
|
|
1603
|
+
case 1:
|
|
1604
|
+
localVarAxiosArgs = _a.sent();
|
|
1605
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1606
|
+
}
|
|
1607
|
+
});
|
|
1608
|
+
});
|
|
1609
|
+
},
|
|
1610
|
+
/**
|
|
1611
|
+
*
|
|
1612
|
+
* @summary Get theme songs and videos for an item.
|
|
1613
|
+
* @param {string} itemId The item id.
|
|
1614
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1615
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1616
|
+
* @param {*} [options] Override http request option.
|
|
1617
|
+
* @throws {RequiredError}
|
|
1618
|
+
*/
|
|
1619
|
+
getThemeMedia: function (itemId, userId, inheritFromParent, options) {
|
|
1620
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1621
|
+
var localVarAxiosArgs;
|
|
1622
|
+
return __generator(this, function (_a) {
|
|
1623
|
+
switch (_a.label) {
|
|
1624
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getThemeMedia(itemId, userId, inheritFromParent, options)];
|
|
1625
|
+
case 1:
|
|
1626
|
+
localVarAxiosArgs = _a.sent();
|
|
1627
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1628
|
+
}
|
|
1629
|
+
});
|
|
1630
|
+
});
|
|
1631
|
+
},
|
|
1632
|
+
/**
|
|
1633
|
+
*
|
|
1634
|
+
* @summary Get theme songs for an item.
|
|
1635
|
+
* @param {string} itemId The item id.
|
|
1636
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1637
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1638
|
+
* @param {*} [options] Override http request option.
|
|
1639
|
+
* @throws {RequiredError}
|
|
1640
|
+
*/
|
|
1641
|
+
getThemeSongs: function (itemId, userId, inheritFromParent, options) {
|
|
1642
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1643
|
+
var localVarAxiosArgs;
|
|
1644
|
+
return __generator(this, function (_a) {
|
|
1645
|
+
switch (_a.label) {
|
|
1646
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getThemeSongs(itemId, userId, inheritFromParent, options)];
|
|
1647
|
+
case 1:
|
|
1648
|
+
localVarAxiosArgs = _a.sent();
|
|
1649
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1650
|
+
}
|
|
1651
|
+
});
|
|
1652
|
+
});
|
|
1653
|
+
},
|
|
1654
|
+
/**
|
|
1655
|
+
*
|
|
1656
|
+
* @summary Get theme videos for an item.
|
|
1657
|
+
* @param {string} itemId The item id.
|
|
1658
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1659
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1660
|
+
* @param {*} [options] Override http request option.
|
|
1661
|
+
* @throws {RequiredError}
|
|
1662
|
+
*/
|
|
1663
|
+
getThemeVideos: function (itemId, userId, inheritFromParent, options) {
|
|
1664
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1665
|
+
var localVarAxiosArgs;
|
|
1666
|
+
return __generator(this, function (_a) {
|
|
1667
|
+
switch (_a.label) {
|
|
1668
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getThemeVideos(itemId, userId, inheritFromParent, options)];
|
|
1669
|
+
case 1:
|
|
1670
|
+
localVarAxiosArgs = _a.sent();
|
|
1671
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1672
|
+
}
|
|
1673
|
+
});
|
|
1674
|
+
});
|
|
1675
|
+
},
|
|
1676
|
+
/**
|
|
1677
|
+
*
|
|
1678
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1679
|
+
* @param {string} [tmdbId] The tmdbId.
|
|
1680
|
+
* @param {string} [imdbId] The imdbId.
|
|
1681
|
+
* @param {*} [options] Override http request option.
|
|
1682
|
+
* @throws {RequiredError}
|
|
1683
|
+
*/
|
|
1684
|
+
postAddedMovies: function (tmdbId, imdbId, options) {
|
|
1685
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1686
|
+
var localVarAxiosArgs;
|
|
1687
|
+
return __generator(this, function (_a) {
|
|
1688
|
+
switch (_a.label) {
|
|
1689
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddedMovies(tmdbId, imdbId, options)];
|
|
1690
|
+
case 1:
|
|
1691
|
+
localVarAxiosArgs = _a.sent();
|
|
1692
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1693
|
+
}
|
|
1694
|
+
});
|
|
1695
|
+
});
|
|
1696
|
+
},
|
|
1697
|
+
/**
|
|
1698
|
+
*
|
|
1699
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
1700
|
+
* @param {string} [tvdbId] The tvdbId.
|
|
1701
|
+
* @param {*} [options] Override http request option.
|
|
1702
|
+
* @throws {RequiredError}
|
|
1703
|
+
*/
|
|
1704
|
+
postAddedSeries: function (tvdbId, options) {
|
|
1705
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1706
|
+
var localVarAxiosArgs;
|
|
1707
|
+
return __generator(this, function (_a) {
|
|
1708
|
+
switch (_a.label) {
|
|
1709
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddedSeries(tvdbId, options)];
|
|
1710
|
+
case 1:
|
|
1711
|
+
localVarAxiosArgs = _a.sent();
|
|
1712
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1713
|
+
}
|
|
1714
|
+
});
|
|
1715
|
+
});
|
|
1716
|
+
},
|
|
1717
|
+
/**
|
|
1718
|
+
*
|
|
1719
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1720
|
+
* @param {MediaUpdateInfoDto} mediaUpdateInfoDto The update paths.
|
|
1721
|
+
* @param {*} [options] Override http request option.
|
|
1722
|
+
* @throws {RequiredError}
|
|
1723
|
+
*/
|
|
1724
|
+
postUpdatedMedia: function (mediaUpdateInfoDto, options) {
|
|
1725
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1726
|
+
var localVarAxiosArgs;
|
|
1727
|
+
return __generator(this, function (_a) {
|
|
1728
|
+
switch (_a.label) {
|
|
1729
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postUpdatedMedia(mediaUpdateInfoDto, options)];
|
|
1730
|
+
case 1:
|
|
1731
|
+
localVarAxiosArgs = _a.sent();
|
|
1732
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1733
|
+
}
|
|
1734
|
+
});
|
|
1735
|
+
});
|
|
1736
|
+
},
|
|
1737
|
+
/**
|
|
1738
|
+
*
|
|
1739
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1740
|
+
* @param {string} [tmdbId] The tmdbId.
|
|
1741
|
+
* @param {string} [imdbId] The imdbId.
|
|
1742
|
+
* @param {*} [options] Override http request option.
|
|
1743
|
+
* @throws {RequiredError}
|
|
1744
|
+
*/
|
|
1745
|
+
postUpdatedMovies: function (tmdbId, imdbId, options) {
|
|
1746
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1747
|
+
var localVarAxiosArgs;
|
|
1748
|
+
return __generator(this, function (_a) {
|
|
1749
|
+
switch (_a.label) {
|
|
1750
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postUpdatedMovies(tmdbId, imdbId, options)];
|
|
1751
|
+
case 1:
|
|
1752
|
+
localVarAxiosArgs = _a.sent();
|
|
1753
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1754
|
+
}
|
|
1755
|
+
});
|
|
1756
|
+
});
|
|
1757
|
+
},
|
|
1758
|
+
/**
|
|
1759
|
+
*
|
|
1760
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
1761
|
+
* @param {string} [tvdbId] The tvdbId.
|
|
1762
|
+
* @param {*} [options] Override http request option.
|
|
1763
|
+
* @throws {RequiredError}
|
|
1764
|
+
*/
|
|
1765
|
+
postUpdatedSeries: function (tvdbId, options) {
|
|
1766
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1767
|
+
var localVarAxiosArgs;
|
|
1768
|
+
return __generator(this, function (_a) {
|
|
1769
|
+
switch (_a.label) {
|
|
1770
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postUpdatedSeries(tvdbId, options)];
|
|
1771
|
+
case 1:
|
|
1772
|
+
localVarAxiosArgs = _a.sent();
|
|
1773
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1774
|
+
}
|
|
1775
|
+
});
|
|
1776
|
+
});
|
|
1777
|
+
},
|
|
1778
|
+
/**
|
|
1779
|
+
*
|
|
1780
|
+
* @summary Starts a library scan.
|
|
1781
|
+
* @param {*} [options] Override http request option.
|
|
1782
|
+
* @throws {RequiredError}
|
|
1783
|
+
*/
|
|
1784
|
+
refreshLibrary: function (options) {
|
|
1785
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1786
|
+
var localVarAxiosArgs;
|
|
1787
|
+
return __generator(this, function (_a) {
|
|
1788
|
+
switch (_a.label) {
|
|
1789
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.refreshLibrary(options)];
|
|
1790
|
+
case 1:
|
|
1791
|
+
localVarAxiosArgs = _a.sent();
|
|
1792
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1793
|
+
}
|
|
1794
|
+
});
|
|
1795
|
+
});
|
|
1796
|
+
},
|
|
1797
|
+
};
|
|
1798
|
+
};
|
|
1799
|
+
exports.LibraryApiFp = LibraryApiFp;
|
|
1800
|
+
/**
|
|
1801
|
+
* LibraryApi - factory interface
|
|
1802
|
+
* @export
|
|
1803
|
+
*/
|
|
1804
|
+
var LibraryApiFactory = function (configuration, basePath, axios) {
|
|
1805
|
+
var localVarFp = (0, exports.LibraryApiFp)(configuration);
|
|
1806
|
+
return {
|
|
1807
|
+
/**
|
|
1808
|
+
*
|
|
1809
|
+
* @summary Deletes an item from the library and filesystem.
|
|
1810
|
+
* @param {string} itemId The item id.
|
|
1811
|
+
* @param {*} [options] Override http request option.
|
|
1812
|
+
* @throws {RequiredError}
|
|
1813
|
+
*/
|
|
1814
|
+
deleteItem: function (itemId, options) {
|
|
1815
|
+
return localVarFp.deleteItem(itemId, options).then(function (request) { return request(axios, basePath); });
|
|
1816
|
+
},
|
|
1817
|
+
/**
|
|
1818
|
+
*
|
|
1819
|
+
* @summary Deletes items from the library and filesystem.
|
|
1820
|
+
* @param {Array<string>} [ids] The item ids.
|
|
1821
|
+
* @param {*} [options] Override http request option.
|
|
1822
|
+
* @throws {RequiredError}
|
|
1823
|
+
*/
|
|
1824
|
+
deleteItems: function (ids, options) {
|
|
1825
|
+
return localVarFp.deleteItems(ids, options).then(function (request) { return request(axios, basePath); });
|
|
1826
|
+
},
|
|
1827
|
+
/**
|
|
1828
|
+
*
|
|
1829
|
+
* @summary Gets all parents of an item.
|
|
1830
|
+
* @param {string} itemId The item id.
|
|
1831
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1832
|
+
* @param {*} [options] Override http request option.
|
|
1833
|
+
* @throws {RequiredError}
|
|
1834
|
+
*/
|
|
1835
|
+
getAncestors: function (itemId, userId, options) {
|
|
1836
|
+
return localVarFp.getAncestors(itemId, userId, options).then(function (request) { return request(axios, basePath); });
|
|
1837
|
+
},
|
|
1838
|
+
/**
|
|
1839
|
+
*
|
|
1840
|
+
* @summary Gets critic review for an item.
|
|
1841
|
+
* @param {string} itemId
|
|
1842
|
+
* @param {*} [options] Override http request option.
|
|
1843
|
+
* @deprecated
|
|
1844
|
+
* @throws {RequiredError}
|
|
1845
|
+
*/
|
|
1846
|
+
getCriticReviews: function (itemId, options) {
|
|
1847
|
+
return localVarFp.getCriticReviews(itemId, options).then(function (request) { return request(axios, basePath); });
|
|
1848
|
+
},
|
|
1849
|
+
/**
|
|
1850
|
+
*
|
|
1851
|
+
* @summary Downloads item media.
|
|
1852
|
+
* @param {string} itemId The item id.
|
|
1853
|
+
* @param {*} [options] Override http request option.
|
|
1854
|
+
* @throws {RequiredError}
|
|
1855
|
+
*/
|
|
1856
|
+
getDownload: function (itemId, options) {
|
|
1857
|
+
return localVarFp.getDownload(itemId, options).then(function (request) { return request(axios, basePath); });
|
|
1858
|
+
},
|
|
1859
|
+
/**
|
|
1860
|
+
*
|
|
1861
|
+
* @summary Get the original file of an item.
|
|
1862
|
+
* @param {string} itemId The item id.
|
|
1863
|
+
* @param {*} [options] Override http request option.
|
|
1864
|
+
* @throws {RequiredError}
|
|
1865
|
+
*/
|
|
1866
|
+
getFile: function (itemId, options) {
|
|
1867
|
+
return localVarFp.getFile(itemId, options).then(function (request) { return request(axios, basePath); });
|
|
1868
|
+
},
|
|
1869
|
+
/**
|
|
1870
|
+
*
|
|
1871
|
+
* @summary Get item counts.
|
|
1872
|
+
* @param {string} [userId] Optional. Get counts from a specific user\'s library.
|
|
1873
|
+
* @param {boolean} [isFavorite] Optional. Get counts of favorite items.
|
|
1874
|
+
* @param {*} [options] Override http request option.
|
|
1875
|
+
* @throws {RequiredError}
|
|
1876
|
+
*/
|
|
1877
|
+
getItemCounts: function (userId, isFavorite, options) {
|
|
1878
|
+
return localVarFp.getItemCounts(userId, isFavorite, options).then(function (request) { return request(axios, basePath); });
|
|
1879
|
+
},
|
|
1880
|
+
/**
|
|
1881
|
+
*
|
|
1882
|
+
* @summary Gets the library options info.
|
|
1883
|
+
* @param {string} [libraryContentType] Library content type.
|
|
1884
|
+
* @param {boolean} [isNewLibrary] Whether this is a new library.
|
|
1885
|
+
* @param {*} [options] Override http request option.
|
|
1886
|
+
* @throws {RequiredError}
|
|
1887
|
+
*/
|
|
1888
|
+
getLibraryOptionsInfo: function (libraryContentType, isNewLibrary, options) {
|
|
1889
|
+
return localVarFp.getLibraryOptionsInfo(libraryContentType, isNewLibrary, options).then(function (request) { return request(axios, basePath); });
|
|
1890
|
+
},
|
|
1891
|
+
/**
|
|
1892
|
+
*
|
|
1893
|
+
* @summary Gets all user media folders.
|
|
1894
|
+
* @param {boolean} [isHidden] Optional. Filter by folders that are marked hidden, or not.
|
|
1895
|
+
* @param {*} [options] Override http request option.
|
|
1896
|
+
* @throws {RequiredError}
|
|
1897
|
+
*/
|
|
1898
|
+
getMediaFolders: function (isHidden, options) {
|
|
1899
|
+
return localVarFp.getMediaFolders(isHidden, options).then(function (request) { return request(axios, basePath); });
|
|
1900
|
+
},
|
|
1901
|
+
/**
|
|
1902
|
+
*
|
|
1903
|
+
* @summary Gets a list of physical paths from virtual folders.
|
|
1904
|
+
* @param {*} [options] Override http request option.
|
|
1905
|
+
* @throws {RequiredError}
|
|
1906
|
+
*/
|
|
1907
|
+
getPhysicalPaths: function (options) {
|
|
1908
|
+
return localVarFp.getPhysicalPaths(options).then(function (request) { return request(axios, basePath); });
|
|
1909
|
+
},
|
|
1910
|
+
/**
|
|
1911
|
+
*
|
|
1912
|
+
* @summary Gets similar items.
|
|
1913
|
+
* @param {string} itemId The item id.
|
|
1914
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1915
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1916
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1917
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1918
|
+
* @param {*} [options] Override http request option.
|
|
1919
|
+
* @throws {RequiredError}
|
|
1920
|
+
*/
|
|
1921
|
+
getSimilarAlbums: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1922
|
+
return localVarFp.getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options).then(function (request) { return request(axios, basePath); });
|
|
1923
|
+
},
|
|
1924
|
+
/**
|
|
1925
|
+
*
|
|
1926
|
+
* @summary Gets similar items.
|
|
1927
|
+
* @param {string} itemId The item id.
|
|
1928
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1929
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1930
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1931
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1932
|
+
* @param {*} [options] Override http request option.
|
|
1933
|
+
* @throws {RequiredError}
|
|
1934
|
+
*/
|
|
1935
|
+
getSimilarArtists: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1936
|
+
return localVarFp.getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options).then(function (request) { return request(axios, basePath); });
|
|
1937
|
+
},
|
|
1938
|
+
/**
|
|
1939
|
+
*
|
|
1940
|
+
* @summary Gets similar items.
|
|
1941
|
+
* @param {string} itemId The item id.
|
|
1942
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1943
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1944
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1945
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1946
|
+
* @param {*} [options] Override http request option.
|
|
1947
|
+
* @throws {RequiredError}
|
|
1948
|
+
*/
|
|
1949
|
+
getSimilarItems: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1950
|
+
return localVarFp.getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options).then(function (request) { return request(axios, basePath); });
|
|
1951
|
+
},
|
|
1952
|
+
/**
|
|
1953
|
+
*
|
|
1954
|
+
* @summary Gets similar items.
|
|
1955
|
+
* @param {string} itemId The item id.
|
|
1956
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1957
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1958
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1959
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1960
|
+
* @param {*} [options] Override http request option.
|
|
1961
|
+
* @throws {RequiredError}
|
|
1962
|
+
*/
|
|
1963
|
+
getSimilarMovies: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1964
|
+
return localVarFp.getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options).then(function (request) { return request(axios, basePath); });
|
|
1965
|
+
},
|
|
1966
|
+
/**
|
|
1967
|
+
*
|
|
1968
|
+
* @summary Gets similar items.
|
|
1969
|
+
* @param {string} itemId The item id.
|
|
1970
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1971
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1972
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1973
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1974
|
+
* @param {*} [options] Override http request option.
|
|
1975
|
+
* @throws {RequiredError}
|
|
1976
|
+
*/
|
|
1977
|
+
getSimilarShows: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1978
|
+
return localVarFp.getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options).then(function (request) { return request(axios, basePath); });
|
|
1979
|
+
},
|
|
1980
|
+
/**
|
|
1981
|
+
*
|
|
1982
|
+
* @summary Gets similar items.
|
|
1983
|
+
* @param {string} itemId The item id.
|
|
1984
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1985
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1986
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1987
|
+
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1988
|
+
* @param {*} [options] Override http request option.
|
|
1989
|
+
* @throws {RequiredError}
|
|
1990
|
+
*/
|
|
1991
|
+
getSimilarTrailers: function (itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1992
|
+
return localVarFp.getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options).then(function (request) { return request(axios, basePath); });
|
|
1993
|
+
},
|
|
1994
|
+
/**
|
|
1995
|
+
*
|
|
1996
|
+
* @summary Get theme songs and videos for an item.
|
|
1997
|
+
* @param {string} itemId The item id.
|
|
1998
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1999
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
2000
|
+
* @param {*} [options] Override http request option.
|
|
2001
|
+
* @throws {RequiredError}
|
|
2002
|
+
*/
|
|
2003
|
+
getThemeMedia: function (itemId, userId, inheritFromParent, options) {
|
|
2004
|
+
return localVarFp.getThemeMedia(itemId, userId, inheritFromParent, options).then(function (request) { return request(axios, basePath); });
|
|
2005
|
+
},
|
|
2006
|
+
/**
|
|
2007
|
+
*
|
|
2008
|
+
* @summary Get theme songs for an item.
|
|
2009
|
+
* @param {string} itemId The item id.
|
|
2010
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
2011
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
2012
|
+
* @param {*} [options] Override http request option.
|
|
2013
|
+
* @throws {RequiredError}
|
|
2014
|
+
*/
|
|
2015
|
+
getThemeSongs: function (itemId, userId, inheritFromParent, options) {
|
|
2016
|
+
return localVarFp.getThemeSongs(itemId, userId, inheritFromParent, options).then(function (request) { return request(axios, basePath); });
|
|
2017
|
+
},
|
|
2018
|
+
/**
|
|
2019
|
+
*
|
|
2020
|
+
* @summary Get theme videos for an item.
|
|
2021
|
+
* @param {string} itemId The item id.
|
|
2022
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
2023
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
2024
|
+
* @param {*} [options] Override http request option.
|
|
2025
|
+
* @throws {RequiredError}
|
|
2026
|
+
*/
|
|
2027
|
+
getThemeVideos: function (itemId, userId, inheritFromParent, options) {
|
|
2028
|
+
return localVarFp.getThemeVideos(itemId, userId, inheritFromParent, options).then(function (request) { return request(axios, basePath); });
|
|
2029
|
+
},
|
|
2030
|
+
/**
|
|
2031
|
+
*
|
|
2032
|
+
* @summary Reports that new movies have been added by an external source.
|
|
2033
|
+
* @param {string} [tmdbId] The tmdbId.
|
|
2034
|
+
* @param {string} [imdbId] The imdbId.
|
|
2035
|
+
* @param {*} [options] Override http request option.
|
|
2036
|
+
* @throws {RequiredError}
|
|
2037
|
+
*/
|
|
2038
|
+
postAddedMovies: function (tmdbId, imdbId, options) {
|
|
2039
|
+
return localVarFp.postAddedMovies(tmdbId, imdbId, options).then(function (request) { return request(axios, basePath); });
|
|
2040
|
+
},
|
|
2041
|
+
/**
|
|
2042
|
+
*
|
|
2043
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
2044
|
+
* @param {string} [tvdbId] The tvdbId.
|
|
2045
|
+
* @param {*} [options] Override http request option.
|
|
2046
|
+
* @throws {RequiredError}
|
|
2047
|
+
*/
|
|
2048
|
+
postAddedSeries: function (tvdbId, options) {
|
|
2049
|
+
return localVarFp.postAddedSeries(tvdbId, options).then(function (request) { return request(axios, basePath); });
|
|
2050
|
+
},
|
|
2051
|
+
/**
|
|
2052
|
+
*
|
|
2053
|
+
* @summary Reports that new movies have been added by an external source.
|
|
2054
|
+
* @param {MediaUpdateInfoDto} mediaUpdateInfoDto The update paths.
|
|
2055
|
+
* @param {*} [options] Override http request option.
|
|
2056
|
+
* @throws {RequiredError}
|
|
2057
|
+
*/
|
|
2058
|
+
postUpdatedMedia: function (mediaUpdateInfoDto, options) {
|
|
2059
|
+
return localVarFp.postUpdatedMedia(mediaUpdateInfoDto, options).then(function (request) { return request(axios, basePath); });
|
|
2060
|
+
},
|
|
2061
|
+
/**
|
|
2062
|
+
*
|
|
2063
|
+
* @summary Reports that new movies have been added by an external source.
|
|
2064
|
+
* @param {string} [tmdbId] The tmdbId.
|
|
2065
|
+
* @param {string} [imdbId] The imdbId.
|
|
2066
|
+
* @param {*} [options] Override http request option.
|
|
2067
|
+
* @throws {RequiredError}
|
|
2068
|
+
*/
|
|
2069
|
+
postUpdatedMovies: function (tmdbId, imdbId, options) {
|
|
2070
|
+
return localVarFp.postUpdatedMovies(tmdbId, imdbId, options).then(function (request) { return request(axios, basePath); });
|
|
2071
|
+
},
|
|
2072
|
+
/**
|
|
2073
|
+
*
|
|
2074
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
2075
|
+
* @param {string} [tvdbId] The tvdbId.
|
|
2076
|
+
* @param {*} [options] Override http request option.
|
|
2077
|
+
* @throws {RequiredError}
|
|
2078
|
+
*/
|
|
2079
|
+
postUpdatedSeries: function (tvdbId, options) {
|
|
2080
|
+
return localVarFp.postUpdatedSeries(tvdbId, options).then(function (request) { return request(axios, basePath); });
|
|
2081
|
+
},
|
|
2082
|
+
/**
|
|
2083
|
+
*
|
|
2084
|
+
* @summary Starts a library scan.
|
|
2085
|
+
* @param {*} [options] Override http request option.
|
|
2086
|
+
* @throws {RequiredError}
|
|
2087
|
+
*/
|
|
2088
|
+
refreshLibrary: function (options) {
|
|
2089
|
+
return localVarFp.refreshLibrary(options).then(function (request) { return request(axios, basePath); });
|
|
2090
|
+
},
|
|
2091
|
+
};
|
|
2092
|
+
};
|
|
2093
|
+
exports.LibraryApiFactory = LibraryApiFactory;
|
|
2094
|
+
/**
|
|
2095
|
+
* LibraryApi - object-oriented interface
|
|
2096
|
+
* @export
|
|
2097
|
+
* @class LibraryApi
|
|
2098
|
+
* @extends {BaseAPI}
|
|
2099
|
+
*/
|
|
2100
|
+
var LibraryApi = /** @class */ (function (_super) {
|
|
2101
|
+
__extends(LibraryApi, _super);
|
|
2102
|
+
function LibraryApi() {
|
|
2103
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2104
|
+
}
|
|
2105
|
+
/**
|
|
2106
|
+
*
|
|
2107
|
+
* @summary Deletes an item from the library and filesystem.
|
|
2108
|
+
* @param {LibraryApiDeleteItemRequest} requestParameters Request parameters.
|
|
2109
|
+
* @param {*} [options] Override http request option.
|
|
2110
|
+
* @throws {RequiredError}
|
|
2111
|
+
* @memberof LibraryApi
|
|
2112
|
+
*/
|
|
2113
|
+
LibraryApi.prototype.deleteItem = function (requestParameters, options) {
|
|
2114
|
+
var _this = this;
|
|
2115
|
+
return (0, exports.LibraryApiFp)(this.configuration).deleteItem(requestParameters.itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2116
|
+
};
|
|
2117
|
+
/**
|
|
2118
|
+
*
|
|
2119
|
+
* @summary Deletes items from the library and filesystem.
|
|
2120
|
+
* @param {LibraryApiDeleteItemsRequest} requestParameters Request parameters.
|
|
2121
|
+
* @param {*} [options] Override http request option.
|
|
2122
|
+
* @throws {RequiredError}
|
|
2123
|
+
* @memberof LibraryApi
|
|
2124
|
+
*/
|
|
2125
|
+
LibraryApi.prototype.deleteItems = function (requestParameters, options) {
|
|
2126
|
+
var _this = this;
|
|
2127
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2128
|
+
return (0, exports.LibraryApiFp)(this.configuration).deleteItems(requestParameters.ids, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2129
|
+
};
|
|
2130
|
+
/**
|
|
2131
|
+
*
|
|
2132
|
+
* @summary Gets all parents of an item.
|
|
2133
|
+
* @param {LibraryApiGetAncestorsRequest} requestParameters Request parameters.
|
|
2134
|
+
* @param {*} [options] Override http request option.
|
|
2135
|
+
* @throws {RequiredError}
|
|
2136
|
+
* @memberof LibraryApi
|
|
2137
|
+
*/
|
|
2138
|
+
LibraryApi.prototype.getAncestors = function (requestParameters, options) {
|
|
2139
|
+
var _this = this;
|
|
2140
|
+
return (0, exports.LibraryApiFp)(this.configuration).getAncestors(requestParameters.itemId, requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2141
|
+
};
|
|
2142
|
+
/**
|
|
2143
|
+
*
|
|
2144
|
+
* @summary Gets critic review for an item.
|
|
2145
|
+
* @param {LibraryApiGetCriticReviewsRequest} requestParameters Request parameters.
|
|
2146
|
+
* @param {*} [options] Override http request option.
|
|
2147
|
+
* @deprecated
|
|
2148
|
+
* @throws {RequiredError}
|
|
2149
|
+
* @memberof LibraryApi
|
|
2150
|
+
*/
|
|
2151
|
+
LibraryApi.prototype.getCriticReviews = function (requestParameters, options) {
|
|
2152
|
+
var _this = this;
|
|
2153
|
+
return (0, exports.LibraryApiFp)(this.configuration).getCriticReviews(requestParameters.itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2154
|
+
};
|
|
2155
|
+
/**
|
|
2156
|
+
*
|
|
2157
|
+
* @summary Downloads item media.
|
|
2158
|
+
* @param {LibraryApiGetDownloadRequest} requestParameters Request parameters.
|
|
2159
|
+
* @param {*} [options] Override http request option.
|
|
2160
|
+
* @throws {RequiredError}
|
|
2161
|
+
* @memberof LibraryApi
|
|
2162
|
+
*/
|
|
2163
|
+
LibraryApi.prototype.getDownload = function (requestParameters, options) {
|
|
2164
|
+
var _this = this;
|
|
2165
|
+
return (0, exports.LibraryApiFp)(this.configuration).getDownload(requestParameters.itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2166
|
+
};
|
|
2167
|
+
/**
|
|
2168
|
+
*
|
|
2169
|
+
* @summary Get the original file of an item.
|
|
2170
|
+
* @param {LibraryApiGetFileRequest} requestParameters Request parameters.
|
|
2171
|
+
* @param {*} [options] Override http request option.
|
|
2172
|
+
* @throws {RequiredError}
|
|
2173
|
+
* @memberof LibraryApi
|
|
2174
|
+
*/
|
|
2175
|
+
LibraryApi.prototype.getFile = function (requestParameters, options) {
|
|
2176
|
+
var _this = this;
|
|
2177
|
+
return (0, exports.LibraryApiFp)(this.configuration).getFile(requestParameters.itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2178
|
+
};
|
|
2179
|
+
/**
|
|
2180
|
+
*
|
|
2181
|
+
* @summary Get item counts.
|
|
2182
|
+
* @param {LibraryApiGetItemCountsRequest} requestParameters Request parameters.
|
|
2183
|
+
* @param {*} [options] Override http request option.
|
|
2184
|
+
* @throws {RequiredError}
|
|
2185
|
+
* @memberof LibraryApi
|
|
2186
|
+
*/
|
|
2187
|
+
LibraryApi.prototype.getItemCounts = function (requestParameters, options) {
|
|
2188
|
+
var _this = this;
|
|
2189
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2190
|
+
return (0, exports.LibraryApiFp)(this.configuration).getItemCounts(requestParameters.userId, requestParameters.isFavorite, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2191
|
+
};
|
|
2192
|
+
/**
|
|
2193
|
+
*
|
|
2194
|
+
* @summary Gets the library options info.
|
|
2195
|
+
* @param {LibraryApiGetLibraryOptionsInfoRequest} requestParameters Request parameters.
|
|
2196
|
+
* @param {*} [options] Override http request option.
|
|
2197
|
+
* @throws {RequiredError}
|
|
2198
|
+
* @memberof LibraryApi
|
|
2199
|
+
*/
|
|
2200
|
+
LibraryApi.prototype.getLibraryOptionsInfo = function (requestParameters, options) {
|
|
2201
|
+
var _this = this;
|
|
2202
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2203
|
+
return (0, exports.LibraryApiFp)(this.configuration).getLibraryOptionsInfo(requestParameters.libraryContentType, requestParameters.isNewLibrary, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2204
|
+
};
|
|
2205
|
+
/**
|
|
2206
|
+
*
|
|
2207
|
+
* @summary Gets all user media folders.
|
|
2208
|
+
* @param {LibraryApiGetMediaFoldersRequest} requestParameters Request parameters.
|
|
2209
|
+
* @param {*} [options] Override http request option.
|
|
2210
|
+
* @throws {RequiredError}
|
|
2211
|
+
* @memberof LibraryApi
|
|
2212
|
+
*/
|
|
2213
|
+
LibraryApi.prototype.getMediaFolders = function (requestParameters, options) {
|
|
2214
|
+
var _this = this;
|
|
2215
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2216
|
+
return (0, exports.LibraryApiFp)(this.configuration).getMediaFolders(requestParameters.isHidden, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2217
|
+
};
|
|
2218
|
+
/**
|
|
2219
|
+
*
|
|
2220
|
+
* @summary Gets a list of physical paths from virtual folders.
|
|
2221
|
+
* @param {*} [options] Override http request option.
|
|
2222
|
+
* @throws {RequiredError}
|
|
2223
|
+
* @memberof LibraryApi
|
|
2224
|
+
*/
|
|
2225
|
+
LibraryApi.prototype.getPhysicalPaths = function (options) {
|
|
2226
|
+
var _this = this;
|
|
2227
|
+
return (0, exports.LibraryApiFp)(this.configuration).getPhysicalPaths(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2228
|
+
};
|
|
2229
|
+
/**
|
|
2230
|
+
*
|
|
2231
|
+
* @summary Gets similar items.
|
|
2232
|
+
* @param {LibraryApiGetSimilarAlbumsRequest} requestParameters Request parameters.
|
|
2233
|
+
* @param {*} [options] Override http request option.
|
|
2234
|
+
* @throws {RequiredError}
|
|
2235
|
+
* @memberof LibraryApi
|
|
2236
|
+
*/
|
|
2237
|
+
LibraryApi.prototype.getSimilarAlbums = function (requestParameters, options) {
|
|
2238
|
+
var _this = this;
|
|
2239
|
+
return (0, exports.LibraryApiFp)(this.configuration).getSimilarAlbums(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2240
|
+
};
|
|
2241
|
+
/**
|
|
2242
|
+
*
|
|
2243
|
+
* @summary Gets similar items.
|
|
2244
|
+
* @param {LibraryApiGetSimilarArtistsRequest} requestParameters Request parameters.
|
|
2245
|
+
* @param {*} [options] Override http request option.
|
|
2246
|
+
* @throws {RequiredError}
|
|
2247
|
+
* @memberof LibraryApi
|
|
2248
|
+
*/
|
|
2249
|
+
LibraryApi.prototype.getSimilarArtists = function (requestParameters, options) {
|
|
2250
|
+
var _this = this;
|
|
2251
|
+
return (0, exports.LibraryApiFp)(this.configuration).getSimilarArtists(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2252
|
+
};
|
|
2253
|
+
/**
|
|
2254
|
+
*
|
|
2255
|
+
* @summary Gets similar items.
|
|
2256
|
+
* @param {LibraryApiGetSimilarItemsRequest} requestParameters Request parameters.
|
|
2257
|
+
* @param {*} [options] Override http request option.
|
|
2258
|
+
* @throws {RequiredError}
|
|
2259
|
+
* @memberof LibraryApi
|
|
2260
|
+
*/
|
|
2261
|
+
LibraryApi.prototype.getSimilarItems = function (requestParameters, options) {
|
|
2262
|
+
var _this = this;
|
|
2263
|
+
return (0, exports.LibraryApiFp)(this.configuration).getSimilarItems(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2264
|
+
};
|
|
2265
|
+
/**
|
|
2266
|
+
*
|
|
2267
|
+
* @summary Gets similar items.
|
|
2268
|
+
* @param {LibraryApiGetSimilarMoviesRequest} requestParameters Request parameters.
|
|
2269
|
+
* @param {*} [options] Override http request option.
|
|
2270
|
+
* @throws {RequiredError}
|
|
2271
|
+
* @memberof LibraryApi
|
|
2272
|
+
*/
|
|
2273
|
+
LibraryApi.prototype.getSimilarMovies = function (requestParameters, options) {
|
|
2274
|
+
var _this = this;
|
|
2275
|
+
return (0, exports.LibraryApiFp)(this.configuration).getSimilarMovies(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2276
|
+
};
|
|
2277
|
+
/**
|
|
2278
|
+
*
|
|
2279
|
+
* @summary Gets similar items.
|
|
2280
|
+
* @param {LibraryApiGetSimilarShowsRequest} requestParameters Request parameters.
|
|
2281
|
+
* @param {*} [options] Override http request option.
|
|
2282
|
+
* @throws {RequiredError}
|
|
2283
|
+
* @memberof LibraryApi
|
|
2284
|
+
*/
|
|
2285
|
+
LibraryApi.prototype.getSimilarShows = function (requestParameters, options) {
|
|
2286
|
+
var _this = this;
|
|
2287
|
+
return (0, exports.LibraryApiFp)(this.configuration).getSimilarShows(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2288
|
+
};
|
|
2289
|
+
/**
|
|
2290
|
+
*
|
|
2291
|
+
* @summary Gets similar items.
|
|
2292
|
+
* @param {LibraryApiGetSimilarTrailersRequest} requestParameters Request parameters.
|
|
2293
|
+
* @param {*} [options] Override http request option.
|
|
2294
|
+
* @throws {RequiredError}
|
|
2295
|
+
* @memberof LibraryApi
|
|
2296
|
+
*/
|
|
2297
|
+
LibraryApi.prototype.getSimilarTrailers = function (requestParameters, options) {
|
|
2298
|
+
var _this = this;
|
|
2299
|
+
return (0, exports.LibraryApiFp)(this.configuration).getSimilarTrailers(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2300
|
+
};
|
|
2301
|
+
/**
|
|
2302
|
+
*
|
|
2303
|
+
* @summary Get theme songs and videos for an item.
|
|
2304
|
+
* @param {LibraryApiGetThemeMediaRequest} requestParameters Request parameters.
|
|
2305
|
+
* @param {*} [options] Override http request option.
|
|
2306
|
+
* @throws {RequiredError}
|
|
2307
|
+
* @memberof LibraryApi
|
|
2308
|
+
*/
|
|
2309
|
+
LibraryApi.prototype.getThemeMedia = function (requestParameters, options) {
|
|
2310
|
+
var _this = this;
|
|
2311
|
+
return (0, exports.LibraryApiFp)(this.configuration).getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2312
|
+
};
|
|
2313
|
+
/**
|
|
2314
|
+
*
|
|
2315
|
+
* @summary Get theme songs for an item.
|
|
2316
|
+
* @param {LibraryApiGetThemeSongsRequest} requestParameters Request parameters.
|
|
2317
|
+
* @param {*} [options] Override http request option.
|
|
2318
|
+
* @throws {RequiredError}
|
|
2319
|
+
* @memberof LibraryApi
|
|
2320
|
+
*/
|
|
2321
|
+
LibraryApi.prototype.getThemeSongs = function (requestParameters, options) {
|
|
2322
|
+
var _this = this;
|
|
2323
|
+
return (0, exports.LibraryApiFp)(this.configuration).getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2324
|
+
};
|
|
2325
|
+
/**
|
|
2326
|
+
*
|
|
2327
|
+
* @summary Get theme videos for an item.
|
|
2328
|
+
* @param {LibraryApiGetThemeVideosRequest} requestParameters Request parameters.
|
|
2329
|
+
* @param {*} [options] Override http request option.
|
|
2330
|
+
* @throws {RequiredError}
|
|
2331
|
+
* @memberof LibraryApi
|
|
2332
|
+
*/
|
|
2333
|
+
LibraryApi.prototype.getThemeVideos = function (requestParameters, options) {
|
|
2334
|
+
var _this = this;
|
|
2335
|
+
return (0, exports.LibraryApiFp)(this.configuration).getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2336
|
+
};
|
|
2337
|
+
/**
|
|
2338
|
+
*
|
|
2339
|
+
* @summary Reports that new movies have been added by an external source.
|
|
2340
|
+
* @param {LibraryApiPostAddedMoviesRequest} requestParameters Request parameters.
|
|
2341
|
+
* @param {*} [options] Override http request option.
|
|
2342
|
+
* @throws {RequiredError}
|
|
2343
|
+
* @memberof LibraryApi
|
|
2344
|
+
*/
|
|
2345
|
+
LibraryApi.prototype.postAddedMovies = function (requestParameters, options) {
|
|
2346
|
+
var _this = this;
|
|
2347
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2348
|
+
return (0, exports.LibraryApiFp)(this.configuration).postAddedMovies(requestParameters.tmdbId, requestParameters.imdbId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2349
|
+
};
|
|
2350
|
+
/**
|
|
2351
|
+
*
|
|
2352
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
2353
|
+
* @param {LibraryApiPostAddedSeriesRequest} requestParameters Request parameters.
|
|
2354
|
+
* @param {*} [options] Override http request option.
|
|
2355
|
+
* @throws {RequiredError}
|
|
2356
|
+
* @memberof LibraryApi
|
|
2357
|
+
*/
|
|
2358
|
+
LibraryApi.prototype.postAddedSeries = function (requestParameters, options) {
|
|
2359
|
+
var _this = this;
|
|
2360
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2361
|
+
return (0, exports.LibraryApiFp)(this.configuration).postAddedSeries(requestParameters.tvdbId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2362
|
+
};
|
|
2363
|
+
/**
|
|
2364
|
+
*
|
|
2365
|
+
* @summary Reports that new movies have been added by an external source.
|
|
2366
|
+
* @param {LibraryApiPostUpdatedMediaRequest} requestParameters Request parameters.
|
|
2367
|
+
* @param {*} [options] Override http request option.
|
|
2368
|
+
* @throws {RequiredError}
|
|
2369
|
+
* @memberof LibraryApi
|
|
2370
|
+
*/
|
|
2371
|
+
LibraryApi.prototype.postUpdatedMedia = function (requestParameters, options) {
|
|
2372
|
+
var _this = this;
|
|
2373
|
+
return (0, exports.LibraryApiFp)(this.configuration).postUpdatedMedia(requestParameters.mediaUpdateInfoDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2374
|
+
};
|
|
2375
|
+
/**
|
|
2376
|
+
*
|
|
2377
|
+
* @summary Reports that new movies have been added by an external source.
|
|
2378
|
+
* @param {LibraryApiPostUpdatedMoviesRequest} requestParameters Request parameters.
|
|
2379
|
+
* @param {*} [options] Override http request option.
|
|
2380
|
+
* @throws {RequiredError}
|
|
2381
|
+
* @memberof LibraryApi
|
|
2382
|
+
*/
|
|
2383
|
+
LibraryApi.prototype.postUpdatedMovies = function (requestParameters, options) {
|
|
2384
|
+
var _this = this;
|
|
2385
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2386
|
+
return (0, exports.LibraryApiFp)(this.configuration).postUpdatedMovies(requestParameters.tmdbId, requestParameters.imdbId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2387
|
+
};
|
|
2388
|
+
/**
|
|
2389
|
+
*
|
|
2390
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
2391
|
+
* @param {LibraryApiPostUpdatedSeriesRequest} requestParameters Request parameters.
|
|
2392
|
+
* @param {*} [options] Override http request option.
|
|
2393
|
+
* @throws {RequiredError}
|
|
2394
|
+
* @memberof LibraryApi
|
|
2395
|
+
*/
|
|
2396
|
+
LibraryApi.prototype.postUpdatedSeries = function (requestParameters, options) {
|
|
2397
|
+
var _this = this;
|
|
2398
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2399
|
+
return (0, exports.LibraryApiFp)(this.configuration).postUpdatedSeries(requestParameters.tvdbId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2400
|
+
};
|
|
2401
|
+
/**
|
|
2402
|
+
*
|
|
2403
|
+
* @summary Starts a library scan.
|
|
2404
|
+
* @param {*} [options] Override http request option.
|
|
2405
|
+
* @throws {RequiredError}
|
|
2406
|
+
* @memberof LibraryApi
|
|
2407
|
+
*/
|
|
2408
|
+
LibraryApi.prototype.refreshLibrary = function (options) {
|
|
2409
|
+
var _this = this;
|
|
2410
|
+
return (0, exports.LibraryApiFp)(this.configuration).refreshLibrary(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2411
|
+
};
|
|
2412
|
+
return LibraryApi;
|
|
2413
|
+
}(base_1.BaseAPI));
|
|
2414
|
+
exports.LibraryApi = LibraryApi;
|