@agravity/public 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 +2 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -4
- package/api/publicAssetManagement.pub.agravity.ts +389 -265
- package/api/publicAssetOperations.pub.agravity.ts +636 -425
- package/api/publicAssetPublishing.pub.agravity.ts +195 -82
- package/api/publicAssetVersioning.pub.agravity.ts +469 -239
- package/api/publicAuthenticationManagement.pub.agravity.ts +66 -24
- package/api/publicCollectionManagement.pub.agravity.ts +525 -295
- package/api/publicCollectionSecureUpload.pub.agravity.ts +142 -69
- package/api/publicCollectionTypeManagement.pub.agravity.ts +211 -95
- package/api/publicConfigurationManagement.pub.agravity.ts +69 -26
- package/api/publicDownloadFormatManagement.pub.agravity.ts +139 -53
- package/api/publicEndpoints.pub.agravity.ts +63 -43
- package/api/publicGeneralManagement.pub.agravity.ts +253 -104
- package/api/publicHelperTools.pub.agravity.ts +270 -106
- package/api/publicPortalManagement.pub.agravity.ts +323 -124
- package/api/publicPublishing.pub.agravity.ts +69 -38
- package/api/publicSavedSearch.pub.agravity.ts +75 -38
- package/api/publicSearchManagement.pub.agravity.ts +265 -194
- package/api/publicSharingManagement.pub.agravity.ts +246 -157
- package/api/publicSignalRConnectionManagement.pub.agravity.ts +68 -24
- package/api/publicStaticDefinedListManagement.pub.agravity.ts +212 -107
- package/api/publicTranslationManagement.pub.agravity.ts +189 -115
- package/api/publicWebAppData.pub.agravity.ts +146 -47
- package/api/publicWorkspaceManagement.pub.agravity.ts +158 -57
- package/api.module.ts +0 -24
- package/configuration.ts +42 -0
- package/git_push.sh +3 -4
- package/index.ts +1 -0
- package/model/agravityErrorResponse.pub.agravity.ts +3 -4
- package/model/{badRequestResult.pub.agravity.ts → agravityInfoResponse.pub.agravity.ts} +4 -3
- package/model/agravityVersion.pub.agravity.ts +8 -9
- package/model/allWebAppData.pub.agravity.ts +4 -5
- package/model/artificialIntelligenceGroup.pub.agravity.ts +3 -4
- package/model/asset.pub.agravity.ts +22 -23
- package/model/assetAvailability.pub.agravity.ts +1 -2
- package/model/assetBlob.pub.agravity.ts +27 -28
- package/model/assetIdFormat.pub.agravity.ts +3 -4
- package/model/assetPageResult.pub.agravity.ts +4 -5
- package/model/azSearchOptions.pub.agravity.ts +8 -9
- package/model/collTypeItem.pub.agravity.ts +16 -17
- package/model/collection.pub.agravity.ts +15 -16
- package/model/collectionType.pub.agravity.ts +14 -15
- package/model/collectionUDL.pub.agravity.ts +4 -5
- package/model/createSftpUserResult.pub.agravity.ts +2 -3
- package/model/dataResult.pub.agravity.ts +4 -5
- package/model/deletedEntities.pub.agravity.ts +4 -5
- package/model/distZipResponse.pub.agravity.ts +3 -4
- package/model/downloadFormat.pub.agravity.ts +19 -16
- package/model/dynamicImageOperation.pub.agravity.ts +2 -3
- package/model/entityId.pub.agravity.ts +1 -2
- package/model/entityIdName.pub.agravity.ts +3 -4
- package/model/frontendAppConfig.pub.agravity.ts +0 -1
- package/model/groupAllAppData.pub.agravity.ts +5 -6
- package/model/models.ts +1 -3
- package/model/moveCollectionBody.pub.agravity.ts +3 -4
- package/model/permissionEntity.pub.agravity.ts +1 -2
- package/model/portal.pub.agravity.ts +18 -20
- package/model/portalConfiguration.pub.agravity.ts +23 -25
- package/model/portalLinks.pub.agravity.ts +3 -4
- package/model/portalTheme.pub.agravity.ts +6 -7
- package/model/portalZipRequest.pub.agravity.ts +14 -15
- package/model/publishEntity.pub.agravity.ts +9 -10
- package/model/publishedAsset.pub.agravity.ts +12 -13
- package/model/quickShareFull.pub.agravity.ts +15 -16
- package/model/sasToken.pub.agravity.ts +6 -7
- package/model/savedSearch.pub.agravity.ts +13 -14
- package/model/searchAdminDataSourceStatus.pub.agravity.ts +2 -3
- package/model/searchAdminIndexStatus.pub.agravity.ts +3 -4
- package/model/searchAdminIndexerLastRun.pub.agravity.ts +3 -4
- package/model/searchAdminIndexerStatus.pub.agravity.ts +4 -5
- package/model/searchAdminSkillStatus.pub.agravity.ts +2 -3
- package/model/searchAdminStatistics.pub.agravity.ts +2 -3
- package/model/searchAdminStatus.pub.agravity.ts +4 -5
- package/model/searchFacet.pub.agravity.ts +2 -3
- package/model/searchFacetEntity.pub.agravity.ts +2 -3
- package/model/searchResult.pub.agravity.ts +3 -4
- package/model/searchableItem.pub.agravity.ts +3 -4
- package/model/secureUploadEntity.pub.agravity.ts +10 -11
- package/model/sharedAllowedFormat.pub.agravity.ts +2 -3
- package/model/sharedAsset.pub.agravity.ts +5 -6
- package/model/sharedCollectionFull.pub.agravity.ts +18 -19
- package/model/sharedCollectionZipRequest.pub.agravity.ts +14 -15
- package/model/signalRConnectionInfo.pub.agravity.ts +0 -1
- package/model/staticDefinedList.pub.agravity.ts +12 -13
- package/model/versionEntity.pub.agravity.ts +9 -10
- package/model/versionedAsset.pub.agravity.ts +5 -6
- package/model/whereParam.pub.agravity.ts +0 -1
- package/model/workspace.pub.agravity.ts +14 -15
- package/package.json +16 -17
- package/param.ts +44 -0
- package/model/okResult.pub.agravity.ts +0 -15
- package/model/portalLanguages.pub.agravity.ts +0 -16
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Agravity OpenAPI Documentation - Public Functions
|
|
3
3
|
* <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><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,17 +11,43 @@
|
|
|
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
|
-
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravity';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { CollectionUDL } from '../model/collectionUDL.pub.agravity';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { SearchableItem } from '../model/searchableItem.pub.agravity';
|
|
22
24
|
|
|
25
|
+
// @ts-ignore
|
|
23
26
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
24
27
|
import { AgravityPublicConfiguration } from '../configuration';
|
|
25
28
|
|
|
29
|
+
export interface HttpGetAllUserDefinedListsRequestParams {
|
|
30
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
31
|
+
translations?: boolean;
|
|
32
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
33
|
+
acceptLanguage?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface HttpGetAllowedFilterableItemsRequestParams {
|
|
37
|
+
/** If the search should be redirected to a specific portal. */
|
|
38
|
+
portalId?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface HttpGetAllowedSearchableItemNamesRequestParams {
|
|
42
|
+
/** If the search should be redirected to a specific portal. */
|
|
43
|
+
portalId?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface HttpGetAllowedSearchableItemsRequestParams {
|
|
47
|
+
/** If the search should be redirected to a specific portal. */
|
|
48
|
+
portalId?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
26
51
|
@Injectable({
|
|
27
52
|
providedIn: 'root'
|
|
28
53
|
})
|
|
@@ -34,13 +59,18 @@ export class PublicHelperToolsService {
|
|
|
34
59
|
|
|
35
60
|
constructor(
|
|
36
61
|
protected httpClient: HttpClient,
|
|
37
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
62
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
38
63
|
@Optional() configuration: AgravityPublicConfiguration
|
|
39
64
|
) {
|
|
40
65
|
if (configuration) {
|
|
41
66
|
this.configuration = configuration;
|
|
42
67
|
}
|
|
43
68
|
if (typeof this.configuration.basePath !== 'string') {
|
|
69
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
70
|
+
if (firstBasePath != undefined) {
|
|
71
|
+
basePath = firstBasePath;
|
|
72
|
+
}
|
|
73
|
+
|
|
44
74
|
if (typeof basePath !== 'string') {
|
|
45
75
|
basePath = this.basePath;
|
|
46
76
|
}
|
|
@@ -49,6 +79,7 @@ export class PublicHelperToolsService {
|
|
|
49
79
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
50
80
|
}
|
|
51
81
|
|
|
82
|
+
// @ts-ignore
|
|
52
83
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
53
84
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
54
85
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -68,7 +99,7 @@ export class PublicHelperToolsService {
|
|
|
68
99
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
69
100
|
} else if (value instanceof Date) {
|
|
70
101
|
if (key != null) {
|
|
71
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
102
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
72
103
|
} else {
|
|
73
104
|
throw Error('key may not be null if value is Date');
|
|
74
105
|
}
|
|
@@ -85,231 +116,364 @@ export class PublicHelperToolsService {
|
|
|
85
116
|
|
|
86
117
|
/**
|
|
87
118
|
* Returns all user defined lists of all collection types
|
|
88
|
-
* @param
|
|
119
|
+
* @param requestParameters
|
|
89
120
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
90
121
|
* @param reportProgress flag to report request and response progress.
|
|
91
122
|
*/
|
|
92
|
-
public httpGetAllUserDefinedLists(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<CollectionUDL>>;
|
|
93
123
|
public httpGetAllUserDefinedLists(
|
|
94
|
-
|
|
124
|
+
requestParameters?: HttpGetAllUserDefinedListsRequestParams,
|
|
125
|
+
observe?: 'body',
|
|
126
|
+
reportProgress?: boolean,
|
|
127
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
128
|
+
): Observable<Array<CollectionUDL>>;
|
|
129
|
+
public httpGetAllUserDefinedLists(
|
|
130
|
+
requestParameters?: HttpGetAllUserDefinedListsRequestParams,
|
|
95
131
|
observe?: 'response',
|
|
96
132
|
reportProgress?: boolean,
|
|
97
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
133
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
98
134
|
): Observable<HttpResponse<Array<CollectionUDL>>>;
|
|
99
135
|
public httpGetAllUserDefinedLists(
|
|
100
|
-
|
|
136
|
+
requestParameters?: HttpGetAllUserDefinedListsRequestParams,
|
|
101
137
|
observe?: 'events',
|
|
102
138
|
reportProgress?: boolean,
|
|
103
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
139
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
104
140
|
): Observable<HttpEvent<Array<CollectionUDL>>>;
|
|
105
|
-
public httpGetAllUserDefinedLists(
|
|
106
|
-
|
|
141
|
+
public httpGetAllUserDefinedLists(
|
|
142
|
+
requestParameters?: HttpGetAllUserDefinedListsRequestParams,
|
|
143
|
+
observe: any = 'body',
|
|
144
|
+
reportProgress: boolean = false,
|
|
145
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
146
|
+
): Observable<any> {
|
|
147
|
+
const translations = requestParameters?.translations;
|
|
148
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
149
|
+
|
|
150
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
107
151
|
if (translations !== undefined && translations !== null) {
|
|
108
|
-
|
|
152
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
109
153
|
}
|
|
110
154
|
|
|
111
|
-
let
|
|
155
|
+
let localVarHeaders = this.defaultHeaders;
|
|
156
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
157
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
158
|
+
}
|
|
112
159
|
|
|
113
|
-
let
|
|
160
|
+
let localVarCredential: string | undefined;
|
|
114
161
|
// authentication (function_key) required
|
|
115
|
-
|
|
116
|
-
if (
|
|
117
|
-
|
|
162
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
163
|
+
if (localVarCredential) {
|
|
164
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
118
165
|
}
|
|
119
166
|
|
|
120
|
-
let
|
|
121
|
-
if (
|
|
167
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
168
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
122
169
|
// to determine the Accept header
|
|
123
170
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
124
|
-
|
|
171
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
172
|
+
}
|
|
173
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
174
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
125
175
|
}
|
|
126
|
-
|
|
127
|
-
|
|
176
|
+
|
|
177
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
178
|
+
if (localVarHttpContext === undefined) {
|
|
179
|
+
localVarHttpContext = new HttpContext();
|
|
128
180
|
}
|
|
129
181
|
|
|
130
|
-
let
|
|
131
|
-
if (
|
|
132
|
-
|
|
182
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
183
|
+
if (localVarTransferCache === undefined) {
|
|
184
|
+
localVarTransferCache = true;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
188
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
189
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
190
|
+
responseType_ = 'text';
|
|
191
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
192
|
+
responseType_ = 'json';
|
|
193
|
+
} else {
|
|
194
|
+
responseType_ = 'blob';
|
|
195
|
+
}
|
|
133
196
|
}
|
|
134
197
|
|
|
135
|
-
|
|
136
|
-
|
|
198
|
+
let localVarPath = `/helper/userdefinedlists`;
|
|
199
|
+
return this.httpClient.request<Array<CollectionUDL>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
200
|
+
context: localVarHttpContext,
|
|
201
|
+
params: localVarQueryParameters,
|
|
137
202
|
responseType: <any>responseType_,
|
|
138
203
|
withCredentials: this.configuration.withCredentials,
|
|
139
|
-
headers:
|
|
204
|
+
headers: localVarHeaders,
|
|
140
205
|
observe: observe,
|
|
206
|
+
transferCache: localVarTransferCache,
|
|
141
207
|
reportProgress: reportProgress
|
|
142
208
|
});
|
|
143
209
|
}
|
|
144
210
|
|
|
145
211
|
/**
|
|
146
212
|
* Returns all filterable items directly from the search index
|
|
147
|
-
* @param
|
|
213
|
+
* @param requestParameters
|
|
148
214
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
149
215
|
* @param reportProgress flag to report request and response progress.
|
|
150
216
|
*/
|
|
151
|
-
public httpGetAllowedFilterableItems(portalId?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<string>>;
|
|
152
217
|
public httpGetAllowedFilterableItems(
|
|
153
|
-
|
|
218
|
+
requestParameters?: HttpGetAllowedFilterableItemsRequestParams,
|
|
219
|
+
observe?: 'body',
|
|
220
|
+
reportProgress?: boolean,
|
|
221
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
222
|
+
): Observable<Array<string>>;
|
|
223
|
+
public httpGetAllowedFilterableItems(
|
|
224
|
+
requestParameters?: HttpGetAllowedFilterableItemsRequestParams,
|
|
154
225
|
observe?: 'response',
|
|
155
226
|
reportProgress?: boolean,
|
|
156
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
227
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
157
228
|
): Observable<HttpResponse<Array<string>>>;
|
|
158
|
-
public httpGetAllowedFilterableItems(
|
|
159
|
-
|
|
160
|
-
|
|
229
|
+
public httpGetAllowedFilterableItems(
|
|
230
|
+
requestParameters?: HttpGetAllowedFilterableItemsRequestParams,
|
|
231
|
+
observe?: 'events',
|
|
232
|
+
reportProgress?: boolean,
|
|
233
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
234
|
+
): Observable<HttpEvent<Array<string>>>;
|
|
235
|
+
public httpGetAllowedFilterableItems(
|
|
236
|
+
requestParameters?: HttpGetAllowedFilterableItemsRequestParams,
|
|
237
|
+
observe: any = 'body',
|
|
238
|
+
reportProgress: boolean = false,
|
|
239
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
240
|
+
): Observable<any> {
|
|
241
|
+
const portalId = requestParameters?.portalId;
|
|
242
|
+
|
|
243
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
161
244
|
if (portalId !== undefined && portalId !== null) {
|
|
162
|
-
|
|
245
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
163
246
|
}
|
|
164
247
|
|
|
165
|
-
let
|
|
248
|
+
let localVarHeaders = this.defaultHeaders;
|
|
166
249
|
|
|
167
|
-
let
|
|
250
|
+
let localVarCredential: string | undefined;
|
|
168
251
|
// authentication (function_key) required
|
|
169
|
-
|
|
170
|
-
if (
|
|
171
|
-
|
|
252
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
253
|
+
if (localVarCredential) {
|
|
254
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
172
255
|
}
|
|
173
256
|
|
|
174
|
-
let
|
|
175
|
-
if (
|
|
257
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
258
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
176
259
|
// to determine the Accept header
|
|
177
260
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
178
|
-
|
|
261
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
262
|
+
}
|
|
263
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
264
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
179
265
|
}
|
|
180
|
-
|
|
181
|
-
|
|
266
|
+
|
|
267
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
268
|
+
if (localVarHttpContext === undefined) {
|
|
269
|
+
localVarHttpContext = new HttpContext();
|
|
182
270
|
}
|
|
183
271
|
|
|
184
|
-
let
|
|
185
|
-
if (
|
|
186
|
-
|
|
272
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
273
|
+
if (localVarTransferCache === undefined) {
|
|
274
|
+
localVarTransferCache = true;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
278
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
279
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
280
|
+
responseType_ = 'text';
|
|
281
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
282
|
+
responseType_ = 'json';
|
|
283
|
+
} else {
|
|
284
|
+
responseType_ = 'blob';
|
|
285
|
+
}
|
|
187
286
|
}
|
|
188
287
|
|
|
189
|
-
|
|
190
|
-
|
|
288
|
+
let localVarPath = `/helper/filterableitems`;
|
|
289
|
+
return this.httpClient.request<Array<string>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
290
|
+
context: localVarHttpContext,
|
|
291
|
+
params: localVarQueryParameters,
|
|
191
292
|
responseType: <any>responseType_,
|
|
192
293
|
withCredentials: this.configuration.withCredentials,
|
|
193
|
-
headers:
|
|
294
|
+
headers: localVarHeaders,
|
|
194
295
|
observe: observe,
|
|
296
|
+
transferCache: localVarTransferCache,
|
|
195
297
|
reportProgress: reportProgress
|
|
196
298
|
});
|
|
197
299
|
}
|
|
198
300
|
|
|
199
301
|
/**
|
|
200
302
|
* Returns all searchable items directly from the search index
|
|
201
|
-
* @param
|
|
303
|
+
* @param requestParameters
|
|
202
304
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
203
305
|
* @param reportProgress flag to report request and response progress.
|
|
204
306
|
*/
|
|
205
|
-
public httpGetAllowedSearchableItemNames(portalId?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<string>>;
|
|
206
307
|
public httpGetAllowedSearchableItemNames(
|
|
207
|
-
|
|
308
|
+
requestParameters?: HttpGetAllowedSearchableItemNamesRequestParams,
|
|
309
|
+
observe?: 'body',
|
|
310
|
+
reportProgress?: boolean,
|
|
311
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
312
|
+
): Observable<Array<string>>;
|
|
313
|
+
public httpGetAllowedSearchableItemNames(
|
|
314
|
+
requestParameters?: HttpGetAllowedSearchableItemNamesRequestParams,
|
|
208
315
|
observe?: 'response',
|
|
209
316
|
reportProgress?: boolean,
|
|
210
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
317
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
211
318
|
): Observable<HttpResponse<Array<string>>>;
|
|
212
319
|
public httpGetAllowedSearchableItemNames(
|
|
213
|
-
|
|
320
|
+
requestParameters?: HttpGetAllowedSearchableItemNamesRequestParams,
|
|
214
321
|
observe?: 'events',
|
|
215
322
|
reportProgress?: boolean,
|
|
216
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
323
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
217
324
|
): Observable<HttpEvent<Array<string>>>;
|
|
218
|
-
public httpGetAllowedSearchableItemNames(
|
|
219
|
-
|
|
325
|
+
public httpGetAllowedSearchableItemNames(
|
|
326
|
+
requestParameters?: HttpGetAllowedSearchableItemNamesRequestParams,
|
|
327
|
+
observe: any = 'body',
|
|
328
|
+
reportProgress: boolean = false,
|
|
329
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
330
|
+
): Observable<any> {
|
|
331
|
+
const portalId = requestParameters?.portalId;
|
|
332
|
+
|
|
333
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
220
334
|
if (portalId !== undefined && portalId !== null) {
|
|
221
|
-
|
|
335
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
222
336
|
}
|
|
223
337
|
|
|
224
|
-
let
|
|
338
|
+
let localVarHeaders = this.defaultHeaders;
|
|
225
339
|
|
|
226
|
-
let
|
|
340
|
+
let localVarCredential: string | undefined;
|
|
227
341
|
// authentication (function_key) required
|
|
228
|
-
|
|
229
|
-
if (
|
|
230
|
-
|
|
342
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
343
|
+
if (localVarCredential) {
|
|
344
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
231
345
|
}
|
|
232
346
|
|
|
233
|
-
let
|
|
234
|
-
if (
|
|
347
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
348
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
235
349
|
// to determine the Accept header
|
|
236
350
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
237
|
-
|
|
351
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
238
352
|
}
|
|
239
|
-
if (
|
|
240
|
-
|
|
353
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
354
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
241
355
|
}
|
|
242
356
|
|
|
243
|
-
let
|
|
244
|
-
if (
|
|
245
|
-
|
|
357
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
358
|
+
if (localVarHttpContext === undefined) {
|
|
359
|
+
localVarHttpContext = new HttpContext();
|
|
246
360
|
}
|
|
247
361
|
|
|
248
|
-
|
|
249
|
-
|
|
362
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
363
|
+
if (localVarTransferCache === undefined) {
|
|
364
|
+
localVarTransferCache = true;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
368
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
369
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
370
|
+
responseType_ = 'text';
|
|
371
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
372
|
+
responseType_ = 'json';
|
|
373
|
+
} else {
|
|
374
|
+
responseType_ = 'blob';
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
let localVarPath = `/helper/searchableitemnames`;
|
|
379
|
+
return this.httpClient.request<Array<string>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
380
|
+
context: localVarHttpContext,
|
|
381
|
+
params: localVarQueryParameters,
|
|
250
382
|
responseType: <any>responseType_,
|
|
251
383
|
withCredentials: this.configuration.withCredentials,
|
|
252
|
-
headers:
|
|
384
|
+
headers: localVarHeaders,
|
|
253
385
|
observe: observe,
|
|
386
|
+
transferCache: localVarTransferCache,
|
|
254
387
|
reportProgress: reportProgress
|
|
255
388
|
});
|
|
256
389
|
}
|
|
257
390
|
|
|
258
391
|
/**
|
|
259
392
|
* Returns all searchable items directly from the search index
|
|
260
|
-
* @param
|
|
393
|
+
* @param requestParameters
|
|
261
394
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
262
395
|
* @param reportProgress flag to report request and response progress.
|
|
263
396
|
*/
|
|
264
|
-
public httpGetAllowedSearchableItems(portalId?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<SearchableItem>>;
|
|
265
397
|
public httpGetAllowedSearchableItems(
|
|
266
|
-
|
|
398
|
+
requestParameters?: HttpGetAllowedSearchableItemsRequestParams,
|
|
399
|
+
observe?: 'body',
|
|
400
|
+
reportProgress?: boolean,
|
|
401
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
402
|
+
): Observable<Array<SearchableItem>>;
|
|
403
|
+
public httpGetAllowedSearchableItems(
|
|
404
|
+
requestParameters?: HttpGetAllowedSearchableItemsRequestParams,
|
|
267
405
|
observe?: 'response',
|
|
268
406
|
reportProgress?: boolean,
|
|
269
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
407
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
270
408
|
): Observable<HttpResponse<Array<SearchableItem>>>;
|
|
271
409
|
public httpGetAllowedSearchableItems(
|
|
272
|
-
|
|
410
|
+
requestParameters?: HttpGetAllowedSearchableItemsRequestParams,
|
|
273
411
|
observe?: 'events',
|
|
274
412
|
reportProgress?: boolean,
|
|
275
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
413
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
276
414
|
): Observable<HttpEvent<Array<SearchableItem>>>;
|
|
277
|
-
public httpGetAllowedSearchableItems(
|
|
278
|
-
|
|
415
|
+
public httpGetAllowedSearchableItems(
|
|
416
|
+
requestParameters?: HttpGetAllowedSearchableItemsRequestParams,
|
|
417
|
+
observe: any = 'body',
|
|
418
|
+
reportProgress: boolean = false,
|
|
419
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
420
|
+
): Observable<any> {
|
|
421
|
+
const portalId = requestParameters?.portalId;
|
|
422
|
+
|
|
423
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
279
424
|
if (portalId !== undefined && portalId !== null) {
|
|
280
|
-
|
|
425
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
281
426
|
}
|
|
282
427
|
|
|
283
|
-
let
|
|
428
|
+
let localVarHeaders = this.defaultHeaders;
|
|
284
429
|
|
|
285
|
-
let
|
|
430
|
+
let localVarCredential: string | undefined;
|
|
286
431
|
// authentication (function_key) required
|
|
287
|
-
|
|
288
|
-
if (
|
|
289
|
-
|
|
432
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
433
|
+
if (localVarCredential) {
|
|
434
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
290
435
|
}
|
|
291
436
|
|
|
292
|
-
let
|
|
293
|
-
if (
|
|
437
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
438
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
294
439
|
// to determine the Accept header
|
|
295
440
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
296
|
-
|
|
441
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
297
442
|
}
|
|
298
|
-
if (
|
|
299
|
-
|
|
443
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
444
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
300
445
|
}
|
|
301
446
|
|
|
302
|
-
let
|
|
303
|
-
if (
|
|
304
|
-
|
|
447
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
448
|
+
if (localVarHttpContext === undefined) {
|
|
449
|
+
localVarHttpContext = new HttpContext();
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
453
|
+
if (localVarTransferCache === undefined) {
|
|
454
|
+
localVarTransferCache = true;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
458
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
459
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
460
|
+
responseType_ = 'text';
|
|
461
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
462
|
+
responseType_ = 'json';
|
|
463
|
+
} else {
|
|
464
|
+
responseType_ = 'blob';
|
|
465
|
+
}
|
|
305
466
|
}
|
|
306
467
|
|
|
307
|
-
|
|
308
|
-
|
|
468
|
+
let localVarPath = `/helper/searchableitems`;
|
|
469
|
+
return this.httpClient.request<Array<SearchableItem>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
470
|
+
context: localVarHttpContext,
|
|
471
|
+
params: localVarQueryParameters,
|
|
309
472
|
responseType: <any>responseType_,
|
|
310
473
|
withCredentials: this.configuration.withCredentials,
|
|
311
|
-
headers:
|
|
474
|
+
headers: localVarHeaders,
|
|
312
475
|
observe: observe,
|
|
476
|
+
transferCache: localVarTransferCache,
|
|
313
477
|
reportProgress: reportProgress
|
|
314
478
|
});
|
|
315
479
|
}
|