@agravity/public 5.3.0 → 5.3.2

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.
Files changed (76) hide show
  1. package/README.md +2 -2
  2. package/api/api.ts +65 -43
  3. package/api/publicAssetManagement.pub.agravity.ts +615 -504
  4. package/api/publicAssetOperations.pub.agravity.ts +740 -633
  5. package/api/publicAssetPublishing.pub.agravity.ts +277 -263
  6. package/api/publicAssetVersioning.pub.agravity.ts +613 -552
  7. package/api/publicAuthenticationManagement.pub.agravity.ts +125 -135
  8. package/api/publicCollectionManagement.pub.agravity.ts +680 -562
  9. package/api/publicCollectionSecureUpload.pub.agravity.ts +243 -229
  10. package/api/publicCollectionTypeManagement.pub.agravity.ts +293 -266
  11. package/api/publicConfigurationManagement.pub.agravity.ts +118 -128
  12. package/api/publicDownloadFormatManagement.pub.agravity.ts +125 -135
  13. package/api/publicGeneralManagement.pub.agravity.ts +206 -221
  14. package/api/publicHelperTools.pub.agravity.ts +269 -288
  15. package/api/publicPublishing.pub.agravity.ts +160 -148
  16. package/api/publicSavedSearch.pub.agravity.ts +160 -148
  17. package/api/publicSearchManagement.pub.agravity.ts +237 -197
  18. package/api/publicSharingManagement.pub.agravity.ts +259 -215
  19. package/api/publicSignalRConnectionManagement.pub.agravity.ts +125 -136
  20. package/api/publicStaticDefinedListManagement.pub.agravity.ts +325 -203
  21. package/api/publicTranslationManagement.pub.agravity.ts +322 -267
  22. package/api/publicWebAppData.pub.agravity.ts +179 -193
  23. package/api/publicWorkspaceManagement.pub.agravity.ts +199 -204
  24. package/api.module.ts +49 -51
  25. package/configuration.ts +129 -132
  26. package/encoder.ts +20 -20
  27. package/index.ts +5 -5
  28. package/model/agravityErrorResponse.pub.agravity.ts +17 -19
  29. package/model/agravityVersion.pub.agravity.ts +22 -24
  30. package/model/allWebAppData.pub.agravity.ts +22 -24
  31. package/model/artificialIntelligenceGroup.pub.agravity.ts +18 -20
  32. package/model/asset.pub.agravity.ts +45 -47
  33. package/model/assetAvailability.pub.agravity.ts +17 -19
  34. package/model/assetBlob.pub.agravity.ts +79 -82
  35. package/model/assetIdFormat.pub.agravity.ts +17 -19
  36. package/model/assetPageResult.pub.agravity.ts +21 -23
  37. package/model/azSearchOptions.pub.agravity.ts +23 -25
  38. package/model/badRequestResult.pub.agravity.ts +15 -17
  39. package/model/collTypeItem.pub.agravity.ts +36 -38
  40. package/model/collection.pub.agravity.ts +33 -35
  41. package/model/collectionType.pub.agravity.ts +33 -35
  42. package/model/collectionUDL.pub.agravity.ts +19 -21
  43. package/model/createSftpUserResult.pub.agravity.ts +16 -18
  44. package/model/dataResult.pub.agravity.ts +20 -22
  45. package/model/distZipResponse.pub.agravity.ts +17 -19
  46. package/model/downloadFormat.pub.agravity.ts +32 -34
  47. package/model/dynamicImageOperation.pub.agravity.ts +16 -18
  48. package/model/entityId.pub.agravity.ts +15 -17
  49. package/model/entityIdName.pub.agravity.ts +17 -19
  50. package/model/frontendAppConfig.pub.agravity.ts +19 -21
  51. package/model/groupAllAppData.pub.agravity.ts +24 -26
  52. package/model/metadata.pub.agravity.ts +17 -19
  53. package/model/models.ts +44 -44
  54. package/model/okResult.pub.agravity.ts +15 -17
  55. package/model/publishEntity.pub.agravity.ts +26 -28
  56. package/model/publishedAsset.pub.agravity.ts +23 -25
  57. package/model/quickShareFull.pub.agravity.ts +35 -37
  58. package/model/sasToken.pub.agravity.ts +20 -22
  59. package/model/savedSearch.pub.agravity.ts +29 -31
  60. package/model/searchFacet.pub.agravity.ts +17 -19
  61. package/model/searchFacetEntity.pub.agravity.ts +17 -19
  62. package/model/searchResult.pub.agravity.ts +21 -23
  63. package/model/searchableItem.pub.agravity.ts +24 -26
  64. package/model/secureUploadEntity.pub.agravity.ts +25 -27
  65. package/model/sharedAsset.pub.agravity.ts +23 -25
  66. package/model/sharedCollectionFull.pub.agravity.ts +27 -29
  67. package/model/signalRConnectionInfo.pub.agravity.ts +16 -18
  68. package/model/staticDefinedList.pub.agravity.ts +28 -30
  69. package/model/versionEntity.pub.agravity.ts +26 -28
  70. package/model/versionedAsset.pub.agravity.ts +18 -20
  71. package/model/whereParam.pub.agravity.ts +40 -43
  72. package/model/workspace.pub.agravity.ts +32 -34
  73. package/ng-package.json +6 -6
  74. package/package.json +45 -45
  75. package/tsconfig.json +20 -28
  76. package/variables.ts +9 -9
