@agravity/private 7.3.1 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/.openapi-generator/FILES +1 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +29 -4
  4. package/api/assetIconRuleManagement.agravity.ts +344 -150
  5. package/api/assetManagement.agravity.ts +709 -389
  6. package/api/assetOperations.agravity.ts +1414 -650
  7. package/api/assetPublishing.agravity.ts +562 -255
  8. package/api/assetVersioning.agravity.ts +598 -278
  9. package/api/authenticationManagement.agravity.ts +731 -274
  10. package/api/collectionManagement.agravity.ts +618 -309
  11. package/api/collectionShareManagement.agravity.ts +256 -121
  12. package/api/collectionTypeItemBlueprintManagement.agravity.ts +271 -123
  13. package/api/collectionTypeManagement.agravity.ts +519 -250
  14. package/api/commentsManagement.agravity.ts +284 -90
  15. package/api/configurationManagement.agravity.ts +311 -128
  16. package/api/dashboardWidgetManagement.agravity.ts +342 -124
  17. package/api/dataImportExportManagement.agravity.ts +378 -148
  18. package/api/downloadFormatManagement.agravity.ts +450 -152
  19. package/api/downloadZip.agravity.ts +75 -30
  20. package/api/generalManagement.agravity.ts +374 -164
  21. package/api/helperTools.agravity.ts +804 -273
  22. package/api/historyEntryManagement.agravity.ts +75 -33
  23. package/api/iccProfileManagement.agravity.ts +64 -23
  24. package/api/listBlobs.agravity.ts +125 -47
  25. package/api/listQueues.agravity.ts +68 -24
  26. package/api/listTables.agravity.ts +68 -25
  27. package/api/permissionsManagement.agravity.ts +174 -77
  28. package/api/portalManagement.agravity.ts +511 -198
  29. package/api/publishing.agravity.ts +69 -38
  30. package/api/quickshareManagement.agravity.ts +349 -138
  31. package/api/savedSearchManagement.agravity.ts +205 -92
  32. package/api/searchManagement.agravity.ts +517 -297
  33. package/api/secureUpload.agravity.ts +325 -126
  34. package/api/signalRConnectionManagement.agravity.ts +175 -56
  35. package/api/staticDefinedListManagement.agravity.ts +342 -162
  36. package/api/stockImport.agravity.ts +138 -74
  37. package/api/structureImport.agravity.ts +68 -25
  38. package/api/translationManagement.agravity.ts +357 -206
  39. package/api/webAppData.agravity.ts +278 -88
  40. package/api/widgetLayoutManagement.agravity.ts +131 -47
  41. package/api/wordpressManagement.agravity.ts +152 -108
  42. package/api/workspaceManagement.agravity.ts +456 -197
  43. package/api.module.ts +0 -40
  44. package/configuration.ts +42 -0
  45. package/git_push.sh +3 -4
  46. package/index.ts +1 -0
  47. package/model/agravityErrorResponse.agravity.ts +3 -4
  48. package/model/agravityInfoResponse.agravity.ts +3 -4
  49. package/model/agravityUser.agravity.ts +16 -17
  50. package/model/agravityUserDto.agravity.ts +3 -4
  51. package/model/agravityVersion.agravity.ts +8 -9
  52. package/model/allWebAppData.agravity.ts +4 -5
  53. package/model/apiKeyResponse.agravity.ts +2 -3
  54. package/model/appConfigTableEntity.agravity.ts +8 -9
  55. package/model/artificialIntelligenceGroup.agravity.ts +3 -4
  56. package/model/asset.agravity.ts +22 -23
  57. package/model/assetAvailability.agravity.ts +1 -2
  58. package/model/assetBlob.agravity.ts +27 -28
  59. package/model/assetBulkUpdate.agravity.ts +2 -3
  60. package/model/assetCollectionLink.agravity.ts +2 -3
  61. package/model/assetIconRule.agravity.ts +17 -18
  62. package/model/assetIdFormat.agravity.ts +3 -4
  63. package/model/assetPageResult.agravity.ts +4 -5
  64. package/model/assetTextContent.agravity.ts +2 -3
  65. package/model/assetsOperationBody.agravity.ts +3 -4
  66. package/model/azSearchOptions.agravity.ts +8 -9
  67. package/model/azureIdentity.agravity.ts +4 -5
  68. package/model/blobInfoObj.agravity.ts +0 -1
  69. package/model/collTypeItem.agravity.ts +16 -17
  70. package/model/collTypeItemBlueprint.agravity.ts +12 -13
  71. package/model/collection.agravity.ts +15 -16
  72. package/model/collectionType.agravity.ts +14 -15
  73. package/model/collectionUDL.agravity.ts +4 -5
  74. package/model/collectionUDLListEntity.agravity.ts +9 -10
  75. package/model/collectionUDLReference.agravity.ts +3 -4
  76. package/model/comment.agravity.ts +9 -10
  77. package/model/createSftpUserResult.agravity.ts +2 -3
  78. package/model/dashboardWidget.agravity.ts +11 -12
  79. package/model/dataResult.agravity.ts +4 -5
  80. package/model/deletedEntities.agravity.ts +4 -5
  81. package/model/distZipResponse.agravity.ts +3 -4
  82. package/model/downloadFormat.agravity.ts +18 -16
  83. package/model/downloadObject.agravity.ts +16 -16
  84. package/model/downloadZipRequest.agravity.ts +9 -10
  85. package/model/dynamicImageOperation.agravity.ts +2 -3
  86. package/model/emailAddress.agravity.ts +2 -3
  87. package/model/entityId.agravity.ts +1 -2
  88. package/model/entityIdName.agravity.ts +3 -4
  89. package/model/entityTranslations.agravity.ts +2 -3
  90. package/model/excelExportTableEntity.agravity.ts +5 -5
  91. package/model/frontendAppConfig.agravity.ts +0 -1
  92. package/model/groupAllAppData.agravity.ts +5 -6
  93. package/model/historyEntry.agravity.ts +9 -10
  94. package/model/infoEntitySkillEnhanced.agravity.ts +10 -11
  95. package/model/metadata.agravity.ts +3 -4
  96. package/model/models.ts +0 -1
  97. package/model/moveCollectionBody.agravity.ts +3 -4
  98. package/model/permissionChange.agravity.ts +1 -2
  99. package/model/permissionEntity.agravity.ts +1 -2
  100. package/model/permissionSetting.agravity.ts +8 -9
  101. package/model/portal.agravity.ts +18 -20
  102. package/model/portalLinks.agravity.ts +3 -4
  103. package/model/portalTheme.agravity.ts +6 -7
  104. package/model/portalZipRequest.agravity.ts +14 -15
  105. package/model/publishEntity.agravity.ts +9 -10
  106. package/model/publishedAsset.agravity.ts +12 -13
  107. package/model/quickShare.agravity.ts +12 -13
  108. package/model/quickShareFull.agravity.ts +15 -16
  109. package/model/sasToken.agravity.ts +6 -7
  110. package/model/savedSearch.agravity.ts +13 -14
  111. package/model/searchAdminDataSourceStatus.agravity.ts +2 -3
  112. package/model/searchAdminIndexStatus.agravity.ts +3 -4
  113. package/model/searchAdminIndexerLastRun.agravity.ts +3 -4
  114. package/model/searchAdminIndexerStatus.agravity.ts +4 -5
  115. package/model/searchAdminSkillStatus.agravity.ts +2 -3
  116. package/model/searchAdminStatistics.agravity.ts +2 -3
  117. package/model/searchAdminStatus.agravity.ts +4 -5
  118. package/model/searchFacet.agravity.ts +2 -3
  119. package/model/searchFacetEntity.agravity.ts +2 -3
  120. package/model/searchResult.agravity.ts +3 -4
  121. package/model/searchableItem.agravity.ts +3 -4
  122. package/model/secureUploadEntity.agravity.ts +10 -11
  123. package/model/sharedAllowedFormat.agravity.ts +2 -3
  124. package/model/sharedAsset.agravity.ts +5 -6
  125. package/model/sharedCollection.agravity.ts +15 -16
  126. package/model/sharedCollectionFull.agravity.ts +18 -19
  127. package/model/signalRConnectionInfo.agravity.ts +0 -1
  128. package/model/simpleAsset.agravity.ts +10 -11
  129. package/model/staticDefinedList.agravity.ts +12 -13
  130. package/model/translation.agravity.ts +2 -3
  131. package/model/translationRequest.agravity.ts +3 -4
  132. package/model/uiTutorials.agravity.ts +0 -1
  133. package/model/versionEntity.agravity.ts +9 -10
  134. package/model/versionedAsset.agravity.ts +5 -6
  135. package/model/whereParam.agravity.ts +0 -1
  136. package/model/widgetLayout.agravity.ts +8 -9
  137. package/model/widgetProperties.agravity.ts +6 -7
  138. package/model/workspace.agravity.ts +14 -15
  139. package/package.json +16 -17
  140. package/param.ts +44 -0
  141. package/model/portalLanguages.agravity.ts +0 -16
