@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,618 +1,731 @@
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 { Collection } from '../model/models';
22
-
23
- import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
24
- import { AgravityConfiguration } from '../configuration';
25
-
26
-
27
-
28
- @Injectable({
29
- providedIn: 'root'
30
- })
31
- export class CollectionManagementService {
32
-
33
- protected basePath = 'http://localhost:7071/api';
34
- public defaultHeaders = new HttpHeaders();
35
- public configuration = new AgravityConfiguration();
36
- public encoder: HttpParameterCodec;
37
-
38
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
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
- * This endpoint creates a unique collection ID and adds the information to the database.
90
- * @param collectiontypeid The ID of the collection type where this collections should be assigned.
91
- * @param collection This endpoint creates a unique collection ID and adds the information to the database.
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 httpCollectionsCreate(collectiontypeid: string, collection: Collection, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Collection>;
96
- public httpCollectionsCreate(collectiontypeid: string, collection: Collection, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Collection>>;
97
- public httpCollectionsCreate(collectiontypeid: string, collection: Collection, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Collection>>;
98
- public httpCollectionsCreate(collectiontypeid: string, collection: Collection, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
99
- if (collectiontypeid === null || collectiontypeid === undefined) {
100
- throw new Error('Required parameter collectiontypeid was null or undefined when calling httpCollectionsCreate.');
101
- }
102
- if (collection === null || collection === undefined) {
103
- throw new Error('Required parameter collection was null or undefined when calling httpCollectionsCreate.');
104
- }
105
-
106
- let queryParameters = new HttpParams({encoder: this.encoder});
107
- if (collectiontypeid !== undefined && collectiontypeid !== null) {
108
- queryParameters = this.addToHttpParams(queryParameters,
109
- <any>collectiontypeid, 'collectiontypeid');
110
- }
111
-
112
- let headers = this.defaultHeaders;
113
-
114
- let credential: string | undefined;
115
- // authentication (msal_auth) required
116
- credential = this.configuration.lookupCredential('msal_auth');
117
- if (credential) {
118
- headers = headers.set('Authorization', 'Bearer ' + credential);
119
- }
120
-
121
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
122
- if (httpHeaderAcceptSelected === undefined) {
123
- // to determine the Accept header
124
- const httpHeaderAccepts: string[] = [
125
- 'application/json'
126
- ];
127
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
128
- }
129
- if (httpHeaderAcceptSelected !== undefined) {
130
- headers = headers.set('Accept', httpHeaderAcceptSelected);
131
- }
132
-
133
-
134
- // to determine the Content-Type header
135
- const consumes: string[] = [
136
- 'application/json'
137
- ];
138
- const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
139
- if (httpContentTypeSelected !== undefined) {
140
- headers = headers.set('Content-Type', httpContentTypeSelected);
141
- }
142
-
143
- let responseType_: 'text' | 'json' = 'json';
144
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
145
- responseType_ = 'text';
146
- }
147
-
148
- return this.httpClient.post<Collection>(`${this.configuration.basePath}/collections`,
149
- collection,
150
- {
151
- params: queryParameters,
152
- responseType: <any>responseType_,
153
- withCredentials: this.configuration.withCredentials,
154
- headers: headers,
155
- observe: observe,
156
- reportProgress: reportProgress
157
- }
158
- );
159
- }
160
-
161
- /**
162
- * This endpoint deletes the collection with the given ID (and their siblings).
163
- * @param id The ID of the collection.
164
- * @param deleteassets If this is true the assigned assets are set to delete as well.
165
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
166
- * @param reportProgress flag to report request and response progress.
167
- */
168
- public httpCollectionsDeleteById(id: string, deleteassets?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<any>;
169
- public httpCollectionsDeleteById(id: string, deleteassets?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<any>>;
170
- public httpCollectionsDeleteById(id: string, deleteassets?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<any>>;
171
- public httpCollectionsDeleteById(id: string, deleteassets?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
172
- if (id === null || id === undefined) {
173
- throw new Error('Required parameter id was null or undefined when calling httpCollectionsDeleteById.');
174
- }
175
-
176
- let queryParameters = new HttpParams({encoder: this.encoder});
177
- if (deleteassets !== undefined && deleteassets !== null) {
178
- queryParameters = this.addToHttpParams(queryParameters,
179
- <any>deleteassets, 'deleteassets');
180
- }
181
-
182
- let headers = this.defaultHeaders;
183
-
184
- let credential: string | undefined;
185
- // authentication (msal_auth) required
186
- credential = this.configuration.lookupCredential('msal_auth');
187
- if (credential) {
188
- headers = headers.set('Authorization', 'Bearer ' + credential);
189
- }
190
-
191
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
192
- if (httpHeaderAcceptSelected === undefined) {
193
- // to determine the Accept header
194
- const httpHeaderAccepts: string[] = [
195
- 'application/json'
196
- ];
197
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
198
- }
199
- if (httpHeaderAcceptSelected !== undefined) {
200
- headers = headers.set('Accept', httpHeaderAcceptSelected);
201
- }
202
-
203
-
204
- let responseType_: 'text' | 'json' = 'json';
205
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
206
- responseType_ = 'text';
207
- }
208
-
209
- return this.httpClient.delete<any>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}`,
210
- {
211
- params: queryParameters,
212
- responseType: <any>responseType_,
213
- withCredentials: this.configuration.withCredentials,
214
- headers: headers,
215
- observe: observe,
216
- reportProgress: reportProgress
217
- }
218
- );
219
- }
220
-
221
- /**
222
- * This endpoint lists all the collections, which are stored in the database and not deleted (status \&quot;A\&quot;)
223
- * @param collectiontypeid The ID of the collection type, where these collections should come from.
224
- * @param level The hierarchy level of collections which should be returned.
225
- * @param parentid The ID of the parent collection which should be queried. (No collectiontypeid is required)
226
- * @param fields This limits the fields which are returned, separated by comma (\&#39;,\&#39;).
227
- * @param items The items can be extended to fully filled items.
228
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
229
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
230
- * @param reportProgress flag to report request and response progress.
231
- */
232
- public httpCollectionsGet(collectiontypeid?: string, level?: number, parentid?: string, fields?: string, items?: boolean, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<Collection>>;
233
- public httpCollectionsGet(collectiontypeid?: string, level?: number, parentid?: string, fields?: string, items?: boolean, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<Collection>>>;
234
- public httpCollectionsGet(collectiontypeid?: string, level?: number, parentid?: string, fields?: string, items?: boolean, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<Collection>>>;
235
- public httpCollectionsGet(collectiontypeid?: string, level?: number, parentid?: string, fields?: string, items?: boolean, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
236
-
237
- let queryParameters = new HttpParams({encoder: this.encoder});
238
- if (collectiontypeid !== undefined && collectiontypeid !== null) {
239
- queryParameters = this.addToHttpParams(queryParameters,
240
- <any>collectiontypeid, 'collectiontypeid');
241
- }
242
- if (level !== undefined && level !== null) {
243
- queryParameters = this.addToHttpParams(queryParameters,
244
- <any>level, 'level');
245
- }
246
- if (parentid !== undefined && parentid !== null) {
247
- queryParameters = this.addToHttpParams(queryParameters,
248
- <any>parentid, 'parentid');
249
- }
250
- if (fields !== undefined && fields !== null) {
251
- queryParameters = this.addToHttpParams(queryParameters,
252
- <any>fields, 'fields');
253
- }
254
- if (items !== undefined && items !== null) {
255
- queryParameters = this.addToHttpParams(queryParameters,
256
- <any>items, 'items');
257
- }
258
- if (translations !== undefined && translations !== null) {
259
- queryParameters = this.addToHttpParams(queryParameters,
260
- <any>translations, 'translations');
261
- }
262
-
263
- let headers = this.defaultHeaders;
264
-
265
- let credential: string | undefined;
266
- // authentication (msal_auth) required
267
- credential = this.configuration.lookupCredential('msal_auth');
268
- if (credential) {
269
- headers = headers.set('Authorization', 'Bearer ' + credential);
270
- }
271
-
272
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
273
- if (httpHeaderAcceptSelected === undefined) {
274
- // to determine the Accept header
275
- const httpHeaderAccepts: string[] = [
276
- 'application/json'
277
- ];
278
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
279
- }
280
- if (httpHeaderAcceptSelected !== undefined) {
281
- headers = headers.set('Accept', httpHeaderAcceptSelected);
282
- }
283
-
284
-
285
- let responseType_: 'text' | 'json' = 'json';
286
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
287
- responseType_ = 'text';
288
- }
289
-
290
- return this.httpClient.get<Array<Collection>>(`${this.configuration.basePath}/collections`,
291
- {
292
- params: queryParameters,
293
- responseType: <any>responseType_,
294
- withCredentials: this.configuration.withCredentials,
295
- headers: headers,
296
- observe: observe,
297
- reportProgress: reportProgress
298
- }
299
- );
300
- }
301
-
302
- /**
303
- * This endpoint returns one single collection (from ID). This will include all specific properties from collection type.
304
- * @param id The ID of the collection.
305
- * @param fields This limits the fields which are returned, separated by comma (\&#39;,\&#39;).
306
- * @param items The items can be extended to fully filled items.
307
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
308
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
309
- * @param reportProgress flag to report request and response progress.
310
- */
311
- public httpCollectionsGetById(id: string, fields?: string, items?: boolean, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Collection>;
312
- public httpCollectionsGetById(id: string, fields?: string, items?: boolean, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Collection>>;
313
- public httpCollectionsGetById(id: string, fields?: string, items?: boolean, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Collection>>;
314
- public httpCollectionsGetById(id: string, fields?: string, items?: boolean, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
315
- if (id === null || id === undefined) {
316
- throw new Error('Required parameter id was null or undefined when calling httpCollectionsGetById.');
317
- }
318
-
319
- let queryParameters = new HttpParams({encoder: this.encoder});
320
- if (fields !== undefined && fields !== null) {
321
- queryParameters = this.addToHttpParams(queryParameters,
322
- <any>fields, 'fields');
323
- }
324
- if (items !== undefined && items !== null) {
325
- queryParameters = this.addToHttpParams(queryParameters,
326
- <any>items, 'items');
327
- }
328
- if (translations !== undefined && translations !== null) {
329
- queryParameters = this.addToHttpParams(queryParameters,
330
- <any>translations, 'translations');
331
- }
332
-
333
- let headers = this.defaultHeaders;
334
-
335
- let credential: string | undefined;
336
- // authentication (msal_auth) required
337
- credential = this.configuration.lookupCredential('msal_auth');
338
- if (credential) {
339
- headers = headers.set('Authorization', 'Bearer ' + credential);
340
- }
341
-
342
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
343
- if (httpHeaderAcceptSelected === undefined) {
344
- // to determine the Accept header
345
- const httpHeaderAccepts: string[] = [
346
- 'application/json'
347
- ];
348
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
349
- }
350
- if (httpHeaderAcceptSelected !== undefined) {
351
- headers = headers.set('Accept', httpHeaderAcceptSelected);
352
- }
353
-
354
-
355
- let responseType_: 'text' | 'json' = 'json';
356
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
357
- responseType_ = 'text';
358
- }
359
-
360
- return this.httpClient.get<Collection>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}`,
361
- {
362
- params: queryParameters,
363
- responseType: <any>responseType_,
364
- withCredentials: this.configuration.withCredentials,
365
- headers: headers,
366
- observe: observe,
367
- reportProgress: reportProgress
368
- }
369
- );
370
- }
371
-
372
- /**
373
- * This endpoint returns the complete tree of descendants from a single collection.
374
- * @param id The ID of the collection.
375
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
376
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
377
- * @param reportProgress flag to report request and response progress.
378
- */
379
- public httpCollectionsGetDescendantsTreeOfId(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<Collection>>;
380
- public httpCollectionsGetDescendantsTreeOfId(id: string, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<Collection>>>;
381
- public httpCollectionsGetDescendantsTreeOfId(id: string, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<Collection>>>;
382
- public httpCollectionsGetDescendantsTreeOfId(id: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
383
- if (id === null || id === undefined) {
384
- throw new Error('Required parameter id was null or undefined when calling httpCollectionsGetDescendantsTreeOfId.');
385
- }
386
-
387
- let queryParameters = new HttpParams({encoder: this.encoder});
388
- if (translations !== undefined && translations !== null) {
389
- queryParameters = this.addToHttpParams(queryParameters,
390
- <any>translations, 'translations');
391
- }
392
-
393
- let headers = this.defaultHeaders;
394
-
395
- let credential: string | undefined;
396
- // authentication (msal_auth) required
397
- credential = this.configuration.lookupCredential('msal_auth');
398
- if (credential) {
399
- headers = headers.set('Authorization', 'Bearer ' + credential);
400
- }
401
-
402
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
403
- if (httpHeaderAcceptSelected === undefined) {
404
- // to determine the Accept header
405
- const httpHeaderAccepts: string[] = [
406
- 'application/json'
407
- ];
408
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
409
- }
410
- if (httpHeaderAcceptSelected !== undefined) {
411
- headers = headers.set('Accept', httpHeaderAcceptSelected);
412
- }
413
-
414
-
415
- let responseType_: 'text' | 'json' = 'json';
416
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
417
- responseType_ = 'text';
418
- }
419
-
420
- return this.httpClient.get<Array<Collection>>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}/descendants`,
421
- {
422
- params: queryParameters,
423
- responseType: <any>responseType_,
424
- withCredentials: this.configuration.withCredentials,
425
- headers: headers,
426
- observe: observe,
427
- reportProgress: reportProgress
428
- }
429
- );
430
- }
431
-
432
- /**
433
- * This endpoint returns the complete tree of ancestors from a single collection.
434
- * @param id The ID of the collection.
435
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
436
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
437
- * @param reportProgress flag to report request and response progress.
438
- */
439
- public httpCollectionsGetTreeAncestorsOfId(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<Collection>>;
440
- public httpCollectionsGetTreeAncestorsOfId(id: string, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<Collection>>>;
441
- public httpCollectionsGetTreeAncestorsOfId(id: string, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<Collection>>>;
442
- public httpCollectionsGetTreeAncestorsOfId(id: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
443
- if (id === null || id === undefined) {
444
- throw new Error('Required parameter id was null or undefined when calling httpCollectionsGetTreeAncestorsOfId.');
445
- }
446
-
447
- let queryParameters = new HttpParams({encoder: this.encoder});
448
- if (translations !== undefined && translations !== null) {
449
- queryParameters = this.addToHttpParams(queryParameters,
450
- <any>translations, 'translations');
451
- }
452
-
453
- let headers = this.defaultHeaders;
454
-
455
- let credential: string | undefined;
456
- // authentication (msal_auth) required
457
- credential = this.configuration.lookupCredential('msal_auth');
458
- if (credential) {
459
- headers = headers.set('Authorization', 'Bearer ' + credential);
460
- }
461
-
462
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
463
- if (httpHeaderAcceptSelected === undefined) {
464
- // to determine the Accept header
465
- const httpHeaderAccepts: string[] = [
466
- 'application/json'
467
- ];
468
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
469
- }
470
- if (httpHeaderAcceptSelected !== undefined) {
471
- headers = headers.set('Accept', httpHeaderAcceptSelected);
472
- }
473
-
474
-
475
- let responseType_: 'text' | 'json' = 'json';
476
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
477
- responseType_ = 'text';
478
- }
479
-
480
- return this.httpClient.get<Array<Collection>>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}/ancestors`,
481
- {
482
- params: queryParameters,
483
- responseType: <any>responseType_,
484
- withCredentials: this.configuration.withCredentials,
485
- headers: headers,
486
- observe: observe,
487
- reportProgress: reportProgress
488
- }
489
- );
490
- }
491
-
492
- /**
493
- * This endpoint updates the collection. Specific properties could be updated.
494
- * @param id The ID of the collection.
495
- * @param collection The body has to be a valid collection json.Not fitting properties are ignored.
496
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
497
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
498
- * @param reportProgress flag to report request and response progress.
499
- */
500
- public httpCollectionsUpdateById(id: string, collection: Collection, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Collection>;
501
- public httpCollectionsUpdateById(id: string, collection: Collection, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Collection>>;
502
- public httpCollectionsUpdateById(id: string, collection: Collection, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Collection>>;
503
- public httpCollectionsUpdateById(id: string, collection: Collection, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
504
- if (id === null || id === undefined) {
505
- throw new Error('Required parameter id was null or undefined when calling httpCollectionsUpdateById.');
506
- }
507
- if (collection === null || collection === undefined) {
508
- throw new Error('Required parameter collection was null or undefined when calling httpCollectionsUpdateById.');
509
- }
510
-
511
- let queryParameters = new HttpParams({encoder: this.encoder});
512
- if (translations !== undefined && translations !== null) {
513
- queryParameters = this.addToHttpParams(queryParameters,
514
- <any>translations, 'translations');
515
- }
516
-
517
- let headers = this.defaultHeaders;
518
-
519
- let credential: string | undefined;
520
- // authentication (msal_auth) required
521
- credential = this.configuration.lookupCredential('msal_auth');
522
- if (credential) {
523
- headers = headers.set('Authorization', 'Bearer ' + credential);
524
- }
525
-
526
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
527
- if (httpHeaderAcceptSelected === undefined) {
528
- // to determine the Accept header
529
- const httpHeaderAccepts: string[] = [
530
- 'application/json'
531
- ];
532
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
533
- }
534
- if (httpHeaderAcceptSelected !== undefined) {
535
- headers = headers.set('Accept', httpHeaderAcceptSelected);
536
- }
537
-
538
-
539
- // to determine the Content-Type header
540
- const consumes: string[] = [
541
- 'application/json'
542
- ];
543
- const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
544
- if (httpContentTypeSelected !== undefined) {
545
- headers = headers.set('Content-Type', httpContentTypeSelected);
546
- }
547
-
548
- let responseType_: 'text' | 'json' = 'json';
549
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
550
- responseType_ = 'text';
551
- }
552
-
553
- return this.httpClient.post<Collection>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}`,
554
- collection,
555
- {
556
- params: queryParameters,
557
- responseType: <any>responseType_,
558
- withCredentials: this.configuration.withCredentials,
559
- headers: headers,
560
- observe: observe,
561
- reportProgress: reportProgress
562
- }
563
- );
564
- }
565
-
566
- /**
567
- * This endpoint returns a generated thumbnail as a preview of the containing assets.
568
- * @param id The ID of the collection.
569
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
570
- * @param reportProgress flag to report request and response progress.
571
- */
572
- public httpGetCollectionPreviewsById(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/png'}): Observable<string>;
573
- public httpGetCollectionPreviewsById(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/png'}): Observable<HttpResponse<string>>;
574
- public httpGetCollectionPreviewsById(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/png'}): Observable<HttpEvent<string>>;
575
- public httpGetCollectionPreviewsById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'image/png'}): Observable<any> {
576
- if (id === null || id === undefined) {
577
- throw new Error('Required parameter id was null or undefined when calling httpGetCollectionPreviewsById.');
578
- }
579
-
580
- let headers = this.defaultHeaders;
581
-
582
- let credential: string | undefined;
583
- // authentication (msal_auth) required
584
- credential = this.configuration.lookupCredential('msal_auth');
585
- if (credential) {
586
- headers = headers.set('Authorization', 'Bearer ' + credential);
587
- }
588
-
589
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
590
- if (httpHeaderAcceptSelected === undefined) {
591
- // to determine the Accept header
592
- const httpHeaderAccepts: string[] = [
593
- 'image/png'
594
- ];
595
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
596
- }
597
- if (httpHeaderAcceptSelected !== undefined) {
598
- headers = headers.set('Accept', httpHeaderAcceptSelected);
599
- }
600
-
601
-
602
- let responseType_: 'text' | 'json' = 'json';
603
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
604
- responseType_ = 'text';
605
- }
606
-
607
- return this.httpClient.get<string>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}/previews`,
608
- {
609
- responseType: <any>responseType_,
610
- withCredentials: this.configuration.withCredentials,
611
- headers: headers,
612
- observe: observe,
613
- reportProgress: reportProgress
614
- }
615
- );
616
- }
617
-
618
- }
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 { Collection } from '../model/models';
21
+
22
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
23
+ import { AgravityConfiguration } from '../configuration';
24
+
25
+ @Injectable({
26
+ providedIn: 'root'
27
+ })
28
+ export class CollectionManagementService {
29
+ protected basePath = 'http://localhost:7071/api';
30
+ public defaultHeaders = new HttpHeaders();
31
+ public configuration = new AgravityConfiguration();
32
+ public encoder: HttpParameterCodec;
33
+
34
+ constructor(
35
+ protected httpClient: HttpClient,
36
+ @Optional() @Inject(BASE_PATH) basePath: string,
37
+ @Optional() configuration: AgravityConfiguration
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
+ * This endpoint creates a unique collection ID and adds the information to the database.
87
+ * @param collectiontypeid The ID of the collection type where this collections should be assigned.
88
+ * @param collection This endpoint creates a unique collection ID and adds the information to the database.
89
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
90
+ * @param reportProgress flag to report request and response progress.
91
+ */
92
+ public httpCollectionsCreate(
93
+ collectiontypeid: string,
94
+ collection: Collection,
95
+ observe?: 'body',
96
+ reportProgress?: boolean,
97
+ options?: { httpHeaderAccept?: 'application/json' }
98
+ ): Observable<Collection>;
99
+ public httpCollectionsCreate(
100
+ collectiontypeid: string,
101
+ collection: Collection,
102
+ observe?: 'response',
103
+ reportProgress?: boolean,
104
+ options?: { httpHeaderAccept?: 'application/json' }
105
+ ): Observable<HttpResponse<Collection>>;
106
+ public httpCollectionsCreate(
107
+ collectiontypeid: string,
108
+ collection: Collection,
109
+ observe?: 'events',
110
+ reportProgress?: boolean,
111
+ options?: { httpHeaderAccept?: 'application/json' }
112
+ ): Observable<HttpEvent<Collection>>;
113
+ public httpCollectionsCreate(
114
+ collectiontypeid: string,
115
+ collection: Collection,
116
+ observe: any = 'body',
117
+ reportProgress: boolean = false,
118
+ options?: { httpHeaderAccept?: 'application/json' }
119
+ ): Observable<any> {
120
+ if (collectiontypeid === null || collectiontypeid === undefined) {
121
+ throw new Error('Required parameter collectiontypeid was null or undefined when calling httpCollectionsCreate.');
122
+ }
123
+ if (collection === null || collection === undefined) {
124
+ throw new Error('Required parameter collection was null or undefined when calling httpCollectionsCreate.');
125
+ }
126
+
127
+ let queryParameters = new HttpParams({ encoder: this.encoder });
128
+ if (collectiontypeid !== undefined && collectiontypeid !== null) {
129
+ queryParameters = this.addToHttpParams(queryParameters, <any>collectiontypeid, 'collectiontypeid');
130
+ }
131
+
132
+ let headers = this.defaultHeaders;
133
+
134
+ let credential: string | undefined;
135
+ // authentication (msal_auth) required
136
+ credential = this.configuration.lookupCredential('msal_auth');
137
+ if (credential) {
138
+ headers = headers.set('Authorization', 'Bearer ' + credential);
139
+ }
140
+
141
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
142
+ if (httpHeaderAcceptSelected === undefined) {
143
+ // to determine the Accept header
144
+ const httpHeaderAccepts: string[] = ['application/json'];
145
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
146
+ }
147
+ if (httpHeaderAcceptSelected !== undefined) {
148
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
149
+ }
150
+
151
+ // to determine the Content-Type header
152
+ const consumes: string[] = ['application/json'];
153
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
154
+ if (httpContentTypeSelected !== undefined) {
155
+ headers = headers.set('Content-Type', httpContentTypeSelected);
156
+ }
157
+
158
+ let responseType_: 'text' | 'json' = 'json';
159
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
160
+ responseType_ = 'text';
161
+ }
162
+
163
+ return this.httpClient.post<Collection>(`${this.configuration.basePath}/collections`, collection, {
164
+ params: queryParameters,
165
+ responseType: <any>responseType_,
166
+ withCredentials: this.configuration.withCredentials,
167
+ headers: headers,
168
+ observe: observe,
169
+ reportProgress: reportProgress
170
+ });
171
+ }
172
+
173
+ /**
174
+ * This endpoint deletes the collection with the given ID (and their siblings).
175
+ * @param id The ID of the collection.
176
+ * @param deleteassets If this is true the assigned assets are set to delete as well.
177
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
178
+ * @param reportProgress flag to report request and response progress.
179
+ */
180
+ public httpCollectionsDeleteById(id: string, deleteassets?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
181
+ public httpCollectionsDeleteById(
182
+ id: string,
183
+ deleteassets?: boolean,
184
+ observe?: 'response',
185
+ reportProgress?: boolean,
186
+ options?: { httpHeaderAccept?: 'application/json' }
187
+ ): Observable<HttpResponse<any>>;
188
+ public httpCollectionsDeleteById(id: string, deleteassets?: boolean, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<any>>;
189
+ public httpCollectionsDeleteById(id: string, deleteassets?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
190
+ if (id === null || id === undefined) {
191
+ throw new Error('Required parameter id was null or undefined when calling httpCollectionsDeleteById.');
192
+ }
193
+
194
+ let queryParameters = new HttpParams({ encoder: this.encoder });
195
+ if (deleteassets !== undefined && deleteassets !== null) {
196
+ queryParameters = this.addToHttpParams(queryParameters, <any>deleteassets, 'deleteassets');
197
+ }
198
+
199
+ let headers = this.defaultHeaders;
200
+
201
+ let credential: string | undefined;
202
+ // authentication (msal_auth) required
203
+ credential = this.configuration.lookupCredential('msal_auth');
204
+ if (credential) {
205
+ headers = headers.set('Authorization', 'Bearer ' + credential);
206
+ }
207
+
208
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
209
+ if (httpHeaderAcceptSelected === undefined) {
210
+ // to determine the Accept header
211
+ const httpHeaderAccepts: string[] = ['application/json'];
212
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
213
+ }
214
+ if (httpHeaderAcceptSelected !== undefined) {
215
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
216
+ }
217
+
218
+ let responseType_: 'text' | 'json' = 'json';
219
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
220
+ responseType_ = 'text';
221
+ }
222
+
223
+ return this.httpClient.delete<any>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}`, {
224
+ params: queryParameters,
225
+ responseType: <any>responseType_,
226
+ withCredentials: this.configuration.withCredentials,
227
+ headers: headers,
228
+ observe: observe,
229
+ reportProgress: reportProgress
230
+ });
231
+ }
232
+
233
+ /**
234
+ * This endpoint lists all the collections, which are stored in the database and not deleted (status \&quot;A\&quot;)
235
+ * @param collectiontypeid The ID of the collection type, where these collections should come from.
236
+ * @param level The hierarchy level of collections which should be returned.
237
+ * @param parentid The ID of the parent collection which should be queried. (No collectiontypeid is required)
238
+ * @param fields This limits the fields which are returned, separated by comma (\&#39;,\&#39;).
239
+ * @param items The items can be extended to fully filled items.
240
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
241
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
242
+ * @param reportProgress flag to report request and response progress.
243
+ */
244
+ public httpCollectionsGet(
245
+ collectiontypeid?: string,
246
+ level?: number,
247
+ parentid?: string,
248
+ fields?: string,
249
+ items?: boolean,
250
+ translations?: boolean,
251
+ observe?: 'body',
252
+ reportProgress?: boolean,
253
+ options?: { httpHeaderAccept?: 'application/json' }
254
+ ): Observable<Array<Collection>>;
255
+ public httpCollectionsGet(
256
+ collectiontypeid?: string,
257
+ level?: number,
258
+ parentid?: string,
259
+ fields?: string,
260
+ items?: boolean,
261
+ translations?: boolean,
262
+ observe?: 'response',
263
+ reportProgress?: boolean,
264
+ options?: { httpHeaderAccept?: 'application/json' }
265
+ ): Observable<HttpResponse<Array<Collection>>>;
266
+ public httpCollectionsGet(
267
+ collectiontypeid?: string,
268
+ level?: number,
269
+ parentid?: string,
270
+ fields?: string,
271
+ items?: boolean,
272
+ translations?: boolean,
273
+ observe?: 'events',
274
+ reportProgress?: boolean,
275
+ options?: { httpHeaderAccept?: 'application/json' }
276
+ ): Observable<HttpEvent<Array<Collection>>>;
277
+ public httpCollectionsGet(
278
+ collectiontypeid?: string,
279
+ level?: number,
280
+ parentid?: string,
281
+ fields?: string,
282
+ items?: boolean,
283
+ translations?: boolean,
284
+ observe: any = 'body',
285
+ reportProgress: boolean = false,
286
+ options?: { httpHeaderAccept?: 'application/json' }
287
+ ): Observable<any> {
288
+ let queryParameters = new HttpParams({ encoder: this.encoder });
289
+ if (collectiontypeid !== undefined && collectiontypeid !== null) {
290
+ queryParameters = this.addToHttpParams(queryParameters, <any>collectiontypeid, 'collectiontypeid');
291
+ }
292
+ if (level !== undefined && level !== null) {
293
+ queryParameters = this.addToHttpParams(queryParameters, <any>level, 'level');
294
+ }
295
+ if (parentid !== undefined && parentid !== null) {
296
+ queryParameters = this.addToHttpParams(queryParameters, <any>parentid, 'parentid');
297
+ }
298
+ if (fields !== undefined && fields !== null) {
299
+ queryParameters = this.addToHttpParams(queryParameters, <any>fields, 'fields');
300
+ }
301
+ if (items !== undefined && items !== null) {
302
+ queryParameters = this.addToHttpParams(queryParameters, <any>items, 'items');
303
+ }
304
+ if (translations !== undefined && translations !== null) {
305
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
306
+ }
307
+
308
+ let headers = this.defaultHeaders;
309
+
310
+ let credential: string | undefined;
311
+ // authentication (msal_auth) required
312
+ credential = this.configuration.lookupCredential('msal_auth');
313
+ if (credential) {
314
+ headers = headers.set('Authorization', 'Bearer ' + credential);
315
+ }
316
+
317
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
318
+ if (httpHeaderAcceptSelected === undefined) {
319
+ // to determine the Accept header
320
+ const httpHeaderAccepts: string[] = ['application/json'];
321
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
322
+ }
323
+ if (httpHeaderAcceptSelected !== undefined) {
324
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
325
+ }
326
+
327
+ let responseType_: 'text' | 'json' = 'json';
328
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
329
+ responseType_ = 'text';
330
+ }
331
+
332
+ return this.httpClient.get<Array<Collection>>(`${this.configuration.basePath}/collections`, {
333
+ params: queryParameters,
334
+ responseType: <any>responseType_,
335
+ withCredentials: this.configuration.withCredentials,
336
+ headers: headers,
337
+ observe: observe,
338
+ reportProgress: reportProgress
339
+ });
340
+ }
341
+
342
+ /**
343
+ * This endpoint returns one single collection (from ID). This will include all specific properties from collection type.
344
+ * @param id The ID of the collection.
345
+ * @param fields This limits the fields which are returned, separated by comma (\&#39;,\&#39;).
346
+ * @param items The items can be extended to fully filled items.
347
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
348
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
349
+ * @param reportProgress flag to report request and response progress.
350
+ */
351
+ public httpCollectionsGetById(
352
+ id: string,
353
+ fields?: string,
354
+ items?: boolean,
355
+ translations?: boolean,
356
+ observe?: 'body',
357
+ reportProgress?: boolean,
358
+ options?: { httpHeaderAccept?: 'application/json' }
359
+ ): Observable<Collection>;
360
+ public httpCollectionsGetById(
361
+ id: string,
362
+ fields?: string,
363
+ items?: boolean,
364
+ translations?: boolean,
365
+ observe?: 'response',
366
+ reportProgress?: boolean,
367
+ options?: { httpHeaderAccept?: 'application/json' }
368
+ ): Observable<HttpResponse<Collection>>;
369
+ public httpCollectionsGetById(
370
+ id: string,
371
+ fields?: string,
372
+ items?: boolean,
373
+ translations?: boolean,
374
+ observe?: 'events',
375
+ reportProgress?: boolean,
376
+ options?: { httpHeaderAccept?: 'application/json' }
377
+ ): Observable<HttpEvent<Collection>>;
378
+ public httpCollectionsGetById(
379
+ id: string,
380
+ fields?: string,
381
+ items?: boolean,
382
+ translations?: boolean,
383
+ observe: any = 'body',
384
+ reportProgress: boolean = false,
385
+ options?: { httpHeaderAccept?: 'application/json' }
386
+ ): Observable<any> {
387
+ if (id === null || id === undefined) {
388
+ throw new Error('Required parameter id was null or undefined when calling httpCollectionsGetById.');
389
+ }
390
+
391
+ let queryParameters = new HttpParams({ encoder: this.encoder });
392
+ if (fields !== undefined && fields !== null) {
393
+ queryParameters = this.addToHttpParams(queryParameters, <any>fields, 'fields');
394
+ }
395
+ if (items !== undefined && items !== null) {
396
+ queryParameters = this.addToHttpParams(queryParameters, <any>items, 'items');
397
+ }
398
+ if (translations !== undefined && translations !== null) {
399
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
400
+ }
401
+
402
+ let headers = this.defaultHeaders;
403
+
404
+ let credential: string | undefined;
405
+ // authentication (msal_auth) required
406
+ credential = this.configuration.lookupCredential('msal_auth');
407
+ if (credential) {
408
+ headers = headers.set('Authorization', 'Bearer ' + credential);
409
+ }
410
+
411
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
412
+ if (httpHeaderAcceptSelected === undefined) {
413
+ // to determine the Accept header
414
+ const httpHeaderAccepts: string[] = ['application/json'];
415
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
416
+ }
417
+ if (httpHeaderAcceptSelected !== undefined) {
418
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
419
+ }
420
+
421
+ let responseType_: 'text' | 'json' = 'json';
422
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
423
+ responseType_ = 'text';
424
+ }
425
+
426
+ return this.httpClient.get<Collection>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}`, {
427
+ params: queryParameters,
428
+ responseType: <any>responseType_,
429
+ withCredentials: this.configuration.withCredentials,
430
+ headers: headers,
431
+ observe: observe,
432
+ reportProgress: reportProgress
433
+ });
434
+ }
435
+
436
+ /**
437
+ * This endpoint returns the complete tree of descendants from a single collection.
438
+ * @param id The ID of the collection.
439
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
440
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
441
+ * @param reportProgress flag to report request and response progress.
442
+ */
443
+ public httpCollectionsGetDescendantsTreeOfId(
444
+ id: string,
445
+ translations?: boolean,
446
+ observe?: 'body',
447
+ reportProgress?: boolean,
448
+ options?: { httpHeaderAccept?: 'application/json' }
449
+ ): Observable<Array<Collection>>;
450
+ public httpCollectionsGetDescendantsTreeOfId(
451
+ id: string,
452
+ translations?: boolean,
453
+ observe?: 'response',
454
+ reportProgress?: boolean,
455
+ options?: { httpHeaderAccept?: 'application/json' }
456
+ ): Observable<HttpResponse<Array<Collection>>>;
457
+ public httpCollectionsGetDescendantsTreeOfId(
458
+ id: string,
459
+ translations?: boolean,
460
+ observe?: 'events',
461
+ reportProgress?: boolean,
462
+ options?: { httpHeaderAccept?: 'application/json' }
463
+ ): Observable<HttpEvent<Array<Collection>>>;
464
+ public httpCollectionsGetDescendantsTreeOfId(
465
+ id: string,
466
+ translations?: boolean,
467
+ observe: any = 'body',
468
+ reportProgress: boolean = false,
469
+ options?: { httpHeaderAccept?: 'application/json' }
470
+ ): Observable<any> {
471
+ if (id === null || id === undefined) {
472
+ throw new Error('Required parameter id was null or undefined when calling httpCollectionsGetDescendantsTreeOfId.');
473
+ }
474
+
475
+ let queryParameters = new HttpParams({ encoder: this.encoder });
476
+ if (translations !== undefined && translations !== null) {
477
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
478
+ }
479
+
480
+ let headers = this.defaultHeaders;
481
+
482
+ let credential: string | undefined;
483
+ // authentication (msal_auth) required
484
+ credential = this.configuration.lookupCredential('msal_auth');
485
+ if (credential) {
486
+ headers = headers.set('Authorization', 'Bearer ' + credential);
487
+ }
488
+
489
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
490
+ if (httpHeaderAcceptSelected === undefined) {
491
+ // to determine the Accept header
492
+ const httpHeaderAccepts: string[] = ['application/json'];
493
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
494
+ }
495
+ if (httpHeaderAcceptSelected !== undefined) {
496
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
497
+ }
498
+
499
+ let responseType_: 'text' | 'json' = 'json';
500
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
501
+ responseType_ = 'text';
502
+ }
503
+
504
+ return this.httpClient.get<Array<Collection>>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}/descendants`, {
505
+ params: queryParameters,
506
+ responseType: <any>responseType_,
507
+ withCredentials: this.configuration.withCredentials,
508
+ headers: headers,
509
+ observe: observe,
510
+ reportProgress: reportProgress
511
+ });
512
+ }
513
+
514
+ /**
515
+ * This endpoint returns the complete tree of ancestors from a single collection.
516
+ * @param id The ID of the collection.
517
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
518
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
519
+ * @param reportProgress flag to report request and response progress.
520
+ */
521
+ public httpCollectionsGetTreeAncestorsOfId(
522
+ id: string,
523
+ translations?: boolean,
524
+ observe?: 'body',
525
+ reportProgress?: boolean,
526
+ options?: { httpHeaderAccept?: 'application/json' }
527
+ ): Observable<Array<Collection>>;
528
+ public httpCollectionsGetTreeAncestorsOfId(
529
+ id: string,
530
+ translations?: boolean,
531
+ observe?: 'response',
532
+ reportProgress?: boolean,
533
+ options?: { httpHeaderAccept?: 'application/json' }
534
+ ): Observable<HttpResponse<Array<Collection>>>;
535
+ public httpCollectionsGetTreeAncestorsOfId(
536
+ id: string,
537
+ translations?: boolean,
538
+ observe?: 'events',
539
+ reportProgress?: boolean,
540
+ options?: { httpHeaderAccept?: 'application/json' }
541
+ ): Observable<HttpEvent<Array<Collection>>>;
542
+ public httpCollectionsGetTreeAncestorsOfId(
543
+ id: string,
544
+ translations?: boolean,
545
+ observe: any = 'body',
546
+ reportProgress: boolean = false,
547
+ options?: { httpHeaderAccept?: 'application/json' }
548
+ ): Observable<any> {
549
+ if (id === null || id === undefined) {
550
+ throw new Error('Required parameter id was null or undefined when calling httpCollectionsGetTreeAncestorsOfId.');
551
+ }
552
+
553
+ let queryParameters = new HttpParams({ encoder: this.encoder });
554
+ if (translations !== undefined && translations !== null) {
555
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
556
+ }
557
+
558
+ let headers = this.defaultHeaders;
559
+
560
+ let credential: string | undefined;
561
+ // authentication (msal_auth) required
562
+ credential = this.configuration.lookupCredential('msal_auth');
563
+ if (credential) {
564
+ headers = headers.set('Authorization', 'Bearer ' + credential);
565
+ }
566
+
567
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
568
+ if (httpHeaderAcceptSelected === undefined) {
569
+ // to determine the Accept header
570
+ const httpHeaderAccepts: string[] = ['application/json'];
571
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
572
+ }
573
+ if (httpHeaderAcceptSelected !== undefined) {
574
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
575
+ }
576
+
577
+ let responseType_: 'text' | 'json' = 'json';
578
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
579
+ responseType_ = 'text';
580
+ }
581
+
582
+ return this.httpClient.get<Array<Collection>>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}/ancestors`, {
583
+ params: queryParameters,
584
+ responseType: <any>responseType_,
585
+ withCredentials: this.configuration.withCredentials,
586
+ headers: headers,
587
+ observe: observe,
588
+ reportProgress: reportProgress
589
+ });
590
+ }
591
+
592
+ /**
593
+ * This endpoint updates the collection. Specific properties could be updated.
594
+ * @param id The ID of the collection.
595
+ * @param collection The body has to be a valid collection json.Not fitting properties are ignored.
596
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
597
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
598
+ * @param reportProgress flag to report request and response progress.
599
+ */
600
+ public httpCollectionsUpdateById(
601
+ id: string,
602
+ collection: Collection,
603
+ translations?: boolean,
604
+ observe?: 'body',
605
+ reportProgress?: boolean,
606
+ options?: { httpHeaderAccept?: 'application/json' }
607
+ ): Observable<Collection>;
608
+ public httpCollectionsUpdateById(
609
+ id: string,
610
+ collection: Collection,
611
+ translations?: boolean,
612
+ observe?: 'response',
613
+ reportProgress?: boolean,
614
+ options?: { httpHeaderAccept?: 'application/json' }
615
+ ): Observable<HttpResponse<Collection>>;
616
+ public httpCollectionsUpdateById(
617
+ id: string,
618
+ collection: Collection,
619
+ translations?: boolean,
620
+ observe?: 'events',
621
+ reportProgress?: boolean,
622
+ options?: { httpHeaderAccept?: 'application/json' }
623
+ ): Observable<HttpEvent<Collection>>;
624
+ public httpCollectionsUpdateById(
625
+ id: string,
626
+ collection: Collection,
627
+ translations?: boolean,
628
+ observe: any = 'body',
629
+ reportProgress: boolean = false,
630
+ options?: { httpHeaderAccept?: 'application/json' }
631
+ ): Observable<any> {
632
+ if (id === null || id === undefined) {
633
+ throw new Error('Required parameter id was null or undefined when calling httpCollectionsUpdateById.');
634
+ }
635
+ if (collection === null || collection === undefined) {
636
+ throw new Error('Required parameter collection was null or undefined when calling httpCollectionsUpdateById.');
637
+ }
638
+
639
+ let queryParameters = new HttpParams({ encoder: this.encoder });
640
+ if (translations !== undefined && translations !== null) {
641
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
642
+ }
643
+
644
+ let headers = this.defaultHeaders;
645
+
646
+ let credential: string | undefined;
647
+ // authentication (msal_auth) required
648
+ credential = this.configuration.lookupCredential('msal_auth');
649
+ if (credential) {
650
+ headers = headers.set('Authorization', 'Bearer ' + credential);
651
+ }
652
+
653
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
654
+ if (httpHeaderAcceptSelected === undefined) {
655
+ // to determine the Accept header
656
+ const httpHeaderAccepts: string[] = ['application/json'];
657
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
658
+ }
659
+ if (httpHeaderAcceptSelected !== undefined) {
660
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
661
+ }
662
+
663
+ // to determine the Content-Type header
664
+ const consumes: string[] = ['application/json'];
665
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
666
+ if (httpContentTypeSelected !== undefined) {
667
+ headers = headers.set('Content-Type', httpContentTypeSelected);
668
+ }
669
+
670
+ let responseType_: 'text' | 'json' = 'json';
671
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
672
+ responseType_ = 'text';
673
+ }
674
+
675
+ return this.httpClient.post<Collection>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}`, collection, {
676
+ params: queryParameters,
677
+ responseType: <any>responseType_,
678
+ withCredentials: this.configuration.withCredentials,
679
+ headers: headers,
680
+ observe: observe,
681
+ reportProgress: reportProgress
682
+ });
683
+ }
684
+
685
+ /**
686
+ * This endpoint returns a generated thumbnail as a preview of the containing assets.
687
+ * @param id The ID of the collection.
688
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
689
+ * @param reportProgress flag to report request and response progress.
690
+ */
691
+ public httpGetCollectionPreviewsById(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'image/png' }): Observable<string>;
692
+ public httpGetCollectionPreviewsById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'image/png' }): Observable<HttpResponse<string>>;
693
+ public httpGetCollectionPreviewsById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'image/png' }): Observable<HttpEvent<string>>;
694
+ public httpGetCollectionPreviewsById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'image/png' }): Observable<any> {
695
+ if (id === null || id === undefined) {
696
+ throw new Error('Required parameter id was null or undefined when calling httpGetCollectionPreviewsById.');
697
+ }
698
+
699
+ let headers = this.defaultHeaders;
700
+
701
+ let credential: string | undefined;
702
+ // authentication (msal_auth) required
703
+ credential = this.configuration.lookupCredential('msal_auth');
704
+ if (credential) {
705
+ headers = headers.set('Authorization', 'Bearer ' + credential);
706
+ }
707
+
708
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
709
+ if (httpHeaderAcceptSelected === undefined) {
710
+ // to determine the Accept header
711
+ const httpHeaderAccepts: string[] = ['image/png'];
712
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
713
+ }
714
+ if (httpHeaderAcceptSelected !== undefined) {
715
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
716
+ }
717
+
718
+ let responseType_: 'text' | 'json' = 'json';
719
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
720
+ responseType_ = 'text';
721
+ }
722
+
723
+ return this.httpClient.get<string>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}/previews`, {
724
+ responseType: <any>responseType_,
725
+ withCredentials: this.configuration.withCredentials,
726
+ headers: headers,
727
+ observe: observe,
728
+ reportProgress: reportProgress
729
+ });
730
+ }
731
+ }