@jellyfin/sdk 0.9.0 → 0.10.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.
Files changed (72) hide show
  1. package/README.md +5 -0
  2. package/lib/discovery/discovery-service.js +4 -9
  3. package/lib/discovery/recommended-server-discovery.js +17 -22
  4. package/lib/generated-client/api/activity-log-api.js +8 -11
  5. package/lib/generated-client/api/api-key-api.js +24 -31
  6. package/lib/generated-client/api/artists-api.js +24 -31
  7. package/lib/generated-client/api/audio-api.d.ts +12 -12
  8. package/lib/generated-client/api/audio-api.js +28 -37
  9. package/lib/generated-client/api/branding-api.js +21 -28
  10. package/lib/generated-client/api/channels-api.js +40 -51
  11. package/lib/generated-client/api/client-log-api.js +8 -11
  12. package/lib/generated-client/api/collection-api.js +24 -31
  13. package/lib/generated-client/api/configuration-api.js +40 -51
  14. package/lib/generated-client/api/dashboard-api.js +15 -20
  15. package/lib/generated-client/api/devices-api.js +40 -51
  16. package/lib/generated-client/api/display-preferences-api.js +16 -21
  17. package/lib/generated-client/api/dynamic-hls-api.d.ts +27 -27
  18. package/lib/generated-client/api/dynamic-hls-api.js +72 -91
  19. package/lib/generated-client/api/environment-api.js +48 -61
  20. package/lib/generated-client/api/filter-api.js +16 -21
  21. package/lib/generated-client/api/genres-api.js +16 -21
  22. package/lib/generated-client/api/hls-segment-api.js +37 -48
  23. package/lib/generated-client/api/image-api.js +269 -344
  24. package/lib/generated-client/api/instant-mix-api.js +64 -81
  25. package/lib/generated-client/api/item-lookup-api.js +88 -111
  26. package/lib/generated-client/api/item-refresh-api.js +8 -11
  27. package/lib/generated-client/api/item-update-api.js +24 -31
  28. package/lib/generated-client/api/items-api.js +32 -41
  29. package/lib/generated-client/api/library-api.js +200 -251
  30. package/lib/generated-client/api/library-structure-api.js +64 -81
  31. package/lib/generated-client/api/live-tv-api.js +326 -409
  32. package/lib/generated-client/api/localization-api.js +32 -41
  33. package/lib/generated-client/api/lyrics-api.js +48 -61
  34. package/lib/generated-client/api/media-info-api.js +40 -51
  35. package/lib/generated-client/api/movies-api.js +8 -11
  36. package/lib/generated-client/api/music-genres-api.js +16 -21
  37. package/lib/generated-client/api/package-api.js +48 -61
  38. package/lib/generated-client/api/persons-api.js +16 -21
  39. package/lib/generated-client/api/playlists-api.js +80 -101
  40. package/lib/generated-client/api/playstate-api.js +72 -91
  41. package/lib/generated-client/api/plugins-api.js +72 -91
  42. package/lib/generated-client/api/quick-connect-api.js +29 -38
  43. package/lib/generated-client/api/remote-image-api.js +24 -31
  44. package/lib/generated-client/api/scheduled-tasks-api.js +40 -51
  45. package/lib/generated-client/api/search-api.js +8 -11
  46. package/lib/generated-client/api/session-api.js +128 -161
  47. package/lib/generated-client/api/startup-api.js +56 -71
  48. package/lib/generated-client/api/studios-api.js +16 -21
  49. package/lib/generated-client/api/subtitle-api.js +78 -99
  50. package/lib/generated-client/api/suggestions-api.js +8 -11
  51. package/lib/generated-client/api/sync-play-api.js +168 -211
  52. package/lib/generated-client/api/system-api.js +77 -98
  53. package/lib/generated-client/api/time-sync-api.js +7 -10
  54. package/lib/generated-client/api/tmdb-api.js +8 -11
  55. package/lib/generated-client/api/trailers-api.js +8 -11
  56. package/lib/generated-client/api/trickplay-api.js +16 -21
  57. package/lib/generated-client/api/tv-shows-api.js +32 -41
  58. package/lib/generated-client/api/universal-audio-api.js +16 -21
  59. package/lib/generated-client/api/user-api.js +107 -136
  60. package/lib/generated-client/api/user-library-api.js +80 -101
  61. package/lib/generated-client/api/user-views-api.js +16 -21
  62. package/lib/generated-client/api/video-attachments-api.js +7 -10
  63. package/lib/generated-client/api/videos-api.d.ts +12 -12
  64. package/lib/generated-client/api/videos-api.js +52 -67
  65. package/lib/generated-client/api/years-api.js +16 -21
  66. package/lib/generated-client/common.js +8 -11
  67. package/lib/generated-client/models/search-hint.d.ts +1 -1
  68. package/lib/utils/api/image-urls-api.js +16 -4
  69. package/lib/versions.d.ts +1 -1
  70. package/lib/versions.js +1 -1
  71. package/package.json +10 -10
  72. package/lib/node_modules/tslib/tslib.es6.js +0 -33