@@ -2,7 +2,6 @@
2
2
  * Agravity OpenAPI Documentation - Private Functions
3
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 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 7.3.1
6
5
  * Contact: office@agravity.io
7
6
  *
8
7
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,17 +11,108 @@
12
11
  /* tslint:disable:no-unused-variable member-ordering */
13
12
 
14
13
  import { Inject, Injectable, Optional } from '@angular/core';
15
- import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
14
+ import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
16
15
  import { CustomHttpParameterCodec } from '../encoder';
17
16
  import { Observable } from 'rxjs';
18
17
 
19
- import { AgravityErrorResponse } from '../model/models';
20
- import { AgravityInfoResponse } from '../model/models';
21
- import { Collection } from '../model/models';
18
+ // @ts-ignore
19
+ import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
20
+ // @ts-ignore
21
+ import { AgravityInfoResponse } from '../model/agravityInfoResponse.agravity';
22
+ // @ts-ignore
23
+ import { Collection } from '../model/collection.agravity';
22
24
 
25
+ // @ts-ignore
23
26
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
24
27
  import { AgravityConfiguration } from '../configuration';
25
28
 
29
+ export interface HttpCollectionsCreateRequestParams {
30
+ /** The ID of the collection type where this collections should be assigned. */
31
+ collectiontypeid: string;
32
+ /** This endpoint creates a unique collection ID and adds the information to the database. */
33
+ collection: Collection;
34
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
35
+ translations?: boolean;
36
+ /** The requested language of the response. If not matching it falls back to default language. */
37
+ acceptLanguage?: string;
38
+ }
39
+
40
+ export interface HttpCollectionsDeleteByIdRequestParams {
41
+ /** The ID of the collection. */
42
+ id: string;
43
+ /** If this is true the assigned assets are set to delete as well. */
44
+ deleteassets?: boolean;
45
+ }
46
+
47
+ export interface HttpCollectionsGetRequestParams {
48
+ /** The ID of the collection type, where these collections should come from. */
49
+ collectiontypeid?: string;
50
+ /** The hierarchy level of collections which should be returned. */
51
+ level?: number;
52
+ /** The ID of the parent collection which should be queried. (No collectiontypeid is required) */
53
+ parentid?: string;
54
+ /** This limits the fields which are returned, separated by comma (\&#39;,\&#39;). */
55
+ fields?: string;
56
+ /** The items can be extended to fully filled items. */
57
+ items?: boolean;
58
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
59
+ translations?: boolean;
60
+ /** The requested language of the response. If not matching it falls back to default language. */
61
+ acceptLanguage?: string;
62
+ }
63
+
64
+ export interface HttpCollectionsGetByIdRequestParams {
65
+ /** The ID of the collection. */
66
+ id: string;
67
+ /** This limits the fields which are returned, separated by comma (\&#39;,\&#39;). */
68
+ fields?: string;
69
+ /** The items can be extended to fully filled items. */
70
+ items?: boolean;
71
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
72
+ translations?: boolean;
73
+ /** The requested language of the response. If not matching it falls back to default language. */
74
+ acceptLanguage?: string;
75
+ }
76
+
77
+ export interface HttpCollectionsGetDescendantsTreeOfIdRequestParams {
78
+ /** The ID of the collection. */
79
+ id: string;
80
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
81
+ translations?: boolean;
82
+ /** The requested language of the response. If not matching it falls back to default language. */
83
+ acceptLanguage?: string;
84
+ }
85
+
86
+ export interface HttpCollectionsGetTreeAncestorsOfIdRequestParams {
87
+ /** The ID of the collection. */
88
+ id: string;
89
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
90
+ translations?: boolean;
91
+ /** The requested language of the response. If not matching it falls back to default language. */
92
+ acceptLanguage?: string;
93
+ }
94
+
95
+ export interface HttpCollectionsUpdateByIdRequestParams {
96
+ /** The ID of the collection. */
97
+ id: string;
98
+ /** The body has to be a valid collection json.Not fitting properties are ignored. */
99
+ collection: Collection;
100
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
101
+ translations?: boolean;
102
+ /** The requested language of the response. If not matching it falls back to default language. */
103
+ acceptLanguage?: string;
104
+ }
105
+
106
+ export interface HttpGetCollectionPreviewsByIdRequestParams {
107
+ /** The ID of the collection. */
108
+ id: string;
109
+ }
110
+
111
+ export interface HttpPatchCollectionRepairRequestParams {
112
+ /** The ID of the collection. */
113
+ id: string;
114
+ }
115
+
26
116
  @Injectable({
27
117
  providedIn: 'root'
28
118
  })
