@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
|
@@ -28,6 +28,7 @@ import { SearchResult } from '../model/searchResult.agravity';
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
30
30
|
import { AgravityConfiguration } from '../configuration';
|
|
31
|
+
import { BaseService } from '../api.base.service';
|
|
31
32
|
|
|
32
33
|
export interface HttpAzureDeleteSearchCompletelyRequestParams {
|
|
33
34
|
/** If the search should be redirected to a specific portal. */
|
|
@@ -120,67 +121,13 @@ export interface HttpSearchAdminRunRequestParams {
|
|
|
120
121
|
@Injectable({
|
|
121
122
|
providedIn: 'root'
|
|
122
123
|
})
|
|
123
|
-
export class SearchManagementService {
|
|
124
|
-
protected basePath = 'http://localhost:7071/api';
|
|
125
|
-
public defaultHeaders = new HttpHeaders();
|
|
126
|
-
public configuration = new AgravityConfiguration();
|
|
127
|
-
public encoder: HttpParameterCodec;
|
|
128
|
-
|
|
124
|
+
export class SearchManagementService extends BaseService {
|
|
129
125
|
constructor(
|
|
130
126
|
protected httpClient: HttpClient,
|
|
131
127
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
132
|
-
@Optional() configuration
|
|
128
|
+
@Optional() configuration?: AgravityConfiguration
|
|
133
129
|
) {
|
|
134
|
-
|
|
135
|
-
this.configuration = configuration;
|
|
136
|
-
}
|
|
137
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
138
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
139
|
-
if (firstBasePath != undefined) {
|
|
140
|
-
basePath = firstBasePath;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
if (typeof basePath !== 'string') {
|
|
144
|
-
basePath = this.basePath;
|
|
145
|
-
}
|
|
146
|
-
this.configuration.basePath = basePath;
|
|
147
|
-
}
|
|
148
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// @ts-ignore
|
|
152
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
153
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
154
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
155
|
-
} else {
|
|
156
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
157
|
-
}
|
|
158
|
-
return httpParams;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
162
|
-
if (value == null) {
|
|
163
|
-
return httpParams;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
if (typeof value === 'object') {
|
|
167
|
-
if (Array.isArray(value)) {
|
|
168
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
169
|
-
} else if (value instanceof Date) {
|
|
170
|
-
if (key != null) {
|
|
171
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
172
|
-
} else {
|
|
173
|
-
throw Error('key may not be null if value is Date');
|
|
174
|
-
}
|
|
175
|
-
} else {
|
|
176
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
177
|
-
}
|
|
178
|
-
} else if (key != null) {
|
|
179
|
-
httpParams = httpParams.append(key, value);
|
|
180
|
-
} else {
|
|
181
|
-
throw Error('key may not be null if value is not object or array');
|
|
182
|
-
}
|
|
183
|
-
return httpParams;
|
|
130
|
+
super(basePath, configuration);
|
|
184
131
|
}
|
|
185
132
|
|
|
186
133
|
/**
|
|
@@ -216,38 +163,21 @@ export class SearchManagementService {
|
|
|
216
163
|
const portalId = requestParameters?.portalId;
|
|
217
164
|
|
|
218
165
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
219
|
-
|
|
220
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
221
|
-
}
|
|
166
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
222
167
|
|
|
223
168
|
let localVarHeaders = this.defaultHeaders;
|
|
224
169
|
|
|
225
|
-
let localVarCredential: string | undefined;
|
|
226
170
|
// authentication (msal_auth) required
|
|
227
|
-
|
|
228
|
-
if (localVarCredential) {
|
|
229
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
230
|
-
}
|
|
171
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
231
172
|
|
|
232
|
-
|
|
233
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
234
|
-
// to determine the Accept header
|
|
235
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
236
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
237
|
-
}
|
|
173
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
238
174
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
239
175
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
240
176
|
}
|
|
241
177
|
|
|
242
|
-
|
|
243
|
-
if (localVarHttpContext === undefined) {
|
|
244
|
-
localVarHttpContext = new HttpContext();
|
|
245
|
-
}
|
|
178
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
246
179
|
|
|
247
|
-
|
|
248
|
-
if (localVarTransferCache === undefined) {
|
|
249
|
-
localVarTransferCache = true;
|
|
250
|
-
}
|
|
180
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
251
181
|
|
|
252
182
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
253
183
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -261,11 +191,12 @@ export class SearchManagementService {
|
|
|
261
191
|
}
|
|
262
192
|
|
|
263
193
|
let localVarPath = `/searchadmin/delete`;
|
|
264
|
-
|
|
194
|
+
const { basePath, withCredentials } = this.configuration;
|
|
195
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${basePath}${localVarPath}`, {
|
|
265
196
|
context: localVarHttpContext,
|
|
266
197
|
params: localVarQueryParameters,
|
|
267
198
|
responseType: <any>responseType_,
|
|
268
|
-
withCredentials:
|
|
199
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
269
200
|
headers: localVarHeaders,
|
|
270
201
|
observe: observe,
|
|
271
202
|
transferCache: localVarTransferCache,
|
|
@@ -306,38 +237,21 @@ export class SearchManagementService {
|
|
|
306
237
|
const portalId = requestParameters?.portalId;
|
|
307
238
|
|
|
308
239
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
309
|
-
|
|
310
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
311
|
-
}
|
|
240
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
312
241
|
|
|
313
242
|
let localVarHeaders = this.defaultHeaders;
|
|
314
243
|
|
|
315
|
-
let localVarCredential: string | undefined;
|
|
316
244
|
// authentication (msal_auth) required
|
|
317
|
-
|
|
318
|
-
if (localVarCredential) {
|
|
319
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
320
|
-
}
|
|
245
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
321
246
|
|
|
322
|
-
|
|
323
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
324
|
-
// to determine the Accept header
|
|
325
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
326
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
327
|
-
}
|
|
247
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
328
248
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
329
249
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
330
250
|
}
|
|
331
251
|
|
|
332
|
-
|
|
333
|
-
if (localVarHttpContext === undefined) {
|
|
334
|
-
localVarHttpContext = new HttpContext();
|
|
335
|
-
}
|
|
252
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
336
253
|
|
|
337
|
-
|
|
338
|
-
if (localVarTransferCache === undefined) {
|
|
339
|
-
localVarTransferCache = true;
|
|
340
|
-
}
|
|
254
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
341
255
|
|
|
342
256
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
343
257
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -351,11 +265,12 @@ export class SearchManagementService {
|
|
|
351
265
|
}
|
|
352
266
|
|
|
353
267
|
let localVarPath = `/searchadmin/recreate`;
|
|
354
|
-
|
|
268
|
+
const { basePath, withCredentials } = this.configuration;
|
|
269
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${basePath}${localVarPath}`, {
|
|
355
270
|
context: localVarHttpContext,
|
|
356
271
|
params: localVarQueryParameters,
|
|
357
272
|
responseType: <any>responseType_,
|
|
358
|
-
withCredentials:
|
|
273
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
359
274
|
headers: localVarHeaders,
|
|
360
275
|
observe: observe,
|
|
361
276
|
transferCache: localVarTransferCache,
|
|
@@ -370,25 +285,25 @@ export class SearchManagementService {
|
|
|
370
285
|
* @param reportProgress flag to report request and response progress.
|
|
371
286
|
*/
|
|
372
287
|
public httpGetSearchFacetteByName(
|
|
373
|
-
requestParameters
|
|
288
|
+
requestParameters: HttpGetSearchFacetteByNameRequestParams,
|
|
374
289
|
observe?: 'body',
|
|
375
290
|
reportProgress?: boolean,
|
|
376
291
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
377
292
|
): Observable<SearchFacet>;
|
|
378
293
|
public httpGetSearchFacetteByName(
|
|
379
|
-
requestParameters
|
|
294
|
+
requestParameters: HttpGetSearchFacetteByNameRequestParams,
|
|
380
295
|
observe?: 'response',
|
|
381
296
|
reportProgress?: boolean,
|
|
382
297
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
383
298
|
): Observable<HttpResponse<SearchFacet>>;
|
|
384
299
|
public httpGetSearchFacetteByName(
|
|
385
|
-
requestParameters
|
|
300
|
+
requestParameters: HttpGetSearchFacetteByNameRequestParams,
|
|
386
301
|
observe?: 'events',
|
|
387
302
|
reportProgress?: boolean,
|
|
388
303
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
389
304
|
): Observable<HttpEvent<SearchFacet>>;
|
|
390
305
|
public httpGetSearchFacetteByName(
|
|
391
|
-
requestParameters
|
|
306
|
+
requestParameters: HttpGetSearchFacetteByNameRequestParams,
|
|
392
307
|
observe: any = 'body',
|
|
393
308
|
reportProgress: boolean = false,
|
|
394
309
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -410,62 +325,29 @@ export class SearchManagementService {
|
|
|
410
325
|
const portalId = requestParameters?.portalId;
|
|
411
326
|
|
|
412
327
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
if (collectionid !== undefined && collectionid !== null) {
|
|
423
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectionid, 'collectionid');
|
|
424
|
-
}
|
|
425
|
-
if (mode !== undefined && mode !== null) {
|
|
426
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>mode, 'mode');
|
|
427
|
-
}
|
|
428
|
-
if (filter !== undefined && filter !== null) {
|
|
429
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
430
|
-
}
|
|
431
|
-
if (scopefilter !== undefined && scopefilter !== null) {
|
|
432
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>scopefilter, 'scopefilter');
|
|
433
|
-
}
|
|
434
|
-
if (ids !== undefined && ids !== null) {
|
|
435
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>ids, 'ids');
|
|
436
|
-
}
|
|
437
|
-
if (portalId !== undefined && portalId !== null) {
|
|
438
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
439
|
-
}
|
|
328
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>name, 'name');
|
|
329
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>s, 's');
|
|
330
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectiontypeid, 'collectiontypeid');
|
|
331
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectionid, 'collectionid');
|
|
332
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>mode, 'mode');
|
|
333
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
334
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>scopefilter, 'scopefilter');
|
|
335
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>ids, 'ids');
|
|
336
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
440
337
|
|
|
441
338
|
let localVarHeaders = this.defaultHeaders;
|
|
442
339
|
|
|
443
|
-
let localVarCredential: string | undefined;
|
|
444
340
|
// authentication (msal_auth) required
|
|
445
|
-
|
|
446
|
-
if (localVarCredential) {
|
|
447
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
448
|
-
}
|
|
341
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
449
342
|
|
|
450
|
-
|
|
451
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
452
|
-
// to determine the Accept header
|
|
453
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
454
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
455
|
-
}
|
|
343
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
456
344
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
457
345
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
458
346
|
}
|
|
459
347
|
|
|
460
|
-
|
|
461
|
-
if (localVarHttpContext === undefined) {
|
|
462
|
-
localVarHttpContext = new HttpContext();
|
|
463
|
-
}
|
|
348
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
464
349
|
|
|
465
|
-
|
|
466
|
-
if (localVarTransferCache === undefined) {
|
|
467
|
-
localVarTransferCache = true;
|
|
468
|
-
}
|
|
350
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
469
351
|
|
|
470
352
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
471
353
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -479,11 +361,12 @@ export class SearchManagementService {
|
|
|
479
361
|
}
|
|
480
362
|
|
|
481
363
|
let localVarPath = `/search/facette`;
|
|
482
|
-
|
|
364
|
+
const { basePath, withCredentials } = this.configuration;
|
|
365
|
+
return this.httpClient.request<SearchFacet>('get', `${basePath}${localVarPath}`, {
|
|
483
366
|
context: localVarHttpContext,
|
|
484
367
|
params: localVarQueryParameters,
|
|
485
368
|
responseType: <any>responseType_,
|
|
486
|
-
withCredentials:
|
|
369
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
487
370
|
headers: localVarHeaders,
|
|
488
371
|
observe: observe,
|
|
489
372
|
transferCache: localVarTransferCache,
|
|
@@ -498,25 +381,25 @@ export class SearchManagementService {
|
|
|
498
381
|
* @param reportProgress flag to report request and response progress.
|
|
499
382
|
*/
|
|
500
383
|
public httpGlobalSearch(
|
|
501
|
-
requestParameters
|
|
384
|
+
requestParameters: HttpGlobalSearchRequestParams,
|
|
502
385
|
observe?: 'body',
|
|
503
386
|
reportProgress?: boolean,
|
|
504
387
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
505
388
|
): Observable<SearchResult>;
|
|
506
389
|
public httpGlobalSearch(
|
|
507
|
-
requestParameters
|
|
390
|
+
requestParameters: HttpGlobalSearchRequestParams,
|
|
508
391
|
observe?: 'response',
|
|
509
392
|
reportProgress?: boolean,
|
|
510
393
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
511
394
|
): Observable<HttpResponse<SearchResult>>;
|
|
512
395
|
public httpGlobalSearch(
|
|
513
|
-
requestParameters
|
|
396
|
+
requestParameters: HttpGlobalSearchRequestParams,
|
|
514
397
|
observe?: 'events',
|
|
515
398
|
reportProgress?: boolean,
|
|
516
399
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
517
400
|
): Observable<HttpEvent<SearchResult>>;
|
|
518
401
|
public httpGlobalSearch(
|
|
519
|
-
requestParameters
|
|
402
|
+
requestParameters: HttpGlobalSearchRequestParams,
|
|
520
403
|
observe: any = 'body',
|
|
521
404
|
reportProgress: boolean = false,
|
|
522
405
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -542,83 +425,38 @@ export class SearchManagementService {
|
|
|
542
425
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
543
426
|
|
|
544
427
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
if (mode !== undefined && mode !== null) {
|
|
561
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>mode, 'mode');
|
|
562
|
-
}
|
|
563
|
-
if (expose !== undefined && expose !== null) {
|
|
564
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>expose, 'expose');
|
|
565
|
-
}
|
|
566
|
-
if (filter !== undefined && filter !== null) {
|
|
567
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
568
|
-
}
|
|
569
|
-
if (broadness !== undefined && broadness !== null) {
|
|
570
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>broadness, 'broadness');
|
|
571
|
-
}
|
|
572
|
-
if (relId !== undefined && relId !== null) {
|
|
573
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>relId, 'rel_id');
|
|
574
|
-
}
|
|
575
|
-
if (scopefilter !== undefined && scopefilter !== null) {
|
|
576
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>scopefilter, 'scopefilter');
|
|
577
|
-
}
|
|
578
|
-
if (orderby !== undefined && orderby !== null) {
|
|
579
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>orderby, 'orderby');
|
|
580
|
-
}
|
|
581
|
-
if (ids !== undefined && ids !== null) {
|
|
582
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>ids, 'ids');
|
|
583
|
-
}
|
|
584
|
-
if (portalId !== undefined && portalId !== null) {
|
|
585
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
586
|
-
}
|
|
587
|
-
if (translations !== undefined && translations !== null) {
|
|
588
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
589
|
-
}
|
|
428
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>s, 's');
|
|
429
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>limit, 'limit');
|
|
430
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>skip, 'skip');
|
|
431
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectiontypeid, 'collectiontypeid');
|
|
432
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectionid, 'collectionid');
|
|
433
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>mode, 'mode');
|
|
434
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>expose, 'expose');
|
|
435
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
436
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>broadness, 'broadness');
|
|
437
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>relId, 'rel_id');
|
|
438
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>scopefilter, 'scopefilter');
|
|
439
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>orderby, 'orderby');
|
|
440
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>ids, 'ids');
|
|
441
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
442
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
590
443
|
|
|
591
444
|
let localVarHeaders = this.defaultHeaders;
|
|
592
445
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
593
446
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
594
447
|
}
|
|
595
448
|
|
|
596
|
-
let localVarCredential: string | undefined;
|
|
597
449
|
// authentication (msal_auth) required
|
|
598
|
-
|
|
599
|
-
if (localVarCredential) {
|
|
600
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
601
|
-
}
|
|
450
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
602
451
|
|
|
603
|
-
|
|
604
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
605
|
-
// to determine the Accept header
|
|
606
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
607
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
608
|
-
}
|
|
452
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
609
453
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
610
454
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
611
455
|
}
|
|
612
456
|
|
|
613
|
-
|
|
614
|
-
if (localVarHttpContext === undefined) {
|
|
615
|
-
localVarHttpContext = new HttpContext();
|
|
616
|
-
}
|
|
457
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
617
458
|
|
|
618
|
-
|
|
619
|
-
if (localVarTransferCache === undefined) {
|
|
620
|
-
localVarTransferCache = true;
|
|
621
|
-
}
|
|
459
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
622
460
|
|
|
623
461
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
624
462
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -632,11 +470,12 @@ export class SearchManagementService {
|
|
|
632
470
|
}
|
|
633
471
|
|
|
634
472
|
let localVarPath = `/search`;
|
|
635
|
-
|
|
473
|
+
const { basePath, withCredentials } = this.configuration;
|
|
474
|
+
return this.httpClient.request<SearchResult>('get', `${basePath}${localVarPath}`, {
|
|
636
475
|
context: localVarHttpContext,
|
|
637
476
|
params: localVarQueryParameters,
|
|
638
477
|
responseType: <any>responseType_,
|
|
639
|
-
withCredentials:
|
|
478
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
640
479
|
headers: localVarHeaders,
|
|
641
480
|
observe: observe,
|
|
642
481
|
transferCache: localVarTransferCache,
|
|
@@ -677,38 +516,21 @@ export class SearchManagementService {
|
|
|
677
516
|
const portalId = requestParameters?.portalId;
|
|
678
517
|
|
|
679
518
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
680
|
-
|
|
681
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
682
|
-
}
|
|
519
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
683
520
|
|
|
684
521
|
let localVarHeaders = this.defaultHeaders;
|
|
685
522
|
|
|
686
|
-
let localVarCredential: string | undefined;
|
|
687
523
|
// authentication (msal_auth) required
|
|
688
|
-
|
|
689
|
-
if (localVarCredential) {
|
|
690
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
691
|
-
}
|
|
524
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
692
525
|
|
|
693
|
-
|
|
694
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
695
|
-
// to determine the Accept header
|
|
696
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
697
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
698
|
-
}
|
|
526
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
699
527
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
700
528
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
701
529
|
}
|
|
702
530
|
|
|
703
|
-
|
|
704
|
-
if (localVarHttpContext === undefined) {
|
|
705
|
-
localVarHttpContext = new HttpContext();
|
|
706
|
-
}
|
|
531
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
707
532
|
|
|
708
|
-
|
|
709
|
-
if (localVarTransferCache === undefined) {
|
|
710
|
-
localVarTransferCache = true;
|
|
711
|
-
}
|
|
533
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
712
534
|
|
|
713
535
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
714
536
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -722,11 +544,12 @@ export class SearchManagementService {
|
|
|
722
544
|
}
|
|
723
545
|
|
|
724
546
|
let localVarPath = `/searchadmin/clean`;
|
|
725
|
-
|
|
547
|
+
const { basePath, withCredentials } = this.configuration;
|
|
548
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${basePath}${localVarPath}`, {
|
|
726
549
|
context: localVarHttpContext,
|
|
727
550
|
params: localVarQueryParameters,
|
|
728
551
|
responseType: <any>responseType_,
|
|
729
|
-
withCredentials:
|
|
552
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
730
553
|
headers: localVarHeaders,
|
|
731
554
|
observe: observe,
|
|
732
555
|
transferCache: localVarTransferCache,
|
|
@@ -741,25 +564,25 @@ export class SearchManagementService {
|
|
|
741
564
|
* @param reportProgress flag to report request and response progress.
|
|
742
565
|
*/
|
|
743
566
|
public httpPatchReIndexAssets(
|
|
744
|
-
requestParameters
|
|
567
|
+
requestParameters: HttpPatchReIndexAssetsRequestParams,
|
|
745
568
|
observe?: 'body',
|
|
746
569
|
reportProgress?: boolean,
|
|
747
570
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
748
571
|
): Observable<AgravityInfoResponse>;
|
|
749
572
|
public httpPatchReIndexAssets(
|
|
750
|
-
requestParameters
|
|
573
|
+
requestParameters: HttpPatchReIndexAssetsRequestParams,
|
|
751
574
|
observe?: 'response',
|
|
752
575
|
reportProgress?: boolean,
|
|
753
576
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
754
577
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
755
578
|
public httpPatchReIndexAssets(
|
|
756
|
-
requestParameters
|
|
579
|
+
requestParameters: HttpPatchReIndexAssetsRequestParams,
|
|
757
580
|
observe?: 'events',
|
|
758
581
|
reportProgress?: boolean,
|
|
759
582
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
760
583
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
761
584
|
public httpPatchReIndexAssets(
|
|
762
|
-
requestParameters
|
|
585
|
+
requestParameters: HttpPatchReIndexAssetsRequestParams,
|
|
763
586
|
observe: any = 'body',
|
|
764
587
|
reportProgress: boolean = false,
|
|
765
588
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -771,32 +594,17 @@ export class SearchManagementService {
|
|
|
771
594
|
|
|
772
595
|
let localVarHeaders = this.defaultHeaders;
|
|
773
596
|
|
|
774
|
-
let localVarCredential: string | undefined;
|
|
775
597
|
// authentication (msal_auth) required
|
|
776
|
-
|
|
777
|
-
if (localVarCredential) {
|
|
778
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
779
|
-
}
|
|
598
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
780
599
|
|
|
781
|
-
|
|
782
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
783
|
-
// to determine the Accept header
|
|
784
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
785
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
786
|
-
}
|
|
600
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
787
601
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
788
602
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
789
603
|
}
|
|
790
604
|
|
|
791
|
-
|
|
792
|
-
if (localVarHttpContext === undefined) {
|
|
793
|
-
localVarHttpContext = new HttpContext();
|
|
794
|
-
}
|
|
605
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
795
606
|
|
|
796
|
-
|
|
797
|
-
if (localVarTransferCache === undefined) {
|
|
798
|
-
localVarTransferCache = true;
|
|
799
|
-
}
|
|
607
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
800
608
|
|
|
801
609
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
802
610
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -810,10 +618,11 @@ export class SearchManagementService {
|
|
|
810
618
|
}
|
|
811
619
|
|
|
812
620
|
let localVarPath = `/searchadmin/reindex/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
813
|
-
|
|
621
|
+
const { basePath, withCredentials } = this.configuration;
|
|
622
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${basePath}${localVarPath}`, {
|
|
814
623
|
context: localVarHttpContext,
|
|
815
624
|
responseType: <any>responseType_,
|
|
816
|
-
withCredentials:
|
|
625
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
817
626
|
headers: localVarHeaders,
|
|
818
627
|
observe: observe,
|
|
819
628
|
transferCache: localVarTransferCache,
|
|
@@ -855,41 +664,22 @@ export class SearchManagementService {
|
|
|
855
664
|
const full = requestParameters?.full;
|
|
856
665
|
|
|
857
666
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
}
|
|
861
|
-
if (full !== undefined && full !== null) {
|
|
862
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>full, 'full');
|
|
863
|
-
}
|
|
667
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
668
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>full, 'full');
|
|
864
669
|
|
|
865
670
|
let localVarHeaders = this.defaultHeaders;
|
|
866
671
|
|
|
867
|
-
let localVarCredential: string | undefined;
|
|
868
672
|
// authentication (msal_auth) required
|
|
869
|
-
|
|
870
|
-
if (localVarCredential) {
|
|
871
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
872
|
-
}
|
|
673
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
873
674
|
|
|
874
|
-
|
|
875
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
876
|
-
// to determine the Accept header
|
|
877
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
878
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
879
|
-
}
|
|
675
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
880
676
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
881
677
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
882
678
|
}
|
|
883
679
|
|
|
884
|
-
|
|
885
|
-
if (localVarHttpContext === undefined) {
|
|
886
|
-
localVarHttpContext = new HttpContext();
|
|
887
|
-
}
|
|
680
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
888
681
|
|
|
889
|
-
|
|
890
|
-
if (localVarTransferCache === undefined) {
|
|
891
|
-
localVarTransferCache = true;
|
|
892
|
-
}
|
|
682
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
893
683
|
|
|
894
684
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
895
685
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -903,11 +693,12 @@ export class SearchManagementService {
|
|
|
903
693
|
}
|
|
904
694
|
|
|
905
695
|
let localVarPath = `/searchadmin/status`;
|
|
906
|
-
|
|
696
|
+
const { basePath, withCredentials } = this.configuration;
|
|
697
|
+
return this.httpClient.request<SearchAdminStatus>('get', `${basePath}${localVarPath}`, {
|
|
907
698
|
context: localVarHttpContext,
|
|
908
699
|
params: localVarQueryParameters,
|
|
909
700
|
responseType: <any>responseType_,
|
|
910
|
-
withCredentials:
|
|
701
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
911
702
|
headers: localVarHeaders,
|
|
912
703
|
observe: observe,
|
|
913
704
|
transferCache: localVarTransferCache,
|
|
@@ -948,38 +739,21 @@ export class SearchManagementService {
|
|
|
948
739
|
const portalId = requestParameters?.portalId;
|
|
949
740
|
|
|
950
741
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
951
|
-
|
|
952
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
953
|
-
}
|
|
742
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
954
743
|
|
|
955
744
|
let localVarHeaders = this.defaultHeaders;
|
|
956
745
|
|
|
957
|
-
let localVarCredential: string | undefined;
|
|
958
746
|
// authentication (msal_auth) required
|
|
959
|
-
|
|
960
|
-
if (localVarCredential) {
|
|
961
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
962
|
-
}
|
|
747
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
963
748
|
|
|
964
|
-
|
|
965
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
966
|
-
// to determine the Accept header
|
|
967
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
968
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
969
|
-
}
|
|
749
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
970
750
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
971
751
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
972
752
|
}
|
|
973
753
|
|
|
974
|
-
|
|
975
|
-
if (localVarHttpContext === undefined) {
|
|
976
|
-
localVarHttpContext = new HttpContext();
|
|
977
|
-
}
|
|
754
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
978
755
|
|
|
979
|
-
|
|
980
|
-
if (localVarTransferCache === undefined) {
|
|
981
|
-
localVarTransferCache = true;
|
|
982
|
-
}
|
|
756
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
983
757
|
|
|
984
758
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
985
759
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -993,11 +767,12 @@ export class SearchManagementService {
|
|
|
993
767
|
}
|
|
994
768
|
|
|
995
769
|
let localVarPath = `/searchadmin/run`;
|
|
996
|
-
|
|
770
|
+
const { basePath, withCredentials } = this.configuration;
|
|
771
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${basePath}${localVarPath}`, {
|
|
997
772
|
context: localVarHttpContext,
|
|
998
773
|
params: localVarQueryParameters,
|
|
999
774
|
responseType: <any>responseType_,
|
|
1000
|
-
withCredentials:
|
|
775
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1001
776
|
headers: localVarHeaders,
|
|
1002
777
|
observe: observe,
|
|
1003
778
|
transferCache: localVarTransferCache,
|