@agravity/private 9.3.0 → 10.0.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/.openapi-generator/FILES +11 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +97 -142
- package/api/aIOperations.agravity.ts +878 -0
- package/api/api.ts +9 -3
- package/api/assetIconRuleManagement.agravity.ts +59 -190
- package/api/assetManagement.agravity.ts +118 -355
- package/api/assetOperations.agravity.ts +290 -917
- package/api/assetPublishing.agravity.ts +107 -288
- package/api/assetRelationManagement.agravity.ts +61 -196
- package/api/assetRelationTypeManagement.agravity.ts +70 -215
- package/api/assetVersioning.agravity.ts +105 -300
- package/api/authenticationManagement.agravity.ts +137 -392
- package/api/collectionManagement.agravity.ts +217 -376
- package/api/collectionShareManagement.agravity.ts +59 -190
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +47 -162
- package/api/collectionTypeManagement.agravity.ts +91 -270
- package/api/commentsManagement.agravity.ts +48 -157
- package/api/configurationManagement.agravity.ts +53 -180
- package/api/dashboardWidgetManagement.agravity.ts +56 -181
- package/api/dataImportExportManagement.agravity.ts +58 -203
- package/api/downloadFormatManagement.agravity.ts +70 -215
- package/api/downloadZip.agravity.ts +37 -132
- package/api/generalManagement.agravity.ts +64 -229
- package/api/helperTools.agravity.ts +214 -404
- package/api/historyEntryManagement.agravity.ts +16 -85
- package/api/iccProfileManagement.agravity.ts +11 -78
- package/api/listBlobs.agravity.ts +18 -99
- package/api/listQueues.agravity.ts +11 -78
- package/api/listTables.agravity.ts +11 -78
- package/api/notificationManagement.agravity.ts +267 -0
- package/api/permissionsManagement.agravity.ts +44 -153
- package/api/portalManagement.agravity.ts +88 -253
- package/api/portalsUsersManagement.agravity.ts +55 -178
- package/api/publishing.agravity.ts +13 -84
- package/api/quickshareManagement.agravity.ts +67 -214
- package/api/savedSearchManagement.agravity.ts +37 -140
- package/api/searchManagement.agravity.ts +102 -327
- package/api/searchSettingsOperations.agravity.ts +187 -0
- package/api/secureUpload.agravity.ts +68 -209
- package/api/signalRConnectionManagement.agravity.ts +26 -109
- package/api/staticDefinedListManagement.agravity.ts +60 -193
- package/api/stockImport.agravity.ts +31 -122
- package/api/structureImport.agravity.ts +11 -78
- package/api/translationManagement.agravity.ts +86 -229
- package/api/webAppData.agravity.ts +48 -157
- package/api/widgetLayoutManagement.agravity.ts +22 -103
- package/api/wordpressManagement.agravity.ts +34 -131
- package/api/workspaceManagement.agravity.ts +77 -236
- package/api.base.service.ts +78 -0
- package/configuration.ts +33 -17
- package/index.ts +1 -0
- package/model/{aiGroupEntity.agravity.ts → aiAsset.agravity.ts} +2 -3
- package/model/aiFieldGeneration.agravity.ts +1 -5
- package/model/{aiGroup.agravity.ts → aiModelDeployment.agravity.ts} +6 -5
- package/model/aiSettings.agravity.ts +4 -3
- package/model/aiTypeSettings.agravity.ts +17 -0
- package/model/asset.agravity.ts +6 -6
- package/model/assetBlob.agravity.ts +15 -15
- package/model/assetIconRule.agravity.ts +1 -1
- package/model/assetRelationType.agravity.ts +1 -1
- package/model/azureIdentity.agravity.ts +7 -7
- package/model/collTypeItem.agravity.ts +1 -1
- package/model/collTypeItemBlueprint.agravity.ts +1 -1
- package/model/collection.agravity.ts +6 -6
- package/model/collectionType.agravity.ts +6 -6
- package/model/collectionUDL.agravity.ts +1 -1
- package/model/comment.agravity.ts +1 -0
- package/model/dashboardWidget.agravity.ts +1 -1
- package/model/downloadFormat.agravity.ts +1 -1
- package/model/downloadZipRequest.agravity.ts +6 -6
- package/model/downloadZipStatus.agravity.ts +6 -6
- package/model/entityIdName.agravity.ts +1 -1
- package/model/entityTranslations.agravity.ts +1 -1
- package/model/groupAllAppData.agravity.ts +1 -1
- package/model/historyEntry.agravity.ts +16 -30
- package/model/models.ts +5 -2
- package/model/notificationSettingDto.agravity.ts +18 -0
- package/model/permissionChange.agravity.ts +7 -7
- package/model/permissionEntity.agravity.ts +5 -5
- package/model/portalAuthentication.agravity.ts +7 -7
- package/model/portalTheme.agravity.ts +1 -1
- package/model/publishedAsset.agravity.ts +1 -1
- package/model/savedSearch.agravity.ts +1 -1
- package/model/searchSettings.agravity.ts +26 -0
- package/model/staticDefinedList.agravity.ts +1 -1
- package/model/uiTutorials.agravity.ts +4 -4
- package/model/whereParam.agravity.ts +17 -17
- package/model/workspace.agravity.ts +1 -1
- package/package.json +5 -4
- package/provide-api.ts +15 -0
- package/tsconfig.json +2 -0
- package/api/aISettingsManagement.agravity.ts +0 -264
|
@@ -24,6 +24,7 @@ import { FrontendAppConfig } from '../model/frontendAppConfig.agravity';
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
26
26
|
import { AgravityConfiguration } from '../configuration';
|
|
27
|
+
import { BaseService } from '../api.base.service';
|
|
27
28
|
|
|
28
29
|
export interface HttpConfigDeleteSingleRequestParams {
|
|
29
30
|
/** The key of the configuration. */
|
|
@@ -52,67 +53,13 @@ export interface HttpConfigUpdateSingleRequestParams {
|
|
|
52
53
|
@Injectable({
|
|
53
54
|
providedIn: 'root'
|
|
54
55
|
})
|
|
55
|
-
export class ConfigurationManagementService {
|
|
56
|
-
protected basePath = 'http://localhost:7071/api';
|
|
57
|
-
public defaultHeaders = new HttpHeaders();
|
|
58
|
-
public configuration = new AgravityConfiguration();
|
|
59
|
-
public encoder: HttpParameterCodec;
|
|
60
|
-
|
|
56
|
+
export class ConfigurationManagementService extends BaseService {
|
|
61
57
|
constructor(
|
|
62
58
|
protected httpClient: HttpClient,
|
|
63
59
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
64
|
-
@Optional() configuration
|
|
60
|
+
@Optional() configuration?: AgravityConfiguration
|
|
65
61
|
) {
|
|
66
|
-
|
|
67
|
-
this.configuration = configuration;
|
|
68
|
-
}
|
|
69
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
70
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
71
|
-
if (firstBasePath != undefined) {
|
|
72
|
-
basePath = firstBasePath;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
if (typeof basePath !== 'string') {
|
|
76
|
-
basePath = this.basePath;
|
|
77
|
-
}
|
|
78
|
-
this.configuration.basePath = basePath;
|
|
79
|
-
}
|
|
80
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// @ts-ignore
|
|
84
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
85
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
86
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
87
|
-
} else {
|
|
88
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
89
|
-
}
|
|
90
|
-
return httpParams;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
94
|
-
if (value == null) {
|
|
95
|
-
return httpParams;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (typeof value === 'object') {
|
|
99
|
-
if (Array.isArray(value)) {
|
|
100
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
101
|
-
} else if (value instanceof Date) {
|
|
102
|
-
if (key != null) {
|
|
103
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
104
|
-
} else {
|
|
105
|
-
throw Error('key may not be null if value is Date');
|
|
106
|
-
}
|
|
107
|
-
} else {
|
|
108
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
109
|
-
}
|
|
110
|
-
} else if (key != null) {
|
|
111
|
-
httpParams = httpParams.append(key, value);
|
|
112
|
-
} else {
|
|
113
|
-
throw Error('key may not be null if value is not object or array');
|
|
114
|
-
}
|
|
115
|
-
return httpParams;
|
|
62
|
+
super(basePath, configuration);
|
|
116
63
|
}
|
|
117
64
|
|
|
118
65
|
/**
|
|
@@ -122,25 +69,25 @@ export class ConfigurationManagementService {
|
|
|
122
69
|
* @param reportProgress flag to report request and response progress.
|
|
123
70
|
*/
|
|
124
71
|
public httpConfigDeleteSingle(
|
|
125
|
-
requestParameters
|
|
72
|
+
requestParameters: HttpConfigDeleteSingleRequestParams,
|
|
126
73
|
observe?: 'body',
|
|
127
74
|
reportProgress?: boolean,
|
|
128
75
|
options?: { httpHeaderAccept?: undefined; context?: HttpContext; transferCache?: boolean }
|
|
129
76
|
): Observable<any>;
|
|
130
77
|
public httpConfigDeleteSingle(
|
|
131
|
-
requestParameters
|
|
78
|
+
requestParameters: HttpConfigDeleteSingleRequestParams,
|
|
132
79
|
observe?: 'response',
|
|
133
80
|
reportProgress?: boolean,
|
|
134
81
|
options?: { httpHeaderAccept?: undefined; context?: HttpContext; transferCache?: boolean }
|
|
135
82
|
): Observable<HttpResponse<any>>;
|
|
136
83
|
public httpConfigDeleteSingle(
|
|
137
|
-
requestParameters
|
|
84
|
+
requestParameters: HttpConfigDeleteSingleRequestParams,
|
|
138
85
|
observe?: 'events',
|
|
139
86
|
reportProgress?: boolean,
|
|
140
87
|
options?: { httpHeaderAccept?: undefined; context?: HttpContext; transferCache?: boolean }
|
|
141
88
|
): Observable<HttpEvent<any>>;
|
|
142
89
|
public httpConfigDeleteSingle(
|
|
143
|
-
requestParameters
|
|
90
|
+
requestParameters: HttpConfigDeleteSingleRequestParams,
|
|
144
91
|
observe: any = 'body',
|
|
145
92
|
reportProgress: boolean = false,
|
|
146
93
|
options?: { httpHeaderAccept?: undefined; context?: HttpContext; transferCache?: boolean }
|
|
@@ -152,32 +99,17 @@ export class ConfigurationManagementService {
|
|
|
152
99
|
|
|
153
100
|
let localVarHeaders = this.defaultHeaders;
|
|
154
101
|
|
|
155
|
-
let localVarCredential: string | undefined;
|
|
156
102
|
// authentication (msal_auth) required
|
|
157
|
-
|
|
158
|
-
if (localVarCredential) {
|
|
159
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
160
|
-
}
|
|
103
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
161
104
|
|
|
162
|
-
|
|
163
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
164
|
-
// to determine the Accept header
|
|
165
|
-
const httpHeaderAccepts: string[] = [];
|
|
166
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
167
|
-
}
|
|
105
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
168
106
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
169
107
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
170
108
|
}
|
|
171
109
|
|
|
172
|
-
|
|
173
|
-
if (localVarHttpContext === undefined) {
|
|
174
|
-
localVarHttpContext = new HttpContext();
|
|
175
|
-
}
|
|
110
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
176
111
|
|
|
177
|
-
|
|
178
|
-
if (localVarTransferCache === undefined) {
|
|
179
|
-
localVarTransferCache = true;
|
|
180
|
-
}
|
|
112
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
181
113
|
|
|
182
114
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
183
115
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -191,10 +123,11 @@ export class ConfigurationManagementService {
|
|
|
191
123
|
}
|
|
192
124
|
|
|
193
125
|
let localVarPath = `/config/${this.configuration.encodeParam({ name: 'key', value: key, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
194
|
-
|
|
126
|
+
const { basePath, withCredentials } = this.configuration;
|
|
127
|
+
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
|
|
195
128
|
context: localVarHttpContext,
|
|
196
129
|
responseType: <any>responseType_,
|
|
197
|
-
withCredentials:
|
|
130
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
198
131
|
headers: localVarHeaders,
|
|
199
132
|
observe: observe,
|
|
200
133
|
transferCache: localVarTransferCache,
|
|
@@ -229,32 +162,17 @@ export class ConfigurationManagementService {
|
|
|
229
162
|
): Observable<any> {
|
|
230
163
|
let localVarHeaders = this.defaultHeaders;
|
|
231
164
|
|
|
232
|
-
let localVarCredential: string | undefined;
|
|
233
165
|
// authentication (msal_auth) required
|
|
234
|
-
|
|
235
|
-
if (localVarCredential) {
|
|
236
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
237
|
-
}
|
|
166
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
238
167
|
|
|
239
|
-
|
|
240
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
241
|
-
// to determine the Accept header
|
|
242
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
243
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
244
|
-
}
|
|
168
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
245
169
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
246
170
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
247
171
|
}
|
|
248
172
|
|
|
249
|
-
|
|
250
|
-
if (localVarHttpContext === undefined) {
|
|
251
|
-
localVarHttpContext = new HttpContext();
|
|
252
|
-
}
|
|
173
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
253
174
|
|
|
254
|
-
|
|
255
|
-
if (localVarTransferCache === undefined) {
|
|
256
|
-
localVarTransferCache = true;
|
|
257
|
-
}
|
|
175
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
258
176
|
|
|
259
177
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
260
178
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -268,10 +186,11 @@ export class ConfigurationManagementService {
|
|
|
268
186
|
}
|
|
269
187
|
|
|
270
188
|
let localVarPath = `/config`;
|
|
271
|
-
|
|
189
|
+
const { basePath, withCredentials } = this.configuration;
|
|
190
|
+
return this.httpClient.request<Array<AppConfigTableEntity>>('get', `${basePath}${localVarPath}`, {
|
|
272
191
|
context: localVarHttpContext,
|
|
273
192
|
responseType: <any>responseType_,
|
|
274
|
-
withCredentials:
|
|
193
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
275
194
|
headers: localVarHeaders,
|
|
276
195
|
observe: observe,
|
|
277
196
|
transferCache: localVarTransferCache,
|
|
@@ -312,38 +231,21 @@ export class ConfigurationManagementService {
|
|
|
312
231
|
const customonly = requestParameters?.customonly;
|
|
313
232
|
|
|
314
233
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
315
|
-
|
|
316
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>customonly, 'customonly');
|
|
317
|
-
}
|
|
234
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>customonly, 'customonly');
|
|
318
235
|
|
|
319
236
|
let localVarHeaders = this.defaultHeaders;
|
|
320
237
|
|
|
321
|
-
let localVarCredential: string | undefined;
|
|
322
238
|
// authentication (msal_auth) required
|
|
323
|
-
|
|
324
|
-
if (localVarCredential) {
|
|
325
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
326
|
-
}
|
|
239
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
327
240
|
|
|
328
|
-
|
|
329
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
330
|
-
// to determine the Accept header
|
|
331
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
332
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
333
|
-
}
|
|
241
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
334
242
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
335
243
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
336
244
|
}
|
|
337
245
|
|
|
338
|
-
|
|
339
|
-
if (localVarHttpContext === undefined) {
|
|
340
|
-
localVarHttpContext = new HttpContext();
|
|
341
|
-
}
|
|
246
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
342
247
|
|
|
343
|
-
|
|
344
|
-
if (localVarTransferCache === undefined) {
|
|
345
|
-
localVarTransferCache = true;
|
|
346
|
-
}
|
|
248
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
347
249
|
|
|
348
250
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
349
251
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -357,11 +259,12 @@ export class ConfigurationManagementService {
|
|
|
357
259
|
}
|
|
358
260
|
|
|
359
261
|
let localVarPath = `/config/frontend`;
|
|
360
|
-
|
|
262
|
+
const { basePath, withCredentials } = this.configuration;
|
|
263
|
+
return this.httpClient.request<Array<FrontendAppConfig>>('get', `${basePath}${localVarPath}`, {
|
|
361
264
|
context: localVarHttpContext,
|
|
362
265
|
params: localVarQueryParameters,
|
|
363
266
|
responseType: <any>responseType_,
|
|
364
|
-
withCredentials:
|
|
267
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
365
268
|
headers: localVarHeaders,
|
|
366
269
|
observe: observe,
|
|
367
270
|
transferCache: localVarTransferCache,
|
|
@@ -376,25 +279,25 @@ export class ConfigurationManagementService {
|
|
|
376
279
|
* @param reportProgress flag to report request and response progress.
|
|
377
280
|
*/
|
|
378
281
|
public httpConfigUpdate(
|
|
379
|
-
requestParameters
|
|
282
|
+
requestParameters: HttpConfigUpdateRequestParams,
|
|
380
283
|
observe?: 'body',
|
|
381
284
|
reportProgress?: boolean,
|
|
382
285
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
383
286
|
): Observable<AppConfigTableEntity>;
|
|
384
287
|
public httpConfigUpdate(
|
|
385
|
-
requestParameters
|
|
288
|
+
requestParameters: HttpConfigUpdateRequestParams,
|
|
386
289
|
observe?: 'response',
|
|
387
290
|
reportProgress?: boolean,
|
|
388
291
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
389
292
|
): Observable<HttpResponse<AppConfigTableEntity>>;
|
|
390
293
|
public httpConfigUpdate(
|
|
391
|
-
requestParameters
|
|
294
|
+
requestParameters: HttpConfigUpdateRequestParams,
|
|
392
295
|
observe?: 'events',
|
|
393
296
|
reportProgress?: boolean,
|
|
394
297
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
395
298
|
): Observable<HttpEvent<AppConfigTableEntity>>;
|
|
396
299
|
public httpConfigUpdate(
|
|
397
|
-
requestParameters
|
|
300
|
+
requestParameters: HttpConfigUpdateRequestParams,
|
|
398
301
|
observe: any = 'body',
|
|
399
302
|
reportProgress: boolean = false,
|
|
400
303
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -406,38 +309,21 @@ export class ConfigurationManagementService {
|
|
|
406
309
|
const addconfigqueues = requestParameters?.addconfigqueues;
|
|
407
310
|
|
|
408
311
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
409
|
-
|
|
410
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>addconfigqueues, 'addconfigqueues');
|
|
411
|
-
}
|
|
312
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>addconfigqueues, 'addconfigqueues');
|
|
412
313
|
|
|
413
314
|
let localVarHeaders = this.defaultHeaders;
|
|
414
315
|
|
|
415
|
-
let localVarCredential: string | undefined;
|
|
416
316
|
// authentication (msal_auth) required
|
|
417
|
-
|
|
418
|
-
if (localVarCredential) {
|
|
419
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
420
|
-
}
|
|
317
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
421
318
|
|
|
422
|
-
|
|
423
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
424
|
-
// to determine the Accept header
|
|
425
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
426
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
427
|
-
}
|
|
319
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
428
320
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
429
321
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
430
322
|
}
|
|
431
323
|
|
|
432
|
-
|
|
433
|
-
if (localVarHttpContext === undefined) {
|
|
434
|
-
localVarHttpContext = new HttpContext();
|
|
435
|
-
}
|
|
324
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
436
325
|
|
|
437
|
-
|
|
438
|
-
if (localVarTransferCache === undefined) {
|
|
439
|
-
localVarTransferCache = true;
|
|
440
|
-
}
|
|
326
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
441
327
|
|
|
442
328
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
443
329
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -451,11 +337,12 @@ export class ConfigurationManagementService {
|
|
|
451
337
|
}
|
|
452
338
|
|
|
453
339
|
let localVarPath = `/config`;
|
|
454
|
-
|
|
340
|
+
const { basePath, withCredentials } = this.configuration;
|
|
341
|
+
return this.httpClient.request<AppConfigTableEntity>('post', `${basePath}${localVarPath}`, {
|
|
455
342
|
context: localVarHttpContext,
|
|
456
343
|
params: localVarQueryParameters,
|
|
457
344
|
responseType: <any>responseType_,
|
|
458
|
-
withCredentials:
|
|
345
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
459
346
|
headers: localVarHeaders,
|
|
460
347
|
observe: observe,
|
|
461
348
|
transferCache: localVarTransferCache,
|
|
@@ -470,25 +357,25 @@ export class ConfigurationManagementService {
|
|
|
470
357
|
* @param reportProgress flag to report request and response progress.
|
|
471
358
|
*/
|
|
472
359
|
public httpConfigUpdateSingle(
|
|
473
|
-
requestParameters
|
|
360
|
+
requestParameters: HttpConfigUpdateSingleRequestParams,
|
|
474
361
|
observe?: 'body',
|
|
475
362
|
reportProgress?: boolean,
|
|
476
363
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
477
364
|
): Observable<AppConfigTableEntity>;
|
|
478
365
|
public httpConfigUpdateSingle(
|
|
479
|
-
requestParameters
|
|
366
|
+
requestParameters: HttpConfigUpdateSingleRequestParams,
|
|
480
367
|
observe?: 'response',
|
|
481
368
|
reportProgress?: boolean,
|
|
482
369
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
483
370
|
): Observable<HttpResponse<AppConfigTableEntity>>;
|
|
484
371
|
public httpConfigUpdateSingle(
|
|
485
|
-
requestParameters
|
|
372
|
+
requestParameters: HttpConfigUpdateSingleRequestParams,
|
|
486
373
|
observe?: 'events',
|
|
487
374
|
reportProgress?: boolean,
|
|
488
375
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
489
376
|
): Observable<HttpEvent<AppConfigTableEntity>>;
|
|
490
377
|
public httpConfigUpdateSingle(
|
|
491
|
-
requestParameters
|
|
378
|
+
requestParameters: HttpConfigUpdateSingleRequestParams,
|
|
492
379
|
observe: any = 'body',
|
|
493
380
|
reportProgress: boolean = false,
|
|
494
381
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -504,32 +391,17 @@ export class ConfigurationManagementService {
|
|
|
504
391
|
|
|
505
392
|
let localVarHeaders = this.defaultHeaders;
|
|
506
393
|
|
|
507
|
-
let localVarCredential: string | undefined;
|
|
508
394
|
// authentication (msal_auth) required
|
|
509
|
-
|
|
510
|
-
if (localVarCredential) {
|
|
511
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
512
|
-
}
|
|
395
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
513
396
|
|
|
514
|
-
|
|
515
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
516
|
-
// to determine the Accept header
|
|
517
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
518
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
519
|
-
}
|
|
397
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
520
398
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
521
399
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
522
400
|
}
|
|
523
401
|
|
|
524
|
-
|
|
525
|
-
if (localVarHttpContext === undefined) {
|
|
526
|
-
localVarHttpContext = new HttpContext();
|
|
527
|
-
}
|
|
402
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
528
403
|
|
|
529
|
-
|
|
530
|
-
if (localVarTransferCache === undefined) {
|
|
531
|
-
localVarTransferCache = true;
|
|
532
|
-
}
|
|
404
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
533
405
|
|
|
534
406
|
// to determine the Content-Type header
|
|
535
407
|
const consumes: string[] = ['application/json'];
|
|
@@ -550,11 +422,12 @@ export class ConfigurationManagementService {
|
|
|
550
422
|
}
|
|
551
423
|
|
|
552
424
|
let localVarPath = `/config/${this.configuration.encodeParam({ name: 'key', value: key, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
553
|
-
|
|
425
|
+
const { basePath, withCredentials } = this.configuration;
|
|
426
|
+
return this.httpClient.request<AppConfigTableEntity>('post', `${basePath}${localVarPath}`, {
|
|
554
427
|
context: localVarHttpContext,
|
|
555
428
|
body: appConfigTableEntity,
|
|
556
429
|
responseType: <any>responseType_,
|
|
557
|
-
withCredentials:
|
|
430
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
558
431
|
headers: localVarHeaders,
|
|
559
432
|
observe: observe,
|
|
560
433
|
transferCache: localVarTransferCache,
|