@jellyfin/sdk 0.11.0 → 0.12.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/CHANGELOG.md +127 -0
- package/README.md +2 -45
- package/lib/api.d.ts +7 -0
- package/lib/api.js +13 -0
- package/lib/generated-client/api/activity-log-api.d.ts +1 -1
- package/lib/generated-client/api/api-key-api.d.ts +3 -3
- package/lib/generated-client/api/artists-api.d.ts +3 -3
- package/lib/generated-client/api/audio-api.d.ts +10 -10
- package/lib/generated-client/api/audio-api.js +4 -4
- package/lib/generated-client/api/backup-api.d.ts +209 -0
- package/lib/generated-client/api/backup-api.js +311 -0
- package/lib/generated-client/api/branding-api.d.ts +6 -6
- package/lib/generated-client/api/channels-api.d.ts +5 -5
- package/lib/generated-client/api/client-log-api.d.ts +1 -1
- package/lib/generated-client/api/collection-api.d.ts +3 -3
- package/lib/generated-client/api/configuration-api.d.ts +52 -5
- package/lib/generated-client/api/configuration-api.js +68 -1
- package/lib/generated-client/api/dashboard-api.d.ts +2 -2
- package/lib/generated-client/api/dashboard-api.js +1 -1
- package/lib/generated-client/api/devices-api.d.ts +5 -5
- package/lib/generated-client/api/devices-api.js +1 -1
- package/lib/generated-client/api/display-preferences-api.d.ts +2 -2
- package/lib/generated-client/api/display-preferences-api.js +1 -1
- package/lib/generated-client/api/dlna-api.d.ts +6 -6
- package/lib/generated-client/api/dlna-server-api.d.ts +16 -16
- package/lib/generated-client/api/dynamic-hls-api.d.ts +9 -9
- package/lib/generated-client/api/environment-api.d.ts +6 -6
- package/lib/generated-client/api/environment-api.js +1 -1
- package/lib/generated-client/api/filter-api.d.ts +2 -2
- package/lib/generated-client/api/genres-api.d.ts +2 -2
- package/lib/generated-client/api/genres-api.js +1 -1
- package/lib/generated-client/api/hls-segment-api.d.ts +5 -5
- package/lib/generated-client/api/hls-segment-api.js +1 -1
- package/lib/generated-client/api/image-api.d.ts +43 -331
- package/lib/generated-client/api/image-api.js +16 -196
- package/lib/generated-client/api/image-by-name-api.d.ts +6 -6
- package/lib/generated-client/api/instant-mix-api.d.ts +8 -8
- package/lib/generated-client/api/item-lookup-api.d.ts +11 -11
- package/lib/generated-client/api/item-refresh-api.d.ts +11 -3
- package/lib/generated-client/api/item-refresh-api.js +10 -5
- package/lib/generated-client/api/item-update-api.d.ts +3 -3
- package/lib/generated-client/api/items-api.d.ts +4 -4
- package/lib/generated-client/api/items-api.js +1 -1
- package/lib/generated-client/api/library-api.d.ts +25 -25
- package/lib/generated-client/api/library-api.js +1 -1
- package/lib/generated-client/api/library-structure-api.d.ts +8 -8
- package/lib/generated-client/api/live-tv-api.d.ts +55 -47
- package/lib/generated-client/api/live-tv-api.js +15 -10
- package/lib/generated-client/api/localization-api.d.ts +4 -4
- package/lib/generated-client/api/lyrics-api.d.ts +6 -6
- package/lib/generated-client/api/lyrics-api.js +1 -1
- package/lib/generated-client/api/media-info-api.d.ts +5 -5
- package/lib/generated-client/api/media-info-api.js +1 -1
- package/lib/generated-client/api/media-segments-api.d.ts +1 -1
- package/lib/generated-client/api/movies-api.d.ts +1 -1
- package/lib/generated-client/api/music-genres-api.d.ts +2 -2
- package/lib/generated-client/api/music-genres-api.js +1 -1
- package/lib/generated-client/api/notifications-api.d.ts +7 -7
- package/lib/generated-client/api/package-api.d.ts +6 -6
- package/lib/generated-client/api/package-api.js +1 -1
- package/lib/generated-client/api/persons-api.d.ts +2 -2
- package/lib/generated-client/api/persons-api.js +1 -1
- package/lib/generated-client/api/playlists-api.d.ts +11 -11
- package/lib/generated-client/api/playlists-api.js +1 -1
- package/lib/generated-client/api/playstate-api.d.ts +21 -9
- package/lib/generated-client/api/playstate-api.js +13 -1
- package/lib/generated-client/api/plugins-api.d.ts +9 -9
- package/lib/generated-client/api/quick-connect-api.d.ts +4 -4
- package/lib/generated-client/api/quick-connect-api.js +1 -1
- package/lib/generated-client/api/remote-image-api.d.ts +3 -3
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +5 -5
- package/lib/generated-client/api/scheduled-tasks-api.js +1 -1
- package/lib/generated-client/api/search-api.d.ts +1 -1
- package/lib/generated-client/api/session-api.d.ts +16 -16
- package/lib/generated-client/api/startup-api.d.ts +7 -7
- package/lib/generated-client/api/startup-api.js +1 -1
- package/lib/generated-client/api/studios-api.d.ts +2 -2
- package/lib/generated-client/api/studios-api.js +1 -1
- package/lib/generated-client/api/subtitle-api.d.ts +10 -10
- package/lib/generated-client/api/subtitle-api.js +1 -1
- package/lib/generated-client/api/suggestions-api.d.ts +1 -1
- package/lib/generated-client/api/sync-play-api.d.ts +69 -23
- package/lib/generated-client/api/sync-play-api.js +67 -1
- package/lib/generated-client/api/system-api.d.ts +18 -22
- package/lib/generated-client/api/system-api.js +13 -17
- package/lib/generated-client/api/time-sync-api.d.ts +1 -1
- package/lib/generated-client/api/tmdb-api.d.ts +1 -1
- package/lib/generated-client/api/trailers-api.d.ts +1 -1
- package/lib/generated-client/api/trickplay-api.d.ts +2 -2
- package/lib/generated-client/api/tv-shows-api.d.ts +4 -4
- package/lib/generated-client/api/tv-shows-api.js +1 -1
- package/lib/generated-client/api/universal-audio-api.d.ts +2 -2
- package/lib/generated-client/api/user-api.d.ts +14 -14
- package/lib/generated-client/api/user-api.js +1 -1
- package/lib/generated-client/api/user-library-api.d.ts +10 -10
- package/lib/generated-client/api/user-views-api.d.ts +2 -2
- package/lib/generated-client/api/video-attachments-api.d.ts +1 -1
- package/lib/generated-client/api/videos-api.d.ts +7 -7
- package/lib/generated-client/api/years-api.d.ts +2 -2
- package/lib/generated-client/api/years-api.js +1 -1
- package/lib/generated-client/api.d.ts +1 -0
- package/lib/generated-client/common.d.ts +1 -1
- package/lib/generated-client/index.js +3 -0
- package/lib/generated-client/models/backup-manifest-dto.d.ts +48 -0
- package/lib/generated-client/models/backup-options-dto.d.ts +41 -0
- package/lib/generated-client/models/backup-restore-request-dto.d.ts +23 -0
- package/lib/generated-client/models/base-item-dto.d.ts +3 -3
- package/lib/generated-client/models/branding-options-dto.d.ts +35 -0
- package/lib/generated-client/models/custom-database-option.d.ts +29 -0
- package/lib/generated-client/models/custom-database-options.d.ts +42 -0
- package/lib/generated-client/models/database-configuration-options.d.ts +37 -0
- package/lib/generated-client/models/database-locking-behavior-types.d.ts +21 -0
- package/lib/generated-client/models/database-locking-behavior-types.js +24 -0
- package/lib/generated-client/models/external-id-info.d.ts +0 -7
- package/lib/generated-client/models/external-id-media-type.d.ts +1 -0
- package/lib/generated-client/models/external-id-media-type.js +2 -1
- package/lib/generated-client/models/folder-storage-dto.d.ts +47 -0
- package/lib/generated-client/models/group-update-type.d.ts +0 -2
- package/lib/generated-client/models/group-update-type.js +0 -2
- package/lib/generated-client/models/group-update.d.ts +19 -14
- package/lib/generated-client/models/index.d.ts +25 -8
- package/lib/generated-client/models/index.js +2 -0
- package/lib/generated-client/models/item-fields.d.ts +0 -11
- package/lib/generated-client/models/item-fields.js +0 -11
- package/lib/generated-client/models/item-sort-by.d.ts +0 -2
- package/lib/generated-client/models/item-sort-by.js +1 -3
- package/lib/generated-client/models/library-options-result-dto.d.ts +6 -0
- package/lib/generated-client/models/library-options.d.ts +1 -1
- package/lib/generated-client/models/library-storage-dto.d.ts +36 -0
- package/lib/generated-client/models/lyric-line-cue.d.ts +41 -0
- package/lib/generated-client/models/lyric-line.d.ts +7 -0
- package/lib/generated-client/models/media-segment-type.d.ts +1 -1
- package/lib/generated-client/models/media-segment-type.js +1 -1
- package/lib/generated-client/models/media-stream.d.ts +6 -0
- package/lib/generated-client/models/metadata-editor-info.d.ts +6 -6
- package/lib/generated-client/models/network-configuration.d.ts +1 -0
- package/lib/generated-client/models/open-live-stream-dto.d.ts +1 -1
- package/lib/generated-client/models/outbound-web-socket-message.d.ts +2 -2
- package/lib/generated-client/models/parental-rating-score.d.ts +29 -0
- package/lib/generated-client/models/parental-rating.d.ts +8 -1
- package/lib/generated-client/models/playback-info-dto.d.ts +1 -1
- package/lib/generated-client/models/plugin-status.d.ts +1 -0
- package/lib/generated-client/models/plugin-status.js +1 -0
- package/lib/generated-client/models/profile-condition-value.d.ts +1 -0
- package/lib/generated-client/models/profile-condition-value.js +2 -1
- package/lib/generated-client/models/server-configuration.d.ts +21 -9
- package/lib/generated-client/models/startup-configuration-dto.d.ts +6 -0
- package/lib/generated-client/models/startup-remote-access-dto.d.ts +1 -0
- package/lib/generated-client/models/sync-play-group-does-not-exist-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-group-joined-update.d.ts +37 -0
- package/lib/generated-client/models/sync-play-group-left-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-group-update-message.d.ts +37 -0
- package/lib/generated-client/models/sync-play-library-access-denied-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-not-in-group-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-play-queue-update.d.ts +37 -0
- package/lib/generated-client/models/sync-play-state-update.d.ts +37 -0
- package/lib/generated-client/models/sync-play-user-joined-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-user-left-update.d.ts +36 -0
- package/lib/generated-client/models/system-info.d.ts +7 -0
- package/lib/generated-client/models/system-storage-dto.d.ts +67 -0
- package/lib/generated-client/models/task-trigger-info-type.d.ts +22 -0
- package/lib/generated-client/models/task-trigger-info-type.js +25 -0
- package/lib/generated-client/models/task-trigger-info.d.ts +4 -3
- 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 +1 -1
- package/lib/generated-client/models/transcoding-profile.d.ts +1 -1
- package/lib/generated-client/models/trickplay-info-dto.d.ts +59 -0
- package/lib/generated-client/models/trickplay-info.d.ts +7 -1
- package/lib/generated-client/models/tuner-host-info.d.ts +6 -0
- package/lib/generated-client/models/user-policy.d.ts +6 -0
- package/lib/generated-client/models/video-range-type.d.ts +4 -0
- package/lib/generated-client/models/video-range-type.js +4 -0
- package/lib/models/api/image-request-parameters.d.ts +0 -1
- package/lib/models/api/index.d.ts +0 -1
- package/lib/models/api/index.js +1 -1
- package/lib/versions.d.ts +2 -2
- package/lib/versions.js +2 -2
- package/package.json +17 -16
- package/lib/models/api/item-sort-by.d.ts +0 -40
- package/lib/models/api/item-sort-by.js +0 -43
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import globalAxios from 'axios';
|
|
2
|
+
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Jellyfin API
|
|
12
|
+
*
|
|
13
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
14
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
15
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* BackupApi - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
const BackupApiAxiosParamCreator = function (configuration) {
|
|
22
|
+
return {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @summary Creates a new Backup.
|
|
26
|
+
* @param {BackupOptionsDto} [backupOptionsDto] The backup options.
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
createBackup: async (backupOptionsDto, options = {}) => {
|
|
31
|
+
const localVarPath = `/Backup/Create`;
|
|
32
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34
|
+
let baseOptions;
|
|
35
|
+
if (configuration) {
|
|
36
|
+
baseOptions = configuration.baseOptions;
|
|
37
|
+
}
|
|
38
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
39
|
+
const localVarHeaderParameter = {};
|
|
40
|
+
const localVarQueryParameter = {};
|
|
41
|
+
// authentication CustomAuthentication required
|
|
42
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
43
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
44
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
47
|
+
localVarRequestOptions.data = serializeDataIfNeeded(backupOptionsDto, localVarRequestOptions, configuration);
|
|
48
|
+
return {
|
|
49
|
+
url: toPathString(localVarUrlObj),
|
|
50
|
+
options: localVarRequestOptions,
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @summary Gets the descriptor from an existing archive is present.
|
|
56
|
+
* @param {string} path The data to start a restore process.
|
|
57
|
+
* @param {*} [options] Override http request option.
|
|
58
|
+
* @throws {RequiredError}
|
|
59
|
+
*/
|
|
60
|
+
getBackup: async (path, options = {}) => {
|
|
61
|
+
// verify required parameter 'path' is not null or undefined
|
|
62
|
+
assertParamExists('getBackup', 'path', path);
|
|
63
|
+
const localVarPath = `/Backup/Manifest`;
|
|
64
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
66
|
+
let baseOptions;
|
|
67
|
+
if (configuration) {
|
|
68
|
+
baseOptions = configuration.baseOptions;
|
|
69
|
+
}
|
|
70
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
71
|
+
const localVarHeaderParameter = {};
|
|
72
|
+
const localVarQueryParameter = {};
|
|
73
|
+
// authentication CustomAuthentication required
|
|
74
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
75
|
+
if (path !== undefined) {
|
|
76
|
+
localVarQueryParameter['path'] = path;
|
|
77
|
+
}
|
|
78
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
81
|
+
return {
|
|
82
|
+
url: toPathString(localVarUrlObj),
|
|
83
|
+
options: localVarRequestOptions,
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @summary Gets a list of all currently present backups in the backup directory.
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
listBackups: async (options = {}) => {
|
|
93
|
+
const localVarPath = `/Backup`;
|
|
94
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
95
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
96
|
+
let baseOptions;
|
|
97
|
+
if (configuration) {
|
|
98
|
+
baseOptions = configuration.baseOptions;
|
|
99
|
+
}
|
|
100
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
101
|
+
const localVarHeaderParameter = {};
|
|
102
|
+
const localVarQueryParameter = {};
|
|
103
|
+
// authentication CustomAuthentication required
|
|
104
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
105
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
106
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
107
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
108
|
+
return {
|
|
109
|
+
url: toPathString(localVarUrlObj),
|
|
110
|
+
options: localVarRequestOptions,
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @summary Restores to a backup by restarting the server and applying the backup.
|
|
116
|
+
* @param {BackupRestoreRequestDto} backupRestoreRequestDto The data to start a restore process.
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
startRestoreBackup: async (backupRestoreRequestDto, options = {}) => {
|
|
121
|
+
// verify required parameter 'backupRestoreRequestDto' is not null or undefined
|
|
122
|
+
assertParamExists('startRestoreBackup', 'backupRestoreRequestDto', backupRestoreRequestDto);
|
|
123
|
+
const localVarPath = `/Backup/Restore`;
|
|
124
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
125
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
126
|
+
let baseOptions;
|
|
127
|
+
if (configuration) {
|
|
128
|
+
baseOptions = configuration.baseOptions;
|
|
129
|
+
}
|
|
130
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
131
|
+
const localVarHeaderParameter = {};
|
|
132
|
+
const localVarQueryParameter = {};
|
|
133
|
+
// authentication CustomAuthentication required
|
|
134
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
135
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
137
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
139
|
+
localVarRequestOptions.data = serializeDataIfNeeded(backupRestoreRequestDto, localVarRequestOptions, configuration);
|
|
140
|
+
return {
|
|
141
|
+
url: toPathString(localVarUrlObj),
|
|
142
|
+
options: localVarRequestOptions,
|
|
143
|
+
};
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* BackupApi - functional programming interface
|
|
149
|
+
* @export
|
|
150
|
+
*/
|
|
151
|
+
const BackupApiFp = function (configuration) {
|
|
152
|
+
const localVarAxiosParamCreator = BackupApiAxiosParamCreator(configuration);
|
|
153
|
+
return {
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @summary Creates a new Backup.
|
|
157
|
+
* @param {BackupOptionsDto} [backupOptionsDto] The backup options.
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
async createBackup(backupOptionsDto, options) {
|
|
162
|
+
var _a, _b, _c;
|
|
163
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBackup(backupOptionsDto, options);
|
|
164
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
165
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackupApi.createBackup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
166
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
167
|
+
},
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @summary Gets the descriptor from an existing archive is present.
|
|
171
|
+
* @param {string} path The data to start a restore process.
|
|
172
|
+
* @param {*} [options] Override http request option.
|
|
173
|
+
* @throws {RequiredError}
|
|
174
|
+
*/
|
|
175
|
+
async getBackup(path, options) {
|
|
176
|
+
var _a, _b, _c;
|
|
177
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBackup(path, options);
|
|
178
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
179
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackupApi.getBackup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
180
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @summary Gets a list of all currently present backups in the backup directory.
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
async listBackups(options) {
|
|
189
|
+
var _a, _b, _c;
|
|
190
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBackups(options);
|
|
191
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
192
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackupApi.listBackups']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
193
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
194
|
+
},
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @summary Restores to a backup by restarting the server and applying the backup.
|
|
198
|
+
* @param {BackupRestoreRequestDto} backupRestoreRequestDto The data to start a restore process.
|
|
199
|
+
* @param {*} [options] Override http request option.
|
|
200
|
+
* @throws {RequiredError}
|
|
201
|
+
*/
|
|
202
|
+
async startRestoreBackup(backupRestoreRequestDto, options) {
|
|
203
|
+
var _a, _b, _c;
|
|
204
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startRestoreBackup(backupRestoreRequestDto, options);
|
|
205
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
206
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackupApi.startRestoreBackup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
207
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
208
|
+
},
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* BackupApi - factory interface
|
|
213
|
+
* @export
|
|
214
|
+
*/
|
|
215
|
+
const BackupApiFactory = function (configuration, basePath, axios) {
|
|
216
|
+
const localVarFp = BackupApiFp(configuration);
|
|
217
|
+
return {
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @summary Creates a new Backup.
|
|
221
|
+
* @param {BackupApiCreateBackupRequest} requestParameters Request parameters.
|
|
222
|
+
* @param {*} [options] Override http request option.
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
*/
|
|
225
|
+
createBackup(requestParameters = {}, options) {
|
|
226
|
+
return localVarFp.createBackup(requestParameters.backupOptionsDto, options).then((request) => request(axios, basePath));
|
|
227
|
+
},
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @summary Gets the descriptor from an existing archive is present.
|
|
231
|
+
* @param {BackupApiGetBackupRequest} requestParameters Request parameters.
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
*/
|
|
235
|
+
getBackup(requestParameters, options) {
|
|
236
|
+
return localVarFp.getBackup(requestParameters.path, options).then((request) => request(axios, basePath));
|
|
237
|
+
},
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @summary Gets a list of all currently present backups in the backup directory.
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
*/
|
|
244
|
+
listBackups(options) {
|
|
245
|
+
return localVarFp.listBackups(options).then((request) => request(axios, basePath));
|
|
246
|
+
},
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @summary Restores to a backup by restarting the server and applying the backup.
|
|
250
|
+
* @param {BackupApiStartRestoreBackupRequest} requestParameters Request parameters.
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
startRestoreBackup(requestParameters, options) {
|
|
255
|
+
return localVarFp.startRestoreBackup(requestParameters.backupRestoreRequestDto, options).then((request) => request(axios, basePath));
|
|
256
|
+
},
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* BackupApi - object-oriented interface
|
|
261
|
+
* @export
|
|
262
|
+
* @class BackupApi
|
|
263
|
+
* @extends {BaseAPI}
|
|
264
|
+
*/
|
|
265
|
+
class BackupApi extends BaseAPI {
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
* @summary Creates a new Backup.
|
|
269
|
+
* @param {BackupApiCreateBackupRequest} requestParameters Request parameters.
|
|
270
|
+
* @param {*} [options] Override http request option.
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
* @memberof BackupApi
|
|
273
|
+
*/
|
|
274
|
+
createBackup(requestParameters = {}, options) {
|
|
275
|
+
return BackupApiFp(this.configuration).createBackup(requestParameters.backupOptionsDto, options).then((request) => request(this.axios, this.basePath));
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @summary Gets the descriptor from an existing archive is present.
|
|
280
|
+
* @param {BackupApiGetBackupRequest} requestParameters Request parameters.
|
|
281
|
+
* @param {*} [options] Override http request option.
|
|
282
|
+
* @throws {RequiredError}
|
|
283
|
+
* @memberof BackupApi
|
|
284
|
+
*/
|
|
285
|
+
getBackup(requestParameters, options) {
|
|
286
|
+
return BackupApiFp(this.configuration).getBackup(requestParameters.path, options).then((request) => request(this.axios, this.basePath));
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @summary Gets a list of all currently present backups in the backup directory.
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
* @memberof BackupApi
|
|
294
|
+
*/
|
|
295
|
+
listBackups(options) {
|
|
296
|
+
return BackupApiFp(this.configuration).listBackups(options).then((request) => request(this.axios, this.basePath));
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
*
|
|
300
|
+
* @summary Restores to a backup by restarting the server and applying the backup.
|
|
301
|
+
* @param {BackupApiStartRestoreBackupRequest} requestParameters Request parameters.
|
|
302
|
+
* @param {*} [options] Override http request option.
|
|
303
|
+
* @throws {RequiredError}
|
|
304
|
+
* @memberof BackupApi
|
|
305
|
+
*/
|
|
306
|
+
startRestoreBackup(requestParameters, options) {
|
|
307
|
+
return BackupApiFp(this.configuration).startRestoreBackup(requestParameters.backupRestoreRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export { BackupApi, BackupApiAxiosParamCreator, BackupApiFactory, BackupApiFp };
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import type { Configuration } from '../configuration';
|
|
12
12
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
13
13
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
14
|
-
import type {
|
|
14
|
+
import type { BrandingOptionsDto } from '../models';
|
|
15
15
|
/**
|
|
16
16
|
* BrandingApi - axios parameter creator
|
|
17
17
|
* @export
|
|
@@ -64,7 +64,7 @@ export declare const BrandingApiFp: (configuration?: Configuration) => {
|
|
|
64
64
|
* @param {*} [options] Override http request option.
|
|
65
65
|
* @throws {RequiredError}
|
|
66
66
|
*/
|
|
67
|
-
getBrandingOptions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
67
|
+
getBrandingOptions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrandingOptionsDto>>;
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
70
|
* BrandingApi - factory interface
|
|
@@ -91,7 +91,7 @@ export declare const BrandingApiFactory: (configuration?: Configuration, basePat
|
|
|
91
91
|
* @param {*} [options] Override http request option.
|
|
92
92
|
* @throws {RequiredError}
|
|
93
93
|
*/
|
|
94
|
-
getBrandingOptions(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
94
|
+
getBrandingOptions(options?: RawAxiosRequestConfig): AxiosPromise<BrandingOptionsDto>;
|
|
95
95
|
};
|
|
96
96
|
/**
|
|
97
97
|
* BrandingApi - object-oriented interface
|
|
@@ -107,7 +107,7 @@ export declare class BrandingApi extends BaseAPI {
|
|
|
107
107
|
* @throws {RequiredError}
|
|
108
108
|
* @memberof BrandingApi
|
|
109
109
|
*/
|
|
110
|
-
getBrandingCss(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
110
|
+
getBrandingCss(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
|
|
111
111
|
/**
|
|
112
112
|
*
|
|
113
113
|
* @summary Gets branding css.
|
|
@@ -115,7 +115,7 @@ export declare class BrandingApi extends BaseAPI {
|
|
|
115
115
|
* @throws {RequiredError}
|
|
116
116
|
* @memberof BrandingApi
|
|
117
117
|
*/
|
|
118
|
-
getBrandingCss2(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
118
|
+
getBrandingCss2(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
|
|
119
119
|
/**
|
|
120
120
|
*
|
|
121
121
|
* @summary Gets branding configuration.
|
|
@@ -123,5 +123,5 @@ export declare class BrandingApi extends BaseAPI {
|
|
|
123
123
|
* @throws {RequiredError}
|
|
124
124
|
* @memberof BrandingApi
|
|
125
125
|
*/
|
|
126
|
-
getBrandingOptions(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
126
|
+
getBrandingOptions(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BrandingOptionsDto, any, {}>>;
|
|
127
127
|
}
|
|
@@ -362,7 +362,7 @@ export declare class ChannelsApi extends BaseAPI {
|
|
|
362
362
|
* @throws {RequiredError}
|
|
363
363
|
* @memberof ChannelsApi
|
|
364
364
|
*/
|
|
365
|
-
getAllChannelFeatures(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChannelFeatures[], any>>;
|
|
365
|
+
getAllChannelFeatures(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChannelFeatures[], any, {}>>;
|
|
366
366
|
/**
|
|
367
367
|
*
|
|
368
368
|
* @summary Get channel features.
|
|
@@ -371,7 +371,7 @@ export declare class ChannelsApi extends BaseAPI {
|
|
|
371
371
|
* @throws {RequiredError}
|
|
372
372
|
* @memberof ChannelsApi
|
|
373
373
|
*/
|
|
374
|
-
getChannelFeatures(requestParameters: ChannelsApiGetChannelFeaturesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChannelFeatures, any>>;
|
|
374
|
+
getChannelFeatures(requestParameters: ChannelsApiGetChannelFeaturesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChannelFeatures, any, {}>>;
|
|
375
375
|
/**
|
|
376
376
|
*
|
|
377
377
|
* @summary Get channel items.
|
|
@@ -380,7 +380,7 @@ export declare class ChannelsApi extends BaseAPI {
|
|
|
380
380
|
* @throws {RequiredError}
|
|
381
381
|
* @memberof ChannelsApi
|
|
382
382
|
*/
|
|
383
|
-
getChannelItems(requestParameters: ChannelsApiGetChannelItemsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDtoQueryResult, any>>;
|
|
383
|
+
getChannelItems(requestParameters: ChannelsApiGetChannelItemsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDtoQueryResult, any, {}>>;
|
|
384
384
|
/**
|
|
385
385
|
*
|
|
386
386
|
* @summary Gets available channels.
|
|
@@ -389,7 +389,7 @@ export declare class ChannelsApi extends BaseAPI {
|
|
|
389
389
|
* @throws {RequiredError}
|
|
390
390
|
* @memberof ChannelsApi
|
|
391
391
|
*/
|
|
392
|
-
getChannels(requestParameters?: ChannelsApiGetChannelsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDtoQueryResult, any>>;
|
|
392
|
+
getChannels(requestParameters?: ChannelsApiGetChannelsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDtoQueryResult, any, {}>>;
|
|
393
393
|
/**
|
|
394
394
|
*
|
|
395
395
|
* @summary Gets latest channel items.
|
|
@@ -398,5 +398,5 @@ export declare class ChannelsApi extends BaseAPI {
|
|
|
398
398
|
* @throws {RequiredError}
|
|
399
399
|
* @memberof ChannelsApi
|
|
400
400
|
*/
|
|
401
|
-
getLatestChannelItems(requestParameters?: ChannelsApiGetLatestChannelItemsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDtoQueryResult, any>>;
|
|
401
|
+
getLatestChannelItems(requestParameters?: ChannelsApiGetLatestChannelItemsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDtoQueryResult, any, {}>>;
|
|
402
402
|
}
|
|
@@ -82,5 +82,5 @@ export declare class ClientLogApi extends BaseAPI {
|
|
|
82
82
|
* @throws {RequiredError}
|
|
83
83
|
* @memberof ClientLogApi
|
|
84
84
|
*/
|
|
85
|
-
logFile(requestParameters?: ClientLogApiLogFileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientLogDocumentResponseDto, any>>;
|
|
85
|
+
logFile(requestParameters?: ClientLogApiLogFileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientLogDocumentResponseDto, any, {}>>;
|
|
86
86
|
}
|
|
@@ -196,7 +196,7 @@ export declare class CollectionApi extends BaseAPI {
|
|
|
196
196
|
* @throws {RequiredError}
|
|
197
197
|
* @memberof CollectionApi
|
|
198
198
|
*/
|
|
199
|
-
addToCollection(requestParameters: CollectionApiAddToCollectionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
199
|
+
addToCollection(requestParameters: CollectionApiAddToCollectionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
200
200
|
/**
|
|
201
201
|
*
|
|
202
202
|
* @summary Creates a new collection.
|
|
@@ -205,7 +205,7 @@ export declare class CollectionApi extends BaseAPI {
|
|
|
205
205
|
* @throws {RequiredError}
|
|
206
206
|
* @memberof CollectionApi
|
|
207
207
|
*/
|
|
208
|
-
createCollection(requestParameters?: CollectionApiCreateCollectionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CollectionCreationResult, any>>;
|
|
208
|
+
createCollection(requestParameters?: CollectionApiCreateCollectionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CollectionCreationResult, any, {}>>;
|
|
209
209
|
/**
|
|
210
210
|
*
|
|
211
211
|
* @summary Removes items from a collection.
|
|
@@ -214,5 +214,5 @@ export declare class CollectionApi extends BaseAPI {
|
|
|
214
214
|
* @throws {RequiredError}
|
|
215
215
|
* @memberof CollectionApi
|
|
216
216
|
*/
|
|
217
|
-
removeFromCollection(requestParameters: CollectionApiRemoveFromCollectionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
217
|
+
removeFromCollection(requestParameters: CollectionApiRemoveFromCollectionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
218
218
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import type { Configuration } from '../configuration';
|
|
12
12
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
13
13
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
14
|
+
import type { BrandingOptionsDto } from '../models';
|
|
14
15
|
import type { MetadataOptions } from '../models';
|
|
15
16
|
import type { ServerConfiguration } from '../models';
|
|
16
17
|
/**
|
|
@@ -40,6 +41,14 @@ export declare const ConfigurationApiAxiosParamCreator: (configuration?: Configu
|
|
|
40
41
|
* @throws {RequiredError}
|
|
41
42
|
*/
|
|
42
43
|
getNamedConfiguration: (key: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @summary Updates branding configuration.
|
|
47
|
+
* @param {BrandingOptionsDto} brandingOptionsDto Branding configuration.
|
|
48
|
+
* @param {*} [options] Override http request option.
|
|
49
|
+
* @throws {RequiredError}
|
|
50
|
+
*/
|
|
51
|
+
updateBrandingConfiguration: (brandingOptionsDto: BrandingOptionsDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
52
|
/**
|
|
44
53
|
*
|
|
45
54
|
* @summary Updates application configuration.
|
|
@@ -85,6 +94,14 @@ export declare const ConfigurationApiFp: (configuration?: Configuration) => {
|
|
|
85
94
|
* @throws {RequiredError}
|
|
86
95
|
*/
|
|
87
96
|
getNamedConfiguration(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @summary Updates branding configuration.
|
|
100
|
+
* @param {BrandingOptionsDto} brandingOptionsDto Branding configuration.
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
updateBrandingConfiguration(brandingOptionsDto: BrandingOptionsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
88
105
|
/**
|
|
89
106
|
*
|
|
90
107
|
* @summary Updates application configuration.
|
|
@@ -130,6 +147,14 @@ export declare const ConfigurationApiFactory: (configuration?: Configuration, ba
|
|
|
130
147
|
* @throws {RequiredError}
|
|
131
148
|
*/
|
|
132
149
|
getNamedConfiguration(requestParameters: ConfigurationApiGetNamedConfigurationRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @summary Updates branding configuration.
|
|
153
|
+
* @param {ConfigurationApiUpdateBrandingConfigurationRequest} requestParameters Request parameters.
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
*/
|
|
157
|
+
updateBrandingConfiguration(requestParameters: ConfigurationApiUpdateBrandingConfigurationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
133
158
|
/**
|
|
134
159
|
*
|
|
135
160
|
* @summary Updates application configuration.
|
|
@@ -160,6 +185,19 @@ export interface ConfigurationApiGetNamedConfigurationRequest {
|
|
|
160
185
|
*/
|
|
161
186
|
readonly key: string;
|
|
162
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* Request parameters for updateBrandingConfiguration operation in ConfigurationApi.
|
|
190
|
+
* @export
|
|
191
|
+
* @interface ConfigurationApiUpdateBrandingConfigurationRequest
|
|
192
|
+
*/
|
|
193
|
+
export interface ConfigurationApiUpdateBrandingConfigurationRequest {
|
|
194
|
+
/**
|
|
195
|
+
* Branding configuration.
|
|
196
|
+
* @type {BrandingOptionsDto}
|
|
197
|
+
* @memberof ConfigurationApiUpdateBrandingConfiguration
|
|
198
|
+
*/
|
|
199
|
+
readonly brandingOptionsDto: BrandingOptionsDto;
|
|
200
|
+
}
|
|
163
201
|
/**
|
|
164
202
|
* Request parameters for updateConfiguration operation in ConfigurationApi.
|
|
165
203
|
* @export
|
|
@@ -206,7 +244,7 @@ export declare class ConfigurationApi extends BaseAPI {
|
|
|
206
244
|
* @throws {RequiredError}
|
|
207
245
|
* @memberof ConfigurationApi
|
|
208
246
|
*/
|
|
209
|
-
getConfiguration(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ServerConfiguration, any>>;
|
|
247
|
+
getConfiguration(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ServerConfiguration, any, {}>>;
|
|
210
248
|
/**
|
|
211
249
|
*
|
|
212
250
|
* @summary Gets a default MetadataOptions object.
|
|
@@ -214,7 +252,7 @@ export declare class ConfigurationApi extends BaseAPI {
|
|
|
214
252
|
* @throws {RequiredError}
|
|
215
253
|
* @memberof ConfigurationApi
|
|
216
254
|
*/
|
|
217
|
-
getDefaultMetadataOptions(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetadataOptions, any>>;
|
|
255
|
+
getDefaultMetadataOptions(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetadataOptions, any, {}>>;
|
|
218
256
|
/**
|
|
219
257
|
*
|
|
220
258
|
* @summary Gets a named configuration.
|
|
@@ -223,7 +261,16 @@ export declare class ConfigurationApi extends BaseAPI {
|
|
|
223
261
|
* @throws {RequiredError}
|
|
224
262
|
* @memberof ConfigurationApi
|
|
225
263
|
*/
|
|
226
|
-
getNamedConfiguration(requestParameters: ConfigurationApiGetNamedConfigurationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
264
|
+
getNamedConfiguration(requestParameters: ConfigurationApiGetNamedConfigurationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
265
|
+
/**
|
|
266
|
+
*
|
|
267
|
+
* @summary Updates branding configuration.
|
|
268
|
+
* @param {ConfigurationApiUpdateBrandingConfigurationRequest} requestParameters Request parameters.
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
* @memberof ConfigurationApi
|
|
272
|
+
*/
|
|
273
|
+
updateBrandingConfiguration(requestParameters: ConfigurationApiUpdateBrandingConfigurationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
227
274
|
/**
|
|
228
275
|
*
|
|
229
276
|
* @summary Updates application configuration.
|
|
@@ -232,7 +279,7 @@ export declare class ConfigurationApi extends BaseAPI {
|
|
|
232
279
|
* @throws {RequiredError}
|
|
233
280
|
* @memberof ConfigurationApi
|
|
234
281
|
*/
|
|
235
|
-
updateConfiguration(requestParameters: ConfigurationApiUpdateConfigurationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
282
|
+
updateConfiguration(requestParameters: ConfigurationApiUpdateConfigurationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
236
283
|
/**
|
|
237
284
|
*
|
|
238
285
|
* @summary Updates named configuration.
|
|
@@ -241,5 +288,5 @@ export declare class ConfigurationApi extends BaseAPI {
|
|
|
241
288
|
* @throws {RequiredError}
|
|
242
289
|
* @memberof ConfigurationApi
|
|
243
290
|
*/
|
|
244
|
-
updateNamedConfiguration(requestParameters: ConfigurationApiUpdateNamedConfigurationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
291
|
+
updateNamedConfiguration(requestParameters: ConfigurationApiUpdateNamedConfigurationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
245
292
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import globalAxios from 'axios';
|
|
2
|
-
import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams,
|
|
2
|
+
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common.js';
|
|
3
3
|
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
4
4
|
|
|
5
5
|
/* tslint:disable */
|
|
@@ -105,6 +105,38 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
105
105
|
options: localVarRequestOptions,
|
|
106
106
|
};
|
|
107
107
|
},
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @summary Updates branding configuration.
|
|
111
|
+
* @param {BrandingOptionsDto} brandingOptionsDto Branding configuration.
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
updateBrandingConfiguration: async (brandingOptionsDto, options = {}) => {
|
|
116
|
+
// verify required parameter 'brandingOptionsDto' is not null or undefined
|
|
117
|
+
assertParamExists('updateBrandingConfiguration', 'brandingOptionsDto', brandingOptionsDto);
|
|
118
|
+
const localVarPath = `/System/Configuration/Branding`;
|
|
119
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
120
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
121
|
+
let baseOptions;
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions;
|
|
124
|
+
}
|
|
125
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
126
|
+
const localVarHeaderParameter = {};
|
|
127
|
+
const localVarQueryParameter = {};
|
|
128
|
+
// authentication CustomAuthentication required
|
|
129
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
130
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
131
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
132
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
134
|
+
localVarRequestOptions.data = serializeDataIfNeeded(brandingOptionsDto, localVarRequestOptions, configuration);
|
|
135
|
+
return {
|
|
136
|
+
url: toPathString(localVarUrlObj),
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
};
|
|
139
|
+
},
|
|
108
140
|
/**
|
|
109
141
|
*
|
|
110
142
|
* @summary Updates application configuration.
|
|
@@ -222,6 +254,20 @@ const ConfigurationApiFp = function (configuration) {
|
|
|
222
254
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ConfigurationApi.getNamedConfiguration']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
223
255
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
224
256
|
},
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @summary Updates branding configuration.
|
|
260
|
+
* @param {BrandingOptionsDto} brandingOptionsDto Branding configuration.
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
*/
|
|
264
|
+
async updateBrandingConfiguration(brandingOptionsDto, options) {
|
|
265
|
+
var _a, _b, _c;
|
|
266
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBrandingConfiguration(brandingOptionsDto, 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['ConfigurationApi.updateBrandingConfiguration']) === 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);
|
|
270
|
+
},
|
|
225
271
|
/**
|
|
226
272
|
*
|
|
227
273
|
* @summary Updates application configuration.
|
|
@@ -288,6 +334,16 @@ const ConfigurationApiFactory = function (configuration, basePath, axios) {
|
|
|
288
334
|
getNamedConfiguration(requestParameters, options) {
|
|
289
335
|
return localVarFp.getNamedConfiguration(requestParameters.key, options).then((request) => request(axios, basePath));
|
|
290
336
|
},
|
|
337
|
+
/**
|
|
338
|
+
*
|
|
339
|
+
* @summary Updates branding configuration.
|
|
340
|
+
* @param {ConfigurationApiUpdateBrandingConfigurationRequest} requestParameters Request parameters.
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
updateBrandingConfiguration(requestParameters, options) {
|
|
345
|
+
return localVarFp.updateBrandingConfiguration(requestParameters.brandingOptionsDto, options).then((request) => request(axios, basePath));
|
|
346
|
+
},
|
|
291
347
|
/**
|
|
292
348
|
*
|
|
293
349
|
* @summary Updates application configuration.
|
|
@@ -348,6 +404,17 @@ class ConfigurationApi extends BaseAPI {
|
|
|
348
404
|
getNamedConfiguration(requestParameters, options) {
|
|
349
405
|
return ConfigurationApiFp(this.configuration).getNamedConfiguration(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
|
|
350
406
|
}
|
|
407
|
+
/**
|
|
408
|
+
*
|
|
409
|
+
* @summary Updates branding configuration.
|
|
410
|
+
* @param {ConfigurationApiUpdateBrandingConfigurationRequest} requestParameters Request parameters.
|
|
411
|
+
* @param {*} [options] Override http request option.
|
|
412
|
+
* @throws {RequiredError}
|
|
413
|
+
* @memberof ConfigurationApi
|
|
414
|
+
*/
|
|
415
|
+
updateBrandingConfiguration(requestParameters, options) {
|
|
416
|
+
return ConfigurationApiFp(this.configuration).updateBrandingConfiguration(requestParameters.brandingOptionsDto, options).then((request) => request(this.axios, this.basePath));
|
|
417
|
+
}
|
|
351
418
|
/**
|
|
352
419
|
*
|
|
353
420
|
* @summary Updates application configuration.
|