@agravity/private 7.3.0 → 8.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 +1 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -4
- package/api/assetIconRuleManagement.agravity.ts +344 -150
- package/api/assetManagement.agravity.ts +709 -389
- package/api/assetOperations.agravity.ts +1414 -650
- package/api/assetPublishing.agravity.ts +562 -255
- package/api/assetVersioning.agravity.ts +598 -278
- package/api/authenticationManagement.agravity.ts +731 -274
- package/api/collectionManagement.agravity.ts +618 -309
- package/api/collectionShareManagement.agravity.ts +256 -121
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +271 -123
- package/api/collectionTypeManagement.agravity.ts +519 -250
- package/api/commentsManagement.agravity.ts +284 -90
- package/api/configurationManagement.agravity.ts +311 -128
- package/api/dashboardWidgetManagement.agravity.ts +342 -124
- package/api/dataImportExportManagement.agravity.ts +378 -148
- package/api/downloadFormatManagement.agravity.ts +450 -152
- package/api/downloadZip.agravity.ts +75 -30
- package/api/generalManagement.agravity.ts +374 -164
- package/api/helperTools.agravity.ts +804 -273
- package/api/historyEntryManagement.agravity.ts +75 -33
- package/api/iccProfileManagement.agravity.ts +64 -23
- package/api/listBlobs.agravity.ts +125 -47
- package/api/listQueues.agravity.ts +68 -24
- package/api/listTables.agravity.ts +68 -25
- package/api/permissionsManagement.agravity.ts +174 -77
- package/api/portalManagement.agravity.ts +511 -198
- package/api/publishing.agravity.ts +69 -38
- package/api/quickshareManagement.agravity.ts +349 -138
- package/api/savedSearchManagement.agravity.ts +205 -92
- package/api/searchManagement.agravity.ts +517 -297
- package/api/secureUpload.agravity.ts +325 -126
- package/api/signalRConnectionManagement.agravity.ts +175 -56
- package/api/staticDefinedListManagement.agravity.ts +342 -162
- package/api/stockImport.agravity.ts +138 -74
- package/api/structureImport.agravity.ts +68 -25
- package/api/translationManagement.agravity.ts +357 -206
- package/api/webAppData.agravity.ts +278 -88
- package/api/widgetLayoutManagement.agravity.ts +131 -47
- package/api/wordpressManagement.agravity.ts +152 -108
- package/api/workspaceManagement.agravity.ts +456 -197
- package/api.module.ts +0 -40
- package/configuration.ts +42 -0
- package/git_push.sh +3 -4
- package/index.ts +1 -0
- package/model/agravityErrorResponse.agravity.ts +3 -4
- package/model/agravityInfoResponse.agravity.ts +3 -4
- package/model/agravityUser.agravity.ts +16 -17
- package/model/agravityUserDto.agravity.ts +3 -4
- package/model/agravityVersion.agravity.ts +8 -9
- package/model/allWebAppData.agravity.ts +4 -5
- package/model/apiKeyResponse.agravity.ts +2 -3
- package/model/appConfigTableEntity.agravity.ts +8 -9
- package/model/artificialIntelligenceGroup.agravity.ts +3 -4
- package/model/asset.agravity.ts +22 -23
- package/model/assetAvailability.agravity.ts +1 -2
- package/model/assetBlob.agravity.ts +27 -28
- package/model/assetBulkUpdate.agravity.ts +2 -3
- package/model/assetCollectionLink.agravity.ts +2 -3
- package/model/assetIconRule.agravity.ts +17 -18
- package/model/assetIdFormat.agravity.ts +3 -4
- package/model/assetPageResult.agravity.ts +4 -5
- package/model/assetTextContent.agravity.ts +2 -3
- package/model/assetsOperationBody.agravity.ts +3 -4
- package/model/azSearchOptions.agravity.ts +8 -9
- package/model/azureIdentity.agravity.ts +4 -5
- package/model/blobInfoObj.agravity.ts +0 -1
- package/model/collTypeItem.agravity.ts +16 -17
- package/model/collTypeItemBlueprint.agravity.ts +12 -13
- package/model/collection.agravity.ts +15 -16
- package/model/collectionType.agravity.ts +14 -15
- package/model/collectionUDL.agravity.ts +4 -5
- package/model/collectionUDLListEntity.agravity.ts +9 -10
- package/model/collectionUDLReference.agravity.ts +3 -4
- package/model/comment.agravity.ts +9 -10
- package/model/createSftpUserResult.agravity.ts +2 -3
- package/model/dashboardWidget.agravity.ts +11 -12
- package/model/dataResult.agravity.ts +4 -5
- package/model/deletedEntities.agravity.ts +4 -5
- package/model/distZipResponse.agravity.ts +3 -4
- package/model/downloadFormat.agravity.ts +19 -16
- package/model/downloadObject.agravity.ts +16 -16
- package/model/downloadZipRequest.agravity.ts +9 -10
- package/model/dynamicImageOperation.agravity.ts +2 -3
- package/model/emailAddress.agravity.ts +2 -3
- package/model/entityId.agravity.ts +1 -2
- package/model/entityIdName.agravity.ts +3 -4
- package/model/entityTranslations.agravity.ts +2 -3
- package/model/excelExportTableEntity.agravity.ts +5 -5
- package/model/frontendAppConfig.agravity.ts +0 -1
- package/model/groupAllAppData.agravity.ts +5 -6
- package/model/historyEntry.agravity.ts +9 -10
- package/model/infoEntitySkillEnhanced.agravity.ts +10 -11
- package/model/metadata.agravity.ts +3 -4
- package/model/models.ts +0 -1
- package/model/moveCollectionBody.agravity.ts +3 -4
- package/model/permissionChange.agravity.ts +1 -2
- package/model/permissionEntity.agravity.ts +1 -2
- package/model/permissionSetting.agravity.ts +8 -9
- package/model/portal.agravity.ts +18 -20
- package/model/portalLinks.agravity.ts +3 -4
- package/model/portalTheme.agravity.ts +6 -7
- package/model/portalZipRequest.agravity.ts +14 -15
- package/model/publishEntity.agravity.ts +9 -10
- package/model/publishedAsset.agravity.ts +12 -13
- package/model/quickShare.agravity.ts +12 -13
- package/model/quickShareFull.agravity.ts +15 -16
- package/model/sasToken.agravity.ts +6 -7
- package/model/savedSearch.agravity.ts +13 -14
- package/model/searchAdminDataSourceStatus.agravity.ts +2 -3
- package/model/searchAdminIndexStatus.agravity.ts +3 -4
- package/model/searchAdminIndexerLastRun.agravity.ts +3 -4
- package/model/searchAdminIndexerStatus.agravity.ts +4 -5
- package/model/searchAdminSkillStatus.agravity.ts +2 -3
- package/model/searchAdminStatistics.agravity.ts +2 -3
- package/model/searchAdminStatus.agravity.ts +4 -5
- package/model/searchFacet.agravity.ts +2 -3
- package/model/searchFacetEntity.agravity.ts +2 -3
- package/model/searchResult.agravity.ts +3 -4
- package/model/searchableItem.agravity.ts +3 -4
- package/model/secureUploadEntity.agravity.ts +10 -11
- package/model/sharedAllowedFormat.agravity.ts +2 -3
- package/model/sharedAsset.agravity.ts +5 -6
- package/model/sharedCollection.agravity.ts +15 -16
- package/model/sharedCollectionFull.agravity.ts +18 -19
- package/model/signalRConnectionInfo.agravity.ts +0 -1
- package/model/simpleAsset.agravity.ts +10 -11
- package/model/staticDefinedList.agravity.ts +12 -13
- package/model/translation.agravity.ts +2 -3
- package/model/translationRequest.agravity.ts +3 -4
- package/model/uiTutorials.agravity.ts +0 -1
- package/model/versionEntity.agravity.ts +9 -10
- package/model/versionedAsset.agravity.ts +5 -6
- package/model/whereParam.agravity.ts +0 -1
- package/model/widgetLayout.agravity.ts +8 -9
- package/model/widgetProperties.agravity.ts +6 -7
- package/model/workspace.agravity.ts +14 -15
- package/package.json +16 -17
- package/param.ts +44 -0
- package/model/portalLanguages.agravity.ts +0 -16
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Agravity OpenAPI Documentation - Private Functions
|
|
3
3
|
* <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.3.0
|
|
6
5
|
* Contact: office@agravity.io
|
|
7
6
|
*
|
|
8
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,19 +11,100 @@
|
|
|
12
11
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
12
|
|
|
14
13
|
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
-
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
14
|
+
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
16
15
|
import { CustomHttpParameterCodec } from '../encoder';
|
|
17
16
|
import { Observable } from 'rxjs';
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { AgravityInfoResponse } from '../model/agravityInfoResponse.agravity';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { SearchAdminStatus } from '../model/searchAdminStatus.agravity';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { SearchFacet } from '../model/searchFacet.agravity';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { SearchResult } from '../model/searchResult.agravity';
|
|
28
|
+
|
|
29
|
+
// @ts-ignore
|
|
25
30
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
26
31
|
import { AgravityConfiguration } from '../configuration';
|
|
27
32
|
|
|
33
|
+
export interface HttpAzureDeleteSearchCompletelyRequestParams {
|
|
34
|
+
/** If the search should be redirected to a specific portal. */
|
|
35
|
+
portalId?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface HttpAzureRecreateGlobalIndexRequestParams {
|
|
39
|
+
/** If the search should be redirected to a specific portal. */
|
|
40
|
+
portalId?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface HttpGetSearchFacetteByNameRequestParams {
|
|
44
|
+
/** The name of the facette. */
|
|
45
|
+
name: string;
|
|
46
|
+
/** The search string which should be found. */
|
|
47
|
+
s: string;
|
|
48
|
+
/** Limits the result on all collections from the given collectiontypeid parameter. */
|
|
49
|
+
collectiontypeid?: string;
|
|
50
|
+
/** Limits the result on collection id (and siblings). Will be overwritten by collectiontypeid parameter. */
|
|
51
|
+
collectionid?: string;
|
|
52
|
+
/** Two modes supported: \"any\" or \"all\" search terms should be applied. (Only if Azure Search is enabled) */
|
|
53
|
+
mode?: string;
|
|
54
|
+
/** Key value filter for filterable strings and string collections separated by special \',,,\'. For date or numbers \"<\", \"=\" and \">\" are possible. Mode influences AND (all) and OR (any) of all filters. Multiple filters are separated by semicolons. (Only if Azure Search is enabled) */
|
|
55
|
+
filter?: string;
|
|
56
|
+
/** Comma separated values list with all ids which should be returned. */
|
|
57
|
+
ids?: string;
|
|
58
|
+
/** If the search should be redirected to a specific portal. */
|
|
59
|
+
portalId?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface HttpGlobalSearchRequestParams {
|
|
63
|
+
/** The search string which should be found. */
|
|
64
|
+
s: string;
|
|
65
|
+
/** How many results should be returend. 0 is backend configuration limit. */
|
|
66
|
+
limit?: number;
|
|
67
|
+
/** (default: 0) - Used for paging - how many items should be skipped before next limit results will be fetched. */
|
|
68
|
+
skip?: number;
|
|
69
|
+
/** Limits the result on all collections from the given collectiontypeid parameter. */
|
|
70
|
+
collectiontypeid?: string;
|
|
71
|
+
/** Limits the result on collection id (and siblings). Will be overwritten by collectiontypeid parameter. */
|
|
72
|
+
collectionid?: string;
|
|
73
|
+
/** Two modes supported: \"any\" or \"all\" search terms should be applied. (Only if Azure Search is enabled) */
|
|
74
|
+
mode?: string;
|
|
75
|
+
/** This will expose the thumbnail asset blob incl. URL with SAS Token. */
|
|
76
|
+
expose?: boolean;
|
|
77
|
+
/** Key value filter for filterable strings and string collections separated by special \',,,\'. For date or numbers \"<\", \"=\" and \">\" are possible. Mode influences AND (all) and OR (any) of all filters. Multiple filters are separated by semicolons. (Only if Azure Search is enabled) */
|
|
78
|
+
filter?: string;
|
|
79
|
+
/** Sortable fields can be used. For descendant sorting use leading \"!\". (Only if Azure Search is enabled) */
|
|
80
|
+
orderby?: string;
|
|
81
|
+
/** Comma separated values list with all ids which should be returned. */
|
|
82
|
+
ids?: string;
|
|
83
|
+
/** If the search should be redirected to a specific portal. */
|
|
84
|
+
portalId?: string;
|
|
85
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
86
|
+
translations?: boolean;
|
|
87
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
88
|
+
acceptLanguage?: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface HttpPatchCleanSearchFromDeletedAssetsRequestParams {
|
|
92
|
+
/** If the search should be redirected to a specific portal. */
|
|
93
|
+
portalId?: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface HttpPatchReIndexAssetsRequestParams {
|
|
97
|
+
/** The ID of the entity (collection type, collection or asset). */
|
|
98
|
+
id: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface HttpSearchAdminGetStatusRequestParams {
|
|
102
|
+
/** If the search should be redirected to a specific portal. */
|
|
103
|
+
portalId?: string;
|
|
104
|
+
/** If all information is needed (incl. datasource, etc.). */
|
|
105
|
+
full?: boolean;
|
|
106
|
+
}
|
|
107
|
+
|
|
28
108
|
@Injectable({
|
|
29
109
|
providedIn: 'root'
|
|
30
110
|
})
|
|
@@ -36,13 +116,18 @@ export class SearchManagementService {
|
|
|
36
116
|
|
|
37
117
|
constructor(
|
|
38
118
|
protected httpClient: HttpClient,
|
|
39
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
119
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
40
120
|
@Optional() configuration: AgravityConfiguration
|
|
41
121
|
) {
|
|
42
122
|
if (configuration) {
|
|
43
123
|
this.configuration = configuration;
|
|
44
124
|
}
|
|
45
125
|
if (typeof this.configuration.basePath !== 'string') {
|
|
126
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
127
|
+
if (firstBasePath != undefined) {
|
|
128
|
+
basePath = firstBasePath;
|
|
129
|
+
}
|
|
130
|
+
|
|
46
131
|
if (typeof basePath !== 'string') {
|
|
47
132
|
basePath = this.basePath;
|
|
48
133
|
}
|
|
@@ -51,6 +136,7 @@ export class SearchManagementService {
|
|
|
51
136
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
52
137
|
}
|
|
53
138
|
|
|
139
|
+
// @ts-ignore
|
|
54
140
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
55
141
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
56
142
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -70,7 +156,7 @@ export class SearchManagementService {
|
|
|
70
156
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
71
157
|
} else if (value instanceof Date) {
|
|
72
158
|
if (key != null) {
|
|
73
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
159
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
74
160
|
} else {
|
|
75
161
|
throw Error('key may not be null if value is Date');
|
|
76
162
|
}
|
|
@@ -87,582 +173,716 @@ export class SearchManagementService {
|
|
|
87
173
|
|
|
88
174
|
/**
|
|
89
175
|
* This endpoint deletes the index, indexes and data source connection. Has to be recreated with recreate endpoint.
|
|
90
|
-
* @param
|
|
176
|
+
* @param requestParameters
|
|
91
177
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
92
178
|
* @param reportProgress flag to report request and response progress.
|
|
93
179
|
*/
|
|
94
|
-
public httpAzureDeleteSearchCompletely(portalId?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
|
|
95
180
|
public httpAzureDeleteSearchCompletely(
|
|
96
|
-
|
|
181
|
+
requestParameters?: HttpAzureDeleteSearchCompletelyRequestParams,
|
|
182
|
+
observe?: 'body',
|
|
183
|
+
reportProgress?: boolean,
|
|
184
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
185
|
+
): Observable<AgravityInfoResponse>;
|
|
186
|
+
public httpAzureDeleteSearchCompletely(
|
|
187
|
+
requestParameters?: HttpAzureDeleteSearchCompletelyRequestParams,
|
|
97
188
|
observe?: 'response',
|
|
98
189
|
reportProgress?: boolean,
|
|
99
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
190
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
100
191
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
101
192
|
public httpAzureDeleteSearchCompletely(
|
|
102
|
-
|
|
193
|
+
requestParameters?: HttpAzureDeleteSearchCompletelyRequestParams,
|
|
103
194
|
observe?: 'events',
|
|
104
195
|
reportProgress?: boolean,
|
|
105
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
196
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
106
197
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
107
|
-
public httpAzureDeleteSearchCompletely(
|
|
108
|
-
|
|
198
|
+
public httpAzureDeleteSearchCompletely(
|
|
199
|
+
requestParameters?: HttpAzureDeleteSearchCompletelyRequestParams,
|
|
200
|
+
observe: any = 'body',
|
|
201
|
+
reportProgress: boolean = false,
|
|
202
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
203
|
+
): Observable<any> {
|
|
204
|
+
const portalId = requestParameters?.portalId;
|
|
205
|
+
|
|
206
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
109
207
|
if (portalId !== undefined && portalId !== null) {
|
|
110
|
-
|
|
208
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
111
209
|
}
|
|
112
210
|
|
|
113
|
-
let
|
|
211
|
+
let localVarHeaders = this.defaultHeaders;
|
|
114
212
|
|
|
115
|
-
let
|
|
213
|
+
let localVarCredential: string | undefined;
|
|
116
214
|
// authentication (msal_auth) required
|
|
117
|
-
|
|
118
|
-
if (
|
|
119
|
-
|
|
215
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
216
|
+
if (localVarCredential) {
|
|
217
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
120
218
|
}
|
|
121
219
|
|
|
122
|
-
let
|
|
123
|
-
if (
|
|
220
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
221
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
124
222
|
// to determine the Accept header
|
|
125
223
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
126
|
-
|
|
224
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
225
|
+
}
|
|
226
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
227
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
127
228
|
}
|
|
128
|
-
|
|
129
|
-
|
|
229
|
+
|
|
230
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
231
|
+
if (localVarHttpContext === undefined) {
|
|
232
|
+
localVarHttpContext = new HttpContext();
|
|
130
233
|
}
|
|
131
234
|
|
|
132
|
-
let
|
|
133
|
-
if (
|
|
134
|
-
|
|
235
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
236
|
+
if (localVarTransferCache === undefined) {
|
|
237
|
+
localVarTransferCache = true;
|
|
135
238
|
}
|
|
136
239
|
|
|
137
|
-
|
|
138
|
-
|
|
240
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
241
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
242
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
243
|
+
responseType_ = 'text';
|
|
244
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
245
|
+
responseType_ = 'json';
|
|
246
|
+
} else {
|
|
247
|
+
responseType_ = 'blob';
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
let localVarPath = `/searchadmin/delete`;
|
|
252
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
253
|
+
context: localVarHttpContext,
|
|
254
|
+
params: localVarQueryParameters,
|
|
139
255
|
responseType: <any>responseType_,
|
|
140
256
|
withCredentials: this.configuration.withCredentials,
|
|
141
|
-
headers:
|
|
257
|
+
headers: localVarHeaders,
|
|
142
258
|
observe: observe,
|
|
259
|
+
transferCache: localVarTransferCache,
|
|
143
260
|
reportProgress: reportProgress
|
|
144
261
|
});
|
|
145
262
|
}
|
|
146
263
|
|
|
147
264
|
/**
|
|
148
265
|
* This endpoint recreates the index and creates the indexes, skillset and data source connection if not existing
|
|
149
|
-
* @param
|
|
266
|
+
* @param requestParameters
|
|
150
267
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
151
268
|
* @param reportProgress flag to report request and response progress.
|
|
152
269
|
*/
|
|
153
|
-
public httpAzureRecreateGlobalIndex(portalId?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
|
|
154
270
|
public httpAzureRecreateGlobalIndex(
|
|
155
|
-
|
|
271
|
+
requestParameters?: HttpAzureRecreateGlobalIndexRequestParams,
|
|
272
|
+
observe?: 'body',
|
|
273
|
+
reportProgress?: boolean,
|
|
274
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
275
|
+
): Observable<AgravityInfoResponse>;
|
|
276
|
+
public httpAzureRecreateGlobalIndex(
|
|
277
|
+
requestParameters?: HttpAzureRecreateGlobalIndexRequestParams,
|
|
156
278
|
observe?: 'response',
|
|
157
279
|
reportProgress?: boolean,
|
|
158
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
280
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
159
281
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
160
282
|
public httpAzureRecreateGlobalIndex(
|
|
161
|
-
|
|
283
|
+
requestParameters?: HttpAzureRecreateGlobalIndexRequestParams,
|
|
162
284
|
observe?: 'events',
|
|
163
285
|
reportProgress?: boolean,
|
|
164
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
286
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
165
287
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
166
|
-
public httpAzureRecreateGlobalIndex(
|
|
167
|
-
|
|
288
|
+
public httpAzureRecreateGlobalIndex(
|
|
289
|
+
requestParameters?: HttpAzureRecreateGlobalIndexRequestParams,
|
|
290
|
+
observe: any = 'body',
|
|
291
|
+
reportProgress: boolean = false,
|
|
292
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
293
|
+
): Observable<any> {
|
|
294
|
+
const portalId = requestParameters?.portalId;
|
|
295
|
+
|
|
296
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
168
297
|
if (portalId !== undefined && portalId !== null) {
|
|
169
|
-
|
|
298
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
170
299
|
}
|
|
171
300
|
|
|
172
|
-
let
|
|
301
|
+
let localVarHeaders = this.defaultHeaders;
|
|
173
302
|
|
|
174
|
-
let
|
|
303
|
+
let localVarCredential: string | undefined;
|
|
175
304
|
// authentication (msal_auth) required
|
|
176
|
-
|
|
177
|
-
if (
|
|
178
|
-
|
|
305
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
306
|
+
if (localVarCredential) {
|
|
307
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
179
308
|
}
|
|
180
309
|
|
|
181
|
-
let
|
|
182
|
-
if (
|
|
310
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
311
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
183
312
|
// to determine the Accept header
|
|
184
313
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
185
|
-
|
|
314
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
186
315
|
}
|
|
187
|
-
if (
|
|
188
|
-
|
|
316
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
317
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
189
318
|
}
|
|
190
319
|
|
|
191
|
-
let
|
|
192
|
-
if (
|
|
193
|
-
|
|
320
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
321
|
+
if (localVarHttpContext === undefined) {
|
|
322
|
+
localVarHttpContext = new HttpContext();
|
|
194
323
|
}
|
|
195
324
|
|
|
196
|
-
|
|
197
|
-
|
|
325
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
326
|
+
if (localVarTransferCache === undefined) {
|
|
327
|
+
localVarTransferCache = true;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
331
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
332
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
333
|
+
responseType_ = 'text';
|
|
334
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
335
|
+
responseType_ = 'json';
|
|
336
|
+
} else {
|
|
337
|
+
responseType_ = 'blob';
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
let localVarPath = `/searchadmin/recreate`;
|
|
342
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
343
|
+
context: localVarHttpContext,
|
|
344
|
+
params: localVarQueryParameters,
|
|
198
345
|
responseType: <any>responseType_,
|
|
199
346
|
withCredentials: this.configuration.withCredentials,
|
|
200
|
-
headers:
|
|
347
|
+
headers: localVarHeaders,
|
|
201
348
|
observe: observe,
|
|
349
|
+
transferCache: localVarTransferCache,
|
|
202
350
|
reportProgress: reportProgress
|
|
203
351
|
});
|
|
204
352
|
}
|
|
205
353
|
|
|
206
354
|
/**
|
|
207
355
|
* This endpoint returns one facette based on the search parameters.
|
|
208
|
-
* @param
|
|
209
|
-
* @param s The search string which should be found.
|
|
210
|
-
* @param collectiontypeid Limits the result on all collections from the given collectiontypeid parameter.
|
|
211
|
-
* @param collectionid Limits the result on collection id (and siblings). Will be overwritten by collectiontypeid parameter.
|
|
212
|
-
* @param mode Two modes supported: \"any\" or \"all\" search terms should be applied. (Only if Azure Search is enabled)
|
|
213
|
-
* @param filter Key value filter for filterable strings and string collections separated by special \',,,\'. For date or numbers \"<\", \"=\" and \">\" are possible. Mode influences AND (all) and OR (any) of all filters. Multiple filters are separated by semicolons. (Only if Azure Search is enabled)
|
|
214
|
-
* @param ids Comma separated values list with all ids which should be returned.
|
|
215
|
-
* @param portalId If the search should be redirected to a specific portal.
|
|
356
|
+
* @param requestParameters
|
|
216
357
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
217
358
|
* @param reportProgress flag to report request and response progress.
|
|
218
359
|
*/
|
|
219
360
|
public httpGetSearchFacetteByName(
|
|
220
|
-
|
|
221
|
-
s: string,
|
|
222
|
-
collectiontypeid?: string,
|
|
223
|
-
collectionid?: string,
|
|
224
|
-
mode?: string,
|
|
225
|
-
filter?: string,
|
|
226
|
-
ids?: string,
|
|
227
|
-
portalId?: string,
|
|
361
|
+
requestParameters?: HttpGetSearchFacetteByNameRequestParams,
|
|
228
362
|
observe?: 'body',
|
|
229
363
|
reportProgress?: boolean,
|
|
230
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
364
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
231
365
|
): Observable<SearchFacet>;
|
|
232
366
|
public httpGetSearchFacetteByName(
|
|
233
|
-
|
|
234
|
-
s: string,
|
|
235
|
-
collectiontypeid?: string,
|
|
236
|
-
collectionid?: string,
|
|
237
|
-
mode?: string,
|
|
238
|
-
filter?: string,
|
|
239
|
-
ids?: string,
|
|
240
|
-
portalId?: string,
|
|
367
|
+
requestParameters?: HttpGetSearchFacetteByNameRequestParams,
|
|
241
368
|
observe?: 'response',
|
|
242
369
|
reportProgress?: boolean,
|
|
243
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
370
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
244
371
|
): Observable<HttpResponse<SearchFacet>>;
|
|
245
372
|
public httpGetSearchFacetteByName(
|
|
246
|
-
|
|
247
|
-
s: string,
|
|
248
|
-
collectiontypeid?: string,
|
|
249
|
-
collectionid?: string,
|
|
250
|
-
mode?: string,
|
|
251
|
-
filter?: string,
|
|
252
|
-
ids?: string,
|
|
253
|
-
portalId?: string,
|
|
373
|
+
requestParameters?: HttpGetSearchFacetteByNameRequestParams,
|
|
254
374
|
observe?: 'events',
|
|
255
375
|
reportProgress?: boolean,
|
|
256
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
376
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
257
377
|
): Observable<HttpEvent<SearchFacet>>;
|
|
258
378
|
public httpGetSearchFacetteByName(
|
|
259
|
-
|
|
260
|
-
s: string,
|
|
261
|
-
collectiontypeid?: string,
|
|
262
|
-
collectionid?: string,
|
|
263
|
-
mode?: string,
|
|
264
|
-
filter?: string,
|
|
265
|
-
ids?: string,
|
|
266
|
-
portalId?: string,
|
|
379
|
+
requestParameters?: HttpGetSearchFacetteByNameRequestParams,
|
|
267
380
|
observe: any = 'body',
|
|
268
381
|
reportProgress: boolean = false,
|
|
269
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
382
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
270
383
|
): Observable<any> {
|
|
384
|
+
const name = requestParameters?.name;
|
|
271
385
|
if (name === null || name === undefined) {
|
|
272
386
|
throw new Error('Required parameter name was null or undefined when calling httpGetSearchFacetteByName.');
|
|
273
387
|
}
|
|
388
|
+
const s = requestParameters?.s;
|
|
274
389
|
if (s === null || s === undefined) {
|
|
275
390
|
throw new Error('Required parameter s was null or undefined when calling httpGetSearchFacetteByName.');
|
|
276
391
|
}
|
|
392
|
+
const collectiontypeid = requestParameters?.collectiontypeid;
|
|
393
|
+
const collectionid = requestParameters?.collectionid;
|
|
394
|
+
const mode = requestParameters?.mode;
|
|
395
|
+
const filter = requestParameters?.filter;
|
|
396
|
+
const ids = requestParameters?.ids;
|
|
397
|
+
const portalId = requestParameters?.portalId;
|
|
277
398
|
|
|
278
|
-
let
|
|
399
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
279
400
|
if (name !== undefined && name !== null) {
|
|
280
|
-
|
|
401
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>name, 'name');
|
|
281
402
|
}
|
|
282
403
|
if (s !== undefined && s !== null) {
|
|
283
|
-
|
|
404
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>s, 's');
|
|
284
405
|
}
|
|
285
406
|
if (collectiontypeid !== undefined && collectiontypeid !== null) {
|
|
286
|
-
|
|
407
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectiontypeid, 'collectiontypeid');
|
|
287
408
|
}
|
|
288
409
|
if (collectionid !== undefined && collectionid !== null) {
|
|
289
|
-
|
|
410
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectionid, 'collectionid');
|
|
290
411
|
}
|
|
291
412
|
if (mode !== undefined && mode !== null) {
|
|
292
|
-
|
|
413
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>mode, 'mode');
|
|
293
414
|
}
|
|
294
415
|
if (filter !== undefined && filter !== null) {
|
|
295
|
-
|
|
416
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
296
417
|
}
|
|
297
418
|
if (ids !== undefined && ids !== null) {
|
|
298
|
-
|
|
419
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>ids, 'ids');
|
|
299
420
|
}
|
|
300
421
|
if (portalId !== undefined && portalId !== null) {
|
|
301
|
-
|
|
422
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
302
423
|
}
|
|
303
424
|
|
|
304
|
-
let
|
|
425
|
+
let localVarHeaders = this.defaultHeaders;
|
|
305
426
|
|
|
306
|
-
let
|
|
427
|
+
let localVarCredential: string | undefined;
|
|
307
428
|
// authentication (msal_auth) required
|
|
308
|
-
|
|
309
|
-
if (
|
|
310
|
-
|
|
429
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
430
|
+
if (localVarCredential) {
|
|
431
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
311
432
|
}
|
|
312
433
|
|
|
313
|
-
let
|
|
314
|
-
if (
|
|
434
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
435
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
315
436
|
// to determine the Accept header
|
|
316
437
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
317
|
-
|
|
438
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
318
439
|
}
|
|
319
|
-
if (
|
|
320
|
-
|
|
440
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
441
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
321
442
|
}
|
|
322
443
|
|
|
323
|
-
let
|
|
324
|
-
if (
|
|
325
|
-
|
|
444
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
445
|
+
if (localVarHttpContext === undefined) {
|
|
446
|
+
localVarHttpContext = new HttpContext();
|
|
326
447
|
}
|
|
327
448
|
|
|
328
|
-
|
|
329
|
-
|
|
449
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
450
|
+
if (localVarTransferCache === undefined) {
|
|
451
|
+
localVarTransferCache = true;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
455
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
456
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
457
|
+
responseType_ = 'text';
|
|
458
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
459
|
+
responseType_ = 'json';
|
|
460
|
+
} else {
|
|
461
|
+
responseType_ = 'blob';
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
let localVarPath = `/search/facette`;
|
|
466
|
+
return this.httpClient.request<SearchFacet>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
467
|
+
context: localVarHttpContext,
|
|
468
|
+
params: localVarQueryParameters,
|
|
330
469
|
responseType: <any>responseType_,
|
|
331
470
|
withCredentials: this.configuration.withCredentials,
|
|
332
|
-
headers:
|
|
471
|
+
headers: localVarHeaders,
|
|
333
472
|
observe: observe,
|
|
473
|
+
transferCache: localVarTransferCache,
|
|
334
474
|
reportProgress: reportProgress
|
|
335
475
|
});
|
|
336
476
|
}
|
|
337
477
|
|
|
338
478
|
/**
|
|
339
479
|
* This endpoint returns a configured max amount of results for search terms.
|
|
340
|
-
* @param
|
|
341
|
-
* @param limit How many results should be returend. 0 is backend configuration limit.
|
|
342
|
-
* @param skip (default: 0) - Used for paging - how many items should be skipped before next limit results will be fetched.
|
|
343
|
-
* @param collectiontypeid Limits the result on all collections from the given collectiontypeid parameter.
|
|
344
|
-
* @param collectionid Limits the result on collection id (and siblings). Will be overwritten by collectiontypeid parameter.
|
|
345
|
-
* @param mode Two modes supported: \"any\" or \"all\" search terms should be applied. (Only if Azure Search is enabled)
|
|
346
|
-
* @param expose This will expose the thumbnail asset blob incl. URL with SAS Token.
|
|
347
|
-
* @param filter Key value filter for filterable strings and string collections separated by special \',,,\'. For date or numbers \"<\", \"=\" and \">\" are possible. Mode influences AND (all) and OR (any) of all filters. Multiple filters are separated by semicolons. (Only if Azure Search is enabled)
|
|
348
|
-
* @param orderby Sortable fields can be used. For descendant sorting use leading \"!\". (Only if Azure Search is enabled)
|
|
349
|
-
* @param ids Comma separated values list with all ids which should be returned.
|
|
350
|
-
* @param portalId If the search should be redirected to a specific portal.
|
|
351
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
480
|
+
* @param requestParameters
|
|
352
481
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
353
482
|
* @param reportProgress flag to report request and response progress.
|
|
354
483
|
*/
|
|
355
484
|
public httpGlobalSearch(
|
|
356
|
-
|
|
357
|
-
limit?: number,
|
|
358
|
-
skip?: number,
|
|
359
|
-
collectiontypeid?: string,
|
|
360
|
-
collectionid?: string,
|
|
361
|
-
mode?: string,
|
|
362
|
-
expose?: boolean,
|
|
363
|
-
filter?: string,
|
|
364
|
-
orderby?: string,
|
|
365
|
-
ids?: string,
|
|
366
|
-
portalId?: string,
|
|
367
|
-
translations?: boolean,
|
|
485
|
+
requestParameters?: HttpGlobalSearchRequestParams,
|
|
368
486
|
observe?: 'body',
|
|
369
487
|
reportProgress?: boolean,
|
|
370
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
488
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
371
489
|
): Observable<SearchResult>;
|
|
372
490
|
public httpGlobalSearch(
|
|
373
|
-
|
|
374
|
-
limit?: number,
|
|
375
|
-
skip?: number,
|
|
376
|
-
collectiontypeid?: string,
|
|
377
|
-
collectionid?: string,
|
|
378
|
-
mode?: string,
|
|
379
|
-
expose?: boolean,
|
|
380
|
-
filter?: string,
|
|
381
|
-
orderby?: string,
|
|
382
|
-
ids?: string,
|
|
383
|
-
portalId?: string,
|
|
384
|
-
translations?: boolean,
|
|
491
|
+
requestParameters?: HttpGlobalSearchRequestParams,
|
|
385
492
|
observe?: 'response',
|
|
386
493
|
reportProgress?: boolean,
|
|
387
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
494
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
388
495
|
): Observable<HttpResponse<SearchResult>>;
|
|
389
496
|
public httpGlobalSearch(
|
|
390
|
-
|
|
391
|
-
limit?: number,
|
|
392
|
-
skip?: number,
|
|
393
|
-
collectiontypeid?: string,
|
|
394
|
-
collectionid?: string,
|
|
395
|
-
mode?: string,
|
|
396
|
-
expose?: boolean,
|
|
397
|
-
filter?: string,
|
|
398
|
-
orderby?: string,
|
|
399
|
-
ids?: string,
|
|
400
|
-
portalId?: string,
|
|
401
|
-
translations?: boolean,
|
|
497
|
+
requestParameters?: HttpGlobalSearchRequestParams,
|
|
402
498
|
observe?: 'events',
|
|
403
499
|
reportProgress?: boolean,
|
|
404
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
500
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
405
501
|
): Observable<HttpEvent<SearchResult>>;
|
|
406
502
|
public httpGlobalSearch(
|
|
407
|
-
|
|
408
|
-
limit?: number,
|
|
409
|
-
skip?: number,
|
|
410
|
-
collectiontypeid?: string,
|
|
411
|
-
collectionid?: string,
|
|
412
|
-
mode?: string,
|
|
413
|
-
expose?: boolean,
|
|
414
|
-
filter?: string,
|
|
415
|
-
orderby?: string,
|
|
416
|
-
ids?: string,
|
|
417
|
-
portalId?: string,
|
|
418
|
-
translations?: boolean,
|
|
503
|
+
requestParameters?: HttpGlobalSearchRequestParams,
|
|
419
504
|
observe: any = 'body',
|
|
420
505
|
reportProgress: boolean = false,
|
|
421
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
506
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
422
507
|
): Observable<any> {
|
|
508
|
+
const s = requestParameters?.s;
|
|
423
509
|
if (s === null || s === undefined) {
|
|
424
510
|
throw new Error('Required parameter s was null or undefined when calling httpGlobalSearch.');
|
|
425
511
|
}
|
|
426
|
-
|
|
427
|
-
|
|
512
|
+
const limit = requestParameters?.limit;
|
|
513
|
+
const skip = requestParameters?.skip;
|
|
514
|
+
const collectiontypeid = requestParameters?.collectiontypeid;
|
|
515
|
+
const collectionid = requestParameters?.collectionid;
|
|
516
|
+
const mode = requestParameters?.mode;
|
|
517
|
+
const expose = requestParameters?.expose;
|
|
518
|
+
const filter = requestParameters?.filter;
|
|
519
|
+
const orderby = requestParameters?.orderby;
|
|
520
|
+
const ids = requestParameters?.ids;
|
|
521
|
+
const portalId = requestParameters?.portalId;
|
|
522
|
+
const translations = requestParameters?.translations;
|
|
523
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
524
|
+
|
|
525
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
428
526
|
if (s !== undefined && s !== null) {
|
|
429
|
-
|
|
527
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>s, 's');
|
|
430
528
|
}
|
|
431
529
|
if (limit !== undefined && limit !== null) {
|
|
432
|
-
|
|
530
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>limit, 'limit');
|
|
433
531
|
}
|
|
434
532
|
if (skip !== undefined && skip !== null) {
|
|
435
|
-
|
|
533
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>skip, 'skip');
|
|
436
534
|
}
|
|
437
535
|
if (collectiontypeid !== undefined && collectiontypeid !== null) {
|
|
438
|
-
|
|
536
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectiontypeid, 'collectiontypeid');
|
|
439
537
|
}
|
|
440
538
|
if (collectionid !== undefined && collectionid !== null) {
|
|
441
|
-
|
|
539
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectionid, 'collectionid');
|
|
442
540
|
}
|
|
443
541
|
if (mode !== undefined && mode !== null) {
|
|
444
|
-
|
|
542
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>mode, 'mode');
|
|
445
543
|
}
|
|
446
544
|
if (expose !== undefined && expose !== null) {
|
|
447
|
-
|
|
545
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>expose, 'expose');
|
|
448
546
|
}
|
|
449
547
|
if (filter !== undefined && filter !== null) {
|
|
450
|
-
|
|
548
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
451
549
|
}
|
|
452
550
|
if (orderby !== undefined && orderby !== null) {
|
|
453
|
-
|
|
551
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>orderby, 'orderby');
|
|
454
552
|
}
|
|
455
553
|
if (ids !== undefined && ids !== null) {
|
|
456
|
-
|
|
554
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>ids, 'ids');
|
|
457
555
|
}
|
|
458
556
|
if (portalId !== undefined && portalId !== null) {
|
|
459
|
-
|
|
557
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
460
558
|
}
|
|
461
559
|
if (translations !== undefined && translations !== null) {
|
|
462
|
-
|
|
560
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
463
561
|
}
|
|
464
562
|
|
|
465
|
-
let
|
|
563
|
+
let localVarHeaders = this.defaultHeaders;
|
|
564
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
565
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
566
|
+
}
|
|
466
567
|
|
|
467
|
-
let
|
|
568
|
+
let localVarCredential: string | undefined;
|
|
468
569
|
// authentication (msal_auth) required
|
|
469
|
-
|
|
470
|
-
if (
|
|
471
|
-
|
|
570
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
571
|
+
if (localVarCredential) {
|
|
572
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
472
573
|
}
|
|
473
574
|
|
|
474
|
-
let
|
|
475
|
-
if (
|
|
575
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
576
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
476
577
|
// to determine the Accept header
|
|
477
578
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
478
|
-
|
|
579
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
580
|
+
}
|
|
581
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
582
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
479
583
|
}
|
|
480
|
-
|
|
481
|
-
|
|
584
|
+
|
|
585
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
586
|
+
if (localVarHttpContext === undefined) {
|
|
587
|
+
localVarHttpContext = new HttpContext();
|
|
482
588
|
}
|
|
483
589
|
|
|
484
|
-
let
|
|
485
|
-
if (
|
|
486
|
-
|
|
590
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
591
|
+
if (localVarTransferCache === undefined) {
|
|
592
|
+
localVarTransferCache = true;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
596
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
597
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
598
|
+
responseType_ = 'text';
|
|
599
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
600
|
+
responseType_ = 'json';
|
|
601
|
+
} else {
|
|
602
|
+
responseType_ = 'blob';
|
|
603
|
+
}
|
|
487
604
|
}
|
|
488
605
|
|
|
489
|
-
|
|
490
|
-
|
|
606
|
+
let localVarPath = `/search`;
|
|
607
|
+
return this.httpClient.request<SearchResult>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
608
|
+
context: localVarHttpContext,
|
|
609
|
+
params: localVarQueryParameters,
|
|
491
610
|
responseType: <any>responseType_,
|
|
492
611
|
withCredentials: this.configuration.withCredentials,
|
|
493
|
-
headers:
|
|
612
|
+
headers: localVarHeaders,
|
|
494
613
|
observe: observe,
|
|
614
|
+
transferCache: localVarTransferCache,
|
|
495
615
|
reportProgress: reportProgress
|
|
496
616
|
});
|
|
497
617
|
}
|
|
498
618
|
|
|
499
619
|
/**
|
|
500
620
|
* This endpoint removes all assets which are not longer available in the database from the search index.
|
|
501
|
-
* @param
|
|
621
|
+
* @param requestParameters
|
|
502
622
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
503
623
|
* @param reportProgress flag to report request and response progress.
|
|
504
624
|
*/
|
|
505
|
-
public httpPatchCleanSearchFromDeletedAssets(portalId?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
|
|
506
625
|
public httpPatchCleanSearchFromDeletedAssets(
|
|
507
|
-
|
|
626
|
+
requestParameters?: HttpPatchCleanSearchFromDeletedAssetsRequestParams,
|
|
627
|
+
observe?: 'body',
|
|
628
|
+
reportProgress?: boolean,
|
|
629
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
630
|
+
): Observable<AgravityInfoResponse>;
|
|
631
|
+
public httpPatchCleanSearchFromDeletedAssets(
|
|
632
|
+
requestParameters?: HttpPatchCleanSearchFromDeletedAssetsRequestParams,
|
|
508
633
|
observe?: 'response',
|
|
509
634
|
reportProgress?: boolean,
|
|
510
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
635
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
511
636
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
512
637
|
public httpPatchCleanSearchFromDeletedAssets(
|
|
513
|
-
|
|
638
|
+
requestParameters?: HttpPatchCleanSearchFromDeletedAssetsRequestParams,
|
|
514
639
|
observe?: 'events',
|
|
515
640
|
reportProgress?: boolean,
|
|
516
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
641
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
517
642
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
518
|
-
public httpPatchCleanSearchFromDeletedAssets(
|
|
519
|
-
|
|
643
|
+
public httpPatchCleanSearchFromDeletedAssets(
|
|
644
|
+
requestParameters?: HttpPatchCleanSearchFromDeletedAssetsRequestParams,
|
|
645
|
+
observe: any = 'body',
|
|
646
|
+
reportProgress: boolean = false,
|
|
647
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
648
|
+
): Observable<any> {
|
|
649
|
+
const portalId = requestParameters?.portalId;
|
|
650
|
+
|
|
651
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
520
652
|
if (portalId !== undefined && portalId !== null) {
|
|
521
|
-
|
|
653
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
522
654
|
}
|
|
523
655
|
|
|
524
|
-
let
|
|
656
|
+
let localVarHeaders = this.defaultHeaders;
|
|
525
657
|
|
|
526
|
-
let
|
|
658
|
+
let localVarCredential: string | undefined;
|
|
527
659
|
// authentication (msal_auth) required
|
|
528
|
-
|
|
529
|
-
if (
|
|
530
|
-
|
|
660
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
661
|
+
if (localVarCredential) {
|
|
662
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
531
663
|
}
|
|
532
664
|
|
|
533
|
-
let
|
|
534
|
-
if (
|
|
665
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
666
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
535
667
|
// to determine the Accept header
|
|
536
668
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
537
|
-
|
|
669
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
538
670
|
}
|
|
539
|
-
if (
|
|
540
|
-
|
|
671
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
672
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
676
|
+
if (localVarHttpContext === undefined) {
|
|
677
|
+
localVarHttpContext = new HttpContext();
|
|
541
678
|
}
|
|
542
679
|
|
|
543
|
-
let
|
|
544
|
-
if (
|
|
545
|
-
|
|
680
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
681
|
+
if (localVarTransferCache === undefined) {
|
|
682
|
+
localVarTransferCache = true;
|
|
546
683
|
}
|
|
547
684
|
|
|
548
|
-
|
|
549
|
-
|
|
685
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
686
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
687
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
688
|
+
responseType_ = 'text';
|
|
689
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
690
|
+
responseType_ = 'json';
|
|
691
|
+
} else {
|
|
692
|
+
responseType_ = 'blob';
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
let localVarPath = `/searchadmin/clean`;
|
|
697
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
698
|
+
context: localVarHttpContext,
|
|
699
|
+
params: localVarQueryParameters,
|
|
550
700
|
responseType: <any>responseType_,
|
|
551
701
|
withCredentials: this.configuration.withCredentials,
|
|
552
|
-
headers:
|
|
702
|
+
headers: localVarHeaders,
|
|
553
703
|
observe: observe,
|
|
704
|
+
transferCache: localVarTransferCache,
|
|
554
705
|
reportProgress: reportProgress
|
|
555
706
|
});
|
|
556
707
|
}
|
|
557
708
|
|
|
558
709
|
/**
|
|
559
710
|
* This endpoint takes the ID and check if it is a collection type, collection or asset and re-index it in search.
|
|
560
|
-
* @param
|
|
711
|
+
* @param requestParameters
|
|
561
712
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
562
713
|
* @param reportProgress flag to report request and response progress.
|
|
563
714
|
*/
|
|
564
|
-
public httpPatchReIndexAssets(
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
715
|
+
public httpPatchReIndexAssets(
|
|
716
|
+
requestParameters?: HttpPatchReIndexAssetsRequestParams,
|
|
717
|
+
observe?: 'body',
|
|
718
|
+
reportProgress?: boolean,
|
|
719
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
720
|
+
): Observable<AgravityInfoResponse>;
|
|
721
|
+
public httpPatchReIndexAssets(
|
|
722
|
+
requestParameters?: HttpPatchReIndexAssetsRequestParams,
|
|
723
|
+
observe?: 'response',
|
|
724
|
+
reportProgress?: boolean,
|
|
725
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
726
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
727
|
+
public httpPatchReIndexAssets(
|
|
728
|
+
requestParameters?: HttpPatchReIndexAssetsRequestParams,
|
|
729
|
+
observe?: 'events',
|
|
730
|
+
reportProgress?: boolean,
|
|
731
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
732
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
733
|
+
public httpPatchReIndexAssets(
|
|
734
|
+
requestParameters?: HttpPatchReIndexAssetsRequestParams,
|
|
735
|
+
observe: any = 'body',
|
|
736
|
+
reportProgress: boolean = false,
|
|
737
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
738
|
+
): Observable<any> {
|
|
739
|
+
const id = requestParameters?.id;
|
|
568
740
|
if (id === null || id === undefined) {
|
|
569
741
|
throw new Error('Required parameter id was null or undefined when calling httpPatchReIndexAssets.');
|
|
570
742
|
}
|
|
571
743
|
|
|
572
|
-
let
|
|
744
|
+
let localVarHeaders = this.defaultHeaders;
|
|
573
745
|
|
|
574
|
-
let
|
|
746
|
+
let localVarCredential: string | undefined;
|
|
575
747
|
// authentication (msal_auth) required
|
|
576
|
-
|
|
577
|
-
if (
|
|
578
|
-
|
|
748
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
749
|
+
if (localVarCredential) {
|
|
750
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
579
751
|
}
|
|
580
752
|
|
|
581
|
-
let
|
|
582
|
-
if (
|
|
753
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
754
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
583
755
|
// to determine the Accept header
|
|
584
756
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
585
|
-
|
|
757
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
586
758
|
}
|
|
587
|
-
if (
|
|
588
|
-
|
|
759
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
760
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
589
761
|
}
|
|
590
762
|
|
|
591
|
-
let
|
|
592
|
-
if (
|
|
593
|
-
|
|
763
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
764
|
+
if (localVarHttpContext === undefined) {
|
|
765
|
+
localVarHttpContext = new HttpContext();
|
|
594
766
|
}
|
|
595
767
|
|
|
596
|
-
|
|
768
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
769
|
+
if (localVarTransferCache === undefined) {
|
|
770
|
+
localVarTransferCache = true;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
774
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
775
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
776
|
+
responseType_ = 'text';
|
|
777
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
778
|
+
responseType_ = 'json';
|
|
779
|
+
} else {
|
|
780
|
+
responseType_ = 'blob';
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
let localVarPath = `/searchadmin/reindex/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
785
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
786
|
+
context: localVarHttpContext,
|
|
597
787
|
responseType: <any>responseType_,
|
|
598
788
|
withCredentials: this.configuration.withCredentials,
|
|
599
|
-
headers:
|
|
789
|
+
headers: localVarHeaders,
|
|
600
790
|
observe: observe,
|
|
791
|
+
transferCache: localVarTransferCache,
|
|
601
792
|
reportProgress: reportProgress
|
|
602
793
|
});
|
|
603
794
|
}
|
|
604
795
|
|
|
605
796
|
/**
|
|
606
797
|
* This endpoint gives the status about the index and indexer. Skill and data source connection only when \'full\' is set to true.
|
|
607
|
-
* @param
|
|
608
|
-
* @param full If all information is needed (incl. datasource, etc.).
|
|
798
|
+
* @param requestParameters
|
|
609
799
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
610
800
|
* @param reportProgress flag to report request and response progress.
|
|
611
801
|
*/
|
|
612
|
-
public httpSearchAdminGetStatus(portalId?: string, full?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<SearchAdminStatus>;
|
|
613
802
|
public httpSearchAdminGetStatus(
|
|
614
|
-
|
|
615
|
-
|
|
803
|
+
requestParameters?: HttpSearchAdminGetStatusRequestParams,
|
|
804
|
+
observe?: 'body',
|
|
805
|
+
reportProgress?: boolean,
|
|
806
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
807
|
+
): Observable<SearchAdminStatus>;
|
|
808
|
+
public httpSearchAdminGetStatus(
|
|
809
|
+
requestParameters?: HttpSearchAdminGetStatusRequestParams,
|
|
616
810
|
observe?: 'response',
|
|
617
811
|
reportProgress?: boolean,
|
|
618
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
812
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
619
813
|
): Observable<HttpResponse<SearchAdminStatus>>;
|
|
620
814
|
public httpSearchAdminGetStatus(
|
|
621
|
-
|
|
622
|
-
full?: boolean,
|
|
815
|
+
requestParameters?: HttpSearchAdminGetStatusRequestParams,
|
|
623
816
|
observe?: 'events',
|
|
624
817
|
reportProgress?: boolean,
|
|
625
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
818
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
626
819
|
): Observable<HttpEvent<SearchAdminStatus>>;
|
|
627
|
-
public httpSearchAdminGetStatus(
|
|
628
|
-
|
|
820
|
+
public httpSearchAdminGetStatus(
|
|
821
|
+
requestParameters?: HttpSearchAdminGetStatusRequestParams,
|
|
822
|
+
observe: any = 'body',
|
|
823
|
+
reportProgress: boolean = false,
|
|
824
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
825
|
+
): Observable<any> {
|
|
826
|
+
const portalId = requestParameters?.portalId;
|
|
827
|
+
const full = requestParameters?.full;
|
|
828
|
+
|
|
829
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
629
830
|
if (portalId !== undefined && portalId !== null) {
|
|
630
|
-
|
|
831
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
631
832
|
}
|
|
632
833
|
if (full !== undefined && full !== null) {
|
|
633
|
-
|
|
834
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>full, 'full');
|
|
634
835
|
}
|
|
635
836
|
|
|
636
|
-
let
|
|
837
|
+
let localVarHeaders = this.defaultHeaders;
|
|
637
838
|
|
|
638
|
-
let
|
|
839
|
+
let localVarCredential: string | undefined;
|
|
639
840
|
// authentication (msal_auth) required
|
|
640
|
-
|
|
641
|
-
if (
|
|
642
|
-
|
|
841
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
842
|
+
if (localVarCredential) {
|
|
843
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
643
844
|
}
|
|
644
845
|
|
|
645
|
-
let
|
|
646
|
-
if (
|
|
846
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
847
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
647
848
|
// to determine the Accept header
|
|
648
849
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
649
|
-
|
|
850
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
650
851
|
}
|
|
651
|
-
if (
|
|
652
|
-
|
|
852
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
853
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
653
854
|
}
|
|
654
855
|
|
|
655
|
-
let
|
|
656
|
-
if (
|
|
657
|
-
|
|
856
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
857
|
+
if (localVarHttpContext === undefined) {
|
|
858
|
+
localVarHttpContext = new HttpContext();
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
862
|
+
if (localVarTransferCache === undefined) {
|
|
863
|
+
localVarTransferCache = true;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
867
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
868
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
869
|
+
responseType_ = 'text';
|
|
870
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
871
|
+
responseType_ = 'json';
|
|
872
|
+
} else {
|
|
873
|
+
responseType_ = 'blob';
|
|
874
|
+
}
|
|
658
875
|
}
|
|
659
876
|
|
|
660
|
-
|
|
661
|
-
|
|
877
|
+
let localVarPath = `/searchadmin/status`;
|
|
878
|
+
return this.httpClient.request<SearchAdminStatus>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
879
|
+
context: localVarHttpContext,
|
|
880
|
+
params: localVarQueryParameters,
|
|
662
881
|
responseType: <any>responseType_,
|
|
663
882
|
withCredentials: this.configuration.withCredentials,
|
|
664
|
-
headers:
|
|
883
|
+
headers: localVarHeaders,
|
|
665
884
|
observe: observe,
|
|
885
|
+
transferCache: localVarTransferCache,
|
|
666
886
|
reportProgress: reportProgress
|
|
667
887
|
});
|
|
668
888
|
}
|