@@ -1,288 +1,269 @@
1
- /**
2
- * Agravity OpenAPI Documentation - Public Functions
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 2023. All Rights Reserved
4
- *
5
- * The version of the OpenAPI document: 5.3.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 { CollectionUDL } from '../model/models';
21
- import { SearchableItem } from '../model/models';
22
-
23
- import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
24
- import { AgravityPublicConfiguration } from '../configuration';
25
-
26
-
27
-
28
- @Injectable({
29
- providedIn: 'root'
30
- })
31
- export class PublicHelperToolsService {
32
-
33
- protected basePath = 'http://localhost:7072/api';
34
- public defaultHeaders = new HttpHeaders();
35
- public configuration = new AgravityPublicConfiguration();
36
- public encoder: HttpParameterCodec;
37
-
38
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityPublicConfiguration) {
39
- if (configuration) {
40
- this.configuration = configuration;
41
- }
42
- if (typeof this.configuration.basePath !== 'string') {
43
- if (typeof basePath !== 'string') {
44
- basePath = this.basePath;
45
- }
46
- this.configuration.basePath = basePath;
47
- }
48
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
49
- }
50
-
51
-
52
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
53
- if (typeof value === "object" && value instanceof Date === false) {
54
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
55
- } else {
56
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
57
- }
58
- return httpParams;
59
- }
60
-
61
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
62
- if (value == null) {
63
- return httpParams;
64
- }
65
-
66
- if (typeof value === "object") {
67
- if (Array.isArray(value)) {
68
- (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
69
- } else if (value instanceof Date) {
70
- if (key != null) {
71
- httpParams = httpParams.append(key,
72
- (value as Date).toISOString().substr(0, 10));
73
- } else {
74
- throw Error("key may not be null if value is Date");
75
- }
76
- } else {
77
- Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
78
- httpParams, value[k], key != null ? `${key}.${k}` : k));
79
- }
80
- } else if (key != null) {
81
- httpParams = httpParams.append(key, value);
82
- } else {
83
- throw Error("key may not be null if value is not object or array");
84
- }
85
- return httpParams;
86
- }
87
-
88
- /**
89
- * Returns all user defined lists of all collection types
90
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
91
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
92
- * @param reportProgress flag to report request and response progress.
93
- */
94
- public httpGetAllUserDefinedLists(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<CollectionUDL>>;
95
- public httpGetAllUserDefinedLists(translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<CollectionUDL>>>;
96
- public httpGetAllUserDefinedLists(translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<CollectionUDL>>>;
97
- public httpGetAllUserDefinedLists(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
98
-
99
- let queryParameters = new HttpParams({encoder: this.encoder});
100
- if (translations !== undefined && translations !== null) {
101
- queryParameters = this.addToHttpParams(queryParameters,
102
- <any>translations, 'translations');
103
- }
104
-
105
- let headers = this.defaultHeaders;
106
-
107
- let credential: string | undefined;
108
- // authentication (function_key) required
109
- credential = this.configuration.lookupCredential('function_key');
110
- if (credential) {
111
- headers = headers.set('x-functions-key', credential);
112
- }
113
-
114
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
115
- if (httpHeaderAcceptSelected === undefined) {
116
- // to determine the Accept header
117
- const httpHeaderAccepts: string[] = [
118
- 'application/json'
119
- ];
120
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
121
- }
122
- if (httpHeaderAcceptSelected !== undefined) {
123
- headers = headers.set('Accept', httpHeaderAcceptSelected);
124
- }
125
-
126
-
127
- let responseType_: 'text' | 'json' = 'json';
128
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
129
- responseType_ = 'text';
130
- }
131
-
132
- return this.httpClient.get<Array<CollectionUDL>>(`${this.configuration.basePath}/helper/userdefinedlists`,
133
- {
134
- params: queryParameters,
135
- responseType: <any>responseType_,
136
- withCredentials: this.configuration.withCredentials,
137
- headers: headers,
138
- observe: observe,
139
- reportProgress: reportProgress
140
- }
141
- );
142
- }
143
-
144
- /**
145
- * Returns all filterable items directly from the search index
146
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
147
- * @param reportProgress flag to report request and response progress.
148
- */
149
- public httpGetAllowedFilterableItems(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<string>>;
150
- public httpGetAllowedFilterableItems(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<string>>>;
151
- public httpGetAllowedFilterableItems(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<string>>>;
152
- public httpGetAllowedFilterableItems(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
153
-
154
- let headers = this.defaultHeaders;
155
-
156
- let credential: string | undefined;
157
- // authentication (function_key) required
158
- credential = this.configuration.lookupCredential('function_key');
159
- if (credential) {
160
- headers = headers.set('x-functions-key', credential);
161
- }
162
-
163
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
164
- if (httpHeaderAcceptSelected === undefined) {
165
- // to determine the Accept header
166
- const httpHeaderAccepts: string[] = [
167
- 'application/json'
168
- ];
169
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
170
- }
171
- if (httpHeaderAcceptSelected !== undefined) {
172
- headers = headers.set('Accept', httpHeaderAcceptSelected);
173
- }
174
-
175
-
176
- let responseType_: 'text' | 'json' = 'json';
177
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
178
- responseType_ = 'text';
179
- }
180
-
181
- return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/helper/filterableitems`,
182
- {
183
- responseType: <any>responseType_,
184
- withCredentials: this.configuration.withCredentials,
185
- headers: headers,
186
- observe: observe,
187
- reportProgress: reportProgress
188
- }
189
- );
190
- }
191
-
192
- /**
193
- * Returns all searchable items directly from the search index
194
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
195
- * @param reportProgress flag to report request and response progress.
196
- */
197
- public httpGetAllowedSearchableItemNames(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<string>>;
198
- public httpGetAllowedSearchableItemNames(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<string>>>;
199
- public httpGetAllowedSearchableItemNames(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<string>>>;
200
- public httpGetAllowedSearchableItemNames(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
201
-
202
- let headers = this.defaultHeaders;
203
-
204
- let credential: string | undefined;
205
- // authentication (function_key) required
206
- credential = this.configuration.lookupCredential('function_key');
207
- if (credential) {
208
- headers = headers.set('x-functions-key', credential);
209
- }
210
-
211
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
212
- if (httpHeaderAcceptSelected === undefined) {
213
- // to determine the Accept header
214
- const httpHeaderAccepts: string[] = [
215
- 'application/json'
216
- ];
217
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
218
- }
219
- if (httpHeaderAcceptSelected !== undefined) {
220
- headers = headers.set('Accept', httpHeaderAcceptSelected);
221
- }
222
-
223
-
224
- let responseType_: 'text' | 'json' = 'json';
225
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
226
- responseType_ = 'text';
227
- }
228
-
229
- return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/helper/searchableitemnames`,
230
- {
231
- responseType: <any>responseType_,
232
- withCredentials: this.configuration.withCredentials,
233
- headers: headers,
234
- observe: observe,
235
- reportProgress: reportProgress
236
- }
237
- );
238
- }
239
-
240
- /**
241
- * Returns all searchable items directly from the search index
242
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
243
- * @param reportProgress flag to report request and response progress.
244
- */
245
- public httpGetAllowedSearchableItems(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<SearchableItem>>;
246
- public httpGetAllowedSearchableItems(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<SearchableItem>>>;
247
- public httpGetAllowedSearchableItems(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<SearchableItem>>>;
248
- public httpGetAllowedSearchableItems(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
249
-
250
- let headers = this.defaultHeaders;
251
-
252
- let credential: string | undefined;
253
- // authentication (function_key) required
254
- credential = this.configuration.lookupCredential('function_key');
255
- if (credential) {
256
- headers = headers.set('x-functions-key', credential);
257
- }
258
-
259
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
260
- if (httpHeaderAcceptSelected === undefined) {
261
- // to determine the Accept header
262
- const httpHeaderAccepts: string[] = [
263
- 'application/json'
264
- ];
265
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
266
- }
267
- if (httpHeaderAcceptSelected !== undefined) {
268
- headers = headers.set('Accept', httpHeaderAcceptSelected);
269
- }
270
-
271
-
272
- let responseType_: 'text' | 'json' = 'json';
273
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
274
- responseType_ = 'text';
275
- }
276
-
277
- return this.httpClient.get<Array<SearchableItem>>(`${this.configuration.basePath}/helper/searchableitems`,
278
- {
279
- responseType: <any>responseType_,
280
- withCredentials: this.configuration.withCredentials,
281
- headers: headers,
282
- observe: observe,
283
- reportProgress: reportProgress
284
- }
285
- );
286
- }
287
-
288
- }
1
+ /**
2
+ * Agravity OpenAPI Documentation - Public Functions
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 2023. All Rights Reserved
4
+ *
5
+ * The version of the OpenAPI document: 5.3.2
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, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
16
+ import { CustomHttpParameterCodec } from '../encoder';
17
+ import { Observable } from 'rxjs';
18
+
19
+ import { CollectionUDL } from '../model/models';
20
+ import { SearchableItem } from '../model/models';
21
+
22
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
23
+ import { AgravityPublicConfiguration } from '../configuration';
24
+
25
+ @Injectable({
26
+ providedIn: 'root'
27
+ })
28
+ export class PublicHelperToolsService {
29
+ protected basePath = 'http://localhost:7072/api';
30
+ public defaultHeaders = new HttpHeaders();
31
+ public configuration = new AgravityPublicConfiguration();
32
+ public encoder: HttpParameterCodec;
33
+
34
+ constructor(
35
+ protected httpClient: HttpClient,
36
+ @Optional() @Inject(BASE_PATH) basePath: string,
37
+ @Optional() configuration: AgravityPublicConfiguration
38
+ ) {
39
+ if (configuration) {
40
+ this.configuration = configuration;
41
+ }
42
+ if (typeof this.configuration.basePath !== 'string') {
43
+ if (typeof basePath !== 'string') {
44
+ basePath = this.basePath;
45
+ }
46
+ this.configuration.basePath = basePath;
47
+ }
48
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
49
+ }
50
+
51
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
52
+ if (typeof value === 'object' && value instanceof Date === false) {
53
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
54
+ } else {
55
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
56
+ }
57
+ return httpParams;
58
+ }
59
+
60
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
61
+ if (value == null) {
62
+ return httpParams;
63
+ }
64
+
65
+ if (typeof value === 'object') {
66
+ if (Array.isArray(value)) {
67
+ (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
68
+ } else if (value instanceof Date) {
69
+ if (key != null) {
70
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
71
+ } else {
72
+ throw Error('key may not be null if value is Date');
73
+ }
74
+ } else {
75
+ Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
76
+ }
77
+ } else if (key != null) {
78
+ httpParams = httpParams.append(key, value);
79
+ } else {
80
+ throw Error('key may not be null if value is not object or array');
81
+ }
82
+ return httpParams;
83
+ }
84
+
85
+ /**
86
+ * Returns all user defined lists of all collection types
87
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
88
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
89
+ * @param reportProgress flag to report request and response progress.
90
+ */
91
+ public httpGetAllUserDefinedLists(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<CollectionUDL>>;
92
+ public httpGetAllUserDefinedLists(
93
+ translations?: boolean,
94
+ observe?: 'response',
95
+ reportProgress?: boolean,
96
+ options?: { httpHeaderAccept?: 'application/json' }
97
+ ): Observable<HttpResponse<Array<CollectionUDL>>>;
98
+ public httpGetAllUserDefinedLists(
99
+ translations?: boolean,
100
+ observe?: 'events',
101
+ reportProgress?: boolean,
102
+ options?: { httpHeaderAccept?: 'application/json' }
103
+ ): Observable<HttpEvent<Array<CollectionUDL>>>;
104
+ public httpGetAllUserDefinedLists(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
105
+ let queryParameters = new HttpParams({ encoder: this.encoder });
106
+ if (translations !== undefined && translations !== null) {
107
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
108
+ }
109
+
110
+ let headers = this.defaultHeaders;
111
+
112
+ let credential: string | undefined;
113
+ // authentication (function_key) required
114
+ credential = this.configuration.lookupCredential('function_key');
115
+ if (credential) {
116
+ headers = headers.set('x-functions-key', credential);
117
+ }
118
+
119
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
120
+ if (httpHeaderAcceptSelected === undefined) {
121
+ // to determine the Accept header
122
+ const httpHeaderAccepts: string[] = ['application/json'];
123
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
124
+ }
125
+ if (httpHeaderAcceptSelected !== undefined) {
126
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
127
+ }
128
+
129
+ let responseType_: 'text' | 'json' = 'json';
130
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
131
+ responseType_ = 'text';
132
+ }
133
+
134
+ return this.httpClient.get<Array<CollectionUDL>>(`${this.configuration.basePath}/helper/userdefinedlists`, {
135
+ params: queryParameters,
136
+ responseType: <any>responseType_,
137
+ withCredentials: this.configuration.withCredentials,
138
+ headers: headers,
139
+ observe: observe,
140
+ reportProgress: reportProgress
141
+ });
142
+ }
143
+
144
+ /**
145
+ * Returns all filterable items directly from the search index
146
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
147
+ * @param reportProgress flag to report request and response progress.
148
+ */
149
+ public httpGetAllowedFilterableItems(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<string>>;
150
+ public httpGetAllowedFilterableItems(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<string>>>;
151
+ public httpGetAllowedFilterableItems(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<string>>>;
152
+ public httpGetAllowedFilterableItems(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
153
+ let headers = this.defaultHeaders;
154
+
155
+ let credential: string | undefined;
156
+ // authentication (function_key) required
157
+ credential = this.configuration.lookupCredential('function_key');
158
+ if (credential) {
159
+ headers = headers.set('x-functions-key', credential);
160
+ }
161
+
162
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
163
+ if (httpHeaderAcceptSelected === undefined) {
164
+ // to determine the Accept header
165
+ const httpHeaderAccepts: string[] = ['application/json'];
166
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
167
+ }
168
+ if (httpHeaderAcceptSelected !== undefined) {
169
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
170
+ }
171
+
172
+ let responseType_: 'text' | 'json' = 'json';
173
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
174
+ responseType_ = 'text';
175
+ }
176
+
177
+ return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/helper/filterableitems`, {
178
+ responseType: <any>responseType_,
179
+ withCredentials: this.configuration.withCredentials,
180
+ headers: headers,
181
+ observe: observe,
182
+ reportProgress: reportProgress
183
+ });
184
+ }
185
+
186
+ /**
187
+ * Returns all searchable items directly from the search index
188
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
189
+ * @param reportProgress flag to report request and response progress.
190
+ */
191
+ public httpGetAllowedSearchableItemNames(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<string>>;
192
+ public httpGetAllowedSearchableItemNames(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<string>>>;
193
+ public httpGetAllowedSearchableItemNames(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<string>>>;
194
+ public httpGetAllowedSearchableItemNames(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
195
+ let headers = this.defaultHeaders;
196
+
197
+ let credential: string | undefined;
198
+ // authentication (function_key) required
199
+ credential = this.configuration.lookupCredential('function_key');
200
+ if (credential) {
201
+ headers = headers.set('x-functions-key', credential);
202
+ }
203
+
204
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
205
+ if (httpHeaderAcceptSelected === undefined) {
206
+ // to determine the Accept header
207
+ const httpHeaderAccepts: string[] = ['application/json'];
208
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
209
+ }
210
+ if (httpHeaderAcceptSelected !== undefined) {
211
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
212
+ }
213
+
214
+ let responseType_: 'text' | 'json' = 'json';
215
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
216
+ responseType_ = 'text';
217
+ }
218
+
219
+ return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/helper/searchableitemnames`, {
220
+ responseType: <any>responseType_,
221
+ withCredentials: this.configuration.withCredentials,
222
+ headers: headers,
223
+ observe: observe,
224
+ reportProgress: reportProgress
225
+ });
226
+ }
227
+
228
+ /**
229
+ * Returns all searchable items directly from the search index
230
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
231
+ * @param reportProgress flag to report request and response progress.
232
+ */
233
+ public httpGetAllowedSearchableItems(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<SearchableItem>>;
234
+ public httpGetAllowedSearchableItems(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<SearchableItem>>>;
235
+ public httpGetAllowedSearchableItems(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<SearchableItem>>>;
236
+ public httpGetAllowedSearchableItems(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
237
+ let headers = this.defaultHeaders;
238
+
239
+ let credential: string | undefined;
240
+ // authentication (function_key) required
241
+ credential = this.configuration.lookupCredential('function_key');
242
+ if (credential) {
243
+ headers = headers.set('x-functions-key', credential);
244
+ }
245
+
246
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
247
+ if (httpHeaderAcceptSelected === undefined) {
248
+ // to determine the Accept header
249
+ const httpHeaderAccepts: string[] = ['application/json'];
250
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
251
+ }
252
+ if (httpHeaderAcceptSelected !== undefined) {
253
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
254
+ }
255
+
256
+ let responseType_: 'text' | 'json' = 'json';
257
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
258
+ responseType_ = 'text';
259
+ }
260
+
261
+ return this.httpClient.get<Array<SearchableItem>>(`${this.configuration.basePath}/helper/searchableitems`, {
262
+ responseType: <any>responseType_,
263
+ withCredentials: this.configuration.withCredentials,
264
+ headers: headers,
265
+ observe: observe,
266
+ reportProgress: reportProgress
267
+ });
268
+ }
269
+ }