@agravity/private 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 (117) hide show
  1. package/README.md +2 -2
  2. package/api/api.ts +101 -67
  3. package/api/assetIconRuleManagement.agravity.ts +434 -400
  4. package/api/assetManagement.agravity.ts +856 -737
  5. package/api/assetOperations.agravity.ts +1415 -1309
  6. package/api/assetPublishing.agravity.ts +549 -511
  7. package/api/assetVersioning.agravity.ts +707 -657
  8. package/api/authenticationManagement.agravity.ts +473 -502
  9. package/api/collectionManagement.agravity.ts +731 -618
  10. package/api/collectionSharing.agravity.ts +359 -329
  11. package/api/collectionTypeItemBlueprintManagement.agravity.ts +373 -340
  12. package/api/collectionTypeManagement.agravity.ts +609 -533
  13. package/api/configurationManagement.agravity.ts +316 -311
  14. package/api/downloadFormatManagement.agravity.ts +440 -400
  15. package/api/downloadZip.agravity.ts +149 -151
  16. package/api/generalManagement.agravity.ts +328 -348
  17. package/api/helperTools.agravity.ts +619 -682
  18. package/api/historyEntryManagement.agravity.ts +149 -139
  19. package/api/iccProfileManagement.agravity.ts +123 -134
  20. package/api/listBlobs.agravity.ts +168 -185
  21. package/api/listQueues.agravity.ts +123 -134
  22. package/api/permissionsManagement.agravity.ts +276 -262
  23. package/api/publishing.agravity.ts +160 -148
  24. package/api/quickshareManagement.agravity.ts +378 -385
  25. package/api/savedSearchManagement.agravity.ts +293 -271
  26. package/api/searchManagement.agravity.ts +365 -345
  27. package/api/secureUpload.agravity.ts +375 -371
  28. package/api/signalRConnectionManagement.agravity.ts +200 -218
  29. package/api/staticDefinedListManagement.agravity.ts +457 -408
  30. package/api/stockImport.agravity.ts +242 -221
  31. package/api/structureImport.agravity.ts +126 -137
  32. package/api/translationManagement.agravity.ts +490 -404
  33. package/api/webAppData.agravity.ts +274 -300
  34. package/api/wordpressManagement.agravity.ts +326 -282
  35. package/api/workspaceManagement.agravity.ts +543 -513
  36. package/api.module.ts +61 -63
  37. package/configuration.ts +125 -130
  38. package/encoder.ts +20 -20
  39. package/index.ts +5 -5
  40. package/model/agravityErrorResponse.agravity.ts +17 -19
  41. package/model/agravityInfoResponse.agravity.ts +17 -19
  42. package/model/agravityUser.agravity.ts +35 -37
  43. package/model/agravityVersion.agravity.ts +22 -24
  44. package/model/allWebAppData.agravity.ts +22 -24
  45. package/model/apiKeyResponse.agravity.ts +16 -18
  46. package/model/appConfigTableEntity.agravity.ts +23 -25
  47. package/model/artificialIntelligenceGroup.agravity.ts +18 -20
  48. package/model/asset.agravity.ts +45 -47
  49. package/model/assetAvailability.agravity.ts +17 -19
  50. package/model/assetBlob.agravity.ts +79 -82
  51. package/model/assetBulkUpdate.agravity.ts +18 -20
  52. package/model/assetCollectionLink.agravity.ts +16 -18
  53. package/model/assetIconRule.agravity.ts +33 -35
  54. package/model/assetIdFormat.agravity.ts +17 -19
  55. package/model/assetPageResult.agravity.ts +21 -23
  56. package/model/assetsOperationBody.agravity.ts +18 -20
  57. package/model/azSearchOptions.agravity.ts +23 -25
  58. package/model/azureIdentity.agravity.ts +27 -30
  59. package/model/blobInfoObj.agravity.ts +21 -23
  60. package/model/collTypeItem.agravity.ts +36 -38
  61. package/model/collTypeItemBlueprint.agravity.ts +29 -31
  62. package/model/collection.agravity.ts +33 -35
  63. package/model/collectionType.agravity.ts +33 -35
  64. package/model/collectionUDL.agravity.ts +19 -21
  65. package/model/createSftpUserResult.agravity.ts +16 -18
  66. package/model/dataResult.agravity.ts +20 -22
  67. package/model/distZipResponse.agravity.ts +17 -19
  68. package/model/downloadFormat.agravity.ts +32 -34
  69. package/model/downloadObject.agravity.ts +30 -32
  70. package/model/downloadZipRequest.agravity.ts +23 -25
  71. package/model/dynamicImageOperation.agravity.ts +16 -18
  72. package/model/emailAddress.agravity.ts +16 -18
  73. package/model/entityId.agravity.ts +15 -17
  74. package/model/entityIdName.agravity.ts +17 -19
  75. package/model/entityTranslations.agravity.ts +16 -18
  76. package/model/frontendAppConfig.agravity.ts +19 -21
  77. package/model/groupAllAppData.agravity.ts +24 -26
  78. package/model/historyEntry.agravity.ts +40 -43
  79. package/model/infoEntitySkillEnhanced.agravity.ts +23 -25
  80. package/model/metadata.agravity.ts +17 -19
  81. package/model/models.ts +73 -73
  82. package/model/moveCollectionBody.agravity.ts +17 -19
  83. package/model/permissionChange.agravity.ts +26 -29
  84. package/model/permissionSetting.agravity.ts +25 -27
  85. package/model/publishEntity.agravity.ts +26 -28
  86. package/model/publishedAsset.agravity.ts +23 -25
  87. package/model/quickShare.agravity.ts +30 -32
  88. package/model/quickShareFull.agravity.ts +35 -37
  89. package/model/sasToken.agravity.ts +20 -22
  90. package/model/savedSearch.agravity.ts +29 -31
  91. package/model/searchAdminDataSourceStatus.agravity.ts +16 -18
  92. package/model/searchAdminIndexStatus.agravity.ts +18 -20
  93. package/model/searchAdminIndexerLastRun.agravity.ts +19 -21
  94. package/model/searchAdminIndexerStatus.agravity.ts +18 -20
  95. package/model/searchAdminSkillStatus.agravity.ts +16 -18
  96. package/model/searchAdminStatistics.agravity.ts +16 -18
  97. package/model/searchAdminStatus.agravity.ts +22 -24
  98. package/model/searchFacet.agravity.ts +17 -19
  99. package/model/searchFacetEntity.agravity.ts +17 -19
  100. package/model/searchResult.agravity.ts +21 -23
  101. package/model/searchableItem.agravity.ts +24 -26
  102. package/model/secureUploadEntity.agravity.ts +25 -27
  103. package/model/sharedAsset.agravity.ts +23 -25
  104. package/model/sharedCollection.agravity.ts +22 -24
  105. package/model/sharedCollectionFull.agravity.ts +27 -29
  106. package/model/signalRConnectionInfo.agravity.ts +16 -18
  107. package/model/simpleAsset.agravity.ts +24 -26
  108. package/model/staticDefinedList.agravity.ts +28 -30
  109. package/model/uiTutorials.agravity.ts +23 -26
  110. package/model/versionEntity.agravity.ts +26 -28
  111. package/model/versionedAsset.agravity.ts +18 -20
  112. package/model/whereParam.agravity.ts +40 -43
  113. package/model/workspace.agravity.ts +32 -34
  114. package/ng-package.json +6 -6
  115. package/package.json +45 -45
  116. package/tsconfig.json +20 -28
  117. package/variables.ts +9 -9
