@jellyfin/sdk 0.9.0 → 0.11.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/README.md +10 -0
- package/lib/api.d.ts +0 -11
- package/lib/api.js +0 -14
- package/lib/discovery/discovery-service.js +4 -9
- package/lib/discovery/recommended-server-discovery.js +17 -22
- package/lib/generated-client/api/activity-log-api.d.ts +9 -12
- package/lib/generated-client/api/activity-log-api.js +15 -18
- package/lib/generated-client/api/api-key-api.d.ts +18 -18
- package/lib/generated-client/api/api-key-api.js +40 -38
- package/lib/generated-client/api/artists-api.d.ts +27 -90
- package/lib/generated-client/api/artists-api.js +43 -104
- package/lib/generated-client/api/audio-api.d.ts +81 -249
- package/lib/generated-client/api/audio-api.js +105 -266
- package/lib/generated-client/api/branding-api.d.ts +16 -16
- package/lib/generated-client/api/branding-api.js +31 -29
- package/lib/generated-client/api/channels-api.d.ts +33 -51
- package/lib/generated-client/api/channels-api.js +68 -82
- package/lib/generated-client/api/client-log-api.d.ts +13 -13
- package/lib/generated-client/api/client-log-api.js +17 -17
- package/lib/generated-client/api/collection-api.d.ts +19 -24
- package/lib/generated-client/api/collection-api.js +43 -46
- package/lib/generated-client/api/configuration-api.d.ts +28 -29
- package/lib/generated-client/api/configuration-api.js +65 -62
- package/lib/generated-client/api/dashboard-api.d.ts +14 -14
- package/lib/generated-client/api/dashboard-api.js +28 -27
- package/lib/generated-client/api/devices-api.d.ts +31 -33
- package/lib/generated-client/api/devices-api.js +71 -68
- package/lib/generated-client/api/display-preferences-api.d.ts +14 -19
- package/lib/generated-client/api/display-preferences-api.js +29 -33
- package/lib/generated-client/api/dynamic-hls-api.d.ts +246 -607
- package/lib/generated-client/api/dynamic-hls-api.js +269 -628
- package/lib/generated-client/api/environment-api.d.ts +33 -35
- package/lib/generated-client/api/environment-api.js +76 -73
- package/lib/generated-client/api/filter-api.d.ts +17 -29
- package/lib/generated-client/api/filter-api.js +29 -40
- package/lib/generated-client/api/genres-api.d.ts +20 -38
- package/lib/generated-client/api/genres-api.js +29 -46
- package/lib/generated-client/api/hls-segment-api.d.ts +28 -35
- package/lib/generated-client/api/hls-segment-api.js +68 -71
- package/lib/generated-client/api/image-api.d.ts +206 -644
- package/lib/generated-client/api/image-api.js +501 -903
- package/lib/generated-client/api/instant-mix-api.d.ts +46 -102
- package/lib/generated-client/api/instant-mix-api.js +113 -162
- package/lib/generated-client/api/item-lookup-api.d.ts +69 -71
- package/lib/generated-client/api/item-lookup-api.js +155 -147
- package/lib/generated-client/api/item-refresh-api.d.ts +9 -13
- package/lib/generated-client/api/item-refresh-api.js +15 -19
- package/lib/generated-client/api/item-update-api.d.ts +20 -22
- package/lib/generated-client/api/item-update-api.js +43 -43
- package/lib/generated-client/api/items-api.d.ts +44 -137
- package/lib/generated-client/api/items-api.js +63 -156
- package/lib/generated-client/api/library-api.d.ts +185 -170
- package/lib/generated-client/api/library-api.js +378 -359
- package/lib/generated-client/api/library-structure-api.d.ts +48 -58
- package/lib/generated-client/api/library-structure-api.js +110 -113
- package/lib/generated-client/api/live-tv-api.d.ts +224 -332
- package/lib/generated-client/api/live-tv-api.js +558 -626
- package/lib/generated-client/api/localization-api.d.ts +23 -23
- package/lib/generated-client/api/localization-api.js +45 -42
- package/lib/generated-client/api/lyrics-api.d.ts +39 -42
- package/lib/generated-client/api/lyrics-api.js +87 -85
- package/lib/generated-client/api/media-info-api.d.ts +40 -59
- package/lib/generated-client/api/media-info-api.js +77 -95
- package/lib/generated-client/api/media-segments-api.d.ts +95 -0
- package/lib/generated-client/api/media-segments-api.js +123 -0
- package/lib/generated-client/api/movies-api.d.ts +10 -14
- package/lib/generated-client/api/movies-api.js +15 -19
- package/lib/generated-client/api/music-genres-api.d.ts +20 -38
- package/lib/generated-client/api/music-genres-api.js +29 -46
- package/lib/generated-client/api/package-api.d.ts +33 -37
- package/lib/generated-client/api/package-api.js +79 -78
- package/lib/generated-client/api/persons-api.d.ts +18 -31
- package/lib/generated-client/api/persons-api.js +29 -41
- package/lib/generated-client/api/playlists-api.d.ts +109 -84
- package/lib/generated-client/api/playlists-api.js +207 -154
- package/lib/generated-client/api/playstate-api.d.ts +54 -80
- package/lib/generated-client/api/playstate-api.js +127 -145
- package/lib/generated-client/api/plugins-api.d.ts +48 -52
- package/lib/generated-client/api/plugins-api.js +124 -120
- package/lib/generated-client/api/quick-connect-api.d.ts +22 -23
- package/lib/generated-client/api/quick-connect-api.js +48 -46
- package/lib/generated-client/api/remote-image-api.d.ts +21 -28
- package/lib/generated-client/api/remote-image-api.js +43 -48
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +30 -32
- package/lib/generated-client/api/scheduled-tasks-api.js +71 -69
- package/lib/generated-client/api/search-api.d.ts +11 -28
- package/lib/generated-client/api/search-api.js +15 -32
- package/lib/generated-client/api/session-api.d.ts +90 -117
- package/lib/generated-client/api/session-api.js +216 -228
- package/lib/generated-client/api/startup-api.d.ts +37 -37
- package/lib/generated-client/api/startup-api.js +87 -81
- package/lib/generated-client/api/studios-api.d.ts +18 -35
- package/lib/generated-client/api/studios-api.js +29 -45
- package/lib/generated-client/api/subtitle-api.d.ts +55 -86
- package/lib/generated-client/api/subtitle-api.js +136 -158
- package/lib/generated-client/api/suggestions-api.d.ts +11 -16
- package/lib/generated-client/api/suggestions-api.js +15 -20
- package/lib/generated-client/api/sync-play-api.d.ts +120 -120
- package/lib/generated-client/api/sync-play-api.js +280 -260
- package/lib/generated-client/api/system-api.d.ts +49 -49
- package/lib/generated-client/api/system-api.js +111 -102
- package/lib/generated-client/api/time-sync-api.d.ts +8 -8
- package/lib/generated-client/api/time-sync-api.js +11 -11
- package/lib/generated-client/api/tmdb-api.d.ts +8 -8
- package/lib/generated-client/api/tmdb-api.js +12 -12
- package/lib/generated-client/api/trailers-api.d.ts +19 -102
- package/lib/generated-client/api/trailers-api.js +15 -98
- package/lib/generated-client/api/trickplay-api.d.ts +13 -18
- package/lib/generated-client/api/trickplay-api.js +29 -33
- package/lib/generated-client/api/tv-shows-api.d.ts +27 -72
- package/lib/generated-client/api/tv-shows-api.js +57 -99
- package/lib/generated-client/api/universal-audio-api.d.ts +30 -48
- package/lib/generated-client/api/universal-audio-api.js +41 -64
- package/lib/generated-client/api/user-api.d.ts +83 -88
- package/lib/generated-client/api/user-api.js +186 -178
- package/lib/generated-client/api/user-library-api.d.ts +59 -78
- package/lib/generated-client/api/user-library-api.js +141 -151
- package/lib/generated-client/api/user-views-api.d.ts +16 -19
- package/lib/generated-client/api/user-views-api.js +29 -31
- package/lib/generated-client/api/video-attachments-api.d.ts +8 -10
- package/lib/generated-client/api/video-attachments-api.js +14 -16
- package/lib/generated-client/api/videos-api.d.ts +97 -274
- package/lib/generated-client/api/videos-api.js +147 -314
- package/lib/generated-client/api/years-api.d.ts +21 -36
- package/lib/generated-client/api/years-api.js +29 -43
- package/lib/generated-client/api.d.ts +1 -0
- package/lib/generated-client/base.d.ts +15 -4
- package/lib/generated-client/base.js +8 -4
- package/lib/generated-client/common.d.ts +3 -3
- package/lib/generated-client/common.js +30 -24
- package/lib/generated-client/configuration.d.ts +8 -0
- package/lib/generated-client/configuration.js +1 -0
- package/lib/generated-client/index.js +8 -1
- package/lib/generated-client/models/access-schedule.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-message.d.ts +2 -2
- package/lib/generated-client/models/activity-log-entry-query-result.d.ts +3 -3
- package/lib/generated-client/models/activity-log-entry-start-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry.d.ts +1 -1
- package/lib/generated-client/models/add-virtual-folder-dto.d.ts +1 -1
- package/lib/generated-client/models/album-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/album-info.d.ts +5 -5
- package/lib/generated-client/models/all-theme-media-result.d.ts +1 -1
- package/lib/generated-client/models/artist-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/artist-info.d.ts +3 -3
- package/lib/generated-client/models/authentication-info-query-result.d.ts +3 -3
- package/lib/generated-client/models/authentication-result.d.ts +7 -7
- package/lib/generated-client/models/base-item-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/base-item-dto.d.ts +26 -26
- package/lib/generated-client/models/base-item-person.d.ts +2 -2
- package/lib/generated-client/models/book-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/book-info.d.ts +2 -2
- package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/box-set-info.d.ts +2 -2
- package/lib/generated-client/models/channel-features.d.ts +3 -3
- package/lib/generated-client/models/channel-mapping-options-dto.d.ts +3 -3
- package/lib/generated-client/models/client-capabilities-dto.d.ts +3 -17
- package/lib/generated-client/models/client-capabilities.d.ts +3 -3
- package/lib/generated-client/models/codec-profile.d.ts +15 -9
- package/lib/generated-client/models/container-profile.d.ts +12 -6
- package/lib/generated-client/models/create-playlist-dto.d.ts +2 -2
- package/lib/generated-client/models/deinterlace-method.d.ts +20 -0
- package/lib/generated-client/models/{hardware-encoding-type.js → deinterlace-method.js} +5 -10
- package/lib/generated-client/models/device-info-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/device-info-dto.d.ts +84 -0
- package/lib/generated-client/models/device-info-query-result.d.ts +1 -1
- package/lib/generated-client/models/device-info.d.ts +1 -1
- package/lib/generated-client/models/device-profile.d.ts +8 -8
- package/lib/generated-client/models/direct-play-profile.d.ts +6 -6
- package/lib/generated-client/models/display-preferences-dto.d.ts +4 -4
- package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +3 -1
- package/lib/generated-client/models/down-mix-stereo-algorithms.js +4 -2
- package/lib/generated-client/models/encoder-preset.d.ts +29 -0
- package/lib/generated-client/models/encoder-preset.js +32 -0
- package/lib/generated-client/models/encoding-options.d.ts +43 -19
- package/lib/generated-client/models/external-id-info.d.ts +2 -1
- package/lib/generated-client/models/file-system-entry-info.d.ts +1 -1
- package/lib/generated-client/models/force-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/forgot-password-result.d.ts +1 -1
- package/lib/generated-client/models/general-command-message.d.ts +2 -2
- package/lib/generated-client/models/general-command.d.ts +3 -3
- package/lib/generated-client/models/get-programs-dto.d.ts +34 -34
- package/lib/generated-client/models/group-info-dto-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-info-dto.d.ts +1 -1
- package/lib/generated-client/models/group-state-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-state-update.d.ts +2 -2
- package/lib/generated-client/models/group-update.d.ts +23 -5
- package/lib/generated-client/models/hardware-acceleration-type.d.ts +26 -0
- package/lib/generated-client/models/hardware-acceleration-type.js +29 -0
- package/lib/generated-client/models/image-info.d.ts +1 -1
- package/lib/generated-client/models/image-option.d.ts +1 -1
- package/lib/generated-client/models/image-provider-info.d.ts +1 -1
- package/lib/generated-client/models/inbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/inbound-web-socket-message.d.ts +22 -8
- package/lib/generated-client/models/index.d.ts +13 -6
- package/lib/generated-client/models/index.js +7 -1
- package/lib/generated-client/models/installation-info.d.ts +1 -1
- package/lib/generated-client/models/library-changed-message.d.ts +2 -2
- package/lib/generated-client/models/library-options-result-dto.d.ts +8 -2
- package/lib/generated-client/models/library-options.d.ts +57 -3
- package/lib/generated-client/models/library-type-options-dto.d.ts +3 -3
- package/lib/generated-client/models/listings-provider-info.d.ts +1 -1
- package/lib/generated-client/models/live-stream-response.d.ts +1 -1
- package/lib/generated-client/models/live-tv-info.d.ts +1 -1
- package/lib/generated-client/models/live-tv-options.d.ts +2 -2
- package/lib/generated-client/models/live-tv-service-info.d.ts +1 -1
- package/lib/generated-client/models/lyric-dto.d.ts +2 -2
- package/lib/generated-client/models/media-path-dto.d.ts +1 -1
- package/lib/generated-client/models/media-path-info.d.ts +0 -6
- package/lib/generated-client/models/media-segment-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/media-segment-dto.d.ts +48 -0
- package/lib/generated-client/models/media-segment-type.d.ts +24 -0
- package/lib/generated-client/models/media-segment-type.js +27 -0
- package/lib/generated-client/models/media-source-info.d.ts +29 -11
- package/lib/generated-client/models/media-stream.d.ts +17 -5
- package/lib/generated-client/models/media-update-info-dto.d.ts +1 -1
- package/lib/generated-client/models/metadata-editor-info.d.ts +6 -6
- package/lib/generated-client/models/movie-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/movie-info.d.ts +2 -2
- package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/music-video-info.d.ts +2 -2
- package/lib/generated-client/models/open-live-stream-dto.d.ts +8 -2
- package/lib/generated-client/models/outbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/outbound-web-socket-message.d.ts +85 -29
- package/lib/generated-client/models/package-info.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info.d.ts +2 -2
- package/lib/generated-client/models/play-message.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update.d.ts +4 -4
- package/lib/generated-client/models/play-request.d.ts +1 -1
- package/lib/generated-client/models/playback-info-dto.d.ts +7 -1
- package/lib/generated-client/models/playback-info-response.d.ts +2 -2
- package/lib/generated-client/models/playback-progress-info.d.ts +5 -5
- package/lib/generated-client/models/playback-start-info.d.ts +5 -5
- package/lib/generated-client/models/playback-stop-info.d.ts +2 -2
- package/lib/generated-client/models/player-state-info.d.ts +3 -3
- package/lib/generated-client/models/playlist-dto.d.ts +36 -0
- package/lib/generated-client/models/playstate-message.d.ts +2 -2
- package/lib/generated-client/models/playstate-request.d.ts +1 -1
- package/lib/generated-client/models/plugin-info.d.ts +1 -1
- package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-completed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-failed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installing-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-uninstalled-message.d.ts +2 -2
- package/lib/generated-client/models/problem-details.d.ts +1 -1
- package/lib/generated-client/models/profile-condition.d.ts +2 -2
- package/lib/generated-client/models/query-filters.d.ts +1 -1
- package/lib/generated-client/models/queue-request-dto.d.ts +1 -1
- package/lib/generated-client/models/recommendation-dto.d.ts +2 -2
- package/lib/generated-client/models/refresh-progress-message.d.ts +3 -3
- package/lib/generated-client/models/remote-image-info.d.ts +2 -2
- package/lib/generated-client/models/remote-image-result.d.ts +1 -1
- package/lib/generated-client/models/remote-lyric-info-dto.d.ts +1 -1
- package/lib/generated-client/models/remote-search-result.d.ts +2 -2
- package/lib/generated-client/models/restart-required-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-task-ended-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +1 -1
- package/lib/generated-client/models/search-hint-result.d.ts +1 -1
- package/lib/generated-client/models/search-hint.d.ts +3 -3
- package/lib/generated-client/models/send-command.d.ts +1 -1
- package/lib/generated-client/models/series-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/series-info.d.ts +2 -2
- package/lib/generated-client/models/series-timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/series-timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/series-timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/server-configuration.d.ts +8 -14
- package/lib/generated-client/models/server-restarting-message.d.ts +1 -1
- package/lib/generated-client/models/server-shutting-down-message.d.ts +1 -1
- package/lib/generated-client/models/session-info-dto.d.ts +199 -0
- package/lib/generated-client/models/session-info.d.ts +8 -8
- package/lib/generated-client/models/sessions-message.d.ts +4 -4
- package/lib/generated-client/models/sessions-start-message.d.ts +1 -1
- package/lib/generated-client/models/sessions-stop-message.d.ts +1 -1
- package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/song-info.d.ts +2 -2
- package/lib/generated-client/models/string-group-update.d.ts +1 -1
- package/lib/generated-client/models/subtitle-profile.d.ts +6 -6
- package/lib/generated-client/models/sync-play-command-message.d.ts +2 -2
- package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +2 -2
- package/lib/generated-client/models/system-info.d.ts +2 -2
- package/lib/generated-client/models/task-info.d.ts +3 -3
- package/lib/generated-client/models/task-result.d.ts +1 -1
- package/lib/generated-client/models/task-trigger-info.d.ts +1 -1
- package/lib/generated-client/models/theme-media-result.d.ts +2 -2
- package/lib/generated-client/models/timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/tonemapping-algorithm.d.ts +26 -0
- package/lib/generated-client/models/tonemapping-algorithm.js +29 -0
- package/lib/generated-client/models/tonemapping-mode.d.ts +23 -0
- package/lib/generated-client/models/tonemapping-mode.js +26 -0
- package/lib/generated-client/models/tonemapping-range.d.ts +21 -0
- package/lib/generated-client/models/tonemapping-range.js +24 -0
- package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/trailer-info.d.ts +2 -2
- package/lib/generated-client/models/transcode-reason.d.ts +1 -0
- package/lib/generated-client/models/transcode-reason.js +2 -1
- package/lib/generated-client/models/transcoding-info.d.ts +16 -16
- package/lib/generated-client/models/transcoding-profile.d.ts +24 -18
- package/lib/generated-client/models/trickplay-options.d.ts +8 -2
- package/lib/generated-client/models/tuner-host-info.d.ts +18 -0
- package/lib/generated-client/models/type-options.d.ts +1 -1
- package/lib/generated-client/models/update-library-options-dto.d.ts +1 -1
- package/lib/generated-client/models/update-media-path-request-dto.d.ts +1 -1
- package/lib/generated-client/models/update-playlist-dto.d.ts +1 -1
- package/lib/generated-client/models/user-configuration.d.ts +1 -1
- package/lib/generated-client/models/user-data-change-info.d.ts +3 -3
- package/lib/generated-client/models/user-data-changed-message.d.ts +2 -2
- package/lib/generated-client/models/user-deleted-message.d.ts +1 -1
- package/lib/generated-client/models/user-dto.d.ts +2 -2
- package/lib/generated-client/models/user-item-data-dto.d.ts +2 -2
- package/lib/generated-client/models/user-policy.d.ts +3 -3
- package/lib/generated-client/models/user-updated-message.d.ts +2 -2
- package/lib/generated-client/models/virtual-folder-info.d.ts +2 -2
- package/lib/generated-client/models/web-socket-message.d.ts +2 -2
- package/lib/utils/address-candidates.js +15 -10
- package/lib/utils/api/image-urls-api.js +16 -4
- package/lib/utils/api/index.d.ts +1 -0
- package/lib/utils/api/index.js +1 -0
- package/lib/utils/api/media-segments-api.d.ts +8 -0
- package/lib/utils/api/media-segments-api.js +12 -0
- package/lib/utils/index.js +1 -1
- package/lib/utils/url/index.d.ts +16 -3
- package/lib/utils/url/index.js +26 -4
- package/lib/versions.d.ts +1 -1
- package/lib/versions.js +1 -1
- package/package.json +13 -12
- package/lib/node_modules/tslib/tslib.es6.js +0 -33
|
@@ -8,13 +8,12 @@
|
|
|
8
8
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
9
9
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { DeviceOptionsDto } from '../models';
|
|
11
|
+
import type { Configuration } from '../configuration';
|
|
12
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
13
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
14
|
+
import type { DeviceInfoDto } from '../models';
|
|
15
|
+
import type { DeviceInfoDtoQueryResult } from '../models';
|
|
16
|
+
import type { DeviceOptionsDto } from '../models';
|
|
18
17
|
/**
|
|
19
18
|
* DevicesApi - axios parameter creator
|
|
20
19
|
* @export
|
|
@@ -27,7 +26,7 @@ export declare const DevicesApiAxiosParamCreator: (configuration?: Configuration
|
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
deleteDevice: (id: string, options?:
|
|
29
|
+
deleteDevice: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
30
|
/**
|
|
32
31
|
*
|
|
33
32
|
* @summary Get info for a device.
|
|
@@ -35,7 +34,7 @@ export declare const DevicesApiAxiosParamCreator: (configuration?: Configuration
|
|
|
35
34
|
* @param {*} [options] Override http request option.
|
|
36
35
|
* @throws {RequiredError}
|
|
37
36
|
*/
|
|
38
|
-
getDeviceInfo: (id: string, options?:
|
|
37
|
+
getDeviceInfo: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
38
|
/**
|
|
40
39
|
*
|
|
41
40
|
* @summary Get options for a device.
|
|
@@ -43,7 +42,7 @@ export declare const DevicesApiAxiosParamCreator: (configuration?: Configuration
|
|
|
43
42
|
* @param {*} [options] Override http request option.
|
|
44
43
|
* @throws {RequiredError}
|
|
45
44
|
*/
|
|
46
|
-
getDeviceOptions: (id: string, options?:
|
|
45
|
+
getDeviceOptions: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
46
|
/**
|
|
48
47
|
*
|
|
49
48
|
* @summary Get Devices.
|
|
@@ -51,7 +50,7 @@ export declare const DevicesApiAxiosParamCreator: (configuration?: Configuration
|
|
|
51
50
|
* @param {*} [options] Override http request option.
|
|
52
51
|
* @throws {RequiredError}
|
|
53
52
|
*/
|
|
54
|
-
getDevices: (userId?: string, options?:
|
|
53
|
+
getDevices: (userId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
55
54
|
/**
|
|
56
55
|
*
|
|
57
56
|
* @summary Update device options.
|
|
@@ -60,7 +59,7 @@ export declare const DevicesApiAxiosParamCreator: (configuration?: Configuration
|
|
|
60
59
|
* @param {*} [options] Override http request option.
|
|
61
60
|
* @throws {RequiredError}
|
|
62
61
|
*/
|
|
63
|
-
updateDeviceOptions: (id: string, deviceOptionsDto: DeviceOptionsDto, options?:
|
|
62
|
+
updateDeviceOptions: (id: string, deviceOptionsDto: DeviceOptionsDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
64
63
|
};
|
|
65
64
|
/**
|
|
66
65
|
* DevicesApi - functional programming interface
|
|
@@ -74,7 +73,7 @@ export declare const DevicesApiFp: (configuration?: Configuration) => {
|
|
|
74
73
|
* @param {*} [options] Override http request option.
|
|
75
74
|
* @throws {RequiredError}
|
|
76
75
|
*/
|
|
77
|
-
deleteDevice(id: string, options?:
|
|
76
|
+
deleteDevice(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
78
77
|
/**
|
|
79
78
|
*
|
|
80
79
|
* @summary Get info for a device.
|
|
@@ -82,7 +81,7 @@ export declare const DevicesApiFp: (configuration?: Configuration) => {
|
|
|
82
81
|
* @param {*} [options] Override http request option.
|
|
83
82
|
* @throws {RequiredError}
|
|
84
83
|
*/
|
|
85
|
-
getDeviceInfo(id: string, options?:
|
|
84
|
+
getDeviceInfo(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceInfoDto>>;
|
|
86
85
|
/**
|
|
87
86
|
*
|
|
88
87
|
* @summary Get options for a device.
|
|
@@ -90,7 +89,7 @@ export declare const DevicesApiFp: (configuration?: Configuration) => {
|
|
|
90
89
|
* @param {*} [options] Override http request option.
|
|
91
90
|
* @throws {RequiredError}
|
|
92
91
|
*/
|
|
93
|
-
getDeviceOptions(id: string, options?:
|
|
92
|
+
getDeviceOptions(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceOptionsDto>>;
|
|
94
93
|
/**
|
|
95
94
|
*
|
|
96
95
|
* @summary Get Devices.
|
|
@@ -98,7 +97,7 @@ export declare const DevicesApiFp: (configuration?: Configuration) => {
|
|
|
98
97
|
* @param {*} [options] Override http request option.
|
|
99
98
|
* @throws {RequiredError}
|
|
100
99
|
*/
|
|
101
|
-
getDevices(userId?: string, options?:
|
|
100
|
+
getDevices(userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceInfoDtoQueryResult>>;
|
|
102
101
|
/**
|
|
103
102
|
*
|
|
104
103
|
* @summary Update device options.
|
|
@@ -107,7 +106,7 @@ export declare const DevicesApiFp: (configuration?: Configuration) => {
|
|
|
107
106
|
* @param {*} [options] Override http request option.
|
|
108
107
|
* @throws {RequiredError}
|
|
109
108
|
*/
|
|
110
|
-
updateDeviceOptions(id: string, deviceOptionsDto: DeviceOptionsDto, options?:
|
|
109
|
+
updateDeviceOptions(id: string, deviceOptionsDto: DeviceOptionsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
111
110
|
};
|
|
112
111
|
/**
|
|
113
112
|
* DevicesApi - factory interface
|
|
@@ -117,44 +116,43 @@ export declare const DevicesApiFactory: (configuration?: Configuration, basePath
|
|
|
117
116
|
/**
|
|
118
117
|
*
|
|
119
118
|
* @summary Deletes a device.
|
|
120
|
-
* @param {
|
|
119
|
+
* @param {DevicesApiDeleteDeviceRequest} requestParameters Request parameters.
|
|
121
120
|
* @param {*} [options] Override http request option.
|
|
122
121
|
* @throws {RequiredError}
|
|
123
122
|
*/
|
|
124
|
-
deleteDevice(
|
|
123
|
+
deleteDevice(requestParameters: DevicesApiDeleteDeviceRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
125
124
|
/**
|
|
126
125
|
*
|
|
127
126
|
* @summary Get info for a device.
|
|
128
|
-
* @param {
|
|
127
|
+
* @param {DevicesApiGetDeviceInfoRequest} requestParameters Request parameters.
|
|
129
128
|
* @param {*} [options] Override http request option.
|
|
130
129
|
* @throws {RequiredError}
|
|
131
130
|
*/
|
|
132
|
-
getDeviceInfo(
|
|
131
|
+
getDeviceInfo(requestParameters: DevicesApiGetDeviceInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeviceInfoDto>;
|
|
133
132
|
/**
|
|
134
133
|
*
|
|
135
134
|
* @summary Get options for a device.
|
|
136
|
-
* @param {
|
|
135
|
+
* @param {DevicesApiGetDeviceOptionsRequest} requestParameters Request parameters.
|
|
137
136
|
* @param {*} [options] Override http request option.
|
|
138
137
|
* @throws {RequiredError}
|
|
139
138
|
*/
|
|
140
|
-
getDeviceOptions(
|
|
139
|
+
getDeviceOptions(requestParameters: DevicesApiGetDeviceOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeviceOptionsDto>;
|
|
141
140
|
/**
|
|
142
141
|
*
|
|
143
142
|
* @summary Get Devices.
|
|
144
|
-
* @param {
|
|
143
|
+
* @param {DevicesApiGetDevicesRequest} requestParameters Request parameters.
|
|
145
144
|
* @param {*} [options] Override http request option.
|
|
146
145
|
* @throws {RequiredError}
|
|
147
146
|
*/
|
|
148
|
-
getDevices(
|
|
147
|
+
getDevices(requestParameters?: DevicesApiGetDevicesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeviceInfoDtoQueryResult>;
|
|
149
148
|
/**
|
|
150
149
|
*
|
|
151
150
|
* @summary Update device options.
|
|
152
|
-
* @param {
|
|
153
|
-
* @param {DeviceOptionsDto} deviceOptionsDto Device Options.
|
|
151
|
+
* @param {DevicesApiUpdateDeviceOptionsRequest} requestParameters Request parameters.
|
|
154
152
|
* @param {*} [options] Override http request option.
|
|
155
153
|
* @throws {RequiredError}
|
|
156
154
|
*/
|
|
157
|
-
updateDeviceOptions(
|
|
155
|
+
updateDeviceOptions(requestParameters: DevicesApiUpdateDeviceOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
158
156
|
};
|
|
159
157
|
/**
|
|
160
158
|
* Request parameters for deleteDevice operation in DevicesApi.
|
|
@@ -242,7 +240,7 @@ export declare class DevicesApi extends BaseAPI {
|
|
|
242
240
|
* @throws {RequiredError}
|
|
243
241
|
* @memberof DevicesApi
|
|
244
242
|
*/
|
|
245
|
-
deleteDevice(requestParameters: DevicesApiDeleteDeviceRequest, options?:
|
|
243
|
+
deleteDevice(requestParameters: DevicesApiDeleteDeviceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
246
244
|
/**
|
|
247
245
|
*
|
|
248
246
|
* @summary Get info for a device.
|
|
@@ -251,7 +249,7 @@ export declare class DevicesApi extends BaseAPI {
|
|
|
251
249
|
* @throws {RequiredError}
|
|
252
250
|
* @memberof DevicesApi
|
|
253
251
|
*/
|
|
254
|
-
getDeviceInfo(requestParameters: DevicesApiGetDeviceInfoRequest, options?:
|
|
252
|
+
getDeviceInfo(requestParameters: DevicesApiGetDeviceInfoRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeviceInfoDto, any>>;
|
|
255
253
|
/**
|
|
256
254
|
*
|
|
257
255
|
* @summary Get options for a device.
|
|
@@ -260,7 +258,7 @@ export declare class DevicesApi extends BaseAPI {
|
|
|
260
258
|
* @throws {RequiredError}
|
|
261
259
|
* @memberof DevicesApi
|
|
262
260
|
*/
|
|
263
|
-
getDeviceOptions(requestParameters: DevicesApiGetDeviceOptionsRequest, options?:
|
|
261
|
+
getDeviceOptions(requestParameters: DevicesApiGetDeviceOptionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeviceOptionsDto, any>>;
|
|
264
262
|
/**
|
|
265
263
|
*
|
|
266
264
|
* @summary Get Devices.
|
|
@@ -269,7 +267,7 @@ export declare class DevicesApi extends BaseAPI {
|
|
|
269
267
|
* @throws {RequiredError}
|
|
270
268
|
* @memberof DevicesApi
|
|
271
269
|
*/
|
|
272
|
-
getDevices(requestParameters?: DevicesApiGetDevicesRequest, options?:
|
|
270
|
+
getDevices(requestParameters?: DevicesApiGetDevicesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeviceInfoDtoQueryResult, any>>;
|
|
273
271
|
/**
|
|
274
272
|
*
|
|
275
273
|
* @summary Update device options.
|
|
@@ -278,5 +276,5 @@ export declare class DevicesApi extends BaseAPI {
|
|
|
278
276
|
* @throws {RequiredError}
|
|
279
277
|
* @memberof DevicesApi
|
|
280
278
|
*/
|
|
281
|
-
updateDeviceOptions(requestParameters: DevicesApiUpdateDeviceOptionsRequest, options?:
|
|
279
|
+
updateDeviceOptions(requestParameters: DevicesApiUpdateDeviceOptionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
282
280
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction } from '../common.js';
|
|
4
|
-
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
5
4
|
|
|
6
5
|
/* tslint:disable */
|
|
7
6
|
/* eslint-disable */
|
|
@@ -28,7 +27,7 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
deleteDevice:
|
|
30
|
+
deleteDevice: async (id, options = {}) => {
|
|
32
31
|
// verify required parameter 'id' is not null or undefined
|
|
33
32
|
assertParamExists('deleteDevice', 'id', id);
|
|
34
33
|
const localVarPath = `/Devices`;
|
|
@@ -38,22 +37,22 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
38
37
|
if (configuration) {
|
|
39
38
|
baseOptions = configuration.baseOptions;
|
|
40
39
|
}
|
|
41
|
-
const localVarRequestOptions =
|
|
40
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
42
41
|
const localVarHeaderParameter = {};
|
|
43
42
|
const localVarQueryParameter = {};
|
|
44
43
|
// authentication CustomAuthentication required
|
|
45
|
-
|
|
44
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
46
45
|
if (id !== undefined) {
|
|
47
46
|
localVarQueryParameter['id'] = id;
|
|
48
47
|
}
|
|
49
48
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50
49
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51
|
-
localVarRequestOptions.headers =
|
|
50
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
52
51
|
return {
|
|
53
52
|
url: toPathString(localVarUrlObj),
|
|
54
53
|
options: localVarRequestOptions,
|
|
55
54
|
};
|
|
56
|
-
}
|
|
55
|
+
},
|
|
57
56
|
/**
|
|
58
57
|
*
|
|
59
58
|
* @summary Get info for a device.
|
|
@@ -61,7 +60,7 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
61
60
|
* @param {*} [options] Override http request option.
|
|
62
61
|
* @throws {RequiredError}
|
|
63
62
|
*/
|
|
64
|
-
getDeviceInfo:
|
|
63
|
+
getDeviceInfo: async (id, options = {}) => {
|
|
65
64
|
// verify required parameter 'id' is not null or undefined
|
|
66
65
|
assertParamExists('getDeviceInfo', 'id', id);
|
|
67
66
|
const localVarPath = `/Devices/Info`;
|
|
@@ -71,22 +70,22 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
71
70
|
if (configuration) {
|
|
72
71
|
baseOptions = configuration.baseOptions;
|
|
73
72
|
}
|
|
74
|
-
const localVarRequestOptions =
|
|
73
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
75
74
|
const localVarHeaderParameter = {};
|
|
76
75
|
const localVarQueryParameter = {};
|
|
77
76
|
// authentication CustomAuthentication required
|
|
78
|
-
|
|
77
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
79
78
|
if (id !== undefined) {
|
|
80
79
|
localVarQueryParameter['id'] = id;
|
|
81
80
|
}
|
|
82
81
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
82
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
|
-
localVarRequestOptions.headers =
|
|
83
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
85
84
|
return {
|
|
86
85
|
url: toPathString(localVarUrlObj),
|
|
87
86
|
options: localVarRequestOptions,
|
|
88
87
|
};
|
|
89
|
-
}
|
|
88
|
+
},
|
|
90
89
|
/**
|
|
91
90
|
*
|
|
92
91
|
* @summary Get options for a device.
|
|
@@ -94,7 +93,7 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
94
93
|
* @param {*} [options] Override http request option.
|
|
95
94
|
* @throws {RequiredError}
|
|
96
95
|
*/
|
|
97
|
-
getDeviceOptions:
|
|
96
|
+
getDeviceOptions: async (id, options = {}) => {
|
|
98
97
|
// verify required parameter 'id' is not null or undefined
|
|
99
98
|
assertParamExists('getDeviceOptions', 'id', id);
|
|
100
99
|
const localVarPath = `/Devices/Options`;
|
|
@@ -104,22 +103,22 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
104
103
|
if (configuration) {
|
|
105
104
|
baseOptions = configuration.baseOptions;
|
|
106
105
|
}
|
|
107
|
-
const localVarRequestOptions =
|
|
106
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
108
107
|
const localVarHeaderParameter = {};
|
|
109
108
|
const localVarQueryParameter = {};
|
|
110
109
|
// authentication CustomAuthentication required
|
|
111
|
-
|
|
110
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
112
111
|
if (id !== undefined) {
|
|
113
112
|
localVarQueryParameter['id'] = id;
|
|
114
113
|
}
|
|
115
114
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
116
115
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
117
|
-
localVarRequestOptions.headers =
|
|
116
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
118
117
|
return {
|
|
119
118
|
url: toPathString(localVarUrlObj),
|
|
120
119
|
options: localVarRequestOptions,
|
|
121
120
|
};
|
|
122
|
-
}
|
|
121
|
+
},
|
|
123
122
|
/**
|
|
124
123
|
*
|
|
125
124
|
* @summary Get Devices.
|
|
@@ -127,7 +126,7 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
127
126
|
* @param {*} [options] Override http request option.
|
|
128
127
|
* @throws {RequiredError}
|
|
129
128
|
*/
|
|
130
|
-
getDevices:
|
|
129
|
+
getDevices: async (userId, options = {}) => {
|
|
131
130
|
const localVarPath = `/Devices`;
|
|
132
131
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
133
132
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -135,22 +134,22 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
135
134
|
if (configuration) {
|
|
136
135
|
baseOptions = configuration.baseOptions;
|
|
137
136
|
}
|
|
138
|
-
const localVarRequestOptions =
|
|
137
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
139
138
|
const localVarHeaderParameter = {};
|
|
140
139
|
const localVarQueryParameter = {};
|
|
141
140
|
// authentication CustomAuthentication required
|
|
142
|
-
|
|
141
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
143
142
|
if (userId !== undefined) {
|
|
144
143
|
localVarQueryParameter['userId'] = userId;
|
|
145
144
|
}
|
|
146
145
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
147
146
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
148
|
-
localVarRequestOptions.headers =
|
|
147
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
149
148
|
return {
|
|
150
149
|
url: toPathString(localVarUrlObj),
|
|
151
150
|
options: localVarRequestOptions,
|
|
152
151
|
};
|
|
153
|
-
}
|
|
152
|
+
},
|
|
154
153
|
/**
|
|
155
154
|
*
|
|
156
155
|
* @summary Update device options.
|
|
@@ -159,7 +158,7 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
159
158
|
* @param {*} [options] Override http request option.
|
|
160
159
|
* @throws {RequiredError}
|
|
161
160
|
*/
|
|
162
|
-
updateDeviceOptions:
|
|
161
|
+
updateDeviceOptions: async (id, deviceOptionsDto, options = {}) => {
|
|
163
162
|
// verify required parameter 'id' is not null or undefined
|
|
164
163
|
assertParamExists('updateDeviceOptions', 'id', id);
|
|
165
164
|
// verify required parameter 'deviceOptionsDto' is not null or undefined
|
|
@@ -171,24 +170,24 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
171
170
|
if (configuration) {
|
|
172
171
|
baseOptions = configuration.baseOptions;
|
|
173
172
|
}
|
|
174
|
-
const localVarRequestOptions =
|
|
173
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
175
174
|
const localVarHeaderParameter = {};
|
|
176
175
|
const localVarQueryParameter = {};
|
|
177
176
|
// authentication CustomAuthentication required
|
|
178
|
-
|
|
177
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
179
178
|
if (id !== undefined) {
|
|
180
179
|
localVarQueryParameter['id'] = id;
|
|
181
180
|
}
|
|
182
181
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
183
182
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
184
183
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
|
-
localVarRequestOptions.headers =
|
|
184
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
186
185
|
localVarRequestOptions.data = serializeDataIfNeeded(deviceOptionsDto, localVarRequestOptions, configuration);
|
|
187
186
|
return {
|
|
188
187
|
url: toPathString(localVarUrlObj),
|
|
189
188
|
options: localVarRequestOptions,
|
|
190
189
|
};
|
|
191
|
-
}
|
|
190
|
+
},
|
|
192
191
|
};
|
|
193
192
|
};
|
|
194
193
|
/**
|
|
@@ -205,11 +204,12 @@ const DevicesApiFp = function (configuration) {
|
|
|
205
204
|
* @param {*} [options] Override http request option.
|
|
206
205
|
* @throws {RequiredError}
|
|
207
206
|
*/
|
|
208
|
-
deleteDevice(id, options) {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
207
|
+
async deleteDevice(id, options) {
|
|
208
|
+
var _a, _b, _c;
|
|
209
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDevice(id, options);
|
|
210
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
211
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DevicesApi.deleteDevice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
212
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
213
213
|
},
|
|
214
214
|
/**
|
|
215
215
|
*
|
|
@@ -218,11 +218,12 @@ const DevicesApiFp = function (configuration) {
|
|
|
218
218
|
* @param {*} [options] Override http request option.
|
|
219
219
|
* @throws {RequiredError}
|
|
220
220
|
*/
|
|
221
|
-
getDeviceInfo(id, options) {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
221
|
+
async getDeviceInfo(id, options) {
|
|
222
|
+
var _a, _b, _c;
|
|
223
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeviceInfo(id, options);
|
|
224
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
225
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DevicesApi.getDeviceInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
226
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
226
227
|
},
|
|
227
228
|
/**
|
|
228
229
|
*
|
|
@@ -231,11 +232,12 @@ const DevicesApiFp = function (configuration) {
|
|
|
231
232
|
* @param {*} [options] Override http request option.
|
|
232
233
|
* @throws {RequiredError}
|
|
233
234
|
*/
|
|
234
|
-
getDeviceOptions(id, options) {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
235
|
+
async getDeviceOptions(id, options) {
|
|
236
|
+
var _a, _b, _c;
|
|
237
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeviceOptions(id, options);
|
|
238
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
239
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DevicesApi.getDeviceOptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
240
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
239
241
|
},
|
|
240
242
|
/**
|
|
241
243
|
*
|
|
@@ -244,11 +246,12 @@ const DevicesApiFp = function (configuration) {
|
|
|
244
246
|
* @param {*} [options] Override http request option.
|
|
245
247
|
* @throws {RequiredError}
|
|
246
248
|
*/
|
|
247
|
-
getDevices(userId, options) {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
async getDevices(userId, options) {
|
|
250
|
+
var _a, _b, _c;
|
|
251
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDevices(userId, options);
|
|
252
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
253
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DevicesApi.getDevices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
254
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
252
255
|
},
|
|
253
256
|
/**
|
|
254
257
|
*
|
|
@@ -258,11 +261,12 @@ const DevicesApiFp = function (configuration) {
|
|
|
258
261
|
* @param {*} [options] Override http request option.
|
|
259
262
|
* @throws {RequiredError}
|
|
260
263
|
*/
|
|
261
|
-
updateDeviceOptions(id, deviceOptionsDto, options) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
async updateDeviceOptions(id, deviceOptionsDto, options) {
|
|
265
|
+
var _a, _b, _c;
|
|
266
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDeviceOptions(id, deviceOptionsDto, options);
|
|
267
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
268
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DevicesApi.updateDeviceOptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
269
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
266
270
|
},
|
|
267
271
|
};
|
|
268
272
|
};
|
|
@@ -276,53 +280,52 @@ const DevicesApiFactory = function (configuration, basePath, axios) {
|
|
|
276
280
|
/**
|
|
277
281
|
*
|
|
278
282
|
* @summary Deletes a device.
|
|
279
|
-
* @param {
|
|
283
|
+
* @param {DevicesApiDeleteDeviceRequest} requestParameters Request parameters.
|
|
280
284
|
* @param {*} [options] Override http request option.
|
|
281
285
|
* @throws {RequiredError}
|
|
282
286
|
*/
|
|
283
|
-
deleteDevice(
|
|
284
|
-
return localVarFp.deleteDevice(id, options).then((request) => request(axios, basePath));
|
|
287
|
+
deleteDevice(requestParameters, options) {
|
|
288
|
+
return localVarFp.deleteDevice(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
285
289
|
},
|
|
286
290
|
/**
|
|
287
291
|
*
|
|
288
292
|
* @summary Get info for a device.
|
|
289
|
-
* @param {
|
|
293
|
+
* @param {DevicesApiGetDeviceInfoRequest} requestParameters Request parameters.
|
|
290
294
|
* @param {*} [options] Override http request option.
|
|
291
295
|
* @throws {RequiredError}
|
|
292
296
|
*/
|
|
293
|
-
getDeviceInfo(
|
|
294
|
-
return localVarFp.getDeviceInfo(id, options).then((request) => request(axios, basePath));
|
|
297
|
+
getDeviceInfo(requestParameters, options) {
|
|
298
|
+
return localVarFp.getDeviceInfo(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
295
299
|
},
|
|
296
300
|
/**
|
|
297
301
|
*
|
|
298
302
|
* @summary Get options for a device.
|
|
299
|
-
* @param {
|
|
303
|
+
* @param {DevicesApiGetDeviceOptionsRequest} requestParameters Request parameters.
|
|
300
304
|
* @param {*} [options] Override http request option.
|
|
301
305
|
* @throws {RequiredError}
|
|
302
306
|
*/
|
|
303
|
-
getDeviceOptions(
|
|
304
|
-
return localVarFp.getDeviceOptions(id, options).then((request) => request(axios, basePath));
|
|
307
|
+
getDeviceOptions(requestParameters, options) {
|
|
308
|
+
return localVarFp.getDeviceOptions(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
305
309
|
},
|
|
306
310
|
/**
|
|
307
311
|
*
|
|
308
312
|
* @summary Get Devices.
|
|
309
|
-
* @param {
|
|
313
|
+
* @param {DevicesApiGetDevicesRequest} requestParameters Request parameters.
|
|
310
314
|
* @param {*} [options] Override http request option.
|
|
311
315
|
* @throws {RequiredError}
|
|
312
316
|
*/
|
|
313
|
-
getDevices(
|
|
314
|
-
return localVarFp.getDevices(userId, options).then((request) => request(axios, basePath));
|
|
317
|
+
getDevices(requestParameters = {}, options) {
|
|
318
|
+
return localVarFp.getDevices(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
315
319
|
},
|
|
316
320
|
/**
|
|
317
321
|
*
|
|
318
322
|
* @summary Update device options.
|
|
319
|
-
* @param {
|
|
320
|
-
* @param {DeviceOptionsDto} deviceOptionsDto Device Options.
|
|
323
|
+
* @param {DevicesApiUpdateDeviceOptionsRequest} requestParameters Request parameters.
|
|
321
324
|
* @param {*} [options] Override http request option.
|
|
322
325
|
* @throws {RequiredError}
|
|
323
326
|
*/
|
|
324
|
-
updateDeviceOptions(
|
|
325
|
-
return localVarFp.updateDeviceOptions(id, deviceOptionsDto, options).then((request) => request(axios, basePath));
|
|
327
|
+
updateDeviceOptions(requestParameters, options) {
|
|
328
|
+
return localVarFp.updateDeviceOptions(requestParameters.id, requestParameters.deviceOptionsDto, options).then((request) => request(axios, basePath));
|
|
326
329
|
},
|
|
327
330
|
};
|
|
328
331
|
};
|