@@ -34,13 +124,18 @@ export class CollectionManagementService {
34
124
 
35
125
  constructor(
36
126
  protected httpClient: HttpClient,
37
- @Optional() @Inject(BASE_PATH) basePath: string,
127
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
38
128
  @Optional() configuration: AgravityConfiguration
39
129
  ) {
40
130
  if (configuration) {
41
131
  this.configuration = configuration;
42
132
  }
43
133
  if (typeof this.configuration.basePath !== 'string') {
134
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
135
+ if (firstBasePath != undefined) {
136
+ basePath = firstBasePath;
137
+ }
138
+
44
139
  if (typeof basePath !== 'string') {
45
140
  basePath = this.basePath;
46
141
  }
@@ -49,6 +144,7 @@ export class CollectionManagementService {
49
144
  this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
50
145
  }
51
146
 
147
+ // @ts-ignore
52
148
  private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
53
149
  if (typeof value === 'object' && value instanceof Date === false) {
54
150
  httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -68,7 +164,7 @@ export class CollectionManagementService {
68
164
  (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
69
165
  } else if (value instanceof Date) {
70
166
  if (key != null) {
71
- httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
167
+ httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
72
168
  } else {
73
169
  throw Error('key may not be null if value is Date');
74
170
  }
@@ -85,694 +181,907 @@ export class CollectionManagementService {
85
181
 
86
182
  /**
87
183
  * This endpoint creates a unique collection ID and adds the information to the database.
88
- * @param collectiontypeid The ID of the collection type where this collections should be assigned.
89
- * @param collection This endpoint creates a unique collection ID and adds the information to the database.
184
+ * @param requestParameters
90
185
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
91
186
  * @param reportProgress flag to report request and response progress.
92
187
  */
93
188
  public httpCollectionsCreate(
94
- collectiontypeid: string,
95
- collection: Collection,
189
+ requestParameters?: HttpCollectionsCreateRequestParams,
96
190
  observe?: 'body',
97
191
  reportProgress?: boolean,
98
- options?: { httpHeaderAccept?: 'application/json' }
192
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
99
193
  ): Observable<Collection>;
100
194
  public httpCollectionsCreate(
101
- collectiontypeid: string,
102
- collection: Collection,
195
+ requestParameters?: HttpCollectionsCreateRequestParams,
103
196
  observe?: 'response',
104
197
  reportProgress?: boolean,
105
- options?: { httpHeaderAccept?: 'application/json' }
198
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
106
199
  ): Observable<HttpResponse<Collection>>;
107
200
  public httpCollectionsCreate(
108
- collectiontypeid: string,
109
- collection: Collection,
201
+ requestParameters?: HttpCollectionsCreateRequestParams,
110
202
  observe?: 'events',
111
203
  reportProgress?: boolean,
112
- options?: { httpHeaderAccept?: 'application/json' }
204
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
113
205
  ): Observable<HttpEvent<Collection>>;
114
206
  public httpCollectionsCreate(
115
- collectiontypeid: string,
116
- collection: Collection,
207
+ requestParameters?: HttpCollectionsCreateRequestParams,
117
208
  observe: any = 'body',
118
209
  reportProgress: boolean = false,
119
- options?: { httpHeaderAccept?: 'application/json' }
210
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
120
211
  ): Observable<any> {
212
+ const collectiontypeid = requestParameters?.collectiontypeid;
121
213
  if (collectiontypeid === null || collectiontypeid === undefined) {
122
214
  throw new Error('Required parameter collectiontypeid was null or undefined when calling httpCollectionsCreate.');
123
215
  }
216
+ const collection = requestParameters?.collection;
124
217
  if (collection === null || collection === undefined) {
125
218
  throw new Error('Required parameter collection was null or undefined when calling httpCollectionsCreate.');
126
219
  }
220
+ const translations = requestParameters?.translations;
221
+ const acceptLanguage = requestParameters?.acceptLanguage;
127
222
 
128
- let queryParameters = new HttpParams({ encoder: this.encoder });
223
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
129
224
  if (collectiontypeid !== undefined && collectiontypeid !== null) {
130
- queryParameters = this.addToHttpParams(queryParameters, <any>collectiontypeid, 'collectiontypeid');
225
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectiontypeid, 'collectiontypeid');
226
+ }
227
+ if (translations !== undefined && translations !== null) {
228
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
131
229
  }
132
230
 
133
- let headers = this.defaultHeaders;
231
+ let localVarHeaders = this.defaultHeaders;
232
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
233
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
234
+ }
134
235
 
135
- let credential: string | undefined;
236
+ let localVarCredential: string | undefined;
136
237
  // authentication (msal_auth) required
137
- credential = this.configuration.lookupCredential('msal_auth');
138
- if (credential) {
139
- headers = headers.set('Authorization', 'Bearer ' + credential);
238
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
239
+ if (localVarCredential) {
240
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
140
241
  }
141
242
 
142
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
143
- if (httpHeaderAcceptSelected === undefined) {
243
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
244
+ if (localVarHttpHeaderAcceptSelected === undefined) {
144
245
  // to determine the Accept header
145
246
  const httpHeaderAccepts: string[] = ['application/json'];
146
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
247
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
147
248
  }
148
- if (httpHeaderAcceptSelected !== undefined) {
149
- headers = headers.set('Accept', httpHeaderAcceptSelected);
249
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
250
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
251
+ }
252
+
253
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
254
+ if (localVarHttpContext === undefined) {
255
+ localVarHttpContext = new HttpContext();
256
+ }
257
+
258
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
259
+ if (localVarTransferCache === undefined) {
260
+ localVarTransferCache = true;
150
261
  }
151
262
 
152
263
  // to determine the Content-Type header
153
264
  const consumes: string[] = ['application/json'];
154
265
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
155
266
  if (httpContentTypeSelected !== undefined) {
156
- headers = headers.set('Content-Type', httpContentTypeSelected);
267
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
157
268
  }
158
269
 
159
- let responseType_: 'text' | 'json' = 'json';
160
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
161
- responseType_ = 'text';
270
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
271
+ if (localVarHttpHeaderAcceptSelected) {
272
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
273
+ responseType_ = 'text';
274
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
275
+ responseType_ = 'json';
276
+ } else {
277
+ responseType_ = 'blob';
278
+ }
162
279
  }
163
280
 
164
- return this.httpClient.post<Collection>(`${this.configuration.basePath}/collections`, collection, {
165
- params: queryParameters,
281
+ let localVarPath = `/collections`;
282
+ return this.httpClient.request<Collection>('post', `${this.configuration.basePath}${localVarPath}`, {
283
+ context: localVarHttpContext,
284
+ body: collection,
285
+ params: localVarQueryParameters,
166
286
  responseType: <any>responseType_,
167
287
  withCredentials: this.configuration.withCredentials,
168
- headers: headers,
288
+ headers: localVarHeaders,
169
289
  observe: observe,
290
+ transferCache: localVarTransferCache,
170
291
  reportProgress: reportProgress
171
292
  });
172
293
  }
173
294
 
174
295
  /**
175
296
  * This endpoint deletes the collection with the given ID (and their siblings).
176
- * @param id The ID of the collection.
177
- * @param deleteassets If this is true the assigned assets are set to delete as well.
297
+ * @param requestParameters
178
298
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
179
299
  * @param reportProgress flag to report request and response progress.
180
300
  */
181
- public httpCollectionsDeleteById(id: string, deleteassets?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
182
301
  public httpCollectionsDeleteById(
183
- id: string,
184
- deleteassets?: boolean,
302
+ requestParameters?: HttpCollectionsDeleteByIdRequestParams,
303
+ observe?: 'body',
304
+ reportProgress?: boolean,
305
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
306
+ ): Observable<any>;
307
+ public httpCollectionsDeleteById(
308
+ requestParameters?: HttpCollectionsDeleteByIdRequestParams,
185
309
  observe?: 'response',
186
310
  reportProgress?: boolean,
187
- options?: { httpHeaderAccept?: 'application/json' }
311
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
188
312
  ): Observable<HttpResponse<any>>;
189
- public httpCollectionsDeleteById(id: string, deleteassets?: boolean, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<any>>;
190
- public httpCollectionsDeleteById(id: string, deleteassets?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
313
+ public httpCollectionsDeleteById(
314
+ requestParameters?: HttpCollectionsDeleteByIdRequestParams,
315
+ observe?: 'events',
316
+ reportProgress?: boolean,
317
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
318
+ ): Observable<HttpEvent<any>>;
319
+ public httpCollectionsDeleteById(
320
+ requestParameters?: HttpCollectionsDeleteByIdRequestParams,
321
+ observe: any = 'body',
322
+ reportProgress: boolean = false,
323
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
324
+ ): Observable<any> {
325
+ const id = requestParameters?.id;
191
326
  if (id === null || id === undefined) {
192
327
  throw new Error('Required parameter id was null or undefined when calling httpCollectionsDeleteById.');
193
328
  }
329
+ const deleteassets = requestParameters?.deleteassets;
194
330
 
195
- let queryParameters = new HttpParams({ encoder: this.encoder });
331
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
196
332
  if (deleteassets !== undefined && deleteassets !== null) {
197
- queryParameters = this.addToHttpParams(queryParameters, <any>deleteassets, 'deleteassets');
333
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>deleteassets, 'deleteassets');
198
334
  }
199
335
 
200
- let headers = this.defaultHeaders;
336
+ let localVarHeaders = this.defaultHeaders;
201
337
 
202
- let credential: string | undefined;
338
+ let localVarCredential: string | undefined;
203
339
  // authentication (msal_auth) required
204
- credential = this.configuration.lookupCredential('msal_auth');
205
- if (credential) {
206
- headers = headers.set('Authorization', 'Bearer ' + credential);
340
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
341
+ if (localVarCredential) {
342
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
207
343
  }
208
344
 
209
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
210
- if (httpHeaderAcceptSelected === undefined) {
345
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
346
+ if (localVarHttpHeaderAcceptSelected === undefined) {
211
347
  // to determine the Accept header
212
348
  const httpHeaderAccepts: string[] = ['application/json'];
213
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
349
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
214
350
  }
215
- if (httpHeaderAcceptSelected !== undefined) {
216
- headers = headers.set('Accept', httpHeaderAcceptSelected);
351
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
352
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
217
353
  }
218
354
 
219
- let responseType_: 'text' | 'json' = 'json';
220
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
221
- responseType_ = 'text';
355
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
356
+ if (localVarHttpContext === undefined) {
357
+ localVarHttpContext = new HttpContext();
222
358
  }
223
359
 
224
- return this.httpClient.delete<any>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}`, {
225
- params: queryParameters,
360
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
361
+ if (localVarTransferCache === undefined) {
362
+ localVarTransferCache = true;
363
+ }
364
+
365
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
366
+ if (localVarHttpHeaderAcceptSelected) {
367
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
368
+ responseType_ = 'text';
369
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
370
+ responseType_ = 'json';
371
+ } else {
372
+ responseType_ = 'blob';
373
+ }
374
+ }
375
+
376
+ let localVarPath = `/collections/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
377
+ return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
378
+ context: localVarHttpContext,
379
+ params: localVarQueryParameters,
226
380
  responseType: <any>responseType_,
227
381
  withCredentials: this.configuration.withCredentials,
228
- headers: headers,
382
+ headers: localVarHeaders,
229
383
  observe: observe,
384
+ transferCache: localVarTransferCache,
230
385
  reportProgress: reportProgress
231
386
  });
232
387
  }
233
388
 
234
389
  /**
235
390
  * This endpoint lists all the collections, which are stored in the database and not deleted (status \&quot;A\&quot;)
236
- * @param collectiontypeid The ID of the collection type, where these collections should come from.
237
- * @param level The hierarchy level of collections which should be returned.
238
- * @param parentid The ID of the parent collection which should be queried. (No collectiontypeid is required)
239
- * @param fields This limits the fields which are returned, separated by comma (\&#39;,\&#39;).
240
- * @param items The items can be extended to fully filled items.
241
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
391
+ * @param requestParameters
242
392
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
243
393
  * @param reportProgress flag to report request and response progress.
244
394
  */
245
395
  public httpCollectionsGet(
246
- collectiontypeid?: string,
247
- level?: number,
248
- parentid?: string,
249
- fields?: string,
250
- items?: boolean,
251
- translations?: boolean,
396
+ requestParameters?: HttpCollectionsGetRequestParams,
252
397
  observe?: 'body',
253
398
  reportProgress?: boolean,
254
- options?: { httpHeaderAccept?: 'application/json' }
399
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
255
400
  ): Observable<Array<Collection>>;
256
401
  public httpCollectionsGet(
257
- collectiontypeid?: string,
258
- level?: number,
259
- parentid?: string,
260
- fields?: string,
261
- items?: boolean,
262
- translations?: boolean,
402
+ requestParameters?: HttpCollectionsGetRequestParams,
263
403
  observe?: 'response',
264
404
  reportProgress?: boolean,
265
- options?: { httpHeaderAccept?: 'application/json' }
405
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
266
406
  ): Observable<HttpResponse<Array<Collection>>>;
267
407
  public httpCollectionsGet(
268
- collectiontypeid?: string,
269
- level?: number,
270
- parentid?: string,
271
- fields?: string,
272
- items?: boolean,
273
- translations?: boolean,
408
+ requestParameters?: HttpCollectionsGetRequestParams,
274
409
  observe?: 'events',
275
410
  reportProgress?: boolean,
276
- options?: { httpHeaderAccept?: 'application/json' }
411
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
277
412
  ): Observable<HttpEvent<Array<Collection>>>;
278
413
  public httpCollectionsGet(
279
- collectiontypeid?: string,
280
- level?: number,
281
- parentid?: string,
282
- fields?: string,
283
- items?: boolean,
284
- translations?: boolean,
414
+ requestParameters?: HttpCollectionsGetRequestParams,
285
415
  observe: any = 'body',
286
416
  reportProgress: boolean = false,
287
- options?: { httpHeaderAccept?: 'application/json' }
417
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
288
418
  ): Observable<any> {
289
- let queryParameters = new HttpParams({ encoder: this.encoder });
419
+ const collectiontypeid = requestParameters?.collectiontypeid;
420
+ const level = requestParameters?.level;
421
+ const parentid = requestParameters?.parentid;
422
+ const fields = requestParameters?.fields;
423
+ const items = requestParameters?.items;
424
+ const translations = requestParameters?.translations;
425
+ const acceptLanguage = requestParameters?.acceptLanguage;
426
+
427
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
290
428
  if (collectiontypeid !== undefined && collectiontypeid !== null) {
291
- queryParameters = this.addToHttpParams(queryParameters, <any>collectiontypeid, 'collectiontypeid');
429
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectiontypeid, 'collectiontypeid');
292
430
  }
293
431
  if (level !== undefined && level !== null) {
294
- queryParameters = this.addToHttpParams(queryParameters, <any>level, 'level');
432
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>level, 'level');
295
433
  }
296
434
  if (parentid !== undefined && parentid !== null) {
297
- queryParameters = this.addToHttpParams(queryParameters, <any>parentid, 'parentid');
435
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>parentid, 'parentid');
298
436
  }
299
437
  if (fields !== undefined && fields !== null) {
300
- queryParameters = this.addToHttpParams(queryParameters, <any>fields, 'fields');
438
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>fields, 'fields');
301
439
  }
302
440
  if (items !== undefined && items !== null) {
303
- queryParameters = this.addToHttpParams(queryParameters, <any>items, 'items');
441
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>items, 'items');
304
442
  }
305
443
  if (translations !== undefined && translations !== null) {
306
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
444
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
307
445
  }
308
446
 
309
- let headers = this.defaultHeaders;
447
+ let localVarHeaders = this.defaultHeaders;
448
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
449
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
450
+ }
310
451
 
311
- let credential: string | undefined;
452
+ let localVarCredential: string | undefined;
312
453
  // authentication (msal_auth) required
313
- credential = this.configuration.lookupCredential('msal_auth');
314
- if (credential) {
315
- headers = headers.set('Authorization', 'Bearer ' + credential);
454
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
455
+ if (localVarCredential) {
456
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
316
457
  }
317
458
 
318
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
319
- if (httpHeaderAcceptSelected === undefined) {
459
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
460
+ if (localVarHttpHeaderAcceptSelected === undefined) {
320
461
  // to determine the Accept header
321
462
  const httpHeaderAccepts: string[] = ['application/json'];
322
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
463
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
323
464
  }
324
- if (httpHeaderAcceptSelected !== undefined) {
325
- headers = headers.set('Accept', httpHeaderAcceptSelected);
465
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
466
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
326
467
  }
327
468
 
328
- let responseType_: 'text' | 'json' = 'json';
329
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
330
- responseType_ = 'text';
469
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
470
+ if (localVarHttpContext === undefined) {
471
+ localVarHttpContext = new HttpContext();
331
472
  }
332
473
 
333
- return this.httpClient.get<Array<Collection>>(`${this.configuration.basePath}/collections`, {
334
- params: queryParameters,
474
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
475
+ if (localVarTransferCache === undefined) {
476
+ localVarTransferCache = true;
477
+ }
478
+
479
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
480
+ if (localVarHttpHeaderAcceptSelected) {
481
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
482
+ responseType_ = 'text';
483
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
484
+ responseType_ = 'json';
485
+ } else {
486
+ responseType_ = 'blob';
487
+ }
488
+ }
489
+
490
+ let localVarPath = `/collections`;
491
+ return this.httpClient.request<Array<Collection>>('get', `${this.configuration.basePath}${localVarPath}`, {
492
+ context: localVarHttpContext,
493
+ params: localVarQueryParameters,
335
494
  responseType: <any>responseType_,
336
495
  withCredentials: this.configuration.withCredentials,
337
- headers: headers,
496
+ headers: localVarHeaders,
338
497
  observe: observe,
498
+ transferCache: localVarTransferCache,
339
499
  reportProgress: reportProgress
340
500
  });
341
501
  }
342
502
 
343
503
  /**
344
504
  * This endpoint returns one single collection (from ID). This will include all specific properties from collection type.
345
- * @param id The ID of the collection.
346
- * @param fields This limits the fields which are returned, separated by comma (\&#39;,\&#39;).
347
- * @param items The items can be extended to fully filled items.
348
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
505
+ * @param requestParameters
349
506
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
350
507
  * @param reportProgress flag to report request and response progress.
351
508
  */
352
509
  public httpCollectionsGetById(
353
- id: string,
354
- fields?: string,
355
- items?: boolean,
356
- translations?: boolean,
510
+ requestParameters?: HttpCollectionsGetByIdRequestParams,
357
511
  observe?: 'body',
358
512
  reportProgress?: boolean,
359
- options?: { httpHeaderAccept?: 'application/json' }
513
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
360
514
  ): Observable<Collection>;
361
515
  public httpCollectionsGetById(
362
- id: string,
363
- fields?: string,
364
- items?: boolean,
365
- translations?: boolean,
516
+ requestParameters?: HttpCollectionsGetByIdRequestParams,
366
517
  observe?: 'response',
367
518
  reportProgress?: boolean,
368
- options?: { httpHeaderAccept?: 'application/json' }
519
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
369
520
  ): Observable<HttpResponse<Collection>>;
370
521
  public httpCollectionsGetById(
371
- id: string,
372
- fields?: string,
373
- items?: boolean,
374
- translations?: boolean,
522
+ requestParameters?: HttpCollectionsGetByIdRequestParams,
375
523
  observe?: 'events',
376
524
  reportProgress?: boolean,
377
- options?: { httpHeaderAccept?: 'application/json' }
525
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
378
526
  ): Observable<HttpEvent<Collection>>;
379
527
  public httpCollectionsGetById(
380
- id: string,
381
- fields?: string,
382
- items?: boolean,
383
- translations?: boolean,
528
+ requestParameters?: HttpCollectionsGetByIdRequestParams,
384
529
  observe: any = 'body',
385
530
  reportProgress: boolean = false,
386
- options?: { httpHeaderAccept?: 'application/json' }
531
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
387
532
  ): Observable<any> {
533
+ const id = requestParameters?.id;
388
534
  if (id === null || id === undefined) {
389
535
  throw new Error('Required parameter id was null or undefined when calling httpCollectionsGetById.');
390
536
  }
537
+ const fields = requestParameters?.fields;
538
+ const items = requestParameters?.items;
539
+ const translations = requestParameters?.translations;
540
+ const acceptLanguage = requestParameters?.acceptLanguage;
391
541
 
392
- let queryParameters = new HttpParams({ encoder: this.encoder });
542
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
393
543
  if (fields !== undefined && fields !== null) {
394
- queryParameters = this.addToHttpParams(queryParameters, <any>fields, 'fields');
544
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>fields, 'fields');
395
545
  }
396
546
  if (items !== undefined && items !== null) {
397
- queryParameters = this.addToHttpParams(queryParameters, <any>items, 'items');
547
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>items, 'items');
398
548
  }
399
549
  if (translations !== undefined && translations !== null) {
400
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
550
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
401
551
  }
402
552
 
403
- let headers = this.defaultHeaders;
553
+ let localVarHeaders = this.defaultHeaders;
554
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
555
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
556
+ }
404
557
 
405
- let credential: string | undefined;
558
+ let localVarCredential: string | undefined;
406
559
  // authentication (msal_auth) required
407
- credential = this.configuration.lookupCredential('msal_auth');
408
- if (credential) {
409
- headers = headers.set('Authorization', 'Bearer ' + credential);
560
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
561
+ if (localVarCredential) {
562
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
410
563
  }
411
564
 
412
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
413
- if (httpHeaderAcceptSelected === undefined) {
565
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
566
+ if (localVarHttpHeaderAcceptSelected === undefined) {
414
567
  // to determine the Accept header
415
568
  const httpHeaderAccepts: string[] = ['application/json'];
416
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
569
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
570
+ }
571
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
572
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
573
+ }
574
+
575
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
576
+ if (localVarHttpContext === undefined) {
577
+ localVarHttpContext = new HttpContext();
417
578
  }
418
- if (httpHeaderAcceptSelected !== undefined) {
419
- headers = headers.set('Accept', httpHeaderAcceptSelected);
579
+
580
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
581
+ if (localVarTransferCache === undefined) {
582
+ localVarTransferCache = true;
420
583
  }
421
584
 
422
- let responseType_: 'text' | 'json' = 'json';
423
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
424
- responseType_ = 'text';
585
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
586
+ if (localVarHttpHeaderAcceptSelected) {
587
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
588
+ responseType_ = 'text';
589
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
590
+ responseType_ = 'json';
591
+ } else {
592
+ responseType_ = 'blob';
593
+ }
425
594
  }
426
595
 
427
- return this.httpClient.get<Collection>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}`, {
428
- params: queryParameters,
596
+ let localVarPath = `/collections/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
597
+ return this.httpClient.request<Collection>('get', `${this.configuration.basePath}${localVarPath}`, {
598
+ context: localVarHttpContext,
599
+ params: localVarQueryParameters,
429
600
  responseType: <any>responseType_,
430
601
  withCredentials: this.configuration.withCredentials,
431
- headers: headers,
602
+ headers: localVarHeaders,
432
603
  observe: observe,
604
+ transferCache: localVarTransferCache,
433
605
  reportProgress: reportProgress
434
606
  });
435
607
  }
436
608
 
437
609
  /**
438
610
  * This endpoint returns the complete tree of descendants from a single collection.
439
- * @param id The ID of the collection.
440
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
611
+ * @param requestParameters
441
612
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
442
613
  * @param reportProgress flag to report request and response progress.
443
614
  */
444
615
  public httpCollectionsGetDescendantsTreeOfId(
445
- id: string,
446
- translations?: boolean,
616
+ requestParameters?: HttpCollectionsGetDescendantsTreeOfIdRequestParams,
447
617
  observe?: 'body',
448
618
  reportProgress?: boolean,
449
- options?: { httpHeaderAccept?: 'application/json' }
619
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
450
620
  ): Observable<Array<Collection>>;
451
621
  public httpCollectionsGetDescendantsTreeOfId(
452
- id: string,
453
- translations?: boolean,
622
+ requestParameters?: HttpCollectionsGetDescendantsTreeOfIdRequestParams,
454
623
  observe?: 'response',
455
624
  reportProgress?: boolean,
456
- options?: { httpHeaderAccept?: 'application/json' }
625
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
457
626
  ): Observable<HttpResponse<Array<Collection>>>;
458
627
  public httpCollectionsGetDescendantsTreeOfId(
459
- id: string,
460
- translations?: boolean,
628
+ requestParameters?: HttpCollectionsGetDescendantsTreeOfIdRequestParams,
461
629
  observe?: 'events',
462
630
  reportProgress?: boolean,
463
- options?: { httpHeaderAccept?: 'application/json' }
631
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
464
632
  ): Observable<HttpEvent<Array<Collection>>>;
465
633
  public httpCollectionsGetDescendantsTreeOfId(
466
- id: string,
467
- translations?: boolean,
634
+ requestParameters?: HttpCollectionsGetDescendantsTreeOfIdRequestParams,
468
635
  observe: any = 'body',
469
636
  reportProgress: boolean = false,
470
- options?: { httpHeaderAccept?: 'application/json' }
637
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
471
638
  ): Observable<any> {
639
+ const id = requestParameters?.id;
472
640
  if (id === null || id === undefined) {
473
641
  throw new Error('Required parameter id was null or undefined when calling httpCollectionsGetDescendantsTreeOfId.');
474
642
  }
643
+ const translations = requestParameters?.translations;
644
+ const acceptLanguage = requestParameters?.acceptLanguage;
475
645
 
476
- let queryParameters = new HttpParams({ encoder: this.encoder });
646
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
477
647
  if (translations !== undefined && translations !== null) {
478
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
648
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
479
649
  }
480
650
 
481
- let headers = this.defaultHeaders;
651
+ let localVarHeaders = this.defaultHeaders;
652
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
653
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
654
+ }
482
655
 
483
- let credential: string | undefined;
656
+ let localVarCredential: string | undefined;
484
657
  // authentication (msal_auth) required
485
- credential = this.configuration.lookupCredential('msal_auth');
486
- if (credential) {
487
- headers = headers.set('Authorization', 'Bearer ' + credential);
658
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
659
+ if (localVarCredential) {
660
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
488
661
  }
489
662
 
490
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
491
- if (httpHeaderAcceptSelected === undefined) {
663
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
664
+ if (localVarHttpHeaderAcceptSelected === undefined) {
492
665
  // to determine the Accept header
493
666
  const httpHeaderAccepts: string[] = ['application/json'];
494
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
667
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
668
+ }
669
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
670
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
671
+ }
672
+
673
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
674
+ if (localVarHttpContext === undefined) {
675
+ localVarHttpContext = new HttpContext();
495
676
  }
496
- if (httpHeaderAcceptSelected !== undefined) {
497
- headers = headers.set('Accept', httpHeaderAcceptSelected);
677
+
678
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
679
+ if (localVarTransferCache === undefined) {
680
+ localVarTransferCache = true;
498
681
  }
499
682
 
500
- let responseType_: 'text' | 'json' = 'json';
501
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
502
- responseType_ = 'text';
683
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
684
+ if (localVarHttpHeaderAcceptSelected) {
685
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
686
+ responseType_ = 'text';
687
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
688
+ responseType_ = 'json';
689
+ } else {
690
+ responseType_ = 'blob';
691
+ }
503
692
  }
504
693
 
505
- return this.httpClient.get<Array<Collection>>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}/descendants`, {
506
- params: queryParameters,
694
+ let localVarPath = `/collections/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/descendants`;
695
+ return this.httpClient.request<Array<Collection>>('get', `${this.configuration.basePath}${localVarPath}`, {
696
+ context: localVarHttpContext,
697
+ params: localVarQueryParameters,
507
698
  responseType: <any>responseType_,
508
699
  withCredentials: this.configuration.withCredentials,
509
- headers: headers,
700
+ headers: localVarHeaders,
510
701
  observe: observe,
702
+ transferCache: localVarTransferCache,
511
703
  reportProgress: reportProgress
512
704
  });
513
705
  }
514
706
 
515
707
  /**
516
708
  * This endpoint returns the complete tree of ancestors from a single collection.
517
- * @param id The ID of the collection.
518
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
709
+ * @param requestParameters
519
710
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
520
711
  * @param reportProgress flag to report request and response progress.
521
712
  */
522
713
  public httpCollectionsGetTreeAncestorsOfId(
523
- id: string,
524
- translations?: boolean,
714
+ requestParameters?: HttpCollectionsGetTreeAncestorsOfIdRequestParams,
525
715
  observe?: 'body',
526
716
  reportProgress?: boolean,
527
- options?: { httpHeaderAccept?: 'application/json' }
717
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
528
718
  ): Observable<Array<Collection>>;
529
719
  public httpCollectionsGetTreeAncestorsOfId(
530
- id: string,
531
- translations?: boolean,
720
+ requestParameters?: HttpCollectionsGetTreeAncestorsOfIdRequestParams,
532
721
  observe?: 'response',
533
722
  reportProgress?: boolean,
534
- options?: { httpHeaderAccept?: 'application/json' }
723
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
535
724
  ): Observable<HttpResponse<Array<Collection>>>;
536
725
  public httpCollectionsGetTreeAncestorsOfId(
537
- id: string,
538
- translations?: boolean,
726
+ requestParameters?: HttpCollectionsGetTreeAncestorsOfIdRequestParams,
539
727
  observe?: 'events',
540
728
  reportProgress?: boolean,
541
- options?: { httpHeaderAccept?: 'application/json' }
729
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
542
730
  ): Observable<HttpEvent<Array<Collection>>>;
543
731
  public httpCollectionsGetTreeAncestorsOfId(
544
- id: string,
545
- translations?: boolean,
732
+ requestParameters?: HttpCollectionsGetTreeAncestorsOfIdRequestParams,
546
733
  observe: any = 'body',
547
734
  reportProgress: boolean = false,
548
- options?: { httpHeaderAccept?: 'application/json' }
735
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
549
736
  ): Observable<any> {
737
+ const id = requestParameters?.id;
550
738
  if (id === null || id === undefined) {
551
739
  throw new Error('Required parameter id was null or undefined when calling httpCollectionsGetTreeAncestorsOfId.');
552
740
  }
741
+ const translations = requestParameters?.translations;
742
+ const acceptLanguage = requestParameters?.acceptLanguage;
553
743
 
554
- let queryParameters = new HttpParams({ encoder: this.encoder });
744
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
555
745
  if (translations !== undefined && translations !== null) {
556
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
746
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
557
747
  }
558
748
 
559
- let headers = this.defaultHeaders;
749
+ let localVarHeaders = this.defaultHeaders;
750
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
751
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
752
+ }
560
753
 
561
- let credential: string | undefined;
754
+ let localVarCredential: string | undefined;
562
755
  // authentication (msal_auth) required
563
- credential = this.configuration.lookupCredential('msal_auth');
564
- if (credential) {
565
- headers = headers.set('Authorization', 'Bearer ' + credential);
756
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
757
+ if (localVarCredential) {
758
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
566
759
  }
567
760
 
568
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
569
- if (httpHeaderAcceptSelected === undefined) {
761
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
762
+ if (localVarHttpHeaderAcceptSelected === undefined) {
570
763
  // to determine the Accept header
571
764
  const httpHeaderAccepts: string[] = ['application/json'];
572
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
765
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
766
+ }
767
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
768
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
769
+ }
770
+
771
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
772
+ if (localVarHttpContext === undefined) {
773
+ localVarHttpContext = new HttpContext();
573
774
  }
574
- if (httpHeaderAcceptSelected !== undefined) {
575
- headers = headers.set('Accept', httpHeaderAcceptSelected);
775
+
776
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
777
+ if (localVarTransferCache === undefined) {
778
+ localVarTransferCache = true;
576
779
  }
577
780
 
578
- let responseType_: 'text' | 'json' = 'json';
579
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
580
- responseType_ = 'text';
781
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
782
+ if (localVarHttpHeaderAcceptSelected) {
783
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
784
+ responseType_ = 'text';
785
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
786
+ responseType_ = 'json';
787
+ } else {
788
+ responseType_ = 'blob';
789
+ }
581
790
  }
582
791
 
583
- return this.httpClient.get<Array<Collection>>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}/ancestors`, {
584
- params: queryParameters,
792
+ let localVarPath = `/collections/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/ancestors`;
793
+ return this.httpClient.request<Array<Collection>>('get', `${this.configuration.basePath}${localVarPath}`, {
794
+ context: localVarHttpContext,
795
+ params: localVarQueryParameters,
585
796
  responseType: <any>responseType_,
586
797
  withCredentials: this.configuration.withCredentials,
587
- headers: headers,
798
+ headers: localVarHeaders,
588
799
  observe: observe,
800
+ transferCache: localVarTransferCache,
589
801
  reportProgress: reportProgress
590
802
  });
591
803
  }
592
804
 
593
805
  /**
594
806
  * This endpoint updates the collection. Specific properties could be updated.
595
- * @param id The ID of the collection.
596
- * @param collection The body has to be a valid collection json.Not fitting properties are ignored.
597
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
807
+ * @param requestParameters
598
808
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
599
809
  * @param reportProgress flag to report request and response progress.
600
810
  */
601
811
  public httpCollectionsUpdateById(
602
- id: string,
603
- collection: Collection,
604
- translations?: boolean,
812
+ requestParameters?: HttpCollectionsUpdateByIdRequestParams,
605
813
  observe?: 'body',
606
814
  reportProgress?: boolean,
607
- options?: { httpHeaderAccept?: 'application/json' }
815
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
608
816
  ): Observable<Collection>;
609
817
  public httpCollectionsUpdateById(
610
- id: string,
611
- collection: Collection,
612
- translations?: boolean,
818
+ requestParameters?: HttpCollectionsUpdateByIdRequestParams,
613
819
  observe?: 'response',
614
820
  reportProgress?: boolean,
615
- options?: { httpHeaderAccept?: 'application/json' }
821
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
616
822
  ): Observable<HttpResponse<Collection>>;
617
823
  public httpCollectionsUpdateById(
618
- id: string,
619
- collection: Collection,
620
- translations?: boolean,
824
+ requestParameters?: HttpCollectionsUpdateByIdRequestParams,
621
825
  observe?: 'events',
622
826
  reportProgress?: boolean,
623
- options?: { httpHeaderAccept?: 'application/json' }
827
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
624
828
  ): Observable<HttpEvent<Collection>>;
625
829
  public httpCollectionsUpdateById(
626
- id: string,
627
- collection: Collection,
628
- translations?: boolean,
830
+ requestParameters?: HttpCollectionsUpdateByIdRequestParams,
629
831
  observe: any = 'body',
630
832
  reportProgress: boolean = false,
631
- options?: { httpHeaderAccept?: 'application/json' }
833
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
632
834
  ): Observable<any> {
835
+ const id = requestParameters?.id;
633
836
  if (id === null || id === undefined) {
634
837
  throw new Error('Required parameter id was null or undefined when calling httpCollectionsUpdateById.');
635
838
  }
839
+ const collection = requestParameters?.collection;
636
840
  if (collection === null || collection === undefined) {
637
841
  throw new Error('Required parameter collection was null or undefined when calling httpCollectionsUpdateById.');
638
842
  }
843
+ const translations = requestParameters?.translations;
844
+ const acceptLanguage = requestParameters?.acceptLanguage;
639
845
 
640
- let queryParameters = new HttpParams({ encoder: this.encoder });
846
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
641
847
  if (translations !== undefined && translations !== null) {
642
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
848
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
643
849
  }
644
850
 
645
- let headers = this.defaultHeaders;
851
+ let localVarHeaders = this.defaultHeaders;
852
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
853
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
854
+ }
646
855
 
647
- let credential: string | undefined;
856
+ let localVarCredential: string | undefined;
648
857
  // authentication (msal_auth) required
649
- credential = this.configuration.lookupCredential('msal_auth');
650
- if (credential) {
651
- headers = headers.set('Authorization', 'Bearer ' + credential);
858
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
859
+ if (localVarCredential) {
860
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
652
861
  }
653
862
 
654
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
655
- if (httpHeaderAcceptSelected === undefined) {
863
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
864
+ if (localVarHttpHeaderAcceptSelected === undefined) {
656
865
  // to determine the Accept header
657
866
  const httpHeaderAccepts: string[] = ['application/json'];
658
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
867
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
868
+ }
869
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
870
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
871
+ }
872
+
873
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
874
+ if (localVarHttpContext === undefined) {
875
+ localVarHttpContext = new HttpContext();
659
876
  }
660
- if (httpHeaderAcceptSelected !== undefined) {
661
- headers = headers.set('Accept', httpHeaderAcceptSelected);
877
+
878
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
879
+ if (localVarTransferCache === undefined) {
880
+ localVarTransferCache = true;
662
881
  }
663
882
 
664
883
  // to determine the Content-Type header
665
884
  const consumes: string[] = ['application/json'];
666
885
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
667
886
  if (httpContentTypeSelected !== undefined) {
668
- headers = headers.set('Content-Type', httpContentTypeSelected);
887
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
669
888
  }
670
889
 
671
- let responseType_: 'text' | 'json' = 'json';
672
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
673
- responseType_ = 'text';
890
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
891
+ if (localVarHttpHeaderAcceptSelected) {
892
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
893
+ responseType_ = 'text';
894
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
895
+ responseType_ = 'json';
896
+ } else {
897
+ responseType_ = 'blob';
898
+ }
674
899
  }
675
900
 
676
- return this.httpClient.post<Collection>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}`, collection, {
677
- params: queryParameters,
901
+ let localVarPath = `/collections/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
902
+ return this.httpClient.request<Collection>('post', `${this.configuration.basePath}${localVarPath}`, {
903
+ context: localVarHttpContext,
904
+ body: collection,
905
+ params: localVarQueryParameters,
678
906
  responseType: <any>responseType_,
679
907
  withCredentials: this.configuration.withCredentials,
680
- headers: headers,
908
+ headers: localVarHeaders,
681
909
  observe: observe,
910
+ transferCache: localVarTransferCache,
682
911
  reportProgress: reportProgress
683
912
  });
684
913
  }
685
914
 
686
915
  /**
687
916
  * This endpoint returns a generated thumbnail as a preview of the containing assets.
688
- * @param id The ID of the collection.
917
+ * @param requestParameters
689
918
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
690
919
  * @param reportProgress flag to report request and response progress.
691
920
  */
692
- public httpGetCollectionPreviewsById(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'image/png' }): Observable<string>;
693
- public httpGetCollectionPreviewsById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'image/png' }): Observable<HttpResponse<string>>;
694
- public httpGetCollectionPreviewsById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'image/png' }): Observable<HttpEvent<string>>;
695
- public httpGetCollectionPreviewsById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'image/png' }): Observable<any> {
921
+ public httpGetCollectionPreviewsById(
922
+ requestParameters?: HttpGetCollectionPreviewsByIdRequestParams,
923
+ observe?: 'body',
924
+ reportProgress?: boolean,
925
+ options?: { httpHeaderAccept?: 'image/png'; context?: HttpContext; transferCache?: boolean }
926
+ ): Observable<string>;
927
+ public httpGetCollectionPreviewsById(
928
+ requestParameters?: HttpGetCollectionPreviewsByIdRequestParams,
929
+ observe?: 'response',
930
+ reportProgress?: boolean,
931
+ options?: { httpHeaderAccept?: 'image/png'; context?: HttpContext; transferCache?: boolean }
932
+ ): Observable<HttpResponse<string>>;
933
+ public httpGetCollectionPreviewsById(
934
+ requestParameters?: HttpGetCollectionPreviewsByIdRequestParams,
935
+ observe?: 'events',
936
+ reportProgress?: boolean,
937
+ options?: { httpHeaderAccept?: 'image/png'; context?: HttpContext; transferCache?: boolean }
938
+ ): Observable<HttpEvent<string>>;
939
+ public httpGetCollectionPreviewsById(
940
+ requestParameters?: HttpGetCollectionPreviewsByIdRequestParams,
941
+ observe: any = 'body',
942
+ reportProgress: boolean = false,
943
+ options?: { httpHeaderAccept?: 'image/png'; context?: HttpContext; transferCache?: boolean }
944
+ ): Observable<any> {
945
+ const id = requestParameters?.id;
696
946
  if (id === null || id === undefined) {
697
947
  throw new Error('Required parameter id was null or undefined when calling httpGetCollectionPreviewsById.');
698
948
  }
699
949
 
700
- let headers = this.defaultHeaders;
950
+ let localVarHeaders = this.defaultHeaders;
701
951
 
702
- let credential: string | undefined;
952
+ let localVarCredential: string | undefined;
703
953
  // authentication (msal_auth) required
704
- credential = this.configuration.lookupCredential('msal_auth');
705
- if (credential) {
706
- headers = headers.set('Authorization', 'Bearer ' + credential);
954
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
955
+ if (localVarCredential) {
956
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
707
957
  }
708
958
 
709
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
710
- if (httpHeaderAcceptSelected === undefined) {
959
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
960
+ if (localVarHttpHeaderAcceptSelected === undefined) {
711
961
  // to determine the Accept header
712
962
  const httpHeaderAccepts: string[] = ['image/png'];
713
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
963
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
964
+ }
965
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
966
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
714
967
  }
715
- if (httpHeaderAcceptSelected !== undefined) {
716
- headers = headers.set('Accept', httpHeaderAcceptSelected);
968
+
969
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
970
+ if (localVarHttpContext === undefined) {
971
+ localVarHttpContext = new HttpContext();
717
972
  }
718
973
 
719
- let responseType_: 'text' | 'json' = 'json';
720
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
721
- responseType_ = 'text';
974
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
975
+ if (localVarTransferCache === undefined) {
976
+ localVarTransferCache = true;
722
977
  }
723
978
 
724
- return this.httpClient.get<string>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}/previews`, {
979
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
980
+ if (localVarHttpHeaderAcceptSelected) {
981
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
982
+ responseType_ = 'text';
983
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
984
+ responseType_ = 'json';
985
+ } else {
986
+ responseType_ = 'blob';
987
+ }
988
+ }
989
+
990
+ let localVarPath = `/collections/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/previews`;
991
+ return this.httpClient.request<string>('get', `${this.configuration.basePath}${localVarPath}`, {
992
+ context: localVarHttpContext,
725
993
  responseType: <any>responseType_,
726
994
  withCredentials: this.configuration.withCredentials,
727
- headers: headers,
995
+ headers: localVarHeaders,
728
996
  observe: observe,
997
+ transferCache: localVarTransferCache,
729
998
  reportProgress: reportProgress
730
999
  });
731
1000
  }
732
1001
 
733
1002
  /**
734
1003
  * This endpoint repairs the items of an collection. Checks all collection type items and assign it to collection.
735
- * @param id The ID of the collection.
1004
+ * @param requestParameters
736
1005
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
737
1006
  * @param reportProgress flag to report request and response progress.
738
1007
  */
739
- public httpPatchCollectionRepair(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
740
- public httpPatchCollectionRepair(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<AgravityInfoResponse>>;
741
- public httpPatchCollectionRepair(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<AgravityInfoResponse>>;
742
- public httpPatchCollectionRepair(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
1008
+ public httpPatchCollectionRepair(
1009
+ requestParameters?: HttpPatchCollectionRepairRequestParams,
1010
+ observe?: 'body',
1011
+ reportProgress?: boolean,
1012
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1013
+ ): Observable<AgravityInfoResponse>;
1014
+ public httpPatchCollectionRepair(
1015
+ requestParameters?: HttpPatchCollectionRepairRequestParams,
1016
+ observe?: 'response',
1017
+ reportProgress?: boolean,
1018
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1019
+ ): Observable<HttpResponse<AgravityInfoResponse>>;
1020
+ public httpPatchCollectionRepair(
1021
+ requestParameters?: HttpPatchCollectionRepairRequestParams,
1022
+ observe?: 'events',
1023
+ reportProgress?: boolean,
1024
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1025
+ ): Observable<HttpEvent<AgravityInfoResponse>>;
1026
+ public httpPatchCollectionRepair(
1027
+ requestParameters?: HttpPatchCollectionRepairRequestParams,
1028
+ observe: any = 'body',
1029
+ reportProgress: boolean = false,
1030
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1031
+ ): Observable<any> {
1032
+ const id = requestParameters?.id;
743
1033
  if (id === null || id === undefined) {
744
1034
  throw new Error('Required parameter id was null or undefined when calling httpPatchCollectionRepair.');
745
1035
  }
746
1036
 
747
- let headers = this.defaultHeaders;
1037
+ let localVarHeaders = this.defaultHeaders;
748
1038
 
749
- let credential: string | undefined;
1039
+ let localVarCredential: string | undefined;
750
1040
  // authentication (msal_auth) required
751
- credential = this.configuration.lookupCredential('msal_auth');
752
- if (credential) {
753
- headers = headers.set('Authorization', 'Bearer ' + credential);
1041
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
1042
+ if (localVarCredential) {
1043
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
754
1044
  }
755
1045
 
756
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
757
- if (httpHeaderAcceptSelected === undefined) {
1046
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1047
+ if (localVarHttpHeaderAcceptSelected === undefined) {
758
1048
  // to determine the Accept header
759
1049
  const httpHeaderAccepts: string[] = ['application/json'];
760
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1050
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
761
1051
  }
762
- if (httpHeaderAcceptSelected !== undefined) {
763
- headers = headers.set('Accept', httpHeaderAcceptSelected);
1052
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1053
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
764
1054
  }
765
1055
 
766
- let responseType_: 'text' | 'json' = 'json';
767
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
768
- responseType_ = 'text';
1056
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
1057
+ if (localVarHttpContext === undefined) {
1058
+ localVarHttpContext = new HttpContext();
1059
+ }
1060
+
1061
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
1062
+ if (localVarTransferCache === undefined) {
1063
+ localVarTransferCache = true;
1064
+ }
1065
+
1066
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
1067
+ if (localVarHttpHeaderAcceptSelected) {
1068
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1069
+ responseType_ = 'text';
1070
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1071
+ responseType_ = 'json';
1072
+ } else {
1073
+ responseType_ = 'blob';
1074
+ }
769
1075
  }
770
1076
 
771
- return this.httpClient.patch<AgravityInfoResponse>(`${this.configuration.basePath}/collections/${encodeURIComponent(String(id))}/repair`, null, {
1077
+ let localVarPath = `/collections/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/repair`;
1078
+ return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
1079
+ context: localVarHttpContext,
772
1080
  responseType: <any>responseType_,
773
1081
  withCredentials: this.configuration.withCredentials,
774
- headers: headers,
1082
+ headers: localVarHeaders,
775
1083
  observe: observe,
1084
+ transferCache: localVarTransferCache,
776
1085
  reportProgress: reportProgress
777
1086
  });
778
1087
  }