@@ -1,682 +1,619 @@
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.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 { AgravityErrorResponse } from '../model/models';
21
- import { AgravityInfoResponse } from '../model/models';
22
- import { AssetBlob } from '../model/models';
23
- import { CollectionUDL } from '../model/models';
24
- import { InfoEntitySkillEnhanced } from '../model/models';
25
- import { SearchableItem } from '../model/models';
26
-
27
- import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
28
- import { AgravityConfiguration } from '../configuration';
29
-
30
-
31
-
32
- @Injectable({
33
- providedIn: 'root'
34
- })
35
- export class HelperToolsService {
36
-
37
- protected basePath = 'http://localhost:7071/api';
38
- public defaultHeaders = new HttpHeaders();
39
- public configuration = new AgravityConfiguration();
40
- public encoder: HttpParameterCodec;
41
-
42
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
43
- if (configuration) {
44
- this.configuration = configuration;
45
- }
46
- if (typeof this.configuration.basePath !== 'string') {
47
- if (typeof basePath !== 'string') {
48
- basePath = this.basePath;
49
- }
50
- this.configuration.basePath = basePath;
51
- }
52
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
53
- }
54
-
55
-
56
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
57
- if (typeof value === "object" && value instanceof Date === false) {
58
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
59
- } else {
60
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
61
- }
62
- return httpParams;
63
- }
64
-
65
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
66
- if (value == null) {
67
- return httpParams;
68
- }
69
-
70
- if (typeof value === "object") {
71
- if (Array.isArray(value)) {
72
- (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
73
- } else if (value instanceof Date) {
74
- if (key != null) {
75
- httpParams = httpParams.append(key,
76
- (value as Date).toISOString().substr(0, 10));
77
- } else {
78
- throw Error("key may not be null if value is Date");
79
- }
80
- } else {
81
- Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
82
- httpParams, value[k], key != null ? `${key}.${k}` : k));
83
- }
84
- } else if (key != null) {
85
- httpParams = httpParams.append(key, value);
86
- } else {
87
- throw Error("key may not be null if value is not object or array");
88
- }
89
- return httpParams;
90
- }
91
-
92
- /**
93
- * This endpoint calculates the md5 hash of an asset.
94
- * @param id The ID of the asset.
95
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
96
- * @param reportProgress flag to report request and response progress.
97
- */
98
- public httpCalculateMD5HashForAsset(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
99
- public httpCalculateMD5HashForAsset(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
100
- public httpCalculateMD5HashForAsset(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
101
- public httpCalculateMD5HashForAsset(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
102
- if (id === null || id === undefined) {
103
- throw new Error('Required parameter id was null or undefined when calling httpCalculateMD5HashForAsset.');
104
- }
105
-
106
- let headers = this.defaultHeaders;
107
-
108
- let credential: string | undefined;
109
- // authentication (msal_auth) required
110
- credential = this.configuration.lookupCredential('msal_auth');
111
- if (credential) {
112
- headers = headers.set('Authorization', 'Bearer ' + credential);
113
- }
114
-
115
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
116
- if (httpHeaderAcceptSelected === undefined) {
117
- // to determine the Accept header
118
- const httpHeaderAccepts: string[] = [
119
- 'application/json'
120
- ];
121
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
122
- }
123
- if (httpHeaderAcceptSelected !== undefined) {
124
- headers = headers.set('Accept', httpHeaderAcceptSelected);
125
- }
126
-
127
-
128
- let responseType_: 'text' | 'json' = 'json';
129
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
130
- responseType_ = 'text';
131
- }
132
-
133
- return this.httpClient.get<AgravityInfoResponse>(`${this.configuration.basePath}/helper/md5/${encodeURIComponent(String(id))}`,
134
- {
135
- responseType: <any>responseType_,
136
- withCredentials: this.configuration.withCredentials,
137
- headers: headers,
138
- observe: observe,
139
- reportProgress: reportProgress
140
- }
141
- );
142
- }
143
-
144
- /**
145
- * This endpoint creates an excel export of the db
146
- * @param filter Used to specify what to be retured. Valid values are: asset, workspace, collection_type and/or only certain collection types (IDs) for exporting. When providing multiple values separate it with comma (\&#39;,\&#39;).
147
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
148
- * @param reportProgress flag to report request and response progress.
149
- */
150
- public httpExportItemsAsExcel(filter?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
151
- public httpExportItemsAsExcel(filter?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
152
- public httpExportItemsAsExcel(filter?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
153
- public httpExportItemsAsExcel(filter?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
154
-
155
- let queryParameters = new HttpParams({encoder: this.encoder});
156
- if (filter !== undefined && filter !== null) {
157
- queryParameters = this.addToHttpParams(queryParameters,
158
- <any>filter, 'filter');
159
- }
160
-
161
- let headers = this.defaultHeaders;
162
-
163
- let credential: string | undefined;
164
- // authentication (msal_auth) required
165
- credential = this.configuration.lookupCredential('msal_auth');
166
- if (credential) {
167
- headers = headers.set('Authorization', 'Bearer ' + credential);
168
- }
169
-
170
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
171
- if (httpHeaderAcceptSelected === undefined) {
172
- // to determine the Accept header
173
- const httpHeaderAccepts: string[] = [
174
- 'application/json'
175
- ];
176
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
177
- }
178
- if (httpHeaderAcceptSelected !== undefined) {
179
- headers = headers.set('Accept', httpHeaderAcceptSelected);
180
- }
181
-
182
-
183
- let responseType_: 'text' | 'json' = 'json';
184
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
185
- responseType_ = 'text';
186
- }
187
-
188
- return this.httpClient.get<AgravityInfoResponse>(`${this.configuration.basePath}/helper/excel/export`,
189
- {
190
- params: queryParameters,
191
- responseType: <any>responseType_,
192
- withCredentials: this.configuration.withCredentials,
193
- headers: headers,
194
- observe: observe,
195
- reportProgress: reportProgress
196
- }
197
- );
198
- }
199
-
200
- /**
201
- * Returns all thumbnail blob types incl. URLs
202
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
203
- * @param reportProgress flag to report request and response progress.
204
- */
205
- public httpGetAllThumbnailBlobsList(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<AssetBlob>>;
206
- public httpGetAllThumbnailBlobsList(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<AssetBlob>>>;
207
- public httpGetAllThumbnailBlobsList(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<AssetBlob>>>;
208
- public httpGetAllThumbnailBlobsList(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
209
-
210
- let headers = this.defaultHeaders;
211
-
212
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
213
- if (httpHeaderAcceptSelected === undefined) {
214
- // to determine the Accept header
215
- const httpHeaderAccepts: string[] = [
216
- 'application/json'
217
- ];
218
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
219
- }
220
- if (httpHeaderAcceptSelected !== undefined) {
221
- headers = headers.set('Accept', httpHeaderAcceptSelected);
222
- }
223
-
224
-
225
- let responseType_: 'text' | 'json' = 'json';
226
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
227
- responseType_ = 'text';
228
- }
229
-
230
- return this.httpClient.get<Array<AssetBlob>>(`${this.configuration.basePath}/helper/placeholderblobs`,
231
- {
232
- responseType: <any>responseType_,
233
- withCredentials: this.configuration.withCredentials,
234
- headers: headers,
235
- observe: observe,
236
- reportProgress: reportProgress
237
- }
238
- );
239
- }
240
-
241
- /**
242
- * Returns all user defined lists of all collection types
243
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
244
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
245
- * @param reportProgress flag to report request and response progress.
246
- */
247
- public httpGetAllUserDefinedLists(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<CollectionUDL>>;
248
- public httpGetAllUserDefinedLists(translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<CollectionUDL>>>;
249
- public httpGetAllUserDefinedLists(translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<CollectionUDL>>>;
250
- public httpGetAllUserDefinedLists(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
251
-
252
- let queryParameters = new HttpParams({encoder: this.encoder});
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 httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
261
- if (httpHeaderAcceptSelected === undefined) {
262
- // to determine the Accept header
263
- const httpHeaderAccepts: string[] = [
264
- 'application/json'
265
- ];
266
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
267
- }
268
- if (httpHeaderAcceptSelected !== undefined) {
269
- headers = headers.set('Accept', httpHeaderAcceptSelected);
270
- }
271
-
272
-
273
- let responseType_: 'text' | 'json' = 'json';
274
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
275
- responseType_ = 'text';
276
- }
277
-
278
- return this.httpClient.get<Array<CollectionUDL>>(`${this.configuration.basePath}/helper/userdefinedlists`,
279
- {
280
- params: queryParameters,
281
- responseType: <any>responseType_,
282
- withCredentials: this.configuration.withCredentials,
283
- headers: headers,
284
- observe: observe,
285
- reportProgress: reportProgress
286
- }
287
- );
288
- }
289
-
290
- /**
291
- * Returns all filterable items directly from the search index
292
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
293
- * @param reportProgress flag to report request and response progress.
294
- */
295
- public httpGetAllowedFilterableItems(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<string>>;
296
- public httpGetAllowedFilterableItems(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<string>>>;
297
- public httpGetAllowedFilterableItems(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<string>>>;
298
- public httpGetAllowedFilterableItems(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
299
-
300
- let headers = this.defaultHeaders;
301
-
302
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
303
- if (httpHeaderAcceptSelected === undefined) {
304
- // to determine the Accept header
305
- const httpHeaderAccepts: string[] = [
306
- 'application/json'
307
- ];
308
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
309
- }
310
- if (httpHeaderAcceptSelected !== undefined) {
311
- headers = headers.set('Accept', httpHeaderAcceptSelected);
312
- }
313
-
314
-
315
- let responseType_: 'text' | 'json' = 'json';
316
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
317
- responseType_ = 'text';
318
- }
319
-
320
- return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/helper/filterableitems`,
321
- {
322
- responseType: <any>responseType_,
323
- withCredentials: this.configuration.withCredentials,
324
- headers: headers,
325
- observe: observe,
326
- reportProgress: reportProgress
327
- }
328
- );
329
- }
330
-
331
- /**
332
- * Returns all allowed (currently supported) collection item types
333
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
334
- * @param reportProgress flag to report request and response progress.
335
- */
336
- public httpGetAllowedItemTypes(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<string>>;
337
- public httpGetAllowedItemTypes(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<string>>>;
338
- public httpGetAllowedItemTypes(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<string>>>;
339
- public httpGetAllowedItemTypes(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
340
-
341
- let headers = this.defaultHeaders;
342
-
343
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
344
- if (httpHeaderAcceptSelected === undefined) {
345
- // to determine the Accept header
346
- const httpHeaderAccepts: string[] = [
347
- 'application/json'
348
- ];
349
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
350
- }
351
- if (httpHeaderAcceptSelected !== undefined) {
352
- headers = headers.set('Accept', httpHeaderAcceptSelected);
353
- }
354
-
355
-
356
- let responseType_: 'text' | 'json' = 'json';
357
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
358
- responseType_ = 'text';
359
- }
360
-
361
- return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/helper/collitemtypes`,
362
- {
363
- responseType: <any>responseType_,
364
- withCredentials: this.configuration.withCredentials,
365
- headers: headers,
366
- observe: observe,
367
- reportProgress: reportProgress
368
- }
369
- );
370
- }
371
-
372
- /**
373
- * Returns all searchable items directly from the search index
374
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
375
- * @param reportProgress flag to report request and response progress.
376
- */
377
- public httpGetAllowedSearchableItemNames(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<string>>;
378
- public httpGetAllowedSearchableItemNames(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<string>>>;
379
- public httpGetAllowedSearchableItemNames(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<string>>>;
380
- public httpGetAllowedSearchableItemNames(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
381
-
382
- let headers = this.defaultHeaders;
383
-
384
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
385
- if (httpHeaderAcceptSelected === undefined) {
386
- // to determine the Accept header
387
- const httpHeaderAccepts: string[] = [
388
- 'application/json'
389
- ];
390
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
391
- }
392
- if (httpHeaderAcceptSelected !== undefined) {
393
- headers = headers.set('Accept', httpHeaderAcceptSelected);
394
- }
395
-
396
-
397
- let responseType_: 'text' | 'json' = 'json';
398
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
399
- responseType_ = 'text';
400
- }
401
-
402
- return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/helper/searchableitemnames`,
403
- {
404
- responseType: <any>responseType_,
405
- withCredentials: this.configuration.withCredentials,
406
- headers: headers,
407
- observe: observe,
408
- reportProgress: reportProgress
409
- }
410
- );
411
- }
412
-
413
- /**
414
- * Returns all searchable items directly from the search index
415
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
416
- * @param reportProgress flag to report request and response progress.
417
- */
418
- public httpGetAllowedSearchableItems(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<SearchableItem>>;
419
- public httpGetAllowedSearchableItems(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<SearchableItem>>>;
420
- public httpGetAllowedSearchableItems(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<SearchableItem>>>;
421
- public httpGetAllowedSearchableItems(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
422
-
423
- let headers = this.defaultHeaders;
424
-
425
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
426
- if (httpHeaderAcceptSelected === undefined) {
427
- // to determine the Accept header
428
- const httpHeaderAccepts: string[] = [
429
- 'application/json'
430
- ];
431
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
432
- }
433
- if (httpHeaderAcceptSelected !== undefined) {
434
- headers = headers.set('Accept', httpHeaderAcceptSelected);
435
- }
436
-
437
-
438
- let responseType_: 'text' | 'json' = 'json';
439
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
440
- responseType_ = 'text';
441
- }
442
-
443
- return this.httpClient.get<Array<SearchableItem>>(`${this.configuration.basePath}/helper/searchableitems`,
444
- {
445
- responseType: <any>responseType_,
446
- withCredentials: this.configuration.withCredentials,
447
- headers: headers,
448
- observe: observe,
449
- reportProgress: reportProgress
450
- }
451
- );
452
- }
453
-
454
- /**
455
- * This is a helper method to see the result when an entity (Asset or Collection) is enhanced with the skill-enhancer (for search indexer).
456
- * @param id The ID of the entity (Asset or Collection).
457
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
458
- * @param reportProgress flag to report request and response progress.
459
- */
460
- public httpGetAssetSkillEnhancer(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<InfoEntitySkillEnhanced>;
461
- public httpGetAssetSkillEnhancer(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<InfoEntitySkillEnhanced>>;
462
- public httpGetAssetSkillEnhancer(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<InfoEntitySkillEnhanced>>;
463
- public httpGetAssetSkillEnhancer(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
464
- if (id === null || id === undefined) {
465
- throw new Error('Required parameter id was null or undefined when calling httpGetAssetSkillEnhancer.');
466
- }
467
-
468
- let headers = this.defaultHeaders;
469
-
470
- let credential: string | undefined;
471
- // authentication (msal_auth) required
472
- credential = this.configuration.lookupCredential('msal_auth');
473
- if (credential) {
474
- headers = headers.set('Authorization', 'Bearer ' + credential);
475
- }
476
-
477
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
478
- if (httpHeaderAcceptSelected === undefined) {
479
- // to determine the Accept header
480
- const httpHeaderAccepts: string[] = [
481
- 'application/json'
482
- ];
483
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
484
- }
485
- if (httpHeaderAcceptSelected !== undefined) {
486
- headers = headers.set('Accept', httpHeaderAcceptSelected);
487
- }
488
-
489
-
490
- let responseType_: 'text' | 'json' = 'json';
491
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
492
- responseType_ = 'text';
493
- }
494
-
495
- return this.httpClient.get<InfoEntitySkillEnhanced>(`${this.configuration.basePath}/helper/skillenhancer/${encodeURIComponent(String(id))}`,
496
- {
497
- responseType: <any>responseType_,
498
- withCredentials: this.configuration.withCredentials,
499
- headers: headers,
500
- observe: observe,
501
- reportProgress: reportProgress
502
- }
503
- );
504
- }
505
-
506
- /**
507
- * Returns all allowed (currently supported) filter names for image edit endpoint.
508
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
509
- * @param reportProgress flag to report request and response progress.
510
- */
511
- public httpGetImageEditFilters(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<string>>;
512
- public httpGetImageEditFilters(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<string>>>;
513
- public httpGetImageEditFilters(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<string>>>;
514
- public httpGetImageEditFilters(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
515
-
516
- let headers = this.defaultHeaders;
517
-
518
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
519
- if (httpHeaderAcceptSelected === undefined) {
520
- // to determine the Accept header
521
- const httpHeaderAccepts: string[] = [
522
- 'application/json'
523
- ];
524
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
525
- }
526
- if (httpHeaderAcceptSelected !== undefined) {
527
- headers = headers.set('Accept', httpHeaderAcceptSelected);
528
- }
529
-
530
-
531
- let responseType_: 'text' | 'json' = 'json';
532
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
533
- responseType_ = 'text';
534
- }
535
-
536
- return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/helper/imageeditfilters`,
537
- {
538
- responseType: <any>responseType_,
539
- withCredentials: this.configuration.withCredentials,
540
- headers: headers,
541
- observe: observe,
542
- reportProgress: reportProgress
543
- }
544
- );
545
- }
546
-
547
- /**
548
- * This sets metadata from all blobs inside inbox container on storage. This should re-trigger the inbox trigger.
549
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
550
- * @param reportProgress flag to report request and response progress.
551
- */
552
- public httpInboxPoke(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
553
- public httpInboxPoke(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
554
- public httpInboxPoke(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
555
- public httpInboxPoke(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
556
-
557
- let headers = this.defaultHeaders;
558
-
559
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
560
- if (httpHeaderAcceptSelected === undefined) {
561
- // to determine the Accept header
562
- const httpHeaderAccepts: string[] = [
563
- 'application/json'
564
- ];
565
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
566
- }
567
- if (httpHeaderAcceptSelected !== undefined) {
568
- headers = headers.set('Accept', httpHeaderAcceptSelected);
569
- }
570
-
571
-
572
- let responseType_: 'text' | 'json' = 'json';
573
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
574
- responseType_ = 'text';
575
- }
576
-
577
- return this.httpClient.get<AgravityInfoResponse>(`${this.configuration.basePath}/helper/inboxpoke`,
578
- {
579
- responseType: <any>responseType_,
580
- withCredentials: this.configuration.withCredentials,
581
- headers: headers,
582
- observe: observe,
583
- reportProgress: reportProgress
584
- }
585
- );
586
- }
587
-
588
- /**
589
- * This method starts queues in all functions to clear the config cache.
590
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
591
- * @param reportProgress flag to report request and response progress.
592
- */
593
- public httpPatchClearConfigCache(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
594
- public httpPatchClearConfigCache(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
595
- public httpPatchClearConfigCache(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
596
- public httpPatchClearConfigCache(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
597
-
598
- let headers = this.defaultHeaders;
599
-
600
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
601
- if (httpHeaderAcceptSelected === undefined) {
602
- // to determine the Accept header
603
- const httpHeaderAccepts: string[] = [
604
- 'application/json'
605
- ];
606
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
607
- }
608
- if (httpHeaderAcceptSelected !== undefined) {
609
- headers = headers.set('Accept', httpHeaderAcceptSelected);
610
- }
611
-
612
-
613
- let responseType_: 'text' | 'json' = 'json';
614
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
615
- responseType_ = 'text';
616
- }
617
-
618
- return this.httpClient.patch<AgravityInfoResponse>(`${this.configuration.basePath}/helper/clearconfigcache`,
619
- null,
620
- {
621
- responseType: <any>responseType_,
622
- withCredentials: this.configuration.withCredentials,
623
- headers: headers,
624
- observe: observe,
625
- reportProgress: reportProgress
626
- }
627
- );
628
- }
629
-
630
- /**
631
- * Re-queue poisoned messages. It takes the only one argument and tries to find the poisoned queue.
632
- * @param queue Enter queue name which has to take messages from poison to regular queue.
633
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
634
- * @param reportProgress flag to report request and response progress.
635
- */
636
- public httpQueuesAgain(queue: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<string>>;
637
- public httpQueuesAgain(queue: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<string>>>;
638
- public httpQueuesAgain(queue: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<string>>>;
639
- public httpQueuesAgain(queue: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
640
- if (queue === null || queue === undefined) {
641
- throw new Error('Required parameter queue was null or undefined when calling httpQueuesAgain.');
642
- }
643
-
644
- let queryParameters = new HttpParams({encoder: this.encoder});
645
- if (queue !== undefined && queue !== null) {
646
- queryParameters = this.addToHttpParams(queryParameters,
647
- <any>queue, 'queue');
648
- }
649
-
650
- let headers = this.defaultHeaders;
651
-
652
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
653
- if (httpHeaderAcceptSelected === undefined) {
654
- // to determine the Accept header
655
- const httpHeaderAccepts: string[] = [
656
- 'application/json'
657
- ];
658
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
659
- }
660
- if (httpHeaderAcceptSelected !== undefined) {
661
- headers = headers.set('Accept', httpHeaderAcceptSelected);
662
- }
663
-
664
-
665
- let responseType_: 'text' | 'json' = 'json';
666
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
667
- responseType_ = 'text';
668
- }
669
-
670
- return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/helper/queueagain`,
671
- {
672
- params: queryParameters,
673
- responseType: <any>responseType_,
674
- withCredentials: this.configuration.withCredentials,
675
- headers: headers,
676
- observe: observe,
677
- reportProgress: reportProgress
678
- }
679
- );
680
- }
681
-
682
- }
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.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 { AgravityErrorResponse } from '../model/models';
20
+ import { AgravityInfoResponse } from '../model/models';
21
+ import { AssetBlob } from '../model/models';
22
+ import { CollectionUDL } from '../model/models';
23
+ import { InfoEntitySkillEnhanced } from '../model/models';
24
+ import { SearchableItem } from '../model/models';
25
+
26
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
27
+ import { AgravityConfiguration } from '../configuration';
28
+
29
+ @Injectable({
30
+ providedIn: 'root'
31
+ })
32
+ export class HelperToolsService {
33
+ protected basePath = 'http://localhost:7071/api';
34
+ public defaultHeaders = new HttpHeaders();
35
+ public configuration = new AgravityConfiguration();
36
+ public encoder: HttpParameterCodec;
37
+
38
+ constructor(
39
+ protected httpClient: HttpClient,
40
+ @Optional() @Inject(BASE_PATH) basePath: string,
41
+ @Optional() configuration: AgravityConfiguration
42
+ ) {
43
+ if (configuration) {
44
+ this.configuration = configuration;
45
+ }
46
+ if (typeof this.configuration.basePath !== 'string') {
47
+ if (typeof basePath !== 'string') {
48
+ basePath = this.basePath;
49
+ }
50
+ this.configuration.basePath = basePath;
51
+ }
52
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
53
+ }
54
+
55
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
56
+ if (typeof value === 'object' && value instanceof Date === false) {
57
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
58
+ } else {
59
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
60
+ }
61
+ return httpParams;
62
+ }
63
+
64
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
65
+ if (value == null) {
66
+ return httpParams;
67
+ }
68
+
69
+ if (typeof value === 'object') {
70
+ if (Array.isArray(value)) {
71
+ (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
72
+ } else if (value instanceof Date) {
73
+ if (key != null) {
74
+ httpParams = httpParams.append(key, (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(httpParams, value[k], key != null ? `${key}.${k}` : k)));
80
+ }
81
+ } else if (key != null) {
82
+ httpParams = httpParams.append(key, value);
83
+ } else {
84
+ throw Error('key may not be null if value is not object or array');
85
+ }
86
+ return httpParams;
87
+ }
88
+
89
+ /**
90
+ * This endpoint calculates the md5 hash of an asset.
91
+ * @param id The ID of the asset.
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 httpCalculateMD5HashForAsset(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
96
+ public httpCalculateMD5HashForAsset(
97
+ id: string,
98
+ observe?: 'response',
99
+ reportProgress?: boolean,
100
+ options?: { httpHeaderAccept?: 'application/json' }
101
+ ): Observable<HttpResponse<AgravityInfoResponse>>;
102
+ public httpCalculateMD5HashForAsset(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<AgravityInfoResponse>>;
103
+ public httpCalculateMD5HashForAsset(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
104
+ if (id === null || id === undefined) {
105
+ throw new Error('Required parameter id was null or undefined when calling httpCalculateMD5HashForAsset.');
106
+ }
107
+
108
+ let headers = this.defaultHeaders;
109
+
110
+ let credential: string | undefined;
111
+ // authentication (msal_auth) required
112
+ credential = this.configuration.lookupCredential('msal_auth');
113
+ if (credential) {
114
+ headers = headers.set('Authorization', 'Bearer ' + credential);
115
+ }
116
+
117
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
118
+ if (httpHeaderAcceptSelected === undefined) {
119
+ // to determine the Accept header
120
+ const httpHeaderAccepts: string[] = ['application/json'];
121
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
122
+ }
123
+ if (httpHeaderAcceptSelected !== undefined) {
124
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
125
+ }
126
+
127
+ let responseType_: 'text' | 'json' = 'json';
128
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
129
+ responseType_ = 'text';
130
+ }
131
+
132
+ return this.httpClient.get<AgravityInfoResponse>(`${this.configuration.basePath}/helper/md5/${encodeURIComponent(String(id))}`, {
133
+ responseType: <any>responseType_,
134
+ withCredentials: this.configuration.withCredentials,
135
+ headers: headers,
136
+ observe: observe,
137
+ reportProgress: reportProgress
138
+ });
139
+ }
140
+
141
+ /**
142
+ * This endpoint creates an excel export of the db
143
+ * @param filter Used to specify what to be retured. Valid values are: asset, workspace, collection_type and/or only certain collection types (IDs) for exporting. When providing multiple values separate it with comma (\&#39;,\&#39;).
144
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
145
+ * @param reportProgress flag to report request and response progress.
146
+ */
147
+ public httpExportItemsAsExcel(filter?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
148
+ public httpExportItemsAsExcel(filter?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<AgravityInfoResponse>>;
149
+ public httpExportItemsAsExcel(filter?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<AgravityInfoResponse>>;
150
+ public httpExportItemsAsExcel(filter?: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
151
+ let queryParameters = new HttpParams({ encoder: this.encoder });
152
+ if (filter !== undefined && filter !== null) {
153
+ queryParameters = this.addToHttpParams(queryParameters, <any>filter, 'filter');
154
+ }
155
+
156
+ let headers = this.defaultHeaders;
157
+
158
+ let credential: string | undefined;
159
+ // authentication (msal_auth) required
160
+ credential = this.configuration.lookupCredential('msal_auth');
161
+ if (credential) {
162
+ headers = headers.set('Authorization', 'Bearer ' + credential);
163
+ }
164
+
165
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
166
+ if (httpHeaderAcceptSelected === undefined) {
167
+ // to determine the Accept header
168
+ const httpHeaderAccepts: string[] = ['application/json'];
169
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
170
+ }
171
+ if (httpHeaderAcceptSelected !== undefined) {
172
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
173
+ }
174
+
175
+ let responseType_: 'text' | 'json' = 'json';
176
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
177
+ responseType_ = 'text';
178
+ }
179
+
180
+ return this.httpClient.get<AgravityInfoResponse>(`${this.configuration.basePath}/helper/excel/export`, {
181
+ params: queryParameters,
182
+ responseType: <any>responseType_,
183
+ withCredentials: this.configuration.withCredentials,
184
+ headers: headers,
185
+ observe: observe,
186
+ reportProgress: reportProgress
187
+ });
188
+ }
189
+
190
+ /**
191
+ * Returns all thumbnail blob types incl. URLs
192
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
193
+ * @param reportProgress flag to report request and response progress.
194
+ */
195
+ public httpGetAllThumbnailBlobsList(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<AssetBlob>>;
196
+ public httpGetAllThumbnailBlobsList(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<AssetBlob>>>;
197
+ public httpGetAllThumbnailBlobsList(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<AssetBlob>>>;
198
+ public httpGetAllThumbnailBlobsList(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
199
+ let headers = this.defaultHeaders;
200
+
201
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
202
+ if (httpHeaderAcceptSelected === undefined) {
203
+ // to determine the Accept header
204
+ const httpHeaderAccepts: string[] = ['application/json'];
205
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
206
+ }
207
+ if (httpHeaderAcceptSelected !== undefined) {
208
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
209
+ }
210
+
211
+ let responseType_: 'text' | 'json' = 'json';
212
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
213
+ responseType_ = 'text';
214
+ }
215
+
216
+ return this.httpClient.get<Array<AssetBlob>>(`${this.configuration.basePath}/helper/placeholderblobs`, {
217
+ responseType: <any>responseType_,
218
+ withCredentials: this.configuration.withCredentials,
219
+ headers: headers,
220
+ observe: observe,
221
+ reportProgress: reportProgress
222
+ });
223
+ }
224
+
225
+ /**
226
+ * Returns all user defined lists of all collection types
227
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
228
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
229
+ * @param reportProgress flag to report request and response progress.
230
+ */
231
+ public httpGetAllUserDefinedLists(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<CollectionUDL>>;
232
+ public httpGetAllUserDefinedLists(
233
+ translations?: boolean,
234
+ observe?: 'response',
235
+ reportProgress?: boolean,
236
+ options?: { httpHeaderAccept?: 'application/json' }
237
+ ): Observable<HttpResponse<Array<CollectionUDL>>>;
238
+ public httpGetAllUserDefinedLists(
239
+ translations?: boolean,
240
+ observe?: 'events',
241
+ reportProgress?: boolean,
242
+ options?: { httpHeaderAccept?: 'application/json' }
243
+ ): Observable<HttpEvent<Array<CollectionUDL>>>;
244
+ public httpGetAllUserDefinedLists(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
245
+ let queryParameters = new HttpParams({ encoder: this.encoder });
246
+ if (translations !== undefined && translations !== null) {
247
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
248
+ }
249
+
250
+ let headers = this.defaultHeaders;
251
+
252
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
253
+ if (httpHeaderAcceptSelected === undefined) {
254
+ // to determine the Accept header
255
+ const httpHeaderAccepts: string[] = ['application/json'];
256
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
257
+ }
258
+ if (httpHeaderAcceptSelected !== undefined) {
259
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
260
+ }
261
+
262
+ let responseType_: 'text' | 'json' = 'json';
263
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
264
+ responseType_ = 'text';
265
+ }
266
+
267
+ return this.httpClient.get<Array<CollectionUDL>>(`${this.configuration.basePath}/helper/userdefinedlists`, {
268
+ params: queryParameters,
269
+ responseType: <any>responseType_,
270
+ withCredentials: this.configuration.withCredentials,
271
+ headers: headers,
272
+ observe: observe,
273
+ reportProgress: reportProgress
274
+ });
275
+ }
276
+
277
+ /**
278
+ * Returns all filterable items directly from the search index
279
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
280
+ * @param reportProgress flag to report request and response progress.
281
+ */
282
+ public httpGetAllowedFilterableItems(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<string>>;
283
+ public httpGetAllowedFilterableItems(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<string>>>;
284
+ public httpGetAllowedFilterableItems(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<string>>>;
285
+ public httpGetAllowedFilterableItems(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
286
+ let headers = this.defaultHeaders;
287
+
288
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
289
+ if (httpHeaderAcceptSelected === undefined) {
290
+ // to determine the Accept header
291
+ const httpHeaderAccepts: string[] = ['application/json'];
292
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
293
+ }
294
+ if (httpHeaderAcceptSelected !== undefined) {
295
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
296
+ }
297
+
298
+ let responseType_: 'text' | 'json' = 'json';
299
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
300
+ responseType_ = 'text';
301
+ }
302
+
303
+ return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/helper/filterableitems`, {
304
+ responseType: <any>responseType_,
305
+ withCredentials: this.configuration.withCredentials,
306
+ headers: headers,
307
+ observe: observe,
308
+ reportProgress: reportProgress
309
+ });
310
+ }
311
+
312
+ /**
313
+ * Returns all allowed (currently supported) collection item types
314
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
315
+ * @param reportProgress flag to report request and response progress.
316
+ */
317
+ public httpGetAllowedItemTypes(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<string>>;
318
+ public httpGetAllowedItemTypes(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<string>>>;
319
+ public httpGetAllowedItemTypes(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<string>>>;
320
+ public httpGetAllowedItemTypes(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
321
+ let headers = this.defaultHeaders;
322
+
323
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
324
+ if (httpHeaderAcceptSelected === undefined) {
325
+ // to determine the Accept header
326
+ const httpHeaderAccepts: string[] = ['application/json'];
327
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
328
+ }
329
+ if (httpHeaderAcceptSelected !== undefined) {
330
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
331
+ }
332
+
333
+ let responseType_: 'text' | 'json' = 'json';
334
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
335
+ responseType_ = 'text';
336
+ }
337
+
338
+ return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/helper/collitemtypes`, {
339
+ responseType: <any>responseType_,
340
+ withCredentials: this.configuration.withCredentials,
341
+ headers: headers,
342
+ observe: observe,
343
+ reportProgress: reportProgress
344
+ });
345
+ }
346
+
347
+ /**
348
+ * Returns all searchable items directly from the search index
349
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
350
+ * @param reportProgress flag to report request and response progress.
351
+ */
352
+ public httpGetAllowedSearchableItemNames(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<string>>;
353
+ public httpGetAllowedSearchableItemNames(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<string>>>;
354
+ public httpGetAllowedSearchableItemNames(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<string>>>;
355
+ public httpGetAllowedSearchableItemNames(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
356
+ let headers = this.defaultHeaders;
357
+
358
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
359
+ if (httpHeaderAcceptSelected === undefined) {
360
+ // to determine the Accept header
361
+ const httpHeaderAccepts: string[] = ['application/json'];
362
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
363
+ }
364
+ if (httpHeaderAcceptSelected !== undefined) {
365
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
366
+ }
367
+
368
+ let responseType_: 'text' | 'json' = 'json';
369
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
370
+ responseType_ = 'text';
371
+ }
372
+
373
+ return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/helper/searchableitemnames`, {
374
+ responseType: <any>responseType_,
375
+ withCredentials: this.configuration.withCredentials,
376
+ headers: headers,
377
+ observe: observe,
378
+ reportProgress: reportProgress
379
+ });
380
+ }
381
+
382
+ /**
383
+ * Returns all searchable items directly from the search index
384
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
385
+ * @param reportProgress flag to report request and response progress.
386
+ */
387
+ public httpGetAllowedSearchableItems(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<SearchableItem>>;
388
+ public httpGetAllowedSearchableItems(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<SearchableItem>>>;
389
+ public httpGetAllowedSearchableItems(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<SearchableItem>>>;
390
+ public httpGetAllowedSearchableItems(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
391
+ let headers = this.defaultHeaders;
392
+
393
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
394
+ if (httpHeaderAcceptSelected === undefined) {
395
+ // to determine the Accept header
396
+ const httpHeaderAccepts: string[] = ['application/json'];
397
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
398
+ }
399
+ if (httpHeaderAcceptSelected !== undefined) {
400
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
401
+ }
402
+
403
+ let responseType_: 'text' | 'json' = 'json';
404
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
405
+ responseType_ = 'text';
406
+ }
407
+
408
+ return this.httpClient.get<Array<SearchableItem>>(`${this.configuration.basePath}/helper/searchableitems`, {
409
+ responseType: <any>responseType_,
410
+ withCredentials: this.configuration.withCredentials,
411
+ headers: headers,
412
+ observe: observe,
413
+ reportProgress: reportProgress
414
+ });
415
+ }
416
+
417
+ /**
418
+ * This is a helper method to see the result when an entity (Asset or Collection) is enhanced with the skill-enhancer (for search indexer).
419
+ * @param id The ID of the entity (Asset or Collection).
420
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
421
+ * @param reportProgress flag to report request and response progress.
422
+ */
423
+ public httpGetAssetSkillEnhancer(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<InfoEntitySkillEnhanced>;
424
+ public httpGetAssetSkillEnhancer(
425
+ id: string,
426
+ observe?: 'response',
427
+ reportProgress?: boolean,
428
+ options?: { httpHeaderAccept?: 'application/json' }
429
+ ): Observable<HttpResponse<InfoEntitySkillEnhanced>>;
430
+ public httpGetAssetSkillEnhancer(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<InfoEntitySkillEnhanced>>;
431
+ public httpGetAssetSkillEnhancer(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
432
+ if (id === null || id === undefined) {
433
+ throw new Error('Required parameter id was null or undefined when calling httpGetAssetSkillEnhancer.');
434
+ }
435
+
436
+ let headers = this.defaultHeaders;
437
+
438
+ let credential: string | undefined;
439
+ // authentication (msal_auth) required
440
+ credential = this.configuration.lookupCredential('msal_auth');
441
+ if (credential) {
442
+ headers = headers.set('Authorization', 'Bearer ' + credential);
443
+ }
444
+
445
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
446
+ if (httpHeaderAcceptSelected === undefined) {
447
+ // to determine the Accept header
448
+ const httpHeaderAccepts: string[] = ['application/json'];
449
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
450
+ }
451
+ if (httpHeaderAcceptSelected !== undefined) {
452
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
453
+ }
454
+
455
+ let responseType_: 'text' | 'json' = 'json';
456
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
457
+ responseType_ = 'text';
458
+ }
459
+
460
+ return this.httpClient.get<InfoEntitySkillEnhanced>(`${this.configuration.basePath}/helper/skillenhancer/${encodeURIComponent(String(id))}`, {
461
+ responseType: <any>responseType_,
462
+ withCredentials: this.configuration.withCredentials,
463
+ headers: headers,
464
+ observe: observe,
465
+ reportProgress: reportProgress
466
+ });
467
+ }
468
+
469
+ /**
470
+ * Returns all allowed (currently supported) filter names for image edit endpoint.
471
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
472
+ * @param reportProgress flag to report request and response progress.
473
+ */
474
+ public httpGetImageEditFilters(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<string>>;
475
+ public httpGetImageEditFilters(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<string>>>;
476
+ public httpGetImageEditFilters(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<string>>>;
477
+ public httpGetImageEditFilters(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
478
+ let headers = this.defaultHeaders;
479
+
480
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
481
+ if (httpHeaderAcceptSelected === undefined) {
482
+ // to determine the Accept header
483
+ const httpHeaderAccepts: string[] = ['application/json'];
484
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
485
+ }
486
+ if (httpHeaderAcceptSelected !== undefined) {
487
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
488
+ }
489
+
490
+ let responseType_: 'text' | 'json' = 'json';
491
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
492
+ responseType_ = 'text';
493
+ }
494
+
495
+ return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/helper/imageeditfilters`, {
496
+ responseType: <any>responseType_,
497
+ withCredentials: this.configuration.withCredentials,
498
+ headers: headers,
499
+ observe: observe,
500
+ reportProgress: reportProgress
501
+ });
502
+ }
503
+
504
+ /**
505
+ * This sets metadata from all blobs inside inbox container on storage. This should re-trigger the inbox trigger.
506
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
507
+ * @param reportProgress flag to report request and response progress.
508
+ */
509
+ public httpInboxPoke(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
510
+ public httpInboxPoke(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<AgravityInfoResponse>>;
511
+ public httpInboxPoke(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<AgravityInfoResponse>>;
512
+ public httpInboxPoke(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
513
+ let headers = this.defaultHeaders;
514
+
515
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
516
+ if (httpHeaderAcceptSelected === undefined) {
517
+ // to determine the Accept header
518
+ const httpHeaderAccepts: string[] = ['application/json'];
519
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
520
+ }
521
+ if (httpHeaderAcceptSelected !== undefined) {
522
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
523
+ }
524
+
525
+ let responseType_: 'text' | 'json' = 'json';
526
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
527
+ responseType_ = 'text';
528
+ }
529
+
530
+ return this.httpClient.get<AgravityInfoResponse>(`${this.configuration.basePath}/helper/inboxpoke`, {
531
+ responseType: <any>responseType_,
532
+ withCredentials: this.configuration.withCredentials,
533
+ headers: headers,
534
+ observe: observe,
535
+ reportProgress: reportProgress
536
+ });
537
+ }
538
+
539
+ /**
540
+ * This method starts queues in all functions to clear the config cache.
541
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
542
+ * @param reportProgress flag to report request and response progress.
543
+ */
544
+ public httpPatchClearConfigCache(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
545
+ public httpPatchClearConfigCache(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<AgravityInfoResponse>>;
546
+ public httpPatchClearConfigCache(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<AgravityInfoResponse>>;
547
+ public httpPatchClearConfigCache(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
548
+ let headers = this.defaultHeaders;
549
+
550
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
551
+ if (httpHeaderAcceptSelected === undefined) {
552
+ // to determine the Accept header
553
+ const httpHeaderAccepts: string[] = ['application/json'];
554
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
555
+ }
556
+ if (httpHeaderAcceptSelected !== undefined) {
557
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
558
+ }
559
+
560
+ let responseType_: 'text' | 'json' = 'json';
561
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
562
+ responseType_ = 'text';
563
+ }
564
+
565
+ return this.httpClient.patch<AgravityInfoResponse>(`${this.configuration.basePath}/helper/clearconfigcache`, null, {
566
+ responseType: <any>responseType_,
567
+ withCredentials: this.configuration.withCredentials,
568
+ headers: headers,
569
+ observe: observe,
570
+ reportProgress: reportProgress
571
+ });
572
+ }
573
+
574
+ /**
575
+ * Re-queue poisoned messages. It takes the only one argument and tries to find the poisoned queue.
576
+ * @param queue Enter queue name which has to take messages from poison to regular queue.
577
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
578
+ * @param reportProgress flag to report request and response progress.
579
+ */
580
+ public httpQueuesAgain(queue: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<string>>;
581
+ public httpQueuesAgain(queue: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<string>>>;
582
+ public httpQueuesAgain(queue: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<string>>>;
583
+ public httpQueuesAgain(queue: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
584
+ if (queue === null || queue === undefined) {
585
+ throw new Error('Required parameter queue was null or undefined when calling httpQueuesAgain.');
586
+ }
587
+
588
+ let queryParameters = new HttpParams({ encoder: this.encoder });
589
+ if (queue !== undefined && queue !== null) {
590
+ queryParameters = this.addToHttpParams(queryParameters, <any>queue, 'queue');
591
+ }
592
+
593
+ let headers = this.defaultHeaders;
594
+
595
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
596
+ if (httpHeaderAcceptSelected === undefined) {
597
+ // to determine the Accept header
598
+ const httpHeaderAccepts: string[] = ['application/json'];
599
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
600
+ }
601
+ if (httpHeaderAcceptSelected !== undefined) {
602
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
603
+ }
604
+
605
+ let responseType_: 'text' | 'json' = 'json';
606
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
607
+ responseType_ = 'text';
608
+ }
609
+
610
+ return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/helper/queueagain`, {
611
+ params: queryParameters,
612
+ responseType: <any>responseType_,
613
+ withCredentials: this.configuration.withCredentials,
614
+ headers: headers,
615
+ observe: observe,
616
+ reportProgress: reportProgress
617
+ });
618
+ }
619
+ }