@@ -1,4 +1,3 @@
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
3
  import { BaseAPI, BASE_PATH } from '../base.js';
@@ -28,7 +27,7 @@ const ItemUpdateApiAxiosParamCreator = function (configuration) {
28
27
  * @param {*} [options] Override http request option.
29
28
  * @throws {RequiredError}
30
29
  */
31
- getMetadataEditorInfo: (itemId_1, ...args_1) => __awaiter(this, [itemId_1, ...args_1], void 0, function* (itemId, options = {}) {
30
+ getMetadataEditorInfo: async (itemId, options = {}) => {
32
31
  // verify required parameter 'itemId' is not null or undefined
33
32
  assertParamExists('getMetadataEditorInfo', 'itemId', itemId);
34
33
  const localVarPath = `/Items/{itemId}/MetadataEditor`
@@ -39,19 +38,19 @@ const ItemUpdateApiAxiosParamCreator = function (configuration) {
39
38
  if (configuration) {
40
39
  baseOptions = configuration.baseOptions;
41
40
  }
42
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
41
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
43
42
  const localVarHeaderParameter = {};
44
43
  const localVarQueryParameter = {};
45
44
  // authentication CustomAuthentication required
46
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
45
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
47
46
  setSearchParams(localVarUrlObj, localVarQueryParameter);
48
47
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
49
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
48
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
50
49
  return {
51
50
  url: toPathString(localVarUrlObj),
52
51
  options: localVarRequestOptions,
53
52
  };
54
- }),
53
+ },
55
54
  /**
56
55
  *
57
56
  * @summary Updates an item.
@@ -60,7 +59,7 @@ const ItemUpdateApiAxiosParamCreator = function (configuration) {
60
59
  * @param {*} [options] Override http request option.
61
60
  * @throws {RequiredError}
62
61
  */
63
- updateItem: (itemId_2, baseItemDto_1, ...args_2) => __awaiter(this, [itemId_2, baseItemDto_1, ...args_2], void 0, function* (itemId, baseItemDto, options = {}) {
62
+ updateItem: async (itemId, baseItemDto, options = {}) => {
64
63
  // verify required parameter 'itemId' is not null or undefined
65
64
  assertParamExists('updateItem', 'itemId', itemId);
66
65
  // verify required parameter 'baseItemDto' is not null or undefined
@@ -73,21 +72,21 @@ const ItemUpdateApiAxiosParamCreator = function (configuration) {
73
72
  if (configuration) {
74
73
  baseOptions = configuration.baseOptions;
75
74
  }
76
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
75
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
77
76
  const localVarHeaderParameter = {};
78
77
  const localVarQueryParameter = {};
79
78
  // authentication CustomAuthentication required
80
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
79
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
81
80
  localVarHeaderParameter['Content-Type'] = 'application/json';
82
81
  setSearchParams(localVarUrlObj, localVarQueryParameter);
83
82
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
83
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
85
84
  localVarRequestOptions.data = serializeDataIfNeeded(baseItemDto, localVarRequestOptions, configuration);
86
85
  return {
87
86
  url: toPathString(localVarUrlObj),
88
87
  options: localVarRequestOptions,
89
88
  };
90
- }),
89
+ },
91
90
  /**
92
91
  *
93
92
  * @summary Updates an item\'s content type.
@@ -96,7 +95,7 @@ const ItemUpdateApiAxiosParamCreator = function (configuration) {
96
95
  * @param {*} [options] Override http request option.
97
96
  * @throws {RequiredError}
98
97
  */
99
- updateItemContentType: (itemId_3, contentType_1, ...args_3) => __awaiter(this, [itemId_3, contentType_1, ...args_3], void 0, function* (itemId, contentType, options = {}) {
98
+ updateItemContentType: async (itemId, contentType, options = {}) => {
100
99
  // verify required parameter 'itemId' is not null or undefined
101
100
  assertParamExists('updateItemContentType', 'itemId', itemId);
102
101
  const localVarPath = `/Items/{itemId}/ContentType`
@@ -107,22 +106,22 @@ const ItemUpdateApiAxiosParamCreator = function (configuration) {
107
106
  if (configuration) {
108
107
  baseOptions = configuration.baseOptions;
109
108
  }
110
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
109
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
111
110
  const localVarHeaderParameter = {};
112
111
  const localVarQueryParameter = {};
113
112
  // authentication CustomAuthentication required
114
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
113
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
115
114
  if (contentType !== undefined) {
116
115
  localVarQueryParameter['contentType'] = contentType;
117
116
  }
118
117
  setSearchParams(localVarUrlObj, localVarQueryParameter);
119
118
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
119
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
121
120
  return {
122
121
  url: toPathString(localVarUrlObj),
123
122
  options: localVarRequestOptions,
124
123
  };
125
- }),
124
+ },
126
125
  };
127
126
  };
128
127
  /**
@@ -139,11 +138,9 @@ const ItemUpdateApiFp = function (configuration) {
139
138
  * @param {*} [options] Override http request option.
140
139
  * @throws {RequiredError}
141
140
  */
142
- getMetadataEditorInfo(itemId, options) {
143
- return __awaiter(this, void 0, void 0, function* () {
144
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetadataEditorInfo(itemId, options);
145
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
146
- });
141
+ async getMetadataEditorInfo(itemId, options) {
142
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMetadataEditorInfo(itemId, options);
143
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
147
144
  },
148
145
  /**
149
146
  *
@@ -153,11 +150,9 @@ const ItemUpdateApiFp = function (configuration) {
153
150
  * @param {*} [options] Override http request option.
154
151
  * @throws {RequiredError}
155
152
  */
156
- updateItem(itemId, baseItemDto, options) {
157
- return __awaiter(this, void 0, void 0, function* () {
158
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateItem(itemId, baseItemDto, options);
159
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
160
- });
153
+ async updateItem(itemId, baseItemDto, options) {
154
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateItem(itemId, baseItemDto, options);
155
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
161
156
  },
162
157
  /**
163
158
  *
@@ -167,11 +162,9 @@ const ItemUpdateApiFp = function (configuration) {
167
162
  * @param {*} [options] Override http request option.
168
163
  * @throws {RequiredError}
169
164
  */
170
- updateItemContentType(itemId, contentType, options) {
171
- return __awaiter(this, void 0, void 0, function* () {
172
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateItemContentType(itemId, contentType, options);
173
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
174
- });
165
+ async updateItemContentType(itemId, contentType, options) {
166
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateItemContentType(itemId, contentType, options);
167
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
175
168
  },
176
169
  };
177
170
  };
@@ -1,4 +1,3 @@
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
3
  import { BaseAPI, BASE_PATH } from '../base.js';
@@ -29,7 +28,7 @@ const ItemsApiAxiosParamCreator = function (configuration) {
29
28
  * @param {*} [options] Override http request option.
30
29
  * @throws {RequiredError}
31
30
  */
32
- getItemUserData: (itemId_1, userId_1, ...args_1) => __awaiter(this, [itemId_1, userId_1, ...args_1], void 0, function* (itemId, userId, options = {}) {
31
+ getItemUserData: async (itemId, userId, options = {}) => {
33
32
  // verify required parameter 'itemId' is not null or undefined
34
33
  assertParamExists('getItemUserData', 'itemId', itemId);
35
34
  const localVarPath = `/UserItems/{itemId}/UserData`
@@ -40,22 +39,22 @@ const ItemsApiAxiosParamCreator = function (configuration) {
40
39
  if (configuration) {
41
40
  baseOptions = configuration.baseOptions;
42
41
  }
43
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
42
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
44
43
  const localVarHeaderParameter = {};
45
44
  const localVarQueryParameter = {};
46
45
  // authentication CustomAuthentication required
47
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
46
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
48
47
  if (userId !== undefined) {
49
48
  localVarQueryParameter['userId'] = userId;
50
49
  }
51
50
  setSearchParams(localVarUrlObj, localVarQueryParameter);
52
51
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
53
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
52
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
54
53
  return {
55
54
  url: toPathString(localVarUrlObj),
56
55
  options: localVarRequestOptions,
57
56
  };
58
- }),
57
+ },
59
58
  /**
60
59
  *
61
60
  * @summary Gets items based on a query.
@@ -147,7 +146,7 @@ const ItemsApiAxiosParamCreator = function (configuration) {
147
146
  * @param {*} [options] Override http request option.
148
147
  * @throws {RequiredError}
149
148
  */
150
- getItems: (userId_2, maxOfficialRating_1, hasThemeSong_1, hasThemeVideo_1, hasSubtitles_1, hasSpecialFeature_1, hasTrailer_1, adjacentTo_1, parentIndexNumber_1, hasParentalRating_1, isHd_1, is4K_1, locationTypes_1, excludeLocationTypes_1, isMissing_1, isUnaired_1, minCommunityRating_1, minCriticRating_1, minPremiereDate_1, minDateLastSaved_1, minDateLastSavedForUser_1, maxPremiereDate_1, hasOverview_1, hasImdbId_1, hasTmdbId_1, hasTvdbId_1, isMovie_1, isSeries_1, isNews_1, isKids_1, isSports_1, excludeItemIds_1, startIndex_1, limit_1, recursive_1, searchTerm_1, sortOrder_1, parentId_1, fields_1, excludeItemTypes_1, includeItemTypes_1, filters_1, isFavorite_1, mediaTypes_1, imageTypes_1, sortBy_1, isPlayed_1, genres_1, officialRatings_1, tags_1, years_1, enableUserData_1, imageTypeLimit_1, enableImageTypes_1, person_1, personIds_1, personTypes_1, studios_1, artists_1, excludeArtistIds_1, artistIds_1, albumArtistIds_1, contributingArtistIds_1, albums_1, albumIds_1, ids_1, videoTypes_1, minOfficialRating_1, isLocked_1, isPlaceHolder_1, hasOfficialRating_1, collapseBoxSetItems_1, minWidth_1, minHeight_1, maxWidth_1, maxHeight_1, is3D_1, seriesStatus_1, nameStartsWithOrGreater_1, nameStartsWith_1, nameLessThan_1, studioIds_1, genreIds_1, enableTotalRecordCount_1, enableImages_1, ...args_2) => __awaiter(this, [userId_2, maxOfficialRating_1, hasThemeSong_1, hasThemeVideo_1, hasSubtitles_1, hasSpecialFeature_1, hasTrailer_1, adjacentTo_1, parentIndexNumber_1, hasParentalRating_1, isHd_1, is4K_1, locationTypes_1, excludeLocationTypes_1, isMissing_1, isUnaired_1, minCommunityRating_1, minCriticRating_1, minPremiereDate_1, minDateLastSaved_1, minDateLastSavedForUser_1, maxPremiereDate_1, hasOverview_1, hasImdbId_1, hasTmdbId_1, hasTvdbId_1, isMovie_1, isSeries_1, isNews_1, isKids_1, isSports_1, excludeItemIds_1, startIndex_1, limit_1, recursive_1, searchTerm_1, sortOrder_1, parentId_1, fields_1, excludeItemTypes_1, includeItemTypes_1, filters_1, isFavorite_1, mediaTypes_1, imageTypes_1, sortBy_1, isPlayed_1, genres_1, officialRatings_1, tags_1, years_1, enableUserData_1, imageTypeLimit_1, enableImageTypes_1, person_1, personIds_1, personTypes_1, studios_1, artists_1, excludeArtistIds_1, artistIds_1, albumArtistIds_1, contributingArtistIds_1, albums_1, albumIds_1, ids_1, videoTypes_1, minOfficialRating_1, isLocked_1, isPlaceHolder_1, hasOfficialRating_1, collapseBoxSetItems_1, minWidth_1, minHeight_1, maxWidth_1, maxHeight_1, is3D_1, seriesStatus_1, nameStartsWithOrGreater_1, nameStartsWith_1, nameLessThan_1, studioIds_1, genreIds_1, enableTotalRecordCount_1, enableImages_1, ...args_2], void 0, function* (userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options = {}) {
149
+ getItems: async (userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options = {}) => {
151
150
  const localVarPath = `/Items`;
152
151
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
152
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -155,11 +154,11 @@ const ItemsApiAxiosParamCreator = function (configuration) {
155
154
  if (configuration) {
156
155
  baseOptions = configuration.baseOptions;
157
156
  }
158
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
157
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
159
158
  const localVarHeaderParameter = {};
160
159
  const localVarQueryParameter = {};
161
160
  // authentication CustomAuthentication required
162
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
161
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
163
162
  if (userId !== undefined) {
164
163
  localVarQueryParameter['userId'] = userId;
165
164
  }
@@ -425,12 +424,12 @@ const ItemsApiAxiosParamCreator = function (configuration) {
425
424
  }
426
425
  setSearchParams(localVarUrlObj, localVarQueryParameter);
427
426
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
428
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
427
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
429
428
  return {
430
429
  url: toPathString(localVarUrlObj),
431
430
  options: localVarRequestOptions,
432
431
  };
433
- }),
432
+ },
434
433
  /**
435
434
  *
436
435
  * @summary Gets items based on a query.
@@ -452,7 +451,7 @@ const ItemsApiAxiosParamCreator = function (configuration) {
452
451
  * @param {*} [options] Override http request option.
453
452
  * @throws {RequiredError}
454
453
  */
455
- getResumeItems: (userId_3, startIndex_2, limit_2, searchTerm_2, parentId_2, fields_2, mediaTypes_2, enableUserData_2, imageTypeLimit_2, enableImageTypes_2, excludeItemTypes_2, includeItemTypes_2, enableTotalRecordCount_2, enableImages_2, excludeActiveSessions_1, ...args_3) => __awaiter(this, [userId_3, startIndex_2, limit_2, searchTerm_2, parentId_2, fields_2, mediaTypes_2, enableUserData_2, imageTypeLimit_2, enableImageTypes_2, excludeItemTypes_2, includeItemTypes_2, enableTotalRecordCount_2, enableImages_2, excludeActiveSessions_1, ...args_3], void 0, function* (userId, startIndex, limit, searchTerm, parentId, fields, mediaTypes, enableUserData, imageTypeLimit, enableImageTypes, excludeItemTypes, includeItemTypes, enableTotalRecordCount, enableImages, excludeActiveSessions, options = {}) {
454
+ getResumeItems: async (userId, startIndex, limit, searchTerm, parentId, fields, mediaTypes, enableUserData, imageTypeLimit, enableImageTypes, excludeItemTypes, includeItemTypes, enableTotalRecordCount, enableImages, excludeActiveSessions, options = {}) => {
456
455
  const localVarPath = `/UserItems/Resume`;
457
456
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
458
457
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -460,11 +459,11 @@ const ItemsApiAxiosParamCreator = function (configuration) {
460
459
  if (configuration) {
461
460
  baseOptions = configuration.baseOptions;
462
461
  }
463
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
462
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
464
463
  const localVarHeaderParameter = {};
465
464
  const localVarQueryParameter = {};
466
465
  // authentication CustomAuthentication required
467
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
466
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
468
467
  if (userId !== undefined) {
469
468
  localVarQueryParameter['userId'] = userId;
470
469
  }
@@ -512,12 +511,12 @@ const ItemsApiAxiosParamCreator = function (configuration) {
512
511
  }
513
512
  setSearchParams(localVarUrlObj, localVarQueryParameter);
514
513
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
515
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
514
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
516
515
  return {
517
516
  url: toPathString(localVarUrlObj),
518
517
  options: localVarRequestOptions,
519
518
  };
520
- }),
519
+ },
521
520
  /**
522
521
  *
523
522
  * @summary Update Item User Data.
@@ -527,7 +526,7 @@ const ItemsApiAxiosParamCreator = function (configuration) {
527
526
  * @param {*} [options] Override http request option.
528
527
  * @throws {RequiredError}
529
528
  */
530
- updateItemUserData: (itemId_2, updateUserItemDataDto_1, userId_4, ...args_4) => __awaiter(this, [itemId_2, updateUserItemDataDto_1, userId_4, ...args_4], void 0, function* (itemId, updateUserItemDataDto, userId, options = {}) {
529
+ updateItemUserData: async (itemId, updateUserItemDataDto, userId, options = {}) => {
531
530
  // verify required parameter 'itemId' is not null or undefined
532
531
  assertParamExists('updateItemUserData', 'itemId', itemId);
533
532
  // verify required parameter 'updateUserItemDataDto' is not null or undefined
@@ -540,24 +539,24 @@ const ItemsApiAxiosParamCreator = function (configuration) {
540
539
  if (configuration) {
541
540
  baseOptions = configuration.baseOptions;
542
541
  }
543
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
542
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
544
543
  const localVarHeaderParameter = {};
545
544
  const localVarQueryParameter = {};
546
545
  // authentication CustomAuthentication required
547
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
546
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
548
547
  if (userId !== undefined) {
549
548
  localVarQueryParameter['userId'] = userId;
550
549
  }
551
550
  localVarHeaderParameter['Content-Type'] = 'application/json';
552
551
  setSearchParams(localVarUrlObj, localVarQueryParameter);
553
552
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
554
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
553
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
555
554
  localVarRequestOptions.data = serializeDataIfNeeded(updateUserItemDataDto, localVarRequestOptions, configuration);
556
555
  return {
557
556
  url: toPathString(localVarUrlObj),
558
557
  options: localVarRequestOptions,
559
558
  };
560
- }),
559
+ },
561
560
  };
562
561
  };
563
562
  /**
@@ -575,11 +574,9 @@ const ItemsApiFp = function (configuration) {
575
574
  * @param {*} [options] Override http request option.
576
575
  * @throws {RequiredError}
577
576
  */
578
- getItemUserData(itemId, userId, options) {
579
- return __awaiter(this, void 0, void 0, function* () {
580
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getItemUserData(itemId, userId, options);
581
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
582
- });
577
+ async getItemUserData(itemId, userId, options) {
578
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItemUserData(itemId, userId, options);
579
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
583
580
  },
584
581
  /**
585
582
  *
@@ -672,11 +669,9 @@ const ItemsApiFp = function (configuration) {
672
669
  * @param {*} [options] Override http request option.
673
670
  * @throws {RequiredError}
674
671
  */
675
- getItems(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options) {
676
- return __awaiter(this, void 0, void 0, function* () {
677
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getItems(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options);
678
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
679
- });
672
+ async getItems(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options) {
673
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItems(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options);
674
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
680
675
  },
681
676
  /**
682
677
  *
@@ -699,11 +694,9 @@ const ItemsApiFp = function (configuration) {
699
694
  * @param {*} [options] Override http request option.
700
695
  * @throws {RequiredError}
701
696
  */
702
- getResumeItems(userId, startIndex, limit, searchTerm, parentId, fields, mediaTypes, enableUserData, imageTypeLimit, enableImageTypes, excludeItemTypes, includeItemTypes, enableTotalRecordCount, enableImages, excludeActiveSessions, options) {
703
- return __awaiter(this, void 0, void 0, function* () {
704
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getResumeItems(userId, startIndex, limit, searchTerm, parentId, fields, mediaTypes, enableUserData, imageTypeLimit, enableImageTypes, excludeItemTypes, includeItemTypes, enableTotalRecordCount, enableImages, excludeActiveSessions, options);
705
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
706
- });
697
+ async getResumeItems(userId, startIndex, limit, searchTerm, parentId, fields, mediaTypes, enableUserData, imageTypeLimit, enableImageTypes, excludeItemTypes, includeItemTypes, enableTotalRecordCount, enableImages, excludeActiveSessions, options) {
698
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getResumeItems(userId, startIndex, limit, searchTerm, parentId, fields, mediaTypes, enableUserData, imageTypeLimit, enableImageTypes, excludeItemTypes, includeItemTypes, enableTotalRecordCount, enableImages, excludeActiveSessions, options);
699
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
707
700
  },
708
701
  /**
709
702
  *
@@ -714,11 +707,9 @@ const ItemsApiFp = function (configuration) {
714
707
  * @param {*} [options] Override http request option.
715
708
  * @throws {RequiredError}
716
709
  */
717
- updateItemUserData(itemId, updateUserItemDataDto, userId, options) {
718
- return __awaiter(this, void 0, void 0, function* () {
719
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateItemUserData(itemId, updateUserItemDataDto, userId, options);
720
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
721
- });
710
+ async updateItemUserData(itemId, updateUserItemDataDto, userId, options) {
711
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateItemUserData(itemId, updateUserItemDataDto, userId, options);
712
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
722
713
  },
723
714
  };
724
715
  };