@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
// @ts -ignore
22
22
import { BASE_PATH , COLLECTION_FORMATS , type RequestArgs , BaseAPI , RequiredError , operationServerMap } from '../base' ;
23
23
// @ts -ignore
24
+ import type { BrandingOptionsDto } from '../models' ;
25
+ // @ts -ignore
24
26
import type { MetadataOptions } from '../models' ;
25
27
// @ts -ignore
26
28
import type { ServerConfiguration } from '../models' ;
@@ -133,6 +135,45 @@ export const ConfigurationApiAxiosParamCreator = function (configuration?: Confi
133
135
options : localVarRequestOptions ,
134
136
} ;
135
137
} ,
138
+ /**
139
+ *
140
+ * @summary Updates branding configuration.
141
+ * @param {BrandingOptionsDto } brandingOptionsDto Branding configuration.
142
+ * @param {* } [options] Override http request option.
143
+ * @throws {RequiredError }
144
+ */
145
+ updateBrandingConfiguration : async ( brandingOptionsDto : BrandingOptionsDto , options : RawAxiosRequestConfig = { } ) : Promise < RequestArgs > => {
146
+ // verify required parameter 'brandingOptionsDto' is not null or undefined
147
+ assertParamExists ( 'updateBrandingConfiguration' , 'brandingOptionsDto' , brandingOptionsDto )
148
+ const localVarPath = `/System/Configuration/Branding` ;
149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
+ const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ;
151
+ let baseOptions ;
152
+ if ( configuration ) {
153
+ baseOptions = configuration . baseOptions ;
154
+ }
155
+
156
+ const localVarRequestOptions = { method : 'POST' , ...baseOptions , ...options } ;
157
+ const localVarHeaderParameter = { } as any ;
158
+ const localVarQueryParameter = { } as any ;
159
+
160
+ // authentication CustomAuthentication required
161
+ await setApiKeyToObject ( localVarHeaderParameter , "Authorization" , configuration )
162
+
163
+
164
+
165
+ localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ;
166
+
167
+ setSearchParams ( localVarUrlObj , localVarQueryParameter ) ;
168
+ let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
169
+ localVarRequestOptions . headers = { ...localVarHeaderParameter , ...headersFromBaseOptions , ...options . headers } ;
170
+ localVarRequestOptions . data = serializeDataIfNeeded ( brandingOptionsDto , localVarRequestOptions , configuration )
171
+
172
+ return {
173
+ url : toPathString ( localVarUrlObj ) ,
174
+ options : localVarRequestOptions ,
175
+ } ;
176
+ } ,
136
177
/**
137
178
*
138
179
* @summary Updates application configuration.
@@ -262,6 +303,19 @@ export const ConfigurationApiFp = function(configuration?: Configuration) {
262
303
const localVarOperationServerBasePath = operationServerMap [ 'ConfigurationApi.getNamedConfiguration' ] ?. [ localVarOperationServerIndex ] ?. url ;
263
304
return ( axios , basePath ) => createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ( axios , localVarOperationServerBasePath || basePath ) ;
264
305
} ,
306
+ /**
307
+ *
308
+ * @summary Updates branding configuration.
309
+ * @param {BrandingOptionsDto } brandingOptionsDto Branding configuration.
310
+ * @param {* } [options] Override http request option.
311
+ * @throws {RequiredError }
312
+ */
313
+ async updateBrandingConfiguration ( brandingOptionsDto : BrandingOptionsDto , options ?: RawAxiosRequestConfig ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < void > > {
314
+ const localVarAxiosArgs = await localVarAxiosParamCreator . updateBrandingConfiguration ( brandingOptionsDto , options ) ;
315
+ const localVarOperationServerIndex = configuration ?. serverIndex ?? 0 ;
316
+ const localVarOperationServerBasePath = operationServerMap [ 'ConfigurationApi.updateBrandingConfiguration' ] ?. [ localVarOperationServerIndex ] ?. url ;
317
+ return ( axios , basePath ) => createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ( axios , localVarOperationServerBasePath || basePath ) ;
318
+ } ,
265
319
/**
266
320
*
267
321
* @summary Updates application configuration.
@@ -327,6 +381,16 @@ export const ConfigurationApiFactory = function (configuration?: Configuration,
327
381
getNamedConfiguration ( requestParameters : ConfigurationApiGetNamedConfigurationRequest , options ?: RawAxiosRequestConfig ) : AxiosPromise < File > {
328
382
return localVarFp . getNamedConfiguration ( requestParameters . key , options ) . then ( ( request ) => request ( axios , basePath ) ) ;
329
383
} ,
384
+ /**
385
+ *
386
+ * @summary Updates branding configuration.
387
+ * @param {ConfigurationApiUpdateBrandingConfigurationRequest } requestParameters Request parameters.
388
+ * @param {* } [options] Override http request option.
389
+ * @throws {RequiredError }
390
+ */
391
+ updateBrandingConfiguration ( requestParameters : ConfigurationApiUpdateBrandingConfigurationRequest , options ?: RawAxiosRequestConfig ) : AxiosPromise < void > {
392
+ return localVarFp . updateBrandingConfiguration ( requestParameters . brandingOptionsDto , options ) . then ( ( request ) => request ( axios , basePath ) ) ;
393
+ } ,
330
394
/**
331
395
*
332
396
* @summary Updates application configuration.
@@ -364,6 +428,20 @@ export interface ConfigurationApiGetNamedConfigurationRequest {
364
428
readonly key : string
365
429
}
366
430
431
+ /**
432
+ * Request parameters for updateBrandingConfiguration operation in ConfigurationApi.
433
+ * @export
434
+ * @interface ConfigurationApiUpdateBrandingConfigurationRequest
435
+ */
436
+ export interface ConfigurationApiUpdateBrandingConfigurationRequest {
437
+ /**
438
+ * Branding configuration.
439
+ * @type {BrandingOptionsDto }
440
+ * @memberof ConfigurationApiUpdateBrandingConfiguration
441
+ */
442
+ readonly brandingOptionsDto : BrandingOptionsDto
443
+ }
444
+
367
445
/**
368
446
* Request parameters for updateConfiguration operation in ConfigurationApi.
369
447
* @export
@@ -440,6 +518,18 @@ export class ConfigurationApi extends BaseAPI {
440
518
return ConfigurationApiFp ( this . configuration ) . getNamedConfiguration ( requestParameters . key , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
441
519
}
442
520
521
+ /**
522
+ *
523
+ * @summary Updates branding configuration.
524
+ * @param {ConfigurationApiUpdateBrandingConfigurationRequest } requestParameters Request parameters.
525
+ * @param {* } [options] Override http request option.
526
+ * @throws {RequiredError }
527
+ * @memberof ConfigurationApi
528
+ */
529
+ public updateBrandingConfiguration ( requestParameters : ConfigurationApiUpdateBrandingConfigurationRequest , options ?: RawAxiosRequestConfig ) {
530
+ return ConfigurationApiFp ( this . configuration ) . updateBrandingConfiguration ( requestParameters . brandingOptionsDto , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
531
+ }
532
+
443
533
/**
444
534
*
445
535
* @summary Updates application configuration.
0 commit comments