@agravity/private 5.2.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 +117 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +203 -0
- package/api/api.ts +67 -0
- package/api/assetIconRuleManagement.agravity.ts +400 -0
- package/api/assetManagement.agravity.ts +737 -0
- package/api/assetOperations.agravity.ts +1309 -0
- package/api/assetPublishing.agravity.ts +511 -0
- package/api/assetVersioning.agravity.ts +657 -0
- package/api/authenticationManagement.agravity.ts +502 -0
- package/api/collectionManagement.agravity.ts +618 -0
- package/api/collectionSharing.agravity.ts +329 -0
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +340 -0
- package/api/collectionTypeManagement.agravity.ts +533 -0
- package/api/configurationManagement.agravity.ts +311 -0
- package/api/downloadFormatManagement.agravity.ts +400 -0
- package/api/downloadZip.agravity.ts +151 -0
- package/api/generalManagement.agravity.ts +348 -0
- package/api/helperTools.agravity.ts +640 -0
- package/api/iccProfileManagement.agravity.ts +134 -0
- package/api/listBlobs.agravity.ts +185 -0
- package/api/listQueues.agravity.ts +134 -0
- package/api/permissionsManagement.agravity.ts +262 -0
- package/api/publishing.agravity.ts +148 -0
- package/api/quickshareManagement.agravity.ts +385 -0
- package/api/savedSearchManagement.agravity.ts +271 -0
- package/api/searchManagement.agravity.ts +345 -0
- package/api/secureUpload.agravity.ts +371 -0
- package/api/signalRConnectionManagement.agravity.ts +218 -0
- package/api/staticDefinedListManagement.agravity.ts +408 -0
- package/api/stockImport.agravity.ts +221 -0
- package/api/structureImport.agravity.ts +137 -0
- package/api/translationManagement.agravity.ts +404 -0
- package/api/upgradeManagement.agravity.ts +333 -0
- package/api/webAppData.agravity.ts +300 -0
- package/api/wordpressManagement.agravity.ts +282 -0
- package/api/workspaceManagement.agravity.ts +513 -0
- package/api.module.ts +63 -0
- package/configuration.ts +130 -0
- package/encoder.ts +20 -0
- package/git_push.sh +58 -0
- package/index.ts +5 -0
- package/model/agravityErrorResponse.agravity.ts +19 -0
- package/model/agravityInfoResponse.agravity.ts +19 -0
- package/model/agravityUser.agravity.ts +37 -0
- package/model/agravityVersion.agravity.ts +24 -0
- package/model/allWebAppData.agravity.ts +24 -0
- package/model/apiKeyResponse.agravity.ts +18 -0
- package/model/appConfigTableEntity.agravity.ts +25 -0
- package/model/artificialIntelligenceGroup.agravity.ts +20 -0
- package/model/asset.agravity.ts +47 -0
- package/model/assetAvailability.agravity.ts +19 -0
- package/model/assetBlob.agravity.ts +82 -0
- package/model/assetBulkUpdate.agravity.ts +20 -0
- package/model/assetCollectionLink.agravity.ts +18 -0
- package/model/assetIconRule.agravity.ts +35 -0
- package/model/assetIdContainer.agravity.ts +18 -0
- package/model/assetPageResult.agravity.ts +23 -0
- package/model/assetsOperationBody.agravity.ts +20 -0
- package/model/azSearchOptions.agravity.ts +25 -0
- package/model/azureIdentity.agravity.ts +30 -0
- package/model/blobInfoObj.agravity.ts +23 -0
- package/model/collTypeItem.agravity.ts +38 -0
- package/model/collTypeItemBlueprint.agravity.ts +31 -0
- package/model/collection.agravity.ts +35 -0
- package/model/collectionType.agravity.ts +35 -0
- package/model/collectionUDL.agravity.ts +21 -0
- package/model/createSftpUserResult.agravity.ts +18 -0
- package/model/dataResult.agravity.ts +22 -0
- package/model/distZipResponse.agravity.ts +19 -0
- package/model/downloadFormat.agravity.ts +34 -0
- package/model/downloadObject.agravity.ts +32 -0
- package/model/downloadZipRequest.agravity.ts +25 -0
- package/model/dynamicImageOperation.agravity.ts +18 -0
- package/model/emailAddress.agravity.ts +18 -0
- package/model/entityId.agravity.ts +17 -0
- package/model/entityIdName.agravity.ts +19 -0
- package/model/entityTranslations.agravity.ts +18 -0
- package/model/frontendAppConfig.agravity.ts +21 -0
- package/model/groupAllAppData.agravity.ts +26 -0
- package/model/infoEntitySkillEnhanced.agravity.ts +25 -0
- package/model/metadata.agravity.ts +19 -0
- package/model/models.ts +73 -0
- package/model/moveCollectionBody.agravity.ts +19 -0
- package/model/permissionChange.agravity.ts +29 -0
- package/model/permissionSetting.agravity.ts +27 -0
- package/model/publishEntity.agravity.ts +28 -0
- package/model/publishedAsset.agravity.ts +25 -0
- package/model/quickShare.agravity.ts +31 -0
- package/model/quickShareFull.agravity.ts +36 -0
- package/model/sasToken.agravity.ts +22 -0
- package/model/savedSearch.agravity.ts +31 -0
- package/model/searchAdminDataSourceStatus.agravity.ts +18 -0
- package/model/searchAdminIndexStatus.agravity.ts +20 -0
- package/model/searchAdminIndexerLastRun.agravity.ts +21 -0
- package/model/searchAdminIndexerStatus.agravity.ts +20 -0
- package/model/searchAdminSkillStatus.agravity.ts +18 -0
- package/model/searchAdminStatistics.agravity.ts +18 -0
- package/model/searchAdminStatus.agravity.ts +24 -0
- package/model/searchFacet.agravity.ts +19 -0
- package/model/searchFacetEntity.agravity.ts +19 -0
- package/model/searchResult.agravity.ts +23 -0
- package/model/searchableItem.agravity.ts +26 -0
- package/model/secureUploadEntity.agravity.ts +27 -0
- package/model/sharedAsset.agravity.ts +25 -0
- package/model/sharedCollection.agravity.ts +24 -0
- package/model/sharedCollectionFull.agravity.ts +29 -0
- package/model/signalRConnectionInfo.agravity.ts +18 -0
- package/model/simpleAsset.agravity.ts +26 -0
- package/model/staticDefinedList.agravity.ts +30 -0
- package/model/uiTutorials.agravity.ts +26 -0
- package/model/upgradeV2V3CollectionCustomItemTableEntity.agravity.ts +21 -0
- package/model/versionEntity.agravity.ts +28 -0
- package/model/versionedAsset.agravity.ts +20 -0
- package/model/whereParam.agravity.ts +43 -0
- package/model/workspace.agravity.ts +34 -0
- package/package.json +28 -0
- package/variables.ts +9 -0
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Private Functions
|
|
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 2023. All Rights Reserved
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.2.0
|
|
6
|
+
* Contact: office@agravity.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
+
|
|
14
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
+
import { HttpClient, HttpHeaders, HttpParams,
|
|
16
|
+
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
17
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
18
|
+
import { Observable } from 'rxjs';
|
|
19
|
+
|
|
20
|
+
import { AgravityErrorResponse } from '../model/models';
|
|
21
|
+
import { AgravityInfoResponse } from '../model/models';
|
|
22
|
+
import { SearchAdminStatus } from '../model/models';
|
|
23
|
+
import { SearchResult } from '../model/models';
|
|
24
|
+
|
|
25
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
26
|
+
import { AgravityConfiguration } from '../configuration';
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@Injectable({
|
|
31
|
+
providedIn: 'root'
|
|
32
|
+
})
|
|
33
|
+
export class SearchManagementService {
|
|
34
|
+
|
|
35
|
+
protected basePath = 'http://localhost:7071/api';
|
|
36
|
+
public defaultHeaders = new HttpHeaders();
|
|
37
|
+
public configuration = new AgravityConfiguration();
|
|
38
|
+
public encoder: HttpParameterCodec;
|
|
39
|
+
|
|
40
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
|
|
41
|
+
if (configuration) {
|
|
42
|
+
this.configuration = configuration;
|
|
43
|
+
}
|
|
44
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
45
|
+
if (typeof basePath !== 'string') {
|
|
46
|
+
basePath = this.basePath;
|
|
47
|
+
}
|
|
48
|
+
this.configuration.basePath = basePath;
|
|
49
|
+
}
|
|
50
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
55
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
56
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
57
|
+
} else {
|
|
58
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
59
|
+
}
|
|
60
|
+
return httpParams;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return httpParams;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (typeof value === "object") {
|
|
69
|
+
if (Array.isArray(value)) {
|
|
70
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
71
|
+
} else if (value instanceof Date) {
|
|
72
|
+
if (key != null) {
|
|
73
|
+
httpParams = httpParams.append(key,
|
|
74
|
+
(value as Date).toISOString().substr(0, 10));
|
|
75
|
+
} else {
|
|
76
|
+
throw Error("key may not be null if value is Date");
|
|
77
|
+
}
|
|
78
|
+
} else {
|
|
79
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
80
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
81
|
+
}
|
|
82
|
+
} else if (key != null) {
|
|
83
|
+
httpParams = httpParams.append(key, value);
|
|
84
|
+
} else {
|
|
85
|
+
throw Error("key may not be null if value is not object or array");
|
|
86
|
+
}
|
|
87
|
+
return httpParams;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* This endpoint deletes the index, indexes and data source connection. Has to be recreated with recreate endpoint.
|
|
92
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
93
|
+
* @param reportProgress flag to report request and response progress.
|
|
94
|
+
*/
|
|
95
|
+
public httpAzureDeleteSearchCompletely(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
|
|
96
|
+
public httpAzureDeleteSearchCompletely(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
97
|
+
public httpAzureDeleteSearchCompletely(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
98
|
+
public httpAzureDeleteSearchCompletely(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
99
|
+
|
|
100
|
+
let headers = this.defaultHeaders;
|
|
101
|
+
|
|
102
|
+
let credential: string | undefined;
|
|
103
|
+
// authentication (msal_auth) required
|
|
104
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
105
|
+
if (credential) {
|
|
106
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
110
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
111
|
+
// to determine the Accept header
|
|
112
|
+
const httpHeaderAccepts: string[] = [
|
|
113
|
+
'application/json'
|
|
114
|
+
];
|
|
115
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
116
|
+
}
|
|
117
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
118
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
123
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
124
|
+
responseType_ = 'text';
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return this.httpClient.patch<AgravityInfoResponse>(`${this.configuration.basePath}/searchadmin/delete`,
|
|
128
|
+
null,
|
|
129
|
+
{
|
|
130
|
+
responseType: <any>responseType_,
|
|
131
|
+
withCredentials: this.configuration.withCredentials,
|
|
132
|
+
headers: headers,
|
|
133
|
+
observe: observe,
|
|
134
|
+
reportProgress: reportProgress
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* This endpoint recreates the index and creates the indexes, skillset and data source connection if not existing
|
|
141
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
142
|
+
* @param reportProgress flag to report request and response progress.
|
|
143
|
+
*/
|
|
144
|
+
public httpAzureRecreateGlobalIndex(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
|
|
145
|
+
public httpAzureRecreateGlobalIndex(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
146
|
+
public httpAzureRecreateGlobalIndex(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
147
|
+
public httpAzureRecreateGlobalIndex(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
148
|
+
|
|
149
|
+
let headers = this.defaultHeaders;
|
|
150
|
+
|
|
151
|
+
let credential: string | undefined;
|
|
152
|
+
// authentication (msal_auth) required
|
|
153
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
154
|
+
if (credential) {
|
|
155
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
159
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
160
|
+
// to determine the Accept header
|
|
161
|
+
const httpHeaderAccepts: string[] = [
|
|
162
|
+
'application/json'
|
|
163
|
+
];
|
|
164
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
165
|
+
}
|
|
166
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
167
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
172
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
173
|
+
responseType_ = 'text';
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return this.httpClient.patch<AgravityInfoResponse>(`${this.configuration.basePath}/searchadmin/recreate`,
|
|
177
|
+
null,
|
|
178
|
+
{
|
|
179
|
+
responseType: <any>responseType_,
|
|
180
|
+
withCredentials: this.configuration.withCredentials,
|
|
181
|
+
headers: headers,
|
|
182
|
+
observe: observe,
|
|
183
|
+
reportProgress: reportProgress
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* This endpoint returns a configured max amount of results for search terms.
|
|
190
|
+
* @param s The search string which should be found.
|
|
191
|
+
* @param limit How many results should be returend. 0 is backend configuration limit.
|
|
192
|
+
* @param skip (default: 0) - Used for paging - how many items should be skipped before next limit results will be fetched.
|
|
193
|
+
* @param collectiontypeid Limits the result on all collections from the given collectiontypeid parameter.
|
|
194
|
+
* @param collectionid Limits the result on collection id (and siblings). Will be overwritten by collectiontypeid parameter.
|
|
195
|
+
* @param mode Two modes supported: \"any\" or \"all\" search terms should be applied. (Only if Azure Search is enabled)
|
|
196
|
+
* @param expose This will expose the thumbnail asset blob incl. URL with SAS Token.
|
|
197
|
+
* @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)
|
|
198
|
+
* @param orderby Sortable fields can be used. For descendant sorting use leading \"!\". (Only if Azure Search is enabled)
|
|
199
|
+
* @param ids Comma separated values list with all ids which should be returned.
|
|
200
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
201
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
202
|
+
* @param reportProgress flag to report request and response progress.
|
|
203
|
+
*/
|
|
204
|
+
public httpGlobalSearch(s: string, limit?: number, skip?: number, collectiontypeid?: string, collectionid?: string, mode?: string, expose?: boolean, filter?: string, orderby?: string, ids?: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<SearchResult>;
|
|
205
|
+
public httpGlobalSearch(s: string, limit?: number, skip?: number, collectiontypeid?: string, collectionid?: string, mode?: string, expose?: boolean, filter?: string, orderby?: string, ids?: string, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<SearchResult>>;
|
|
206
|
+
public httpGlobalSearch(s: string, limit?: number, skip?: number, collectiontypeid?: string, collectionid?: string, mode?: string, expose?: boolean, filter?: string, orderby?: string, ids?: string, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<SearchResult>>;
|
|
207
|
+
public httpGlobalSearch(s: string, limit?: number, skip?: number, collectiontypeid?: string, collectionid?: string, mode?: string, expose?: boolean, filter?: string, orderby?: string, ids?: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
208
|
+
if (s === null || s === undefined) {
|
|
209
|
+
throw new Error('Required parameter s was null or undefined when calling httpGlobalSearch.');
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
213
|
+
if (s !== undefined && s !== null) {
|
|
214
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
215
|
+
<any>s, 's');
|
|
216
|
+
}
|
|
217
|
+
if (limit !== undefined && limit !== null) {
|
|
218
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
219
|
+
<any>limit, 'limit');
|
|
220
|
+
}
|
|
221
|
+
if (skip !== undefined && skip !== null) {
|
|
222
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
223
|
+
<any>skip, 'skip');
|
|
224
|
+
}
|
|
225
|
+
if (collectiontypeid !== undefined && collectiontypeid !== null) {
|
|
226
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
227
|
+
<any>collectiontypeid, 'collectiontypeid');
|
|
228
|
+
}
|
|
229
|
+
if (collectionid !== undefined && collectionid !== null) {
|
|
230
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
231
|
+
<any>collectionid, 'collectionid');
|
|
232
|
+
}
|
|
233
|
+
if (mode !== undefined && mode !== null) {
|
|
234
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
235
|
+
<any>mode, 'mode');
|
|
236
|
+
}
|
|
237
|
+
if (expose !== undefined && expose !== null) {
|
|
238
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
239
|
+
<any>expose, 'expose');
|
|
240
|
+
}
|
|
241
|
+
if (filter !== undefined && filter !== null) {
|
|
242
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
243
|
+
<any>filter, 'filter');
|
|
244
|
+
}
|
|
245
|
+
if (orderby !== undefined && orderby !== null) {
|
|
246
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
247
|
+
<any>orderby, 'orderby');
|
|
248
|
+
}
|
|
249
|
+
if (ids !== undefined && ids !== null) {
|
|
250
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
251
|
+
<any>ids, 'ids');
|
|
252
|
+
}
|
|
253
|
+
if (translations !== undefined && translations !== null) {
|
|
254
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
255
|
+
<any>translations, 'translations');
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
let headers = this.defaultHeaders;
|
|
259
|
+
|
|
260
|
+
let credential: string | undefined;
|
|
261
|
+
// authentication (msal_auth) required
|
|
262
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
263
|
+
if (credential) {
|
|
264
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
268
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
269
|
+
// to determine the Accept header
|
|
270
|
+
const httpHeaderAccepts: string[] = [
|
|
271
|
+
'application/json'
|
|
272
|
+
];
|
|
273
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
274
|
+
}
|
|
275
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
276
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
281
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
282
|
+
responseType_ = 'text';
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
return this.httpClient.get<SearchResult>(`${this.configuration.basePath}/search`,
|
|
286
|
+
{
|
|
287
|
+
params: queryParameters,
|
|
288
|
+
responseType: <any>responseType_,
|
|
289
|
+
withCredentials: this.configuration.withCredentials,
|
|
290
|
+
headers: headers,
|
|
291
|
+
observe: observe,
|
|
292
|
+
reportProgress: reportProgress
|
|
293
|
+
}
|
|
294
|
+
);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* This endpoint gives the status about the index, indexes and data source connection.
|
|
299
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
300
|
+
* @param reportProgress flag to report request and response progress.
|
|
301
|
+
*/
|
|
302
|
+
public httpSearchAdminGetStatus(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<SearchAdminStatus>;
|
|
303
|
+
public httpSearchAdminGetStatus(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<SearchAdminStatus>>;
|
|
304
|
+
public httpSearchAdminGetStatus(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<SearchAdminStatus>>;
|
|
305
|
+
public httpSearchAdminGetStatus(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
306
|
+
|
|
307
|
+
let headers = this.defaultHeaders;
|
|
308
|
+
|
|
309
|
+
let credential: string | undefined;
|
|
310
|
+
// authentication (msal_auth) required
|
|
311
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
312
|
+
if (credential) {
|
|
313
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
317
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
318
|
+
// to determine the Accept header
|
|
319
|
+
const httpHeaderAccepts: string[] = [
|
|
320
|
+
'application/json'
|
|
321
|
+
];
|
|
322
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
323
|
+
}
|
|
324
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
325
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
330
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
331
|
+
responseType_ = 'text';
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
return this.httpClient.get<SearchAdminStatus>(`${this.configuration.basePath}/searchadmin/status`,
|
|
335
|
+
{
|
|
336
|
+
responseType: <any>responseType_,
|
|
337
|
+
withCredentials: this.configuration.withCredentials,
|
|
338
|
+
headers: headers,
|
|
339
|
+
observe: observe,
|
|
340
|
+
reportProgress: reportProgress
|
|
341
|
+
}
|
|
342
|
+
);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
}
|