@jellyfin/sdk 0.0.0-unstable.202303301750 → 0.8.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/lib/generated-client/api/audio-api.d.ts +8 -8
- package/lib/generated-client/api/audio-api.js +6 -6
- package/lib/generated-client/api/dynamic-hls-api.d.ts +4 -4
- package/lib/generated-client/api/dynamic-hls-api.js +3 -3
- package/lib/generated-client/api/image-api.d.ts +336 -84
- package/lib/generated-client/api/image-api.js +336 -168
- package/lib/generated-client/api/image-by-name-api.js +71 -2
- package/lib/generated-client/api/items-api.d.ts +36 -36
- package/lib/generated-client/api/items-api.js +27 -27
- package/lib/generated-client/api/notifications-api.js +79 -2
- package/lib/generated-client/api/quick-connect-api.d.ts +37 -46
- package/lib/generated-client/api/quick-connect-api.js +50 -56
- package/lib/generated-client/api/search-api.d.ts +38 -38
- package/lib/generated-client/api/search-api.js +18 -18
- package/lib/generated-client/api/trailers-api.d.ts +20 -20
- package/lib/generated-client/api/trailers-api.js +15 -15
- package/lib/generated-client/api/user-api.d.ts +12 -7
- package/lib/generated-client/api/user-api.js +12 -10
- package/lib/generated-client/api/user-library-api.d.ts +0 -56
- package/lib/generated-client/api/user-library-api.js +0 -71
- package/lib/generated-client/api.d.ts +2 -0
- package/lib/generated-client/index.js +4 -3
- package/lib/generated-client/models/architecture.d.ts +0 -3
- package/lib/generated-client/models/architecture.js +1 -4
- package/lib/generated-client/models/authenticate-user-by-name.d.ts +7 -0
- package/lib/generated-client/models/base-item-dto.d.ts +3 -9
- package/lib/generated-client/models/base-item-person.d.ts +3 -4
- package/lib/generated-client/models/container-profile.d.ts +1 -1
- package/lib/generated-client/models/create-user-by-name.d.ts +1 -1
- package/lib/generated-client/models/encoding-options.d.ts +36 -49
- package/lib/generated-client/models/index.d.ts +10 -6
- package/lib/generated-client/models/index.js +2 -3
- package/lib/generated-client/models/library-options.d.ts +0 -6
- package/lib/generated-client/models/live-tv-options.d.ts +0 -12
- package/lib/generated-client/models/media-stream.d.ts +0 -12
- package/lib/generated-client/models/network-configuration.d.ts +1 -1
- package/lib/generated-client/models/{image-resolution.js → notification-level.js} +6 -12
- package/lib/generated-client/models/parental-rating.d.ts +1 -1
- package/lib/generated-client/models/public-system-info.d.ts +0 -1
- package/lib/generated-client/models/remove-from-playlist-request-dto.d.ts +1 -1
- package/lib/generated-client/models/search-hint.d.ts +15 -17
- package/lib/generated-client/models/{down-mix-stereo-algorithms.js → send-to-user-type.js} +6 -6
- package/lib/generated-client/models/series-status.d.ts +1 -2
- package/lib/generated-client/models/series-status.js +2 -3
- package/lib/generated-client/models/server-configuration.d.ts +0 -19
- package/lib/generated-client/models/system-info.d.ts +0 -3
- package/lib/generated-client/models/tuner-host-info.d.ts +0 -6
- package/lib/generated-client/models/user-policy.d.ts +0 -12
- package/lib/versions.d.ts +1 -1
- package/lib/versions.js +1 -1
- package/package.json +1 -1
- package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +0 -21
- package/lib/generated-client/models/image-resolution.d.ts +0 -27
- package/lib/generated-client/models/lyric-line.d.ts +0 -29
- package/lib/generated-client/models/lyric-metadata.d.ts +0 -71
- package/lib/generated-client/models/lyric-response.d.ts +0 -31
- package/lib/generated-client/models/person-kind.d.ts +0 -36
- package/lib/generated-client/models/person-kind.js +0 -39
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import globalAxios from 'axios';
|
|
3
|
-
import {
|
|
3
|
+
import { assertParamExists, DUMMY_BASE_URL, setSearchParams, toPathString, setApiKeyToObject, createRequestFunction } from '../common.js';
|
|
4
4
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
5
5
|
|
|
6
6
|
/* tslint:disable */
|
|
@@ -279,6 +279,75 @@ const ImageByNameApiFp = function (configuration) {
|
|
|
279
279
|
},
|
|
280
280
|
};
|
|
281
281
|
};
|
|
282
|
+
/**
|
|
283
|
+
* ImageByNameApi - factory interface
|
|
284
|
+
* @export
|
|
285
|
+
*/
|
|
286
|
+
const ImageByNameApiFactory = function (configuration, basePath, axios) {
|
|
287
|
+
const localVarFp = ImageByNameApiFp(configuration);
|
|
288
|
+
return {
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @summary Get General Image.
|
|
292
|
+
* @param {string} name The name of the image.
|
|
293
|
+
* @param {string} type Image Type (primary, backdrop, logo, etc).
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
*/
|
|
297
|
+
getGeneralImage(name, type, options) {
|
|
298
|
+
return localVarFp.getGeneralImage(name, type, options).then((request) => request(axios, basePath));
|
|
299
|
+
},
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @summary Get all general images.
|
|
303
|
+
* @param {*} [options] Override http request option.
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
*/
|
|
306
|
+
getGeneralImages(options) {
|
|
307
|
+
return localVarFp.getGeneralImages(options).then((request) => request(axios, basePath));
|
|
308
|
+
},
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
* @summary Get media info image.
|
|
312
|
+
* @param {string} theme The theme to get the image from.
|
|
313
|
+
* @param {string} name The name of the image.
|
|
314
|
+
* @param {*} [options] Override http request option.
|
|
315
|
+
* @throws {RequiredError}
|
|
316
|
+
*/
|
|
317
|
+
getMediaInfoImage(theme, name, options) {
|
|
318
|
+
return localVarFp.getMediaInfoImage(theme, name, options).then((request) => request(axios, basePath));
|
|
319
|
+
},
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @summary Get all media info images.
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
getMediaInfoImages(options) {
|
|
327
|
+
return localVarFp.getMediaInfoImages(options).then((request) => request(axios, basePath));
|
|
328
|
+
},
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @summary Get rating image.
|
|
332
|
+
* @param {string} theme The theme to get the image from.
|
|
333
|
+
* @param {string} name The name of the image.
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
*/
|
|
337
|
+
getRatingImage(theme, name, options) {
|
|
338
|
+
return localVarFp.getRatingImage(theme, name, options).then((request) => request(axios, basePath));
|
|
339
|
+
},
|
|
340
|
+
/**
|
|
341
|
+
*
|
|
342
|
+
* @summary Get all general images.
|
|
343
|
+
* @param {*} [options] Override http request option.
|
|
344
|
+
* @throws {RequiredError}
|
|
345
|
+
*/
|
|
346
|
+
getRatingImages(options) {
|
|
347
|
+
return localVarFp.getRatingImages(options).then((request) => request(axios, basePath));
|
|
348
|
+
},
|
|
349
|
+
};
|
|
350
|
+
};
|
|
282
351
|
/**
|
|
283
352
|
* ImageByNameApi - object-oriented interface
|
|
284
353
|
* @export
|
|
@@ -351,4 +420,4 @@ class ImageByNameApi extends BaseAPI {
|
|
|
351
420
|
}
|
|
352
421
|
}
|
|
353
422
|
|
|
354
|
-
export { ImageByNameApi, ImageByNameApiAxiosParamCreator, ImageByNameApiFp };
|
|
423
|
+
export { ImageByNameApi, ImageByNameApiAxiosParamCreator, ImageByNameApiFactory, ImageByNameApiFp };
|
|
@@ -28,7 +28,7 @@ export declare const ItemsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @summary Gets items based on a query.
|
|
31
|
-
* @param {string} [userId] The user id supplied as query parameter
|
|
31
|
+
* @param {string} [userId] The user id supplied as query parameter.
|
|
32
32
|
* @param {string} [maxOfficialRating] Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).
|
|
33
33
|
* @param {boolean} [hasThemeSong] Optional filter by items with theme songs.
|
|
34
34
|
* @param {boolean} [hasThemeVideo] Optional filter by items with theme videos.
|
|
@@ -51,9 +51,9 @@ export declare const ItemsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
51
51
|
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
|
|
52
52
|
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
|
|
53
53
|
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
|
|
54
|
-
* @param {boolean} [hasImdbId] Optional filter by items that have an
|
|
55
|
-
* @param {boolean} [hasTmdbId] Optional filter by items that have a
|
|
56
|
-
* @param {boolean} [hasTvdbId] Optional filter by items that have a
|
|
54
|
+
* @param {boolean} [hasImdbId] Optional filter by items that have an imdb id or not.
|
|
55
|
+
* @param {boolean} [hasTmdbId] Optional filter by items that have a tmdb id or not.
|
|
56
|
+
* @param {boolean} [hasTvdbId] Optional filter by items that have a tvdb id or not.
|
|
57
57
|
* @param {boolean} [isMovie] Optional filter for live tv movies.
|
|
58
58
|
* @param {boolean} [isSeries] Optional filter for live tv series.
|
|
59
59
|
* @param {boolean} [isNews] Optional filter for live tv news.
|
|
@@ -64,7 +64,7 @@ export declare const ItemsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
64
64
|
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
65
65
|
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
|
|
66
66
|
* @param {string} [searchTerm] Optional. Filter based on a search term.
|
|
67
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,
|
|
67
|
+
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
68
68
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
69
69
|
* @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.
|
|
70
70
|
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -143,9 +143,9 @@ export declare const ItemsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
143
143
|
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
|
|
144
144
|
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
|
|
145
145
|
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
|
|
146
|
-
* @param {boolean} [hasImdbId] Optional filter by items that have an
|
|
147
|
-
* @param {boolean} [hasTmdbId] Optional filter by items that have a
|
|
148
|
-
* @param {boolean} [hasTvdbId] Optional filter by items that have a
|
|
146
|
+
* @param {boolean} [hasImdbId] Optional filter by items that have an imdb id or not.
|
|
147
|
+
* @param {boolean} [hasTmdbId] Optional filter by items that have a tmdb id or not.
|
|
148
|
+
* @param {boolean} [hasTvdbId] Optional filter by items that have a tvdb id or not.
|
|
149
149
|
* @param {boolean} [isMovie] Optional filter for live tv movies.
|
|
150
150
|
* @param {boolean} [isSeries] Optional filter for live tv series.
|
|
151
151
|
* @param {boolean} [isNews] Optional filter for live tv news.
|
|
@@ -156,7 +156,7 @@ export declare const ItemsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
156
156
|
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
157
157
|
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
|
|
158
158
|
* @param {string} [searchTerm] Optional. Filter based on a search term.
|
|
159
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,
|
|
159
|
+
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
160
160
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
161
161
|
* @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.
|
|
162
162
|
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -240,7 +240,7 @@ export declare const ItemsApiFp: (configuration?: Configuration) => {
|
|
|
240
240
|
/**
|
|
241
241
|
*
|
|
242
242
|
* @summary Gets items based on a query.
|
|
243
|
-
* @param {string} [userId] The user id supplied as query parameter
|
|
243
|
+
* @param {string} [userId] The user id supplied as query parameter.
|
|
244
244
|
* @param {string} [maxOfficialRating] Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).
|
|
245
245
|
* @param {boolean} [hasThemeSong] Optional filter by items with theme songs.
|
|
246
246
|
* @param {boolean} [hasThemeVideo] Optional filter by items with theme videos.
|
|
@@ -263,9 +263,9 @@ export declare const ItemsApiFp: (configuration?: Configuration) => {
|
|
|
263
263
|
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
|
|
264
264
|
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
|
|
265
265
|
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
|
|
266
|
-
* @param {boolean} [hasImdbId] Optional filter by items that have an
|
|
267
|
-
* @param {boolean} [hasTmdbId] Optional filter by items that have a
|
|
268
|
-
* @param {boolean} [hasTvdbId] Optional filter by items that have a
|
|
266
|
+
* @param {boolean} [hasImdbId] Optional filter by items that have an imdb id or not.
|
|
267
|
+
* @param {boolean} [hasTmdbId] Optional filter by items that have a tmdb id or not.
|
|
268
|
+
* @param {boolean} [hasTvdbId] Optional filter by items that have a tvdb id or not.
|
|
269
269
|
* @param {boolean} [isMovie] Optional filter for live tv movies.
|
|
270
270
|
* @param {boolean} [isSeries] Optional filter for live tv series.
|
|
271
271
|
* @param {boolean} [isNews] Optional filter for live tv news.
|
|
@@ -276,7 +276,7 @@ export declare const ItemsApiFp: (configuration?: Configuration) => {
|
|
|
276
276
|
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
277
277
|
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
|
|
278
278
|
* @param {string} [searchTerm] Optional. Filter based on a search term.
|
|
279
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,
|
|
279
|
+
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
280
280
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
281
281
|
* @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.
|
|
282
282
|
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -355,9 +355,9 @@ export declare const ItemsApiFp: (configuration?: Configuration) => {
|
|
|
355
355
|
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
|
|
356
356
|
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
|
|
357
357
|
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
|
|
358
|
-
* @param {boolean} [hasImdbId] Optional filter by items that have an
|
|
359
|
-
* @param {boolean} [hasTmdbId] Optional filter by items that have a
|
|
360
|
-
* @param {boolean} [hasTvdbId] Optional filter by items that have a
|
|
358
|
+
* @param {boolean} [hasImdbId] Optional filter by items that have an imdb id or not.
|
|
359
|
+
* @param {boolean} [hasTmdbId] Optional filter by items that have a tmdb id or not.
|
|
360
|
+
* @param {boolean} [hasTvdbId] Optional filter by items that have a tvdb id or not.
|
|
361
361
|
* @param {boolean} [isMovie] Optional filter for live tv movies.
|
|
362
362
|
* @param {boolean} [isSeries] Optional filter for live tv series.
|
|
363
363
|
* @param {boolean} [isNews] Optional filter for live tv news.
|
|
@@ -368,7 +368,7 @@ export declare const ItemsApiFp: (configuration?: Configuration) => {
|
|
|
368
368
|
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
369
369
|
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
|
|
370
370
|
* @param {string} [searchTerm] Optional. Filter based on a search term.
|
|
371
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,
|
|
371
|
+
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
372
372
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
373
373
|
* @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.
|
|
374
374
|
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -452,7 +452,7 @@ export declare const ItemsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
452
452
|
/**
|
|
453
453
|
*
|
|
454
454
|
* @summary Gets items based on a query.
|
|
455
|
-
* @param {string} [userId] The user id supplied as query parameter
|
|
455
|
+
* @param {string} [userId] The user id supplied as query parameter.
|
|
456
456
|
* @param {string} [maxOfficialRating] Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).
|
|
457
457
|
* @param {boolean} [hasThemeSong] Optional filter by items with theme songs.
|
|
458
458
|
* @param {boolean} [hasThemeVideo] Optional filter by items with theme videos.
|
|
@@ -475,9 +475,9 @@ export declare const ItemsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
475
475
|
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
|
|
476
476
|
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
|
|
477
477
|
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
|
|
478
|
-
* @param {boolean} [hasImdbId] Optional filter by items that have an
|
|
479
|
-
* @param {boolean} [hasTmdbId] Optional filter by items that have a
|
|
480
|
-
* @param {boolean} [hasTvdbId] Optional filter by items that have a
|
|
478
|
+
* @param {boolean} [hasImdbId] Optional filter by items that have an imdb id or not.
|
|
479
|
+
* @param {boolean} [hasTmdbId] Optional filter by items that have a tmdb id or not.
|
|
480
|
+
* @param {boolean} [hasTvdbId] Optional filter by items that have a tvdb id or not.
|
|
481
481
|
* @param {boolean} [isMovie] Optional filter for live tv movies.
|
|
482
482
|
* @param {boolean} [isSeries] Optional filter for live tv series.
|
|
483
483
|
* @param {boolean} [isNews] Optional filter for live tv news.
|
|
@@ -488,7 +488,7 @@ export declare const ItemsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
488
488
|
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
489
489
|
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
|
|
490
490
|
* @param {string} [searchTerm] Optional. Filter based on a search term.
|
|
491
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,
|
|
491
|
+
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
492
492
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
493
493
|
* @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.
|
|
494
494
|
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -567,9 +567,9 @@ export declare const ItemsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
567
567
|
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
|
|
568
568
|
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
|
|
569
569
|
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
|
|
570
|
-
* @param {boolean} [hasImdbId] Optional filter by items that have an
|
|
571
|
-
* @param {boolean} [hasTmdbId] Optional filter by items that have a
|
|
572
|
-
* @param {boolean} [hasTvdbId] Optional filter by items that have a
|
|
570
|
+
* @param {boolean} [hasImdbId] Optional filter by items that have an imdb id or not.
|
|
571
|
+
* @param {boolean} [hasTmdbId] Optional filter by items that have a tmdb id or not.
|
|
572
|
+
* @param {boolean} [hasTvdbId] Optional filter by items that have a tvdb id or not.
|
|
573
573
|
* @param {boolean} [isMovie] Optional filter for live tv movies.
|
|
574
574
|
* @param {boolean} [isSeries] Optional filter for live tv series.
|
|
575
575
|
* @param {boolean} [isNews] Optional filter for live tv news.
|
|
@@ -580,7 +580,7 @@ export declare const ItemsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
580
580
|
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
581
581
|
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
|
|
582
582
|
* @param {string} [searchTerm] Optional. Filter based on a search term.
|
|
583
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,
|
|
583
|
+
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
584
584
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
585
585
|
* @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.
|
|
586
586
|
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -663,7 +663,7 @@ export declare const ItemsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
663
663
|
*/
|
|
664
664
|
export interface ItemsApiGetItemsRequest {
|
|
665
665
|
/**
|
|
666
|
-
* The user id supplied as query parameter
|
|
666
|
+
* The user id supplied as query parameter.
|
|
667
667
|
* @type {string}
|
|
668
668
|
* @memberof ItemsApiGetItems
|
|
669
669
|
*/
|
|
@@ -801,19 +801,19 @@ export interface ItemsApiGetItemsRequest {
|
|
|
801
801
|
*/
|
|
802
802
|
readonly hasOverview?: boolean;
|
|
803
803
|
/**
|
|
804
|
-
* Optional filter by items that have an
|
|
804
|
+
* Optional filter by items that have an imdb id or not.
|
|
805
805
|
* @type {boolean}
|
|
806
806
|
* @memberof ItemsApiGetItems
|
|
807
807
|
*/
|
|
808
808
|
readonly hasImdbId?: boolean;
|
|
809
809
|
/**
|
|
810
|
-
* Optional filter by items that have a
|
|
810
|
+
* Optional filter by items that have a tmdb id or not.
|
|
811
811
|
* @type {boolean}
|
|
812
812
|
* @memberof ItemsApiGetItems
|
|
813
813
|
*/
|
|
814
814
|
readonly hasTmdbId?: boolean;
|
|
815
815
|
/**
|
|
816
|
-
* Optional filter by items that have a
|
|
816
|
+
* Optional filter by items that have a tvdb id or not.
|
|
817
817
|
* @type {boolean}
|
|
818
818
|
* @memberof ItemsApiGetItems
|
|
819
819
|
*/
|
|
@@ -879,7 +879,7 @@ export interface ItemsApiGetItemsRequest {
|
|
|
879
879
|
*/
|
|
880
880
|
readonly searchTerm?: string;
|
|
881
881
|
/**
|
|
882
|
-
* Sort Order - Ascending,
|
|
882
|
+
* Sort Order - Ascending,Descending.
|
|
883
883
|
* @type {Array<SortOrder>}
|
|
884
884
|
* @memberof ItemsApiGetItems
|
|
885
885
|
*/
|
|
@@ -1318,19 +1318,19 @@ export interface ItemsApiGetItemsByUserIdRequest {
|
|
|
1318
1318
|
*/
|
|
1319
1319
|
readonly hasOverview?: boolean;
|
|
1320
1320
|
/**
|
|
1321
|
-
* Optional filter by items that have an
|
|
1321
|
+
* Optional filter by items that have an imdb id or not.
|
|
1322
1322
|
* @type {boolean}
|
|
1323
1323
|
* @memberof ItemsApiGetItemsByUserId
|
|
1324
1324
|
*/
|
|
1325
1325
|
readonly hasImdbId?: boolean;
|
|
1326
1326
|
/**
|
|
1327
|
-
* Optional filter by items that have a
|
|
1327
|
+
* Optional filter by items that have a tmdb id or not.
|
|
1328
1328
|
* @type {boolean}
|
|
1329
1329
|
* @memberof ItemsApiGetItemsByUserId
|
|
1330
1330
|
*/
|
|
1331
1331
|
readonly hasTmdbId?: boolean;
|
|
1332
1332
|
/**
|
|
1333
|
-
* Optional filter by items that have a
|
|
1333
|
+
* Optional filter by items that have a tvdb id or not.
|
|
1334
1334
|
* @type {boolean}
|
|
1335
1335
|
* @memberof ItemsApiGetItemsByUserId
|
|
1336
1336
|
*/
|
|
@@ -1396,7 +1396,7 @@ export interface ItemsApiGetItemsByUserIdRequest {
|
|
|
1396
1396
|
*/
|
|
1397
1397
|
readonly searchTerm?: string;
|
|
1398
1398
|
/**
|
|
1399
|
-
* Sort Order - Ascending,
|
|
1399
|
+
* Sort Order - Ascending,Descending.
|
|
1400
1400
|
* @type {Array<SortOrder>}
|
|
1401
1401
|
* @memberof ItemsApiGetItemsByUserId
|
|
1402
1402
|
*/
|
|
@@ -13,7 +13,7 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @summary Gets items based on a query.
|
|
16
|
-
* @param {string} [userId] The user id supplied as query parameter
|
|
16
|
+
* @param {string} [userId] The user id supplied as query parameter.
|
|
17
17
|
* @param {string} [maxOfficialRating] Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).
|
|
18
18
|
* @param {boolean} [hasThemeSong] Optional filter by items with theme songs.
|
|
19
19
|
* @param {boolean} [hasThemeVideo] Optional filter by items with theme videos.
|
|
@@ -36,9 +36,9 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
36
36
|
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
|
|
37
37
|
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
|
|
38
38
|
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
|
|
39
|
-
* @param {boolean} [hasImdbId] Optional filter by items that have an
|
|
40
|
-
* @param {boolean} [hasTmdbId] Optional filter by items that have a
|
|
41
|
-
* @param {boolean} [hasTvdbId] Optional filter by items that have a
|
|
39
|
+
* @param {boolean} [hasImdbId] Optional filter by items that have an imdb id or not.
|
|
40
|
+
* @param {boolean} [hasTmdbId] Optional filter by items that have a tmdb id or not.
|
|
41
|
+
* @param {boolean} [hasTvdbId] Optional filter by items that have a tvdb id or not.
|
|
42
42
|
* @param {boolean} [isMovie] Optional filter for live tv movies.
|
|
43
43
|
* @param {boolean} [isSeries] Optional filter for live tv series.
|
|
44
44
|
* @param {boolean} [isNews] Optional filter for live tv news.
|
|
@@ -49,7 +49,7 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
49
49
|
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
50
50
|
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
|
|
51
51
|
* @param {string} [searchTerm] Optional. Filter based on a search term.
|
|
52
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,
|
|
52
|
+
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
53
53
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
54
54
|
* @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.
|
|
55
55
|
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -411,9 +411,9 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
411
411
|
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
|
|
412
412
|
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
|
|
413
413
|
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
|
|
414
|
-
* @param {boolean} [hasImdbId] Optional filter by items that have an
|
|
415
|
-
* @param {boolean} [hasTmdbId] Optional filter by items that have a
|
|
416
|
-
* @param {boolean} [hasTvdbId] Optional filter by items that have a
|
|
414
|
+
* @param {boolean} [hasImdbId] Optional filter by items that have an imdb id or not.
|
|
415
|
+
* @param {boolean} [hasTmdbId] Optional filter by items that have a tmdb id or not.
|
|
416
|
+
* @param {boolean} [hasTvdbId] Optional filter by items that have a tvdb id or not.
|
|
417
417
|
* @param {boolean} [isMovie] Optional filter for live tv movies.
|
|
418
418
|
* @param {boolean} [isSeries] Optional filter for live tv series.
|
|
419
419
|
* @param {boolean} [isNews] Optional filter for live tv news.
|
|
@@ -424,7 +424,7 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
424
424
|
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
425
425
|
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
|
|
426
426
|
* @param {string} [searchTerm] Optional. Filter based on a search term.
|
|
427
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,
|
|
427
|
+
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
428
428
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
429
429
|
* @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.
|
|
430
430
|
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -859,7 +859,7 @@ const ItemsApiFp = function (configuration) {
|
|
|
859
859
|
/**
|
|
860
860
|
*
|
|
861
861
|
* @summary Gets items based on a query.
|
|
862
|
-
* @param {string} [userId] The user id supplied as query parameter
|
|
862
|
+
* @param {string} [userId] The user id supplied as query parameter.
|
|
863
863
|
* @param {string} [maxOfficialRating] Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).
|
|
864
864
|
* @param {boolean} [hasThemeSong] Optional filter by items with theme songs.
|
|
865
865
|
* @param {boolean} [hasThemeVideo] Optional filter by items with theme videos.
|
|
@@ -882,9 +882,9 @@ const ItemsApiFp = function (configuration) {
|
|
|
882
882
|
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
|
|
883
883
|
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
|
|
884
884
|
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
|
|
885
|
-
* @param {boolean} [hasImdbId] Optional filter by items that have an
|
|
886
|
-
* @param {boolean} [hasTmdbId] Optional filter by items that have a
|
|
887
|
-
* @param {boolean} [hasTvdbId] Optional filter by items that have a
|
|
885
|
+
* @param {boolean} [hasImdbId] Optional filter by items that have an imdb id or not.
|
|
886
|
+
* @param {boolean} [hasTmdbId] Optional filter by items that have a tmdb id or not.
|
|
887
|
+
* @param {boolean} [hasTvdbId] Optional filter by items that have a tvdb id or not.
|
|
888
888
|
* @param {boolean} [isMovie] Optional filter for live tv movies.
|
|
889
889
|
* @param {boolean} [isSeries] Optional filter for live tv series.
|
|
890
890
|
* @param {boolean} [isNews] Optional filter for live tv news.
|
|
@@ -895,7 +895,7 @@ const ItemsApiFp = function (configuration) {
|
|
|
895
895
|
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
896
896
|
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
|
|
897
897
|
* @param {string} [searchTerm] Optional. Filter based on a search term.
|
|
898
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,
|
|
898
|
+
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
899
899
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
900
900
|
* @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.
|
|
901
901
|
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -979,9 +979,9 @@ const ItemsApiFp = function (configuration) {
|
|
|
979
979
|
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
|
|
980
980
|
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
|
|
981
981
|
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
|
|
982
|
-
* @param {boolean} [hasImdbId] Optional filter by items that have an
|
|
983
|
-
* @param {boolean} [hasTmdbId] Optional filter by items that have a
|
|
984
|
-
* @param {boolean} [hasTvdbId] Optional filter by items that have a
|
|
982
|
+
* @param {boolean} [hasImdbId] Optional filter by items that have an imdb id or not.
|
|
983
|
+
* @param {boolean} [hasTmdbId] Optional filter by items that have a tmdb id or not.
|
|
984
|
+
* @param {boolean} [hasTvdbId] Optional filter by items that have a tvdb id or not.
|
|
985
985
|
* @param {boolean} [isMovie] Optional filter for live tv movies.
|
|
986
986
|
* @param {boolean} [isSeries] Optional filter for live tv series.
|
|
987
987
|
* @param {boolean} [isNews] Optional filter for live tv news.
|
|
@@ -992,7 +992,7 @@ const ItemsApiFp = function (configuration) {
|
|
|
992
992
|
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
993
993
|
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
|
|
994
994
|
* @param {string} [searchTerm] Optional. Filter based on a search term.
|
|
995
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,
|
|
995
|
+
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
996
996
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
997
997
|
* @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.
|
|
998
998
|
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -1089,7 +1089,7 @@ const ItemsApiFactory = function (configuration, basePath, axios) {
|
|
|
1089
1089
|
/**
|
|
1090
1090
|
*
|
|
1091
1091
|
* @summary Gets items based on a query.
|
|
1092
|
-
* @param {string} [userId] The user id supplied as query parameter
|
|
1092
|
+
* @param {string} [userId] The user id supplied as query parameter.
|
|
1093
1093
|
* @param {string} [maxOfficialRating] Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).
|
|
1094
1094
|
* @param {boolean} [hasThemeSong] Optional filter by items with theme songs.
|
|
1095
1095
|
* @param {boolean} [hasThemeVideo] Optional filter by items with theme videos.
|
|
@@ -1112,9 +1112,9 @@ const ItemsApiFactory = function (configuration, basePath, axios) {
|
|
|
1112
1112
|
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
|
|
1113
1113
|
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
|
|
1114
1114
|
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
|
|
1115
|
-
* @param {boolean} [hasImdbId] Optional filter by items that have an
|
|
1116
|
-
* @param {boolean} [hasTmdbId] Optional filter by items that have a
|
|
1117
|
-
* @param {boolean} [hasTvdbId] Optional filter by items that have a
|
|
1115
|
+
* @param {boolean} [hasImdbId] Optional filter by items that have an imdb id or not.
|
|
1116
|
+
* @param {boolean} [hasTmdbId] Optional filter by items that have a tmdb id or not.
|
|
1117
|
+
* @param {boolean} [hasTvdbId] Optional filter by items that have a tvdb id or not.
|
|
1118
1118
|
* @param {boolean} [isMovie] Optional filter for live tv movies.
|
|
1119
1119
|
* @param {boolean} [isSeries] Optional filter for live tv series.
|
|
1120
1120
|
* @param {boolean} [isNews] Optional filter for live tv news.
|
|
@@ -1125,7 +1125,7 @@ const ItemsApiFactory = function (configuration, basePath, axios) {
|
|
|
1125
1125
|
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1126
1126
|
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
|
|
1127
1127
|
* @param {string} [searchTerm] Optional. Filter based on a search term.
|
|
1128
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,
|
|
1128
|
+
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
1129
1129
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
1130
1130
|
* @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.
|
|
1131
1131
|
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -1206,9 +1206,9 @@ const ItemsApiFactory = function (configuration, basePath, axios) {
|
|
|
1206
1206
|
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
|
|
1207
1207
|
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
|
|
1208
1208
|
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
|
|
1209
|
-
* @param {boolean} [hasImdbId] Optional filter by items that have an
|
|
1210
|
-
* @param {boolean} [hasTmdbId] Optional filter by items that have a
|
|
1211
|
-
* @param {boolean} [hasTvdbId] Optional filter by items that have a
|
|
1209
|
+
* @param {boolean} [hasImdbId] Optional filter by items that have an imdb id or not.
|
|
1210
|
+
* @param {boolean} [hasTmdbId] Optional filter by items that have a tmdb id or not.
|
|
1211
|
+
* @param {boolean} [hasTvdbId] Optional filter by items that have a tvdb id or not.
|
|
1212
1212
|
* @param {boolean} [isMovie] Optional filter for live tv movies.
|
|
1213
1213
|
* @param {boolean} [isSeries] Optional filter for live tv series.
|
|
1214
1214
|
* @param {boolean} [isNews] Optional filter for live tv news.
|
|
@@ -1219,7 +1219,7 @@ const ItemsApiFactory = function (configuration, basePath, axios) {
|
|
|
1219
1219
|
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1220
1220
|
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
|
|
1221
1221
|
* @param {string} [searchTerm] Optional. Filter based on a search term.
|
|
1222
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,
|
|
1222
|
+
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
1223
1223
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
1224
1224
|
* @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.
|
|
1225
1225
|
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import globalAxios from 'axios';
|
|
3
|
-
import {
|
|
3
|
+
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common.js';
|
|
4
4
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
5
5
|
|
|
6
6
|
/* tslint:disable */
|
|
@@ -320,6 +320,83 @@ const NotificationsApiFp = function (configuration) {
|
|
|
320
320
|
},
|
|
321
321
|
};
|
|
322
322
|
};
|
|
323
|
+
/**
|
|
324
|
+
* NotificationsApi - factory interface
|
|
325
|
+
* @export
|
|
326
|
+
*/
|
|
327
|
+
const NotificationsApiFactory = function (configuration, basePath, axios) {
|
|
328
|
+
const localVarFp = NotificationsApiFp(configuration);
|
|
329
|
+
return {
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @summary Sends a notification to all admins.
|
|
333
|
+
* @param {AdminNotificationDto} adminNotificationDto The notification request.
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
*/
|
|
337
|
+
createAdminNotification(adminNotificationDto, options) {
|
|
338
|
+
return localVarFp.createAdminNotification(adminNotificationDto, options).then((request) => request(axios, basePath));
|
|
339
|
+
},
|
|
340
|
+
/**
|
|
341
|
+
*
|
|
342
|
+
* @summary Gets notification services.
|
|
343
|
+
* @param {*} [options] Override http request option.
|
|
344
|
+
* @throws {RequiredError}
|
|
345
|
+
*/
|
|
346
|
+
getNotificationServices(options) {
|
|
347
|
+
return localVarFp.getNotificationServices(options).then((request) => request(axios, basePath));
|
|
348
|
+
},
|
|
349
|
+
/**
|
|
350
|
+
*
|
|
351
|
+
* @summary Gets notification types.
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
*/
|
|
355
|
+
getNotificationTypes(options) {
|
|
356
|
+
return localVarFp.getNotificationTypes(options).then((request) => request(axios, basePath));
|
|
357
|
+
},
|
|
358
|
+
/**
|
|
359
|
+
*
|
|
360
|
+
* @summary Gets a user\'s notifications.
|
|
361
|
+
* @param {string} userId
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
*/
|
|
365
|
+
getNotifications(userId, options) {
|
|
366
|
+
return localVarFp.getNotifications(userId, options).then((request) => request(axios, basePath));
|
|
367
|
+
},
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
* @summary Gets a user\'s notification summary.
|
|
371
|
+
* @param {string} userId
|
|
372
|
+
* @param {*} [options] Override http request option.
|
|
373
|
+
* @throws {RequiredError}
|
|
374
|
+
*/
|
|
375
|
+
getNotificationsSummary(userId, options) {
|
|
376
|
+
return localVarFp.getNotificationsSummary(userId, options).then((request) => request(axios, basePath));
|
|
377
|
+
},
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @summary Sets notifications as read.
|
|
381
|
+
* @param {string} userId
|
|
382
|
+
* @param {*} [options] Override http request option.
|
|
383
|
+
* @throws {RequiredError}
|
|
384
|
+
*/
|
|
385
|
+
setRead(userId, options) {
|
|
386
|
+
return localVarFp.setRead(userId, options).then((request) => request(axios, basePath));
|
|
387
|
+
},
|
|
388
|
+
/**
|
|
389
|
+
*
|
|
390
|
+
* @summary Sets notifications as unread.
|
|
391
|
+
* @param {string} userId
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
*/
|
|
395
|
+
setUnread(userId, options) {
|
|
396
|
+
return localVarFp.setUnread(userId, options).then((request) => request(axios, basePath));
|
|
397
|
+
},
|
|
398
|
+
};
|
|
399
|
+
};
|
|
323
400
|
/**
|
|
324
401
|
* NotificationsApi - object-oriented interface
|
|
325
402
|
* @export
|
|
@@ -404,4 +481,4 @@ class NotificationsApi extends BaseAPI {
|
|
|
404
481
|
}
|
|
405
482
|
}
|
|
406
483
|
|
|
407
|
-
export { NotificationsApi, NotificationsApiAxiosParamCreator, NotificationsApiFp };
|
|
484
|
+
export { NotificationsApi, NotificationsApiAxiosParamCreator, NotificationsApiFactory, NotificationsApiFp };
|